1 2015-09-14 Richard Biener <rguenther@suse.de>
3 * doc/match-and-simplify.texi: Fixup some formatting issues
4 and document the 's' flag.
6 2015-09-13 Olivier Hainque <hainque@adacore.com>
7 Eric Botcazou <ebotcazou@adacore.com>
9 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
10 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
11 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
12 (TARGET_CPU_gr5): Likewise.
13 (TARGET_CPU_gr6): Likewise.
14 (MULTILIB_DEFAULTS): Likewise.
15 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
16 for mcpu=gr5 and mcpu=gr6.
17 (MULTILIB_DIRNAMES): Adjust accordingly.
19 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
22 (mem_ref_p): Likewise.
23 (outermost_indep_loop): Adjust.
24 (mem_ref_in_stmt): Likewise.
25 (determine_max_movement): Likewise.
26 (mem_ref_alloc): Likewise.
27 (record_mem_ref_loc): Likewise.
28 (set_ref_stored_in_loop): Likewise.
29 (mark_ref_stored): Likewise.
30 (gather_mem_refs_stmt): Likewise.
31 (mem_refs_may_alias_p): Likewise.
32 (for_all_locs_in_loop): Likewise.
33 (struct rewrite_mem_ref_loc): Likewise.
34 (rewrite_mem_refs): Likewise.
35 (struct first_mem_ref_loc_1): Likewise.
36 (first_mem_ref_loc): Likewise.
37 (struct sm_set_flag_if_changed): Likewise.
38 (execute_sm_if_changed_flag_set): Likewise.
39 (execute_sm): Likewise.
40 (hoist_memory_references):
41 (struct ref_always_accessed): Likewise.
42 (ref_always_accessed_p): Likewise.
43 (refs_independent_p): Likewise.
44 (record_dep_loop): Likewise.
45 (ref_indep_loop_p_1): Likewise.
46 (ref_indep_loop_p_2): Likewise.
47 (ref_indep_loop_p): Likewise.
48 (can_sm_ref_p): Likewise.
49 (find_refs_for_sm): Likewise.
50 (tree_ssa_lim_finalize): Likewise.
52 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
54 * dwarf2out.c (dw_attr_ref): Remove typedef.
55 (dw_line_info_ref): Likewise.
56 (pubname_ref): Likewise.
57 (dw_ranges_ref): Likewise.
58 (dw_ranges_by_label_ref): Likewise.
59 (comdat_type_node_ref): Likewise.
61 (get_AT_low_pc): Likewise.
62 (get_AT_hi_pc): Likewise.
63 (get_AT_string): Likewise.
64 (get_AT_flag): Likewise.
65 (get_AT_unsigned): Likewise.
66 (get_AT_ref): Likewise.
67 (get_AT_file): Likewise.
68 (remove_AT): Likewise.
69 (print_die): Likewise.
70 (check_die): Likewise.
71 (die_checksum): Likewise.
72 (attr_checksum_ordered): Likewise.
73 (struct checksum_attributes): Likewise.
74 (collect_checksum_attributes): Likewise.
75 (die_checksum_ordered): Likewise.
76 (same_die_p): Likewise.
77 (is_declaration_die): Likewise.
78 (clone_die): Likewise.
79 (clone_as_declaration): Likewise.
80 (copy_declaration_context): Likewise.
81 (break_out_comdat_types): Likewise.
82 (copy_decls_walk): Likewise.
83 (output_location_lists): Likewise.
84 (external_ref_hasher::hash): Likewise.
85 (optimize_external_refs_1): Likewise.
86 (build_abbrev_table): Likewise.
87 (size_of_die): Likewise.
88 (unmark_all_dies): Likewise.
89 (size_of_pubnames): Likewise.
90 (output_die_abbrevs): Likewise.
91 (output_die): Likewise.
92 (output_pubnames): Likewise.
93 (add_ranges_num): Likewise.
94 (add_ranges_by_labels): Likewise.
95 (add_high_low_attributes): Likewise.
96 (gen_producer_string): Likewise.
97 (dwarf2out_set_name): Likewise.
98 (new_line_info_table): Likewise.
99 (prune_unused_types_walk_attribs): Likewise.
100 (prune_unused_types_update_strings): Likewise.
101 (prune_unused_types): Likewise.
102 (resolve_addr): Likewise.
103 (optimize_location_lists_1): Likewise.
104 (index_location_lists): Likewise.
105 (dwarf2out_finish): Likewise.
107 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
109 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
111 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
113 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
114 (dump_asserts_for): Adjust.
115 (register_new_assert_for): Likewise.
116 (process_assert_insertions): Likewise.
117 (insert_range_assertions): Likewise.
119 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
121 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
123 (new_temp_expr_table): Adjust.
124 (free_temp_expr_table): Likewise.
125 (version_to_be_replaced_p): Likewise.
126 (make_dependent_on_partition): Likewise.
127 (add_to_partition_kill_list): Likewise.
128 (remove_from_partition_kill_list): Likewise.
129 (add_dependence): Likewise.
130 (finished_with_expr): Likewise.
131 (process_replaceable): Likewise.
132 (kill_expr): Likewise.
133 (kill_virtual_exprs): Likewise.
134 (mark_replaceable): Likewise.
135 (find_replaceable_in_bb): Likewise.
136 (find_replaceable_exprs): Likewise.
137 (debug_ter): Likewise.
139 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
141 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
142 (struct btr_user): Rename from btr_user_s.
143 (struct btr_def): Rename from btr_def_s.
144 (find_btr_def_group): Adjust.
145 (add_btr_def): Likewise.
146 (new_btr_user): Likewise.
147 (note_other_use_this_block): Likewise.
148 (compute_defs_uses_and_gen): Likewise.
149 (link_btr_uses): Likewise.
150 (build_btr_def_use_webs): Likewise.
151 (block_at_edge_of_live_range_p): Likewise.
152 (btr_def_live_range): Likewise.
153 (combine_btr_defs): Likewise.
154 (move_btr_def): Likewise.
155 (migrate_btr_def): Likewise.
156 (migrate_btr_defs): Likewise.
158 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
160 * var-tracking.c (shared_hash_def): Rename to shared_hash.
161 (shared_hash): Remove typedef.
162 (struct dataflow_set): Adjust.
163 (shared_hash_unshare): Likewise.
164 (dataflow_set_merge): Likewise.
165 (vt_initialize): Likewise.
166 (vt_finalize): Likewise.
168 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
170 * var-tracking.c (struct location_chain): Rename from
172 (struct variable_part): Adjust.
173 (variable_htab_free): Likewise.
174 (unshare_variable): Likewise.
175 (get_init_value): Likewise.
176 (get_addr_from_local_cache): Likewise.
177 (drop_overlapping_mem_locs): Likewise.
178 (val_reset): Likewise.
179 (struct variable_union_info): Likewise.
180 (variable_union): Likewise.
181 (find_loc_in_1pdv): Likewise.
182 (insert_into_intersection): Likewise.
183 (intersect_loc_chains): Likewise.
184 (canonicalize_loc_order_check): Likewise.
185 (canonicalize_values_mark): Likewise.
186 (canonicalize_values_star): Likewise.
187 (canonicalize_vars_star): Likewise.
188 (variable_merge_over_cur): Likewise.
189 (remove_duplicate_values): Likewise.
190 (variable_post_merge_new_vals): Likewise.
191 (variable_post_merge_perm_vals): Likewise.
192 (find_mem_expr_in_1pdv): Likewise.
193 (dataflow_set_preserve_mem_locs): Likewise.
194 (dataflow_set_remove_mem_locs): Likewise.
195 (variable_part_different_p): Likewise.
196 (onepart_variable_different_p): Likewise.
197 (find_src_set_src): Likewise.
198 (dump_var): Likewise.
199 (set_slot_part): Likewise.
200 (clobber_slot_part): Likewise.
201 (delete_slot_part): Likewise.
202 (vt_expand_var_loc_chain): Likewise.
203 (emit_note_insn_var_location): Likewise.
204 (vt_finalize): Likewise.
206 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
208 * dse.c (store_info_t): Remove typedef.
209 (group_info_t): Likewise.
210 (const_group_info_t): Likewise.
211 (deferred_change_t): Likewise.
212 (get_group_info): Adjust.
213 (free_store_info): Likewise.
214 (canon_address): Likewise.
215 (clear_rhs_from_active_local_stores): Likewise.
216 (record_store): Likewise.
217 (replace_read): Likewise.
218 (check_mem_read_rtx): Likewise.
219 (scan_insn): Likewise.
220 (remove_useless_values): Likewise.
221 (dse_step1): Likewise.
222 (dse_step2_init): Likewise.
223 (dse_step2_nospill): Likewise.
224 (scan_stores_nospill): Likewise.
225 (scan_reads_nospill): Likewise.
226 (dse_step3_exit_block_scan): Likewise.
227 (dse_step3): Likewise.
228 (dse_step5_nospill): Likewise.
229 (dse_step6): Likewise.
231 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
233 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
234 (alias_set_entry): Remove typedef.
235 (alias_set_subset_of): Adjust.
236 (alias_sets_conflict_p): Likewise.
237 (init_alias_set_entry): Likewise.
238 (get_alias_set): Likewise.
239 (new_alias_set): Likewise.
240 (record_alias_subset): Likewise.
242 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
244 * doc/install.texi (Downloading the source): Mark up
245 contrib/download_prerequisites properly and drop leading "./".
247 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
249 * config/arc/arc.h: Remove define of STRUCT_VALUE.
250 * config/lm32/lm32.h: Likewise.
251 * config/mep/mep.h: Likewise.
252 * config/visium/visium.h: Likewise.
253 * system.h: Poison STRUCT_VALUE macro.
255 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
257 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
260 2015-09-11 David S. Miller <davem@davemloft.net>
262 * config/sparc/constraints.md: Make "U" constraint a real register
264 * config/sparc/sparc.c (TARGET_LRA_P): Define.
265 (D_MODES, DF_MODES): Add missing cast.
266 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
267 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
268 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
270 * config/sparc/sparc.h (PROMOTE_MODE): Define.
271 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
272 provide these insn when flag_pic.
274 2015-09-11 Jeff Law <law@redhat.com>
276 PR tree-optimization/47679
277 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
278 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
279 member with m_. Update inline member functions as necessary. Add
281 * tree-ssa-scopedtables.c: Update const_and_copies's member
282 functions to use m_ prefix to access the stack.
284 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
286 * graphite-optimize-isl.c (disable_tiling): Remove.
287 (get_schedule_for_band): Do not use disable_tiling.
288 (get_prevector_map): Delete function.
289 (enable_polly_vector): Remove.
290 (get_schedule_for_band_list): Remove dead code.
292 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
294 * graphite-optimize-isl.c (get_tile_map): Refactor.
295 (get_schedule_for_band): Same.
296 (getScheduleForBand): Same.
297 (get_prevector_map): Same.
298 (get_schedule_for_band_list): Same.
299 (get_schedule_map): Same.
300 (get_single_map): Same.
301 (apply_schedule_map_to_scop): Same.
302 (optimize_isl): Same.
304 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
307 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
309 * config/aarch64/iterators.md (GPF_TF_F16): New.
312 2015-09-10 Nathan Sidwell <nathan@acm.org>
314 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
315 (nvptx_reorg): Adjust comments.
317 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
320 * configure.ac: Check if setenv and unsetenv are declared.
321 * configure: Rebuild.
322 * config.in: Rebuild.
323 * system.h: Declare setenv and unsetenv if not declared.
325 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
327 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
328 commentary to simplify permute mask adjustment equation.
329 (special_handling_values): Add SH_VPERM.
330 (const_load_sequence_p): New function.
331 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
332 the mask loaded from the constant pool.
333 (adjust_vperm): New function.
334 (handle_special_swappables): Call adjust_vperm.
335 (dump_swap_insn_table): Handle SH_VPERM.
337 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
339 * shrink-wrap.c (requires_stack_frame_p): Remove static.
340 * shrink-wrap.h (requires_stack_frame_p): Put back.
342 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
344 * reload1.c (elimination_costs_in_insn): Locally turn
345 -Wmaybe-uninitialized into a warning.
347 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
349 * shrink-wrap.c (requires_stack_frame_p): Make static.
350 (prepare_shrink_wrap): Likewise.
351 (dup_block_and_redirect): Likewise.
352 * shrink-wrap.h: Remove declarations of those functions.
354 2015-09-10 Mark Wielaard <mjw@redhat.com>
356 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
358 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
361 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
362 missing simplify_gen_subreg.
364 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
366 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
367 the vector element is bigger than 64 bit.
369 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
371 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
372 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
374 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
376 * config/s390/s390.c: Add V1TImode to constant pool modes.
378 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
381 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
382 predicate. Set predicable_short_it attr to "no".
384 2015-09-10 Jiong Wang <jiong.wang@arm.com>
386 PR rtl-optimization/67421
387 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
388 left wide shift tranformation.
390 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
392 * common/config/arc/arc-common.c: Remove references to A5.
393 * config/arc/arc-opts.h: Likewise.
394 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
395 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
396 * config/arc/t-arc-newlib: Likewise.
398 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
400 * config/arc/arc.md (length): Fix attribute length for conditional
401 executed instructions with long immediate.
403 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
405 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
406 type for second alternative.
408 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
410 * doc/invoke.texi (Downloading GCC): Mention
411 contrib/download_prerequisites script.
413 2015-09-10 Jakub Jelinek <jakub@redhat.com>
416 * gimplify.c (gimplify_omp_for): If inner stmt is not found
417 for combined loop, assert seen_error () and return GS_ERROR.
420 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
421 if decl is already in outer->variables.
424 * gimplify.c (gimplify_scan_omp_clauses): Instead of
425 asserting that decl is not specified in octx->variables,
426 break out of the loop if it is.
429 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
430 iterator is not explicitly determined, but is defined inside
431 of the combined workshare region, handle it like if it has
432 DECL_EXPR in OMP_FOR_PRE_BODY.
434 2015-09-09 Nathan Sidwell <nathan@acm.org>
436 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
437 (*cmp<mode>): Add assembler spacing.
438 (setcc_int<mode>, set_cc_float<mode>): Likewise.
439 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
441 (write_func_decl_from_insn): Refactor argument loops & comma emission.
442 (nvptx_expand_call): Likewise.
443 (nvptx_output_call_insn): Likewise.
444 (nvptx_reorg_subreg): Add spacing.
446 2015-09-09 Marek Polacek <polacek@redhat.com>
449 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
452 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
455 * doc/invoke.texi ([Wsubobject-linkage]): Document.
457 2015-09-09 Tom de Vries <tom@codesourcery.com>
459 * params-list.h: Add missing copyright notice.
461 2015-09-09 Nathan Sidwell <nathan@acm.org>
463 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
464 sel_truesi, not andsi.
466 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
468 * config/arm/arm.md (*subsi3_compare0): Rename to...
469 (subsi3_compare0): ... This.
470 (modsi3): New define_expand.
471 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
472 when operand is power of 2.
474 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
476 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
477 (*neg<mode>2_compare0): Rename to...
478 (neg<mode>2_compare0): ... This.
479 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
480 Move check for speed inside the if-then-elses. Reflect
481 CSNEG sequence in MOD by power of 2 case.
483 2015-09-09 Alan Modra <amodra@gmail.com>
486 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
487 reload replacement for PRE_MODIFY address reg.
489 2015-09-09 Sebastian Pop <s.pop@samsung.com>
491 PR tree-optimization/53852
492 * config.in: Regenerate.
493 * configure: Regenerate.
494 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
495 * graphite-optimize-isl.c (optimize_isl): Stop computation when
496 PARAM_MAX_ISL_OPERATIONS is reached.
497 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
498 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
499 result equal to isl_stat_ok as the status now can be isl_error_quota.
500 (subtract_commutative_associative_deps): Same.
501 (compute_deps): Same.
503 2015-09-08 Aditya Kumar <hiraditya@msn.com>
504 Sebastian Pop <s.pop@samsung.com>
506 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
507 Return the parameter if it was saved in corresponding
508 parameter_rename_map of the region.
509 (copy_def): Copy def from sese region to the newly created region.
510 (copy_internal_parameters): Copy all the internal parameters defined
511 within a region to the newly created region.
512 (graphite_regenerate_ast_isl): Copy parameters to the new region before
513 translating isl to gimple.
514 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
515 the loop-nest does not have any data-references.
516 (build_graphite_scops): Create a scop only when there is at least one
518 (contains_only_close_phi_nodes): Deleted.
519 (print_graphite_scop_statistics): Deleted
520 (print_graphite_statistics): Deleted
521 (limit_scops): Deleted.
522 (build_scops): Removed call to limit_scops.
523 * sese.c (new_sese): Construct.
524 (free_sese): Destruct.
525 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
527 (set_rename): Pass sese region so that parameters inside the region can
528 be added to its parameter_rename_map.
529 (rename_uses): Pass sese region.
530 (graphite_copy_stmts_from_block): Do not copy parameters that have been
531 generated in the header of the scop. For each SSA_NAME in the
532 parameter_rename_map rename its usage.
533 (invariant_in_sese_p_rec): Return false if tree t is defined outside
535 (scalar_evolution_in_region): If the tree t is invariant just return t.
536 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
537 struct sese to keep track of all the parameters which need renaming.
538 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
540 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
542 2015-09-08 Tom de Vries <tom@codesourcery.com>
544 * Makefile.in (generated_files): Add params.list.
545 (params.list, s-params.list): Add rule.
546 * params.h (enum compiler_param): Include params-list.h. Move define
547 DEFPARAM, include params.def and undef DEFPARAM ...
548 * params-list.h: ... here. New file.
550 2015-09-08 David Malcolm <dmalcolm@redhat.com>
552 * pretty-print.h (printer_fn): Fix typo in comment.
554 2015-09-07 Jeff Law <law@redhat.com>
556 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
558 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
560 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
561 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
562 (arm_neon_fp16_hw): New.
564 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
566 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
569 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
571 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
572 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
573 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
574 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
575 (aarch64_float_extend_lo_v2df): Rename to...
576 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
578 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
579 (float_extend_lo): Add v4sf.
581 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
582 * config/aarch64/iterators.md (VQ_HSF): New iterator.
583 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
584 (Vwide): New mode_attr.
586 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
588 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
589 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
590 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
591 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
592 V4HF and V8HF variants to iterator.
594 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
596 * config/aarch64/iterators.md (VDQF_F16): New.
597 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
599 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
601 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
602 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
603 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
604 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
605 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
606 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
607 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
608 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
609 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
610 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
611 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
612 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
613 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
614 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
615 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
616 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
617 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
620 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
622 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
624 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
625 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
626 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
628 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
630 (float_truncate_lo_): Use BUILTIN_VDF iterator.
632 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
634 * config/aarch64/iterators.md (VDF, Vdtype): New.
635 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
637 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
639 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
640 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
641 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
642 Add __builtin_aarch64_simd_hf.
643 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
644 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
645 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
646 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
647 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
648 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
649 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
650 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
651 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
653 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
654 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
655 (VDC, Vdbl): Add V4HF.
657 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
659 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
660 V4HFmode and V8HFmode.
661 (aarch64_split_simd_move): Add case for V8HFmode.
662 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
663 (aarch64_simd_builtin_std_type): Handle HFmode.
664 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
666 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
667 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
668 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
670 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
673 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
674 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
676 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
677 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
678 vst1q_lane_f16): New.
679 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
680 (VALLDI_F16, VALL_F16): New.
681 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
682 Add cases for V4HF and V8HF.
683 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
685 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
687 * config/arm/arm-builtins.c (VAR11, VAR12): New.
688 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
689 vld4_dup): Add v4hf variant.
690 (vget_high, vget_low): Add v8hf variant.
691 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
692 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
693 v4hf and v8hf variants.
695 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
697 (V_DOUBLE): Add case for V4HF.
699 (V_HALF): Add case for V8HF.
700 (VDQX): Add V4HF, V8HF.
701 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
702 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
704 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
705 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
706 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
707 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
708 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
709 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
710 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
711 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
712 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
714 (neon_vcreate, neon_vreinterpretv8qi<mode>,
715 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
716 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
719 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
720 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
721 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
723 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
724 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
725 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
726 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
727 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
728 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
729 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
730 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
731 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
733 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
735 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
736 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
737 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
738 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
739 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
740 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
741 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
742 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
743 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
744 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
747 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
749 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
751 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
753 * config/arm/arm-builtins.c (v8hf_UP): New.
754 (arm_init_simd_builtin_types): Initialise Float16x8_t.
756 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
758 * config/arm/arm_neon.h (float16x8_t): New typedef.
760 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
762 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
763 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
764 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
765 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
766 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
767 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
768 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
769 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
770 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
771 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
773 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
775 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
776 non-alphanumeric characters in the symbol name.
778 2015-09-07 Marek Polacek <polacek@redhat.com>
781 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
784 2015-09-07 Marek Polacek <polacek@redhat.com>
786 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
788 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
790 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
793 2015-09-04 Jakub Jelinek <jakub@redhat.com>
796 * tree-ssa-live.c: Include cfgloop.h.
797 (remove_unused_locals): Clear loop->simduid if simduid is about
798 to be removed from cfun->local_decls.
800 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
803 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
806 2015-09-04 Tom de Vries <tom@codesourcery.com>
808 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
810 2015-09-04 Jeff Law <law@redhat.com>
812 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
813 unnecessary constructor. It's now trivial and implemented inside...
814 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
815 constructor. Add comments to various methods. Remove unused
817 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
818 * tree-vrp.c (identify_jump_threads): Likewise.
819 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
821 (thread_across_edge): Similarly.
822 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
823 arguments in constructor call.
825 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
827 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
828 temp path contains a '-'.
830 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
831 Petr Murzin <petr.murzin@intel.com>
832 Kirill Yukhin <kirill.yukhin@intel.com>
834 * config/i386/i386-builtin-types.def
835 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
836 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
837 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
838 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
840 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
841 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
842 IX86_BUILTIN_SCATTERALTDIV16SI.
843 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
844 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
845 __builtin_ia32_scatteraltdiv8si.
846 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
847 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
848 IX86_BUILTIN_SCATTERALTDIV16SI.
849 (ix86_vectorize_builtin_scatter): New.
850 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
851 ix86_vectorize_builtin_scatter.
853 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
854 Petr Murzin <petr.murzin@intel.com>
855 Kirill Yukhin <kirill.yukhin@intel.com>
857 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
858 * doc/tm.texi: Regenerate.
859 * target.def: Add scatter builtin.
860 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
861 for loads/stores in case of gather/scatter accordingly.
862 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
863 (vect_check_gather): Rename to ...
864 (vect_check_gather_scatter): this.
865 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
866 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
867 (vect_check_gather_scatter): Use it instead of vect_check_gather.
868 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter variable
869 and new checkings for it accordingly.
871 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
872 (vect_check_gather_scatter): Use it instead of vect_check_gather.
873 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
875 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
877 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
879 (mulv16qi3): New define_expand.
881 2015-09-03 Martin Sebor <msebor@redhat.com>
884 * doc/extend.texi (Other Builtins): Document when the address
885 of a built-in function can be taken.
887 2015-09-03 Richard Biener <rguenther@suse.de>
889 * dwarf2out.c (flush_limbo_die_list): Split out from ...
890 (dwarf2out_early_finish): ... here.
891 (dwarf2out_finish): Do not call dwarf2out_early_finish but
892 flush_limbo_die_list. Assert we have no deferred asm names.
894 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
896 * optabs.c (expand_binop): Don't create a broadcast vector with a
897 source element wider than the inner mode.
899 2015-09-03 Richard Biener <rguenther@suse.de>
901 * varasm.c (output_constant): Use fold_convert instead of
904 2015-09-03 Tom de Vries <tom@codesourcery.com>
906 PR tree-optimization/65637
907 * omp-low.c (expand_omp_for_static_chunk): Handle case that fin_bb has 2
910 2015-09-03 Tom de Vries <tom@codesourcery.com>
912 PR tree-optimization/65637
913 * omp-low.c (find_phi_with_arg_on_edge): New function.
914 (expand_omp_for_static_chunk): Fix inner loop phi.
916 2015-09-03 Tom de Vries <tom@codesourcery.com>
918 PR tree-optimization/65637
919 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
922 2015-09-03 Tom de Vries <tom@codesourcery.com>
924 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
926 2015-09-03 Tom de Vries <tom@codesourcery.com>
928 * doc/invoke.texi (parloops-chunk-size): Add item.
929 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
930 * tree-parloops.c: Include params.h.
931 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
932 param parloops-chunk-size is used.
934 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
937 * fold-const.c (fold_binary_loc) : Move
938 Transform (x >> c) << c into x & (-1<<c) or
939 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
940 types using simplify and match.
941 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
942 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
944 2015-09-03 Richard Biener <rguenther@suse.de>
947 * tree-ssa-structalias.c (ctor_for_analysis): New function.
948 (create_variable_info_for_1): Use ctor_for_analysis instead
950 (create_variable_info_for): Likewise.
952 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
955 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
956 in new callgraph edge.
958 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
963 * config/aarch64/aarch64-simd.md
964 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
965 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
966 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
967 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
969 2015-09-02 Alan Modra <amodra@gmail.com>
971 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
972 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
973 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
975 2015-09-02 Alan Modra <amodra@gmail.com>
978 * config/rs6000/predicates.md (current_file_function_operand): Don't
979 return true for weak symbols.
980 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
982 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
983 Andrew Bennett <andrew.bennett@imgtec.com>
985 * config/mips/mips-opts.h (mips_cb_setting): New enum.
986 * config/mips/mips-protos.h: Add definitions for
987 mips_output_jump and mips_output_equal_conditional_branch
988 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
990 (mips_emit_compare): Add support for the MIPS R6 conditional
992 (mips_process_sync_loop): Likewise.
993 (mips_output_order_conditional_branch): Likewise.
994 (mips16_build_call_stub): Change MIPS_CALL to
996 (mips_print_operand_punctuation): Update 's' case to only
997 apply to micromips r2.
998 (mips_adjust_insn_length): Add support for forbidden slot
1000 (mips_avoid_hazard): Likewise.
1001 (mips_reorg_process_insns): Likewise.
1002 (mips_output_jump): New function.
1003 (mips_output_equal_conditional_branch): Likewise.
1004 (mips_output_conditional_branch): Use jrc/bc if compact
1005 branch support is enabled. Ensure the forbidden slots
1006 between the two branch instructions is filled with a nop.
1007 (mips_option_override): Add support to process the compact
1008 branch option and set the correct defaults. Prevent
1009 non-explict relocs being using for MIPS R6.
1010 (mips_trampoline_init): Add compact branch support.
1011 (mips_mult_zero_zero_cost): Allow zero initialisation of
1012 accumulators with TARGET_DSP.
1013 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
1014 (TARGET_CB_MAYBE): New define.
1015 (TARGET_CB_ALWAYS): New define.
1016 (ISA_HAS_DELAY_SLOTS): New define.
1017 (ISA_HAS_COMPACT_BRANCHES): New define.
1018 (ISA_HAS_JRC): New define.
1019 (MIPS_BRANCH_C): New define.
1020 (MIPS_CALL): Removed.
1021 (MICROMIPS_J): Removed.
1022 * config/mips/mips.md (compact_form): New attr.
1023 (hazard): Add support for forbidden slots.
1024 (define_delay): Add support for compact branches.
1025 (*branch_order<mode>): Likewise.
1026 (*branch_order<mode>_inverted): Likewise.
1027 (*branch_equality<mode>): Likewise.
1028 (*branch_equality<mode>_inverted): Likewise.
1029 (*jump_absolute): Likewise.
1030 (*jump_pic): Likewise.
1031 (indirect_jump): Use mips_output_jump to produce assembly output.
1032 (tablejump_<mode>"): Likewise.
1033 (*<optab>"): Likewise.
1034 (<optab>_internal): Likewise.
1035 (sibcall_internal): Likewise.
1036 (sibcall_value_internal): Likewise.
1037 (sibcall_value_multiple_internal): Likewise.
1038 (call_internal): Likewise.
1039 (call_split): Likewise.
1040 (call_internal_direct): Likewise.
1041 (call_direct_split): Likewise.
1042 (call_value_internal): Likewise.
1043 (call_value_split): Likewise.
1044 (call_value_internal_direct): Likewise.
1045 (call_value_direct_split): Likewise.
1046 (call_value_multiple_internal): Likewise.
1047 (call_value_multiple_split): Likewise.
1048 (mips_get_fcsr_mips16_<mode>): Likewise.
1049 (mips_set_fcsr_mips16_<mode>): Likewise.
1050 (tls_get_tp_mips16_<mode>): Likewise.
1051 * config/mips/mips.opt: Add -mcompact-branches option.
1052 * config/mips/predicates.md (order_operator): Ensure the
1053 conditional compact branches are only used if the ISA them.
1054 * doc/invoke.texi: Document -mcompact-branches option.
1056 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
1059 * lra-lives.c (process_bb_lives): Process move pseudos with the
1060 same value for copies and preferences
1061 * lra-constraints.c (match_reload): Create match reload pseudo
1062 with the same value from single dying input pseudo.
1064 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
1067 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
1069 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
1071 * trans-mem.c: Add contributed-by.
1072 * trans-mem.h: Same.
1074 2015-09-01 Richard Biener <rguenther@suse.de>
1076 * expr.c (expand_expr_real_1): For expanding TERed defs
1077 set the current location to that of the def if not UNKNOWN.
1079 2015-09-01 David Sherwood <david.sherwood@arm.com>
1081 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
1083 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1085 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
1086 then_cost, else_cost fields. Change branch_cost field to unsigned
1088 (end_ifcvt_sequence): Call set_used_flags on each insn in the
1091 (noce_simple_bbs): New function.
1092 (noce_try_move): Bail if basic blocks are not simple.
1093 (noce_try_store_flag): Likewise.
1094 (noce_try_store_flag_constants): Likewise.
1095 (noce_try_addcc): Likewise.
1096 (noce_try_store_flag_mask): Likewise.
1097 (noce_try_cmove): Likewise.
1098 (noce_try_minmax): Likewise.
1099 (noce_try_abs): Likewise.
1100 (noce_try_sign_mask): Likewise.
1101 (noce_try_bitop): Likewise.
1102 (bbs_ok_for_cmove_arith): New function.
1103 (noce_emit_all_but_last): Likewise.
1104 (noce_emit_insn): Likewise.
1105 (noce_emit_bb): Likewise.
1106 (noce_try_cmove_arith): Handle non-simple basic blocks.
1107 (insn_valid_noce_process_p): New function.
1108 (contains_mem_rtx_p): Likewise.
1109 (bb_valid_for_noce_process_p): Likewise.
1110 (noce_process_if_block): Allow non-simple basic blocks
1113 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
1115 * tree-ssa-dom.c (record_equivalences_from_phis,
1116 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
1117 (lookup_avail_expr): Likewise, and remove comment and unused temp.
1119 2015-09-01 Nick Clifton <nickc@redhat.com>
1121 * config/msp430/msp430.opt (mcpu): Fix typo.
1123 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1125 * config/aarch64/aarch64.c (aarch64_set_current_function):
1126 Re-layout any vector parameters have non-simd layout.
1127 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
1129 (aarch64_simd_expand_args): Delete call to the above.
1131 2015-08-31 Mike Frysinger <vapier@gentoo.org>
1133 * doc/invoke.texi (asan-stack): Add space before option.
1135 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
1137 * tree.h (zerop): New function.
1138 * tree.c (zerop): Likewise.
1139 (element_precision): Handle expressions.
1140 * match.pd (define_predicates): Add zerop.
1141 (x <= +Inf): Fix comment.
1142 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
1143 * fold-const.c (fold_binary_loc): ... here. Remove.
1145 2015-08-31 Richard Biener <rguenther@suse.de>
1148 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
1150 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
1152 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
1153 (CEXPI): New operator list.
1154 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
1155 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
1157 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
1159 2015-08-31 Tom de Vries <tom@codesourcery.com>
1161 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
1162 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
1164 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
1165 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
1166 (rewrite_into_loop_closed_ssa): ... here.
1167 (replace_uses_in_dominated_bbs): Remove function.
1168 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
1169 rewrite_into_loop_closed_ssa_1.
1171 2015-08-31 Michael Matz <matz@suse.de>
1173 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
1174 enter entry and exit blocks for reverse post order.
1176 2015-08-31 Richard Biener <rguenther@suse.de>
1178 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
1179 (lto_location_cache::current_sysp): Likewise.
1180 (output_block::current_sysp): Likewise.
1181 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
1182 (lto_location_cache::apply_location_cache): Properly record
1183 system header locations.
1184 (lto_location_cache::input_location): Input whether a file
1186 * lto-streamer-out.c (lto_output_location): Stream whether a file
1189 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1192 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
1194 2015-08-31 Tom de Vries <tom@codesourcery.com>
1196 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
1197 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
1198 Improve function header comments.
1200 2015-08-30 Michael Collison <michael.collison@linaro.org>
1203 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
1206 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1208 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
1209 special_handling bitfield.
1210 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
1211 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
1212 that represents a general xxpermdi.
1213 (insn_is_swappable_p): Add handling for vec_concat of two
1214 doublewords, which maps to a specific xxpermdi.
1215 (adjust_xxpermdi): New function.
1216 (adjust_concat): Likewise.
1217 (handle_special_swappables): Call adjust_xxpermdi and
1219 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
1221 2015-08-30 Rich Felker <dalias@libc.org>
1223 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
1224 case instead of sh[123456ble]-*-*.
1226 2015-08-29 Anatoly Sokolov <aesok@post.ru>
1228 * ira.c (print_unform_and_important_classes,
1229 print_translated_classes): Remove reg_class_names static array.
1230 (print_unform_and_important_classes): Rename to ...
1231 (print_uniform_and_important_classes): ... this.
1232 (ira_debug_allocno_classes): Update accordingly.
1234 2015-08-29 Tom de Vries <tom@codesourcery.com>
1236 PR tree-optimization/46193
1237 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
1240 2015-08-28 Jeff Law <law@redhat.com>
1243 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
1244 unable to find X NE 0 in the tables, return X as the simplified
1246 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
1247 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
1249 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
1250 after removing the control flow statement and unnecessary edges.
1252 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
1255 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
1256 PR tree-optimization/67283
1257 * tree-sra.c (type_consists_of_records_p): Rename to...
1258 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1260 (completely_scalarize_record): Rename to...
1261 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
1263 (scalarize_elem): New.
1265 2015-08-28 Jiong Wang <jiong.wang@arm.com>
1267 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
1268 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
1269 (aarch64_symbol_type): Likewise.
1270 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1272 (aarch64_expand_mov_immediate): Likewise.
1273 (aarch64_print_operand): Likewise.
1274 (aarch64_classify_tls_symbol): Likewise.
1276 2015-08-28 Richard Biener <rguenther@suse.de>
1278 * cgraphunit.c (symbol_table::compile): Move early debug generation
1280 (symbol_table::finalize_compilation_unit): ... back here and
1281 add a !seen_error () guard.
1283 2015-08-27 Sebastian Pop <s.pop@samsung.com>
1285 * toplev.c (process_options): Do not use flag_loop_block,
1286 flag_loop_interchange, and flag_loop_strip_mine. Add check for
1287 flag_loop_optimize_isl.
1289 2015-08-27 Sebastian Pop <s.pop@samsung.com>
1291 * Makefile.in (OBJS): Remove graphite-blocking.o and
1292 graphite-interchange.o.
1293 * common.opt (floop-strip-mine, floop-interchange, floop-block):
1294 Alias of floop-nest-optimize.
1295 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
1296 Document as alias of -floop-nest-optimize.
1297 * graphite-blocking.c: Remove.
1298 * graphite-interchange.c: Remove.
1299 * graphite-optimize-isl.c: Include dumpfile.h.
1300 (getScheduleForBand): Add dump for tiled loops. Use
1301 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
1302 * graphite-poly.c (scop_max_loop_depth): Remove.
1303 (print_scattering_function_1): Remove.
1304 (print_scattering_function): Remove.
1305 (print_scattering_functions): Remove.
1306 (debug_scattering_function): Remove.
1307 (debug_scattering_functions): Remove.
1308 (apply_poly_transforms): Remove use of flag_loop_block,
1309 flag_loop_strip_mine, and flag_loop_interchange.
1310 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
1312 (print_pdr_access_layout): Remove.
1313 (print_pdr): Print ISL representation.
1314 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
1315 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
1317 (openscop_print_pbb_domain): Remove.
1318 (print_pbb): Remove call to print_scattering_function.
1319 (openscop_print_scop_context): Remove.
1320 (print_scop_context): Do not print matrices anymore.
1321 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
1322 SCOP_TRANSFORMED_SCHEDULE.
1323 (print_isl_set): Add printing of a new line.
1324 (print_isl_map): Same.
1325 (print_isl_aff): Same.
1326 (print_isl_constraint): Same.
1327 (loop_to_lst): Remove.
1328 (scop_to_lst): Remove.
1329 (lst_indent_to): Remove.
1330 (print_lst): Remove.
1331 (debug_lst): Remove.
1332 (dot_lst_1): Remove.
1334 (reverse_loop_at_level): Remove.
1335 (reverse_loop_for_pbbs): Remove.
1336 * graphite-poly.h (pdr_dim_iter_domain): Remove.
1337 (pdr_nb_params): Remove.
1338 (pdr_alias_set_dim): Remove.
1339 (pdr_subscript_dim): Remove.
1340 (pdr_iterator_dim): Remove.
1341 (pdr_parameter_dim): Remove.
1342 (same_pdr_p): Remove.
1343 (struct poly_scattering): Remove.
1344 (struct poly_bb): Remove _original, _transformed, _saved.
1345 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
1346 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
1347 (PBB_NB_LOCAL_VARIABLES): Remove.
1348 (PBB_NB_SCATTERING_TRANSFORM): Remove.
1349 (schedule_to_scattering): Remove.
1350 (number_of_write_pdrs): Remove.
1351 (pbb_dim_iter_domain): Remove.
1352 (pbb_nb_params): Remove.
1353 (pbb_nb_scattering_orig): Remove.
1354 (pbb_nb_scattering_transform): Remove.
1355 (pbb_nb_dynamic_scattering_transform): Remove.
1356 (pbb_nb_local_vars): Remove.
1357 (pbb_iterator_dim): Remove.
1358 (pbb_parameter_dim): Remove.
1359 (psco_scattering_dim): Remove.
1360 (psct_scattering_dim): Remove.
1361 (psct_local_var_dim): Remove.
1362 (psco_iterator_dim): Remove.
1363 (psct_iterator_dim): Remove.
1364 (psco_parameter_dim): Remove.
1365 (psct_parameter_dim): Remove.
1366 (psct_dynamic_dim): Remove.
1367 (psct_static_dim): Remove.
1368 (psct_add_local_variable): Remove.
1369 (new_lst_loop): Remove.
1370 (new_lst_stmt): Remove.
1373 (lst_add_loop_under_loop): Remove.
1374 (lst_depth): Remove.
1375 (lst_dewey_number): Remove.
1376 (lst_dewey_number_at_depth): Remove.
1379 (lst_find_pbb): Remove.
1380 (find_lst_loop): Remove.
1381 (lst_find_first_pbb): Remove.
1382 (lst_empty_p): Remove.
1383 (lst_find_last_pbb): Remove.
1384 (lst_contains_p): Remove.
1385 (lst_contains_pbb): Remove.
1386 (lst_create_nest): Remove.
1387 (lst_remove_from_sequence): Remove.
1388 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
1389 (lst_niter_for_loop): Remove.
1390 (pbb_update_scattering): Remove.
1391 (lst_update_scattering_under): Remove.
1392 (lst_update_scattering): Remove.
1393 (lst_insert_in_sequence): Remove.
1394 (lst_replace): Remove.
1395 (lst_substitute_3): Remove.
1396 (lst_distribute_lst): Remove.
1397 (lst_remove_all_before_including_pbb): Remove.
1398 (lst_remove_all_before_excluding_pbb): Remove.
1399 (struct scop): Remove original_schedule, transformed_schedule, and
1401 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
1402 (SCOP_SAVED_SCHEDULE): Remove.
1403 (poly_scattering_new): Remove.
1404 (poly_scattering_free): Remove.
1405 (poly_scattering_copy): Remove.
1406 (store_scattering_pbb): Remove.
1407 (store_lst_schedule): Remove.
1408 (restore_lst_schedule): Remove.
1409 (store_scattering): Remove.
1410 (restore_scattering_pbb): Remove.
1411 (restore_scattering): Remove.
1412 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
1413 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
1414 compute the scattering polyhedron dimension from the dimension of
1416 (build_scop_scattering): Update call to
1417 build_pbb_scattering_polyhedrons.
1418 (build_poly_scop): Remove call to scop_to_lst.
1419 * graphite.c (graphite_transform_loops): Add call to print_scop.
1420 (gate_graphite_transforms): Remove use of flag_loop_block,
1421 flag_loop_interchange, and flag_loop_strip_mine.
1423 2015-08-27 Sebastian Pop <s.pop@samsung.com>
1425 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
1426 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
1427 -floop-nest-optimize.
1428 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
1429 (generate_luj_sepclass): Remove.
1430 (generate_luj_options): Remove.
1431 (set_options): Remove opt_luj.
1432 (scop_to_isl_ast): Remove opt_luj.
1433 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
1434 flag_loop_unroll_jam.
1435 (getPrevectorMap_full): Remove.
1436 (getScheduleForBandList): Remove map_sepcl.
1437 (getScheduleMap): Same.
1438 (apply_schedule_map_to_scop): Remove sepcl.
1439 (optimize_isl): Same.
1440 * graphite-poly.c (apply_poly_transforms): Remove check for
1441 flag_loop_unroll_jam.
1442 (new_poly_bb): Remove map_sepclass.
1443 * graphite-poly.h (struct poly_bb): Same.
1444 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
1445 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
1446 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
1447 * toplev.c (process_options): Remove flag_loop_unroll_jam.
1449 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
1452 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
1454 (UNSPEC_ADD_CARRY): Remove.
1455 (addqi3_cconly_overflow): New expander.
1456 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
1457 Adjust for changed add<mode>3_carry.
1458 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
1459 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
1460 (<plusminus_insn><mode>3_carry): Remove expander.
1461 (*<plusminus_insn><mode>3_carry): Split insn pattern to
1462 add<mode>3_carry and sub<mode>3_carry.
1463 (plusminus_carry_mnemonic): Remove code attribute.
1464 (add<mode>3_carry): Canonicalize insn pattern.
1465 (*addsi3_carry_zext): Ditto.
1466 (sub<mode>3_carry): Ditto.
1467 (*subsi3_carry_zext): Ditto.
1468 (adcx<mode>3): Remove insn pattern.
1469 (addcarry<mode>): New insn pattern.
1470 (subborrow<mode>): Ditto.
1471 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
1472 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
1473 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
1474 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
1475 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
1476 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
1477 Rewrite expander to not clobber carry flag chains.
1479 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
1481 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
1482 instead of a rotate.
1484 2015-08-27 Marek Polacek <polacek@redhat.com>
1487 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
1488 an entry into an irreducible region.
1490 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1492 * configure: Regenerate.
1494 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
1496 PR tree-optimization/67283
1497 * tree-sra.c (type_consists_of_records_p): Rename to...
1498 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1500 (completely_scalarize_record): Rename to...
1501 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
1502 (scalarize_elem): New.
1504 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
1506 * tree-sra.c (completely_scalarize_var): Rename to...
1507 (create_total_scalarization_access): ... Here. Drop call to
1508 completely_scalarize_record.
1510 (analyze_all_variable_accesses): Replace completely_scalarize_var
1511 with create_total_scalarization_access and completely_scalarize_record.
1513 2015-08-27 Alan Modra <amodra@gmail.com>
1516 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
1519 2015-08-27 Richard Biener <rguenther@suse.de>
1521 * passes.c (rest_of_decl_compilation): Guard early_global_decl
1522 call with !seen_error ().
1523 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
1524 early debug generation and finish...
1525 (symbol_table::compile): ... here to put it after a !seen_error ()
1528 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1530 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
1533 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1534 Andre Vieira <andre.simoesdiasvieira@arm.com>
1536 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
1537 (*cb<optab><mode>1): Likewise.
1538 (*tb<optab><mode>1): Likewise.
1539 (*cb<optab><mode>1): Likewise.
1540 * config/aarch64/iterators.md (inv_cb): New code attribute.
1542 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
1543 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
1545 2015-08-27 Richard Biener <rguenther@suse.de>
1547 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
1549 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
1551 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
1554 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1556 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
1559 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
1561 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
1562 floating point in VSX registers.
1563 (rs6000_output_move_128bit): Always print out the set insn if we
1564 can't generate an appropriate 128-bit move.
1565 (rs6000_generate_compare): Add support for IEEE 128-bit floating
1566 point in VSX registers comparisons.
1567 (rs6000_expand_float128_convert): Likewise.
1569 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
1570 predicate for only GPR hard registers.
1572 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
1573 modes to iterators. Add new iterators for moving 128-bit values in
1574 scalar FPR registers and VSX registers.
1575 (FMOVE128): Likewise.
1576 (FMOVE128_FPR): Likewise.
1577 (FMOVE128_GPR): Likewise.
1578 (FMOVE128_VSX): Likewise.
1579 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
1584 (RELOAD): Add IEEE 128-bit floating point modes.
1585 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
1586 floating point in VSX registers modes.
1587 (signbit<mode>2, IBM128 iterator): Likewise.
1588 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
1589 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
1591 (neg<mode>2, TFIFKF iterator): Likewise.
1592 (negtf2_internal): Likewise.
1594 (abs<mode>2, TFIFKF iterator): Likewise.
1595 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
1596 VSX insn support for negate, absolute value, and negative absolute
1598 (ieee_128bit_vsx_neg<mode>2): Likewise.
1599 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
1600 (ieee_128bit_vsx_abs<mode>2): Likewise.
1601 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
1602 (ieee_128bit_vsx_nabs<mode>2): Likewise.
1603 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
1604 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
1605 floating point in VSX registers.
1606 (unpack<mode>_dm): Likewise.
1607 (unpack<mode>_nodm): Likewise.
1608 (pack<mode>): Likewise.
1609 (unpackv1ti): Likewise.
1610 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
1611 (packv1ti): Likewise.
1612 (pack<mode>, FMOVE128_VSX iterator): Likewise.
1613 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
1615 (extenddftf2_internal): Likewise.
1616 (trunctfdf2): Likewise.
1617 (trunctfdf2_internal2): Likewise.
1618 (fix_trunc_helper): Likewise.
1619 (fix_trunctfdi2"): Likewise.
1620 (floatditf2): Likewise.
1621 (floatuns<mode>tf2): Likewise.
1622 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
1623 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
1624 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
1625 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
1626 (float<SDI:mode><IFKF:mode>2): Likewise.
1627 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
1629 2015-08-26 Renlin Li <renlin.li@arm.com>
1631 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
1633 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
1634 Jiong Wang <jiong.wang@arm.com>
1636 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
1637 (tlsie_tiny_<mode>): New define_insn.
1638 (tlsie_tiny_sidi): Likewise.
1639 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
1641 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
1642 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
1644 (aarch64_expand_mov_immediate): Likewise.
1645 (aarch64_print_operand): Likewise.
1646 (arch64_classify_tls_symbol): Likewise.
1648 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
1650 * config/arm/arm-arches.def: Replace single value flags with
1651 an initializer built from ARM_FSET_MAKE_CPU1.
1652 * config/arm/arm-cores.def: Likewise.
1653 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
1654 derivation from the ARM_CORE macro definition, use the given value
1656 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
1657 ARM_ARCH macro definition, use the given value instead.
1659 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
1661 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
1663 (struct builtin_description): Replace field mask with field
1665 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
1666 (IWMMXT2_BUILTIN): Likewise.
1667 (IWMMXT2_BUILTIN2): Likewise.
1668 (FP_BUILTIN): Likewise.
1669 (CRC32_BUILTIN): Likewise.
1670 (CRYPTO_BUILTIN): Likewise.
1671 (iwmmx_mbuiltin): Likewise.
1672 (iwmmx2_mbuiltin): Likewise.
1673 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
1674 struct builtin_description.
1676 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
1678 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
1679 (struct builtin_description): Change type of mask to unsigned
1681 * config/arm/arm-protos.h (insn_flags): Declare as type
1683 (tune_flags): Likewise.
1684 * config/arm/arm.c (feature_count): New.
1685 (insn_flags): Define as type arm_feature_set.
1686 (tune_flags): Likewise.
1687 (struct processors): Define field flags as type arm_feature_set.
1688 (all_cores): Update for change to struct processors.
1689 (all_architectures): Likewise.
1690 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
1692 (arm_option_override_internal): Likewise.
1693 (arm_option_override): Likewise.
1695 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
1696 Jiong Wang <jiong.wang@arm.com>
1698 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
1699 tls size for tiny, small, large memory model.
1700 (aarch64_load_symref_appropriately): Support new symbol types.
1701 (aarch64_expand_mov_immediate): Likewise.
1702 (aarch64_print_operand): Likewise.
1703 (aarch64_classify_tls_symbol): Likewise.
1704 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
1705 (aarch64_symbol_type): Likewise.
1706 * config/aarch64/aarch64.md (tlsle): Deleted.
1707 (tlsle12_<mode>): New define_insn.
1708 (tlsle24_<mode>): Likewise.
1709 (tlsle32_<mode>): Likewise.
1710 (tlsle48_<mode>): Likewise.
1711 * doc/sourcebuild.texi (AArch64-specific attributes): Document
1714 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
1716 * config/arm/arm-protos.h (FL_NONE): New.
1718 (arm_feature_set): New.
1719 (ARM_FSET_MAKE): New.
1720 (ARM_FSET_MAKE_CPU1): New.
1721 (ARM_FSET_MAKE_CPU2): New.
1722 (ARM_FSET_CPU1): New.
1723 (ARM_FSET_CPU2): New.
1724 (ARM_FSET_EMPTY): New.
1725 (ARM_FSET_ANY): New.
1726 (ARM_FSET_HAS_CPU1): New.
1727 (ARM_FSET_HAS_CPU2): New.
1728 (ARM_FSET_HAS_CPU): New.
1729 (ARM_FSET_ADD_CPU1): New.
1730 (ARM_FSET_ADD_CPU2): New.
1731 (ARM_FSET_DEL_CPU1): New.
1732 (ARM_FSET_DEL_CPU2): New.
1733 (ARM_FSET_UNION): New.
1734 (ARM_FSET_INTER): New.
1735 (ARM_FSET_XOR): New.
1736 (ARM_FSET_EXCLUDE): New.
1737 (AFM_FSET_IS_EMPTY): New.
1738 (ARM_FSET_CPU_SUBSET): New.
1740 2015-08-26 Jiong Wang <jiong.wang@arm.com>
1742 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
1743 SYMBOL_TLSLE to SYMBOL_TLSLE24.
1744 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1746 (aarch64_expand_mov_immediate): Likewise.
1747 (aarch64_print_operand): Likewise.
1748 (aarch64_classify_symbol): Likewise.
1750 2015-08-26 Jiong Wang <jiong.wang@arm.com>
1752 * config/aarch64/aarch64.opt (mtls-size): New entry.
1753 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
1754 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
1755 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
1757 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
1759 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
1760 ARM_CORE entry. Fix some white-space.
1761 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
1762 ARM_CORE definition.
1764 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1766 * fold-const.c (fold_binary_loc) : Move Optimize
1767 root(x)*root(y) as root(x*y) to match.pd.
1768 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
1769 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
1770 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
1771 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
1772 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
1773 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
1774 (mult (exps:s @0) (exps:s @1)) : New simplifier.
1775 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
1776 (rdiv @0 (exps:s @1)) : New simplifier.
1778 2015-08-25 Joseph Myers <joseph@codesourcery.com>
1780 * gcc.c (driver::finalize): Only assign to extra_specs if
1783 2015-08-25 Marek Polacek <polacek@redhat.com>
1786 * varasm.c (declare_weak): Return after giving an error.
1788 2015-08-25 David Malcolm <dmalcolm@redhat.com>
1790 * gcc-main.c (main): Add params to driver ctor.
1791 * gcc.c (class env_manager): New.
1793 (env_manager::init): New.
1794 (env_manager::get): New.
1795 (env_manager::xput): New.
1796 (env_manager::restore): New.
1797 Poison getenv and putenv.
1798 (DEFAULT_TARGET_SYSTEM_ROOT): New.
1799 (target_system_root): Update initialization to use
1800 DEFAULT_TARGET_SYSTEM_ROOT.
1801 (struct spec_list): Add field "default_ptr".
1802 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
1803 (init_spec): Likewise.
1804 (set_spec): Clear field "default_ptr".
1805 (read_specs): Free "spec" and "buffer".
1806 (xputenv): Reimplement in terms of env_manager.
1807 (process_command): Replace ::getenv calls with calls to the
1808 env_manager singleton.
1809 (process_brace_body): Free string in three places.
1810 (driver::driver): New.
1811 (driver::~driver): New.
1812 (used_arg): Convert from a function to...
1813 (class used_arg_t): ...this class, and...
1814 (used_arg): ...this new global instance.
1815 (used_arg_t::finalize): New function.
1816 (getenv_spec_function): Add "const" to local "value". Replace
1817 ::getenv call with call to the env_manager singleton.
1818 (path_prefix_reset): New function.
1819 (driver::finalize): New function.
1820 * gcc.h (driver::driver): New.
1821 (driver::~driver): New.
1822 (driver::finalize): New.
1824 2015-08-25 Nathan Sidwell <nathan@acm.org>
1826 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
1827 target doesn't have one.
1829 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
1832 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
1834 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
1837 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
1838 a define_insn, remove second alternative.
1840 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
1841 Joseph Myers <joseph@codesourcery.com>
1843 * gcc.c (struct switchstr): Expand comment.
1845 2015-08-25 Nathan Sidwell <nathan@acm.org>
1847 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
1848 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
1850 2015-08-25 Richard Biener <rguenther@suse.de>
1853 * genmatch.c (expr::gen_transform): Verify the result of
1854 builtin_decl_implicit.
1855 (dt_simplify::gen_1): Likewise.
1857 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
1859 * config/arm/constraints.md: Also list Cs and US ARM-specific
1860 constraints as used.
1862 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
1865 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
1867 (nonpic_symbol_mentioned_p): Likewise.
1868 (sh_delegitimize_address): Likewise.
1869 (sh_function_ok_for_sibcall): Take into account weak symbols.
1870 (sh_expand_sym_label2reg): New.
1871 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
1872 * config/sh/sh.md (UNSPEC_PCREL): New enum.
1873 (call_pcrel): Use sh_expand_sym_label2reg.
1874 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1875 (symPCREL_label2reg) New expand.
1877 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
1879 * graphite-poly.c: Change type of region from void* to sese.
1880 * graphite-poly.h (struct scop): Changing the type of scop::region
1881 from void* to sese. Change accessor macro accordingly.
1882 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
1884 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
1886 * graphite-scop-detection.c (stmt_simple_for_scop_p):
1887 Constrain only on INTEGER_TYPE.
1889 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1892 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
1893 -mefficient-unaligned-vsx on ISA 2.7.
1895 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
1896 option to a masked option.
1898 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
1899 logic for -mefficient-unaligned-vsx so that it is set via an arch
1900 ISA option, instead of being set if -mtune=power8 is set. Move
1901 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
1902 near other default option handling.
1904 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1906 * genflags.c (gen_macro): Delete.
1907 (gen_proto): Don't create GEN.*CALL.* macros.
1908 * gensupport.h (get_file_location): Declare.
1909 * gensupport.c (rtx_locs): New variable.
1910 (read_md_rtx): Record rtx locations.
1911 (get_file_location): New function.
1912 * target-insns.def (call, call_pop, call_value, call_value_pop)
1913 (sibcall, sibcall_value): New patterns.
1914 * gentarget-def.c (parse_argument): New function.
1915 (def_target_insn): Use it. Handle optional operands. Raise an
1916 error if an .md pattern has the wrong number of operands for the
1917 pattern name. Remove the names of unused operands from the prototype.
1918 * builtins.c (expand_builtin_apply): Use targetm functions
1919 instead of HAVE_call_value and GEN_CALL_VALUE.
1920 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
1921 and sibcall_value_pop.
1922 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
1924 * config/alpha/alpha.md (untyped_call): Likewise.
1925 * config/iq2000/iq2000.md (untyped_call): Likewise.
1926 * config/m68k/m68k.md (untyped_call): Likewise.
1927 * config/mips/mips.md (untyped_call): Likewise.
1928 * config/pa/pa.md (untyped_call): Likewise.
1929 * config/rs6000/rs6000.md (untyped_call): Likewise.
1930 * config/sparc/sparc.md (untyped_call): Likewise.
1931 * config/tilegx/tilegx.md (untyped_call): Likewise.
1932 * config/tilepro/tilepro.md (untyped_call): Likewise.
1933 * config/visium/visium.md (untyped_call): Likewise.
1934 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
1935 gen_call_value instead of GEN_CALL_VALUE.
1936 * config/arm/arm.md (untyped_call): Likewise.
1937 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
1940 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1942 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
1943 (have_cbranchcc4): New variable.
1944 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
1945 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
1946 (if_convert): Initialize have_cbranchcc4.
1948 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1950 * builtins.c (expand_cmpstrn): Rename to...
1951 (expand_cmpstrn_or_cmpmem): ...this.
1952 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
1953 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
1954 Remove mode argument.
1955 (expand_builtin): Update accordingly.
1957 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1959 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
1960 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
1961 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
1962 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
1963 Add predicates for operands 0 and 3.
1964 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
1966 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
1967 immediate_operand to nonmemory_operand.
1969 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
1971 * df-scan.c (df_insn_info_init_fields): New function, split out
1973 (df_insn_create_insn_record): ...here.
1974 (df_insn_info_free_fields): New function, split out from...
1975 (df_insn_info_delete): ...here.
1976 (df_insn_rescan): Use the new functions instead of freeing and
1977 reallocating the df_insn_info.
1979 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1981 * doc/install.texi (Binaries): Remove links no longer valid.
1983 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
1985 * config/nvptx/mkoffload.c (process): Replace
1986 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
1988 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
1991 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
1993 2015-08-24 Renlin Li <renlin.li@arm.com>
1995 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
1996 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
1997 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
1998 * config/arm/constraints.md ("j"): Add check for high code.
2000 2015-08-24 Tom de Vries <tom@codesourcery.com>
2002 PR tree-optimization/65468
2003 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
2006 2015-08-24 Nathan Sidwell <nathan@acm.org>
2008 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
2009 change to nvptx_type_from_mode call. Use arg_promotion for both
2010 split and non-split args.
2012 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2014 * target-insns.def (movstr): New pattern.
2015 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
2016 (expand_movstr): Use targetm rather than HAVE_movstr/
2019 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
2021 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
2024 2015-08-24 Andrew Pinski <apinski@cavium.com>
2026 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
2027 AARCH64_EXTRA_TUNING_OPTION.
2028 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
2029 (aarch64_extra_tuning_flags): Base the shifted value on the index instead
2030 of the argument to AARCH64_EXTRA_TUNING_OPTION.
2031 * config/aarch64/aarch64.c: Remove the last argument to
2032 AARCH64_EXTRA_TUNING_OPTION.
2034 2015-08-23 Nathan Sidwell <nathan@acm.org>
2036 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
2038 (nvptx_declare_function_name): Insert formatting tabs for
2041 2015-08-23 Tom de Vries <tom@codesourcery.com>
2043 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
2044 parm_decl, rather than generating a dummy default def in cfun.
2045 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
2046 ssa_name from cfun and child_fn do not share a stmt as def stmt.
2047 (move_stmt_op): Handle PARM_DECl.
2048 (gather_ssa_name_hash_map_from): New function.
2049 (move_sese_region_to_fn): Add default defs for function params, and add
2050 them to vars_map. Release copied ssa names.
2051 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
2053 2015-08-23 Tom de Vries <tom@codesourcery.com>
2055 * doc/sourcebuild.texi: Rename vect_no_int_max with
2056 vect_no_int_min_max. Update description.
2058 2015-08-22 Andrew Pinski <apinski@cavium.com>
2060 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
2061 * config/aarch64/aarch64-protos.h
2062 (aarch64_fusion_pairs_index): New enum.
2063 (aarch64_fusion_pairs): Base the shifted value on the index instead
2064 Rewrite AARCH64_FUSE_ALL to be based on the end index.
2065 of the argument to AARCH64_FUSION_PAIR.
2066 * config/aarch64/aarch64.c: Remove the last argument to
2067 AARCH64_FUSION_PAIR.
2069 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
2071 * dominance.c (new_zero_array): Define.
2072 (dom_info): Redefine as class with proper encapsulation.
2073 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
2075 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
2076 allocations/deallocations. Pass function as parameter (instead of
2078 (dom_info::get_idom): Define accessor method.
2079 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
2080 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
2081 (calculate_dominance_info): Adjust to use dom_info class.
2082 (verify_dominators): Likewise.
2084 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
2086 * print-rtl.c (print_rtx): Check the correct range for
2087 flag_dump_unnumbered_links to behave as documented.
2089 PR rtl-optimization/67227
2090 PR rtl-optimization/64164
2091 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
2092 (nonoverlapping_memrefs_p): Test offsets and sizes when given
2093 identical gimple_reg exprs.
2095 2015-08-21 Nathan Sidwell <nathan@acm.org>
2097 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
2099 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
2100 crtl->stack_alignment_needed to determine alignment.
2101 (nvptx_get_drap_rtx): New.
2102 (TARGET_GET_DRAP_RTX): Override.
2103 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
2105 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2107 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
2109 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2111 * configure.ac: Remove uwin* cases.
2112 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
2113 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
2114 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
2115 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
2116 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
2117 i[34567]86-*-uwin*, powerpc-*-beos*.
2119 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
2121 * gencodes.c (gencodes): Print the comma for the preceding
2122 enum value rather than the current one. Use aliased enum values
2123 rather than #defines for compiled-out patterns.
2124 (main): Update accordingly. Replace LAST_INSN_CODE with
2126 * lra.c (insn_code_data): Update accordingly.
2127 (finish_insn_code_data_once, get_static_insn_data): Likewise.
2128 * recog.h (target_recog): Likewise.
2129 (preprocess_insn_constraints): Change parameter to unsigned int.
2130 * recog.c (preprocess_insn_constraints): Likewise.
2131 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
2132 * tree-vect-stmts.c (vectorizable_operation): Simplify.
2134 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
2136 PR rtl-optimization/61657
2137 * loop-iv.c (iv_number_of_iterations): Declare up and down as
2138 unsigned. Remove superflous uint64_t cast.
2140 2014-08-21 Felix Yang <felix.yang@huawei.com>
2141 Jiji Jiang <jiangjiji@huawei.com>
2143 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
2144 and get builtin function code directly from CALL.
2145 (gimple_stringop_fixed_value): Modified accordingly.
2146 (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
2147 accordingly and only accept BUILT_IN_NORMAL string operations.
2149 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
2151 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
2153 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2155 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
2157 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
2158 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
2159 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
2160 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
2161 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
2162 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
2163 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
2164 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
2165 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
2166 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
2168 * match.pd (SIN ) : New Operator.
2169 (TAN) : New Operator.
2170 (mult (SQRT@1 @0) @1) : New simplifier.
2171 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
2172 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
2173 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
2174 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
2175 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
2176 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
2177 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
2178 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
2179 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
2180 (rdiv @0 (POW:s @1 @2)) : New simplifier.
2182 2015-08-21 Bin Cheng <bin.cheng@arm.com>
2184 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
2185 loop if EXPR is simplified to const value.
2187 2015-08-21 Yury Gribov <y.gribov@samsung.com>
2189 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
2190 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
2192 2015-08-21 Richard Biener <rguenther@suse.de>
2195 * gimple-fold.c (replace_stmt_with_simplification): Assert
2196 seq is empty when replacing a call with itself but different
2198 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
2199 a call require that it is const.
2201 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2203 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
2204 * builtins.c (get_object_alignment_2): Adjust.
2205 * varasm.c (align_variable): Likewise.
2206 (get_variable_align): Likewise.
2207 (build_constant_desc): Likewise.
2208 (force_const_mem): Likewise.
2209 * doc/tm.texi.in: Likewise.
2210 * doc/tm.texi: Regenerate.
2212 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2214 * genconfig.c (main): Always define HAVE_cc0.
2215 * recog.c (rest_of_handle_peephole2): Adjust.
2217 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2219 * reorg.c (relax_delay_slots): Don't use #if to check value of
2222 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2224 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
2225 * targhooks.c (default_have_conditional_execution): Adjust.
2227 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
2229 * rtl.h (rtvec_all_equal_p): Declare.
2230 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
2231 * rtl.c (rtvec_all_equal_p): New function.
2232 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
2233 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
2234 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
2235 * config/arm/arm.c (neon_vdup_constant): Likewise.
2236 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
2237 * config/tilegx/constraints.md (W, Y): Likewise.
2238 * config/tilepro/constraints.md (W, Y): Likewise.
2239 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
2240 (classify_immediate): Use unwrap_const_vec_duplicate.
2241 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
2242 (reg_or_v2s8bit_operand): Likewise.
2243 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
2244 (reg_or_v4s8bit_operand): Likewise.
2246 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2248 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
2249 (vec_shasigma_be): New #define.
2250 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
2251 (VPMSUMH): Likewise.
2252 (VPMSUMW): Likewise.
2253 (VPMSUMD): Likewise.
2254 (VPMSUM): New BU_P8V_OVERLOAD_2.
2255 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
2256 entries for VEC_MADD and VEC_VPMSUM.
2258 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
2260 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
2261 Multiply argument avr_n_flash by 64 to match unit of "KiB".
2262 (avr_pgm_check_var_decl): Same.
2264 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
2266 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
2267 initialization of HFmode scalar type (float16_t) to...
2268 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
2271 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
2273 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
2274 having an -mfp16-format.
2276 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
2278 * config/i386/predicates.md (vector_all_ones_operand): Use
2279 CONSTM1_RTX to simplify definition.
2281 2015-08-20 Richard Biener <rguenther@suse.de>
2283 * toplev.c (compile_file): Remove loop calling late_global_decl
2285 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
2286 on decls we assembled.
2288 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
2290 * common/config/aarch64/aarch64-common.c
2291 (AARCH64_CPU_NAME_LENGTH): Delete.
2292 (aarch64_option_extension): New.
2293 (all_extensions): Likewise.
2294 (processor_name_to_arch): Likewise.
2295 (arch_to_arch_name): Likewise.
2297 (all_architectures): Likewise.
2298 (aarch64_get_extension_string_for_isa_flags): Likewise.
2299 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
2301 * config/aarch64/aarch64-protos.h
2302 (aarch64_get_extension_string_for_isa_flags): New.
2303 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
2304 (aarch64_option_print): Get the string to print from
2305 aarch64_get_extension_string_for_isa_flags.
2306 (aarch64_declare_function_name): Likewise.
2307 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
2308 (MCPU_TO_MARCH_SPEC): This.
2309 (ASM_CPU_SPEC): Use it.
2310 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
2311 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
2312 (EXTRA_SPEC_FUNCTIONS): Use it.
2314 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
2316 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
2317 expansion when !ISA_HAS_LWL_LWR.
2318 (mips_block_move_straight): Update the size of elements copied to
2319 account for alignment when !ISA_HAS_LWL_LWR.
2320 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
2322 2015-08-19 Jiong Wang <jiong.wang@arm.com>
2324 * expr.c (expand_expr_real_2): Check gimple statement during
2327 2015-08-19 Magnus Granberg <zorry@gentoo.org>
2329 * common.opt (fstack-protector): Initialize to -1.
2330 (fstack-protector-all): Likewise.
2331 (fstack-protector-strong): Likewise.
2332 (fstack-protector-explicit): Likewise.
2333 * configure.ac: Add --enable-default-ssp.
2334 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
2335 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
2337 * doc/install.texi: Document --enable-default-ssp.
2338 * config.in: Regenerated.
2339 * configure: Likewise.
2341 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
2343 PR rtl-optimization/64164
2344 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
2345 (parm_in_stack_slot_p): ... this. Disregard mode, what
2346 matters is whether the parm will live in a pseudo or a stack
2348 (expand_one_ssa_partition): Deal with params without a default
2349 def. Disregard mode.
2350 * cfgexpand.h: Renamed function declaration.
2351 * tree-ssa-coalesce.c: Adjust.
2352 * function.c (split_complex_args): Allocate stack slot for
2353 unassigned parms before splitting.
2354 (parm_in_unassigned_mem_p): New. Use it instead of
2355 parm_maybe_byref_p throughout this file.
2356 (assign_parm_setup_block): Use it. Accept pseudos in the
2357 expand-assigned rtl.
2358 (assign_parm_setup_reg): Drop BLKmode requirement.
2359 (assign_parm_setup_stack): Allocate and fill in the address of
2360 unassigned MEM parms.
2362 2015-08-19 David Sherwood <david.sherwood@arm.com>
2364 * genmodes.c (emit_mode_unit_size_inline): New function.
2365 (emit_mode_unit_precision_inline): New function.
2366 (emit_insn_modes_h): Emit new #define. Emit new functions.
2367 (emit_mode_unit_size): New function.
2368 (emit_mode_unit_precision): New function.
2369 (emit_mode_adjustments): Add mode_unit_size adjustments.
2370 (emit_insn_modes_c): Emit new arrays.
2371 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
2372 use new inline methods.
2374 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2376 * config/aarch64/aarch64.c (bit_count): Delete prototype
2378 (aarch64_print_operand): Use popcount_hwi instead of the above.
2380 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2382 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
2385 2015-08-19 Marek Polacek <polacek@redhat.com>
2388 * gimple-ssa-isolate-paths.c
2389 (insert_trap_and_remove_trailing_statements): Rename to ...
2390 (insert_trap): ... this. Don't remove trailing statements; split
2392 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
2394 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
2397 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
2398 conditionalize the whole on __GNUC__. Add fallback code
2399 depending neither on undefined nor implementation-defined behaviour.
2401 2015-08-19 Jiong Wang <jiong.wang@arm.com>
2403 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
2404 whitespaces with tab.
2406 2015-08-19 Florian Weimer <fweimer@redhat.com>
2408 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
2409 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
2410 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
2411 Move Name_Ids instantiation to the Prj.Proc package, to avoid
2414 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2416 * config/arm/arm.c (bounds_check): Use %wd print format
2417 for HOST_WIDE_INT arguments.
2419 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
2421 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
2422 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
2423 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
2424 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
2425 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
2426 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
2427 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
2428 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
2429 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
2432 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
2434 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
2435 function.c, graphite-scop-detection.c, haifa-sched.c,
2436 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
2437 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
2438 varasm.c: Remove typedefs of structs.
2440 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
2442 * config/rs6000/altivec.h (vec_adde): New define.
2443 (vec_addec): Likewise.
2444 (vec_double): Likewise.
2445 (vec_bperm): Likewise.
2447 * config/rs6000/rs6000-builtin.def (ADDE): New
2448 BU_ALTIVEC_OVERLOAD_3.
2450 (DOUBLE): New BU_VSX_OVERLOAD_1.
2451 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
2452 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
2453 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
2454 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
2455 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
2456 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
2457 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
2458 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
2459 and P8V_BUILTIN_VEC_VBPERMQ.
2461 2015-08-18 Jason Merrill <jason@redhat.com>
2463 * print-tree.c (print_node): Handle TREE_BINFO.
2465 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2468 * builtins.c (expand_builtin_signbit): Add asserts to make sure
2469 we can expand BUILT_IN_SIGNBIT inline.
2470 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
2471 * doc/extend.texi: Document the type-generic __builtin_signbit.
2473 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
2475 PR rtl-optimization/67218
2476 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
2477 (simplify_unary_operation_1): Use it.
2479 2015-08-18 Marek Polacek <polacek@redhat.com>
2482 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
2483 if the call isn't valid.
2484 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
2485 gimple_call_builtin_p.
2486 (call_may_clobber_ref_p_1): Likewise.
2487 (stmt_kills_ref_p): Likewise.
2489 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
2491 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
2492 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
2493 (mips_hard_regno_scratch_ok): Likewise.
2494 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
2495 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
2497 2015-08-18 Bin Cheng <bin.cheng@arm.com>
2499 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
2500 (determine_value_range): Call refine_value_range_using_guard for
2501 each loop initial condition to improve value range.
2503 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
2505 * config/i386/i386.c: Remove include of fibheap.h.
2507 2015-08-17 Richard Biener <rguenther@suse.de>
2509 PR tree-optimization/67221
2510 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
2511 (sccvn_dom_walker::before_dom_children): Mark backedges of
2512 non-executable blocks as not executable.
2514 2015-08-17 David Sherwood <david.sherwood@arm.com>
2516 * config/arm/arm.c (neon_element_bits): Replace call to
2517 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
2518 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
2519 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
2520 (neon_vdup_lane<mode>): Likewise.
2521 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
2522 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
2523 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
2524 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
2525 * config/spu/spu.c (arith_immediate_p): Likewise.
2526 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
2527 * expr.c (expand_expr_real_2): Likewise.
2528 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
2529 * simplify-rtx.c (simplify_immed_subreg): Likewise.
2530 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
2531 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
2533 * fold-const.c (fold_binary_loc): Replace call to
2534 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
2535 GET_MODE_UNIT_PRECISION (m).
2537 2015-08-17 Mike Stump <mikestump@comcast.net>
2539 * config/arm/arm.c (arm_block_move_unaligned_straight):
2540 Emit normal move instead of unaligned load when source or destination
2541 are appropriately aligned.
2543 2015-08-17 Richard Biener <rguenther@suse.de>
2544 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2547 * match.pd (div (coss (op @0) : New simplifier.
2549 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
2551 PR rtl-optimization/64164
2554 PR rtl-optimization/67000
2557 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2558 * tree-ssa-copyrename.c: Removed.
2559 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2560 -ftree-coalesce-vars.
2561 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2562 * common.opt (ftree-copyrename): Ignore.
2563 (ftree-coalesce-inlined-vars): Likewise.
2564 * doc/invoke.texi: Remove the ignored options above.
2565 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2566 * tree-ssa-coalesce.h: ... here.
2567 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2568 headers required by it.
2569 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2570 across variables when flag_tree_coalesce_vars. Check register
2571 use and promoted modes to allow coalescing. Do not coalesce
2572 maybe-byref parms with SSA_NAMEs of other variables, or
2573 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
2574 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2575 with its member functions to tree-ssa-coalesce.c.
2576 (var_map_base_init): Likewise. Renamed to
2577 compute_samebase_partition_bases.
2578 (partition_view_normal): Drop want_bases parameter.
2579 (partition_view_bitmap): Likewise.
2580 * tree-ssa-live.h: Adjust declarations.
2581 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
2582 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2583 default defs at the entry point.
2584 (dump_part_var_map): New.
2585 (compute_optimized_partition_bases): New, called by...
2586 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2587 of compute_samebase_partition_bases. Adjust.
2588 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2589 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
2590 (ssa_default_def_partition): New.
2591 (get_rtl_for_parm_ssa_default_def): New.
2592 (align_local_variable, add_stack_var): Support anonymous SSA
2594 (defer_stack_allocation): Likewise. Declare earlier.
2595 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2596 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2597 Do no record deferred-allocation marker in
2598 SA.partition_to_pseudo.
2599 (expand_stack_vars): Adjust check for the marker in it.
2600 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2601 redundant MEM attr setting.
2602 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2604 (expand_one_stack_var): ... this. New wrapper to check and
2605 skip already expanded SSA partitions.
2606 (record_alignment_for_reg_var): New, factored out of...
2607 (expand_one_var): ... this.
2608 (expand_one_ssa_partition): New.
2609 (adjust_one_expanded_partition_var): New.
2610 (expand_one_register_var): Check and skip already expanded SSA
2612 (expand_used_vars): Don't create DECLs for anonymous SSA
2613 names. Expand all SSA partitions, then adjust all SSA names.
2614 (pass::execute): Replace the loops that set
2615 SA.partition_to_pseudo from partition leaders and cleared
2616 DECL_RTL for multi-location variables, and that which used to
2617 rename vars and set attrs, with one that clears DECL_RTL and
2618 checks that PARMs and RESULTs default_defs match DECL_RTL.
2619 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2620 * emit-rtl.c: Include stor-layout.h.
2621 (set_reg_attrs_for_parm): Handle NULL decl.
2622 (set_reg_attrs_for_decl_rtl): Take mode from expression if
2624 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
2625 rather than its possibly-NULL DECL.
2626 * explow.c (promote_ssa_mode): New.
2627 * explow.h (promote_ssa_mode): Declare.
2628 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2629 (read_complex_part): Export.
2630 * expr.h (read_complex_part): Declare.
2631 * cfgexpand.h (parm_maybe_byref_p): Declare.
2632 * function.c: Include cfgexpand.h.
2633 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2634 (use_register_for_parm_decl): Wrapper for the above to
2635 special-case the result_ptr.
2636 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2637 (split_complex_args): Take assign_parm_data_all argument.
2638 Pass it to rtl_for_parm. Set up rtl and context for split
2639 args. Reset complex parm before fetching its default decl
2641 (assign_parms_unsplit_complex): Use the default-def complex
2642 parm rtl if it matches the components.
2643 (assign_parms_augmented_arg_list): Adjust.
2644 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2645 multiple locations. Recognize split complex args.
2646 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2647 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2648 (assign_parm_setup_block): Prefer SSA-assigned location, and
2649 fill in its address if the memory location of a maybe-byref
2650 parm was not assigned by cfgexpand.
2651 (assign_parm_setup_reg): Likewise. Adjust its mode as
2652 needed. Use entry_parm for equiv if stack_parm is NULL. Make
2653 sure passed_pointer parms don't need conversion. Copy address
2655 (assign_parm_setup_stack): Prefer SSA-assigned location.
2656 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2657 rtl before testing for pointer bounds. Special-case result_ptr.
2658 (expand_function_start): Maybe reset DECL_RTL of result.
2659 Prefer SSA-assigned location for result and static chain.
2660 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
2661 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
2662 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2663 anonymous SSA names. Use promote_ssa_mode.
2664 (get_temp_reg): Likewise.
2665 (remove_ssa_form): Adjust.
2666 * stor-layout.c (layout_decl): Don't set mem attributes of
2668 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2669 and get its reg_usage for reg invalidation.
2670 (compute_bb_dataflow): Pass it insn.
2671 (emit_notes_in_bb): Likewise.
2673 2015-08-14 Marek Polacek <polacek@redhat.com>
2675 * tree-core.h (tree_base): Fix typo.
2677 2015-08-14 Marek Polacek <polacek@redhat.com>
2680 * gimple.c (infer_nonnull_range_by_attribute): Check that the
2681 nonnull argument position is not outside function arguments.
2683 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
2686 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
2687 'lconst_atomic' with 'const_atomic'.
2688 (atomic_fetch_<optab><mode>): Likewise.
2689 (atomic_<optab>_fetch<mode>): Likewise.
2690 * config/aarch64/iterators.md (lconst-atomic): Move below
2692 (const_atomic): New.
2694 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
2695 Bernd Schmidt <bernds@codesourcery.com>
2697 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
2699 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
2700 (DWARF2_DEBUGGING_INFO): Don't define.
2701 * debug.h (dwarf2_lineno_debug_hooks): Declare.
2702 * toplev.c (process_options): Add a case for it.
2703 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
2704 (dwarf2out_init): Skip most initializations if
2705 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
2707 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
2708 DWARF2_LINENO_DEBUGGING_INFO.
2709 * opts.c (set_debug_level): Likewise.
2711 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
2713 * config/arm/types.md (is_neon_type): Add missing types.
2715 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
2717 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
2719 * config/i386/i386.c (PTA_SKYLAKE): New macros.
2720 (processor_alias_table): Add skylake description.
2721 (enum processor_model): Add skylake processor.
2722 (arch_names_table): Add skylake record.
2723 * doc/invoke.texi: Add skylake item.
2725 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
2727 * ira-int.h: Include recog.h.
2728 * ira-build.c: Don't include recog.h.
2729 * ira-color.c: Likewise.
2730 * ira-conflicts.c: Likewise.
2731 * ira-costs.c: Likewise.
2732 * ira-emit.c: Likewise.
2733 * ira-lives.c: Likewise.
2735 * sched-deps.c: Likewise.
2736 * sel-sched.c: Likewise.
2737 * target-globals.c: Likewise.
2739 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
2742 * reload1.c (elimination_costs_in_insn): Make it obvious to the
2743 compiler that the n_dups and n_operands loop bounds are invariant.
2745 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2747 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
2748 expressions in A and B.
2750 2015-08-13 Richard Biener <rguenther@suse.de>
2752 * tree.c (nonnull_arg_p): Move from ...
2753 * tree-vrp.c (nonnull_arg_p): ... here.
2754 * tree.h (nonnull_arg_p): Declare.
2755 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
2756 here, register ptr != 0 for nonnull_arg_p pointer arguments.
2757 Properly initialize static chain and by-reference result pointer.
2758 (run_scc_vn): Adjust.
2760 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
2762 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
2765 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
2767 * config/aarch64/aarch64-protos.h
2768 (aarch64_gen_atomic_cas): Declare.
2769 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
2770 Choose appropriate instruction pattern for the target.
2771 (aarch64_gen_atomic_cas): New.
2772 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
2773 (atomic_compare_and_swap<mode>_1): Rename to
2774 aarch64_compare_and_swap<mode>. Fix some indentation.
2775 (aarch64_compare_and_swap<mode>_lse): New.
2776 (aarch64_atomic_cas<mode>): New.
2778 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
2780 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
2783 2015-08-13 Richard Biener <rguenther@suse.de>
2785 PR tree-optimization/67191
2786 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
2787 assert we value-numbered last stmts operand because it can validly
2788 trigger for unreachable code.
2790 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2792 PR rtl-optimization/67103
2793 * ifcvt.c (noce_try_store_flag_constants): Move
2794 x = (-(test != 0) & (b - a)) + a transformation to...
2795 (noce_try_cmove): ... Here. Try it if normal conditional
2798 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
2800 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
2802 * config/mips/mips.md (processor): Remove w32 and w64.
2804 2015-08-13 Richard Biener <rguenther@suse.de>
2806 PR tree-optimization/66502
2807 PR tree-optimization/67167
2808 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
2810 (vn_phi_lookup): Adjust.
2811 (vn_phi_insert): Likewise.
2812 (visit_phi): Prefer to value-number to another PHI node
2813 over value-numbering to a PHI argument.
2814 (init_scc_vn): Mark DFS back edges.
2816 2015-08-13 Richard Biener <rguenther@suse.de>
2818 * gimple.h (gcall::code_): New constant static member.
2819 (gcond::code_): Likewise.
2820 * gimple.c (gcall::code_): Define.
2821 (gcond::code_): Likewise.
2822 (is_a_helper <const gcond *>): Add.
2823 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
2824 and forward to a new gcall overload with less checking and a
2825 cheaper way to access the operand.
2826 (gimple_call_lhs_ptr): Likewise.
2827 (gimple_call_set_lhs): Likewise.
2828 (gimple_call_internal_p): Likewise.
2829 (gimple_call_with_bounds_p): Likewise.
2830 (gimple_call_set_with_bounds): Likewise.
2831 (gimple_call_internal_fn): Likewise.
2832 (gimple_call_set_ctrl_altering): Likewise.
2833 (gimple_call_ctrl_altering_p): Likewise.
2834 (gimple_call_fntype): Likewise.
2835 (gimple_call_fn): Likewise.
2836 (gimple_call_fn_ptr): Likewise.
2837 (gimple_call_set_fndecl): Likewise.
2838 (gimple_call_fndecl): Likewise.
2839 (gimple_call_chain): Likewise.
2840 (gimple_call_num_args): Likewise.
2841 (gimple_call_arg): Likewise.
2842 (gimple_call_arg_ptr): Likewise.
2843 (gimple_call_set_arg): Likewise.
2844 (gimple_call_noreturn_p): Likewise.
2845 (gimple_cond_code): Likewise.
2846 (gimple_cond_lhs): Likewise.
2847 (gimple_cond_rhs): Likewise.
2848 (gimple_has_lhs): Reduce checking.
2850 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2853 * match.pd (div (mult @0 @1) @1) : New simplifier.
2855 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2858 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
2859 predicate to allow construction of vector constants using the
2860 VSLDOI vector shift instruction.
2862 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
2865 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
2866 the number of bytes to be shifted left and filled in with either
2867 all zero or all one bits.
2868 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
2870 (output_vec_const_move): On power8, generate XXLORC to generate
2871 a vector constant with all 1's. Do a split if we need to use a
2874 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
2875 properly test for the MSB.
2877 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
2878 vector constants that can be created with VSLDOI.
2880 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
2883 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
2884 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
2885 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
2886 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
2887 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
2888 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
2889 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
2890 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
2891 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
2893 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
2895 * config/xtensa/constraints.md (define_constraint "Y"): New
2897 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
2898 * config/xtensa/linux.h (ASM_SPEC): Likewise.
2899 * config/xtensa/predicates.md (move_operand): Match constants
2900 and symbols in the presence of TARGET_AUTO_LITPOOLS.
2901 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
2902 immediate references to TLS data.
2903 (xtensa_emit_move_sequence): Don't force constants to memory in
2904 the presence of TARGET_AUTO_LITPOOLS.
2905 (print_operand): Add 'y' format, same as default, but capable of
2906 printing SF mode constants as well.
2907 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
2908 (movsf_internal): Add movi pattern that loads literal.
2909 (movsf, movdf): Don't force constants to memory in the presence
2910 of TARGET_AUTO_LITPOOLS.
2911 (movdf_internal): Add 'Y' constraint.
2912 * config/xtensa/xtensa.opt (mauto-litpools): New option.
2913 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
2915 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
2917 * config/arm/arm-fpus.def: Replace booleans with feature flags.
2919 * config/arm/arm.c (ARM_FPU): Update macro.
2920 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
2921 (TARGET_FP16): Likewise.
2922 (TARGET_CRYPTO): Likewise.
2923 (TARGET_NEON): Likewise.
2924 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
2927 2015-08-12 Tom de Vries <tom@codesourcery.com>
2931 * doc/install.texi: Remove --with_host_libstdcxx item. Update
2932 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
2933 accordingly. Mention default for --with-stage1-ldflags.
2935 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
2937 * config/arm/arm.h (arm_fpu_feature_set): New.
2938 (ARM_FPU_FSET_HAS): New.
2942 (FPU_FL_CRYPTO): New.
2944 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2946 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
2947 after -mcmodel=large -fPIC sorry.
2949 2015-08-12 Richard Biener <rguenther@suse.de>
2951 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
2952 comparison operand order and commutative ternary op operand order.
2953 (sccvn_dom_walker::cond_stack): New state to track temporary
2955 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
2957 (sccvn_dom_walker::record_cond): Add a single temporary conditional
2959 (sccvn_dom_walker::record_conds): Add a temporary conditional
2960 expressions and all related expressions also true/false.
2961 (sccvn_dom_walker::before_dom_children): Record temporary
2962 expressions based on the controlling condition of a single
2963 predecessor. When trying to simplify a conditional statement
2964 lookup expressions we might have inserted earlier.
2966 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
2969 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
2970 to ARM core registers.
2972 2015-08-12 Nathan Sidwell <nathan@acm.org>
2974 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
2975 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
2977 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
2979 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
2981 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
2983 2015-08-12 Richard Biener <rguenther@suse.de>
2985 * gimple.h (remove_pointer): New trait.
2986 (GIMPLE_CHECK2): New inline template function.
2987 (gassign::code_): New constant static member.
2988 (is_a_helper<const gassign *>): Add.
2989 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
2990 and forward to a new gassign overload with less checking and a
2991 cheaper way to access the operand.
2992 (gimple_assign_lhs_ptr): Likewise.
2993 (gimple_assign_set_lhs): Likewise.
2994 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
2996 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
2998 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
3000 (gimple_assign_rhs_code): Likewise.
3001 * gimple.c (gassign::code_): Define.
3003 2015-08-12 Richard Biener <rguenther@suse.de>
3005 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3006 Eliminate edges marked as not executable by SCCVN.
3007 * tree-ssa-sccvn.c: Include gimple-iterator.h.
3008 (cond_dom_walker): Rename to sccvn_dom_walker.
3009 (sccvn_dom_walker::before_dom_children): Value-number defs
3011 (run_scc_vn): Remove loop value-numbering all SSA names.
3012 Drop not visited SSA names to varying.
3014 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
3016 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
3017 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
3018 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
3019 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
3020 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
3021 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3022 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
3023 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
3024 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
3026 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
3029 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
3030 to enum feature_priority and feature_list.
3031 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
3032 and isa_names_table.
3034 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
3036 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
3039 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3043 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
3044 account when deciding what was the command-line status.
3046 2015-08-11 Nathan Sidwell <nathan@acm.org>
3048 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
3050 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
3051 we're not the only contributor to target phi.
3053 2015-08-11 Jiong Wang <jiong.wang@arm.com>
3055 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
3058 2015-08-11 Tom de Vries <tom@codesourcery.com>
3060 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
3062 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
3064 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
3066 * config/i386/i386.md (cpu): Remove knl.
3068 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
3072 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
3073 open-coded sequence.
3074 * omp-low.c (oacc_process_reduction_data): Remove handline of
3075 GOMP_DEVICE_HOST_NONSHM.
3077 * lto-streamer-in.c (lto_input_mode_table): Adjust to
3078 GET_MODE_INNER changes.
3080 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
3081 Ilya Verbin <ilya.verbin@intel.com>
3083 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
3086 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3088 * doc/options.texi (EnabledBy): Document that the argument must be
3090 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
3091 Not enabled by -Wall.
3092 * optc-gen.awk: Give nicer error messages. Detect if the argument
3093 of EnabledBy is not a Common option.
3094 * common.opt (Wnull-dereference): Not enabled by -Wall.
3095 * opt-functions.awk (lang_enabled_by): Nicer error messages.
3097 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
3099 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
3100 model == 0x4f as Broadwell.
3102 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
3104 PR rtl-optimization/67028
3105 * combine.c (simplify_comparison): Fix comment. Rearrange code.
3106 Add test to see if a const_int fits in the new mode.
3108 2015-08-07 DJ Delorie <dj@redhat.com>
3110 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
3112 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
3114 PR rtl-optimization/67029
3115 * ira-color.c: Include "recog.h" before including "ira-int.h".
3116 * target-globals.c: Likewise.
3117 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
3118 adds an alternative_mask argument and use it instead of
3119 preferred_alternatives.
3120 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
3121 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
3122 * sched-deps.c: Include "ira-int.h" after including "ira.h".
3123 (sched_analyze_insn): Update call to
3124 ira_implicitly_set_insn_hard_regs.
3125 * sel-sched.c: Include "ira-int.h" after including "ira.h".
3126 (implicit_clobber_conflict_p): Update call to
3127 ira_implicitly_set_insn_hard_regs.
3129 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
3131 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
3133 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
3136 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
3137 currently_expanding_to_rtl is set.
3139 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
3141 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
3142 * configure: Regenerate.
3144 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3145 Jiong Wang <jiong.wang@arm.com>
3147 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
3148 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
3149 (REG_CLASS_NAMES): Likewise.
3150 (REG_CLASS_CONTENTS): Likewise.
3151 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
3152 (aarch64_register_move_cost): Likewise.
3153 (aarch64_load_symref_appropriately): Invoke the new added pattern if
3155 * config/aarch64/constraints.md (Uc0): New constraint.
3157 2015-08-06 Jiong Wang <jiong.wang@arm.com>
3159 * config/aarch64/constraints.md (Usf): Add the test of
3160 aarch64_is_noplt_call_p.
3162 2015-08-06 Jiong Wang <jiong.wang@arm.com>
3164 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
3166 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
3167 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
3168 (call_symbol): Likewise.
3170 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3172 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
3173 for vectorizing multiplication patterns.
3174 * tree-vectorizer.h: Adjust the number of patterns.
3176 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
3178 * config/i386/sse.md (*vec_concatv2df): Declare added
3179 alternatives as sselog type.
3181 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3183 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
3186 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3188 * config/s390/s390.c (s390_expand_tbegin): Expand either
3189 tbegin_1_z13 or tbegin_1 depending on VX flag.
3190 * config/s390/s390.md ("tbegin_1_z13"): New expander.
3192 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3194 * config/s390/s390.opt: Clarify description for -mzvector
3195 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
3198 2015-08-06 Richard Biener <rguenther@suse.de>
3200 * gimple.h (gimple_call_set_fn): Access op member directly.
3201 (gimple_call_chain_ptr): Likewise.
3202 (gimple_call_set_chain): Likewise.
3203 (gimple_cond_lhs_ptr): Likewise.
3204 (gimple_cond_set_lhs): Likewise.
3205 (gimple_cond_rhs_ptr): Likewise.
3206 (gimple_cond_set_rhs): Likewise.
3207 (gimple_cond_true_label): Likewise.
3208 (gimple_cond_set_true_label): Likewise.
3209 (gimple_cond_set_false_label): Likewise.
3210 (gimple_cond_false_label): Likewise.
3211 (gimple_label_label): Likewise.
3212 (gimple_label_set_label): Likewise.
3213 (gimple_goto_set_dest): Likewise.
3214 (gimple_asm_input_op): Likewise.
3215 (gimple_asm_input_op_ptr): Likewise.
3216 (gimple_asm_set_input_op): Likewise.
3217 (gimple_asm_output_op): Likewise.
3218 (gimple_asm_output_op_ptr): Likewise.
3219 (gimple_asm_set_output_op): Likewise.
3220 (gimple_asm_clobber_op): Likewise.
3221 (gimple_asm_set_clobber_op): Likewise.
3222 (gimple_asm_label_op): Likewise.
3223 (gimple_asm_set_label_op): Likewise.
3224 (gimple_switch_index): Likewise.
3225 (gimple_switch_index_ptr): Likewise.
3226 (gimple_return_retval_ptr): Likewise.
3227 (gimple_return_retval): Likewise.
3228 (gimple_return_set_retval): Likewise.
3229 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
3230 (gimple_switch_label): Likewise.
3231 (gimple_switch_set_label): Likewise.
3233 2015-08-06 Richard Biener <rguenther@suse.de>
3235 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
3236 bool comparison canonicalization and restrict to integers.
3238 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
3240 * coretypes.h (enum symbol_visibility): Relocate here.
3241 * flag-types.h (enum symbol_visibility): Remove.
3242 * tree-core.h (enum symbol_visibility): Remove.
3244 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
3247 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
3248 for no_split_stack function attribute along with
3250 (rs6000_expand_split_stack_prologue): Likewise.
3252 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3253 Jeff Law <law@redhat.com>
3256 * doc/invoke.texi (Wnull-dereference): New.
3257 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
3258 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
3259 Warn for potential NULL dereferences.
3260 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
3261 * ubsan.c (instrument_nonnull_arg): Call
3262 infer_nonnull_range_by_attribute.
3263 (instrument_nonnull_return): Likewise.
3264 * common.opt (Wnull-dereference); New.
3265 * gimple.c (infer_nonnull_range): Remove bool arguments.
3266 (infer_nonnull_range_by_dereference): New.
3267 (infer_nonnull_range_by_attribute): New.
3268 * gimple.h: Update declarations.
3270 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3272 * gensupport.c (sequence_num): Replace with...
3273 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
3274 ...these new variables.
3275 (init_rtx_reader_args_cb): Update accordingly.
3276 (get_num_code_insns): Likewise.
3277 (read_md_rtx): Rework to use a while loop and get_c_test.
3278 Use the new counters. Remove redundant DEFINE_SUBST case.
3279 * genoutput.c (gen_split): Delete.
3280 (main): Don't call it.
3282 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3284 * gensupport.h (get_c_test): Declare.
3285 * gensupport.c (get_c_test): New function.
3286 * genconditions.c (main): Use it.
3287 * genrecog.c (validate_pattern): Likewise.
3288 (match_pattern_1): Likewise. Remove c_test argument.
3289 (match_pattern): Update accordingly and remove c_test argument.
3290 (main): Update accordingly.
3292 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3294 * gensupport.h (get_num_insn_codes): Declare.
3295 * gensupport.c (get_num_insn_codes): New function.
3296 * genattrtab.c (optimize_attrs): Rename max_insn_code to
3298 (main): Likewise. Use get_num_insn_codes.
3299 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
3301 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3304 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
3305 is zero- rather than sign-extended.
3307 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
3309 * target-insns.def (can_extend): Delete.
3311 2015-08-05 Richard Biener <rguenther@suse.de>
3313 PR tree-optimization/67121
3314 * tree-if-conv.c (combine_blocks): Clear range-info produced
3315 by stmts no longer executed conditionally.
3317 2015-08-05 Nick Clifton <nickc@redhat.com>
3319 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
3320 to allow identical far pointers to remain.
3322 2015-08-05 Richard Biener <rguenther@suse.de>
3325 * match.pd: Compare address bases with == if they are decls
3326 or SSA names, not operand_equal_p. Otherwise fail.
3328 2015-08-05 Richard Biener <rguenther@suse.de>
3330 PR tree-optimization/67055
3331 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
3334 * g++.dg/torture/pr67055.C: New testcase.
3336 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
3338 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
3340 (define_attr "enabled"): Handle avx521vl and noavx512vl.
3341 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
3342 AVX-512 alternative out of SSE.
3343 (define_insn "*vec_concatv2df"): Ditto.
3345 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
3347 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
3348 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
3349 CODE_FOR_avx_ptestv4di.
3350 * config/i386/sse.md (define_mode_iterator V_AVX): New.
3351 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
3352 (define_insn "avx_ptest256"): Merge this ...
3353 (define_insn "sse4_1_ptest"): And this ...
3354 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
3356 2015-08-05 Richard Biener <rguenther@suse.de>
3358 PR tree-optimization/67109
3359 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
3360 against too big groups. Print whether this is a load or store
3361 group. Rename from ...
3362 (vect_analyze_group_access): ... this which is now a wrapper
3363 dissolving an invalid group.
3364 (vect_analyze_data_ref_accesses): Print whether this is a load
3367 2015-08-05 Richard Biener <rguenther@suse.de>
3370 * match.pd: Guard const_binop result checking against NULL_TREE
3373 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
3375 * cse.c (cse_insn): Restoring old behaviour for src_eqv
3376 when dest and value in the REG_EQUAL are same and dest
3379 2015-08-04 Anatoly Sokolov <aesok@post.ru>
3381 * config/moxie/moxie.h (PRINT_OPERAND,
3382 PRINT_OPERAND_ADDRESS): Remove macros.
3383 * config/moxie/moxie-protos.h (moxie_print_operand,
3384 moxie_print_operand_address): Remove declaration.
3385 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
3386 TARGET_PRINT_OPERAND_ADDRESS): Define.
3387 (moxie_print_operand, moxie_print_operand_address): Make static.
3389 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3392 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
3393 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
3395 2015-08-04 Richard Biener <rguenther@suse.de>
3397 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
3399 (dt_operand::gen_gimple_expr): Adjust.
3401 2015-08-04 Richard Biener <rguenther@suse.de>
3403 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
3404 bool compares on RHS.
3405 * match.pd: Add X ==/!= !X is false/true pattern.
3407 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
3409 * config/aarch64/aarch64.c: Change inner loop statement cost
3410 to be consistent with other targets.
3412 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
3414 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
3417 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
3419 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
3420 (machine_function): Remove pseudos field.
3422 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3424 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
3425 Exit early and use target_option_current_node if processing current
3428 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3430 * doc/extend.texi (AArch64 Function Attributes): New node.
3431 (AArch64 Pragmas): Likewise.
3433 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3435 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
3436 Initialize simd builtins if TARGET_SIMD.
3437 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
3438 Make sure that the builtins are initialized only once no matter how
3439 many times the function is called.
3440 (aarch64_init_builtins): Unconditionally initialize crc builtins.
3441 (aarch64_relayout_simd_param): New function.
3442 (aarch64_simd_expand_args): Use above during argument expansion.
3443 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
3444 simd builtins if TARGET_SIMD.
3445 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
3447 (aarch64_relayout_simd_types): Likewise.
3449 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3451 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
3452 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
3453 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
3454 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
3456 (aarch64_reset_previous_fndecl): New function.
3457 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
3459 * config/aarch64/aarch64-c.c: New file.
3460 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
3461 Push and pop options at beginning and end. Remove ifdef
3462 __ARM_FEATURE_CRC32.
3463 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
3464 Add pragma +nothing+simd and +nothing+crypto where appropriate.
3465 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
3466 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
3468 (aarch64_register_pragmas): Likewise.
3469 (aarch64_reset_previous_fndecl): Likewise.
3470 (aarch64_process_target_attr): Likewise.
3471 (aarch64_override_options_internal): Likewise.
3473 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3475 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
3477 (aarch64_can_inline_p): Likewise.
3478 (TARGET_CAN_INLINE_P): Define.
3480 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3482 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
3483 Remove static. Handle OPT_mgeneral_regs_only,
3484 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
3485 OPT_momit_leaf_frame_pointer.
3486 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
3487 (aarch64_attr_opt_type): New enum.
3488 (aarch64_attribute_info): New struct.
3489 (aarch64_handle_attr_arch): New function.
3490 (aarch64_handle_attr_cpu): Likewise.
3491 (aarch64_handle_attr_tune): Likewise.
3492 (aarch64_handle_attr_isa_flags): Likewise.
3493 (aarch64_attributes): New table.
3494 (aarch64_process_one_target_attr): New function.
3495 (num_occurences_in_str): Likewise.
3496 (aarch64_process_target_attr): Likewise.
3497 (aarch64_option_valid_attribute_p): Likewise.
3498 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
3499 * config/aarch64/aarch64-protos.h: Include input.h
3500 (aarch64_handle_option): Declare prototype.
3502 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3504 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
3505 * config/aarch64/aarch64.c: Include target-globals.h
3506 (aarch64_previous_fndecl): New variable.
3507 (aarch64_set_current_function): New function.
3508 (TARGET_SET_CURRENT_FUNCTION): Define.
3510 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3512 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
3513 (explicit_arch): Likewise.
3514 (x_aarch64_isa_flags): Likewise.
3515 (mgeneral-regs-only): Mark as Save.
3516 (mfix-cortex-a53-835769): Likewise.
3517 (mcmodel=): Likewise.
3518 (mstrict-align): Likewise.
3519 (momit-leaf-frame-pointer): Likewise.
3520 (mtls-dialect): Likewise.
3521 (master=): Likewise.
3522 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
3523 (aarch64_isa_flags): Remove extern declaration.
3524 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
3525 to indicate success or failure.
3526 (aarch64_validate_march): Likewise.
3527 (aarch64_validate_mtune): Likewise.
3528 (aarch64_isa_flags): Delete.
3529 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
3530 instead of aarch64_isa_flags.
3531 (aarch64_get_tune_cpu): New function.
3532 (aarch64_get_arch): Likewise.
3533 (aarch64_override_options): Use above and set up explicit_tune_core
3535 (aarch64_print_extension): Move earlier in file. Add isa_flags
3536 argument and use that instead of the global aarch64_isa_flags.
3537 (aarch64_option_save): New function.
3538 (aarch64_option_restore): Likewise.
3539 (aarch64_option_print): Likewise.
3540 (aarch64_declare_function_name): Likewise.
3541 (aarch64_start_file): Delete.
3542 (TARGET_ASM_FILE_START): Do not define.
3543 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
3544 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
3547 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3549 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
3550 flag_omit_leaf_frame_pointer to 2.
3552 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3554 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
3556 (TARGET_FIX_ERR_A53_835769): New macro.
3557 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
3558 handling of opts->x_aarch64_fix_a53_err835769.
3559 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
3560 than aarch64_fix_a53_err835769.
3561 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
3562 * config/aarch64/aarch64-linux.h: Likewise.
3564 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
3566 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
3567 ix86_expand_int_movcc as boolean.
3569 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3571 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
3572 (aarch64_cpu_string): Likewise.
3573 (aarch64_tune_string): Likewise.
3574 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
3575 (aarch64_parse_extension): Return aarch64_parse_opt_result.
3576 Add extra argument to put result into.
3577 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
3578 (aarch64_parse_cpu): Add arguments to put results into. Return
3579 aarch64_parse_opt_result.
3580 (aarch64_parse_tune): Likewise.
3581 (aarch64_override_options_after_change_1): New function.
3582 (aarch64_override_options_internal): New function.
3583 (aarch64_validate_mcpu): Likewise.
3584 (aarch64_validate_march): Likewise.
3585 (aarch64_validate_mtune): Likewise.
3586 (aarch64_override_options): Update to reflect above changes.
3587 Move some logic into aarch64_override_options_internal.
3588 Initialize target_option_default_node and target_option_current_node.
3589 (aarch64_override_options_after_change): Move logic into
3590 aarch64_override_options_after_change_1 and call it with global_options.
3591 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
3592 flag values from that.
3594 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3596 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
3597 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
3598 * config/aarch64/aarch64.c (struct processor): Add arch field.
3599 (all_architectures): Handle above, move above all_cores.
3600 (all_cores): Handle above.
3601 (aarch64_parse_arch): Handle above changes.
3602 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
3603 above. Update comments.
3604 (armv8.1-a): Likewise.
3605 * config/aarch64/aarch64-cores.def: Update according to above.
3606 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
3607 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
3608 aarch64_arch_driver_info.
3610 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3612 * config/aarch64/aarch64.c (struct processor): Add ident field.
3613 Rename core sched_core.
3614 (all_cores): Handle above changes.
3615 (all_architectures): Likewise.
3616 (aarch64_parse_arch): Likewise.
3617 (aarch64_override_options): Likewise.
3619 2015-08-04 Richard Biener <rguenther@suse.de>
3621 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
3622 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
3623 comparisons embedded in [VEC_]COND_EXPRs.
3625 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
3627 * tree-if-conv.c: Fix various typos in comments.
3628 * tree-vect-stmts.c: Likewise.
3630 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3632 PR tree-optimization/67043
3633 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
3634 preheader after hoisting invariant in it.
3635 (find_defs): Force recomputation of all luids.
3637 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
3639 * config/rs6000/htm.md (tabort.): Restrict the source operand to
3640 using a base register.
3642 2015-08-03 David Malcolm <dmalcolm@redhat.com>
3644 * main.c (main): Pass in NULL for toplev's external_timer.
3645 * timevar.c: Include coretypes.h.
3646 (class timer::named_items): New.
3647 (timer::named_items::named_items): New.
3648 (timer::named_items::~named_items): New.
3649 (timer::named_items::push): New.
3650 (timer::named_items::pop): New.
3651 (timer::named_items::print): New.
3652 (timer::timer): Initialize field "m_jit_client_items".
3653 (timer::~timer): New.
3654 (timer::push): Move bulk of implementation to...
3655 (timer::push_internal): ...here. New function.
3656 (timer::pop): Move bulk of implementation to...
3657 (timer::pop_internal): ...here. New function.
3658 (timer::push_client_item): New.
3659 (timer::pop_client_item): New.
3660 (timer::print_row): New function, taken from timer::print.
3661 (timer::print): Print "GCC items" header if we also have client
3662 items. Move row-printing to timer::print_row. Print any client
3664 (timer::get_topmost_item_name): New method.
3665 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
3666 (TV_JIT_CLIENT_CODE): New.
3667 * timevar.h (timer::push_client_item): New declaration.
3668 (timer::pop_client_item): New declaration.
3669 (timer::get_topmost_item_name): New method.
3670 (timer::push_internal): New declaration.
3671 (timer::pop_internal): New declaration.
3672 (timer::print_row): New declaration.
3673 (timer::named_items): New declaration.
3674 (timer::m_jit_client_items): New field.
3675 (timer): Add friend class named_items.
3676 (auto_timevar::auto_timevar): Add timer param.
3677 (auto_timevar::~auto_timevar): Use field "m_timer".
3678 (auto_timevar::m_timer): New field.
3679 * toplev.c (initialize_rtl): Add g_timer as param when
3680 constructing auto_timevar instance.
3681 (toplev::toplev): Add "external_timer" param, and use it to
3682 initialize the "g_timer" global if non-NULL.
3683 (toplev::~toplev): If this created "g_timer", delete it.
3684 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
3685 with "external_timer" timer *.
3687 2015-08-03 Alexander Basov <coohpt@gmail.com>
3692 * cfgexpand.c (expand_one_var): Add check if stack is going to
3693 be used in naked function.
3694 * expr.c (expand_expr_addr_expr_1): Remove excess checking
3695 whether expression should not reside in MEM.
3696 * function.c (use_register_for_decl): Do not use registers for
3697 non-register things (volatile, float, BLKMode) in naked functions.
3699 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
3702 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
3703 Adjust splits to match new pattern.
3705 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3707 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
3710 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
3711 point in VSX registers.
3713 * config/rs6000/constraints.md (wb constraint): Document unused
3715 (we constraint): Likewise.
3716 (wo constraint): Likewise.
3717 (wp constraint): New constraint for IEEE 128-bit floating point in
3719 (wq constraint): Likewise.
3721 * config/rs6000/predicates.md (easy_fp_constant): Add support for
3722 IEEE 128-bit floating point in VSX registers.
3723 (easy_scalar_constant): Likewise.
3725 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
3726 constraints (wp, wq) for IEEE 128-bit floating point in VSX
3728 (rs6000_init_hard_regno_mode_ok): Likewise.
3730 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
3731 floating point in VSX registers.
3740 (vsx_le_permute_<mode>): Add support to properly swap bytes for
3741 IEEE 128-bit floating point in VSX registers on little endian.
3742 (vsx_le_undo_permute_<mode>): Likewise.
3743 (vsx_le_perm_load_<mode>): Likewise.
3744 (vsx_le_perm_store_<mode>): Likewise.
3745 (splitters for IEEE 128-bit fp moves): Likewise.
3747 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
3750 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
3751 floating point in VSX registers.
3754 * doc/md.text (Machine Constraints): Document wp and wq
3755 constraints on PowerPC.
3757 2015-08-03 Jeff Law <law@redhat.com>
3760 PR gcov-profile/66899
3761 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
3762 iterate over the jump threading paths when an element in the
3763 jump threading paths array is eliminated.
3765 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
3767 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
3769 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
3771 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
3772 is_use_properly_guarded the variable def_preds. Free its
3773 contents before returning.
3774 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
3775 (is_use_properly_guarded): Replace local variable def_preds with
3776 a parameter. Adjust accordingly. Only update *def_preds if it's
3779 2015-08-03 Richard Biener <rguenther@suse.de>
3781 * genmatch.c (simplify::for_subst_vec): New member.
3782 (binary_ok): New helper for for lowering.
3783 (lower_for): Delay substituting operators into result expressions
3784 if we can merge the results eventually again.
3785 (capture_info::walk_result): Adjust for user_id appearing as
3786 result expression operator.
3787 (expr::gen_transform): Likewise.
3788 (dt_simplify::gen_1): Likewise.
3789 (dt_simplify::gen): Pass not substituted operators to tail
3790 functions or initialize local variable with it.
3791 (decision_tree::gen): Adjust function signature.
3792 * match.pd: Fix tests against global code and add default
3793 cases to switch stmts.
3795 2015-08-03 Richard Biener <rguenther@suse.de>
3797 * genmatch.c (dt_simplify::gen): Create captures array
3798 with an initializer.
3800 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3802 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
3803 the host compiler is affected by placement new aliasing bug.
3804 * configure: Regenerate.
3805 * Makefile.in (ALIASING_FLAGS): New variable.
3806 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
3808 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3811 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
3812 (negmulsf3_vfp): Likewise.
3813 (muldf3negdf_vfp): Disable for -frounding-math.
3814 (mulsf3negsf_vfp): Likewise.
3815 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
3816 fix MULT cost with -frounding-math.
3818 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3820 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
3821 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
3822 explicit. Prefer to add the flag whenever possible.
3823 (noce_process_if_block): Try noce_try_store_flag_constants before
3826 2015-08-03 Richard Biener <rguenther@suse.de>
3828 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
3829 New hash-map to record equivalent transforms.
3830 (dt_node::analyze): Populate the equivalent transforms hash-map.
3831 (dt_simplify::info): Add reference to hash-map entry.
3832 (dt_simplify::gen): If we have split out a function for the
3833 transform, generate a call to it.
3834 (sinfo_hashmap_traits::hash): New function.
3835 (compare_op): New helper function for ...
3836 (sinfo_hashmap_traits::equal_keys): ... this new function.
3837 (decision_tree::gen): Split out common equivalent transforms
3840 2015-08-03 Richard Biener <rguenther@suse.de>
3842 * gimple-fold.c (fold_gimple_assign): Remove folding of
3843 the comparison in COND_EXPRs.
3845 2015-08-03 Richard Biener <rguenther@suse.de>
3847 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
3848 on the rhs of assignments first simplify the embedded
3851 2015-08-03 Richard Biener <rguenther@suse.de>
3853 PR tree-optimization/66917
3854 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
3856 (DR_VECT_AUX): New macro.
3857 (set_dr_misalignment): Adjust.
3858 (dr_misalignment): Likewise.
3859 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3860 Compute whether the base is at least element aligned.
3861 * tree-vect-stmts.c (ensure_base_align): Adjust.
3862 (vectorizable_store): If the base is not element aligned
3863 preserve alignment of the original access if misalignment is unknown.
3864 (vectorizable_load): Likewise.
3866 2015-08-02 Martin Sebor <msebor@redhat.com>
3868 * c-family/c.opt (-Wframe-address): New warning option.
3869 * doc/invoke.texi (Wframe-address): Document it.
3870 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
3871 Clarify possible effects of calling the functions with non-zero
3872 arguments and mention -Wframe-address.
3873 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
3875 2015-08-01 Michael Collison <michael.collison@linaro.org
3876 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3878 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
3879 (*arm_umin_cmp): Likewise.
3881 2015-08-01 Caroline Tice <cmtice@google.com>
3884 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
3886 (vtbl_find_mangled_name): New function.
3887 (vtbl_register_mangled_name): New function.
3888 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
3889 mangled name in mangled name vectors.
3890 (find_or_create_vtbl_map_node): Ditto.
3891 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
3892 update recursion_depth on function entry; pass it to every recursive
3893 call; automatically exit if depth > 25 (give up looking at that point).
3894 (verify_bb_vtables): Initialize recursion_depth and pass it to
3895 var_is_used_for_virtual_call_p.
3896 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
3897 global variable decls.
3898 (vtbl_register_mangled_name): New extern function decl.
3900 2015-08-01 Tom de Vries <tom@codesourcery.com>
3902 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
3904 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
3906 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
3907 operation_no_trapping_overflow. Allow non-overflow operations.
3908 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
3911 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
3914 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
3916 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3918 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
3919 Enable for TARGET_32BIT.
3920 (*if_move_neg): Likewise.
3922 2015-07-31 Nick Clifton <nickc@redhat.com>
3924 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
3925 Returns true for __model__.
3926 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3928 2015-07-31 Alan Modra <amodra@gmail.com>
3931 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
3932 (rs6000_emit_prologue): Set it.
3933 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
3935 2015-07-31 Richard Biener <rguenther@suse.de>
3937 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
3938 -> X == (C1 ^ C2) which is already implemented in match.pd.
3939 Remove redundant dispatching to fold_relational_const.
3940 Move unordered self and NaN compares ...
3941 * match.pd: ... as patterns here. Remove some stray captures
3944 2015-07-31 Petr Murzin <petr.murzin@intel.com>
3946 * config/i386/i386.c
3947 (bdesc_special_args): Convert mask type from signed to unsigned for
3949 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
3950 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
3951 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
3952 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
3953 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
3954 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
3955 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
3956 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
3957 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
3958 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
3959 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
3960 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
3961 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
3962 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
3963 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
3964 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
3965 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
3966 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
3967 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
3968 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
3969 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
3970 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
3971 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
3972 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
3973 * config/i386/i386-builtin-types.def
3974 (V16QI_FTYPE_V16SI): Remove.
3975 (V8DF_FTYPE_V8SI): Ditto.
3976 (V8HI_FTYPE_V8DI): Ditto.
3977 (V8SI_FTYPE_V8DI): Ditto.
3978 (V8SF_FTYPE_V8DF): Ditto.
3979 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
3980 (V16HI_FTYPE_V16SI): Ditto.
3981 (V16SF_FTYPE_V16HI): Ditto.
3982 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
3983 (V16SF_FTYPE_V16SI): Ditto.
3984 (V4DI_FTYPE_V4DI): Ditto.
3985 (V16SI_FTYPE_V16SF): Ditto.
3986 (V16SF_FTYPE_FLOAT): Ditto.
3987 (V8DF_FTYPE_DOUBLE): Ditto.
3988 (V8DI_FTYPE_INT64): Ditto.
3989 (V8DI_FTYPE_V4DI): Ditto.
3990 (V16QI_FTYPE_V8DI): Ditto.
3991 (UINT_FTYPE_V4SF): Ditto.
3992 (UINT64_FTYPE_V4SF): Ditto.
3993 (UINT_FTYPE_V2DF): Ditto.
3994 (UINT64_FTYPE_V2DF): Ditto.
3995 (V16SI_FTYPE_V16SI): Ditto.
3996 (V8DI_FTYPE_V8DI): Ditto.
3997 (V16SI_FTYPE_PV4SI): Ditto.
3998 (V16SF_FTYPE_PV4SF): Ditto.
3999 (V8DI_FTYPE_PV2DI): Ditto.
4000 (V8DF_FTYPE_PV2DF): Ditto.
4001 (V4DI_FTYPE_PV2DI): Ditto.
4002 (V4DF_FTYPE_PV2DF): Ditto.
4003 (V16SI_FTYPE_PV2SI): Ditto.
4004 (V16SF_FTYPE_PV2SF): Ditto.
4005 (V8DI_FTYPE_PV4DI): Ditto.
4006 (V8DF_FTYPE_PV4DF): Ditto.
4007 (V8SF_FTYPE_FLOAT): Ditto.
4008 (V4SF_FTYPE_FLOAT): Ditto.
4009 (V4DF_FTYPE_DOUBLE): Ditto.
4010 (V8SF_FTYPE_PV4SF): Ditto.
4011 (V8SI_FTYPE_PV4SI): Ditto.
4012 (V4SI_FTYPE_PV2SI): Ditto.
4013 (V8SF_FTYPE_PV2SF): Ditto.
4014 (V8SI_FTYPE_PV2SI): Ditto.
4015 (V16SF_FTYPE_PV8SF): Ditto.
4016 (V16SI_FTYPE_PV8SI): Ditto.
4017 (V8DI_FTYPE_V8SF): Ditto.
4018 (V4DI_FTYPE_V4SF): Ditto.
4019 (V2DI_FTYPE_V4SF): Ditto.
4020 (V64QI_FTYPE_QI): Ditto.
4021 (V32HI_FTYPE_HI): Ditto.
4022 (V8UHI_FTYPE_V8UHI): Ditto.
4023 (V16UHI_FTYPE_V16UHI): Ditto.
4024 (V32UHI_FTYPE_V32UHI): Ditto.
4025 (V2UDI_FTYPE_V2UDI): Ditto.
4026 (V4UDI_FTYPE_V4UDI): Ditto.
4027 (V8UDI_FTYPE_V8UDI): Ditto.
4028 (V4USI_FTYPE_V4USI): Ditto.
4029 (V8USI_FTYPE_V8USI): Ditto.
4030 (V16USI_FTYPE_V16USI): Ditto.
4031 (V2DF_FTYPE_V2DF_UINT64): Ditto.
4032 (V2DI_FTYPE_V2DF_V2DF): Ditto.
4033 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
4034 (V8DF_FTYPE_V8DF_V8DI): Ditto.
4035 (V4SF_FTYPE_V4SF_UINT64): Ditto.
4036 (V4SI_FTYPE_V4SF_V4SF): Ditto.
4037 (V16SF_FTYPE_V16SF_V16SI): Ditto.
4038 (V64QI_FTYPE_V32HI_V32HI): Ditto.
4039 (V32HI_FTYPE_V16SI_V16SI): Ditto.
4040 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
4041 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
4042 (V32HI_FTYPE_V64QI_V64QI): Ditto.
4043 (V32HI_FTYPE_V32HI_V32HI): Ditto.
4044 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
4045 (V16SI_FTYPE_V16SI_V4SI): Ditto.
4046 (V16SI_FTYPE_V16SI_V16SI): Ditto.
4047 (V16SI_FTYPE_V32HI_V32HI): Ditto.
4048 (V16SI_FTYPE_V16SI_SI): Ditto.
4049 (V8DI_FTYPE_V8DI_V8DI): Ditto.
4050 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
4051 (V8DI_FTYPE_V16SI_V16SI): Ditto.
4052 (V8DI_FTYPE_V8DI_V2DI): Ditto.
4053 (QI_FTYPE_QI): Ditto.
4054 (SI_FTYPE_SI): Ditto.
4055 (DI_FTYPE_DI): Ditto.
4056 (QI_FTYPE_QI_QI): Ditto.
4057 (QI_FTYPE_QI_INT): Ditto.
4058 (HI_FTYPE_HI_INT): Ditto.
4059 (SI_FTYPE_SI_INT): Ditto.
4060 (DI_FTYPE_DI_INT): Ditto.
4061 (HI_FTYPE_V16QI_V16QI): Ditto.
4062 (SI_FTYPE_V32QI_V32QI): Ditto.
4063 (DI_FTYPE_V64QI_V64QI): Ditto.
4064 (QI_FTYPE_V8HI_V8HI): Ditto.
4065 (HI_FTYPE_V16HI_V16HI): Ditto.
4066 (SI_FTYPE_V32HI_V32HI): Ditto.
4067 (QI_FTYPE_V4SI_V4SI): Ditto.
4068 (QI_FTYPE_V8SI_V8SI): Ditto.
4069 (QI_FTYPE_V2DI_V2DI): Ditto.
4070 (QI_FTYPE_V4DI_V4DI): Ditto.
4071 (QI_FTYPE_V8DI_V8DI): Ditto.
4072 (HI_FTYPE_V16SI_V16SI): Ditto.
4073 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
4074 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
4075 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
4076 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
4077 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
4078 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
4079 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
4080 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
4081 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
4082 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
4083 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
4084 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
4085 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
4086 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
4087 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
4088 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
4089 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
4090 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
4091 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
4092 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
4093 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
4094 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
4095 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
4096 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
4097 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
4098 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
4099 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
4100 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
4101 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
4102 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
4103 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
4104 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
4105 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
4106 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
4107 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
4108 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
4109 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
4110 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
4111 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
4112 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
4113 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
4114 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
4115 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
4116 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
4117 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
4118 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
4119 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
4120 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
4121 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
4122 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
4123 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
4124 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
4125 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
4126 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
4127 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
4128 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
4129 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
4130 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
4131 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
4132 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
4133 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
4134 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
4135 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
4136 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
4137 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
4138 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
4139 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
4140 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
4141 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
4142 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
4143 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
4144 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
4145 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
4146 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
4147 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
4148 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
4149 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
4150 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
4151 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
4152 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
4153 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
4154 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
4155 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
4156 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
4157 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
4158 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
4159 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
4160 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
4161 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
4162 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
4163 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
4164 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
4165 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
4166 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
4167 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
4168 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
4169 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
4170 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
4171 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
4172 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
4173 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
4174 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
4175 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
4176 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
4177 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
4178 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
4179 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
4180 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
4181 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
4182 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
4183 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
4184 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
4185 (HI_FTYPE_HI): Ditto.
4186 (HI_FTYPE_V16QI): Ditto.
4187 (SI_FTYPE_V32QI): Ditto.
4188 (DI_FTYPE_V64QI): Ditto.
4189 (QI_FTYPE_V8HI): Ditto.
4190 (HI_FTYPE_V16HI): Ditto.
4191 (SI_FTYPE_V32HI): Ditto.
4192 (QI_FTYPE_V4SI): Ditto.
4193 (QI_FTYPE_V8SI): Ditto.
4194 (HI_FTYPE_V16SI): Ditto.
4195 (QI_FTYPE_V2DI): Ditto.
4196 (QI_FTYPE_V4DI): Ditto.
4197 (QI_FTYPE_V8DI): Ditto.
4198 (V16QI_FTYPE_HI): Ditto.
4199 (V32QI_FTYPE_SI): Ditto.
4200 (V64QI_FTYPE_DI): Ditto.
4201 (V8HI_FTYPE_QI): Ditto.
4202 (V16HI_FTYPE_HI): Ditto.
4203 (V32HI_FTYPE_SI): Ditto.
4204 (V4SI_FTYPE_QI): Ditto.
4205 (V4SI_FTYPE_HI): Ditto.
4206 (V8SI_FTYPE_QI): Ditto.
4207 (V8SI_FTYPE_HI): Ditto.
4208 (V2DI_FTYPE_QI): Ditto.
4209 (V4DI_FTYPE_QI): Ditto.
4210 (HI_FTYPE_HI_HI): Ditto.
4211 (SI_FTYPE_SI_SI): Ditto.
4212 (DI_FTYPE_DI_DI): Ditto.
4213 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
4214 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
4215 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
4216 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
4217 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
4218 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
4219 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
4220 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
4221 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
4222 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
4223 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
4224 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
4225 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
4226 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
4227 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
4228 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
4229 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
4230 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
4231 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
4232 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
4233 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
4234 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
4235 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
4236 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
4237 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
4238 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
4239 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
4240 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
4241 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
4242 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
4243 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
4244 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
4245 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
4246 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
4247 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
4248 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
4249 (V16SI_FTYPE_HI): Ditto.
4250 (V8DI_FTYPE_QI): Ditto.
4251 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
4252 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
4253 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
4254 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
4255 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
4256 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
4257 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
4258 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
4259 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
4260 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
4261 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
4262 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
4263 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
4264 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
4265 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
4266 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
4267 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
4268 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
4269 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
4270 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
4271 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
4272 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
4273 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
4274 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
4275 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
4276 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
4277 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
4278 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
4279 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
4280 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
4281 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
4282 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
4283 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
4284 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
4285 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
4286 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
4287 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
4288 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
4289 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
4290 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
4291 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
4292 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
4293 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
4294 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
4295 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
4296 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
4297 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
4298 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
4299 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
4300 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
4301 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
4302 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
4303 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
4304 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
4305 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
4306 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
4307 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
4308 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
4309 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
4310 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
4311 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
4312 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
4313 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
4314 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
4315 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
4316 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
4317 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
4318 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
4319 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
4320 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
4321 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
4322 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
4323 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
4324 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
4325 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
4326 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
4327 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
4328 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
4329 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
4330 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
4331 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
4332 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
4333 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
4334 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
4335 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
4336 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
4337 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
4338 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
4339 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
4340 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
4341 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
4342 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
4343 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
4344 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
4345 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
4346 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
4347 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
4348 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
4349 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
4350 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
4351 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
4352 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
4353 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
4354 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
4355 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
4356 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
4357 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
4358 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
4359 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
4360 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
4361 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
4362 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
4363 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
4364 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
4365 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
4366 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
4367 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
4368 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
4369 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
4370 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
4371 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
4372 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
4373 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
4374 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
4375 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
4376 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
4377 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
4378 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
4379 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
4380 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
4381 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
4382 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
4383 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
4384 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
4385 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
4386 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
4387 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
4388 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
4389 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
4390 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
4391 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
4392 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
4393 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
4394 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
4395 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
4396 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
4397 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
4398 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
4399 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
4400 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
4401 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
4402 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
4403 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
4404 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
4405 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
4406 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
4407 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
4408 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
4409 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
4410 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
4411 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
4412 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
4413 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
4414 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
4415 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
4416 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
4417 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
4418 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
4419 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
4420 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
4421 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
4422 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
4423 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
4424 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
4425 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
4426 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
4427 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
4428 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
4429 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
4430 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
4431 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
4432 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
4433 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
4434 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
4435 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
4436 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
4437 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
4438 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
4439 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
4440 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
4441 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
4442 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
4443 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
4444 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
4445 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
4446 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
4447 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
4448 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
4449 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
4450 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
4451 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
4452 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
4453 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
4454 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
4455 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
4456 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
4457 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
4458 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
4459 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
4460 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
4461 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
4462 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
4463 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
4464 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
4465 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
4466 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
4467 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
4468 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
4469 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
4470 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
4471 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
4472 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
4473 (QI_FTYPE_V8DF_INT_QI): Ditto.
4474 (QI_FTYPE_V4DF_INT_QI): Ditto.
4475 (QI_FTYPE_V2DF_INT_QI): Ditto.
4476 (HI_FTYPE_V16SF_INT_HI): Ditto.
4477 (QI_FTYPE_V8SF_INT_QI): Ditto.
4478 (QI_FTYPE_V4SF_INT_QI): Ditto.
4479 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
4481 2015-07-31 Richard Biener <rguenther@suse.de>
4483 * gimple-fold.c (fold_gimple_assign): Remove folding of
4486 2015-07-31 Tom de Vries <tom@codesourcery.com>
4488 PR tree-optimization/66846
4489 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
4490 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
4491 (expand_omp_target) [ENABLE_CHECKING]: Same.
4492 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
4493 cfun if !LOOPS_NEED_FIXUP.
4494 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
4495 that omp_for already has its own loop struct.
4496 * tree-parloops.c (create_phi_for_local_result)
4497 (create_call_for_reduction): Handle simple latch bb.
4498 (create_parallel_loop): Add simple latch bb to preserve
4499 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
4500 (gen_parallel_loop): Remove call to cancel_loop_tree.
4501 (parallelize_loops): Skip loops that are inner loops of parallelized
4503 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
4504 verify_loop_structure.
4506 2015-07-30 Anatoly Sokolov <aesok@post.ru>
4508 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
4509 * config/v850/v850.md (RV_REGNUM): New constants.
4510 * config/v850/v850.c (v850_libcall_value): New functions.
4511 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
4512 (TARGET_LIBCALL_VALUE): Define.
4514 2015-07-30 Anatoly Sokolov <aesok@post.ru>
4516 * rtl.h (lowpart_subreg): Move in file.
4517 * loop-iv.c (lowpart_subreg): Move to...
4518 * simplify-rtx.c (lowpart_subreg): ...here.
4519 (simplify_binary_operation_1): Use lowpart_subreg instead of
4520 simplify_gen_subreg.
4521 * expr.c (expand_expr_real_2): Ditto.
4522 * emit-rtl.c (gen_lowpart_common): Ditto.
4523 * combine.c (gen_lowpart_for_combine): Ditto.
4524 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
4525 expand_debug_source_expr): Ditto.
4527 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
4529 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
4530 (expand_builtin_atomic_clear): Remove support for atomic_clear
4533 2015-07-30 Richard Biener <rguenther@suse.de>
4535 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
4536 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
4537 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
4538 redundant operand canonicalization.
4540 2015-07-30 David Sherwood <david.sherwood@arm.com>
4542 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
4543 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
4544 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
4545 * config/arm/arm.c (neon_valid_immediate): Likewise.
4546 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
4547 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
4548 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
4549 (expand_vec_perm_vpshufb2_vpermq): Likewise.
4550 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
4551 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
4552 * config/i386/sse.md
4553 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
4554 (*ssse3_palignr<mode>_perm): Likewise.
4555 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
4556 * config/spu/spu.c (arith_immediate_p): Likewise.
4557 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4558 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
4560 2015-07-30 Richard Biener <rguenther@suse.de>
4562 * genmatch.c (decision_tree::gen_gimple): Merge with ...
4563 (decision_tree::gen_generic): ... this into ...
4564 (decision_tree::gen): ... this.
4565 (main): Adjust callers.
4567 2015-07-30 Richard Biener <rguenther@suse.de>
4569 * genmatch.c (verbose): New global.
4570 (warning_at): Add overload with source_location.
4571 (capture_info::capture_info): Add bool whether generating gimple
4572 or generic. Add gimple member.
4573 (capture_info::cinfo): Add capture member.
4574 (capture_info::walk_match): Record capture. Warn on
4576 (capture_info::walk_c_expr): Add more fragments captures cannot
4577 escape through. Warn on escaped captures.
4578 (dt_simplify::gen_1): Warn on operands we force to have no
4580 (main): Initialize verbose.
4581 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
4583 2015-07-30 Richard Biener <rguenther@suse.de>
4586 * match.pd: Allow both operands to independently have conversion
4587 when simplifying compares of addresses.
4589 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
4593 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
4594 around those cases that need one.
4596 2015-07-29 Aditya Kumar <hiraditya@msn.com>
4598 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
4600 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
4602 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
4603 New. Copied from config/i386/gnu-user.h.
4604 (ASM_COMMENT_START): Likewise.
4605 (DBX_REGISTER_NUMBER): Likewise.
4607 2015-07-29 Richard Biener <rguenther@suse.de>
4609 * gimple-fold.c (fold_gimple_cond): Remove.
4610 (fold_stmt_1): Do not call it.
4612 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
4614 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
4615 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
4617 * config/aarch64/aarch64-modes.def: Add HFmode.
4619 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4620 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
4622 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
4623 aarch64_promoted_type): New.
4625 (aarch64_float_const_representable_p): Disable HFmode.
4626 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
4627 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
4628 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
4630 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
4631 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
4633 * config/aarch64/iterators.md (GPF_F16): New.
4635 2015-07-29 Richard Biener <rguenther@suse.de>
4637 * match.pd: Merge address comparison patterns and make them
4638 handle some more cases.
4640 2015-07-29 Richard Biener <rguenther@suse.de>
4642 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
4643 (parser::parse_capture): Add bool argument on whether to reject
4645 (parser::parse_expr): Adjust.
4646 (parser::parse_op): Likewise.
4647 (parser::parse_pattern): Likewise.
4649 2015-07-29 Richard Biener <rguenther@suse.de>
4651 * gimple-fold.c (has_use_on_stmt): New function.
4652 (replace_stmt_with_simplification): Use it to allow
4653 abnormals originally referenced in the stmt.
4654 (fold_stmt_1): Canonicalize operand order.
4656 2015-07-28 David Sherwood <david.sherwood@arm.com>
4658 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
4659 GET_MODE_INNER unconditionally.
4660 * config/spu/spu.c (arith_immediate_p): Likewise.
4661 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
4662 * expmed.c (synth_mult): Remove check for VOIDmode result from
4664 (expand_mult_const): Likewise.
4665 * fold-const.c (fold_binary_loc): Replace call to element_precision
4666 with call to GET_MODE_PRECISION.
4667 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
4669 (emit_mode_inner): Likewise.
4670 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
4672 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
4673 (GET_MODE_UNIT_PRECISION): Likewise.
4674 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
4675 * simplify-rtx.c (simplify_immed_subreg): Likewise.
4676 * stor-layout.c (bitwise_type_for_mode): Update assert.
4677 (element_precision): Remove.
4679 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
4681 * target-insns.def (reload_load_address): New targetm instruction
4683 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
4685 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
4687 * target-insns.def (atomic_test_and_set): New targetm instruction
4689 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
4690 HAVE_*/gen_* interface.
4692 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
4694 * target-insns.def (can_extend, ptr_extend): New targetm instruction
4696 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
4697 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
4698 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
4699 * rtlanal.c (nonzero_bits1): Likewise.
4700 (num_sign_bit_copies1): Likewise.
4702 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
4704 * target-insns.def (eh_return): New targetm instruction pattern.
4705 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
4707 * function.c (thread_prologue_and_epilogue_insns): Remove
4708 preprocessor condition.
4710 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
4712 * target-insns.def (indirect_jump): New targetm instruction pattern.
4713 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
4716 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
4718 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
4719 instead of nonimmediate_operand. Remove C condiition.
4721 2015-07-28 Richard Biener <rguenther@suse.de>
4723 * match.pd: Add more simplification of address comparisons.
4725 2015-07-28 Richard Biener <rguenther@suse.de>
4727 * match.pd: Re-order two cases in comparison with max/min
4728 value simplification to make it apply for bools.
4730 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4732 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
4733 Handle simple SIGN_EXTEND or ZERO_EXTEND.
4734 (aarch64_rtx_costs): Properly strip extend or extract before
4735 passing down to rtx costs again.
4737 2015-07-28 Nick Clifton <nickc@redhat.com>
4739 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
4740 Optimizes the case where -mes0 is active and a constant symbolic
4742 * config/rl78/rl78-protos.h: Prototype the new function.
4743 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
4745 2015-07-28 Tom de Vries <tom@codesourcery.com>
4747 * tree-parloops.c (reduc_stmt_res): New function.
4748 (initialize_reductions, add_field_for_reduction)
4749 (create_phi_for_local_result, create_loads_for_reductions)
4750 (create_stores_for_reduction, build_new_reduction): Handle case that
4751 reduc_stmt is a phi.
4752 (gather_scalar_reductions): Allow double_reduc reductions.
4754 2015-07-28 Richard Biener <rguenther@suse.de>
4756 * fold-const.c (fold_comparison): Remove equality folding
4757 of decl addresses ...
4758 * match.pd: ... here and merge with existing pattern.
4760 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
4762 PR tree-optimization/66828
4763 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
4764 from int64_t to uint64_t.
4766 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
4768 * opts-common.c (read_cmdline_option): List DriverOnly enum values
4769 as valid only in the error message of the driver, not in the
4770 messages of the language compilers.
4772 2015-07-27 Tom de Vries <tom@codesourcery.com>
4774 * tree-parloops.c (gather_scalar_reductions): Simplify function
4777 2015-07-27 Marek Polacek <polacek@redhat.com>
4779 * ipa-devirt.c (types_same_for_odr): Fix typo.
4781 2015-07-27 Jason Merrill <jason@redhat.com>
4784 * dwarf2out.c (gen_inlined_subroutine_die): Check
4785 cgraph_function_possibly_inlined_p.
4787 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
4789 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
4790 Place integer variant first.
4791 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4793 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
4796 * config/arm/arm-builtins.c (enum arm_builtins):
4797 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
4798 (ARM_BUILTIN_NEON_BASE): Rename macro to....
4799 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
4800 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
4801 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
4803 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
4806 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
4807 Add qualifier_lane_index.
4808 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
4809 (arm_getlane_qualifiers): Use qualifier_lane_index.
4810 (arm_lanemac_qualifiers): Rename to...
4811 (arm_mac_n_qualifiers): ...this.
4812 (LANEMAC_QUALIFIERS): Rename to...
4813 (MAC_N_QUALIFIERS): ...this.
4814 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
4815 (arm_setlane_qualifiers): Use qualifier_lane_index.
4816 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
4817 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
4818 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
4819 (arm_expand_neon_builtin): Handle qualifier_lane_index.
4821 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
4822 * config/arm/arm.c (bounds_check): Likewise, improve error message.
4823 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
4824 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
4825 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
4826 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
4827 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
4828 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
4829 qualifiers to TERNOP_IMM.
4830 (vdup_lane): Change qualifiers to GETLANE.
4831 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
4832 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
4833 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
4834 vqdmlsl_n): Change qualifiers to MAC_N.
4836 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
4837 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
4838 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
4839 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
4840 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
4841 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
4842 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
4843 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
4844 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
4845 Remove call to neon_lane_bounds.
4847 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
4849 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
4850 Place integer variant first.
4852 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
4854 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
4855 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
4856 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
4857 for armv6kz targets.
4858 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
4859 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
4860 (FL_FOR_ARCH6ZK): Remove.
4861 (FL_FOR_ARCH6KZ): New.
4862 (arm_arch6zk): New declaration.
4863 * config/arm/arm-tables.opt: Regenerate.
4864 * config/arm/arm.c (arm_arch6kz): New.
4865 (arm_option_override): Set arm_arch6kz.
4866 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
4867 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
4868 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
4870 2015-07-27 Marek Polacek <polacek@redhat.com>
4874 * doc/invoke.texi: Document -Wtautological-compare.
4876 2015-07-27 Richard Biener <rguenther@suse.de>
4878 * genmatch.c (decision_tree::gen_gimple): Split out large
4879 subtrees into separate functions.
4880 (decision_tree::gen_generic): Likewise.
4882 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
4884 * config/alpha/alpha.c: Use SUBREG_P predicate.
4885 * config/alpha/predicates.md: Ditto.
4887 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
4889 * config.host (s390*-*-*): Include driver-native.c only when
4890 building with s390* as host *and* target.
4892 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
4895 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
4896 T bit register modified_between_p check.
4898 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
4900 * config/i386/i386.c: Use SUBREG_P predicate.
4901 * config/i386/i386.md: Ditto.
4902 * config/i386/sse.md: Ditto.
4903 * config/i386/predicates.md: Ditto.
4905 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
4908 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
4909 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
4911 2015-07-25 Sebastian Pop <s.pop@samsung.com>
4913 * Makefile.in: Remove use of TREEBROWSER.
4914 * config.in: Regenerated.
4915 * configure: Regenerated.
4916 * configure.ac: Remove definition of TREEBROWSER.
4917 * tree-browser.c: Removed.
4918 * tree-browser.def: Removed.
4920 2015-07-25 Sebastian Pop <s.pop@samsung.com>
4922 * graphite-scop-detection.c: Include gimple-pretty-print.h.
4923 (stmt_simple_for_scop_p): Print when a stmt is not handled in
4925 (scopdet_basic_block_info): Print when a loop or bb cannot be
4926 represented in Graphite.
4928 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
4931 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
4932 execution guard when min_size is less than size_needed.
4934 2015-07-25 Sebastian Pop <s.pop@samsung.com>
4936 * doc/install.texi: Document supported versions of ISL.
4938 2015-07-25 Jeff Law <law@redhat.com>
4942 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4943 unable to find X NE 0 in the tables, return X as the simplified
4945 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4946 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
4948 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4949 after removing the control flow statement and unnecessary edges.
4951 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
4954 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
4956 PR rtl-optimization/64164
4957 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4958 * tree-ssa-copyrename.c: Removed.
4959 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4960 -ftree-coalesce-vars.
4961 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4962 * common.opt (ftree-copyrename): Ignore.
4963 (ftree-coalesce-inlined-vars): Likewise.
4964 * doc/invoke.texi: Remove the ignored options above.
4965 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4966 * tree-ssa-coalesce.h: ... here.
4967 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4968 headers required by it.
4969 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4970 across variables when flag_tree_coalesce_vars. Check register
4971 use and promoted modes to allow coalescing. Moved to
4972 tree-ssa-coalesce.c.
4973 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4974 with its member functions to tree-ssa-coalesce.c.
4975 (var_map_base_init): Likewise. Renamed to
4976 compute_samebase_partition_bases.
4977 (partition_view_normal): Drop want_bases parameter.
4978 (partition_view_bitmap): Likewise.
4979 * tree-ssa-live.h: Adjust declarations.
4980 * tree-ssa-coalesce.c: Include explow.h.
4981 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4982 default defs at the entry point.
4983 (dump_part_var_map): New.
4984 (compute_optimized_partition_bases): New, called by...
4985 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4986 of compute_samebase_partition_bases. Adjust.
4987 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4988 * cfgexpand.c (leader_merge): New.
4989 (get_rtl_for_parm_ssa_default_def): New.
4990 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4991 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4992 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4993 redundant MEM attr setting.
4994 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4996 (expand_one_stack_var): ... this. New wrapper to check and
4997 skip already expanded SSA partitions.
4998 (record_alignment_for_reg_var): New, factored out of...
4999 (expand_one_var): ... this.
5000 (expand_one_ssa_partition): New.
5001 (adjust_one_expanded_partition_var): New.
5002 (expand_one_register_var): Check and skip already expanded SSA
5004 (expand_used_vars): Don't create DECLs for anonymous SSA
5005 names. Expand all SSA partitions, then adjust all SSA names.
5006 (pass::execute): Replace the loops that set
5007 SA.partition_to_pseudo from partition leaders and cleared
5008 DECL_RTL for multi-location variables, and that which used to
5009 rename vars and set attrs, with one that clears DECL_RTL and
5010 checks that PARMs and RESULTs default_defs match DECL_RTL.
5011 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5012 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
5013 * explow.c (promote_ssa_mode): New.
5014 * explow.h (promote_ssa_mode): Declare.
5015 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5016 * function.c: Include cfgexpand.h.
5017 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5018 (use_register_for_parm_decl): Wrapper for the above to
5019 special-case the result_ptr.
5020 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5021 (split_complex_args): Take assign_parm_data_all argument.
5022 Pass it to rtl_for_parm. Set up rtl and context for split
5024 (assign_parms_augmented_arg_list): Adjust.
5025 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5026 multiple locations. Recognize split complex args.
5027 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5028 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
5029 (assign_parm_setup_block): Prefer SSA-assigned location.
5030 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
5031 if stack_parm is NULL.
5032 (assign_parm_setup_stack): Prefer SSA-assigned location.
5033 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
5034 rtl before testing for pointer bounds. Special-case result_ptr.
5035 (expand_function_start): Maybe reset DECL_RTL of result.
5036 Prefer SSA-assigned location for result and static chain.
5037 Factor out DECL_RESULT and SET_DECL_RTL.
5038 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5039 anonymous SSA names. Use promote_ssa_mode.
5040 (get_temp_reg): Likewise.
5041 (remove_ssa_form): Adjust.
5042 * stor-layout.c (layout_decl): Don't set mem attributes of
5044 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
5045 and get its reg_usage for reg invalidation.
5046 (compute_bb_dataflow): Pass it insn.
5047 (emit_notes_in_bb): Likewise.
5049 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
5051 * config/i386/i386.c (ix86_va_start): Remove
5052 unneeded !TARGET_64BIT check.
5053 (ix86_gimplify_va_arg): Ditto.
5055 2015-07-24 Tom de Vries <tom@codesourcery.com>
5057 * graphite-sese-to-poly.c (build_poly_scop): Always call
5058 rewrite_commutative_reductions_out_of_ssa.
5060 2015-07-24 Tom de Vries <tom@codesourcery.com>
5062 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
5063 flag_associative_math to FLOAT_TYPE_P. Honour
5064 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
5066 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
5069 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
5070 and "%qD" in warning_at instead of "%q+D" in warning.
5072 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
5074 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
5075 (ix86_function_abi): Cleanup.
5077 2015-07-24 Michael Darling <darlingm@gmail.com>
5080 * acinclude.m4: Reflects renaming of configure.in to configure.ac
5081 * configure: Likewise
5082 * configure.ac: Likewise
5083 * doc/install.texi: Likewise
5084 * doc/tm.texi: Likewise
5085 * doc/tm.texi.in: Likewise
5087 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5089 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
5090 manually swapping values.
5091 * cse.c (fold_rtx): Likewise.
5092 * lra-eliminations.c (form_sum): Likewise.
5094 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
5097 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
5098 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
5099 (*jcc_1, *jcc_2, jump, simple_return_internal)
5100 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
5101 Set length_nobnd attribute instead of length attribute.
5102 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
5103 (length_nobnd): Remove attribute.
5104 (length): Remove length_nobnd processing.
5106 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
5108 * gimplify.c (omp_default_clause): New function. Reorganize flow
5109 for clarity. Broken out of ...
5110 (omp_notice_variable): ... here.
5112 2015-07-24 Gary Funck <gary@intrepid.com>
5115 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
5116 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
5118 2015-07-24 Tom de Vries <tom@codesourcery.com>
5120 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
5121 exit-first loop transform.
5123 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5126 * tree-cfg.c (struct replace_decls_d): New struct.
5127 (replace_block_vars_by_duplicates_1): New function.
5128 (replace_block_vars_by_duplicates): Use it to replace the decls
5129 in the value exprs by duplicates.
5131 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
5133 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
5134 -shared, -symbolic, -rdynamic.
5136 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
5139 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
5140 -dynamic-linker within %{!static %{!shared, and -rdynamic within
5143 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
5146 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
5147 edge summary is available.
5149 2015-07-24 Richard Biener <rguenther@suse.de>
5151 * genmatch.c (struct dt_node): Add statistic fields.
5152 (dt_node::analyze): New method.
5153 (decision_tree::gen_gimple): Call analyze on the root node
5154 and print statistics to stderr.
5155 (decision_tree::gen_generic): Likewise.
5157 2015-07-24 Richard Biener <rguenther@suse.de>
5159 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
5160 against the highest or lowest possible integer ...
5161 * match.pd: ... as patterns here.
5163 2015-07-24 Richard Biener <rguenther@suse.de>
5165 * genmatch.c (struct capture_info): Add same_as field.
5166 (capture_info::capture_info): Initialize same_as.
5167 (capture_info::walk_match): Compute same_as.
5168 (capture_info::walk_result): Compute stuff for the leader.
5169 (capture_info::walk_c_expr): Likewise.
5170 (dt_simplify::gen_1): Only look at leaders when deciding
5171 to force no side-effects or emit side-effects of omitted operands.
5173 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5175 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
5176 reg note to the GPR -> FPR save instructions.
5178 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5180 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
5182 (s390_expand_insv): Don't generate risbg pattern for constant zero
5184 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
5185 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
5188 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5190 * config/s390/s390.c (s390_reorg): Clean up handling of processors
5193 (s390_issue_rate): Likewise.
5194 (s390_sched_reorder): Likewise.
5195 (s390_sched_variable_issue): Likewise.
5196 (s390_loop_unroll_adjust): Likewise.
5197 (s390_option_override): Likewise.
5199 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5201 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
5202 processor capabilities with -march=native.
5203 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
5204 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
5205 (S390_TARGET_BITS_STRING): Macro to simplify specs.
5207 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5209 * config/s390/s390.c (s390_issue_rate): Handle
5210 PROCESSOR_2094_Z9_EC.
5211 (s390_option_override): Likewise.
5212 (s390_adjust_priority): Likewise.
5214 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
5216 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
5217 when cross compiling.
5219 2015-07-24 Richard Biener <rguenther@suse.de>
5221 * fold-const.c (maybe_canonicalize_comparison_1): Move
5222 A code CST canonicalization ...
5223 * match.pd: ... to a pattern here.
5225 2015-07-24 Jiong Wang <jiong.wang@arm.com>
5228 2015-07-22 Jiong Wang <jiong.wang@arm.com>
5230 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
5231 (HONOR_REG_ALLOC_ORDER): Define.
5233 2015-07-24 Richard Biener <rguenther@suse.de>
5235 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
5236 * fold-const.c (fold_comparison): Move parameter does not
5237 alias &local simplification ...
5238 * match.pd: ... as a pattern here.
5240 2015-07-24 Richard Biener <rguenther@suse.de>
5242 * gimple-fold.c (replace_stmt_with_simplification): Special-case
5243 valueizing call operands.
5244 * gimple-match-head.c (maybe_push_res_to_seq): Take
5245 number of call arguments from ops array.
5246 (do_valueize): New function.
5247 (gimple_simplify): Return true if valueization changed
5248 any operand even if the result didn't simplify further.
5250 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5253 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
5255 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5258 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
5260 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
5262 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
5265 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
5267 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
5270 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
5272 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
5273 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
5275 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
5276 ms_va_list_type_node initialization.
5278 2015-07-23 Jeff Law <law@redhat.com>
5281 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5282 unable to find X NE 0 in the tables, return X as the simplified
5284 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
5285 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
5287 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
5288 after removing the control flow statement and unnecessary edges.
5290 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
5292 * tree-pass.h (get_current_pass_name): Removed.
5294 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
5296 PR rtl-optimization/64164
5297 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5298 * tree-ssa-copyrename.c: Removed.
5299 * opts.c (default_options_table): Drop -ftree-copyrename. Add
5300 -ftree-coalesce-vars.
5301 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5302 * common.opt (ftree-copyrename): Ignore.
5303 (ftree-coalesce-inlined-vars): Likewise.
5304 * doc/invoke.texi: Remove the ignored options above.
5305 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5306 * tree-ssa-coalesce.h: ... here.
5307 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5308 headers required by it.
5309 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5310 across variables when flag_tree_coalesce_vars. Check register
5311 use and promoted modes to allow coalescing. Moved to
5312 tree-ssa-coalesce.c.
5313 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5314 with its member functions to tree-ssa-coalesce.c.
5315 (var_map_base_init): Likewise. Renamed to
5316 compute_samebase_partition_bases.
5317 (partition_view_normal): Drop want_bases parameter.
5318 (partition_view_bitmap): Likewise.
5319 * tree-ssa-live.h: Adjust declarations.
5320 * tree-ssa-coalesce.c: Include explow.h.
5321 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5322 default defs at the entry point.
5323 (dump_part_var_map): New.
5324 (compute_optimized_partition_bases): New, called by...
5325 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
5326 of compute_samebase_partition_bases. Adjust.
5327 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
5328 * cfgexpand.c (leader_merge): New.
5329 (get_rtl_for_parm_ssa_default_def): New.
5330 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
5331 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
5332 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
5333 redundant MEM attr setting.
5334 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
5336 (expand_one_stack_var): ... this. New wrapper to check and
5337 skip already expanded SSA partitions.
5338 (record_alignment_for_reg_var): New, factored out of...
5339 (expand_one_var): ... this.
5340 (expand_one_ssa_partition): New.
5341 (adjust_one_expanded_partition_var): New.
5342 (expand_one_register_var): Check and skip already expanded SSA
5344 (expand_used_vars): Don't create DECLs for anonymous SSA
5345 names. Expand all SSA partitions, then adjust all SSA names.
5346 (pass::execute): Replace the loops that set
5347 SA.partition_to_pseudo from partition leaders and cleared
5348 DECL_RTL for multi-location variables, and that which used to
5349 rename vars and set attrs, with one that clears DECL_RTL and
5350 checks that PARMs and RESULTs default_defs match DECL_RTL.
5351 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5352 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
5353 * explow.c (promote_ssa_mode): New.
5354 * explow.h (promote_ssa_mode): Declare.
5355 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5356 * function.c: Include cfgexpand.h.
5357 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5358 (use_register_for_parm_decl): Wrapper for the above to
5359 special-case the result_ptr.
5360 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5361 (split_complex_args): Take assign_parm_data_all argument.
5362 Pass it to rtl_for_parm. Set up rtl and context for split
5364 (assign_parms_augmented_arg_list): Adjust.
5365 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5366 multiple locations. Recognize split complex args.
5367 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5368 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
5369 (assign_parm_setup_block): Prefer SSA-assigned location.
5370 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
5371 if stack_parm is NULL.
5372 (assign_parm_setup_stack): Prefer SSA-assigned location.
5373 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
5374 rtl before testing for pointer bounds. Special-case result_ptr.
5375 (expand_function_start): Maybe reset DECL_RTL of result.
5376 Prefer SSA-assigned location for result and static chain.
5377 Factor out DECL_RESULT and SET_DECL_RTL.
5378 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5379 anonymous SSA names. Use promote_ssa_mode.
5380 (get_temp_reg): Likewise.
5381 (remove_ssa_form): Adjust.
5382 * stor-layout.c (layout_decl): Don't set mem attributes of
5384 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
5385 and get its reg_usage for reg invalidation.
5386 (compute_bb_dataflow): Pass it insn.
5387 (emit_notes_in_bb): Likewise.
5389 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
5392 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
5394 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
5395 (rs6000_emit_2insn_and): Handle dot forms.
5396 * config/rs6000/rs6000.md (and<mode>3): Adjust.
5397 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
5398 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
5400 2015-07-23 Richard Biener <rguenther@suse.de>
5402 * generic-match-head.c: Include cgraph.h.
5403 * gimple-match-head.c: Likewise.
5404 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
5406 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
5407 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
5410 2015-07-23 Richard Biener <rguenther@suse.de>
5412 * gimple-fold.c (fold_gimple_cond): Do not require folding
5413 results to pass valid_gimple_rhs_p.
5414 * tree-cfg.h (fold_cond_expr_cond): Remove.
5415 * tree-cfg.c (fold_cond_expr_cond): Likewise.
5416 (make_edges): Do not call it.
5417 * tree-inline.c (tree_function_versioning): Likewise.
5419 2015-07-23 Tom de Vries <tom@codesourcery.com>
5421 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
5422 vect_force_simple_reduction.
5423 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
5424 (vect_is_simple_reduction_1): Add and handle
5425 need_wrapping_integral_overflow parameter.
5426 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
5427 need_wrapping_integral_overflow parameter.
5428 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
5429 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
5432 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
5434 PR tree-optimization/66926,66951
5435 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
5436 INNER_LOOP and fix up condition for renaming virtual operands.
5438 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5440 * combine.c (try_combine): Use std::swap instead of manually
5443 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
5445 * config/mips/i6400.md: New file.
5446 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
5447 (mips64r6): Likewise.
5449 * config/mips/mips-tables.opt: Regenerate.
5450 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
5451 (mips_issue_rate): Add support for i6400.
5452 (mips_multipass_dfa_lookahead): Likewise.
5453 * config/mips/mips.h (TUNE_I6400): Define.
5454 * config/mips/mips.md: Include i6400.md.
5455 (processor): Add i6400.
5456 * doc/invoke.texi (-march=@var{arch}): Add i6400.
5458 2015-07-23 Richard Biener <rguenther@suse.de>
5461 * match.pd: Guard widen and sign-change comparison simplification
5464 2015-07-23 Richard Biener <rguenther@suse.de>
5466 PR tree-optimization/66945
5467 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
5468 ::before_dom_children): Force the propagators idea of
5469 non-executable edges to materialize, not what the folder
5472 2015-07-23 Richard Biener <rguenther@suse.de>
5474 * gimple.h (gimple_cond_make_false): Use 0 != 0.
5475 (gimple_cond_make_true): Use 1 != 0.
5477 2015-07-22 DJ Delorie <dj@redhat.com>
5479 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
5482 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
5483 (ashrhi3): Likewise.
5484 (lshrhi3): Likewise.
5485 (movhi): Take advantage of zero-extend to load small constants.
5487 (and<mode>3): Likewise.
5488 (zero_extendqihi2): Likewise.
5489 (zero_extendqisi2): New.
5490 * config/msp430/constraints.md (N,O): New.
5491 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
5493 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
5496 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
5497 to enum feature_priority and feature_list.
5498 (fold_builtin_cpu): Add F_AES to enum processor_features
5499 and isa_names_table.
5501 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
5504 * config/i386/linux-common.h (MPX_SPEC): Use linker option
5505 for 64bit target only.
5507 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
5509 * config/nvptx/nvptx.c: Expand some comments.
5511 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
5513 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
5514 (cortex_a53_advsimd): ...This.
5516 2015-07-22 Richard Biener <rguenther@suse.de>
5518 * genmatch.c (expr::gen_transform): Clarify error message
5519 and display location.
5521 2015-07-22 Richard Biener <rguenther@suse.de>
5523 * genmatch.c (struct operand): Add location member.
5524 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
5526 (struct simplify): Remove match_location and result_location
5528 (elsehwere): Adjust.
5530 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
5532 * config/mips/m5100.md: New file.
5533 * config/mips/mips-cpus.def (m5100, m5101): Define.
5534 * config/mips/mips-tables.opt: Regenerate.
5535 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
5536 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
5537 -march=m5101 to -mips32r5.
5538 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
5539 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
5541 * config/mips/mips.md: Include m5100.md.
5542 (processor): Add m5100.
5543 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
5545 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
5547 * config/mips/mips-cpus.def (interaptiv): Define.
5548 * config/mips/mips-tables.opt: Regenerate.
5549 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
5551 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
5552 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
5554 2015-07-22 Jiong Wang <jiong.wang@arm.com>
5557 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
5558 (HONOR_REG_ALLOC_ORDER): Define.
5560 2015-07-22 Richard Biener <rguenther@suse.de>
5562 PR tree-optimization/66952
5563 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
5564 blocks we end up executing unconditionally reset all SSA
5565 info such as range and alignment.
5566 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
5567 * tree-ssanames.c (reset_flow_sensitive_info): New function.
5569 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
5571 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
5574 2015-07-22 Richard Biener <rguenther@suse.de>
5576 * genmatch.c (parser::parse_result): Properly handle
5577 match with result operands and conditions.
5579 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
5582 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
5583 Add qualifier_struct_load_store_lane_index.
5584 (aarch64_types_loadstruct_lane_qualifiers): Use
5585 qualifier_struct_load_store_lane_index for lane index argument for
5587 (aarch64_types_storestruct_lane_qualifiers): Ditto.
5588 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
5589 (aarch64_simd_expand_args): Add new argument describing mode of
5590 builtin. Check lane bounds for arguments with
5591 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
5592 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
5593 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
5594 (aarch64_simd_expand_builtin): Handle arguments with
5595 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
5596 aarch64_simd_expand_args.
5597 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
5598 vst[234]_lane with BUILTIN_VALLDIF.
5599 * config/aarch64/aarch64-simd.md:
5600 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
5601 endianness reversal on lane index.
5602 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
5603 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
5604 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
5605 (vec_store_lanesci_lane<mode>): Ditto.
5606 (vec_store_lanesxi_lane<mode>): Ditto.
5607 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
5608 reversal of lane index.
5609 (aarch64_ld3_lane<mode>): Ditto.
5610 (aarch64_ld4_lane<mode>): Ditto.
5611 (aarch64_st2_lane<mode>): Ditto.
5612 (aarch64_st3_lane<mode>): Ditto.
5613 (aarch64_st4_lane<mode>): Ditto.
5614 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
5615 to qmode. Add new mode parameter. Update uses.
5616 (__LD3_LANE_FUNC): Ditto.
5617 (__LD4_LANE_FUNC): Ditto.
5618 (__ST2_LANE_FUNC): Ditto.
5619 (__ST3_LANE_FUNC): Ditto.
5620 (__ST4_LANE_FUNC): Ditto.
5622 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
5624 * doc/invoke.texi (Language Independent Options): Rename node to
5625 Diagnostic Message Formatting Options.
5627 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
5630 * lra-remat.c (operand_to_remat): Prevent using insns with input
5631 subregs processed separately by IRA.
5633 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
5635 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
5637 (single_imm_use): Check for iterator node.
5638 (num_imm_uses): Likewise.
5639 * tree-ssa-operands.c (has_zero_uses_1): Delete.
5640 (single_imm_use_1): Check for iterator node.
5642 2015-07-21 Mike Frysinger <vapier@gentoo.org>
5643 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5645 * configure.ac: Add check for new options in isl-0.15.
5646 * config.in, configure: Rebuilt.
5647 * graphite-blocking.c: Include <isl/constraint.h>
5648 * graphite-interchange.c, graphite-poly.c: Likewise.
5649 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
5650 * graphite.c: Likewise.
5651 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
5653 * graphite-dependences.c: Include <isl/constraint.h>.
5654 (max_number_of_out_dimensions): Returns isl_stat.
5655 (extend_schedule_1): Likewise
5656 (extend_schedule): Corresponding changes.
5657 * graphite-optimize-isl.c: Include <isl/constraint.h> and
5659 (getSingleMap): Change return type of isl_stat.
5660 (optimize_isl): Conditionally use
5661 isl_options_set_schedule_serialize_sccs.
5662 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
5663 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
5665 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
5668 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
5669 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
5671 2015-07-21 Richard Biener <rguenther@suse.de>
5673 PR tree-optimization/66948
5674 * genmatch.c (capture_info::walk_match): Also recurse to
5675 captures. Properly compute expr state from captures of
5677 * match.pd: Add single-use guards to
5678 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
5680 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
5682 * config/nvptx/mkoffload.c (process): Add static destructor call.
5684 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5687 * match.pd (A - B -> A + (-B)): Don't allow folding
5688 when type if a fixed-point type.
5690 2015-07-20 DJ Delorie <dj@redhat.com>
5692 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
5693 (iorqi3_real): Likewise for set1.
5695 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
5697 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
5700 2015-07-20 Aditya Kumar <hiraditya@msn.com>
5702 * graphite-isl-ast-to-gimple.c:
5703 Refactor so that each function can access 'region'. This will help
5704 maintain a parameter rename_map within a region.
5706 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
5708 * config/rs6000/rs6000.md (*lt0_disi): New.
5710 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
5713 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
5714 "available letters" comment.
5715 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
5716 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
5717 and_2rld_operand): Delete.
5718 (and_operand): Adjust.
5719 (rotate_mask_operator): New.
5720 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
5721 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
5722 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
5723 extract_ME): Delete.
5724 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
5725 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
5726 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
5727 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
5728 rs6000_emit_2insn_and): New.
5729 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
5730 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
5731 includes_rldic_lshift_p, includes_rldicr_lshift_p,
5732 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
5733 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
5734 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
5735 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
5736 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
5737 rs6000_emit_2insn_and): New.
5738 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
5739 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
5741 <NOT>: Don't fall through to next case.
5742 <AND>: Handle the various rotate-and-mask cases directly.
5743 <IOR>: Always cost as one insn.
5744 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
5745 (and<mode>3): Adjust expander for the new patterns.
5746 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
5747 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
5748 (*and<mode>3_imm_dot_shifted): New.
5749 (*and<mode>3_mask): Delete, rewrite as ...
5750 (and<mode>3_mask): ... New.
5751 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
5752 (andsi3_internal0_nomc): Delete.
5753 (*andsi3_internal6): Delete.
5754 (*and<mode>3_2insn): New.
5755 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
5756 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
5757 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
5758 *insvdi_internal3): Delete.
5759 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
5760 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
5761 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
5762 *ior<mode>_mask): New.
5763 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
5764 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
5765 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
5766 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
5768 (ashr<mode>3): Delete expander.
5769 (*ashr<mode>3): Rename to ...
5770 (ashr<mode>3): ... This.
5771 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
5772 (*rotldi3_internal4, *rotldi3_internal5 and split,
5773 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
5774 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
5775 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
5776 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
5777 (splitter for loading a mask): Adjust.
5778 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
5780 2015-07-20 Marek Polacek <polacek@redhat.com>
5782 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
5783 output_add_clobbers, output_added_clobbers_hard_reg_p,
5784 gen_rtx_scratch): Remove declarations.
5786 2015-07-20 Marek Polacek <polacek@redhat.com>
5789 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
5791 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5793 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
5794 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
5796 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5798 * combine.c (combine_simplify_rtx): Move simplification step
5799 before various transformations/substitutions.
5801 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
5803 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
5804 (struct int_traits): Likewise.
5806 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5808 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
5809 function to vmsdbgout_function_decl.
5811 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
5814 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
5815 from misaligned positions.
5816 (ix86_expand_pinsr): Reject insertions to misaligned positions.
5818 2015-07-18 Sebastian Pop <s.pop@samsung.com>
5822 * Makefile.in: Removed omega.o.
5823 * common.opt: Document flag fcheck-data-deps as deprecated.
5824 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
5825 its associated params: omega-max-vars, omega-max-geqs,
5826 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
5827 omega-max-keys, omega-eliminate-redundant-constraints.
5828 * doc/loop.texi: Remove all the section on Omega.
5829 * graphite-blocking.c: Include missing params.h: it used to be
5830 included through tree-data-ref.h and omega.h.
5831 * graphite-isl-ast-to-gimple.c: Same.
5832 * graphite-optimize-isl.c: Same.
5833 * graphite-sese-to-poly.c: Same.
5837 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
5838 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
5839 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
5840 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
5841 * passes.def: Remove pass_check_data_deps.
5842 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
5843 (dump_conflict_function): Same.
5844 (dump_subscript): Same.
5845 (print_direction_vector): Same.
5846 (print_dir_vectors): Same.
5847 (print_lambda_vector): Same.
5848 (print_dist_vectors): Same.
5849 (dump_data_dependence_relation): Same.
5850 (dump_data_dependence_relations): Same.
5851 (dump_dist_dir_vectors): Same.
5853 (init_omega_eq_with_af): Removed.
5854 (omega_extract_distance_vectors): Removed.
5855 (omega_setup_subscript): Removed.
5856 (init_omega_for_ddr_1): Removed.
5857 (init_omega_for_ddr): Removed.
5858 (ddr_consistent_p): Removed.
5859 (compute_affine_dependence): Do not use omega to check data
5861 (compute_data_dependences_for_bb): Removed.
5862 (analyze_all_data_dependences): Removed.
5863 (tree_check_data_deps): Removed.
5864 * tree-data-ref.h: Do not include omega.h.
5865 (compute_data_dependences_for_bb): Removed.
5866 (tree_check_data_deps): Removed.
5867 * tree-ssa-loop.c (pass_check_data_deps): Removed.
5868 (make_pass_check_data_deps): Removed.
5869 * tree-ssa-phiopt.c: Include params.h.
5870 * tree-vect-data-refs.c: Same.
5871 * tree-vect-slp.c: Same.
5873 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
5875 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
5876 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
5877 (mem->fpreg splitters): Ditto.
5878 (general_operand->nonimmediate_operand splitter): Use explicit modes.
5879 Disable DFmode for TARGET_64BIT.
5881 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
5884 * config/i386/i386.c (ix86_expand_prologue): Replicate static
5887 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5889 * config/nvptx/mkoffload.c (process): Constify host data.
5890 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
5892 (generate_host_descr_file): Likewise.
5894 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
5895 Sebastian Pop <s.pop@samsung.com>
5898 * graphite-dependences.c (add_pdr_constraints): Renamed
5899 pdr->extent to pdr->subscript_sizes.
5900 * graphite-interchange.c (build_linearized_memory_access): Add
5901 back all gcc_assert's that the "isl_int to isl_val conversion"
5902 patch has removed. Refactored.
5903 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
5904 * graphite-poly.c (new_poly_dr): Same.
5905 (free_poly_dr): Same.
5906 * graphite-poly.h (struct poly_dr): Same.
5907 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
5908 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
5909 * graphite-scop-detection.h: Fix space.
5910 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
5911 back all gcc_assert's removed by a previous patch.
5912 (wrap): Remove the_isl_ctx global variable that the same patch has
5914 (build_loop_iteration_domains): Same.
5915 (add_param_constraints): Same.
5916 (pdr_add_data_dimensions): Same. Refactored.
5917 (build_poly_dr): Renamed extent to subscript_sizes.
5919 2015-07-17 Marek Polacek <polacek@redhat.com>
5921 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
5922 * match.pd: ... here.
5924 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5926 * config/nvptx/mkoffload.c (process): Constify target data.
5927 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
5928 Constify target data.
5929 (generate_target_offloadend_file): Likewise.
5931 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
5933 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
5934 to allow renaming of PHI arguments on edges incoming from outer
5935 loop header, add corresponding check before start PHI iterator.
5936 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
5937 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
5938 with true force_vectorize. Set-up dominator for outer loop too.
5939 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
5940 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
5941 was marked with force_vectorize and has restricted cfg.
5942 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
5944 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5945 do peeling for outer loops.
5947 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
5948 Matthias Klose <doko@ubuntu.com>
5950 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
5951 build-sysroot, sysroot from the `Miscenalleous configure options' to
5952 the `Directories' section and strip trailing `/' from with_sysroot.
5953 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
5954 * configure: Regenerated.
5956 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
5959 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
5960 (TARGET_HARD_DF_REGS): Ditto.
5961 (TARGET_HARD_XF_REGS): Ditto.
5962 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
5963 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
5964 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
5965 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
5966 (*movsf_internal): Add alternatives 16 and 17. Enable
5967 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
5969 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
5971 PR rtl-optimization/66891
5972 * calls.c (expand_call): Wrap precompute_register_parameters with
5973 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
5975 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
5977 * config/nvptx/mkoffload.c (process): Constify mapping variables.
5978 Define target data struct and initialize it.
5980 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
5982 PR rtl-optimization/66626
5983 * ira.h (emit-rtl.h): Include.
5984 (non_spilled_static_chain_regno_p): New.
5985 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
5986 unless it is non spilled static chain pseudo.
5987 (assign_hard_rego): Spill memory profitable allocno unless it is
5988 non spilled static chain pseudo.
5989 (allocno_spill_priority_compare): Put non spilled static chain
5990 pseudo at the end of sorted array.
5991 (improve_allocation): Do nothing if we have static chain and
5993 (allocno__priority_compare_func): Put non spilled static chain
5994 pseudo at the beginning of sorted array.
5995 (move_spill_restore): Ignore non spilled static chain pseudo.
5996 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
5997 to non spilled static chain pseudo.
5998 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
5999 pseudo at the beginning of sorted array.
6000 (spill_for): Spill non spilled static chain pseudo last.
6001 * lra-constraints.c (lra_constraints): Remove static chain pseudo
6002 check for equivalence.
6004 2015-07-16 Martin Liska <mliska@suse.cz>
6007 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
6008 dst_ctx if it does not exist.
6010 2015-07-16 Martin Liska <mliska@suse.cz>
6012 * hash-set.h (remove): New function.
6013 (iterator): New iteration class for hash_set.
6015 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6017 * genattrtab.c (make_canonical): Add a file_location parameter.
6018 Use fatal_at rather than fatal.
6019 (get_attr_value): Likewise. Update call to make_canonical.
6020 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
6021 (make_internal_attr): Update calls accordingly.
6023 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6025 * read-md.h (message_with_line, error_with_line): Delete.
6026 * read-md.c (message_with_line, error_with_line): Delete.
6027 * gensupport.h: Include read-md.h.
6028 (md_rtx_info): New structure.
6029 (read_md_rtx): Use it. Return a bool success value.
6030 * gensupport.c (read_md_rtx): Likewise.
6031 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
6032 (main): Update after interface changes.
6033 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
6034 (main): Update after interface changes.
6035 * genattrtab.c (insn_code_number): Delete.
6036 (optimize_attrs): Add a max_insn_code parameter and use it instead
6037 of insn_code_number.
6038 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
6039 Use *_at rather than *_with_line functions.
6040 (gen_insn): Likewise.
6041 (gen_delay): Likewise.
6042 (gen_insn_reserv): Likewise.
6043 (gen_bypass): Take an md_rtx_info rather than an rtx.
6044 (main): Update after interface changes. Use a local max_insn_code
6045 variable instead of insn_code_number.
6046 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
6047 an rtx. Use fatal_at rather than fatal.
6048 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
6049 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
6050 (gen_absence_set, gen_final_absence_set, gen_automaton)
6051 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
6052 (main): Update after interface changes.
6053 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
6055 (main): Update after interface changes.
6056 * genconditions.c (main): Use new read_md_rtx interface.
6057 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
6058 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
6059 (main): Update after interface changes.
6060 * genemit.c (insn_code_number, insn_index_number): Delete.
6061 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6062 Use fatal_at rather than fatal.
6063 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
6065 (gen_split): Likewise.
6066 (main): Update after interface changes.
6067 * genextract.c (line_no): Delete.
6068 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6069 Update call to walk_rtx.
6070 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
6071 rather than message_with_line.
6072 (walk_rtx): Add an md_rtx_info argument. Update call to
6073 VEC_safe_set_locstr.
6074 (main): Update after interface changes.
6075 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
6076 and lineno. Use error_at rather than separate message_with_line
6077 calls and have_error assignments.
6078 (main): Update after interface changes.
6079 * genmddump.c (main): Use new read_md_rtx interface.
6080 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
6081 (main): Update after interface changes.
6082 * genoutput.c (next_code_number): Delete.
6083 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6084 (gen_peephole, gen_expand, gen_split): Likewise.
6085 (note_constraint): Likewise. Use *_at rather than *_with_line
6087 (main): Update after interface changes.
6088 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
6090 (main): Update after interface changes.
6091 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
6092 than an rtx and lineno.
6093 (process_define_constraint): Likewise.
6094 (process_define_register_constraint): Likewise.
6095 (main): Update after interface changes.
6096 * genrecog.c (next_insn_code, pattern_lineno): Delete.
6097 (validate_pattern): Replace top-level rtx with an md_rtx_info.
6098 Use *_at rather than *_with_line functions.
6099 (match_pattern_2): Likewise.
6100 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
6101 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
6102 Use *_at rather than *_with_line functions.
6103 * gentarget-def.c (add_insn): New function.
6104 (main): Use it. Use new read_md_rtx interface.
6106 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6108 * gensupport.h (compute_test_codes): Take a file_location rather
6110 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
6111 rather than *_with_line functions.
6112 (process_define_predicate): Update call to compute_test_codes.
6113 * genpreds.c (validate_exp): Take a file_location rather than a
6114 line number. Use *_at functions rather than *_with_line functions.
6115 (process_define_predicate): Update call to validate_exp.
6116 (constraint_data): Replace lineno field with a file_location.
6117 (add_constraint): Take a file_location rather than a line number.
6118 Use *_at functions rather than *_with_line functions. Fix error
6119 message for address constraints. Update after changes to
6120 validate_exp, constraint_data and compute_test_codes.
6121 (process_define_constraint): Update accordingly.
6122 (process_define_register_constraint): Likewise.
6124 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6126 * genoutput.c (data): Use a file_location to record the source
6129 (idata, idata_end): Remove initialization.
6130 (constraint_data): Replace lineno with a file_location.
6131 (output_insn_data): Update after changes to data.
6132 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
6133 (scan_operands): Likewise, using *_at rather than *_with_line
6135 (process_template): Likewise.
6136 (validate_insn_alternatives): Likewise.
6137 (validate_insn_operands): Likewise.
6138 (validate_optab_operands): Likewise.
6139 (init_insn_for_nothing): Initialize idata and idata_end.
6140 (note_constraint): Update after changes to constraint_data,
6141 using at rather than with_line functions.
6142 (mdep_constraint_len): Take a file_location rather than a
6143 line number. Use at rather than with_line functions.
6145 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6147 * read-md.h (fatal_at): Declare.
6148 * read-md.c (fatal_at): New function.
6149 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
6150 to record the source position.
6151 (check_attr_test): Take a file_location instead of a line number.
6152 Use fatal_at instead of fatal.
6153 (check_attr_value): Update after above changes, using "at"
6154 rather than "with_line" reporting functions.
6155 (convert_set_attr_alternative): Likewise.
6156 (gen_attr): Likewise.
6157 (check_defs): Likewise. Don't assign to read_md_filename.
6158 (gen_insn): Update initialization after above changes.
6159 (gen_delay): Likewise.
6160 (write_insn_cases): Print the filename for a define_peephole.
6161 (gen_insn_reserv): Take a line number as argument and update
6162 the call to check_attr_test.
6163 (main): Pass a line number to gen_insn_reserv.
6165 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6167 * read-md.h (file_location): New structure.
6168 (directive_handler_t): Take a file_location rather than a line number.
6169 (message_at, error_at): Declare.
6170 (read_skip_construct): Delete.
6171 * read-md.c (message_with_line_1): Replace with...
6172 (message_at_1): ...this new function.
6173 (message_at, error_at): New functions.
6174 (message_with_line, error_with_line): Update to use message_at_1.
6175 (handle_enum): Take a file_location rather than a line number
6176 and use error_at for error reporting.
6177 (handle_include): Likewise.
6178 (read_skip_construct): Likewise. Make static.
6179 (handle_file): Update after above changes. Pass a file_location
6180 rather than a line number to handle_directive.
6181 * gensupport.c (queue_elem): Replace separate filename and lineno
6182 with a file_location.
6183 (queue_pattern): Replace filename and lineno arguments with a
6184 file_location. Update after change to queue_elem.
6185 (process_define_predicate): Replace lineno argument with a
6186 file_location and use error_at for error reporting. Update
6187 after above changes.
6188 (process_rtx): Likewise.
6189 (subst_pattern_match): Likewise.
6190 (get_alternatives_number): Likewise.
6191 (alter_predicate_for_insn): Likewise.
6192 (rtx_handle_directive): Likewise.
6193 (is_predicable): Update after above changes, using error_at rather
6194 than error_with_line.
6195 (has_subst_attribute): Likewise.
6196 (identify_predicable_attribute): Likewise.
6197 (alter_attrs_for_subst_insn): Likewise.
6198 (process_one_cond_exec): Likewise.
6199 (process_substs_on_one_elem): Likewise.
6200 (process_define_subst): Likewise.
6201 (check_define_attr_duplicates): Likewise.
6202 (read_md_rtx): Update after change to queue_elem.
6204 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6206 * genoutput.c (next_index_number): Delete.
6207 (data): Remove index_number.
6208 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
6209 (main): Remove manipulation of next_index_number.
6211 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
6213 * genattrtab.c (check_attr_value): Remove handling of null attrs.
6214 (make_canonical): Likewise.
6216 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
6218 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
6219 instead of adjust_address_nv.
6220 (restore_stack_nonlocal): Likewise.
6221 (nonlocal_goto): Likewise.
6223 2015-07-16 Tom de Vries <tom@codesourcery.com>
6225 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
6226 not have a corresponding loop header phi.
6228 2015-07-16 Tom de Vries <tom@codesourcery.com>
6230 * tree-parloops.c (create_loads_for_reductions): Handle case that
6231 reduction is unused.
6233 2015-07-16 Richard Biener <rguenther@suse.de>
6235 PR tree-optimization/66894
6236 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
6237 about deriving NE_EXPR from truncated values.
6239 2015-07-16 Martin Liska <mliska@suse.cz>
6242 (object_allocator): Add new class.
6243 (pool_allocator::initialize): Use the underlying class.
6244 (pool_allocator::allocate): Likewise.
6245 (pool_allocator::remove): Likewise.
6246 (operator new): A new generic allocator.
6247 * asan.c (struct asan_mem_ref): Remove unused members.
6248 (asan_mem_ref_new): Replace new operator with
6249 object_allocator::allocate.
6250 (free_mem_ref_resources): Change deallocation.
6251 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
6252 with object_allocator.
6253 * config/sh/sh.c (add_constant): Replace new operator with
6254 object_allocator::allocate.
6255 (sh_reorg): Change call to a release method.
6256 * cselib.c (struct elt_list): Remove unused members.
6257 (new_elt_list): Replace new operator with
6258 object_allocator::allocate.
6259 (new_elt_loc_list): Likewise.
6260 (new_cselib_val): Likewise.
6261 (unchain_one_elt_list): Change delete operator with remove method.
6262 (unchain_one_elt_loc_list): Likewise.
6263 (unchain_one_value): Likewise.
6264 (cselib_finish): Release newly added static allocators.
6265 * cselib.h (struct cselib_val): Remove unused members.
6266 (struct elt_loc_list): Likewise.
6267 * df-problems.c (df_chain_alloc): Replace pool_allocator with
6269 * df-scan.c (struct df_scan_problem_data): Likewise.
6270 (df_scan_alloc): Likewise.
6271 * df.h (struct dataflow): Likewise.
6272 * dse.c (struct read_info_type): Likewise.
6273 (struct insn_info_type): Likewise.
6274 (struct dse_bb_info_type): Likewise.
6275 (struct group_info): Likewise.
6276 (struct deferred_change): Likewise.
6277 (get_group_info): Likewise.
6278 (delete_dead_store_insn): Likewise.
6279 (free_read_records): Likewise.
6280 (replace_read): Likewise.
6281 (check_mem_read_rtx): Likewise.
6282 (scan_insn): Likewise.
6283 (dse_step1): Likewise.
6284 (dse_step7): Likewise.
6285 * et-forest.c (struct et_occ): Remove unused members.
6286 (et_new_occ): Use allocate instead of new operator.
6287 (et_new_tree): Likewise.
6288 (et_free_tree): Call release method explicitly.
6289 (et_free_tree_force): Likewise.
6290 (et_free_pools): Likewise.
6291 (et_split): Use remove instead of delete operator.
6292 * et-forest.h (struct et_node): Remove unused members.
6293 * ipa-cp.c: Change pool_allocator to object_allocator.
6294 * ipa-inline-analysis.c: Likewise.
6295 * ipa-profile.c: Likewise.
6296 * ipa-prop.c: Likewise.
6297 * ipa-prop.h: Likewise.
6298 * ira-build.c (initiate_cost_vectors): Cast return value.
6299 (ira_allocate_cost_vector): Likewise.
6300 * ira-color.c (struct update_cost_record): Remove unused members.
6301 * lra-int.h (struct lra_live_range): Likewise.
6302 (struct lra_copy): Likewise.
6303 (struct lra_insn_reg): Likewise.
6304 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
6305 * lra.c (new_insn_reg): Replace new operator with allocate method.
6306 (free_insn_regs): Same for operator delete.
6307 (finish_insn_regs): Release new static allocator.
6308 (finish_insn_recog_data): Likewise.
6309 (lra_free_copies): Replace delete operator with remove method.
6310 (lra_create_copy): Replace operator new with allocate method.
6311 (invalidate_insn_data_regno_info): Same for remove method.
6312 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
6313 (free_debug_insn_changes): Replace delete operator with remove method.
6314 (replace_oldest_value_reg): Replace operator new with allocate method.
6315 (pass_cprop_hardreg::execute): Release new static variable.
6316 * sched-deps.c (sched_deps_init): Change pool_allocator to
6318 * sel-sched-ir.c: Likewise.
6319 * sel-sched-ir.h: Likewise.
6320 * stmt.c (expand_case): Likewise.
6321 (expand_sjlj_dispatch_table): Likewise.
6322 * tree-sra.c (struct access): Remove unused members.
6323 (struct assign_link): Likewise.
6324 (sra_deinitialize): Release newly added static pools.
6325 (create_access_1):Replace operator new with allocate method.
6326 (build_accesses_from_assign): Likewise.
6327 (create_artificial_child_access): Likewise.
6328 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
6329 pool_allocator to object_allocator.
6330 * tree-ssa-pre.c: Likewise.
6331 * tree-ssa-reassoc.c: Likewise.
6332 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
6333 * tree-ssa-strlen.c: Likewise.
6334 * tree-ssa-structalias.c: Likewise.
6335 * var-tracking.c (onepart_pool_allocate): New function.
6336 (unshare_variable): Use the newly added function.
6337 (variable_merge_over_cur): Likewise.
6338 (variable_from_dropped): Likewise.
6339 (variable_was_changed): Likewise.
6340 (set_slot_part): Likewise.
6341 (emit_notes_for_differences_1): Likewise.
6342 (vt_finalize): Release newly added static pools.
6344 2015-07-16 Martin Jambor <mjambor@suse.cz>
6346 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
6347 all uses. Fix two typos in its general comment.
6348 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
6350 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
6352 * config/i386/linux-common.h (LINK_MPX): New.
6353 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
6354 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
6355 indicating '-z bndplt' support by linker.
6356 * configure: Regenerate.
6357 * config.in: Regenerate.
6359 2015-07-16 Richard Biener <rguenther@suse.de>
6361 * fold-const.c (fold_widened_comparison): Remove.
6362 (fold_sign_changed_comparison): Likewise.
6363 (fold_comparison): Move widened and sign-changed comparison
6365 * match.pd: ... to patterns here.
6366 * generic-match-head.c: Include target.h.
6367 * gimple-match-head.c: Likewise.
6369 2015-07-16 Richard Biener <rguenther@suse.de>
6371 * tree-ssa-dom.c (dom_valueize): New function.
6372 (record_temporary_equivalences): Also record equivalences
6373 for dominating stmts that have uses of equivalences we are
6376 2015-07-16 Bin Cheng <bin.cheng@arm.com>
6378 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
6379 add_autoinc_candidates.
6380 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
6381 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
6382 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
6383 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
6385 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
6386 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
6387 Remove parameter struct iv*. Call add_autoinc_candidates here.
6388 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
6389 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
6391 (find_iv_candidates): Call new functions.
6393 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
6395 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
6396 uninitialized-variable warning.
6398 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
6401 * config/sh/sh.md (movdi): Split simple reg move to two movsi
6402 when the destination is R0.
6404 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
6407 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
6408 * config/i386/i386.c (ix86_expand_pextr): New function.
6409 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
6410 for non-lowpart subregs.
6411 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
6412 (insv<mode>): Use SWI248 mode iterator.
6413 (insv<mode>_1): Ditto.
6415 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
6416 Sebastian Pop <s.pop@samsung.com>
6418 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
6419 iterator to use_stmt.
6421 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
6422 Sebastian Pop <s.pop@samsung.com>
6424 * graphite-scop-detection.c (build_scops_1): Discard scops for
6427 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
6428 Sebastian Pop <s.pop@samsung.com>
6430 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
6431 case of a return statement in scop.
6433 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
6434 Sebastian Pop <s.pop@samsung.com>
6436 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
6437 INTEGER_TYPE parameters.
6438 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
6439 VECTOR_CST in scan_tree_for_params.
6440 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
6442 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
6444 * gimple-pretty-print.h: Don't include pretty-print.h.
6445 * tree-streamer.h: Don't include lto-streamer.h.
6446 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
6447 * gimple-streamer-in.c: Remove redundant includes.
6448 * gimple-streamer-out.c: Likewise.
6449 * ipa-devirt.c: Likewise.
6450 * ipa-icf.c: Likewise.
6451 * ipa-inline-analysis.c: Likewise.
6452 * ipa-polymorphic-call.c: Likewise.
6453 * ipa-profile.c: Likewise.
6454 * ipa-prop.c: Likewise.
6455 * ipa-pure-const.c: Likewise.
6456 * lto-cgraph.c: Likewise.
6457 * lto-streamer-in.c: Likewise.
6458 * lto-streamer-out.c: Likewise.
6459 * lto-streamer.c: Likewise.
6460 * tree-streamer-in.c: Likewise.
6461 * tree-streamer-out.c: Likewise.
6462 * tree-streamer.c: Likewise.
6464 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
6466 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
6468 * opts.c: Remove multiline #include comment.
6470 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
6472 * config/nvptx/mkoffload.c (process): Add C++ protection to
6475 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6478 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
6479 null before IEEE 128-bit floating point support patch.
6481 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6483 * simplify-rtx.c (simplify_ternary_operation): Add simplification
6484 for (!c) != {0,...,0} ? a : b for vector modes.
6486 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
6487 Martin Jambor <mjambor@suse.cz>
6489 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
6490 struct func_body_info* instead of struct ipa_node_params*, expecting
6491 fbi->info to be filled in. Replace throughout. Adjust call to
6492 ipa_load_from_parm_agg.
6493 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
6494 instead of struct ipa_node_params*. Adjust calls to other functions
6495 so that they pass either fbi or fbi->info.
6496 (set_switch_stmt_execution_predicate): Likewise.
6497 (will_be_nonconstant_predicate): Likewise.
6498 (compute_bb_predicates): Likewise.
6499 (estimate_function_body_sizes): Move asserts earlier. Fill in
6500 struct func_body_info, replace parms_info with fbi.info. Adjust
6501 calls to functions that now accept struct func_body_info.
6502 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
6503 (struct func_body_info): Likewise.
6504 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
6505 remove static. Adjust callers.
6506 (ipa_load_from_parm_agg): Remove.
6507 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
6508 (func_body_info): Likewise.
6509 (ipa_load_from_parm_agg): Adjust prototype.
6511 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6513 * gensupport.c (rtx_handle_directive): Adjust.
6514 * read-rtl.c (apply_iterators): Take vector to add rtxs to
6515 instead of expr list rtx.
6516 (add_define_attr_for_define_subst): Likewise.
6517 (add_define_subst_attr): Likewise.
6518 (read_subst_mapping): Likewise.
6519 (read_rtx): Likewise.
6520 * rtl.h (read_rtx): Adjust.
6522 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6524 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
6526 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
6529 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
6530 (*tls_local_dynamic_base_64_<mode>): Ditto.
6531 (*tls_local_dynamic_base_64_largepic): Ditto.
6532 (tls_global_dynamic_64_<mode>): Update expander pattern.
6533 (tls_local_dynamic_base_64_<mode>): Ditto.
6535 2015-07-15 Richard Biener <rguenther@suse.de>
6537 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
6538 and bool_var == 1 -> bool_var simplifications ...
6539 * match.pd: ... to patterns here. Factor out negate_expr_p
6540 cases from the A - B -> A + (-B) patterns as negate_expr_p
6541 predicate and add a -(A + B) -> (-B) - A pattern.
6543 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
6545 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
6547 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
6548 Robert Suchanek <robert.suchanek@imgtec.com>
6550 * config/mips/mips.c (mips_int_mask): New enum.
6551 (mips_shadow_set): Likewise.
6552 (int_mask): New variable.
6553 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
6554 (machine_function): Add int_mask and use_shadow_register_set.
6555 (mips_attribute_table): Add attribute handlers for interrupt and
6556 use_shadow_register_set.
6557 (mips_interrupt_mask): New static function.
6558 (mips_handle_interrupt_attr): Likewise.
6559 (mips_handle_use_shadow_register_set_attr): Likewise.
6560 (mips_use_shadow_register_set): Change return type to enum
6561 mips_shadow_set. Add argument handling for use_shadow_register_set
6563 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
6564 compare with mips_shadow_set enum.
6565 (mips_compute_frame_info): Add interrupt mask and
6566 use_shadow_register_set to per-function information structure.
6567 Add a stack slot for EPC unconditionally.
6568 (mips_expand_prologue): Compare use_shadow_register_set value
6569 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
6570 masked interrupt register but in EIC mode use K0 and save Cause in K0.
6571 EPC saved and restored unconditionally. Use PMODE_INSN macro when
6572 copying the stack pointer from the shadow register set.
6573 * config/mips/mips.h (SR_IM0): New define.
6574 * config/mips/mips.md (mips_rdpgpr): Rename to...
6575 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
6576 * doc/extend.texi (Declaring Attributes of Functions): Document
6577 optional arguments for interrupt and use_shadow_register_set
6580 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
6582 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
6583 interrupt attribute.
6584 (mips_expand_prologue): Disable the floating point unit in an ISR.
6585 * config/mips/mips.h (SR_COP1): New define.
6587 2015-07-15 Richard Biener <rguenther@suse.de>
6589 * genmatch.c (parser::peek, parser::peek_ident): Add argument
6590 to tell how many tokens to peek ahead (default 1).
6591 (parser::eat_token, parser::eat_ident): Return token consumed.
6592 (parser::parse_result): Parse new switch statement.
6593 * match.pd: Use case statements where appropriate.
6595 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
6597 PR rtl-optimization/58066
6598 * calls.c (expand_call): Precompute register parameters before stack
6599 alignment is performed.
6601 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
6603 PR rtl-optimization/66838
6604 * postreload.c (reload_cse_move2add): Also process
6605 CALL_INSN_FUNCTION_USAGE when resetting information of
6606 call-clobbered registers.
6608 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
6609 Cesar Philippidis <cesar@codesourcery.com>
6610 Chung-Lin Tang <cltang@codesourcery.com>
6612 * config/nios2/constraints.md (U, v): New constraints.
6613 * config/nios2/predicates.md (rdprs_dcache_operand): New.
6614 (ldstex_memory_operand): New.
6615 * config/nios2/sync.md: New file.
6616 * config/nios2/nios2.md (unspecv): Add new builtin function
6618 (rdprs, flushd, flushda, wrpie, eni): New patterns.
6619 (top-level): Include sync.md.
6620 * config/nios2/nios2.c (N2_FTYPES): Add function types for
6622 (N2_BUILTINS): Add arch field setting, add new builtins.
6623 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
6625 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
6626 Also handle ldex/stex/ldsex/stsex builtins.
6627 (nios2_expand_rdprs_builtin): New function.
6628 (nios2_expand_cache_builtin): New function.
6629 (nios2_expand_wrpie_builtin): New function.
6630 (nios2_expand_eni_builtin): New function.
6631 (nios2_expand_builtin): Add arch field handling and new builtin
6633 * doc/extend.texi (Altera Nios II Built-in Functions): Document
6635 * doc/md.texi (Machine Constraints): Document U and v constraints.
6637 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
6638 Cesar Philippidis <cesar@codesourcery.com>
6639 Chung-Lin Tang <cltang@codesourcery.com>
6641 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
6642 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
6643 callee_save_reg_size and uses_anonymous_args fields.
6644 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
6645 (nios2_create_cfa_notes): New function.
6646 (nios2_adjust_stack): New function for adjusting stack.
6647 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
6648 Use nios2_adjust_stack.
6649 (nios2_expand_epilogue): Likewise.
6650 (nios2_expand_return): New function.
6651 (nios2_can_use_return_insn): Update for CDX pop.n usage.
6652 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
6653 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
6654 * config/nios2/nios2.md (return): Use nios2_expand_return.
6656 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
6657 Cesar Philippidis <cesar@codesourcery.com>
6658 Chung-Lin Tang <cltang@codesourcery.com>
6660 * config/nios2/predicates.md (pop_operation): New.
6661 (ldwm_operation, stwm_operation): New.
6662 (nios2_hard_register_operand): New.
6663 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
6664 (ldstwm_operation_p): Declare.
6665 (gen_ldstwm_peep): Declare.
6666 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
6667 (base_reg_adjustment_p): New.
6668 (pop_operation_p): New.
6669 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
6670 (nios2_ldstwm_regset_p): New.
6671 (ldstwm_operation_p): New.
6673 (nios2_ldst_parallel): New.
6674 (struct ldswm_operand): Declare.
6675 (compare_ldstwm_operands): New.
6676 (can_use_cdx_ldstw): New.
6677 (gen_ldstwm_peep): New.
6678 * config/nios2/nios2-ldstwm.sml: New.
6679 * config/nios2/nios2.md: Include ldstwm.md.
6680 * config/nios2/ldstwm.md: Generated.
6682 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
6683 Cesar Philippidis <cesar@codesourcery.com>
6684 Chung-Lin Tang <cltang@codesourcery.com>
6686 * config/nios2/nios2.h (LABEL_ALIGN): Define.
6687 (REG_ALLOC_ORDER): Define.
6688 (ADJUST_REG_ALLOC_ORDER): Define.
6689 (HONOR_REG_ALLOC_ORDER): Define.
6690 (CDX_REG_P): Define.
6691 (ANDCLEAR_INT): Define.
6692 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
6693 (nios2_label_align): Declare.
6694 (nios2_cdx_narrow_form_p): Declare.
6695 (nios2_adjust_reg_alloc_order): Declare.
6696 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
6698 (nios2_large_unspec_reloc_p): New function, split from...
6699 (nios2_legitimate_pic_operand_p): ...here.
6700 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
6701 (nios2_print_operand_punct_valid_p): New.
6702 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
6703 (split_mem_address): New.
6704 (split_alu_insn): New.
6706 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
6707 (enum nios2_add_insn_kind): New.
6708 (nios2_add_insn_names, nios2_add_insn_narrow): New.
6709 (nios2_add_insn_classify): New.
6710 (nios2_add_insn_asm): New.
6711 (nios2_cdx_narrow_form_p): New.
6712 (label_align, min_labelno, max_labelno): New.
6714 (nios2_label_align): New.
6715 (nios2_adjust_reg_alloc_order): New.
6716 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6717 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6718 * config/nios2/constraints.md (P): New constraint.
6719 * config/nios2/predicates.md (const_and_operand): New.
6721 (stack_memory_operand): New.
6722 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
6723 (length): Update to use nios2_cdx_narrow_form_p().
6724 (type): Add new insn type values.
6725 (control, alu, st, ld, shift): Update insn reservations with
6726 new insn type values.
6727 (*high, *lo_sum): Define new insn patterns for constant generation.
6728 (movqi_internal, movhi_internal, movsi_internal): Reduce
6729 alternatives, update asm template to handle CDX variants, update
6731 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
6732 template, update type attributes.
6733 (extendhisi2, extendqi<mode>2): Likewise.
6734 (addsi3): Change to use function for asm string.
6735 (subsi3): Add CDX notation to asm template, update type attributes.
6736 (negsi3, one_cmplsi3): Likewise.
6737 (andsi3): New pattern, specialized from logical patterns.
6738 (<code>si3): Remove and case, combine alternatives, update asm
6740 (<shift_op>si3): Add CDX notation, update type attributes.
6741 (rotrsi3): Update type attribute.
6742 (*merge, extzv, insv): New insn patterns.
6743 (return): Change to define_expand.
6744 (simple_return): Add CDX notation, update type attributes.
6745 (indirect_jump): Add CDX notation.
6746 (jump): Update asm cases, update length attribute expression.
6747 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
6748 (nios2_cbranch): Update asm cases and length attribute expression
6749 to handle CDX variants.
6750 (nios2_cmp<code>): Update asm template.
6751 (nop): Add CDX notation, update type attributes.
6752 (trap): Add CDX notation.
6753 (ctrapsi4): Update asm cases and length attribute expression to
6755 * doc/md.texi (Machine Constraints): Document P constraint.
6757 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
6758 Cesar Philippidis <cesar@codesourcery.com>
6759 Chung-Lin Tang <cltang@codesourcery.com>
6761 * config/nios2/nios2.h (SMALL_INT12): New macro.
6762 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
6763 (nios2_valid_addr_expr_p): Use it.
6764 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
6765 with implicit "io" instructions on R2.
6766 * config/nios2/constraints.md (w): New constraint.
6767 * config/nios2/predicates.md (ldstio_memory_operand): New.
6768 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
6769 operand predicate and constraint.
6770 (ld<bh>io_signed, st<bhw>io>): Likewise.
6771 * doc/md.texi (Machine Constraints): Document w constraint.
6773 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
6774 Cesar Philippidis <cesar@codesourcery.com>
6775 Chung-Lin Tang <cltang@codesourcery.com>
6777 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
6778 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
6779 Nios II architecture level.
6780 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
6781 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
6782 (OPTION_DEFAULT_SPECS): Define.
6783 (ASM_SPEC): Add -march= spec strings.
6784 * config/nios2/nios2.c (nios2_option_override): Check for
6785 conflicts involving new options.
6786 * config.gcc (nios2*-*-*): Support --with-arch=.
6787 * doc/invoke.texi (Option Summary, Nios II Options): Document
6788 -march=, -mbmx, and -mcdx.
6790 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
6792 PR rtl-optimization/66626
6793 * lra-constraints.c (lra_constraints): Prevent equivalence
6794 substitution for static chain pseudo in functions with nonlocal
6797 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
6799 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
6800 (nios2_emit_stack_limit_check): Add size parameter. Handle
6801 -fstack-limit-symbol as well as -fstack-limit-register.
6802 (nios2_expand_prologue): Emit only a single stack limit check,
6803 even if multiple stack adjustments are required.
6804 (nios2_option_override): Diagnose unsupported combination of -fpic
6805 and -stack-limit-symbol.
6807 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
6809 * Makefile.in (top_srcdir): New.
6810 * configure.ac: Use AM_ZLIB.
6811 * configure: Regeneated.
6813 2015-07-14 Matthias Klose <doko@ubuntu.com>
6816 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
6818 2015-07-14 Richard Biener <rguenther@suse.de>
6820 PR tree-optimization/66863
6821 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
6822 what we record for conversion use stmt lhs inequalities.
6824 2015-07-14 Richard Biener <rguenther@suse.de>
6826 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
6827 (decision_tree::gen_gimple): Likewise.
6829 2015-07-14 Tom de Vries <tom@codesourcery.com>
6831 * gcc.c (greater_than_spec_func): Declare forward.
6832 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
6833 -ftree-parallelize-loops={0,1}.
6834 (static_spec_functions): Add greater_than_spec_func function with name
6836 (greater_than_spec_func): New function.
6838 2015-07-14 Richard Biener <rguenther@suse.de>
6840 * tree-ssa-dom.c (record_temporary_equivalences): Merge
6841 wideing type conversion case from record_equivalences_from_incoming_edge
6842 and use record_equality to record equivalences.
6843 (record_equivalences_from_incoming_edge): Call
6844 record_temporary_equivalences.
6846 2015-07-14 Richard Biener <rguenther@suse.de>
6848 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
6849 (struct if_expr): New.
6850 (struct with_expr): Likewise.
6851 (is_a_helper): Add helpers for if_expr and with_expr.
6852 (struct simplify): Add simplify_kind enum and member. Remove
6854 (simplify::simplify): Adjust.
6855 (lower_commutative): Adjust.
6856 (lower_opt_convert): Likewise.
6857 (lower_cond): Likewise.
6858 (replace_id): Handle with_expr and if_expr.
6859 (lower_for): Adjust.
6860 (dt_simplify::gen_1): New recursive worker, split out from ...
6861 (dt_simplify::gen): ... here. Deal with if and with expansion
6863 (capture_info::capture_info): Take context argument
6864 (capture_info::walk_result): Only analyze specific result.
6865 (parser::parse_result): New function.
6866 (parser::parse_simplify): Adjust to parse ifs with then end
6868 (parser::parse_if): Simplify.
6869 (parser::parse_pattern): Pass down simplify kind.
6870 * match.pd: Convert if structure to new syntax.
6872 2015-07-13 Marek Polacek <polacek@redhat.com>
6874 * rtl.c (rtx_equal_p_cb): Fix typo.
6876 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
6878 * omega.h: Don't include config.h, don't include params.h again if
6879 omega.h has already been included.
6880 * graphite-poly.h: Include sese.h.
6881 * graphite.c: Don't include sese.h, remove needless includes and
6882 minimize includes outside #ifdef HAVE_isl block.
6883 * graphite-blocking.c: Don't include sese.h, remove needless includes,
6884 and wrap entire file in #ifdef HAVE_isl
6885 * graphite-dependences.c: Likewise.
6886 * graphite-interchange.c: Likewise.
6887 * graphite-isl-ast-to-gimple.c: Likewise.
6888 * graphite-optimize-isl.c: Likewise.
6889 * graphite-poly.c: Likewise.
6890 * graphite-scop-detection.c: Likewise.
6891 * graphite-sese-to-poly.c: Likewise.
6893 2015-07-13 Tom de Vries <tom@codesourcery.com>
6895 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
6897 2015-07-13 Renlin Li <renlin.li@arm.com>
6900 * simplify-rtx.c (simplify_const_relational_operation): Add
6901 side_effects_p checks.
6903 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
6905 * bitmap.h: Fix double word typos.
6908 * cfgloopmanip.c: Same.
6911 * cgraphclones.c: Same.
6913 * config/aarch64/aarch64-protos.h: Same.
6914 * config/aarch64/aarch64.c: Same.
6915 * config/aarch64/aarch64.md: Same.
6916 * config/arm/arm.md: Same.
6917 * config/arm/arm1020e.md: Same.
6918 * config/arm/arm1026ejs.md: Same.
6919 * config/arm/arm926ejs.md: Same.
6920 * config/arm/fa526.md: Same.
6921 * config/arm/fa606te.md: Same.
6922 * config/arm/fa626te.md: Same.
6923 * config/arm/fa726te.md: Same.
6924 * config/arm/fmp626.md: Same.
6925 * config/darwin.c: Same.
6926 * config/epiphany/epiphany.c: Same.
6927 * config/frv/frv.c: Same.
6928 * config/ft32/ft32.c: Same.
6929 * config/gnu-user.h: Same.
6930 * config/h8300/constraints.md: Same.
6931 * config/i386/i386.c: Same.
6932 * config/i386/i386.md: Same.
6933 * config/iq2000/iq2000.md: Same.
6934 * config/mips/mips.c: Same.
6935 * config/mmix/mmix.md: Same.
6936 * config/moxie/moxie.c: Same.
6937 * config/nds32/nds32.md: Same.
6938 * config/pa/pa.h: Same.
6939 * config/rs6000/aix.h: Same.
6940 * config/rs6000/rs6000.h: Same.
6941 * config/sh/sh.c: Same.
6942 * config/tilegx/tilegx.md: Same.
6943 * config/tilepro/gen-mul-tables.cc: Same.
6946 * doc/invoke.texi: Same.
6948 * dwarf2out.c: Same.
6953 * hash-table.h: Same.
6954 * internal-fn.c: Same.
6956 * ipa-devirt.c: Same.
6959 * ipa-profile.c: Same.
6964 * reg-stack.c: Same.
6970 * tree-inline.c: Same.
6972 * tree-ssa-dom.c: Same.
6973 * tree-ssa-loop-ivopts.c: Same.
6974 * tree-ssa-structalias.c: Same.
6975 * tree-ssa-tail-merge.c: Same.
6976 * tree-ssa-ter.c: Same.
6977 * tree-ssa-threadupdate.c: Same.
6978 * tree-ssa-uninit.c: Same.
6979 * tree-ssanames.c: Same.
6980 * tree-vect-loop-manip.c: Same.
6986 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6989 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
6990 tree_ssa_phiopt_worker): Call it.
6992 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6994 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
6995 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
6998 2015-07-11 Marek Polacek <polacek@redhat.com>
7001 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
7002 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
7003 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
7004 rather than bb_has_abnormal_call_pred.
7005 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
7006 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
7007 rather than bb_has_abnormal_call_pred.
7009 2015-07-10 Anatoly Sokolov <aesok@post.ru>
7011 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7012 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
7013 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7014 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
7015 v850_legitimate_address_p): New functions.
7016 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7018 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
7021 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
7022 indirect sibcall with register arguments if register available
7023 for argument passing.
7024 (init_cumulative_args): Set cfun->machine->arg_reg_available
7025 to (cum->nregs > 0) or to true if function has a variable
7027 (function_arg_advance_32): Set cfun->machine->arg_reg_available
7028 to false if cum->nregs <= 0.
7029 * config/i386/i386.h (machine_function): Add arg_reg_available.
7031 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
7033 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
7034 and gen_higpart instead of gen_rtx_SUBREG.
7035 * config/i386/i386.md
7036 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
7037 (read-modify peephole2): Use gen_lowpart instead of
7038 gen_rtx_SUBREG for operand 5.
7040 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
7042 * config/tilepro/gen-mul-tables.cc (main): Change include list for
7044 * config/tilepro/mul-tables.c: Regenerate.
7045 * config/tilegx/mul-tables.c: Regenerate.
7047 2015-07-10 Richard Biener <rguenther@suse.de>
7049 * fold-const.c (distribute_bit_expr): Remove.
7050 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
7051 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
7052 to A & (B | C) and simplifying A << C1 << C2 to ...
7053 * match.pd: ... patterns here.
7055 2015-07-10 Jiong Wang <jiong.wang@arm.com>
7057 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7058 Mark mem as READONLY and NOTRAP for PIC symbol.
7060 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
7062 * gimple-predict.h: New file.
7063 (gimple_predict_predictor, gimple_predict_set_predictor,
7064 gimple_predict_outcome, gimple_predict_set_outcome,
7065 gimple_build_predict): Relocate here.
7066 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
7067 gimple_predict_outcome, gimple_predict_set_outcome): Move to
7069 * gimple.c (gimple_build_predict): Move to gimple-predict.h
7070 * basic-block.h: Don't include cfghooks.h.
7071 * backend.h: Don't include predict.h.
7072 * cfghooks.h: Include predict.h.
7073 * gimple-pretty-print.c: Include gimple-predict.h.
7074 * gimplify.c: Likwise.
7075 * predict.c: Adjust includes.
7076 * tree-inline.c: Likewise.
7078 * auto-inc-dec.c: Likewise.
7079 * auto-profile.c: Likewise.
7080 * bb-reorder.c: Likewise.
7081 * builtins.c: Likewise.
7082 * caller-save.c: Likewise.
7083 * calls.c: Likewise.
7084 * cfganal.c: Likewise.
7085 * cfgbuild.c: Likewise.
7087 * cfgcleanup.c: Likewise.
7088 * cfgexpand.c: Likewise.
7089 * cfghooks.c: Likewise.
7090 * cfgloopanal.c: Likewise.
7091 * cfgloop.c: Likewise.
7092 * cfgloopmanip.c: Likewise.
7093 * cfgrtl.c: Likewise.
7094 * cgraph.c: Likewise.
7095 * cgraphunit.c: Likewise.
7096 * combine.c: Likewise.
7097 * cprop.c: Likewise.
7100 * dojump.c: Likewise.
7102 * except.c: Likewise.
7103 * expmed.c: Likewise.
7105 * final.c: Likewise.
7106 * fold-const.c: Likewise.
7107 * function.c: Likewise.
7108 * fwprop.c: Likewise.
7109 * gcc-plugin.h: Likewise.
7111 * genattrtab.c: Likewise.
7112 * genemit.c: Likewise.
7113 * gengtype.c: Likewise.
7114 * genopinit.c: Likewise.
7115 * genoutput.c: Likewise.
7116 * genpreds.c: Likewise.
7117 * genrecog.c: Likewise.
7118 * gimple-fold.c: Likewise.
7119 * gimple-iterator.c: Likewise.
7120 * gimple-ssa-isolate-paths.c: Likewise.
7121 * gimple-ssa-strength-reduction.c: Likewise.
7122 * graph.c: Likewise.
7123 * graphite-blocking.c: Likewise.
7124 * graphite.c: Likewise.
7125 * graphite-dependences.c: Likewise.
7126 * graphite-interchange.c: Likewise.
7127 * graphite-isl-ast-to-gimple.c: Likewise.
7128 * graphite-optimize-isl.c: Likewise.
7129 * graphite-poly.c: Likewise.
7130 * graphite-scop-detection.c: Likewise.
7131 * graphite-sese-to-poly.c: Likewise.
7132 * haifa-sched.c: Likewise.
7133 * ifcvt.c: Likewise.
7134 * internal-fn.c: Likewise.
7135 * ipa-cp.c: Likewise.
7136 * ipa-profile.c: Likewise.
7137 * ipa-split.c: Likewise.
7138 * ipa-utils.c: Likewise.
7139 * ira-build.c: Likewise.
7140 * ira-color.c: Likewise.
7141 * ira-conflicts.c: Likewise.
7142 * ira-costs.c: Likewise.
7143 * ira-emit.c: Likewise.
7144 * ira-lives.c: Likewise.
7146 * loop-doloop.c: Likewise.
7147 * loop-init.c: Likewise.
7148 * loop-invariant.c: Likewise.
7149 * loop-unroll.c: Likewise.
7150 * lower-subreg.c: Likewise.
7151 * lra-assigns.c: Likewise.
7153 * lra-coalesce.c: Likewise.
7154 * lra-constraints.c: Likewise.
7155 * lra-lives.c: Likewise.
7156 * lto-cgraph.c: Likewise.
7157 * lto-streamer-in.c: Likewise.
7158 * mode-switching.c: Likewise.
7159 * modulo-sched.c: Likewise.
7160 * omp-low.c: Likewise.
7161 * optabs.c: Likewise.
7162 * passes.c: Likewise.
7163 * postreload.c: Likewise.
7164 * postreload-gcse.c: Likewise.
7165 * profile.c: Likewise.
7166 * recog.c: Likewise.
7167 * regstat.c: Likewise.
7168 * reload1.c: Likewise.
7169 * reorg.c: Likewise.
7170 * rtlanal.c: Likewise.
7171 * sched-ebb.c: Likewise.
7172 * sel-sched-ir.c: Likewise.
7174 * shrink-wrap.c: Likewise.
7175 * simplify-rtx.c: Likewise.
7177 * store-motion.c: Likewise.
7178 * tracer.c: Likewise.
7179 * trans-mem.c: Likewise.
7180 * tree-call-cdce.c: Likewise.
7181 * tree-cfg.c: Likewise.
7182 * tree-cfgcleanup.c: Likewise.
7183 * tree-chkp.c: Likewise.
7184 * tree-complex.c: Likewise.
7185 * tree-eh.c: Likewise.
7186 * tree-if-conv.c: Likewise.
7187 * tree-loop-distribution.c: Likewise.
7188 * tree-outof-ssa.c: Likewise.
7189 * tree-parloops.c: Likewise.
7190 * tree-predcom.c: Likewise.
7191 * tree-pretty-print.c: Likewise.
7192 * tree-profile.c: Likewise.
7193 * tree-sra.c: Likewise.
7194 * tree-ssa.c: Likewise.
7195 * tree-ssa-coalesce.c: Likewise.
7196 * tree-ssa-dce.c: Likewise.
7197 * tree-ssa-dom.c: Likewise.
7198 * tree-ssa-forwprop.c: Likewise.
7199 * tree-ssa-ifcombine.c: Likewise.
7200 * tree-ssa-loop-ch.c: Likewise.
7201 * tree-ssa-loop-im.c: Likewise.
7202 * tree-ssa-loop-ivcanon.c: Likewise.
7203 * tree-ssa-loop-ivopts.c: Likewise.
7204 * tree-ssa-loop-manip.c: Likewise.
7205 * tree-ssa-loop-prefetch.c: Likewise.
7206 * tree-ssa-loop-unswitch.c: Likewise.
7207 * tree-ssa-math-opts.c: Likewise.
7208 * tree-ssa-phiopt.c: Likewise.
7209 * tree-ssa-pre.c: Likewise.
7210 * tree-ssa-reassoc.c: Likewise.
7211 * tree-ssa-sink.c: Likewise.
7212 * tree-ssa-tail-merge.c: Likewise.
7213 * tree-ssa-threadedge.c: Likewise.
7214 * tree-ssa-threadupdate.c: Likewise.
7215 * tree-switch-conversion.c: Likewise.
7216 * tree-tailcall.c: Likewise.
7217 * tree-vect-data-refs.c: Likewise.
7218 * tree-vect-loop.c: Likewise.
7219 * tree-vect-loop-manip.c: Likewise.
7220 * tree-vectorizer.c: Likewise.
7221 * tree-vrp.c: Likewise.
7222 * ubsan.c: Likewise.
7223 * value-prof.c: Likewise.
7224 * varasm.c: Likewise.
7225 * var-tracking.c: Likewise.
7226 * config/aarch64/aarch64-builtins.c: Likewise.
7227 * config/aarch64/aarch64.c: Likewise.
7228 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7229 * config/alpha/alpha.c: Likewise.
7230 * config/arc/arc.c: Likewise.
7231 * config/arm/arm.c: Likewise.
7232 * config/avr/avr.c: Likewise.
7233 * config/bfin/bfin.c: Likewise.
7234 * config/c6x/c6x.c: Likewise.
7235 * config/cr16/cr16.c: Likewise.
7236 * config/cris/cris.c: Likewise.
7237 * config/darwin.c: Likewise.
7238 * config/darwin-c.c: Likewise.
7239 * config/epiphany/epiphany.c: Likewise.
7240 * config/epiphany/mode-switch-use.c: Likewise.
7241 * config/epiphany/resolve-sw-modes.c: Likewise.
7242 * config/fr30/fr30.c: Likewise.
7243 * config/frv/frv.c: Likewise.
7244 * config/ft32/ft32.c: Likewise.
7245 * config/h8300/h8300.c: Likewise.
7246 * config/i386/i386.c: Likewise.
7247 * config/i386/winnt.c: Likewise.
7248 * config/ia64/ia64.c: Likewise.
7249 * config/iq2000/iq2000.c: Likewise.
7250 * config/lm32/lm32.c: Likewise.
7251 * config/m32c/m32c.c: Likewise.
7252 * config/m32r/m32r.c: Likewise.
7253 * config/m68k/m68k.c: Likewise.
7254 * config/mcore/mcore.c: Likewise.
7255 * config/mep/mep.c: Likewise.
7256 * config/microblaze/microblaze.c: Likewise.
7257 * config/mips/mips.c: Likewise.
7258 * config/mmix/mmix.c: Likewise.
7259 * config/mn10300/mn10300.c: Likewise.
7260 * config/moxie/moxie.c: Likewise.
7261 * config/msp430/msp430.c: Likewise.
7262 * config/nds32/nds32.c: Likewise.
7263 * config/nds32/nds32-cost.c: Likewise.
7264 * config/nds32/nds32-fp-as-gp.c: Likewise.
7265 * config/nds32/nds32-intrinsic.c: Likewise.
7266 * config/nds32/nds32-isr.c: Likewise.
7267 * config/nds32/nds32-md-auxiliary.c: Likewise.
7268 * config/nds32/nds32-memory-manipulation.c: Likewise.
7269 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7270 * config/nds32/nds32-predicates.c: Likewise.
7271 * config/nios2/nios2.c: Likewise.
7272 * config/nvptx/nvptx.c: Likewise.
7273 * config/pa/pa.c: Likewise.
7274 * config/pdp11/pdp11.c: Likewise.
7275 * config/rl78/rl78.c: Likewise.
7276 * config/rs6000/rs6000.c: Likewise.
7277 * config/rx/rx.c: Likewise.
7278 * config/s390/s390.c: Likewise.
7279 * config/sh/sh.c: Likewise.
7280 * config/sh/sh-mem.cc: Likewise.
7281 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7282 * config/sh/sh_treg_combine.cc: Likewise.
7283 * config/sparc/sparc.c: Likewise.
7284 * config/spu/spu.c: Likewise.
7285 * config/stormy16/stormy16.c: Likewise.
7286 * config/tilegx/tilegx.c: Likewise.
7287 * config/tilepro/tilepro.c: Likewise.
7288 * config/v850/v850.c: Likewise.
7289 * config/vax/vax.c: Likewise.
7290 * config/visium/visium.c: Likewise.
7291 * config/xtensa/xtensa.c: Likewise.
7293 2015-07-10 Richard Biener <rguenther@suse.de>
7295 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
7296 (decision_tree::gen_gimple): Likewise.
7297 (decision_tree::gen_generic): Likewise.
7299 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
7302 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
7303 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
7305 2015-07-10 Jakub Jelinek <jakub@redhat.com>
7308 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
7309 or ORT_TASK contexts.
7310 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
7313 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7315 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
7318 2015-07-10 Tom de Vries <tom@codesourcery.com>
7320 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
7321 insert nit + 1 bound.
7323 2015-07-10 Richard Biener <rguenther@suse.de>
7325 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
7326 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
7327 (if_convertible_loop_p_1): For this always compute bb predicates.
7328 (if_convertible_loop_p): And free them.
7330 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7332 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
7335 2015-07-10 Richard Biener <rguenther@suse.de>
7337 PR tree-optimization/66823
7338 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
7341 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
7343 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
7344 to handle mips[32|64]r3 and mips[32|64]r5.
7346 2015-07-09 Jakub Jelinek <jakub@redhat.com>
7349 * tree-nested.c (get_static_chain): Or in a flag into
7350 info->static_chain_added.
7351 (get_frame_field, get_nonlocal_debug_decl): Likewise.
7352 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
7354 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
7355 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
7358 PR tree-optimization/66718
7359 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
7361 (vect_simd_lane_linear): New function.
7362 (vectorizable_simd_clone_call): Support using linear arguments for
7363 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
7365 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
7368 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
7370 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7372 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
7373 Use machine mode, not enum machine_mode in the prototype.
7375 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
7376 classify 128-bit floating point support.
7377 (FLOAT128_IBM_P): Likewise.
7378 (FLOAT128_VECTOR_P): Likewise.
7379 (FLOAT128_2REG_P): Likewise.
7380 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
7381 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
7382 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7383 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
7385 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
7386 tests against TFmode/TDmode, since those modes do not use VSX
7388 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
7390 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
7391 tests against TFmode, etc.
7392 (invalid_e500_subreg): Add tests against IFmode/KFmode.
7393 (reg_offset_addressing_ok_p): Likewise.
7394 (rs6000_legitimate_offset_address_p): Likewise.
7395 (rs6000_legitimize_address): Likewise.
7396 (rs6000_legitimize_reload_address): Likewise.
7397 (rs6000_legitimate_address_p): Clean up tests against TFmode and
7398 TDmode to use the new helper macros, which will include IFmode and
7400 (rs6000_emit_move): Likewise.
7401 (rs6000_darwin64_record_arg_recurse): Likewise.
7402 (print_operand): Likewise.
7403 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
7404 that uses a single vector register as a vector and not as a
7405 floating point register in terms of the calling sequence.
7406 (rs6000_discover_homogeneous_aggregate): Likewise.
7407 (rs6000_return_in_memory): Likewise.
7408 (init_cumulative_args): Likewise.
7409 (rs6000_function_arg_boundary): Likewise.
7410 (rs6000_function_arg_advance_1): Likewise.
7411 (rs6000_function_arg): Likewise.
7412 (rs6000_pass_by_reference): Likewise.
7413 (rs6000_gimplify_va_arg): Likewise.
7414 (rs6000_secondary_reload_memory): Use machine_mode not enum
7416 (rs6000_split_multireg_move): Use new helper macros.
7417 (spe_func_has_64bit_regs_p): Likewise.
7418 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
7419 (output_toc): Use new helper macros.
7420 (rs6000_register_move_cost): Likewise.
7421 (rs6000_function_value): Add IEEE 128-bit floating point calling
7423 (rs6000_libcall_value): Likewise.
7424 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
7425 floating point support.
7426 (rs6000_vector_mode_supported_p): Likewise.
7428 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
7430 PR rtl-optimization/66782
7431 * lra-int.h (struct lra_insn_recog_data): Add comment about
7432 clobbered hard regs for arg_hard_regs.
7433 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
7434 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
7435 Add condition for processing used hard regs.
7436 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
7437 Process clobbered hard regs.
7439 2015-07-09 Michael Matz <matz@suse.de>
7441 * genmatch.c (fprintf_indent): New function.
7442 (operand::gen_transform): Add indent parameter.
7443 (expr::gen_transform, c_expr::gen_transform,
7444 capture::gen_transform): Ditto and use fprintf_indent.
7445 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
7446 (dt_operand::gen, dt_operand::gen_predicate,
7447 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
7448 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
7449 (decision_tree::gen_gimple): Adjust calls and indent generated
7451 (decision_tree::gen_generic): Ditto.
7452 (write_predicate): Ditto.
7454 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
7457 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
7458 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
7459 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
7460 {GENERAL,SSE,MMX}_REG_P where appropriate.
7462 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
7464 * lto-streamer.h: Don't include target.h and alloc-pool.h.
7465 * builtins.c: Adjust includes.
7466 * gimple.c: Likewise.
7467 * ipa-icf.c: Likewise.
7468 * lto-opts.c: Likewise.
7469 * ipa-reference.c: Likewise.
7470 * lto-section-out.c: Likewise.
7471 * lto-streamer-in.c: Likewise.
7472 * lto-streamer-out.c: Likewise.
7473 * opts-global.c: Likewise.
7474 * symtab.c: Likewise.
7475 * tree-chkp.c: Likewise.
7476 * tree-ssa-live.c: Likewise.
7477 * tree-streamer-in.c: Likewise.
7478 * tree-streamer-out.c: Likewise.
7479 * config/darwin.c: Likewise.
7480 * config/i386/winnt.c: Likewise.
7482 2015-07-09 Richard Biener <rguenther@suse.de>
7484 * genmatch.c (struct expr): Add force_single_use flag.
7485 (expr::expr): Add copy constructor.
7486 (capture_info::walk_match): Gather force_single_use captures.
7487 (expr::gen_transform): Use possibly NULLified sequence.
7488 (dt_simplify::gen): Apply single-use restrictions by NULLifying
7489 seq if any constrained expr is not single-use.
7490 (parser::parse_expr): Refactor to allow multiple flags. Handle
7491 's' flag to force an expression have a single-use if the pattern
7492 simplifies to more than one statement.
7493 * match.pd: Convert most single_use conditionals to :s flags.
7495 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
7497 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
7498 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
7499 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
7501 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
7503 * flags.h: Don't include flag-types.h or options.h.
7504 * opts-common.c: Adjust includes.
7505 * opts-global.c: Likewise.
7506 * common/config/epiphany/epiphany-common.c: Likewise.
7508 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
7511 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
7514 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
7517 * config/i386/i386.c (ix86_return_in_memory): Return true
7518 if int_size_in_bytes returns negative for IA MCU.
7520 2015-07-09 Marek Polacek <polacek@redhat.com>
7522 PR tree-optimization/66718
7523 * Makefile.in (OBJS): Add gimple-laddress.o.
7524 * passes.def: Schedule pass_laddress.
7525 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
7526 * tree-pass.h (make_pass_laddress): Declare.
7527 * gimple-laddress.c: New file.
7529 2015-07-09 Richard Biener <rguenther@suse.de>
7531 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
7533 2015-07-09 Richard Biener <rguenther@suse.de>
7535 PR tree-optimization/66807
7536 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
7538 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
7540 * function.c (stack_protect_epilogue): Use if rather than switch for
7541 check targetm.have_stack_protect_test.
7543 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7545 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
7546 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
7547 * config/arc/arc.h: Likewise.
7548 * config/arm/arm.h: Likewise.
7549 * config/bfin/bfin.h: Likewise.
7550 * config/epiphany/epiphany.h: Likewise.
7551 * config/frv/frv.h: Likewise.
7552 * config/ia64/ia64.h: Likewise.
7553 * config/iq2000/iq2000.h: Likewise.
7554 * config/lm32/lm32.h: Likewise.
7555 * config/m32r/m32r.h: Likewise.
7556 * config/mcore/mcore.h: Likewise.
7557 * config/mep/mep.h: Likewise.
7558 * config/microblaze/microblaze.h: Likewise.
7559 * config/mips/mips.h: Likewise.
7560 * config/mmix/mmix.h: Likewise.
7561 * config/mn10300/mn10300.h: Likewise.
7562 * config/nds32/nds32.h: Likewise.
7563 * config/nios2/nios2.h: Likewise.
7564 * config/pa/pa.h: Likewise.
7565 * config/rl78/rl78.h: Likewise.
7566 * config/sh/sh.h: Likewise.
7567 * config/sparc/sparc.h: Likewise.
7568 * config/stormy16/stormy16.h: Likewise.
7569 * config/tilegx/tilegx.h: Likewise.
7570 * config/tilepro/tilepro.h: Likewise.
7571 * config/v850/v850.h: Likewise.
7572 * config/xtensa/xtensa.h: Likewise.
7573 * doc/tm.texi: Regenerate.
7574 * doc/tm.texi.in: Adjust.
7575 * combine.c (simplify_set): Likewise.
7576 (simplify_comparison): Likewise.
7577 * expr.c (store_constructor): Likewise.
7578 * internal-fn.c (expand_arith_overflow): Likewise.
7579 * reload.c (push_reload): Likewise.
7580 (find_reloads): Likewise.
7581 (find_reloads_subreg_address): Likewise.
7582 * reload1.c (eliminate_regs_1): Likewise.
7583 * rtlanal.c (nonzero_bits1): Likewise.
7584 (num_sign_bit_copies1): Likewise.
7585 * simplify-rtx.c (simplify_truncation): Likewise.
7587 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7589 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
7590 of AUTO_INC_DEC with the preprocessor.
7591 * combine.c (combine_instructions): Likewise.
7592 (can_combine_p): Likewise.
7593 (try_combine): Likewise.
7594 * emit-rtl.c (try_split): Likewise.
7595 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
7596 * lower-subreg.c (resolve_simple_move): Likewise.
7597 * lra.c (update_inc_notes): Likewise.
7598 * recog.c (asm_operand_ok): Likewise.
7599 (constrain_operands): Likewise.
7600 * regrename.c (scan_rtx_address): Likewise.
7601 * reload.c (update_auto_inc_notes): Likewise.
7602 (reg_inc_found_and_valid_p): Likewise.
7603 * reload1.c (reload): Likewise.
7604 (emit_input_reload_insns): Likewise.
7605 (delete_output_reload): Likewise.
7606 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
7607 * valtrack.c (cleanup_auto_inc_dec): Likewise.
7609 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7611 * rtl.h: Always define AUTO_INC_DEC.
7612 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
7613 * combine.c (combine_instructions): Likewise.
7614 (can_combine_p): Likewise.
7615 (try_combine): Likewise.
7616 * emit-rtl.c (try_split): Likewise.
7617 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
7618 * lower-subreg.c (resolve_simple_move): Likewise.
7619 * lra.c (update_inc_notes): Likewise.
7620 * recog.c (asm_operand_ok): Likewise.
7621 (constrain_operands): Likewise.
7622 * regrename.c (scan_rtx_address): Likewise.
7623 * reload.c (update_auto_inc_notes): Likewise.
7624 (find_equiv_reg): Likewise.
7625 * reload1.c (reload): Likewise.
7626 (reload_as_needed): Likewise.
7627 (choose_reload_regs): Likewise.
7628 (emit_input_reload_insns): Likewise.
7629 (delete_output_reload): Likewise.
7630 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
7631 * valtrack.c (cleanup_auto_inc_dec): Likewise.
7633 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7635 * combine.c (can_combine_def_p): Don't check the value of
7636 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
7637 (combinable_i3pat): Likewise.
7638 (mark_used_regs_combine): Likewise.
7639 * regrename.c (rename_chains): Likewise.
7640 * reload.c (find_reloads_address): Likewise.
7641 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7643 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7645 * combine.c (update_rsp_from_reg_equal): Don't check if
7646 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
7647 (reg_nonzero_bits_for_combine): Likewise.
7648 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
7650 * config/frv/frv.h: Likewise.
7651 * config/lm32/lm32.h: Likewise.
7652 * config/mep/mep.h: Likewise.
7653 * config/mips/mips.h: Likewise.
7654 * config/rs6000/rs6000.h: Likewise.
7655 * config/sh/sh.h: Likewise.
7656 * config/tilegx/tilegx.h (enum reg_class): Likewise.
7657 * config/tilepro/tilepro.h: Likewise.
7658 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
7659 * doc/tm.texi: Regenerate.
7660 * doc/tm.texi.in: Adjust.
7661 * rtlanal.c (nonzero_bits1): Likewise.
7663 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7665 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
7666 with the preprocessor.
7667 (combine_instructions): Likewise.
7668 (try_combine): Likewise.
7670 (distribute_notes): Likewise.
7672 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7674 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
7676 (simplify_set): Likewise.
7677 * cse.c (cse_insn): Likewise.
7678 * fold-const.c (fold_single_bit_test): Likewise.
7679 (fold_unary_loc): Likewise.
7680 * postreload.c (reload_cse_simplify_set): Likewise.
7681 (reload_cse_simplify_operands): Likewise.
7683 2015-07-08 Jiong Wang <jiong.wang@arm.com>
7685 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
7686 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
7688 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
7691 * config/i386/x86intrin.h: Include <adxintrin.h> even if
7692 __iamcu__ is defined.
7694 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
7696 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
7698 2015-07-08 Iain Sandoe <iain@codesourcery.com>
7701 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
7702 names from preservation.
7704 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
7707 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
7709 (function_arg_advance_32): Don't pass vectors in registers for
7711 (function_arg_32): Likewise.
7712 (ix86_return_in_memory): Don't return vectors in registers for
7715 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
7718 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
7719 hard regno live at the start of BB with incoming abnormal edges.
7720 * lra-lives.c (process_bb_lives): Ditto.
7722 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7725 * config/nvptx/mkoffload.c (main): Create an offload image only in
7726 64-bit configurations.
7728 2015-07-08 Martin Liska <mliska@suse.cz>
7731 * tree-sra.c (create_access_1): Call ctor without brackets.
7732 (create_artificial_child_access): Likewise.
7734 2015-07-08 Richard Biener <rguenther@suse.de>
7736 PR tree-optimization/66793
7737 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
7738 Properly split the block after stmts ending it.
7740 2015-07-08 Richard Biener <rguenther@suse.de>
7742 PR tree-optimization/66794
7743 * passes.c (execute_function_todo): Assert that post-dominators
7745 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
7746 Free post-dominators.
7748 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7750 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
7753 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
7755 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
7756 more than or equal 8 and less than 32 when optimizing for size.
7758 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7760 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
7761 COSTS_N_INSNS (1) and increment it appropriately throughout the
7764 2015-07-08 Richard Biener <rguenther@suse.de>
7766 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
7768 2015-07-08 Alan Modra <amodra@gmail.com>
7770 * target.def (rtx_costs): Remove "code" param, add "mode".
7771 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
7772 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
7773 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
7774 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
7775 call. Track mode when given in rtx.
7776 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
7777 (default_address_cost): Pass Pmode to rtx_cost.
7778 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
7779 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
7781 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
7782 (notreg_cost): Add mode param. Use it.
7783 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
7784 mode param and pass to set_src_cost. Update all calls.
7785 (hash_scan_set): Formatting.
7786 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
7787 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
7789 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
7790 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
7791 emit_store_flag): Update set_src_cost and rtx_cost calls.
7792 * auto-inc-dec.c (attempt_change): Likewise.
7793 * calls.c (precompute_register_parameters): Likewise.
7794 * combine.c (expand_compound_operation, make_extraction,
7795 force_to_mode, distribute_and_simplify_rtx): Likewise.
7796 * dojump.c (prefer_and_bit_test): Likewise.
7797 * dse.c (find_shift_sequence): Likewise.
7798 * expr.c (compress_float_constant): Likewise.
7799 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
7800 * ifcvt.c (noce_try_sign_mask): Likewise.
7801 * loop-doloop.c (doloop_optimize): Likewise.
7802 * loop-invariant.c (create_new_invariant): Likewise.
7803 * lower-subreg.c (shift_cost, compute_costs): Likewise.
7804 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
7805 lshift_cheap_p): Likewise.
7806 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
7807 try_replace_in_use, reload_cse_move2add): Likewise.
7808 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
7810 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7811 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7812 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
7813 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
7814 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
7815 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
7817 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
7818 * config/arc/arc.c (arc_rtx_costs): Likewise.
7819 * config/arm/arm.c (arm_rtx_costs): Likewise.
7820 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
7821 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
7822 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
7823 * config/cris/cris.c (cris_rtx_costs): Likewise.
7824 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
7825 * config/frv/frv.c (frv_rtx_costs): Likewise.
7826 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
7827 * config/i386/i386.c (ix86_rtx_costs): Likewise.
7828 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
7829 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
7830 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
7831 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
7832 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
7833 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
7834 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
7835 * config/mep/mep.c (mep_rtx_cost): Likewise.
7836 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
7837 * config/mips/mips.c (mips_rtx_costs): Likewise.
7838 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
7839 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
7840 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
7841 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
7842 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
7843 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
7844 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
7845 * config/pa/pa.c (hppa_rtx_costs): Likewise.
7846 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
7847 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
7848 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
7849 * config/s390/s390.c (s390_rtx_costs): Likewise.
7850 * config/sh/sh.c (sh_rtx_costs): Likewise.
7851 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
7852 * config/spu/spu.c (spu_rtx_costs): Likewise.
7853 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
7854 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
7855 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
7856 * config/v850/v850.c (v850_rtx_costs): Likewise.
7857 * config/vax/vax.c (vax_rtx_costs): Likewise.
7858 * config/visium/visium.c (visium_rtx_costs): Likewise.
7859 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
7860 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
7861 "code" param, and pass as outer_code to first rtx_cost call. Pass
7862 mode to rtx_cost calls.
7863 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
7865 (aarch64_rtx_costs_wrapper): Update.
7866 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
7867 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
7869 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
7871 (avr_operand_rtx_cost): Similarly.
7872 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
7873 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
7874 * config/mips/mips.c (mips_stack_address_p): Comment typo.
7875 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
7876 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
7877 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
7879 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
7880 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
7881 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
7882 * doc/tm.texi: Regenerate.
7884 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
7886 * tree-core.h: Include symtab.h.
7887 * rtl.h: Include hard-reg-set.h but not flags.h.
7888 (HARD_CONST): Remove condition compilation involving HARD_CONST since
7889 hard-reg-set.h is always included.
7890 * regs.h: Don't include hard-reg-set.h or rtl.h.
7891 * cfg.h: Include dominance.h.
7892 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
7893 * backend.h: New. Aggregate commonly used backend header files.
7894 * gimple-ssa.h: Don't include tree-hasher.h.
7895 * ssa.h: New. Aggregate commonly used SSA header files.
7896 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
7897 * sel-sched-ir.h: Flatten includes.
7898 * lra-int.h: Flatten completely.
7899 * sel-sched-dump.h: Flatten includes.
7900 * ira-int.h: Flatten includes.
7901 * gimple-streamer.h: Remove all includes.
7902 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
7903 * resource.h: Flatten hard-reg-set.h and df.h.
7904 * sched-int.h: Flatten insn-arrt.h and df.h.
7905 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
7906 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
7907 * genattrtab.c (write_header): Adjust generated includes.
7908 * genautomata.c (main): Likewise.
7909 * genconditions.c (write-header): Likewise.
7910 * genemit.c (main): Likewise.
7911 * gengtype.c (open_base_files): Likewise.
7912 * genopinit.c (main): Likewise.
7913 * genoutput.c (output_prologue): Likewise.
7914 * genpeep.c (main): Likewise.
7915 * genpreds.c (write_insn_preds_c): Likewise.
7916 * genrecog.c (write_header): Likewise.
7917 * alias.c: Adjust includes.
7919 * attribs.c: Likewise.
7920 * auto-inc-dec.c: Likewise.
7921 * auto-profile.c: Likewise.
7922 * bb-reorder.c: Likewise.
7923 * bt-load.c: Likewise.
7924 * builtins.c: Likewise.
7925 * caller-save.c: Likewise.
7926 * calls.c: Likewise.
7929 * cfganal.c: Likewise.
7930 * cfgbuild.c: Likewise.
7931 * cfgcleanup.c: Likewise.
7932 * cfgexpand.c: Likewise.
7933 * cfghooks.c: Likewise.
7934 * cfgloop.c: Likewise.
7935 * cfgloopanal.c: Likewise.
7936 * cfgloopmanip.c: Likewise.
7937 * cfgrtl.c: Likewise.
7938 * cgraph.c: Likewise.
7939 * cgraphbuild.c: Likewise.
7940 * cgraphclones.c: Likewise.
7941 * cgraphunit.c: Likewise.
7942 * cilk-common.c: Likewise.
7943 * combine-stack-adj.c: Likewise.
7944 * combine.c: Likewise.
7945 * compare-elim.c: Likewise.
7946 * convert.c: Likewise.
7947 * coverage.c: Likewise.
7948 * cppbuiltin.c: Likewise.
7949 * cprop.c: Likewise.
7951 * cselib.c: Likewise.
7952 * data-streamer-in.c: Likewise.
7953 * data-streamer-out.c: Likewise.
7954 * data-streamer.c: Likewise.
7955 * dbxout.c: Likewise.
7958 * debug.c: Likewise.
7959 * df-core.c: Likewise.
7960 * df-problems.c: Likewise.
7961 * df-scan.c: Likewise.
7963 * dojump.c: Likewise.
7964 * dominance.c: Likewise.
7965 * domwalk.c: Likewise.
7966 * double-int.c: Likewise.
7968 * dumpfile.c: Likewise.
7969 * dwarf2asm.c: Likewise.
7970 * dwarf2cfi.c: Likewise.
7971 * dwarf2out.c: Likewise.
7972 * emit-rtl.c: Likewise.
7973 * et-forest.c: Likewise.
7974 * except.c: Likewise.
7975 * explow.c: Likewise.
7976 * expmed.c: Likewise.
7978 * final.c: Likewise.
7979 * fixed-value.c: Likewise.
7980 * fold-const.c: Likewise.
7981 * function.c: Likewise.
7982 * fwprop.c: Likewise.
7983 * gcc-plugin.h: Likewise.
7984 * gcse-common.c: Likewise.
7986 * generic-match-head.c: Likewise.
7987 * ggc-page.c: Likewise.
7988 * gimple-builder.c: Likewise.
7989 * gimple-expr.c: Likewise.
7990 * gimple-fold.c: Likewise.
7991 * gimple-iterator.c: Likewise.
7992 * gimple-low.c: Likewise.
7993 * gimple-match-head.c: Likewise.
7994 * gimple-pretty-print.c: Likewise.
7995 * gimple-ssa-isolate-paths.c: Likewise.
7996 * gimple-ssa-strength-reduction.c: Likewise.
7997 * gimple-streamer-in.c: Likewise.
7998 * gimple-streamer-out.c: Likewise.
7999 * gimple-walk.c: Likewise.
8000 * gimple.c: Likewise.
8001 * gimplify-me.c: Likewise.
8002 * gimplify.c: Likewise.
8003 * godump.c: Likewise.
8004 * graph.c: Likewise.
8005 * graphite-blocking.c: Likewise.
8006 * graphite-dependences.c: Likewise.
8007 * graphite-interchange.c: Likewise.
8008 * graphite-isl-ast-to-gimple.c: Likewise.
8009 * graphite-optimize-isl.c: Likewise.
8010 * graphite-poly.c: Likewise.
8011 * graphite-scop-detection.c: Likewise.
8012 * graphite-sese-to-poly.c: Likewise.
8013 * graphite.c: Likewise.
8014 * haifa-sched.c: Likewise.
8015 * hw-doloop.c: Likewise.
8016 * ifcvt.c: Likewise.
8017 * init-regs.c: Likewise.
8018 * internal-fn.c: Likewise.
8019 * ipa-chkp.c: Likewise.
8020 * ipa-comdats.c: Likewise.
8021 * ipa-cp.c: Likewise.
8022 * ipa-devirt.c: Likewise.
8023 * ipa-icf-gimple.c: Likewise.
8024 * ipa-icf.c: Likewise.
8025 * ipa-inline-analysis.c: Likewise.
8026 * ipa-inline-transform.c: Likewise.
8027 * ipa-inline.c: Likewise.
8028 * ipa-polymorphic-call.c: Likewise.
8029 * ipa-profile.c: Likewise.
8030 * ipa-prop.c: Likewise.
8031 * ipa-pure-const.c: Likewise.
8032 * ipa-ref.c: Likewise.
8033 * ipa-reference.c: Likewise.
8034 * ipa-split.c: Likewise.
8035 * ipa-utils.c: Likewise.
8036 * ipa-visibility.c: Likewise.
8038 * ira-build.c: Likewise.
8039 * ira-color.c: Likewise.
8040 * ira-conflicts.c: Likewise.
8041 * ira-costs.c: Likewise.
8042 * ira-emit.c: Likewise.
8043 * ira-lives.c: Likewise.
8046 * langhooks.c: Likewise.
8048 * loop-doloop.c: Likewise.
8049 * loop-init.c: Likewise.
8050 * loop-invariant.c: Likewise.
8051 * loop-iv.c: Likewise.
8052 * loop-unroll.c: Likewise.
8053 * lower-subreg.c: Likewise.
8054 * lra-assigns.c: Likewise.
8055 * lra-coalesce.c: Likewise.
8056 * lra-constraints.c: Likewise.
8057 * lra-eliminations.c: Likewise.
8058 * lra-lives.c: Likewise.
8059 * lra-remat.c: Likewise.
8060 * lra-spills.c: Likewise.
8062 * lto-cgraph.c: Likewise.
8063 * lto-compress.c: Likewise.
8064 * lto-opts.c: Likewise.
8065 * lto-section-in.c: Likewise.
8066 * lto-section-out.c: Likewise.
8067 * lto-streamer-in.c: Likewise.
8068 * lto-streamer-out.c: Likewise.
8069 * lto-streamer.c: Likewise.
8071 * mode-switching.c: Likewise.
8072 * modulo-sched.c: Likewise.
8073 * omega.c: Likewise.
8074 * omp-low.c: Likewise.
8075 * optabs.c: Likewise.
8076 * opts-global.c: Likewise.
8077 * passes.c: Likewise.
8078 * plugin.c: Likewise.
8079 * postreload-gcse.c: Likewise.
8080 * postreload.c: Likewise.
8081 * predict.c: Likewise.
8082 * print-rtl.c: Likewise.
8083 * print-tree.c: Likewise.
8084 * profile.c: Likewise.
8086 * realmpfr.c: Likewise.
8087 * recog.c: Likewise.
8089 * reg-stack.c: Likewise.
8090 * regcprop.c: Likewise.
8091 * reginfo.c: Likewise.
8092 * regrename.c: Likewise.
8093 * regstat.c: Likewise.
8094 * reload.c: Likewise.
8095 * reload1.c: Likewise.
8096 * reorg.c: Likewise.
8097 * resource.c: Likewise.
8098 * rtl-chkp.c: Likewise.
8099 * rtlanal.c: Likewise.
8100 * rtlhooks.c: Likewise.
8101 * sanopt.c: Likewise.
8102 * sched-deps.c: Likewise.
8103 * sched-ebb.c: Likewise.
8104 * sched-rgn.c: Likewise.
8105 * sched-vis.c: Likewise.
8106 * sdbout.c: Likewise.
8107 * sel-sched-dump.c: Likewise.
8108 * sel-sched-ir.c: Likewise.
8109 * sel-sched.c: Likewise.
8111 * shrink-wrap.c: Likewise.
8112 * simplify-rtx.c: Likewise.
8113 * stack-ptr-mod.c: Likewise.
8115 * stor-layout.c: Likewise.
8116 * store-motion.c: Likewise.
8117 * stringpool.c: Likewise.
8118 * symtab.c: Likewise.
8119 * target-globals.c: Likewise.
8120 * targhooks.c: Likewise.
8121 * toplev.c: Likewise.
8122 * tracer.c: Likewise.
8123 * trans-mem.c: Likewise.
8124 * tree-affine.c: Likewise.
8125 * tree-browser.c: Likewise.
8126 * tree-call-cdce.c: Likewise.
8127 * tree-cfg.c: Likewise.
8128 * tree-cfgcleanup.c: Likewise.
8129 * tree-chkp-opt.c: Likewise.
8130 * tree-chkp.c: Likewise.
8131 * tree-chrec.c: Likewise.
8132 * tree-complex.c: Likewise.
8133 * tree-data-ref.c: Likewise.
8134 * tree-dfa.c: Likewise.
8135 * tree-diagnostic.c: Likewise.
8136 * tree-dump.c: Likewise.
8137 * tree-eh.c: Likewise.
8138 * tree-emutls.c: Likewise.
8139 * tree-if-conv.c: Likewise.
8140 * tree-inline.c: Likewise.
8141 * tree-into-ssa.c: Likewise.
8142 * tree-iterator.c: Likewise.
8143 * tree-loop-distribution.c: Likewise.
8144 * tree-nested.c: Likewise.
8145 * tree-nrv.c: Likewise.
8146 * tree-object-size.c: Likewise.
8147 * tree-outof-ssa.c: Likewise.
8148 * tree-parloops.c: Likewise.
8149 * tree-phinodes.c: Likewise.
8150 * tree-predcom.c: Likewise.
8151 * tree-pretty-print.c: Likewise.
8152 * tree-profile.c: Likewise.
8153 * tree-scalar-evolution.c: Likewise.
8154 * tree-sra.c: Likewise.
8155 * tree-ssa-address.c: Likewise.
8156 * tree-ssa-alias.c: Likewise.
8157 * tree-ssa-ccp.c: Likewise.
8158 * tree-ssa-coalesce.c: Likewise.
8159 * tree-ssa-copy.c: Likewise.
8160 * tree-ssa-copyrename.c: Likewise.
8161 * tree-ssa-dce.c: Likewise.
8162 * tree-ssa-dom.c: Likewise.
8163 * tree-ssa-dse.c: Likewise.
8164 * tree-ssa-forwprop.c: Likewise.
8165 * tree-ssa-ifcombine.c: Likewise.
8166 * tree-ssa-live.c: Likewise.
8167 * tree-ssa-loop-ch.c: Likewise.
8168 * tree-ssa-loop-im.c: Likewise.
8169 * tree-ssa-loop-ivcanon.c: Likewise.
8170 * tree-ssa-loop-ivopts.c: Likewise.
8171 * tree-ssa-loop-manip.c: Likewise.
8172 * tree-ssa-loop-niter.c: Likewise.
8173 * tree-ssa-loop-prefetch.c: Likewise.
8174 * tree-ssa-loop-unswitch.c: Likewise.
8175 * tree-ssa-loop.c: Likewise.
8176 * tree-ssa-math-opts.c: Likewise.
8177 * tree-ssa-operands.c: Likewise.
8178 * tree-ssa-phiopt.c: Likewise.
8179 * tree-ssa-phiprop.c: Likewise.
8180 * tree-ssa-pre.c: Likewise.
8181 * tree-ssa-propagate.c: Likewise.
8182 * tree-ssa-reassoc.c: Likewise.
8183 * tree-ssa-sccvn.c: Likewise.
8184 * tree-ssa-scopedtables.c: Likewise.
8185 * tree-ssa-sink.c: Likewise.
8186 * tree-ssa-strlen.c: Likewise.
8187 * tree-ssa-structalias.c: Likewise.
8188 * tree-ssa-tail-merge.c: Likewise.
8189 * tree-ssa-ter.c: Likewise.
8190 * tree-ssa-threadedge.c: Likewise.
8191 * tree-ssa-threadupdate.c: Likewise.
8192 * tree-ssa-uncprop.c: Likewise.
8193 * tree-ssa-uninit.c: Likewise.
8194 * tree-ssa.c: Likewise.
8195 * tree-ssanames.c: Likewise.
8196 * tree-stdarg.c: Likewise.
8197 * tree-streamer-in.c: Likewise.
8198 * tree-streamer-out.c: Likewise.
8199 * tree-streamer.c: Likewise.
8200 * tree-switch-conversion.c: Likewise.
8201 * tree-tailcall.c: Likewise.
8202 * tree-vect-data-refs.c: Likewise.
8203 * tree-vect-generic.c: Likewise.
8204 * tree-vect-loop-manip.c: Likewise.
8205 * tree-vect-loop.c: Likewise.
8206 * tree-vect-patterns.c: Likewise.
8207 * tree-vect-slp.c: Likewise.
8208 * tree-vect-stmts.c: Likewise.
8209 * tree-vectorizer.c: Likewise.
8210 * tree-vrp.c: Likewise.
8213 * ubsan.c: Likewise.
8214 * valtrack.c: Likewise.
8215 * value-prof.c: Likewise.
8216 * var-tracking.c: Likewise.
8217 * varasm.c: Likewise.
8218 * varpool.c: Likewise.
8219 * vmsdbgout.c: Likewise.
8220 * vtable-verify.c: Likewise.
8222 * wide-int.cc: Likewise.
8223 * xcoffout.c: Likewise.
8224 * config/aarch64/aarch64-builtins.c: Likewise.
8225 * config/aarch64/aarch64.c: Likewise.
8226 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8227 * config/alpha/alpha.c: Likewise.
8228 * config/arc/arc.c: Likewise.
8229 * config/arm/aarch-common.c: Likewise.
8230 * config/arm/arm-builtins.c: Likewise.
8231 * config/arm/arm-c.c: Likewise.
8232 * config/arm/arm.c: Likewise.
8233 * config/avr/avr-c.c: Likewise.
8234 * config/avr/avr-log.c: Likewise.
8235 * config/avr/avr.c: Likewise.
8236 * config/bfin/bfin.c: Likewise.
8237 * config/c6x/c6x.c: Likewise.
8238 * config/cr16/cr16.c: Likewise.
8239 * config/cris/cris.c: Likewise.
8240 * config/darwin-c.c: Likewise.
8241 * config/darwin.c: Likewise.
8242 * config/epiphany/epiphany.c: Likewise.
8243 * config/epiphany/mode-switch-use.c: Likewise.
8244 * config/epiphany/resolve-sw-modes.c: Likewise.
8245 * config/fr30/fr30.c: Likewise.
8246 * config/frv/frv.c: Likewise.
8247 * config/ft32/ft32.c: Likewise.
8248 * config/h8300/h8300.c: Likewise.
8249 * config/i386/i386-c.c: Likewise.
8250 * config/i386/i386.c: Likewise.
8251 * config/i386/msformat-c.c: Likewise.
8252 * config/i386/winnt-cxx.c: Likewise.
8253 * config/i386/winnt-stubs.c: Likewise.
8254 * config/i386/winnt.c: Likewise.
8255 * config/ia64/ia64-c.c: Likewise.
8256 * config/ia64/ia64.c: Likewise.
8257 * config/iq2000/iq2000.c: Likewise.
8258 * config/lm32/lm32.c: Likewise.
8259 * config/m32c/m32c-pragma.c: Likewise.
8260 * config/m32c/m32c.c: Likewise.
8261 * config/m32r/m32r.c: Likewise.
8262 * config/m68k/m68k.c: Likewise.
8263 * config/mcore/mcore.c: Likewise.
8264 * config/mep/mep-pragma.c: Likewise.
8265 * config/mep/mep.c: Likewise.
8266 * config/microblaze/microblaze-c.c: Likewise.
8267 * config/microblaze/microblaze.c: Likewise.
8268 * config/mips/mips.c: Likewise.
8269 * config/mmix/mmix.c: Likewise.
8270 * config/mn10300/mn10300.c: Likewise.
8271 * config/moxie/moxie.c: Likewise.
8272 * config/msp430/msp430-c.c: Likewise.
8273 * config/msp430/msp430.c: Likewise.
8274 * config/nds32/nds32-cost.c: Likewise.
8275 * config/nds32/nds32-fp-as-gp.c: Likewise.
8276 * config/nds32/nds32-intrinsic.c: Likewise.
8277 * config/nds32/nds32-isr.c: Likewise.
8278 * config/nds32/nds32-md-auxiliary.c: Likewise.
8279 * config/nds32/nds32-memory-manipulation.c: Likewise.
8280 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8281 * config/nds32/nds32-predicates.c: Likewise.
8282 * config/nds32/nds32.c: Likewise.
8283 * config/nios2/nios2.c: Likewise.
8284 * config/nvptx/nvptx.c: Likewise.
8285 * config/pa/pa.c: Likewise.
8286 * config/pdp11/pdp11.c: Likewise.
8287 * config/rl78/rl78-c.c: Likewise.
8288 * config/rl78/rl78.c: Likewise.
8289 * config/rs6000/rs6000-c.c: Likewise.
8290 * config/rs6000/rs6000.c: Likewise.
8291 * config/rx/rx.c: Likewise.
8292 * config/s390/s390-c.c: Likewise.
8293 * config/s390/s390.c: Likewise.
8294 * config/sh/sh-c.c: Likewise.
8295 * config/sh/sh-mem.cc: Likewise.
8296 * config/sh/sh.c: Likewise.
8297 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8298 * config/sh/sh_treg_combine.cc: Likewise.
8299 * config/sol2-c.c: Likewise.
8300 * config/sol2-cxx.c: Likewise.
8301 * config/sol2-stubs.c: Likewise.
8302 * config/sol2.c: Likewise.
8303 * config/sparc/sparc-c.c: Likewise.
8304 * config/sparc/sparc.c: Likewise.
8305 * config/spu/spu-c.c: Likewise.
8306 * config/spu/spu.c: Likewise.
8307 * config/stormy16/stormy16.c: Likewise.
8308 * config/tilegx/mul-tables.c: Likewise.
8309 * config/tilegx/tilegx-c.c: Likewise.
8310 * config/tilegx/tilegx.c: Likewise.
8311 * config/tilepro/mul-tables.c: Likewise.
8312 * config/tilepro/tilepro-c.c: Likewise.
8313 * config/tilepro/tilepro.c: Likewise.
8314 * config/v850/v850-c.c: Likewise.
8315 * config/v850/v850.c: Likewise.
8316 * config/vax/vax.c: Likewise.
8317 * config/visium/visium.c: Likewise.
8318 * config/vms/vms-c.c: Likewise.
8319 * config/vms/vms.c: Likewise.
8320 * config/vxworks.c: Likewise.
8321 * config/xtensa/xtensa.c: Likewise.
8323 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
8325 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
8326 Remove operand constraints. Change operand 2 predicate to
8327 nonmemory operand. Limit const_int values to mode bitsize. Only
8328 allow const_int values less than 32 when optimizing for size.
8329 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
8330 Remove operand constraints.
8331 (*bt<mode>): Use SImode for const_int values less than 32.
8332 (regmode): Remove mode attribute.
8334 2015-07-07 Anatoly Sokolov <aesok@post.ru>
8336 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8337 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
8338 moxie_legitimate_address_p): New functions.
8339 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8341 2015-07-07 Tom de Vries <tom@codesourcery.com>
8343 PR tree-optimization/66642
8344 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
8345 header comment. Rename split_edge variable to edge_at_split. Split
8346 exit edge to create new loop exit bb. Insert loop exit phis in new
8349 2015-07-07 Tom de Vries <tom@codesourcery.com>
8351 * tree-cfg.c (get_virtual_phi): New function.
8352 * tree-cfg.h (get_virtual_phi): Declare.
8353 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
8354 (rewrite_virtuals_into_loop_closed_ssa): New function.
8355 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
8357 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
8358 (transform_to_exit_first_loop_alt): Use
8359 rewrite_virtuals_into_loop_closed_ssa.
8361 2015-07-07 Richard Biener <rguenther@suse.de>
8363 * fold-const.c (fold_binary_loc): Move
8364 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
8365 * match.pd: ... here.
8366 Add (X * C1) % C2 -> 0 simplification pattern derived from
8369 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
8372 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
8373 change for target/65249.
8375 2015-07-07 Paulo Matos <pmatos@broadcom.com>
8377 * symtab.c (address_matters_1): Fix typo in comment above.
8378 (can_increase_alignment_p): Likewise.
8380 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8382 * function.c (free_after_compilation): Clear PROP_cfg in
8385 2015-07-07 Richard Biener <rguenther@suse.de>
8387 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
8389 (add_control_edge): Remove excessive vertical space in dumping.
8390 (process_ssa_edge_worklist): Simulate at most one statement and
8391 return whether we did. Do not simulate PHIs if they are in a
8392 BB not yet simulated.
8393 (ssa_propagate): Adjust to always drain the BB worklist whenever
8394 a BB is available there, likewise the VARYING edges list before
8395 the interesting edge list.
8397 2015-07-07 Christian Bruel <christian.bruel@st.com>
8400 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
8402 2015-07-07 Richard Biener <rguenther@suse.de>
8405 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
8408 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
8410 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
8411 modes for operands 0 and 3. Use SImode for operands 2 and 3.
8412 Copy operand 0 to a temporary if !ext_register_operand. Remove
8413 ancient extract_bit_field workaround.
8414 (insv<mode>_1): Rename from mov<mode>_insv_1.
8415 (*insvqi): Rename from *movqi_insv_2.
8416 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
8417 for renamed insvsi_1.
8418 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
8420 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
8422 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
8423 call to nvptx_reorg_subreg.
8425 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
8427 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
8428 * graphite-dependencies.c, graphite-interchange.c,
8429 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
8430 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
8433 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
8435 * match.pd: Remove element_mode inside HONOR_*.
8436 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
8437 (~X | X -> -1, ~X ^ X -> -1): Merge.
8438 * tree.c (build_each_one_cst): New function.
8439 * tree.h (build_each_one_cst): Likewise.
8441 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
8443 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8446 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
8448 * config.gcc <mips*-*-*>: Add fused-madd.opt.
8449 * config/mips/mips.opt (mfused-madd): Remove.
8450 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
8451 * config/mips/mips.h (TARGET_MIPS8000): New.
8452 (ISA_HAS_FP_MADD4_MSUB4): Remove.
8453 (ISA_HAS_FP_MADDF_MSUBF): Remove.
8454 (ISA_HAS_FP_MADD3_MSUB3): Remove.
8455 (ISA_HAS_NMADD4_NMSUB4): Remove.
8456 (ISA_HAS_NMADD3_NMSUB3): Remove.
8457 (ISA_HAS_FUSED_MADD4): New.
8458 (ISA_HAS_UNFUSED_MADD4): New.
8459 (ISA_HAS_FUSED_MADDF): New.
8460 (ISA_HAS_FUSED_MADD3): New.
8461 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
8462 (*fma<mode>4_madd3) New.
8463 (*fma<mode>4_madd4) New.
8464 (*fma<mode>4_maddf) New.
8466 (*fms<mode>4_msub3) New.
8467 (*fms<mode>4_msub4) New.
8469 (*fnma<mode>4_nmadd3) New.
8470 (*fnma<mode>4_nmadd4) New.
8472 (*fnms<mode>4_nmsub3) New.
8473 (*fnms<mode>4_nmsub4) New.
8474 (*madd4<mode>) Modify to be unfused only.
8475 (*msub4<mode>) Modify to be unfused only.
8476 (*nmadd4<mode>) Modify to be unfused only.
8477 (*nmsub4<mode>) Modify to be unfused only.
8478 (*madd3<mode>) Remove.
8479 (*msub3<mode>) Remove.
8480 (*nmadd3<mode>) Remove.
8481 (*nmsub3<mode>) Remove.
8482 (*nmadd3<mode>_fastmath) Remove.
8483 (*nmsub3<mode>_fastmath) Remove.
8484 (*nmadd4<mode>_fastmath) Update condition.
8485 (*nmsub4<mode>_fastmath) Update condition.
8487 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
8490 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
8491 alignment attribute, exploring one level down for records and arrays.
8493 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
8495 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
8496 modes for operands 0 and 1. Use SImode for operands 2 and 3.
8497 Copy operand 1 to a temporary if !ext_register_operand. Remove
8498 ancient extract_bit_field workaround.
8499 (*extv<mode>): Rename from *mov<mode>_extv_1.
8500 (*extvqi): Rename from *movqi_extv_1.
8501 (extzv<mode>): Rename from extzv. Use SWI248 modes for
8502 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
8503 to a temporary if !ext_register_operand. Remove ancient
8504 extract_bit_field workaround.
8505 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
8506 (*extzvqi): Rename from *movqi_extzv_2.
8507 (*testqi_ext_3): Remove modes from const_int_operand predicated
8508 operands. Add "n" constraint.
8509 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
8510 operand. Add "J" constraint.
8511 (*btsq, *btrq, *btcq peephole2s): Remove mode from
8512 const_0_to_63 predicated operand.
8513 (regmode): New insn attribute.
8514 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
8515 to nonmemory_operand. Use regmode insn attribute.
8516 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
8517 (*jcc_bt<mode>_mask): Remove mode from operand 3.
8518 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
8519 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
8520 operands. Use "N" constraint instead of "n".
8522 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
8524 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
8526 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
8529 * config/i386/i386.c (iamcu_cost): New.
8530 (m_IAMCU): Likewise.
8531 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
8532 (processor_target_table): Add an entry for "iamcu".
8533 (processor_alias_table): Likewise.
8534 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
8535 (ix86_adjust_cost): Likewise.
8536 (ia32_multipass_dfa_lookahead): Likewise.
8537 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
8538 * config/i386/x86-tune.def: Updated for m_IAMCU.
8540 2015-07-06 Richard Biener <rguenther@suse.de>
8542 PR tree-optimization/66772
8543 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
8544 values are available in the PHI node BB when there are
8545 still unexecutable edges.
8547 2015-07-06 Richard Biener <rguenther@suse.de>
8549 PR tree-optimization/66767
8550 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
8551 Make sure to build the alignment test on a SSA name without
8552 final alignment info valid only if the alignment test
8555 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
8558 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
8559 loop start when inserting LSETUP.
8561 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
8564 * config/i386/i386.c (ix86_option_override_internal): Allow
8565 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
8567 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8569 * read-md.c (decimal_string): Rename to ...
8570 (md_decimal_string): ... this.
8571 (handle_enum): Reflect this.
8573 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
8576 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
8578 2015-07-06 Richard Biener <rguenther@suse.de>
8581 * match.pd: Add missing constraint of y to REAL_CST in
8582 REAL_CST - x CMP y to y - CST CMP x simplification.
8584 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
8586 PR tree-optimization/66757
8587 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
8589 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
8590 Sandra Loosemore <sandra@codesourcery.com>
8592 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
8593 Delete extern declaration.
8594 (gprel_constant_p): Add extern declaration.
8595 * config/nios2/constraints.md ("S"): Use gprel_constant_p
8596 instead of nios2_symbol_ref_in_small_data_p.
8597 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
8598 (nios2_symbol_ref_in_small_data_p): Make static.
8599 (gprel_constant_p): Make non-static.
8601 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
8603 * doc/fragments.texi (Target Fragment): Convert debian.org
8605 * doc/install.texi (Configuration): Ditto.
8607 2015-07-05 Jakub Jelinek <jakub@redhat.com>
8609 PR tree-optimization/66718
8610 * tree-vect-stmts.c (vectorizable_call): Replace uses of
8611 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
8613 PR tree-optimization/66718
8614 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
8615 vectorizable_load, vectorizable_condition): Move vectype,
8616 nunits, ncopies computation after checking what kind of statement
8619 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
8621 * target-insns.def (extv, extzv, insv): New targetm instruction
8623 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
8625 * recog.c (simplify_while_replacing): Likewise.
8627 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
8629 * target-insns.def (doloop_begin, doloop_end): New targetm
8630 instruction patterns.
8631 * loop-init.c: Include target.h.
8632 (pass_loop2::gate): Use the new targetm patterns instead of
8633 HAVE_*/gen_* interface.
8634 (pass_rtl_doloop::gate): Likewise.
8635 (pass_rtl_doloop::execute): Remove preprocessor condition.
8636 * hw-doloop.c: Build unconditionally.
8637 * loop-doloop.c: Likewise.
8638 (doloop_optimize): Use the new targetm patterns instead of
8639 HAVE_*/gen_* interface.
8640 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
8641 * modulo-sched.c (doloop_register_get): Likewise.
8643 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
8645 * target-insns.def (clear_cache): New targetm instruction pattern.
8646 * builtins.c (expand_builtin___clear_cache): Use it instead of
8647 HAVE_*/gen_* interface.
8649 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
8651 * target-insns.def (allocate_stack, check_stack, probe_stack)
8652 (probe_stack_address, split_stack_prologue, split_stack_space_check):
8653 New targetm instruction patterns.
8654 * explow.c (allocate_dynamic_stack_space): Use them instead of
8655 HAVE_*/gen_* interface.
8656 (emit_stack_probe): Likewise.
8657 (probe_stack_range): Likewise.
8658 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8660 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
8662 * target-insns.def (stack_protect_set, stack_protect_test): New
8663 targetm instruction patterns.
8664 * cfgexpand.c (stack_protect_prologue): Use them instead of
8665 HAVE_*/gen_* interface.
8666 * function.c (stack_protect_epilogue): Likewise.
8668 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
8670 * expr.h (gen_move_insn_uncast): Delete.
8671 * expr.c (gen_move_insn_uncast): Delete.
8673 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
8675 * target-insns.def (restore_stack_block, restore_stack_function)
8676 (restore_stack_nonlocal, save_stack_block, save_stack_function)
8677 (save_stack_nonlocal): New targetm instruction patterns.
8678 * builtins.c (expand_builtin_apply): Use them instead of
8679 HAVE_*/gen_* interface.
8680 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
8682 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
8684 * target-insns.def (trap): New targetm instruction pattern.
8685 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
8687 * explow.c (allocate_dynamic_stack_space): Likewise.
8688 * ifcvt.c (find_if_header): Likewise.
8690 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
8692 * target-insns.def (prefetch): New targetm instruction pattern.
8693 * tree-ssa-loop-prefetch.c: Include targeth.
8694 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
8695 of HAVE_*/gen_* interface.
8696 * builtins.c (expand_builtin_prefetch): Likewise.
8697 * toplev.c (process_options): Likewise.
8699 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
8701 * target-insns.def (untyped_call, untyped_return): New targetm
8702 instruction patterns.
8703 * builtins.c (expand_builtin_apply): Use them instead of
8704 HAVE_*/gen_* interface.
8705 (result_vector): Define unconditionally.
8707 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
8709 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
8710 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
8711 (nonlocal_goto_receiver): New targetm instruction patterns.
8712 * builtins.c (expand_builtin_setjmp_setup): Use them instead
8713 of HAVE_*/gen_* interface.
8714 (expand_builtin_setjmp_receiver): Likewise.
8715 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
8716 * except.c (expand_dw2_landing_pad_for_region): Likewise.
8718 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
8720 * target.def: Add code_for_* hooks.
8721 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
8722 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
8723 * target-insns.def (casesi, tablejump): New targetm instruction
8725 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
8726 (do_tablejump): Likewise.
8727 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
8728 (expand_sjlj_dispatch_table): Likewise.
8729 * targhooks.c (default_case_values_threshold): Likewise.
8731 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
8733 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
8734 Use rtx_insn * instead of rtx.
8735 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
8736 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
8737 (nios2_call_tls_get_addr): Likewise.
8738 (nios2_emit_expensive_div): Likewise.
8739 (nios2_emit_move_sequence): Change return type to bool.
8740 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
8741 Change return type to bool.
8743 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8746 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
8748 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
8751 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
8752 of register_operand. Remove constraint.
8754 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
8756 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
8759 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
8761 * attribs.c (decl_attributes): Guard inform with the return value
8762 of the preceding warning.
8764 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
8766 * doc/invoke.texi (moverride): Move to correct section.
8768 2015-07-03 Richard Biener <rguenther@suse.de>
8770 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
8772 (dt_operand::gen_gimple_expr): After valueizing operands
8773 re-canonicalize operand order for commutative tree codes.
8775 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
8778 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
8780 (__crc32w): Likewise.
8781 (__crc32d): Likewise.
8782 (__rdpmc): Likewise.
8783 (__rdtscp): Likewise.
8785 (_rdtscp): Likewise.
8786 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
8789 2015-07-03 Richard Biener <rguenther@suse.de>
8791 * fold-const.c (fold_mathfn_compare): Remove.
8792 (fold_inf_compare): Likewise.
8793 (fold_comparison): Move floating point comparison simplifications...
8794 * match.pd: ... to patterns here. Introduce simple_comparisons
8795 operator list and use it for patterns formerly in fold_comparison.
8797 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
8799 PR tree-optimization/66119
8800 * toplev.c (process_options): Don't set up default values for
8801 the sra_max_scalarization_size_{speed,size} parameters.
8802 * tree-sra (analyze_all_variable_accesses): If no values
8803 have been set for the sra_max_scalarization_size_{speed,size}
8804 parameters, call get_move_ratio to get target defaults.
8806 2015-07-03 Richard Biener <rguenther@suse.de>
8808 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
8809 * match.pd: ... here.
8811 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
8814 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
8815 is not actually the default on FreeBSD.
8817 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8819 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
8821 (CMPGE_8HI): Likewise.
8822 (CMPGE_4SI): Likewise.
8823 (CMPGE_2DI): Likewise.
8824 (CMPGE_U16QI): Likewise.
8825 (CMPGE_U8HI): Likewise.
8826 (CMPGE_U4SI): Likewise.
8827 (CMPGE_U2DI): Likewise.
8828 (CMPLE_16QI): Likewise.
8829 (CMPLE_8HI): Likewise.
8830 (CMPLE_4SI): Likewise.
8831 (CMPLE_2DI): Likewise.
8832 (CMPLE_U16QI): Likewise.
8833 (CMPLE_U8HI): Likewise.
8834 (CMPLE_U4SI): Likewise.
8835 (CMPLE_U2DI): Likewise.
8836 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8837 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
8838 ALTIVEC_BUILTIN_VEC_CMPLE.
8839 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
8840 floating-point vector modes.
8841 (vector_nlt<mode>): New define_expand.
8842 (vector_nltu<mode>): Likewise.
8843 (vector_ngt<mode>): Likewise.
8844 (vector_ngtu<mode>): Likewise.
8846 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
8848 PR rtl-optimization/66706
8849 * combine.c (make_compound_operation): If an AND of SUBREG of
8850 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
8852 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
8854 * tree-pass.h (make_pass_ch_vect): New.
8855 * passes.def: Add pass_ch_vect just before pass_if_conversion.
8857 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
8858 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
8859 make_pass_ch_vect): New.
8860 (pass_ch): Extend ch_base.
8862 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
8863 (ch_base::copy_headers): ...here.
8865 2015-07-02 Richard Biener <rguenther@suse.de>
8867 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
8868 * fold-const.c (get_pointer_modulus_and_residue): Remove.
8869 (fold_binary_loc): Implement (T)ptr & CST in terms of
8870 get_pointer_alignment_1.
8871 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
8872 Make sure to build the alignment test on a SSA name without
8873 final alignment info valid only after the prologue.
8875 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
8877 * config/cris/cris.md ("epilogue"): Remove condition.
8878 ("prologue"): Ditto.
8880 2015-07-02 Richard Biener <rguenther@suse.de>
8882 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
8883 parameter to record a condition that is false.
8884 (record_conditions): When recording an extra NE_EXPR that is
8885 true also record a EQ_EXPR that is false.
8887 2015-07-02 Bin Cheng <bin.cheng@arm.com>
8889 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
8890 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
8891 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
8892 (set_iv, find_interesting_uses_address, add_candidate_1): New
8893 argument to alloc_iv.
8894 (find_interesting_uses_op, find_interesting_uses_cond): Don't
8895 duplicate struct iv.
8896 (free_loop_data): Don't free struct iv explicitly.
8897 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
8899 2015-07-01 DJ Delorie <dj@redhat.com>
8901 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
8903 (SUPPORTS_DISCRIMINATOR): Define.
8905 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
8908 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
8909 there are no CALLs in the same pattern.
8911 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8913 PR rtl-optimization/61047
8914 * rtlanal.c (get_initial_register_offset): New function.
8915 (rtx_addr_can_trap_p_1): Check offsets of stack references.
8917 2015-07-01 Richard Biener <rguenther@suse.de>
8919 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
8920 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
8921 ~X CMP C -> X CMP' ~C to ...
8922 * match.pd: ... patterns here.
8924 2015-07-01 Nick Clifton <nickc@redhat.com>
8926 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
8927 a 16-bit value into a 20-bit memory slot.
8929 2015-07-01 Jiong Wang <jiong.wang@arm.com>
8931 * doc/sourcebuild.texi (AArch64-specific attributes): Document
8932 "aarch64_tiny", "aarch64_small", "aarch64_large",
8933 "aarch64_little_endian", "aarch64_big_endian".
8935 2015-07-01 Jiong Wang <jiong.wang@arm.com>
8937 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
8938 Document "aarch64_small_fpic".
8940 2015-07-01 Jiong Wang <jiong.wang@arm.com>
8942 * configure.ac: Add check for aarch64 assembler -fpic relocation
8944 * configure: Regenerate.
8945 * config.in: Regenerate.
8946 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
8947 to -fPIC if not support of -fpic relocation modifier in assembler.
8949 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
8952 * rtl.c (classify_insn): Handle returns in PARALLELs.
8954 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
8957 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
8958 to true if the function is nested and if not optimizing.
8959 (convert_local_omp_clauses): Initialize need_frame to true if the
8960 function contains nested functions and if not optimizing.
8962 2015-07-01 Richard Biener <rguenther@suse.de>
8964 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
8965 (X & Y) ^ Y -> ~X & Y transforms to ...
8966 * match.pd: ... here.
8968 2015-07-01 Richard Biener <rguenther@suse.de>
8970 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
8971 of converts to avoid uninteresting noise from the conversion
8972 simplifying patterns.
8974 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
8976 * config/c6x/c6x.c (try_rename_operands): Do not depend on
8977 gcc_assert evaluating its argument for side-effect.
8979 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
8982 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
8985 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
8987 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
8988 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
8989 (hash_scc): Add this_ref_p and ref_p parameters and pass them
8990 to the inner DFS walk.
8992 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
8994 * target-insns.def (jump): New targetm instruction pattern.
8995 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
8996 instead of gen_jump.
8997 (fix_up_crossing_landing_pad): Likewise.
8998 (add_labels_and_missing_jumps): Likewise.
8999 (fix_crossing_conditional_branches): Likewise.
9000 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9001 (force_nonfallthru_and_redirect): Likewise.
9002 * cse.c (cse_insn): Likewise.
9003 * expmed.c (expand_divmod): Likewise.
9004 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
9005 * haifa-sched.c (init_before_recovery): Likewise.
9006 (sched_create_recovery_edges): Likewise.
9007 * ifcvt.c (find_cond_trap): Likewise.
9008 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
9009 (expand_float, expand_fix): Likewise.
9010 * stmt.c (emit_jump): Likewise.
9012 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9014 * defaults.h (HAVE_load_multiple, gen_load_multiple)
9015 (HAVE_store_multiple, gen_store_multiple): Delete.
9016 * target-insns.def (load_multiple, store_multiple): New targetm
9017 instruction patterns.
9018 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
9019 of HAVE_*/gen_* interface.
9021 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9023 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
9024 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
9025 (gen_mem_signal_fence): Delete.
9026 * target-insns.def (mem_signal_fence, mem_thread_fence)
9027 (memory_barrier): New targetm instruction patterns.
9028 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
9030 (expand_mem_signal_fence): Likewise.
9032 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
9034 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
9035 * target-insns.def (epilogue, prologue, sibcall_prologue): New
9036 targetm instruction patterns.
9037 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
9039 * calls.c (expand_call): Likewise.
9040 * cfgrtl.c (cfg_layout_finalize): Likewise.
9041 * df-scan.c (df_get_entry_block_def_set): Likewise.
9042 (df_get_exit_block_use_set): Likewise.
9043 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
9044 * final.c (final_start_function): Likewise.
9045 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9046 (reposition_prologue_and_epilogue_notes): Likewise.
9047 * reorg.c (find_end_label): Likewise.
9048 * toplev.c (process_options): Likewise.
9050 2015-06-30 David Malcolm <dmalcolm@redhat.com>
9052 * typed-splay-tree.h: New file.
9054 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
9057 * lra-int.h (lra_substitute_pseudo): Add a parameter.
9058 (lra_substitute_pseudo_within_insn): Ditto.
9059 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
9061 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
9062 to lra_substitute_pseudo.
9063 * lra-lives.c (process_bb_lives): Add an argument to
9064 lra_substitute_pseudo_within_insn call.
9065 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
9066 argument to lra_substitute_pseudo and
9067 lra_substitute_pseudo_within_insn calls.
9068 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
9070 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
9072 * configure: Regenerated.
9074 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
9076 * config.gcc: Support i[34567]86-*-elfiamcu target.
9077 * config/i386/iamcu.h: New.
9078 * config/i386/i386.opt: Add -miamcu.
9079 * doc/invoke.texi: Document -miamcu.
9080 * common/config/i386/i386-common.c (ix86_handle_option): Turn
9081 off x87/MMX/SSE/AVX codegen for -miamcu.
9082 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9083 __iamcu/__iamcu__ for -miamcu.
9084 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
9085 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
9086 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
9087 * config/i386/i386.c (ix86_option_override_internal): Ignore and
9088 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
9089 MCU by default. Default long double to 64-bit for Intel MCU.
9090 Turn on -freg-struct-return for Intel MCU. Issue an error when
9091 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
9093 (function_arg_advance_32): Pass value whose size is no larger
9094 than 8 bytes in registers for Intel MCU.
9095 (function_arg_32): Likewise.
9096 (ix86_return_in_memory): Return value whose size is no larger
9097 than 8 bytes in registers for Intel MCU.
9098 (iamcu_alignment): New function.
9099 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
9101 (ix86_local_alignment): Don't increase alignment for Intel MCU.
9102 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
9105 2015-06-30 Marek Polacek <polacek@redhat.com>
9107 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
9108 both operands of the resulting expression.
9110 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
9111 the final expression with the operand's type and then convert
9112 it to the type of the expression.
9114 2015-06-30 Richard Biener <rguenther@suse.de>
9116 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
9117 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
9118 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
9119 * match.pd: ... to patterns here.
9121 2015-06-30 Richard Biener <rguenther@suse.de>
9123 PR tree-optimization/66704
9124 * tree-vect-data-refs.c (vect_setup_realignment): Use
9125 make_ssa_name for non-SSA name source.
9127 2015-06-30 Jakub Jelinek <jakub@redhat.com>
9130 * omp-low.c (simd_clone_adjust): Handle addressable linear
9131 or uniform parameters or non-gimple type uniform parameters.
9133 2015-06-30 Richard Biener <rguenther@suse.de>
9135 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
9136 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
9137 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
9138 * match.pd: ... here.
9139 Add a few cases of A - B -> A + (-B) when B "easily" negates.
9140 Move (x & y) | x -> x and friends before
9141 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
9143 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
9145 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
9146 -mfix-ut699 is not specified.
9147 (leon3_load): Rename into...
9148 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
9151 2015-06-30 Marek Polacek <polacek@redhat.com>
9153 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
9154 * match.pd: ... here.
9156 2015-06-30 Richard Biener <rguenther@suse.de>
9158 * target-insns.def (canonicalize_funcptr_for_compare): Add.
9159 * fold-const.c (build_range_check): Replace uses of
9160 HAVE_canonicalize_funcptr_for_compare.
9161 (fold_widened_comparison): Likewise.
9162 (fold_sign_changed_comparison): Likewise.
9163 * dojump.c: Include "target.h".
9164 (do_compare_and_jump): Replace uses of
9165 HAVE_canonicalize_funcptr_for_compare and
9166 gen_canonicalize_funcptr_for_compare.
9167 * expr.c (do_store_flag): Likewise.
9169 2015-06-30 Tom de Vries <tom@codesourcery.com>
9171 PR tree-optimization/66652
9172 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
9173 max_loop_iterations to determine if nit + 1 overflows.
9175 2015-06-30 Richard Biener <rguenther@suse.de>
9177 * tree-vrp.c (register_edge_assert_for_2): Also register
9178 asserts for dominating conversion results.
9180 2015-06-30 Bin Cheng <bin.cheng@arm.com>
9182 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
9185 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
9188 * configure.ac: Fix filds and fildq test for 64-bit.
9189 * configure: Regenerated.
9191 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
9193 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
9194 (nvptx_reorg): Here. Keep the non-subreg pieces.
9196 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
9198 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
9199 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
9201 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
9203 * config/i386/i386.md (*jcc_1): Use %! in asm template.
9204 Set attribute "length_nobnd" instead of "length".
9207 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
9209 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
9211 * config/nios2/nios2.c (nios2_delegitimize_address): Make
9212 assert less restrictive.
9214 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
9217 * cgraphunit.c (cgraph_node::finalize_function): Do not call
9218 do_warn_unused_parameter.
9219 * function.c (do_warn_unused_parameter): Move from here.
9220 * function.h (do_warn_unused_parameter): Do not declare.
9222 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9225 * gcc.target/arm/armv-sync-comp-swap.c: New.
9226 * gcc.target/arm/armv-sync-op-acquire.c: New.
9227 * gcc.target/arm/armv-sync-op-full.c: New.
9228 * gcc.target/arm/armv-sync-op-release.c: New.
9230 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9233 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
9234 initial acquire barrier with final barrier.
9236 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9239 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
9240 initial acquire barrier with final barrier.
9242 2015-06-29 Richard Henderson <rth@redhat.com>
9244 * config/i386/constraints.md (Bf): New constraint.
9245 * config/i386/i386-c.c (ix86_target_macros): Define
9246 __GCC_ASM_FLAG_OUTPUTS__.
9247 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
9249 * doc/extend.texi (FlagOutputOperands): Document them.
9251 2015-06-29 Jiong Wang <jiong.wang@arm.com>
9253 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
9254 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
9256 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
9257 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
9258 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
9259 (aarch64_symbol_context): Ditto.
9260 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
9261 and use new pattern name.
9262 (aarch64_expand_mov_immediate): Ditto.
9263 (aarch64_print_operand): Ditto.
9264 (aarch64_classify_tls_symbol): Ditto.
9266 2015-06-29 Marek Polacek <polacek@redhat.com>
9267 Marc Glisse <marc.glisse@inria.fr>
9269 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
9270 * match.pd: ... pattern here.
9272 2015-06-29 Tom de Vries <tom@codesourcery.com>
9274 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
9277 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
9279 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
9280 feature description, split out the native option, add a link to
9281 the feature documentation, rearrange and slightly rewrite text.
9282 (Aarch64 options, -mcpu): Likewise.
9283 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
9284 +rdma implies Adv. SIMD.
9286 2015-06-29 Marek Polacek <polacek@redhat.com>
9289 * function.c (stack_protect_epilogue): Remove a cast to int.
9290 * doc/invoke.texi: Update -Wswitch-bool description.
9292 2015-06-29 Richard Biener <rguenther@suse.de>
9294 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
9295 * fold-const.c (fold_binary_loc): Move &A - &B simplification
9296 via ptr_difference_const ...
9297 * match.pd: ... here.
9298 When matching (X ^ Y) == Y also match with swapped operands.
9300 2015-06-29 Richard Biener <rguenther@suse.de>
9302 * lto-streamer.h (LTO_major_version): Bump to 5.
9304 2015-06-29 Richard Biener <rguenther@suse.de>
9306 PR tree-optimization/66677
9307 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
9308 STMT_VINFO_VEC_STMT clobbering less strict.
9310 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
9313 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
9314 division, compute max and min when value ranges for dividend and
9315 divisor are available.
9317 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
9318 Sandra Loosemore <sandra@codesourcery.com>
9320 * regrename.h (regrename_do_replace): Change to return bool.
9321 * regrename.c (rename_chains): Check return value of
9323 (regrename_do_replace): Re-validate the modified insns and
9325 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
9326 Update to match rename_chains changes.
9327 * config/c6x/c6x.c (try_rename_operands): Assert that
9328 regrename_do_replace returns true.
9330 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
9332 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
9333 operand 2 here. Use copy_addr_to_reg to copy non-index
9334 register operand 2 to a temporary.
9335 (<mode>_stx): Ditto for operand 1.
9336 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
9337 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
9338 (ix86_store_bounds): Ditto.
9340 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
9342 * print-tree.c (print_node) [TREE_VEC]: Print its length.
9344 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
9346 * gimple.c (gimple_call_set_fndecl): Remove.
9347 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
9348 build1_loc directly instead of build_fold_addr_expr_loc.
9350 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
9352 * hash-map.h (hash_map::traverse): Use the definition of the
9353 Key typedef rather than the typedef itself.
9355 2015-06-26 Martin Jambor <mjambor@suse.cz>
9358 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
9359 NULL instead of calling dump_enabled_p.
9361 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9363 * config/aarch64/aarch64.opt: (override): New.
9364 * doc/invoke.texi (override): Document.
9365 * config/aarch64/aarch64.c (aarch64_flag_desc): New
9366 (aarch64_fusible_pairs): Likewise.
9367 (aarch64_tuning_flags): Likewise.
9368 (aarch64_tuning_override_function): Likewise.
9369 (aarch64_tuning_override_functions): Likewise.
9370 (aarch64_parse_one_option_token): Likewise.
9371 (aarch64_parse_boolean_options): Likewise.
9372 (aarch64_parse_fuse_string): Likewise.
9373 (aarch64_parse_tune_string): Likewise.
9374 (aarch64_parse_one_override_token): Likewise.
9375 (aarch64_parse_override_string): Likewise.
9376 (aarch64_override_options): Parse the -override string if it
9379 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9381 * config/aarch64/aarch64-protos.h (tune_params): Remove
9383 (aarch64_tune_params): Remove const, change to no longer be
9385 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
9386 change to no longer be a pointer, initialize to generic_tunings.
9387 (aarch64_min_divisions_for_recip_mul): Change dereference of
9388 aarch64_tune_params to member access.
9389 (aarch64_reassociation_width): Likewise.
9390 (aarch64_rtx_mult_cost): Likewise.
9391 (aarch64_address_cost): Likewise.
9392 (aarch64_branch_cost): Likewise.
9393 (aarch64_rtx_costs): Likewise.
9394 (aarch64_register_move_cost): Likewise.
9395 (aarch64_memory_move_cost): Likewise.
9396 (aarch64_sched_issue_rate): Likewise.
9397 (aarch64_builtin_vectorization_cost): Likewise.
9398 (aarch64_override_options): Take a copy of the selected tuning
9399 struct in to aarch64_tune_params, rather than just setting
9400 a pointer, change dereferences of aarch64_tune_params to member
9402 (aarch64_override_options_after_change): Change dereferences of
9403 aarch64_tune_params to member access.
9404 (aarch64_macro_fusion_p): Likewise.
9405 (aarch_macro_fusion_pair_p): Likewise.
9406 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
9408 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9410 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
9411 (aarch64_tune_flags): Likewise.
9412 (AARCH64_TUNE_FMA_STEERING): Likewise.
9413 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
9414 to AARCH64_FL_USE_FMA_STEERING_PASS.
9415 (cortex-a57.cortex-a53): Likewise.
9416 (cortex-a72): Use cortexa72_tunings.
9417 (cortex-a72.cortex-a53): Likewise.
9418 (exynos-m1): Likewise.
9419 * config/aarch64/aarch64-protos.h (tune_params): Add
9420 a field: extra_tuning_flags.
9421 * config/aarch64/aarch64-tuning-flags.def: New.
9422 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
9423 (aarch64_extra_tuning_flags): Likewise.
9424 (aarch64_tune_params): Declare here.
9425 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
9426 (cortexa53_tunings): Likewise.
9427 (cortexa57_tunings): Likewise.
9428 (thunderx_tunings): Likewise.
9429 (xgene1_tunings): Likewise.
9430 (cortexa72_tunings): New.
9431 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
9432 (gate): Check against aarch64_tune_params.
9433 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
9436 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9438 * config/aarch64/aarch64-fusion-pairs.def: New.
9439 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
9440 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
9441 aarch64_fusion_pairs.
9442 (AARCH64_FUSE_MOV_MOVK): Likewise.
9443 (AARCH64_FUSE_ADRP_ADD): Likewise.
9444 (AARCH64_FUSE_MOVK_MOVK): Likewise.
9445 (AARCH64_FUSE_ADRP_LDR): Likewise.
9446 (AARCH64_FUSE_CMP_BRANCH): Likewise.
9448 2015-06-26 Jiong Wang <jiong.wang@arm.com>
9450 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
9451 SYMBOL_SMALL_GOT_28K.
9452 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
9453 relocation modifiers.
9454 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
9455 (ldr_got_small_28k_<mode>): New.
9456 (ldr_got_small_28k_sidi): New.
9457 * config/aarch64/iterators.md (got_modifier): New mode iterator.
9458 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
9459 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
9460 SYMBOL_SMALL_GOT_28K.
9461 (aarch64_rtx_costs): Add costs for new instruction sequences.
9462 (initialize_aarch64_code_model): Initialize new model.
9463 (aarch64_classify_symbol): Recognize new model and new symbol classification.
9464 (aarch64_asm_preferred_eh_data_format): Support new model.
9465 (aarch64_load_symref_appropriately): Generate new instruction
9466 sequences for -fpic.
9467 (TARGET_USE_PSEUDO_PIC_REG): New definition.
9468 (aarch64_use_pseudo_pic_reg): New function.
9470 2015-06-26 Jiong Wang <jiong.wang@arm.com>
9472 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
9473 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
9474 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
9475 (aarch64_expand_mov_immediate): Ditto.
9476 (aarch64_print_operand): Ditto.
9477 (aarch64_classify_symbol): Ditto.
9479 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
9481 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
9483 2015-06-26 Bin Cheng <bin.cheng@arm.com>
9486 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
9487 assertion failed. Remove assertion itself.
9489 2015-06-26 Richard Biener <rguenther@suse.de>
9491 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
9492 and -A CMP CST -> A CMP -CST which is redundant with a pattern
9494 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
9495 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
9496 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
9497 * match.pd: ... patterns here.
9499 2015-06-26 Marek Polacek <polacek@redhat.com>
9501 * match.pd ((x | y) & ~(x & y) -> x ^ y,
9502 (x | y) & (~x ^ y) -> x & y): New patterns.
9504 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
9506 * rtl.h (emit): Add an optional boolean parameter to control
9507 whether barriers are emitted.
9508 * emit-rtl.c (emit): Likewise.
9509 * gensupport.c (get_emit_function): Return null rather than "emit".
9510 * genemit.c (gen_emit_seq): Handle the null return value.
9511 Don't emit barriers after the final instruction in the sequence.
9512 * gentarget-def.c (main): Don't emit barriers after the instruction.
9514 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9516 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
9519 2015-06-26 Richard Biener <rguenther@suse.de>
9521 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
9523 2015-06-26 Richard Biener <rguenther@suse.de>
9525 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
9526 irrespective on whether the inner operation has a single use
9527 of both off are constant.
9529 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
9530 Segher Boessenkool <segher@kernel.crashing.org>
9533 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
9534 before doing PUT_MODE or PUT_CODE on operands to avoid
9535 in-place RTX modification.
9537 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
9539 * gentarget-def.c (def_target_insn): Cast return of strtol to
9542 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
9544 * gimple.h (gimple_call_set_fn): Move inline function.
9545 * gimple.c (gimple_call_set_fn): Relocate here.
9547 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
9551 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
9552 the replacement insn will work.
9554 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
9556 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
9559 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
9561 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
9562 * cgraph.h: Include ipa-ref.h and plugin-api.h.
9563 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
9564 (symtab_node::address_can_be_compared_p): Move function.
9565 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
9567 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
9568 * auto-profile.c: Likewise.
9569 * bb-reorder.c: Likewise.
9570 * builtins.c: Likewise.
9571 * calls.c: Likewise.
9572 * cfgexpand.c: Likewise.
9573 * cgraphbuild.c: Likewise.
9574 * cgraphclones.c: Likewise.
9575 * cgraphunit.c: Likewise.
9576 * combine.c: Likewise.
9577 * coverage.c: Likewise.
9578 * data-streamer-in.c: Likewise.
9579 * data-streamer-out.c: Likewise.
9580 * data-streamer.c: Likewise.
9581 * dbxout.c: Likewise.
9582 * dwarf2out.c: Likewise.
9583 * except.c: Likewise.
9585 * final.c: Likewise.
9586 * fold-const.c: Likewise.
9587 * ggc-page.c: Likewise.
9588 * gimple-fold.c: Likewise.
9589 * gimple-iterator.c: Likewise.
9590 * gimple-pretty-print.c: Likewise.
9591 * gimple-streamer-in.c: Likewise.
9592 * gimple-streamer-out.c: Likewise.
9593 * gimple.c: Likewise.
9594 * gimplify.c: Likewise.
9595 * ipa-chkp.c: Likewise.
9596 * ipa-comdats.c: Likewise.
9597 * ipa-cp.c: Likewise.
9598 * ipa-devirt.c: Likewise.
9599 * ipa-icf-gimple.c: Likewise.
9600 * ipa-icf.c: Likewise.
9601 * ipa-inline-analysis.c: Likewise.
9602 * ipa-inline-transform.c: Likewise.
9603 * ipa-inline.c: Likewise.
9604 * ipa-polymorphic-call.c: Likewise.
9605 * ipa-profile.c: Likewise.
9606 * ipa-prop.c: Likewise.
9607 * ipa-pure-const.c: Likewise.
9608 * ipa-ref.c: Likewise.
9609 * ipa-reference.c: Likewise.
9610 * ipa-split.c: Likewise.
9611 * ipa-utils.c: Likewise.
9612 * ipa-visibility.c: Likewise.
9614 * langhooks.c: Likewise.
9615 * lto-cgraph.c: Likewise.
9616 * lto-compress.c: Likewise.
9617 * lto-opts.c: Likewise.
9618 * lto-section-in.c: Likewise.
9619 * lto-section-out.c: Likewise.
9620 * lto-streamer-in.c: Likewise.
9621 * lto-streamer-out.c: Likewise.
9622 * lto-streamer.c: Likewise.
9623 * omp-low.c: Likewise.
9624 * opts-global.c: Likewise.
9625 * passes.c: Likewise.
9626 * predict.c: Likewise.
9627 * print-tree.c: Likewise.
9628 * profile.c: Likewise.
9630 * sanopt.c: Likewise.
9631 * stor-layout.c: Likewise.
9632 * symtab.c: Likewise.
9633 * toplev.c: Likewise.
9634 * trans-mem.c: Likewise.
9635 * tree-cfg.c: Likewise.
9636 * tree-chkp.c: Likewise.
9637 * tree-eh.c: Likewise.
9638 * tree-emutls.c: Likewise.
9639 * tree-inline.c: Likewise.
9640 * tree-nested.c: Likewise.
9641 * tree-parloops.c: Likewise.
9642 * tree-pretty-print.c: Likewise.
9643 * tree-profile.c: Likewise.
9644 * tree-sra.c: Likewise.
9645 * tree-ssa-alias.c: Likewise.
9646 * tree-ssa-live.c: Likewise.
9647 * tree-ssa-loop-ivcanon.c: Likewise.
9648 * tree-ssa-loop-ivopts.c: Likewise.
9649 * tree-ssa-pre.c: Likewise.
9650 * tree-ssa-sccvn.c: Likewise.
9651 * tree-ssa-strlen.c: Likewise.
9652 * tree-ssa-structalias.c: Likewise.
9653 * tree-streamer-in.c: Likewise.
9654 * tree-streamer-out.c: Likewise.
9655 * tree-streamer.c: Likewise.
9656 * tree-switch-conversion.c: Likewise.
9657 * tree-tailcall.c: Likewise.
9658 * tree-vect-data-refs.c: Likewise.
9659 * tree-vect-stmts.c: Likewise.
9660 * tree-vectorizer.c: Likewise.
9663 * ubsan.c: Likewise.
9664 * value-prof.c: Likewise.
9665 * varasm.c: Likewise.
9666 * varpool.c: Likewise.
9667 * config/arm/arm.c: Likewise.
9668 * config/bfin/bfin.c: Likewise.
9669 * config/c6x/c6x.c: Likewise.
9670 * config/cris/cris.c: Likewise.
9671 * config/darwin-c.c: Likewise.
9672 * config/darwin.c: Likewise.
9673 * config/i386/i386.c: Likewise.
9674 * config/i386/winnt.c: Likewise.
9675 * config/microblaze/microblaze.c: Likewise.
9676 * config/mips/mips.c: Likewise.
9677 * config/rs6000/rs6000.c: Likewise.
9678 * config/rx/rx.c: Likewise.
9679 * config/s390/s390.c: Likewise.
9680 * config/tilegx/mul-tables.c: Likewise.
9682 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9684 * config/aarch64/aarch64.c, config/alpha/alpha.c,
9685 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
9686 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
9687 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
9688 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
9689 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9690 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
9691 config/microblaze/microblaze.c, config/mips/mips.c,
9692 config/mmix/mmix.c, config/mn10300/mn10300.c,
9693 config/moxie/moxie.c, config/msp430/msp430.c,
9694 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
9695 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
9696 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
9697 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
9698 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9699 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9700 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
9701 target-def.h include.
9702 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
9704 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9706 * Makefile.in (TARGET_DEF): Add target-insns.def.
9707 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
9708 (build/gentarget-def.o): New rule.
9709 (genprogrtl): Add target-def.
9710 * target-insns.def, gentarget-def.c: New files.
9711 * target.def: Add targetm.have_* and targetm.gen_* hooks,
9712 based on the contents of target-insns.def.
9713 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
9714 (HAVE_return, gen_return): Delete.
9715 * target-def.h: Include insn-target-def.h.
9716 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
9717 instead of direct calls. Rely on them to do the appropriate assertions.
9718 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
9719 (convert_jumps_to_returns): Use targetm interface instead of
9721 (thread_prologue_and_epilogue_insns): Likewise.
9722 * reorg.c (find_end_label, dbr_schedule): Likewise.
9723 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
9724 * shrink-wrap.c (convert_to_simple_return): Likewise.
9725 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
9727 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9729 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
9730 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9731 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
9732 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
9733 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
9734 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9735 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
9736 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
9737 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
9738 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
9739 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
9740 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
9741 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
9742 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9743 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9744 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
9747 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9749 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
9750 (unbounded_int_hashmap_traits::key_type): Likewise.
9751 * hash-map.h (hash_map): Get the key type from the traits.
9752 * hash-traits.h (default_hash_traits): By default, inherit from the
9754 * alias.c (alias_set_traits): Delete.
9755 (alias_set_entry_d::children): Use alias_set_hash as the first
9757 (record_alias_subset): Update accordingly.
9758 * except.c (tree_hash_traits): Delete.
9759 (type_to_runtime_map): Use tree_hash as the first template parameter.
9760 (init_eh): Update accordingly.
9761 * genmatch.c (capture_id_map_hasher): Delete.
9762 (cid_map_t): Use nofree_string_hash as first template parameter.
9763 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
9764 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
9765 Use symbol_compare_hash as the first template parameter in
9767 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
9768 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
9770 * passes.c (pass_registry_hasher): Delete.
9771 (name_to_pass_map): Use nofree_string_hash as the first template
9773 (register_pass_name): Update accordingly.
9774 * sanopt.c (sanopt_tree_map_traits): Delete.
9775 (sanopt_tree_triplet_map_traits): Delete.
9776 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
9778 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
9779 the first template parameter.
9780 * sese.c (rename_map_hasher): Delete.
9781 (rename_map_type): Use tree_ssa_name_hash as the first template
9783 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
9784 (function_summary::m_map): Use map_hash as the first template
9786 (function_summary::release): Update accordingly.
9787 * tree-if-conv.c (phi_args_hash_traits): Delete.
9788 (predicate_scalar_phi): Use tree_operand_hash as the first template
9789 parameter to phi_arg_map.
9790 * tree-inline.h (dependence_hasher): Delete.
9791 (copy_body_data::dependence_map): Use dependence_hash as the first
9793 * tree-inline.c (remap_dependence_clique): Update accordingly.
9794 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
9795 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
9797 (addr_stridxptr): Update accordingly.
9798 * value-prof.c (profile_id_traits): Delete.
9799 (cgraph_node_map): Use profile_id_hash as the first template
9801 (init_node_map): Update accordingly.
9802 * config/alpha/alpha.c (string_traits): Delete.
9803 (machine_function::links): Use nofree_string_hash as the first
9805 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
9806 * config/m32c/m32c.c (pragma_traits): Delete.
9807 (pragma_htab): Use nofree_string_hash as the first template parameter.
9808 (m32c_note_pragma_address): Update accordingly.
9809 * config/mep/mep.c (pragma_traits): Delete.
9810 (pragma_htab): Use nofree_string_hash as the first template parameter.
9811 (mep_note_pragma_flag): Update accordingly.
9812 * config/mips/mips.c (mips16_flip_traits): Delete.
9813 (mflip_mips16_htab): Use nofree_string_hash as the first template
9815 (mflip_mips16_use_mips16_p): Update accordingly.
9816 (local_alias_traits): Delete.
9817 (mips16_local_aliases): Use nofree_string_hash as the first template
9819 (mips16_local_alias): Update accordingly.
9821 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9823 * hash-map-traits.h (default_hashmap_traits): Delete.
9825 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9827 * hash-map-traits.h (unbounded_hashmap_traits): New class.
9828 (unbounded_int_hashmap_traits): Likewise.
9829 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
9831 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9833 * ipa-icf.h (symbol_compare_hash): New class.
9834 (symbol_compare_hashmap_traits): Use it.
9835 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
9836 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
9837 (mem_alloc_description::reverse_mem_map_t): Remove redundant
9838 default_hashmap_traits.
9839 * sanopt.c (sanopt_tree_triplet_hash): New class.
9840 (sanopt_tree_triplet_map_traits): Use it.
9842 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9844 * gengtype-parse.c (require_template_declaration): Allow '+' in
9845 template parameters. Consolidate cases.
9846 * hash-traits.h (int_hash): New class.
9847 * alias.c (alias_set_hash): New structure.
9848 (alias_set_traits): Use it.
9849 * symbol-summary.h (function_summary::map_hash): New class.
9850 (function_summary::summary_hashmap_traits): Use it.
9851 * tree-inline.h (dependence_hash): New class.
9852 (dependence_hasher): Use it.
9853 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
9854 * value-prof.c (profile_id_hash): New class.
9855 (profile_id_traits): Use it.
9857 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9859 * config/mips/mips.c (mips16_flip_traits): Use it.
9860 (local_alias_traits, mips16_local_aliases): Convert from a map of
9861 rtxes to a map of symbol names.
9862 (mips16_local_alias): Update accordingly.
9864 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9866 * hash-traits.h (string_hash, nofree_string_hash): New classes.
9867 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
9868 * passes.c (pass_registry_hasher): Likewise.
9869 * config/alpha/alpha.c (string_traits): Likewise.
9870 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
9871 * config/m32c/m32c.c (pragma_traits): Likewise.
9872 * config/mep/mep.c (pragma_traits): Likewise.
9874 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9876 * tree-hash-traits.h (tree_hash): New class.
9877 * except.c: Include tree-hash-traits.h.
9878 (tree_hash_traits): Use tree_hash.
9880 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9882 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
9883 * sese.c: Include tree-hash-traits.h.
9884 (rename_map_hasher): Use tree_ssa_name_hasher.
9886 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9888 * tree-hash-traits.h (tree_decl_hash): New class.
9889 * tree-ssa-strlen.c: Include tree-hash-traits.h.
9890 (stridxlist_hash_traits): Use tree_decl_hash.
9892 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9894 * tree-hash-traits.h: New file.
9895 (tree_operand_hash): New class.
9896 * sanopt.c: Include tree-hash-traits.h.
9897 (sanopt_tree_map_traits): Use tree_operand_hash.
9898 * tree-if-conv.c: Include tree-hash-traits.h.
9899 (phi_args_hash_traits): Use tree_operand_hash.
9900 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
9901 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
9903 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9905 * hash-map-traits.h: Include hash-traits.h.
9906 (simple_hashmap_traits): New class.
9907 * mem-stats.h (hash_map): Change the default traits to
9908 simple_hashmap_traits<default_hash_traits<Key> >.
9910 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9912 * hash-table.h: Update comments.
9914 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9916 * hash-traits.h (default_hash_traits): New structure.
9917 * hash-set.h (default_hashset_traits): Delete.
9918 (hash_set): Use default_hash_traits<Key> instead of
9919 default_hashset_traits. Delete hash_entry type and use Key directly.
9920 * ipa-devirt.c (pair_traits): Delete.
9921 (default_hash_traits <type_pair>): Override.
9922 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
9923 (odr_types_equivalent_p, add_type_duplicate): Likewise.
9925 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9927 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
9929 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9931 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
9932 (has_is_empty, is_empty_helper): Delete.
9933 (has_mark_deleted, mark_deleted_helper): Delete.
9934 (has_mark_empty, mark_empty_helper): Delete.
9935 (hash_table::is_deleted): Call the Descriptor unconditionally.
9936 (hash_table::is_empty): Likewise.
9937 (hash_table::mark_deleted): Likewise.
9938 (hash_table::mark_empty): Likewise.
9940 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9942 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
9943 redundant typedefs and members.
9944 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
9946 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
9947 * ipa-devirt.c (odr_name_hasher): Likewise.
9948 (polymorphic_call_target_hasher): Likewise.
9949 * ira-costs.c (cost_classes_hasher): Likewise.
9950 * statistics.c (stats_counter_hasher): Likewise.
9951 * trans-mem.c (log_entry_hasher): Likewise.
9952 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
9953 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
9954 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
9955 * var-tracking.c (variable_hasher): Likewise.
9956 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
9957 Remove redundant typedefs and members.
9959 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9961 * hash-traits.h (ggc_cache_hasher): Rename to...
9962 (ggc_cache_remove): ...this and remove typedefs.
9963 (ggc_cache_ptr_hash): New class.
9964 * hash-table.h: Update commentary.
9965 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
9966 rather than ggc_cache_hasher.
9967 (const_wide_int_hasher, reg_attr_hasher): Likewise.
9968 (const_double_hasher, const_fixed_hasher): Likewise.
9969 * function.c (insn_cache_hasher): Likewise.
9970 * trans-mem.c (tm_wrapper_hasher): Likewise.
9971 * tree.h (tree_decl_map_cache_hasher): Likewise.
9972 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
9973 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
9974 * ubsan.c (tree_type_map_cache_hasher): Likewise.
9975 * varasm.c (tm_clone_hasher): Likewise.
9976 * config/i386/i386.c (dllimport_hasher): Likewise.
9977 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
9978 (tree_hasher): Likewise.
9980 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9982 * hash-traits.h (ggc_hasher): Rename to...
9983 (ggc_remover): ...this and remove typedefs.
9984 (ggc_cache_hasher): Update accordingly. Add typedefs.
9985 (ggc_ptr_hash): New class.
9986 * hash-table.h: Update comment.
9987 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
9989 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
9990 (tree_descriptor_hasher): Likewise.
9991 * cgraph.c (function_version_hasher): Likewise.
9992 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
9993 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
9994 (dw_loc_list_hasher, addr_hasher): Likewise.
9995 * function.h (used_type_hasher): Likewise.
9996 * function.c (temp_address_hasher): Likewise.
9997 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
9998 * libfuncs.h (libfunc_hasher): Likewise.
9999 * lto-streamer.h (decl_state_hasher): Likewise.
10000 * optabs.c (libfunc_decl_hasher): Likewise.
10001 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
10002 * varasm.c (section_hasher, object_block_hasher): Likewise.
10003 (const_rtx_desc_hasher): Likewise.
10004 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
10005 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
10007 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10009 * hash-traits.h (free_ptr_hash): New class.
10010 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
10011 rather than typed_free_remove. Remove redudant typedefs.
10012 (external_ref_hasher): Likewise.
10013 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
10014 (ehspec_hasher): Likewise.
10015 * ggc-common.c (saving_hasher): Likewise.
10016 * gimplify.c (gimplify_hasher): Likewise.
10017 * haifa-sched.c (delay_i2_hasher): Likewise.
10018 * loop-invariant.c (invariant_expr_hasher): Likewise.
10019 * loop-iv.c (biv_entry_hasher): Likewise.
10020 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
10021 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
10022 * tree-cfg.c (locus_discrim_hasher): Likewise.
10023 * tree-eh.c (finally_tree_hasher): Likewise.
10024 * tree-into-ssa.c (var_info_hasher): Likewise.
10025 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
10026 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
10027 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
10028 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
10029 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
10030 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
10031 (shared_bitmap_hasher): Likewise.
10032 * tree-ssa-threadupdate.c (redirection_data): Likewise.
10033 * tree-vectorizer.h (peel_info_hasher): Likewise.
10034 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
10035 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
10037 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10039 * hash-table.h: Update comments.
10040 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
10041 (nofree_ptr_hash): New class.
10042 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
10043 than typed_noop_remove. Remove redudant typedefs.
10044 * attribs.c (attribute_hasher): Likewise.
10045 * cfg.c (bb_copy_hasher): Likewise.
10046 * cselib.c (cselib_hasher): Likewise.
10047 * dse.c (invariant_group_base_hasher): Likewise.
10048 * dwarf2cfi.c (trace_info_hasher): Likewise.
10049 * dwarf2out.c (macinfo_entry_hasher): Likewise.
10050 (comdat_type_hasher, loc_list_hasher): Likewise.
10051 * gcse.c (pre_ldst_expr_hasher): Likewise.
10052 * genmatch.c (id_base): Likewise.
10053 * genrecog.c (test_pattern_hasher): Likewise.
10054 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
10055 * haifa-sched.c (delay_i1_hasher): Likewise.
10056 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
10057 * ipa-icf.h (congruence_class_group_hash): Likewise.
10058 * ipa-profile.c (histogram_hash): Likewise.
10059 * ira-color.c (allocno_hard_regs_hasher): Likewise.
10060 * lto-streamer.h (string_slot_hasher): Likewise.
10061 * lto-streamer.c (tree_entry_hasher): Likewise.
10062 * plugin.c (event_hasher): Likewise.
10063 * postreload-gcse.c (expr_hasher): Likewise.
10064 * store-motion.c (st_expr_hasher): Likewise.
10065 * tree-sra.c (uid_decl_hasher): Likewise.
10066 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
10067 (ssa_name_var_hash): Likewise.
10068 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
10069 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
10070 * tree-ssa-pre.c (pre_expr_d): Likewise.
10071 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
10072 * vtable-verify.h (registration_hasher): Likewise.
10073 * vtable-verify.c (vtbl_map_hasher): Likewise.
10074 * config/arm/arm.c (libcall_hasher): Likewise.
10075 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
10076 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
10077 * config/sol2.c (comdat_entry_hasher): Likewise.
10078 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
10079 (print_fold_checksum, fold_checksum_tree): Likewise.
10080 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
10081 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
10082 (fold_build_call_array_loc): Likewise.
10083 * tree-ssa-ccp.c (gimple_htab): Likewise.
10084 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
10085 rather than pointer_type.
10087 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10089 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
10090 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
10092 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10094 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
10095 (ggc_hasher::ggc_mx): Likewise.
10096 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
10097 that duplicate ggc_hasher ones.
10099 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10101 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
10102 (gt_cleare_cache): Check here for deleted and empty entries.
10103 Replace handle_cache_entry with a call to keep_cache_entry.
10104 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
10105 (ggc_cache_hasher::keep_cache_entry): New function.
10106 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
10107 (tm_wrapper_hasher::keep_cache_entry): New function.
10108 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
10109 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
10110 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
10111 (type_cache_hasher::keep_cache_entry): New function.
10112 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
10113 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
10114 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
10115 (tree_type_map_cache_hasher::keep_cache_entry): New function.
10116 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
10117 (tm_clone_hasher::keep_cache_entry): New function.
10118 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
10119 (dllimport_hasher::keep_cache_entry): New function.
10121 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10123 * hash-table.h: Include hash-traits.h.
10124 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
10125 (ggc_cache_hasher): Move to...
10126 * hash-traits.h: ...this new file.
10128 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10130 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
10131 struct cl_optimization.
10132 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
10133 * tree.c (make_node_stat): Allocate cl_optimization struct.
10134 (copy_node_stat): Allocate and copy cl_optimization struct.
10136 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10138 * function.h (struct incoming_args): Move struct.
10139 (pass_by_reference, reference_callee_copied): Remove prototypes.
10140 * emit-rtl.h (struct incoming_args): Relocate struct here.
10141 * calls.h (pass_by_reference, reference_callee_copied): Relocate
10143 * function.c (pass_by_reference, reference_callee_copied): Move.
10144 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
10145 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
10146 * ipa-chkp.c: Include calls.h.
10148 2015-06-25 Andrew Macleod <amacleod@redhat.com>
10150 * alias.h (alias_set_type): Move typedef.
10151 * coretypes.h (alias_set_type): Relocate typedef here.
10152 * rtl.h: Don't include alias.h.
10154 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
10156 * cgraph.h (cgraph_rtl_info): Move to rtl.h
10157 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
10159 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
10160 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
10162 * calls.c: Include hard-reg-set.h before rtl.h.
10165 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10166 Vladimir Makarov <vmakarov@redhat.com>
10168 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
10171 2015-06-25 Richard Biener <rguenther@suse.de>
10173 * fold-const.c (fold_binary_loc): Move simplification of
10174 (X <<>> C1) & C2 ...
10175 * match.pd: ... here.
10177 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
10179 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
10181 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10183 * match.pd: Add patterns for vec_conds between 1 and 0.
10185 2015-06-25 Richard Biener <rguenther@suse.de>
10187 * tree-vect-stmts.c (vectorizable_conversion): Do not set
10188 STMT_VINFO_VEC_STMT for SLP.
10189 (vectorizable_store): Likewise.
10190 (vectorizable_load): Likewise.
10191 (vect_transform_stmt): Catch SLP vectorization clobbering
10192 STMT_VINFO_VEC_STMT.
10194 2015-06-25 Richard Biener <rguenther@suse.de>
10196 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
10198 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
10199 cleanup resulting dead code and parameters.
10200 (vect_transform_slp_perm_load): Adjust.
10202 2015-06-25 Nick Clifton <nickc@redhat.com>
10204 * config/bfin/bfin.c (bfin_expand_prologue): Set
10205 current_function_static_stack_size if flag_stack_usage_info is set.
10206 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
10207 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
10208 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10209 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
10211 2015-06-25 Tom de Vries <tom@codesourcery.com>
10213 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
10214 comment that the generated IV is unsigned.
10216 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10219 * config/arm/arm.c (arm_dbx_register_number): Return
10220 DWARF_FRAME_REGISTERS by default.
10222 2015-06-25 Tom de Vries <tom@codesourcery.com>
10224 * dominance.c (calculate_dominance_info): Fix verify_dominators call
10225 argument. Call verify_dominator when reusing dominator info.
10227 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
10230 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
10231 an additional element of the unspec vector. Modify indices
10233 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
10234 * config/sh/sh.c (prepare_move_operands): Pass incremented
10235 const_int to gen_GOTaddr2picreg.
10236 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
10238 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
10240 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
10241 Condition on TARGET_FLOAT.
10243 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
10245 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
10248 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
10250 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
10252 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
10253 aarch64_err_no_fpadvsimd.
10255 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
10256 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
10257 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
10258 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
10259 Turn error into assert, test TARGET_FLOAT.
10260 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
10263 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
10266 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
10268 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
10270 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
10272 2015-06-24 Renlin Li <renlin.li@arm.com>
10274 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
10275 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
10277 2015-06-24 Richard Biener <rguenther@suse.de>
10279 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
10281 (lower_opt_convert): Support lowering of conditional view_convert.
10282 (parser::parse_operation): Likewise.
10283 (parser::parse_for): Likewise.
10285 2015-06-24 Renlin Li <renlin.li@arm.com>
10287 * varasm.c (emit_local): Use unsigned int for align variable.
10289 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10292 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
10293 for negative numbers.
10295 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10297 PR rtl-optimization/66306
10298 * reload.c (find_reloads): Swap the match_dup info for
10299 commutative operands.
10301 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10303 * config/s390/vx-builtins.md
10304 ("vec_scatter_element<mode>_<non_vec_int>")
10305 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
10306 attribute with bhfgq.
10308 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10310 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
10312 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10314 * config/s390/s390-builtin-types.def: Add flag to indicate the
10315 options under which the function type is needed.
10316 * config/s390/s390-builtins.def: Add flag to indicate the options
10317 under which the builtin is enabled.
10318 * config/s390/s390-builtins.h: Add flags parameter to macro
10320 (bflags_for_builtin): New function.
10321 (flags_for_builtin): Renamed to ...
10322 (opflags_for_builtin): ... this.
10323 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
10324 flags_for_builtin to bflags_for_builtin and
10325 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
10326 * config/s390/s390.c: Add initialization of bflags_builtin and
10327 opflags_builtin arrays.
10328 Remove code for flags_builtin.
10329 (s390_init_builtins): Only create builtin function types if one of
10330 their flags is active.
10331 Only create builtins if all of their flags are active.
10332 (s390_expand_builtin): Rename flags_for_builtin to
10333 opflags_for_builtin.
10335 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10337 * config/s390/vecintrin.h: Remove internal builtins.
10339 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10341 * config/s390/s390.c (s390_secondary_reload): Fix check for
10342 GENERAL_REGS register class.
10344 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10346 * config/s390/s390.c (s390_support_vector_misalignment): Call
10347 default implementation for !TARGET_VX.
10349 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10351 * config/s390/s390.c (s390_legitimate_constant_p): Add
10354 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10356 * config/s390/s390.c (s390_vector_abi): New variable definition.
10357 (s390_check_type_for_vector_abi): New function.
10358 (TARGET_ASM_FILE_END): New macro definition.
10359 (s390_asm_file_end): New function.
10360 (s390_function_arg): Call s390_check_type_for_vector_abi.
10361 (s390_gimplify_va_arg): Likewise.
10362 * configure: Regenerate.
10363 * configure.ac: Check for .gnu_attribute Binutils feature.
10365 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
10368 * config/bfin/bfin.c (hwloop_optimize): Initialize
10369 JUMP_LABEL for newly created jump.
10371 2015-06-23 Tristan Gingold <gingold@adacore.com>
10373 * collect-utils.c (collect_wait): Unlink the response file here
10375 (do_wait): ...here.
10376 (utils_cleanup): ...and here.
10378 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
10380 * df-scan.c: Don't include target-def.h.
10381 * targhooks.c: Likewise.
10382 * config/arm/arm-c.c: Likewise.
10383 * config/i386/i386-c.c: Likewise.
10384 * config/nds32/nds32-cost.c: Likewise.
10385 * config/nds32/nds32-fp-as-gp.c: Likewise.
10386 * config/nds32/nds32-intrinsic.c: Likewise.
10387 * config/nds32/nds32-isr.c: Likewise.
10388 * config/nds32/nds32-md-auxiliary.c: Likewise.
10389 * config/nds32/nds32-memory-manipulation.c: Likewise.
10390 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10391 * config/nds32/nds32-predicates.c: Likewise.
10393 2015-06-23 Richard Biener <rguenther@suse.de>
10395 PR tree-optimization/66636
10396 * tree-vect-stmts.c (vectorizable_store): Properly compute the
10397 def type for further defs for strided stores.
10399 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
10401 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
10402 conditional selects.
10403 (setcc_int<mode>, setcc_float<mode>): Reformat.
10405 2015-06-23 Marek Polacek <polacek@redhat.com>
10407 * match.pd ((x + y) - (x | y) -> x & y,
10408 (x + y) - (x & y) -> x | y): New patterns.
10410 2015-06-23 Ludovic Courtès <ludo@gnu.org>
10413 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
10414 '-dynamic-linker' within %{!shared: ...}.
10416 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
10419 * config/i386/predicates.md (addsub_vm_operator): New predicate.
10420 (addsub_vs_operator): Ditto.
10421 (addsub_vs_parallel): Ditto.
10422 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
10423 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
10424 Put minus RTX before plus and adjust vec_merge selector.
10425 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
10426 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
10427 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
10428 (addsub vec_merge splitters): New combiner splitters.
10429 (addsub vec_select/vec_concat splitters): Ditto.
10431 2015-06-23 Bin Cheng <bin.cheng@arm.com>
10433 PR tree-optimization/66449
10434 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
10435 POINTER_PLUS_EXPR for pointers.
10437 2015-06-23 Alan Modra <amodra@gmail.com>
10439 * rtlanal.c (commutative_operand_precedence): Correct comments.
10440 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
10441 declaration. Return an int. Distinguish REG,REG return from
10443 (struct simplify_plus_minus_op_data): Make local to function.
10444 (simplify_plus_minus): Don't set canonicalized if merely sorting
10445 registers. Avoid packing ops if nothing changes. White space fixes.
10447 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
10449 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
10450 -fdump-ada-spec is passed but not if -fsyntax-only is.
10452 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
10455 * lra-lives.c (process_bb_lives): Check insn copying the same
10456 reload pseudo and don't create a copy for it.
10458 2015-06-22 Tom de Vries <tom@codesourcery.com>
10460 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
10463 2015-06-22 Tom de Vries <tom@codesourcery.com>
10465 * builtins.def (DEF_GOMP_BUILTIN): Test
10466 'flag_tree_parallelize_loops > 1' instead of
10467 'flag_tree_parallelize_loops'. Test flag_cilkplus.
10469 2015-06-22 Tom de Vries <tom@codesourcery.com>
10471 * dominance.c (calculate_dominance_info): Verify dominators if
10474 2015-06-22 Marek Polacek <polacek@redhat.com>
10476 * match.pd ((x ^ y) ^ (x | y) -> x & y,
10477 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
10478 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
10479 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
10481 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
10484 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
10485 cost of embedded comparison.
10487 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10490 * config/rs6000/predicates.md (altivec_register_operand): Permit
10491 virtual stack registers.
10492 (vsx_register_operand): Likewise.
10493 (vfloat_operand): Likewise.
10494 (vint_operand): Likewise.
10495 (vlogical_operand): Likewise.
10497 2015-06-22 Richard Biener <rguenther@suse.de>
10499 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
10500 and single_scalar_iteration_cost members.
10501 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
10502 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
10503 (vect_get_single_scalar_iteration_cost): Remove.
10504 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
10505 Use LOOP_VINFO_SCALAR_ITERATION_COST.
10506 * tree-vect-loop.c (destroy_loop_vec_info): Free
10508 (vect_get_single_scalar_iteration_cost): Compute result into
10509 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
10510 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
10511 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
10512 (vect_estimate_min_profitable_iters): Use them.
10514 2015-06-22 Christian Bruel <christian.bruel@st.com>
10517 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
10518 (TARGET_INSERT_ATTRIBUTES): Define.
10519 (thumb_flipper): New var.
10520 * config/arm/arm.opt (-mflip-thumb): New switch.
10522 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
10523 Martin Liska <mliska@suse.cz>
10526 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
10527 construction of arg_types.
10528 (sem_function::sem_function): Likewise.
10529 (sem_function::~sem_function): Remove destruction of arg_types.
10530 (sem_function::compatible_parm_types_p): New function.
10531 (sem_function::equals_wpa): Reorg matching of return values
10532 and parameter types.
10533 (sem_function::equals_private): Reorg mathcing of argument types.
10534 (sem_function::parse_tree_args): Remove.
10535 * ipa-icf.h (init_wpa): Do not call it.
10536 (parse_tree_args): Remove.
10537 (compatible_parm_types_p): Declare.
10538 (result_type): Remove.
10539 (arg_types): Remove.
10541 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
10544 * ipa-polymorphic-call.c
10545 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
10546 initializing alias oracle; fix formating; set base_alias_set if it
10549 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
10551 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
10552 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
10553 (find_inc): Likewise.
10554 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
10556 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
10557 * df-scan.c (df_swap_refs): Remove.
10558 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
10559 * dominance.c (link_roots): Use std::swap instead of manually swapping.
10560 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
10561 * fold-const.c (fold_relational_const): Likewise.
10562 * genattrtab.c (simplify_test_exp): Likewise.
10563 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
10564 gimple_simplify): Likewise.
10565 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
10566 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
10567 * ipa-devirt.c (add_type_duplicate): Likewise.
10568 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
10569 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
10570 * lra.c (lra_create_copy): Likewise.
10571 * lto-streamer-out.c (DFS::DFS): Likewise.
10572 * modulo-sched.c (get_sched_window): Likewise.
10573 * omega.c (omega_pretty_print_problem): Likewise.
10574 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
10575 * reload1.c (reloads_unique_chain_p): Likewise.
10576 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
10577 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
10579 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
10581 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
10582 predicate_mem_writes): Likewise.
10583 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
10584 * tree-predcom.c (combine_chains): Likewise.
10585 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
10586 refs_may_alias_p_1): Likewise.
10587 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
10588 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
10589 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
10590 number_of_iterations_cond): Likewise.
10591 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
10592 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
10593 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
10594 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
10595 * tree-vrp.c (extract_range_from_binary_expr_1,
10596 extract_range_from_unary_expr_1): Likewise.
10598 2015-06-20 Marek Polacek <polacek@redhat.com>
10600 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
10602 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
10605 * config/sh/sh.c (prepare_move_operands): Replace subreg
10606 index term with R0 for base and index addressing.
10608 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
10610 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
10612 (movsf_aarch64): Change condition from register_operand to
10613 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
10614 load1. Change type for alternative 7 to store1.
10615 (movdf_aarch64): Likewise.
10617 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
10619 * config/vax/vax.md: Adjust sign/zero extend patterns to
10620 handle SUBREGs in operands[1].
10622 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10624 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
10625 of manually swapping.
10626 (expand_vec_perm_interleave2): Likewise.
10628 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
10630 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
10631 reuse bounds created for abnormal ssa names.
10633 2015-06-19 Jakub Jelinek <jakub@redhat.com>
10635 * config/nvptx/nvptx.md (allocate_stack): Rename to...
10636 (allocate_stack_<mode>): ... this, and add :P on both
10637 match_operand and unspec.
10638 (allocate_stack): New expander.
10640 2015-06-19 Christian Bruel <christian.bruel@st.com>
10644 * config/arm/arm.c (arm_set_current_function): Handle
10645 explicit default options.
10647 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
10649 * config/i386/i386.md (*movsicc_noc_zext): New insn.
10650 (zero-extended cmove with mem peephole2): New pattern.
10651 (cmove with mem peephole2): Merge patterns.
10653 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
10655 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
10657 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
10659 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
10660 * config/mips/mips.md (*madd4<mode>): Ditto.
10661 (*nmadd3<mode>) Ditto.
10662 (*nmadd4<mode>_fastmath): Ditto.
10663 (*nmadd3<mode>_fastmath): Ditto.
10664 (*nmsub4<mode>): Ditto.
10665 (*nmsub3<mode>): Ditto.
10666 (*nmsub4<mode>_fastmath): Ditto.
10667 (*nmsub3<mode>_fastmath): Ditto.
10669 2015-06-18 Michael Matz <matz@suse.de>
10671 PR middle-end/66253
10672 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
10673 grouped strided stores.
10674 (vectorizable_load): Don't use the DR from first_stmt in
10675 the non-SLP grouped strided case.
10677 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
10680 * function.c (assign_bounds): Add arguments assign_regs,
10681 assign_special, assign_bt.
10682 (assign_parms): For vararg functions handle bounds in BT
10683 and special slots after incoming vararg bounds.
10685 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
10687 PR middle-end/66568
10688 * cfgexpand.c (expand_return): Handle missing bounds.
10689 (expand_gimple_stmt_1): Likewise.
10690 * tree-chkp.c (chkp_expand_zero_bounds): New.
10691 * tree-chkp.h (chkp_expand_zero_bounds): New.
10693 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
10695 PR middle-end/66567
10696 * ipa-chkp.c (chkp_maybe_create_clone): Require
10697 functions to be instrumentable.
10698 * tree-chkp.c (chkp_replace_function_pointer): Use
10699 chkp_instrumentable_p instead of attribute check.
10701 2015-06-18 Richard Biener <rguenther@suse.de>
10703 PR tree-optimization/66510
10704 * tree-vect-stmts.c (vectorizable_load): Properly compute the
10705 number of vector loads for SLP permuted loads.
10706 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
10707 check the stride for loop vectorization.
10708 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
10709 vectorization factor.
10710 (vect_analyze_group_access): If the group size is not a power
10711 of two require a epilogue loop.
10712 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
10713 compute and optimizing and alias test pruning after final
10714 vectorization factor computation.
10715 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
10717 (vect_transform_slp_perm_load): Properly compute the original
10718 number of vector load stmts.
10720 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
10722 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
10723 "unlikely character , in @var" warning.
10725 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
10727 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
10728 (ix86_function_arg_advance): Ditto.
10729 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
10731 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
10733 * function.h (struct rtl_data): Remove struct and accessor macros.
10734 * emit-rtl.h (struct rtl_data): Relocate to here.
10735 * Makefile.in (GTFILES): Add emit-rtl.h.
10736 * df-core.c: Include emit-rtl.h.
10737 * genattrtab.c: Likewise.
10738 * genconditions.c: Likewise.
10739 * genpreds.c: Likewise.
10740 * genrecog.c: Likewise.
10741 * regcprop.c: Likewise.
10742 * resource.c: Likewise.
10743 * sched-rgn.c: Likewise.
10744 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10745 * config/i386/winnt.c: Likewise.
10747 2015-06-17 Jakub Jelinek <jakub@redhat.com>
10749 PR middle-end/66429
10750 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
10751 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
10752 and has_force_vectorize_loops flags from cfun into
10754 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
10755 if simduid is non-NULL.
10756 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
10757 * passes.def (pass_simduid_cleanup): Add new pass after loop
10759 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
10760 indirection from htab argument's type.
10761 (shrink_simd_arrays): New function.
10762 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
10763 Don't call adjust_simduid_builtins if there are no loops.
10764 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
10765 (pass_simduid_cleanup::execute): New method.
10766 (make_pass_simduid_cleanup): New function.
10768 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
10770 * tree-core.h (tree_target_option): Make opts field a pointer to a
10771 cl_target_option instead of an instance of the struct.
10772 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
10774 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
10775 TARGET_OPTION_NODE.
10776 (copy_node_stat): Allocate and copy struct cl_target_option.
10778 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
10780 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
10781 Remove conditional exposure of prototypes.
10782 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
10783 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
10784 definitions in tree.h with functions.
10785 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
10787 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
10789 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
10791 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
10792 (*cmp<mode>_signed): ... this.
10793 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
10794 (*cmp<mode>_unsigned): ... this. Remove %b.
10796 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
10798 * coretypes.h: Include input.h and as-a.h.
10799 * rtl.h: Include input.h and as-a.h for generator files.
10800 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
10801 * vec.c: Don't include diagnostic-core.h.
10802 * alias.c: Do not include input.h, line-map.h or is-a.h.
10803 * asan.c: Likewise.
10804 * attribs.c: Likewise.
10805 * auto-inc-dec.c: Likewise.
10806 * auto-profile.c: Likewise.
10807 * bb-reorder.c: Likewise.
10808 * bt-load.c: Likewise.
10809 * builtins.c: Likewise.
10810 * caller-save.c: Likewise.
10811 * calls.c: Likewise.
10812 * ccmp.c: Likewise.
10814 * cfganal.c: Likewise.
10815 * cfgbuild.c: Likewise.
10816 * cfgcleanup.c: Likewise.
10817 * cfgexpand.c: Likewise.
10818 * cfghooks.c: Likewise.
10819 * cfgloop.c: Likewise.
10820 * cfgloop.h: Likewise.
10821 * cfgloopanal.c: Likewise.
10822 * cfgloopmanip.c: Likewise.
10823 * cfgrtl.c: Likewise.
10824 * cgraph.c: Likewise.
10825 * cgraphbuild.c: Likewise.
10826 * cgraphclones.c: Likewise.
10827 * cgraphunit.c: Likewise.
10828 * cilk-common.c: Likewise.
10829 * combine-stack-adj.c: Likewise.
10830 * combine.c: Likewise.
10831 * compare-elim.c: Likewise.
10832 * convert.c: Likewise.
10833 * coverage.c: Likewise.
10834 * cppbuiltin.c: Likewise.
10835 * cprop.c: Likewise.
10837 * cselib.c: Likewise.
10838 * data-streamer-in.c: Likewise.
10839 * data-streamer-out.c: Likewise.
10840 * data-streamer.c: Likewise.
10841 * dbxout.c: Likewise.
10844 * debug.c: Likewise.
10845 * df-core.c: Likewise.
10846 * df-problems.c: Likewise.
10847 * df-scan.c: Likewise.
10850 * diagnostic-core.h: Likewise.
10851 * diagnostic.c: Likewise.
10852 * dojump.c: Likewise.
10853 * dominance.c: Likewise.
10854 * domwalk.c: Likewise.
10855 * double-int.c: Likewise.
10857 * dumpfile.c: Likewise.
10858 * dumpfile.h: Likewise.
10859 * dwarf2asm.c: Likewise.
10860 * dwarf2cfi.c: Likewise.
10861 * dwarf2out.c: Likewise.
10862 * emit-rtl.c: Likewise.
10863 * et-forest.c: Likewise.
10864 * except.c: Likewise.
10865 * explow.c: Likewise.
10866 * expmed.c: Likewise.
10867 * expr.c: Likewise.
10868 * final.c: Likewise.
10869 * fixed-value.c: Likewise.
10870 * fold-const.c: Likewise.
10871 * function.c: Likewise.
10872 * fwprop.c: Likewise.
10873 * gcc-plugin.h: Likewise.
10874 * gcse.c: Likewise.
10875 * generic-match-head.c: Likewise.
10876 * ggc-page.c: Likewise.
10877 * gimple-builder.c: Likewise.
10878 * gimple-expr.c: Likewise.
10879 * gimple-fold.c: Likewise.
10880 * gimple-iterator.c: Likewise.
10881 * gimple-low.c: Likewise.
10882 * gimple-match-head.c: Likewise.
10883 * gimple-pretty-print.c: Likewise.
10884 * gimple-ssa-isolate-paths.c: Likewise.
10885 * gimple-ssa-strength-reduction.c: Likewise.
10886 * gimple-streamer-in.c: Likewise.
10887 * gimple-streamer-out.c: Likewise.
10888 * gimple-streamer.h: Likewise.
10889 * gimple-walk.c: Likewise.
10890 * gimple.c: Likewise.
10891 * gimplify-me.c: Likewise.
10892 * gimplify.c: Likewise.
10893 * godump.c: Likewise.
10894 * graph.c: Likewise.
10895 * graphite-blocking.c: Likewise.
10896 * graphite-dependences.c: Likewise.
10897 * graphite-interchange.c: Likewise.
10898 * graphite-isl-ast-to-gimple.c: Likewise.
10899 * graphite-optimize-isl.c: Likewise.
10900 * graphite-poly.c: Likewise.
10901 * graphite-scop-detection.c: Likewise.
10902 * graphite-sese-to-poly.c: Likewise.
10903 * graphite.c: Likewise.
10904 * haifa-sched.c: Likewise.
10905 * hw-doloop.c: Likewise.
10906 * ifcvt.c: Likewise.
10907 * init-regs.c: Likewise.
10908 * input.c: Likewise.
10909 * internal-fn.c: Likewise.
10910 * ipa-chkp.c: Likewise.
10911 * ipa-comdats.c: Likewise.
10912 * ipa-cp.c: Likewise.
10913 * ipa-devirt.c: Likewise.
10914 * ipa-icf-gimple.c: Likewise.
10915 * ipa-icf.c: Likewise.
10916 * ipa-inline-analysis.c: Likewise.
10917 * ipa-inline-transform.c: Likewise.
10918 * ipa-inline.c: Likewise.
10919 * ipa-polymorphic-call.c: Likewise.
10920 * ipa-profile.c: Likewise.
10921 * ipa-prop.c: Likewise.
10922 * ipa-pure-const.c: Likewise.
10923 * ipa-ref.c: Likewise.
10924 * ipa-reference.c: Likewise.
10925 * ipa-split.c: Likewise.
10926 * ipa-utils.c: Likewise.
10927 * ipa-visibility.c: Likewise.
10929 * ira-build.c: Likewise.
10930 * ira-color.c: Likewise.
10931 * ira-conflicts.c: Likewise.
10932 * ira-costs.c: Likewise.
10933 * ira-emit.c: Likewise.
10934 * ira-lives.c: Likewise.
10936 * jump.c: Likewise.
10937 * langhooks.c: Likewise.
10939 * loop-doloop.c: Likewise.
10940 * loop-init.c: Likewise.
10941 * loop-invariant.c: Likewise.
10942 * loop-iv.c: Likewise.
10943 * loop-unroll.c: Likewise.
10944 * lower-subreg.c: Likewise.
10945 * lra-assigns.c: Likewise.
10946 * lra-coalesce.c: Likewise.
10947 * lra-constraints.c: Likewise.
10948 * lra-eliminations.c: Likewise.
10949 * lra-lives.c: Likewise.
10950 * lra-remat.c: Likewise.
10951 * lra-spills.c: Likewise.
10953 * lto-cgraph.c: Likewise.
10954 * lto-compress.c: Likewise.
10955 * lto-opts.c: Likewise.
10956 * lto-section-in.c: Likewise.
10957 * lto-section-out.c: Likewise.
10958 * lto-streamer-in.c: Likewise.
10959 * lto-streamer-out.c: Likewise.
10960 * lto-streamer.c: Likewise.
10962 * mode-switching.c: Likewise.
10963 * modulo-sched.c: Likewise.
10964 * omega.c: Likewise.
10965 * omp-low.c: Likewise.
10966 * optabs.c: Likewise.
10967 * opts-global.c: Likewise.
10968 * opts.h: Likewise.
10969 * passes.c: Likewise.
10970 * plugin.c: Likewise.
10971 * postreload-gcse.c: Likewise.
10972 * postreload.c: Likewise.
10973 * predict.c: Likewise.
10974 * pretty-print.h: Likewise.
10975 * print-rtl.c: Likewise.
10976 * print-tree.c: Likewise.
10977 * profile.c: Likewise.
10978 * real.c: Likewise.
10979 * realmpfr.c: Likewise.
10980 * recog.c: Likewise.
10982 * reg-stack.c: Likewise.
10983 * regcprop.c: Likewise.
10984 * reginfo.c: Likewise.
10985 * regrename.c: Likewise.
10986 * regstat.c: Likewise.
10987 * reload.c: Likewise.
10988 * reload1.c: Likewise.
10989 * reorg.c: Likewise.
10990 * resource.c: Likewise.
10991 * rtl-chkp.c: Likewise.
10992 * rtl-error.c: Likewise.
10993 * rtlanal.c: Likewise.
10994 * rtlhooks.c: Likewise.
10995 * sanopt.c: Likewise.
10996 * sched-deps.c: Likewise.
10997 * sched-ebb.c: Likewise.
10998 * sched-rgn.c: Likewise.
10999 * sched-vis.c: Likewise.
11000 * sdbout.c: Likewise.
11001 * sel-sched-dump.c: Likewise.
11002 * sel-sched-ir.c: Likewise.
11003 * sel-sched.c: Likewise.
11004 * sese.c: Likewise.
11005 * shrink-wrap.c: Likewise.
11006 * simplify-rtx.c: Likewise.
11007 * stack-ptr-mod.c: Likewise.
11008 * statistics.c: Likewise.
11009 * stmt.c: Likewise.
11010 * stor-layout.c: Likewise.
11011 * store-motion.c: Likewise.
11012 * streamer-hooks.c: Likewise.
11013 * stringpool.c: Likewise.
11014 * symtab.c: Likewise.
11015 * target-globals.c: Likewise.
11016 * targhooks.c: Likewise.
11017 * toplev.c: Likewise.
11018 * tracer.c: Likewise.
11019 * trans-mem.c: Likewise.
11020 * tree-affine.c: Likewise.
11021 * tree-browser.c: Likewise.
11022 * tree-call-cdce.c: Likewise.
11023 * tree-cfg.c: Likewise.
11024 * tree-cfgcleanup.c: Likewise.
11025 * tree-chkp-opt.c: Likewise.
11026 * tree-chkp.c: Likewise.
11027 * tree-chrec.c: Likewise.
11028 * tree-complex.c: Likewise.
11029 * tree-data-ref.c: Likewise.
11030 * tree-dfa.c: Likewise.
11031 * tree-diagnostic.c: Likewise.
11032 * tree-dump.c: Likewise.
11033 * tree-eh.c: Likewise.
11034 * tree-emutls.c: Likewise.
11035 * tree-if-conv.c: Likewise.
11036 * tree-inline.c: Likewise.
11037 * tree-into-ssa.c: Likewise.
11038 * tree-iterator.c: Likewise.
11039 * tree-loop-distribution.c: Likewise.
11040 * tree-nested.c: Likewise.
11041 * tree-nrv.c: Likewise.
11042 * tree-object-size.c: Likewise.
11043 * tree-outof-ssa.c: Likewise.
11044 * tree-parloops.c: Likewise.
11045 * tree-phinodes.c: Likewise.
11046 * tree-predcom.c: Likewise.
11047 * tree-pretty-print.c: Likewise.
11048 * tree-profile.c: Likewise.
11049 * tree-scalar-evolution.c: Likewise.
11050 * tree-sra.c: Likewise.
11051 * tree-ssa-address.c: Likewise.
11052 * tree-ssa-alias.c: Likewise.
11053 * tree-ssa-ccp.c: Likewise.
11054 * tree-ssa-coalesce.c: Likewise.
11055 * tree-ssa-copy.c: Likewise.
11056 * tree-ssa-copyrename.c: Likewise.
11057 * tree-ssa-dce.c: Likewise.
11058 * tree-ssa-dom.c: Likewise.
11059 * tree-ssa-dse.c: Likewise.
11060 * tree-ssa-forwprop.c: Likewise.
11061 * tree-ssa-ifcombine.c: Likewise.
11062 * tree-ssa-live.c: Likewise.
11063 * tree-ssa-loop-ch.c: Likewise.
11064 * tree-ssa-loop-im.c: Likewise.
11065 * tree-ssa-loop-ivcanon.c: Likewise.
11066 * tree-ssa-loop-ivopts.c: Likewise.
11067 * tree-ssa-loop-manip.c: Likewise.
11068 * tree-ssa-loop-niter.c: Likewise.
11069 * tree-ssa-loop-prefetch.c: Likewise.
11070 * tree-ssa-loop-unswitch.c: Likewise.
11071 * tree-ssa-loop.c: Likewise.
11072 * tree-ssa-math-opts.c: Likewise.
11073 * tree-ssa-operands.c: Likewise.
11074 * tree-ssa-phiopt.c: Likewise.
11075 * tree-ssa-phiprop.c: Likewise.
11076 * tree-ssa-pre.c: Likewise.
11077 * tree-ssa-propagate.c: Likewise.
11078 * tree-ssa-reassoc.c: Likewise.
11079 * tree-ssa-sccvn.c: Likewise.
11080 * tree-ssa-scopedtables.c: Likewise.
11081 * tree-ssa-sink.c: Likewise.
11082 * tree-ssa-strlen.c: Likewise.
11083 * tree-ssa-structalias.c: Likewise.
11084 * tree-ssa-tail-merge.c: Likewise.
11085 * tree-ssa-ter.c: Likewise.
11086 * tree-ssa-threadedge.c: Likewise.
11087 * tree-ssa-threadupdate.c: Likewise.
11088 * tree-ssa-uncprop.c: Likewise.
11089 * tree-ssa-uninit.c: Likewise.
11090 * tree-ssa.c: Likewise.
11091 * tree-ssanames.c: Likewise.
11092 * tree-stdarg.c: Likewise.
11093 * tree-streamer-in.c: Likewise.
11094 * tree-streamer-out.c: Likewise.
11095 * tree-streamer.c: Likewise.
11096 * tree-switch-conversion.c: Likewise.
11097 * tree-tailcall.c: Likewise.
11098 * tree-vect-data-refs.c: Likewise.
11099 * tree-vect-generic.c: Likewise.
11100 * tree-vect-loop-manip.c: Likewise.
11101 * tree-vect-loop.c: Likewise.
11102 * tree-vect-patterns.c: Likewise.
11103 * tree-vect-slp.c: Likewise.
11104 * tree-vect-stmts.c: Likewise.
11105 * tree-vectorizer.c: Likewise.
11106 * tree-vrp.c: Likewise.
11107 * tree.c: Likewise.
11108 * tsan.c: Likewise.
11109 * ubsan.c: Likewise.
11110 * valtrack.c: Likewise.
11111 * value-prof.c: Likewise.
11112 * var-tracking.c: Likewise.
11113 * varasm.c: Likewise.
11114 * varpool.c: Likewise.
11115 * vmsdbgout.c: Likewise.
11116 * vtable-verify.c: Likewise.
11118 * wide-int.cc: Likewise.
11119 * xcoffout.c: Likewise.
11120 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
11121 * common/common-targhooks.c: Likewise.
11122 * config/aarch64/aarch64-builtins.c: Likewise.
11123 * config/aarch64/aarch64.c: Likewise.
11124 * config/alpha/alpha.c: Likewise.
11125 * config/arc/arc.c: Likewise.
11126 * config/arm/aarch-common.c: Likewise.
11127 * config/arm/arm-builtins.c: Likewise.
11128 * config/arm/arm-c.c: Likewise.
11129 * config/arm/arm.c: Likewise.
11130 * config/avr/avr-c.c: Likewise.
11131 * config/avr/avr-log.c: Likewise.
11132 * config/avr/avr.c: Likewise.
11133 * config/bfin/bfin.c: Likewise.
11134 * config/c6x/c6x.c: Likewise.
11135 * config/cr16/cr16.c: Likewise.
11136 * config/cris/cris.c: Likewise.
11137 * config/darwin-c.c: Likewise.
11138 * config/darwin.c: Likewise.
11139 * config/default-c.c: Likewise.
11140 * config/epiphany/epiphany.c: Likewise.
11141 * config/epiphany/mode-switch-use.c: Likewise.
11142 * config/epiphany/resolve-sw-modes.c: Likewise.
11143 * config/fr30/fr30.c: Likewise.
11144 * config/frv/frv.c: Likewise.
11145 * config/ft32/ft32.c: Likewise.
11146 * config/glibc-c.c: Likewise.
11147 * config/h8300/h8300.c: Likewise.
11148 * config/i386/i386-c.c: Likewise.
11149 * config/i386/i386.c: Likewise.
11150 * config/i386/msformat-c.c: Likewise.
11151 * config/i386/winnt-cxx.c: Likewise.
11152 * config/i386/winnt-stubs.c: Likewise.
11153 * config/i386/winnt.c: Likewise.
11154 * config/ia64/ia64-c.c: Likewise.
11155 * config/ia64/ia64.c: Likewise.
11156 * config/iq2000/iq2000.c: Likewise.
11157 * config/lm32/lm32.c: Likewise.
11158 * config/m32c/m32c-pragma.c: Likewise.
11159 * config/m32c/m32c.c: Likewise.
11160 * config/m32r/m32r.c: Likewise.
11161 * config/m68k/m68k.c: Likewise.
11162 * config/mcore/mcore.c: Likewise.
11163 * config/mep/mep-pragma.c: Likewise.
11164 * config/mep/mep.c: Likewise.
11165 * config/microblaze/microblaze-c.c: Likewise.
11166 * config/microblaze/microblaze.c: Likewise.
11167 * config/mips/mips.c: Likewise.
11168 * config/mmix/mmix.c: Likewise.
11169 * config/mn10300/mn10300.c: Likewise.
11170 * config/moxie/moxie.c: Likewise.
11171 * config/msp430/msp430-c.c: Likewise.
11172 * config/msp430/msp430.c: Likewise.
11173 * config/nds32/nds32-cost.c: Likewise.
11174 * config/nds32/nds32-fp-as-gp.c: Likewise.
11175 * config/nds32/nds32-intrinsic.c: Likewise.
11176 * config/nds32/nds32-isr.c: Likewise.
11177 * config/nds32/nds32-md-auxiliary.c: Likewise.
11178 * config/nds32/nds32-memory-manipulation.c: Likewise.
11179 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11180 * config/nds32/nds32-predicates.c: Likewise.
11181 * config/nds32/nds32.c: Likewise.
11182 * config/nios2/nios2.c: Likewise.
11183 * config/nvptx/nvptx.c: Likewise.
11184 * config/pa/pa.c: Likewise.
11185 * config/pdp11/pdp11.c: Likewise.
11186 * config/rl78/rl78-c.c: Likewise.
11187 * config/rl78/rl78.c: Likewise.
11188 * config/rs6000/rs6000-c.c: Likewise.
11189 * config/rs6000/rs6000.c: Likewise.
11190 * config/rx/rx.c: Likewise.
11191 * config/s390/s390-c.c: Likewise.
11192 * config/s390/s390.c: Likewise.
11193 * config/sh/sh-c.c: Likewise.
11194 * config/sh/sh-mem.cc: Likewise.
11195 * config/sh/sh.c: Likewise.
11196 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11197 * config/sh/sh_treg_combine.cc: Likewise.
11198 * config/sol2-c.c: Likewise.
11199 * config/sol2-cxx.c: Likewise.
11200 * config/sol2-stubs.c: Likewise.
11201 * config/sol2.c: Likewise.
11202 * config/sparc/sparc-c.c: Likewise.
11203 * config/sparc/sparc.c: Likewise.
11204 * config/spu/spu-c.c: Likewise.
11205 * config/spu/spu.c: Likewise.
11206 * config/stormy16/stormy16.c: Likewise.
11207 * config/tilegx/mul-tables.c: Likewise.
11208 * config/tilegx/tilegx-c.c: Likewise.
11209 * config/tilegx/tilegx.c: Likewise.
11210 * config/tilepro/mul-tables.c: Likewise.
11211 * config/tilepro/tilepro-c.c: Likewise.
11212 * config/tilepro/tilepro.c: Likewise.
11213 * config/v850/v850-c.c: Likewise.
11214 * config/v850/v850.c: Likewise.
11215 * config/vax/vax.c: Likewise.
11216 * config/visium/visium.c: Likewise.
11217 * config/vms/vms-c.c: Likewise.
11218 * config/vms/vms.c: Likewise.
11219 * config/vxworks.c: Likewise.
11220 * config/winnt-c.c: Likewise.
11221 * config/xtensa/xtensa.c: Likewise.
11223 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
11225 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
11227 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
11229 2015-06-17 Richard Biener <rguenther@suse.de>
11231 PR tree-optimization/66251
11232 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
11233 stmts for SLP strided stores.
11236 2015-05-22 Richard Biener <rguenther@suse.de>
11238 PR tree-optimization/66251
11239 * tree-vect-stmts.c (vectorizable_conversion): Properly
11240 set STMT_VINFO_VEC_STMT even for the SLP case.
11242 2015-05-26 Michael Matz <matz@suse.de>
11244 PR middle-end/66251
11245 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
11246 STMT_VINFO_VEC_STMT, also with SLP.
11248 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
11251 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
11252 (*avx_addsubv4df3_1s): Ditto.
11253 (*sse3_addsubv2df3_1): Ditto.
11254 (*sse3_addsubv2df3_1s): Ditto.
11255 (*avx_addsubv8sf3_1): Ditto.
11256 (*avx_addsubv8sf3_1s): Ditto.
11257 (*sse3_addsubv4sf3_1): Ditto.
11258 (*sse3_addsubv4sf3_1s): Ditto.
11260 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
11262 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
11263 (SYSROOT_SUFFIX_SPEC): Update.
11264 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
11265 (STARTFILE_PREFIX_SPEC): Update.
11266 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
11267 (MULTILIB_REQUIRED): New.
11268 (MULTILIB_OSDIRNAMES): New.
11269 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
11270 (MULTILIB_REQUIRED): New.
11271 (MULTILIB_OSDIRNAMES): New.
11273 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
11275 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
11276 * config/aarch64/aarch64-options-extensions.def: Update "fP",
11277 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
11278 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
11279 (AARCH64_FL_PAN): New.
11280 (AARCH64_FL_LOR): New.
11281 (AARCH64_FL_RDMA): New.
11282 (AARCH64_FL_FOR_ARCH8_1): New.
11283 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
11284 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
11286 2015-06-16 Martin Liska <mliska@suse.cz>
11288 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
11289 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
11292 2015-06-16 Richard Biener <rguenther@suse.de>
11294 * tree-vect-stmts.c (vectorizable_store): Adjust.
11295 (vectorizable_load): Likewise.
11296 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11298 (vect_create_data_ref_ptr): Likewise.
11299 (bump_vector_ptr): Adjust.
11301 2015-06-16 Richard Biener <rguenther@suse.de>
11303 * tree-vect-stmts.c (vectorizable_load): Properly start loads
11304 with the first element if this is grouped loads.
11306 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
11308 * config/arm/arm-protos.h (struct tune_params): Rename
11309 log_op_non_sc to log_op_non_short_circuit, and rename enum
11310 values to expand SC to SHORT_CIRCUIT.
11311 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
11312 to LOG_OP_NON_SHORT_CIRCUIT.
11313 (arm_fastmul_tune):Likewise
11314 (arm_strongarm_tune): Likewise.
11315 (arm_xscale_tune): Likewise.
11316 (arm_9e_tune): Likewise.
11317 (arm_marvell_pj4_tune): Likewise.
11318 (arm_v6t2_tune): Likewise.
11319 (arm_cortex_tune): Likewise.
11320 (arm_cortex_a8_tune): Likewise.
11321 (arm_cortex_a7_tune): Likewise.
11322 (arm_cortex_a15_tune): Likewise.
11323 (arm_cortex_a53_tune): Likewise.
11324 (arm_cortex_a57_tune): Likewise.
11325 (arm_xgene1_tune): Likewise.
11326 (arm_cortex_a5_tune): Likewise.
11327 (arm_cortex_a9_tune): Likewise.
11328 (arm_cortex_a12_tune): Likewise.
11329 (arm_v7m_tune): Likewise.
11330 (arm_cortex_m7_tune): Likewise.
11331 (arm_v6m_tune): Likewise.
11332 (arm_fa726te_tune): Likewise.
11334 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
11336 * altivec.md: Delete UNSPEC_VMLADDUHM.
11337 (mulv4si3_p8): New pattern.
11338 (mulv4si3): Use it for POWER8.
11339 (mulv8hi3): Use vmladduhm with zero addend.
11340 (altivec_vmladduhm): Descriptive RTL.
11342 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
11344 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
11345 to use neon_move instead of mov_imm.
11346 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
11347 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
11349 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
11350 aarch64_float_const_zero_rtx_p check before TFmode check.
11351 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
11353 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
11354 code and attributes to match. Change condition from register_operand
11355 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
11356 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
11359 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
11362 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
11363 there is no parent.
11365 2015-06-14 Shiva Chen <shiva0217@gmail.com>
11367 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
11368 HOST_WIDE_INT parameter.
11370 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
11373 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
11374 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
11376 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
11378 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
11380 * rtl.h (classify_insn): Declare.
11381 * emit-rtl.c (classify_insn): Move to...
11382 * rtl.c: ...here and add generator support.
11383 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
11384 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
11385 * genemit.c (gen_emit_seq): New function.
11386 (gen_expand, gen_split): Use it.
11388 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
11390 * tree.c (make_vector_stat): Fix comment to state that the
11391 function returns a VECTOR_CST.
11393 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
11395 * gensupport.h (add_implicit_parallel): Declare.
11396 * genrecog.c (add_implicit_parallel): Move to...
11397 * gensupport.c (add_implicit_parallel): ...here.
11398 (process_one_cond_exec): Use it.
11399 * genemit.c (gen_insn): Likewise.
11401 2015-06-13 Iain Sandoe <iain@codesourcery.com>
11404 * passes.c (rest_of_decl_compilation): Do not register globals for
11405 early debug if they are declared in built-ins.
11407 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
11409 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
11411 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11413 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
11415 (noce_try_cmove_arith): Likewise.
11416 (noce_get_alt_condition): Likewise.
11418 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11420 * common/config/i386/i386-common.c
11421 (OPTION_MASK_ISA_MWAITX_SET): New.
11422 (ix86_handle_option): Handle mwaitx.
11423 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
11424 (x86_64-*-*): Likewise.
11425 * config/i386/mwaitxintrin.h: New header.
11426 * config/i386/cpuid.h (bit_MWAITX): Define.
11427 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11429 * config/i386/i386.opt (mwaitx): New.
11430 * config/i386/i386-builtin-types.def
11431 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
11432 * config/i386/i386-c.c: Define __MWAITX__ if needed.
11433 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
11435 (ix86_option_override_internal): Handle new option.
11436 (processor_alias_table): Added PTA_MWAITX.
11437 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
11438 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
11439 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
11440 IX86_BUILTIN_MONITORX built-ins.
11441 * config/i386/i386.h (TARGET_MWAITX): New.
11442 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
11444 (mwaitx): New pattern.
11445 (monitorx_<mode>): New pattern.
11446 * config/i386/x86intrin.h: Include mwaitxintrin.h.
11447 * doc/extend.texi: Document monitorx and mwaitx builtins.
11448 * doc/invoke.texi: Document -mmwaitx option.
11450 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
11452 * emit-rtl.c (need_atomic_barrier_p): Mask model with
11453 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
11455 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
11457 * dbxout.c (xcoff_debug_hooks): Provide a function for
11458 register_main_translation_unit hook.
11460 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
11462 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
11463 variants cases from switch.
11464 (rs6000_post_atomic_barrier): Same.
11465 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
11466 (rs6000_expand_atomic_exchange): Same.
11467 (rs6000_expand_atomic_op): Same.
11468 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
11469 SYNC variants cases from switch.
11470 (atomic_load): Same.
11471 (atomic_store): Same.
11473 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
11475 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
11476 CONST_INT for goto.
11478 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
11481 * dwarf2out.c (check_die): Check for common duplicate attributes.
11482 (add_location_or_const_value_attribute): Do not add duplicate
11484 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
11486 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
11487 (gen_type_die_with_usage): Call check_die.
11488 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
11490 2015-06-11 Jason Merrill <jason@redhat.com>
11492 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
11495 2015-06-11 Marek Polacek <polacek@redhat.com>
11497 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
11499 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
11502 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
11503 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
11504 (*addx_extend_sp32): Fix pasto.
11505 (*subx_extend): Rename into...
11506 (*subx_extend_sp32): ...this.
11507 (*adddi3_extend_sp32): Add earlyclobber.
11508 (*subdi3_insn_sp32): Likewise.
11509 (*subdi3_extend_sp32): Likewise.
11510 (*and_not_di_sp32): Likewise.
11511 (*or_not_di_sp32): Likewise.
11512 (*xor_not_di_sp32): Likewise.
11513 (*negdi2_sp32): Likewise.
11514 (*one_cmpldi2_sp32): Likewise.
11516 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
11518 * debug.h (struct gcc_debug_hooks): Add a
11519 register_main_translation_unit hook.
11520 * debug.c (do_nothing_debug_hooks): Provide a function for this
11522 * dbxout.c (dbx_debug_hooks): Likewise.
11523 * sdbout.c (sdb_debug_hooks): Likewise.
11524 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11525 * dwarf2out.c (main_translation_unit): New global variable.
11526 (dwarf2out_register_main_translation_unit): New function
11527 implementing the new hook.
11528 (dwarf2_debug_hooks): Assign
11529 dwarf2out_register_main_translation_unit to this new hook.
11530 (dwarf2out_init): Associate any main translation unit to
11533 2015-06-11 Marek Polacek <polacek@redhat.com>
11535 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
11537 2015-06-11 Marek Polacek <polacek@redhat.com>
11539 * match.pd: Use single_use throughout.
11541 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11543 * config/arm/arm.c (arm_option_params_internal): When optimising
11544 for speed set max_insns_skipped when arm_restrict_it.
11546 2015-06-11 Christian Bruel <christian.bruel@st.com>
11549 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
11551 (arm_cpu_builtins): New function.
11552 (arm_pragma_target_parse): Call arm_cpu_builtins.
11553 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
11554 (arm_register_target_pragmas): Likewise.
11555 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
11556 Call arm_register_target_pragmas.
11557 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
11558 (arm_pragma_target_parse): Likewise.
11560 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
11562 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
11563 of the second operand.
11565 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
11568 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
11569 to prepare mask operand for AVX512 modes.
11571 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
11574 * doc/md.texi (Machine Constraints): Document that on the PowerPC
11575 if you use a constraint that targets a VSX register, you must use
11576 %x<n> in the template.
11578 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
11580 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
11581 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
11582 (define_insn "trap"): New definition.
11584 2015-06-10 Richard Biener <rguenther@suse.de>
11586 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
11588 (vect_supported_load_permutation_p): ... here. Handle
11589 supportable permutations in reductions.
11590 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
11591 for vectorizing strided group loads.
11593 2015-06-10 Jakub Jelinek <jakub@redhat.com>
11596 * config/i386/i386.c (ix86_split_long_move): For collisions
11597 involving direct tls segment refs, move the UNSPEC_TP possibly
11598 wrapped in ZERO_EXTEND out of the address for lea, to each of
11601 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11603 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
11604 dmb sy. Adjust tabs.
11606 2015-06-10 Tom de Vries <tom@codesourcery.com>
11608 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
11610 2015-06-10 Martin Liska <mliska@suse.cz>
11613 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
11614 all enum values in mem_alloc_origin.
11615 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
11617 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
11618 * bitmap.c (bitmap_register): Likewise.
11619 (dump_bitmap_statistics): Likewise.
11620 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
11621 (ggc_record_overhead): Likewise.
11622 * hash-map.h: Likewise.
11623 * hash-set.h: Likewise.
11624 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
11625 * hash-table.h: Likewise.
11626 * vec.c (vec_prefix::register_overhead): Likewise.
11627 (vec_prefix::release_overhead): Likewise.
11628 (dump_vec_loc_statistics): Likewise.
11630 2015-06-09 Christian Bruel <christian.bruel@st.com>
11633 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
11634 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
11635 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
11636 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
11637 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
11638 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
11639 (arm_valid_target_attribute_p): Likewise.
11640 (arm_set_current_function, arm_can_inline_p): Likewise.
11641 (arm_valid_target_attribute_rec): Likewise.
11642 (arm_previous_fndecl): New variable.
11643 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
11644 (TARGET_CAN_INLINE_P): Define.
11645 (arm_asm_trampoline_template): Emit mode.
11646 (arm_file_start): Don't set unified syntax.
11647 (arm_declare_function_name): Set unified syntax and mode.
11648 (arm_option_override): Init target_option_default_node.
11649 and target_option_current_node.
11650 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
11651 (*call_symbol): Likewise.
11652 * doc/extend.texi: Document ARM/Thumb target attribute.
11653 * doc/invoke.texi: Likewise.
11655 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
11658 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
11659 PR rtl-optimization/64164
11660 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11661 * tree-ssa-copyrename.c: Removed.
11662 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11663 -ftree-coalesce-vars.
11664 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11665 * common.opt (ftree-copyrename): Ignore.
11666 (ftree-coalesce-inlined-vars): Likewise.
11667 * doc/invoke.texi: Remove the ignored options above.
11668 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11669 * tree-ssa-coalesce.h: ... here.
11670 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11671 headers required by it.
11672 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11673 across variables when flag_tree_coalesce_vars. Check register
11674 use and promoted modes to allow coalescing. Moved to
11675 tree-ssa-coalesce.c.
11676 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11677 with its member functions to tree-ssa-coalesce.c.
11678 (var_map_base_init): Likewise. Renamed to
11679 compute_samebase_partition_bases.
11680 (partition_view_normal): Drop want_bases parameter.
11681 (partition_view_bitmap): Likewise.
11682 * tree-ssa-live.h: Adjust declarations.
11683 * tree-ssa-coalesce.c: Include explow.h.
11684 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11685 default defs at the entry point.
11686 (dump_part_var_map): New.
11687 (compute_optimized_partition_bases): New, called by...
11688 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11689 of compute_samebase_partition_bases. Adjust.
11690 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11691 * cfgexpand.c (leader_merge): New.
11692 (get_rtl_for_parm_ssa_default_def): New.
11693 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11694 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11695 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11696 redundant MEM attr setting.
11697 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11699 (expand_one_stack_var): ... this. New wrapper to check and
11700 skip already expanded SSA partitions.
11701 (record_alignment_for_reg_var): New, factored out of...
11702 (expand_one_var): ... this.
11703 (expand_one_ssa_partition): New.
11704 (adjust_one_expanded_partition_var): New.
11705 (expand_one_register_var): Check and skip already expanded SSA
11707 (expand_used_vars): Don't create DECLs for anonymous SSA
11708 names. Expand all SSA partitions, then adjust all SSA names.
11709 (pass::execute): Replace the loops that set
11710 SA.partition_to_pseudo from partition leaders and cleared
11711 DECL_RTL for multi-location variables, and that which used to
11712 rename vars and set attrs, with one that clears DECL_RTL and
11713 checks that PARMs and RESULTs default_defs match DECL_RTL.
11714 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11715 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11716 * explow.c (promote_ssa_mode): New.
11717 * explow.h (promote_ssa_mode): Declare.
11718 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11719 * function.c: Include cfgexpand.h.
11720 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11721 (use_register_for_parm_decl): Wrapper for the above to
11722 special-case the result_ptr.
11723 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11724 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11725 multiple locations.
11726 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11727 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11728 (assign_parm_setup_block): Prefer SSA-assigned location.
11729 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11730 if stack_parm is NULL.
11731 (assign_parm_setup_stack): Prefer SSA-assigned location.
11732 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11733 rtl before testing for pointer bounds. Special-case result_ptr.
11734 (expand_function_start): Maybe reset DECL_RTL of result.
11735 Prefer SSA-assigned location for result and static chain.
11736 Factor out DECL_RESULT and SET_DECL_RTL.
11737 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11738 anonymous SSA names. Use promote_ssa_mode.
11739 (get_temp_reg): Likewise.
11740 (remove_ssa_form): Adjust.
11741 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11742 and get its reg_usage for reg invalidation.
11743 (compute_bb_dataflow): Pass it insn.
11744 (emit_notes_in_bb): Likewise.
11745 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
11746 fail assert on conversion between unsigned types.
11748 2015-06-09 Tom de Vries <tom@codesourcery.com>
11750 PR tree-optimization/65460
11751 * omp-low.c (expand_omp_target): Set parallelized_function on
11752 cgraph_node for child_fn.
11754 2015-06-09 Tom de Vries <tom@codesourcery.com>
11756 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
11757 parallelized_function before add_new_function.
11759 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
11761 * gcc-plugin.h: Move decls to plugin.h and include it.
11762 * plugin.h: Relocate decls from gcc-plugin.h
11763 * ggc-page.c: Include required header files.
11764 * passes.c: Likewise.
11765 * cgraphunit.c: Likewise.
11767 2015-06-09 Tom de Vries <tom@codesourcery.com>
11769 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
11771 2015-06-09 Jason Merrill <jason@redhat.com>
11774 * toplev.c (check_global_declaration): Don't warn about a clone.
11776 2015-06-09 Marek Polacek <polacek@redhat.com>
11778 PR tree-optimization/66299
11779 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
11780 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
11783 2015-06-09 Richard Biener <rguenther@suse.de>
11785 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
11786 (vect_analyze_slp_instance): Instead do not falsely drop
11789 2015-06-09 Richard Biener <rguenther@suse.de>
11791 PR middle-end/66423
11792 * match.pd: Handle A % (unsigned)(1 << B).
11794 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
11796 * varasm.c (output_object_block_htab): Remove.
11797 (output_object_block_compare): New.
11798 (output_object_blocks): Sort named object_blocks before outputting
11801 2015-06-09 Richard Biener <rguenther@suse.de>
11803 PR tree-optimization/66419
11804 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
11805 consider GROUP_GAP when detecting a perfect subchain.
11807 2015-06-09 Nick Clifton <nickc@redhat.com>
11809 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
11810 place read only data in the .frodata section.
11812 2015-06-09 Shiva Chen <shiva0217@gmail.com>
11814 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
11815 (atomic_store<mode>): Likewise.
11817 2015-06-09 Richard Biener <rguenther@suse.de>
11819 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
11821 2015-06-09 Richard Biener <rguenther@suse.de>
11823 PR middle-end/66413
11824 * tree-inline.c (insert_init_debug_bind): Unshare value.
11826 2015-06-09 Richard Biener <rguenther@suse.de>
11828 PR tree-optimization/66396
11829 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
11830 Rename virtual operands.
11832 2015-06-09 Tom de Vries <tom@codesourcery.com>
11834 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
11835 always return false.
11837 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
11839 PR rtl-optimization/64164
11840 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11841 * tree-ssa-copyrename.c: Removed.
11842 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11843 -ftree-coalesce-vars.
11844 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11845 * common.opt (ftree-copyrename): Ignore.
11846 (ftree-coalesce-inlined-vars): Likewise.
11847 * doc/invoke.texi: Remove the ignored options above.
11848 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11849 * tree-ssa-coalesce.h: ... here.
11850 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11851 headers required by it.
11852 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11853 across variables when flag_tree_coalesce_vars. Check register
11854 use and promoted modes to allow coalescing. Moved to
11855 tree-ssa-coalesce.c.
11856 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11857 with its member functions to tree-ssa-coalesce.c.
11858 (var_map_base_init): Likewise. Renamed to
11859 compute_samebase_partition_bases.
11860 (partition_view_normal): Drop want_bases parameter.
11861 (partition_view_bitmap): Likewise.
11862 * tree-ssa-live.h: Adjust declarations.
11863 * tree-ssa-coalesce.c: Include explow.h.
11864 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11865 default defs at the entry point.
11866 (dump_part_var_map): New.
11867 (compute_optimized_partition_bases): New, called by...
11868 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11869 of compute_samebase_partition_bases. Adjust.
11870 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11871 * cfgexpand.c (leader_merge): New.
11872 (get_rtl_for_parm_ssa_default_def): New.
11873 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11874 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11875 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11876 redundant MEM attr setting.
11877 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11879 (expand_one_stack_var): ... this. New wrapper to check and
11880 skip already expanded SSA partitions.
11881 (record_alignment_for_reg_var): New, factored out of...
11882 (expand_one_var): ... this.
11883 (expand_one_ssa_partition): New.
11884 (adjust_one_expanded_partition_var): New.
11885 (expand_one_register_var): Check and skip already expanded SSA
11887 (expand_used_vars): Don't create DECLs for anonymous SSA
11888 names. Expand all SSA partitions, then adjust all SSA names.
11889 (pass::execute): Replace the loops that set
11890 SA.partition_to_pseudo from partition leaders and cleared
11891 DECL_RTL for multi-location variables, and that which used to
11892 rename vars and set attrs, with one that clears DECL_RTL and
11893 checks that PARMs and RESULTs default_defs match DECL_RTL.
11894 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11895 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11896 * explow.c (promote_ssa_mode): New.
11897 * explow.h (promote_ssa_mode): Declare.
11898 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11899 * function.c: Include cfgexpand.h.
11900 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11901 (use_register_for_parm_decl): Wrapper for the above to
11902 special-case the result_ptr.
11903 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11904 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11905 multiple locations.
11906 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11907 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11908 (assign_parm_setup_block): Prefer SSA-assigned location.
11909 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11910 if stack_parm is NULL.
11911 (assign_parm_setup_stack): Prefer SSA-assigned location.
11912 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11913 rtl before testing for pointer bounds. Special-case result_ptr.
11914 (expand_function_start): Maybe reset DECL_RTL of result.
11915 Prefer SSA-assigned location for result and static chain.
11916 Factor out DECL_RESULT and SET_DECL_RTL.
11917 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11918 anonymous SSA names. Use promote_ssa_mode.
11919 (get_temp_reg): Likewise.
11920 (remove_ssa_form): Adjust.
11921 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11922 and get its reg_usage for reg invalidation.
11923 (compute_bb_dataflow): Pass it insn.
11924 (emit_notes_in_bb): Likewise.
11925 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
11926 fail assert on conversion between unsigned types.
11928 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
11931 * tree-inline.c (reset_debug_binding): New.
11932 (reset_debug_bindings): Likewise.
11933 (expand_call_inline): Call it.
11935 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
11937 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
11940 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
11942 * lto-streamer-out.c (lto_output_location): Stream
11943 reserved locations correctly.
11944 * lto-streamer-in.c (lto_output_location): Likewise.
11946 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
11948 * coretypes.h: Include hash-table.h and hash-set.h for host files.
11949 * ggc.h: Don't include statistics.h>
11950 * hash-map.h: Remove all includes.
11951 * hash-set.h: Likewise.
11952 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
11953 the include list. Remove <new>.
11954 * inchash.h: Remove all includes.
11955 * mem-stats.h: Likewise.
11956 * vec.h: No special processing for generators or ggc.
11957 * alias.c : Adjust include files.
11958 * alloc-pool.c : Likewise.
11959 * alloc-pool.h : Likewise.
11960 * asan.c : Likewise.
11961 * attribs.c : Likewise.
11962 * auto-inc-dec.c : Likewise.
11963 * auto-profile.c : Likewise.
11964 * bb-reorder.c : Likewise.
11965 * bitmap.c : Likewise.
11966 * bitmap.h : Likewise.
11967 * bt-load.c : Likewise.
11968 * builtins.c : Likewise.
11969 * caller-save.c : Likewise.
11970 * calls.c : Likewise.
11971 * ccmp.c : Likewise.
11972 * cfg.c : Likewise.
11973 * cfganal.c : Likewise.
11974 * cfgbuild.c : Likewise.
11975 * cfgcleanup.c : Likewise.
11976 * cfgexpand.c : Likewise.
11977 * cfghooks.c : Likewise.
11978 * cfgloop.c : Likewise.
11979 * cfgloop.h : Likewise.
11980 * cfgloopanal.c : Likewise.
11981 * cfgloopmanip.c : Likewise.
11982 * cfgrtl.c : Likewise.
11983 * cgraph.c : Likewise.
11984 * cgraphbuild.c : Likewise.
11985 * cgraphclones.c : Likewise.
11986 * cgraphunit.c : Likewise.
11987 * cilk-common.c : Likewise.
11988 * combine-stack-adj.c : Likewise.
11989 * combine.c : Likewise.
11990 * compare-elim.c : Likewise.
11991 * context.c : Likewise.
11992 * convert.c : Likewise.
11993 * coverage.c : Likewise.
11994 * cppbuiltin.c : Likewise.
11995 * cprop.c : Likewise.
11996 * cse.c : Likewise.
11997 * cselib.c : Likewise.
11998 * data-streamer-in.c : Likewise.
11999 * data-streamer-out.c : Likewise.
12000 * data-streamer.c : Likewise.
12001 * data-streamer.h : Likewise.
12002 * dbxout.c : Likewise.
12003 * dce.c : Likewise.
12004 * ddg.c : Likewise.
12005 * debug.c : Likewise.
12006 * df-core.c : Likewise.
12007 * df-problems.c : Likewise.
12008 * df-scan.c : Likewise.
12010 * dfp.c : Likewise.
12011 * dojump.c : Likewise.
12012 * dominance.c : Likewise.
12013 * domwalk.c : Likewise.
12014 * double-int.c : Likewise.
12015 * dse.c : Likewise.
12016 * dumpfile.c : Likewise.
12017 * dwarf2asm.c : Likewise.
12018 * dwarf2cfi.c : Likewise.
12019 * dwarf2out.c : Likewise.
12020 * emit-rtl.c : Likewise.
12021 * et-forest.c : Likewise.
12022 * except.c : Likewise.
12023 * except.h : Likewise.
12024 * explow.c : Likewise.
12025 * expmed.c : Likewise.
12026 * expr.c : Likewise.
12027 * final.c : Likewise.
12028 * fixed-value.c : Likewise.
12029 * fold-const.c : Likewise.
12030 * function.c : Likewise.
12031 * fwprop.c : Likewise.
12032 * gcc-plugin.h : Likewise.
12033 * gcc.c : Likewise.
12034 * gcse-common.c : Likewise.
12035 * gcse.c : Likewise.
12036 * genattrtab.c : Likewise.
12037 * genautomata.c : Likewise.
12038 * genconditions.c : Likewise.
12039 * genemit.c : Likewise.
12040 * generic-match-head.c : Likewise.
12041 * genextract.c : Likewise.
12042 * gengtype-state.c : Likewise.
12043 * gengtype.c : Likewise.
12044 * genhooks.c : Likewise.
12045 * genmatch.c : Likewise.
12046 * genmodes.c : Likewise.
12047 * genrecog.c : Likewise.
12048 * gensupport.c : Likewise.
12049 * ggc-common.c : Likewise.
12050 * ggc-internal.h : Likewise.
12051 * ggc-none.c : Likewise.
12052 * ggc-page.c : Likewise.
12053 * gimple-builder.c : Likewise.
12054 * gimple-expr.c : Likewise.
12055 * gimple-fold.c : Likewise.
12056 * gimple-iterator.c : Likewise.
12057 * gimple-low.c : Likewise.
12058 * gimple-match-head.c : Likewise.
12059 * gimple-pretty-print.c : Likewise.
12060 * gimple-ssa-isolate-paths.c : Likewise.
12061 * gimple-ssa-strength-reduction.c : Likewise.
12062 * gimple-ssa.h : Likewise.
12063 * gimple-streamer-in.c : Likewise.
12064 * gimple-streamer-out.c : Likewise.
12065 * gimple-streamer.h : Likewise.
12066 * gimple-walk.c : Likewise.
12067 * gimple.c : Likewise.
12068 * gimplify-me.c : Likewise.
12069 * gimplify.c : Likewise.
12070 * godump.c : Likewise.
12071 * graph.c : Likewise.
12072 * graphds.c : Likewise.
12073 * graphite-blocking.c : Likewise.
12074 * graphite-dependences.c : Likewise.
12075 * graphite-interchange.c : Likewise.
12076 * graphite-isl-ast-to-gimple.c : Likewise.
12077 * graphite-optimize-isl.c : Likewise.
12078 * graphite-poly.c : Likewise.
12079 * graphite-scop-detection.c : Likewise.
12080 * graphite-sese-to-poly.c : Likewise.
12081 * graphite.c : Likewise.
12082 * haifa-sched.c : Likewise.
12083 * hard-reg-set.h : Likewise.
12084 * hw-doloop.c : Likewise.
12085 * ifcvt.c : Likewise.
12086 * inchash.c : Likewise.
12087 * incpath.c : Likewise.
12088 * init-regs.c : Likewise.
12089 * input.c : Likewise.
12090 * internal-fn.c : Likewise.
12091 * ipa-chkp.c : Likewise.
12092 * ipa-comdats.c : Likewise.
12093 * ipa-cp.c : Likewise.
12094 * ipa-devirt.c : Likewise.
12095 * ipa-icf-gimple.c : Likewise.
12096 * ipa-icf.c : Likewise.
12097 * ipa-inline-analysis.c : Likewise.
12098 * ipa-inline-transform.c : Likewise.
12099 * ipa-inline.c : Likewise.
12100 * ipa-polymorphic-call.c : Likewise.
12101 * ipa-profile.c : Likewise.
12102 * ipa-prop.c : Likewise.
12103 * ipa-pure-const.c : Likewise.
12104 * ipa-ref.c : Likewise.
12105 * ipa-reference.c : Likewise.
12106 * ipa-split.c : Likewise.
12107 * ipa-utils.c : Likewise.
12108 * ipa-visibility.c : Likewise.
12109 * ipa.c : Likewise.
12110 * ira-build.c : Likewise.
12111 * ira-color.c : Likewise.
12112 * ira-conflicts.c : Likewise.
12113 * ira-costs.c : Likewise.
12114 * ira-emit.c : Likewise.
12115 * ira-lives.c : Likewise.
12116 * ira.c : Likewise.
12117 * jump.c : Likewise.
12118 * langhooks.c : Likewise.
12119 * lcm.c : Likewise.
12120 * libfuncs.h : Likewise.
12121 * lists.c : Likewise.
12122 * loop-doloop.c : Likewise.
12123 * loop-init.c : Likewise.
12124 * loop-invariant.c : Likewise.
12125 * loop-iv.c : Likewise.
12126 * loop-unroll.c : Likewise.
12127 * lower-subreg.c : Likewise.
12128 * lra-assigns.c : Likewise.
12129 * lra-coalesce.c : Likewise.
12130 * lra-constraints.c : Likewise.
12131 * lra-eliminations.c : Likewise.
12132 * lra-lives.c : Likewise.
12133 * lra-remat.c : Likewise.
12134 * lra-spills.c : Likewise.
12135 * lra.c : Likewise.
12136 * lto-cgraph.c : Likewise.
12137 * lto-compress.c : Likewise.
12138 * lto-opts.c : Likewise.
12139 * lto-section-in.c : Likewise.
12140 * lto-section-out.c : Likewise.
12141 * lto-streamer-in.c : Likewise.
12142 * lto-streamer-out.c : Likewise.
12143 * lto-streamer.c : Likewise.
12144 * lto-streamer.h : Likewise.
12145 * mcf.c : Likewise.
12146 * mode-switching.c : Likewise.
12147 * modulo-sched.c : Likewise.
12148 * omega.c : Likewise.
12149 * omp-low.c : Likewise.
12150 * optabs.c : Likewise.
12151 * opts-global.c : Likewise.
12152 * opts.h : Likewise.
12153 * passes.c : Likewise.
12154 * plugin.c : Likewise.
12155 * postreload-gcse.c : Likewise.
12156 * postreload.c : Likewise.
12157 * predict.c : Likewise.
12158 * print-rtl.c : Likewise.
12159 * print-tree.c : Likewise.
12160 * profile.c : Likewise.
12161 * read-md.c : Likewise.
12162 * read-md.h : Likewise.
12163 * read-rtl.c : Likewise.
12164 * real.c : Likewise.
12165 * realmpfr.c : Likewise.
12166 * recog.c : Likewise.
12167 * ree.c : Likewise.
12168 * reg-stack.c : Likewise.
12169 * regcprop.c : Likewise.
12170 * reginfo.c : Likewise.
12171 * regrename.c : Likewise.
12172 * regstat.c : Likewise.
12173 * reload.c : Likewise.
12174 * reload1.c : Likewise.
12175 * reorg.c : Likewise.
12176 * resource.c : Likewise.
12177 * rtl-chkp.c : Likewise.
12178 * rtl.c : Likewise.
12179 * rtl.h : Likewise.
12180 * rtlanal.c : Likewise.
12181 * rtlhash.c : Likewise.
12182 * rtlhash.h : Likewise.
12183 * rtlhooks.c : Likewise.
12184 * sanopt.c : Likewise.
12185 * sched-deps.c : Likewise.
12186 * sched-ebb.c : Likewise.
12187 * sched-rgn.c : Likewise.
12188 * sched-vis.c : Likewise.
12189 * sdbout.c : Likewise.
12190 * sel-sched-dump.c : Likewise.
12191 * sel-sched-ir.c : Likewise.
12192 * sel-sched-ir.h : Likewise.
12193 * sel-sched.c : Likewise.
12194 * sese.c : Likewise.
12195 * shrink-wrap.c : Likewise.
12196 * shrink-wrap.h : Likewise.
12197 * simplify-rtx.c : Likewise.
12198 * stack-ptr-mod.c : Likewise.
12199 * statistics.c : Likewise.
12200 * stmt.c : Likewise.
12201 * stor-layout.c : Likewise.
12202 * store-motion.c : Likewise.
12203 * stringpool.c : Likewise.
12204 * symtab.c : Likewise.
12205 * target-globals.c : Likewise.
12206 * targhooks.c : Likewise.
12207 * tlink.c : Likewise.
12208 * toplev.c : Likewise.
12209 * tracer.c : Likewise.
12210 * trans-mem.c : Likewise.
12211 * tree-affine.c : Likewise.
12212 * tree-affine.h : Likewise.
12213 * tree-browser.c : Likewise.
12214 * tree-call-cdce.c : Likewise.
12215 * tree-cfg.c : Likewise.
12216 * tree-cfgcleanup.c : Likewise.
12217 * tree-chkp-opt.c : Likewise.
12218 * tree-chkp.c : Likewise.
12219 * tree-chrec.c : Likewise.
12220 * tree-complex.c : Likewise.
12221 * tree-data-ref.c : Likewise.
12222 * tree-dfa.c : Likewise.
12223 * tree-diagnostic.c : Likewise.
12224 * tree-dump.c : Likewise.
12225 * tree-eh.c : Likewise.
12226 * tree-eh.h : Likewise.
12227 * tree-emutls.c : Likewise.
12228 * tree-hasher.h : Likewise.
12229 * tree-if-conv.c : Likewise.
12230 * tree-inline.c : Likewise.
12231 * tree-inline.h : Likewise.
12232 * tree-into-ssa.c : Likewise.
12233 * tree-iterator.c : Likewise.
12234 * tree-loop-distribution.c : Likewise.
12235 * tree-nested.c : Likewise.
12236 * tree-nrv.c : Likewise.
12237 * tree-object-size.c : Likewise.
12238 * tree-outof-ssa.c : Likewise.
12239 * tree-parloops.c : Likewise.
12240 * tree-phinodes.c : Likewise.
12241 * tree-predcom.c : Likewise.
12242 * tree-pretty-print.c : Likewise.
12243 * tree-profile.c : Likewise.
12244 * tree-scalar-evolution.c : Likewise.
12245 * tree-sra.c : Likewise.
12246 * tree-ssa-address.c : Likewise.
12247 * tree-ssa-alias.c : Likewise.
12248 * tree-ssa-ccp.c : Likewise.
12249 * tree-ssa-coalesce.c : Likewise.
12250 * tree-ssa-copy.c : Likewise.
12251 * tree-ssa-copyrename.c : Likewise.
12252 * tree-ssa-dce.c : Likewise.
12253 * tree-ssa-dom.c : Likewise.
12254 * tree-ssa-dse.c : Likewise.
12255 * tree-ssa-forwprop.c : Likewise.
12256 * tree-ssa-ifcombine.c : Likewise.
12257 * tree-ssa-live.c : Likewise.
12258 * tree-ssa-loop-ch.c : Likewise.
12259 * tree-ssa-loop-im.c : Likewise.
12260 * tree-ssa-loop-ivcanon.c : Likewise.
12261 * tree-ssa-loop-ivopts.c : Likewise.
12262 * tree-ssa-loop-manip.c : Likewise.
12263 * tree-ssa-loop-niter.c : Likewise.
12264 * tree-ssa-loop-prefetch.c : Likewise.
12265 * tree-ssa-loop-unswitch.c : Likewise.
12266 * tree-ssa-loop.c : Likewise.
12267 * tree-ssa-math-opts.c : Likewise.
12268 * tree-ssa-operands.c : Likewise.
12269 * tree-ssa-phiopt.c : Likewise.
12270 * tree-ssa-phiprop.c : Likewise.
12271 * tree-ssa-pre.c : Likewise.
12272 * tree-ssa-propagate.c : Likewise.
12273 * tree-ssa-reassoc.c : Likewise.
12274 * tree-ssa-sccvn.c : Likewise.
12275 * tree-ssa-scopedtables.c : Likewise.
12276 * tree-ssa-sink.c : Likewise.
12277 * tree-ssa-strlen.c : Likewise.
12278 * tree-ssa-structalias.c : Likewise.
12279 * tree-ssa-tail-merge.c : Likewise.
12280 * tree-ssa-ter.c : Likewise.
12281 * tree-ssa-threadedge.c : Likewise.
12282 * tree-ssa-threadupdate.c : Likewise.
12283 * tree-ssa-uncprop.c : Likewise.
12284 * tree-ssa-uninit.c : Likewise.
12285 * tree-ssa.c : Likewise.
12286 * tree-ssanames.c : Likewise.
12287 * tree-stdarg.c : Likewise.
12288 * tree-streamer-in.c : Likewise.
12289 * tree-streamer-out.c : Likewise.
12290 * tree-streamer.c : Likewise.
12291 * tree-streamer.h : Likewise.
12292 * tree-switch-conversion.c : Likewise.
12293 * tree-tailcall.c : Likewise.
12294 * tree-vect-data-refs.c : Likewise.
12295 * tree-vect-generic.c : Likewise.
12296 * tree-vect-loop-manip.c : Likewise.
12297 * tree-vect-loop.c : Likewise.
12298 * tree-vect-patterns.c : Likewise.
12299 * tree-vect-slp.c : Likewise.
12300 * tree-vect-stmts.c : Likewise.
12301 * tree-vectorizer.c : Likewise.
12302 * tree-vectorizer.h : Likewise.
12303 * tree-vrp.c : Likewise.
12304 * tree.c : Likewise.
12305 * tsan.c : Likewise.
12306 * ubsan.c : Likewise.
12307 * valtrack.c : Likewise.
12308 * valtrack.h : Likewise.
12309 * value-prof.c : Likewise.
12310 * var-tracking.c : Likewise.
12311 * varasm.c : Likewise.
12312 * varpool.c : Likewise.
12314 * vmsdbgout.c : Likewise.
12315 * vtable-verify.c : Likewise.
12316 * vtable-verify.h : Likewise.
12317 * web.c : Likewise.
12318 * wide-int.cc : Likewise.
12319 * xcoffout.c : Likewise.
12320 * config/aarch64/aarch64-builtins.c : Likewise.
12321 * config/aarch64/aarch64.c : Likewise.
12322 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
12323 * config/alpha/alpha.c : Likewise.
12324 * config/arc/arc.c : Likewise.
12325 * config/arm/aarch-common.c : Likewise.
12326 * config/arm/arm-builtins.c : Likewise.
12327 * config/arm/arm-c.c : Likewise.
12328 * config/arm/arm.c : Likewise.
12329 * config/avr/avr-c.c : Likewise.
12330 * config/avr/avr-log.c : Likewise.
12331 * config/avr/avr.c : Likewise.
12332 * config/bfin/bfin.c : Likewise.
12333 * config/c6x/c6x.c : Likewise.
12334 * config/cr16/cr16.c : Likewise.
12335 * config/cris/cris.c : Likewise.
12336 * config/darwin-c.c : Likewise.
12337 * config/darwin.c : Likewise.
12338 * config/default-c.c : Likewise.
12339 * config/epiphany/epiphany.c : Likewise.
12340 * config/epiphany/mode-switch-use.c : Likewise.
12341 * config/epiphany/resolve-sw-modes.c : Likewise.
12342 * config/fr30/fr30.c : Likewise.
12343 * config/frv/frv.c : Likewise.
12344 * config/ft32/ft32.c : Likewise.
12345 * config/glibc-c.c : Likewise.
12346 * config/h8300/h8300.c : Likewise.
12347 * config/i386/i386-c.c : Likewise.
12348 * config/i386/i386.c : Likewise.
12349 * config/i386/msformat-c.c : Likewise.
12350 * config/i386/winnt-cxx.c : Likewise.
12351 * config/i386/winnt-stubs.c : Likewise.
12352 * config/i386/winnt.c : Likewise.
12353 * config/ia64/ia64-c.c : Likewise.
12354 * config/ia64/ia64.c : Likewise.
12355 * config/iq2000/iq2000.c : Likewise.
12356 * config/lm32/lm32.c : Likewise.
12357 * config/m32c/m32c-pragma.c : Likewise.
12358 * config/m32c/m32c.c : Likewise.
12359 * config/m32r/m32r.c : Likewise.
12360 * config/m68k/m68k.c : Likewise.
12361 * config/mcore/mcore.c : Likewise.
12362 * config/mep/mep-pragma.c : Likewise.
12363 * config/mep/mep.c : Likewise.
12364 * config/microblaze/microblaze-c.c : Likewise.
12365 * config/microblaze/microblaze.c : Likewise.
12366 * config/mips/mips.c : Likewise.
12367 * config/mmix/mmix.c : Likewise.
12368 * config/mn10300/mn10300.c : Likewise.
12369 * config/moxie/moxie.c : Likewise.
12370 * config/msp430/msp430-c.c : Likewise.
12371 * config/msp430/msp430.c : Likewise.
12372 * config/nds32/nds32-cost.c : Likewise.
12373 * config/nds32/nds32-fp-as-gp.c : Likewise.
12374 * config/nds32/nds32-intrinsic.c : Likewise.
12375 * config/nds32/nds32-isr.c : Likewise.
12376 * config/nds32/nds32-md-auxiliary.c : Likewise.
12377 * config/nds32/nds32-memory-manipulation.c : Likewise.
12378 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
12379 * config/nds32/nds32-predicates.c : Likewise.
12380 * config/nds32/nds32.c : Likewise.
12381 * config/nios2/nios2.c : Likewise.
12382 * config/nvptx/nvptx.c : Likewise.
12383 * config/pa/pa.c : Likewise.
12384 * config/pdp11/pdp11.c : Likewise.
12385 * config/rl78/rl78-c.c : Likewise.
12386 * config/rl78/rl78.c : Likewise.
12387 * config/rs6000/rs6000-c.c : Likewise.
12388 * config/rs6000/rs6000.c : Likewise.
12389 * config/rx/rx.c : Likewise.
12390 * config/s390/s390-c.c : Likewise.
12391 * config/s390/s390.c : Likewise.
12392 * config/sh/sh-c.c : Likewise.
12393 * config/sh/sh-mem.cc : Likewise.
12394 * config/sh/sh.c : Likewise.
12395 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
12396 * config/sh/sh_treg_combine.cc : Likewise.
12397 * config/sol2-c.c : Likewise.
12398 * config/sol2-cxx.c : Likewise.
12399 * config/sol2-stubs.c : Likewise.
12400 * config/sol2.c : Likewise.
12401 * config/sparc/sparc-c.c : Likewise.
12402 * config/sparc/sparc.c : Likewise.
12403 * config/spu/spu-c.c : Likewise.
12404 * config/spu/spu.c : Likewise.
12405 * config/stormy16/stormy16.c : Likewise.
12406 * config/tilegx/mul-tables.c : Likewise.
12407 * config/tilegx/tilegx-c.c : Likewise.
12408 * config/tilegx/tilegx.c : Likewise.
12409 * config/tilepro/mul-tables.c : Likewise.
12410 * config/tilepro/tilepro-c.c : Likewise.
12411 * config/tilepro/tilepro.c : Likewise.
12412 * config/v850/v850-c.c : Likewise.
12413 * config/v850/v850.c : Likewise.
12414 * config/vax/vax.c : Likewise.
12415 * config/visium/visium.c : Likewise.
12416 * config/vms/vms-c.c : Likewise.
12417 * config/vms/vms.c : Likewise.
12418 * config/vxworks.c : Likewise.
12419 * config/winnt-c.c : Likewise.
12420 * config/xtensa/xtensa.c : Likewise.
12422 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
12425 * ipa-utils.h (warn_types_mismatch): Update prototype.
12426 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
12428 (type_mismatch_p): New function.
12429 (warn_types_mismatch): Reorg to work better on non-C++ types.
12430 (odr_types_equivalent_p): Add loc1/loc2 parameters.
12431 (add_type_duplicate): Update.
12433 2015-06-08 Tom de Vries <tom@codesourcery.com>
12435 PR rtl-optimization/66444
12436 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
12439 2015-06-08 Richard Biener <rguenther@suse.de>
12441 PR tree-optimization/66422
12442 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
12443 block after inserted gcc_unreachable.
12445 2015-06-08 Nick Clifton <nickc@redhat.com>
12447 * config/rx/rx.c (rx_function_value): Do not promote vector types.
12448 (rx_promote_function_mode): Likewise.
12449 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
12451 2015-06-08 Jakub Jelinek <jakub@redhat.com>
12453 * genattrtab.c (insn_alternatives): Change type from int *
12455 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
12456 (get_attr_value): Change type of num_alt to uint64_t.
12457 (compute_alternative_mask): Change return type from
12458 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
12459 (make_alternative_compare, mk_attr_alt): Change argument type
12460 from int to uint64_t.
12461 (simplify_test_exp): Change type of i from int to uint64_t.
12462 Shift ((uint64_t) 1) instead of 1 up.
12463 (main): Adjust oballocvec first argument from int to uint64_t.
12464 Shift ((uint64_t) 1) instead of 1 up.
12466 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
12469 * gdbhooks.py: Import sys.
12470 (intptr): New function. Replace int(...) by intptr(...).
12472 2015-06-08 Richard Biener <rguenther@suse.de>
12474 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
12475 adjustment for gaps at the end of a SLP load group properly.
12476 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
12477 all permutations we can generate.
12478 (vect_transform_slp_perm_load): Use the correct group-size.
12480 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
12482 * genmatch.c (expr::gen_transform): For conditions, guess the type
12483 from the second operand.
12485 2015-06-08 Tom de Vries <tom@codesourcery.com>
12487 PR tree-optimization/66442
12488 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
12489 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
12490 if the loop latch is not a singleton. Use
12491 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
12493 2015-06-08 Marek Polacek <polacek@redhat.com>
12496 * toplev.c (check_global_declaration): Don't warn about artificial
12499 2015-06-08 Tom de Vries <tom@codesourcery.com>
12501 PR tree-optimization/66436
12502 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
12504 * gimplify.c: Add tree-dump.h include.
12505 (gimplify_function_tree): Dump function to gimple dump file.
12506 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
12509 2015-06-08 Tom de Vries <tom@codesourcery.com>
12511 PR tree-optimization/66435
12512 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
12515 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
12517 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
12518 of ptr_type_node to not be ptr_to_node.
12519 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
12520 TREE_TYPE of pointers.
12521 * gimple-expr.c (useless_type_conversion): Reorder the check for
12522 function pointers and TYPE_CANONICAL.
12524 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
12527 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
12528 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
12529 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
12531 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
12532 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
12533 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
12534 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
12535 and non iso if unix2003.
12537 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
12539 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
12541 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
12543 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
12544 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
12545 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
12546 except.c, final.c, function.c, gcse-common.c, genemit.c,
12547 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
12548 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
12549 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
12550 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
12553 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
12555 * combine.c (combine_split_insns): Remove cast.
12556 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
12557 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
12558 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
12559 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
12560 * genemit.c (gen_split): Change return type of generated functions to
12562 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
12563 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
12564 gen_peephole2_* functions.
12565 (print_subroutine, main): Likewise.
12566 * recog.c (peephole2_optimize): Remove cast.
12567 (peep2_next_insn): Promote return type to rtx_insn.
12568 * recog.h (peep2_next_insn): Fix prototype.
12569 * rtl.h (try_split, split_insns): Likewise.
12571 2015-06-06 DJ Delorie <dj@redhat.com>
12573 * config/msp430/msp430.c (msp430_asm_integer): Support addition
12574 and subtraction too.
12576 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
12579 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
12580 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
12581 instead of Snd. Disparage Sid/z alternative with '^'.
12583 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
12585 * dwarf2out.c: Remove deferred_locations*.
12586 (dwarf2_debug_hooks): Add early_finish hook.
12587 Remove global_decl hook.
12588 Add early_global_decl and late_global_decl hook.
12589 New global early_dwarf.
12590 New structure set_early_dwarf.
12591 (output_die): Indicate whether a DIE was generated early
12592 when generating assembly with -dA.
12593 (struct limbo_die_struct): Document created_for field.
12594 Remove file_table_last_lookup.
12595 (remove_AT): Return TRUE if successful.
12596 (remove_child_TAG): Clear die_parent.
12597 (reparent_child): New function abstracted from...
12598 (splice_child_die): ...here.
12599 (new_die): ICE if a DIE ends up in limbo too late.
12601 (defer_location): Remove.
12602 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
12603 (fill_variable_array_bounds): New.
12604 (decl_start_label): Call fill_variable_array_bounds.
12605 (gen_formal_parameter_die): Rewrite to reuse previously generated
12607 (gen_subprogram_die): Same.
12608 (gen_variable_die): Same.
12609 (gen_const_die): Same.
12610 (gen_label_die): Same.
12611 (gen_lexical_block_die): Same.
12612 (decl_will_get_specification_p): New.
12613 (local_function_static): New.
12614 (gen_struct_or_union_type_die): Fill in variable-length fields.
12615 (gen_typedef_die): Fill in variable-length typedefs.
12616 (gen_tagged_type_die): Gracefully return on error_mark_node.
12617 Handle re-entrancy.
12618 (gen_type_die_with_usage): Handle variable-length types.
12619 Remove duplicate code for ARRAY_TYPE case.
12620 (process_scope_var): Only process imported modules during early
12622 (dwarf2out_early_global_decl): New.
12623 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
12624 (dwarf2out_type_decl): Set early_dwarf while calling
12626 (dwarf2out_decl): Verify that we did not recreate a previously
12628 Do not return on DECL_EXTERNALs in VAR_DECLs.
12629 Abstract some code to local_function_static.
12630 (lookup_filename): Remove use of file_table_last_lookup.
12631 Gracefully exit on missing file_name.
12632 (dwarf2out_finish): Verify limbo list.
12633 Remove deferred_locations_list use.
12634 Move deferred_asm_name and limbo flushing to...
12635 (dwarf2out_early_finish): ...here. New.
12636 (dwarf2out_c_finalize): Remove set of deferred_location_list,
12637 deferred_asm_name, and file_table_last_lookup.
12638 * cgraph.h (referred_to_p): Add default argument.
12639 * cgraphunit.c (referred_to_p): Add and handle include_self
12641 (analyze_functions): Add first_time argument.
12642 Call check_global_declaration for all symbols.
12643 Call late_global_decl for nodes for moribund nodes.
12644 (finalize_compilation_unit): Add new argument to
12646 Call early_global_decl for functions.
12647 Call early_finish debug hook.
12648 * dbxout.c (dbxout_early_global_decl): New.
12649 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
12650 (dbx_debug_hooks): Add new hooks.
12651 (xcoff_debug_hooks): Same.
12652 * debug.c (do_nothing_debug_hooks): Add early_finish field.
12653 Add early and late debug hooks.
12654 Remove global_decl hook.
12655 * debug.h (struct gcc_debug_hooks): Add early_finish,
12656 early_global_decl, and late_global_decl fields.
12657 Remove global_decl field.
12658 Document gcc_debug_hooks.
12659 * gengtype.c (output_typename): Remove.
12660 * godump.c (go_early_global_decl): New.
12661 (go_late_global_decl): New.
12662 (go_global_decl): Remove.
12663 (dump_go_spec_init): Remove global_decl. Add
12664 {early,late}_global_decl.
12665 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
12666 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
12667 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
12668 (write_global_declarations): Remove.
12669 (global_decl_processing): New.
12670 * langhooks.h (struct lang_hooks_for_decls): Remove
12671 final_write_globals field.
12672 Add post_compilation_parsing_cleanups field.
12673 * passes.c (rest_of_decl_compilation): Call early_global_decl.
12674 * sdbout.c: Add early and late_global_decl hooks. Remove
12675 sdbout_global_decl hook.
12676 Add early_finish field for sdb_debug_hooks.
12677 (sdbout_global_decl): Remove.
12678 (sdbout_early_global_decl): New.
12679 (sdbout_late_global_decl): New.
12680 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
12681 * toplev.c (check_global_declaration): Rename from
12682 check_global_declaration_1.
12683 Adapt to use symtab infrastructure.
12684 (check_global_declarations): Remove.
12685 (emit_debug_global_declarations): Remove.
12686 (compile_file): Remove call to final_write_globals langhook.
12687 Run the actual compilation process.
12688 Perform any post compilation parser cleanups.
12689 Generate late debug info.
12690 * toplev.h (check_global_declaration): New.
12691 (check_global_declaration_1): Remove.
12692 (check_global_declarations): Remove.
12693 (write_global_declarations): Remove.
12694 (emit_debug_global_declarations): Remove.
12695 (global_decl_processing): New.
12696 * tree-core.h (struct tree_block): Add DIE field.
12697 * tree.h (BLOCK_DIE): New.
12698 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
12700 (vmsdbgout_early_global_decl): New.
12701 (vmsdbgout_late_global_decl): New.
12702 Add early_finish debug hook field to vmsdbg_debug_hooks.
12703 Remove vmsdbgout_decl to vmsdbgout_function_decl.
12704 Add early and late_global_decl debug hooks.
12706 2015-06-05 Julian Brown <julian@codesourcery.com>
12707 Sandra Loosemore <sandra@codesourcery.com>
12709 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
12710 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
12711 to print-sysroot-suffix.sh script.
12713 2015-06-05 Tom de Vries <tom@codesourcery.com>
12715 merge from gomp4 branch:
12716 2015-05-28 Tom de Vries <tom@codesourcery.com>
12718 PR tree-optimization/65443
12719 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
12720 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
12721 (try_transform_to_exit_first_loop_alt): New function.
12722 (transform_to_exit_first_loop): Use
12723 try_transform_to_exit_first_loop_alt.
12725 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
12727 * builtins.c (expand_builtin_atomic_compare_exchange): Call
12728 emit_cmp_and_jump_insns with the mode of target.
12730 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12732 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
12734 2015-06-04 DJ Delorie <dj@redhat.com>
12736 * config/msp430/msp430.md (movsi_s): New. Special case for
12737 storing a 20-bit symbol into a 32-bit register.
12738 * config/msp430/msp430.c (msp430_subreg): Add support for it.
12739 * config/msp430/predicates.md (msp430_symbol_operand): New.
12741 2015-06-04 Sriraman Tallam <tmsriram@google.com>
12743 * c-family/c-common.c (noplt): New attribute.
12744 (handle_noplt_attribute): New handler.
12745 * calls.c (prepare_call_address): Check for noplt
12747 * config/i386/i386.c (ix86_expand_call): Check
12748 for noplt attribute.
12749 (ix86_nopic_noplt_attribute_p): New function.
12750 (ix86_output_call_insn): Output indirect call for non-pic
12752 * doc/extend.texi (noplt): Document new attribute.
12753 * doc/invoke.texi: Document new attribute.
12755 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
12757 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
12758 real.h, and fixed-value.h when included in host source files.
12759 * double-int.h: Remove redundant #includes listed above.
12760 * fixed-value.h: Likewise.
12761 * real.h: Likewise.
12762 * wide-int.h: Likewise.
12763 * inchash.h: Likewise.
12764 * rtl.h: Add some include files When included from a generator file.
12765 * target.h: Remove wide-int.h and insn-modes.h from the include list.
12766 * internal-fn.h: Don't include coretypes.h.
12767 * alias.c: Adjust includes for restructured coretypes.h.
12768 * asan.c: Likewise.
12769 * attribs.c: Likewise.
12770 * auto-inc-dec.c: Likewise.
12771 * auto-profile.c: Likewise.
12772 * bb-reorder.c: Likewise.
12773 * bt-load.c: Likewise.
12774 * builtins.c: Likewise.
12775 * caller-save.c: Likewise.
12776 * calls.c: Likewise.
12777 * ccmp.c: Likewise.
12779 * cfganal.c: Likewise.
12780 * cfgbuild.c: Likewise.
12781 * cfgcleanup.c: Likewise.
12782 * cfgexpand.c: Likewise.
12783 * cfghooks.c: Likewise.
12784 * cfgloop.c: Likewise.
12785 * cfgloop.h: Likewise.
12786 * cfgloopanal.c: Likewise.
12787 * cfgloopmanip.c: Likewise.
12788 * cfgrtl.c: Likewise.
12789 * cgraph.c: Likewise.
12790 * cgraphbuild.c: Likewise.
12791 * cgraphclones.c: Likewise.
12792 * cgraphunit.c: Likewise.
12793 * cilk-common.c: Likewise.
12794 * combine-stack-adj.c: Likewise.
12795 * combine.c: Likewise.
12796 * compare-elim.c: Likewise.
12797 * convert.c: Likewise.
12798 * coverage.c: Likewise.
12799 * cppbuiltin.c: Likewise.
12800 * cprop.c: Likewise.
12802 * cselib.c: Likewise.
12803 * data-streamer-in.c: Likewise.
12804 * data-streamer-out.c: Likewise.
12805 * data-streamer.c: Likewise.
12806 * dbxout.c: Likewise.
12809 * debug.c: Likewise.
12810 * df-core.c: Likewise.
12811 * df-problems.c: Likewise.
12812 * df-scan.c: Likewise.
12815 * dojump.c: Likewise.
12816 * dominance.c: Likewise.
12817 * domwalk.c: Likewise.
12818 * double-int.c: Likewise.
12820 * dumpfile.c: Likewise.
12821 * dwarf2asm.c: Likewise.
12822 * dwarf2cfi.c: Likewise.
12823 * dwarf2out.c: Likewise.
12824 * dwarf2out.h: Likewise.
12825 * emit-rtl.c: Likewise.
12826 * et-forest.c: Likewise.
12827 * except.c: Likewise.
12828 * explow.c: Likewise.
12829 * expmed.c: Likewise.
12830 * expr.c: Likewise.
12831 * final.c: Likewise.
12832 * fixed-value.c: Likewise.
12833 * fold-const.c: Likewise.
12834 * function.c: Likewise.
12835 * fwprop.c: Likewise.
12836 * gcc-plugin.h: Likewise.
12837 * gcse.c: Likewise.
12838 * generic-match-head.c: Likewise.
12839 * ggc-page.c: Likewise.
12840 * gimple-builder.c: Likewise.
12841 * gimple-expr.c: Likewise.
12842 * gimple-fold.c: Likewise.
12843 * gimple-iterator.c: Likewise.
12844 * gimple-low.c: Likewise.
12845 * gimple-match-head.c: Likewise.
12846 * gimple-pretty-print.c: Likewise.
12847 * gimple-ssa-isolate-paths.c: Likewise.
12848 * gimple-ssa-strength-reduction.c: Likewise.
12849 * gimple-streamer-in.c: Likewise.
12850 * gimple-streamer-out.c: Likewise.
12851 * gimple-streamer.h: Likewise.
12852 * gimple-walk.c: Likewise.
12853 * gimple.c: Likewise.
12854 * gimplify-me.c: Likewise.
12855 * gimplify.c: Likewise.
12856 * godump.c: Likewise.
12857 * graph.c: Likewise.
12858 * graphite-blocking.c: Likewise.
12859 * graphite-dependences.c: Likewise.
12860 * graphite-interchange.c: Likewise.
12861 * graphite-isl-ast-to-gimple.c: Likewise.
12862 * graphite-optimize-isl.c: Likewise.
12863 * graphite-poly.c: Likewise.
12864 * graphite-scop-detection.c: Likewise.
12865 * graphite-sese-to-poly.c: Likewise.
12866 * graphite.c: Likewise.
12867 * haifa-sched.c: Likewise.
12868 * hooks.h: Likewise.
12869 * hw-doloop.c: Likewise.
12870 * ifcvt.c: Likewise.
12871 * incpath.c: Likewise.
12872 * init-regs.c: Likewise.
12873 * internal-fn.c: Likewise.
12874 * ipa-chkp.c: Likewise.
12875 * ipa-comdats.c: Likewise.
12876 * ipa-cp.c: Likewise.
12877 * ipa-devirt.c: Likewise.
12878 * ipa-icf-gimple.c: Likewise.
12879 * ipa-icf.c: Likewise.
12880 * ipa-inline-analysis.c: Likewise.
12881 * ipa-inline-transform.c: Likewise.
12882 * ipa-inline.c: Likewise.
12883 * ipa-polymorphic-call.c: Likewise.
12884 * ipa-profile.c: Likewise.
12885 * ipa-prop.c: Likewise.
12886 * ipa-pure-const.c: Likewise.
12887 * ipa-ref.c: Likewise.
12888 * ipa-reference.c: Likewise.
12889 * ipa-split.c: Likewise.
12890 * ipa-utils.c: Likewise.
12891 * ipa-visibility.c: Likewise.
12893 * ira-build.c: Likewise.
12894 * ira-color.c: Likewise.
12895 * ira-conflicts.c: Likewise.
12896 * ira-costs.c: Likewise.
12897 * ira-emit.c: Likewise.
12898 * ira-lives.c: Likewise.
12900 * jump.c: Likewise.
12901 * langhooks.c: Likewise.
12903 * loop-doloop.c: Likewise.
12904 * loop-init.c: Likewise.
12905 * loop-invariant.c: Likewise.
12906 * loop-iv.c: Likewise.
12907 * loop-unroll.c: Likewise.
12908 * lower-subreg.c: Likewise.
12909 * lra-assigns.c: Likewise.
12910 * lra-coalesce.c: Likewise.
12911 * lra-constraints.c: Likewise.
12912 * lra-eliminations.c: Likewise.
12913 * lra-lives.c: Likewise.
12914 * lra-remat.c: Likewise.
12915 * lra-spills.c: Likewise.
12917 * lto-cgraph.c: Likewise.
12918 * lto-compress.c: Likewise.
12919 * lto-opts.c: Likewise.
12920 * lto-section-in.c: Likewise.
12921 * lto-section-out.c: Likewise.
12922 * lto-streamer-in.c: Likewise.
12923 * lto-streamer-out.c: Likewise.
12924 * lto-streamer.c: Likewise.
12926 * mode-switching.c: Likewise.
12927 * modulo-sched.c: Likewise.
12928 * omega.c: Likewise.
12929 * omp-low.c: Likewise.
12930 * optabs.c: Likewise.
12931 * opts-global.c: Likewise.
12932 * passes.c: Likewise.
12933 * plugin.c: Likewise.
12934 * postreload-gcse.c: Likewise.
12935 * postreload.c: Likewise.
12936 * predict.c: Likewise.
12937 * print-rtl.c: Likewise.
12938 * print-tree.c: Likewise.
12939 * profile.c: Likewise.
12940 * real.c: Likewise.
12941 * realmpfr.c: Likewise.
12942 * realmpfr.h: Likewise.
12943 * recog.c: Likewise.
12945 * reg-stack.c: Likewise.
12946 * regcprop.c: Likewise.
12947 * reginfo.c: Likewise.
12948 * regrename.c: Likewise.
12949 * regs.h: Likewise.
12950 * regstat.c: Likewise.
12951 * reload.c: Likewise.
12952 * reload1.c: Likewise.
12953 * reorg.c: Likewise.
12954 * resource.c: Likewise.
12955 * rtl-chkp.c: Likewise.
12956 * rtlanal.c: Likewise.
12957 * rtlhooks.c: Likewise.
12958 * sanopt.c: Likewise.
12959 * sched-deps.c: Likewise.
12960 * sched-ebb.c: Likewise.
12961 * sched-rgn.c: Likewise.
12962 * sched-vis.c: Likewise.
12963 * sdbout.c: Likewise.
12964 * sel-sched-dump.c: Likewise.
12965 * sel-sched-ir.c: Likewise.
12966 * sel-sched.c: Likewise.
12967 * sese.c: Likewise.
12968 * shrink-wrap.c: Likewise.
12969 * shrink-wrap.h: Likewise.
12970 * simplify-rtx.c: Likewise.
12971 * stack-ptr-mod.c: Likewise.
12972 * statistics.c: Likewise.
12973 * stmt.c: Likewise.
12974 * stor-layout.c: Likewise.
12975 * store-motion.c: Likewise.
12976 * stringpool.c: Likewise.
12977 * symtab.c: Likewise.
12978 * target-globals.c: Likewise.
12979 * targhooks.c: Likewise.
12980 * toplev.c: Likewise.
12981 * tracer.c: Likewise.
12982 * trans-mem.c: Likewise.
12983 * tree-affine.c: Likewise.
12984 * tree-affine.h: Likewise.
12985 * tree-browser.c: Likewise.
12986 * tree-call-cdce.c: Likewise.
12987 * tree-cfg.c: Likewise.
12988 * tree-cfgcleanup.c: Likewise.
12989 * tree-chkp-opt.c: Likewise.
12990 * tree-chkp.c: Likewise.
12991 * tree-chrec.c: Likewise.
12992 * tree-complex.c: Likewise.
12993 * tree-data-ref.c: Likewise.
12994 * tree-dfa.c: Likewise.
12995 * tree-diagnostic.c: Likewise.
12996 * tree-dump.c: Likewise.
12997 * tree-eh.c: Likewise.
12998 * tree-emutls.c: Likewise.
12999 * tree-if-conv.c: Likewise.
13000 * tree-inline.c: Likewise.
13001 * tree-into-ssa.c: Likewise.
13002 * tree-iterator.c: Likewise.
13003 * tree-loop-distribution.c: Likewise.
13004 * tree-nested.c: Likewise.
13005 * tree-nrv.c: Likewise.
13006 * tree-object-size.c: Likewise.
13007 * tree-outof-ssa.c: Likewise.
13008 * tree-parloops.c: Likewise.
13009 * tree-phinodes.c: Likewise.
13010 * tree-predcom.c: Likewise.
13011 * tree-pretty-print.c: Likewise.
13012 * tree-pretty-print.h: Likewise.
13013 * tree-profile.c: Likewise.
13014 * tree-scalar-evolution.c: Likewise.
13015 * tree-sra.c: Likewise.
13016 * tree-ssa-address.c: Likewise.
13017 * tree-ssa-alias.c: Likewise.
13018 * tree-ssa-ccp.c: Likewise.
13019 * tree-ssa-coalesce.c: Likewise.
13020 * tree-ssa-copy.c: Likewise.
13021 * tree-ssa-copyrename.c: Likewise.
13022 * tree-ssa-dce.c: Likewise.
13023 * tree-ssa-dom.c: Likewise.
13024 * tree-ssa-dse.c: Likewise.
13025 * tree-ssa-forwprop.c: Likewise.
13026 * tree-ssa-ifcombine.c: Likewise.
13027 * tree-ssa-live.c: Likewise.
13028 * tree-ssa-loop-ch.c: Likewise.
13029 * tree-ssa-loop-im.c: Likewise.
13030 * tree-ssa-loop-ivcanon.c: Likewise.
13031 * tree-ssa-loop-ivopts.c: Likewise.
13032 * tree-ssa-loop-manip.c: Likewise.
13033 * tree-ssa-loop-niter.c: Likewise.
13034 * tree-ssa-loop-prefetch.c: Likewise.
13035 * tree-ssa-loop-unswitch.c: Likewise.
13036 * tree-ssa-loop.c: Likewise.
13037 * tree-ssa-loop.h: Likewise.
13038 * tree-ssa-math-opts.c: Likewise.
13039 * tree-ssa-operands.c: Likewise.
13040 * tree-ssa-phiopt.c: Likewise.
13041 * tree-ssa-phiprop.c: Likewise.
13042 * tree-ssa-pre.c: Likewise.
13043 * tree-ssa-propagate.c: Likewise.
13044 * tree-ssa-reassoc.c: Likewise.
13045 * tree-ssa-sccvn.c: Likewise.
13046 * tree-ssa-scopedtables.c: Likewise.
13047 * tree-ssa-sink.c: Likewise.
13048 * tree-ssa-strlen.c: Likewise.
13049 * tree-ssa-structalias.c: Likewise.
13050 * tree-ssa-tail-merge.c: Likewise.
13051 * tree-ssa-ter.c: Likewise.
13052 * tree-ssa-threadedge.c: Likewise.
13053 * tree-ssa-threadupdate.c: Likewise.
13054 * tree-ssa-uncprop.c: Likewise.
13055 * tree-ssa-uninit.c: Likewise.
13056 * tree-ssa.c: Likewise.
13057 * tree-ssanames.c: Likewise.
13058 * tree-stdarg.c: Likewise.
13059 * tree-streamer-in.c: Likewise.
13060 * tree-streamer-out.c: Likewise.
13061 * tree-streamer.c: Likewise.
13062 * tree-switch-conversion.c: Likewise.
13063 * tree-tailcall.c: Likewise.
13064 * tree-vect-data-refs.c: Likewise.
13065 * tree-vect-generic.c: Likewise.
13066 * tree-vect-loop-manip.c: Likewise.
13067 * tree-vect-loop.c: Likewise.
13068 * tree-vect-patterns.c: Likewise.
13069 * tree-vect-slp.c: Likewise.
13070 * tree-vect-stmts.c: Likewise.
13071 * tree-vectorizer.c: Likewise.
13072 * tree-vrp.c: Likewise.
13073 * tree.c: Likewise.
13074 * tsan.c: Likewise.
13075 * ubsan.c: Likewise.
13076 * valtrack.c: Likewise.
13077 * value-prof.c: Likewise.
13078 * var-tracking.c: Likewise.
13079 * varasm.c: Likewise.
13080 * varpool.c: Likewise.
13081 * vmsdbgout.c: Likewise.
13082 * vtable-verify.c: Likewise.
13084 * wide-int-print.cc: Likewise.
13085 * wide-int-print.h: Likewise.
13086 * wide-int.cc: Likewise.
13087 * xcoffout.c: Likewise.
13088 * config/aarch64/aarch64-builtins.c: Likewise.
13089 * config/aarch64/aarch64.c: Likewise.
13090 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13091 * config/alpha/alpha.c: Likewise.
13092 * config/arc/arc.c: Likewise.
13093 * config/arm/aarch-common.c: Likewise.
13094 * config/arm/arm-builtins.c: Likewise.
13095 * config/arm/arm-c.c: Likewise.
13096 * config/arm/arm.c: Likewise.
13097 * config/avr/avr-c.c: Likewise.
13098 * config/avr/avr-log.c: Likewise.
13099 * config/avr/avr.c: Likewise.
13100 * config/bfin/bfin.c: Likewise.
13101 * config/c6x/c6x.c: Likewise.
13102 * config/cr16/cr16.c: Likewise.
13103 * config/cris/cris.c: Likewise.
13104 * config/darwin-c.c: Likewise.
13105 * config/darwin.c: Likewise.
13106 * config/default-c.c: Likewise.
13107 * config/epiphany/epiphany.c: Likewise.
13108 * config/epiphany/mode-switch-use.c: Likewise.
13109 * config/epiphany/resolve-sw-modes.c: Likewise.
13110 * config/fr30/fr30.c: Likewise.
13111 * config/frv/frv.c: Likewise.
13112 * config/ft32/ft32.c: Likewise.
13113 * config/glibc-c.c: Likewise.
13114 * config/h8300/h8300.c: Likewise.
13115 * config/i386/i386-c.c: Likewise.
13116 * config/i386/i386.c: Likewise.
13117 * config/i386/msformat-c.c: Likewise.
13118 * config/i386/winnt-cxx.c: Likewise.
13119 * config/i386/winnt-stubs.c: Likewise.
13120 * config/i386/winnt.c: Likewise.
13121 * config/ia64/ia64-c.c: Likewise.
13122 * config/ia64/ia64.c: Likewise.
13123 * config/iq2000/iq2000.c: Likewise.
13124 * config/lm32/lm32.c: Likewise.
13125 * config/m32c/m32c-pragma.c: Likewise.
13126 * config/m32c/m32c.c: Likewise.
13127 * config/m32r/m32r.c: Likewise.
13128 * config/m68k/m68k.c: Likewise.
13129 * config/mcore/mcore.c: Likewise.
13130 * config/mep/mep-pragma.c: Likewise.
13131 * config/mep/mep.c: Likewise.
13132 * config/microblaze/microblaze-c.c: Likewise.
13133 * config/microblaze/microblaze.c: Likewise.
13134 * config/mips/mips.c: Likewise.
13135 * config/mmix/mmix.c: Likewise.
13136 * config/mn10300/mn10300.c: Likewise.
13137 * config/moxie/moxie.c: Likewise.
13138 * config/msp430/msp430-c.c: Likewise.
13139 * config/msp430/msp430.c: Likewise.
13140 * config/nds32/nds32-cost.c: Likewise.
13141 * config/nds32/nds32-fp-as-gp.c: Likewise.
13142 * config/nds32/nds32-intrinsic.c: Likewise.
13143 * config/nds32/nds32-isr.c: Likewise.
13144 * config/nds32/nds32-md-auxiliary.c: Likewise.
13145 * config/nds32/nds32-memory-manipulation.c: Likewise.
13146 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13147 * config/nds32/nds32-predicates.c: Likewise.
13148 * config/nds32/nds32.c: Likewise.
13149 * config/nios2/nios2.c: Likewise.
13150 * config/nvptx/nvptx.c: Likewise.
13151 * config/pa/pa.c: Likewise.
13152 * config/pdp11/pdp11.c: Likewise.
13153 * config/rl78/rl78-c.c: Likewise.
13154 * config/rl78/rl78.c: Likewise.
13155 * config/rs6000/rs6000-c.c: Likewise.
13156 * config/rs6000/rs6000.c: Likewise.
13157 * config/rx/rx.c: Likewise.
13158 * config/s390/s390-c.c: Likewise.
13159 * config/s390/s390.c: Likewise.
13160 * config/sh/sh-c.c: Likewise.
13161 * config/sh/sh-mem.cc: Likewise.
13162 * config/sh/sh.c: Likewise.
13163 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13164 * config/sh/sh_treg_combine.cc: Likewise.
13165 * config/sol2-c.c: Likewise.
13166 * config/sol2-cxx.c: Likewise.
13167 * config/sol2-stubs.c: Likewise.
13168 * config/sol2.c: Likewise.
13169 * config/sparc/sparc-c.c: Likewise.
13170 * config/sparc/sparc.c: Likewise.
13171 * config/spu/spu-c.c: Likewise.
13172 * config/spu/spu.c: Likewise.
13173 * config/stormy16/stormy16.c: Likewise.
13174 * config/tilegx/mul-tables.c: Likewise.
13175 * config/tilegx/tilegx-c.c: Likewise.
13176 * config/tilegx/tilegx.c: Likewise.
13177 * config/tilepro/mul-tables.c: Likewise.
13178 * config/tilepro/tilepro-c.c: Likewise.
13179 * config/tilepro/tilepro.c: Likewise.
13180 * config/v850/v850-c.c: Likewise.
13181 * config/v850/v850.c: Likewise.
13182 * config/vax/vax.c: Likewise.
13183 * config/visium/visium.c: Likewise.
13184 * config/vms/vms-c.c: Likewise.
13185 * config/vms/vms.c: Likewise.
13186 * config/vxworks.c: Likewise.
13187 * config/winnt-c.c: Likewise.
13188 * config/xtensa/xtensa.c: Likewise.
13189 * common/config/bfin/bfin-common.c: Likewise.
13191 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
13193 * tree.h (tree_code_for_canonical_type_merging): New function.
13194 * tree.c (gimple_canonical_types_compatible_p): Use
13195 tree_code_for_canonical_type_merging..
13197 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13201 * doc/tm.texi: Regenerate.
13202 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
13203 * target.def (TARGET_RELAXED_ORDERING): Likewise.
13204 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
13205 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
13206 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
13207 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
13208 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
13209 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
13210 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
13212 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13214 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
13215 register fma steering pass.
13216 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
13217 AARCH64_TUNE_FMA_STEERING.
13219 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
13221 * tree.c (verify_type_variant): Verify that type and variant is
13223 (gimple_canonical_types_compatible_p): Look for main variants.
13225 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13227 * config.gcc (powerpc*-*-*): Add support for a new configure
13228 option --with-advance-toolchain=<xxx> which overrides using the
13229 default header files, libraries and dynamic linker.
13231 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
13232 specs to support the configure --with-advance-toolchain=<xxx>
13234 (INCLUDE_EXTRA_SPEC): Likewise.
13235 (LINK_OS_EXTRA_SPEC32): Likewise.
13236 (LINK_OK_EXTRA_SPEC64): Likewise.
13237 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
13238 (DYNAMIC_LINKER_PREFIX): Likewise.
13239 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
13241 (GLIBC_DYNAMIC_LINKER32): Likewise.
13242 (GLIBC_DYNAMIC_LINKER64): Likewise.
13243 (LINK_OS_LINUX_SPEC32): Likewise.
13244 (LINK_OS_LINUX_SPEC64): Likewise.
13246 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
13247 configuration option.
13249 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
13252 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
13253 to determine current function ABI.
13254 (ix86_function_value_regno_p): Ditto.
13256 2015-06-03 Martin Liska <mliska@suse.cz>
13258 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
13259 * bitmap.h (struct bitmap_usage): Likewise.
13260 * ggc-common.c (struct ggc_usage): Likewise.
13261 * mem-stats.h (struct mem_location): Likewise.
13262 (struct mem_usage): Likewise.
13263 * vec.c (struct vec_usage): Likewise.
13265 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
13267 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
13270 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
13272 * doc/plugins.texi (enum plugin_event): New event.
13273 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
13274 and PLUGIN_FINISH_FUNCTION.
13275 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
13276 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
13278 2015-06-03 Richard Biener <rguenther@suse.de>
13280 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
13281 compute GROUP_GAP for the first element.
13282 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
13285 2015-06-03 Nick Clifton <nickc@redhat.com>
13287 * config/rl78/rl78-real.md: Add peepholes to avoid a register
13288 copy when calling a function.
13289 * config/rl78/rl78.c (need_to_save): Do not push the frame
13290 pointer in an interrupt handler prologue if it is never used.
13292 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13294 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
13296 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
13298 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
13299 reference when cloning alias node.
13301 2015-06-03 Martin Liska <mliska@suse.cz>
13303 * alloc-pool.h (struct pool_usage): Correct space padding.
13304 * ggc-page.c (ggc_print_statistics): Align columns in a report.
13305 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
13306 * tree.c (dump_tree_statistics): Align columns in a report.
13308 2015-06-03 Martin Liska <mliska@suse.cz>
13310 * alloc-pool.c (allocate_pool_descriptor): Remove.
13311 (struct pool_output_info): Likewise.
13312 (print_alloc_pool_statistics): Likewise.
13313 (dump_alloc_pool_statistics): Likewise.
13314 * alloc-pool.h (struct pool_usage): New struct.
13315 (pool_allocator::initialize): Change usage of memory statistics
13316 to a new interface.
13317 (pool_allocator::release): Likewise.
13318 (pool_allocator::allocate): Likewise.
13319 (pool_allocator::remove): Likewise.
13320 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
13321 for a pool allocator.
13322 * mem-stats.h (struct mem_location): Add new ctor.
13323 (struct mem_usage): Add counter for number of
13325 (mem_alloc_description::register_descriptor): New overload of
13326 * mem-stats.h (mem_location::to_string): New function.
13327 * bitmap.h (struct bitmap_usage): Use this new function.
13328 * ggc-common.c (struct ggc_usage): Likewise.
13331 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
13333 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
13334 of GCC_INSN_FLAGS_H block.
13336 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13338 * explow.c (plus_constant): Update check after force_const_mem call
13339 to see if the value returned is not a NULL_RTX.
13341 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
13343 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
13344 remove instumentation thunks calling reachable functions.
13345 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
13346 * lto/lto-partition.c (privatize_symbol_name_1): New.
13347 (privatize_symbol_name): Privatize both decl and orig_decl
13348 names for instrumented functions.
13349 * cgraph.c (cgraph_node::verify_node): Add transparent
13350 alias chain check for instrumented node.
13352 2015-06-03 Marek Polacek <polacek@redhat.com>
13356 * tree.c (attribute_value_equal): Handle attribute format.
13357 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
13359 2015-06-03 Richard Biener <rguenther@suse.de>
13361 PR tree-optimization/63916
13362 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
13363 Forward-propagate non-invariant addresses by splicing their
13364 reference ops if the result isn't going to be used by PRE.
13365 (vn_reference_lookup_3): Remove pointless assert.
13367 2015-06-03 Richard Biener <rguenther@suse.de>
13369 PR tree-optimization/66375
13370 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
13371 add to the evolution before following SSA edges.
13373 2015-06-03 Bin Cheng <bin.cheng@arm.com>
13375 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
13376 (dump_use, dump_cand, find_induction_variables): Pass new argument
13378 (record_use): Preserve the ssa name information in IV.
13380 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
13382 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
13384 (add_mode_tests): Don't add mode tests if the predicate only
13385 accepts scalar constant integers. Otherwise, allow the mode
13386 of "op" to be VOIDmode if the predicate does accept such integers.
13388 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
13391 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
13392 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
13393 (aarch64_secondary_reload): Likewise
13394 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
13396 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
13399 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
13400 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13403 * cprop.c (try_replace_reg): Check cost of constants before propagating.
13405 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13407 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
13408 provide access to the IBM extended double floating point mode if
13409 long double is IEEE 128-bit floating point.
13410 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
13411 point if long double is the IBM extended double type.
13413 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
13414 enable adding IEEE 128-bit floating point support.
13415 (-mfloat128-software): Likewise.
13416 (-mfloat128-sw): Likewise.
13418 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
13419 128-bit floating point types to occupy any register if
13420 -mlong-double-64. Do not allow use of IFmode/KFmode unless
13421 -mfloat128-software is enabled.
13422 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
13424 (rs6000_option_override_internal): Add -mfloat128-* support.
13425 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
13427 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
13428 and float128 type nodes.
13429 (ieee128_float_type_node): Likewise.
13430 (ibm128_float_type_node): Likewise.
13432 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
13435 * config/aarch64/geniterators.sh: Rewrite in awk.
13437 2015-06-02 Martin Liska <mliska@suse.cz>
13439 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
13440 values to avoid -Wmaybe-uninitialized errors.
13442 2015-06-02 Richard Biener <rguenther@suse.de>
13445 * dwarf2out.c (lookup_context_die): New function.
13446 (resolve_addr): Avoid forcing a full DIE for the
13447 target of a DW_TAG_GNU_call_site during late compilation.
13448 Instead create a stub DIE without a type if we have a
13449 context DIE present.
13451 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
13453 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
13455 2015-06-02 Bin Cheng <bin.cheng@arm.com>
13457 PR tree-optimization/48052
13458 * cfgloop.h (struct control_iv): New.
13459 (struct loop): New field control_ivs.
13460 * tree-ssa-loop-niter.c : Include "stor-layout.h".
13461 (number_of_iterations_lt): Set no_overflow information.
13462 (number_of_iterations_exit): Init control iv in niter struct.
13463 (record_control_iv): New.
13464 (estimate_numbers_of_iterations_loop): Call record_control_iv.
13465 (loop_exits_before_overflow): New. Interface factored out of
13466 scev_probably_wraps_p.
13467 (scev_probably_wraps_p): Factor loop niter related code into
13468 loop_exits_before_overflow.
13469 (free_numbers_of_iterations_estimates_loop): Free control ivs.
13470 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
13472 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
13474 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
13475 the target doesn't belong to the current function.
13477 2015-06-02 Marek Polacek <polacek@redhat.com>
13479 PR middle-end/66345
13480 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
13481 get_maxval_strlen does not produce an INTEGER_CST.
13483 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
13485 * config/arc/constraints.md: Use lower-case names in match_code.
13486 * config/mmix/constraints.md: Likewise.
13488 2015-06-02 Richard Biener <rguenther@suse.de>
13490 PR tree-optimization/65961
13491 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
13492 check and clarify dump message.
13493 (vect_build_slp_tree): If all children are built up from scalars
13494 build up the parent from scalars instead.
13495 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
13497 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13500 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
13501 instead of print ... .
13503 2015-06-02 Alan Modra <amodra@gmail.com>
13505 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
13508 2015-06-02 Bin Cheng <bin.cheng@arm.com>
13510 PR tree-optimization/52563
13511 PR tree-optimization/62173
13512 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
13513 (alloc_iv, set_iv): New parameter.
13514 (determine_biv_step): Delete.
13515 (find_bivs): Inline original determine_biv_step. Pass new
13516 argument to set_iv.
13517 (idx_find_step): Use no_overflow information for conversion.
13518 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
13519 resolve_mixers handle folded_casts.
13520 (instantiate_scev_name): Change bool parameter to bool pointer.
13521 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
13522 (instantiate_array_ref, instantiate_scev_not): Ditto.
13523 (instantiate_scev_3, instantiate_scev_2): Ditto.
13524 (instantiate_scev_1, instantiate_scev_r): Ditto.
13525 (instantiate_scev_convert, ): Change parameter. Pass argument
13526 to chrec_convert_aggressive.
13527 (instantiate_scev): Change argument.
13528 (resolve_mixers): New parameter and set it.
13529 (scev_const_prop): New argument.
13530 * tree-scalar-evolution.h (resolve_mixers): New parameter.
13531 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
13533 (chrec_convert): New parameter. Move definition below.
13534 (chrec_convert_aggressive): New parameter and set it. Call
13535 convert_affine_scev.
13536 * tree-chrec.h (chrec_convert): New parameter.
13537 (chrec_convert_aggressive): Ditto.
13539 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
13541 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
13542 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
13543 the LHS of a no-return call if its type has variable size.
13544 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
13545 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
13547 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
13549 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
13550 * config.in: Regenerate.
13552 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13554 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
13555 consecutive accesses within outer-loop with force_vectorize
13556 for references with zero step in inner-loop.
13558 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
13560 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
13561 rather than from gcc/build directory.
13563 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
13566 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
13567 for __sync memory models, emit initial loads and final barriers as
13570 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
13573 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
13574 (aarch64_split_atomic_op): Check for __sync memory models, emit
13575 appropriate initial loads and final barriers.
13577 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
13579 * Makefile.in: Fix gcov dependencies that should
13580 not point to a build folder.
13582 2015-06-01 Richard Biener <rguenther@suse.de>
13585 2015-05-29 Richard Biener <rguenther@suse.de>
13587 PR tree-optimization/66314
13588 * tree-ssa-threadupdate.c (create_block_for_threading): Add
13589 parameter that says which loop the new block belongs to.
13590 (ssa_create_duplicates): Blocks duplicated for the threaded
13591 path belong to the loop of the thread destination.
13593 2015-06-01 Martin Liska <mliska@suse.cz>
13595 * sched-deps.c: Include pool-alloc.h before
13596 cselib.h header file is included.
13598 2015-06-01 Richard Biener <rguenther@suse.de>
13600 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
13603 2015-06-01 Martin Liska <mliska@suse.cz>
13605 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
13606 a function local variable.
13608 2015-06-01 Martin Liska <mliska@suse.cz>
13610 * alloc-pool.c (create_alloc_pool): Remove.
13611 (empty_alloc_pool): Likewise.
13612 (free_alloc_pool): Likewise.
13613 (free_alloc_pool_if_empty): Likewise.
13614 (pool_alloc): Likewise.
13615 (pool_free): Likewise.
13616 * alloc-pool.h: Remove old declarations.
13618 2015-06-01 Martin Liska <mliska@suse.cz>
13620 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
13621 (ira_create_object): Likewise.
13622 (ira_create_allocno): Likewise.
13623 (ira_create_live_range): Likewise.
13624 (copy_live_range): Likewise.
13625 (ira_finish_live_range): Likewise.
13626 (ira_free_allocno_costs): Likewise.
13627 (finish_allocno): Likewise.
13628 (finish_allocnos): Likewise.
13629 (initiate_prefs): Likewise.
13630 (ira_create_pref): Likewise.
13631 (finish_pref): Likewise.
13632 (finish_prefs): Likewise.
13633 (initiate_copies): Likewise.
13634 (ira_create_copy): Likewise.
13635 (finish_copy): Likewise.
13636 (finish_copies): Likewise.
13637 (finish_prefs): Likewise.
13639 2015-06-01 Martin Liska <mliska@suse.cz>
13641 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
13642 (allocate_and_init_ipcp_value): Likewise.
13643 (ipcp_lattice::add_value): Likewise.
13644 (merge_agg_lats_step): Likewise.
13645 (ipcp_driver): Likewise.
13646 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
13647 (ipa_free_all_structures_after_iinln): Likewise.
13648 * ipa-prop.h: Likewise.
13650 2015-06-01 Martin Liska <mliska@suse.cz>
13652 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
13654 (set_hint_predicate): Likewise.
13655 (inline_summary_alloc): Likewise.
13656 (reset_inline_edge_summary): Likewise.
13657 (reset_inline_summary): Likewise.
13658 (set_cond_stmt_execution_predicate): Likewise.
13659 (set_switch_stmt_execution_predicate): Likewise.
13660 (compute_bb_predicates): Likewise.
13661 (estimate_function_body_sizes): Likewise.
13662 (inline_free_summary): Likewise.
13664 2015-06-01 Martin Liska <mliska@suse.cz>
13666 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
13667 (ipa_edge_duplication_hook): Likewise.
13668 (ipa_free_all_structures_after_ipa_cp): Likewise.
13669 (ipa_free_all_structures_after_iinln): Likewise.
13671 2015-06-01 Martin Liska <mliska@suse.cz>
13673 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
13674 (ipa_profile_generate_summary): Likewise.
13675 (ipa_profile_read_summary): Likewise.
13676 (ipa_profile): Likewise.
13678 2015-06-01 Martin Liska <mliska@suse.cz>
13680 * tree-ssa-structalias.c (new_var_info): Use new type-based
13682 (new_constraint): Likewise.
13683 (init_alias_vars): Likewise.
13684 (delete_points_to_sets): Likewise.
13686 2015-06-01 Martin Liska <mliska@suse.cz>
13688 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
13689 (free_strinfo): Likewise.
13690 (pass_strlen::execute): Likewise.
13692 2015-06-01 Martin Liska <mliska@suse.cz>
13694 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
13696 (vn_reference_insert_pieces): Likewise.
13697 (vn_phi_insert): Likewise.
13698 (visit_reference_op_call): Likewise.
13699 (copy_phi): Likewise.
13700 (copy_reference): Likewise.
13701 (process_scc): Likewise.
13702 (allocate_vn_table): Likewise.
13703 (free_vn_table): Likewise.
13705 2015-06-01 Martin Liska <mliska@suse.cz>
13707 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
13709 (add_repeat_to_ops_vec): Likewise.
13710 (get_ops): Likewise.
13711 (maybe_optimize_range_tests): Likewise.
13712 (init_reassoc): Likewise.
13713 (fini_reassoc): Likewise.
13715 2015-06-01 Martin Liska <mliska@suse.cz>
13717 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
13719 (bitmap_set_new): Likewise.
13720 (get_or_alloc_expr_for_constant): Likewise.
13721 (get_or_alloc_expr_for): Likewise.
13722 (phi_translate_1): Likewise.
13723 (compute_avail): Likewise.
13724 (init_pre): Likewise.
13725 (fini_pre): Likewise.
13727 2015-06-01 Martin Liska <mliska@suse.cz>
13729 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
13730 (delete_dep_node): Likewise.
13731 (create_deps_list): Likewise.
13732 (free_deps_list): Likewise.
13733 (sched_deps_init): Likewise.
13734 (sched_deps_finish): Likewise.
13736 2015-06-01 Martin Liska <mliska@suse.cz>
13738 * regcprop.c (free_debug_insn_changes): Use new type-based
13740 (replace_oldest_value_reg): Likewise.
13741 (pass_cprop_hardreg::execute): Likewise.
13743 2015-06-01 Martin Liska <mliska@suse.cz>
13745 * ira-build.c (initiate_cost_vectors): Use new type-based
13747 (ira_allocate_cost_vector): Likewise.
13748 (ira_free_cost_vector): Likewise.
13749 (finish_cost_vectors): Likewise.
13751 2015-06-01 Martin Liska <mliska@suse.cz>
13753 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
13755 (free_sched_pools): Likewise.
13756 * sel-sched-ir.h (_list_alloc): Likewise.
13757 (_list_remove): Likewise.
13759 2015-06-01 Martin Liska <mliska@suse.cz>
13761 * stmt.c (add_case_node): Use new type-based pool allocator.
13762 (expand_case): Likewise.
13763 (expand_sjlj_dispatch_table): Likewise.
13765 2015-06-01 Martin Liska <mliska@suse.cz>
13767 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
13768 (free_bb): Likewise.
13769 (pass_cse_reciprocals::execute): Likewise.
13771 2015-06-01 Martin Liska <mliska@suse.cz>
13773 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
13774 (sra_deinitialize) Likewise.
13775 (create_access_1) Likewise.
13776 (build_accesses_from_assign) Likewise.
13777 (create_artificial_child_access) Likewise.
13779 2015-06-01 Martin Liska <mliska@suse.cz>
13781 * dse.c (get_group_info):Use new type-based pool allocator.
13782 (dse_step0) Likewise.
13783 (free_store_info) Likewise.
13784 (delete_dead_store_insn) Likewise.
13785 (free_read_records) Likewise.
13786 (record_store) Likewise.
13787 (replace_read) Likewise.
13788 (check_mem_read_rtx) Likewise.
13789 (scan_insn) Likewise.
13790 (dse_step1) Likewise.
13791 (dse_step7) Likewise.
13793 2015-06-01 Martin Liska <mliska@suse.cz>
13795 * df-scan.c (struct df_scan_problem_data):Use new type-based
13797 (df_scan_free_internal) Likewise.
13798 (df_scan_alloc) Likewise.
13799 (df_grow_reg_info) Likewise.
13800 (df_free_ref) Likewise.
13801 (df_insn_create_insn_record) Likewise.
13802 (df_mw_hardreg_chain_delete) Likewise.
13803 (df_insn_info_delete) Likewise.
13804 (df_free_collection_rec) Likewise.
13805 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
13806 (df_sort_and_compress_mws) Likewise.
13807 (df_ref_create_structure) Likewise.
13808 (df_ref_record) Likewise.
13810 2015-06-01 Martin Liska <mliska@suse.cz>
13812 * df-problems.c (df_chain_create):Use new type-based pool allocator.
13813 (df_chain_unlink_1) Likewise.
13814 (df_chain_unlink) Likewise.
13815 (df_chain_remove_problem) Likewise.
13816 (df_chain_alloc) Likewise.
13817 (df_chain_free) Likewise.
13818 * df.h (struct dataflow) Likewise.
13820 2015-06-01 Martin Liska <mliska@suse.cz>
13822 * cselib.c (new_elt_list):Use new type-based pool allocator.
13823 (new_elt_loc_list) Likewise.
13824 (unchain_one_elt_list) Likewise.
13825 (unchain_one_elt_loc_list) Likewise.
13826 (unchain_one_value) Likewise.
13827 (new_cselib_val) Likewise.
13828 (cselib_init) Likewise.
13829 (cselib_finish) Likewise.
13831 2015-06-01 Martin Liska <mliska@suse.cz>
13833 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
13834 (sh_reorg) Likewise.
13836 2015-06-01 Martin Liska <mliska@suse.cz>
13838 * cfg.c (initialize_original_copy_tables):Use new type-based
13840 (free_original_copy_tables) Likewise.
13841 (copy_original_table_clear) Likewise.
13842 (copy_original_table_set) Likewise.
13844 2015-06-01 Martin Liska <mliska@suse.cz>
13846 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
13848 (asan_mem_ref_new) Likewise.
13849 (free_mem_ref_resources) Likewise.
13851 2015-06-01 Martin Liska <mliska@suse.cz>
13853 * var-tracking.c (variable_htab_free):Use new type-based
13855 (attrs_list_clear) Likewise.
13856 (attrs_list_insert) Likewise.
13857 (attrs_list_copy) Likewise.
13858 (shared_hash_unshare) Likewise.
13859 (shared_hash_destroy) Likewise.
13860 (unshare_variable) Likewise.
13861 (var_reg_delete_and_set) Likewise.
13862 (var_reg_delete) Likewise.
13863 (var_regno_delete) Likewise.
13864 (drop_overlapping_mem_locs) Likewise.
13865 (variable_union) Likewise.
13866 (insert_into_intersection) Likewise.
13867 (canonicalize_values_star) Likewise.
13868 (variable_merge_over_cur) Likewise.
13869 (dataflow_set_merge) Likewise.
13870 (remove_duplicate_values) Likewise.
13871 (variable_post_merge_new_vals) Likewise.
13872 (dataflow_set_preserve_mem_locs) Likewise.
13873 (dataflow_set_remove_mem_locs) Likewise.
13874 (variable_from_dropped) Likewise.
13875 (variable_was_changed) Likewise.
13876 (set_slot_part) Likewise.
13877 (clobber_slot_part) Likewise.
13878 (delete_slot_part) Likewise.
13879 (loc_exp_insert_dep) Likewise.
13880 (notify_dependents_of_changed_value) Likewise.
13881 (emit_notes_for_differences_1) Likewise.
13882 (vt_emit_notes) Likewise.
13883 (vt_initialize) Likewise.
13884 (vt_finalize) Likewise.
13886 2015-06-01 Martin Liska <mliska@suse.cz>
13888 * ira-color.c (init_update_cost_records):Use new type-based
13890 (get_update_cost_record) Likewise.
13891 (free_update_cost_record_list) Likewise.
13892 (finish_update_cost_records) Likewise.
13893 (initiate_cost_update) Likewise.
13895 2015-06-01 Martin Liska <mliska@suse.cz>
13897 * lra.c (init_insn_regs): Use new type-based pool allocator.
13898 (new_insn_reg) Likewise.
13899 (free_insn_reg) Likewise.
13900 (free_insn_regs) Likewise.
13901 (finish_insn_regs) Likewise.
13902 (init_insn_recog_data) Likewise.
13903 (init_reg_info) Likewise.
13904 (finish_reg_info) Likewise.
13905 (lra_free_copies) Likewise.
13906 (lra_create_copy) Likewise.
13907 (invalidate_insn_data_regno_info) Likewise.
13909 2015-06-01 Martin Liska <mliska@suse.cz>
13911 * lra-lives.c (free_live_range): Use new type-based pool allocator.
13912 (free_live_range_list) Likewise.
13913 (create_live_range) Likewise.
13914 (copy_live_range) Likewise.
13915 (lra_merge_live_ranges) Likewise.
13916 (remove_some_program_points_and_update_live_ranges) Likewise.
13917 (lra_live_ranges_init) Likewise.
13918 (lra_live_ranges_finish) Likewise.
13920 2015-06-01 Martin Liska <mliska@suse.cz>
13922 * et-forest.c (et_new_occ): Use new type-based pool allocator.
13923 (et_new_tree): Likewise.
13924 (et_free_tree): Likewise.
13925 (et_free_tree_force): Likewise.
13926 (et_free_pools): Likewise.
13927 (et_split): Likewise.
13929 2015-06-01 Martin Liska <mliska@suse.cz>
13931 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
13933 * alloc-pool.h (pool_allocator::pool_allocator): New function.
13934 (pool_allocator::release): Likewise.
13935 (inline pool_allocator::release_if_empty): Likewise.
13936 (inline pool_allocator::~pool_allocator): Likewise.
13937 (pool_allocator::allocate): Likewise.
13938 (pool_allocator::remove): Likewise.
13940 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
13942 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
13945 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
13947 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
13949 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
13950 (arm_macro_fusion_p): Likewise.
13951 (arm_macro_fusion_pair_p): Likewise.
13953 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
13955 * config/aarch64/aarch64-protos.h (tune_params): Rename
13956 fuseable_ops to fusible_ops.
13957 * config/aarch64/aarch64.c (generic_tunings): Rename
13958 fuseable_ops to fusible_ops.
13959 (cortexa53_tunings): Likewise.
13960 (cortexa57_tunings): Likewise.
13961 (thunderx_tunings): Likewise.
13962 (xgene1_tunings): Likewise.
13963 (aarch64_macro_fusion_p): Likewise.
13964 (aarch64_macro_fusion_pair_p): Likewise.
13966 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
13968 * config/s390/driver-native.c: New file.
13969 * config/s390/x-native: New file.
13970 * config.host: Add new files for s390.
13971 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
13973 * config.gcc: Likewise.
13974 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
13975 * config/s390/s390-opts.h (enum processor_type): Ditto.
13976 * config/s390/s390.c (s390_option_override): Catch unhandled
13979 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
13982 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
13983 redirection for instrumented calls.
13984 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
13985 (append_compiler_options): Append -fcheck-pointer-bounds.
13986 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
13987 (chkp_redirect_edge): New.
13988 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
13989 (chkp_redirect_edge): New.
13991 2015-06-01 Richard Biener <rguenther@suse.de>
13993 PR tree-optimization/66280
13994 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
13997 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13999 * config/aarch64/aarch64.md
14000 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
14003 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
14005 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
14006 Remove obsolete kludge.
14008 2015-06-01 Richard Biener <rguenther@suse.de>
14010 * tree-ssa-reassoc.c (get_rank): Simplify.
14012 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
14014 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
14015 * configure: Regenerated.
14017 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
14019 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
14020 issue (add space between string literal and macro).
14021 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
14023 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
14025 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
14026 implict or explicit -fPIE or -fpie.
14028 2015-05-30 Mike Frysinger <vapier@gentoo.org>
14030 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
14032 2015-05-28 DJ Delorie <dj@redhat.com>
14034 * expmed.c (extract_bit_field_1): Avoid clobbering a
14035 yet-to-be-used base/index register.
14037 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
14039 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
14040 (alias_stats): Add num_universal.
14041 (alias_set_subset_of): Special case pointers; be ready for NULL
14043 (alias_sets_conflict_p): Special case pointers; be ready for NULL
14045 (init_alias_set_entry): Break out from ...
14046 (record_alias_subset): ... here; propagate new fields;
14047 allocate children only when really needed.
14048 (get_alias_set): Do less generous pointer globbing.
14049 (dump_alias_stats_in_alias_c): Update statistics.
14051 2015-05-30 Alan Modra <amodra@gmail.com>
14053 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
14054 correct block for use of r12.
14055 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
14057 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
14060 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
14063 2015-05-29 Jakub Jelinek <jakub@redhat.com>
14065 PR tree-optimization/66142
14066 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
14067 virtual phis that feed themselves.
14069 2015-05-29 Richard Biener <rguenther@suse.de>
14071 PR tree-optimization/66314
14072 * tree-ssa-threadupdate.c (create_block_for_threading): Add
14073 parameter that says which loop the new block belongs to.
14074 (ssa_create_duplicates): Blocks duplicated for the threaded
14075 path belong to the loop of the thread destination.
14077 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14079 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
14080 to cleanup-saved-temps.
14081 * doc/sourcebuild.texi (Clean up generated test files): Expand
14083 (dg-keep-saved-temps): Document new proc.
14084 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
14085 cleanup-saved-temps): Remove.
14087 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
14089 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
14090 gcc_AC_CHECK_DECLS.
14091 * configure: Regenerate.
14093 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14095 * config/nios2/linux.h (CPP_SPEC): Define.
14097 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14099 * config/microblaze/linux.h (CPP_SPEC): Define.
14101 2015-05-28 Mike Frysinger <vapier@gentoo.org>
14103 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
14104 -pthread is specified.
14106 2015-05-28 Richard Biener <rguenther@suse.de>
14108 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
14109 (vect_fixup_scalar_cycles_with_patterns): Likewise.
14110 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
14111 after pattern recog.
14112 (vect_create_epilog_for_reduction): Properly handle reductions
14114 (vectorizable_reduction): Likewise.
14115 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
14117 (vect_get_constant_vectors): Create the correct number of
14118 initial values for reductions.
14119 (vect_schedule_slp_instance): Handle reduction chains that are
14120 type changing properly.
14121 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
14123 2015-05-28 Richard Biener <rguenther@suse.de>
14125 PR tree-optimization/66142
14126 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
14127 values better in memcpy destination handling. Handle non-aliasing
14130 2015-05-28 Lawrence Velázquez <vq@larryv.me>
14133 * config/darwin-c.c (version_components): New global enum.
14134 (parse_version, version_as_legacy_macro)
14135 (version_as_modern_macro, macosx_version_as_macro): New functions.
14136 (version_as_macro): Remove.
14137 (darwin_cpp_builtins): Use new function.
14139 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
14141 * builtins.c (expand_builtin_acc_on_device): Mark parameters
14142 with ATTRIBUTE_UNUSED.
14144 2015-05-28 Julian Brown <julian@codesourcery.com>
14148 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
14149 sequence for !ACCEL_COMPILER.
14151 2015-05-28 Nick Clifton <nickc@redhat.com>
14153 * config/rx/rx.c (push_regs): New function. Extracts code from...
14154 (rx_expand_prologue): ... here. Use push_regs to push even small
14155 spans of registers.
14156 (pop_regs): New function.
14157 (rx_expand_epilogue): Use pop_regs to pop even small spans of
14160 2015-05-28 Richard Biener <rguenther@suse.de>
14162 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
14164 (SLP_INSTANCE_BODY_COST_VEC): Remove.
14165 (vect_update_slp_costs_according_to_vf): Likewise.
14166 (vect_slp_analyze_operations): Update prototype.
14167 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
14168 vect_update_slp_costs_according_to_vf, adjust.
14169 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
14170 (vect_analyze_slp_cost_1): Likewise.
14171 (vect_analyze_slp_cost): Likewise. Properly deal with
14172 widening reduction ops. Commit body costs.
14173 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
14174 cost for loops from here.
14175 (vect_slp_analyze_operations): But do it from here when
14176 the vectorization factor is known and stmts are analyzed.
14177 (vect_bb_vectorization_profitable_p): Simplify.
14178 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
14179 (vect_update_slp_costs_according_to_vf): Remove.
14181 2015-05-27 Magnus Granberg <zorry@gentoo.org>
14182 H.J. Lu <hongjiu.lu@intel.com>
14184 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
14185 (BUILD_CFLAGS): Likewise.
14186 (BUILD_CXXFLAGS): Likewise.
14187 (LINKER): Add @NO_PIE_FLAG@.
14188 (BUILD_LDFLAGS): Likewise.
14189 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
14190 --enable-default-pie.
14191 * common.opt (fPIE): Initialize to -1.
14193 (no-pie): New option.
14194 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
14195 * configure.ac: Add --enable-default-pie.
14196 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
14197 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
14198 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
14199 * gcc.c (NO_PIE_SPEC): New.
14200 (PIE_SPEC): Likewise.
14201 (NO_FPIE1_SPEC): Likewise.
14202 (FPIE1_SPEC): Likewise.
14203 (NO_FPIE2_SPEC): Likewise.
14204 (FPIE2_SPEC): Likewise.
14205 (NO_FPIE2_SPEC): Likewise.
14206 (FPIE_SPEC): Likewise.
14207 (NO_FPIE_SPEC): Likewise.
14208 (NO_FPIC1_SPEC): Likewise.
14209 (FPIC1_SPEC): Likewise.
14210 (NO_FPIC2_SPEC): Likewise.
14211 (FPIC2_SPEC): Likewise.
14212 (NO_FPIC2_SPEC): Likewise.
14213 (FPIC_SPEC): Likewise.
14214 (NO_FPIC_SPEC): Likewise.
14215 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
14216 (FPIE1_OR_FPIC1_SPEC): Likewise.
14217 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
14218 (FPIE2_OR_FPIC2_SPEC): Likewise.
14219 (NO_FPIE_AND_FPIC_SPEC): Likewise.
14220 (FPIE_OR_FPIC_SPEC): Likewise.
14221 (LD_PIE_SPEC): Likewise.
14222 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
14223 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
14224 * config/darwin.h (PIE_SPEC): Renamed to ...
14225 (DARWIN_PIE_SPEC): This.
14226 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
14227 * config/darwin9.h (PIE_SPEC): Renamed to ...
14228 (DARWIN_PIE_SPEC): This.
14229 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
14230 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
14231 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
14232 FPIE2_OR_FPIC2_SPEC.
14233 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
14234 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
14235 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
14236 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14237 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14238 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14239 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
14240 * config/m32r/m32r.h (ASM_SPEC): Likewise.
14241 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
14242 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14243 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
14244 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
14245 * config/sparc/linux.h (ASM_SPEC): Likewise.
14246 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14247 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
14248 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
14249 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14250 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14251 * config/sparc/sparc.h (ASM_SPEC): Likewise.
14252 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
14253 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
14254 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
14255 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
14256 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
14257 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
14258 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
14259 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
14260 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
14261 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
14262 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
14263 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
14264 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14265 * config/vax/linux.h (ASM_SPEC): Likewise.
14266 * doc/install.texi: Document --enable-default-pie.
14267 * doc/invoke.texi: Document -no-pie.
14268 * config.in: Regenerated.
14269 * configure: Likewise.
14271 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
14273 PR rtl-optimization/66168
14274 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
14275 can_move_invariant_reg.
14277 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
14280 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
14281 REG_EQUAL note when doing insert.
14283 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
14284 instead of "%d" for 'o' operand.
14286 2015-05-27 Nathan Sidwell <nathan@acm.org>
14289 * tree.c (build_pointer_type_for_mode): Canonical type does not
14290 inherit can_alias_all.
14291 (build_reference_type_for_mode): Likewise.
14293 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
14295 * expr.h (array_at_struct_end_p): Move to...
14296 (array_ref_element_size): Likewise.
14297 (component_ref_field_offset): Likewise.
14298 * tree.h (array_ref_element_size): ...here.
14299 (array_at_struct_end_p): Likewise.
14300 (component_ref_field_offset): Likewise.
14301 * expr.c (array_ref_element_size): Move to...
14302 (array_ref_low_bound): Likewise.
14303 (array_at_struct_end_p): Likewise.
14304 (array_ref_up_bound): Likewise.
14305 (component_ref_field_offset): Likewise.
14306 * tree.c (array_ref_element_size): ...here.
14307 (array_ref_low_bound): Likewise.
14308 (array_ref_up_bound): Likewise.
14309 (array_at_struct_end_p): Likewise.
14310 (component_ref_field_offset): Likewise.
14312 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
14313 Szabolcs Nagy <szabolcs.nagy@arm.com>
14315 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
14317 2015-05-27 Jason Merrill <jason@redhat.com>
14320 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
14321 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
14322 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
14324 2015-05-22 Aditya Kumar <hiraditya@msn.com>
14326 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
14329 * statistics.c (statistics_fini_pass): Print pass name.
14331 2015-05-27 Richard Biener <rguenther@suse.de>
14333 PR tree-optimization/66272
14335 2014-08-15 Richard Biener <rguenther@suse.de>
14337 PR tree-optimization/62031
14338 * tree-data-ref.c (dr_analyze_indices): Do not set
14339 DR_UNCONSTRAINED_BASE.
14340 (dr_may_alias_p): All indirect accesses have to go the
14341 formerly DR_UNCONSTRAINED_BASE path.
14342 * tree-data-ref.h (struct indices): Remove
14343 unconstrained_base member.
14344 (DR_UNCONSTRAINED_BASE): Remove.
14346 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
14348 * dwarf2out.c: Remove block_map.
14349 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
14350 (gen_lexical_block_die): Same.
14351 (dwarf2out_function_decl): Remove block_map use.
14352 (dwarf2out_c_finalize): Same.
14353 * tree-core.h (struct tree_block): Add die field.
14354 * tree.h (BLOCK_DIE): New.
14356 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14359 * expr.c (memory_load_overlap): New function.
14360 (emit_push_insn): When pushing partial args to the stack would
14361 clobber the register part load the overlapping part into a pseudo
14362 and put it into the hard reg after pushing. Change return type
14363 to bool. Add bool argument.
14364 * expr.h (emit_push_insn): Change return type to bool.
14366 * calls.c (expand_call): Cancel sibcall optimization when encountering
14367 partial argument on targets with ARGS_GROW_DOWNWARD and
14368 !STACK_GROWS_DOWNWARD.
14369 (emit_library_call_value_1): Update callsite of emit_push_insn.
14370 (store_one_arg): Likewise.
14372 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
14374 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
14376 2015-05-27 Martin Liska <mliska@suse.cz>
14378 * Makefile.in: Add additional dependencies related to memory report
14380 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
14381 * bitmap.c (struct bitmap_descriptor_d): Remove.
14382 (struct loc): Likewise.
14383 (struct bitmap_desc_hasher): Likewise.
14384 (bitmap_desc_hasher::hash): Likewise.
14385 (bitmap_desc_hasher::equal): Likewise.
14386 (get_bitmap_descriptor): Likewise.
14387 (bitmap_register): User new memory descriptor API.
14388 (register_overhead): Likewise.
14389 (bitmap_find_bit): Register nsearches and search_iter statistics.
14390 (struct bitmap_output_info): Remove.
14391 (print_statistics): Likewise.
14392 (dump_bitmap_statistics): Use new memory descriptor.
14393 * bitmap.h (struct bitmap_usage): New class.
14394 * genmatch.c: Extend header file inclusion.
14395 * genpreds.c: Likewise.
14396 * ggc-common.c (struct ggc_usage): New class.
14397 (struct ggc_loc_desc_hasher): Remove.
14398 (ggc_loc_desc_hasher::hash): Likewise.
14399 (ggc_loc_desc_hasher::equal): Likewise.
14400 (struct ggc_ptr_hash_entry): Likewise.
14401 (struct ptr_hash_hasher): Likewise.
14402 (ptr_hash_hasher::hash): Likewise.
14403 (ptr_hash_hasher::equal): Likewise.
14404 (make_loc_descriptor): Likewise.
14405 (ggc_prune_ptr): Likewise.
14406 (dump_ggc_loc_statistics): Use new memory descriptor.
14407 (ggc_record_overhead): Likewise.
14408 (ggc_free_overhead): Likewise.
14409 (final_cmp_statistic): Remove.
14410 (cmp_statistic): Likewise.
14411 (ggc_add_statistics): Liekwise.
14412 (ggc_prune_overhead_list): Likewise.
14413 * hash-map-traits.h: New file.
14414 * hash-map.h (struct default_hashmap_traits): Move the traits to a
14415 separate header file.
14416 * hash-set.h: Pass memory statistics info to ctor.
14417 * hash-table.c (void dump_hash_table_loc_statistics): New function.
14418 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
14419 (hash_table::~hash_table): Register memory release operation.
14420 (hash_table::alloc_entries): Handle memory allocation operation.
14421 (hash_table::expand): Likewise.
14422 * inchash.c (iterative_hash_hashval_t): Move implementation to header
14424 (iterative_hash_host_wide_int): Likewise.
14425 * inchash.h (class hash): Likewise.
14426 * mem-stats-traits.h: New file.
14427 * mem-stats.h: New file.
14428 (mem_location): Add new class.
14429 (mem_usage): Likewise.
14430 (mem_alloc_description): Likewise.
14431 * sese.c: Add new header file inclusision.
14432 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
14434 * tree-sra.c: Add new header file inclusision.
14435 * vec.c (struct vec_descriptor): Remove.
14436 (hash_descriptor): Likewise.
14437 (struct vec_usage): Likewise.
14438 (struct ptr_hash_entry): Likewise.
14439 (hash_ptr): Likewise.
14440 (eq_ptr): Likewise.
14441 (vec_prefix::register_overhead): Use new memory descriptor API.
14442 (vec_prefix::release_overhead): Likewise.
14443 (add_statistics): Remove.
14444 (dump_vec_loc_statistics): Use new memory descriptor API.
14445 * vec.h (struct vec_prefix): Likewise.
14446 (va_heap::reserve): Likewise.
14447 (va_heap::release): Likewise.
14448 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
14450 2015-05-27 Richard Biener <rguenther@suse.de>
14452 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
14453 earlier and remove ??? comment.
14454 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
14455 and got called from loop analysis bail out. Always pass the SLP
14456 node to the vectorizable_* functions.
14457 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
14458 the premature SLP check here.
14459 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
14460 detected SLP stmts.
14461 (vect_detect_hybrid_slp_1): Likewise.
14463 2015-05-26 Jeff Law <law@redhat.com>
14465 * combine.c (find_split_point): Verify that the shift count is a
14466 constant when choosing (plus (ashift ...)) as a split point.
14468 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
14469 No functional changes.
14471 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
14473 * ipa-polymorphic-call.c
14474 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
14475 case when call target is already known.
14477 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
14480 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
14481 take into account the case that operands[1] and operands[2]
14482 are the same register.
14484 2015-05-26 Michael Matz <matz@suse.de>
14486 PR middle-end/66251
14488 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
14490 (vect_create_vectorized_demotion_stmts): Always set
14491 STMT_VINFO_VEC_STMT, also with SLP.
14492 (vectorizable_store): Handle strided group stores.
14494 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14497 * config/aarch64/aarch64.md
14498 (*adds_shift_imm_<mode>): New pattern.
14499 (*subs_shift_imm_<mode>): Likewise.
14500 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
14501 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
14502 (*add_uxt<mode>_shift2): Likewise.
14503 (*add_uxtsi_shift2_uxtw): Likewise.
14504 (*sub_uxt<mode>_shift2): Likewise.
14505 (*sub_uxtsi_shift2_uxtw): Likewise.
14507 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
14509 * config/rs6000/constraints.md (Y, U): Use match_test.
14511 2015-05-26 Christian Bruel <christian.bruel@st.com>
14514 * config/arm/arm.c (arm_option_check_internal)
14515 (arm_option_params_internal): Check opts->target_flags to set macros.
14516 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
14517 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
14518 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
14519 (builtin_define): Replaced with def_or_undef_macro.
14520 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
14521 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
14522 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
14523 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
14524 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
14525 (TARGET_ARM_FEATURE_LDREX_P)
14526 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
14527 * config/arm/arm-c.c (def_or_undef_macro): New function.
14528 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
14530 2015-05-26 Christian Bruel <christian.bruel@st.com>
14532 * c-common.h (builtin_define_with_int_value)
14533 (builtin_define_type_sizeof): Declare.
14534 * c-cppbuiltin.c (builtin_define_with_int_value)
14535 (builtin_define_type_sizeof): Externalize.
14536 (builtin_define_std): Cleanup declaration.
14537 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
14538 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
14539 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
14540 (builtin_define, builtin_assert): New macros.
14542 2015-05-26 Richard Biener <rguenther@suse.de>
14544 PR tree-optimization/66142
14545 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
14546 MEM_REFs for the same base address.
14548 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14551 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
14553 2015-05-26 Jason Merrill <jason@redhat.com>
14555 * configure.ac: Set CXXFLAGS for ISL test.
14556 * configure: Regenerate.
14558 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
14559 strstr and basename.
14560 * configure: Regenerate.
14562 2015-05-26 Richard Biener <rguenther@suse.de>
14564 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
14565 X % C -> X & (C - 1) for C being a power-of two to ...
14566 * match.pd: ... patterns.
14568 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
14570 * match.pd (swapped_tcc_comparison): New operator list.
14571 (-A CMP -B): New simplification.
14572 * fold-const.c (fold_comparison): Remove corresponding code.
14574 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
14576 * caller-save.c (init_caller_save): Base temporary register numbers
14577 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
14578 * cfgloopanal.c (init_set_costs): Likewise.
14579 * dojump.c (prefer_and_bit_test): Likewise.
14580 * expr.c (init_expr_target): Likewise.
14581 * ira.c (setup_prohibited_mode_move_regs): Likewise.
14582 * lower-subreg.c (init_lower_subreg): Likewise.
14583 * postreload.c (reload_cse_regs_1): Likewise.
14585 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
14587 * gensupport.h (compute_test_codes): Declare.
14588 * gensupport.c (compute_predicate_codes): Rename to...
14589 (compute_test_codes): ...this. Generalize error message.
14590 (process_define_predicate): Update accordingly.
14591 * genpreds.c (compute_maybe_allows): Delete.
14592 (add_constraint): Use compute_test_codes to determine whether
14593 something can accept a SUBREG, REG or MEM.
14595 2015-05-26 Torvald Riegel <triegel@redhat.com>
14597 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
14598 'memory model' to align with C++11; fix description of memory orders;
14601 2015-05-26 Richard Biener <rguenther@suse.de>
14603 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
14604 (vect_analyze_loop_operations): ... here. Remove slp parameter,
14605 detect whether we apply SLP. Remove call to
14606 vect_update_slp_costs_according_to_vf.
14607 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
14608 vect_update_slp_costs_according_to_vf from here. Dispatch
14609 to vect_slp_analyze_operations to analyze SLP stmts.
14610 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
14611 unused bb_vec_info parameter, adjust assert.
14612 (vect_slp_analyze_operations): Pass in the slp instance tree
14613 instead of bb_vec_info.
14614 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
14615 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
14617 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
14619 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
14620 Q_REGS. Expand comment.
14621 (REG_CLASS_NAMES): Ditto.
14622 (REG_CLASS_CONTENTS): Ditto.
14624 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
14627 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
14628 when LEGACY_INT_REGNO_P is processed.
14630 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
14632 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
14634 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14636 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
14637 register if not marked dead/unused, before return.
14639 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
14642 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
14643 is set; check for assembler name at LTO time.
14644 (type_in_anonymous_namespace): Remove hacks, check that all
14645 anonymous types are called "<anon>"
14646 (odr_type_p): Simplify; add check for "<anon>"
14647 (odr_subtypes_equivalent): Add odr_type_p check.
14648 * tree.c (need_assembler_name_p): Even anonymous namespace needs
14651 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
14653 * ipa-utils.h (method_class_type): Remove.
14654 * cgraphunit.c (walk_polymorphic_call_targets): Use
14655 TYPE_METHOD_BASETYPE.
14656 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
14657 on main variants only.
14658 (method_class_type): Remove.
14659 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
14660 (build_type_inheritance_graph): Likewise.
14661 * ipa-icf.c (sem_function::equals_wpa): Likewise.
14662 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
14663 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
14665 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
14667 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
14668 is_typedef_decl, typedef_variant_p): Constify.
14669 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
14670 is_typedef_decl, typedef_variant_p): Constify.
14672 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14674 * defaults.h (gen_tablejump): New function.
14675 (HAVE_tablejump): Add default value.
14677 * stmt.c: Likewise.
14679 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14681 * defaults.h (gen_store_multiple): New function.
14682 (HAVE_store_multiple): Add default value.
14683 * expr.c (move_block_from_reg): Adjust.
14685 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14687 * defaults.h (gen_load_multiple): New function.
14688 (HAVE_load_multiple): Add default value.
14689 * expr.c (move_block_to_reg): Adjust.
14691 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14693 * defaults.h (gen_mem_signal_fence): New function.
14694 (HAVE_mem_signal_fence): Add default value.
14695 * optabs.c: Adjust.
14697 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14699 * defaults.h (gen_memory_barrier): New function.
14700 (HAVE_memory_barrier): Add default value.
14701 * optabs.c: Adjust.
14703 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14705 * defaults.h (gen_mem_thread_fence): New function.
14706 (HAVE_mem_thread_fence): Add default definition.
14707 * optabs.c: Adjust.
14709 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14711 * combine.c (find_split_point): Check the value of HAVE_lo_sum
14712 instead of if it is defined.
14713 (combine_simplify_rtx): Likewise.
14714 * lra-constraints.c (process_address_1): Likewise.
14715 * config/darwin.c: Adjust.
14716 * genconfig.c (main): Always define HAVE_lo_sum.
14718 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14720 * genmatch.c (parser::parse_operation): Reject expanding
14721 operator-list inside 'for'.
14723 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14725 * genmatch.c (parser::parse_for): Reject iterator if used as
14728 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14730 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
14731 after end of id-list.
14733 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
14735 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
14736 we do not try to compute canonical type for type that does not need
14738 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
14740 * tree.h (type_with_alias_set_p): New.
14742 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
14744 * tree.c (gimple_canonical_types_compatible_p): Do not compare
14745 function attributes.
14746 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
14748 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
14750 * Makefile.in (check_gcc_parallelize): Delete.
14751 (lang_checks_parallelized): Update comment.
14753 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
14755 PR rtl-optimization/66237
14756 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
14757 location of an "as_a" cast.
14759 2015-05-22 Jeff Law <law@redhat.com>
14761 * config/pa/pa.md (non-canonical shift-add insns): Remove.
14762 (peepholes with non-canonical RTL sources): Remove.
14763 (peepholes for indexed stores of FP regs in integer modes): Match and
14764 generate canonical RTL.
14766 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
14768 PR tree-optimization/63387
14769 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
14770 ((x ord x) & (y ord y) -> (x ord y),
14771 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
14772 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
14773 vectors like scalars.
14775 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
14777 * convert.c (convert_to_integer, convert_to_vector): Include the
14778 types in the error message.
14780 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
14782 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
14785 2015-05-22 Jeff Law <law@redhat.com>
14787 * config/pa/pa.md (integer_indexed_store splitters): Use
14788 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
14789 insns -- adjusting the constant 2nd operand accordingly.
14791 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
14792 (plus (ashift X log2) Y) if it is a split point.
14794 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
14795 out of hppa_legitimize_address to handle both forms of a multiply
14797 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
14798 Always generate the ASHIFT variant as the result is not directly
14799 used in a MEM. Update comments and refactor slightly to improve
14802 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14805 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
14806 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
14807 (aarch64_composite_type_p): Return false if given type and mode are
14808 for a short vector.
14810 2015-05-22 Richard Biener <rguenther@suse.de>
14812 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
14814 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
14815 patterns when determining whether SLP is pure.
14816 (vect_is_slp_reduction): Remove check for pattern stmts.
14817 (vect_is_simple_reduction_1): Remove dead code.
14818 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
14819 (vect_get_and_check_slp_defs): Pass in the stmt number.
14820 Allow the first def in a reduction to be not a pattern stmt when
14821 the rest of the stmts def are patterns.
14822 (vect_build_slp_tree_1): Allow tcc_expression codes like
14823 SAD_EXPR and DOT_PROD_EXPR.
14824 (vect_build_slp_tree): Adjust.
14825 (vect_analyze_slp): Refactor and move BB vect error message ...
14826 (vect_slp_analyze_bb_1): ... here.
14828 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
14830 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
14831 for CSWTCH temporary.
14833 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14835 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
14836 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
14839 2015-05-22 Richard Biener <rguenther@suse.de>
14841 PR tree-optimization/66251
14842 * tree-vect-stmts.c (vectorizable_conversion): Properly
14843 set STMT_VINFO_VEC_STMT even for the SLP case.
14845 2015-05-22 Marek Polacek <polacek@redhat.com>
14847 * doc/extend.texi: Use @pxref instead of @xref.
14849 2015-05-22 hiraditya <hiraditya@msn.com>
14851 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
14854 2015-05-22 Richard Biener <rguenther@suse.de>
14856 PR tree-optimization/65701
14857 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14858 Move peeling cost models into one place. Peel for alignment
14859 for single loads only if an aligned load is cheaper than
14862 2015-05-22 Marek Polacek <polacek@redhat.com>
14865 * doc/extend.texi (Enumerator Attributes): New section.
14866 Document syntax of enumerator attributes.
14868 2015-05-22 Richard Biener <rguenther@suse.de>
14870 * tree-vect-loop.c (get_reduction_op): New function.
14871 (vect_model_reduction_cost): Use it, add reduc_index parameter.
14872 Make ready for BB reductions.
14873 (vect_create_epilog_for_reduction): Use get_reduction_op.
14874 (vectorizable_reduction): Init reduc_index to a valid value.
14875 Adjust vect_model_reduction_cost call.
14876 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
14877 operand for reduction defaults. Add SAD_EXPR support.
14878 Assert we have a neutral op for SLP reductions.
14879 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
14880 walking pattern stmt ops only recurse to SSA names.
14882 2015-05-22 Richard Biener <rguenther@suse.de>
14884 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
14885 assert with guard, remove check on detected reduction.
14886 (vect_recog_sad_pattern): Likewise.
14887 (vect_recog_widen_sum_pattern): Likewise.
14889 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14891 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
14892 __always_inline__ attribute.
14893 (vaesdq_u8): Likewise.
14894 (vaesmcq_u8): Likewise.
14895 (vaesimcq_u8): Likewise.
14896 (vsha1cq_u32): Likewise.
14897 (vsha1mq_u32): Likewise.
14898 (vsha1pq_u32): Likewise.
14899 (vsha1h_u32): Likewise.
14900 (vsha1su0q_u32): Likewise.
14901 (vsha1su1q_u32): Likewise.
14902 (vsha256hq_u32): Likewise.
14903 (vsha256h2q_u32): Likewise.
14904 (vsha256su0q_u32): Likewise.
14905 (vsha256su1q_u32): Likewise.
14906 (vmull_p64): Likewise.
14907 (vmull_high_p64): Likewise.
14909 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14911 * final.c (final_scan_insn): Don't check HAVE_peephole with the
14913 * output.h: Likewise.
14914 * genconfig.c (main): Alwways define HAVE_peephole.
14915 * genpeep.c: Don't emit checks of HAVE_peephole.
14917 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14919 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
14920 check HAVE_conditional_move with the preprocessor.
14922 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14924 * genconfig.c (main): Always define HAVE_conditional_move.
14925 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
14926 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
14929 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14931 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
14932 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
14933 and FRAME_POINTER_REGNUM with the preprocessor.
14935 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14937 * defaults.h: Add default for STACK_PUSH_CODE.
14938 * expr.c: Don't redefine STACK_PUSH_CODE.
14939 * recog.c: Likewise.
14941 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14943 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
14944 sched-deps.c: Use if instead of preprocessor checks with
14945 STACK_GROWS_DOWNWARD.
14947 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14949 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
14951 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
14952 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
14953 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
14954 * doc/tm.texi: Regenerate.
14956 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
14959 * config/i386/constraints.md (Bg): New constraint for GOT memory
14961 * config/i386/i386.md (*call_got_x32): New pattern.
14962 (*call_value_got_x32): Likewise.
14963 * config/i386/predicates.md (GOT_memory_operand): New predicate.
14965 2015-05-21 Jakub Jelinek <jakub@redhat.com>
14967 PR tree-optimization/66233
14968 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
14971 2015-05-21 Jeff Law <law@redhat.com>
14973 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
14974 than MULT for shadd sequences.
14976 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
14978 * alias.c (alias_stats): New static var.
14979 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
14980 (dump_alias_stats_in_alias_c): New function.
14981 * alias.h (dump_alias_stats_in_alias_c): Declare.
14982 * tree-ssa-alias.c (dump_alias_stats): Call it.
14984 2015-05-08 Michael Matz <matz@suse.de>
14986 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
14988 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
14989 (STMT_VINFO_STRIDED_P): ... this.
14990 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
14991 (vect_verify_datarefs_alignment): Likewise.
14992 (vect_enhance_data_refs_alignment): Likewise.
14993 (vect_analyze_data_ref_access): Likewise.
14994 (vect_analyze_data_refs): Accept strided stores.
14995 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
14996 (vect_model_load_cost): Adjust for macro rename.
14997 (vectorizable_mask_load_store): Likewise.
14998 (vectorizable_load): Likewise.
14999 (vectorizable_store): Open code strided stores.
15001 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15003 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
15004 Document sqrt_insn.
15006 2015-05-21 Richard Biener <rguenther@suse.de>
15009 * match.pd: Guard pattern optimzing (int)(float)int
15010 conversions to apply only on GIMPLE.
15012 2015-05-21 Jeff Law <law@redhat.com>
15014 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
15015 multiply-accumulate/shift-add insn generation.
15017 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15020 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
15021 operands[1] are the same.
15023 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
15025 PR middle-end/66221
15026 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
15027 build_distinct_type_copy to copy bounds.
15029 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
15031 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
15032 Change to unsigned int.
15034 2015-05-20 Jeff Law <law@redhat.com>
15036 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
15037 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
15038 (pa_shadd_constant_p): Allow constants for shadd insns rather
15039 than valid scaling constants for memory addresses.
15040 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
15041 * config/pa/predicates.md (mem_shadd_operand): New predicate.
15042 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
15043 (shift-add insns using ASHIFT): New patterns.
15045 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
15047 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
15049 (fix_up_fall_thru_edges): Likewise.
15050 (fix_crossing_conditional_branches): Likewise. Promote jump targets
15051 from to rtx_insn to rtx_code_label where feasible.
15052 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
15053 gen_move_insn (returned type changed to rtx_insn).
15054 * builtins.c (expand_errno_check): Fix arguments of
15055 do_compare_rtx_and_jump (now expects rtx_code_label).
15056 (expand_builtin_acc_on_device): Likewise.
15057 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
15058 invert_jump (now exprects rtx_jump_insn).
15059 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
15060 (construct_init_block): Use rtx_code_label.
15061 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
15062 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
15063 calling redirect_jump.
15064 (patch_jump_insn): Likewise.
15065 (redirect_branch_edge): Likewise.
15066 (force_nonfallthru_and_redirect): Likewise.
15067 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
15069 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
15070 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
15071 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
15072 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
15073 to store the value retured by gen_label_rtx.
15074 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
15076 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
15077 (split_branches): Fix calls of redirect_jump.
15078 * dojump.c (jumpifnot): Promote argument type from rtx to
15080 (jumpifnot_1): Likewise.
15081 (jumpif): Likewise.
15082 (jumpif_1): Likewise.
15083 (do_jump_1): Likewise.
15084 (do_jump): Likewise. Use rtx_code_label when feasible.
15085 (do_jump_by_parts_greater_rtx): Likewise.
15086 (do_jump_by_parts_zero_rtx): Likewise.
15087 (do_jump_by_parts_equality_rtx): Likewise.
15088 (do_compare_rtx_and_jump): Likewise.
15089 * dojump.h: Update function prototypes.
15090 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
15092 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
15094 (emit_label_before): Likewise.
15095 (emit_jump_insn_after_noloc): Likewise.
15096 (emit_jump_insn_after_setloc): Likewise.
15097 (emit_jump_insn_after): Likewise
15098 (emit_jump_insn_before_setloc): Likewise.
15099 (emit_jump_insn_before): Likewise.
15100 (emit_label_before): Promote return type to rtx_code_label.
15101 (emit_label): Likewise.
15102 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
15103 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
15105 (emit_stack_restore): Likewise.
15106 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
15107 (do_cmp_and_jump): Likewise.
15108 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
15109 from rtx to rtx_code_label.
15110 (gen_move_insn_uncast): New function.
15111 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
15112 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
15113 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
15114 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
15115 invert_jump_1 and redirect_jump_1.
15116 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
15117 do_compare_rtx_and_jump.
15118 (expand_addsub_overflow): Likewise.
15119 (expand_neg_overflow): Likewise.
15120 (expand_mul_overflow): Likewise.
15121 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
15122 return value of gen_move_insn.
15123 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
15124 * loop-doloop.c (add_test): Use rtx_code_label.
15125 (doloop_modify): Likewise.
15126 (doloop_optimize): Likewise.
15127 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
15128 * lra-constraints.c (emit_spill_move): Remove cast of value returned
15130 (inherit_reload_reg): Add cast when calling dump_insn_slim.
15131 (split_reg): Likewise.
15132 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
15134 * optabs.c (expand_binop_directly): Remove casts of values returned by
15136 (expand_unop_direct): Likewise.
15137 (expand_abs): Likewise.
15138 (maybe_emit_unop_insn): Likewise.
15139 (maybe_gen_insn): Promote return type to rtx_insn.
15140 * optabs.h: Update prototype of maybe_gen_insn.
15141 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
15143 * recog.c (struct peep2_insn_data): Promote type of insn field to
15145 (peep2_reinit_state): Use NULL instead of NULL_RTX.
15146 (peep2_attempt): Remove casts of insn in peep2_insn_data.
15147 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
15148 * recog.h (struct insn_gen_fn): Promote return types of function
15149 pointers and operator ().from rtx to rtx_insn.
15150 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
15151 (fill_eager_delay_slots): Likewise.
15152 (relax_delay_slots): Likewise.
15153 (make_return_insns): Likewise.
15154 (dbr_schedule): Likewise.
15155 (optimize_skips): Likewise.
15156 (reorg_redirect_jump): Likewise.
15157 (fill_slots_from_thread): Likewise.
15158 * reorg.h: Update prototypes.
15159 * resource.c (find_dead_or_set_registers): Use dyn_cast to
15160 rtx_jump_insn instead of check. Use it's jump_target method.
15161 * rtl.h (rtx_jump_insn::jump_label): Define new method.
15162 (rtx_jump_insn::jump_target): Define new method.
15163 (rtx_jump_insn::set_jump_target): Define new method.
15164 * rtlanal.c (tablejump_p): Promote type of one local variable.
15165 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
15166 (sched_analyze_insn): Likewise.
15167 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
15168 (print_insn): Likewise.
15169 * stmt.c (label_rtx): Promote return type to rtx_insn.
15170 (force_label_rtx): Likewise.
15171 (jump_target_rtx): Define new function.
15172 (expand_label): Use it, get rid of one cast.
15173 (expand_naked_return): Promote rtx to rtx_code_label.
15174 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
15175 (expand_case): Use rtx_code_label instread of rtx where feasible.
15176 (expand_sjlj_dispatch_table): Likewise.
15177 (emit_case_nodes): Likewise.
15178 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
15179 * store-motion.c (insert_store): Make use of new return type of
15180 gen_move_insn and remove a cast.
15181 (replace_store_insn): Likewise.
15183 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
15185 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
15186 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
15188 2015-05-20 Jeff Law <law@redhat.com>
15190 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
15191 dispose of the jump thread path when the jump threading
15192 opportunity is cancelled.
15194 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
15196 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
15197 when printing the caret character.
15199 2015-05-20 Marek Polacek <polacek@redhat.com>
15201 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
15203 2015-05-20 Marek Polacek <polacek@redhat.com>
15205 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
15206 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
15207 * gimple-fold.c (canonicalize_bool): Likewise.
15208 (same_bool_result_p): Likewise.
15209 * tree-if-conv.c (parse_predicate): Likewise.
15211 2015-05-20 Marek Polacek <polacek@redhat.com>
15213 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
15214 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
15216 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15218 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
15219 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
15222 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
15224 * config/mips/mips.h (micromips_globals): Declare.
15226 2015-05-20 David Malcolm <dmalcolm@redhat.com>
15228 * timevar.def (TV_INITIALIZE_RTL): New.
15229 * toplev.c (initialize_rtl): Use an auto_timevar to account this
15230 function's time to TV_INITIALIZE_RTL.
15232 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
15234 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
15235 gimple_build_nop calls.
15236 (chkp_find_bounds_for_elem): Likewise.
15237 (chkp_get_zero_bounds): Likewise.
15238 (chkp_get_none_bounds): Likewise.
15239 (chkp_get_bounds_by_definition): Likewise.
15240 (chkp_generate_extern_var_bounds): Likewise.
15241 (chkp_get_bounds_for_decl_addr): Likewise.
15242 (chkp_get_bounds_for_string_cst): Likewise.
15244 2015-05-20 Bin Cheng <bin.cheng@arm.com>
15246 PR tree-optimization/65447
15247 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
15248 (dump_use, dump_uses): Support to dump sub use.
15249 (record_use): New parameters to support sub use. Remove call to
15251 (record_sub_use, record_group_use): New functions.
15252 (compute_max_addr_offset, split_all_small_groups): New functions.
15253 (group_address_uses, rewrite_use_address): New functions.
15254 (strip_offset): New declaration.
15255 (find_interesting_uses_address): Call record_group_use.
15256 (add_candidate): New assertion.
15257 (infinite_cost_p): Move definition forward.
15258 (add_costs): Check INFTY cost and return immediately.
15259 (get_computation_cost_at): Clear setup cost and dependent bitmap
15261 (determine_use_iv_cost_address): Compute cost for sub uses.
15262 (rewrite_use_address_1): Rename from old rewrite_use_address.
15263 (free_loop_data): Free sub uses.
15264 (tree_ssa_iv_optimize_loop): Call group_address_uses.
15266 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
15267 Jim Wilson <jim.wilson@linaro.org>
15269 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
15270 new fields loadv and storev.
15271 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
15272 Initialize loadv and storev.
15273 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
15274 (cortexa53_extra_costs): Likewise.
15275 (cortexa57_extra_costs): Likewise.
15276 (xgene1_extra_costs): Likewise.
15277 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
15280 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
15282 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
15284 (cortexa8_extra_costs): Likewise.
15285 (cortexa5_extra_costs): Likewise.
15286 (cortexa7_extra_costs): Likewise.
15287 (cortexa12_extra_costs): Likewise.
15288 (cortexa15_extra_costs): Likewise.
15289 (v7m_extra_costs): Likewise.
15291 2015-05-20 Jeff Law <law@redhat.com>
15293 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
15294 instead of open-coded version. Also delete the jump thread created
15295 within this function.
15297 2015-05-20 Alan Modra <amodra@gmail.com>
15299 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
15300 stack adjusting insn. Formatting.
15301 (rs6000_emit_prologue): Track stack adjusting insn, and use of
15302 r12. If possible, emit first -fsplit-stack arg pointer insn
15303 before stack adjust. Don't use r12 to save cr if split-stack.
15305 2015-05-20 Alan Modra <amodra@gmail.com>
15307 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
15309 (rs6000_supports_split_stack): New function.
15310 * gcc/config/rs6000/rs6000.c (machine_function): Add
15311 split_stack_arg_pointer.
15312 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
15313 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
15314 rather than virtual_incoming_args_rtx.
15315 (rs6000_va_start): Likewise.
15316 (split_stack_arg_pointer_used_p): New function.
15317 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
15318 (morestack_ref): New var.
15319 (gen_add3_const, rs6000_expand_split_stack_prologue,
15320 rs6000_internal_arg_pointer, rs6000_live_on_entry,
15321 rs6000_split_stack_space_check): New functions.
15322 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
15323 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
15324 (UNSPECV_SPLIT_STACK_RETURN): Define.
15325 (split_stack_prologue, load_split_stack_limit,
15326 load_split_stack_limit_di, load_split_stack_limit_si,
15327 split_stack_return, split_stack_space_check): New expands and insns.
15328 * gcc/config/rs6000/rs6000-protos.h
15329 (rs6000_expand_split_stack_prologue): Declare.
15330 (rs6000_split_stack_space_check): Declare.
15332 2015-05-20 Alan Modra <amodra@gmail.com>
15334 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
15335 (direct_return): Test vrsave_size rather than vrsave_mask.
15336 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
15337 (rs6000_emit_epilogue): Likewise.
15339 2015-05-20 Alan Modra <amodra@gmail.com>
15341 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
15342 when not saving registers.
15343 (debug_stack_info): Adjust to omit printing unused offsets,
15345 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
15348 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15351 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
15352 value_type to const char *.
15354 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
15356 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
15357 to build a biarch toolchain again.
15359 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
15361 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
15362 or implicit declarations.
15363 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
15365 (get_odr_type): Check type has linkage before adding bases.
15366 (register_odr_type): Check that type has linkage before adding it.
15367 (type_known_to_have_no_deriavations_p): Rename to ..
15368 (type_known_to_have_no_derivations_p): This one.
15369 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
15370 (type_known_to_have_no_derivations_p): This one.
15371 * ipa-polymorphic-call.c
15372 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
15375 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
15377 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
15378 (layout_type): Use RECORD_OR_UNION_TYPE_P.
15380 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15382 * config/s390/s390.c (s390_vector_bool_type_p): New function.
15383 (s390_invalid_binary_op): New function.
15384 (TARGET_INVALID_BINARY_OP): Define macro.
15386 2015-05-19 David Sherwood <david.sherwood@arm.com>
15388 * loop-invariant.c (create_new_invariant): Don't calculate address cost
15389 if mode is not a scalar integer.
15390 (get_inv_cost): Increase computational cost for unused invariants.
15392 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15394 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
15395 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
15396 * config/s390/s390-builtin-types.def: New file.
15397 * config/s390/s390-builtins.def: New file.
15398 * config/s390/s390-builtins.h: New file.
15399 * config/s390/s390-c.c: New file.
15400 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
15401 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
15402 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
15403 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
15405 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
15407 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
15408 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
15409 variable definitions.
15410 (s390_const_operand_ok): New function.
15411 (s390_expand_builtin): Rewrite.
15412 (s390_init_builtins): New function.
15413 (s390_handle_vectorbool_attribute): New function.
15414 (s390_attribute_table): Add s390_vector_bool attribute.
15415 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
15416 (s390_branch_condition_mask): Generate masks for new modes.
15417 (s390_expand_vec_compare_cc): New function.
15418 (s390_mangle_type): Add mangling for vector bool types.
15419 (enum s390_builtin): Remove.
15420 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
15422 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
15423 s390_cpu_cpp_builtins.
15424 (REGISTER_TARGET_PRAGMAS): New macro.
15425 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
15426 (insn_cmp mode attribute): Add new CC modes.
15427 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
15428 (lcbb): New pattern definition.
15429 * config/s390/s390intrin.h: Include vecintrin.h.
15430 * config/s390/t-s390: New file.
15431 * config/s390/vecintrin.h: New file.
15432 * config/s390/vector.md: Include vx-builtins.md.
15433 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
15436 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15438 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
15440 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
15441 (s390_select_ccmode): Likewise.
15442 (s390_canonicalize_comparison): Swap operands if necessary.
15443 (s390_expand_vec_compare_scalar): Expand DFmode compare using
15444 single element vector instructions.
15445 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
15446 (s390_branch_condition_mask): Generate CC masks for the new modes.
15447 * config/s390/s390.md (v0, vf, vd): New mode attributes.
15448 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
15449 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
15450 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
15451 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
15452 (*extend<DSF:mode><BFP:mode>2): New insn definition.
15453 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
15454 (extend<DSF:mode><BFP:mode>2): Turn into expander.
15455 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
15456 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
15457 (sqrt<mode>2): Add vector instruction.
15459 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15461 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
15463 * config/s390/predicates.md (const0_operand, constm1_operand)
15464 (constable_operand): Accept vector operands.
15465 * config/s390/s390-modes.def: Add supported vector modes.
15466 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
15467 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
15468 (s390_bytemask_vector_p, s390_expand_vec_strlen)
15469 (s390_expand_vec_compare, s390_expand_vcond)
15470 (s390_expand_vec_init): Add prototypes.
15471 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
15472 (s390_vector_mode_supported_p): New function.
15473 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
15474 (s390_contiguous_bitmask_vector_p): New function.
15475 (s390_bytemask_vector_p): New function.
15476 (s390_split_ok_p): Vector regs don't work either.
15477 (regclass_map): Add VEC_REGS.
15478 (s390_legitimate_constant_p): Handle vector constants.
15479 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
15480 (legitimate_reload_vector_constant_p): New function.
15481 (s390_preferred_reload_class): Handle CONST_VECTOR.
15482 (s390_reload_symref_address): Likewise.
15483 (s390_secondary_reload): Vector memory instructions only support
15484 short displacements. Rename reload*_nonoffmem* to reload*_la*.
15485 (s390_emit_ccraw_jump): New function.
15486 (s390_expand_vec_strlen): New function.
15487 (s390_expand_vec_compare): New function.
15488 (s390_expand_vcond): New function.
15489 (s390_expand_vec_init): New function.
15490 (s390_dwarf_frame_reg_mode): New function.
15491 (print_operand): Handle addresses with 'O' and 'R' constraints.
15492 (NR_C_MODES, constant_modes): Add vector modes.
15493 (s390_output_pool_entry): Handle vector constants.
15494 (s390_hard_regno_mode_ok): Handle vector registers.
15495 (s390_class_max_nregs): Likewise.
15496 (s390_cannot_change_mode_class): New function.
15497 (s390_invalid_arg_for_unprototyped_fn): New function.
15498 (s390_function_arg_vector): New function.
15499 (s390_function_arg_float): Remove size variable.
15500 (s390_pass_by_reference): Handle vector arguments.
15501 (s390_function_arg_advance): Likewise.
15502 (s390_function_arg): Likewise.
15503 (s390_return_in_memory): Vector values are returned in a VR if
15505 (s390_function_and_libcall_value): Handle vector arguments.
15506 (s390_gimplify_va_arg): Likewise.
15507 (s390_call_saved_register_used): Consider the arguments named.
15508 (s390_conditional_register_usage): Disable v16-v31 for non-vec
15510 (s390_preferred_simd_mode): New function.
15511 (s390_support_vector_misalignment): New function.
15512 (s390_vector_alignment): New function.
15513 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
15514 (TARGET_VECTOR_MODE_SUPPORTED_P)
15515 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
15516 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
15517 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
15518 (TARGET_VECTOR_ALIGNMENT): Define target macro.
15519 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
15520 (FIRST_PSEUDO_REGISTER): Increase value.
15521 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
15522 (VECTOR_REG_P): Define macros.
15523 (FIXED_REGISTERS, CALL_USED_REGISTERS)
15524 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
15525 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
15526 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
15527 Add vector registers.
15528 (CANNOT_CHANGE_MODE_CLASS): Call C function.
15529 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
15530 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
15532 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
15533 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
15534 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
15535 (VR*_REGNUM): New constants.
15536 (ALL): New mode iterator.
15537 (INTALL): Remove mode iterator.
15539 (movti): Implement TImode moves for VRs.
15540 Disable TImode splitter for VR targets.
15541 Implement splitting TImode GPR<->VR moves.
15542 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
15543 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
15544 reload<mode>_la_in, reload<mode>_la_out.
15545 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
15546 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
15547 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
15548 (mov<mode> SF SD): Prefer lder, lde for loading.
15549 Add lrl and strl instructions.
15550 Add vector instructions.
15551 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
15552 Call s390_expand_vec_strlen on z13.
15553 (*cc_to_int): Change predicate to nonimmediate_operand.
15554 (addti3): Rename to *addti3. New expander.
15555 (subti3): Rename to *subti3. New expander.
15556 * config/s390/vector.md: New file.
15558 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15560 * common/config/s390/s390-common.c (processor_flags_table): Add
15562 * config.gcc: Add z13.
15563 * config/s390/s390-opts.h (enum processor_type): Add
15564 PROCESSOR_2964_Z13.
15565 * config/s390/s390.c (s390_adjust_priority): Check for
15566 PROCESSOR_2964_Z13.
15567 (s390_reorg): Likewise.
15568 (s390_sched_reorder): Likewise.
15569 (s390_sched_variable_issue): Likewise.
15570 (s390_loop_unroll_adjust): Likewise.
15571 (s390_option_override): Likewise. Default to -mvx when available.
15572 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
15573 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
15574 (TARGET_VX_ABI): Define macros.
15576 (TARGET_DEFAULT): Add MASK_OPT_VX.
15577 * config/s390/s390.md ("cpu" attribute): Add z13.
15578 ("cpu_facility" attribute): Add vec.
15579 * config/s390/s390.opt (processor_type): Add z13.
15580 (mvx): New options.
15581 * doc/invoke.texi: Add z13 option for -march.
15583 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15585 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
15586 mode check to make sure that only scalar integer values are
15589 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
15591 * tree.c (verify_type_variant): Fix #undef.
15592 (gimple_canonical_types_compatible_p): Move here from lto.c
15593 (verify_type): Verify TYPE_CANONICAL compatibility.
15594 * tree.h (gimple_canonical_types_compatible_p): Declare.
15596 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15598 PR middle-end/66199
15599 * tree.h (OMP_TEAMS_COMBINED): Define.
15600 * gimplify.c (enum gimplify_omp_var_data): Add
15601 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
15602 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
15603 (omp_notice_variable): Accept both ORT_TEAMS
15604 and ORT_COMBINED_TEAMS. Don't recurse if
15605 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
15606 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
15608 (omp_no_lastprivate): New function.
15609 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
15610 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
15611 notice_outer and set appropriate bits, otherwise make
15612 sure default(none) combined constructs won't complain.
15613 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
15614 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
15615 omp_no_lastprivate either remove the clause or turn it
15616 into OMP_CLAUSE_PRIVATE.
15617 (gimplify_omp_for): Fix up handling of implicit
15618 lastprivate or linear iterators.
15619 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
15620 ORT_COMBINED_TEAMS.
15621 * omp-low.c (lower_omp_for_lastprivate): For combined
15622 for simd use fd.loop.n2 from the for rather than simd.
15624 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15626 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
15627 instead of gen_rtx_raw_REG.
15628 (cris_expand_epilogue): Likewise.
15629 * config/microblaze/microblaze.c (microblaze_classify_address):
15631 * config/sparc/sparc.md: Likewise.
15633 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
15635 * config/alpha/alpha.c (alpha_legitimize_reload_address)
15636 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
15637 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
15638 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
15639 Use CASE_CONST_SCALAR_INT.
15640 (print_operand) <case 'M'>: Use mode_width_operand to check the
15641 value of the constant.
15642 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
15643 * config/alpha/predicates.md (input_operand): Use general_operand
15644 instead of match_code as operand check.
15645 (symbolic_operand): Use match_code with subexpression digits.
15646 * config/alpha/constraints.md (Q): Ditto.
15648 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15650 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
15652 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15654 * config/s390/s390.c (s390_secondary_reload): Fix check for
15655 load/store relative.
15657 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15659 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
15660 alternative_mask to uint64_t.
15662 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15664 PR tree-optimization/66187
15665 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
15666 Pass TYPE_SIGN to tree_int_cst_min_precision. If
15667 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
15669 2015-05-19 David Malcolm <dmalcolm@redhat.com>
15671 * diagnostic.c (diagnostic_report_current_module): Strengthen
15672 local "new_map" from const line_map * to
15673 const line_map_ordinary *.
15674 * genmatch.c (error_cb): Likewise for local "map".
15675 (output_line_directive): Likewise for local "map".
15676 * input.c (expand_location_1): Likewise for local "map".
15677 Pass NULL rather than &map to
15678 linemap_unwind_to_first_non_reserved_loc, since the value is never
15679 read from there, and the value written back not read from here.
15680 (is_location_from_builtin_token): Strengthen local "map" from
15681 const line_map * to const line_map_ordinary *.
15682 (dump_location_info): Strengthen locals "map" from
15683 line_map *, one to const line_map_ordinary *, the other
15684 to const line_map_macro *.
15685 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
15686 const line_map * to const line_map_macro *.
15687 (maybe_unwind_expanded_macro_loc): Add a call to
15688 linemap_check_macro when writing to the "map" field of the
15690 Introduce local const line_map_ordinary * "ord_map", using it in
15691 place of "map" in the part of the function where we know we have
15692 an ordinary map. Strengthen local "m" from const line_map * to
15693 const line_map_ordinary *.
15695 2015-05-19 Nick Clifton <nickc@redhat.com>
15698 * config/msp430/msp430.md (zero_extendhisi2): Add support for
15699 separate source and destination registers.
15701 2015-05-19 Richard Biener <rguenther@suse.de>
15703 PR tree-optimization/66165
15704 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
15705 for no load permutation.
15707 PR tree-optimization/66185
15708 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
15709 when building the SLP node from scalars.
15711 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
15712 Tristan Gingold <gingold@adacore.com>
15714 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
15715 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
15716 (expand_stack_restore): Call record_new_stack_level.
15717 (expand_stack_save): Do not call do_pending_stack_adjust.
15718 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
15719 * calls.c (expand_call): Call record_new_stack_level for alloca.
15720 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
15721 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
15722 (update_sjlj_context): New global function.
15723 * except.h (update_sjlj_context): Declare.
15724 * explow.c (record_new_stack_level): New global function.
15725 (allocate_dynamic_stack_space): Call record_new_stack_level.
15726 * explow.h (record_new_stack_level): Declare.
15727 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
15728 * cfgrtl.c (duplicate_insn_chain): Likewise.
15730 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15732 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
15733 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
15734 STACK_GROWS_DOWNWARD as normal if.
15735 (expand_call): Likewise.
15737 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
15740 * config/sh/sh.md (*round_int_even): New insn_and_split and
15741 accompanying new unnamed split.
15743 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15745 * bitmap.c (bitmap_set_range): Handle count==1 specially.
15746 (bitmap_clear_range): Likewise.
15747 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
15748 bitmap_set_range unconditionally.
15749 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
15750 * df-scan.c (df_mark_reg): Likewise.
15751 * haifa-sched.c (setup_ref_regs): Likewise.
15752 * sched-rgn.c (update_live_1): Likewise.
15754 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15756 * regs.h (END_HARD_REGNO): Delete.
15757 (END_REGNO): Move to...
15759 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
15760 * caller-save.c (mark_set_regs): Likewise.
15761 * combine.c (move_deaths, distribute_notes): Likewise.
15762 * cse.c (invalidate, invalidate_for_call): Likewise.
15763 * df-scan.c (df_ref_record): Likewise.
15764 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
15765 (record_last_reg_set_info): Likewise.
15766 * reg-stack.c (convert_regs_exit): Likewise.
15767 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
15768 * resource.c (update_live_status): Likewise.
15769 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
15771 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15773 * rtl.h (reg_info): Add an nregs field.
15774 (REG_NREGS): Use it.
15775 (SET_REGNO_RAW): Delete.
15776 (set_regno_raw): New function.
15777 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
15778 (END_REGNO): Redefine in terms of REG_NREGS.
15779 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
15781 * emit-rtl.c (set_mode_and_regno): Likewise.
15782 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
15783 instead of SET_REGNO_RAW.
15785 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15787 * rtl.h (PUT_MODE_RAW): New macro.
15788 (PUT_REG_NOTE_KIND): Use it.
15789 (set_mode_and_regno): Declare.
15790 (gen_raw_REG): Change regno to "unsigned int".
15791 (gen_rtx_REG): Change "unsigned" to "unsigned int".
15792 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
15793 use set_mode_and_regno to change the mode of registers.
15794 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
15795 * emit-rtl.c (set_mode_and_regno): New function.
15796 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
15797 * caller-save.c (reg_save_code): Use set_mode_and_regno.
15798 * expr.c (init_expr_target): Likewise.
15799 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15800 * postreload.c (reload_cse_simplify_operands): Likewise.
15802 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15804 * caller-save.c (init_caller_save): Use word_mode and
15805 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
15806 * expr.c (init_expr_target): Likewise.
15807 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15808 * postreload.c (reload_cse_regs_1): Likewise.
15810 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15812 * rtl.def (REG): Change format to "r".
15813 * rtl.h (rtunion): Remove rt_reg.
15814 (reg_info): New structure.
15815 (rtx_def): Add reg field to main union.
15816 (X0REGATTR): Delete.
15817 (REG_CHECK): New macro.
15818 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
15819 * rtl.c (rtx_format): Document "r".
15820 (rtx_code_size): Handle REG specially.
15821 * gengenrtl.c (special_format): Return true for formats
15823 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
15824 Deal with REG_ATTRS after the field loop.
15825 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
15826 * expmed.c (init_expmed): Call gen_raw_REG instead of
15828 * expr.c (init_expr_target): Likewise.
15829 * regcprop.c (maybe_mode_change): Likewise.
15830 * varasm.c (make_decl_rtl): Likewise.
15831 * final.c (leaf_renumber_regs_insn): Return early after
15833 * genemit.c (gen_exp): Handle 'r' fields.
15834 * genpeep.c (match_rtx): Likewise.
15835 * gensupport.c (subst_pattern_match): Likewise.
15836 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
15837 (alter_constraints, subst_dup): Likewise.
15838 * read-rtl.c (read_rtx_code): Likewise.
15839 * print-rtl.c (print_rtx): Likewise.
15840 * genrecog.c (find_operand, find_matching_operand): Likewise.
15841 (validate_pattern, match_pattern_2): Likewise.
15842 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
15843 (rtx_test::regno_field): New function.
15844 (operator ==, safe_to_hoist_p, transition_parameter_type)
15845 (parameter_type_string, print_parameter_value)
15846 (print_nonbool_test, print_test): Handle new enum values.
15847 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
15848 * lra-constraints.c (operands_match_p): Likewise.
15850 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15852 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
15853 Change type of new_regno to unsigned int.
15854 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
15855 new_regno to unsigned int.
15856 (df_ref_change_reg_with_loc): Remove old_regno parameter.
15857 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
15858 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
15859 (SET_REGNO_RAW): Add space after ",".
15861 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15863 * rtl.h (REG_NREGS): New macro
15864 * alias.c (record_set): Use it.
15865 * cfgcleanup.c (mark_effect): Likewise.
15866 * combine.c (likely_spilled_retval_1): Likewise.
15867 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
15868 (move_deaths, distribute_notes): Likewise.
15869 * cselib.c (cselib_record_set): Likewise.
15870 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
15871 * df-scan.c (df_mark_reg): Likewise.
15872 * dse.c (look_for_hardregs): Likewise.
15873 * dwarf2out.c (reg_loc_descriptor): Likewise.
15874 (multiple_reg_loc_descriptor): Likewise.
15875 * expr.c (write_complex_part, read_complex_part): Likewise.
15876 (emit_move_complex): Likewise.
15877 * haifa-sched.c (setup_ref_regs): Likewise.
15878 * ira-lives.c (mark_hard_reg_live): Likewise.
15879 * lra.c (lra_set_insn_recog_data): Likewise.
15880 * mode-switching.c (create_pre_exit): Likewise.
15881 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
15882 (reload_combine_recognize_pattern): Likewise.
15883 (reload_combine_note_use, move2add_record_mode): Likewise.
15884 (reload_cse_move2add): Likewise.
15885 * reg-stack.c (subst_stack_regs_pat): Likewise.
15886 * regcprop.c (kill_value, copy_value): Likewise.
15887 (copyprop_hardreg_forward_1): Likewise.
15888 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
15889 (build_def_use): Likewise.
15890 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
15891 (deps_analyze_insn): Likewise.
15892 * sched-rgn.c (check_live_1, update_live_1): Likewise.
15893 * sel-sched.c (count_occurrences_equiv): Likewise.
15894 * valtrack.c (dead_debug_insert_temp): Likewise.
15896 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
15898 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
15899 * dse.c (note_add_store): Likewise.
15900 * ira-lives.c (mark_hard_reg_dead): Likewise.
15901 * loop-invariant.c (mark_reg_store): Likewise.
15902 (mark_reg_death): Likewise.
15903 * postreload.c (reload_combine): Likewise.
15904 (reload_combine_note_store): Likewise.
15905 (reload_combine_note_use): Likewise.
15906 * recog.c (peep2_reg_dead_p): Likewise.
15908 2015-05-19 Alan Modra <amodra@gmail.com>
15910 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
15911 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
15912 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
15914 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
15915 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
15916 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
15917 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
15919 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
15921 * config/mips/mips.md (JOIN_MODE): New mode iterator.
15922 (join2_load_Store<JOIN_MODE:mode>): New pattern.
15923 (join2_loadhi): Likewise.
15924 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
15925 load-load and store-stores.
15926 * config/mips/mips.opt (mload-store-pairs): New option.
15927 (TARGET_LOAD_STORE_PAIRS): New macro.
15928 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
15929 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
15930 * config/mips/mips.c (mips_load_store_bonding_p): New function.
15932 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
15934 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
15936 * dojump.c (do_compare_rtx_and_jump): Likewise.
15937 * expmed.c (emit_store_flag_1): Likewise.
15938 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
15939 * final.c (sprint_ul): Use std::reverse for reversing a string.
15940 * fold-const.c (extract_muldiv_1): Use std::swap.
15941 * genmodes.c (emit_mode_int_n): Likewise.
15942 * ifcvt.c (dead_or_predicable): Likewise.
15943 * ira-build.c (ira_merge_live_ranges): Likewise.
15944 (swap_allocno_copy_ends_if_necessary): Likewise.
15945 * ira.c (ira_setup_alts): Likewise.
15946 * loop-iv.c (iv_analyze_expr): Likewise.
15947 (implies_p): Likewise.
15948 (canon_condition): Likewise.
15949 * lra-constraints.c (swap_operands): Likewise.
15950 * lra-lives.c (lra_merge_live_ranges): Likewise.
15951 * omega.c (swap): Remove.
15953 (omega_unprotect_1): Use std::swap.
15954 (omega_solve_geq): Likewise.
15955 * optabs.c (expand_binop_directly): Likewise.
15956 (expand_binop): Likewise.
15957 (emit_conditional_move): Likewise.
15958 (emit_conditional_add): Likewise.
15959 * postreload.c (reload_cse_simplify_operands): Likewise.
15960 * reg-stack.c (emit_swap_insn): Likewise.
15961 (swap_to_top): Likewise.
15962 (compare_for_stack_reg): Likewise.
15963 (subst_asm_stack_regs): Likewise.
15964 * reload.c (find_reloads): Likewise.
15965 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
15966 * sel-sched.c (invoke_reorder_hooks): Likewise.
15967 (create_block_for_bookkeeping): Likewise.
15968 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
15969 (lambda_matrix_right_hermite): Use std::swap.
15970 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
15971 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
15972 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
15973 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
15974 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
15975 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
15976 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15977 * tree-vrp.c (compare_ranges): Likewise.
15978 * var-tracking.c (add_with_sets): Likewise.
15979 (vt_find_locations): Likewise.
15981 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
15983 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
15985 (FBSD_ENDFILE_SPEC): Likewise.
15986 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
15987 config/freebsd-spec.h.
15988 (ENDFILE_SPEC): Likewise.
15990 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
15991 Richard Henderson <rth@redhat.com>
15994 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
15995 Check for a memory location that is not a reference (using an AND)
15996 to an unaligned location here.
15997 * config/alpha/predicates.md (normal_memory_operand): Remove.
15999 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
16001 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
16002 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
16004 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
16006 * config/mips/mips.c (micromips_globals): New variable.
16007 (mips_set_compression_mode): Save and reinitialize target-dependent
16008 state for microMIPS.
16010 2015-05-18 Martin Liska <mliska@suse.cz>
16012 * dbgcnt.def: Add new counter.
16013 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
16015 2015-05-18 Martin Liska <mliska@suse.cz>
16017 * dbgcnt.def: Sort counters.
16018 * opts.c (common_handle_option): Do not compile if
16019 -fdbg-cnt-list is enabled.
16021 2015-05-18 Tom de Vries <tom@codesourcery.com>
16023 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
16024 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
16025 address operator to va_list operand.
16026 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
16028 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
16030 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
16031 * config/s390/s390.c (s390_gimplify_va_arg): Same.
16032 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
16034 2015-05-18 Tom de Vries <tom@codesourcery.com>
16036 * tree-ssa-tail-merge.c: Fix whitespace.
16038 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
16040 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
16041 cortex-a17, and cortex-a17.cortex-a7.
16043 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
16046 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
16048 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
16051 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
16052 QImode inner modes for TARGET_AVX512BW. Force mask operand
16053 to a register for AVX512F modes.
16055 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16057 * toplev.c (emit_debug_global_declarations): Do not output debug info
16058 when doing slim LTO objects.
16060 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16062 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
16063 odr_types_equivalent_p): Declare.
16064 (odr_type_p): Use gcc_checking_assert.
16065 (type_in_anonymous_namespace_p) Declare.
16066 (type_with_linkage_p): Declare.
16067 * common.opt (Wlto-type-mismatch): New warning.
16068 * ipa-devirt.c (compound_type_base): New function.
16069 (odr_or_derived_type_p): New function.
16070 (odr_types_equivalent_p): New function.
16071 (add_type_duplicate): Simplify.
16072 (type_with_linkage_p): Add hack to prevent false positives on C types
16073 (type_in_anonymous_namespace_p): Likewise.
16074 * tree.c (need_assembler_name_p): Use type_with_linkage.
16075 * tree.h (type_in_anonymous_namespace_p): Remove.
16076 * doc/invoke.texi (-Wlto-type-mismatch): Document
16078 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
16080 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
16081 (verify_type): Verify STRING_FLAG.
16083 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
16086 * tree-pretty-print.c (percent_K_format): Replace locus pointer
16087 with accessor function.
16088 * tree-diagnostic.c (diagnostic_report_current_function): Use
16089 diagnostic_location function.
16090 (maybe_unwind_expanded_macro_loc): Likewise.
16091 (virt_loc_aware_diagnostic_finalizer): Likewise.
16092 (default_tree_printer): Replace locus pointer with accessor function.
16093 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
16094 (diagnostic_set_info_translated): Initialize second location.
16095 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
16096 (diagnostic_show_locus): Handle two locations. Call
16097 diagnostic_print_caret_line.
16098 (diagnostic_print_caret_line): New.
16099 (default_diagnostic_starter): Use diagnostic_location function.
16100 (diagnostic_report_diagnostic): Use diagnostic_location function.
16101 (verbatim): Do not set text.locus.
16102 * diagnostic.h (struct diagnostic_info): Remove location field.
16103 (struct diagnostic_context): Make caret_chars an array of two.
16104 (diagnostic_location): New inline.
16105 (diagnostic_expand_location): Handle two locations.
16106 (diagnostic_same_line): New inline.
16107 (diagnostic_print_caret_line): Declare.
16108 (CARET_LINE_MARGIN): New constant.
16109 * pretty-print.c (pp_printf): Do not set text.locus.
16110 (pp_verbatim): Do not set text.locus.
16111 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
16112 (struct text_info): Replace locus pointer with locations
16113 array. Add accessor functions.
16115 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
16116 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16119 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
16120 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
16121 large constants in register instead of splitting them.
16123 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
16126 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
16127 replacements in memory addresses.
16128 (get_unaligned_address): Ditto.
16130 2015-05-16 James Bowman <james.bowman@ftdichip.com>
16132 * config/ft32/*: New files for FT32 port.
16133 * doc/install.texi: Add FT32 information.
16134 * doc/invoke.texi: Add FT32 information.
16135 * doc/md.texi: Add FT32 information.
16136 * doc/contrib.texi: Self added.
16138 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
16140 PR tree-optimization/64454
16141 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
16142 (-1 - A -> ~A): Remove unnecessary condition.
16144 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
16146 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
16147 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
16148 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
16150 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
16152 * ipa-chkp.h (chkp_wrap_function): New.
16153 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
16154 (chkp_wrap_function_name): New.
16155 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
16156 to get wrapper name.
16157 * lto-cgraph.c: Include ipa-chkp.h.
16158 (input_cgraph_1): Avoid alias chain for wrappers.
16160 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
16162 PR middle-end/66134
16163 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
16164 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
16166 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16168 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
16169 (AARCH64_FL_SLOWMUL): Delete.
16170 (AARCH64_FL_CRC): Redefine to 1<<3.
16171 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
16173 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16175 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
16178 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
16180 * config/alpha/alpha.md (extendqidi2): Use general_operand
16181 instead of some_operand for operand[1] predicate.
16182 (extendhidi2): Ditto.
16183 (cbranchdi4): Use general_operand instead of some_operand
16184 for operand[1] and operands[2] predicates.
16185 (cstoredi4): Ditto.
16186 * config/alpha/predicates.md (some_operand): Remove unused predicate.
16187 (some_ni_operand): Ditto.
16189 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
16191 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
16192 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
16193 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
16194 low part of the constant using alpha_emit_set_const_1.
16195 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
16197 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
16199 * varasm.c (output_constant_pool_1): Pass down alignment from
16200 constant pool entry's descriptor to output_constant_pool_2.
16201 (output_object_block): Add comment prior to call to
16202 output_constant_pool_1.
16204 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
16206 PR rtl-optimization/65862
16207 * target.def (ira_change_pseudo_allocno_class): New hook.
16208 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
16210 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
16211 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
16213 * ira-costs.c (find_costs_and_classes): Call the hook and change
16214 classes when it is necessary.
16215 * doc/tm.texi: Update.
16217 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
16219 * config/i386/i386.md (sibcall_memory): Check that register with
16220 callee address is not also used as one of the arguments, instead
16221 of checking that it is not live after the sibcall.
16222 (sibcall_pop_memory): Ditto.
16223 (sibcall_value_memory): Ditto.
16224 (sibcall_value_pop_memory): Ditto.
16226 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
16228 * generic-match-head.c (types_match): Handle non-types.
16229 * gimple-match-head.c (types_match): Likewise.
16230 * match.pd: Remove unnecessary TREE_TYPE for types_match.
16232 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
16234 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
16235 (csneg3<mode>_insn): Enable expansion of pattern.
16237 2015-05-14 Nick Clifton <nickc@redhat.com>
16239 * config/rl78/rl78.c (rl78_select_section): Select the correct
16240 default section based upon the category of the decl.
16242 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
16244 PR rtl-optimization/30967
16245 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
16246 destination mode for the cost of scc patterns.
16248 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
16250 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
16251 using SWIM248 mode iterator.
16252 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
16253 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
16254 for operand[2] constraint.
16255 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
16257 2015-05-13 Jakub Jelinek <jakub@redhat.com>
16259 PR middle-end/66133
16260 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
16261 make sure it is never noreturn, even when the task body does not
16263 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
16264 right before GIMPLE_OMP_RETURN.
16265 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
16266 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
16267 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
16269 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16271 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
16272 * tree-ssa-math-opts.c: Include params.h
16273 (pow_synth_sqrt_info): New struct.
16274 (representable_as_half_series_p): New function.
16275 (get_fn_chain): Likewise.
16276 (print_nested_fn): Likewise.
16277 (dump_fractional_sqrt_sequence): Likewise.
16278 (dump_integer_part): Likewise.
16279 (expand_pow_as_sqrts): Likewise.
16280 (gimple_expand_builtin_pow): Use above to attempt to expand
16281 pow as series of square roots. Removed now unused variables.
16283 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
16285 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
16286 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
16287 Remove *p0 and *p1 arguments. Rewrite function.
16288 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
16289 (alpha_split_const_mov): Update calls to alpha_extract_integer and
16290 alpha_emit_set_long_const.
16291 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
16292 (alpha_output_mi_thunk_osf): Ditto.
16293 * config/alpha/alpha.md (movti): Do not check operands[1]
16296 2015-05-13 Richard Biener <rguenther@suse.de>
16298 PR tree-optimization/66129
16299 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
16301 (vect_schedule_slp_instance): Fix typo.
16303 2015-05-13 David Malcolm <dmalcolm@redhat.com>
16305 * common.opt (fdump-internal-locations): New option.
16306 * input.c: Include diagnostic-core.h.
16307 (get_end_location): New function.
16308 (write_digit): New function.
16309 (write_digit_row): New function.
16310 (dump_location_range): New function.
16311 (dump_labelled_location_range): New function.
16312 (dump_location_info): New function.
16313 * input.h (dump_location_info): New prototype.
16314 * toplev.c (compile_file): Handle flag_dump_locations.
16316 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
16318 * gimple-expr.h (is_gimple_constant): Reorder.
16319 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
16321 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
16323 * combine.c (simplify_set): When generating a CC set, if the
16324 source already is in the correct mode, do not wrap it in a
16325 compare. Simplify the rest of that code.
16327 2015-05-13 Richard Biener <rguenther@suse.de>
16329 PR tree-optimization/66123
16330 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
16333 2015-05-13 Richard Biener <rguenther@suse.de>
16335 PR middle-end/66110
16336 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
16338 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
16340 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
16342 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
16343 * aclocal.m4: Regenerated with automake-1.11.6.
16345 2015-05-13 Tom de Vries <tom@codesourcery.com>
16347 PR tree-optimization/66010
16348 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
16349 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
16350 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
16351 and rval based on do_deref.
16353 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
16356 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
16357 link time constants into adress expressions and therefore set
16360 2015-05-13 Jakub Jelinek <jakub@redhat.com>
16363 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
16364 Use SWI248 iterator instead of SWI.
16365 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
16366 Use eq_attr "alternative" "0" instead of match_test in
16367 length_immediate attribute computation.
16368 (*mulvhi4, *mulvhi4_1): New define_insns.
16371 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
16372 SIGNED to get precision of non-negative value.
16374 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
16377 * function.c (diddle_return_value_1): Process bounds first.
16378 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
16381 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16383 PR rtl-optimization/64616
16384 * loop-invariant.c (can_move_invariant_reg): New.
16385 (move_invariant_reg): Call above new function to decide whether
16386 instruction can just be moved, skipping creation of temporary
16389 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
16391 PR target/pr66047.c
16392 * i386.c (ix86_function_sseregparm): Only return -1 if local function
16393 with implied regparm is called from -mno-sse function.
16394 (init_cumulative_args): Output error if ix86_function_sseregparm
16395 return -1 and SSE register would be needed.
16396 (function_arg_advance_32): Likewise.
16397 (function_arg_32): Likewise.
16398 * i386.h (ix86_args): Add decl field.
16400 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
16403 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
16404 inlines across optimization boundary.
16406 2015-05-12 Jason Merrill <jason@redhat.com>
16408 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
16409 string literal and macro name.
16411 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
16413 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
16414 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
16415 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
16417 2015-05-12 David Malcolm <dmalcolm@redhat.com>
16419 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
16420 (-Wmisleading-indentation): New option.
16421 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
16423 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
16425 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
16426 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
16427 (alpha_extract_integer): Ditto.
16428 (alpha_legitimate_constant_p): Ditto.
16429 (alpha_split_tmode_pair): Ditto.
16430 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
16431 (alpha_expand_mov): Ditto.
16432 (print_operand): Remove handling of 'H' modifier.
16433 <case 'm'>: Remove CONST_DOUBLE handling.
16434 (summarize_insn): Handle CONST_WIDE_INT.
16435 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
16437 (movti): Handle CONST_WIDE_INT.
16438 * config/alpha/constraints.md ('H'): Remove constraint definition.
16439 ('G'): Do not match MODE_FLOAT class.
16440 * config/alpha/predicates.md (const0_operand): Also match
16442 (non_add_const_operand): Ditto.
16443 (non_zero_const_operand): Ditto.
16444 (some_operand): Ditto.
16445 (input_operand): Ditto. Handle CONST_WIDE_INT.
16446 (and_operand): Do not match const_double.
16447 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
16449 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
16452 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
16453 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
16454 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
16455 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
16456 is_mm_seq_cst, is_mm_sync): New accessor functions.
16457 * builtins.c (expand_builtin_sync_operation,
16458 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
16459 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
16460 (get_memmodel, expand_builtin_atomic_compare_exchange,
16461 expand_builtin_atomic_load, expand_builtin_atomic_store,
16462 expand_builtin_atomic_clear): Use new accessor routines.
16463 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
16464 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
16465 (maybe_emit_sync_lock_test_and_set): Use new accessors and
16466 MEMMODEL_SYNC_ACQUIRE.
16467 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
16468 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
16469 expand_atomic_store): Use new accessors.
16470 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
16471 * tsan.c (instrument_builtin_call): Update check for memory model beyond
16472 final enum to use MEMMODEL_LAST.
16473 * c-family/c-common.c: Use new accessor for memmodel_base.
16474 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
16476 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
16477 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
16478 mem_thread_fence, *dmb): Likewise.
16479 * config/alpha/alpha.c (alpha_split_compare_and_swap,
16480 alpha_split_compare_and_swap_12): Likewise.
16481 * config/arm/arm.c (arm_expand_compare_and_swap,
16482 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
16483 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
16484 atomic_loaddi): Likewise.
16485 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
16487 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
16488 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
16490 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
16491 atomic_store<mode>, atomic_compare_and_swap<mode>,
16492 atomic_exchange<mode>): Use new accessors.
16493 * config/mips/mips.c (mips_process_sync_loop): Likewise.
16494 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
16495 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
16496 rs6000_post_atomic_barrier): Add new cases.
16497 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
16498 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
16499 (atomic_load<mode>): Add new cases and use new accessors.
16500 (store_quadpti): Add new cases.
16501 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
16503 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
16504 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
16507 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
16509 * ipa-devirt.c (type_with_linkage_p): New function.
16510 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
16512 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
16513 (can_be_name_hashed_p): Simplify.
16514 (hash_odr_name): Check that type has linkage before checking if it is
16516 (types_same_for_odr): Likewise.
16517 (odr_name_hasher::equal): Likewise.
16518 (odr_subtypes_equivalent_p): Likewise.
16519 (warn_types_mismatch): Likewise.
16520 (get_odr_type): Likewise.
16521 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
16522 * ipa-utils.h (odr_type_p): Move offline.
16523 * tree.c (need_assembler_name_p): Fix handling of types
16525 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
16527 2015-05-12 David Malcolm <dmalcolm@redhat.com>
16529 * timevar.c (timevar_enable): Delete in favor of...
16530 (g_timer): New global.
16531 (struct timevar_def): Move to timevar.h inside class timer.
16532 (struct timevar_stack_def): Likewise.
16533 (timevars): Delete global in favor of field "m_timevars" within
16534 class timer in timevar.h
16535 (stack): Likewise, in favor of field "m_stack".
16536 (unused_stack_instances): Likewise, in favor of field
16537 "m_unused_stack_instances".
16538 (start_time): Likewise, in favor of field "m_start_time".
16539 (get_time): Eliminate check for timevar_enable.
16540 (timer::timer): New function, built from part of timevar_init.
16541 (timevar_init): Rewrite idempotency test from using
16542 "timevar_enable" bool to using dynamic allocation of "g_timer".
16543 Move rest of implementation into timer's constructor.
16544 (timevar_push_1): Rename to...
16545 (timer::push): ...this, adding "m_" prefixes to variables that
16546 are now fields of timer.
16547 (timevar_pop_1): Likewise, rename to...
16548 (timer::pop): ...this, and add "m_" prefixes.
16549 (timevar_start): Replace test for "timevar_enable" with one for
16550 "g_timer", and move bulk of implementation to...
16551 (timer::start): ...here, adding "m_" prefixes.
16552 (timevar_stop): Likewise, from here...
16553 (timer::stop): ...to here.
16554 (timevar_cond_start): Likewise, from here...
16555 (timer::cond_start): ...to here.
16556 (timevar_cond_stop): Likewise, from here...
16557 (timer::cond_stop): ...to here.
16558 (validate_phases): Rename to...
16559 (timer::validate_phases): ...this, and add "m_" prefixes. Make
16560 locals "total" and "tv" const.
16561 (timevar_print): Rename to...
16562 (timer::print): ...this, and add "m_" prefixes. Make locals
16563 "total" and "tv" const. Eliminate test for timevar_enable.
16564 * timevar.h (timevar_enable): Eliminate.
16565 (g_timer): New declaration.
16566 (timevar_push_1): Eliminate.
16567 (timevar_pop_1): Eliminate.
16568 (timevar_print): Eliminate.
16569 (class timer): New class.
16570 (timevar_push): Rewrite to use g_timer.
16571 (timevar_pop): Likewise.
16572 * toplev.c (toplev::~toplev): Likewise.
16574 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
16576 * arm-protos.h (arm_sched_autopref): Delete.
16577 (tune_params): Re-organize, use enums for flag values.
16578 (FUSE_OPS): New macro.
16579 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
16580 (ARM_PREFETCH_BENEFICIAL): Likewise.
16581 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
16582 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
16583 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
16584 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
16585 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
16586 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
16587 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
16588 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
16590 (arm_option_override, thumb2_reorg, arm_print_tune_info)
16591 (aarch_macro_fusion_pair_p): Update uses of current_tune.
16592 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
16594 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
16596 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
16599 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
16600 Sandra Loosemore <sandra@codesourcery.com>
16602 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
16604 (REG_CLASS_NAMES): Add "IJMP_REGS".
16605 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
16606 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
16607 use new "c" register constraint.
16608 * config/nios2/constraint.md (c): New register constraint
16609 corresponding to IJMP_REGS.
16611 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
16613 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
16614 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
16615 define_splits): Delete, revamp, transmogrify into ...
16616 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
16617 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
16618 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
16621 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
16623 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
16624 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
16626 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
16628 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
16629 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
16630 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
16631 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
16632 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
16633 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
16634 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
16635 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
16636 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
16637 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
16638 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
16639 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
16640 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
16641 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
16642 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
16643 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
16644 and 30 corresponding splitters): Delete.
16646 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
16648 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
16651 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
16653 * combine.c (recog_for_combine_1): New function, factored out
16654 from recog_for_combine.
16655 (change_zero_ext): New function.
16656 (recog_for_combine): If recog fails, try again with the pattern
16657 modified by change_zero_ext; if that still fails, restore the
16660 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
16662 * combine.c (get_undo_marker): New function.
16663 (undo_to_marker): New function, largely factored out from ...
16664 (undo_all): ... this. Adjust.
16666 2015-05-12 Richard Biener <rguenther@suse.de>
16668 PR tree-optimization/66101
16669 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
16670 fixup if we turn a loop exit edge to a fallthru edge.
16672 2015-05-12 Richard Biener <rguenther@suse.de>
16674 PR tree-optimization/37021
16675 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
16676 (SLP_TREE_TWO_OPERATORS): New define.
16677 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
16678 SLP_TREE_TWO_OPERATORS.
16679 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
16681 (vect_build_slp_tree): Adjust.
16682 (vect_analyze_slp_cost_1): Likewise.
16683 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
16684 emitting two vector stmts and mixing the results.
16686 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
16688 * call.c (print_z_candidates): Remove dead code.
16690 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16692 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
16693 and zEC12_simple_fp.
16694 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
16697 2015-05-12 Tom de Vries <tom@codesourcery.com>
16699 PR tree-optimization/66010
16700 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
16702 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
16703 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
16704 va_lists are passed, and remove corresponding handling.
16705 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
16706 do_deref argument to ifn_va_arg.
16707 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
16710 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16713 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
16714 REG before taking its REGNO.
16716 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
16718 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
16719 rsp->sign_bit_copies and rsp->nonzero_bits into ...
16720 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
16721 present to get more accurate information about the number of sign bit
16722 copies and non zero bits.
16724 2015-05-12 Richard Biener <rguenther@suse.de>
16726 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
16727 do not allow unrolling.
16729 2015-05-11 Richard Henderson <rth@redhat.com>
16731 * config/i386/i386-modes.def (CCP): New.
16732 * config/i386/i386.c (put_condition_code): Handle it.
16733 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
16735 2015-05-11 Richard Henderson <rth@redhat.com>
16737 * target.def (md_asm_clobbers): Replace with...
16738 (md_asm_adjust): this.
16739 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
16740 (TARGET_MD_ASM_ADJUST): New.
16741 * tm.texi: Rebuild.
16742 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
16743 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
16744 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
16746 * cfgexpand.c (check_operand_nalternatives): Accept vector of
16747 constraints instead of lists of outputs and inputs.
16748 (expand_asm_stmt): Save and restore input_location around the
16749 body of the function. Move asm data into vectors instead of
16750 building tree lists. Generate cleanup sequences as needed,
16751 rather than waiting til the end. Use new md_asm_adjust hook.
16753 * config/vxworks.c: Include vec.h before target.h.
16754 * gimple.c: Likewise.
16755 * incpath.c: Likewise.
16756 * mode-switching.c: Likewise.
16758 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
16759 (cris_md_asm_adjust): this.
16760 (TARGET_MD_ASM_CLOBBERS): Remove.
16761 (TARGET_MD_ASM_ADJUST): New.
16762 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
16763 (ix86_md_asm_adjust): this.
16764 (TARGET_MD_ASM_CLOBBERS): Remove.
16765 (TARGET_MD_ASM_ADJUST): New.
16766 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
16767 (mn10300_md_asm_adjust): this.
16768 (TARGET_MD_ASM_CLOBBERS): Remove.
16769 (TARGET_MD_ASM_ADJUST): New.
16770 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
16771 (rs6000_md_asm_adjust): this.
16772 (TARGET_MD_ASM_CLOBBERS): Remove.
16773 (TARGET_MD_ASM_ADJUST): New.
16774 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
16775 (visium_md_asm_adjust): this.
16776 (TARGET_MD_ASM_CLOBBERS): Remove.
16777 (TARGET_MD_ASM_ADJUST): New.
16779 2015-05-11 Richard Henderson <rth@redhat.com>
16781 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
16782 if noutputs is zero.
16783 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
16785 * cfgexpand.c (expand_asm_operands): Merge into...
16786 (expand_asm_stmt): ... here.
16788 * cfgexpand.c (expand_asm_operands): Don't call
16789 resolve_asm_operand_names.
16790 * stmt.c (resolve_asm_operand_names): Clarify block comment.
16792 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
16794 * dwarf2out.c (gen_member_die): Sanity check that we access
16795 TYPE_MAIN_VARIANT for TYPE_METHODS.
16796 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
16797 checking TYPE_METHODS.
16798 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
16800 (build_distinct_type_copy): Clear TYPE_METHODS.
16801 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
16802 (verify_type): Allow TYPE_METHODS to be error_mark_node.
16803 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
16805 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
16807 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
16808 (emit_pattern_before_setloc): Likewise.
16810 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
16812 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
16813 for define_peephole2s.
16814 (get_peephole2_pattern): New function.
16815 (main): Use it. Call validate_pattern.
16817 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16819 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
16820 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
16821 (Last callee saved reg is different for AVR_TINY architecture)
16823 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
16825 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
16826 when looking for memory references.
16828 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
16831 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
16832 via function pointers.
16834 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
16836 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
16837 indirect call by forcing address into a pseudo with -fno-plt.
16838 * common.opt (flag_plt): New option.
16839 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
16840 ([-fno-plt]): Document.
16842 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
16845 * config/rs6000/option-defaults.h: Add space between string literal
16848 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16850 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
16851 accross ARM targets.
16853 2015-05-11 Christian Bruel <christian.bruel@st.com>
16855 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
16856 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
16858 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
16860 PR rtl-optimization/66076
16861 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
16862 Don't grow the heap array if it is already big enough from a
16863 previous iteration.
16865 2015-05-11 Christian Bruel <christian.bruel@st.com>
16867 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
16868 (is_called_in_ARM_mode): Remove.
16869 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
16870 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
16871 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
16872 arm_declare_function_name.
16874 2015-05-11 Christian Bruel <christian.bruel@st.com>
16876 * config/arm/arm.c (arm_option_override): Reoganized and split into :
16877 (arm_option_params_internal); New function.
16878 (arm_option_check_internal): New function.
16879 (arm_option_override_internal): New function.
16880 (thumb_code, thumb1_code): Remove.
16881 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
16882 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
16883 (thumb_code, thumb1_code): Remove.
16884 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
16886 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
16888 * config/alpha/alpha.c (alpha_emit_set_const_1)
16889 (alpha_emit_set_long_const, alpha_extract_integer)
16890 (alpha_legitimate_constant_p, alpha_split_const_mov)
16891 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
16892 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16893 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
16895 * config/alpha/predicates.md (mode_mask_operand): Do not match
16897 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16898 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
16899 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
16900 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16901 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
16903 2015-05-11 Jakub Jelinek <jakub@redhat.com>
16906 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
16907 default_binds_local_p_2.
16908 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
16909 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
16911 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16913 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
16915 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16917 Patch by Richard Biener
16918 * coverage.c (coverage_obj_init): Delay building of type variant
16919 until the type is finished.
16921 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16923 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
16924 mismatch between C and C++ type; compoare correctly ARG_TYPES
16925 for non-prototypes and output correctly parameter index for METHOD_TYPE.
16926 (odr_types_equivalent_p): Fix wording of warning about attributes;
16927 it is OK to match prototype and non-prototype.
16929 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16931 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
16932 TYPE_ARG_TYPES list.
16933 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
16934 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
16936 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
16938 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
16939 * tree.h (is_lang_specific): Constify.
16941 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
16943 PR tree-optimization/64454
16944 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
16947 2015-05-08 Jason Merrill <jason@redhat.com>
16949 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
16950 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
16951 config/darwin.h, config/darwin9.h, config/elfos.h,
16952 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
16953 config/microblaze/microblaze.h, config/mips/mips.h,
16954 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
16955 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
16956 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
16957 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
16958 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
16959 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
16960 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
16961 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
16962 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
16963 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
16964 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
16965 between string literal and macro name.
16967 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16969 * jump.c: Change argument types to rtx_insn *.
16972 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16974 * lra-constraints.c: Change argument type to rtx_insn *.
16976 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16978 * df-problems.c: Change argument type to rtx_insn *.
16980 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16982 * combine.c: Change argument type to rtx_insn *.
16984 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16987 * rtlanal.c: Change argument type to rtx_insn *.
16989 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16991 * sched-deps.c: Change argument types to rtx_insn *.
16992 * sched-int.h: Adjust.
16994 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16996 * dwarf2cfi.c: Change argument type to rtx_insn *.
16998 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17000 * ira.c (decrease_live_ranges_number): Changetype of local
17001 variable to rtx_insn *.
17002 * recog.c: Change argument types to rtx_insn *.
17005 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17007 * reorg.c: Change argument types to rtx_insn *.
17009 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17011 * ira-color.c: Change argument types to rtx_insn *.
17012 * lra-eliminations.c: Likewise.
17015 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17017 * gcse.c: Change argument types to rtx_insn *.
17019 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17021 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
17023 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17025 * emit-rtl.c (emit_debug_insn_before): Change argument type to
17029 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17031 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
17034 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17036 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
17039 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17041 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
17044 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17046 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
17049 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17051 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
17055 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17057 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
17061 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17063 * except.c (can_nonlocal_goto): Change type of argument to
17067 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17069 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
17072 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17074 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
17075 * cfgrtl.c (can_delete_label_p): Adjust.
17078 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17080 * reorg.c (stop_search_p): Change argument to rtx_insn *.
17082 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17084 * except.c (make_reg_eh_region_note): Change argument to
17086 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
17087 * except.h: Adjust.
17089 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17091 * mode-switching.c (commit_mode_sets): Change type of local
17092 variable from rtx to rtx_insn *.
17094 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
17096 * doc/install.texi (--enable-languages): Add missing jit and lto info.
17097 Add ^ to grep command.
17098 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
17099 arg to last gimple_simplify declaration. Add missing gimple_build
17100 declaration for built-in function case with four tree args.
17102 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
17103 Szabolcs Nagy <szabolcs.nagy@arm.com>
17105 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
17106 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
17107 (GNU_USER_DYNAMIC_LINKERN32): Update.
17109 2015-05-08 Richard Biener <rguenther@suse.de>
17111 PR tree-optimization/66036
17112 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17113 Handle strided group loads.
17114 (vect_verify_datarefs_alignment): Likewise.
17115 (vect_enhance_data_refs_alignment): Likewise.
17116 (vect_analyze_group_access): Likewise.
17117 (vect_analyze_data_ref_access): Likewise.
17118 (vect_analyze_data_ref_accesses): Likewise.
17119 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
17120 (vectorizable_load): Likewise.
17122 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
17124 * config/rs6000/rs6000.md: Require operand inequality in one
17127 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
17128 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17130 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
17132 * config/rx/rx.md (movdi, movdf): Likewise.
17133 Likewise for define_peephole2s.
17135 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17137 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
17138 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
17139 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
17140 vtst_u64): Rewrite using gcc vector extensions.
17142 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17144 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
17145 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
17147 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
17149 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
17151 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17153 * config/glibc-stdint.h (OPTION_MUSL): Define.
17154 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
17155 Change the definition based on OPTION_MUSL for 64 bit targets.
17156 * config/linux.h (OPTION_MUSL): Redefine.
17157 * config/alpha/linux.h (OPTION_MUSL): Redefine.
17158 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
17159 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
17161 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
17162 Szabolcs Nagy <szabolcs.nagy@arm.com>
17164 * config.gcc (LIBC_MUSL): New tm_defines macro.
17165 * config/linux.h (OPTION_MUSL): Define.
17166 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
17167 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
17168 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17169 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17170 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17171 * config/linux.opt (mmusl): New option.
17172 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
17173 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17174 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17175 * configure: Regenerate.
17177 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
17178 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17181 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
17182 * config/i386/knetbsd-gnu64.h: New file.
17184 2015-05-08 Marek Polacek <polacek@redhat.com>
17187 * doc/invoke.texi: Document -Woverride-init-side-effects.
17189 2015-05-07 Marek Polacek <polacek@redhat.com>
17192 * doc/invoke.texi: Document -Wshift-negative-value.
17194 2015-05-06 Aditya Kumar <hiraditya@msn.com>
17196 * gcov-tool.c (do_merge): Refactore to remove int ret.
17197 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
17198 !type == FUNC to type != FUNC.
17199 * reload.h (struct target_reload): Changee to type of
17200 x_spill_indirect_levels from bool to unsigned char.
17202 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
17204 * rtl.h (always_void_p): New function.
17205 * gengenrtl.c (always_void_p): Likewise.
17206 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
17207 with code foo are always VOIDmode.
17208 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
17209 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
17210 compare-elim.c, config/aarch64/aarch64.c,
17211 config/aarch64/aarch64.md, config/alpha/alpha.c,
17212 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
17213 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
17214 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
17215 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
17216 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
17217 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
17218 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
17219 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
17220 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
17221 config/ia64/vect.md, config/iq2000/iq2000.c,
17222 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
17223 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
17224 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
17225 config/mep/mep.c, config/microblaze/microblaze.c,
17226 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
17227 config/mn10300/mn10300.c, config/msp430/msp430.c,
17228 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
17229 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
17230 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
17231 config/rs6000/altivec.md, config/rs6000/rs6000.c,
17232 config/rs6000/rs6000.md, config/rs6000/vector.md,
17233 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
17234 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
17235 config/sh/sh.md, config/sh/sh_treg_combine.cc,
17236 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
17237 config/spu/spu.md, config/stormy16/stormy16.c,
17238 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
17239 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
17240 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
17241 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
17242 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
17243 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
17244 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
17245 var-tracking.c: Update calls accordingly.
17247 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17250 PR middle-end/54303
17251 * varasm.c (function_mergeable_rodata_prefix): New function.
17252 (mergeable_string_section): Use it.
17253 (mergeable_constant_section): Use it.
17255 2015-05-07 Jeff Law <law@redhat.com>
17258 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
17259 simplifier to narrow arithmetic.
17260 * generic-match-head.c: (types_match, single_use): New functions.
17261 * gimple-match-head.c: (types_match, single_use): New functions.
17263 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17265 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
17268 2015-05-07 Richard Biener <rguenther@suse.de>
17270 PR tree-optimization/66002
17271 * passes.def: Schedule another pass_merge_phi after ifcombine, right
17274 2015-05-07 Marek Polacek <polacek@redhat.com>
17275 Martin Uecker <uecker@eecs.berkeley.edu>
17277 * doc/invoke.texi: Document -fsanitize=bounds-strict.
17278 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
17279 into SANITIZE_NONDEFAULT.
17280 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
17282 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
17285 * config/alpha/alpha.c (alpha_override_options_after_change): New.
17286 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
17287 (alpha_override_options): Move align_loops, align_jumps and
17288 align_functions handling into alpha_override_options_after_change.
17290 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
17291 Chris Jones <chrisj@nvidia.com>
17292 Joshua Conner <jconner@nvidia.com>
17294 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
17295 linking of crtfastmath.o.
17296 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
17298 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17300 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
17301 (cstore<mode>4_unsigned_imm): New expander.
17302 (cstore<mode>4): Remove empty constraint strings. Use the new
17305 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
17308 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
17311 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
17313 * config/aarch64/geniterators.sh: Use standard BRE in sed.
17315 2015-05-06 Alan Modra <amodra@gmail.com>
17318 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
17319 (UNSPEC_NOP): Define.
17320 (reload_vsx_from_gpr<mode>): Add missing DONE.
17321 (reload_gpr_from_vsx<mode>): Likewise.
17322 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
17323 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
17325 2015-05-06 Christian Bruel <christian.bruel@st.com>
17328 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
17329 align_jumps, align_functions into aarch64_override_options_after_change.
17331 2015-05-06 Richard Biener <rguenther@suse.de>
17333 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
17334 vect_transform_slp_perm_load to check if we support a permutation
17335 for basic-block vectorization.
17337 2015-05-06 Nick Clifton <nickc@redhat.com>
17339 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
17340 used, even if it is not being used as a frame pointer.
17342 2015-05-05 Jason Merrill <jason@redhat.com>
17344 * dwarf2out.c (gen_member_die): Don't emit anything for an
17345 anonymous class constructor.
17347 2015-05-05 David Malcolm <dmalcolm@redhat.com>
17349 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
17350 that it reflects the block structure.
17351 (afdo_propagate_edge): Likewise.
17352 (afdo_calculate_branch_prob): Likewise.
17353 (afdo_annotate_cfg): Likewise.
17354 * cfgcleanup.c (equal_different_set_p): Likewise.
17355 (try_crossjump_to_edge): Likewise.
17356 * cgraph.c (cgraph_node::verify_node): Likewise.
17357 * cgraphunit.c (expand_all_functions): Likewise.
17358 * config/i386/i386.c (ix86_expand_copysign): Likewise.
17359 (exact_dependency_1): Likewise.
17360 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
17361 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
17362 * gensupport.c (process_define_subst): Likewise.
17363 * lto-wrapper.c (merge_and_complain): Likewise.
17364 * tree-if-conv.c (if_convertible_bb_p): Likewise.
17365 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
17366 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
17367 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
17368 * tree-vect-loop.c (vectorizable_reduction): Likewise.
17369 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
17370 * tree-vect-stmts.c (vectorizable_shift): Likewise.
17371 * tree-vrp.c (vrp_finalize): Likewise.
17372 * tree.c (variably_modified_type_p): Likewise.
17374 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
17376 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
17377 on darwin12 and later.
17378 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
17379 file to pass -rdynamic on darwin12 and later.
17380 * config/darwin.opt (rdynamic): Add.
17382 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
17384 * doc/extend.texi (C Extensions): Update menu for moved Variable
17385 Attributes and Type Attributes sections.
17387 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
17390 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
17391 if rep_8byte stringop strategy was specified for 32-bit target.
17393 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
17396 * config/i386/i386.md (vector convert to float spltiter): Check for
17397 xmm16+, when splitting scalar float conversion.
17398 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
17400 2015-05-05 Nick Clifton <nickc@redhat.com>
17402 * config/msp430/msp430-opts.h (enum msp430_regions): New.
17403 * config/msp430/msp430.c (msp430_override_options): Complain if
17404 -mcode-region or -mdata-region is used on a non MSP430X.
17405 (msp430_section_attr): New function. Checks lower, upper and
17407 (msp430_attribute_table): Add lower, upper and either.
17408 (gen_prefix): New function. Generates a prefix for a section
17410 (msp430_select_section): New function - handles the choice of
17411 section for an object. Takes into account memory region
17412 attributes and options.
17413 (msp430_function_section): Use gen_prefix.
17414 (TARGET_SECTION_TYPE_FLAGS): Define.
17415 (msp430_section_type_flags): New function.
17416 (TARGET_ASM_UNIQUE_SECTION): Define.
17417 (msp430_unique_section): New function.
17418 (msp430_output_aligned_decl_common): New function.
17419 (msp430_do_not_relax_short_jumps): New function.
17420 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
17422 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
17423 * config/msp430/msp430-protos.h
17424 (msp430_do_not_relax_short_jumps): New prototype.
17425 (msp430_output_aligned_decl_common): New prototype.
17426 * config/msp430/msp430.md (length): New attribute.
17427 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
17428 then use a long code sequence for short jumps.
17429 * config/msp430/msp430.opt (mcode-region): New.
17430 (mdata-region): New.
17431 * doc/invoke.texi: Document new options.
17432 * doc/extend.texi: Document new attributes.
17434 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
17436 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
17437 (tune_params): Add field branch_costs.
17438 (aarch64_branch_cost): Declare.
17439 * gcc/config/aarch64.c (generic_branch_cost): New.
17440 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
17441 (cortexa53_tunings): Likewise.
17442 (cortexa57_tunings): Likewise.
17443 (thunderx_tunings): Likewise.
17444 (xgene1_tunings): Likewise.
17445 (aarch64_branch_cost): Define.
17446 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
17448 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
17450 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
17451 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
17452 * config/i386/i386.md: Ditto.
17453 * config/i386/winnt.c: Ditto.
17455 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
17457 * doc/extend.texi (__atomic Builtins): Move implementation details
17458 to the end of the description, rewrite opening paragraphs, state
17459 difference with __sync builtins, state C11/C++11 assumptions,
17460 weaken itemized descriptions, add explanation of memory model
17461 behaviour, expand description of compare-exchange, simplify text.
17463 2015-05-05 Renlin Li <renlin.li@arm.com>
17465 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
17467 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
17469 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
17470 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
17471 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
17472 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
17473 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
17474 * configure: Regenerate.
17475 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
17476 * doc/install.texi (aarch64*-*-*): Document new
17477 --enable-fix-cortex-a53-843419 option.
17478 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
17479 and -mno-fix-cortex-a53-843419 options.
17481 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
17484 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
17486 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
17488 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
17489 fix overactive TYPE_MIN_VALUE check and add FIXME for type
17490 compatibility problems.
17492 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
17494 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
17496 (cbranchsi4_reg): New.
17497 * config/microblaze/microblaze.c
17498 (microblaze_expand_conditional_branch_reg): New.
17499 * config/microblaze/microblaze-protos.h
17500 (microblaze_expand_conditional_branch_reg): New prototype.
17502 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
17504 * config/microblaze/microblaze.md (peephole2): New.
17506 2015-05-04 Jeff Law <law@redhat.com>
17509 2015-05-04 Jeff Law <law@redhat.com>
17511 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
17512 simplifier to narrow arithmetic.
17513 * generic-match-head.c: (types_match, single_use): New functions.
17514 * gimple-match-head.c: (types_match, single_use): New functions.
17516 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
17519 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
17520 (split_branches): Likewise.
17522 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
17524 * common.opt (fdelete-null-pointer-checks): Init to -1.
17525 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
17526 override flag_delete_null_pointer_checks default.
17527 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
17528 behavior re address zero. Better document target-specific behavior.
17529 (-fisolate-errneous-paths-dereference): Mention relationship to
17530 -fdelete-null-pointer-checks.
17532 2015-05-04 Jakub Jelinek <jakub@redhat.com>
17534 PR tree-optimization/65984
17535 * ubsan.c: Include tree-cfg.h.
17536 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
17537 stmt_could_throw_p test, rename can_throw variable to ends_bb.
17539 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
17541 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
17542 to CONST_DOUBLE_P predicate.
17543 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
17544 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
17545 allow only operands that satisfy standard_sse_constant_p predicate.
17546 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
17547 to CONST_DOUBLE_P predicate.
17549 2015-05-04 Jeff Law <law@redhat.com>
17551 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
17552 simplifier to narrow arithmetic.
17553 * generic-match-head.c: (types_match, single_use): New functions.
17554 * gimple-match-head.c: (types_match, single_use): New functions.
17556 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
17558 * config/arm/arm.c: Restore bootstrap.
17560 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
17562 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
17563 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
17564 as CONST_WIDE_INT, not CONST_DOUBLE.
17565 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
17566 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
17567 (ix86_find_base_term): Do not check for CONST_DOUBLE.
17568 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
17569 (ix86_build_signbit_mask): Rewrite using wide ints.
17570 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
17571 (ix86_rtx_costs): Handle CONST_WIDE_INT.
17572 (find_constant): Ditto.
17573 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
17574 using gen_int_mode.
17575 * config/i386/predicates.md (x86_64_immediate_operand)
17576 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
17577 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
17578 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
17579 (const0_operand): Also match const_wide_int.
17580 (constm1_operand): Ditto.
17581 (const1_operand): Ditto.
17583 2015-05-04 Richard Biener <rguenther@suse.de>
17585 PR tree-optimization/65965
17586 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
17587 store groups at gaps.
17589 2015-05-04 Richard Biener <rguenther@suse.de>
17591 PR tree-optimization/65935
17592 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
17593 then make sure to apply that swapping to the IL.
17595 2015-05-04 Jakub Jelinek <jakub@redhat.com>
17597 * Makefile.in (PATCHLEVEL_c): New variable.
17598 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
17599 expand the same way as if DEVPHASE_c was non-empty.
17601 2015-05-04 Kai Tietz <ktietz@redhat.com>
17604 * lto-wrapper.c (run_gcc): Open filename
17607 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
17609 * doc/extend.texi (Variable Attributes, Type Attributes): Move
17610 sections up in file, to immediately after the Function Attributes
17613 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
17615 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
17617 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17619 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
17620 (insert_partition_copy_on_edge): Adjust.
17621 (insert_rtx_to_part_on_edge): Likewise.
17622 (insert_part_to_rtx_on_edge): Likewise.
17624 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17626 * function.c (set_return_jump_label): Change type of argument to
17628 * function.h (set_return_jump_label): Adjust.
17630 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17632 * reload.h (struct reg_equivs_t): Change type of init to
17634 * ira.c (fix_reg_equiv_init): Adjust.
17635 * reload1.c (eliminate_regs_1): Likewise.
17636 (init_eliminable_invariants): Likewise.
17638 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17640 * cselib.c (fp_setter_insn): Take a rtx_insn *.
17641 * cselib.h (fp_setter_insn): Adjust.
17643 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17645 * recog.c (struct validate_replace_src_data): Change type of
17646 insn field to rtx_insn *.
17647 (validate_replace_src_group): Change type of argument to rtx_insn *.
17648 * recog.h (validate_replace_src_group): Adjust.
17650 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17652 * haifa-sched.c: Change the type of some variables to rtx_insn *.
17653 * sched-deps.c: Likewise.
17654 * sched-int.h: Likewise.
17655 * sched-rgn.c: Likewise.
17656 * sel-sched.c: Likewise.
17658 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17661 * config/i386/i386.c: Change the type of some arguments to
17663 * config/arm/arm.c: Likewise.
17665 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17667 * lra-constraints.c: Change type of some arguments to rtx_insn *.
17669 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17671 * regcprop.c (kill_autoinc_value): Change type of argument to
17674 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17676 * genrecog.c (print_subroutine): Adjust.
17677 * recog.c (get_bool_attr_mask_uncached): Likewise.
17678 * recog.h (struct recog_data_d): Change the type of insn to
17681 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17683 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
17685 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17687 * df-problems.c (df_set_note): Change type of argument to
17690 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17692 * builtins.c (expand_builtin_trap): Change type of local
17693 variable to rtx_insn *.
17694 (add_sched_insns_for_speculation): Likewise.
17695 (ix86_emit_save_regs): Likewise.
17696 (get_scratch_register_on_entry): Likewise.
17697 (ix86_emit_restore_reg_using_pop): Likewise.
17698 (ix86_emit_leave): Likewise.
17699 (ix86_emit_restore_regs_using_mov): Likewise.
17700 (ix86_expand_epilogue): Likewise.
17702 (rl78_alloc_physical_registers_umul): Likewise.
17703 * cselib.c (discard_useless_locs): Likewise.
17704 (cselib_invalidate_regno): Likewise.
17705 (cselib_invalidate_mem): Likewise.
17706 * function.c (expand_function_start): Likewise.
17707 (emit_use_return_register_into_block): Likewise.
17708 * gcse.c: Likewise.
17709 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
17710 * ifcvt.c (noce_get_alt_condition): Likewise.
17711 * loop-doloop.c (doloop_condition_get): Likewise.
17712 * lra-constraints.c (inherit_in_ebb): Likewise.
17713 * modulo-sched.c (sms_schedule_by_order): Likewise.
17714 * recog.c (next_insn_tests_no_inequality): Likewise.
17715 * reorg.c (emit_delay_sequence): Likewise.
17716 (update_reg_dead_notes): Likewise.
17717 (fix_reg_dead_note): Likewise.
17718 (fill_slots_from_thread): Likewise.
17719 (delete_computation): Likewise.
17721 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
17723 * doc/extend.texi (Variable Attributes): Add menu and proper
17724 @nodes to subsections. Move Microsoft Windows attributes to
17725 their own subsection.
17726 (Type Attributes): Reorganize introduction to remove duplicate
17727 list of attributes. Add menu and proper @nodes to subsections.
17728 Alphabetize the main table of common attributes.
17730 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
17732 * match.pd: New simplification patterns.
17733 (x + (x & 1)) -> ((x + 1) & ~1)
17734 (x & ~(x & y)) -> ((x & ~y))
17735 (x | ~(x | y)) -> ((x | ~y))
17737 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17739 * target.def (attribute_table): Mention that struct attribute_spec
17740 is defined in tree-core.h rather than tree.h
17741 * doc/tm.texi: Regenerate.
17743 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
17745 * genrecog.c (test): Rename to rtx_test. Update rest of file
17748 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
17750 PR translation/65959
17751 * params.h (DEFPARAM): Rename msgid to nocmsgid.
17753 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
17755 * gcc/config/aarch64/aarch64-protos.h (tune_params):
17756 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
17757 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
17758 Return value depending on target.
17759 (generic_tunings): Initialize new target settings.
17760 (cortexa53_tunings): Likewise.
17761 (cortexa57_tunings): Likewise.
17762 (thunderx_tunings): Likewise.
17763 (xgene1_tunings): Likewise.
17765 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
17767 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
17768 Make Cortex-A53 shift costs more accurate.
17770 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17772 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
17775 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
17777 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
17778 Calculate cost of op0 and op1 in PLUS and MINUS cases.
17780 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17782 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
17783 Add cost of op0 in the compare-with-fpzero case.
17785 2015-04-30 David Malcolm <dmalcolm@redhat.com>
17787 * builtins.c (fold_builtin_1): Remove spurious second
17789 * cgraph.h (symtab_node::get_availability): Likewise.
17790 * opts.c (common_handle_option): Remove spurious second semicolon.
17791 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
17792 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
17794 2015-04-30 Caroline Tice <cmtice@google.com>
17796 PR gcov-profile/65929
17797 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
17798 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
17799 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
17800 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
17801 * doc/tm.texi: Regenerate.
17802 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
17803 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
17804 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
17805 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
17807 2015-04-30 Marek Polacek <polacek@redhat.com>
17809 * varasm.c (handle_cache_entry): Fix logic.
17811 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17813 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
17814 (*extrsi5_insn_uxtw_alt): Likewise.
17815 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
17816 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
17819 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17821 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
17824 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17826 * config/aarch64/aarch64.md
17827 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
17828 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
17829 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
17830 appropriately. Handle alternative EON form.
17832 2015-04-30 Renlin Li <renlin.li@arm.com>
17834 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
17835 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
17837 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
17840 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
17841 -fstrict-aliasing boundaries.
17843 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17845 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
17846 and [SU]MNEGL patterns.
17848 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17850 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
17851 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
17852 combined arithmetic-shift ops. Properly handle all shift and extend
17853 operations that can occur in combination with PLUS/MINUS.
17854 Rename maybe_fma to compound_p.
17855 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
17856 arithmetic and shift operations.
17858 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17860 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
17861 rather than arith_shift cost when costing ADD/MINUS of an
17864 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
17867 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
17870 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
17872 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
17873 are for the same position.
17875 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
17877 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
17879 (vectorize_loops): Use it.
17881 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
17883 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
17884 for aggregate types.
17885 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
17886 type to be non_ODR.
17887 * tree.c (need_assembler_name_p): Compute mangled name for
17888 non-fundamental types and integer types.
17890 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
17892 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
17894 * expr.c (expand_expr_real_2): Likewise.
17896 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
17898 * tree.c (build_common_builtin_nodes): Do not build
17899 __builtin_alloca_with_align as equivalent of library alloca.
17901 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
17903 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
17904 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
17906 * tree.c: Include print-tree.h and ipa-utils.h
17907 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
17908 (free_lang_data_in_cgraph): Call verify_type.
17909 (verify_type_variant): New function.
17910 (verify_type): New function.
17911 * tree.h (verify_type): Declare.
17913 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
17915 * config/mips/mips-cpus.def: (mips4): Change default processor
17916 from PROCESSOR_R8000 to PROCESSOR_R10000.
17918 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
17920 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
17921 la/jalr instead of jal.
17923 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
17926 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
17927 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
17928 (setcc+movzbl peephole2): Check also clobbered reg.
17929 (setcc+andl peephole2): Ditto.
17931 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
17934 * config/nvptx/mkoffload.c (target_ilp32): New variable.
17935 (main): Set it depending on "-foffload-abi=[...]".
17936 (compile_native, main): Use it to pass "-m32" or "-m64" to the
17939 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
17942 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
17943 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
17944 Flip lane index back at assembly time for bigendian.
17946 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
17948 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
17949 * gimplify.c (gimplify_omp_workshare): Use it.
17951 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
17953 * Makefile.in (build/genrecog.o): Depend on inchash.h.
17954 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
17956 * genrecog.c: Rewrite most of the code except for the third page.
17958 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
17960 * inchash.h, inchash.c: Include bconfig.h for build objects.
17961 * Makefile.in (build/inchash.o): New rule.
17963 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
17966 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
17967 number in type attribute expression.
17969 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
17971 * loop-iv.c (canon_condition): Generalize to all types of integer
17974 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
17976 * gimple-walk.c: Prune duplicate or unneeded includes.
17977 (walk_gimple_asm): Only call parse_input_constraint or
17978 parse_output_constraint if their findings are used.
17979 Honour parse_input_constraint and parse_output_constraint
17982 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
17984 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
17986 2015-04-29 Tom de Vries <tom@codesourcery.com>
17988 PR tree-optimization/65893
17989 * passes.def (pass_all_optimizations): Move pass_stdarg to after
17992 2015-04-29 Richard Biener <rguenther@suse.de>
17994 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
17995 compute GROUP_SIZE for basic-block SLP.
17996 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
17997 take into account gaps.
17998 (vect_get_mask_element): Properly reject references to previous
18000 (vect_transform_slp_perm_load): Likewise.
18002 2015-04-29 Christian Bruel <christian.bruel@st.com>
18005 * config/i386/i386.c (ix86_default_align): New function.
18006 (ix86_override_options_after_change): Call ix86_default_align.
18007 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
18008 (ix86_override_options_after_change): New function.
18010 2015-04-28 Jeff Law <law@redhat.com>
18012 * tree-ssa-dom.c (record_equality); Fix comment typos.
18014 2015-04-28 Tom de Vries <tom@codesourcery.com>
18016 PR tree-optimization/65887
18017 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
18019 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
18021 * doc/extend.texi (Declaring Attributes of Functions): Split into
18022 subsections by target. Alphabetize the table of common attributes.
18023 Rewrite some of the introductory text to reflect the new structure.
18024 Update some cross-references to point to the new subsections.
18025 (Attribute Syntax): Put paragraph about "__" naming here. Remove
18026 duplicate copies in the discussion of function, label, and type
18029 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
18032 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
18034 2015-04-28 Jason Merrill <jason@redhat.com>
18037 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
18038 (finalize_type_size): Respect TYPE_USER_ALIGN.
18039 (layout_type) [ARRAY_TYPE]: Likewise.
18041 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
18043 * config/arm/arm.md (*arm_movt): Fix type attribute.
18044 (*cmpsi_shiftsi): Likewise.
18045 (*cmpsi_shiftsi_swp): Likewise.
18046 (*movsicc_insn): Likewise.
18047 (*cond_move): Likewise.
18048 (*if_plus_move): Likewise.
18049 (*if_move_plus): Likewise.
18050 (*if_arith_move): Likewise.
18051 (*if_move_arith): Likewise.
18052 (*if_shift_move): Likewise.
18053 (*if_move_shift): Likewise.
18054 (*arm_movtas_ze): Likewise.
18055 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
18056 redundancy and type attribute.
18057 (*thumb2_movsi_insn): Fix type attribute.
18058 (*thumb2_addsi_short): Likewise.
18059 (thumb2_addsi3_compare0): Likewise.
18060 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
18061 attributes accordingly.
18063 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
18066 * function.c (pad_to_arg_alignment): Add parentheses.
18068 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
18070 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
18071 libgcc/config/frv/elf-lib.h.
18073 2015-04-28 Tom de Vries <tom@codesourcery.com>
18075 * tree-call-cdce.c: Fix example in header comment.
18077 2015-04-28 Richard Biener <rguenther@suse.de>
18079 PR tree-optimization/62283
18080 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
18081 fails fatally and we are vectorizing a basic-block simply
18082 cause the child to be constructed piecewise.
18083 (vect_analyze_slp_cost_1): Adjust.
18084 (vect_detect_hybrid_slp_stmts): Likewise.
18085 (vect_bb_slp_scalar_cost): Likewise.
18086 (vect_get_constant_vectors): For piecewise constructed
18087 constants place them after the last def.
18088 (vect_get_slp_defs): Adjust.
18089 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
18090 externals for basic-block vectorization.
18092 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
18095 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
18097 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
18098 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
18099 (AARCH64_TUNE_FMA_STEERING): Likewise.
18100 * config/aarch64/aarch64-cores.def: Set
18101 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
18102 FMUL/FMADD instructions.
18103 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
18104 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
18105 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
18106 * config/aarch64/cortex-a57-fma-steering.h: New file.
18107 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18109 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
18111 * gensupport.c (std_preds): Add missing codes to address_operand entry.
18113 2015-04-28 Richard Biener <rguenther@suse.de>
18115 PR tree-optimization/65851
18116 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
18117 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
18118 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
18119 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
18120 (ccp_visit_phi_node): Adjust.
18121 (evaluate_stmt): For simplifications to SSA names return its
18122 lattice value if that isn't VARYING. Return immediately when
18123 simplified to a constant.
18124 (visit_assignment): Adjust.
18125 (ccp_visit_stmt): Likewise.
18127 2015-04-28 Tom de Vries <tom@codesourcery.com>
18129 PR tree-optimization/65818
18130 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
18133 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18135 * calls.c (save_fixed_argument_area): Don't check
18136 ARGS_GROW_DOWNWARD with the preprocessor.
18137 (restore_fixed_argument_area): Likewise.
18138 (mem_overlaps_already_clobbered_arg_p): Likewise.
18139 (check_sibcall_argument_overlap): Likewise.
18140 (expand_call): Likewise.
18141 (emit_library_call_value_1): Likewise.
18142 (store_one_arg): Likewise.
18143 * function.c (assign_parms): Likewise.
18144 (locate_and_pad_parm): Likewise.
18145 (pad_to_arg_alignment): Likewise.
18146 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
18148 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18150 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
18151 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
18152 * calls.c (save_fixed_argument_area): Don't chekc if
18153 ARGS_GROW_DOWNWARD is defined.
18154 (restore_fixed_argument_area): Likewise.
18155 (mem_overlaps_already_clobbered_arg_p): Likewise.
18156 (check_sibcall_argument_overlap): Likewise.
18157 (expand_call): Likewise.
18158 (emit_library_call_value_1): Likewise.
18159 (store_one_arg): Likewise.
18160 * function.c (assign_parms): Likewise.
18161 (locate_and_pad_parm): Likewise.
18162 (pad_to_arg_alignment): Likewise.
18163 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
18165 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18167 * defaults.h (gen_epilogue): New function.
18168 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
18170 * cfgrtl.c (cfg_layout_finalize): Likewise.
18171 * df-scan.c: Likewise.
18172 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18173 (reposition_prologue_and_epilogue_notes): Likewise.
18174 * reorg.c (find_end_label): Likewise.
18175 * toplev.c: Likewise.
18177 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18179 * bb-reorder.c (HAVE_return): Don't check if its undefined.
18180 * defaults.h (gen_simple_return): New function.
18181 (gen_simple_return): Likewise.
18182 (HAVE_return): Add default definition to false.
18183 (HAVE_simple_return): Likewise.
18184 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
18185 HAVE_return and HAVE_simple_return are defined.
18186 * function.c (gen_return_pattern): Likewise.
18187 (convert_jumps_to_returns): Likewise.
18188 (thread_prologue_and_epilogue_insns): Likewise.
18189 * reorg.c (find_end_label): Likewise.
18190 (dbr_schedule): Likewise.
18191 * shrink-wrap.c: Likewise.
18192 * shrink-wrap.h: Likewise.
18194 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18196 * defaults.h (EPILOGUE_USES): Add default definition of false.
18197 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
18198 * resource.c (init_resource_info): Likewise.
18200 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18202 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
18204 * dwarf2out.c (field_byte_offset): REmove check if
18205 PCC_BITFIELD_TYPE_MATTERS is defined.
18206 * stor-layout.c (layout_decl): Likewise.
18207 (update_alignment_for_field): Likewise.
18208 (place_field): Likewise.
18210 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18212 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
18214 * regrename.c (check_new_reg_p): Remove check if
18215 HARD_REGNO_RENAME_OK is defined.
18216 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
18218 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18220 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
18221 * cse.c (fold_rtx): Likewise.
18222 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
18223 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
18224 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
18225 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
18226 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
18227 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
18228 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
18229 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
18230 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
18231 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
18233 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
18234 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
18235 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
18236 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
18237 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
18238 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
18239 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
18240 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
18241 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
18242 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
18243 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
18244 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
18245 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
18246 * doc/tm.texi: Regenerate.
18247 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
18248 either true or false.
18250 2015-04-27 Jeff Law <law@redhat.com>
18252 PR tree-optimization/65217
18253 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
18254 of them has a single use, make sure it is the LHS of the implied
18257 2015-04-28 Alan Modra <amodra@gmail.com>
18260 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
18261 (offsettable_ok_by_alignment): Use minimum of decl and toc
18262 pointer alignment. Replace dead code with assertion.
18263 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
18264 case if size exceeds toc pointer alignment.
18265 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
18266 (rs6000_emit_move): Likewise.
18267 * configure.ac: Add linker toc pointer alignment check.
18268 * configure: Regenerate.
18269 * config.in: Regenerate.
18271 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
18273 * config.gcc: Add h8300-*-linux.
18274 * config/h8300/linux.h: New.
18275 * config/h8300/t-linux: New.
18276 * config/h8300/h8300.c (h8300_option_override): Normal mode
18277 is not supported for h8300-*-linux.
18278 (h8300_file_start): Target priority change.
18279 (get_shift_alg): Likewise.
18280 (h8300_shift_need_scratch_p): Likewise.
18281 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
18282 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
18284 2015-04-27 Caroline Tice <cmtice@google.com>
18286 * final.c (final_scan_insn): Output cold_function_name as function
18288 * varasm.c (cold_function_name): Make global.
18289 (assemble_start_function): Re-set cold_function_name.
18290 (assemble_end_function): Output cold partition size.
18291 * varasm.h (cold_function_name): Declare global.
18293 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
18295 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
18296 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
18298 (*movxi_internal_avx512f): Ditto.
18299 (define_split): Check for xmm16+, when splitting scalar float_extend.
18300 (*extendsfdf2_mixed): Use "v" constraint.
18301 (define_split): Check for xmm16+, when splitting scalar float_truncate.
18302 (*truncdfsf_fast_sse): Use "v" constraint.
18303 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
18304 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
18305 (define_peephole2): Check for xmm16+, when converting scalar
18307 (define_peephole2): Check for xmm16+, when converting scalar
18309 (*fop_<mode>_comm_mixed): Use "v" constraint.
18310 (*fop_<mode>_comm_sse): Ditto.
18311 (*fop_<mode>_1_mixed): Ditto.
18312 (*sqrt<mode>2_sse): Ditto.
18313 (*ieee_s<ieee_maxmin><mode>3): Ditto.
18315 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18317 * combine.c (simplify_if_then_else): Use std::swap instead
18318 of manually swapping.
18319 (known_cond): Likewise.
18320 (simplify_comparison): Likewise.
18322 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
18325 * config/rs6000/htm.md: Remove all define_expands.
18326 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
18327 UNSPECV_HTM_TABORTWCI): Remove.
18328 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
18329 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
18330 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
18331 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
18332 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
18333 tabortwci_internal): Remove define_insns.
18334 (tabort<wd>c, tabort<wd>ci): New define_insns.
18335 (tabort): Use gpc_reg_operand.
18336 (tcheck): Remove operand.
18337 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
18338 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
18340 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
18341 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
18342 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
18343 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
18344 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
18345 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
18346 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
18347 (tcheck): Remove builtin argument.
18348 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
18350 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
18351 tabortdc and tabortdci builtins when not in 64-bit mode.
18352 Modify code to handle the loss of the HTM define_expands.
18353 Emit code to copy the CR register to TARGET.
18354 (htm_init_builtins): Modify code to handle the loss of the HTM
18356 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
18357 (RS6000_BTC_64BIT): Likewise.
18358 (RS6000_BTC_CR): New macro.
18359 * doc/extend.texi: Update documentation for htm builtins.
18361 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18363 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
18364 of manually swapping.
18365 (simplify_associative_operation): Likewise.
18366 (simplify_binary_operation): Likewise.
18367 (simplify_plus_minus): Likewise.
18368 (simplify_relational_operation): Likewise.
18369 (simplify_ternary_operation): Likewise.
18371 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
18373 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
18374 (xs_hi_nonmemory_operand): Remove error.
18375 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
18376 general_operand rather than xs_hi_general_operand.
18378 2015-04-27 Richard Biener <rguenther@suse.de>
18380 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
18381 (record_equivalences_from_stmt): Valueize rhs.
18382 (record_equality): Canonicalize x and y order via
18383 tree_swap_operands_p. Do not swap operands for same loop depth.
18385 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
18389 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
18390 Add hint how to use own spec file.
18392 2015-04-27 Jakub Jelinek <jakub@redhat.com>
18394 PR tree-optimization/65875
18395 * tree-vrp.c (update_value_range): If in is_new case setting
18396 old_vr to VR_VARYING, also set new_vr to it. Remove
18397 old_vr->type == VR_VARYING test.
18398 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
18399 SSA_PROP_INTERESTING if update_value_range returned true,
18400 but new range is VR_VARYING.
18402 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
18404 * combine.c (sign_extend_short_imm): New.
18405 (set_nonzero_bits_and_sign_copies): Use above new function for sign
18406 extension of src short immediate.
18407 (reg_nonzero_bits_for_combine): Likewise for tem.
18409 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
18411 * stor-layout.c (self_referential_component_ref_p): New predicate.
18412 (copy_self_referential_tree_r): Use it.
18413 (self_referential_size): Punt for simple operations directly involving
18414 self-referential component references.
18415 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
18417 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
18419 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
18421 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
18423 * vec.h (vec): Make splice arguments const. Update definitions
18426 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
18428 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
18431 2015-04-26 Tom de Vries <tom@codesourcery.com>
18433 PR tree-optimization/65826
18434 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
18436 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
18438 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
18439 (*madd3<mode>): Ditto.
18440 (*msub4<mode>): Ditto.
18441 (*msub3<mode>): Ditto.
18442 (*nmadd4<mode>): Ditto.
18443 (*nmadd3<mode>): Ditto.
18444 (*nmadd4<mode>_fastmath): Ditto.
18445 (*nmadd3<mode>_fastmath): Ditto.
18446 (*nmsub4<mode>): Ditto.
18447 (*nmsub3<mode>): Ditto.
18448 (*nmsub4<mode>_fastmath): Ditto.
18449 (*nmsub3<mode>_fastmath): Ditto.
18451 2015-04-24 Jason Merrill <jason@redhat.com>
18454 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
18455 down when building TYPE_CANONICAL.
18456 (build_pointer_type_for_mode): Likewise.
18458 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
18460 * genrecog.c (validate_pattern): Check matching constraint refers
18461 to a lower numbered operand.
18463 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18466 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
18467 save to independent variables use the Save attribute. This will
18468 allow these options to be modified with the #pragma/attribute
18470 (-mallow-movmisalign): Likewise.
18471 (-mallow-df-permute): Likewise.
18472 (-msched-groups): Likewise.
18473 (-malways-hint): Likewise.
18474 (-malign-branch-targets): Likewise.
18475 (-mvectorize-builtins): Likewise.
18476 (-msave-toc-indirect): Likewise.
18478 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
18479 can be set via the #pragma/attribute target support.
18480 (rs6000_opt_vars): Likewise.
18481 (rs6000_inner_target_options): If VSX was set, also set
18482 -mno-avoid-indexed-addresses.
18484 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18486 * config/arm/iterators.md (shiftable_ops): Rename to...
18487 (SHIFTABLE_OPS): ... This. Update use in comments.
18488 (ior_xor): Rename to...
18489 (IOR_XOR): ... This.
18490 (vqh_ops): Rename to...
18491 (VQH_OPS): ... This.
18492 (vqhs_ops): Rename to...
18493 (VQHS_OPS): ... This.
18494 (rshifts): Rename to...
18495 (RSHIFTS): ... This.
18496 (returns): Rename to...
18497 (RETURNS): ... This.
18498 * config/arm/arm.md: Update uses of the above.
18499 * config/arm/neon.md: Likewise.
18501 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18503 * config.host (case ${host}): Add aarch64*-*-linux case.
18504 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
18505 fields to all the cores.
18506 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
18507 Add MCPU_MTUNE_NATIVE_SPECS.
18508 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
18509 field to all extensions.
18510 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
18511 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
18512 Adjust definition of AARCH64_OPT_EXTENSION.
18513 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
18514 (MCPU_MTUNE_NATIVE_SPECS): Define.
18515 * config/aarch64/driver-aarch64.c: New file.
18516 * config/aarch64/x-arch64: New file.
18517 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
18520 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
18521 Wei Mi <wmi@google.com>
18523 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
18524 * config/i386/i386.c (extract_base_offset_in_addr): New function.
18525 (ix86_operands_ok_for_move_multiple): Ditto.
18526 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
18527 (movlpd/movhpd to movupd peephole2): Ditto.
18529 2015-04-24 Marek Polacek <polacek@redhat.com>
18532 * input.h (from_macro_expansion_at): Define.
18535 * doc/invoke.texi: Update description of -Wlogical-op.
18537 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
18539 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
18540 ternary operator in fprintf and harmonize spacing.
18542 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
18544 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
18545 Mark operand1 commutative.
18547 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
18549 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
18550 input operands in memory.
18551 (*vec_concatv2si_sse4_1): Ditto.
18552 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
18553 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
18555 (vec_extract_hi_v32hi): Ditto.
18556 (vec_extract_hi_v64hi): Ditto.
18557 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
18559 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
18560 Steven Bosscher <steven@gcc.gnu.org>
18562 PR rtl-optimization/34503
18563 * cprop.c (cprop_reg_p): New.
18564 (hash_scan_set): Use above function to check if register can be
18566 (find_avail_set): Return up to two sets, one whose source is a
18567 register and one whose source is a constant. Sets are returned in an
18568 array passed as parameter rather than as a return value.
18569 (cprop_insn): Use a do while loop rather than a goto. Try each of the
18570 sets returned by find_avail_set, starting with the one whose source is
18571 a constant. Use cprop_reg_p to check if register can be propagated.
18572 (do_local_cprop): Use cprop_reg_p to check if register can be
18574 (implicit_set_cond_p): Likewise.
18576 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
18578 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
18579 (sem_function::equals): IGNORED_NODES parameter is now unused;
18580 update call of equals_private.
18581 (sem_function::equals_private): Do not call equals_wpa; skip
18582 gimple body matching if there is no body.
18583 (sem_function::init): Add logic to hash tthunk info.
18584 (sem_function::parse): Also parse thunks.
18585 * ipa-icf.h (equals_private): Update declaration.
18587 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18589 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
18590 asterisk from name so this can be generated directly.
18591 (*altivec_stvx_<mode>_internal): Likewise.
18592 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
18593 that this is never called during or after reload/lra.
18594 (rs6000_frame_related): Remove split_reg
18595 argument and logic that references it.
18596 (emit_frame_save): Remove last parameter from call to
18597 rs6000_frame_related.
18598 (rs6000_emit_prologue): Remove last parameter from eight calls to
18599 rs6000_frame_related. Force generation of stvx instruction for
18600 Altivec register saves. Remove split_reg handling, which is no
18602 (rs6000_emit_epilogue): Force generation of lvx instruction for
18603 Altivec register restores.
18605 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18607 * config/rs6000/rs6000.opt (mcrypto): Change option description to
18608 match category changes in ISA 2.07B.
18610 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18612 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
18614 (cmp_op, cmp_type): New code attributes.
18615 (NEON_VCMP, NEON_VACMP): New int iterators.
18616 (cmp_op_unsp): New int attribute.
18617 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
18618 (neon_vceq<mode>): Delete.
18619 (neon_vc<cmp_op><mode>_insn): New pattern.
18620 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
18621 (neon_vcgeu<mode>): Delete.
18622 (neon_vcle<mode>): Likewise.
18623 (neon_vclt<mode>: Likewise.
18624 (neon_vcage<mode>): Likewise.
18625 (neon_vcagt<mode>): Likewise.
18626 (neon_vca<cmp_op><mode>): New define_expand.
18627 (neon_vca<cmp_op><mode>_insn): New pattern.
18628 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
18630 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
18632 * tree.h (attribute_value_equal): Declare.
18633 * tree.c (attribute_value_equal): Export.
18635 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
18637 * ipa-icf.c (sem_item::compare_attributes): New function.
18638 (sem_item::compare_referenced_symbol_properties): Compare variable
18640 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
18641 (sem_function::param_used_p): New function.
18642 (sem_function::equals_wpa): Fix attribute comparsion; match
18643 parameter type codes; do not compare paremter flags when
18644 they are not used; compare edge flags; compare indirect calls.
18645 (sem_item::update_hash_by_addr_refs): Hash reference type.
18646 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
18647 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
18648 reference use type.
18649 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
18650 * ipa-icf.h (compare_attributes, param_used_p): Declare.
18652 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
18654 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
18656 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
18657 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
18658 (sem_item::compare_referenced_symbol_properties): New.
18659 (sem_item::hash_referenced_symbol_properties): New.
18660 (sem_item::compare_cgraph_references): Rename to ...
18661 (sem_item::compare_symbol_references): ... this one; use
18662 compare_referenced_symbol_properties.
18663 (sem_function::equals_wpa): Do not compare
18664 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
18665 DECL_IS_OPERATOR_NEW; compare pointer sizes.
18666 (sem_item::update_hash_by_addr_refs): Call
18667 hash_referenced_symbol_properties.
18668 (sem_item::update_hash_by_local_refs): Cleanup.
18669 (sem_function::merge): Do not mix up symbol properties.
18670 (sem_variable::equals_wpa): Use compare_symbol_references.
18671 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
18672 (sem_item::hash_referenced_symbol_properties): New.
18673 (sem_item::compare_symbol_references): New.
18674 (sem_item::compare_cgraph_references): Remove.
18676 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
18679 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
18680 Emit size of local.
18682 2015-04-23 Nick Clifton <nickc@redhat.com>
18684 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
18685 ATTRIBUTE_UNUSED to x parameter.
18686 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
18688 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18690 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
18691 TARGET_CRYPTO to TARGET_P8_VECTOR>
18692 (crypto_vpermxor_<mode>): Likewise.
18693 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
18694 (BU_CRYPTO_3A): Likewise.
18695 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
18696 (BU_CRYPTO_OVERLOAD_3A): New #define.
18697 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
18698 (VPMSUMH): Likewise.
18699 (VPMSUMW): Likewise.
18700 (VPMSUMD): Likewise.
18701 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
18702 (VPERMXOR_V4SI): Likewise.
18703 (VPERMXOR_V8HI): Likewise.
18704 (VPERMXOR_V16QI): Likewise.
18705 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
18706 BU_CRYPTO_OVERLOAD_2A.
18707 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
18708 BU_CRYPTO_OVERLOAD_3A.
18709 * config/rs6000/rs6000.opt (mcrypto): Change description of
18712 2015-04-23 Richard Biener <rguenther@suse.de>
18714 * passes.def: Remove copy propagation passes run directly after CCP.
18715 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
18717 (ccp_visit_phi_node): Rework to handle first executable edge
18720 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
18722 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
18723 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
18724 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
18725 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
18726 (thumb_legimitimize_reload_address): Remove.
18727 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
18729 (thumb_legimitimize_reload_address): Remove.
18731 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18733 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
18735 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18737 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
18739 (store_multiple): Likewise.
18741 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18743 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
18744 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
18745 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
18746 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
18747 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
18748 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
18749 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
18750 Specify issue_rate value.
18751 (arm_issue_rate): Look up issue rate from tuning structs. Remove
18752 large switch statement.
18753 (arm_marvell_pj4_tune): New struct.
18754 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
18757 2015-04-23 Richard Biener <rguenther@suse.de>
18759 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
18760 (vect_find_last_store_in_slp_instance): Rename to ...
18761 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
18762 (vect_analyze_slp_cost_1): Use vector_load for constant defs
18763 and vec_construct for external defs when estimating prologue cost.
18764 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
18765 Compute costs here only when vectorizing loops.
18766 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
18767 have been determined.
18768 (vect_schedule_slp_instance): Simplify vectorized code placement
18769 and prepare for in-BB external defs.
18770 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
18771 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
18772 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
18774 (vect_model_load_cost): Likewise.
18775 (vectorizable_store): Instead add it here.
18776 (vectorizable_load): Likewise.
18777 (vect_is_simple_use): Dump def type textually.
18779 2015-04-23 Richard Biener <rguenther@suse.de>
18781 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
18782 * cfgloop.c (verify_loop_structure): Verify the root loop node.
18783 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
18784 instead of get_eh_region_from_lp_number.
18785 * loop-init.c (fix_loop_structure): If we removed a loop, reset
18788 2015-04-23 Anton Blanchard <anton@samba.org>
18790 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
18791 need for -mprofile-kernel to save LR to stack.
18793 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18795 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
18797 (insn_is_swappable_p): Return 1 for a convert from double to
18798 single precision when all of its uses are splats of BE element
18801 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18803 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
18805 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18808 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
18809 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
18810 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
18812 (rs6000_builtin_mask_for_load): Return 0 for targets with
18813 efficient unaligned VSX accesses so that the vectorizer will use
18814 direct unaligned loads.
18815 (rs6000_builtin_support_vector_misalignment): Always return true
18816 for targets with efficient unaligned VSX accesses.
18817 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
18818 stores on targets with efficient unaligned VSX accesses is almost
18819 always the same as the cost of an aligned load or store, so model
18821 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
18822 unaligned vectors if we have efficient unaligned VSX accesses.
18823 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
18824 undocumented option.
18826 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18829 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
18831 * config.gcc (LIBC_MUSL): New tm_defines macro.
18832 * config/linux.h (OPTION_MUSL): Define.
18833 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18834 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18835 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18837 * config/linux.opt (mmusl): New option.
18838 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18839 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18841 * configure: Regenerate.
18843 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
18845 * config.gcc (LIBC_MUSL): New tm_defines macro.
18846 * config/linux.h (OPTION_MUSL): Define.
18847 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18848 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18849 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18851 * config/linux.opt (mmusl): New option.
18852 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18853 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18855 * configure: Regenerate.
18857 2015-04-22 Yury Gribov <y.gribov@samsung.com>
18859 * doc/invoke.texi (-fsanitize-sections): Update description.
18860 * asan.c (set_sanitized_sections): Parse incoming arg.
18861 (section_sanitized_p): Support wildcards.
18863 2015-04-22 Tom de Vries <tom@codesourcery.com>
18865 PR tree-optimization/65823
18866 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
18867 equality between ap_copy and ap.
18869 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18872 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
18874 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18877 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
18879 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18882 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
18883 remove already contained t-files.
18885 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18887 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
18888 Remove unneeded forward declarations.
18889 (suitable_for_tail_call_opt_p): Commentary typo fix.
18891 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18893 * varasm.c (emit_bss): Remove redundant guard.
18895 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18897 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
18899 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18901 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
18903 2015-04-22 Hale Wang <hale.wang@arm.com>
18904 Terry Guo <terry.guo@arm.com>
18906 PR rtl-optimization/64818
18907 * combine.c (can_combine_p): Don't combine user-specified
18908 register if it is in an asm input.
18910 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
18913 * passes.def (early_optimizations): Add pass_dse.
18915 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18917 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
18918 * reorg.c (redundant_insn): Remove ifdef
18919 INSN_REFERENCES_ARE_DELAYED.
18920 * resource.c (mark_referenced_resources): Likewise.
18922 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18924 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
18925 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
18926 * resource.c (mark_set_resources): Likewise.
18928 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18930 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
18931 * cfgcleanup.c (flow_find_cross_jump): Likewise.
18932 (flow_find_head_matching_sequence): Likewise.
18933 (try_head_merge_bb): Likewise.
18934 * combine.c (can_combine_p): Likewise.
18935 (try_combine): Likewise.
18936 (distribute_notes): Likewise.
18937 * df-problems.c (can_move_insns_across): Likewise.
18938 * final.c (final): Likewise.
18939 * gcse.c (insert_insn_end_basic_block): Likewise.
18940 * ira.c (find_moveable_pseudos): Likewise.
18941 * reorg.c (try_merge_delay_insns): Likewise.
18942 (fill_simple_delay_slots): Likewise.
18943 (fill_slots_from_thread): Likewise.
18944 * sched-deps.c (sched_analyze_2): Likewise.
18946 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18948 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
18949 PIC_OFFSET_TABLE_REGNUM.
18951 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18953 * alias.c (init_alias_target): Remove ifdef
18954 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
18955 * df-scan.c (df_insn_refs_collect): Likewise.
18956 (df_get_regular_block_artificial_uses): Likewise.
18957 (df_get_eh_block_artificial_uses): Likewise.
18958 (df_get_entry_block_def_set): Likewise.
18959 (df_get_exit_block_use_set): Likewise.
18960 * emit-rtl.c (gen_rtx_REG): Likewise.
18961 * ira.c (ira_setup_eliminable_regset): Likewise.
18962 * reginfo.c (init_reg_sets_1): Likewise.
18963 * regrename.c (rename_chains): Likewise.
18964 * reload1.c (reload): Likewise.
18965 (eliminate_regs_in_insn): Likewise.
18966 * resource.c (mark_referenced_resources): Likewise.
18967 (init_resource_info): Likewise.
18969 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18971 * defaults.h (MASK_RETURN_ADDR): New definition.
18972 * except.c (expand_builtin_extract_return_addr): Remove ifdef
18975 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18977 * defaults.h (RETURN_ADDR_OFFSET): New definition.
18978 * except.c (expand_builtin_extract_return_addr): Remove ifdef
18979 RETURN_ADDR_OFFSET.
18980 (expand_builtin_frob_return_addr): Likewise.
18982 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18984 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
18985 (try_redirect_by_replacing_jump): Likewise.
18986 (rtl_tidy_fallthru_edge): Likewise.
18987 * combine.c (insn_a_feeds_b): Likewise.
18988 (find_split_point): Likewise.
18989 (simplify_set): Likewise.
18990 * cprop.c (cprop_jump): Likewise.
18991 * cse.c (cse_extended_basic_block): Likewise.
18992 * df-problems.c (can_move_insns_across): Likewise.
18993 * function.c (emit_use_return_register_into_block): Likewise.
18994 * haifa-sched.c (sched_init): Likewise.
18995 * ira.c (find_moveable_pseudos): Likewise.
18996 * loop-invariant.c (find_invariant_insn): Likewise.
18997 * lra-constraints.c (curr_insn_transform): Likewise.
18998 * postreload.c (reload_combine_recognize_const_pattern):
19000 * reload.c (find_reloads): Likewise.
19001 * reorg.c (delete_scheduled_jump): Likewise.
19002 (steal_delay_list_from_target): Likewise.
19003 (steal_delay_list_from_fallthrough): Likewise.
19004 (redundant_insn): Likewise.
19005 (fill_simple_delay_slots): Likewise.
19006 (fill_slots_from_thread): Likewise.
19007 (delete_computation): Likewise.
19008 * sched-rgn.c (add_branch_dependences): Likewise.
19010 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19012 * genconfig.c (main): Always define HAVE_cc0.
19013 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
19015 * cfgcleanup.c (flow_find_cross_jump): Likewise.
19016 (flow_find_head_matching_sequence): Likewise.
19017 (try_head_merge_bb): Likewise.
19018 * cfgrtl.c (rtl_merge_blocks): Likewise.
19019 (try_redirect_by_replacing_jump): Likewise.
19020 (rtl_tidy_fallthru_edge): Likewise.
19021 * combine.c (do_SUBST_MODE): Likewise.
19022 (insn_a_feeds_b): Likewise.
19023 (combine_instructions): Likewise.
19024 (can_combine_p): Likewise.
19025 (try_combine): Likewise.
19026 (find_split_point): Likewise.
19028 (simplify_set): Likewise.
19029 (distribute_notes): Likewise.
19030 * cprop.c (cprop_jump): Likewise.
19031 * cse.c (cse_extended_basic_block): Likewise.
19032 * df-problems.c (can_move_insns_across): Likewise.
19033 * final.c (final): Likewise.
19034 (final_scan_insn): Likewise.
19035 * function.c (emit_use_return_register_into_block): Likewise.
19036 * gcse.c (insert_insn_end_basic_block): Likewise.
19037 * haifa-sched.c (sched_init): Likewise.
19038 * ira.c (find_moveable_pseudos): Likewise.
19039 * loop-invariant.c (find_invariant_insn): Likewise.
19040 * lra-constraints.c (curr_insn_transform): Likewise.
19041 * optabs.c (prepare_cmp_insn): Likewise.
19042 * postreload.c (reload_combine_recognize_const_pattern):
19044 * reload.c (find_reloads): Likewise.
19045 (find_reloads_address_1): Likewise.
19046 * reorg.c (delete_scheduled_jump): Likewise.
19047 (steal_delay_list_from_target): Likewise.
19048 (steal_delay_list_from_fallthrough): Likewise.
19049 (try_merge_delay_insns): Likewise.
19050 (redundant_insn): Likewise.
19051 (fill_simple_delay_slots): Likewise.
19052 (fill_slots_from_thread): Likewise.
19053 (delete_computation): Likewise.
19054 (relax_delay_slots): Likewise.
19055 * sched-deps.c (sched_analyze_2): Likewise.
19056 * sched-rgn.c (add_branch_dependences): Likewise.
19058 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19060 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
19061 that is trivially ded on non cc0 targets.
19062 (simplify_set): Likewise.
19063 (mark_used_regs_combine): Likewise.
19064 * cse.c (new_basic_block): Likewise.
19065 (fold_rtx): Likewise.
19066 (cse_insn): Likewise.
19067 (cse_extended_basic_block): Likewise.
19068 (set_live_p): Likewise.
19069 * rtlanal.c (canonicalize_condition): Likewise.
19070 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19072 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19074 * conditions.h: Define macros even if HAVE_cc0 is undefined.
19075 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
19076 * final.c: Likewise.
19077 * jump.c: Likewise.
19078 * recog.c: Likewise.
19079 * recog.h: Declare functions even when HAVE_cc0 is undefined.
19080 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
19082 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19084 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
19085 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
19086 * builtins.c (expand_builtin): Remove check if
19087 EH_RETURN_DATA_REGNO is defined.
19088 * df-scan.c (df_bb_refs_collect): Likewise.
19089 (df_get_exit_block_use_set): Likewise.
19090 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
19091 * ira-lives.c (process_bb_node_lives): Likewise.
19092 * lra-lives.c (process_bb_lives): Likewise.
19094 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
19096 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
19097 FIRST_PSEUDO_REG): New.
19098 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
19099 (ARG_POINTER_REGNUM): Define to ARGP_REG.
19100 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
19101 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
19102 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
19103 (FIRST_INT_REG): New.
19104 (LAST_INT_REG): New.
19105 (FIRST_*_REG): Define using *_REG.
19106 (LAST_*_REG): Ditto.
19107 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
19108 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
19109 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
19111 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19113 * expmed.c: (synth_mult): Only assume overlapping
19114 shift with previous steps in alg_sub_t_m2 case.
19116 2015-04-21 Richard Biener <rguenther@suse.de>
19118 PR tree-optimization/65650
19119 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
19120 transitions involving copies.
19121 (set_lattice_value): Adjust for copy lattice state.
19122 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
19123 if that doesn't dominate the merge point.
19124 (bit_value_unop): Adjust what we treat as varying mask.
19125 (bit_value_binop): Likewise.
19126 (bit_value_assume_aligned): Likewise.
19127 (evaluate_stmt): When we simplified to a SSA name record a copy
19128 instead of dropping to varying.
19129 (visit_assignment): Simplify.
19131 * gimple-match.h (gimple_simplify): Add another callback.
19132 * gimple-fold.c (fold_stmt_1): Adjust caller.
19133 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
19134 for the 2nd callback.
19135 * gimple-match-head.c (gimple_simplify): Add a callback that is
19136 used to valueize the stmt operands and use it that way.
19138 2015-04-21 Richard Biener <rguenther@suse.de>
19140 PR tree-optimization/65788
19141 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
19143 2015-04-21 Richard Biener <rguenther@suse.de>
19145 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
19146 vec_construct cost by vec_stmt_cost.
19148 2015-04-21 Richard Biener <rguenther@suse.de>
19150 * cfghooks.h (create_basic_block): Replace with two overloads
19151 for RTL and GIMPLE.
19152 (split_block): Likewise.
19153 * cfghooks.c (split_block): Rename to ...
19154 (split_block_1): ... this.
19155 (split_block): Add two type-safe overloads for RTL and GIMPLE.
19156 (split_block_after_labels): Call split_block_1.
19157 (create_basic_block): Rename to ...
19158 (create_basic_block_1): ... this.
19159 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
19160 (create_empty_bb): Call create_basic_block_1.
19161 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
19162 split_block_after_labels.
19163 * omp-low.c (expand_parallel_call): Likewise.
19164 (expand_omp_target): Likewise.
19165 (simd_clone_adjust): Likewise.
19166 * tree-chkp.c (chkp_get_entry_block): Likewise.
19167 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
19168 create_basic_block overload.
19169 (cgraph_node::expand_thunk): Likewise.
19170 * tree-cfg.c (make_blocks): Likewise.
19171 (handle_abnormal_edges): Likewise.
19172 * tree-inline.c (copy_bb): Likewise.
19174 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19176 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
19178 (*xor_one_cmplsidi3_ze): Likewise.
19180 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
19182 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
19183 use df_remove_problem rather than manually removing problems, leaving
19184 holes in df->problems_in_order[].
19186 2015-04-21 Tom de Vries <tom@codesourcery.com>
19188 PR tree-optimization/65802
19189 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
19191 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19193 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
19195 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
19196 at '.'. Assert that there's enough space for everything.
19198 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
19200 PR tree-optimization/64950
19202 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
19205 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
19208 2015-04-20 Shiva Chen <shiva0217@gmail.com>
19210 PR rtl-optimization/64916
19211 * cfgcleanup.c (values_equal_p): New function.
19212 (can_replace_by): Use it.
19214 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
19217 * doc/invoke.texi ([-Wnarrowing]): Update.
19219 2015-04-20 Jeff Law <law@redhat.com>
19221 PR tree-optimization/65658
19222 * tree-ssa-threadupdate.c (redirection_block_p): Remove
19223 redundant test for GIMPLE_ASSIGN in last change.
19225 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
19227 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
19228 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
19229 (legitimize_tls_address): Ditto.
19230 (ix86_expand_move): Ditto.
19231 (ix86_expand_binary_operator): Remove reload_in_progress checks.
19232 (ix86_expand_unary_operator): Ditto.
19233 * config/i386/predicates.md (index_register_operand): Ditto.
19235 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
19237 * reorg.c (try_merge_delay_insns): Improve correctness checking
19238 for targets with multiple delay slots.
19240 2015-04-20 Jeff Law <law@redhat.com>
19242 PR tree-optimization/65658
19243 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
19246 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
19248 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
19249 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
19252 2015-04-20 Jakub Jelinek <jakub@redhat.com>
19255 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
19257 2015-04-20 Richard Biener <rguenther@suse.de>
19259 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
19260 * gimple-fold.c (gimple_build_valueize): New function.
19261 (gimple_build): Always use gimple_build_valueize as valueize hook.
19263 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
19266 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
19267 and overwrite variable parts if <= 1/2 the elements are variable.
19269 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
19271 PR rtl-optimization/65805
19272 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
19273 Don't use difference of offset and previous offset if
19274 update_sp_offset is non-zero.
19275 (eliminate_regs_in_insn): Ditto.
19276 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
19277 lra_eliminate_regs_1 call.
19278 * lra-constraints.c (get_equiv_with_elimination): Ditto.
19280 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
19282 * hash-table.h: Remove version of hash_table that stored value_type *.
19283 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
19284 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
19285 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
19286 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
19287 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
19288 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
19289 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19290 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
19291 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
19292 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
19293 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
19294 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
19295 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
19296 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19297 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
19298 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
19300 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19301 Jakub Jelinek <jakub@redhat.com>
19304 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
19305 subsequent SH_NONE operand does not overwrite an existing *special
19307 (adjust_extract): Handle case where a vec_extract operation is
19308 wrapped in a PARALLEL.
19310 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
19313 * config/i386/i386.c (ix86_binds_local_p): Define only if
19314 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
19316 2015-04-17 Jeff Law <law@redhat.com>
19318 PR tree-optimization/47679
19319 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
19320 * tree-ssa-scopedtables.c: New file.
19321 * tree-ssa-scopedtables.h: New file.
19322 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
19323 (const_and_copies): Change name/type.
19324 (record_const_or_copy): Move into tree-ssa-scopedtables.c
19325 (record_const_or_copy_1): Similarly.
19326 (restore_vars_to_original_value): Similarly.
19327 (pass_dominator::execute): Create and destroy const_and_copies table.
19328 (thread_across_edge): Update passing of const_and_copies.
19329 (record_temporary_equivalence): Use method calls rather than
19330 manipulating const_and_copies directly.
19331 (record_equality, cprop_into_successor_phis): Similarly.
19332 (dom_opt_dom_walker::before_dom_children): Similarly.
19333 (dom_opt_dom_walker::after_dom_children): Similarly.
19334 (eliminate_redundant_computations): Similarly.
19335 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
19336 (record_temporary_equivalence): Likewise.
19337 (invalidate_equivalences): Likewise.
19338 (record_temporary_equivalences_from_phis): Update due to type
19339 change of const_and_copies. Use method calls rather than
19340 manipulating the stack directly.
19341 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
19342 (thread_through_normal_block, thread_across_edge): Likewise.
19343 (thread_across_edge): Likewise.
19344 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
19345 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
19347 (identify_jump_threads): Update due to type change of equiv_stack.
19348 (finalize_jump_threads): Delete the equiv_stack when complete.
19350 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
19352 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
19353 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
19354 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
19356 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
19359 * config.gcc: Exit with a comment when we do not have a major version
19360 number for the FreeBSD target.
19362 2015-04-17 Jakub Jelinek <jakub@redhat.com>
19365 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
19366 maybe_allows_mem bitfields.
19367 (maybe_allows_none_start, maybe_allows_none_end,
19368 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
19369 maybe_allows_mem_end): New variables.
19370 (compute_maybe_allows): New function.
19371 (add_constraint): Use it to initialize maybe_allows_reg and
19372 maybe_allows_mem fields.
19373 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
19374 is_address constraints such that those that allow neither mem nor
19375 reg come first, then those that only allow reg but not mem, then
19376 those that only allow mem but not reg, then the rest.
19377 (write_allows_reg_mem_function): New function.
19378 (write_tm_preds_h): Call it.
19379 * stmt.c (parse_output_constraint, parse_input_constraint): Use
19380 the generated insn_extra_constraint_allows_reg_mem function
19381 instead of always setting *allows_reg = true; *allows_mem = true;
19382 for unknown extra constraints.
19384 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
19387 * output.h (default_binds_local_p_3): New.
19388 * varasm.c (default_binds_local_p_3): Make it public. Take an
19389 argument to indicate if common symbol may be local. If common
19390 symbol may be local, treat non-external variable as defined
19392 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
19393 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
19394 * config/i386/i386.c (ix86_binds_local_p): New.
19395 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
19396 ix86_binds_local_p.
19398 2015-04-17 Jakub Jelinek <jakub@redhat.com>
19401 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
19402 trying mem_loc_descriptor on XEXP (rtl, 0).
19404 2015-04-17 Martin Liska <mliska@suse.cz>
19406 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
19407 Release symbol_compare_collection.
19408 * ipa-reference.c: Add TODO that a vector should be released.
19410 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
19413 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
19414 to new AVR-LibC file layout (bug #44574).
19415 (*avrlibc_devicelib): Same.
19416 * config/avr/avr-mcus.def: Adjust comments.
19417 * config/avr/avr.opt (nodevicelib): Adjust help.
19419 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
19421 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
19423 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
19426 * gimplify.c (gimplify_init_constructor): Always emit a
19427 side-effecting constructor.
19429 2015-04-17 Tom de Vries <tom@codesourcery.com>
19431 PR tree-optimization/64950
19432 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
19433 in cfun->curr_properties.
19434 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
19435 if we generate an IFN_VA_ARG.
19436 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
19437 function if PROP_gimple_lva is not set in src function.
19439 2015-04-17 Tom de Vries <tom@codesourcery.com>
19440 Michael Matz <matz@suse.de>
19442 PR tree-optimization/64950
19443 * gimple-iterator.c (update_modified_stmts): Remove static.
19444 * gimple-iterator.h (update_modified_stmts): Declare.
19445 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
19446 (gimplify_va_arg_internal): New function.
19447 (gimplify_va_arg_expr): Use IFN_VA_ARG.
19448 * gimplify.h (gimplify_va_arg_internal): Declare.
19449 * internal-fn.c (expand_VA_ARG): New unreachable function.
19450 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
19451 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
19452 (expand_ifn_va_arg): New function.
19453 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
19454 (pass_stdarg::execute): Call expand_ifn_va_arg.
19455 (pass_data_lower_vaarg): New pass_data.
19456 (pass_lower_vaarg): New gimple_opt_pass.
19457 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
19458 (make_pass_lower_vaarg): New function.
19459 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
19460 properties_required field.
19461 * passes.def (all_passes): Add pass_lower_vaarg.
19462 * tree-pass.h (PROP_gimple_lva): Add define.
19463 (make_pass_lower_vaarg): Declare.
19465 2015-04-17 Tom de Vries <tom@codesourcery.com>
19467 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
19468 * calls.c (call_expr_flags): Same.
19470 2015-04-17 Tom de Vries <tom@codesourcery.com>
19472 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
19473 (pass_stdarg::execute): ... here.
19475 2015-04-17 Tom de Vries <tom@codesourcery.com>
19476 Michael Matz <matz@suse.de>
19478 * tree-cfg.c (make_blocks_1): Factor out of ...
19479 (make_blocks): ... here.
19480 (make_edges_bb): Factor out of ...
19481 (make_edges): ... here.
19482 (gimple_find_sub_bbs): New function.
19483 * tree-cfg.h (gimple_find_sub_bbs): Declare.
19485 2015-04-17 Tom de Vries <tom@codesourcery.com>
19487 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
19489 2015-04-17 Yury Gribov <y.gribov@samsung.com>
19491 * asan.c (set_sanitized_sections): New function.
19492 (section_sanitized_p): Ditto.
19493 (asan_protect_global): Optionally sanitize user-defined
19495 * asan.h (set_sanitized_sections): Declare new function.
19496 * common.opt (fsanitize-sections): New option.
19497 * doc/invoke.texi (-fsanitize-sections): Document new option.
19498 * opts-global.c (handle_common_deferred_options): Handle new
19501 2015-04-17 Jakub Jelinek <jakub@redhat.com>
19504 * dwarf2out.c (loc_list_from_tree): Return NULL
19505 for DEBUG_EXPR_DECL.
19507 2015-04-17 Christian Bruel <christian.bruel@st.com>
19509 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
19512 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19514 * ira-color.c (setup_left_conflict_sizes_p): Do not process
19515 node itself when computing left conflict subnode size.
19517 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
19519 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
19520 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
19521 *fop_<mode>_1_sse using enabled attribute. Use
19522 register_mixssei387nonimm_operand operand 1 predicate. Change
19523 alternative 3 constraints from "x" to "v".
19525 2015-04-16 Richard Biener <rguenther@suse.de>
19527 PR tree-optimization/65774
19528 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
19529 bit-value tracking on.
19531 2015-04-16 Richard Biener <rguenther@suse.de>
19533 PR tree-optimization/64277
19534 * tree-vrp.c (check_array_ref): Fix anti-range handling,
19535 simplify upper bound handling.
19536 (search_for_addr_array): Simplify.
19537 (check_array_bounds): Handle ADDR_EXPRs here.
19538 (check_all_array_refs): Simplify.
19540 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
19542 * config/i386/i386.c (print_reg): Rewrite function.
19544 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19546 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
19547 Invert the condition.
19549 2015-04-16 Renlin Li <renlin.li@arm.com>
19551 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
19552 simplifications for UNSIGNED_FLOAT.
19554 2015-04-16 Nick Clifton <nickc@redhat.com>
19556 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
19558 (enum rl78_cpu_type): New.
19559 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
19560 (umulhi3_shift_virt): Remove m constraint from operand 1.
19561 (umulqihi3_virt): Likewise.
19562 * config/rl78/rl78.c (rl78_option_override): Add code to process
19563 -mcpu and -mmul options.
19564 (rl78_alloc_physical_registers): Add code to handle divhi and
19565 divsi valloc attributes.
19566 (set_origin): Likewise.
19567 * config/rl78/rl78.h (RL78_MUL_G14): Define.
19568 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
19569 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
19571 (ASM_SPEC): Pass -mcpu on to assembler.
19572 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
19573 (mulqi3_rl78): Likewise.
19574 (mulhi3_g13): Likewise.
19575 (mulhi3): Generate the G13 or G14 versions of the insn directly.
19576 (mulsi3): Likewise.
19577 (mulhi3_g14): Add clobbers of AX and BC.
19578 (mulsi3_g14): Likewise.
19579 (mulsi3_g13): Likewise.
19580 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
19581 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
19582 * config/rl78/rl78.opt (mmul): Initialise value to
19584 (mcpu): New option.
19585 (m13, m14, mrl78): New option aliases.
19586 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
19587 (MULTILIB_DIRNAMES): Add g13 and g14.
19588 * doc/invoke.texi: Document -mcpu and -mmul options.
19590 2015-04-16 Richard Biener <rguenther@suse.de>
19592 * tree-ssa-ccp.c (likely_value): See if we have operands that
19593 are marked as never simulate again and return CONSTANT in this
19595 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
19596 not have any operands that will be simulated again as
19597 not being simulated again.
19599 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
19601 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
19602 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
19603 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
19605 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
19607 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
19608 *float<SWI48:mode><MODEF:mode>2_sse.
19609 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
19611 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
19614 2015-04-15 Tom de Vries <tom@codesourcery.com>
19617 * function.c (push_dummy_function): New function.
19618 (init_dummy_function_start): Use push_dummy_function.
19619 (pop_dummy_function): New function. Factored out of ...
19620 (expand_dummy_function_end): ... here.
19621 * function.h (push_dummy_function, pop_dummy_function): Declare.
19622 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
19623 pop_dummy_function.
19624 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
19626 2015-04-15 Jeff Law <law@redhat.com>
19628 PR tree-optimization/47679
19629 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
19630 need for forward declaration in upcoming changes.
19631 (record_conditions, record_edge_info): Likewise.
19633 PR rtl-optimization/42522
19634 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
19635 SIGN_EXTRACT as a whole object rather than simplifying
19638 2015-04-15 Jakub Jelinek <jakub@redhat.com>
19641 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
19642 and GIMPLE_PREDICT use break instead of return true. For
19643 GIMPLE_EH_DISPATCH, compare dispatch region.
19645 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
19647 * doc/extend.texi (__sync Builtins): Simplify some text. Update
19648 details about the implementation. Make clear preference for
19649 __atomic builtins. Reduce possibility of future change.
19651 2015-04-15 Nick Clifton <nickc@redhat.com>
19653 * config/rx/rx.opt (mallow-string-insns): New option.
19654 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
19655 builtin if string instructions are denied.
19656 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
19657 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
19659 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
19660 * config/rx/rx.md (movstr): Enable pattern only if string
19661 instructions are allowed.
19662 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
19663 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
19664 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
19665 (MULTILIB_DIRNAMES): Add no-strings.
19666 * doc/invoke.texi: Document -mno-allow-string-insns.
19668 2015-04-15 Alan Modra <amodra@gmail.com>
19672 PR middle-end/36043
19673 * calls.c (load_register_parameters): Don't load past end of
19674 mem unless suitably aligned.
19676 2015-04-15 Nick Clifton <nickc@redhat.com>
19678 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
19679 decrement instruction as being frame related.
19680 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
19682 If zero extending a function address enclose the operation in
19684 (rl78_preferred_reload_class): New function.
19685 (TARGET_PREFERRED_RELOAD_CLASS): Define.
19686 * config/rl78/rl78.md: Remove useless constraints in expanders.
19687 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
19688 (mulhi3_rl78): Likewise.
19689 (mulhi3_g13): Likewise.
19690 (mulsi3_rl78): Likewise.
19691 (es_addr): Move to before the multiply patterns.
19693 2015-04-15 Alan Modra <amodra@gmail.com>
19695 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
19696 and sequence_stack. Add seq.
19697 (seq_stack): Delete.
19698 * function.c (prepare_function_start): Don't access x_last_insn.
19699 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
19700 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
19701 * emit_rtl.c (start_sequence, push_topmost_sequence,
19702 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
19703 sequence accessors.
19704 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
19705 remove_insn): Likewise. Simplify.
19706 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
19707 and pop_topmost_sequence.
19708 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
19710 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
19712 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
19715 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
19718 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
19720 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
19721 (LEGACY_INT_REGNO_P): Ditto.
19722 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
19723 (ANY_MASK_REG_P): Remove.
19724 (BND_REG_P): Rename from ANY_BND_REG_P.
19725 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
19726 legacy integer registers. Do not handle MMX_REG_P in a special way.
19727 Merge 64byte and 32byte SSE handling.
19729 2015-04-14 Nick Clifton <nickc@redhat.com>
19731 * expr.c (expand_assignment): Force an address offset computation
19732 into a register before changing its mode.
19733 (expand_expr_real_1): Likewise.
19735 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
19737 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
19738 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
19739 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
19740 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
19741 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
19742 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
19743 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
19744 and __aarch64_vget_lane_any.
19746 2015-04-14 Jakub Jelinek <jakub@redhat.com>
19748 PR rtl-optimization/65761
19749 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
19750 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
19752 2015-04-14 Richard Biener <rguenther@suse.de>
19754 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
19755 (graphite_can_represent_scev): Use POINTER_TYPE_P.
19757 2015-04-14 Richard Biener <rguenther@suse.de>
19759 PR tree-optimization/65758
19760 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
19762 (ccp_lattice_meet): Likewise.
19763 (bit_value_unop): Likewise.
19764 (bit_value_binop): Likewise.
19765 (bit_value_assume_aligned): Likewise.
19767 2015-04-14 Christian Bruel <christian.bruel@st.com>
19769 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
19772 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
19774 PR tree-optimization/63387
19775 * match.pd ((x unord x) | (y unord y) -> (x unord y),
19776 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
19778 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
19780 * config/i386/predicates.md (any_QIreg_operand): Rename from
19781 q_regs_operand. Do not process subregs.
19782 (QIreg_operand): Use QI_REGNO_P predicate.
19783 (ext_QIreg_operand): Ditto.
19784 (ext_register_operand): Ditto.
19785 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
19786 (AND splitters): Ditto.
19787 (AND with -65536 splitter): Add SWI48 mode for operand 0.
19788 (AND with -256 splitter): Use any_QIreg_operand predicate and
19789 SWI248 mode for operand 0.
19790 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
19791 mode for operand 0.
19792 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
19794 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
19796 * doc/plugins.texi: Rewrite first introductory paragraph.
19798 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
19800 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
19801 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
19803 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
19805 * ipa-profie.c (ipa_profile): Check number of parameters
19806 and possible polymorphic call targets before
19809 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
19811 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
19812 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
19814 2015-04-13 Richard Biener <rguenther@suse.de>
19816 PR tree-optimization/65204
19817 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
19818 takens for bit-CCP.
19820 2015-04-13 Richard Biener <rguenther@suse.de>
19823 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
19824 and cond_not_taken_branch_cost to 4 and 2.
19825 (bdver2_cost): Likewise.
19826 (bdver3_cost): Likewise.
19827 (bdver4_cost): Likewise.
19829 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
19831 * hash-table.h (hash_table constructor): Add mem stats.
19832 (alloc_entries): Likewise.
19834 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
19836 * ipa-cp.c (ipcp_driver): Relase prev_edge.
19837 * passes.c (execute_one_pass): Only add transform if pass has one.
19839 2015-04-12 Joseph Myers <joseph@codesourcery.com>
19841 * config/i386/i386.c (ix86_option_override_internal): Don't set
19842 -fprefetch-loop-arrays if optimizing for size.
19844 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
19845 Gerald Pfeifer <gerald@pfeifer.com>
19847 * doc/contrib.texi (Contributors): Add Martin Jambor and
19850 2015-04-12 Jakub Jelinek <jakub@redhat.com>
19852 * BASE-VER: Set to 6.0.0.
19854 PR tree-optimization/65747
19855 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
19856 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
19858 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
19860 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
19861 sentence. Improve grammar.
19863 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
19865 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
19867 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
19870 * ipa-inline-transform.c (speculation_removed): Remove static var.
19871 (check_speculations): New function.
19872 (clone_inlined_nodes): Do not check spculations.
19873 (inline_call): Call check_speculations.
19874 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
19875 consider non-invariants.
19877 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
19878 Martin Liska <mliska@suse.cz>
19881 * ipa-icf.c (sem_item::compare_cgraph_references): function and
19882 variable can not match.
19883 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
19884 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
19886 2015-04-11 Jakub Jelinek <jakub@redhat.com>
19888 PR tree-optimization/65735
19889 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
19890 Remove visited_phis argument, add visited_bbs, avoid recursing into the
19891 same bb rather than just into the same phi node.
19892 (thread_through_normal_block): Adjust caller.
19894 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
19896 * doc/contrib.texi (Contributors): Add Ira Rosen.
19898 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
19900 * gcov.c (find_source): Fix miswording in error message.
19901 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
19902 (ix86_expand_sse_comi_round): Fix typo in error message.
19904 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
19906 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
19908 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
19910 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
19912 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
19915 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
19916 Print bad_spills_num and insn_pseudos_num.
19918 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19921 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
19922 when creating +1 values for SImode.
19924 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
19927 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
19930 2015-04-10 Jakub Jelinek <jakub@redhat.com>
19931 Iain Sandoe <iain@codesourcery.com>
19934 * configure: Regenerate.
19936 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
19939 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
19941 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
19943 * doc/contrib.texi (Contributors): Add John Marino.
19945 2015-04-09 Jakub Jelinek <jakub@redhat.com>
19947 PR tree-optimization/65709
19948 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
19949 TREE_TYPE (TREE_TYPE (t)).
19951 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
19954 * lra-int.h (lra_bad_spill_regno_start): New.
19955 * lra.c (lra_bad_spill_regno_start): New.
19956 (lra): Set up lra_bad_spill_regno_start. Set up
19957 lra_constraint_new_regno_start unconditionally.
19958 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
19961 2015-04-09 Marek Polacek <polacek@redhat.com>
19962 Jakub Jelinek <jakub@redhat.com>
19964 PR middle-end/65554
19965 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
19966 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
19969 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
19971 PR rtl-optimization/65693
19972 * combine.c (is_parallel_of_n_reg_sets): Move outside of
19975 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
19978 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
19979 device specs file if "device-specs%s" didn't resolve to a path.
19981 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
19984 * config/i386/i386.c (fixup_modeless_constant): New.
19985 (ix86_expand_args_builtin): Fixup modeless constant operand.
19986 (ix86_expand_round_builtin): Ditto.
19987 (ix86_expand_special_args_builtin): Ditto.
19988 (ix86_expand_builtin): Ditto.
19990 2015-04-09 Jakub Jelinek <jakub@redhat.com>
19993 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
19994 any pow2 integer in between 2 and 0x80000000U inclusive.
19996 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
19998 PR rtl-optimization/65693
19999 * combine.c (is_parallel_of_n_reg_sets): Change first argument
20000 from an rtx_insn * to an rtx.
20001 (try_combine): Adjust both callers. Use it once more.
20003 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20005 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
20006 (chkp_make_static_const_bounds): Search existing
20007 symbol by assembler name. Use make_decl_one_only.
20008 (chkp_get_zero_bounds_var): Remove node search which
20009 is now performed in chkp_make_static_const_bounds.
20010 (chkp_get_none_bounds_var): Likewise.
20012 2015-04-08 Michael Witten <mfwitten@gmail.com>
20014 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
20017 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20019 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
20021 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
20023 * doc/extend.texi (__sync Builtins): Fix grammar.
20025 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20027 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
20029 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20031 * varasm.c (emit_local): Move definition of align.
20033 2015-04-08 Julian Brown <julian@codesourcery.com>
20035 * config/nvptx/mkoffload.c (process): Support variable mapping.
20037 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
20039 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
20041 (alpha_write_one_linkage): Correct typo.
20043 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20045 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
20047 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
20049 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
20051 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
20053 * tree-chkp.h (chkp_insert_retbnd_call): New.
20054 * tree-chkp.c (chkp_insert_retbnd_call): New.
20055 * ipa-split.c (insert_bndret_call_after): Remove.
20056 (split_function): Use chkp_insert_retbnd_call.
20057 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
20058 bounds for instrumented functions.
20060 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
20063 * calls.c (initialize_argument_information): When producing tail
20064 call also turn SSA_NAMES passed by references to original PARM_DECLs
20066 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
20069 * lra-remat.c (do_remat): Process input and non-input insn
20070 registers separately.
20072 2015-04-07 Jakub Jelinek <jakub@redhat.com>
20075 * valtrack.c (debug_lowpart_subreg): New function.
20076 (dead_debug_insert_temp): Use it.
20078 PR middle-end/65680
20079 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
20080 into signed HOST_WIDE_INT the same as negative bit_offset.
20082 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
20084 * ipa-comdats.c (ipa_comdats): Visit all thunks
20085 to set proper comdat group.
20087 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20090 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
20091 on constants for NEON VSTRUCT modes.
20093 2015-04-07 Jakub Jelinek <jakub@redhat.com>
20094 Iain Sandoe <iain@codesourcery.com>
20097 * configure: Regenerate.
20099 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
20102 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
20103 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
20104 that LFD is used to load double constants instead of LFS. Add
20105 defaults for all costs structures. Add comments for missing
20106 initialization fields.
20107 (size32_cost): Likewise.
20108 (size64_cost): Likewise.
20109 (rs64a_cost): Likewise.
20110 (mpccore_cost): Likewise.
20111 (ppc403_cost): Likewise.
20112 (ppc405_cost): Likewise.
20113 (ppc440_cost): Likewise.
20114 (ppc476_cost): Likewise.
20115 (ppc601_cost): Likewise.
20116 (ppc603_cost): Likewise.
20117 (ppc604_cost): Likewise.
20118 (ppc604e_cost): Likewise.
20119 (ppc620_cost): Likewise.
20120 (ppc630_cost): Likewise.
20121 (ppccell_cost): Likewise.
20122 (ppc750_cost): Likewise.
20123 (ppc7450_cost): Likewise.
20124 (ppc8540_cost): Likewise.
20125 (ppce300c2c3_cost): Likewise.
20126 (ppce500mc_cost): Likewise.
20127 (ppce500mc64_cost): Likewise.
20128 (ppce5500_cost): Likewise.
20129 (ppce6500_cost): Likewise.
20130 (titan_cost): Likewise.
20131 (power4_cost): Likewise.
20132 (power6_cost): Likewise.
20133 (power7_cost): Likewise.
20134 (power8_cost): Likewise.
20135 (ppca2_cost): Likewise.
20136 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
20138 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
20139 instead of XXLOR to copy SFmode to clear out dirty bits created
20140 when SFmode denormals are generated.
20141 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
20142 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
20144 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
20146 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
20147 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
20148 * config/aarch64/aarch64-tune.md: Regenerate.
20150 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
20152 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
20153 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
20154 * config/arm/arm-cores.def (exynos-m1): New core.
20155 * config/arm/arm-tune.md: Regenerate.
20156 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
20157 * config/arm/bpabi.h: Likewise.
20159 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
20161 * ipa-cp (set_single_call_flag): Remove too
20162 restrictive assert.
20164 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
20166 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
20167 GOMP_offload_unregister from the destructor.
20169 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
20171 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
20172 flags for instrumentation thunk.
20173 (chkp_produce_thunks): Likewise.
20175 2015-04-05 Martin Liska <mliska@suse.cz>
20178 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
20179 has computed data structure.
20180 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
20182 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
20184 * invoke.texi (inline-unit-growth): Increase growth to 20%
20185 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
20187 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
20190 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
20192 (lra_rematerialization_iter): New.
20193 * lra.c (lra): Initialize lra_rematerialization_iter.
20194 Stop updating lra_constraint_new_regno_start after switching of
20195 inheritance and rematerialization.
20196 * lra-remat.c (lra_rematerialization_iter): New.
20197 (lra_remat): Add printing pass iteration. Do rematerialization
20198 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
20200 2015-04-04 Richard Biener <rguenther@suse.de>
20202 PR tree-optimization/64909
20203 PR tree-optimization/65660
20204 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
20205 to take a cost vector for scalar iteration cost.
20206 (vect_get_single_scalar_iteration_cost): Likewise.
20207 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
20208 Compute the scalar iteration cost into a cost vector.
20209 (vect_get_known_peeling_cost): Use the scalar cost vector to
20210 account for the cost of the peeled iterations.
20211 (vect_estimate_min_profitable_iters): Likewise.
20212 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
20215 2015-04-04 Alan Modra <amodra@gmail.com>
20219 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
20220 0.0 constant unless TARGET_VSX.
20221 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
20224 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
20227 * ipa-inline-transform.c (inline_call): Skip sanity check to work
20230 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
20233 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
20234 speculative indirect edges to avoid ordering issue.
20236 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
20239 * ipa-inline.c (edge_badness): Add combined size to the denominator.
20241 2015-04-03 Jakub Jelinek <jakub@redhat.com>
20243 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
20244 TYPE_ARTIFICIAL on the .omp_data* types.
20246 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20248 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
20249 instrumentation thunks.
20251 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20253 * config/i386/i386.c (ix86_expand_call): Avoid nested
20254 PARALLEL in returned call value.
20256 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20258 * lto-cgraph.c (input_cgraph_1): Always link instrumented
20259 assembler name with original one.
20261 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
20263 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
20265 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
20267 Revert parts of r216820.
20268 * config/i386/i386.md (movqi_internal): Correct type calculation
20269 for alternatives 3 and 5.
20271 2015-04-02 Jakub Jelinek <jakub@redhat.com>
20273 PR preprocessor/61977
20274 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
20275 predefine __vector/__bool/__pixel macros nor context sensitive
20276 macros for CLK_ASM.
20277 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
20279 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
20281 * config/pa/pa.c (pa_output_move_double): Directly handle register
20282 indexed memory operand. Simplify handling of scaled register indexed
20285 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
20288 * config/i386/linux-common.h (MPX_SPEC): New.
20289 (CHKP_SPEC): Add MPX_SPEC.
20290 * doc/invoke.texi (-fcheck-pointer-boudns): Document
20291 possible issues with '-z bndplt' support in linker.
20293 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
20295 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
20296 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
20297 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
20298 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
20299 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
20301 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
20303 * config/i386/sync.md (UNSPEC_MOVA): Remove.
20304 (atomic_load<mode>): Change operand 0 predicate to
20305 nonimmediate_operand and fix up the destination when needed.
20307 (atomic_loaddi_fpu): Use UNSPEC_LDA.
20308 (atomic_store<mode>): Change operand 1 predicate to
20309 nonimmendate_operand and move the source to register when needed.
20311 (atomic_store<mode>_1): Use UNSPEC_STA.
20312 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
20313 Fix moves from memory operand. Use UNSPEC_STA.
20315 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
20317 * expmed.c (strict_volatile_bitfield_p): Check that the access will
20318 not cross a MODESIZE boundary.
20319 (store_bit_field, extract_bit_field): Added assertions in the
20320 strict volatile bitfields code path.
20322 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
20325 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
20326 Increase args array size by one to avoid buffer overflow.
20328 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
20330 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
20332 * ipa-inline.c (edge_badness): Add wrapper penalty.
20333 (sum_callers): Move up.
20334 (inline_small_functions): Set single_caller.
20335 * ipa-inline.h (inline_summary): Add single_caller.
20336 * ipa-split.c (split_function): Set split_part.
20337 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
20338 * cgraph.h (cgraph_node): Add split_part.
20340 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
20343 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
20344 Do not split operands 0 and operands 2 to halfmode.
20345 (atomic_compare_and_swap<mode>): Update for
20346 atomic_compare_and_swap<dwi>_doubleword changes.
20348 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
20350 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
20351 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
20352 no caching is done.
20354 2015-03-31 Martin Liska <mliska@suse.cz>
20357 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
20358 has already filled up function summary.
20359 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
20361 2015-03-31 Richard Biener <rguenther@suse.de>
20363 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
20366 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
20368 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
20370 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
20371 (s390_asm_output_function_label): Adapt to new signature of
20372 s390_function_num_hotpatch_hw
20373 Optimise the code generating assembler output.
20374 Add comments to assembler file.
20376 2015-03-31 Richard Biener <rguenther@suse.de>
20378 PR middle-end/65626
20379 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
20380 of the noreturn call so it is last and cleanup_control_flow_bb
20381 can do the CFG part.
20383 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
20386 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
20387 same_comdat_group for external symbols.
20388 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
20389 infinite same_comdat_group traversal loop.
20391 2015-03-31 Jakub Jelinek <jakub@redhat.com>
20394 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
20395 automatically to $headers.
20397 2015-03-30 Jakub Jelinek <jakub@redhat.com>
20400 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
20401 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
20403 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
20405 * ipa-prop.c (param_type_may_change_p): Likewise.
20406 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
20407 (remove_unused_scope_block_p): Add in_ctor_dtor_block
20408 argument. Before inlining, preserve
20409 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
20410 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
20412 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
20414 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
20417 * ipa-inline.c (edge_badness): Base denominator on callee's
20420 2015-03-27 Martin Jambor <mjambor@suse.cz>
20423 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
20424 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
20425 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
20426 node_calling_single_call.
20427 * ipa-cp.c (count_callers): New function.
20428 (set_single_call_flag): Likewise.
20429 (initialize_node_lattices): Count callers and set single_flag_call if
20431 (incorporate_penalties): New function.
20432 (good_cloning_opportunity_p): Use it, dump new flags.
20433 (propagate_constants_topo): Set node_within_scc flag if appropriate.
20434 * doc/invoke.texi (ipa-cp-recursion-penalty,
20435 ipa-cp-single-call-pentalty): Document.
20437 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
20440 * symtab.c (symtab_node::get_partitioning_class): Register vars
20442 * varpool.c (symbol_table::output_variables) Do not assemble unefined
20443 decls for non-symbols.
20445 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
20448 * output.h (default_binds_local_p_2): New.
20449 * varasm.c (default_binds_local_p_2): Renamed to ...
20450 (default_binds_local_p_3): This. Don't return true on protected
20451 data symbol if protected data may be external.
20452 (default_binds_local_p): Use default_binds_local_p_3.
20453 (default_binds_local_p_1): Likewise.
20454 (default_binds_local_p_2): New.
20455 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
20456 default_binds_local_p_2 if TARGET_MACHO is undefined.
20458 2015-03-27 Jakub Jelinek <jakub@redhat.com>
20461 * config/i386/i386.c (legitimize_pic_address): If base
20462 is SYMBOL_REF or LABEL_REF using %rip addressing, force
20463 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
20465 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
20468 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
20471 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
20474 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
20475 of optimized out indirect call.
20476 (redirect_to_unreachable): Always build symbol table node for
20477 BUILT_IN_UNREACHABLE
20479 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
20482 * ira-costs.c (record_reg_classes): Process all constraint string
20485 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
20487 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
20491 * config/c6x/constraints.md (S3): New constraint.
20492 * config/c6x/c6x.md (real_jump): Use it.
20494 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
20496 PR middle-end/65595
20497 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
20498 do redirection if the call is not optimized out.
20500 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
20503 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
20504 (fchkp-check-incomplete-type): Add LTO.
20505 (fchkp-zero-input-bounds-for-main): Likewise.
20506 (fchkp-first-field-has-own-bounds): Likewise.
20507 (fchkp-narrow-bounds): Likewise.
20508 (fchkp-narrow-to-innermost-array): Likewise.
20509 (fchkp-use-static-bounds): Likewise.
20510 (fchkp-use-static-const-bounds): Likewise.
20511 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
20513 2015-03-27 Marek Polacek <polacek@redhat.com>
20515 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
20517 2015-03-27 Marek Polacek <polacek@redhat.com>
20520 * ubsan.c (ubsan_create_edge): New function.
20521 (instrument_bool_enum_load): Call it.
20522 (instrument_nonnull_arg): Likewise.
20523 (instrument_nonnull_return): Likewise.
20524 (instrument_object_size): Likewise.
20526 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
20528 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
20531 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
20534 * lto-streamer.h (class lto_location_cache): New.
20535 (struct data_in): Add location_cache.
20536 (lto_input_location): Update prototype.
20537 (stream_input_location_now): New.
20538 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
20539 pointer to location.
20540 (stream_input_location): Update.
20541 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
20542 (warn_odr): Apply location cache before warning.
20543 (lto_input_location): Update prototype.
20544 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
20545 Use stream_input_location_now.
20546 * lto-streamer-in.c (lto_location_cache::current_cache): New static
20548 (lto_location_cache::cmp_loc): New function.
20549 (lto_location_cache::apply_location_cache): New function.
20550 (lto_location_cache::accept_location_cache): New function.
20551 (lto_location_cache::revert_location_cache): New function.
20552 (lto_location_cache::input_location): New function.
20553 (lto_input_location): Do location caching.
20554 (stream_input_location_now): New function.
20555 (input_eh_region, input_struct_function_base): Use
20556 stream_input_location_now.
20557 (lto_data_in_create): use new.
20558 (lto_data_in_delete): Use delete.
20559 * tree-streamer-in.c (unpack_ts_block_value_fields,
20560 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
20561 lto_input_ts_exp_tree_pointers): Update for cached location api.
20563 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
20566 * passes.def: Add pass_nothrow.
20567 * ipa-pure-const.c: (pass_data_nothrow): New.
20568 (pass_nothrow): New.
20569 (pass_nothrow::execute): New.
20570 (make_pass_nothrow): New.
20571 * tree-pass.h (make_pass_nothrow): Declare.
20573 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
20575 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
20576 edge to change by speculation resolution or redirection.
20577 (edge_set_predicate): Likewise.
20578 (inline_summary_t::duplicate): Likewise.
20579 (remap_edge_summaries): Likewise.
20581 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
20583 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
20585 (can_inline_edge_p): Relax option matching for always inline functions.
20587 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
20590 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
20591 Check operand 4 and operand 0 for equality.
20592 (avx512f_vextract<shuffletype>32x4_1_maskm):
20593 Check operand 6 and operand 0 for equality.
20594 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
20596 (vec_extract_hi_<mode>_maskm): Ditto.
20598 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
20600 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
20601 dead calls back to live.
20602 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
20604 (cgraph_node::verify_node): ... here; verify only callee edges,
20606 * cif-code.def (CILK_SPAWN): New code.
20608 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
20610 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
20611 (edge_set_predicate): Use it to mark unreachable edges.
20612 (inline_summary_t::duplicate): Remove unnecesary code.
20613 (remap_edge_summaries): Likewise.
20614 (dump_inline_summary): Report contains_cilk_spawn.
20615 (compute_inline_parameters): Compute contains_cilk_spawn.
20616 (inline_read_section, inline_write_summary): Stream
20617 contains_cilk_spawn.
20618 * ipa-inline.c (can_inline_edge_p): Do not touch
20619 DECL_STRUCT_FUNCTION that may not be available;
20620 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
20621 remove check for callee_fun->can_throw_non_call_exceptions and
20622 replace it by optimization attribute check; check for flag_exceptions.
20623 * ipa-inline-transform.c (inline_call): Maintain
20624 DECL_FUNCTION_PERSONALITY
20625 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
20627 2015-03-26 Jakub Jelinek <jakub@redhat.com>
20629 PR tree-optimization/65551
20630 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
20631 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
20633 2015-03-26 Richard Biener <rguenther@suse.de>
20635 PR middle-end/65555
20636 * tree-cfg.c (verify_gimple_call): Do not require a call to
20637 have no LHS if it wasn't recognized as control altering yet.
20639 2015-03-26 Jakub Jelinek <jakub@redhat.com>
20641 PR tree-optimization/64715
20642 * passes.def: Add another instance of pass_object_sizes before ccp1.
20643 * tree-object-size.c (pass_object_sizes::execute): In
20644 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
20645 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
20646 __bos result and the computed constant. Remove redundant
20647 checks, obsoleted by gimple_call_builtin_p test.
20649 * var-tracking.c (variable_tracking_main_1): Don't track
20650 variables for targetm.no_register_allocation targets.
20652 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
20654 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
20655 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
20657 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
20660 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
20661 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
20662 0.0 is correctly setup.
20663 (extenddftf2_internal): Likewise.
20665 2015-03-25 Sebastian Pop <s.pop@samsung.com>
20667 PR tree-optimization/65177
20668 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
20670 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
20671 edges not adjacent on the path to the original code.
20673 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
20676 * doc/install.texi (Building a native compiler): Document new
20677 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
20678 configuration assumes that the host supports the linker plugin.
20680 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
20683 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
20684 chain for generated call.
20686 2015-03-25 Richard Biener <rguenther@suse.de>
20688 * passes.c (pass_manager::execute_early_local_passes): Guard
20689 execution of pass_chkp_instrumentation_passes with
20690 flag_check_pointer_bounds.
20691 (pass_chkp_instrumentation_passes::gate): Likewise.
20693 2015-03-25 Martin Liska <mliska@suse.cz>
20695 PR tree-optimization/65538
20696 * symbol-summary.h (function_summary::~function_summary):
20697 Relese memory for allocated summaries.
20698 (function_summary::release): New function.
20700 2015-03-25 Jakub Jelinek <jakub@redhat.com>
20703 * lto-streamer-out.c (DFS::worklist): New struct.
20704 (DFS::worklist_vec): New data member.
20705 (DFS::next_dfs_num): Remove.
20706 (DFS::DFS): Rewritten using worklist instead of recursion,
20707 using most of code from DFS::DFS_write_tree.
20708 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
20709 pass it to DFS_write_tree calls.
20710 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
20711 quick initial checks push it into worklist_vec and return.
20713 2015-03-25 Richard Biener <rguenther@suse.de>
20715 PR middle-end/65519
20716 * genmatch.c (expr::gen_transform): Re-write to avoid
20717 using gimple_build.
20719 2015-03-25 Bin Cheng <bin.cheng@arm.com>
20721 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
20723 2015-03-25 Bin Cheng <bin.cheng@arm.com>
20725 * config/arm/arm.opt (print_tune_info): New option.
20726 * config/arm/arm.c (arm_print_tune_info): New function.
20727 (arm_file_start): Call arm_print_tune_info.
20728 * config/arm/arm-protos.h (struct tune_params): Add comment.
20729 * doc/invoke.texi (@item -mprint-tune-info): New item.
20730 (-mtune): mention it in ARM Option Summary.
20732 2015-03-25 DJ Delorie <dj@redhat.com>
20734 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
20737 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
20738 Martin Liska <mliska@suse.cz>
20740 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
20741 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
20742 (sem_item::add_type): New function.
20743 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
20744 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
20745 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
20746 (sem_function::equals_wpa): Fix typo.
20747 * ipa-icf.h (sem_item::add_type): New function.
20748 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
20751 2015-03-24 Jakub Jelinek <jakub@redhat.com>
20753 PR tree-optimization/65533
20754 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
20755 with swapped operands, call vect_free_slp_tree on
20756 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
20759 2015-03-24 Richard Biener <rguenther@suse.de>
20761 PR middle-end/65517
20762 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
20763 for fixup if necessary.
20765 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
20767 * doc/extend.texi (Function Attributes): Add @cindex entries
20768 for all attributes and regularize their format. Delete text
20769 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
20770 information about "eightbit_data", "tiny_data", and "model"
20771 variable attributes to the Variable Attributes section. Fix
20772 some obvious typos and copy-editing issues.
20773 (Variable Attributes, Type Attributes): Likewise add/fix
20774 @cindex entries for all attributes.
20776 2015-03-23 Jakub Jelinek <jakub@redhat.com>
20779 * tree-chkp.c (chkp_build_returned_bound): Ignore
20780 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
20782 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
20785 * config/sh/predicates.md (simple_mem_operand,
20786 displacement_mem_operand): Add test for reg.
20787 (short_displacement_mem_operand): Test for displacement_mem_operand
20788 before invoking sh_disp_addr_displacement.
20789 * config/sh/constraints.md (Sdd, Sra): Simplify.
20790 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
20791 Remove redundant displacement_mem_operand tests.
20793 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
20796 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
20797 the same -mmcu=MCU more than once.
20799 2015-03-23 Jakub Jelinek <jakub@redhat.com>
20802 * ipa-devirt.c: Remove duplicate demangle.h include.
20805 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
20807 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
20808 REG_POINTER on *destptr after adjusting it for prologue size.
20811 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
20812 ultimate_alias_target ()->order ints instead of
20813 ultimate_alias_target () pointers.
20815 2015-03-23 Richard Biener <rguenther@suse.de>
20817 PR tree-optimization/65518
20818 * tree-vect-stmts.c (vectorizable_load): Reject single-element
20819 interleaving cases we generate absymal code for.
20821 2015-03-23 Richard Biener <rguenther@suse.de>
20823 PR tree-optimization/65494
20824 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
20826 (vect_analyze_slp_instance): But do that here, always and once.
20828 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20830 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
20831 adding T or multiplying by T+1 and subracting T.
20833 2015-03-22 Jeff Law <law@redhat.com>
20835 PR rtl-optimization/64317
20836 * Makefile.in (OBJS): Add gcse-common.c
20837 * gcse.c: Include gcse-common.h
20838 (struct modify_pair_s): Move structure definition to gcse-common.h
20839 (compute_transp): Move function to gcse-common.c.
20840 (canon_list_insert): Similarly.
20841 (record_last_mem_set_info): Break out some code and put it into
20842 gcse-common.c. Call into the new common code.
20843 (compute_local_properties): Pass additional arguments to compute_transp.
20844 * postreload-gcse.c: Include gcse-common.h and df.h
20845 (modify_mem_list_set, blocks_with_calls): New variables.
20846 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
20847 (get_bb_avail_insn): Pass in the expression index too.
20848 (alloc_mem): Allocate memory for the new bitmaps and lists.
20849 (free_mem): Free memory for the new bitmaps and lists.
20850 (insert_expr_in_table): Record a bitmap index for each entry we
20852 (record_last_mem_set_info): Call into common code in gcse-common.c.
20853 (get_bb_avail_insn): If no available insn was found in the requested
20854 BB. If BB has a single predecessor, see if the expression is
20855 transparent in BB and available in that single predecessor.
20856 (compute_expr_transp): New wrapper for compute_transp.
20857 (eliminate_partially_redundant_load): Pass expression's bitmap_index
20858 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
20859 (gcse_after_reload_main): If there are elements in the hash table,
20860 then compute transparency for all the elements in the hash table.
20861 * gcse-common.h: New file.
20862 * gcse-common.c: New file.
20864 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
20866 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
20868 (System Headers): Likewise.
20870 (Traditional macros): Likewise.
20871 (Invocation): Likewise.
20872 (Option Index): Likewise.
20873 * doc/cppopts.texi (-M): Likewise.
20874 (-finput-charset): Likewise.
20875 (--help): Likewise.
20876 * doc.invoke.texi (AVR Options): Likewise.
20877 (V850 Options): Likewise.
20879 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
20882 * ipa-devirt.c: Include demangle.h
20883 (odr_type_d): Add field rtti_broken.
20884 (odr_subtypes_equivalent_p): Do not require name to match.
20885 (compare_virtual_tables): Fix typo; if type already has ODR violation,
20886 bypass the tests; be ready for function referneces in vtables that are
20887 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
20888 (warn_odr): Give up for nameless types.
20889 (warn_types_mismatch): Report mismatch in mangled names;
20890 report mismatch in anonymous namespaces; look into component types to
20891 give useful error; report when mismatch is dragged in from other ODR
20893 (odr_types_equivalent_p): Match types for being polymorphic; avoid
20894 duplicated diagnostics.
20895 (add_type_duplicate): Reorder checks so more informative ones come
20896 first; fix typo; do not output "the extra base is defined here" when
20898 (BINFO_N_BASE_BINFOS): Relax sanity check.
20900 2015-03-22 Martin Liska <mliska@suse.cz>
20901 Jakub Jelinek <jakub@redhat.com>
20903 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
20904 masks that can potentially include a builtin.
20905 (ix86_add_new_builtins): Introduce fast filter for isa values
20906 that cannot trigger builtin inclusion.
20908 2015-03-22 Martin Liska <mliska@suse.cz>
20910 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
20911 (sem_item::update_hash_by_local_refs): Likewise.
20912 (sem_variable::get_hash): Empty line is fixed.
20913 (sem_item_optimizer::execute): Include adding of hash references.
20914 (sem_item_optimizer::update_hash_by_addr_refs): New function.
20915 (sem_item_optimizer::build_hash_based_classes): Use local hash.
20916 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
20917 (sem_item::update_hash_by_local_refs): Likewise.
20919 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
20922 * ipa-comdats.c (enqueue_references): Walk through thunks.
20923 (ipa_comdats): Likewise.
20924 (set_comdat_group_1): New function.
20926 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
20929 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
20932 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
20933 Gerald Pfeifer <gerald@pfeifer.com>
20935 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
20937 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
20938 Sandra Loosemore <sandra@codesourcery.com>
20940 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
20941 function parameter declaration.
20942 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
20943 Update arguments to nios2_adjust_call_address().
20944 (sibcall_internal): Rename from *sibcall.
20945 (sibcall_value_internal): Rename from *sibcall_value.
20946 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
20947 (nios2_large_got_address): Add target temp reg parameter.
20948 (nios2_got_address): Adjust call to nios2_large_got_address, add
20949 force_reg around it.
20950 (nios2_load_pic_address): Add target temp reg parameter, replace call
20951 to nios2_got_address with corresponding code.
20952 (nios2_legitimize_constant_address): Update call to
20953 nios2_load_pic_address.
20954 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
20955 to use temp reg for PIC loading purposes.
20956 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
20957 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
20958 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
20960 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
20962 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
20963 usage of "the @option{...}".
20964 (-Wopenmp-simd): Likewise.
20965 (-fsanitize-recover): Likewise.
20966 (-fsanitize-undefined-trap-on-error): Likewise.
20968 (tracer-dynamic-coverage-feedback): Likewise.
20969 (reorder-block-duplicate-feedback): Likewise.
20970 (loop-unroll-jam-size): Likewise.
20973 (-mabs=legacy): Likewise.
20974 (-mupper-regs-df): Likewise.
20975 (-mupper-regs-sf): Likewise.
20976 (-mpointers-to-nested-functions): Likewise.
20978 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
20980 * doc/extend.texi (Cilk Plus Builtins): Add markup.
20982 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
20984 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
20985 additional index entries and cross-references.
20986 (-fchkp-check-incomplete-type): Likewise.
20987 (-fchkp-first-field-has-own-bounds): Likewise.
20988 (-fchkp-narrow-to-innermost-array): Likewise.
20989 (-fchkp-use-fast-string-functions): Likewise.
20990 (-fchkp-use-nochk-string-functions): Likewise.
20991 (-fchkp-use-static-const-bounds): Likewise.
20992 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
20993 (-fchkp-instrument-marked-only): Likewise.
20994 (-fchkp-use-wrappers): Likewise.
20995 (-static-libmpx): Likewise.
20996 (-static-libmpxwrappers): Likewise.
20997 * doc/extend.texi (bnd_legacy): Likewise.
20998 (bnd_instrument): Likewise.
20999 (bnd_variable_size): Likewise.
21000 (Pointer Bounds Checker builtins): Likewise.
21002 2015-03-21 Tom de Vries <tom@codesourcery.com>
21004 PR tree-optimization/65458
21005 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
21006 * cgraph.h (cgraph_node): Add parallelized_function field.
21007 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
21008 (input_overwrite_node): Read parallelized_function field.
21009 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
21010 parallelized_function on cgraph_node for child_fn.
21011 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
21012 Remove include of gt-tree-parloops.h.
21013 (parallelized_functions): Remove static variable.
21014 (parallelized_function_p): Rewrite using parallelized_function field of
21016 (create_loop_fn): Remove adding to parallelized_functions.
21017 * Makefile.in (GTFILES): Remove tree-parloops.c
21019 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
21021 PR rtl-optimization/64366
21022 * lra.c (lra_update_insn_regno_info): Consider regs in
21023 CALL_INSN_FUNCTION_USAGE memory.
21025 2015-03-20 Richard Biener <rguenther@suse.de>
21027 PR middle-end/64715
21028 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
21029 for type comparison and gcc_checking_assert.
21030 (chrec_fold_plus_poly_poly): Likewise.
21031 (chrec_fold_multiply_poly_poly): Likewise.
21032 (chrec_convert_1): Likewise.
21033 * gimplify.c (gimplify_expr): Remove premature folding of
21034 &X + CST to &MEM[&X, CST].
21036 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
21038 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
21040 (ipa_inline): Recompute inline_failed codes.
21041 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
21042 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
21045 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
21047 PR rtl-optimization/60851
21048 * recog.c (constrain_operands): Accept a pseudo register before reload
21049 for LRA enabled targets.
21051 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
21054 * config/rs6000/predicates.md (easy_fp_constant): Remove special
21055 -ffast-math handling that kept non-0 constants live in the RTL
21056 until reload. Remove logic testing the number of instructions it
21057 took to create a constant in a GPR that was never used, due to a
21058 test for soft-float earlier.
21059 (memory_fp_constant): Delete, no longer used.
21061 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
21062 alternatives for loading non-0 constants into GPRs for hard
21063 floating point that is no longer needed due to changes in
21064 easy_fp_constant. Add support for loading 0.0 into GPRs.
21065 (mov<mode>_hardfloat32): Likewise.
21066 (mov<mode>_hardfloat64): Likewise.
21067 (mov<mode>_64bit_dm): Likewise.
21068 (movtd_64bit_nodm): Likewise.
21069 (pre-reload move FP constant define_split): Delete define_split,
21070 since it is no longer used.
21071 (extenddftf2_internal): Remove GHF constraints that are not valid
21074 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
21076 PR rtl-optimization/63491
21077 * lra-constraints.c (check_and_process_move): Use src instead of
21078 sreg. Remove some dead code.
21080 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
21083 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
21084 (sem_variable::merge): Likewise.
21086 2015-03-19 Martin Liska <mliska@suse.cz>
21089 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
21090 all fields of cgraph_thunk_info.
21092 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
21094 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
21095 clone instrumented thunks.
21097 2015-03-19 Richard Biener <rguenther@suse.de>
21100 2015-03-10 Richard Biener <rguenther@suse.de>
21102 PR middle-end/63155
21103 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
21104 * tree-ssa-coalesce.c: Include timevar.h.
21105 (attempt_coalesce): Handle graph being NULL.
21106 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
21107 Split out abnormal coalescing to ...
21108 (perform_abnormal_coalescing): ... this function.
21109 (coalesce_ssa_name): Perform abnormal coalescing without computing
21111 (verify_ssa_coalescing_worker): New function.
21112 (verify_ssa_coalescing): Likewise.
21114 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
21115 Jakub Jelinek <jakub@redhat.com>
21118 * tsan.c (instrument_gimple): Clear tail call flag on
21121 2015-03-19 Jakub Jelinek <jakub@redhat.com>
21124 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
21125 call in the return bb.
21126 (find_split_points): Add RETURN_BB argument, don't call
21128 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
21129 if true append TSAN_FUNC_EXIT internal call after the call to
21130 the split off function.
21131 (execute_split_functions): Call find_return_bb here.
21132 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
21133 Adjust find_split_points and split_function calls.
21135 2015-03-18 DJ Delorie <dj@redhat.com>
21137 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
21138 (iorqi3_virt): Likewise.
21140 2015-03-18 Tom de Vries <tom@codesourcery.com>
21142 * tree-parloops.c (parallelize_loops): Make static.
21143 * tree-parloops.h (parallelize_loops): Remove extern declaration.
21145 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
21147 PR middle-end/64491
21149 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
21151 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
21152 condition would be removed due to undefined behaviour.
21154 2015-03-18 Martin Liska <mliska@suse.cz>
21157 * cgraph.c (cgraph_node::get_create): Remove unnecessary
21158 xstrdup_for_dump wrapper.
21159 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
21161 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
21162 with xstrdup_for_dump.
21163 (sem_variable::equals): Likewise.
21164 (sem_item_optimizer::read_section): Use symtab_node::name instead of
21166 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
21167 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
21168 symtab_node::asm_name with xstrdup_for_dump.
21169 (congruence_class::dump): Use symtab_node::name instead of
21171 * ipa-icf.h (symtab_node::name): Remove.
21172 (symtab_node::asm_name): Likewise.
21174 2015-03-18 Jakub Jelinek <jakub@redhat.com>
21176 PR tree-optimization/65450
21177 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
21179 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
21180 it instead of duplicate_ssa_name_ptr_info.
21183 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
21185 2015-03-18 Richard Biener <rguenther@suse.de>
21187 * tree-data-ref.h (struct access_matrix): Remove.
21188 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
21189 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
21190 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
21191 (am_vector_index_for_loop): Likewise.
21192 (struct data_reference): Remove access_matrix member.
21193 (DR_ACCESS_MATRIX): Remove.
21194 (lambda_vector_new): Add comment.
21195 (lambda_matrix_new): Use XOBNEWVEC.
21197 2015-03-18 Richard Biener <rguenther@suse.de>
21199 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
21200 (pass_ch::execute): Cleanup the CFG only if we did sth.
21201 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
21203 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21205 * expmed.c (synth_mult): Use std::swap instead of manually
21206 swapping algorithms.
21208 2015-03-18 Jakub Jelinek <jakub@redhat.com>
21211 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
21213 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
21216 * config/avr/avr.opt (-nodevicelib): New option.
21217 * doc/invoke.texi (AVR Options): Document it.
21218 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
21219 libgcc.a, libc.a, libm.a.
21220 * config/avr/specs.h: Same.
21221 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
21222 which don't (directly) depend on the device. Print more help.
21223 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
21224 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
21225 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
21227 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
21228 for specs file name.
21229 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
21230 * config/avr/avr-mcus.def: Adjust initializers and comments.
21232 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
21234 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
21235 DECL_ONE_ONLY to check if decl is one only.
21236 * ipa-split.c (consider_split): Limit splitt of one only functions.
21238 2015-03-16 Jakub Jelinek <jakub@redhat.com>
21240 PR tree-optimization/65427
21241 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
21243 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
21245 2015-03-16 Marek Polacek <polacek@redhat.com>
21247 * cgraph.h (add_new_static_var): Remove declaration.
21248 * varpool.c (add_new_static_var): Remove function.
21250 2015-03-16 Jakub Jelinek <jakub@redhat.com>
21252 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
21253 instead of vec<tree> * with vec_alloc and release for args.
21256 PR middle-end/65431
21257 * omp-low.c (delete_omp_context): Only splay_tree_delete
21258 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
21259 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
21261 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
21264 * cfgexpand.c (align_base): New function.
21265 (alloc_stack_frame_space): Call it.
21266 (expand_stack_vars): Align prev_frame to be sure
21267 data->asan_vec elements aligned properly.
21269 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
21271 PR middle-end/65409
21272 * expr.c (store_field): Do not do a direct block copy if the source is
21273 a PARALLEL with BLKmode.
21275 2015-03-16 Tom de Vries <tom@codesourcery.com>
21277 PR middle-end/65414
21279 2015-03-12 Tom de Vries <tom@codesourcery.com>
21281 PR rtl-optimization/64895
21282 * lra-lives.c (check_pseudos_live_through_calls): Use
21283 actual_call_used_reg_set instead of call_used_reg_set, if available.
21285 2015-03-16 Alan Modra <amodra@gmail.com>
21288 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
21289 Modify Z->r bswapdi splitter to use dest in place of scratch.
21290 In r->Z and Z->r bswapdi splitter rename word_high, word_low
21291 to word1, word2 and rearrange logic to suit.
21292 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
21293 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
21294 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
21295 Add one '?' on r->r. Modify Z->r splitter to avoid need for
21298 2015-03-14 Jakub Jelinek <jakub@redhat.com>
21300 PR tree-optimization/65369
21301 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
21302 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
21303 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
21305 PR tree-optimization/65418
21306 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
21307 are casts in the first PLUS_EXPR operand, ensure tbias and
21308 *totallowp are in the inner type.
21310 PR rtl-optimization/65401
21311 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
21312 argument. If true, adjust_address_nv of x with big-endian
21313 correction for the mode widening to GET_MODE (y).
21314 (make_field_assignment): Don't do MEM mode widening here.
21315 Use MEM_P instead of GET_CODE == MEM.
21317 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
21319 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
21320 the external decls.
21322 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21325 * config/arm/arm.c (arm_gen_constant, AND case): Use
21326 ARM_SIGN_EXTEND when constructing AND mask.
21328 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21330 * graph.c (print_graph_cfg): Make function names visible and append
21331 parenthesis to it. Also make groups of basic blocks belonging to the
21332 same function visible.
21334 2015-03-12 Richard Biener <rguenther@suse.de>
21336 PR middle-end/44563
21337 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
21338 to avoid quadratic behavior with inline expansion splitting blocks.
21339 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
21340 with the successor if the predecessor will be merged with it.
21341 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
21342 entry block with its successor.
21344 2015-03-13 Richard Biener <rguenther@suse.de>
21346 PR middle-end/44563
21347 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
21348 (cleanup_tree_cfg_1): Do not call it.
21349 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
21350 (fixup_noreturn_call): Mark the stmt as control altering.
21351 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
21353 (pass_data_fixup_cfg): Produce a dump file.
21354 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
21355 (need_noreturn_fixup): New global.
21356 (pass_dominator::execute): Fixup queued noreturn calls.
21357 (optimize_stmt): Queue calls that became noreturn for fixup.
21358 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
21359 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
21360 (el_to_fixup): New global.
21361 (eliminate_dom_walker::before_dom_childre): Queue calls that
21362 became noreturn for fixup.
21363 (eliminate): Fixup queued noreturn calls.
21364 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
21365 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
21366 (substitute_and_fold_dom_walker::before_dom_children): Queue
21367 alls that became noreturn for fixup.
21368 (substitute_and_fold): Fixup queued noreturn calls.
21370 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
21372 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
21373 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
21374 are building; for methods check ODR type of class they belong to if
21375 they may lead to a polymorphic call.
21376 (sem_function::compare_polymorphic_p): Be bit smarter about testing
21377 when function may lead to a polymorphic call.
21378 (sem_function::compare_type_list): Remove.
21379 (sem_variable::equals): Update use of compatible_types_p.
21380 (sem_variable::parse_tree_refs): Remove.
21381 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
21383 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
21385 (func_checker::compatible_polymorphic_types_p): Break out from ...
21386 (unc_checker::compatible_types_p): ... here.
21387 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
21389 (unc_checker::compatible_types_p): Update.
21390 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
21393 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21395 PR rtl-optimization/65235
21396 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
21397 When first element of vec_concat is const_int, calculate its size
21398 using second element.
21400 2015-03-12 Richard Biener <rguenther@suse.de>
21402 PR middle-end/65270
21403 * fold-const.c (operand_equal_p): Fix ordering of resetting
21404 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
21406 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
21408 * config/s390/s390.c (s390_reorg): Move code to output nops after label
21410 (s390_asm_output_function_label): Likewise.
21411 * config/s390/s390.c (s390_asm_output_function_label):
21412 Fix function label alignment with -mhtopatch.
21413 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
21414 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
21415 ("nop_2_byte"): New define_insn.
21416 ("nop_4_byte"): Likewise.
21417 ("nop_6_byte"): Likewise.
21418 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
21419 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
21421 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
21424 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
21427 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
21430 * toplev.c (process_options): Restrict Pointer Bounds Checker
21431 usage with Address Sanitizer.
21433 2015-03-12 Richard Biener <rguenther@suse.de>
21435 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
21437 * omp-low.c (expand_omp_taskreg): Split block before removing
21439 (expand_omp_target): Likewise.
21440 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
21441 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
21442 stmt to split_block.
21444 2015-03-12 Tom de Vries <tom@codesourcery.com>
21446 PR rtl-optimization/64895
21447 * lra-lives.c (check_pseudos_live_through_calls): Use
21448 actual_call_used_reg_set instead of call_used_reg_set, if available.
21450 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
21452 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
21453 (cgraph_node::remove): Likewise.
21454 (cgraph_node::get_untransformed_body): Likewise.
21455 * varpool.c (varpool_node::remove): Likewise.
21456 (varpool_node::get_constructor): Add sanity check.
21458 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
21460 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
21462 (-fabi-compat-version): Likewise.
21463 (-ffriend-injection): Likewise.
21464 (-Wdeclaration-after-statement): Likewise.
21465 (-fomit-frame-pointer): Likewise.
21466 (-ftree-coalesce-inlined-vars): Likewise.
21467 (-fvisibility=): Likewise.
21468 * doc/extend.texi (Typeof): Likewise.
21469 (Zero Length): Likewise.
21470 (Escaped Newlines): Likewise.
21471 (Compound Literals): Likewise.
21472 (Function Attributes): Likewise.
21473 (Label Attributes): Likewise.
21474 (Type Attributes): Likewise.
21475 (Function Names): Likewise.
21476 (Other Builtins): Likewise.
21477 (Function Specific Option Pragmas): Likewise.
21478 (C++ Interface): Likewise.
21480 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
21482 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
21484 2015-03-11 Marek Polacek <polacek@redhat.com>
21486 PR tree-optimization/65388
21487 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
21489 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
21492 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
21493 * configure: Regenerate.
21494 * config.in: Regenerate.
21495 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
21496 [-mn-flash]: Document it.
21497 [__AVR_ARCH__]: Document avrtiny.
21499 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
21500 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
21501 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
21503 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21505 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
21507 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21510 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
21511 allow reloads of PLUS in floating point/VSX registers.
21513 2015-03-11 Junmo Park <junmoz.park@samsung.com>
21515 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
21516 crypto_sha256_fast.
21517 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
21519 2015-03-11 Richard Biener <rguenther@suse.de>
21521 PR tree-optimization/65310
21522 * tree-sra.c (build_ref_for_offset): Also preserve larger
21525 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
21527 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
21529 2015-03-10 Jakub Jelinek <jakub@redhat.com>
21532 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
21534 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
21536 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
21538 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
21539 (sem_function::equals_wpa): ... here.
21541 2015-03-10 Marek Polacek <polacek@redhat.com>
21542 Jakub Jelinek <jakub@redhat.com>
21545 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
21546 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
21549 2015-03-10 Jakub Jelinek <jakub@redhat.com>
21552 * config/rs6000/t-linux: For powerpc64* target set
21553 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
21555 2015-03-10 Richard Biener <rguenther@suse.de>
21557 PR middle-end/44563
21558 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
21559 for redirect_all_calls.
21561 2015-03-10 Marek Polacek <polacek@redhat.com>
21563 * gdbinit.in (pcfun): Define and document.
21565 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
21567 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
21568 of libgomp-plugin.h.
21569 (find_target_compiler): Support a case when the path to gcc is
21570 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
21571 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
21572 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
21574 (main): Use GCC_INSTALL_NAME as target_driver_name.
21575 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
21577 (mkoffload.o): Remove obsolete include path and defines.
21578 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
21580 2015-03-10 Richard Biener <rguenther@suse.de>
21582 PR middle-end/63155
21583 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
21584 * tree-ssa-coalesce.c: Include timevar.h.
21585 (attempt_coalesce): Handle graph being NULL.
21586 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
21587 Split out abnormal coalescing to ...
21588 (perform_abnormal_coalescing): ... this function.
21589 (coalesce_ssa_name): Perform abnormal coalescing without computing
21591 (verify_ssa_coalescing_worker): New function.
21592 (verify_ssa_coalescing): Likewise.
21594 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
21597 * config.gcc (extra_options) [avr]: Remove.
21598 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
21599 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
21600 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
21602 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
21603 (-mmcu=): Add Var and MissingArgError properties.
21605 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
21606 * config/avr/t-multilib: Regenerate.
21607 * config/avr/specs.h: New file.
21608 * config/avr/driver-avr.c: New file.
21609 * config/avr/genopt.sh: Remove file.
21610 * config/avr/avr-tables.opt: Remove file.
21611 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
21612 * config/avr/avr-c.c: Same.
21613 * avr-arch.h: Same.
21614 (avr_current_device): Remove proto.
21615 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
21616 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
21617 (EXTRA_SPEC_FUNCTIONS): Define.
21618 (avr_devicespecs_file): New specs function proto.
21619 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
21620 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
21621 (avr_current_device): Remove definition and usage.
21622 (avr_set_core_architecture): New static function.
21623 (avr_option_override): Use it.
21624 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
21625 (mcu_name): New static array.
21626 (comparator, avr_archs_str, avr_mcus_str): New static functions.
21627 (avr_inform_devices, avr_inform_core_architectures): New functions.
21628 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
21629 (avrlibc.h) [WITH_AVRLIBC]: Include.
21630 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
21631 (print_mcu): Rewrite from scratch.
21632 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
21633 Forward to avr-specific specs defined in device-specs file.
21634 * config/avr/t-avr (driver-avr.o): New rule.
21635 (avr-devices.o): Depend on avr-arch.h.
21636 (avr-mcus): No more depend on avr-tables.opt.
21637 (avr-tables.opt): Remove rule.
21638 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
21640 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
21642 * c-family/c.opt (fchkp-use-wrappers): New.
21643 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
21644 (chkp_wrap_function): New.
21645 (chkp_build_instrumented_fndecl): Support wrapped
21647 * doc/invoke.texi (-fcheck-pointer-bounds): New.
21648 (-fchkp-check-incomplete-type): New.
21649 (-fchkp-first-field-has-own-bounds): New.
21650 (-fchkp-narrow-bounds): New.
21651 (-fchkp-narrow-to-innermost-array): New.
21652 (-fchkp-optimize): New.
21653 (-fchkp-use-fast-string-functions): New.
21654 (-fchkp-use-nochk-string-functions): New.
21655 (-fchkp-use-static-bounds): New.
21656 (-fchkp-use-static-const-bounds): New.
21657 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
21658 (-fchkp-check-read): New.
21659 (-fchkp-check-write): New.
21660 (-fchkp-store-bounds): New.
21661 (-fchkp-instrument-calls): New.
21662 (-fchkp-instrument-marked-only): New.
21663 (-fchkp-use-wrappers): New.
21664 (-static-libmpx): New.
21665 (-static-libmpxwrappers): New.
21667 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
21669 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
21670 (CHKP_SPEC): Add wrappers library.
21671 * c-family/c.opt (static-libmpxwrappers): New.
21673 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
21675 * config/i386/linux-common.h (LIBMPX_LIBS): New.
21676 (LIBMPX_SPEC): New.
21678 * gcc.c (CHKP_SPEC): New.
21679 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
21680 * c-family/c.opt (static-libmpx): New.
21682 2015-03-10 Richard Biener <rguenther@suse.de>
21684 PR middle-end/44563
21685 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
21687 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
21688 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
21689 (cgraph_add_edge_to_call_site_hash): Likewise.
21690 (cgraph_node::get_edge): Likewise.
21691 (cgraph_edge::set_call_stmt): Likewise.
21692 (cgraph_edge::remove_caller): Likewise.
21694 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
21696 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
21697 (callee_saved_gpr_regs_size): ... this.
21698 (callee_saved_regs_first_regno): Rename to ...
21699 (callee_saved_first_gpr_regno): ... this.
21700 (callee_saved_regs_last_regno) Rename to ...
21701 (callee_saved_last_gpr_regno): ... this.
21702 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
21704 (nds32_initial_elimination_offset): Likewise.
21705 (nds32_expand_prologue): Likewise.
21706 (nds32_expand_epilogue): Likewise.
21707 (nds32_expand_prologue_v3push): Likewise.
21708 (nds32_expand_epilogue_v3pop): Likewise.
21709 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
21710 Adjust renamed variables.
21711 (nds32_output_stack_pop): Likewise.
21713 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
21715 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
21718 2015-03-10 Jakub Jelinek <jakub@redhat.com>
21720 PR rtl-optimization/65321
21721 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
21723 * var-tracking.c (use_narrower_mode): Likewise.
21725 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
21727 PR tree-optimization/65355
21728 * varasm.c (notice_global_symbol): Do not produce RTL.
21729 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
21731 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
21732 check for section anchors.
21734 2015-03-10 Alan Modra <amodra@gmail.com>
21737 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
21738 to be single-arch by default. Set cpu_is_64bit for powerpc64
21739 given --with-cpu=native.
21740 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
21741 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
21743 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
21744 rs6000_isa_flags rather than TARGET_64BIT.
21746 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
21747 Kaz Kojima <kkojima@gcc.gnu.org>
21749 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
21751 2015-03-09 Jakub Jelinek <jakub@redhat.com>
21754 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
21755 on a TREE_BINFO, instead use BINFO_TYPE.
21757 2015-03-09 Richard Biener <rguenther@suse.de>
21759 PR middle-end/65270
21760 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
21761 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
21762 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
21763 of that. When comparing dereferences compare alignment.
21764 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
21766 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
21768 * ipa-inline-analysis.c (check_callers): Check
21769 node->can_remove_if_no_direct_calls_and_refs_p.
21770 (growth_likely_positive): Reorganize to call
21771 can_remove_if_no_direct_calls_p later.
21772 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
21773 will_be_removed_from_program_if_no_direct_calls_p): Add
21774 will_inline parameter.
21775 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
21776 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
21777 Handle inliner case correctly.
21779 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
21781 PR tree-optimization/63743
21782 * cfgexpand.c (reorder_operands): Also reorder if only second operand
21783 had its definition forwarded by TER.
21785 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
21788 * ipa-utils.h (types_odr_comparable): Add strict argument.
21789 * ipa-devirt.c: Fix whitespace;
21790 (odr_hasher): Remove.
21791 (odr_name_hasher, odr_vtable_hasher): New hashers.
21792 (can_be_name_hashed_p): New predicate.
21793 (hash_type_name): remove.
21794 (hash_odr_name): New.
21795 (odr_name_hasher::hash): new.
21796 (can_be_vtable_hashed_p): New.
21797 (hash_odr_vtable): New.
21798 (odr_vtable_hasher::hash): New.
21799 (types_same_for_odr): Add strict parameter.
21800 (types_odr_comparable): Likewise.
21801 (odr_name_hasher::equal): New.
21802 (odr_vtable_hasher::equal): New.
21803 (odr_name_hasher::remove): New.
21804 (odr_hash_type): Change to hash_table<odr_name_hasher>.
21805 (odr_vtable_hash_type): New.
21806 (odr_vtable_hash): New.
21807 (odr_subtypes_equivalent_p): Do strict comparsion.
21808 (add_type_duplicate): Merge type names; cleanup; avoid type
21810 (register_odr_type): Initialize vtable hash.
21811 (build_type_inheritance_graph): Likewise
21812 (get_odr_type): Reorg to use two hashes.
21813 (dump_possible_polymorphic_call_targets): Move sanity check after debug
21815 (ipa_devirt): Dump type_inheritance_graph.
21816 (types_same_for_odr): Add strict mode.
21818 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
21821 * cgraph.h (symtab_node): Add definition_alignment,
21822 can_increase_alignment_p and increase_alignment.
21823 * symtab.c (symtab_node::can_increase_alignment_p,
21824 increase_alignment_1, symtab_node::increase_alignment,
21825 symtab_node::definition_alignment): New.
21826 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
21827 can_increase_alignment_p.
21828 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
21829 * tree-vect-stmts.c (ensure_base_align): Likewise.
21830 * varasm.c (function_section_1): Use definition_alignment.
21831 (assemble_start_function): Likewise.
21832 (emit_local): likewise.
21833 (build_constant_desc): Likewsie.
21834 (output_constant_def_contents): Likewise.
21835 (place_block_symbol): Likewise.
21836 (output_object_block): Likewise.
21838 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
21841 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
21842 when outputting debug.
21844 2015-03-07 Marek Polacek <polacek@redhat.com>
21845 Martin Uecker <uecker@eecs.berkeley.edu>
21848 * doc/invoke.texi: Update description of -fsanitize=bounds.
21850 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
21852 * tree-ssa-phiopt.c (neg_replacement): Remove.
21853 (tree_ssa_phiopt_worker): Remove negate optimization.
21855 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
21858 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
21860 2015-03-06 Richard Biener <rguenther@suse.de>
21862 PR middle-end/64928
21863 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
21864 and liveout_obstack members.
21865 (calculate_live_on_exit): Remove.
21866 (calculate_live_ranges): Change declaration.
21867 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
21868 (new_tree_live_info): Adjust.
21869 (calculate_live_ranges): Delete livein when not wanted.
21870 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
21871 Deal with partly deleted live info.
21872 (loe_visit_block): Remove temporary bitmap by using
21873 bitmap_ior_and_compl_into.
21874 (live_worklist): Adjust accordingly.
21875 (calculate_live_on_exit): Make static.
21876 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
21877 we do not need livein.
21879 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
21881 * real.c (real_from_string): Fix typo in assertion.
21883 2015-03-06 Alex Velenko <alex.velenko@arm.com>
21885 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
21888 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
21890 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
21892 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
21895 * lra-assigns.c (find_hard_regno_for): Rename to
21896 find_hard_regno_for_1. Add a new parameter.
21897 (find_hard_regno_for): New function using find_hard_regno_for_1.
21899 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
21901 PR rtl-optimization/65067
21902 * expmed.c (store_bit_field, extract_bit_field): Reworked the
21903 strict volatile bitfield handling.
21905 2015-03-05 Martin Liska <mliska@suse.cz>
21908 * ipa-icf.c (sem_variable::equals): Compare variables types.
21910 2015-03-05 Richard Henderson <rth@redhat.com>
21913 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
21914 correctly check weak symbol binding.
21916 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
21918 PR middle-end/65315
21919 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
21922 2015-03-05 Martin Liska <mliska@suse.cz>
21924 * ipa-inline.c (inline_small_functions): Set default value to
21925 prevent warning during bootstrap.
21926 * tree.h: Add pragma guard that ignores false positives during
21929 2015-03-05 Richard Biener <rguenther@suse.de>
21931 PR tree-optimization/65310
21932 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
21933 Properly preserve alignment of the base of the access.
21935 2015-03-05 Richard Biener <rguenther@suse.de>
21938 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
21939 Compare dependence info.
21941 2015-03-05 Richard Biener <rguenther@suse.de>
21943 PR middle-end/65233
21944 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
21946 (walk_ssa_copies): Revert last chage. Instead do not walk
21947 SSA names registered for SSA update.
21949 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
21952 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
21953 vtable references for their containing type.
21954 (sem_function::equals_wpa): Compare TYPE_RESTRICT
21955 and type attributes.
21957 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
21959 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
21960 before negating it.
21961 * stor-layout.c (finalize_record_size): Revert latest change.
21963 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
21965 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
21967 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
21969 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
21970 for correct comdat handling.
21971 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
21973 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
21974 (used_from_object_file_p_worker): Remove.
21975 (cgraph_node::only_called_directly_or_alised): Add
21976 used_from_object_file_p.
21977 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
21978 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
21979 can_remove_if_no_direct_calls_and_refs_p.
21981 2015-03-04 Nick Clifton <nickc@redhat.com>
21983 * config/rl78/rl78.h (enum reg_class): Remove real registers from
21984 General register class.
21985 * config/rl78/rl78-real.md: Replace general register constraints
21986 with real+virtual register constraints.
21988 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21990 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
21991 from checking for -mhtm option.
21993 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
21995 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
21996 (struct ipa_sra_check_caller_data): Add has_thunk field.
21997 (ipa_sra_check_caller): Check for thunk.
21998 (ipa_sra_preliminary_function_checks): Give up on function with
22000 (ipa_early_sra): Use call_for_symbol_and_aliases.
22002 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
22005 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
22006 called for __stack_chk_guard symbol.
22008 2015-03-03 DJ Delorie <dj@redhat.com>
22010 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
22012 (*addhi3_real): Likewise.
22013 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
22014 pattern to match incrementing memory.
22015 * config/rl78/predicates.md (rl78_1_2_operand): New.
22016 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
22017 it's the same and only mem.
22018 (rl78_alloc_physical_registers_op2): If there's effectively only
22019 one MEM, transcode it into HL.
22020 (rl78_far_p): Reject addresses that aren't legitimate.
22022 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
22024 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
22027 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
22029 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
22031 Implement call0 ABI for xtensa
22032 * config/xtensa/constraints.md ("a" constraint): Include stack
22033 pointer in case of call0 ABI.
22034 ("q" constraint): Make empty in case of call0 ABI.
22035 ("D" constraint): Include stack pointer in case of call0 ABI.
22036 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
22037 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
22039 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
22041 (xtensa_regno_to_class): Make it a local variable in the
22042 function xtensa_regno_to_class.
22043 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
22044 macro, function prototype and implementation.
22045 (reg_nonleaf_alloc_order): Make it a local variable in the
22046 function order_regs_for_local_alloc.
22047 (xtensa_conditional_register_usage): New function.
22048 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
22049 (xtensa_valid_move): Allow direct moves to stack pointer
22050 register in call0 ABI.
22051 (xtensa_setup_frame_addresses): Only spill register windows in
22053 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
22054 call0 ABI respectively.
22055 (xtensa_function_arg_1): Only mark a7 register for copying in
22057 (xtensa_call_save_reg): New function.
22058 (compute_frame_size): Add space for callee saved register
22059 storage to the frame size in call0 ABI.
22060 (xtensa_expand_prologue): Generate code to set up stack frame
22061 and save callee-saved registers in call0 ABI.
22062 (xtensa_expand_epilogue): New function.
22063 (xtensa_set_return_address): New function.
22064 (xtensa_return_addr): Calculate return address in call0 ABI.
22065 (xtensa_builtin_saveregs): Only mark a7 register for copying and
22066 emit copying code in windowed ABI.
22067 (order_regs_for_local_alloc): Add preferred register allocation
22068 order for non-leaf function in call0 ABI.
22069 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
22070 (xtensa_asm_trampoline_template): Add trampoline generation for
22072 (xtensa_trampoline_init): Add trampoline initialization for
22074 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
22076 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
22077 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
22078 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
22079 ABI call-used registers.
22080 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
22081 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
22083 (REG_CLASS_CONTENTS): Include all registers into the preferred
22084 reload registers set, adjust the set in the
22085 xtensa_conditional_register_usage.
22086 (xtensa_regno_to_class): Drop variable declaration.
22087 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
22089 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
22091 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
22092 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
22093 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
22094 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
22095 location in call0 ABI.
22096 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
22097 stack adjustment size when handling exception.
22098 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
22099 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
22101 ("return" pattern): Generate ret.n/ret in call0 ABI.
22102 ("epilogue" pattern): Expand epilogue.
22103 ("nonlocal_goto" pattern): Use default in call0 ABI.
22104 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
22105 emit eh_set_a0_* depending on ABI.
22106 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
22107 ("eh_set_a0_call0", "blockage"): New patterns.
22109 2015-03-03 Martin Liska <mliska@suse.cz>
22112 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
22114 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
22117 * config/rs6000/rs6000-tables.opt: Regenerate table.
22119 2015-03-03 Renlin Li <renlin.li@arm.com>
22121 * doc/md.texi (@item ^): Change ? into ^.
22123 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
22125 * doc/tm.texi: Regenerated.
22127 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
22129 * builtins.c (expand_builtin_return_addr): Add
22130 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
22131 surrounding #ifdef.
22132 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
22134 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
22136 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
22138 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
22141 2015-03-03 Martin Jambor <mjambor@suse.cz>
22142 Eric Botcazou <ebotcazou@adacore.com>
22144 * tree-sra.c (ipa_sra_check_caller_data): New type.
22145 (has_caller_p): Removed.
22146 (ipa_sra_check_caller): New function.
22147 (ipa_sra_preliminary_function_checks): Use it.
22149 2015-03-03 Martin Liska <mliska@suse.cz>
22151 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
22152 instead of if branch.
22154 2015-03-03 Martin Liska <mliska@suse.cz>
22157 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
22159 2015-03-23 Jeff Law <law@redhat.com>
22161 PR tree-optimization/65241
22162 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
22163 hash table if INSERT is true.
22165 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
22168 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
22170 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
22173 * config/avr/avr.c (context.h, tree-pass.h): Include them.
22174 (avr_pass_data_recompute_notes): New static variable.
22175 (avr_pass_recompute_notes): New class.
22176 (avr_register_passes): New static function.
22177 (avr_option_override): Call it.
22179 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
22181 Fix various problems with specs file generation.
22184 * config.gcc (extra_gcc_objs) [avr]: Remove.
22185 * config/avr/driver-avr.c: Remove file.
22186 * config/avr/t-avr (driver-avr.o): Remove rule.
22187 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
22188 INCLUDES to build. Depend on TM_H.
22189 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
22190 build warnings. Fix non-matching types and non-existing %-codes.
22192 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
22193 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
22194 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
22195 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
22196 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
22197 (LIBGCC_SPEC): Remove definitions.
22199 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
22201 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
22202 to create a register in testing mode.
22204 2015-03-03 Martin Liska <mliska@suse.cz>
22205 Jan Hubicka <hubicka@ucw.cz>
22208 * cgraph.c (cgraph_node::has_thunk_p): New function.
22209 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
22210 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
22211 (sem_function::merge): Assert is changed.
22213 2015-03-03 Martin Liska <mliska@suse.cz>
22214 Martin Jambor <mjambor@suse.cz>
22217 * ipa-icf.c (sem_item_optimizer::execute): Change function
22218 return value to boolean.
22219 (sem_item_optimizer::merge_classes): Likewise.
22220 (ipa_icf_driver): Return TODO_remove_functions in case there's
22221 a merge operation processed.
22222 * ipa-icf.h: Change function return value to boolean.
22224 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22227 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
22228 processor type for 64-bit little endian PowerPC.
22230 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22231 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
22232 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
22233 printing built-in mask so it does not pass NULL pointers.
22235 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
22238 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
22241 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
22242 !ISA_HAS_FP_CONDMOVE.
22244 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
22246 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
22249 2015-03-02 Ulrich Drepper <drepper@gmail.com>
22251 * doc/invoke.texi (Options for Code Generation Conventions):
22252 Fix URL of DSO paper.
22254 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
22257 * ipa-inline.c (check_callers): Looks for recursion.
22258 (inline_to_all_callers): Give up on uninlinable or recursive edges.
22259 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
22260 summary of inline clones.
22261 (do_estimate_growth_1): Fix recursion check.
22263 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
22266 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
22269 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
22270 Aldy Hernandez <aldyh@redhat.com>
22273 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
22274 when checking TYPE_BINFO.
22276 2015-03-02 Richard Biener <rguenther@suse.de>
22279 * ipa-icf-gimple.c: Include builtins.h.
22280 (func_checker::compare_memory_operand): Compare base alignment.
22282 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
22285 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
22286 are never passed by reference.
22288 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
22291 * tree-chkp.c (chkp_check_lower): Don't check against
22292 zero bounds for already instrumented functions.
22293 (chkp_check_upper): Likewise.
22294 (chkp_fini): Clean pass local data to avoid wrong reusage.
22296 2015-02-28 Martin Liska <mliska@suse.cz>
22297 Jan Hubicka <hubicka@ucw.cz>
22299 * ipa-icf.c (sem_variable::equals): Improve debug output;
22300 get variable constructor.
22301 (sem_variable::parse): Do not filter out too early; give up on
22302 volatile and register vars.
22303 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
22305 * ipa-icf.h (sem_variable::init): Do not set ctor.
22306 (sem_variable::ctor): Remove.
22308 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
22310 PR middle-end/65233
22311 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
22313 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22315 * ipa-icf.c: Include stor-layout.h
22316 (sem_function::compare_cgraph_references): Rename to ...
22317 (sem_item::compare_cgraph_references): ... this one.
22318 (sem_variable::equals_wpa): New function
22319 (sem_variable::equals): Do not check stuff already verified by
22321 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
22322 * ipa-icf.h (sem_item): Add compare_cgraph_references.
22323 (sem_function): Remove compare_cgraph_references.
22324 (sem_variable): Turns equals_wpa into non-inline.
22326 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22328 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
22329 (sem_item::add_expr): New function.
22330 (sem_function::hash_stmt): Handle operands of most statements.
22331 (sem_variable::get_hash): Hash the actual constructor.
22332 * ipa-icf.h (sem_item): Add add_expr.
22333 (sem_function): Update prototype of hash_stmt
22335 2015-02-28 Martin Liska <mliska@suse.cz>
22336 Jan Hubicka <hubicka@ucw.cz>
22339 * ipa-icf-gimple.c (func_checker::compare_function_decl):
22341 (func_checker::compare_variable_decl): Skip symtab vars.
22342 (func_checker::compare_cst_or_decl): Update.
22343 * ipa-icf.c (sem_function::parse): Do not consider aliases.
22344 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
22345 use correct symtab predicates.
22346 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
22347 (sem_variable::parse): Update comment.
22348 (sem_item_optimizer::build_graph): Consider ultimate aliases
22351 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22353 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
22356 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22358 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
22359 (sem_variable::merge) Likewise.
22361 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22363 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
22364 target; also match flag_ipa_devirt.
22366 2015-03-01 Martin Liska <mliska@suse.cz>
22367 Jan Hubicka <hubicka@ucw.cz>
22369 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
22370 Validate variable alignment.
22371 * ipa-icf.c (sem_function::equals_private): Be more precise
22372 about non-common function attributes.
22373 (sem_variable::equals): Likewise.
22375 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22378 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
22379 across COMDAT group boundary.
22381 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22384 * ipa-icf.c (clear_decl_rtl): New function.
22385 (sem_function::merge): Clear RTL before forming alias.
22386 (sem_variable::merge): Clear RTL before forming alias.
22388 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
22391 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
22393 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
22395 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
22398 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
22400 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
22401 a typo in the description.
22403 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
22406 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
22407 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
22408 * lra-constraints.c: Include "params.h".
22409 (EBB_PROBABILITY_CUTOFF): Use
22410 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
22411 (lra_inheritance): Use '<' instead of '<=' for
22412 EBB_PROBABILITY_CUTOFF.
22413 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
22416 2015-02-27 Martin Liska <mliska@suse.cz>
22418 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
22419 vector length condition.
22421 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
22423 * doc/extend.texi (x86 transactional memory intrinsics):
22424 Reorganize discussion of _xbegin. Clarify that the return
22425 value is a bit mask. Expand example and move to end of section.
22427 2015-02-26 Jakub Jelinek <jakub@redhat.com>
22428 Aldy Hernandez <aldyh@redhat.com>
22430 PR rtl-optimization/65220
22431 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
22433 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
22436 * lra-remat.c (update_scratch_ops): New.
22437 (do_remat): Call it.
22438 * lra.c (lra_register_new_scratch_op): New. Take code from ...
22439 (remove_scratches): ... here.
22440 * lra-int.h (lra_register_new_scratch_op): New prototype.
22442 2015-02-27 Marek Polacek <polacek@redhat.com>
22445 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
22446 -Wformat-signedness anymore.
22448 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22450 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
22452 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
22454 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22456 * config/s390/s390.c (enum s390_builtin):
22457 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
22458 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
22459 (s390_init_builtins): Generate new builtin functions.
22460 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
22461 (s390_sfpc, s390_efpc): New pattern definitions.
22463 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22465 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
22466 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
22467 (s390_builtin_decls): New array.
22468 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
22469 (s390_builtin_decl): New function.
22470 (TARGET_BUILTIN_DECL): Define macro.
22472 2015-02-27 Richard Biener <rguenther@suse.de>
22474 PR middle-end/63175
22475 * builtins.c (get_object_alignment_2): Make sure to re-apply
22476 the ANDed mask after recursing to its operand gets us a new
22477 misalignment bit position.
22479 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
22480 Martin Liska <mliska@suse.cz>
22483 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
22484 Use address_matters_p.
22485 (redirect_all_callers, set_addressable): New functions.
22486 (sem_function::merge): Reorganize and fix merging issues.
22487 (sem_variable::merge): Likewise.
22488 (sem_variable::compare_sections): Remove.
22489 * common.opt (fmerge-all-constants, fmerge-constants): Remove
22491 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
22493 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
22495 (address_matters_1): New function.
22496 (symtab_node::address_matters_p): New function.
22497 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
22498 check for merged flag.
22499 * cgraph.h (address_matters_p): Declare.
22500 (symtab_node::address_taken_from_non_vtable_p): Remove.
22501 (symtab_node::address_can_be_compared_p): New method.
22502 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
22503 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
22505 (comdat_can_be_unshared_p_1) Use address_matters_p.
22506 (update_vtable_references): Fix formating.
22507 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
22508 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
22509 * cgraphclones.c: Preserve merged and icf_merged flags.
22511 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
22513 * doc/extend.texi (Function Attributes): Fix spelling and typos.
22514 (Label Attributes): Likewise.
22515 (Cilk Plus Builtins): Likewise.
22516 (ARC SIMD Built-in Functions): Likewise.
22517 (ARM C Language Extensions (ACLE)): Likewise.
22518 (PowerPC Built-in Functions): Likewise.
22519 (PowerPC Hardware Transactional Memory Built-in Functions):
22522 2015-02-26 Jakub Jelinek <jakub@redhat.com>
22524 PR tree-optimization/65216
22525 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
22526 new stmt and new SSA_NAME for lhs whenever the arguments have
22527 changed and weren't just swapped. Fix comment typo.
22529 PR tree-optimization/65215
22530 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
22531 for PDP endian targets.
22532 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
22533 Fix up formatting issues.
22534 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
22535 size is smaller than the original, adjust MEM_REF offset by the
22536 difference of sizes. Use is_gimple_mem_ref_addr instead of
22537 is_gimple_min_invariant test to avoid adding address temporaries.
22539 2015-02-26 Martin Liska <mliska@suse.cz>
22540 Jan Hubicka <hubicka@ucw.cz>
22543 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
22544 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
22545 (sem_item_optimizer::process_cong_reduction): Include division by
22546 sensitive references.
22547 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
22548 * ipa-ref.c (ipa_ref::address_matters_p): New function.
22549 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
22551 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
22554 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
22556 * config/avr/avr.c: Same.
22557 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
22558 Refuse any constant address not in 0..0xbf.
22559 * config/avr/avr.md (*mov<mode>, *movsf): Remove
22560 tiny_valid_direct_memory_access_range from insn conditions.
22561 (mov<mode>): Don't special-case expansion of avrtiny addresses.
22563 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
22566 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
22567 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
22568 * config/sh/predicates.md (const_logical_operand): New predicate.
22569 * config/sh/sh.md: Add new peephole2 patterns.
22571 2015-02-26 Marek Polacek <polacek@redhat.com>
22574 * ipa-inline.c (early_inliner): Recompute inline parameters.
22576 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22579 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
22580 instructions with TImode operands are included in the analysis.
22582 2015-02-26 Sebastian Pop <s.pop@samsung.com>
22584 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
22585 of an EDGE_FSM_THREAD.
22587 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
22589 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
22591 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
22594 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
22596 2015-02-26 Sebastian Pop <s.pop@samsung.com>
22598 PR tree-optimization/65048
22599 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
22600 (thread_through_all_blocks): Call valid_jump_thread_path.
22601 Remove invalid FSM jump-thread paths.
22603 2015-02-26 Jakub Jelinek <jakub@redhat.com>
22605 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
22606 (ipa_write_optimization_summaries): Likewise.
22607 * tree-streamer.h: Include data-streamer.h.
22608 (streamer_mode_table): Declare extern variable.
22609 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
22610 * lto-streamer-out.c (lto_output_init_mode_table,
22611 lto_write_mode_table): New functions.
22612 (produce_asm_for_decls): Call lto_write_mode_table when streaming
22614 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
22615 (lto_create_simple_input_block): Add mode_table argument to the
22616 lto_input_block constructors.
22617 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
22619 * data-streamer-in.c (string_for_index): Likewise.
22620 * ipa-inline-analysis.c (inline_read_section): Likewise.
22621 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
22622 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
22623 * lto-streamer-in.c (lto_read_body_or_constructor,
22624 lto_input_toplevel_asms): Likewise.
22625 (lto_input_mode_table): New function.
22626 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
22627 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
22628 Use bp_pack_machine_mode.
22629 * real.h (struct real_format): Add name field.
22630 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
22631 (class lto_input_block): Add mode_table member.
22632 (lto_input_block::lto_input_block): Add mode_table_ argument,
22633 initialize mode_table.
22634 (struct lto_file_decl_data): Add mode_table field.
22635 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
22636 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
22637 unpack_ts_decl_common_value_fields,
22638 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
22639 * tree-streamer.c (streamer_mode_table): New variable.
22640 * real.c (ieee_single_format, mips_single_format,
22641 motorola_single_format, spu_single_format, ieee_double_format,
22642 mips_double_format, motorola_double_format,
22643 ieee_extended_motorola_format, ieee_extended_intel_96_format,
22644 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
22645 ibm_extended_format, mips_extended_format, ieee_quad_format,
22646 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
22647 decimal_single_format, decimal_double_format, decimal_quad_format,
22648 ieee_half_format, arm_half_format, real_internal_format): Add name
22650 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
22652 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
22655 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
22656 reordering for selective scheduling.
22658 2015-02-26 Terry Guo <terry.guo@arm.com>
22660 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
22661 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
22662 (arm_arch_no_volatile_ce): Declare new global variable.
22663 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
22664 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
22665 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
22666 (TARGET_NO_VOLATILE_CE): New macro.
22667 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
22668 volatile memory access in IT block
22670 2015-02-25 Kai Tietz <ktietz@redhat.com>
22672 PR tree-optimization/61917
22673 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
22674 that reduc_def_stmt is null.
22676 2015-02-25 Martin Liska <mliska@suse.cz>
22678 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
22679 hard register variables.
22681 2015-02-25 Kai Tietz <ktietz@redhat.com>
22684 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
22685 (symtab::noninterposable_alias): Likewise.
22687 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
22690 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
22692 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
22694 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
22697 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
22698 as split condition; force split via '#' in output pattern.
22700 2015-02-25 Richard Biener <rguenther@suse.de>
22701 Kai Tietz <ktietz@redhat.com>
22703 PR tree-optimization/61917
22704 * tree-vect-loop.c (vectorizable_reduction): Allow
22705 vect_internal_def without reduction to exit graceful.
22707 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
22710 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
22711 only with NONDEBUG_INSN_P.
22713 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
22715 Use variadic macros with avr-log.c.
22717 * config/avr/avr-protos.h (avr_vdump): New prototype.
22718 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
22719 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
22720 * config/avr/avr-log.c: Adjust comments.
22721 (avr_vdump): New function.
22722 (avr_vadump): Pass caller as 2nd argument instead of format string.
22723 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
22724 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
22726 2015-02-25 Jakub Jelinek <jakub@redhat.com>
22729 * target.def (target_option_stream_in): New target hook.
22730 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
22731 targetm.target_option.post_stream_in if non-NULL.
22732 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
22733 * doc/tm.texi: Updated.
22734 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
22736 (TARGET_OPTION_POST_STREAM_IN): Redefine.
22738 2015-02-24 Jeff Law <law@redhat.com>
22741 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
22742 of operand 0 and operand 2.
22743 (zero_cost_loop_end, loop_end): Similarly.
22745 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
22747 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
22750 2015-02-24 DJ Delorie <dj@redhat.com>
22752 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
22753 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
22754 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
22755 instead of hardcoding SImode.
22757 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
22759 * omp-low.c (create_omp_child_function): Tag entrypoint
22760 functions with a special attribute.
22762 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
22765 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
22767 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
22769 PR rtl-optimization/65123
22770 * lra-remat.c (operand_to_remat): Check hard regs in insn
22773 2015-02-24 Nick Clifton <nickc@redhat.com>
22775 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
22778 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
22781 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
22782 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
22783 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
22784 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
22785 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
22786 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
22787 (BUILT_IN_GOACC_PARALLEL): Specify as
22788 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
22789 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
22790 * builtin-types.def
22791 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
22792 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
22793 Remove function types.
22794 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
22795 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
22796 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
22797 New function types.
22799 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
22801 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
22803 2015-02-24 Jakub Jelinek <jakub@redhat.com>
22805 PR tree-optimization/65170
22806 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
22807 if val[1] < 0, clear also val[2] and return 3.
22809 2015-02-24 Alan Modra <amodra@gmail.com>
22812 * config/rs6000/rs6000.c (get_memref_parts): Only return true
22813 when *base is a reg. Handle nested plus addresses. Simplify
22816 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
22818 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
22819 use natural alignment when optimizing for size.
22821 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
22824 * config/sh/sh.md (movsicc_true+3): Remove peephole.
22825 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
22826 * config/sh/sh.c (replace_n_hard_rtx): Remove.
22828 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
22831 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
22832 too big for a wide_int. Implement missing wrapping operation.
22834 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
22837 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
22838 instead of const_int 4294901760.
22840 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
22842 * config/avr/t-avr: Fix typo in comment.
22844 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
22846 * doc/rtl.texi (fma): Clarify documentation.
22848 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
22851 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
22852 over input_location.
22854 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
22856 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
22857 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
22858 restrict alignments to absolute_biggest_alignment.
22859 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
22861 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
22862 * doc/tm.texi: Regenerate.
22863 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
22865 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
22868 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
22870 2015-02-20 Richard Biener <rguenther@suse.de>
22872 PR tree-optimization/65136
22873 * tree-ssa-propagate.c: Include cfgloop.h.
22874 (replace_phi_args_in): Avoid replacing loop latch edge PHI
22875 arguments with constants.
22877 2015-02-20 Jakub Jelinek <jakub@redhat.com>
22878 Martin Liska <mliska@suse.cz>
22881 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
22882 don't try to create_thunk if stdarg_p. If
22883 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
22884 redirect_callers if possible.
22885 (sem_item_optimizer::execute): Call unregister_hooks here...
22886 (ipa_icf_driver): ... instead of here.
22888 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22890 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
22891 Mark operand 0 as earlyclobber in 2nd alternative.
22892 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
22893 Write negated shift amount into QI lowpart operand 0 and use it
22895 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
22897 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
22899 * cgraph.h (clone_function_name_1): Declare.
22900 * cgraphclones.c (clone_function_name_1): New function.
22901 (clone_function_name): Use it.
22902 * lto-partition.c: Include "stringpool.h".
22903 (must_not_rename, maybe_rewrite_identifier)
22904 (validize_symbol_for_target): New static functions.
22905 (privatize_symbol_name): Use must_not_rename.
22906 (promote_symbol): Call validize_symbol_for_target.
22907 (lto_promote_cross_file_statics): Likewise.
22908 (lto_promote_statics_nonwpa): Likewise.
22910 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
22913 * config/avr/avr.md (pushhi_insn): New insn.
22914 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
22916 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
22917 Jakub Jelinek <jakub@redhat.com>
22919 * tree-streamer.c (preload_common_nodes): Don't preload
22920 TI_VA_LIST* for offloading.
22921 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
22924 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
22926 * config/pa/pa.c (pa_emit_move_sequence): Always force
22927 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
22930 * config/pa/pa.c (pa_reloc_rw_mask): New function.
22931 (TARGET_ASM_RELOC_RW_MASK): Define.
22932 (pa_cannot_force_const_mem): Revert previous change.
22934 2015-02-19 Martin Jambor <mjmabor@suse.cz>
22935 Jan Hubicka <hubicka@ucw.cz>
22938 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
22939 across jump functions.
22941 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
22943 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
22945 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
22947 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
22949 2015-02-19 Richard Henderson <rth@redhat.com>
22951 PR middle-end/65074
22952 * varasm.c (default_binds_local_p_2): Don't test node->definition;
22953 test DECL_EXTERNAL independent of symtab_node.
22955 2015-02-19 Jakub Jelinek <jakub@redhat.com>
22958 * varpool.c (varpool_node::get_constructor): Return early
22959 if this->lto_file_data is NULL.
22961 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22963 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
22964 (rank_for_schedule_debug): Update.
22965 (ready_sort): Make static. Move sorting logic to ...
22966 (ready_sort_debug, ready_sort_real): New static functions.
22967 (schedule_block): Sort both debug insns and real insns in preparation
22968 for ready list trimming. Improve debug output.
22969 * sched-int.h (ready_sort): Remove global declaration.
22971 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
22973 * ipa-icf.c (sem_function::equals_private): Adjust.
22974 (sem_function::bb_dict_test): Take a vec<int> * instead of
22976 * ipa-icf.h (bb_dict_test): Likewise.
22978 2015-02-18 Jakub Jelinek <jakub@redhat.com>
22980 PR gcov-profile/64634
22981 * tree-eh.c (frob_into_branch_around): Fix up typos
22982 in function comment.
22983 (lower_catch): Put eh_seq resulting from EH lowering of
22984 the cleanup sequence after the cleanup rather than before it.
22986 2015-02-18 Tom de Vries <tom@codesourcery.com>
22988 * common.opt (fstdarg-opt): New option.
22989 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
22990 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
22991 (@item -fstdarg-opt): New item.
22993 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
22996 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
22997 for common symbols.
22999 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23001 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
23003 (ALL_HOST_OBJS): Add mkoffload.o.
23004 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
23006 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
23008 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
23009 (compare_virtual_tables): Be smarter about skipping typeinfos;
23010 do sane output on virtual table table mismatch.
23011 (warn_odr): Be ready for forward declarations of enums;
23012 output sane info on base mismatch and virtual table mismatch.
23013 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
23014 when only one type is polymorphic.
23015 (get_odr_type): Fix hashtable corruption.
23016 (dump_odr_type): Dump mangled names.
23018 2015-02-18 Richard Biener <rguenther@suse.de>
23020 PR tree-optimization/65063
23021 * tree-predcom.c (determine_unroll_factor): Return 1 if we
23022 have replaced looparound PHIs.
23024 2015-02-18 Martin Liska <mliska@suse.cz>
23026 * lto-streamer.c (lto_streamer_init): Encapsulate
23027 streamer_check_handled_ts_structures with checking macro.
23029 2015-02-18 Jakub Jelinek <jakub@redhat.com>
23032 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
23033 section if !implicit_section.
23034 (cgraph_node::create_version_clone_with_body): Likewise.
23035 * trans-mem.c (ipa_tm_create_version): Likewise.
23037 2015-02-18 Richard Biener <rguenther@suse.de>
23039 PR tree-optimization/62217
23040 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
23043 2015-02-18 Marek Polacek <polacek@redhat.com>
23046 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
23047 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
23048 is in range [-16K, -1]. Don't issue run-time error if
23049 (ptr > ptr + offset).
23051 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
23053 * doc/install.texi (nvptx-*-none): New section.
23054 * doc/invoke.texi (Nvidia PTX Options): Likewise.
23055 * config/nvptx/nvptx.opt: Update.
23057 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
23058 (access_check): New functions, copied from
23059 config/i386/intelmic-mkoffload.c.
23060 (main): For non-installed testing, look in all COMPILER_PATHs for
23063 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
23065 2015-02-18 Andrew Pinski <apinski@cavium.com>
23066 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
23068 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
23069 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
23071 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
23073 * ipa-visibility.c (function_and_variable_visibility): Only
23074 check locality if node is not already local.
23075 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
23076 call_for_symbol_and_aliases instead of
23077 call_for_symbol_thunks_and_aliases.
23078 (ipa_inline): Likewise.
23079 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23080 first walk aliases.
23081 * ipa.c (symbol_table::remove_unreachable_nodes): Use
23082 call_for_symbol_and_aliases.
23083 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
23084 (ipa_propagate_frequency_1): Use it; use opt_for_fn
23085 (ipa_propagate_frequency): Update.
23086 (ipa_profile): Add opt_for_fn gueards.
23088 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
23090 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
23091 * doc/invoke.texi (SH options): Document it.
23092 * config/sh/sh.c (sh_insn_length_adjustment): Check
23093 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
23095 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
23097 * common.opt (fipa-cp-alignment): New.
23098 * ipa-cp.c (ipcp_store_alignment_results): Check
23099 flag_ipa_cp_alignment.
23100 * opts.c (default_options_table): Enable -fipa-cp-alignment for
23102 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
23103 * doc/invoke.texi: Document -fipa-cp-alignment.
23105 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
23108 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
23109 to nil. Adjust comments.
23111 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
23113 * ipa-visibility.c (function_and_variable_visibility): Only
23114 check locality if node is not already local.
23115 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
23116 call_for_symbol_and_aliases instead of
23117 call_for_symbol_thunks_and_aliases.
23118 (ipa_inline): Likewise.
23119 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23120 first walk aliases.
23121 * ipa.c (symbol_table::remove_unreachable_nodes): Use
23122 call_for_symbol_and_aliases.
23123 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
23124 (ipa_propagate_frequency_1): Use it; use opt_for_fn
23125 (ipa_propagate_frequency): Update.
23126 (ipa_profile): Add opt_for_fn guards.
23128 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
23130 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
23131 skipping of "strange" tokens.
23133 2015-02-17 Jeff Law <law@redhat.com>
23135 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
23138 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
23140 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
23141 as forcing a HARD_DEP between instructions, thereby
23142 disallowing rewriting to break dependencies.
23144 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
23146 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
23147 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
23148 variables in boundary that have no inlitalizer encoded and are
23150 * varasm.c (default_binds_local_p_2): External definitions do not
23151 count as definitions here.
23153 2015-02-16 Jeff Law <law@redhat.com>
23155 PR tree-optimization/64823
23156 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
23158 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
23159 threading through blocks with PHIs, but no statements.
23160 (thread_through_normal_block): Distinguish between blocks where
23161 we did not process all the statements and blocks with no statements.
23163 2015-02-16 Jakub Jelinek <jakub@redhat.com>
23164 James Greenhalgh <james.greenhalgh@arm.com>
23167 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
23168 section if not linkonce. Fix up formatting.
23169 (cgraph_node::create_version_clone_with_body): Copy section.
23170 * trans-mem.c (ipa_tm_create_version): Likewise.
23172 2015-02-16 Richard Biener <rguenther@suse.de>
23174 PR tree-optimization/65077
23175 * tree-ssa-structalias.c (get_constraint_for_1): Handle
23176 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
23177 (find_func_aliases): Allow float values to carry pointers again.
23179 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
23181 * doc/install.texi (Specific): Reorder targets list to put
23182 aarch64 in alphabetical order. Add a link to aarch64*-*-*
23185 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
23186 David Edelsohn <dje.gcc@gmail.com>
23189 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
23190 mapping class to external variable or function reference.
23191 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
23194 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
23197 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
23198 ASM_WEAKEN_DECL if defined.
23200 2015-02-16 Richard Biener <rguenther@suse.de>
23203 * varasm.c (default_file_start): For LTO produced units
23204 emit <artificial> as file directive.
23206 2015-02-16 Richard Biener <rguenther@suse.de>
23208 PR tree-optimization/63593
23209 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
23210 stmts and releasing SSA names until...
23211 (execute_pred_commoning): ... after processing all chains.
23213 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
23216 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
23217 external functions.
23219 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
23221 * doc/bugreport.texi: Adjust section titles throughout the file
23222 to use "Title Case".
23223 * doc/extend.texi: Likewise.
23224 * doc/gcov.texi: Likewise.
23225 * doc/implement-c.texi: Likewise.
23226 * doc/implement-cxx.texi: Likewise.
23227 * doc/invoke.texi: Likewise.
23228 * doc/objc.texi: Likewise.
23229 * doc/standards.texi: Likewise.
23230 * doc/trouble.texi: Likewise.
23232 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
23234 * cgraph.h (symtab_node::has_aliases_p): Simplify.
23235 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
23236 * tree.c (lookup_binfo_at_offset): Make static.
23237 (get_binfo_at_offset): Do not shadow offset; add explanatory
23240 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
23242 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
23243 for all floading point loads and stores except those using a register
23245 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
23248 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
23250 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
23251 (do_estimate_growth_1): Record if any uninlinable edge was seen.
23252 (estimate_growth): Handle uninlinable edges correctly.
23253 (check_callers): New.
23254 (growth_likely_positive): Handle aliases correctly.
23256 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
23258 * ipa-chkp.c: Use iterate_direct_aliases.
23259 * symtab.c (resolution_used_from_other_file_p): Move inline.
23260 (symtab_node::create_reference): Fix formating.
23261 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
23262 (symtab_node::iterate_reference): Move inline.
23263 (symtab_node::iterate_referring): Move inline.
23264 (symtab_node::iterate_direct_aliases): Move inline.
23265 (symtab_node::used_from_object_file_p_worker): Inline into ...
23266 (symtab_node::used_from_object_file_p): ... this one; move inline.
23267 (symtab_node::call_for_symbol_and_aliases): Move inline;
23268 use iterate_direct_aliases.
23269 (symtab_node::call_for_symbol_and_aliases_1): New method.
23270 (cgraph_node::call_for_symbol_and_aliases): Move inline;
23271 use iterate_direct_aliases.
23272 (cgraph_node::call_for_symbol_and_aliases_1): New method.
23273 (varpool_node::call_for_node_and_aliases): Rename to ...
23274 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
23275 use iterate_direct_aliases.
23276 (varpool_node::call_for_symbol_and_aliases_1): New method.
23277 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
23278 (ipa_discover_readonly_nonaddressable_var): Update.
23279 * ipa-devirt.c: Fix formating.
23280 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
23282 (cgraph_node::call_for_symbol_and_aliases): Move inline.
23283 (cgraph_node::call_for_symbol_and_aliases_1): New function..
23284 * cgraph.h (used_from_object_file_p_worker): Remove.
23285 (resolution_used_from_other_file_p): Move inline.
23286 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
23287 (symtab_node::iterate_reference): Move inline.
23288 (symtab_node::iterate_referring): Move inline.
23289 (symtab_node::iterate_direct_aliases): Move inline.
23290 (symtab_node::used_from_object_file_p_worker): Inline into ...
23291 (symtab_node::used_from_object_file_p): Move inline.
23292 * tree-emutls.c (ipa_lower_emutls): Update.
23293 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
23294 (varpool_node::call_for_node_and_aliases): Remove.
23296 2015-02-14 Jakub Jelinek <jakub@redhat.com>
23298 PR tree-optimization/62209
23299 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
23300 op == range->exp, insert seq and gimplified code after labels
23301 instead of after the phi.
23303 2015-02-13 Jeff Law <law@redhat.com>
23306 Revert my change for tree-optimization/64823.
23308 2015-02-13 Jakub Jelinek <jakub@redhat.com>
23310 PR tree-optimization/65053
23311 * tree-ssa-phiopt.c (value_replacement): When moving assign before
23312 cond, either reset VR on lhs or set it to phi result VR.
23314 2015-02-13 Jeff Law <law@redhat.com>
23316 PR tree-optimization/64823
23317 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
23318 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
23319 threading through blocks with PHIs, but no statements.
23320 (thread_through_normal_block): Distinguish between blocks where
23321 we did not process all the statements and blocks with no statements.
23323 PR rtl-optimization/47477
23324 * match.pd (convert (plus/minus (convert @0) (convert @1): New
23325 simplifier to narrow arithmetic.
23327 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
23330 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
23331 polymorphic call info when type is not known to be preserved.
23333 2015-02-13 Maritn Jambor <mjambor@suse.cz>
23336 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
23337 (inline_call): Use it.
23339 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
23341 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
23342 GOMP_DEVICE_NVIDIA_PTX.
23344 2015-02-13 Jakub Jelinek <jakub@redhat.com>
23347 * stmt.c (emit_case_nodes): Use void_type_node instead of
23348 NULL_TREE as LABEL_DECL type.
23350 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
23352 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
23354 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
23355 symbolic references to data to be forced to constant memory on the
23358 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
23360 PR tree-optimization/65002
23361 * tree-cfg.c (pass_data_fixup_cfg): Don't update
23363 * tree-sra.c (some_callers_have_no_vuse_p): New.
23364 (ipa_early_sra): Reject functions whose callers
23365 assume function is read only.
23367 2015-02-13 Richard Biener <rguenther@suse.de>
23370 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
23371 for LTO produced CUs.
23373 2015-02-13 Bin Cheng <bin.cheng@arm.com>
23375 PR tree-optimization/64705
23376 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
23377 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
23378 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
23379 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
23380 expand_simple_operations.
23382 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
23383 Richard Henderson <rth@redhat.com>
23386 * cgraphunit.c (cgraph_node::finalize_function): Set definition
23387 before notice_global_symbol.
23388 (varpool_node::finalize_decl): Likewise.
23389 * varasm.c (default_binds_local_p_2): Rename from
23390 default_binds_local_p_1, add weak_dominate argument. Use direct
23391 returns instead of assigning to local variable. Unify varpool and
23392 cgraph paths via symtab_node. Reject undef weak variables before
23393 testing visibility. Reorder tests for simplicity.
23394 (default_binds_local_p): Use default_binds_local_p_2.
23395 (default_binds_local_p_1): Likewise.
23396 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
23398 (default_elf_asm_output_external): Emit visibility when specified.
23400 2015-02-13 Alan Modra <amodra@gmail.com>
23402 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
23403 code setting up r11 for out-of-line fp restore.
23405 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
23407 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
23408 (muser-mode): Likewise.
23410 2015-02-13 Alan Modra <amodra@gmail.com>
23412 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
23413 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
23415 2015-02-12 David Howells <dhowells@redhat.com>
23417 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
23419 * tree-ssa-uninit.c (dump_predicates): Likewise.
23420 * opts.c (print_filtered_help): Likewise.
23422 2015-02-12 Jakub Jelinek <jakub@redhat.com>
23424 * dwarf2out.c (output_die): Use "%s", name instead of name to
23425 avoid -Wformat-security warning.
23427 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
23428 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
23429 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
23430 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
23432 2015-02-12 Jason Merrill <jason@redhat.com>
23434 * common.opt (-flifetime-dse): New.
23436 2015-02-12 Jakub Jelinek <jakub@redhat.com>
23439 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
23441 PR tree-optimization/65014
23442 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
23443 use original second operand of arg0 or arg1 instead of
23444 that adjusted by STRIP_NOPS.
23446 2015-02-11 Jeff Law <law@redhat.com>
23449 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
23450 that needs to be queued, just queue it for a single cycle.
23452 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
23454 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
23455 bodies of thunks; comment on why.
23456 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
23457 symbols are extern.
23459 2015-02-11 Richard Henderson <rth@redhat.com>
23462 * tree-eh.c (mark_reachable_handlers): Mark source and destination
23463 regions of __builtin_eh_copy_values.
23465 2015-02-11 Jakub Jelinek <jakub@redhat.com>
23467 PR middle-end/65003
23468 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
23469 ultimate alias is MEM with SYMBOL_REF satisfying
23470 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
23471 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
23473 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
23475 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
23476 "diagnostic-core.h".
23477 (main): Initialize progname, and call diagnostic_initialize.
23479 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
23480 instead of __OPENMP_TARGET__.
23482 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
23483 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
23484 hard-coding PTX_ID.
23486 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
23488 * doc/sourcebuild.texi (pie_enabled): Document.
23490 2015-02-11 Martin Liska <mliska@suse.cz>
23493 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
23494 a return value for call to a function that is noreturn.
23496 2015-02-11 Richard Biener <rguenther@suse.de>
23499 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
23502 2015-02-11 Andrew Pinski <apinski@cavium.com>
23505 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
23506 Change the first argument type to size_type_node and add another
23508 (aarch64_simd_expand_builtin): Handle the new argument to
23509 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
23510 print an out when the first two arguments are not
23511 nonzero integer constants.
23512 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
23513 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
23515 2015-02-11 Jakub Jelinek <jakub@redhat.com>
23518 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
23519 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
23520 (ix86_set_current_function): Rewritten.
23521 (ix86_add_new_builtins): Temporarily clear current_target_pragma
23522 when creating builtin fndecls.
23524 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
23527 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
23529 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
23530 have no comdat group.
23531 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
23532 (lto_output_varpool_node): Always output alias info.
23533 (output_refs): Output refs of boundary aliases, too.
23534 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
23535 (output_symtab): Output call eges in thunks in boundary.
23536 (get_alias_symbol): Remove.
23537 (input_node, input_varpool_node): Do not special case weakrefs.
23538 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
23539 alias and thunks targets in the boundary; do not take removed symbols
23540 from their comdat groups.
23541 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
23542 (cgraph_node::global_info): Remove.
23543 (cgraph_node::rtl_info): Look through aliases and thunks.
23544 * cgrpah.h (global_info): Remove.
23545 (non_local_p): Remove.
23547 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
23548 Sandra Loosemore <sandra@codesourcery.com>
23550 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
23551 to inline asm. List dialects in proper order.
23553 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
23554 Sandra Loosemore <sandra@codesourcery.com>
23556 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
23558 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
23560 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
23561 modified) reference to Solaris.
23563 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
23565 * doc/extend.texi (Extended Asm): Fix typos.
23567 2015-02-10 Jakub Jelinek <jakub@redhat.com>
23570 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
23572 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
23575 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
23576 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
23577 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
23578 * config/sh/constraints.md (Ara, Add): New constraints.
23579 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
23581 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
23582 atomic_mem_operand_0. Don't use force_reg on the memory address.
23583 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
23584 Sra constraint. Convert to insn_and_split. Add workaround for
23586 (atomic_compare_and_swap<mode>_hard): Copy to
23587 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
23588 Use atomic_mem_operand_0 predicate.
23589 (atomic_compare_and_swap<mode>_soft_gusa,
23590 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
23591 AraAdd constraints.
23592 (atomic_compare_and_swap<mode>_soft_tcb,
23593 atomic_compare_and_swap<mode>_soft_imask,
23594 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
23595 atomic_mem_operand_0 predicate and SraSdd constraints.
23596 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
23598 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
23599 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
23600 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
23601 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
23602 force_reg on the memory address.
23603 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
23604 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
23605 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
23606 atomic_mem_operand_1 predicate and Sra constraint.
23607 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
23608 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
23609 Use atomic_mem_operand_1 predicate.
23610 (atomic_<fetchop_name><mode>_hard): Copy to
23611 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
23612 Use atomic_mem_operand_1 predicate.
23613 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
23614 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
23615 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
23616 insn_and_split. Use atomic_mem_operand_1 predicate.
23617 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
23618 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
23619 Use atomic_mem_operand_1 predicate.
23620 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
23621 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
23622 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
23623 in generated insn with original mem operand before emitting the insn.
23624 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
23625 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
23626 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
23627 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
23628 Use atomic_mem_operand_1 predicate and AraAdd constraints.
23629 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
23630 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
23631 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
23632 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
23633 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
23634 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
23635 atomic_not_fetch<mode>_soft_tcb,
23636 atomic_<fetchop_name>_fetch<mode>_soft_imask,
23637 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
23638 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
23639 Use atomic_mem_operand_1 predicate and SraSdd constraints.
23641 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
23643 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
23644 and 3 earlyclobber operands.
23646 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
23648 * common.opt (fstack-reuse): Mark as optimization.
23650 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
23653 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
23655 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
23657 PR tree-optimization/64326
23658 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
23660 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
23662 PR gcov-profile/61889
23663 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
23665 2015-02-10 Richard Biener <rguenther@suse.de>
23667 PR tree-optimization/64995
23668 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
23669 value we use is final.
23670 (visit_reference_op_store): Always valueize op.
23671 (visit_use): Properly valueize vuses.
23673 2015-02-10 Richard Biener <rguenther@suse.de>
23675 PR tree-optimization/64909
23676 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
23677 pass a scalar-stmt count estimate to the cost model.
23678 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
23680 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
23682 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
23683 enabled by default together with var-tracking.
23685 2015-02-10 Nick Clifton <nickc@redhat.com>
23687 * config/rl78/rl78.c: Remove DIV attribute code accidentally
23688 included in previous rl78 commit.
23690 2015-02-10 Richard Biener <rguenther@suse.de>
23692 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
23693 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
23694 return the bitpack.
23696 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
23698 PR gcov-profile/61889
23699 * config.in: regenerate.
23700 * configure.in: Likewise.
23701 * configure.ac: Check for ftw.h.
23702 * gcov-tool.c: Check for ftw.h before using nftw.
23704 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
23707 * ipa-visibility.c (update_visibility_by_resolution_info): Only
23708 assert when not in lto mode.
23710 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23712 * ira-color.c (setup_left_conflict_sizes_p): Simplify
23713 initialization/assignment of conflict_size.
23715 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
23718 * ipa-cp.c (gather_caller_stats): Skip thunks.
23719 (propagate_constants_topo): Skip aliases.
23721 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
23724 * config/sh/sh.c (sh_option_override): Don't change
23725 -freorder-blocks-and-partition to -freorder-blocks even when
23726 unwinding is enabled.
23727 (sh_can_follow_jump): Return false if the followee jump is
23728 a crossing jump when -freorder-blocks-and-partition is specified.
23729 * config/sh/sh.md (*jump_compact_crossing): New insn.
23731 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
23732 Kaz Kojima <kkojima@gcc.gnu.org>
23735 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
23736 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
23737 (sh_can_redirect_branch): Rename to ...
23738 (sh_can_follow_jump): ... this. Constify argument types.
23739 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
23740 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
23741 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
23742 * doc/tm.texi: Regenerate.
23744 2015-02-09 Jakub Jelinek <jakub@redhat.com>
23747 * builtins.c (expand_builtin): Call targetm.expand_builtin
23748 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
23750 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
23753 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
23755 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
23758 * ipa-icf.c (set_local): New function.
23759 (sem_function::merge): Use it.
23761 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
23763 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
23764 (add_type_duplicate): Fix comparison of BINFOs.
23766 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
23768 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
23769 on getting VOID pointer.
23771 2015-02-09 Jakub Jelinek <jakub@redhat.com>
23774 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
23777 2015-02-09 Richard Biener <rguenther@suse.de>
23779 * genmatch.c (replace_id): Copy expr_type.
23781 2015-02-09 Richard Biener <rguenther@suse.de>
23783 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
23784 (streamer_write_tree_bitfields): Declare.
23785 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
23786 properly unpack padding.
23787 (unpack_value_fields): Inline ...
23788 (streamer_read_tree_bitfields): ... here.
23789 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
23790 and properly add padding bits.
23791 (streamer_pack_tree_bitfields): Fold into ...
23792 (streamer_write_tree_bitfields): ... this new function,
23793 exposing the bitpack object.
23794 * lto-streamer-out.c (lto_write_tree_1): Call
23795 streamer_write_tree_bitfields.
23797 2015-02-09 Richard Biener <rguenther@suse.de>
23799 PR tree-optimization/54000
23800 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
23801 (struct ivopts_data): Add loop_loc member.
23802 (tree_ssa_iv_optimize_loop): Dump loop location.
23803 (create_new_ivs): Likewise, also dump number of IVs generated.
23805 2015-02-09 Martin Liska <mliska@suse.cz>
23807 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
23808 just if not yet registered.
23809 (ipa_icf_generate_summary): Register callgraph hooks.
23811 2015-02-08 Andrew Pinski <apinski@cavium.com>
23813 * config/aarch64/aarch64.c (gty_dummy): Delete.
23815 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
23818 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
23819 (cgraph_node::local_p): Remove thunk related FIXME.
23821 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
23824 * i386.c (ix86_function_regparm): Look through aliases to see if callee
23825 is local and optimized.
23826 (ix86_function_sseregparm): Likewise; also use target's SSE math
23827 settings; error out instead of silently generating wrong code
23829 (init_cumulative_args): Look through aliases.
23831 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
23834 * ipa-split.c (execute_split_functions): Split if function has aliases.
23836 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
23839 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
23840 aliases before trying to expand it.
23841 (cgraph_node::expand_thunk): Fix formating.
23843 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
23845 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
23846 (Using Assembly Language with C): Expand introduction.
23847 (Basic Asm): Copy-edit. Add more information about uses of
23849 (Extended Asm): Copy-edit. Document new escape syntax and
23851 (Global Reg Vars): Copy-edit.
23852 (Local Reg Vars): Likewise.
23854 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
23858 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
23859 (DBX_CONTIN_CHAR): Define.
23861 2015-02-06 Sebastian Pop <s.pop@samsung.com>
23862 Brian Rzycki <b.rzycki@samsung.com>
23864 PR tree-optimization/64878
23865 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
23866 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
23867 Stop recursion at loop phi nodes after having visited a loop phi node.
23869 2015-02-06 Jakub Jelinek <jakub@redhat.com>
23871 * toplev.c (process_options): Change flag_ipa_ra before creating
23872 optimization_{default,current}_node.
23875 * cgraphunit.c (cgraph_node::expand_thunk): If
23876 restype is not is_gimple_reg_type nor the thunk_fndecl
23877 returns aggregate_value_p, set restmp to a temporary variable
23878 instead of resdecl.
23880 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
23882 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
23884 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
23887 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
23888 add a general secondary reload handler for SDmode, unless we have
23889 both read/write support for SDmode.
23891 2015-02-06 Jakub Jelinek <jakub@redhat.com>
23893 PR middle-end/64937
23894 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
23895 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
23896 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
23897 1 before, push it to abstract_vec.
23898 (dwarf2out_abstract_function): Adjust caller. Don't call
23899 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
23900 DECL_ABSTRACT_P flags for all abstract_vec elts.
23902 2015-02-06 Renlin Li <renlin.li@arm.com>
23904 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
23906 * tree-ssa.c (execute_update_addresses_taken): Likewise.
23908 2015-02-06 Jeff Law <law@redhat.com>
23911 * config/h8300/h8300.c (push): New argument "in_prologue".
23912 Pass "in_prologue" along to "F".
23913 (h8300_push_pop): Corresponding changes.
23914 (h8300_expand_prologue): Likewise.
23915 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
23917 2015-02-06 Jakub Jelinek <jakub@redhat.com>
23919 PR rtl-optimization/64957
23921 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
23922 IOR rather than for AND.
23924 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
23927 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
23928 of shift-add and (add + shift) operations. Rename local variable.
23930 2015-02-05 Jeff Law <law@redhat.com>
23933 * config/h8300/constraints.md (U): Correctly dectect
23934 "eightbit_data" memory addresses.
23935 * config/h8300/h8300.c (eightbit_constant_address_p): Also
23936 handle (const (plus (symbol_ref (x)))) where x is declared
23937 as an 8-bit data memory address.
23938 * config/h8300/h8300.md (call, call_value): Correctly detect
23939 "funcvec" functions.
23942 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
23943 24 to 28 bits for the H8/300.
23945 2015-02-06 Alan Modra <amodra@gmail.com>
23948 * config/rs6000/rs6000.c (chain_already_loaded): New function.
23949 (rs6000_call_aix): Use it.
23951 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
23953 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
23956 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
23958 * config/h8300/constraints.md ("U" constraint): Use strict
23959 variant of REG_OK_FOR_BASE_P after reload has started.
23961 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
23963 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
23964 define to zero if !TARGET_NEON.
23965 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
23967 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23968 Trevor Saunders <tsaunders@mozilla.com>
23971 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
23973 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23976 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
23977 when removing varpool nodes.
23979 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23982 * varpool.c (varpool_node::remove): Fix order of variables.
23984 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23987 * ipa-inline.c (inline_small_functions): Fix ordering issue between
23988 speculation resolution and key updates.
23990 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23992 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
23993 about not letting any speculative edges unupdated.
23995 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
23998 * gcov-io.c (gcov_var): Export.
24000 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24002 PR middle-end/64922
24003 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
24004 edges that become speculative.
24006 2015-02-04 Jakub Jelinek <jakub@redhat.com>
24008 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
24009 or DW_LANG_Fortran08.
24010 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
24012 (gen_compile_unit_die): Handle "GNU Fortran2003" and
24013 "GNU Fortran2008" language strings.
24014 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
24015 * langhooks.h (lang_GNU_Fortran): New prototype.
24016 * langhooks.c (lang_GNU_Fortran): New function.
24017 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
24020 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
24022 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
24023 (RTX_OK_FOR_OLO10_P): Likewise.
24025 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
24027 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
24029 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
24031 PR middle-end/64922
24032 * gimple.c: Include gimple-ssa.h.
24033 (maybe_remove_unused_call_args): New function.
24034 * gimple.h (maybe_remove_unused_call_args): Declare.
24035 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
24036 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
24037 * gimple-fold.c (gimple_fold_call): Likewise.
24039 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
24041 PR rtl-optimization/64905
24042 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
24043 pointer alignment if it isn't needed.
24045 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
24047 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
24048 cortex-a72.cortex-a53.
24049 * config/aarch64/aarch64-tune.md: Regenerate.
24050 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
24052 2015-02-04 Nick Clifton <nickc@redhat.com>
24054 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
24057 2015-02-04 Jakub Jelinek <jakub@redhat.com>
24059 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
24060 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
24061 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
24063 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
24064 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
24065 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
24066 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
24067 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
24068 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
24069 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
24070 * tree-core.h (enum built_in_function): In between
24071 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
24072 for builtins that use DEF_BUILTIN_CHKP macro.
24074 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
24077 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
24078 operands for tcc_comparison exprs. Fix typos.
24081 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
24082 of two XORs that have an intervening AND or IOR.
24085 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
24086 simplification of XOR of AND to not allocate new rtx before
24087 committing to a simplification.
24089 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24091 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
24092 manual swaps in all peepholes.
24094 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24096 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
24097 of manual swapping implementation.
24098 (aarch64_expand_vec_perm_const_1): Likewise.
24100 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
24102 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
24103 (generic_addrcost_table): Remove NAMED_PARAM.
24104 (cortexa57_addrcost_table): Likewise.
24105 (xgene1_addrcost_table): Likewise.
24106 (generic_regmove_table): Likewise.
24107 (cortexa53_regmove_table): Likewise.
24108 (xgene1_regmove_table): Likewise.
24109 (generic_vector_table): Likewise.
24110 (cortexa57_vector_table): Likewise.
24111 (xgene1_vector_table): Likewise.
24112 (generic_tunings): Likewise.
24113 (cortexa53_tunings): Likewise.
24114 (cortexa57_tunings): Likewise.
24115 (xgene1_tunings): Likewise.
24117 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
24119 * config/arm/arm-cores.def: Add cortex-a72 and
24120 cortex-a72.cortex-a53.
24121 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
24122 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
24123 * config/arm/arm-tune.md: Regenerate.
24124 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
24125 "cortex-a72.cortex-a53".
24126 * doc/invoke.texi (ARM Options/-mtune): Likewise.
24128 2015-02-04 Nick Clifton <nickc@redhat.com>
24131 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
24133 (nonimmediate_di_operand): Likewise.
24135 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
24136 prefixes of known F5 using MSP430 MCUs.
24138 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24140 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
24141 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
24142 instead of __builtin_sqrt.
24144 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
24146 * varasm.c (do_assemble_alias): Follow transparent alias
24148 (default_assemble_visibility): Follow transparent alias
24149 chain for decl name.
24151 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
24153 PR middle-end/62103
24154 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
24155 to compute size of referenced value in the constant case.
24157 2015-02-03 Jakub Jelinek <jakub@redhat.com>
24159 PR rtl-optimization/64756
24160 * cse.c (invalidate_dest): New function.
24161 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
24162 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
24163 invalidate and do not record it.
24165 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
24168 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
24169 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
24170 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
24171 atomic_nand<mode>_soft_tcb): New insns.
24172 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
24173 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
24174 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
24175 Split into atomic_not_fetchsi_hard if operands[0] is unused.
24176 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
24177 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
24178 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
24179 atomic_not<mode>_hard if operands[0] is unused.
24180 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
24181 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
24182 if operands[0] is unused.
24183 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
24184 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
24185 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
24186 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
24188 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
24189 into atomic_not<mode>_soft_tcb if operands[0] is unused.
24190 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
24191 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
24192 if operands[0] is unused.
24193 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
24194 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
24195 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
24196 atomic_nand_fetchsi_hard if operands[0] is unused.
24197 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
24198 atomic_nand<mode>_hard if operands[0] is unused.
24199 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
24200 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
24201 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
24202 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
24203 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
24204 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
24205 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
24206 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
24207 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
24208 atomic_not<mode>_hard if operands[0] is unused.
24209 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
24210 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
24212 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
24213 into atomic_not<mode>_soft_tcb if operands[0] is unused.
24214 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
24215 atomic_nand<mode>_hard if operands[0] is unused.
24216 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
24217 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
24219 2015-02-03 David Malcolm <dmalcolm@redhat.com>
24222 * Makefile.in (GCC_OBJS): Add gcc-main.o.
24223 * gcc-main.c: New file, containing "main" taken from gcc.c.
24224 * gcc.c (do_self_spec): Free decoded_options.
24225 (class driver): Move declaration to gcc.h.
24226 (main): Move declaration and implementation to new file
24228 (driver_get_configure_time_options): New function.
24229 * gcc.h (class driver): Move this declaration here, from
24231 (driver_get_configure_time_options): New declaration.
24233 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
24235 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
24236 cross-module inlining.
24237 * cgraph.h (cgraph_node): Add flag merged.
24238 * ipa-icf.c (sem_function::merge): Maintain it.
24240 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
24242 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
24243 instead of OBJECT_P.
24245 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
24248 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
24249 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
24250 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
24251 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
24253 2015-02-03 Jakub Jelinek <jakub@redhat.com>
24256 * combine.c (reg_n_sets_max): New variable.
24257 (can_change_dest_mode, reg_nonzero_bits_for_combine,
24258 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
24259 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
24260 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
24261 (rest_of_handle_combine): Initialize reg_n_sets_max.
24263 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
24265 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
24266 if some always_inline was inlined, apply changes before inlining
24269 2015-02-02 David Malcolm <dmalcolm@redhat.com>
24272 * config/arm/arm.c (arm_option_override): Set
24273 arm_selected_arch/cpu/tune to NULL on entry.
24275 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
24276 Andrew Pinski <pinskia@gcc.gnu.org>
24277 Jakub Jelinek <jakub@gcc.gnu.org>
24280 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
24281 integer typing for small model. Use IN_RANGE.
24283 2015-02-02 Richard Biener <rguenther@suse.de>
24285 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
24286 * tree-vrp.c (vrp_valueize_1): Likewise.
24288 2015-02-02 Alan Modra <amodra@gmail.com>
24290 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
24291 than mem for toc_restore.
24292 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
24293 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
24294 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
24296 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
24299 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
24300 explicit default options.
24302 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
24305 * ipa-utils.c (ipa_merge_profiles): Add release argument.
24306 * ipa-icf.c (sem_function::merge): Do not release body when merging.
24307 * ipa-utils.h (ipa_merge_profiles): Update prototype.
24309 2015-02-01 Jakub Jelinek <jakub@redhat.com>
24312 * cfgexpand.c (deep_ter_debug_map): New variable.
24313 (avoid_deep_ter_for_debug): New function.
24314 (expand_debug_expr): If TERed SSA_NAME is in
24315 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
24316 instead of trying to expand SSA_NAME's def stmt.
24317 (expand_debug_locations): When expanding debug bind
24318 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
24319 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
24321 (pass_expand::execute): Call avoid_deep_ter_for_debug on
24322 all debug bind stmts. Delete deep_ter_debug_map after
24323 expand_debug_location if non-NULL and clear it.
24325 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
24328 * config/sh/sync.md (atomic_fetch_notsi_hard,
24329 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
24330 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
24331 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
24332 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
24333 atomic_not_fetch<mode>_soft_imask): New insns.
24335 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24337 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
24338 (rank_for_schedule_debug): Split from ...
24339 (rank_for_schedule): ... this.
24340 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
24341 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
24343 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
24345 * doc/md.texi (Machine Constraints): Alphabetize table by target.
24346 * doc/extend.texi (x86 Variable Attributes): Move section to
24347 correct alphabetization after renaming.
24348 (x86 Type Attributes): Likewise.
24349 (Target Builtins): Re-alphabetize menu.
24350 (x86 Built-in Functions): Move section to correct alphabetization
24352 (x86 transactional memory intrinsics): Likewise.
24353 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
24354 and x86 Windows Options in table and menu.
24355 (x86 Options): Move section to correct alphabetization after
24357 (x86 Windows Options): Likewise.
24359 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
24361 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
24362 preferred names of the architecture and its 32- and 64-bit
24364 * doc/invoke.texi: Likewise.
24365 * doc/md.texi: Likewise.
24367 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
24370 * config/i386/predicates.md (address_no_seg_operand): Reject
24371 non-CONST_INT_P operands in invalid mode.
24373 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
24375 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
24376 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
24377 * config/i386/predicates.md (address_no_seg_operand): Call
24378 address_operand with VOIDmode.
24379 (vsib_address_operand): Ditto.
24380 (address_mpx_no_base_operand): Ditto.
24381 (address_mpx_no_index_operand): Ditto.
24383 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
24386 * lra-constraints.c (original_subreg_reg_mode): New.
24387 (simplify_operand_subreg): Try to simplify subreg of const. Use
24388 original_subreg_reg_mode for it.
24389 (swap_operands): Update original_subreg_reg_mode.
24390 (curr_insn_transform): Set up original_subreg_reg_mode.
24392 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
24395 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
24397 (process_alt_operands): Use it.
24398 (curr_insn_transform): Check the optional reload pseudo class is
24401 2015-01-30 Joseph Myers <joseph@codesourcery.com>
24403 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
24404 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
24406 * toplev.h (init_asm_output): Update comment on use of
24407 UNKNOWN_LOCATION with fatal_error.
24408 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
24409 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
24410 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
24411 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
24412 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
24413 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
24414 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
24415 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
24416 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
24417 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
24418 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
24419 fatal_error changed to pass input_location as first argument.
24421 2015-01-30 Martin Liska <mliska@suse.cz>
24423 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
24424 in #pragma GCC diagnostic guards.
24426 2015-01-30 Richard Biener <rguenther@suse.de>
24428 PR tree-optimization/64829
24429 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
24430 not add a widening conversion pattern but hand off extra
24431 widenings to callers.
24432 (vect_recog_widen_mult_pattern): Handle extra widening produced
24433 by vect_handle_widen_op_by_const.
24434 (vect_recog_widen_shift_pattern): Likewise.
24435 (vect_pattern_recog_1): Remove excess vertical space in dumping.
24436 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
24437 (vect_init_vector_1): Likewise.
24438 (vect_get_vec_def_for_operand): Likewise.
24439 (vect_finish_stmt_generation): Likewise.
24440 (vectorizable_load): Likewise.
24441 (vect_analyze_stmt): Likewise.
24442 (vect_is_simple_use): Likewise.
24444 2015-01-29 Jeff Law <law@redhat.com>
24446 * combine.c (try_combine): Fix typo in comment.
24448 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
24451 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
24452 (rs6000_stack_info): Add assert.
24453 (rs6000_output_savres_externs): New function, split off from...
24454 (rs6000_output_function_prologue): ... here. Do not call it for
24457 2015-01-29 Jeff Law <law@redhat.com>
24460 * combine.c (try_combine): If I0 is a memory load and I3 a store
24461 to a related address, increase the "goodness" of doing a 4-insn
24462 combination with I0-I3.
24463 (make_field_assignment): Handle SUBREGs in the ior+and case.
24465 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
24467 PR tree-optimization/64746
24468 * tree-if-conv.c (mask_exists): New function.
24469 (predicate_mem_writes): Save created mask with given size for further
24471 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
24472 (ifcvt_repair_bool_pattern): Collect all statements that are root
24473 of bool pattern and use iterative algorithm to remove multiple uses
24474 of predicates, display number of required iterations.
24476 2015-01-29 Richard Biener <rguenther@suse.de>
24478 PR tree-optimization/64853
24479 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
24480 stmt will get simulated again.
24481 * tree-ssa-ccp.c (valueize_op_1): Likewise.
24483 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24485 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
24486 return_in_pc. Remove redundant assignments.
24487 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
24488 (arm_expand_epilogue): Don't compare boolean with true in if condition.
24490 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
24492 * config/i386/i386.c (ix86_mode_after): Make static.
24494 2015-01-29 Richard Biener <rguenther@suse.de>
24496 PR tree-optimization/64844
24497 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
24498 dump cost model analysis.
24499 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
24500 Do not register adjusted load/store costs here.
24502 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
24503 Uros Bizjak <ubizjak@gmail.com>
24505 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
24506 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
24507 using x86_use_pseudo_pic_reg.
24508 * config/i386/i386.c (ix86_conditional_register_usage): Remove
24509 support for fixed PIC register.
24510 (ix86_use_pseudo_pic_reg): Not static any more.
24512 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
24514 PR middle-end/64805
24515 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
24516 to avoid error in cgraph node verification.
24518 2015-01-29 Marek Polacek <polacek@redhat.com>
24520 * doc/standards.texi: Reflect that the default for C is gnu11.
24522 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
24525 * reorg.c (switch_text_sections_between_p): New function.
24526 (relax_delay_slots): Call it when testing if the jump insn
24527 is removable. Use targetm.can_follow_jump when testing if
24528 the conditional branch can follow an unconditional jump.
24530 2015-01-27 Caroline Tice <cmtice@google.com>
24532 Committing VTV Cywin/Ming patch for Patrick Wollgast
24533 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
24534 if -fvtable-verify=preinit/std is used.
24535 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
24536 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
24537 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
24538 if -fvtable-verify=preinit/std is used.
24539 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
24540 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
24541 if -fvtable-verify=preinit/std is used.
24542 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
24543 * config/i386/mingw32.h (LIB_SPEC): Likewise.
24544 * varasm.c (assemble_variable): Add code to properly set the comdat
24545 section and name for the .vtable_map_vars section in case the
24546 target is PE or COFF.
24548 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
24551 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
24552 make sane BB profile.
24553 (cgraph_node::expand_thunk): Make sane BB profile.
24554 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
24555 * cgraph.h (init_lowered_empty_function): Update prototype.
24556 * config/i386/i386.c (make_resolver_func): Update call.
24557 * predict.c (gate): Disable branch prediction pass if
24558 profile is already there.
24560 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
24562 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
24563 * opth-gen.awk: Likewise.
24564 * common.opt: Mark flag_fp_contract_mode as Optimization.
24566 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
24568 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
24569 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
24571 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
24574 * config/sh/predicates.md (atomic_arith_operand,
24575 atomic_logical_operand): Remove.
24576 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
24577 (atomic_arith_operand_0): New predicate.
24578 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
24579 Use atomic_arith_operand_0 for input values.
24580 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
24581 atomic_compare_and_swap<mode>_soft_gusa,
24582 atomic_compare_and_swap<mode>_soft_tcb,
24583 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
24584 arith_reg_operand instead of register_operand.
24585 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
24586 atomic_arith_operand_0 for newval input.
24587 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
24588 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
24589 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
24590 arith_reg_operand instead of register_operand.
24591 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
24592 fetchop_predicate_1, fetchop_constraint_1_llcs,
24593 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
24594 fetchop_constraint_1_imask): New code iterator attributes.
24595 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
24596 register_operand. Use fetchop_predicate_1.
24597 (atomic_fetch_<fetchop_name>si_hard,
24598 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
24599 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
24600 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
24601 and arith_reg_operand instead of register_operand. Use
24602 fetchop_predicate_1, fetchop_constraint_1_gusa.
24603 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
24604 and arith_reg_operand instead of register_operand. Use
24605 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
24607 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
24608 and arith_reg_operand instead of register_operand. Use
24609 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
24611 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
24612 register_operand. Use atomic_logical_operand_1.
24613 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
24614 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
24615 arith_reg_operand instead of register_operand.
24616 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
24617 Use arith_reg_dest and arith_reg_operand instead of register_operand.
24618 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
24619 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
24620 register_operand. Use fetchop_predicate_1.
24621 (atomic_<fetchop_name>_fetchsi_hard,
24622 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
24623 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
24624 fetchop_constraint_1_llcs.
24625 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
24626 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
24627 fetchop_constraint_1_gusa.
24628 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
24629 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
24630 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
24631 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
24632 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
24633 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
24634 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
24635 register_operand. Use atomic_logical_operand_1.
24636 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
24637 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
24638 arith_reg_operand instead of register_operand.
24639 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
24640 arith_reg_operand instead of register_operand. Use logical_operand
24641 and K08. Adjust asm sequence to allow R0 usage.
24642 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
24643 arith_reg_operand instead of register_operand. Use logical_operand
24646 2015-01-28 Jakub Jelinek <jakub@redhat.com>
24649 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
24650 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
24651 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
24652 only get_full_len HOST_WIDE_INTs from get_val () array rather than
24653 all bits in *val_wide.
24655 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
24657 * varpool.c (tls_model_names): Fix names.
24658 (varpool_node::dump): Dump tls- prefix for tls models.
24660 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
24661 Bernd Schmidt <bernds@codesourcery.com>
24662 Nathan Sidwell <nathan@codesourcery.com>
24664 * config/nvptx/mkoffload.c: New file.
24665 * config/nvptx/t-nvptx: Add build rules for it.
24666 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
24667 (extra_programs): Add mkoffload.
24668 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
24670 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
24672 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
24674 PR middle-end/64809
24675 * cfgexpand.c (reorder_operands): Skip debug gimples.
24677 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
24679 PR tree-optimization/64277
24680 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
24681 range info when possible to refine estimation.
24683 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
24685 PR tree-optimization/64718
24686 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
24687 be a 16bit unsigned integer when n->range is 16.
24688 (bswap_replace): Convert src to that type if necessary for all bswap
24689 sizes. Fix rotation right notation in nearby comment. Use bswap_type
24690 set in pass_optimize_bswap::execute ().
24692 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
24694 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
24695 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
24696 integer and floating point variants.
24697 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
24699 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
24701 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
24702 for all vector modes.
24704 2015-01-28 Jakub Jelinek <jakub@redhat.com>
24707 * doc/sourcebuild.texi (comdat_group): Document.
24709 2015-01-28 Terry Guo <terry.guo@arm.com>
24711 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
24713 2015-01-27 David Malcolm <dmalcolm@redhat.com>
24715 * toplev.c (print_version): Add param "show_global_state", and
24716 only print GGC and plugin information if it is true.
24717 (init_asm_output): Pass in "true" for the new param when calling
24719 (process_options): Likewise.
24720 (toplev::main): Likewise.
24721 * toplev.h (print_version): Add new param to decl.
24723 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
24727 * tree.c (lookup_binfo_at_offset): New function.
24728 (get_binfo_at_offset): Use it.
24730 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
24733 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
24734 on vtable being vtable.
24736 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
24738 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
24739 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
24740 -mhotpatch= option.
24741 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
24742 -mno-hotpatch options. Change syntax of -mhotpatch= option.
24743 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
24745 (s390_hotpatch_trampoline_halfwords_max): Renamed.
24746 (s390_hotpatch_hw_max): New name.
24747 (s390_hotpatch_trampoline_halfwords): Renamed.
24748 (s390_hotpatch_hw_before_label): New name.
24749 (get_hotpatch_attribute): Removed.
24750 (s390_hotpatch_hw_after_label): New name.
24751 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
24753 (s390_attribute_table): Ditto.
24754 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
24755 (s390_function_num_hotpatch_hw): New name.
24756 Remove special handling of inline functions and hotpatching.
24757 Return number of nops before and after the function label.
24758 (s390_can_inline_p): Removed.
24759 (s390_asm_output_function_label): Emit a configurable number of nops
24760 after the function label.
24761 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
24762 (TARGET_CAN_INLINE_P) Removed.
24763 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
24765 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24766 Jiong Wang <jiong.wang@arm.com>
24768 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
24770 (cb<optab><mode>1): Likewise.
24771 * config/aarch64/iterators.md (bcond): New define_code_attr.
24773 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24775 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
24778 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24780 * config/s390/s390.c (s390_register_move_cost): Increase costs for
24783 2015-01-27 Richard Biener <rguenther@suse.de>
24785 * tree-vrp.c (update_value_range): Intersect the range with
24786 old recorded SSA name range information.
24788 2015-01-27 Nick Clifton <nickc@redhat.com>
24790 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
24791 BC, DE and HL registers directly, not via AX.
24792 When decrementing the stack pointer by a large amount, transfer SP
24793 into AX and perform the subtraction there.
24794 (rl78_expand_epilogue): Perform the inverse of the above
24797 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24799 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
24801 2015-01-27 Jakub Jelinek <jakub@redhat.com>
24802 Yury Gribov <y.gribov@samsung.com>
24805 * ubsan.c (ubsan_source_location): Refactor code.
24806 (ubsan_type_descriptor): Update type size. Refactor code.
24808 2015-01-27 Richard Biener <rguenther@suse.de>
24810 PR tree-optimization/56273
24811 PR tree-optimization/59124
24812 PR tree-optimization/64277
24813 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
24814 from the first VRP pass.
24816 2015-01-27 Jakub Jelinek <jakub@redhat.com>
24819 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
24820 handle the first argument in the same loop as all the other arguments.
24822 PR rtl-optimization/61058
24823 * jump.c (cleanup_barriers): Update basic block boundaries
24824 if BLOCK_FOR_INSN is non-NULL on PREV.
24826 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
24828 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
24829 bounds narrowing, already instrumented calls and calls to
24830 not instrumentable functions.
24832 2015-01-27 Jakub Jelinek <jakub@redhat.com>
24834 PR tree-optimization/64807
24835 * wide-int.cc (wi::divmod_internal): Clear
24836 b_dividend[dividend_blocks_needed].
24838 2015-01-26 DJ Delorie <dj@redhat.com>
24840 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
24841 volatile memory references.
24843 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
24846 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
24848 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
24849 shifts if it already fits into K08.
24851 2015-01-26 Jakub Jelinek <jakub@redhat.com>
24854 * ipa-inline.c (inline_small_functions): Print "unknown" even
24855 if edge->call_stmt is non-NULL, but has builtins or unknown
24858 PR middle-end/64421
24859 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
24860 with asterisk, skip the first character.
24862 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
24865 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
24868 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
24871 * config/i386/i386.md (*movdi_internal): Also check operand 0
24872 to determine TYPE_LEA operand.
24873 (*movsi_internal): Ditto.
24875 2015-01-26 Jakub Jelinek <jakub@redhat.com>
24877 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
24878 OPTION_MASK_QUAD_MEMORY_ATOMIC.
24880 2015-01-26 Renlin Li <renlin.li@arm.com>
24882 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
24884 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
24887 2015-01-26 Richard Biener <rguenther@suse.de>
24889 PR middle-end/64764
24890 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
24891 combining two BIT_AND_EXPR predicates.
24893 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
24896 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
24898 2015-01-26 Terry Guo <terry.guo@arm.com>
24900 * config/arm/arm.c (arm_file_start): Update the assignment of
24901 Tag_ABI_HardFP_use.
24903 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
24905 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
24907 config/arm/arm.md: Include the new Cortex-A57 model.
24908 (generic_sched): Don't use generic_sched when tuning for
24911 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
24912 Uros Bizjak <ubizjak@gmail.com>
24914 * config/i386/i386.c (get_builtin_code_for_version): Add
24915 support for BMI and BMI2 multiversion functions.
24917 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24919 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
24920 (extract_bit_field): Likewise.
24921 (extract_low_bits): Likewise.
24922 (expand_mult): Likewise.
24923 (expand_mult_highpart_adjust): Likewise.
24925 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
24927 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
24928 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
24929 * config/i386/i386.c (processor_model): Add
24930 M_INTEL_COREI7_BROADWELL.
24931 (arch_names_table): Add "broadwell".
24933 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
24942 * config/sh/sh-protos.h
24943 (sh_extending_set_of_reg::can_use_as_unextended_reg,
24944 sh_extending_set_of_reg::use_as_unextended_reg,
24945 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
24946 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
24947 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
24948 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
24949 (sh_treg_insns): New class.
24950 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
24951 (scope_counter): New class.
24952 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
24953 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
24954 sh_extending_set_of_reg::can_use_as_unextended_reg,
24955 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
24956 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
24957 sh_split_treg_set_expr): New functions.
24958 (addsubcosts): Handle treg_set_expr.
24959 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
24960 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
24961 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
24962 (sh_insn_operands_modified_between_p): Make non-static.
24963 * config/sh/predicates.md (zero_extend_movu_operand): Allow
24964 simple_mem_operand in addition to displacement_mem_operand.
24965 (zero_extend_operand): Don't allow zero_extend_movu_operand.
24966 (treg_set_expr, treg_set_expr_not_const01,
24967 arith_reg_or_treg_set_expr): New predicates.
24968 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
24969 arith_or_int_operand instead of logical_operand. Convert to
24970 insn_and_split. Try to optimize constant operand in splitter.
24971 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
24972 (*tstqi_t_zero): Delete.
24973 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
24974 (tstsi_t_and_not): Delete.
24975 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
24976 Convert to insn_and_split.
24977 (unnamed split, tstsi_t_zero_extract_xor,
24978 tstsi_t_zero_extract_subreg_xor_little,
24979 tstsi_t_zero_extract_subreg_xor_big): Delete.
24980 (*tstsi_t_shift_mask): New insn_and_split.
24981 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
24982 to recombine with surrounding insns when splitting.
24983 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
24984 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
24985 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
24986 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
24987 (*cbranch_div0s: Delete.
24988 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
24989 Try to recombine with surrounding insns when splitting. Add operand
24991 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
24992 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
24993 *addc_r_r_msb, *addc_2r_msb): Delete.
24994 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
24996 (*addc_negreg_t): New insn_and_split.
24997 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
24998 Try to recombine with surrounding insns when splitting.
24999 Add operand order variants.
25000 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
25001 insn_and_split patterns.
25002 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
25003 surrounding insns when splitting.
25004 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
25005 (*rotcl): Likewise. Add zero_extract variant.
25006 (*ashrsi2_31): New insn_and_split.
25007 (*negc): Convert to insn_and_split. Use treg_set_expr.
25008 (*zero_extend<mode>si2_disp_mem): Update comment.
25009 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
25011 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
25012 with surrounding insns when splitting.
25013 (any_treg_expr_to_reg): New insn_and_split.
25014 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
25015 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
25016 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
25017 *zero_extract_2): New single bit zero extract patterns.
25018 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
25019 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
25020 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
25021 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
25023 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
25024 register_operand for set source.
25026 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
25028 * i386.opt (prefetch_sse): New targetsave.
25029 * i386.c (ix86_function_specific_save): Save prefetch_sse.
25030 (ix86_function_specific_restore): Restore prefetch_sse and initialize
25031 ix86_cost/ix86_tune_cost.
25033 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25035 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
25036 Support the JIT by using 0 as the language type.
25038 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
25041 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
25042 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
25043 (mark_regno_live, process_bb_lives): Pass new parameter value to
25044 make_hard_regno_born.
25046 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25048 PR rtl-optimization/63637
25049 PR rtl-optimization/60663
25050 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
25051 if elt->cost is MAX_COST for ASM_OPERANDS.
25052 (find_sets_in_insn): Fix up comment typo.
25053 (cse_insn): Don't set src_volatile for all non-volatile
25054 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
25055 or with "memory" clobber. Set elt->cost to MAX_COST
25056 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
25057 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
25059 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
25061 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
25064 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
25066 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
25067 libgcc/config/i386/elf-lib.h.
25069 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25072 * gcc.c (print_configuration): Don't print a blank line at the end
25074 (run_attempt): ... but here unstead.
25076 PR middle-end/64734
25077 * omp-low.c (scan_sharing_clauses): Don't ignore
25078 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
25079 on target data/update constructs.
25081 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
25084 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
25085 (DEBUG_RELOAD): Removed define.
25086 (m32c_limit_reload_class): Enable traces with if DEBUG0.
25087 (m32c_function_arg): Added a type cast.
25088 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
25089 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
25090 * config/m32c/bitops.md (andqi3_16): Likewise.
25091 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
25092 (push_a01_l): Likewise.
25094 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25097 * main.c (main): Construct toplev instances with init_signals=true.
25098 * toplev.c (general_init): Add param "init_signals", and use it to
25099 conditionalize the calls to signal and host_hooks.extra_signals.
25100 (toplev::toplev): Add param "init_signals".
25101 (toplev::main): When invoking general_init, pass m_init_signals
25102 to control whether signal-handlers are installed.
25103 * toplev.h (toplev::toplev): Add param "init_signals".
25104 (toplev::m_init_signals): New field.
25106 2015-01-23 David Malcolm <dmalcolm@redhat.com>
25109 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
25110 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
25111 latter may be affected by the former (e.g. on i686).
25113 2015-01-23 Martin Liska <mliska@suse.cz>
25115 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
25116 false positive during profiledbootstrap.
25118 2015-01-23 Tom de Vries <tom@codesourcery.com>
25121 * lto-opts.c (lto_write_options): Output non-explicit conservative
25123 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
25124 (append_compiler_options): Pass -fopenacc through.
25126 2015-01-23 Tom de Vries <tom@codesourcery.com>
25129 * lto-opts.c (lto_write_options): Output non-explicit conservative
25131 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
25132 (append_compiler_options): Pass -fopenmp through.
25134 2015-01-23 Jakub Jelinek <jakub@redhat.com>
25137 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
25140 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
25141 * diagnostic.def (DK_ICE_NOBT): New kind.
25142 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
25143 like DK_ICE, but never print backtrace.
25144 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
25145 (internal_error_no_backtrace): New function.
25146 * gcc.c (execute): Use internal_error_no_backtrace instead of
25149 2015-01-22 Jeff Law <law@redhat.com>
25152 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
25153 improve code density for small immediate to memory case.
25154 (insv): Better handle bitfield assignments when the field is
25155 being set to all ones.
25156 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
25159 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25160 Jakub Jelinek <jakub@redhat.com>
25162 PR middle-end/64729
25163 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
25164 for !TARGET_LIBC_PROVIDES_SSP version and
25165 -fstack-protector-{all,strong,explicit} otherwise.
25166 * config/freebsd.h (LINK_SSP_SPEC): Handle
25167 -fstack-protector-{strong,explicit}.
25169 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
25170 H.J. Lu <hongjiu.lu@intel.com>
25173 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
25176 2015-01-22 Wei Mi <wmi@google.com>
25178 PR rtl-optimization/64557
25179 * dse.c (record_store): Call get_addr for mem_addr.
25180 (check_mem_read_rtx): Likewise.
25182 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
25184 * fold-const.c (const_binop): Add early return for non-tcc_binary.
25186 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
25188 * toplev.c (init_local_tick): Process the failure when read
25189 fails for random_seed.
25191 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
25192 'pretty_name' to avoid memory overflow.
25194 2015-01-22 Richard Biener <rguenther@suse.de>
25196 PR middle-end/64728
25197 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
25198 abnormal coalescing on undefined SSA names.
25200 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
25204 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
25206 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
25208 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
25210 PR middle-end/63325
25211 * fold-const.c (fold_checksum_tree): Don't include value of
25212 expr->decl_with_vis.symtab_node in the checksum.
25214 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25216 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
25218 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
25221 * gcc.c (insert_comments): New function.
25222 (try_generate_repro): Call it.
25223 (append_text): Removed.
25225 2015-01-22 Richard Biener <rguenther@suse.de>
25227 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
25228 with IL incompatible options. Properly honor user optimize
25231 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
25233 PR rtl-optimization/64682
25234 * combine.c (distribute_notes): When moving a death note for
25235 a register that is set in the new I2, make sure to put it
25236 before that new I2.
25238 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
25240 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
25241 not TARGET_DEFAULT.
25243 2015-01-21 Jakub Jelinek <jakub@redhat.com>
25246 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
25247 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
25248 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
25251 * doc/invoke.texi (-fsanitize=vptr): Document.
25253 PR rtl-optimization/62078
25254 * dse.c: Include cfgcleanup.h.
25255 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
25256 anything call purge_all_dead_edges and cleanup_cfg at the end
25259 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
25261 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
25264 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25266 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
25269 2015-01-21 David Sherwood <david.sherwood@arm.com>
25270 Tejas Belagod <Tejas.Belagod@arm.com>
25272 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
25273 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
25274 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
25277 2015-01-21 David Sherwood <david.sherwood@arm.com>
25278 Tejas Belagod <Tejas.Belagod@arm.com>
25280 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
25281 (aarch64_reverse_mask): New decls.
25282 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
25283 (insn_count): New mode_attr.
25284 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
25285 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
25286 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
25287 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
25288 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
25289 (aarch64_simd_st4): New patterns.
25290 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
25291 (aarch64_reverse_mask): New functions.
25293 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
25295 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
25297 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
25298 addressing modes for BE.
25299 (aarch64_print_operand): Add 'R' specifier.
25300 (aarch64_simd_disambiguate_copy): Delete.
25301 (aarch64_simd_emit_reg_reg_move): New function.
25302 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
25303 in define_splits for structural moves.
25304 (mov<mode>): Use less restrictive predicates.
25305 (*aarch64_mov<mode>): Simplify and only allow for LE.
25306 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
25308 2015-01-21 Alan Hayward <alan.hayward@arm.com>
25310 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
25312 2015-01-21 Richard Henderson <rth@redhat.com>
25315 * ccmp.c (used_in_cond_stmt_p): Remove.
25316 (expand_ccmp_expr): Don't use it.
25318 2015-01-21 Nick Clifton <nickc@redhat.com>
25320 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
25323 2015-01-21 Richard Biener <rguenther@suse.de>
25325 PR middle-end/64313
25326 * tree-core.h (builtin_info, builtin_info_type): Turn from
25327 an object with two arrays into an array of an object with
25328 decl and two flags, implicit_p and declared_p.
25329 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
25330 set_builtin_decl, set_builtin_decl_implicit_p,
25331 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
25332 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
25333 * builtins.c (builtin_info): Adjust.
25334 * gimplify.c (gimplify_addr_expr): References to builtins
25335 that have been declared by the user makes them eligible for
25336 use by the compiler. Call set_builtin_decl_implicit_p on them.
25338 2015-01-20 Jeff Law <law@redhat.com>
25341 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
25342 allow pc-relative addresses in operand predicates or constraints.
25344 2015-01-21 Bin Cheng <bin.cheng@arm.com>
25346 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
25347 neon on aarch32 processors for stringops.
25349 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
25352 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
25354 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
25357 * ipa-inline.c: Include lto-streamer.h
25358 (report_inline_failed_reason): Output source file differences and
25359 flags on optimization/target node mismatch.
25360 (can_inline_edge_p): Consider caller to be the outer inline function;
25361 be less restrictive about matching opimize and optimize_size attributes.
25362 (inline_account_function_p): Break out from ...
25363 (inline_small_functions): ... here.
25364 * ipa-inline-transform.c (clone_inlined_nodes): Use
25365 inline_account_function_p.
25366 (inline_call): Use optimize attribution; use inline_account_function_p.
25367 (inline_transform): Use opt_for_fn.
25368 * ipa-inline.h (inline_account_function_p): Declare.
25370 2015-01-20 Jakub Jelinek <jakub@redhat.com>
25373 * dwarf2out.c (decl_piece_node): Don't put bitsize into
25374 mode if bitsize <= 0.
25375 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
25376 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
25377 sizes and positions.
25379 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
25381 * config/nios2/nios2.c (nios2_asm_file_end): Implement
25382 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
25384 (TARGET_ASM_FILE_END): Define.
25386 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25388 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
25389 (struct tune_params): Use the enum.
25390 * arm.c (arm_*_tune): Update.
25391 (arm_option_override): Update.
25393 2015-01-20 Richard Biener <rguenther@suse.de>
25396 * ipa-reference.c (add_static_var): Inline ...
25397 (analyze_function): ... here after splitting out from ...
25398 (is_proper_for_analysis): ... this.
25400 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
25403 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
25404 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
25405 replace the conditional with it's true branch.
25406 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
25407 (arm_lra_p): Remove.
25409 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
25411 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
25413 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25415 * config/tilegx/mul-tables.c: Move symtab.h include after
25416 coretypes.h include.
25417 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
25418 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
25419 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
25420 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
25421 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
25423 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
25427 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
25429 PR rtl-optimization/64081
25430 * loop-iv.c (def_pred_latch_p): New function.
25431 (latch_dominating_def): Allow specific cases with non-single
25433 (iv_get_reaching_def): Likewise.
25434 (check_complex_exit_p): New function.
25435 (check_simple_exit): Use check_complex_exit_p to allow certain cases
25436 with exits not executing on any iteration.
25438 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
25441 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
25442 to set branch cost.
25444 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
25447 * i386.c (gate): Check flag_expensive_optimizations and
25449 (ix86_option_override_internal): Drop optimize_size condition
25450 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
25451 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
25452 MASK_PREFER_AVX128.
25453 (ix86_avx256_split_vector_move_misalign,
25454 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
25455 * sse.md (all uses of TARGET_PREFER_AVX128): Add
25456 optimize_insn_for_speed_p check.
25458 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
25460 * config/mips/mips.h (FP_ASM_SPEC): New define.
25461 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
25464 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
25467 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
25468 nullptr for insn when reaching the first insn.
25469 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
25470 (sh_insn_operands_modified_between_p): Add nullptr check.
25471 (sh_find_extending_set_of_reg): Fix log message. Don't accept
25472 sign extending mem load if the insn contains any UNSPEC or
25475 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
25477 * params.def (inline-unit-growth): Drop to 15%.
25478 * invoke.texi (inline-unit-growth): Document change.
25480 2015-01-19 Martin Liska <mliska@suse.cz>
25483 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
25484 function for second argument of OBJ_TYPE_REF.
25486 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
25489 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
25490 whether function is an alias.
25492 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
25494 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
25497 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
25499 PR rtl-optimization/64671
25500 * lra-remat.c (operand_to_remat): Don't consider jump and call
25503 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
25506 * config/rs6000/default64.h: Include rs6000-cpus.def.
25507 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
25508 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
25509 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
25511 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
25513 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
25514 pseudo-op to specify assembler dialect.
25516 2015-01-19 Martin Liska <mliska@suse.cz>
25519 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
25520 Handle safe potentially removed nodes during filtering.
25522 2015-01-19 Martin Liska <mliska@suse.cz>
25524 * doc/extend.texi (no_icf): Add new attribute description.
25525 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
25526 where the pass attempts to merge a function with no_icf attribute.
25528 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25531 * doc/md.texi (ARM Options): Document register constraints.
25533 2015-01-19 Jiong Wang <jiong.wang@arm.com>
25534 Andrew Pinski <apinski@cavium.com>
25537 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
25538 (ashl<mode>3): Don't expand if operands[2] is not constant.
25540 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25543 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
25544 Match xor-and-xor RTL pattern.
25546 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
25548 PR rtl-optimization/64081
25549 * loop-iv.c (def_pred_latch_p): New function.
25550 (latch_dominating_def): Allow specific cases with non-single
25552 (iv_get_reaching_def): Likewise.
25553 (check_complex_exit_p): New function.
25554 (check_simple_exit): Use check_complex_exit_p to allow certain cases
25555 with exits not executing on any iteration.
25557 2015-01-19 Jakub Jelinek <jakub@redhat.com>
25559 * common.opt (fgraphite): Fix a typo.
25561 2015-01-19 Felix Yang <felix.yang@huawei.com>
25563 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
25565 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
25566 uminp, smax_nanp, smin_nanp): New builtins.
25567 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
25568 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
25569 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
25570 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
25571 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
25572 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
25573 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
25574 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
25575 vpminnms_f32): Rewrite using builtin functions.
25577 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
25580 * omp-low.c (offload_symbol_decl): Remove variable.
25581 (get_offload_symbol_decl): Remove function.
25582 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
25583 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
25584 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
25585 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
25586 BUILT_IN_GOACC_UPDATE don't pass it at all.
25588 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
25590 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
25593 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
25595 * ipa-chkp.c (chkp_produce_thunks): Add early param
25596 to split thunks production into two passes. Keep
25597 'always_inline' function bodies after the first pass.
25598 (pass_data_ipa_chkp_early_produce_thunks): New.
25599 (pass_ipa_chkp_early_produce_thunks): New.
25600 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
25601 chkp_produce_thunks signature.
25602 (make_pass_ipa_chkp_early_produce_thunks): New.
25603 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
25604 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
25605 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
25607 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
25609 * cgraph.c (cgraph_node::dump): Dump profile flags.
25611 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
25614 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
25615 reg appear first in the parallel.
25617 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
25619 * ipa-reference.c (set_reference_optimization_summary,
25620 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
25622 (ignore_module_statics): New static var.
25623 (propagate_bits): If ipa-reference is disabled, do not look into local
25625 (analyze_function): Disable analysis when ipa_reference is disabled.
25626 (generate_summary): Do not dump when reference is disabled;
25627 collect vars accessed from functions with ipa-reference disabled.
25628 (get_read_write_all_from_node): When ipa-reference is disabled, use the
25630 (gate): Enable for LTO.
25631 (ignore_edge_p): New function.
25632 (propagate): Skip functions w/o ipa-reference analysis.
25633 * optc-save-gen.awk: Handle optimize_debug correctly.
25634 * opth-gen.awk: Likewise.
25635 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
25636 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
25637 fira-share-save-slots, fira-share-spill-slots,
25638 fmodulo-sched-allow-regmoves, fpartial-inlining,
25639 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
25640 ftracer, ftree-parallelize-loops, fassociative-math,
25641 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
25643 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
25644 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
25646 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
25649 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
25652 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
25654 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
25656 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
25658 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
25659 Remove duplicate option listings.
25661 2015-01-18 Felix Yang <felix.yang@huawei.com>
25663 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
25664 (autofdo_source_profile::get_callsite_total_count,
25665 function_instance::get_function_instance_by_decl,
25666 string_table::get_index, string_table::get_index_by_decl,
25667 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
25668 Fix comment typos. Reformatting and minor code rearrangement.
25670 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
25672 * config/rs6000/rs6000.md (probe_stack): Delete.
25673 (probe_stack_address): New.
25675 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
25677 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
25678 to test for 32-bit ABIs, not !TARGET_POWERPC64.
25680 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
25682 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
25683 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
25684 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
25686 (rs6000_libcall_value): Use the new function.
25688 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
25690 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
25692 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
25694 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
25695 implement a more precise life analysis for it during backward scan.
25697 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
25699 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
25701 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
25703 PR rtl-optimization/52773
25704 * calls.c (emit_library_call_value): When pushing arguments use
25705 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
25706 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
25707 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
25709 2015-01-17 Jeff Law <law@redhat.com>
25711 PR rtl-optimization/32790
25712 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
25713 not ZERO_EXTEND in SET_DESTs.
25715 2015-01-17 Alan Modra <amodra@gmail.com>
25717 * cprop.c (do_local_cprop): Revert last change.
25719 2015-01-16 DJ Delorie <dj@redhat.com>
25720 Nick Clifton <nickc@redhat.com>
25722 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
25723 (addhi3_real): Likewise. Fix [HL+0] syntax.
25724 (subqi3_real): Likewise.
25725 (subhi3_real): Likewise.
25726 (cbranchqi4_real): Likewise. Allow saddr,#imm.
25727 (cbranchhi4_real): Likewise.
25728 (cbranchhi4_real_inverted): Likewise.
25729 (cbranchsi4_real_lt): Likewise.
25730 (cbranchsi4_real_ge): Likewise.
25731 (cbranchsi4_real_ge): Likewise.
25732 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
25733 (sub<mode>3_virt): Likewise.
25734 (cbranchqi4_virt): Likewise.
25735 (cbranchhi4_virt): Likewise.
25736 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
25737 always use '[reg+imm]' even when imm is zero.
25738 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
25739 (rl78_general_operand): New.
25740 (rl78_nonimmediate_operand): New.
25741 (rl78_nonfar_operand): Use them.
25742 (rl78_nonfar_nonimm_operand): Likewise.
25743 (rl78_stack_based_mem): Fix.
25744 * config/rl78/constraints.md (Ibqi): New.
25749 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
25750 (iorqi3): Likewise.
25751 (xorqi3): Likewise.
25752 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
25754 * config/rl78/constrains (Qs8): New constraint.
25755 * config/rl78/rl78.c (rl78_flags_already_set): New function.
25756 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
25757 * config/rl78/rl78-real.md (update_Z): New attribute.
25758 Update patterns to set it.
25759 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
25760 shorter compare and branch sequence can be used.
25761 (cbranchhi4_real): Likewise.
25762 (cbranchhi4_real_inverted): Likewise.
25764 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
25765 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
25767 * config/rl78/rl78.c (rl78_get_name_encoding): New.
25768 (rl78_option_override): Allow -mes0 only if C.
25769 (characterize_address): Support subregs of symbol_refs.
25770 (rl78_addr_space_address_mode): Move. Add __near.
25771 (rl78_far_p): Likewise.
25772 (rl78_addr_space_pointer_mode): Likewise.
25773 (rl78_as_legitimate_address): Likewise.
25774 (rl78_addr_space_subset_p): Likewise.
25775 (rl78_addr_space_convert): Likewise.
25776 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
25777 symbols with -mes0.
25778 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
25780 (rl78_alloc_physical_registers_op1): Change logic to prefer
25781 symbol[BC] addressing.
25782 (frodata_section): New.
25783 (rl78_asm_init_sections): Initialize it.
25784 (rl78_select_section): Put __far readonly symbols in .frodata.
25785 (rl78_make_type_far): New.
25786 (rl78_insert_attributes): Force all readonly symbols to be
25788 (rl78_asm_out_integer): New.
25789 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
25790 * config/rl78/rl78.opt (-mes0): New.
25792 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
25793 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
25794 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
25795 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
25796 (rl78_saddr_p): New.
25797 (rl78_output_aligned_common): New.
25798 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
25799 (rl78_handle_saddr_attribute): New.
25800 (rl78_handle_naked_attribute): New.
25801 (rl78_attribute_table): Add saddr.
25802 (rl78_print_operand_1): Don't print '!' on saddr operands.
25803 (rl78_print_operand_1): Strip encodings.
25805 (rl78_strip_name_encoding): New.
25806 (rl78_attrlist_to_encoding): New.
25807 (rl78_encode_section_info): New.
25808 (rl78_asm_init_sections): New.
25809 (rl78_select_section): New.
25810 (rl78_output_labelref): New.
25811 (rl78_output_aligned_common): New.
25812 (rl78_asm_out_integer): New.
25813 (rl78_asm_ctor_dtor): New.
25814 (rl78_asm_constructor): New.
25815 (rl78_asm_destructor): New.
25817 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
25818 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
25819 (transcode_memory_rtx): Update.
25820 (rl78_expand_epilogue): Use A_REG instead of 0.
25822 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25824 * config/arm/arm-protos.h (struct tune_params): New field
25825 sched_autopref_queue_depth.
25826 * config/arm/arm.c (sched-int.h): Include header.
25827 (arm_first_cycle_multipass_dfa_lookahead_guard,)
25828 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
25829 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
25830 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
25831 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
25832 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
25833 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
25834 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
25835 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
25836 * config/arm/t-arm (arm.o): Update.
25837 * haifa-sched.c (update_insn_after_change): Update.
25838 (rank_for_schedule): Use auto-prefetcher model, if requested.
25839 (autopref_multipass_init): New static function.
25840 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
25841 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
25842 variable for debug dumps.
25843 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
25844 (autopref_multipass_dfa_lookahead_guard): New global function that
25845 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
25846 (init_h_i_d): Update.
25847 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
25848 * sched-int.h (enum autopref_multipass_data_status): New const enum.
25849 (autopref_multipass_data_): Structure for auto-prefetcher data.
25850 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
25851 (struct _haifa_insn_data:autopref_multipass_data): New field.
25852 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
25853 (autopref_multipass_dfa_lookahead_guard): Declare.
25855 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25857 * rtlanal.c (get_base_term): Handle SCRATCH.
25859 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
25861 * config/aarch64/aarch64.c
25862 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
25863 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
25865 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
25866 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
25868 2015-01-17 Alan Modra <amodra@gmail.com>
25870 * cprop.c (do_local_cprop): Disallow replacement of fixed
25873 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25876 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
25879 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
25881 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
25882 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
25884 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25886 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
25887 * config/arm/thumb1.md: ... Here.
25889 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25891 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
25892 TImode for TARGET_32BIT.
25894 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25896 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
25897 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
25899 (rs6000_abi_word_mode): New function.
25901 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25903 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
25904 instead of UNITS_PER_WORD to describe the size of stack slots.
25906 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25908 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
25909 as rs6000_promote_function_mode. Move comment to there.
25910 (rs6000_promote_function_mode): New function.
25912 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
25914 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
25915 -mpowerpc64 is active.
25917 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25919 PR middle-end/64353
25920 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
25923 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
25925 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
25926 introduced in revision 219724.
25928 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25929 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25932 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
25933 destination is not a GP reg.
25934 (*movdi_aarch64): Likewise.
25936 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
25939 * config/rs6000/default64.h: Revert ISA change.
25941 2015-01-16 Richard Biener <rguenther@suse.de>
25943 PR middle-end/64614
25944 * tree-ssa-uninit.c: Include tree-cfg.h.
25945 (MAX_SWITCH_CASES): New define.
25946 (convert_control_dep_chain_into_preds): Handle switch statements.
25947 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
25948 (normalize_one_pred_1): Do not split bit-manipulations.
25951 2015-01-16 Richard Biener <rguenther@suse.de>
25953 PR tree-optimization/64568
25954 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
25955 complex load rewriting for TARGET_MEM_REFs.
25957 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
25959 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
25961 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
25964 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
25966 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
25967 (aarch64_lra_p): Remove.
25969 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25972 * ipa-chkp.h (chkp_instrumentable_p): New.
25973 * ipa-chkp.c: Include tree-inline.h.
25974 (chkp_instrumentable_p): New.
25975 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
25976 Fix processing of not instrumentable functions.
25977 (chkp_versioning): Use chkp_instrumentable_p. Warn about
25978 not instrumentable functions.
25979 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
25980 chkp_instrumentable_p.
25981 * tree-inline.h (copy_forbidden): New.
25982 * tree-inline.c (copy_forbidden): Not static anymore.
25984 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25986 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
25989 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
25991 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
25992 type OP_OUT to OP_INOUT.
25994 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
25996 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
25997 (high x) y) to y if x and y have the same base.
25999 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
26001 * config/arm/cortex-a57.md: New.
26002 * config/aarch64/aarch64.md: Include it.
26003 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
26004 * config/aarch64/aarch64-tune.md: Regenerate.
26006 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
26009 * ccmp.c (expand_ccmp_next): New function.
26010 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
26011 and compare insn sequence.
26012 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
26013 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
26014 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
26015 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
26016 (*ccmp_ior): Changed to ccmp_ior<mode>.
26017 (cmp<mode>): New pattern.
26018 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
26020 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
26022 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
26024 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
26025 _mm256_bsrli_epi128): New.
26026 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
26028 2015-01-15 Jiong Wang <jiong.wang@arm.com>
26030 * expmed.c (store_bit_field_using_insv): Improve warning message.
26031 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
26033 2015-01-15 Jiong Wang <jiong.wang@arm.com>
26035 PR rtl-optimization/64011
26036 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
26037 there is partial overflow.
26039 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26041 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
26043 (nds32_expand_epilogue_v3pop): Likewise.
26044 * config/nds32/nds32.md (sibcall): Define this for sibling call
26046 (sibcall_register): Likewise.
26047 (sibcall_immediate): Likewise.
26048 (sibcall_value): Likewise.
26049 (sibcall_value_register): Likewise.
26050 (sibcall_value_immediate): Likewise.
26051 (sibcall_epilogue): Likewise.
26052 (epilogue): Pass false to indicate this is not a sibcall epilogue.
26053 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
26054 (nds32_expand_epilogue_v3pop): Likewise.
26056 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26058 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
26059 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
26060 (return_internal): New.
26061 (return): Define this named pattern.
26062 (simple_return): Define this named pattern.
26063 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
26064 pattern instead of unspec_volatile_func_return.
26065 (nds32_expand_epilogue_v3pop): Likewise.
26066 (nds32_can_use_return_insn): New function.
26068 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26070 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
26071 * config/nds32/nds32.md (pop25return): New.
26072 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
26073 pop25return pattern.
26075 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26077 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
26078 -mforbid-fp-as-gp, and -mex9 options.
26080 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
26082 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
26083 remove -mgp-direct option.
26085 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26087 * doc/invoke.texi (--param early-inlining-insns): Update default value.
26088 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
26090 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26092 * ipa-inline.c (inline_small_functions): Work around hints
26095 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
26098 * doc/invoke.texi (Option Summary): Document new Nios II
26100 (Nios II Options): Likewise.
26101 * config/nios2/nios2.opt: Add -mgpopt= option support.
26102 Modify existing -mgpopt and -mno-gpopt options to be aliases.
26103 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
26104 * config/nios2/nios2.c (nios2_option_override): Adjust
26105 -mgpopt defaulting.
26106 (nios2_in_small_data_p): Return true for explicit small data
26107 sections even with -G0.
26108 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
26111 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26114 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
26116 (inline_call): Fix removal of aliases.
26118 2015-01-15 Jakub Jelinek <jakub@redhat.com>
26120 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
26121 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
26122 * opts.c (common_handle_option): Add -fsanitize=vptr.
26123 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
26124 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
26125 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
26126 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
26127 (ubsan_expand_vptr_ifn): New prototype.
26128 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
26129 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
26130 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
26131 expand_LOOP_VECTORIZED): Make argument nameless, remove
26133 (expand_UBSAN_VPTR): New function.
26134 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
26136 (UBSAN_VPTR): New internal function.
26137 * sanopt.c (tree_map_traits): Renamed to ...
26138 (sanopt_tree_map_traits): ... this.
26139 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
26140 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
26141 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
26142 (maybe_optimize_ubsan_vptr_ifn): New function.
26143 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
26144 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
26146 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
26147 internal calls like pure functions for aliasing, even when they
26148 have other side-effects that prevent making them ECF_PURE.
26149 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
26150 (ubsan_expand_vptr_ifn): New function.
26152 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
26154 PR rtl-optimization/64110
26155 * stmt.c (parse_output_constraint): Process '^' and '$'.
26156 (parse_input_constraint): Ditto.
26157 * lra-constraints.c (process_alt_operands): Process the new
26159 * ira-costs.c (record_reg_classes): Process the new constraint
26161 * genoutput.c (indep_constraints): Add '^' and '$'.
26162 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
26163 * doc/md.texi: Add description of the new constraints.
26165 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
26166 Bernd Schmidt <bernds@codesourcery.com>
26167 Cesar Philippidis <cesar@codesourcery.com>
26168 James Norris <jnorris@codesourcery.com>
26169 Tom de Vries <tom@codesourcery.com>
26170 Ilmir Usmanov <i.usmanov@samsung.com>
26171 Dmitry Bocharnikov <dmitry.b@samsung.com>
26172 Evgeny Gavrin <e.gavrin@samsung.com>
26173 Jakub Jelinek <jakub@redhat.com>
26175 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
26176 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
26177 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
26178 New function types.
26179 * builtins.c: Include "gomp-constants.h".
26180 (expand_builtin_acc_on_device): New function.
26181 (expand_builtin, is_inexpensive_builtin): Handle
26182 BUILT_IN_ACC_ON_DEVICE.
26183 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
26185 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
26187 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
26188 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
26189 i386/intelmic-offload.h.
26190 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
26191 to libgomp and its dependencies.
26192 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
26193 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
26194 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
26195 * config/ia64/hpux.h (LIB_SPEC): Likewise.
26196 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26197 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
26198 * doc/generic.texi: Update for OpenACC changes.
26199 * doc/gimple.texi: Likewise.
26200 * doc/invoke.texi: Likewise.
26201 * doc/sourcebuild.texi: Likewise.
26202 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
26203 GF_OMP_FOR_KIND_OACC_LOOP.
26204 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
26205 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
26206 GF_OMP_TARGET_KIND_OACC_UPDATE,
26207 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
26209 * gimple.c: Update comments for OpenACC changes.
26210 * gimple.def: Likewise.
26211 * gimple.h: Likewise.
26212 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
26213 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
26214 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
26215 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
26216 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
26218 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
26219 * gimplify.c: Include "gomp-constants.h".
26220 Update comments for OpenACC changes.
26221 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
26222 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
26223 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
26224 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
26225 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
26226 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
26227 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
26228 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
26229 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
26231 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
26232 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
26233 OMP_CLAUSE_SET_MAP_KIND.
26234 (gimplify_oacc_cache): New function.
26235 (gimplify_omp_for): Handle OACC_LOOP.
26236 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
26238 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
26239 OACC_EXIT_DATA, OACC_UPDATE.
26240 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
26241 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
26242 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
26243 (gimplify_body): Consider flag_openacc next to flag_openmp.
26244 * lto-streamer-out.c: Include "gomp-constants.h".
26245 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
26246 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
26247 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
26248 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
26249 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
26250 (BUILT_IN_ACC_ON_DEVICE): New builtins.
26251 * omp-low.c: Include "gomp-constants.h".
26252 Update comments for OpenACC changes.
26253 (struct omp_context): Add reduction_map, gwv_below, gwv_this
26255 (extract_omp_for_data, use_pointer_for_field, install_var_field)
26256 (new_omp_context, delete_omp_context, scan_sharing_clauses)
26257 (create_omp_child_function, scan_omp_for, scan_omp_target)
26258 (check_omp_nesting_restrictions, lower_reduction_clauses)
26259 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
26260 Update for OpenACC changes.
26261 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
26262 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
26263 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
26264 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
26265 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
26266 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
26268 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26269 Handle GF_OMP_FOR_KIND_OACC_LOOP.
26270 (expand_omp_target, lower_omp_target): Handle
26271 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
26272 GF_OMP_TARGET_KIND_OACC_UPDATE,
26273 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
26274 GF_OMP_TARGET_KIND_OACC_DATA.
26275 (pass_expand_omp::execute, execute_lower_omp)
26276 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
26278 (offload_symbol_decl): New variable.
26279 (oacc_get_reduction_array_id, oacc_max_threads)
26280 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
26281 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
26282 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
26283 (oacc_gimple_assign, oacc_initialize_reduction_data)
26284 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
26286 (is_targetreg_ctx): Remove function.
26287 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
26288 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
26289 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
26290 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
26291 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
26292 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
26293 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
26294 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
26295 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
26296 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
26297 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
26298 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
26299 * tree-core.h: Update comments for OpenACC changes.
26300 (enum omp_clause_map_kind): Remove.
26301 (struct tree_omp_clause): Change type of map_kind member from enum
26302 omp_clause_map_kind to unsigned char.
26303 * tree-inline.c: Update comments for OpenACC changes.
26304 * tree-nested.c: Likewise. Include "gomp-constants.h".
26305 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
26306 (convert_tramp_reference_stmt, convert_gimple_call): Update for
26307 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
26308 OMP_CLAUSE_SET_MAP_KIND.
26309 * tree-pretty-print.c: Include "gomp-constants.h".
26310 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
26311 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
26312 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
26313 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
26314 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
26315 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
26316 instead of OMP_CLAUSE_MAP_*.
26317 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
26318 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
26319 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
26320 * tree-streamer-in.c: Include "gomp-constants.h".
26321 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
26322 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
26323 * tree-streamer-out.c: Include "gomp-constants.h".
26324 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
26326 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
26327 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
26328 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
26329 * tree.c (omp_clause_num_ops): Update accordingly.
26330 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
26332 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
26333 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
26334 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
26335 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
26336 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
26337 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
26338 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
26339 (OMP_CLAUSE_SET_MAP_KIND): New macro.
26340 * varpool.c (varpool_node::get_create): Consider flag_openacc next
26342 * config/i386/intelmic-offload.h: New file.
26343 * config/nvptx/offload.h: Likewise.
26345 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26347 * explow.h: Remove duplicate contents.
26348 * dojump.h: Likewise.
26350 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
26352 * arm.c (arm_xgene_tune): Add default initializer for instruction
26355 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
26359 * ipa.c (symbol_table::remove_unreachable_nodes):
26360 Do not put abstract origins into boundary.
26362 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
26364 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
26365 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
26367 2015-01-15 Steve Ellcey <sellcey@mips.com>
26369 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
26370 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
26371 builtins.def, and chkp-builtins.def.
26373 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
26375 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
26378 2015-01-15 Richard Biener <rguenther@suse.de>
26380 PR tree-optimization/61743
26381 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
26382 information on PHIs for some simple cases.
26384 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
26386 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
26388 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
26389 * config/arm/arm-cores.def (xgene1): New entry.
26390 * config/arm/arm-tables.opt: Regenerate.
26391 * config/arm/arm-tune.md: Regenerate.
26392 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
26394 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
26396 * tree-if-conv.c: Include hash-map.h.
26397 (aggressive_if_conv): New variable.
26398 (fold_build_cond_expr): Add simplification of non-zero condition.
26399 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
26400 destination block is not always executed.
26401 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
26402 than two predecessors if AGGRESSIVE_IF_CONV is true.
26403 (if_convertible_stmt_p): Fix commentary.
26404 (all_preds_critical_p): New function.
26405 (has_pred_critical_p): New function.
26406 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
26407 BB can have more than two predecessors and all incoming edges can be
26409 (predicate_bbs): Skip predication for loop exit block, use build2_loc
26410 to compute predicate for true edge.
26411 (find_phi_replacement_condition): Delete this function.
26412 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
26413 Allow interchange PHI arguments if EXTENDED is false.
26414 Change check that block containing reduction statement candidate
26415 is predecessor of phi-block since phi may have more than two arguments.
26416 (phi_args_hash_traits): New helper structure.
26417 (struct phi_args_hash_traits): New type.
26418 (phi_args_hash_traits::hash): New function.
26419 (phi_args_hash_traits::equal_keys): New function.
26420 (gen_phi_arg_condition): New function.
26421 (predicate_scalar_phi): Add handling of phi nodes with more than two
26422 arguments, delete COND and TRUE_BB arguments, insert body of
26423 find_phi_replacement_condition to predicate ordinary phi nodes.
26424 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
26425 delete call of find_phi_replacement_condition and invoke
26426 predicate_scalar_phi with two arguments.
26427 (insert_gimplified_predicates): Add assert that non-predicated block
26428 don't have statements to insert.
26429 (ifcvt_split_critical_edges): New function.
26430 (ifcvt_split_def_stmt): Likewise.
26431 (ifcvt_walk_pattern_tree): Likewise.
26432 (stmt_is_root_of_bool_pattern): Likewise.
26433 (ifcvt_repair_bool_pattern): Likewise.
26434 (ifcvt_local_dce): Likewise.
26435 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
26436 is copy of inner or outer loop force_vectorize field, invoke
26437 ifcvt_split_critical_edges, ifcvt_local_dce and
26438 ifcvt_repair_bool_pattern for aggressive if-conversion.
26440 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
26442 * config/aarch64/aarch64.md: Include xgene1.md.
26443 * config/aarch64/xgene1.md: New file.
26445 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
26447 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
26448 xgene1 (APM XGene-1) core definition.
26449 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
26450 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
26451 * doc/invoke.texi: Document -mcpu=xgene1.
26453 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26455 * dojump.h: New header file.
26456 * explow.h: Likewise.
26457 * expr.h: Remove includes.
26458 Move expmed.c prototypes to expmed.h.
26459 Move dojump.c prototypes to dojump.h.
26460 Move alias.c prototypes to alias.h.
26461 Move explow.c prototypes to explow.h.
26462 Move calls.c prototypes to calls.h.
26463 Move emit-rtl.c prototypes to emit-rtl.h.
26464 Move varasm.c prototypes to varasm.h.
26465 Move stmt.c prototypes to stmt.h.
26466 (saved_pending_stack_adjust): Move to dojump.h.
26467 (adjust_address): Move to explow.h.
26468 (adjust_address_nv): Move to emit-rtl.h.
26469 (adjust_bitfield_address): Likewise.
26470 (adjust_bitfield_address_size): Likewise.
26471 (adjust_bitfield_address_nv): Likewise.
26472 (adjust_automodify_address_nv): Likewise.
26473 * explow.c (expr_size): Move to expr.c.
26474 (int_expr_size): Likewise.
26475 (tree_expr_size): Likewise.
26476 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26477 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
26478 * genemit.c (main): Generate includes statistics.h, real.h,
26479 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
26481 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
26482 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
26483 explow.h, emit-rtl.h, stmt.h.
26484 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
26485 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
26486 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
26487 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
26488 emit-rtl.h, varasm.h, stmt.h.
26489 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
26490 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
26491 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
26492 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
26493 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
26494 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
26495 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
26496 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
26497 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
26498 tm.h tree.h varasm.h vec.h wide-int.h.
26499 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
26500 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
26501 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
26502 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
26503 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
26504 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
26505 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
26506 * loop-iv.c: Likewise.
26507 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
26508 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
26509 statistics.h stmt.h tree.h varasm.h wide-int.h.
26510 * lra-constraints.c: Likewise.
26511 * lra-eliminations.c: Likewise.
26512 * lra-lives.c: Likewise.
26513 * lra-remat.c: Likewise.
26514 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
26515 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
26516 statistics.h stmt.h tree.h varasm.h wide-int.h.
26517 * hw-doloop.c: Likewise.
26518 * ira-color.c: Likewise.
26519 * ira-emit.c: Likewise.
26520 * loop-doloop.c: Likewise.
26521 * loop-invariant.c: Likewise.
26522 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
26523 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
26524 statistics.h stmt.h tree.h varasm.h wide-int.h.
26525 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
26526 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
26527 statistics.h stmt.h tree.h varasm.h wide-int.h.
26528 * combine-stack-adj.c: Likewise.
26531 * ifcvt.c: Likewise.
26532 * ira-costs.c: Likewise.
26533 * jump.c: Likewise.
26534 * lra-coalesce.c: Likewise.
26535 * lra-spills.c: Likewise.
26536 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
26537 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
26538 stmt.h varasm.h wide-int.h.
26539 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
26540 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
26542 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
26543 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
26544 statistics.h stmt.h varasm.h wide-int.h.
26545 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
26546 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
26547 varasm.h wide-int.h.
26548 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
26549 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
26550 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
26551 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
26552 statistics.h stmt.h.
26553 * config/tilepro/tilepro.c: Likewise.
26554 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
26555 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
26556 * config/pdp11/pdp11.c: Likewise.
26557 * config/xtensa/xtensa.c: Likewise.
26558 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
26559 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
26561 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26562 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
26563 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
26564 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26565 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
26566 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
26567 * rtl-chkp.c: Likewise.
26568 * tree-chkp-opt.c: Likewise.
26569 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
26570 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
26571 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
26572 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26573 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
26574 statistics.h stmt.h.
26575 * tree-vect-data-refs.c: Likewise.
26576 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
26577 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
26578 rtl.h statistics.h stmt.h varasm.h.
26579 * internal-fn.c: Likewise.
26580 * ipa-icf-gimple.c: Likewise.
26581 * lto-section-out.c: Likewise.
26582 * tree-data-ref.c: Likewise.
26583 * tree-nested.c: Likewise.
26584 * tree-outof-ssa.c: Likewise.
26585 * tree-predcom.c: Likewise.
26586 * tree-pretty-print.c: Likewise.
26587 * tree-scalar-evolution.c: Likewise.
26588 * tree-ssa-strlen.c: Likewise.
26589 * tree-vect-loop.c: Likewise.
26590 * tree-vect-patterns.c: Likewise.
26591 * tree-vect-slp.c: Likewise.
26592 * tree-vect-stmts.c: Likewise.
26593 * tsan.c: Likewise.
26594 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26595 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
26597 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
26598 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
26599 statistics.h stmt.h varasm.h.
26600 * loop-unroll.c: Likewise.
26601 * ubsan.c: Likewise.
26602 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
26603 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
26605 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26606 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
26607 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
26608 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
26609 statistics.h stmt.h.
26610 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
26611 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
26612 statistics.h stmt.h varasm.h.
26613 * gimple-match-head.c: Likewise.
26614 * lto-cgraph.c: Likewise.
26615 * lto-section-in.c: Likewise.
26616 * lto-streamer-in.c: Likewise.
26617 * lto-streamer-out.c: Likewise.
26618 * tree-affine.c: Likewise.
26619 * tree-cfg.c: Likewise.
26620 * tree-cfgcleanup.c: Likewise.
26621 * tree-if-conv.c: Likewise.
26622 * tree-into-ssa.c: Likewise.
26623 * tree-ssa-alias.c: Likewise.
26624 * tree-ssa-copyrename.c: Likewise.
26625 * tree-ssa-dse.c: Likewise.
26626 * tree-ssa-forwprop.c: Likewise.
26627 * tree-ssa-live.c: Likewise.
26628 * tree-ssa-math-opts.c: Likewise.
26629 * tree-ssa-pre.c: Likewise.
26630 * tree-ssa-sccvn.c: Likewise.
26631 * tree-tailcall.c: Likewise.
26632 * tree-vect-generic.c: Likewise.
26633 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26634 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
26635 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26636 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
26637 * varasm.c: Likewise.
26638 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26639 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
26641 * init-regs.c: Likewise.
26643 * omp-low.c: Likewise.
26644 * stack-ptr-mod.c: Likewise.
26645 * tree-ssa-reassoc.c: Likewise.
26646 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26647 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
26649 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26650 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
26651 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26652 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
26653 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26654 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
26655 * tree-ssa-phiopt.c: Likewise.
26656 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26657 fixed-value.h hashtab.h real.h statistics.h stmt.h.
26658 * config/fr30/fr30.c: Likewise.
26659 * config/frv/frv.c: Likewise.
26660 * expr.c: Likewise.
26661 * final.c: Likewise.
26662 * optabs.c: Likewise.
26663 * passes.c: Likewise.
26664 * simplify-rtx.c: Likewise.
26665 * stmt.c: Likewise.
26666 * toplev.c: Likewise.
26667 * var-tracking.c: Likewise.
26668 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26669 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
26670 * lower-subreg.c: Likewise.
26671 * postreload-gcse.c: Likewise.
26673 * reginfo.c: Likewise.
26674 * store-motion.c: Likewise.
26675 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26676 fixed-value.h hashtab.h real.h stmt.h varasm.h.
26677 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26678 fixed-value.h hashtab.h statistics.h stmt.h.
26679 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26680 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
26681 * except.c: Likewise.
26682 * explow.c: Likewise.
26683 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26684 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
26686 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26687 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
26688 * tree-ssa-structalias.c: Likewise.
26689 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26690 fixed-value.h insn-config.h real.h statistics.h.
26691 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26692 fixed-value.h insn-config.h real.h statistics.h stmt.h.
26693 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26694 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
26695 * cfgbuild.c: Likewise.
26696 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26697 fixed-value.h real.h rtl.h statistics.h stmt.h.
26698 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26699 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
26700 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26701 fixed-value.h real.h statistics.h stmt.h.
26702 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26703 fixed-value.h real.h statistics.h stmt.h varasm.h.
26704 * cprop.c: Likewise.
26705 * modulo-sched.c: Likewise.
26706 * postreload.c: Likewise.
26707 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
26708 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
26709 statistics.h stmt.h varasm.h.
26710 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
26711 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
26712 rtl.h statistics.h stmt.h varasm.h.
26713 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
26714 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
26716 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
26717 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
26719 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
26720 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
26722 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
26723 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
26724 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
26725 function.h real.h statistics.h stmt.h varasm.h.
26726 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
26727 insn-config.h real.h statistics.h stmt.h.
26728 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
26729 statistics.h stmt.h.
26730 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
26731 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
26732 statistics.h stmt.h varasm.h.
26733 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
26734 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
26735 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
26736 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
26737 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
26738 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
26739 statistics.h stmt.h varasm.h.
26740 * ipa-polymorphic-call.c: Likewise.
26741 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
26742 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
26743 statistics.h stmt.h.
26744 * config/c6x/c6x.c: Likewise.
26745 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
26746 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
26747 statistics.h stmt.h varasm.h.
26748 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
26749 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
26751 * ipa-split.c: Likewise.
26752 * tree-eh.c: Likewise.
26753 * tree-ssa-dce.c: Likewise.
26754 * tree-ssa-loop-niter.c: Likewise.
26755 * tree-vrp.c: Likewise.
26756 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
26757 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
26759 * config/nds32/nds32-fp-as-gp.c: Likewise.
26760 * config/nds32/nds32-intrinsic.c: Likewise.
26761 * config/nds32/nds32-isr.c: Likewise.
26762 * config/nds32/nds32-md-auxiliary.c: Likewise.
26763 * config/nds32/nds32-memory-manipulation.c: Likewise.
26764 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26765 * config/nds32/nds32-predicates.c: Likewise.
26766 * config/nds32/nds32.c: Likewise.
26767 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
26768 fixed-value.h hashtab.h real.h statistics.h.
26769 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
26770 fixed-value.h hashtab.h real.h statistics.h stmt.h.
26771 * config/arm/arm.c: Likewise.
26772 * config/avr/avr.c: Likewise.
26773 * config/bfin/bfin.c: Likewise.
26774 * config/h8300/h8300.c: Likewise.
26775 * config/i386/i386.c: Likewise.
26776 * config/ia64/ia64.c: Likewise.
26777 * config/iq2000/iq2000.c: Likewise.
26778 * config/m32c/m32c.c: Likewise.
26779 * config/m32r/m32r.c: Likewise.
26780 * config/m68k/m68k.c: Likewise.
26781 * config/mcore/mcore.c: Likewise.
26782 * config/mep/mep.c: Likewise.
26783 * config/mips/mips.c: Likewise.
26784 * config/mn10300/mn10300.c: Likewise.
26785 * config/moxie/moxie.c: Likewise.
26786 * config/pa/pa.c: Likewise.
26787 * config/rl78/rl78.c: Likewise.
26788 * config/rx/rx.c: Likewise.
26789 * config/s390/s390.c: Likewise.
26790 * config/sh/sh.c: Likewise.
26791 * config/sparc/sparc.c: Likewise.
26792 * config/spu/spu.c: Likewise.
26793 * config/stormy16/stormy16.c: Likewise.
26794 * config/v850/v850.c: Likewise.
26795 * config/vax/vax.c: Likewise.
26796 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
26797 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
26798 * config/msp430/msp430.c: Likewise.
26799 * predict.c: Likewise.
26800 * value-prof.c: Likewise.
26801 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
26802 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
26803 * config/microblaze/microblaze.c: Likewise.
26804 * config/nios2/nios2.c: Likewise.
26805 * config/rs6000/rs6000.c: Likewise.
26806 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
26807 insn-config.h real.h rtl.h statistics.h stmt.h.
26808 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
26809 insn-config.h real.h statistics.h stmt.h.
26810 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
26811 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
26812 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
26813 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
26814 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
26815 fixed-value.h real.h statistics.h stmt.h.
26816 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
26817 fixed-value.h statistics.h stmt.h.
26818 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
26821 2015-01-15 Jakub Jelinek <jakub@redhat.com>
26823 * gengtype.c (create_user_defined_type): Workaround
26824 -Wmaybe-uninitialized false positives.
26825 * cse.c (fold_rtx): Likewise.
26826 * loop-invariant.c (gain_for_invariant): Likewise.
26828 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
26830 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
26831 set the memory attributes in all cases but clear MEM_EXPR if need be.
26833 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
26835 PR tree-optimization/64434
26836 * cfgexpand.c (reorder_operands): New function.
26837 (expand_gimple_basic_block): Insert call of reorder_operands if
26840 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
26842 * config/mips/micromips.md (*swp): Remove explicit parallel.
26843 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
26844 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
26845 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
26846 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
26847 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
26848 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
26849 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
26850 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
26851 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
26852 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
26853 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
26854 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
26855 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
26856 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
26857 (mips_wrdsp): Likewise.
26858 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
26860 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
26861 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
26862 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
26863 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
26864 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
26865 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
26866 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
26867 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
26868 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
26870 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
26872 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
26873 (mips_print_operand): Support 'y' to print exact log2 in decimal
26875 * config/mips/mips.h (ISA_HAS_LSA): New define.
26876 (ISA_HAS_DLSA): Likewise.
26877 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
26878 * config/mips/predicates.md (const_immlsa_operand): New predicate.
26880 2015-01-15 Martin Liska <mliska@suse.cz>
26883 * optc-save-gen.awk: Add support for array types.
26885 2015-01-15 Richard Biener <rguenther@suse.de>
26887 PR middle-end/64365
26888 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
26889 for MEM_REF access functions with the same base can never partially
26892 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
26894 * common.opt: New option -fstack-protector-explicit.
26895 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
26896 (stack_protect_decl_phase): Handle stack_protect attribute for
26897 explicit stack protection requests.
26898 (expand_used_vars): Similarly.
26899 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
26900 * doc/extend.texi: Add documentation for "stack_protect" attribute.
26901 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
26903 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
26906 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
26908 (sh_extending_set_of_reg): New struct.
26909 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
26910 sh_remove_reg_dead_or_unused_notes): New Declarations.
26911 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
26912 sh_find_extending_set_of_reg, sh_split_tst_subregs,
26913 sh_extending_set_of_reg::use_as_extended_reg): New functions.
26914 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
26915 convert to insn_and_split and use new function sh_split_tst_subregs.
26917 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
26919 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
26921 (Optimization Options): Move -fuse-ld documentation to...
26922 (Link Options): ...here.
26924 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
26926 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
26928 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
26929 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
26930 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
26931 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
26932 instead of ZR for the memory operand of LL/SC.
26933 (compare_and_swap_12, sync_add<mode>): Likewise.
26934 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
26935 (sync_new_<optab>_12, sync_nand_12): Likewise.
26936 (sync_old_nand_12, sync_new_nand_12): Likewise.
26937 (sync_sub<mode>, sync_old_add<mode>): Likewise.
26938 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
26939 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
26940 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
26941 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
26942 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
26943 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
26944 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
26945 * doc/md.texi (ZC): Update description.
26947 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
26949 * builtins.c (expand_builtin_atomic_exchange): Remove error when
26950 memory model is CONSUME.
26951 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
26952 expand_builtin_atomic_store): Change invalid memory model errors to
26954 (expand_builtin_atomic_clear): Change invalid model errors to warnings
26955 and issue warning for CONSUME.
26957 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
26959 * lto-cgraph: Update function comments for
26960 lto_symtab_encoder_encode_*.
26962 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
26964 * Makefile.in (site.exp): Do not set ENABLE_LTO.
26966 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
26968 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
26969 * lto-cgraph.c (select_what_to_stream): Remove argument, use
26970 lto_stream_offload_p instead.
26971 * lto-streamer.h (select_what_to_stream): Remove argument.
26972 * passes.c (ipa_write_summaries): Likewise.
26973 * tree-pass.h (ipa_write_summaries): Likewise.
26975 2015-01-14 Richard Biener <rguenther@suse.de>
26977 PR tree-optimization/59354
26978 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
26979 groups larger than the slp group size as having gaps.
26981 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
26983 PR middle-end/59448
26984 * builtins.c (get_memmodel): Promote consume to acquire always.
26986 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
26989 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
26992 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
26995 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
26997 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
26998 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
26999 AVX512VBMI, as it implies AVX512BW.
27001 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
27004 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
27005 (vec_unpacks_hi_v16sf): Ditto.
27007 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27009 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
27012 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27014 * doc/invoke.texi (mapcs): Mention deprecation.
27015 (mapcs-frame): Likewise.
27017 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
27020 * config/arm/arm.c (callee_saved_reg_p): Define.
27021 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
27022 register is callee saved instead of !call_used_regs[reg].
27023 (thumb1_compute_save_reg_mask): Likewise.
27025 2015-01-14 Hale Wang <hale.wang@arm.com>
27027 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
27030 2015-01-14 Richard Biener <rguenther@suse.de>
27033 * tree-inline.c (insert_debug_decl_map): Check destination
27034 function MAY_HAVE_DEBUG_STMTS.
27035 (insert_init_debug_bind): Likewise.
27036 (insert_init_stmt): Remove redundant check.
27037 (remap_gimple_stmt): Drop debug stmts if the destination
27038 function has var-tracking assignments disabled.
27040 2015-01-14 Martin Liska <mliska@suse.cz>
27042 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
27043 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
27045 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27048 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
27049 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
27051 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
27053 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
27054 level from an ARCH; do not inject the default.
27055 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
27056 MIPS_ISA_LEVEL_SPEC.
27057 (MIPS_ISA_NAN2008_SPEC): Update comment.
27058 (BASE_DRIVER_SELF_SPECS): Likewise.
27059 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
27060 MIPS_DEFAULT_ISA_LEVEL_SPEC.
27061 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
27062 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
27063 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
27065 2015-01-14 Richard Biener <rguenther@suse.de>
27067 PR tree-optimization/64493
27068 PR tree-optimization/64495
27069 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
27070 assign the proper vectorized PHI to the inner loop exit PHIs.
27072 2015-01-14 Joey Ye <joey.ye@arm.com>
27074 * config/arm/arm.c (arm_compute_save_reg_mask):
27075 Do not save lr in case of tail call.
27076 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
27078 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
27080 * tree-vrp.c (check_array_ref): Emit more warnings
27081 for warn_array_bounds >= 2.
27082 * common.opt: New option -Warray-bounds=.
27083 * doc/invoke.texi: Document -Warray-bounds=.
27085 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
27087 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
27088 (mforbid-fp-as-gp): Remove.
27090 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
27091 (nds32_symbol_load_store_p): Remove.
27092 (nds32_fp_as_gp_check_available): Clean up implementation.
27093 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
27095 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
27096 fp-as-gp and ex9 cases.
27098 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27100 * tree-profile.c (init_ic_make_global_vars): Drop workaround
27101 for bintuils bug 14342.
27102 (init_ic_make_global_vars): Likewise.
27103 (gimple_init_edge_profiler): Likewise.
27104 (gimple_gen_ic_func_profiler): Likewise.
27106 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27108 * ipa-inline.c (inline_small_functions): Swap the operands in
27111 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27114 * ipa-inline-analysis.c (node_growth_cache): Remove.
27115 (initialize_growth_caches): Do not initialize it.
27116 (free_growth_caches): Do not free it.
27117 (do_estimate_growth): Rename to ...
27118 (estimate_growth): ... this one; drop growth cache code.
27119 (growth_likely_positive): Always go the heuristics way.
27120 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
27121 (reset_edge_caches): Do not reset node growth.
27122 (heap_edge_removal_hook): Do not maintain cache.
27123 (inline_small_functions): Likewise; strenghten sanity check.
27124 (ipa_inline): Do not maintain caches.
27125 * ipa-inline.h (node_growth_cache): Remove.
27126 (do_estimate_growth): Remove to ...
27127 (estimate_growth): this one; remove inline version.
27128 (reset_node_growth_cache): Remove.
27130 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
27133 * ipa-inline.c (inline_small_functions): Update callee keys after
27134 resolving speculation
27135 (inline_small_functions): Always check monotonicity of the queue.
27137 2015-01-13 Marek Polacek <polacek@redhat.com>
27139 PR middle-end/64391
27140 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
27142 2015-01-13 Jakub Jelinek <jakub@redhat.com>
27144 PR rtl-optimization/64286
27145 * ree.c (combine_reaching_defs): Move part of comment earlier,
27146 remove !SCALAR_INT_MODE_P check.
27147 (add_removable_extension): Don't add vector mode
27148 extensions if all uses of the source register aren't the same
27151 2015-01-13 Renlin Li <renlin.li@arm.com>
27153 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
27154 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
27156 2015-01-13 Martin Liska <mliska@suse.cz>
27158 * ipa-icf.c (sem_function::equals_private): Call new functions
27159 cl_target_option_print_diff and cl_optimization_print_diff.
27160 * optc-save-gen.awk (cl_target_option_print_diff): New function.
27161 (cl_optimization_print_diff): Likewise.
27162 * opth-gen.awk: Likewise.
27164 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
27166 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
27167 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
27168 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
27169 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
27170 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
27171 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
27173 2015-01-13 Andrew Pinski <apinski@cavium.com>
27175 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
27176 instead of src mode.
27178 2015-01-13 Richard Biener <rguenther@suse.de>
27181 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
27184 2015-01-13 Andrew Pinski <apinski@cavium.com>
27186 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
27188 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
27190 2015-01-13 Jakub Jelinek <jakub@redhat.com>
27192 PR middle-end/63974
27193 * cfgexpand.c (expand_computed_goto): Don't call
27194 convert_memory_address here.
27196 2015-01-13 Richard Biener <rguenther@suse.de>
27198 PR tree-optimization/64406
27199 * tree-loop-distibution.c (pass_loop_distribution::execute):
27200 Reset the SCEV hashtable if we distributed anything.
27202 2015-01-13 Richard Biener <rguenther@suse.de>
27204 PR tree-optimization/64404
27205 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
27206 SLP types for CSEd loads.
27208 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
27210 PR tree-optimization/64436
27211 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
27212 merge of two symbolic numbers for a bitwise OR to ...
27213 (perform_symbolic_merge): This. Also fix computation of the range and
27214 end of the symbolic number corresponding to the result of a bitwise OR.
27216 2015-01-13 Richard Biener <rguenther@suse.de>
27218 PR tree-optimization/64568
27219 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
27220 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
27222 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27224 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
27225 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
27227 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27229 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
27230 target-specific symbol_ref flag.
27231 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
27232 resides in rodata section.
27233 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
27234 (nds32_encode_section_info): New function.
27236 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27238 * config/nds32/nds32.md (call): Use pseudo instruction bal which
27239 clobbers TA_REGNUM if large code model is specified.
27240 (call_register): Likewise.
27241 (call_immediate): Likewise.
27242 (call_value): Likewise.
27243 (call_value_register): Likewise.
27244 (call_value_immediate): Likewise.
27246 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27248 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
27249 (TARGET_CMODEL_MEDIUM): New macro.
27250 (TARGET_CMODEL_LARGE): New macro.
27251 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
27252 code model setting in assembly code.
27254 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27256 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
27257 Remove MASK_GP_DIRECT flag.
27258 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
27259 one of the multilib default options.
27260 * config/nds32/nds32.opt (mgp-direct): Remove.
27261 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
27262 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
27264 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
27266 * config/nds32/nds32.opt (mcmodel): Add new option.
27267 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
27268 to describe code model.
27270 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
27273 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
27275 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
27277 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
27278 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
27279 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
27280 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
27281 __builtin_sh_set_fpscr.
27283 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
27285 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
27286 after a funtion name just to indicate it is a function.
27287 ([-fsanitize-undefined-trap-on-error]): Likewise.
27288 ([-fdbg-cnt=]): Likewise.
27289 ([-mmemcpy]): Likewise.
27290 ([-mflush-func]): Likewise.
27291 ([-msynci]): Likewise.
27293 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
27295 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
27298 2015-01-12 Jakub Jelinek <jakub@redhat.com>
27300 PR tree-optimization/64563
27301 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
27302 instead of != VR_VARYING.
27305 * config/i386/i386.c (ix86_expand_prologue): Add
27306 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
27308 PR tree-optimization/64454
27309 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
27310 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
27311 for signed or [0, op1 - 1] for unsigned modulo.
27312 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
27313 even if op1 does not satisfy integer_pow2p.
27316 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
27318 2015-01-12 Jeff Law <law@redhat.com>
27321 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
27322 (trunchiqi2, truncsihi2): Similarly.
27324 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
27325 rather than calling F.
27327 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
27329 * tsan.c (instrument_expr): Use force_gimple_operand.
27330 Use may_be_nonaddressable_p instead of is_gimple_addressable.
27332 2015-01-12 Richard Biener <rguenther@suse.de>
27334 PR tree-optimization/64530
27335 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
27338 2015-01-12 Richard Biener <rguenther@suse.de>
27340 PR middle-end/64357
27341 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
27344 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27346 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
27347 Cortex-A17 tuning parameters.
27348 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
27350 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27352 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
27353 * config/arm/arm.c (arm_macro_fusion_p): New function.
27354 (arm_macro_fusion_pair_p): Likewise.
27355 (TARGET_SCHED_MACRO_FUSION_P): Define.
27356 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
27357 (ARM_FUSE_NOTHING): Likewise.
27358 (ARM_FUSE_MOVW_MOVT): Likewise.
27359 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
27360 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
27361 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
27362 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
27363 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
27364 arm_cortex_a5_tune): Specify fuseable_ops value.
27366 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
27369 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
27370 test for PIE with copy reloc.
27371 * configure: Regenerated.
27373 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27375 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
27377 (arm_tls_descseq_addr): Likewise.
27378 (arm_gen_movmemqi): Likewise.
27379 (arm_expand_epilogue_apcs_frame): Likewise.
27380 (arm_expand_epilogue): Likewise.
27381 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
27384 2015-01-12 Martin Liska <mliska@suse.cz>
27387 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
27388 volatility for correct operands.
27390 2015-01-12 Martin Liska <mliska@suse.cz>
27392 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
27393 indication that a function is not leaf.
27394 (sem_function::compare_polymorphic_p): Likewise.
27396 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27398 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
27399 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
27400 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
27401 fold-const.h, tree-check.h.
27403 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
27407 * ipa-inline.c (compute_uninlined_call_time,
27408 compute_inlined_call_time): Use counts for extra precision when
27410 (big_speedup_p): Fix formating.
27411 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
27412 (relative_time_benefit): Remove.
27413 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
27414 merge guessed and read profile paths.
27415 (inline_small_functions): Count only !optimize_size functions into
27416 initial size; be more lax about sanity check when profile is used;
27417 be sure to update inlined function profile when profile is read.
27419 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
27422 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
27423 cost when edge becomes direct.
27424 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
27425 is resolved or when introducing new speculation.
27427 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
27431 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
27432 '||' to fix typo issue.
27434 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
27435 accept and return NULL.
27437 2015-01-12 Martin Liska <mliska@suse.cz>
27439 * cgraph.c (cgraph_edge::remove_callee): Move function to header
27440 file for being inlined.
27441 (cgraph_set_edge_callee): Delete.
27442 (cgraph_edge::redirect_callee): Move function to header file
27444 (cgraph_edge::make_direct): Use new function.
27445 (cgraph_edge::dump_edge_flags): New function created from
27446 static dump_edge_flags function.
27447 (cgraph_node::dump): Use new function.
27448 (cgraph_edge::verify_count_and_frequency): New function created
27449 from verify_edge_count_and_frequency.
27450 (cgraph_edge::verify_corresponds_to_fndecl): New function created
27451 from verify_edge_corresponds_to_fndecl.
27452 (verify_edge_corresponds_to_fndecl): Delete.
27453 (cgraph_node::verify_node): Use new function.
27454 * cgraph.h (cgraph_edge::set_callee): New function.
27455 (cgraph_edge::dump_edge_flags): Likewise.
27456 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
27458 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
27460 * ipa-utils.c (estimate_function_body_sizes): Do not
27461 free node params when called late with early=true.
27463 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
27465 * doc/md.texi (Instruction Patterns): Rewrite text for
27467 (Example): Likewise.
27469 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
27471 * doc/invoke.texi (Option Summary): Break long lines.
27472 [(-fdiagnostics-color)]: Put long literal in @smallexample
27474 [(-fsanitize-recover)]: Likewise.
27475 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
27476 [(-ffast-math)]: Likewise.
27477 [(--param max-inline-insns-recursive)]: Likewise.
27478 [(--param max-inline-recursive-depth)]: Likewise.
27479 [(-mno-text-section-literals)]: Likewise.
27481 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
27483 * doc/install.texi: Update for libgomp being renamed from "GNU
27484 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
27486 * doc/sourcebuild.texi: Likewise.
27488 2015-01-10 Anthony Green <green@moxielogic.com>
27490 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
27491 mul.x availability for moxiebox configuration.
27493 2015-01-09 Anthony Green <green@moxielogic.com>
27495 * config/moxie/moxie.md: Tabify assembly output.
27497 2015-01-09 Anthony Green <green@moxielogic.com>
27499 * config/moxie/moxie.md (CC_REG): Correct register definition.
27501 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
27503 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
27504 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
27507 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
27509 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
27511 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
27512 Jakub Jelinek <jakub@redhat.com>
27514 PR middle-end/64412
27515 * lto-streamer.h (lto_stream_offload_p): New declaration.
27516 * lto-streamer.c (lto_stream_offload_p): New variable.
27517 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
27518 at the same time as section_name_prefix.
27519 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
27520 if lto_stream_offload_p.
27521 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
27522 stream TREE_TARGET_OPTION if lto_stream_offload_p.
27523 (write_ts_function_decl_tree_pointers): Don't
27524 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
27525 * tree-streamer-in.c (unpack_value_fields): Don't stream
27526 TREE_TARGET_OPTION in if ACCEL_COMPILER.
27527 (lto_input_ts_function_decl_tree_pointers): Don't stream
27528 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
27529 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
27530 instead of section_name_prefix string comparisons.
27532 2015-01-09 Jakub Jelinek <jakub@redhat.com>
27534 PR rtl-optimization/64536
27535 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
27538 2015-01-09 Michael Collison <michael.collison@linaro.org>
27540 PR tree-optimization/64322
27541 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
27542 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
27544 2015-01-09 Tom de Vries <tom@codesourcery.com>
27546 PR rtl-optimization/64539
27547 * regcprop.c (kill_clobbered_values): Factor out of ...
27548 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
27549 instead of note_stores with kill_clobbered_value.
27551 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
27553 * ginclude/unwind-arm-common.h: Revert previous commit.
27555 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
27557 * config.gcc (arm*-*-freebsd*): New configuration.
27558 * config/arm/freebsd.h: New file.
27559 * config.host: Add extra components for arm*-*-freebsd*.
27560 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
27561 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
27563 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
27565 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
27567 * config/rs6000/t-rtems: Add e6500 multilibs.
27569 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
27571 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
27574 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
27576 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
27577 MULTILIB_EXCEPTIONS.
27579 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
27581 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
27582 MULTILIB_EXCEPTIONS.
27584 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
27586 * config/arm/t-rtems-eabi: Rename to...
27587 * config/arm/t-rtems: ...this.
27588 * config/arm/rtems-eabi.h: Rename to...
27589 * config/arm/rtems.h: ...this.
27590 * config.gcc (arm*-*-rtems*): Reflect changes above.
27592 2015-01-09 Richard Biener <rguenther@suse.de>
27594 PR tree-optimization/64410
27595 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
27597 (execute_update_addresses_taken): Deal with that.
27598 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
27599 loads/stores for complex variables.
27601 2015-01-09 Martin Liska <mliska@suse.cz>
27603 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
27605 (func_checker::compare_memory_operand): New function.
27606 (func_checker::compare_operand): Split case to newly
27608 (func_checker::compare_cst_or_decl): New function.
27609 (func_checker::compare_gimple_call): Identify
27611 (func_checker::compare_gimple_assign): Likewise.
27612 * ipa-icf-gimple.h: New function.
27614 2015-01-09 Martin Liska <mliska@suse.cz>
27617 * sreal.c (sreal::dump): Change unsigned format to signed for
27619 (sreal::to_double): Replace exp2 with scalbln.
27621 2015-01-09 Martin Liska <mliska@suse.cz>
27623 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
27624 * ipa-icf.c (sem_function::equals_private): Add support for target and
27625 (sem_item_optimizer::merge_classes): Remove redundant function
27626 optimization flags comparison.
27627 * tree.h (target_opts_for_fn): New function.
27629 2015-01-09 Tom de Vries <tom@codesourcery.com>
27631 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
27633 2015-01-09 Kito Cheng <kito@0xlab.org>
27635 PR rtl-optimization/64348
27636 * lra-constraints.c (split_reg): Fix caller-save store/restore
27637 instruction generation.
27639 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
27641 PR gcov-profile/61790
27642 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
27643 long long. Fallback to int64_t if host doesn't have long long and
27644 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
27646 2015-01-08 Jakub Jelinek <jakub@redhat.com>
27648 PR tree-optimization/63989
27649 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
27650 from 1000 to 10000.
27651 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
27652 (get_stridx): If we don't have a record for certain SSA_NAME,
27653 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
27654 constant offset, call get_stridx_plus_constant.
27655 (get_stridx_plus_constant): New function.
27656 (zero_length_string): Don't use get_stridx here.
27659 PR middle-end/64388
27660 * dse.c (struct insn_info): Mention frame_read set also
27661 before reload for tail calls on some targets.
27662 (scan_insn): Revert 2014-12-22 change. Set frame_read
27663 also before reload for tail calls if
27664 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
27665 instead of add_non_frame_wild_read for non-const/memset
27666 tail calls after reload.
27668 2015-01-08 Jason Merrill <jason@redhat.com>
27670 * ubsan.c (do_ubsan_in_current_function): New.
27671 (pass_ubsan::gate): Use it.
27672 * ubsan.h: Declare it.
27673 * convert.c (convert_to_integer): Use it.
27675 2015-01-08 Jakub Jelinek <jakub@redhat.com>
27678 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
27679 compare_code when it is unconditionally overwritten afterwards.
27680 Use ix86_reverse_condition instead of reverse_condition. Don't
27681 change code if *reverse_condition* returned UNKNOWN and don't
27682 swap ct/cf and negate diff in that case.
27684 2015-01-08 Mike Stump <mikestump@comcast.net>
27686 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
27687 (pass_tsan_O0::gate): Likewise.
27688 * extend.texi (Function Attributes): Add no_sanitize_thread
27691 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
27693 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
27694 for registering builtins.
27695 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
27696 add -fopenmp to the argv_obstack used when invoking
27697 compile_for_target.
27699 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
27700 add "-m32" or "-m64" to argv_obstack.
27701 (generate_host_descr_file): Likewise, when invoking host_compiler.
27702 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
27705 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
27707 * config/sh/sh-mem.cc: Use constant as second operand when emitting
27710 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
27713 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
27714 constant load if constant operand fits into I08.
27716 2015-01-08 Jakub Jelinek <jakub@redhat.com>
27719 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
27720 and TREE_THIS_VOLATILE for MEM_REFs.
27721 (build5_stat): Fix up initialization of TREE_READONLY and
27722 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
27724 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
27727 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
27728 of r for the second alternative of the destination operand.
27730 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
27733 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
27735 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
27737 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
27739 ([-fivar-visibility], [-fvisibility]): Likewise.
27741 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
27743 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
27744 the file where @code, @command, etc is more appropriate.
27746 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
27748 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
27749 of -mrecip= documentation.
27751 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27754 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
27755 correct reload handler if -m32 -mpowerpc64 is used.
27757 2015-01-06 Tom de Vries <tom@codesourcery.com>
27759 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
27761 2015-01-08 Christian Bruel <christian.bruel@st.com>
27764 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
27766 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
27768 PR tree-optimization/63259
27769 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
27770 if optab exists for 16bit byteswap.
27772 2015-01-06 Jakub Jelinek <jakub@redhat.com>
27774 * opts.c (common_handle_option): Add support for
27775 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
27776 * doc/invoke.texi: Document -fno-sanitize=all,
27777 -f{,no-}sanitize-recover=all. Document that
27778 -fsanitize=float-cast-overflow is not enabled
27779 by -fsanitize=undefined. Fix up documentation
27780 of -f{,no-}sanitize-recover.
27782 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
27784 * config.gcc: Add Visium support.
27785 * configure.ac: Likewise.
27786 * configure: Regenerate.
27787 * doc/extend.texi (interrupt attribute): Add Visium.
27788 * doc/invoke.texi: Document Visium options.
27789 * doc/install.texi: Document Visium target.
27790 * doc/md.texi: Document Visium constraints.
27791 * common/config/visium: New directory.
27792 * config/visium: Likewise.
27794 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
27796 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
27797 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
27799 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
27801 * combine.c (combine_validate_cost): Do not count the cost of a
27802 split I2 twice. Do not display it twice in the dump, either.
27804 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
27806 Revert parts of r219199.
27807 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
27809 ([-Wtraditional]): Restore markup on <limits.h>.
27811 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
27814 * doc/invoke.texi: Document -Wsuggest-override.
27816 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
27818 PR rtl-optimization/64287
27819 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
27820 (process_options): Disable flag_ipa_ra if profiling.
27822 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
27824 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
27826 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
27828 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
27829 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
27830 put under #if TARGET_LOOPS guard.
27832 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
27834 * config/i386/i386.c (output_387_binary_op): Use std::swap.
27836 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
27838 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
27839 * rtl.h (refers_to_regno_p): Add overload.
27841 * bt-load.c: Likewise.
27842 * combine.c: Likewise.
27843 * df-scan.c: Likewise.
27844 * sched-deps.c: Likewise.
27845 * config/s390/s390.c: Likewise.
27846 * config/m32r/m32r.c: Likewise.
27847 * config/rs6000/spe.md: Likewise.
27848 * config/rs6000/rs6000.c: Likewise.
27849 * config/pa/pa.c: Likewise.
27850 * config/stormy16/stormy16.c: Likewise.
27851 * config/cris/cris.c: Likewise.
27852 * config/arc/arc.md: Likewise.
27853 * config/arc/arc.c: Likewise.
27854 * config/sh/sh.md: Likewise.
27855 * config/sh/sh.c: Likewise.
27856 * config/frv/frv.c: Likewise.
27858 2015-01-05 Jakub Jelinek <jakub@redhat.com>
27861 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
27862 call as cleanup of the whole body.
27863 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
27864 * tsan.c (replace_func_exit): New function.
27865 (instrument_func_exit): Moved earlier.
27866 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
27867 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
27869 (tsan_pass): Don't call instrument_func_exit.
27870 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
27871 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
27875 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
27876 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
27877 it to libubsan handler instead of EXPR. Fold comparisons earlier,
27878 if the result is integer_zerop, return NULL_TREE.
27879 * convert.c (convert_to_integer): Pass expr as ARG.
27881 PR tree-optimization/64465
27882 * tree-inline.c (redirect_all_calls): During inlining
27883 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
27884 changed the stmt to a non-throwing call.
27886 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
27888 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
27889 etc markup throughout the file.
27891 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
27893 Enable experimental TSAN support for Ada.
27894 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
27896 2015-01-05 Jakub Jelinek <jakub@redhat.com>
27898 PR tree-optimization/64494
27899 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
27900 clear SSA_NAME_ANTI_RANGE_P flag.
27902 2015-01-05 Marek Polacek <polacek@redhat.com>
27904 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
27906 2015-01-05 Jakub Jelinek <jakub@redhat.com>
27908 Update copyright years.
27910 * gcc.c (process_command): Update copyright notice dates.
27911 * gcov-dump.c: Ditto.
27913 * doc/cpp.texi: Bump @copying's copyright year.
27914 * doc/cppinternals.texi: Ditto.
27915 * doc/gcc.texi: Ditto.
27916 * doc/gccint.texi: Ditto.
27917 * doc/gcov.texi: Ditto.
27918 * doc/install.texi: Ditto.
27919 * doc/invoke.texi: Ditto.
27921 * auto-profile.c, auto-profile.h: Fix up Copyright line.
27923 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
27925 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
27927 ([-fvtable-verify], [-fvtv-debug]): Likewise.
27928 ([-Wabi]): Likewise.
27929 ([-fmessage-length]): Likewise.
27930 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
27931 ([-Wno-discarded-qualifiers]): Likewise.
27932 ([-Wnodiscarded-array-qualifiers]): Likewise.
27933 ([-Wno-virtual-move-assign]): Likewise.
27934 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
27935 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
27936 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
27937 ([-fsanitize-undefined-trap-on-error]): Likewise.
27938 ([-floop-interchange]): Likewise.
27939 ([-ftree-coalesce-inlined-vars]): Likewise.
27940 ([-fvect-cost-model]): Likewise.
27941 ([-flto]): Likewise.
27942 ([--param]): Likewise.
27943 (Spec Files): Likewise.
27944 ([-mstrict-align]): Likewise.
27945 ([-mfix-cortex-a53-835769]): Likewise.
27946 ([-march], [-mtune]): Likewise.
27947 ([-mpic-register]): Likewise.
27948 ([-munaligned-access]): Likewise.
27949 ([-msp8]): Likewise.
27950 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
27951 (AVR Built-in Macros): Likewise.
27952 ([-mpreferred-stack-boundary]): Likewise.
27953 ([-mtune-crtl]): Likewise.
27954 ([-mashf]): Likewise.
27955 ([-mmcu=]): Likewise.
27956 ([-minrt]): Likewise.
27957 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
27958 ([-mupper-regs]): Likewise.
27959 ([-matomic-model]): Likewise.
27960 ([-mdiv]): Likewise.
27961 ([-mzdcbranch]): Likewise.
27962 ([-mdisable-callt]): Likewise.
27963 ([-msoft-float]): Likewise.
27964 ([-m8byte-align]): Likewise.
27965 ([-fstack-reuse]): Likewise.
27967 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
27969 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
27970 Fix markup, light copy-editing.
27971 ([-fauto-profile]): Rewrite to fix formatting and content
27974 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
27976 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
27977 Copy-edit description.
27978 ([-fisolate-erroneous-paths-attribute]): Likewise.
27979 * common.opt (fisolate-erroneous-paths-dereference):
27980 Copy-edit description.
27981 (fisolate-erroneous-paths-attribute): Likewise.
27983 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
27985 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
27988 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
27990 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
27991 ([-fvtv-debug]): Likewise.
27992 ([-Wc++-compat]): Likewise.
27993 ([-Wc++11-compat]): Likewise.
27994 ([-Wc++14-compat]): Likewise.
27995 ([-Wno-sized-deallocation]): Likewise.
27996 ([-femit-class-debug-always]): Likewise.
27997 ([-femit-struct-debug-detailed]): Likewise.
27998 ([-fno-keep-inline-dllexport]): Likewise.
27999 ([-fira-algorithm]): Likewise.
28000 ([-fira-region]): Likewise.
28001 ([-flra-remat]): Likewise.
28002 ([-fipa-ra]): Likewise.
28003 ([-fhoist-adjacent-loads]): Likewise.
28004 ([-fisolate-erroneous-paths-dereference]): Likewise.
28005 ([-fisolate-erroneous-paths-attribute]): Likewise.
28006 ([-ftree-switch-conversion]): Likewise.
28007 ([-ftree-tail-merge]): Likewise.
28008 ([-ftree-loop-if-convert]): Likewise.
28009 ([-ftree-loop-if-convert-stores]): Likewise.
28010 ([-ftree-loop-distribution]): Likewise.
28011 ([-ftree-loop-distribute-patterns]): Likewise.
28012 ([-flto-compression-level]): Likewise.
28013 ([-flto-report]): Likewise.
28014 ([-flto-report-wpa]): Likewise.
28015 ([-fuse-linker-plugin]): Likewise.
28016 ([-mfix-cortex-a53-835769]): Likewise.
28017 ([-mno-fix-cortex-a53-835769]): Likewise.
28018 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
28019 explicit listing; add a note to the discussion indicating they
28020 exist. Reorder table to group similar options. Add missing
28021 @opindex entries. Add @need commands throughout the table to
28022 allow it to be split across multiple pages.
28023 ([-m8bit-idiv]): Fix @opindex.
28024 ([-mavx256-split-unaligned-load]): Likewise.
28025 ([-mavx256-split-unaligned-store]): Likewise.
28026 ([-mstack-protector-guard]): Likewise.
28027 ([-mcpu=]): Likewise.
28028 ([-mcpu]): Likewise.
28029 ([-mpointer-size=]): Likewise.
28031 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
28033 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
28034 instead of `m' constraint. Likewise for unnamed movb comparison
28035 patterns using reg_before_reload_operand predicate.
28036 * config/pa/predicates.md (reg_before_reload_operand): Tighten
28037 predicate to reject register index and LO_SUM DLT memory forms
28040 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
28042 * doc/invoke.texi (Option Summary): Fix spelling of
28043 -fdevirtualize-at-ltrans.
28044 ([-fdevirtualize]): Fix markup.
28045 ([-fdevirtualize-speculatively]): Fix typo.
28046 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
28047 implementor-speaky.
28048 * common.opt (fdevirtualize-at-ltrans): Likewise.
28049 * ipa-devirt.c: Fix typos in comments throughout the file.
28050 (ipa_devirt): Fix typos in format strings for dump output.
28052 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
28054 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
28055 discussion of defaults, light copy-editing.
28057 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
28059 * tsan.c (instrument_expr): corrected previous checkin.
28061 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
28063 Instrument bit field and unaligned accesses for TSAN.
28064 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
28065 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
28066 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
28067 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
28068 unaligned memory regions.
28070 2015-01-01 Anthony Green <green@moxielogic.com>
28072 * config/moxie/predicates.md (moxie_general_movsrc_operand):
28073 Restrict move source register offsets to 16 bits.
28075 Copyright (C) 2015 Free Software Foundation, Inc.
28077 Copying and distribution of this file, with or without modification,
28078 are permitted in any medium without royalty provided the copyright
28079 notice and this notice are preserved.