1 2015-06-01 Martin Liska <mliska@suse.cz>
3 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
6 2015-06-01 Martin Liska <mliska@suse.cz>
8 * cfg.c (initialize_original_copy_tables):Use new type-based pool allocator.
9 (free_original_copy_tables) Likewise.
10 (copy_original_table_clear) Likewise.
11 (copy_original_table_set) Likewise.
13 2015-06-01 Martin Liska <mliska@suse.cz>
15 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based pool allocator.
16 (asan_mem_ref_new) Likewise.
17 (free_mem_ref_resources) Likewise.
19 2015-06-01 Martin Liska <mliska@suse.cz>
21 * var-tracking.c (variable_htab_free):Use new type-based pool allocator.
22 (attrs_list_clear) Likewise.
23 (attrs_list_insert) Likewise.
24 (attrs_list_copy) Likewise.
25 (shared_hash_unshare) Likewise.
26 (shared_hash_destroy) Likewise.
27 (unshare_variable) Likewise.
28 (var_reg_delete_and_set) Likewise.
29 (var_reg_delete) Likewise.
30 (var_regno_delete) Likewise.
31 (drop_overlapping_mem_locs) Likewise.
32 (variable_union) Likewise.
33 (insert_into_intersection) Likewise.
34 (canonicalize_values_star) Likewise.
35 (variable_merge_over_cur) Likewise.
36 (dataflow_set_merge) Likewise.
37 (remove_duplicate_values) Likewise.
38 (variable_post_merge_new_vals) Likewise.
39 (dataflow_set_preserve_mem_locs) Likewise.
40 (dataflow_set_remove_mem_locs) Likewise.
41 (variable_from_dropped) Likewise.
42 (variable_was_changed) Likewise.
43 (set_slot_part) Likewise.
44 (clobber_slot_part) Likewise.
45 (delete_slot_part) Likewise.
46 (loc_exp_insert_dep) Likewise.
47 (notify_dependents_of_changed_value) Likewise.
48 (emit_notes_for_differences_1) Likewise.
49 (vt_emit_notes) Likewise.
50 (vt_initialize) Likewise.
51 (vt_finalize) Likewise.
53 2015-06-01 Martin Liska <mliska@suse.cz>
55 * ira-color.c (init_update_cost_records):Use new type-based pool allocator.
56 (get_update_cost_record) Likewise.
57 (free_update_cost_record_list) Likewise.
58 (finish_update_cost_records) Likewise.
59 (initiate_cost_update) Likewise.
61 2015-06-01 Martin Liska <mliska@suse.cz>
63 * lra.c (init_insn_regs): Use new type-based pool allocator.
64 (new_insn_reg) Likewise.
65 (free_insn_reg) Likewise.
66 (free_insn_regs) Likewise.
67 (finish_insn_regs) Likewise.
68 (init_insn_recog_data) Likewise.
69 (init_reg_info) Likewise.
70 (finish_reg_info) Likewise.
71 (lra_free_copies) Likewise.
72 (lra_create_copy) Likewise.
73 (invalidate_insn_data_regno_info) Likewise.
75 2015-06-01 Martin Liska <mliska@suse.cz>
77 * lra-lives.c (free_live_range): Use new type-based pool allocator.
78 (free_live_range_list) Likewise.
79 (create_live_range) Likewise.
80 (copy_live_range) Likewise.
81 (lra_merge_live_ranges) Likewise.
82 (remove_some_program_points_and_update_live_ranges) Likewise.
83 (lra_live_ranges_init) Likewise.
84 (lra_live_ranges_finish) Likewise.
86 2015-06-01 Martin Liska <mliska@suse.cz>
88 * et-forest.c (et_new_occ): Use new type-based pool allocator.
89 (et_new_tree): Likewise.
90 (et_free_tree): Likewise.
91 (et_free_tree_force): Likewise.
92 (et_free_pools): Likewise.
95 2015-06-01 Martin Liska <mliska@suse.cz>
97 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
99 * alloc-pool.h (pool_allocator::pool_allocator): New function.
100 (pool_allocator::release): Likewise.
101 (inline pool_allocator::release_if_empty): Likewise.
102 (inline pool_allocator::~pool_allocator): Likewise.
103 (pool_allocator::allocate): Likewise.
104 (pool_allocator::remove): Likewise.
106 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
108 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
111 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
113 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
115 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
116 (arm_macro_fusion_p): Likewise.
117 (arm_macro_fusion_pair_p): Likewise.
119 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
121 * config/aarch64/aarch64-protos.h (tune_params): Rename
122 fuseable_ops to fusible_ops.
123 * config/aarch64/aarch64.c (generic_tunings): Rename
124 fuseable_ops to fusible_ops.
125 (cortexa53_tunings): Likewise.
126 (cortexa57_tunings): Likewise.
127 (thunderx_tunings): Likewise.
128 (xgene1_tunings): Likewise.
129 (aarch64_macro_fusion_p): Likewise.
130 (aarch64_macro_fusion_pair_p): Likewise.
132 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
134 * config/s390/driver-native.c: New file.
135 * config/s390/x-native: New file.
136 * config.host: Add new files for s390.
137 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
139 * config.gcc: Likewise.
140 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
141 * config/s390/s390-opts.h (enum processor_type): Ditto.
142 * config/s390/s390.c (s390_option_override): Catch unhandled
145 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
148 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
149 redirection for instrumented calls.
150 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
151 (append_compiler_options): Append -fcheck-pointer-bounds.
152 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
153 (chkp_redirect_edge): New.
154 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
155 (chkp_redirect_edge): New.
157 2015-06-01 Richard Biener <rguenther@suse.de>
159 PR tree-optimization/66280
160 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
163 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
165 * config/aarch64/aarch64.md
166 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
169 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
171 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
172 Remove obsolete kludge.
174 2015-06-01 Richard Biener <rguenther@suse.de>
176 * tree-ssa-reassoc.c (get_rank): Simplify.
178 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
180 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
181 * configure: Regenerated.
183 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
185 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
186 issue (add space between string literal and macro).
187 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
189 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
191 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
192 implict or explicit -fPIE or -fpie.
194 2015-05-30 Mike Frysinger <vapier@gentoo.org>
196 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
198 2015-05-28 DJ Delorie <dj@redhat.com>
200 * expmed.c (extract_bit_field_1): Avoid clobbering a
201 yet-to-be-used base/index register.
203 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
205 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
206 (alias_stats): Add num_universal.
207 (alias_set_subset_of): Special case pointers; be ready for NULL
209 (alias_sets_conflict_p): Special case pointers; be ready for NULL
211 (init_alias_set_entry): Break out from ...
212 (record_alias_subset): ... here; propagate new fields;
213 allocate children only when really needed.
214 (get_alias_set): Do less generous pointer globbing.
215 (dump_alias_stats_in_alias_c): Update statistics.
217 2015-05-30 Alan Modra <amodra@gmail.com>
219 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
220 correct block for use of r12.
221 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
223 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
226 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
229 2015-05-29 Jakub Jelinek <jakub@redhat.com>
231 PR tree-optimization/66142
232 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
233 virtual phis that feed themselves.
235 2015-05-29 Richard Biener <rguenther@suse.de>
237 PR tree-optimization/66314
238 * tree-ssa-threadupdate.c (create_block_for_threading): Add
239 parameter that says which loop the new block belongs to.
240 (ssa_create_duplicates): Blocks duplicated for the threaded
241 path belong to the loop of the thread destination.
243 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
245 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
246 to cleanup-saved-temps.
247 * doc/sourcebuild.texi (Clean up generated test files): Expand
249 (dg-keep-saved-temps): Document new proc.
250 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
251 cleanup-saved-temps): Remove.
253 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
255 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
257 * configure: Regenerate.
259 2015-05-28 Mike Frysinger <vapier@gentoo.org>
261 * config/nios2/linux.h (CPP_SPEC): Define.
263 2015-05-28 Mike Frysinger <vapier@gentoo.org>
265 * config/microblaze/linux.h (CPP_SPEC): Define.
267 2015-05-28 Mike Frysinger <vapier@gentoo.org>
269 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
270 -pthread is specified.
272 2015-05-28 Richard Biener <rguenther@suse.de>
274 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
275 (vect_fixup_scalar_cycles_with_patterns): Likewise.
276 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
278 (vect_create_epilog_for_reduction): Properly handle reductions
280 (vectorizable_reduction): Likewise.
281 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
283 (vect_get_constant_vectors): Create the correct number of
284 initial values for reductions.
285 (vect_schedule_slp_instance): Handle reduction chains that are
286 type changing properly.
287 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
289 2015-05-28 Richard Biener <rguenther@suse.de>
291 PR tree-optimization/66142
292 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
293 values better in memcpy destination handling. Handle non-aliasing
296 2015-05-28 Lawrence Velázquez <vq@larryv.me>
299 * config/darwin-c.c (version_components): New global enum.
300 (parse_version, version_as_legacy_macro)
301 (version_as_modern_macro, macosx_version_as_macro): New functions.
302 (version_as_macro): Remove.
303 (darwin_cpp_builtins): Use new function.
305 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
307 * builtins.c (expand_builtin_acc_on_device): Mark parameters
308 with ATTRIBUTE_UNUSED.
310 2015-05-28 Julian Brown <julian@codesourcery.com>
314 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
315 sequence for !ACCEL_COMPILER.
317 2015-05-28 Nick Clifton <nickc@redhat.com>
319 * config/rx/rx.c (push_regs): New function. Extracts code from...
320 (rx_expand_prologue): ... here. Use push_regs to push even small
322 (pop_regs): New function.
323 (rx_expand_epilogue): Use pop_regs to pop even small spans of
326 2015-05-28 Richard Biener <rguenther@suse.de>
328 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
330 (SLP_INSTANCE_BODY_COST_VEC): Remove.
331 (vect_update_slp_costs_according_to_vf): Likewise.
332 (vect_slp_analyze_operations): Update prototype.
333 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
334 vect_update_slp_costs_according_to_vf, adjust.
335 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
336 (vect_analyze_slp_cost_1): Likewise.
337 (vect_analyze_slp_cost): Likewise. Properly deal with
338 widening reduction ops. Commit body costs.
339 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
340 cost for loops from here.
341 (vect_slp_analyze_operations): But do it from here when
342 the vectorization factor is known and stmts are analyzed.
343 (vect_bb_vectorization_profitable_p): Simplify.
344 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
345 (vect_update_slp_costs_according_to_vf): Remove.
347 2015-05-27 Magnus Granberg <zorry@gentoo.org>
348 H.J. Lu <hongjiu.lu@intel.com>
350 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
351 (BUILD_CFLAGS): Likewise.
352 (BUILD_CXXFLAGS): Likewise.
353 (LINKER): Add @NO_PIE_FLAG@.
354 (BUILD_LDFLAGS): Likewise.
355 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
356 --enable-default-pie.
357 * common.opt (fPIE): Initialize to -1.
359 (no-pie): New option.
360 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
361 * configure.ac: Add --enable-default-pie.
362 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
363 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
364 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
365 * gcc.c (NO_PIE_SPEC): New.
366 (PIE_SPEC): Likewise.
367 (NO_FPIE1_SPEC): Likewise.
368 (FPIE1_SPEC): Likewise.
369 (NO_FPIE2_SPEC): Likewise.
370 (FPIE2_SPEC): Likewise.
371 (NO_FPIE2_SPEC): Likewise.
372 (FPIE_SPEC): Likewise.
373 (NO_FPIE_SPEC): Likewise.
374 (NO_FPIC1_SPEC): Likewise.
375 (FPIC1_SPEC): Likewise.
376 (NO_FPIC2_SPEC): Likewise.
377 (FPIC2_SPEC): Likewise.
378 (NO_FPIC2_SPEC): Likewise.
379 (FPIC_SPEC): Likewise.
380 (NO_FPIC_SPEC): Likewise.
381 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
382 (FPIE1_OR_FPIC1_SPEC): Likewise.
383 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
384 (FPIE2_OR_FPIC2_SPEC): Likewise.
385 (NO_FPIE_AND_FPIC_SPEC): Likewise.
386 (FPIE_OR_FPIC_SPEC): Likewise.
387 (LD_PIE_SPEC): Likewise.
388 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
389 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
390 * config/darwin.h (PIE_SPEC): Renamed to ...
391 (DARWIN_PIE_SPEC): This.
392 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
393 * config/darwin9.h (PIE_SPEC): Renamed to ...
394 (DARWIN_PIE_SPEC): This.
395 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
396 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
397 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
399 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
400 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
401 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
402 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
403 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
404 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
405 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
406 * config/m32r/m32r.h (ASM_SPEC): Likewise.
407 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
408 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
409 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
410 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
411 * config/sparc/linux.h (ASM_SPEC): Likewise.
412 * config/sparc/linux64.h (ASM_SPEC): Likewise.
413 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
414 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
415 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
416 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
417 * config/sparc/sparc.h (ASM_SPEC): Likewise.
418 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
419 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
420 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
421 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
422 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
423 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
424 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
425 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
426 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and
428 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use
429 NO_FPIE_AND_FPIC_SPEC.
430 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
431 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
432 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
433 * config/vax/linux.h (ASM_SPEC): Likewise.
434 * doc/install.texi: Document --enable-default-pie.
435 * doc/invoke.texi: Document -no-pie.
436 * config.in: Regenerated.
437 * configure: Likewise.
439 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
441 PR rtl-optimization/66168
442 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
443 can_move_invariant_reg.
445 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
448 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
449 REG_EQUAL note when doing insert.
451 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
452 instead of "%d" for 'o' operand.
454 2015-05-27 Nathan Sidwell <nathan@acm.org>
457 * tree.c (build_pointer_type_for_mode): Canonical type does not
458 inherit can_alias_all.
459 (build_reference_type_for_mode): Likewise.
461 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
463 * expr.h (array_at_struct_end_p): Move to...
464 (array_ref_element_size): Likewise.
465 (component_ref_field_offset): Likewise.
466 * tree.h (array_ref_element_size): ...here.
467 (array_at_struct_end_p): Likewise.
468 (component_ref_field_offset): Likewise.
469 * expr.c (array_ref_element_size): Move to...
470 (array_ref_low_bound): Likewise.
471 (array_at_struct_end_p): Likewise.
472 (array_ref_up_bound): Likewise.
473 (component_ref_field_offset): Likewise.
474 * tree.c (array_ref_element_size): ...here.
475 (array_ref_low_bound): Likewise.
476 (array_ref_up_bound): Likewise.
477 (array_at_struct_end_p): Likewise.
478 (component_ref_field_offset): Likewise.
480 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
481 Szabolcs Nagy <szabolcs.nagy@arm.com>
483 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
485 2015-05-27 Jason Merrill <jason@redhat.com>
488 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
489 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
490 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
492 2015-05-22 Aditya Kumar <hiraditya@msn.com>
494 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
497 * statistics.c (statistics_fini_pass): Print pass name.
499 2015-05-27 Richard Biener <rguenther@suse.de>
501 PR tree-optimization/66272
503 2014-08-15 Richard Biener <rguenther@suse.de>
505 PR tree-optimization/62031
506 * tree-data-ref.c (dr_analyze_indices): Do not set
507 DR_UNCONSTRAINED_BASE.
508 (dr_may_alias_p): All indirect accesses have to go the
509 formerly DR_UNCONSTRAINED_BASE path.
510 * tree-data-ref.h (struct indices): Remove
511 unconstrained_base member.
512 (DR_UNCONSTRAINED_BASE): Remove.
514 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
516 * dwarf2out.c: Remove block_map.
517 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
518 (gen_lexical_block_die): Same.
519 (dwarf2out_function_decl): Remove block_map use.
520 (dwarf2out_c_finalize): Same.
521 * tree-core.h (struct tree_block): Add die field.
522 * tree.h (BLOCK_DIE): New.
524 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
527 * expr.c (memory_load_overlap): New function.
528 (emit_push_insn): When pushing partial args to the stack would
529 clobber the register part load the overlapping part into a pseudo
530 and put it into the hard reg after pushing. Change return type
531 to bool. Add bool argument.
532 * expr.h (emit_push_insn): Change return type to bool.
534 * calls.c (expand_call): Cancel sibcall optimization when encountering
535 partial argument on targets with ARGS_GROW_DOWNWARD and
536 !STACK_GROWS_DOWNWARD.
537 (emit_library_call_value_1): Update callsite of emit_push_insn.
538 (store_one_arg): Likewise.
540 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
542 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
544 2015-05-27 Martin Liska <mliska@suse.cz>
546 * Makefile.in: Add additional dependencies related to memory report
548 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
549 * bitmap.c (struct bitmap_descriptor_d): Remove.
550 (struct loc): Likewise.
551 (struct bitmap_desc_hasher): Likewise.
552 (bitmap_desc_hasher::hash): Likewise.
553 (bitmap_desc_hasher::equal): Likewise.
554 (get_bitmap_descriptor): Likewise.
555 (bitmap_register): User new memory descriptor API.
556 (register_overhead): Likewise.
557 (bitmap_find_bit): Register nsearches and search_iter statistics.
558 (struct bitmap_output_info): Remove.
559 (print_statistics): Likewise.
560 (dump_bitmap_statistics): Use new memory descriptor.
561 * bitmap.h (struct bitmap_usage): New class.
562 * genmatch.c: Extend header file inclusion.
563 * genpreds.c: Likewise.
564 * ggc-common.c (struct ggc_usage): New class.
565 (struct ggc_loc_desc_hasher): Remove.
566 (ggc_loc_desc_hasher::hash): Likewise.
567 (ggc_loc_desc_hasher::equal): Likewise.
568 (struct ggc_ptr_hash_entry): Likewise.
569 (struct ptr_hash_hasher): Likewise.
570 (ptr_hash_hasher::hash): Likewise.
571 (ptr_hash_hasher::equal): Likewise.
572 (make_loc_descriptor): Likewise.
573 (ggc_prune_ptr): Likewise.
574 (dump_ggc_loc_statistics): Use new memory descriptor.
575 (ggc_record_overhead): Likewise.
576 (ggc_free_overhead): Likewise.
577 (final_cmp_statistic): Remove.
578 (cmp_statistic): Likewise.
579 (ggc_add_statistics): Liekwise.
580 (ggc_prune_overhead_list): Likewise.
581 * hash-map-traits.h: New file.
582 * hash-map.h (struct default_hashmap_traits): Move the traits to a
583 separate header file.
584 * hash-set.h: Pass memory statistics info to ctor.
585 * hash-table.c (void dump_hash_table_loc_statistics): New function.
586 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
587 (hash_table::~hash_table): Register memory release operation.
588 (hash_table::alloc_entries): Handle memory allocation operation.
589 (hash_table::expand): Likewise.
590 * inchash.c (iterative_hash_hashval_t): Move implementation to header
592 (iterative_hash_host_wide_int): Likewise.
593 * inchash.h (class hash): Likewise.
594 * mem-stats-traits.h: New file.
595 * mem-stats.h: New file.
596 (mem_location): Add new class.
597 (mem_usage): Likewise.
598 (mem_alloc_description): Likewise.
599 * sese.c: Add new header file inclusision.
600 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
602 * tree-sra.c: Add new header file inclusision.
603 * vec.c (struct vec_descriptor): Remove.
604 (hash_descriptor): Likewise.
605 (struct vec_usage): Likewise.
606 (struct ptr_hash_entry): Likewise.
607 (hash_ptr): Likewise.
609 (vec_prefix::register_overhead): Use new memory descriptor API.
610 (vec_prefix::release_overhead): Likewise.
611 (add_statistics): Remove.
612 (dump_vec_loc_statistics): Use new memory descriptor API.
613 * vec.h (struct vec_prefix): Likewise.
614 (va_heap::reserve): Likewise.
615 (va_heap::release): Likewise.
616 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
618 2015-05-27 Richard Biener <rguenther@suse.de>
620 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
621 earlier and remove ??? comment.
622 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
623 and got called from loop analysis bail out. Always pass the SLP
624 node to the vectorizable_* functions.
625 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
626 the premature SLP check here.
627 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
629 (vect_detect_hybrid_slp_1): Likewise.
631 2015-05-26 Jeff Law <law@redhat.com>
633 * combine.c (find_split_point): Verify that the shift count is a
634 constant when choosing (plus (ashift ...)) as a split point.
636 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
637 No functional changes.
639 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
641 * ipa-polymorphic-call.c
642 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
643 case when call target is already known.
645 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
648 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
649 take into account the case that operands[1] and operands[2]
650 are the same register.
652 2015-05-26 Michael Matz <matz@suse.de>
656 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
658 (vect_create_vectorized_demotion_stmts): Always set
659 STMT_VINFO_VEC_STMT, also with SLP.
660 (vectorizable_store): Handle strided group stores.
662 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
665 * config/aarch64/aarch64.md
666 (*adds_shift_imm_<mode>): New pattern.
667 (*subs_shift_imm_<mode>): Likewise.
668 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
669 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
670 (*add_uxt<mode>_shift2): Likewise.
671 (*add_uxtsi_shift2_uxtw): Likewise.
672 (*sub_uxt<mode>_shift2): Likewise.
673 (*sub_uxtsi_shift2_uxtw): Likewise.
675 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
677 * config/rs6000/constraints.md (Y, U): Use match_test.
679 2015-05-26 Christian Bruel <christian.bruel@st.com>
682 * config/arm/arm.c (arm_option_check_internal)
683 (arm_option_params_internal): Check opts->target_flags to set macros.
684 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
685 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
686 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
687 (builtin_define): Replaced with def_or_undef_macro.
688 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
689 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
690 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
691 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
692 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
693 (TARGET_ARM_FEATURE_LDREX_P)
694 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
695 * config/arm/arm-c.c (def_or_undef_macro): New function.
696 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
698 2015-05-26 Christian Bruel <christian.bruel@st.com>
700 * c-common.h (builtin_define_with_int_value)
701 (builtin_define_type_sizeof): Declare.
702 * c-cppbuiltin.c (builtin_define_with_int_value)
703 (builtin_define_type_sizeof): Externalize.
704 (builtin_define_std): Cleanup declaration.
705 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
706 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
707 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
708 (builtin_define, builtin_assert): New macros.
710 2015-05-26 Richard Biener <rguenther@suse.de>
712 PR tree-optimization/66142
713 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
714 MEM_REFs for the same base address.
716 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
719 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
721 2015-05-26 Jason Merrill <jason@redhat.com>
723 * configure.ac: Set CXXFLAGS for ISL test.
724 * configure: Regenerate.
726 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
728 * configure: Regenerate.
730 2015-05-26 Richard Biener <rguenther@suse.de>
732 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
733 X % C -> X & (C - 1) for C being a power-of two to ...
734 * match.pd: ... patterns.
736 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
738 * match.pd (swapped_tcc_comparison): New operator list.
739 (-A CMP -B): New simplification.
740 * fold-const.c (fold_comparison): Remove corresponding code.
742 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
744 * caller-save.c (init_caller_save): Base temporary register numbers
745 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
746 * cfgloopanal.c (init_set_costs): Likewise.
747 * dojump.c (prefer_and_bit_test): Likewise.
748 * expr.c (init_expr_target): Likewise.
749 * ira.c (setup_prohibited_mode_move_regs): Likewise.
750 * lower-subreg.c (init_lower_subreg): Likewise.
751 * postreload.c (reload_cse_regs_1): Likewise.
753 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
755 * gensupport.h (compute_test_codes): Declare.
756 * gensupport.c (compute_predicate_codes): Rename to...
757 (compute_test_codes): ...this. Generalize error message.
758 (process_define_predicate): Update accordingly.
759 * genpreds.c (compute_maybe_allows): Delete.
760 (add_constraint): Use compute_test_codes to determine whether
761 something can accept a SUBREG, REG or MEM.
763 2015-05-26 Torvald Riegel <triegel@redhat.com>
765 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
766 'memory model' to align with C++11; fix description of memory orders;
769 2015-05-26 Richard Biener <rguenther@suse.de>
771 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
772 (vect_analyze_loop_operations): ... here. Remove slp parameter,
773 detect whether we apply SLP. Remove call to
774 vect_update_slp_costs_according_to_vf.
775 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
776 vect_update_slp_costs_according_to_vf from here. Dispatch
777 to vect_slp_analyze_operations to analyze SLP stmts.
778 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
779 unused bb_vec_info parameter, adjust assert.
780 (vect_slp_analyze_operations): Pass in the slp instance tree
781 instead of bb_vec_info.
782 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
783 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
785 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
787 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
788 Q_REGS. Expand comment.
789 (REG_CLASS_NAMES): Ditto.
790 (REG_CLASS_CONTENTS): Ditto.
792 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
795 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
796 when LEGACY_INT_REGNO_P is processed.
798 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
800 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
802 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
804 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
805 register if not marked dead/unused, before return.
807 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
810 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
811 is set; check for assembler name at LTO time.
812 (type_in_anonymous_namespace): Remove hacks, check that all
813 anonymous types are called "<anon>"
814 (odr_type_p): Simplify; add check for "<anon>"
815 (odr_subtypes_equivalent): Add odr_type_p check.
816 * tree.c (need_assembler_name_p): Even anonymous namespace needs
819 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
821 * ipa-utils.h (method_class_type): Remove.
822 * cgraphunit.c (walk_polymorphic_call_targets): Use
823 TYPE_METHOD_BASETYPE.
824 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
825 on main variants only.
826 (method_class_type): Remove.
827 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
828 (build_type_inheritance_graph): Likewise.
829 * ipa-icf.c (sem_function::equals_wpa): Likewise.
830 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
831 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
833 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
835 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
836 is_typedef_decl, typedef_variant_p): Constify.
837 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
838 is_typedef_decl, typedef_variant_p): Constify.
840 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
842 * defaults.h (gen_tablejump): New function.
843 (HAVE_tablejump): Add default value.
847 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
849 * defaults.h (gen_store_multiple): New function.
850 (HAVE_store_multiple): Add default value.
851 * expr.c (move_block_from_reg): Adjust.
853 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
855 * defaults.h (gen_load_multiple): New function.
856 (HAVE_load_multiple): Add default value.
857 * expr.c (move_block_to_reg): Adjust.
859 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
861 * defaults.h (gen_mem_signal_fence): New function.
862 (HAVE_mem_signal_fence): Add default value.
865 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
867 * defaults.h (gen_memory_barrier): New function.
868 (HAVE_memory_barrier): Add default value.
871 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
873 * defaults.h (gen_mem_thread_fence): New function.
874 (HAVE_mem_thread_fence): Add default definition.
877 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
879 * combine.c (find_split_point): Check the value of HAVE_lo_sum
880 instead of if it is defined.
881 (combine_simplify_rtx): Likewise.
882 * lra-constraints.c (process_address_1): Likewise.
883 * config/darwin.c: Adjust.
884 * genconfig.c (main): Always define HAVE_lo_sum.
886 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
888 * genmatch.c (parser::parse_operation): Reject expanding
889 operator-list inside 'for'.
891 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
893 * genmatch.c (parser::parse_for): Reject iterator if used as
896 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
898 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
899 after end of id-list.
901 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
903 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
904 we do not try to compute canonical type for type that does not need
906 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
908 * tree.h (type_with_alias_set_p): New.
910 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
912 * tree.c (gimple_canonical_types_compatible_p): Do not compare
914 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
916 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
918 * Makefile.in (check_gcc_parallelize): Delete.
919 (lang_checks_parallelized): Update comment.
921 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
923 PR rtl-optimization/66237
924 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
925 location of an "as_a" cast.
927 2015-05-22 Jeff Law <law@redhat.com>
929 * config/pa/pa.md (non-canonical shift-add insns): Remove.
930 (peepholes with non-canonical RTL sources): Remove.
931 (peepholes for indexed stores of FP regs in integer modes): Match and
932 generate canonical RTL.
934 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
936 PR tree-optimization/63387
937 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
938 ((x ord x) & (y ord y) -> (x ord y),
939 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
940 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
941 vectors like scalars.
943 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
945 * convert.c (convert_to_integer, convert_to_vector): Include the
946 types in the error message.
948 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
950 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
953 2015-05-22 Jeff Law <law@redhat.com>
955 * config/pa/pa.md (integer_indexed_store splitters): Use
956 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
957 insns -- adjusting the constant 2nd operand accordingly.
959 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
960 (plus (ashift X log2) Y) if it is a split point.
962 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
963 out of hppa_legitimize_address to handle both forms of a multiply
965 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
966 Always generate the ASHIFT variant as the result is not directly
967 used in a MEM. Update comments and refactor slightly to improve
970 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
973 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
974 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
975 (aarch64_composite_type_p): Return false if given type and mode are
978 2015-05-22 Richard Biener <rguenther@suse.de>
980 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
982 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
983 patterns when determining whether SLP is pure.
984 (vect_is_slp_reduction): Remove check for pattern stmts.
985 (vect_is_simple_reduction_1): Remove dead code.
986 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
987 (vect_get_and_check_slp_defs): Pass in the stmt number.
988 Allow the first def in a reduction to be not a pattern stmt when
989 the rest of the stmts def are patterns.
990 (vect_build_slp_tree_1): Allow tcc_expression codes like
991 SAD_EXPR and DOT_PROD_EXPR.
992 (vect_build_slp_tree): Adjust.
993 (vect_analyze_slp): Refactor and move BB vect error message ...
994 (vect_slp_analyze_bb_1): ... here.
996 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
998 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
999 for CSWTCH temporary.
1001 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1003 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
1004 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
1007 2015-05-22 Richard Biener <rguenther@suse.de>
1009 PR tree-optimization/66251
1010 * tree-vect-stmts.c (vectorizable_conversion): Properly
1011 set STMT_VINFO_VEC_STMT even for the SLP case.
1013 2015-05-22 Marek Polacek <polacek@redhat.com>
1015 * doc/extend.texi: Use @pxref instead of @xref.
1017 2015-05-22 hiraditya <hiraditya@msn.com>
1019 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
1022 2015-05-22 Richard Biener <rguenther@suse.de>
1024 PR tree-optimization/65701
1025 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1026 Move peeling cost models into one place. Peel for alignment
1027 for single loads only if an aligned load is cheaper than
1030 2015-05-22 Marek Polacek <polacek@redhat.com>
1033 * doc/extend.texi (Enumerator Attributes): New section.
1034 Document syntax of enumerator attributes.
1036 2015-05-22 Richard Biener <rguenther@suse.de>
1038 * tree-vect-loop.c (get_reduction_op): New function.
1039 (vect_model_reduction_cost): Use it, add reduc_index parameter.
1040 Make ready for BB reductions.
1041 (vect_create_epilog_for_reduction): Use get_reduction_op.
1042 (vectorizable_reduction): Init reduc_index to a valid value.
1043 Adjust vect_model_reduction_cost call.
1044 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
1045 operand for reduction defaults. Add SAD_EXPR support.
1046 Assert we have a neutral op for SLP reductions.
1047 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
1048 walking pattern stmt ops only recurse to SSA names.
1050 2015-05-22 Richard Biener <rguenther@suse.de>
1052 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
1053 assert with guard, remove check on detected reduction.
1054 (vect_recog_sad_pattern): Likewise.
1055 (vect_recog_widen_sum_pattern): Likewise.
1057 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1059 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
1060 __always_inline__ attribute.
1061 (vaesdq_u8): Likewise.
1062 (vaesmcq_u8): Likewise.
1063 (vaesimcq_u8): Likewise.
1064 (vsha1cq_u32): Likewise.
1065 (vsha1mq_u32): Likewise.
1066 (vsha1pq_u32): Likewise.
1067 (vsha1h_u32): Likewise.
1068 (vsha1su0q_u32): Likewise.
1069 (vsha1su1q_u32): Likewise.
1070 (vsha256hq_u32): Likewise.
1071 (vsha256h2q_u32): Likewise.
1072 (vsha256su0q_u32): Likewise.
1073 (vsha256su1q_u32): Likewise.
1074 (vmull_p64): Likewise.
1075 (vmull_high_p64): Likewise.
1077 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1079 * final.c (final_scan_insn): Don't check HAVE_peephole with the
1081 * output.h: Likewise.
1082 * genconfig.c (main): Alwways define HAVE_peephole.
1083 * genpeep.c: Don't emit checks of HAVE_peephole.
1085 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1087 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
1088 check HAVE_conditional_move with the preprocessor.
1090 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1092 * genconfig.c (main): Always define HAVE_conditional_move.
1093 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
1094 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
1097 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1099 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
1100 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
1101 and FRAME_POINTER_REGNUM with the preprocessor.
1103 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1105 * defaults.h: Add default for STACK_PUSH_CODE.
1106 * expr.c: Don't redefine STACK_PUSH_CODE.
1107 * recog.c: Likewise.
1109 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1111 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
1112 sched-deps.c: Use if instead of preprocessor checks with
1113 STACK_GROWS_DOWNWARD.
1115 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1117 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
1119 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
1120 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
1121 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
1122 * doc/tm.texi: Regenerate.
1124 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
1127 * config/i386/constraints.md (Bg): New constraint for GOT memory
1129 * config/i386/i386.md (*call_got_x32): New pattern.
1130 (*call_value_got_x32): Likewise.
1131 * config/i386/predicates.md (GOT_memory_operand): New predicate.
1133 2015-05-21 Jakub Jelinek <jakub@redhat.com>
1135 PR tree-optimization/66233
1136 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
1139 2015-05-21 Jeff Law <law@redhat.com>
1141 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
1142 than MULT for shadd sequences.
1144 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
1146 * alias.c (alias_stats): New static var.
1147 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
1148 (dump_alias_stats_in_alias_c): New function.
1149 * alias.h (dump_alias_stats_in_alias_c): Declare.
1150 * tree-ssa-alias.c (dump_alias_stats): Call it.
1152 2015-05-08 Michael Matz <matz@suse.de>
1154 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
1156 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
1157 (STMT_VINFO_STRIDED_P): ... this.
1158 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
1159 (vect_verify_datarefs_alignment): Likewise.
1160 (vect_enhance_data_refs_alignment): Likewise.
1161 (vect_analyze_data_ref_access): Likewise.
1162 (vect_analyze_data_refs): Accept strided stores.
1163 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
1164 (vect_model_load_cost): Adjust for macro rename.
1165 (vectorizable_mask_load_store): Likewise.
1166 (vectorizable_load): Likewise.
1167 (vectorizable_store): Open code strided stores.
1169 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1171 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
1174 2015-05-21 Richard Biener <rguenther@suse.de>
1177 * match.pd: Guard pattern optimzing (int)(float)int
1178 conversions to apply only on GIMPLE.
1180 2015-05-21 Jeff Law <law@redhat.com>
1182 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
1183 multiply-accumulate/shift-add insn generation.
1185 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
1188 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
1189 operands[1] are the same.
1191 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1194 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
1195 build_distinct_type_copy to copy bounds.
1197 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
1199 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
1200 Change to unsigned int.
1202 2015-05-20 Jeff Law <law@redhat.com>
1204 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
1205 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
1206 (pa_shadd_constant_p): Allow constants for shadd insns rather
1207 than valid scaling constants for memory addresses.
1208 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
1209 * config/pa/predicates.md (mem_shadd_operand): New predicate.
1210 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
1211 (shift-add insns using ASHIFT): New patterns.
1213 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
1215 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
1217 (fix_up_fall_thru_edges): Likewise.
1218 (fix_crossing_conditional_branches): Likewise. Promote jump targets
1219 from to rtx_insn to rtx_code_label where feasible.
1220 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
1221 gen_move_insn (returned type changed to rtx_insn).
1222 * builtins.c (expand_errno_check): Fix arguments of
1223 do_compare_rtx_and_jump (now expects rtx_code_label).
1224 (expand_builtin_acc_on_device): Likewise.
1225 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
1226 invert_jump (now exprects rtx_jump_insn).
1227 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
1228 (construct_init_block): Use rtx_code_label.
1229 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
1230 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
1231 calling redirect_jump.
1232 (patch_jump_insn): Likewise.
1233 (redirect_branch_edge): Likewise.
1234 (force_nonfallthru_and_redirect): Likewise.
1235 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
1237 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
1238 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
1239 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
1240 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
1241 to store the value retured by gen_label_rtx.
1242 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
1244 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
1245 (split_branches): Fix calls of redirect_jump.
1246 * dojump.c (jumpifnot): Promote argument type from rtx to
1248 (jumpifnot_1): Likewise.
1250 (jumpif_1): Likewise.
1251 (do_jump_1): Likewise.
1252 (do_jump): Likewise. Use rtx_code_label when feasible.
1253 (do_jump_by_parts_greater_rtx): Likewise.
1254 (do_jump_by_parts_zero_rtx): Likewise.
1255 (do_jump_by_parts_equality_rtx): Likewise.
1256 (do_compare_rtx_and_jump): Likewise.
1257 * dojump.h: Update function prototypes.
1258 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
1260 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
1262 (emit_label_before): Likewise.
1263 (emit_jump_insn_after_noloc): Likewise.
1264 (emit_jump_insn_after_setloc): Likewise.
1265 (emit_jump_insn_after): Likewise
1266 (emit_jump_insn_before_setloc): Likewise.
1267 (emit_jump_insn_before): Likewise.
1268 (emit_label_before): Promote return type to rtx_code_label.
1269 (emit_label): Likewise.
1270 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
1271 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
1273 (emit_stack_restore): Likewise.
1274 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
1275 (do_cmp_and_jump): Likewise.
1276 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
1277 from rtx to rtx_code_label.
1278 (gen_move_insn_uncast): New function.
1279 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
1280 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
1281 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
1282 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
1283 invert_jump_1 and redirect_jump_1.
1284 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
1285 do_compare_rtx_and_jump.
1286 (expand_addsub_overflow): Likewise.
1287 (expand_neg_overflow): Likewise.
1288 (expand_mul_overflow): Likewise.
1289 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
1290 return value of gen_move_insn.
1291 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
1292 * loop-doloop.c (add_test): Use rtx_code_label.
1293 (doloop_modify): Likewise.
1294 (doloop_optimize): Likewise.
1295 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
1296 * lra-constraints.c (emit_spill_move): Remove cast of value returned
1298 (inherit_reload_reg): Add cast when calling dump_insn_slim.
1299 (split_reg): Likewise.
1300 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
1302 * optabs.c (expand_binop_directly): Remove casts of values returned by
1304 (expand_unop_direct): Likewise.
1305 (expand_abs): Likewise.
1306 (maybe_emit_unop_insn): Likewise.
1307 (maybe_gen_insn): Promote return type to rtx_insn.
1308 * optabs.h: Update prototype of maybe_gen_insn.
1309 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
1311 * recog.c (struct peep2_insn_data): Promote type of insn field to
1313 (peep2_reinit_state): Use NULL instead of NULL_RTX.
1314 (peep2_attempt): Remove casts of insn in peep2_insn_data.
1315 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
1316 * recog.h (struct insn_gen_fn): Promote return types of function
1317 pointers and operator ().from rtx to rtx_insn.
1318 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
1319 (fill_eager_delay_slots): Likewise.
1320 (relax_delay_slots): Likewise.
1321 (make_return_insns): Likewise.
1322 (dbr_schedule): Likewise.
1323 (optimize_skips): Likewise.
1324 (reorg_redirect_jump): Likewise.
1325 (fill_slots_from_thread): Likewise.
1326 * reorg.h: Update prototypes.
1327 * resource.c (find_dead_or_set_registers): Use dyn_cast to
1328 rtx_jump_insn instead of check. Use it's jump_target method.
1329 * rtl.h (rtx_jump_insn::jump_label): Define new method.
1330 (rtx_jump_insn::jump_target): Define new method.
1331 (rtx_jump_insn::set_jump_target): Define new method.
1332 * rtlanal.c (tablejump_p): Promote type of one local variable.
1333 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
1334 (sched_analyze_insn): Likewise.
1335 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
1336 (print_insn): Likewise.
1337 * stmt.c (label_rtx): Promote return type to rtx_insn.
1338 (force_label_rtx): Likewise.
1339 (jump_target_rtx): Define new function.
1340 (expand_label): Use it, get rid of one cast.
1341 (expand_naked_return): Promote rtx to rtx_code_label.
1342 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
1343 (expand_case): Use rtx_code_label instread of rtx where feasible.
1344 (expand_sjlj_dispatch_table): Likewise.
1345 (emit_case_nodes): Likewise.
1346 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
1347 * store-motion.c (insert_store): Make use of new return type of
1348 gen_move_insn and remove a cast.
1349 (replace_store_insn): Likewise.
1351 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
1353 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
1354 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
1356 2015-05-20 Jeff Law <law@redhat.com>
1358 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
1359 dispose of the jump thread path when the jump threading
1360 opportunity is cancelled.
1362 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1364 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
1365 when printing the caret character.
1367 2015-05-20 Marek Polacek <polacek@redhat.com>
1369 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
1371 2015-05-20 Marek Polacek <polacek@redhat.com>
1373 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
1374 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
1375 * gimple-fold.c (canonicalize_bool): Likewise.
1376 (same_bool_result_p): Likewise.
1377 * tree-if-conv.c (parse_predicate): Likewise.
1379 2015-05-20 Marek Polacek <polacek@redhat.com>
1381 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
1382 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
1384 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1386 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
1387 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
1390 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
1392 * config/mips/mips.h (micromips_globals): Declare.
1394 2015-05-20 David Malcolm <dmalcolm@redhat.com>
1396 * timevar.def (TV_INITIALIZE_RTL): New.
1397 * toplev.c (initialize_rtl): Use an auto_timevar to account this
1398 function's time to TV_INITIALIZE_RTL.
1400 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
1402 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
1403 gimple_build_nop calls.
1404 (chkp_find_bounds_for_elem): Likewise.
1405 (chkp_get_zero_bounds): Likewise.
1406 (chkp_get_none_bounds): Likewise.
1407 (chkp_get_bounds_by_definition): Likewise.
1408 (chkp_generate_extern_var_bounds): Likewise.
1409 (chkp_get_bounds_for_decl_addr): Likewise.
1410 (chkp_get_bounds_for_string_cst): Likewise.
1412 2015-05-20 Bin Cheng <bin.cheng@arm.com>
1414 PR tree-optimization/65447
1415 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
1416 (dump_use, dump_uses): Support to dump sub use.
1417 (record_use): New parameters to support sub use. Remove call to
1419 (record_sub_use, record_group_use): New functions.
1420 (compute_max_addr_offset, split_all_small_groups): New functions.
1421 (group_address_uses, rewrite_use_address): New functions.
1422 (strip_offset): New declaration.
1423 (find_interesting_uses_address): Call record_group_use.
1424 (add_candidate): New assertion.
1425 (infinite_cost_p): Move definition forward.
1426 (add_costs): Check INFTY cost and return immediately.
1427 (get_computation_cost_at): Clear setup cost and dependent bitmap
1429 (determine_use_iv_cost_address): Compute cost for sub uses.
1430 (rewrite_use_address_1): Rename from old rewrite_use_address.
1431 (free_loop_data): Free sub uses.
1432 (tree_ssa_iv_optimize_loop): Call group_address_uses.
1434 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
1435 Jim Wilson <jim.wilson@linaro.org>
1437 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
1438 new fields loadv and storev.
1439 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
1440 Initialize loadv and storev.
1441 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
1442 (cortexa53_extra_costs): Likewise.
1443 (cortexa57_extra_costs): Likewise.
1444 (xgene1_extra_costs): Likewise.
1445 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
1448 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
1450 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
1452 (cortexa8_extra_costs): Likewise.
1453 (cortexa5_extra_costs): Likewise.
1454 (cortexa7_extra_costs): Likewise.
1455 (cortexa12_extra_costs): Likewise.
1456 (cortexa15_extra_costs): Likewise.
1457 (v7m_extra_costs): Likewise.
1459 2015-05-20 Jeff Law <law@redhat.com>
1461 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
1462 instead of open-coded version. Also delete the jump thread created
1463 within this function.
1465 2015-05-20 Alan Modra <amodra@gmail.com>
1467 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
1468 stack adjusting insn. Formatting.
1469 (rs6000_emit_prologue): Track stack adjusting insn, and use of
1470 r12. If possible, emit first -fsplit-stack arg pointer insn
1471 before stack adjust. Don't use r12 to save cr if split-stack.
1473 2015-05-20 Alan Modra <amodra@gmail.com>
1475 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
1477 (rs6000_supports_split_stack): New function.
1478 * gcc/config/rs6000/rs6000.c (machine_function): Add
1479 split_stack_arg_pointer.
1480 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
1481 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
1482 rather than virtual_incoming_args_rtx.
1483 (rs6000_va_start): Likewise.
1484 (split_stack_arg_pointer_used_p): New function.
1485 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
1486 (morestack_ref): New var.
1487 (gen_add3_const, rs6000_expand_split_stack_prologue,
1488 rs6000_internal_arg_pointer, rs6000_live_on_entry,
1489 rs6000_split_stack_space_check): New functions.
1490 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
1491 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
1492 (UNSPECV_SPLIT_STACK_RETURN): Define.
1493 (split_stack_prologue, load_split_stack_limit,
1494 load_split_stack_limit_di, load_split_stack_limit_si,
1495 split_stack_return, split_stack_space_check): New expands and insns.
1496 * gcc/config/rs6000/rs6000-protos.h
1497 (rs6000_expand_split_stack_prologue): Declare.
1498 (rs6000_split_stack_space_check): Declare.
1500 2015-05-20 Alan Modra <amodra@gmail.com>
1502 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
1503 (rs6000_stack_info): Don't zero offsets when not saving registers.
1504 (debug_stack_info): Adjust to omit printing unused offsets,
1506 (direct_return): Test vrsave_size rather than vrsave_mask.
1507 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
1508 (rs6000_emit_epilogue): Likewise.
1510 2015-05-20 Alan Modra <amodra@gmail.com>
1512 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
1513 when not saving registers.
1514 (debug_stack_info): Adjust to omit printing unused offsets,
1516 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
1519 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1522 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
1523 value_type to const char *.
1525 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
1527 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
1528 to build a biarch toolchain again.
1530 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
1532 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
1533 or implicit declarations.
1534 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
1536 (get_odr_type): Check type has linkage before adding bases.
1537 (register_odr_type): Check that type has linkage before adding it.
1538 (type_known_to_have_no_deriavations_p): Rename to ..
1539 (type_known_to_have_no_derivations_p): This one.
1540 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
1541 (type_known_to_have_no_derivations_p): This one.
1542 * ipa-polymorphic-call.c
1543 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
1546 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
1548 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
1549 (layout_type): Use RECORD_OR_UNION_TYPE_P.
1551 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1553 * config/s390/s390.c (s390_vector_bool_type_p): New function.
1554 (s390_invalid_binary_op): New function.
1555 (TARGET_INVALID_BINARY_OP): Define macro.
1557 2015-05-19 David Sherwood <david.sherwood@arm.com>
1559 * loop-invariant.c (create_new_invariant): Don't calculate address cost
1560 if mode is not a scalar integer.
1561 (get_inv_cost): Increase computational cost for unused invariants.
1563 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1565 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
1566 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
1567 * config/s390/s390-builtin-types.def: New file.
1568 * config/s390/s390-builtins.def: New file.
1569 * config/s390/s390-builtins.h: New file.
1570 * config/s390/s390-c.c: New file.
1571 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
1572 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
1573 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
1574 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
1576 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
1578 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
1579 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
1580 variable definitions.
1581 (s390_const_operand_ok): New function.
1582 (s390_expand_builtin): Rewrite.
1583 (s390_init_builtins): New function.
1584 (s390_handle_vectorbool_attribute): New function.
1585 (s390_attribute_table): Add s390_vector_bool attribute.
1586 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
1587 (s390_branch_condition_mask): Generate masks for new modes.
1588 (s390_expand_vec_compare_cc): New function.
1589 (s390_mangle_type): Add mangling for vector bool types.
1590 (enum s390_builtin): Remove.
1591 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
1593 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
1594 s390_cpu_cpp_builtins.
1595 (REGISTER_TARGET_PRAGMAS): New macro.
1596 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
1597 (insn_cmp mode attribute): Add new CC modes.
1598 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
1599 (lcbb): New pattern definition.
1600 * config/s390/s390intrin.h: Include vecintrin.h.
1601 * config/s390/t-s390: New file.
1602 * config/s390/vecintrin.h: New file.
1603 * config/s390/vector.md: Include vx-builtins.md.
1604 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
1607 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1609 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
1611 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
1612 (s390_select_ccmode): Likewise.
1613 (s390_canonicalize_comparison): Swap operands if necessary.
1614 (s390_expand_vec_compare_scalar): Expand DFmode compare using
1615 single element vector instructions.
1616 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
1617 (s390_branch_condition_mask): Generate CC masks for the new modes.
1618 * config/s390/s390.md (v0, vf, vd): New mode attributes.
1619 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
1620 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
1621 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
1622 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
1623 (*extend<DSF:mode><BFP:mode>2): New insn definition.
1624 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
1625 (extend<DSF:mode><BFP:mode>2): Turn into expander.
1626 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
1627 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
1628 (sqrt<mode>2): Add vector instruction.
1630 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1632 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
1634 * config/s390/predicates.md (const0_operand, constm1_operand)
1635 (constable_operand): Accept vector operands.
1636 * config/s390/s390-modes.def: Add supported vector modes.
1637 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
1638 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
1639 (s390_bytemask_vector_p, s390_expand_vec_strlen)
1640 (s390_expand_vec_compare, s390_expand_vcond)
1641 (s390_expand_vec_init): Add prototypes.
1642 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
1643 (s390_vector_mode_supported_p): New function.
1644 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
1645 (s390_contiguous_bitmask_vector_p): New function.
1646 (s390_bytemask_vector_p): New function.
1647 (s390_split_ok_p): Vector regs don't work either.
1648 (regclass_map): Add VEC_REGS.
1649 (s390_legitimate_constant_p): Handle vector constants.
1650 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
1651 (legitimate_reload_vector_constant_p): New function.
1652 (s390_preferred_reload_class): Handle CONST_VECTOR.
1653 (s390_reload_symref_address): Likewise.
1654 (s390_secondary_reload): Vector memory instructions only support
1655 short displacements. Rename reload*_nonoffmem* to reload*_la*.
1656 (s390_emit_ccraw_jump): New function.
1657 (s390_expand_vec_strlen): New function.
1658 (s390_expand_vec_compare): New function.
1659 (s390_expand_vcond): New function.
1660 (s390_expand_vec_init): New function.
1661 (s390_dwarf_frame_reg_mode): New function.
1662 (print_operand): Handle addresses with 'O' and 'R' constraints.
1663 (NR_C_MODES, constant_modes): Add vector modes.
1664 (s390_output_pool_entry): Handle vector constants.
1665 (s390_hard_regno_mode_ok): Handle vector registers.
1666 (s390_class_max_nregs): Likewise.
1667 (s390_cannot_change_mode_class): New function.
1668 (s390_invalid_arg_for_unprototyped_fn): New function.
1669 (s390_function_arg_vector): New function.
1670 (s390_function_arg_float): Remove size variable.
1671 (s390_pass_by_reference): Handle vector arguments.
1672 (s390_function_arg_advance): Likewise.
1673 (s390_function_arg): Likewise.
1674 (s390_return_in_memory): Vector values are returned in a VR if
1676 (s390_function_and_libcall_value): Handle vector arguments.
1677 (s390_gimplify_va_arg): Likewise.
1678 (s390_call_saved_register_used): Consider the arguments named.
1679 (s390_conditional_register_usage): Disable v16-v31 for non-vec
1681 (s390_preferred_simd_mode): New function.
1682 (s390_support_vector_misalignment): New function.
1683 (s390_vector_alignment): New function.
1684 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
1685 (TARGET_VECTOR_MODE_SUPPORTED_P)
1686 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
1687 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
1688 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
1689 (TARGET_VECTOR_ALIGNMENT): Define target macro.
1690 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
1691 (FIRST_PSEUDO_REGISTER): Increase value.
1692 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
1693 (VECTOR_REG_P): Define macros.
1694 (FIXED_REGISTERS, CALL_USED_REGISTERS)
1695 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
1696 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
1697 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
1698 Add vector registers.
1699 (CANNOT_CHANGE_MODE_CLASS): Call C function.
1700 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
1701 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
1703 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
1704 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
1705 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
1706 (VR*_REGNUM): New constants.
1707 (ALL): New mode iterator.
1708 (INTALL): Remove mode iterator.
1710 (movti): Implement TImode moves for VRs.
1711 Disable TImode splitter for VR targets.
1712 Implement splitting TImode GPR<->VR moves.
1713 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
1714 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
1715 reload<mode>_la_in, reload<mode>_la_out.
1716 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
1717 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
1718 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
1719 (mov<mode> SF SD): Prefer lder, lde for loading.
1720 Add lrl and strl instructions.
1721 Add vector instructions.
1722 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
1723 Call s390_expand_vec_strlen on z13.
1724 (*cc_to_int): Change predicate to nonimmediate_operand.
1725 (addti3): Rename to *addti3. New expander.
1726 (subti3): Rename to *subti3. New expander.
1727 * config/s390/vector.md: New file.
1729 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1731 * common/config/s390/s390-common.c (processor_flags_table): Add
1733 * config.gcc: Add z13.
1734 * config/s390/s390-opts.h (enum processor_type): Add
1736 * config/s390/s390.c (s390_adjust_priority): Check for
1738 (s390_reorg): Likewise.
1739 (s390_sched_reorder): Likewise.
1740 (s390_sched_variable_issue): Likewise.
1741 (s390_loop_unroll_adjust): Likewise.
1742 (s390_option_override): Likewise. Default to -mvx when available.
1743 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
1744 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
1745 (TARGET_VX_ABI): Define macros.
1747 (TARGET_DEFAULT): Add MASK_OPT_VX.
1748 * config/s390/s390.md ("cpu" attribute): Add z13.
1749 ("cpu_facility" attribute): Add vec.
1750 * config/s390/s390.opt (processor_type): Add z13.
1752 * doc/invoke.texi: Add z13 option for -march.
1754 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1756 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
1757 mode check to make sure that only scalar integer values are
1760 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
1762 * tree.c (verify_type_variant): Fix #undef.
1763 (gimple_canonical_types_compatible_p): Move here from lto.c
1764 (verify_type): Verify TYPE_CANONICAL compatibility.
1765 * tree.h (gimple_canonical_types_compatible_p): Declare.
1767 2015-05-19 Jakub Jelinek <jakub@redhat.com>
1770 * tree.h (OMP_TEAMS_COMBINED): Define.
1771 * gimplify.c (enum gimplify_omp_var_data): Add
1772 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
1773 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
1774 (omp_notice_variable): Accept both ORT_TEAMS
1775 and ORT_COMBINED_TEAMS. Don't recurse if
1776 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
1777 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
1779 (omp_no_lastprivate): New function.
1780 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
1781 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
1782 notice_outer and set appropriate bits, otherwise make
1783 sure default(none) combined constructs won't complain.
1784 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
1785 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
1786 omp_no_lastprivate either remove the clause or turn it
1787 into OMP_CLAUSE_PRIVATE.
1788 (gimplify_omp_for): Fix up handling of implicit
1789 lastprivate or linear iterators.
1790 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
1792 * omp-low.c (lower_omp_for_lastprivate): For combined
1793 for simd use fd.loop.n2 from the for rather than simd.
1795 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1797 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
1798 instead of gen_rtx_raw_REG.
1799 (cris_expand_epilogue): Likewise.
1800 * config/microblaze/microblaze.c (microblaze_classify_address):
1802 * config/sparc/sparc.md: Likewise.
1804 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
1806 * config/alpha/alpha.c (alpha_legitimize_reload_address)
1807 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
1808 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
1809 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
1810 Use CASE_CONST_SCALAR_INT.
1811 (print_operand) <case 'M'>: Use mode_width_operand to check the
1812 value of the constant.
1813 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
1814 * config/alpha/predicates.md (input_operand): Use general_operand
1815 instead of match_code as operand check.
1816 (symbolic_operand): Use match_code with subexpression digits.
1817 * config/alpha/constraints.md (Q): Ditto.
1819 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1821 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
1823 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1825 * config/s390/s390.c (s390_secondary_reload): Fix check for
1826 load/store relative.
1828 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1830 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
1831 alternative_mask to uint64_t.
1833 2015-05-19 Jakub Jelinek <jakub@redhat.com>
1835 PR tree-optimization/66187
1836 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
1837 Pass TYPE_SIGN to tree_int_cst_min_precision. If
1838 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
1840 2015-05-19 David Malcolm <dmalcolm@redhat.com>
1842 * diagnostic.c (diagnostic_report_current_module): Strengthen
1843 local "new_map" from const line_map * to
1844 const line_map_ordinary *.
1845 * genmatch.c (error_cb): Likewise for local "map".
1846 (output_line_directive): Likewise for local "map".
1847 * input.c (expand_location_1): Likewise for local "map".
1848 Pass NULL rather than &map to
1849 linemap_unwind_to_first_non_reserved_loc, since the value is never
1850 read from there, and the value written back not read from here.
1851 (is_location_from_builtin_token): Strengthen local "map" from
1852 const line_map * to const line_map_ordinary *.
1853 (dump_location_info): Strengthen locals "map" from
1854 line_map *, one to const line_map_ordinary *, the other
1855 to const line_map_macro *.
1856 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
1857 const line_map * to const line_map_macro *.
1858 (maybe_unwind_expanded_macro_loc): Add a call to
1859 linemap_check_macro when writing to the "map" field of the
1861 Introduce local const line_map_ordinary * "ord_map", using it in
1862 place of "map" in the part of the function where we know we have
1863 an ordinary map. Strengthen local "m" from const line_map * to
1864 const line_map_ordinary *.
1866 2015-05-19 Nick Clifton <nickc@redhat.com>
1869 * config/msp430/msp430.md (zero_extendhisi2): Add support for
1870 separate source and destination registers.
1872 2015-05-19 Richard Biener <rguenther@suse.de>
1874 PR tree-optimization/66165
1875 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
1876 for no load permutation.
1878 PR tree-optimization/66185
1879 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
1880 when building the SLP node from scalars.
1882 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
1883 Tristan Gingold <gingold@adacore.com>
1885 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
1886 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
1887 (expand_stack_restore): Call record_new_stack_level.
1888 (expand_stack_save): Do not call do_pending_stack_adjust.
1889 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
1890 * calls.c (expand_call): Call record_new_stack_level for alloca.
1891 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
1892 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
1893 (update_sjlj_context): New global function.
1894 * except.h (update_sjlj_context): Declare.
1895 * explow.c (record_new_stack_level): New global function.
1896 (allocate_dynamic_stack_space): Call record_new_stack_level.
1897 * explow.h (record_new_stack_level): Declare.
1898 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
1899 * cfgrtl.c (duplicate_insn_chain): Likewise.
1901 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1903 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
1904 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
1905 STACK_GROWS_DOWNWARD as normal if.
1906 (expand_call): Likewise.
1908 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
1911 * config/sh/sh.md (*round_int_even): New insn_and_split and
1912 accompanying new unnamed split.
1914 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1916 * bitmap.c (bitmap_set_range): Handle count==1 specially.
1917 (bitmap_clear_range): Likewise.
1918 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
1919 bitmap_set_range unconditionally.
1920 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
1921 * df-scan.c (df_mark_reg): Likewise.
1922 * haifa-sched.c (setup_ref_regs): Likewise.
1923 * sched-rgn.c (update_live_1): Likewise.
1925 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1927 * regs.h (END_HARD_REGNO): Delete.
1928 (END_REGNO): Move to...
1930 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
1931 * caller-save.c (mark_set_regs): Likewise.
1932 * combine.c (move_deaths, distribute_notes): Likewise.
1933 * cse.c (invalidate, invalidate_for_call): Likewise.
1934 * df-scan.c (df_ref_record): Likewise.
1935 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
1936 (record_last_reg_set_info): Likewise.
1937 * reg-stack.c (convert_regs_exit): Likewise.
1938 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
1939 * resource.c (update_live_status): Likewise.
1940 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
1942 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1944 * rtl.h (reg_info): Add an nregs field.
1945 (REG_NREGS): Use it.
1946 (SET_REGNO_RAW): Delete.
1947 (set_regno_raw): New function.
1948 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
1949 (END_REGNO): Redefine in terms of REG_NREGS.
1950 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
1952 * emit-rtl.c (set_mode_and_regno): Likewise.
1953 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
1954 instead of SET_REGNO_RAW.
1956 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1958 * rtl.h (PUT_MODE_RAW): New macro.
1959 (PUT_REG_NOTE_KIND): Use it.
1960 (set_mode_and_regno): Declare.
1961 (gen_raw_REG): Change regno to "unsigned int".
1962 (gen_rtx_REG): Change "unsigned" to "unsigned int".
1963 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
1964 use set_mode_and_regno to change the mode of registers.
1965 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
1966 * emit-rtl.c (set_mode_and_regno): New function.
1967 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
1968 * caller-save.c (reg_save_code): Use set_mode_and_regno.
1969 * expr.c (init_expr_target): Likewise.
1970 * ira.c (setup_prohibited_mode_move_regs): Likewise.
1971 * postreload.c (reload_cse_simplify_operands): Likewise.
1973 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1975 * caller-save.c (init_caller_save): Use word_mode and
1976 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
1977 * expr.c (init_expr_target): Likewise.
1978 * ira.c (setup_prohibited_mode_move_regs): Likewise.
1979 * postreload.c (reload_cse_regs_1): Likewise.
1981 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1983 * rtl.def (REG): Change format to "r".
1984 * rtl.h (rtunion): Remove rt_reg.
1985 (reg_info): New structure.
1986 (rtx_def): Add reg field to main union.
1987 (X0REGATTR): Delete.
1988 (REG_CHECK): New macro.
1989 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
1990 * rtl.c (rtx_format): Document "r".
1991 (rtx_code_size): Handle REG specially.
1992 * gengenrtl.c (special_format): Return true for formats
1994 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
1995 Deal with REG_ATTRS after the field loop.
1996 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
1997 * expmed.c (init_expmed): Call gen_raw_REG instead of
1999 * expr.c (init_expr_target): Likewise.
2000 * regcprop.c (maybe_mode_change): Likewise.
2001 * varasm.c (make_decl_rtl): Likewise.
2002 * final.c (leaf_renumber_regs_insn): Return early after
2004 * genemit.c (gen_exp): Handle 'r' fields.
2005 * genpeep.c (match_rtx): Likewise.
2006 * gensupport.c (subst_pattern_match): Likewise.
2007 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
2008 (alter_constraints, subst_dup): Likewise.
2009 * read-rtl.c (read_rtx_code): Likewise.
2010 * print-rtl.c (print_rtx): Likewise.
2011 * genrecog.c (find_operand, find_matching_operand): Likewise.
2012 (validate_pattern, match_pattern_2): Likewise.
2013 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
2014 (rtx_test::regno_field): New function.
2015 (operator ==, safe_to_hoist_p, transition_parameter_type)
2016 (parameter_type_string, print_parameter_value)
2017 (print_nonbool_test, print_test): Handle new enum values.
2018 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
2019 * lra-constraints.c (operands_match_p): Likewise.
2021 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
2023 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
2024 Change type of new_regno to unsigned int.
2025 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
2026 new_regno to unsigned int.
2027 (df_ref_change_reg_with_loc): Remove old_regno parameter.
2028 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
2029 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
2030 (SET_REGNO_RAW): Add space after ",".
2032 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
2034 * rtl.h (REG_NREGS): New macro
2035 * alias.c (record_set): Use it.
2036 * cfgcleanup.c (mark_effect): Likewise.
2037 * combine.c (likely_spilled_retval_1): Likewise.
2038 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
2039 (move_deaths, distribute_notes): Likewise.
2040 * cselib.c (cselib_record_set): Likewise.
2041 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
2042 * df-scan.c (df_mark_reg): Likewise.
2043 * dse.c (look_for_hardregs): Likewise.
2044 * dwarf2out.c (reg_loc_descriptor): Likewise.
2045 (multiple_reg_loc_descriptor): Likewise.
2046 * expr.c (write_complex_part, read_complex_part): Likewise.
2047 (emit_move_complex): Likewise.
2048 * haifa-sched.c (setup_ref_regs): Likewise.
2049 * ira-lives.c (mark_hard_reg_live): Likewise.
2050 * lra.c (lra_set_insn_recog_data): Likewise.
2051 * mode-switching.c (create_pre_exit): Likewise.
2052 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
2053 (reload_combine_recognize_pattern): Likewise.
2054 (reload_combine_note_use, move2add_record_mode): Likewise.
2055 (reload_cse_move2add): Likewise.
2056 * reg-stack.c (subst_stack_regs_pat): Likewise.
2057 * regcprop.c (kill_value, copy_value): Likewise.
2058 (copyprop_hardreg_forward_1): Likewise.
2059 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
2060 (build_def_use): Likewise.
2061 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
2062 (deps_analyze_insn): Likewise.
2063 * sched-rgn.c (check_live_1, update_live_1): Likewise.
2064 * sel-sched.c (count_occurrences_equiv): Likewise.
2065 * valtrack.c (dead_debug_insert_temp): Likewise.
2067 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
2069 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
2070 * dse.c (note_add_store): Likewise.
2071 * ira-lives.c (mark_hard_reg_dead): Likewise.
2072 * loop-invariant.c (mark_reg_store): Likewise.
2073 (mark_reg_death): Likewise.
2074 * postreload.c (reload_combine): Likewise.
2075 (reload_combine_note_store): Likewise.
2076 (reload_combine_note_use): Likewise.
2077 * recog.c (peep2_reg_dead_p): Likewise.
2079 2015-05-19 Alan Modra <amodra@gmail.com>
2081 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
2082 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
2083 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
2085 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
2086 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
2087 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
2088 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
2090 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
2092 * config/mips/mips.md (JOIN_MODE): New mode iterator.
2093 (join2_load_Store<JOIN_MODE:mode>): New pattern.
2094 (join2_loadhi): Likewise.
2095 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
2096 load-load and store-stores.
2097 * config/mips/mips.opt (mload-store-pairs): New option.
2098 (TARGET_LOAD_STORE_PAIRS): New macro.
2099 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
2100 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
2101 * config/mips/mips.c (mips_load_store_bonding_p): New function.
2103 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2105 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
2107 * dojump.c (do_compare_rtx_and_jump): Likewise.
2108 * expmed.c (emit_store_flag_1): Likewise.
2109 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
2110 * final.c (sprint_ul): Use std::reverse for reversing a string.
2111 * fold-const.c (extract_muldiv_1): Use std::swap.
2112 * genmodes.c (emit_mode_int_n): Likewise.
2113 * ifcvt.c (dead_or_predicable): Likewise.
2114 * ira-build.c (ira_merge_live_ranges): Likewise.
2115 (swap_allocno_copy_ends_if_necessary): Likewise.
2116 * ira.c (ira_setup_alts): Likewise.
2117 * loop-iv.c (iv_analyze_expr): Likewise.
2118 (implies_p): Likewise.
2119 (canon_condition): Likewise.
2120 * lra-constraints.c (swap_operands): Likewise.
2121 * lra-lives.c (lra_merge_live_ranges): Likewise.
2122 * omega.c (swap): Remove.
2124 (omega_unprotect_1): Use std::swap.
2125 (omega_solve_geq): Likewise.
2126 * optabs.c (expand_binop_directly): Likewise.
2127 (expand_binop): Likewise.
2128 (emit_conditional_move): Likewise.
2129 (emit_conditional_add): Likewise.
2130 * postreload.c (reload_cse_simplify_operands): Likewise.
2131 * reg-stack.c (emit_swap_insn): Likewise.
2132 (swap_to_top): Likewise.
2133 (compare_for_stack_reg): Likewise.
2134 (subst_asm_stack_regs): Likewise.
2135 * reload.c (find_reloads): Likewise.
2136 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
2137 * sel-sched.c (invoke_reorder_hooks): Likewise.
2138 (create_block_for_bookkeeping): Likewise.
2139 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
2140 (lambda_matrix_right_hermite): Use std::swap.
2141 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
2142 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2143 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
2144 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
2145 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2146 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
2147 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
2148 * tree-vrp.c (compare_ranges): Likewise.
2149 * var-tracking.c (add_with_sets): Likewise.
2150 (vt_find_locations): Likewise.
2152 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
2154 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
2156 (FBSD_ENDFILE_SPEC): Likewise.
2157 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
2158 config/freebsd-spec.h.
2159 (ENDFILE_SPEC): Likewise.
2161 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
2162 Richard Henderson <rth@redhat.com>
2165 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
2166 Check for a memory location that is not a reference (using an AND)
2167 to an unaligned location here.
2168 * config/alpha/predicates.md (normal_memory_operand): Remove.
2170 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
2172 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
2173 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
2175 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
2177 * config/mips/mips.c (micromips_globals): New variable.
2178 (mips_set_compression_mode): Save and reinitialize target-dependent
2179 state for microMIPS.
2181 2015-05-18 Martin Liska <mliska@suse.cz>
2183 * dbgcnt.def: Add new counter.
2184 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
2186 2015-05-18 Martin Liska <mliska@suse.cz>
2188 * dbgcnt.def: Sort counters.
2189 * opts.c (common_handle_option): Do not compile if
2190 -fdbg-cnt-list is enabled.
2192 2015-05-18 Tom de Vries <tom@codesourcery.com>
2194 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
2195 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
2196 address operator to va_list operand.
2197 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
2199 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
2201 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
2202 * config/s390/s390.c (s390_gimplify_va_arg): Same.
2203 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
2205 2015-05-18 Tom de Vries <tom@codesourcery.com>
2207 * tree-ssa-tail-merge.c: Fix whitespace.
2209 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
2211 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
2212 cortex-a17, and cortex-a17.cortex-a7.
2214 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
2217 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
2219 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
2222 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
2223 QImode inner modes for TARGET_AVX512BW. Force mask operand
2224 to a register for AVX512F modes.
2226 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
2228 * toplev.c (emit_debug_global_declarations): Do not output debug info
2229 when doing slim LTO objects.
2231 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
2233 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
2234 odr_types_equivalent_p): Declare.
2235 (odr_type_p): Use gcc_checking_assert.
2236 (type_in_anonymous_namespace_p) Declare.
2237 (type_with_linkage_p): Declare.
2238 * common.opt (Wlto-type-mismatch): New warning.
2239 * ipa-devirt.c (compound_type_base): New function.
2240 (odr_or_derived_type_p): New function.
2241 (odr_types_equivalent_p): New function.
2242 (add_type_duplicate): Simplify.
2243 (type_with_linkage_p): Add hack to prevent false positives on C types
2244 (type_in_anonymous_namespace_p): Likewise.
2245 * tree.c (need_assembler_name_p): Use type_with_linkage.
2246 * tree.h (type_in_anonymous_namespace_p): Remove.
2247 * doc/invoke.texi (-Wlto-type-mismatch): Document
2249 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
2251 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
2252 (verify_type): Verify STRING_FLAG.
2254 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2257 * tree-pretty-print.c (percent_K_format): Replace locus pointer
2258 with accessor function.
2259 * tree-diagnostic.c (diagnostic_report_current_function): Use
2260 diagnostic_location function.
2261 (maybe_unwind_expanded_macro_loc): Likewise.
2262 (virt_loc_aware_diagnostic_finalizer): Likewise.
2263 (default_tree_printer): Replace locus pointer with accessor function.
2264 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
2265 (diagnostic_set_info_translated): Initialize second location.
2266 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
2267 (diagnostic_show_locus): Handle two locations. Call
2268 diagnostic_print_caret_line.
2269 (diagnostic_print_caret_line): New.
2270 (default_diagnostic_starter): Use diagnostic_location function.
2271 (diagnostic_report_diagnostic): Use diagnostic_location function.
2272 (verbatim): Do not set text.locus.
2273 * diagnostic.h (struct diagnostic_info): Remove location field.
2274 (struct diagnostic_context): Make caret_chars an array of two.
2275 (diagnostic_location): New inline.
2276 (diagnostic_expand_location): Handle two locations.
2277 (diagnostic_same_line): New inline.
2278 (diagnostic_print_caret_line): Declare.
2279 (CARET_LINE_MARGIN): New constant.
2280 * pretty-print.c (pp_printf): Do not set text.locus.
2281 (pp_verbatim): Do not set text.locus.
2282 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
2283 (struct text_info): Replace locus pointer with locations
2284 array. Add accessor functions.
2286 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
2287 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2290 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
2291 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
2292 large constants in register instead of splitting them.
2294 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
2297 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
2298 replacements in memory addresses.
2299 (get_unaligned_address): Ditto.
2301 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
2303 PR tree-optimization/64454
2304 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
2305 (-1 - A -> ~A): Remove unnecessary condition.
2307 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
2309 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
2310 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
2311 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
2313 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
2315 * ipa-chkp.h (chkp_wrap_function): New.
2316 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
2317 (chkp_wrap_function_name): New.
2318 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
2319 to get wrapper name.
2320 * lto-cgraph.c: Include ipa-chkp.h.
2321 (input_cgraph_1): Avoid alias chain for wrappers.
2323 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
2326 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
2327 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
2329 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2331 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
2332 (AARCH64_FL_SLOWMUL): Delete.
2333 (AARCH64_FL_CRC): Redefine to 1<<3.
2334 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
2336 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2338 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
2341 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
2343 * config/alpha/alpha.md (extendqidi2): Use general_operand
2344 instead of some_operand for operand[1] predicate.
2345 (extendhidi2): Ditto.
2346 (cbranchdi4): Use general_operand instead of some_operand
2347 for operand[1] and operands[2] predicates.
2349 * config/alpha/predicates.md (some_operand): Remove unused predicate.
2350 (some_ni_operand): Ditto.
2352 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
2354 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
2355 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
2356 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
2357 low part of the constant using alpha_emit_set_const_1.
2358 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
2360 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
2362 * varasm.c (output_constant_pool_1): Pass down alignment from
2363 constant pool entry's descriptor to output_constant_pool_2.
2364 (output_object_block): Add comment prior to call to
2365 output_constant_pool_1.
2367 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
2369 PR rtl-optimization/65862
2370 * target.def (ira_change_pseudo_allocno_class): New hook.
2371 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
2373 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
2374 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
2376 * ira-costs.c (find_costs_and_classes): Call the hook and change
2377 classes when it is necessary.
2378 * doc/tm.texi: Update.
2380 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
2382 * config/i386/i386.md (sibcall_memory): Check that register with
2383 callee address is not also used as one of the arguments, instead
2384 of checking that it is not live after the sibcall.
2385 (sibcall_pop_memory): Ditto.
2386 (sibcall_value_memory): Ditto.
2387 (sibcall_value_pop_memory): Ditto.
2389 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
2391 * generic-match-head.c (types_match): Handle non-types.
2392 * gimple-match-head.c (types_match): Likewise.
2393 * match.pd: Remove unnecessary TREE_TYPE for types_match.
2395 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
2397 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
2398 (csneg3<mode>_insn): Enable expansion of pattern.
2400 2015-05-14 Nick Clifton <nickc@redhat.com>
2402 * config/rl78/rl78.c (rl78_select_section): Select the correct
2403 default section based upon the category of the decl.
2405 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
2407 PR rtl-optimization/30967
2408 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
2409 destination mode for the cost of scc patterns.
2411 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
2413 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
2414 using SWIM248 mode iterator.
2415 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
2416 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
2417 for operand[2] constraint.
2418 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
2420 2015-05-13 Jakub Jelinek <jakub@redhat.com>
2423 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
2424 make sure it is never noreturn, even when the task body does not
2426 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
2427 right before GIMPLE_OMP_RETURN.
2428 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
2429 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
2430 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
2432 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2434 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
2435 * tree-ssa-math-opts.c: Include params.h
2436 (pow_synth_sqrt_info): New struct.
2437 (representable_as_half_series_p): New function.
2438 (get_fn_chain): Likewise.
2439 (print_nested_fn): Likewise.
2440 (dump_fractional_sqrt_sequence): Likewise.
2441 (dump_integer_part): Likewise.
2442 (expand_pow_as_sqrts): Likewise.
2443 (gimple_expand_builtin_pow): Use above to attempt to expand
2444 pow as series of square roots. Removed now unused variables.
2446 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
2448 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
2449 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
2450 Remove *p0 and *p1 arguments. Rewrite function.
2451 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
2452 (alpha_split_const_mov): Update calls to alpha_extract_integer and
2453 alpha_emit_set_long_const.
2454 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
2455 (alpha_output_mi_thunk_osf): Ditto.
2456 * config/alpha/alpha.md (movti): Do not check operands[1]
2459 2015-05-13 Richard Biener <rguenther@suse.de>
2461 PR tree-optimization/66129
2462 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
2464 (vect_schedule_slp_instance): Fix typo.
2466 2015-05-13 David Malcolm <dmalcolm@redhat.com>
2468 * common.opt (fdump-internal-locations): New option.
2469 * input.c: Include diagnostic-core.h.
2470 (get_end_location): New function.
2471 (write_digit): New function.
2472 (write_digit_row): New function.
2473 (dump_location_range): New function.
2474 (dump_labelled_location_range): New function.
2475 (dump_location_info): New function.
2476 * input.h (dump_location_info): New prototype.
2477 * toplev.c (compile_file): Handle flag_dump_locations.
2479 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
2481 * gimple-expr.h (is_gimple_constant): Reorder.
2482 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
2484 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
2486 * combine.c (simplify_set): When generating a CC set, if the
2487 source already is in the correct mode, do not wrap it in a
2488 compare. Simplify the rest of that code.
2490 2015-05-13 Richard Biener <rguenther@suse.de>
2492 PR tree-optimization/66123
2493 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
2496 2015-05-13 Richard Biener <rguenther@suse.de>
2499 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
2501 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
2503 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
2505 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
2506 * aclocal.m4: Regenerated with automake-1.11.6.
2508 2015-05-13 Tom de Vries <tom@codesourcery.com>
2510 PR tree-optimization/66010
2511 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
2512 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
2513 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
2514 and rval based on do_deref.
2516 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
2519 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
2520 link time constants into adress expressions and therefore set
2523 2015-05-13 Jakub Jelinek <jakub@redhat.com>
2526 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
2527 Use SWI248 iterator instead of SWI.
2528 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
2529 Use eq_attr "alternative" "0" instead of match_test in
2530 length_immediate attribute computation.
2531 (*mulvhi4, *mulvhi4_1): New define_insns.
2534 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
2535 SIGNED to get precision of non-negative value.
2537 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
2540 * function.c (diddle_return_value_1): Process bounds first.
2541 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
2544 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2546 PR rtl-optimization/64616
2547 * loop-invariant.c (can_move_invariant_reg): New.
2548 (move_invariant_reg): Call above new function to decide whether
2549 instruction can just be moved, skipping creation of temporary
2552 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
2555 * i386.c (ix86_function_sseregparm): Only return -1 if local function
2556 with implied regparm is called from -mno-sse function.
2557 (init_cumulative_args): Output error if ix86_function_sseregparm
2558 return -1 and SSE register would be needed.
2559 (function_arg_advance_32): Likewise.
2560 (function_arg_32): Likewise.
2561 * i386.h (ix86_args): Add decl field.
2563 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
2566 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
2567 inlines across optimization boundary.
2569 2015-05-12 Jason Merrill <jason@redhat.com>
2571 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
2572 string literal and macro name.
2574 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
2576 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
2577 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
2578 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
2580 2015-05-12 David Malcolm <dmalcolm@redhat.com>
2582 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
2583 (-Wmisleading-indentation): New option.
2584 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
2586 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
2588 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
2589 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
2590 (alpha_extract_integer): Ditto.
2591 (alpha_legitimate_constant_p): Ditto.
2592 (alpha_split_tmode_pair): Ditto.
2593 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
2594 (alpha_expand_mov): Ditto.
2595 (print_operand): Remove handling of 'H' modifier.
2596 <case 'm'>: Remove CONST_DOUBLE handling.
2597 (summarize_insn): Handle CONST_WIDE_INT.
2598 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
2600 (movti): Handle CONST_WIDE_INT.
2601 * config/alpha/constraints.md ('H'): Remove constraint definition.
2602 ('G'): Do not match MODE_FLOAT class.
2603 * config/alpha/predicates.md (const0_operand): Also match
2605 (non_add_const_operand): Ditto.
2606 (non_zero_const_operand): Ditto.
2607 (some_operand): Ditto.
2608 (input_operand): Ditto. Handle CONST_WIDE_INT.
2609 (and_operand): Do not match const_double.
2610 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
2612 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
2615 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
2616 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
2617 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
2618 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
2619 is_mm_seq_cst, is_mm_sync): New accessor functions.
2620 * builtins.c (expand_builtin_sync_operation,
2621 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
2622 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
2623 (get_memmodel, expand_builtin_atomic_compare_exchange,
2624 expand_builtin_atomic_load, expand_builtin_atomic_store,
2625 expand_builtin_atomic_clear): Use new accessor routines.
2626 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
2627 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
2628 (maybe_emit_sync_lock_test_and_set): Use new accessors and
2629 MEMMODEL_SYNC_ACQUIRE.
2630 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
2631 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
2632 expand_atomic_store): Use new accessors.
2633 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
2634 * tsan.c (instrument_builtin_call): Update check for memory model beyond
2635 final enum to use MEMMODEL_LAST.
2636 * c-family/c-common.c: Use new accessor for memmodel_base.
2637 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
2639 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
2640 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
2641 mem_thread_fence, *dmb): Likewise.
2642 * config/alpha/alpha.c (alpha_split_compare_and_swap,
2643 alpha_split_compare_and_swap_12): Likewise.
2644 * config/arm/arm.c (arm_expand_compare_and_swap,
2645 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
2646 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
2647 atomic_loaddi): Likewise.
2648 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
2650 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
2651 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
2653 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
2654 atomic_store<mode>, atomic_compare_and_swap<mode>,
2655 atomic_exchange<mode>): Use new accessors.
2656 * config/mips/mips.c (mips_process_sync_loop): Likewise.
2657 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
2658 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
2659 rs6000_post_atomic_barrier): Add new cases.
2660 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
2661 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
2662 (atomic_load<mode>): Add new cases and use new accessors.
2663 (store_quadpti): Add new cases.
2664 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
2666 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
2667 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
2670 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
2672 * ipa-devirt.c (type_with_linkage_p): New function.
2673 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
2675 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
2676 (can_be_name_hashed_p): Simplify.
2677 (hash_odr_name): Check that type has linkage before checking if it is
2679 (types_same_for_odr): Likewise.
2680 (odr_name_hasher::equal): Likewise.
2681 (odr_subtypes_equivalent_p): Likewise.
2682 (warn_types_mismatch): Likewise.
2683 (get_odr_type): Likewise.
2684 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
2685 * ipa-utils.h (odr_type_p): Move offline.
2686 * tree.c (need_assembler_name_p): Fix handling of types
2688 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
2690 2015-05-12 David Malcolm <dmalcolm@redhat.com>
2692 * timevar.c (timevar_enable): Delete in favor of...
2693 (g_timer): New global.
2694 (struct timevar_def): Move to timevar.h inside class timer.
2695 (struct timevar_stack_def): Likewise.
2696 (timevars): Delete global in favor of field "m_timevars" within
2697 class timer in timevar.h
2698 (stack): Likewise, in favor of field "m_stack".
2699 (unused_stack_instances): Likewise, in favor of field
2700 "m_unused_stack_instances".
2701 (start_time): Likewise, in favor of field "m_start_time".
2702 (get_time): Eliminate check for timevar_enable.
2703 (timer::timer): New function, built from part of timevar_init.
2704 (timevar_init): Rewrite idempotency test from using
2705 "timevar_enable" bool to using dynamic allocation of "g_timer".
2706 Move rest of implementation into timer's constructor.
2707 (timevar_push_1): Rename to...
2708 (timer::push): ...this, adding "m_" prefixes to variables that
2709 are now fields of timer.
2710 (timevar_pop_1): Likewise, rename to...
2711 (timer::pop): ...this, and add "m_" prefixes.
2712 (timevar_start): Replace test for "timevar_enable" with one for
2713 "g_timer", and move bulk of implementation to...
2714 (timer::start): ...here, adding "m_" prefixes.
2715 (timevar_stop): Likewise, from here...
2716 (timer::stop): ...to here.
2717 (timevar_cond_start): Likewise, from here...
2718 (timer::cond_start): ...to here.
2719 (timevar_cond_stop): Likewise, from here...
2720 (timer::cond_stop): ...to here.
2721 (validate_phases): Rename to...
2722 (timer::validate_phases): ...this, and add "m_" prefixes. Make
2723 locals "total" and "tv" const.
2724 (timevar_print): Rename to...
2725 (timer::print): ...this, and add "m_" prefixes. Make locals
2726 "total" and "tv" const. Eliminate test for timevar_enable.
2727 * timevar.h (timevar_enable): Eliminate.
2728 (g_timer): New declaration.
2729 (timevar_push_1): Eliminate.
2730 (timevar_pop_1): Eliminate.
2731 (timevar_print): Eliminate.
2732 (class timer): New class.
2733 (timevar_push): Rewrite to use g_timer.
2734 (timevar_pop): Likewise.
2735 * toplev.c (toplev::~toplev): Likewise.
2737 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
2739 * arm-protos.h (arm_sched_autopref): Delete.
2740 (tune_params): Re-organize, use enums for flag values.
2741 (FUSE_OPS): New macro.
2742 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
2743 (ARM_PREFETCH_BENEFICIAL): Likewise.
2744 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
2745 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
2746 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
2747 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
2748 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
2749 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
2750 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
2751 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
2753 (arm_option_override, thumb2_reorg, arm_print_tune_info)
2754 (aarch_macro_fusion_pair_p): Update uses of current_tune.
2755 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
2757 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
2759 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
2762 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
2763 Sandra Loosemore <sandra@codesourcery.com>
2765 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
2767 (REG_CLASS_NAMES): Add "IJMP_REGS".
2768 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
2769 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
2770 use new "c" register constraint.
2771 * config/nios2/constraint.md (c): New register constraint
2772 corresponding to IJMP_REGS.
2774 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
2776 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
2777 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
2778 define_splits): Delete, revamp, transmogrify into ...
2779 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
2780 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
2781 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
2784 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
2786 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
2787 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
2789 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
2791 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
2792 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
2793 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
2794 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
2795 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
2796 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
2797 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
2798 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
2799 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
2800 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
2801 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
2802 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
2803 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
2804 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
2805 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
2806 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
2807 and 30 corresponding splitters): Delete.
2809 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
2811 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
2814 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
2816 * combine.c (recog_for_combine_1): New function, factored out
2817 from recog_for_combine.
2818 (change_zero_ext): New function.
2819 (recog_for_combine): If recog fails, try again with the pattern
2820 modified by change_zero_ext; if that still fails, restore the
2823 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
2825 * combine.c (get_undo_marker): New function.
2826 (undo_to_marker): New function, largely factored out from ...
2827 (undo_all): ... this. Adjust.
2829 2015-05-12 Richard Biener <rguenther@suse.de>
2831 PR tree-optimization/66101
2832 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
2833 fixup if we turn a loop exit edge to a fallthru edge.
2835 2015-05-12 Richard Biener <rguenther@suse.de>
2837 PR tree-optimization/37021
2838 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
2839 (SLP_TREE_TWO_OPERATORS): New define.
2840 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
2841 SLP_TREE_TWO_OPERATORS.
2842 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
2844 (vect_build_slp_tree): Adjust.
2845 (vect_analyze_slp_cost_1): Likewise.
2846 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
2847 emitting two vector stmts and mixing the results.
2849 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
2851 * call.c (print_z_candidates): Remove dead code.
2853 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2855 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
2856 and zEC12_simple_fp.
2857 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
2860 2015-05-12 Tom de Vries <tom@codesourcery.com>
2862 PR tree-optimization/66010
2863 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
2865 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
2866 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
2867 va_lists are passed, and remove corresponding handling.
2868 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
2869 do_deref argument to ifn_va_arg.
2870 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
2873 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2876 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
2877 REG before taking its REGNO.
2879 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
2881 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
2882 rsp->sign_bit_copies and rsp->nonzero_bits into ...
2883 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
2884 present to get more accurate information about the number of sign bit
2885 copies and non zero bits.
2887 2015-05-12 Richard Biener <rguenther@suse.de>
2889 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
2890 do not allow unrolling.
2892 2015-05-11 Richard Henderson <rth@redhat.com>
2894 * config/i386/i386-modes.def (CCP): New.
2895 * config/i386/i386.c (put_condition_code): Handle it.
2896 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
2898 2015-05-11 Richard Henderson <rth@redhat.com>
2900 * target.def (md_asm_clobbers): Replace with...
2901 (md_asm_adjust): this.
2902 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
2903 (TARGET_MD_ASM_ADJUST): New.
2905 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
2906 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
2907 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
2909 * cfgexpand.c (check_operand_nalternatives): Accept vector of
2910 constraints instead of lists of outputs and inputs.
2911 (expand_asm_stmt): Save and restore input_location around the
2912 body of the function. Move asm data into vectors instead of
2913 building tree lists. Generate cleanup sequences as needed,
2914 rather than waiting til the end. Use new md_asm_adjust hook.
2916 * config/vxworks.c: Include vec.h before target.h.
2917 * gimple.c: Likewise.
2918 * incpath.c: Likewise.
2919 * mode-switching.c: Likewise.
2921 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
2922 (cris_md_asm_adjust): this.
2923 (TARGET_MD_ASM_CLOBBERS): Remove.
2924 (TARGET_MD_ASM_ADJUST): New.
2925 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
2926 (ix86_md_asm_adjust): this.
2927 (TARGET_MD_ASM_CLOBBERS): Remove.
2928 (TARGET_MD_ASM_ADJUST): New.
2929 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
2930 (mn10300_md_asm_adjust): this.
2931 (TARGET_MD_ASM_CLOBBERS): Remove.
2932 (TARGET_MD_ASM_ADJUST): New.
2933 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
2934 (rs6000_md_asm_adjust): this.
2935 (TARGET_MD_ASM_CLOBBERS): Remove.
2936 (TARGET_MD_ASM_ADJUST): New.
2937 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
2938 (visium_md_asm_adjust): this.
2939 (TARGET_MD_ASM_CLOBBERS): Remove.
2940 (TARGET_MD_ASM_ADJUST): New.
2942 2015-05-11 Richard Henderson <rth@redhat.com>
2944 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
2945 if noutputs is zero.
2946 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
2948 * cfgexpand.c (expand_asm_operands): Merge into...
2949 (expand_asm_stmt): ... here.
2951 * cfgexpand.c (expand_asm_operands): Don't call
2952 resolve_asm_operand_names.
2953 * stmt.c (resolve_asm_operand_names): Clarify block comment.
2955 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
2957 * dwarf2out.c (gen_member_die): Sanity check that we access
2958 TYPE_MAIN_VARIANT for TYPE_METHODS.
2959 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
2960 checking TYPE_METHODS.
2961 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
2963 (build_distinct_type_copy): Clear TYPE_METHODS.
2964 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
2965 (verify_type): Allow TYPE_METHODS to be error_mark_node.
2966 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
2968 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
2970 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
2971 (emit_pattern_before_setloc): Likewise.
2973 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
2975 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
2976 for define_peephole2s.
2977 (get_peephole2_pattern): New function.
2978 (main): Use it. Call validate_pattern.
2980 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2982 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
2983 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
2984 (Last callee saved reg is different for AVR_TINY architecture)
2986 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
2988 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
2989 when looking for memory references.
2991 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
2994 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
2995 via function pointers.
2997 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
2999 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
3000 indirect call by forcing address into a pseudo with -fno-plt.
3001 * common.opt (flag_plt): New option.
3002 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
3003 ([-fno-plt]): Document.
3005 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
3008 * config/rs6000/option-defaults.h: Add space between string literal
3011 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
3013 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
3014 accross ARM targets.
3016 2015-05-11 Christian Bruel <christian.bruel@st.com>
3018 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
3019 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
3021 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
3023 PR rtl-optimization/66076
3024 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
3025 Don't grow the heap array if it is already big enough from a
3028 2015-05-11 Christian Bruel <christian.bruel@st.com>
3030 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
3031 (is_called_in_ARM_mode): Remove.
3032 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
3033 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
3034 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
3035 arm_declare_function_name.
3037 2015-05-11 Christian Bruel <christian.bruel@st.com>
3039 * config/arm/arm.c (arm_option_override): Reoganized and split into :
3040 (arm_option_params_internal); New function.
3041 (arm_option_check_internal): New function.
3042 (arm_option_override_internal): New function.
3043 (thumb_code, thumb1_code): Remove.
3044 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
3045 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
3046 (thumb_code, thumb1_code): Remove.
3047 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
3049 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
3051 * config/alpha/alpha.c (alpha_emit_set_const_1)
3052 (alpha_emit_set_long_const, alpha_extract_integer)
3053 (alpha_legitimate_constant_p, alpha_split_const_mov)
3054 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
3055 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
3056 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
3058 * config/alpha/predicates.md (mode_mask_operand): Do not match
3060 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
3061 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
3062 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
3063 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
3064 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
3066 2015-05-11 Jakub Jelinek <jakub@redhat.com>
3069 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
3070 default_binds_local_p_2.
3071 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
3072 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
3074 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
3076 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
3078 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
3080 Patch by Richard Biener
3081 * coverage.c (coverage_obj_init): Delay building of type variant
3082 until the type is finished.
3084 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
3086 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
3087 mismatch between C and C++ type; compoare correctly ARG_TYPES
3088 for non-prototypes and output correctly parameter index for METHOD_TYPE.
3089 (odr_types_equivalent_p): Fix wording of warning about attributes;
3090 it is OK to match prototype and non-prototype.
3092 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
3094 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
3095 TYPE_ARG_TYPES list.
3096 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
3097 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
3099 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
3101 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
3102 * tree.h (is_lang_specific): Constify.
3104 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
3106 PR tree-optimization/64454
3107 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
3110 2015-05-08 Jason Merrill <jason@redhat.com>
3112 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
3113 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
3114 config/darwin.h, config/darwin9.h, config/elfos.h,
3115 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
3116 config/microblaze/microblaze.h, config/mips/mips.h,
3117 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
3118 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
3119 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
3120 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
3121 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
3122 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
3123 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
3124 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
3125 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
3126 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
3127 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
3128 between string literal and macro name.
3130 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3132 * jump.c: Change argument types to rtx_insn *.
3135 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3137 * lra-constraints.c: Change argument type to rtx_insn *.
3139 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3141 * df-problems.c: Change argument type to rtx_insn *.
3143 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3145 * combine.c: Change argument type to rtx_insn *.
3147 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3150 * rtlanal.c: Change argument type to rtx_insn *.
3152 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3154 * sched-deps.c: Change argument types to rtx_insn *.
3155 * sched-int.h: Adjust.
3157 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3159 * dwarf2cfi.c: Change argument type to rtx_insn *.
3161 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3163 * ira.c (decrease_live_ranges_number): Changetype of local
3164 variable to rtx_insn *.
3165 * recog.c: Change argument types to rtx_insn *.
3168 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3170 * reorg.c: Change argument types to rtx_insn *.
3172 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3174 * ira-color.c: Change argument types to rtx_insn *.
3175 * lra-eliminations.c: Likewise.
3178 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3180 * gcse.c: Change argument types to rtx_insn *.
3182 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3184 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
3186 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3188 * emit-rtl.c (emit_debug_insn_before): Change argument type to
3192 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3194 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
3197 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3199 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
3202 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3204 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
3207 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3209 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
3212 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3214 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
3218 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3220 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
3224 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3226 * except.c (can_nonlocal_goto): Change type of argument to
3230 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3232 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
3235 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3237 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
3238 * cfgrtl.c (can_delete_label_p): Adjust.
3241 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3243 * reorg.c (stop_search_p): Change argument to rtx_insn *.
3245 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3247 * except.c (make_reg_eh_region_note): Change argument to
3249 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
3252 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3254 * mode-switching.c (commit_mode_sets): Change type of local
3255 variable from rtx to rtx_insn *.
3257 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
3259 * doc/install.texi (--enable-languages): Add missing jit and lto info.
3260 Add ^ to grep command.
3261 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
3262 arg to last gimple_simplify declaration. Add missing gimple_build
3263 declaration for built-in function case with four tree args.
3265 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
3266 Szabolcs Nagy <szabolcs.nagy@arm.com>
3268 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
3269 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
3270 (GNU_USER_DYNAMIC_LINKERN32): Update.
3272 2015-05-08 Richard Biener <rguenther@suse.de>
3274 PR tree-optimization/66036
3275 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3276 Handle strided group loads.
3277 (vect_verify_datarefs_alignment): Likewise.
3278 (vect_enhance_data_refs_alignment): Likewise.
3279 (vect_analyze_group_access): Likewise.
3280 (vect_analyze_data_ref_access): Likewise.
3281 (vect_analyze_data_ref_accesses): Likewise.
3282 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
3283 (vectorizable_load): Likewise.
3285 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
3287 * config/rs6000/rs6000.md: Require operand inequality in one
3290 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
3291 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3293 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
3295 * config/rx/rx.md (movdi, movdf): Likewise.
3296 Likewise for define_peephole2s.
3298 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
3300 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
3301 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
3302 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
3303 vtst_u64): Rewrite using gcc vector extensions.
3305 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
3307 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
3308 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
3310 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
3312 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
3314 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3316 * config/glibc-stdint.h (OPTION_MUSL): Define.
3317 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
3318 Change the definition based on OPTION_MUSL for 64 bit targets.
3319 * config/linux.h (OPTION_MUSL): Redefine.
3320 * config/alpha/linux.h (OPTION_MUSL): Redefine.
3321 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
3322 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
3324 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
3325 Szabolcs Nagy <szabolcs.nagy@arm.com>
3327 * config.gcc (LIBC_MUSL): New tm_defines macro.
3328 * config/linux.h (OPTION_MUSL): Define.
3329 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
3330 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
3331 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
3332 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
3333 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
3334 * config/linux.opt (mmusl): New option.
3335 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
3336 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
3337 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
3338 * configure: Regenerate.
3340 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
3341 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3344 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
3345 * config/i386/knetbsd-gnu64.h: New file.
3347 2015-05-08 Marek Polacek <polacek@redhat.com>
3350 * doc/invoke.texi: Document -Woverride-init-side-effects.
3352 2015-05-07 Marek Polacek <polacek@redhat.com>
3355 * doc/invoke.texi: Document -Wshift-negative-value.
3357 2015-05-06 Aditya Kumar <hiraditya@msn.com>
3359 * gcov-tool.c (do_merge): Refactore to remove int ret.
3360 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
3361 !type == FUNC to type != FUNC.
3362 * reload.h (struct target_reload): Changee to type of
3363 x_spill_indirect_levels from bool to unsigned char.
3365 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
3367 * rtl.h (always_void_p): New function.
3368 * gengenrtl.c (always_void_p): Likewise.
3369 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
3370 with code foo are always VOIDmode.
3371 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
3372 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
3373 compare-elim.c, config/aarch64/aarch64.c,
3374 config/aarch64/aarch64.md, config/alpha/alpha.c,
3375 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
3376 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
3377 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
3378 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
3379 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
3380 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
3381 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
3382 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
3383 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
3384 config/ia64/vect.md, config/iq2000/iq2000.c,
3385 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
3386 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
3387 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
3388 config/mep/mep.c, config/microblaze/microblaze.c,
3389 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
3390 config/mn10300/mn10300.c, config/msp430/msp430.c,
3391 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
3392 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
3393 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
3394 config/rs6000/altivec.md, config/rs6000/rs6000.c,
3395 config/rs6000/rs6000.md, config/rs6000/vector.md,
3396 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
3397 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
3398 config/sh/sh.md, config/sh/sh_treg_combine.cc,
3399 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
3400 config/spu/spu.md, config/stormy16/stormy16.c,
3401 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
3402 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
3403 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
3404 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
3405 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
3406 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
3407 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
3408 var-tracking.c: Update calls accordingly.
3410 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
3414 * varasm.c (function_mergeable_rodata_prefix): New function.
3415 (mergeable_string_section): Use it.
3416 (mergeable_constant_section): Use it.
3418 2015-05-07 Jeff Law <law@redhat.com>
3421 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
3422 simplifier to narrow arithmetic.
3423 * generic-match-head.c: (types_match, single_use): New functions.
3424 * gimple-match-head.c: (types_match, single_use): New functions.
3426 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3428 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
3431 2015-05-07 Richard Biener <rguenther@suse.de>
3433 PR tree-optimization/66002
3434 * passes.def: Schedule another pass_merge_phi after ifcombine, right
3437 2015-05-07 Marek Polacek <polacek@redhat.com>
3438 Martin Uecker <uecker@eecs.berkeley.edu>
3440 * doc/invoke.texi: Document -fsanitize=bounds-strict.
3441 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
3442 into SANITIZE_NONDEFAULT.
3443 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
3445 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
3448 * config/alpha/alpha.c (alpha_override_options_after_change): New.
3449 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3450 (alpha_override_options): Move align_loops, align_jumps and
3451 align_functions handling into alpha_override_options_after_change.
3453 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
3454 Chris Jones <chrisj@nvidia.com>
3455 Joshua Conner <jconner@nvidia.com>
3457 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
3458 linking of crtfastmath.o.
3459 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
3461 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3463 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
3464 (cstore<mode>4_unsigned_imm): New expander.
3465 (cstore<mode>4): Remove empty constraint strings. Use the new
3468 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
3471 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
3474 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
3476 * config/aarch64/geniterators.sh: Use standard BRE in sed.
3478 2015-05-06 Alan Modra <amodra@gmail.com>
3481 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
3482 (UNSPEC_NOP): Define.
3483 (reload_vsx_from_gpr<mode>): Add missing DONE.
3484 (reload_gpr_from_vsx<mode>): Likewise.
3485 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
3486 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
3488 2015-05-06 Christian Bruel <christian.bruel@st.com>
3491 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
3492 align_jumps, align_functions into aarch64_override_options_after_change.
3494 2015-05-06 Richard Biener <rguenther@suse.de>
3496 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
3497 vect_transform_slp_perm_load to check if we support a permutation
3498 for basic-block vectorization.
3500 2015-05-06 Nick Clifton <nickc@redhat.com>
3502 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
3503 used, even if it is not being used as a frame pointer.
3505 2015-05-05 Jason Merrill <jason@redhat.com>
3507 * dwarf2out.c (gen_member_die): Don't emit anything for an
3508 anonymous class constructor.
3510 2015-05-05 David Malcolm <dmalcolm@redhat.com>
3512 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
3513 that it reflects the block structure.
3514 (afdo_propagate_edge): Likewise.
3515 (afdo_calculate_branch_prob): Likewise.
3516 (afdo_annotate_cfg): Likewise.
3517 * cfgcleanup.c (equal_different_set_p): Likewise.
3518 (try_crossjump_to_edge): Likewise.
3519 * cgraph.c (cgraph_node::verify_node): Likewise.
3520 * cgraphunit.c (expand_all_functions): Likewise.
3521 * config/i386/i386.c (ix86_expand_copysign): Likewise.
3522 (exact_dependency_1): Likewise.
3523 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
3524 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
3525 * gensupport.c (process_define_subst): Likewise.
3526 * lto-wrapper.c (merge_and_complain): Likewise.
3527 * tree-if-conv.c (if_convertible_bb_p): Likewise.
3528 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
3529 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
3530 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
3531 * tree-vect-loop.c (vectorizable_reduction): Likewise.
3532 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
3533 * tree-vect-stmts.c (vectorizable_shift): Likewise.
3534 * tree-vrp.c (vrp_finalize): Likewise.
3535 * tree.c (variably_modified_type_p): Likewise.
3537 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
3539 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
3540 on darwin12 and later.
3541 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
3542 file to pass -rdynamic on darwin12 and later.
3543 * config/darwin.opt (rdynamic): Add.
3545 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
3547 * doc/extend.texi (C Extensions): Update menu for moved Variable
3548 Attributes and Type Attributes sections.
3550 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
3553 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
3554 if rep_8byte stringop strategy was specified for 32-bit target.
3556 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
3559 * config/i386/i386.md (vector convert to float spltiter): Check for
3560 xmm16+, when splitting scalar float conversion.
3561 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
3563 2015-05-05 Nick Clifton <nickc@redhat.com>
3565 * config/msp430/msp430-opts.h (enum msp430_regions): New.
3566 * config/msp430/msp430.c (msp430_override_options): Complain if
3567 -mcode-region or -mdata-region is used on a non MSP430X.
3568 (msp430_section_attr): New function. Checks lower, upper and
3570 (msp430_attribute_table): Add lower, upper and either.
3571 (gen_prefix): New function. Generates a prefix for a section
3573 (msp430_select_section): New function - handles the choice of
3574 section for an object. Takes into account memory region
3575 attributes and options.
3576 (msp430_function_section): Use gen_prefix.
3577 (TARGET_SECTION_TYPE_FLAGS): Define.
3578 (msp430_section_type_flags): New function.
3579 (TARGET_ASM_UNIQUE_SECTION): Define.
3580 (msp430_unique_section): New function.
3581 (msp430_output_aligned_decl_common): New function.
3582 (msp430_do_not_relax_short_jumps): New function.
3583 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
3585 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3586 * config/msp430/msp430-protos.h
3587 (msp430_do_not_relax_short_jumps): New prototype.
3588 (msp430_output_aligned_decl_common): New prototype.
3589 * config/msp430/msp430.md (length): New attribute.
3590 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
3591 then use a long code sequence for short jumps.
3592 * config/msp430/msp430.opt (mcode-region): New.
3593 (mdata-region): New.
3594 * doc/invoke.texi: Document new options.
3595 * doc/extend.texi: Document new attributes.
3597 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
3599 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
3600 (tune_params): Add field branch_costs.
3601 (aarch64_branch_cost): Declare.
3602 * gcc/config/aarch64.c (generic_branch_cost): New.
3603 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
3604 (cortexa53_tunings): Likewise.
3605 (cortexa57_tunings): Likewise.
3606 (thunderx_tunings): Likewise.
3607 (xgene1_tunings): Likewise.
3608 (aarch64_branch_cost): Define.
3609 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
3611 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
3613 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
3614 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
3615 * config/i386/i386.md: Ditto.
3616 * config/i386/winnt.c: Ditto.
3618 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
3620 * doc/extend.texi (__atomic Builtins): Move implementation details
3621 to the end of the description, rewrite opening paragraphs, state
3622 difference with __sync builtins, state C11/C++11 assumptions,
3623 weaken itemized descriptions, add explanation of memory model
3624 behaviour, expand description of compare-exchange, simplify text.
3626 2015-05-05 Renlin Li <renlin.li@arm.com>
3628 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
3630 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
3632 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
3633 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
3634 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
3635 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
3636 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
3637 * configure: Regenerate.
3638 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
3639 * doc/install.texi (aarch64*-*-*): Document new
3640 --enable-fix-cortex-a53-843419 option.
3641 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
3642 and -mno-fix-cortex-a53-843419 options.
3644 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
3647 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
3649 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
3651 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
3652 fix overactive TYPE_MIN_VALUE check and add FIXME for type
3653 compatibility problems.
3655 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
3657 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
3659 (cbranchsi4_reg): New.
3660 * config/microblaze/microblaze.c
3661 (microblaze_expand_conditional_branch_reg): New.
3662 * config/microblaze/microblaze-protos.h
3663 (microblaze_expand_conditional_branch_reg): New prototype.
3665 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
3667 * config/microblaze/microblaze.md (peephole2): New.
3669 2015-05-04 Jeff Law <law@redhat.com>
3672 2015-05-04 Jeff Law <law@redhat.com>
3674 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
3675 simplifier to narrow arithmetic.
3676 * generic-match-head.c: (types_match, single_use): New functions.
3677 * gimple-match-head.c: (types_match, single_use): New functions.
3679 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
3682 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
3683 (split_branches): Likewise.
3685 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
3687 * common.opt (fdelete-null-pointer-checks): Init to -1.
3688 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
3689 override flag_delete_null_pointer_checks default.
3690 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
3691 behavior re address zero. Better document target-specific behavior.
3692 (-fisolate-errneous-paths-dereference): Mention relationship to
3693 -fdelete-null-pointer-checks.
3695 2015-05-04 Jakub Jelinek <jakub@redhat.com>
3697 PR tree-optimization/65984
3698 * ubsan.c: Include tree-cfg.h.
3699 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
3700 stmt_could_throw_p test, rename can_throw variable to ends_bb.
3702 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
3704 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
3705 to CONST_DOUBLE_P predicate.
3706 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
3707 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
3708 allow only operands that satisfy standard_sse_constant_p predicate.
3709 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
3710 to CONST_DOUBLE_P predicate.
3712 2015-05-04 Jeff Law <law@redhat.com>
3714 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
3715 simplifier to narrow arithmetic.
3716 * generic-match-head.c: (types_match, single_use): New functions.
3717 * gimple-match-head.c: (types_match, single_use): New functions.
3719 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
3721 * config/arm/arm.c: Restore bootstrap.
3723 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
3725 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
3726 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
3727 as CONST_WIDE_INT, not CONST_DOUBLE.
3728 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
3729 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
3730 (ix86_find_base_term): Do not check for CONST_DOUBLE.
3731 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
3732 (ix86_build_signbit_mask): Rewrite using wide ints.
3733 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
3734 (ix86_rtx_costs): Handle CONST_WIDE_INT.
3735 (find_constant): Ditto.
3736 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
3738 * config/i386/predicates.md (x86_64_immediate_operand)
3739 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
3740 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
3741 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
3742 (const0_operand): Also match const_wide_int.
3743 (constm1_operand): Ditto.
3744 (const1_operand): Ditto.
3746 2015-05-04 Richard Biener <rguenther@suse.de>
3748 PR tree-optimization/65965
3749 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
3750 store groups at gaps.
3752 2015-05-04 Richard Biener <rguenther@suse.de>
3754 PR tree-optimization/65935
3755 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
3756 then make sure to apply that swapping to the IL.
3758 2015-05-04 Jakub Jelinek <jakub@redhat.com>
3760 * Makefile.in (PATCHLEVEL_c): New variable.
3761 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
3762 expand the same way as if DEVPHASE_c was non-empty.
3764 2015-05-04 Kai Tietz <ktietz@redhat.com>
3767 * lto-wrapper.c (run_gcc): Open filename
3770 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
3772 * doc/extend.texi (Variable Attributes, Type Attributes): Move
3773 sections up in file, to immediately after the Function Attributes
3776 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
3778 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
3780 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3782 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
3783 (insert_partition_copy_on_edge): Adjust.
3784 (insert_rtx_to_part_on_edge): Likewise.
3785 (insert_part_to_rtx_on_edge): Likewise.
3787 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3789 * function.c (set_return_jump_label): Change type of argument to
3791 * function.h (set_return_jump_label): Adjust.
3793 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3795 * reload.h (struct reg_equivs_t): Change type of init to
3797 * ira.c (fix_reg_equiv_init): Adjust.
3798 * reload1.c (eliminate_regs_1): Likewise.
3799 (init_eliminable_invariants): Likewise.
3801 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3803 * cselib.c (fp_setter_insn): Take a rtx_insn *.
3804 * cselib.h (fp_setter_insn): Adjust.
3806 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3808 * recog.c (struct validate_replace_src_data): Change type of
3809 insn field to rtx_insn *.
3810 (validate_replace_src_group): Change type of argument to rtx_insn *.
3811 * recog.h (validate_replace_src_group): Adjust.
3813 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3815 * haifa-sched.c: Change the type of some variables to rtx_insn *.
3816 * sched-deps.c: Likewise.
3817 * sched-int.h: Likewise.
3818 * sched-rgn.c: Likewise.
3819 * sel-sched.c: Likewise.
3821 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3824 * config/i386/i386.c: Change the type of some arguments to
3826 * config/arm/arm.c: Likewise.
3828 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3830 * lra-constraints.c: Change type of some arguments to rtx_insn *.
3832 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3834 * regcprop.c (kill_autoinc_value): Change type of argument to
3837 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3839 * genrecog.c (print_subroutine): Adjust.
3840 * recog.c (get_bool_attr_mask_uncached): Likewise.
3841 * recog.h (struct recog_data_d): Change the type of insn to
3844 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3846 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
3848 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3850 * df-problems.c (df_set_note): Change type of argument to
3853 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3855 * builtins.c (expand_builtin_trap): Change type of local
3856 variable to rtx_insn *.
3857 (add_sched_insns_for_speculation): Likewise.
3858 (ix86_emit_save_regs): Likewise.
3859 (get_scratch_register_on_entry): Likewise.
3860 (ix86_emit_restore_reg_using_pop): Likewise.
3861 (ix86_emit_leave): Likewise.
3862 (ix86_emit_restore_regs_using_mov): Likewise.
3863 (ix86_expand_epilogue): Likewise.
3865 (rl78_alloc_physical_registers_umul): Likewise.
3866 * cselib.c (discard_useless_locs): Likewise.
3867 (cselib_invalidate_regno): Likewise.
3868 (cselib_invalidate_mem): Likewise.
3869 * function.c (expand_function_start): Likewise.
3870 (emit_use_return_register_into_block): Likewise.
3872 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
3873 * ifcvt.c (noce_get_alt_condition): Likewise.
3874 * loop-doloop.c (doloop_condition_get): Likewise.
3875 * lra-constraints.c (inherit_in_ebb): Likewise.
3876 * modulo-sched.c (sms_schedule_by_order): Likewise.
3877 * recog.c (next_insn_tests_no_inequality): Likewise.
3878 * reorg.c (emit_delay_sequence): Likewise.
3879 (update_reg_dead_notes): Likewise.
3880 (fix_reg_dead_note): Likewise.
3881 (fill_slots_from_thread): Likewise.
3882 (delete_computation): Likewise.
3884 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
3886 * doc/extend.texi (Variable Attributes): Add menu and proper
3887 @nodes to subsections. Move Microsoft Windows attributes to
3888 their own subsection.
3889 (Type Attributes): Reorganize introduction to remove duplicate
3890 list of attributes. Add menu and proper @nodes to subsections.
3891 Alphabetize the main table of common attributes.
3893 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
3895 * match.pd: New simplification patterns.
3896 (x + (x & 1)) -> ((x + 1) & ~1)
3897 (x & ~(x & y)) -> ((x & ~y))
3898 (x | ~(x | y)) -> ((x | ~y))
3900 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3902 * target.def (attribute_table): Mention that struct attribute_spec
3903 is defined in tree-core.h rather than tree.h
3904 * doc/tm.texi: Regenerate.
3906 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
3908 * genrecog.c (test): Rename to rtx_test. Update rest of file
3911 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
3913 PR translation/65959
3914 * params.h (DEFPARAM): Rename msgid to nocmsgid.
3916 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
3918 * gcc/config/aarch64/aarch64-protos.h (tune_params):
3919 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
3920 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
3921 Return value depending on target.
3922 (generic_tunings): Initialize new target settings.
3923 (cortexa53_tunings): Likewise.
3924 (cortexa57_tunings): Likewise.
3925 (thunderx_tunings): Likewise.
3926 (xgene1_tunings): Likewise.
3928 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
3930 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
3931 Make Cortex-A53 shift costs more accurate.
3933 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3935 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
3938 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
3940 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
3941 Calculate cost of op0 and op1 in PLUS and MINUS cases.
3943 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3945 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
3946 Add cost of op0 in the compare-with-fpzero case.
3948 2015-04-30 David Malcolm <dmalcolm@redhat.com>
3950 * builtins.c (fold_builtin_1): Remove spurious second
3952 * cgraph.h (symtab_node::get_availability): Likewise.
3953 * opts.c (common_handle_option): Remove spurious second semicolon.
3954 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
3955 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
3957 2015-04-30 Caroline Tice <cmtice@google.com>
3959 PR gcov-profile/65929
3960 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
3961 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
3962 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
3963 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
3964 * doc/tm.texi: Regenerate.
3965 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
3966 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
3967 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
3968 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
3970 2015-04-30 Marek Polacek <polacek@redhat.com>
3972 * varasm.c (handle_cache_entry): Fix logic.
3974 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3976 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
3977 (*extrsi5_insn_uxtw_alt): Likewise.
3978 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
3979 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
3982 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3984 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
3987 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3989 * config/aarch64/aarch64.md
3990 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
3991 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
3992 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
3993 appropriately. Handle alternative EON form.
3995 2015-04-30 Renlin Li <renlin.li@arm.com>
3997 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
3998 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
4000 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
4003 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
4004 -fstrict-aliasing boundaries.
4006 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4008 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
4009 and [SU]MNEGL patterns.
4011 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4013 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
4014 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
4015 combined arithmetic-shift ops. Properly handle all shift and extend
4016 operations that can occur in combination with PLUS/MINUS.
4017 Rename maybe_fma to compound_p.
4018 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
4019 arithmetic and shift operations.
4021 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4023 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
4024 rather than arith_shift cost when costing ADD/MINUS of an
4027 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
4030 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
4033 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
4035 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
4036 are for the same position.
4038 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
4040 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
4042 (vectorize_loops): Use it.
4044 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
4046 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
4047 for aggregate types.
4048 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
4050 * tree.c (need_assembler_name_p): Compute mangled name for
4051 non-fundamental types and integer types.
4053 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
4055 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
4057 * expr.c (expand_expr_real_2): Likewise.
4059 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
4061 * tree.c (build_common_builtin_nodes): Do not build
4062 __builtin_alloca_with_align as equivalent of library alloca.
4064 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
4066 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
4067 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
4069 * tree.c: Include print-tree.h and ipa-utils.h
4070 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
4071 (free_lang_data_in_cgraph): Call verify_type.
4072 (verify_type_variant): New function.
4073 (verify_type): New function.
4074 * tree.h (verify_type): Declare.
4076 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
4078 * config/mips/mips-cpus.def: (mips4): Change default processor
4079 from PROCESSOR_R8000 to PROCESSOR_R10000.
4081 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
4083 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
4084 la/jalr instead of jal.
4086 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
4089 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
4090 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
4091 (setcc+movzbl peephole2): Check also clobbered reg.
4092 (setcc+andl peephole2): Ditto.
4094 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
4097 * config/nvptx/mkoffload.c (target_ilp32): New variable.
4098 (main): Set it depending on "-foffload-abi=[...]".
4099 (compile_native, main): Use it to pass "-m32" or "-m64" to the
4102 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
4105 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
4106 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
4107 Flip lane index back at assembly time for bigendian.
4109 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
4111 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
4112 * gimplify.c (gimplify_omp_workshare): Use it.
4114 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
4116 * Makefile.in (build/genrecog.o): Depend on inchash.h.
4117 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
4119 * genrecog.c: Rewrite most of the code except for the third page.
4121 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
4123 * inchash.h, inchash.c: Include bconfig.h for build objects.
4124 * Makefile.in (build/inchash.o): New rule.
4126 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
4129 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
4130 number in type attribute expression.
4132 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
4134 * loop-iv.c (canon_condition): Generalize to all types of integer
4137 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
4139 * gimple-walk.c: Prune duplicate or unneeded includes.
4140 (walk_gimple_asm): Only call parse_input_constraint or
4141 parse_output_constraint if their findings are used.
4142 Honour parse_input_constraint and parse_output_constraint
4145 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
4147 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
4149 2015-04-29 Tom de Vries <tom@codesourcery.com>
4151 PR tree-optimization/65893
4152 * passes.def (pass_all_optimizations): Move pass_stdarg to after
4155 2015-04-29 Richard Biener <rguenther@suse.de>
4157 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4158 compute GROUP_SIZE for basic-block SLP.
4159 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
4160 take into account gaps.
4161 (vect_get_mask_element): Properly reject references to previous
4163 (vect_transform_slp_perm_load): Likewise.
4165 2015-04-29 Christian Bruel <christian.bruel@st.com>
4168 * config/i386/i386.c (ix86_default_align): New function.
4169 (ix86_override_options_after_change): Call ix86_default_align.
4170 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
4171 (ix86_override_options_after_change): New function.
4173 2015-04-28 Jeff Law <law@redhat.com>
4175 * tree-ssa-dom.c (record_equality); Fix comment typos.
4177 2015-04-28 Tom de Vries <tom@codesourcery.com>
4179 PR tree-optimization/65887
4180 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
4182 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
4184 * doc/extend.texi (Declaring Attributes of Functions): Split into
4185 subsections by target. Alphabetize the table of common attributes.
4186 Rewrite some of the introductory text to reflect the new structure.
4187 Update some cross-references to point to the new subsections.
4188 (Attribute Syntax): Put paragraph about "__" naming here. Remove
4189 duplicate copies in the discussion of function, label, and type
4192 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
4195 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
4197 2015-04-28 Jason Merrill <jason@redhat.com>
4200 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
4201 (finalize_type_size): Respect TYPE_USER_ALIGN.
4202 (layout_type) [ARRAY_TYPE]: Likewise.
4204 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
4206 * config/arm/arm.md (*arm_movt): Fix type attribute.
4207 (*cmpsi_shiftsi): Likewise.
4208 (*cmpsi_shiftsi_swp): Likewise.
4209 (*movsicc_insn): Likewise.
4210 (*cond_move): Likewise.
4211 (*if_plus_move): Likewise.
4212 (*if_move_plus): Likewise.
4213 (*if_arith_move): Likewise.
4214 (*if_move_arith): Likewise.
4215 (*if_shift_move): Likewise.
4216 (*if_move_shift): Likewise.
4217 (*arm_movtas_ze): Likewise.
4218 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
4219 redundancy and type attribute.
4220 (*thumb2_movsi_insn): Fix type attribute.
4221 (*thumb2_addsi_short): Likewise.
4222 (thumb2_addsi3_compare0): Likewise.
4223 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
4224 attributes accordingly.
4226 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
4229 * function.c (pad_to_arg_alignment): Add parentheses.
4231 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
4233 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
4234 libgcc/config/frv/elf-lib.h.
4236 2015-04-28 Tom de Vries <tom@codesourcery.com>
4238 * tree-call-cdce.c: Fix example in header comment.
4240 2015-04-28 Richard Biener <rguenther@suse.de>
4242 PR tree-optimization/62283
4243 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
4244 fails fatally and we are vectorizing a basic-block simply
4245 cause the child to be constructed piecewise.
4246 (vect_analyze_slp_cost_1): Adjust.
4247 (vect_detect_hybrid_slp_stmts): Likewise.
4248 (vect_bb_slp_scalar_cost): Likewise.
4249 (vect_get_constant_vectors): For piecewise constructed
4250 constants place them after the last def.
4251 (vect_get_slp_defs): Adjust.
4252 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
4253 externals for basic-block vectorization.
4255 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
4258 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
4260 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
4261 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
4262 (AARCH64_TUNE_FMA_STEERING): Likewise.
4263 * config/aarch64/aarch64-cores.def: Set
4264 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
4265 FMUL/FMADD instructions.
4266 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
4267 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
4268 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
4269 * config/aarch64/cortex-a57-fma-steering.h: New file.
4270 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4272 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
4274 * gensupport.c (std_preds): Add missing codes to address_operand entry.
4276 2015-04-28 Richard Biener <rguenther@suse.de>
4278 PR tree-optimization/65851
4279 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
4280 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
4281 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
4282 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
4283 (ccp_visit_phi_node): Adjust.
4284 (evaluate_stmt): For simplifications to SSA names return its
4285 lattice value if that isn't VARYING. Return immediately when
4286 simplified to a constant.
4287 (visit_assignment): Adjust.
4288 (ccp_visit_stmt): Likewise.
4290 2015-04-28 Tom de Vries <tom@codesourcery.com>
4292 PR tree-optimization/65818
4293 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
4296 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4298 * calls.c (save_fixed_argument_area): Don't check
4299 ARGS_GROW_DOWNWARD with the preprocessor.
4300 (restore_fixed_argument_area): Likewise.
4301 (mem_overlaps_already_clobbered_arg_p): Likewise.
4302 (check_sibcall_argument_overlap): Likewise.
4303 (expand_call): Likewise.
4304 (emit_library_call_value_1): Likewise.
4305 (store_one_arg): Likewise.
4306 * function.c (assign_parms): Likewise.
4307 (locate_and_pad_parm): Likewise.
4308 (pad_to_arg_alignment): Likewise.
4309 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
4311 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4313 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
4314 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
4315 * calls.c (save_fixed_argument_area): Don't chekc if
4316 ARGS_GROW_DOWNWARD is defined.
4317 (restore_fixed_argument_area): Likewise.
4318 (mem_overlaps_already_clobbered_arg_p): Likewise.
4319 (check_sibcall_argument_overlap): Likewise.
4320 (expand_call): Likewise.
4321 (emit_library_call_value_1): Likewise.
4322 (store_one_arg): Likewise.
4323 * function.c (assign_parms): Likewise.
4324 (locate_and_pad_parm): Likewise.
4325 (pad_to_arg_alignment): Likewise.
4326 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
4328 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4330 * defaults.h (gen_epilogue): New function.
4331 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
4333 * cfgrtl.c (cfg_layout_finalize): Likewise.
4334 * df-scan.c: Likewise.
4335 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4336 (reposition_prologue_and_epilogue_notes): Likewise.
4337 * reorg.c (find_end_label): Likewise.
4338 * toplev.c: Likewise.
4340 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4342 * bb-reorder.c (HAVE_return): Don't check if its undefined.
4343 * defaults.h (gen_simple_return): New function.
4344 (gen_simple_return): Likewise.
4345 (HAVE_return): Add default definition to false.
4346 (HAVE_simple_return): Likewise.
4347 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
4348 HAVE_return and HAVE_simple_return are defined.
4349 * function.c (gen_return_pattern): Likewise.
4350 (convert_jumps_to_returns): Likewise.
4351 (thread_prologue_and_epilogue_insns): Likewise.
4352 * reorg.c (find_end_label): Likewise.
4353 (dbr_schedule): Likewise.
4354 * shrink-wrap.c: Likewise.
4355 * shrink-wrap.h: Likewise.
4357 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4359 * defaults.h (EPILOGUE_USES): Add default definition of false.
4360 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
4361 * resource.c (init_resource_info): Likewise.
4363 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4365 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
4367 * dwarf2out.c (field_byte_offset): REmove check if
4368 PCC_BITFIELD_TYPE_MATTERS is defined.
4369 * stor-layout.c (layout_decl): Likewise.
4370 (update_alignment_for_field): Likewise.
4371 (place_field): Likewise.
4373 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4375 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
4377 * regrename.c (check_new_reg_p): Remove check if
4378 HARD_REGNO_RENAME_OK is defined.
4379 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
4381 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4383 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
4384 * cse.c (fold_rtx): Likewise.
4385 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
4386 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
4387 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
4388 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
4389 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
4390 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
4391 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
4392 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
4393 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
4394 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
4396 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
4397 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
4398 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
4399 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
4400 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
4401 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
4402 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
4403 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
4404 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
4405 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
4406 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
4407 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
4408 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
4409 * doc/tm.texi: Regenerate.
4410 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
4411 either true or false.
4413 2015-04-27 Jeff Law <law@redhat.com>
4415 PR tree-optimization/65217
4416 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
4417 of them has a single use, make sure it is the LHS of the implied
4420 2015-04-28 Alan Modra <amodra@gmail.com>
4423 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
4424 (offsettable_ok_by_alignment): Use minimum of decl and toc
4425 pointer alignment. Replace dead code with assertion.
4426 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
4427 case if size exceeds toc pointer alignment.
4428 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
4429 (rs6000_emit_move): Likewise.
4430 * configure.ac: Add linker toc pointer alignment check.
4431 * configure: Regenerate.
4432 * config.in: Regenerate.
4434 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
4436 * config.gcc: Add h8300-*-linux.
4437 * config/h8300/linux.h: New.
4438 * config/h8300/t-linux: New.
4439 * config/h8300/h8300.c (h8300_option_override): Normal mode
4440 is not supported for h8300-*-linux.
4441 (h8300_file_start): Target priority change.
4442 (get_shift_alg): Likewise.
4443 (h8300_shift_need_scratch_p): Likewise.
4444 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4445 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
4447 2015-04-27 Caroline Tice <cmtice@google.com>
4449 * final.c (final_scan_insn): Output cold_function_name as function
4451 * varasm.c (cold_function_name): Make global.
4452 (assemble_start_function): Re-set cold_function_name.
4453 (assemble_end_function): Output cold partition size.
4454 * varasm.h (cold_function_name): Declare global.
4456 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
4458 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
4459 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
4461 (*movxi_internal_avx512f): Ditto.
4462 (define_split): Check for xmm16+, when splitting scalar float_extend.
4463 (*extendsfdf2_mixed): Use "v" constraint.
4464 (define_split): Check for xmm16+, when splitting scalar float_truncate.
4465 (*truncdfsf_fast_sse): Use "v" constraint.
4466 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
4467 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
4468 (define_peephole2): Check for xmm16+, when converting scalar
4470 (define_peephole2): Check for xmm16+, when converting scalar
4472 (*fop_<mode>_comm_mixed): Use "v" constraint.
4473 (*fop_<mode>_comm_sse): Ditto.
4474 (*fop_<mode>_1_mixed): Ditto.
4475 (*sqrt<mode>2_sse): Ditto.
4476 (*ieee_s<ieee_maxmin><mode>3): Ditto.
4478 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4480 * combine.c (simplify_if_then_else): Use std::swap instead
4481 of manually swapping.
4482 (known_cond): Likewise.
4483 (simplify_comparison): Likewise.
4485 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
4488 * config/rs6000/htm.md: Remove all define_expands.
4489 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
4490 UNSPECV_HTM_TABORTWCI): Remove.
4491 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
4492 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
4493 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
4494 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
4495 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
4496 tabortwci_internal): Remove define_insns.
4497 (tabort<wd>c, tabort<wd>ci): New define_insns.
4498 (tabort): Use gpc_reg_operand.
4499 (tcheck): Remove operand.
4500 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
4501 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
4503 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
4504 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
4505 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
4506 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
4507 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
4508 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
4509 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
4510 (tcheck): Remove builtin argument.
4511 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
4513 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
4514 tabortdc and tabortdci builtins when not in 64-bit mode.
4515 Modify code to handle the loss of the HTM define_expands.
4516 Emit code to copy the CR register to TARGET.
4517 (htm_init_builtins): Modify code to handle the loss of the HTM
4519 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
4520 (RS6000_BTC_64BIT): Likewise.
4521 (RS6000_BTC_CR): New macro.
4522 * doc/extend.texi: Update documentation for htm builtins.
4524 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4526 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
4527 of manually swapping.
4528 (simplify_associative_operation): Likewise.
4529 (simplify_binary_operation): Likewise.
4530 (simplify_plus_minus): Likewise.
4531 (simplify_relational_operation): Likewise.
4532 (simplify_ternary_operation): Likewise.
4534 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
4536 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
4537 (xs_hi_nonmemory_operand): Remove error.
4538 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
4539 general_operand rather than xs_hi_general_operand.
4541 2015-04-27 Richard Biener <rguenther@suse.de>
4543 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
4544 (record_equivalences_from_stmt): Valueize rhs.
4545 (record_equality): Canonicalize x and y order via
4546 tree_swap_operands_p. Do not swap operands for same loop depth.
4548 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
4552 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
4553 Add hint how to use own spec file.
4555 2015-04-27 Jakub Jelinek <jakub@redhat.com>
4557 PR tree-optimization/65875
4558 * tree-vrp.c (update_value_range): If in is_new case setting
4559 old_vr to VR_VARYING, also set new_vr to it. Remove
4560 old_vr->type == VR_VARYING test.
4561 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
4562 SSA_PROP_INTERESTING if update_value_range returned true,
4563 but new range is VR_VARYING.
4565 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
4567 * combine.c (sign_extend_short_imm): New.
4568 (set_nonzero_bits_and_sign_copies): Use above new function for sign
4569 extension of src short immediate.
4570 (reg_nonzero_bits_for_combine): Likewise for tem.
4572 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
4574 * stor-layout.c (self_referential_component_ref_p): New predicate.
4575 (copy_self_referential_tree_r): Use it.
4576 (self_referential_size): Punt for simple operations directly involving
4577 self-referential component references.
4578 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
4580 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
4582 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
4584 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
4586 * vec.h (vec): Make splice arguments const. Update definitions
4589 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
4591 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
4594 2015-04-26 Tom de Vries <tom@codesourcery.com>
4596 PR tree-optimization/65826
4597 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
4599 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
4601 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
4602 (*madd3<mode>): Ditto.
4603 (*msub4<mode>): Ditto.
4604 (*msub3<mode>): Ditto.
4605 (*nmadd4<mode>): Ditto.
4606 (*nmadd3<mode>): Ditto.
4607 (*nmadd4<mode>_fastmath): Ditto.
4608 (*nmadd3<mode>_fastmath): Ditto.
4609 (*nmsub4<mode>): Ditto.
4610 (*nmsub3<mode>): Ditto.
4611 (*nmsub4<mode>_fastmath): Ditto.
4612 (*nmsub3<mode>_fastmath): Ditto.
4614 2015-04-24 Jason Merrill <jason@redhat.com>
4617 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
4618 down when building TYPE_CANONICAL.
4619 (build_pointer_type_for_mode): Likewise.
4621 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
4623 * genrecog.c (validate_pattern): Check matching constraint refers
4624 to a lower numbered operand.
4626 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4629 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
4630 save to independent variables use the Save attribute. This will
4631 allow these options to be modified with the #pragma/attribute
4633 (-mallow-movmisalign): Likewise.
4634 (-mallow-df-permute): Likewise.
4635 (-msched-groups): Likewise.
4636 (-malways-hint): Likewise.
4637 (-malign-branch-targets): Likewise.
4638 (-mvectorize-builtins): Likewise.
4639 (-msave-toc-indirect): Likewise.
4641 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
4642 can be set via the #pragma/attribute target support.
4643 (rs6000_opt_vars): Likewise.
4644 (rs6000_inner_target_options): If VSX was set, also set
4645 -mno-avoid-indexed-addresses.
4647 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4649 * config/arm/iterators.md (shiftable_ops): Rename to...
4650 (SHIFTABLE_OPS): ... This. Update use in comments.
4651 (ior_xor): Rename to...
4652 (IOR_XOR): ... This.
4653 (vqh_ops): Rename to...
4654 (VQH_OPS): ... This.
4655 (vqhs_ops): Rename to...
4656 (VQHS_OPS): ... This.
4657 (rshifts): Rename to...
4658 (RSHIFTS): ... This.
4659 (returns): Rename to...
4660 (RETURNS): ... This.
4661 * config/arm/arm.md: Update uses of the above.
4662 * config/arm/neon.md: Likewise.
4664 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4666 * config.host (case ${host}): Add aarch64*-*-linux case.
4667 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
4668 fields to all the cores.
4669 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
4670 Add MCPU_MTUNE_NATIVE_SPECS.
4671 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
4672 field to all extensions.
4673 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
4674 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
4675 Adjust definition of AARCH64_OPT_EXTENSION.
4676 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
4677 (MCPU_MTUNE_NATIVE_SPECS): Define.
4678 * config/aarch64/driver-aarch64.c: New file.
4679 * config/aarch64/x-arch64: New file.
4680 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
4683 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
4684 Wei Mi <wmi@google.com>
4686 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
4687 * config/i386/i386.c (extract_base_offset_in_addr): New function.
4688 (ix86_operands_ok_for_move_multiple): Ditto.
4689 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
4690 (movlpd/movhpd to movupd peephole2): Ditto.
4692 2015-04-24 Marek Polacek <polacek@redhat.com>
4695 * input.h (from_macro_expansion_at): Define.
4698 * doc/invoke.texi: Update description of -Wlogical-op.
4700 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
4702 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
4703 ternary operator in fprintf and harmonize spacing.
4705 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
4707 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
4708 Mark operand1 commutative.
4710 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
4712 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
4713 input operands in memory.
4714 (*vec_concatv2si_sse4_1): Ditto.
4715 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
4716 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
4718 (vec_extract_hi_v32hi): Ditto.
4719 (vec_extract_hi_v64hi): Ditto.
4720 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
4722 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
4723 Steven Bosscher <steven@gcc.gnu.org>
4725 PR rtl-optimization/34503
4726 * cprop.c (cprop_reg_p): New.
4727 (hash_scan_set): Use above function to check if register can be
4729 (find_avail_set): Return up to two sets, one whose source is a
4730 register and one whose source is a constant. Sets are returned in an
4731 array passed as parameter rather than as a return value.
4732 (cprop_insn): Use a do while loop rather than a goto. Try each of the
4733 sets returned by find_avail_set, starting with the one whose source is
4734 a constant. Use cprop_reg_p to check if register can be propagated.
4735 (do_local_cprop): Use cprop_reg_p to check if register can be
4737 (implicit_set_cond_p): Likewise.
4739 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
4741 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
4742 (sem_function::equals): IGNORED_NODES parameter is now unused;
4743 update call of equals_private.
4744 (sem_function::equals_private): Do not call equals_wpa; skip
4745 gimple body matching if there is no body.
4746 (sem_function::init): Add logic to hash tthunk info.
4747 (sem_function::parse): Also parse thunks.
4748 * ipa-icf.h (equals_private): Update declaration.
4750 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4752 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
4753 asterisk from name so this can be generated directly.
4754 (*altivec_stvx_<mode>_internal): Likewise.
4755 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
4756 that this is never called during or after reload/lra.
4757 (rs6000_frame_related): Remove split_reg
4758 argument and logic that references it.
4759 (emit_frame_save): Remove last parameter from call to
4760 rs6000_frame_related.
4761 (rs6000_emit_prologue): Remove last parameter from eight calls to
4762 rs6000_frame_related. Force generation of stvx instruction for
4763 Altivec register saves. Remove split_reg handling, which is no
4765 (rs6000_emit_epilogue): Force generation of lvx instruction for
4766 Altivec register restores.
4768 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4770 * config/rs6000/rs6000.opt (mcrypto): Change option description to
4771 match category changes in ISA 2.07B.
4773 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4775 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
4777 (cmp_op, cmp_type): New code attributes.
4778 (NEON_VCMP, NEON_VACMP): New int iterators.
4779 (cmp_op_unsp): New int attribute.
4780 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
4781 (neon_vceq<mode>): Delete.
4782 (neon_vc<cmp_op><mode>_insn): New pattern.
4783 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
4784 (neon_vcgeu<mode>): Delete.
4785 (neon_vcle<mode>): Likewise.
4786 (neon_vclt<mode>: Likewise.
4787 (neon_vcage<mode>): Likewise.
4788 (neon_vcagt<mode>): Likewise.
4789 (neon_vca<cmp_op><mode>): New define_expand.
4790 (neon_vca<cmp_op><mode>_insn): New pattern.
4791 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
4793 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
4795 * tree.h (attribute_value_equal): Declare.
4796 * tree.c (attribute_value_equal): Export.
4798 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
4800 * ipa-icf.c (sem_item::compare_attributes): New function.
4801 (sem_item::compare_referenced_symbol_properties): Compare variable
4803 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
4804 (sem_function::param_used_p): New function.
4805 (sem_function::equals_wpa): Fix attribute comparsion; match
4806 parameter type codes; do not compare paremter flags when
4807 they are not used; compare edge flags; compare indirect calls.
4808 (sem_item::update_hash_by_addr_refs): Hash reference type.
4809 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
4810 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
4812 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
4813 * ipa-icf.h (compare_attributes, param_used_p): Declare.
4815 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
4817 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
4819 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
4820 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
4821 (sem_item::compare_referenced_symbol_properties): New.
4822 (sem_item::hash_referenced_symbol_properties): New.
4823 (sem_item::compare_cgraph_references): Rename to ...
4824 (sem_item::compare_symbol_references): ... this one; use
4825 compare_referenced_symbol_properties.
4826 (sem_function::equals_wpa): Do not compare
4827 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
4828 DECL_IS_OPERATOR_NEW; compare pointer sizes.
4829 (sem_item::update_hash_by_addr_refs): Call
4830 hash_referenced_symbol_properties.
4831 (sem_item::update_hash_by_local_refs): Cleanup.
4832 (sem_function::merge): Do not mix up symbol properties.
4833 (sem_variable::equals_wpa): Use compare_symbol_references.
4834 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
4835 (sem_item::hash_referenced_symbol_properties): New.
4836 (sem_item::compare_symbol_references): New.
4837 (sem_item::compare_cgraph_references): Remove.
4839 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
4842 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
4845 2015-04-23 Nick Clifton <nickc@redhat.com>
4847 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
4848 ATTRIBUTE_UNUSED to x parameter.
4849 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
4851 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4853 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
4854 TARGET_CRYPTO to TARGET_P8_VECTOR>
4855 (crypto_vpermxor_<mode>): Likewise.
4856 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
4857 (BU_CRYPTO_3A): Likewise.
4858 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
4859 (BU_CRYPTO_OVERLOAD_3A): New #define.
4860 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
4861 (VPMSUMH): Likewise.
4862 (VPMSUMW): Likewise.
4863 (VPMSUMD): Likewise.
4864 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
4865 (VPERMXOR_V4SI): Likewise.
4866 (VPERMXOR_V8HI): Likewise.
4867 (VPERMXOR_V16QI): Likewise.
4868 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
4869 BU_CRYPTO_OVERLOAD_2A.
4870 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
4871 BU_CRYPTO_OVERLOAD_3A.
4872 * config/rs6000/rs6000.opt (mcrypto): Change description of
4875 2015-04-23 Richard Biener <rguenther@suse.de>
4877 * passes.def: Remove copy propagation passes run directly after CCP.
4878 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
4880 (ccp_visit_phi_node): Rework to handle first executable edge
4883 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
4885 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4886 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
4887 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
4888 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
4889 (thumb_legimitimize_reload_address): Remove.
4890 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
4892 (thumb_legimitimize_reload_address): Remove.
4894 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4896 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
4898 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4900 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
4902 (store_multiple): Likewise.
4904 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4906 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
4907 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
4908 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
4909 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
4910 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
4911 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
4912 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
4913 Specify issue_rate value.
4914 (arm_issue_rate): Look up issue rate from tuning structs. Remove
4915 large switch statement.
4916 (arm_marvell_pj4_tune): New struct.
4917 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
4920 2015-04-23 Richard Biener <rguenther@suse.de>
4922 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
4923 (vect_find_last_store_in_slp_instance): Rename to ...
4924 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
4925 (vect_analyze_slp_cost_1): Use vector_load for constant defs
4926 and vec_construct for external defs when estimating prologue cost.
4927 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
4928 Compute costs here only when vectorizing loops.
4929 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
4930 have been determined.
4931 (vect_schedule_slp_instance): Simplify vectorized code placement
4932 and prepare for in-BB external defs.
4933 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
4934 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
4935 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
4937 (vect_model_load_cost): Likewise.
4938 (vectorizable_store): Instead add it here.
4939 (vectorizable_load): Likewise.
4940 (vect_is_simple_use): Dump def type textually.
4942 2015-04-23 Richard Biener <rguenther@suse.de>
4944 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
4945 * cfgloop.c (verify_loop_structure): Verify the root loop node.
4946 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
4947 instead of get_eh_region_from_lp_number.
4948 * loop-init.c (fix_loop_structure): If we removed a loop, reset
4951 2015-04-23 Anton Blanchard <anton@samba.org>
4953 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
4954 need for -mprofile-kernel to save LR to stack.
4956 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4958 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
4960 (insn_is_swappable_p): Return 1 for a convert from double to
4961 single precision when all of its uses are splats of BE element
4964 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4966 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
4968 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4971 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
4972 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
4973 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
4975 (rs6000_builtin_mask_for_load): Return 0 for targets with
4976 efficient unaligned VSX accesses so that the vectorizer will use
4977 direct unaligned loads.
4978 (rs6000_builtin_support_vector_misalignment): Always return true
4979 for targets with efficient unaligned VSX accesses.
4980 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
4981 stores on targets with efficient unaligned VSX accesses is almost
4982 always the same as the cost of an aligned load or store, so model
4984 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
4985 unaligned vectors if we have efficient unaligned VSX accesses.
4986 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
4987 undocumented option.
4989 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4992 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
4994 * config.gcc (LIBC_MUSL): New tm_defines macro.
4995 * config/linux.h (OPTION_MUSL): Define.
4996 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4997 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4998 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
5000 * config/linux.opt (mmusl): New option.
5001 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
5002 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
5004 * configure: Regenerate.
5006 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
5008 * config.gcc (LIBC_MUSL): New tm_defines macro.
5009 * config/linux.h (OPTION_MUSL): Define.
5010 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
5011 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
5012 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
5014 * config/linux.opt (mmusl): New option.
5015 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
5016 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
5018 * configure: Regenerate.
5020 2015-04-22 Yury Gribov <y.gribov@samsung.com>
5022 * doc/invoke.texi (-fsanitize-sections): Update description.
5023 * asan.c (set_sanitized_sections): Parse incoming arg.
5024 (section_sanitized_p): Support wildcards.
5026 2015-04-22 Tom de Vries <tom@codesourcery.com>
5028 PR tree-optimization/65823
5029 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
5030 equality between ap_copy and ap.
5032 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5035 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
5037 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5040 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
5042 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5045 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
5046 remove already contained t-files.
5048 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5050 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
5051 Remove unneeded forward declarations.
5052 (suitable_for_tail_call_opt_p): Commentary typo fix.
5054 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5056 * varasm.c (emit_bss): Remove redundant guard.
5058 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5060 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
5062 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5064 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
5066 2015-04-22 Hale Wang <hale.wang@arm.com>
5067 Terry Guo <terry.guo@arm.com>
5069 PR rtl-optimization/64818
5070 * combine.c (can_combine_p): Don't combine user-specified
5071 register if it is in an asm input.
5073 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
5076 * passes.def (early_optimizations): Add pass_dse.
5078 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5080 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
5081 * reorg.c (redundant_insn): Remove ifdef
5082 INSN_REFERENCES_ARE_DELAYED.
5083 * resource.c (mark_referenced_resources): Likewise.
5085 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5087 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
5088 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
5089 * resource.c (mark_set_resources): Likewise.
5091 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5093 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
5094 * cfgcleanup.c (flow_find_cross_jump): Likewise.
5095 (flow_find_head_matching_sequence): Likewise.
5096 (try_head_merge_bb): Likewise.
5097 * combine.c (can_combine_p): Likewise.
5098 (try_combine): Likewise.
5099 (distribute_notes): Likewise.
5100 * df-problems.c (can_move_insns_across): Likewise.
5101 * final.c (final): Likewise.
5102 * gcse.c (insert_insn_end_basic_block): Likewise.
5103 * ira.c (find_moveable_pseudos): Likewise.
5104 * reorg.c (try_merge_delay_insns): Likewise.
5105 (fill_simple_delay_slots): Likewise.
5106 (fill_slots_from_thread): Likewise.
5107 * sched-deps.c (sched_analyze_2): Likewise.
5109 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5111 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
5112 PIC_OFFSET_TABLE_REGNUM.
5114 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5116 * alias.c (init_alias_target): Remove ifdef
5117 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
5118 * df-scan.c (df_insn_refs_collect): Likewise.
5119 (df_get_regular_block_artificial_uses): Likewise.
5120 (df_get_eh_block_artificial_uses): Likewise.
5121 (df_get_entry_block_def_set): Likewise.
5122 (df_get_exit_block_use_set): Likewise.
5123 * emit-rtl.c (gen_rtx_REG): Likewise.
5124 * ira.c (ira_setup_eliminable_regset): Likewise.
5125 * reginfo.c (init_reg_sets_1): Likewise.
5126 * regrename.c (rename_chains): Likewise.
5127 * reload1.c (reload): Likewise.
5128 (eliminate_regs_in_insn): Likewise.
5129 * resource.c (mark_referenced_resources): Likewise.
5130 (init_resource_info): Likewise.
5132 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5134 * defaults.h (MASK_RETURN_ADDR): New definition.
5135 * except.c (expand_builtin_extract_return_addr): Remove ifdef
5138 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5140 * defaults.h (RETURN_ADDR_OFFSET): New definition.
5141 * except.c (expand_builtin_extract_return_addr): Remove ifdef
5143 (expand_builtin_frob_return_addr): Likewise.
5145 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5147 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
5148 (try_redirect_by_replacing_jump): Likewise.
5149 (rtl_tidy_fallthru_edge): Likewise.
5150 * combine.c (insn_a_feeds_b): Likewise.
5151 (find_split_point): Likewise.
5152 (simplify_set): Likewise.
5153 * cprop.c (cprop_jump): Likewise.
5154 * cse.c (cse_extended_basic_block): Likewise.
5155 * df-problems.c (can_move_insns_across): Likewise.
5156 * function.c (emit_use_return_register_into_block): Likewise.
5157 * haifa-sched.c (sched_init): Likewise.
5158 * ira.c (find_moveable_pseudos): Likewise.
5159 * loop-invariant.c (find_invariant_insn): Likewise.
5160 * lra-constraints.c (curr_insn_transform): Likewise.
5161 * postreload.c (reload_combine_recognize_const_pattern):
5163 * reload.c (find_reloads): Likewise.
5164 * reorg.c (delete_scheduled_jump): Likewise.
5165 (steal_delay_list_from_target): Likewise.
5166 (steal_delay_list_from_fallthrough): Likewise.
5167 (redundant_insn): Likewise.
5168 (fill_simple_delay_slots): Likewise.
5169 (fill_slots_from_thread): Likewise.
5170 (delete_computation): Likewise.
5171 * sched-rgn.c (add_branch_dependences): Likewise.
5173 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5175 * genconfig.c (main): Always define HAVE_cc0.
5176 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
5178 * cfgcleanup.c (flow_find_cross_jump): Likewise.
5179 (flow_find_head_matching_sequence): Likewise.
5180 (try_head_merge_bb): Likewise.
5181 * cfgrtl.c (rtl_merge_blocks): Likewise.
5182 (try_redirect_by_replacing_jump): Likewise.
5183 (rtl_tidy_fallthru_edge): Likewise.
5184 * combine.c (do_SUBST_MODE): Likewise.
5185 (insn_a_feeds_b): Likewise.
5186 (combine_instructions): Likewise.
5187 (can_combine_p): Likewise.
5188 (try_combine): Likewise.
5189 (find_split_point): Likewise.
5191 (simplify_set): Likewise.
5192 (distribute_notes): Likewise.
5193 * cprop.c (cprop_jump): Likewise.
5194 * cse.c (cse_extended_basic_block): Likewise.
5195 * df-problems.c (can_move_insns_across): Likewise.
5196 * final.c (final): Likewise.
5197 (final_scan_insn): Likewise.
5198 * function.c (emit_use_return_register_into_block): Likewise.
5199 * gcse.c (insert_insn_end_basic_block): Likewise.
5200 * haifa-sched.c (sched_init): Likewise.
5201 * ira.c (find_moveable_pseudos): Likewise.
5202 * loop-invariant.c (find_invariant_insn): Likewise.
5203 * lra-constraints.c (curr_insn_transform): Likewise.
5204 * optabs.c (prepare_cmp_insn): Likewise.
5205 * postreload.c (reload_combine_recognize_const_pattern):
5207 * reload.c (find_reloads): Likewise.
5208 (find_reloads_address_1): Likewise.
5209 * reorg.c (delete_scheduled_jump): Likewise.
5210 (steal_delay_list_from_target): Likewise.
5211 (steal_delay_list_from_fallthrough): Likewise.
5212 (try_merge_delay_insns): Likewise.
5213 (redundant_insn): Likewise.
5214 (fill_simple_delay_slots): Likewise.
5215 (fill_slots_from_thread): Likewise.
5216 (delete_computation): Likewise.
5217 (relax_delay_slots): Likewise.
5218 * sched-deps.c (sched_analyze_2): Likewise.
5219 * sched-rgn.c (add_branch_dependences): Likewise.
5221 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5223 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
5224 that is trivially ded on non cc0 targets.
5225 (simplify_set): Likewise.
5226 (mark_used_regs_combine): Likewise.
5227 * cse.c (new_basic_block): Likewise.
5228 (fold_rtx): Likewise.
5229 (cse_insn): Likewise.
5230 (cse_extended_basic_block): Likewise.
5231 (set_live_p): Likewise.
5232 * rtlanal.c (canonicalize_condition): Likewise.
5233 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5235 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5237 * conditions.h: Define macros even if HAVE_cc0 is undefined.
5238 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
5239 * final.c: Likewise.
5241 * recog.c: Likewise.
5242 * recog.h: Declare functions even when HAVE_cc0 is undefined.
5243 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
5245 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5247 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
5248 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
5249 * builtins.c (expand_builtin): Remove check if
5250 EH_RETURN_DATA_REGNO is defined.
5251 * df-scan.c (df_bb_refs_collect): Likewise.
5252 (df_get_exit_block_use_set): Likewise.
5253 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
5254 * ira-lives.c (process_bb_node_lives): Likewise.
5255 * lra-lives.c (process_bb_lives): Likewise.
5257 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
5259 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
5260 FIRST_PSEUDO_REG): New.
5261 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
5262 (ARG_POINTER_REGNUM): Define to ARGP_REG.
5263 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
5264 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
5265 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
5266 (FIRST_INT_REG): New.
5267 (LAST_INT_REG): New.
5268 (FIRST_*_REG): Define using *_REG.
5269 (LAST_*_REG): Ditto.
5270 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
5271 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
5272 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
5274 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5276 * expmed.c: (synth_mult): Only assume overlapping
5277 shift with previous steps in alg_sub_t_m2 case.
5279 2015-04-21 Richard Biener <rguenther@suse.de>
5281 PR tree-optimization/65650
5282 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
5283 transitions involving copies.
5284 (set_lattice_value): Adjust for copy lattice state.
5285 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
5286 if that doesn't dominate the merge point.
5287 (bit_value_unop): Adjust what we treat as varying mask.
5288 (bit_value_binop): Likewise.
5289 (bit_value_assume_aligned): Likewise.
5290 (evaluate_stmt): When we simplified to a SSA name record a copy
5291 instead of dropping to varying.
5292 (visit_assignment): Simplify.
5294 * gimple-match.h (gimple_simplify): Add another callback.
5295 * gimple-fold.c (fold_stmt_1): Adjust caller.
5296 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
5297 for the 2nd callback.
5298 * gimple-match-head.c (gimple_simplify): Add a callback that is
5299 used to valueize the stmt operands and use it that way.
5301 2015-04-21 Richard Biener <rguenther@suse.de>
5303 PR tree-optimization/65788
5304 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
5306 2015-04-21 Richard Biener <rguenther@suse.de>
5308 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
5309 vec_construct cost by vec_stmt_cost.
5311 2015-04-21 Richard Biener <rguenther@suse.de>
5313 * cfghooks.h (create_basic_block): Replace with two overloads
5315 (split_block): Likewise.
5316 * cfghooks.c (split_block): Rename to ...
5317 (split_block_1): ... this.
5318 (split_block): Add two type-safe overloads for RTL and GIMPLE.
5319 (split_block_after_labels): Call split_block_1.
5320 (create_basic_block): Rename to ...
5321 (create_basic_block_1): ... this.
5322 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
5323 (create_empty_bb): Call create_basic_block_1.
5324 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
5325 split_block_after_labels.
5326 * omp-low.c (expand_parallel_call): Likewise.
5327 (expand_omp_target): Likewise.
5328 (simd_clone_adjust): Likewise.
5329 * tree-chkp.c (chkp_get_entry_block): Likewise.
5330 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
5331 create_basic_block overload.
5332 (cgraph_node::expand_thunk): Likewise.
5333 * tree-cfg.c (make_blocks): Likewise.
5334 (handle_abnormal_edges): Likewise.
5335 * tree-inline.c (copy_bb): Likewise.
5337 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5339 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
5341 (*xor_one_cmplsidi3_ze): Likewise.
5343 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
5345 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
5346 use df_remove_problem rather than manually removing problems, leaving
5347 holes in df->problems_in_order[].
5349 2015-04-21 Tom de Vries <tom@codesourcery.com>
5351 PR tree-optimization/65802
5352 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
5354 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5356 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
5358 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
5359 at '.'. Assert that there's enough space for everything.
5361 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
5363 PR tree-optimization/64950
5365 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
5368 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
5371 2015-04-20 Shiva Chen <shiva0217@gmail.com>
5373 PR rtl-optimization/64916
5374 * cfgcleanup.c (values_equal_p): New function.
5375 (can_replace_by): Use it.
5377 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
5380 * doc/invoke.texi ([-Wnarrowing]): Update.
5382 2015-04-20 Jeff Law <law@redhat.com>
5384 PR tree-optimization/65658
5385 * tree-ssa-threadupdate.c (redirection_block_p): Remove
5386 redundant test for GIMPLE_ASSIGN in last change.
5388 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
5390 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
5391 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
5392 (legitimize_tls_address): Ditto.
5393 (ix86_expand_move): Ditto.
5394 (ix86_expand_binary_operator): Remove reload_in_progress checks.
5395 (ix86_expand_unary_operator): Ditto.
5396 * config/i386/predicates.md (index_register_operand): Ditto.
5398 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
5400 * reorg.c (try_merge_delay_insns): Improve correctness checking
5401 for targets with multiple delay slots.
5403 2015-04-20 Jeff Law <law@redhat.com>
5405 PR tree-optimization/65658
5406 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
5409 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
5411 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
5412 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
5415 2015-04-20 Jakub Jelinek <jakub@redhat.com>
5418 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
5420 2015-04-20 Richard Biener <rguenther@suse.de>
5422 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
5423 * gimple-fold.c (gimple_build_valueize): New function.
5424 (gimple_build): Always use gimple_build_valueize as valueize hook.
5426 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
5429 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
5430 and overwrite variable parts if <= 1/2 the elements are variable.
5432 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
5434 PR rtl-optimization/65805
5435 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
5436 Don't use difference of offset and previous offset if
5437 update_sp_offset is non-zero.
5438 (eliminate_regs_in_insn): Ditto.
5439 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
5440 lra_eliminate_regs_1 call.
5441 * lra-constraints.c (get_equiv_with_elimination): Ditto.
5443 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
5445 * hash-table.h: Remove version of hash_table that stored value_type *.
5446 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
5447 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
5448 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
5449 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
5450 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
5451 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
5452 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
5453 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
5454 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
5455 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
5456 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
5457 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
5458 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
5459 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
5460 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
5461 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
5463 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5464 Jakub Jelinek <jakub@redhat.com>
5467 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
5468 subsequent SH_NONE operand does not overwrite an existing *special
5470 (adjust_extract): Handle case where a vec_extract operation is
5471 wrapped in a PARALLEL.
5473 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
5476 * config/i386/i386.c (ix86_binds_local_p): Define only if
5477 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
5479 2015-04-17 Jeff Law <law@redhat.com>
5481 PR tree-optimization/47679
5482 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
5483 * tree-ssa-scopedtables.c: New file.
5484 * tree-ssa-scopedtables.h: New file.
5485 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
5486 (const_and_copies): Change name/type.
5487 (record_const_or_copy): Move into tree-ssa-scopedtables.c
5488 (record_const_or_copy_1): Similarly.
5489 (restore_vars_to_original_value): Similarly.
5490 (pass_dominator::execute): Create and destroy const_and_copies table.
5491 (thread_across_edge): Update passing of const_and_copies.
5492 (record_temporary_equivalence): Use method calls rather than
5493 manipulating const_and_copies directly.
5494 (record_equality, cprop_into_successor_phis): Similarly.
5495 (dom_opt_dom_walker::before_dom_children): Similarly.
5496 (dom_opt_dom_walker::after_dom_children): Similarly.
5497 (eliminate_redundant_computations): Similarly.
5498 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
5499 (record_temporary_equivalence): Likewise.
5500 (invalidate_equivalences): Likewise.
5501 (record_temporary_equivalences_from_phis): Update due to type
5502 change of const_and_copies. Use method calls rather than
5503 manipulating the stack directly.
5504 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
5505 (thread_through_normal_block, thread_across_edge): Likewise.
5506 (thread_across_edge): Likewise.
5507 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5508 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
5510 (identify_jump_threads): Update due to type change of equiv_stack.
5511 (finalize_jump_threads): Delete the equiv_stack when complete.
5513 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
5515 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
5516 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
5517 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
5519 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
5522 * config.gcc: Exit with a comment when we do not have a major version
5523 number for the FreeBSD target.
5525 2015-04-17 Jakub Jelinek <jakub@redhat.com>
5528 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
5529 maybe_allows_mem bitfields.
5530 (maybe_allows_none_start, maybe_allows_none_end,
5531 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
5532 maybe_allows_mem_end): New variables.
5533 (compute_maybe_allows): New function.
5534 (add_constraint): Use it to initialize maybe_allows_reg and
5535 maybe_allows_mem fields.
5536 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
5537 is_address constraints such that those that allow neither mem nor
5538 reg come first, then those that only allow reg but not mem, then
5539 those that only allow mem but not reg, then the rest.
5540 (write_allows_reg_mem_function): New function.
5541 (write_tm_preds_h): Call it.
5542 * stmt.c (parse_output_constraint, parse_input_constraint): Use
5543 the generated insn_extra_constraint_allows_reg_mem function
5544 instead of always setting *allows_reg = true; *allows_mem = true;
5545 for unknown extra constraints.
5547 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
5550 * output.h (default_binds_local_p_3): New.
5551 * varasm.c (default_binds_local_p_3): Make it public. Take an
5552 argument to indicate if common symbol may be local. If common
5553 symbol may be local, treat non-external variable as defined
5555 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
5556 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
5557 * config/i386/i386.c (ix86_binds_local_p): New.
5558 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
5561 2015-04-17 Jakub Jelinek <jakub@redhat.com>
5564 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
5565 trying mem_loc_descriptor on XEXP (rtl, 0).
5567 2015-04-17 Martin Liska <mliska@suse.cz>
5569 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
5570 Release symbol_compare_collection.
5571 * ipa-reference.c: Add TODO that a vector should be released.
5573 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
5576 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
5577 to new AVR-LibC file layout (bug #44574).
5578 (*avrlibc_devicelib): Same.
5579 * config/avr/avr-mcus.def: Adjust comments.
5580 * config/avr/avr.opt (nodevicelib): Adjust help.
5582 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
5584 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
5586 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
5589 * gimplify.c (gimplify_init_constructor): Always emit a
5590 side-effecting constructor.
5592 2015-04-17 Tom de Vries <tom@codesourcery.com>
5594 PR tree-optimization/64950
5595 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
5596 in cfun->curr_properties.
5597 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
5598 if we generate an IFN_VA_ARG.
5599 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
5600 function if PROP_gimple_lva is not set in src function.
5602 2015-04-17 Tom de Vries <tom@codesourcery.com>
5603 Michael Matz <matz@suse.de>
5605 PR tree-optimization/64950
5606 * gimple-iterator.c (update_modified_stmts): Remove static.
5607 * gimple-iterator.h (update_modified_stmts): Declare.
5608 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
5609 (gimplify_va_arg_internal): New function.
5610 (gimplify_va_arg_expr): Use IFN_VA_ARG.
5611 * gimplify.h (gimplify_va_arg_internal): Declare.
5612 * internal-fn.c (expand_VA_ARG): New unreachable function.
5613 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
5614 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
5615 (expand_ifn_va_arg): New function.
5616 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
5617 (pass_stdarg::execute): Call expand_ifn_va_arg.
5618 (pass_data_lower_vaarg): New pass_data.
5619 (pass_lower_vaarg): New gimple_opt_pass.
5620 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
5621 (make_pass_lower_vaarg): New function.
5622 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
5623 properties_required field.
5624 * passes.def (all_passes): Add pass_lower_vaarg.
5625 * tree-pass.h (PROP_gimple_lva): Add define.
5626 (make_pass_lower_vaarg): Declare.
5628 2015-04-17 Tom de Vries <tom@codesourcery.com>
5630 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
5631 * calls.c (call_expr_flags): Same.
5633 2015-04-17 Tom de Vries <tom@codesourcery.com>
5635 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
5636 (pass_stdarg::execute): ... here.
5638 2015-04-17 Tom de Vries <tom@codesourcery.com>
5639 Michael Matz <matz@suse.de>
5641 * tree-cfg.c (make_blocks_1): Factor out of ...
5642 (make_blocks): ... here.
5643 (make_edges_bb): Factor out of ...
5644 (make_edges): ... here.
5645 (gimple_find_sub_bbs): New function.
5646 * tree-cfg.h (gimple_find_sub_bbs): Declare.
5648 2015-04-17 Tom de Vries <tom@codesourcery.com>
5650 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
5652 2015-04-17 Yury Gribov <y.gribov@samsung.com>
5654 * asan.c (set_sanitized_sections): New function.
5655 (section_sanitized_p): Ditto.
5656 (asan_protect_global): Optionally sanitize user-defined
5658 * asan.h (set_sanitized_sections): Declare new function.
5659 * common.opt (fsanitize-sections): New option.
5660 * doc/invoke.texi (-fsanitize-sections): Document new option.
5661 * opts-global.c (handle_common_deferred_options): Handle new
5664 2015-04-17 Jakub Jelinek <jakub@redhat.com>
5667 * dwarf2out.c (loc_list_from_tree): Return NULL
5668 for DEBUG_EXPR_DECL.
5670 2015-04-17 Christian Bruel <christian.bruel@st.com>
5672 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
5675 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5677 * ira-color.c (setup_left_conflict_sizes_p): Do not process
5678 node itself when computing left conflict subnode size.
5680 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
5682 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
5683 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
5684 *fop_<mode>_1_sse using enabled attribute. Use
5685 register_mixssei387nonimm_operand operand 1 predicate. Change
5686 alternative 3 constraints from "x" to "v".
5688 2015-04-16 Richard Biener <rguenther@suse.de>
5690 PR tree-optimization/65774
5691 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
5692 bit-value tracking on.
5694 2015-04-16 Richard Biener <rguenther@suse.de>
5696 PR tree-optimization/64277
5697 * tree-vrp.c (check_array_ref): Fix anti-range handling,
5698 simplify upper bound handling.
5699 (search_for_addr_array): Simplify.
5700 (check_array_bounds): Handle ADDR_EXPRs here.
5701 (check_all_array_refs): Simplify.
5703 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
5705 * config/i386/i386.c (print_reg): Rewrite function.
5707 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5709 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
5710 Invert the condition.
5712 2015-04-16 Renlin Li <renlin.li@arm.com>
5714 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
5715 simplifications for UNSIGNED_FLOAT.
5717 2015-04-16 Nick Clifton <nickc@redhat.com>
5719 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
5721 (enum rl78_cpu_type): New.
5722 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
5723 (umulhi3_shift_virt): Remove m constraint from operand 1.
5724 (umulqihi3_virt): Likewise.
5725 * config/rl78/rl78.c (rl78_option_override): Add code to process
5726 -mcpu and -mmul options.
5727 (rl78_alloc_physical_registers): Add code to handle divhi and
5728 divsi valloc attributes.
5729 (set_origin): Likewise.
5730 * config/rl78/rl78.h (RL78_MUL_G14): Define.
5731 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
5732 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
5734 (ASM_SPEC): Pass -mcpu on to assembler.
5735 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
5736 (mulqi3_rl78): Likewise.
5737 (mulhi3_g13): Likewise.
5738 (mulhi3): Generate the G13 or G14 versions of the insn directly.
5740 (mulhi3_g14): Add clobbers of AX and BC.
5741 (mulsi3_g14): Likewise.
5742 (mulsi3_g13): Likewise.
5743 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
5744 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
5745 * config/rl78/rl78.opt (mmul): Initialise value to
5748 (m13, m14, mrl78): New option aliases.
5749 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
5750 (MULTILIB_DIRNAMES): Add g13 and g14.
5751 * doc/invoke.texi: Document -mcpu and -mmul options.
5753 2015-04-16 Richard Biener <rguenther@suse.de>
5755 * tree-ssa-ccp.c (likely_value): See if we have operands that
5756 are marked as never simulate again and return CONSTANT in this
5758 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
5759 not have any operands that will be simulated again as
5760 not being simulated again.
5762 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
5764 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
5765 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
5766 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
5768 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
5770 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
5771 *float<SWI48:mode><MODEF:mode>2_sse.
5772 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
5774 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
5777 2015-04-15 Tom de Vries <tom@codesourcery.com>
5780 * function.c (push_dummy_function): New function.
5781 (init_dummy_function_start): Use push_dummy_function.
5782 (pop_dummy_function): New function. Factored out of ...
5783 (expand_dummy_function_end): ... here.
5784 * function.h (push_dummy_function, pop_dummy_function): Declare.
5785 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
5787 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
5789 2015-04-15 Jeff Law <law@redhat.com>
5791 PR tree-optimization/47679
5792 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
5793 need for forward declaration in upcoming changes.
5794 (record_conditions, record_edge_info): Likewise.
5796 PR rtl-optimization/42522
5797 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
5798 SIGN_EXTRACT as a whole object rather than simplifying
5801 2015-04-15 Jakub Jelinek <jakub@redhat.com>
5804 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
5805 and GIMPLE_PREDICT use break instead of return true. For
5806 GIMPLE_EH_DISPATCH, compare dispatch region.
5808 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
5810 * doc/extend.texi (__sync Builtins): Simplify some text. Update
5811 details about the implementation. Make clear preference for
5812 __atomic builtins. Reduce possibility of future change.
5814 2015-04-15 Nick Clifton <nickc@redhat.com>
5816 * config/rx/rx.opt (mallow-string-insns): New option.
5817 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
5818 builtin if string instructions are denied.
5819 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
5820 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
5822 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
5823 * config/rx/rx.md (movstr): Enable pattern only if string
5824 instructions are allowed.
5825 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
5826 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
5827 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
5828 (MULTILIB_DIRNAMES): Add no-strings.
5829 * doc/invoke.texi: Document -mno-allow-string-insns.
5831 2015-04-15 Alan Modra <amodra@gmail.com>
5836 * calls.c (load_register_parameters): Don't load past end of
5837 mem unless suitably aligned.
5839 2015-04-15 Nick Clifton <nickc@redhat.com>
5841 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
5842 decrement instruction as being frame related.
5843 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
5845 If zero extending a function address enclose the operation in
5847 (rl78_preferred_reload_class): New function.
5848 (TARGET_PREFERRED_RELOAD_CLASS): Define.
5849 * config/rl78/rl78.md: Remove useless constraints in expanders.
5850 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
5851 (mulhi3_rl78): Likewise.
5852 (mulhi3_g13): Likewise.
5853 (mulsi3_rl78): Likewise.
5854 (es_addr): Move to before the multiply patterns.
5856 2015-04-15 Alan Modra <amodra@gmail.com>
5858 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
5859 and sequence_stack. Add seq.
5860 (seq_stack): Delete.
5861 * function.c (prepare_function_start): Don't access x_last_insn.
5862 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
5863 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
5864 * emit_rtl.c (start_sequence, push_topmost_sequence,
5865 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
5867 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
5868 remove_insn): Likewise. Simplify.
5869 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
5870 and pop_topmost_sequence.
5871 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
5873 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
5875 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
5878 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
5881 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
5883 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
5884 (LEGACY_INT_REGNO_P): Ditto.
5885 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
5886 (ANY_MASK_REG_P): Remove.
5887 (BND_REG_P): Rename from ANY_BND_REG_P.
5888 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
5889 legacy integer registers. Do not handle MMX_REG_P in a special way.
5890 Merge 64byte and 32byte SSE handling.
5892 2015-04-14 Nick Clifton <nickc@redhat.com>
5894 * expr.c (expand_assignment): Force an address offset computation
5895 into a register before changing its mode.
5896 (expand_expr_real_1): Likewise.
5898 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
5900 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
5901 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
5902 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
5903 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
5904 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
5905 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
5906 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
5907 and __aarch64_vget_lane_any.
5909 2015-04-14 Jakub Jelinek <jakub@redhat.com>
5911 PR rtl-optimization/65761
5912 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
5913 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
5915 2015-04-14 Richard Biener <rguenther@suse.de>
5917 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
5918 (graphite_can_represent_scev): Use POINTER_TYPE_P.
5920 2015-04-14 Richard Biener <rguenther@suse.de>
5922 PR tree-optimization/65758
5923 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
5925 (ccp_lattice_meet): Likewise.
5926 (bit_value_unop): Likewise.
5927 (bit_value_binop): Likewise.
5928 (bit_value_assume_aligned): Likewise.
5930 2015-04-14 Christian Bruel <christian.bruel@st.com>
5932 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
5935 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
5937 PR tree-optimization/63387
5938 * match.pd ((x unord x) | (y unord y) -> (x unord y),
5939 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
5941 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
5943 * config/i386/predicates.md (any_QIreg_operand): Rename from
5944 q_regs_operand. Do not process subregs.
5945 (QIreg_operand): Use QI_REGNO_P predicate.
5946 (ext_QIreg_operand): Ditto.
5947 (ext_register_operand): Ditto.
5948 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
5949 (AND splitters): Ditto.
5950 (AND with -65536 splitter): Add SWI48 mode for operand 0.
5951 (AND with -256 splitter): Use any_QIreg_operand predicate and
5952 SWI248 mode for operand 0.
5953 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
5955 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
5957 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
5959 * doc/plugins.texi: Rewrite first introductory paragraph.
5961 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
5963 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
5964 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
5966 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
5968 * ipa-profie.c (ipa_profile): Check number of parameters
5969 and possible polymorphic call targets before
5972 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
5974 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
5975 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
5977 2015-04-13 Richard Biener <rguenther@suse.de>
5979 PR tree-optimization/65204
5980 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
5983 2015-04-13 Richard Biener <rguenther@suse.de>
5986 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
5987 and cond_not_taken_branch_cost to 4 and 2.
5988 (bdver2_cost): Likewise.
5989 (bdver3_cost): Likewise.
5990 (bdver4_cost): Likewise.
5992 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
5994 * hash-table.h (hash_table constructor): Add mem stats.
5995 (alloc_entries): Likewise.
5997 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
5999 * ipa-cp.c (ipcp_driver): Relase prev_edge.
6000 * passes.c (execute_one_pass): Only add transform if pass has one.
6002 2015-04-12 Joseph Myers <joseph@codesourcery.com>
6004 * config/i386/i386.c (ix86_option_override_internal): Don't set
6005 -fprefetch-loop-arrays if optimizing for size.
6007 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
6008 Gerald Pfeifer <gerald@pfeifer.com>
6010 * doc/contrib.texi (Contributors): Add Martin Jambor and
6013 2015-04-12 Jakub Jelinek <jakub@redhat.com>
6015 * BASE-VER: Set to 6.0.0.
6017 PR tree-optimization/65747
6018 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
6019 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
6021 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
6023 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
6024 sentence. Improve grammar.
6026 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
6028 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
6030 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
6033 * ipa-inline-transform.c (speculation_removed): Remove static var.
6034 (check_speculations): New function.
6035 (clone_inlined_nodes): Do not check spculations.
6036 (inline_call): Call check_speculations.
6037 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
6038 consider non-invariants.
6040 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
6041 Martin Liska <mliska@suse.cz>
6044 * ipa-icf.c (sem_item::compare_cgraph_references): function and
6045 variable can not match.
6046 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
6047 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
6049 2015-04-11 Jakub Jelinek <jakub@redhat.com>
6051 PR tree-optimization/65735
6052 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
6053 Remove visited_phis argument, add visited_bbs, avoid recursing into the
6054 same bb rather than just into the same phi node.
6055 (thread_through_normal_block): Adjust caller.
6057 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
6059 * doc/contrib.texi (Contributors): Add Ira Rosen.
6061 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
6063 * gcov.c (find_source): Fix miswording in error message.
6064 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
6065 (ix86_expand_sse_comi_round): Fix typo in error message.
6067 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
6069 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
6071 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
6073 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
6075 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
6078 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
6079 Print bad_spills_num and insn_pseudos_num.
6081 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6084 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
6085 when creating +1 values for SImode.
6087 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
6090 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
6093 2015-04-10 Jakub Jelinek <jakub@redhat.com>
6094 Iain Sandoe <iain@codesourcery.com>
6097 * configure: Regenerate.
6099 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
6102 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
6104 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
6106 * doc/contrib.texi (Contributors): Add John Marino.
6108 2015-04-09 Jakub Jelinek <jakub@redhat.com>
6110 PR tree-optimization/65709
6111 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
6112 TREE_TYPE (TREE_TYPE (t)).
6114 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
6117 * lra-int.h (lra_bad_spill_regno_start): New.
6118 * lra.c (lra_bad_spill_regno_start): New.
6119 (lra): Set up lra_bad_spill_regno_start. Set up
6120 lra_constraint_new_regno_start unconditionally.
6121 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
6124 2015-04-09 Marek Polacek <polacek@redhat.com>
6125 Jakub Jelinek <jakub@redhat.com>
6128 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
6129 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
6132 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
6134 PR rtl-optimization/65693
6135 * combine.c (is_parallel_of_n_reg_sets): Move outside of
6138 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
6141 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
6142 device specs file if "device-specs%s" didn't resolve to a path.
6144 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
6147 * config/i386/i386.c (fixup_modeless_constant): New.
6148 (ix86_expand_args_builtin): Fixup modeless constant operand.
6149 (ix86_expand_round_builtin): Ditto.
6150 (ix86_expand_special_args_builtin): Ditto.
6151 (ix86_expand_builtin): Ditto.
6153 2015-04-09 Jakub Jelinek <jakub@redhat.com>
6156 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
6157 any pow2 integer in between 2 and 0x80000000U inclusive.
6159 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
6161 PR rtl-optimization/65693
6162 * combine.c (is_parallel_of_n_reg_sets): Change first argument
6163 from an rtx_insn * to an rtx.
6164 (try_combine): Adjust both callers. Use it once more.
6166 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
6168 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
6169 (chkp_make_static_const_bounds): Search existing
6170 symbol by assembler name. Use make_decl_one_only.
6171 (chkp_get_zero_bounds_var): Remove node search which
6172 is now performed in chkp_make_static_const_bounds.
6173 (chkp_get_none_bounds_var): Likewise.
6175 2015-04-08 Michael Witten <mfwitten@gmail.com>
6177 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
6180 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6182 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
6184 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
6186 * doc/extend.texi (__sync Builtins): Fix grammar.
6188 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6190 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
6192 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6194 * varasm.c (emit_local): Move definition of align.
6196 2015-04-08 Julian Brown <julian@codesourcery.com>
6198 * config/nvptx/mkoffload.c (process): Support variable mapping.
6200 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
6202 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
6204 (alpha_write_one_linkage): Correct typo.
6206 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
6208 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
6210 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
6212 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
6214 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
6216 * tree-chkp.h (chkp_insert_retbnd_call): New.
6217 * tree-chkp.c (chkp_insert_retbnd_call): New.
6218 * ipa-split.c (insert_bndret_call_after): Remove.
6219 (split_function): Use chkp_insert_retbnd_call.
6220 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
6221 bounds for instrumented functions.
6223 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
6226 * calls.c (initialize_argument_information): When producing tail
6227 call also turn SSA_NAMES passed by references to original PARM_DECLs
6229 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
6232 * lra-remat.c (do_remat): Process input and non-input insn
6233 registers separately.
6235 2015-04-07 Jakub Jelinek <jakub@redhat.com>
6238 * valtrack.c (debug_lowpart_subreg): New function.
6239 (dead_debug_insert_temp): Use it.
6242 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
6243 into signed HOST_WIDE_INT the same as negative bit_offset.
6245 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
6247 * ipa-comdats.c (ipa_comdats): Visit all thunks
6248 to set proper comdat group.
6250 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6253 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
6254 on constants for NEON VSTRUCT modes.
6256 2015-04-07 Jakub Jelinek <jakub@redhat.com>
6257 Iain Sandoe <iain@codesourcery.com>
6260 * configure: Regenerate.
6262 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
6265 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
6266 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
6267 that LFD is used to load double constants instead of LFS. Add
6268 defaults for all costs structures. Add comments for missing
6269 initialization fields.
6270 (size32_cost): Likewise.
6271 (size64_cost): Likewise.
6272 (rs64a_cost): Likewise.
6273 (mpccore_cost): Likewise.
6274 (ppc403_cost): Likewise.
6275 (ppc405_cost): Likewise.
6276 (ppc440_cost): Likewise.
6277 (ppc476_cost): Likewise.
6278 (ppc601_cost): Likewise.
6279 (ppc603_cost): Likewise.
6280 (ppc604_cost): Likewise.
6281 (ppc604e_cost): Likewise.
6282 (ppc620_cost): Likewise.
6283 (ppc630_cost): Likewise.
6284 (ppccell_cost): Likewise.
6285 (ppc750_cost): Likewise.
6286 (ppc7450_cost): Likewise.
6287 (ppc8540_cost): Likewise.
6288 (ppce300c2c3_cost): Likewise.
6289 (ppce500mc_cost): Likewise.
6290 (ppce500mc64_cost): Likewise.
6291 (ppce5500_cost): Likewise.
6292 (ppce6500_cost): Likewise.
6293 (titan_cost): Likewise.
6294 (power4_cost): Likewise.
6295 (power6_cost): Likewise.
6296 (power7_cost): Likewise.
6297 (power8_cost): Likewise.
6298 (ppca2_cost): Likewise.
6299 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
6301 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
6302 instead of XXLOR to copy SFmode to clear out dirty bits created
6303 when SFmode denormals are generated.
6304 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
6305 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
6307 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
6309 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
6310 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
6311 * config/aarch64/aarch64-tune.md: Regenerate.
6313 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
6315 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
6316 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
6317 * config/arm/arm-cores.def (exynos-m1): New core.
6318 * config/arm/arm-tune.md: Regenerate.
6319 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
6320 * config/arm/bpabi.h: Likewise.
6322 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
6324 * ipa-cp (set_single_call_flag): Remove too
6327 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
6329 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
6330 GOMP_offload_unregister from the destructor.
6332 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
6334 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
6335 flags for instrumentation thunk.
6336 (chkp_produce_thunks): Likewise.
6338 2015-04-05 Martin Liska <mliska@suse.cz>
6341 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
6342 has computed data structure.
6343 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
6345 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
6347 * invoke.texi (inline-unit-growth): Increase growth to 20%
6348 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
6350 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
6353 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
6355 (lra_rematerialization_iter): New.
6356 * lra.c (lra): Initialize lra_rematerialization_iter.
6357 Stop updating lra_constraint_new_regno_start after switching of
6358 inheritance and rematerialization.
6359 * lra-remat.c (lra_rematerialization_iter): New.
6360 (lra_remat): Add printing pass iteration. Do rematerialization
6361 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
6363 2015-04-04 Richard Biener <rguenther@suse.de>
6365 PR tree-optimization/64909
6366 PR tree-optimization/65660
6367 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
6368 to take a cost vector for scalar iteration cost.
6369 (vect_get_single_scalar_iteration_cost): Likewise.
6370 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
6371 Compute the scalar iteration cost into a cost vector.
6372 (vect_get_known_peeling_cost): Use the scalar cost vector to
6373 account for the cost of the peeled iterations.
6374 (vect_estimate_min_profitable_iters): Likewise.
6375 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
6378 2015-04-04 Alan Modra <amodra@gmail.com>
6382 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
6383 0.0 constant unless TARGET_VSX.
6384 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
6387 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
6390 * ipa-inline-transform.c (inline_call): Skip sanity check to work
6393 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
6396 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
6397 speculative indirect edges to avoid ordering issue.
6399 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
6402 * ipa-inline.c (edge_badness): Add combined size to the denominator.
6404 2015-04-03 Jakub Jelinek <jakub@redhat.com>
6406 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
6407 TYPE_ARTIFICIAL on the .omp_data* types.
6409 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
6411 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
6412 instrumentation thunks.
6414 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
6416 * config/i386/i386.c (ix86_expand_call): Avoid nested
6417 PARALLEL in returned call value.
6419 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
6421 * lto-cgraph.c (input_cgraph_1): Always link instrumented
6422 assembler name with original one.
6424 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
6426 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
6428 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
6430 Revert parts of r216820.
6431 * config/i386/i386.md (movqi_internal): Correct type calculation
6432 for alternatives 3 and 5.
6434 2015-04-02 Jakub Jelinek <jakub@redhat.com>
6436 PR preprocessor/61977
6437 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
6438 predefine __vector/__bool/__pixel macros nor context sensitive
6440 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
6442 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
6444 * config/pa/pa.c (pa_output_move_double): Directly handle register
6445 indexed memory operand. Simplify handling of scaled register indexed
6448 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
6451 * config/i386/linux-common.h (MPX_SPEC): New.
6452 (CHKP_SPEC): Add MPX_SPEC.
6453 * doc/invoke.texi (-fcheck-pointer-boudns): Document
6454 possible issues with '-z bndplt' support in linker.
6456 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
6458 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
6459 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
6460 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
6461 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
6462 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
6464 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
6466 * config/i386/sync.md (UNSPEC_MOVA): Remove.
6467 (atomic_load<mode>): Change operand 0 predicate to
6468 nonimmediate_operand and fix up the destination when needed.
6470 (atomic_loaddi_fpu): Use UNSPEC_LDA.
6471 (atomic_store<mode>): Change operand 1 predicate to
6472 nonimmendate_operand and move the source to register when needed.
6474 (atomic_store<mode>_1): Use UNSPEC_STA.
6475 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
6476 Fix moves from memory operand. Use UNSPEC_STA.
6478 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6480 * expmed.c (strict_volatile_bitfield_p): Check that the access will
6481 not cross a MODESIZE boundary.
6482 (store_bit_field, extract_bit_field): Added assertions in the
6483 strict volatile bitfields code path.
6485 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
6488 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
6489 Increase args array size by one to avoid buffer overflow.
6491 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
6493 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
6495 * ipa-inline.c (edge_badness): Add wrapper penalty.
6496 (sum_callers): Move up.
6497 (inline_small_functions): Set single_caller.
6498 * ipa-inline.h (inline_summary): Add single_caller.
6499 * ipa-split.c (split_function): Set split_part.
6500 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
6501 * cgraph.h (cgraph_node): Add split_part.
6503 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
6506 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
6507 Do not split operands 0 and operands 2 to halfmode.
6508 (atomic_compare_and_swap<mode>): Update for
6509 atomic_compare_and_swap<dwi>_doubleword changes.
6511 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
6513 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
6514 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
6517 2015-03-31 Martin Liska <mliska@suse.cz>
6520 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
6521 has already filled up function summary.
6522 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
6524 2015-03-31 Richard Biener <rguenther@suse.de>
6526 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
6529 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
6531 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
6533 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
6534 (s390_asm_output_function_label): Adapt to new signature of
6535 s390_function_num_hotpatch_hw
6536 Optimise the code generating assembler output.
6537 Add comments to assembler file.
6539 2015-03-31 Richard Biener <rguenther@suse.de>
6542 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
6543 of the noreturn call so it is last and cleanup_control_flow_bb
6544 can do the CFG part.
6546 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
6549 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
6550 same_comdat_group for external symbols.
6551 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
6552 infinite same_comdat_group traversal loop.
6554 2015-03-31 Jakub Jelinek <jakub@redhat.com>
6557 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
6558 automatically to $headers.
6560 2015-03-30 Jakub Jelinek <jakub@redhat.com>
6563 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
6564 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
6566 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
6568 * ipa-prop.c (param_type_may_change_p): Likewise.
6569 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
6570 (remove_unused_scope_block_p): Add in_ctor_dtor_block
6571 argument. Before inlining, preserve
6572 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
6573 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
6575 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
6577 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
6580 * ipa-inline.c (edge_badness): Base denominator on callee's
6583 2015-03-27 Martin Jambor <mjambor@suse.cz>
6586 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
6587 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
6588 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
6589 node_calling_single_call.
6590 * ipa-cp.c (count_callers): New function.
6591 (set_single_call_flag): Likewise.
6592 (initialize_node_lattices): Count callers and set single_flag_call if
6594 (incorporate_penalties): New function.
6595 (good_cloning_opportunity_p): Use it, dump new flags.
6596 (propagate_constants_topo): Set node_within_scc flag if appropriate.
6597 * doc/invoke.texi (ipa-cp-recursion-penalty,
6598 ipa-cp-single-call-pentalty): Document.
6600 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
6603 * symtab.c (symtab_node::get_partitioning_class): Register vars
6605 * varpool.c (symbol_table::output_variables) Do not assemble unefined
6606 decls for non-symbols.
6608 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
6611 * output.h (default_binds_local_p_2): New.
6612 * varasm.c (default_binds_local_p_2): Renamed to ...
6613 (default_binds_local_p_3): This. Don't return true on protected
6614 data symbol if protected data may be external.
6615 (default_binds_local_p): Use default_binds_local_p_3.
6616 (default_binds_local_p_1): Likewise.
6617 (default_binds_local_p_2): New.
6618 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
6619 default_binds_local_p_2 if TARGET_MACHO is undefined.
6621 2015-03-27 Jakub Jelinek <jakub@redhat.com>
6624 * config/i386/i386.c (legitimize_pic_address): If base
6625 is SYMBOL_REF or LABEL_REF using %rip addressing, force
6626 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
6628 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
6631 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
6634 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
6637 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
6638 of optimized out indirect call.
6639 (redirect_to_unreachable): Always build symbol table node for
6640 BUILT_IN_UNREACHABLE
6642 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
6645 * ira-costs.c (record_reg_classes): Process all constraint string
6648 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
6650 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
6654 * config/c6x/constraints.md (S3): New constraint.
6655 * config/c6x/c6x.md (real_jump): Use it.
6657 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6660 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
6661 do redirection if the call is not optimized out.
6663 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
6666 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
6667 (fchkp-check-incomplete-type): Add LTO.
6668 (fchkp-zero-input-bounds-for-main): Likewise.
6669 (fchkp-first-field-has-own-bounds): Likewise.
6670 (fchkp-narrow-bounds): Likewise.
6671 (fchkp-narrow-to-innermost-array): Likewise.
6672 (fchkp-use-static-bounds): Likewise.
6673 (fchkp-use-static-const-bounds): Likewise.
6674 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
6676 2015-03-27 Marek Polacek <polacek@redhat.com>
6678 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
6680 2015-03-27 Marek Polacek <polacek@redhat.com>
6683 * ubsan.c (ubsan_create_edge): New function.
6684 (instrument_bool_enum_load): Call it.
6685 (instrument_nonnull_arg): Likewise.
6686 (instrument_nonnull_return): Likewise.
6687 (instrument_object_size): Likewise.
6689 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6691 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
6694 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6697 * lto-streamer.h (class lto_location_cache): New.
6698 (struct data_in): Add location_cache.
6699 (lto_input_location): Update prototype.
6700 (stream_input_location_now): New.
6701 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
6702 pointer to location.
6703 (stream_input_location): Update.
6704 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
6705 (warn_odr): Apply location cache before warning.
6706 (lto_input_location): Update prototype.
6707 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
6708 Use stream_input_location_now.
6709 * lto-streamer-in.c (lto_location_cache::current_cache): New static
6711 (lto_location_cache::cmp_loc): New function.
6712 (lto_location_cache::apply_location_cache): New function.
6713 (lto_location_cache::accept_location_cache): New function.
6714 (lto_location_cache::revert_location_cache): New function.
6715 (lto_location_cache::input_location): New function.
6716 (lto_input_location): Do location caching.
6717 (stream_input_location_now): New function.
6718 (input_eh_region, input_struct_function_base): Use
6719 stream_input_location_now.
6720 (lto_data_in_create): use new.
6721 (lto_data_in_delete): Use delete.
6722 * tree-streamer-in.c (unpack_ts_block_value_fields,
6723 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
6724 lto_input_ts_exp_tree_pointers): Update for cached location api.
6726 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6729 * passes.def: Add pass_nothrow.
6730 * ipa-pure-const.c: (pass_data_nothrow): New.
6731 (pass_nothrow): New.
6732 (pass_nothrow::execute): New.
6733 (make_pass_nothrow): New.
6734 * tree-pass.h (make_pass_nothrow): Declare.
6736 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6738 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
6739 edge to change by speculation resolution or redirection.
6740 (edge_set_predicate): Likewise.
6741 (inline_summary_t::duplicate): Likewise.
6742 (remap_edge_summaries): Likewise.
6744 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6746 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
6748 (can_inline_edge_p): Relax option matching for always inline functions.
6750 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
6753 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
6754 Check operand 4 and operand 0 for equality.
6755 (avx512f_vextract<shuffletype>32x4_1_maskm):
6756 Check operand 6 and operand 0 for equality.
6757 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
6759 (vec_extract_hi_<mode>_maskm): Ditto.
6761 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6763 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
6764 dead calls back to live.
6765 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
6767 (cgraph_node::verify_node): ... here; verify only callee edges,
6769 * cif-code.def (CILK_SPAWN): New code.
6771 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6773 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
6774 (edge_set_predicate): Use it to mark unreachable edges.
6775 (inline_summary_t::duplicate): Remove unnecesary code.
6776 (remap_edge_summaries): Likewise.
6777 (dump_inline_summary): Report contains_cilk_spawn.
6778 (compute_inline_parameters): Compute contains_cilk_spawn.
6779 (inline_read_section, inline_write_summary): Stream
6780 contains_cilk_spawn.
6781 * ipa-inline.c (can_inline_edge_p): Do not touch
6782 DECL_STRUCT_FUNCTION that may not be available;
6783 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
6784 remove check for callee_fun->can_throw_non_call_exceptions and
6785 replace it by optimization attribute check; check for flag_exceptions.
6786 * ipa-inline-transform.c (inline_call): Maintain
6787 DECL_FUNCTION_PERSONALITY
6788 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
6790 2015-03-26 Jakub Jelinek <jakub@redhat.com>
6792 PR tree-optimization/65551
6793 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
6794 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
6796 2015-03-26 Richard Biener <rguenther@suse.de>
6799 * tree-cfg.c (verify_gimple_call): Do not require a call to
6800 have no LHS if it wasn't recognized as control altering yet.
6802 2015-03-26 Jakub Jelinek <jakub@redhat.com>
6804 PR tree-optimization/64715
6805 * passes.def: Add another instance of pass_object_sizes before ccp1.
6806 * tree-object-size.c (pass_object_sizes::execute): In
6807 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
6808 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
6809 __bos result and the computed constant. Remove redundant
6810 checks, obsoleted by gimple_call_builtin_p test.
6812 * var-tracking.c (variable_tracking_main_1): Don't track
6813 variables for targetm.no_register_allocation targets.
6815 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
6817 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
6818 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
6820 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
6823 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
6824 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
6825 0.0 is correctly setup.
6826 (extenddftf2_internal): Likewise.
6828 2015-03-25 Sebastian Pop <s.pop@samsung.com>
6830 PR tree-optimization/65177
6831 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
6833 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
6834 edges not adjacent on the path to the original code.
6836 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
6839 * doc/install.texi (Building a native compiler): Document new
6840 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
6841 configuration assumes that the host supports the linker plugin.
6843 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
6846 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
6847 chain for generated call.
6849 2015-03-25 Richard Biener <rguenther@suse.de>
6851 * passes.c (pass_manager::execute_early_local_passes): Guard
6852 execution of pass_chkp_instrumentation_passes with
6853 flag_check_pointer_bounds.
6854 (pass_chkp_instrumentation_passes::gate): Likewise.
6856 2015-03-25 Martin Liska <mliska@suse.cz>
6858 PR tree-optimization/65538
6859 * symbol-summary.h (function_summary::~function_summary):
6860 Relese memory for allocated summaries.
6861 (function_summary::release): New function.
6863 2015-03-25 Jakub Jelinek <jakub@redhat.com>
6866 * lto-streamer-out.c (DFS::worklist): New struct.
6867 (DFS::worklist_vec): New data member.
6868 (DFS::next_dfs_num): Remove.
6869 (DFS::DFS): Rewritten using worklist instead of recursion,
6870 using most of code from DFS::DFS_write_tree.
6871 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
6872 pass it to DFS_write_tree calls.
6873 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
6874 quick initial checks push it into worklist_vec and return.
6876 2015-03-25 Richard Biener <rguenther@suse.de>
6879 * genmatch.c (expr::gen_transform): Re-write to avoid
6882 2015-03-25 Bin Cheng <bin.cheng@arm.com>
6884 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
6886 2015-03-25 Bin Cheng <bin.cheng@arm.com>
6888 * config/arm/arm.opt (print_tune_info): New option.
6889 * config/arm/arm.c (arm_print_tune_info): New function.
6890 (arm_file_start): Call arm_print_tune_info.
6891 * config/arm/arm-protos.h (struct tune_params): Add comment.
6892 * doc/invoke.texi (@item -mprint-tune-info): New item.
6893 (-mtune): mention it in ARM Option Summary.
6895 2015-03-25 DJ Delorie <dj@redhat.com>
6897 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
6900 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
6901 Martin Liska <mliska@suse.cz>
6903 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
6904 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
6905 (sem_item::add_type): New function.
6906 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
6907 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
6908 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
6909 (sem_function::equals_wpa): Fix typo.
6910 * ipa-icf.h (sem_item::add_type): New function.
6911 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
6914 2015-03-24 Jakub Jelinek <jakub@redhat.com>
6916 PR tree-optimization/65533
6917 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
6918 with swapped operands, call vect_free_slp_tree on
6919 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
6922 2015-03-24 Richard Biener <rguenther@suse.de>
6925 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
6926 for fixup if necessary.
6928 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
6930 * doc/extend.texi (Function Attributes): Add @cindex entries
6931 for all attributes and regularize their format. Delete text
6932 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
6933 information about "eightbit_data", "tiny_data", and "model"
6934 variable attributes to the Variable Attributes section. Fix
6935 some obvious typos and copy-editing issues.
6936 (Variable Attributes, Type Attributes): Likewise add/fix
6937 @cindex entries for all attributes.
6939 2015-03-23 Jakub Jelinek <jakub@redhat.com>
6942 * tree-chkp.c (chkp_build_returned_bound): Ignore
6943 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
6945 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
6948 * config/sh/predicates.md (simple_mem_operand,
6949 displacement_mem_operand): Add test for reg.
6950 (short_displacement_mem_operand): Test for displacement_mem_operand
6951 before invoking sh_disp_addr_displacement.
6952 * config/sh/constraints.md (Sdd, Sra): Simplify.
6953 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
6954 Remove redundant displacement_mem_operand tests.
6956 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
6959 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
6960 the same -mmcu=MCU more than once.
6962 2015-03-23 Jakub Jelinek <jakub@redhat.com>
6965 * ipa-devirt.c: Remove duplicate demangle.h include.
6968 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
6970 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
6971 REG_POINTER on *destptr after adjusting it for prologue size.
6974 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
6975 ultimate_alias_target ()->order ints instead of
6976 ultimate_alias_target () pointers.
6978 2015-03-23 Richard Biener <rguenther@suse.de>
6980 PR tree-optimization/65518
6981 * tree-vect-stmts.c (vectorizable_load): Reject single-element
6982 interleaving cases we generate absymal code for.
6984 2015-03-23 Richard Biener <rguenther@suse.de>
6986 PR tree-optimization/65494
6987 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
6989 (vect_analyze_slp_instance): But do that here, always and once.
6991 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6993 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
6994 adding T or multiplying by T+1 and subracting T.
6996 2015-03-22 Jeff Law <law@redhat.com>
6998 PR rtl-optimization/64317
6999 * Makefile.in (OBJS): Add gcse-common.c
7000 * gcse.c: Include gcse-common.h
7001 (struct modify_pair_s): Move structure definition to gcse-common.h
7002 (compute_transp): Move function to gcse-common.c.
7003 (canon_list_insert): Similarly.
7004 (record_last_mem_set_info): Break out some code and put it into
7005 gcse-common.c. Call into the new common code.
7006 (compute_local_properties): Pass additional arguments to compute_transp.
7007 * postreload-gcse.c: Include gcse-common.h and df.h
7008 (modify_mem_list_set, blocks_with_calls): New variables.
7009 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
7010 (get_bb_avail_insn): Pass in the expression index too.
7011 (alloc_mem): Allocate memory for the new bitmaps and lists.
7012 (free_mem): Free memory for the new bitmaps and lists.
7013 (insert_expr_in_table): Record a bitmap index for each entry we
7015 (record_last_mem_set_info): Call into common code in gcse-common.c.
7016 (get_bb_avail_insn): If no available insn was found in the requested
7017 BB. If BB has a single predecessor, see if the expression is
7018 transparent in BB and available in that single predecessor.
7019 (compute_expr_transp): New wrapper for compute_transp.
7020 (eliminate_partially_redundant_load): Pass expression's bitmap_index
7021 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
7022 (gcse_after_reload_main): If there are elements in the hash table,
7023 then compute transparency for all the elements in the hash table.
7024 * gcse-common.h: New file.
7025 * gcse-common.c: New file.
7027 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
7029 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
7031 (System Headers): Likewise.
7033 (Traditional macros): Likewise.
7034 (Invocation): Likewise.
7035 (Option Index): Likewise.
7036 * doc/cppopts.texi (-M): Likewise.
7037 (-finput-charset): Likewise.
7039 * doc.invoke.texi (AVR Options): Likewise.
7040 (V850 Options): Likewise.
7042 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
7045 * ipa-devirt.c: Include demangle.h
7046 (odr_type_d): Add field rtti_broken.
7047 (odr_subtypes_equivalent_p): Do not require name to match.
7048 (compare_virtual_tables): Fix typo; if type already has ODR violation,
7049 bypass the tests; be ready for function referneces in vtables that are
7050 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
7051 (warn_odr): Give up for nameless types.
7052 (warn_types_mismatch): Report mismatch in mangled names;
7053 report mismatch in anonymous namespaces; look into component types to
7054 give useful error; report when mismatch is dragged in from other ODR
7056 (odr_types_equivalent_p): Match types for being polymorphic; avoid
7057 duplicated diagnostics.
7058 (add_type_duplicate): Reorder checks so more informative ones come
7059 first; fix typo; do not output "the extra base is defined here" when
7061 (BINFO_N_BASE_BINFOS): Relax sanity check.
7063 2015-03-22 Martin Liska <mliska@suse.cz>
7064 Jakub Jelinek <jakub@redhat.com>
7066 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
7067 masks that can potentially include a builtin.
7068 (ix86_add_new_builtins): Introduce fast filter for isa values
7069 that cannot trigger builtin inclusion.
7071 2015-03-22 Martin Liska <mliska@suse.cz>
7073 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
7074 (sem_item::update_hash_by_local_refs): Likewise.
7075 (sem_variable::get_hash): Empty line is fixed.
7076 (sem_item_optimizer::execute): Include adding of hash references.
7077 (sem_item_optimizer::update_hash_by_addr_refs): New function.
7078 (sem_item_optimizer::build_hash_based_classes): Use local hash.
7079 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
7080 (sem_item::update_hash_by_local_refs): Likewise.
7082 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
7085 * ipa-comdats.c (enqueue_references): Walk through thunks.
7086 (ipa_comdats): Likewise.
7087 (set_comdat_group_1): New function.
7089 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
7092 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
7095 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
7096 Gerald Pfeifer <gerald@pfeifer.com>
7098 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
7100 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
7101 Sandra Loosemore <sandra@codesourcery.com>
7103 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
7104 function parameter declaration.
7105 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
7106 Update arguments to nios2_adjust_call_address().
7107 (sibcall_internal): Rename from *sibcall.
7108 (sibcall_value_internal): Rename from *sibcall_value.
7109 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
7110 (nios2_large_got_address): Add target temp reg parameter.
7111 (nios2_got_address): Adjust call to nios2_large_got_address, add
7112 force_reg around it.
7113 (nios2_load_pic_address): Add target temp reg parameter, replace call
7114 to nios2_got_address with corresponding code.
7115 (nios2_legitimize_constant_address): Update call to
7116 nios2_load_pic_address.
7117 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
7118 to use temp reg for PIC loading purposes.
7119 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
7120 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
7121 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
7123 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
7125 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
7126 usage of "the @option{...}".
7127 (-Wopenmp-simd): Likewise.
7128 (-fsanitize-recover): Likewise.
7129 (-fsanitize-undefined-trap-on-error): Likewise.
7131 (tracer-dynamic-coverage-feedback): Likewise.
7132 (reorder-block-duplicate-feedback): Likewise.
7133 (loop-unroll-jam-size): Likewise.
7136 (-mabs=legacy): Likewise.
7137 (-mupper-regs-df): Likewise.
7138 (-mupper-regs-sf): Likewise.
7139 (-mpointers-to-nested-functions): Likewise.
7141 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
7143 * doc/extend.texi (Cilk Plus Builtins): Add markup.
7145 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
7147 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
7148 additional index entries and cross-references.
7149 (-fchkp-check-incomplete-type): Likewise.
7150 (-fchkp-first-field-has-own-bounds): Likewise.
7151 (-fchkp-narrow-to-innermost-array): Likewise.
7152 (-fchkp-use-fast-string-functions): Likewise.
7153 (-fchkp-use-nochk-string-functions): Likewise.
7154 (-fchkp-use-static-const-bounds): Likewise.
7155 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
7156 (-fchkp-instrument-marked-only): Likewise.
7157 (-fchkp-use-wrappers): Likewise.
7158 (-static-libmpx): Likewise.
7159 (-static-libmpxwrappers): Likewise.
7160 * doc/extend.texi (bnd_legacy): Likewise.
7161 (bnd_instrument): Likewise.
7162 (bnd_variable_size): Likewise.
7163 (Pointer Bounds Checker builtins): Likewise.
7165 2015-03-21 Tom de Vries <tom@codesourcery.com>
7167 PR tree-optimization/65458
7168 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
7169 * cgraph.h (cgraph_node): Add parallelized_function field.
7170 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
7171 (input_overwrite_node): Read parallelized_function field.
7172 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
7173 parallelized_function on cgraph_node for child_fn.
7174 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
7175 Remove include of gt-tree-parloops.h.
7176 (parallelized_functions): Remove static variable.
7177 (parallelized_function_p): Rewrite using parallelized_function field of
7179 (create_loop_fn): Remove adding to parallelized_functions.
7180 * Makefile.in (GTFILES): Remove tree-parloops.c
7182 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
7184 PR rtl-optimization/64366
7185 * lra.c (lra_update_insn_regno_info): Consider regs in
7186 CALL_INSN_FUNCTION_USAGE memory.
7188 2015-03-20 Richard Biener <rguenther@suse.de>
7191 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
7192 for type comparison and gcc_checking_assert.
7193 (chrec_fold_plus_poly_poly): Likewise.
7194 (chrec_fold_multiply_poly_poly): Likewise.
7195 (chrec_convert_1): Likewise.
7196 * gimplify.c (gimplify_expr): Remove premature folding of
7197 &X + CST to &MEM[&X, CST].
7199 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
7201 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
7203 (ipa_inline): Recompute inline_failed codes.
7204 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
7205 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
7208 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
7210 PR rtl-optimization/60851
7211 * recog.c (constrain_operands): Accept a pseudo register before reload
7212 for LRA enabled targets.
7214 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
7217 * config/rs6000/predicates.md (easy_fp_constant): Remove special
7218 -ffast-math handling that kept non-0 constants live in the RTL
7219 until reload. Remove logic testing the number of instructions it
7220 took to create a constant in a GPR that was never used, due to a
7221 test for soft-float earlier.
7222 (memory_fp_constant): Delete, no longer used.
7224 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
7225 alternatives for loading non-0 constants into GPRs for hard
7226 floating point that is no longer needed due to changes in
7227 easy_fp_constant. Add support for loading 0.0 into GPRs.
7228 (mov<mode>_hardfloat32): Likewise.
7229 (mov<mode>_hardfloat64): Likewise.
7230 (mov<mode>_64bit_dm): Likewise.
7231 (movtd_64bit_nodm): Likewise.
7232 (pre-reload move FP constant define_split): Delete define_split,
7233 since it is no longer used.
7234 (extenddftf2_internal): Remove GHF constraints that are not valid
7237 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
7239 PR rtl-optimization/63491
7240 * lra-constraints.c (check_and_process_move): Use src instead of
7241 sreg. Remove some dead code.
7243 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
7246 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
7247 (sem_variable::merge): Likewise.
7249 2015-03-19 Martin Liska <mliska@suse.cz>
7252 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
7253 all fields of cgraph_thunk_info.
7255 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
7257 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
7258 clone instrumented thunks.
7260 2015-03-19 Richard Biener <rguenther@suse.de>
7263 2015-03-10 Richard Biener <rguenther@suse.de>
7266 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
7267 * tree-ssa-coalesce.c: Include timevar.h.
7268 (attempt_coalesce): Handle graph being NULL.
7269 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
7270 Split out abnormal coalescing to ...
7271 (perform_abnormal_coalescing): ... this function.
7272 (coalesce_ssa_name): Perform abnormal coalescing without computing
7274 (verify_ssa_coalescing_worker): New function.
7275 (verify_ssa_coalescing): Likewise.
7277 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
7278 Jakub Jelinek <jakub@redhat.com>
7281 * tsan.c (instrument_gimple): Clear tail call flag on
7284 2015-03-19 Jakub Jelinek <jakub@redhat.com>
7287 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
7288 call in the return bb.
7289 (find_split_points): Add RETURN_BB argument, don't call
7291 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
7292 if true append TSAN_FUNC_EXIT internal call after the call to
7293 the split off function.
7294 (execute_split_functions): Call find_return_bb here.
7295 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
7296 Adjust find_split_points and split_function calls.
7298 2015-03-18 DJ Delorie <dj@redhat.com>
7300 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
7301 (iorqi3_virt): Likewise.
7303 2015-03-18 Tom de Vries <tom@codesourcery.com>
7305 * tree-parloops.c (parallelize_loops): Make static.
7306 * tree-parloops.h (parallelize_loops): Remove extern declaration.
7308 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
7312 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
7314 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
7315 condition would be removed due to undefined behaviour.
7317 2015-03-18 Martin Liska <mliska@suse.cz>
7320 * cgraph.c (cgraph_node::get_create): Remove unnecessary
7321 xstrdup_for_dump wrapper.
7322 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
7324 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
7325 with xstrdup_for_dump.
7326 (sem_variable::equals): Likewise.
7327 (sem_item_optimizer::read_section): Use symtab_node::name instead of
7329 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
7330 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
7331 symtab_node::asm_name with xstrdup_for_dump.
7332 (congruence_class::dump): Use symtab_node::name instead of
7334 * ipa-icf.h (symtab_node::name): Remove.
7335 (symtab_node::asm_name): Likewise.
7337 2015-03-18 Jakub Jelinek <jakub@redhat.com>
7339 PR tree-optimization/65450
7340 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
7342 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
7343 it instead of duplicate_ssa_name_ptr_info.
7346 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
7348 2015-03-18 Richard Biener <rguenther@suse.de>
7350 * tree-data-ref.h (struct access_matrix): Remove.
7351 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
7352 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
7353 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
7354 (am_vector_index_for_loop): Likewise.
7355 (struct data_reference): Remove access_matrix member.
7356 (DR_ACCESS_MATRIX): Remove.
7357 (lambda_vector_new): Add comment.
7358 (lambda_matrix_new): Use XOBNEWVEC.
7360 2015-03-18 Richard Biener <rguenther@suse.de>
7362 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
7363 (pass_ch::execute): Cleanup the CFG only if we did sth.
7364 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
7366 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7368 * expmed.c (synth_mult): Use std::swap instead of manually
7369 swapping algorithms.
7371 2015-03-18 Jakub Jelinek <jakub@redhat.com>
7374 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
7376 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
7379 * config/avr/avr.opt (-nodevicelib): New option.
7380 * doc/invoke.texi (AVR Options): Document it.
7381 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
7382 libgcc.a, libc.a, libm.a.
7383 * config/avr/specs.h: Same.
7384 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
7385 which don't (directly) depend on the device. Print more help.
7386 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
7387 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
7388 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
7390 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
7391 for specs file name.
7392 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
7393 * config/avr/avr-mcus.def: Adjust initializers and comments.
7395 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
7397 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
7398 DECL_ONE_ONLY to check if decl is one only.
7399 * ipa-split.c (consider_split): Limit splitt of one only functions.
7401 2015-03-16 Jakub Jelinek <jakub@redhat.com>
7403 PR tree-optimization/65427
7404 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
7406 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
7408 2015-03-16 Marek Polacek <polacek@redhat.com>
7410 * cgraph.h (add_new_static_var): Remove declaration.
7411 * varpool.c (add_new_static_var): Remove function.
7413 2015-03-16 Jakub Jelinek <jakub@redhat.com>
7415 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
7416 instead of vec<tree> * with vec_alloc and release for args.
7420 * omp-low.c (delete_omp_context): Only splay_tree_delete
7421 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
7422 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
7424 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
7427 * cfgexpand.c (align_base): New function.
7428 (alloc_stack_frame_space): Call it.
7429 (expand_stack_vars): Align prev_frame to be sure
7430 data->asan_vec elements aligned properly.
7432 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
7435 * expr.c (store_field): Do not do a direct block copy if the source is
7436 a PARALLEL with BLKmode.
7438 2015-03-16 Tom de Vries <tom@codesourcery.com>
7442 2015-03-12 Tom de Vries <tom@codesourcery.com>
7444 PR rtl-optimization/64895
7445 * lra-lives.c (check_pseudos_live_through_calls): Use
7446 actual_call_used_reg_set instead of call_used_reg_set, if available.
7448 2015-03-16 Alan Modra <amodra@gmail.com>
7451 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
7452 Modify Z->r bswapdi splitter to use dest in place of scratch.
7453 In r->Z and Z->r bswapdi splitter rename word_high, word_low
7454 to word1, word2 and rearrange logic to suit.
7455 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
7456 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
7457 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
7458 Add one '?' on r->r. Modify Z->r splitter to avoid need for
7461 2015-03-14 Jakub Jelinek <jakub@redhat.com>
7463 PR tree-optimization/65369
7464 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
7465 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
7466 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
7468 PR tree-optimization/65418
7469 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
7470 are casts in the first PLUS_EXPR operand, ensure tbias and
7471 *totallowp are in the inner type.
7473 PR rtl-optimization/65401
7474 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
7475 argument. If true, adjust_address_nv of x with big-endian
7476 correction for the mode widening to GET_MODE (y).
7477 (make_field_assignment): Don't do MEM mode widening here.
7478 Use MEM_P instead of GET_CODE == MEM.
7480 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
7482 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
7485 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7488 * config/arm/arm.c (arm_gen_constant, AND case): Use
7489 ARM_SIGN_EXTEND when constructing AND mask.
7491 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7493 * graph.c (print_graph_cfg): Make function names visible and append
7494 parenthesis to it. Also make groups of basic blocks belonging to the
7495 same function visible.
7497 2015-03-12 Richard Biener <rguenther@suse.de>
7500 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
7501 to avoid quadratic behavior with inline expansion splitting blocks.
7502 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
7503 with the successor if the predecessor will be merged with it.
7504 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
7505 entry block with its successor.
7507 2015-03-13 Richard Biener <rguenther@suse.de>
7510 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
7511 (cleanup_tree_cfg_1): Do not call it.
7512 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
7513 (fixup_noreturn_call): Mark the stmt as control altering.
7514 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
7516 (pass_data_fixup_cfg): Produce a dump file.
7517 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
7518 (need_noreturn_fixup): New global.
7519 (pass_dominator::execute): Fixup queued noreturn calls.
7520 (optimize_stmt): Queue calls that became noreturn for fixup.
7521 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
7522 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
7523 (el_to_fixup): New global.
7524 (eliminate_dom_walker::before_dom_childre): Queue calls that
7525 became noreturn for fixup.
7526 (eliminate): Fixup queued noreturn calls.
7527 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
7528 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
7529 (substitute_and_fold_dom_walker::before_dom_children): Queue
7530 alls that became noreturn for fixup.
7531 (substitute_and_fold): Fixup queued noreturn calls.
7533 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
7535 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
7536 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
7537 are building; for methods check ODR type of class they belong to if
7538 they may lead to a polymorphic call.
7539 (sem_function::compare_polymorphic_p): Be bit smarter about testing
7540 when function may lead to a polymorphic call.
7541 (sem_function::compare_type_list): Remove.
7542 (sem_variable::equals): Update use of compatible_types_p.
7543 (sem_variable::parse_tree_refs): Remove.
7544 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
7546 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
7548 (func_checker::compatible_polymorphic_types_p): Break out from ...
7549 (unc_checker::compatible_types_p): ... here.
7550 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
7552 (unc_checker::compatible_types_p): Update.
7553 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
7556 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7558 PR rtl-optimization/65235
7559 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
7560 When first element of vec_concat is const_int, calculate its size
7561 using second element.
7563 2015-03-12 Richard Biener <rguenther@suse.de>
7566 * fold-const.c (operand_equal_p): Fix ordering of resetting
7567 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
7569 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
7571 * config/s390/s390.c (s390_reorg): Move code to output nops after label
7573 (s390_asm_output_function_label): Likewise.
7574 * config/s390/s390.c (s390_asm_output_function_label):
7575 Fix function label alignment with -mhtopatch.
7576 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
7577 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
7578 ("nop_2_byte"): New define_insn.
7579 ("nop_4_byte"): Likewise.
7580 ("nop_6_byte"): Likewise.
7581 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
7582 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
7584 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
7587 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
7590 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
7593 * toplev.c (process_options): Restrict Pointer Bounds Checker
7594 usage with Address Sanitizer.
7596 2015-03-12 Richard Biener <rguenther@suse.de>
7598 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
7600 * omp-low.c (expand_omp_taskreg): Split block before removing
7602 (expand_omp_target): Likewise.
7603 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
7604 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
7605 stmt to split_block.
7607 2015-03-12 Tom de Vries <tom@codesourcery.com>
7609 PR rtl-optimization/64895
7610 * lra-lives.c (check_pseudos_live_through_calls): Use
7611 actual_call_used_reg_set instead of call_used_reg_set, if available.
7613 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
7615 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
7616 (cgraph_node::remove): Likewise.
7617 (cgraph_node::get_untransformed_body): Likewise.
7618 * varpool.c (varpool_node::remove): Likewise.
7619 (varpool_node::get_constructor): Add sanity check.
7621 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
7623 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
7625 (-fabi-compat-version): Likewise.
7626 (-ffriend-injection): Likewise.
7627 (-Wdeclaration-after-statement): Likewise.
7628 (-fomit-frame-pointer): Likewise.
7629 (-ftree-coalesce-inlined-vars): Likewise.
7630 (-fvisibility=): Likewise.
7631 * doc/extend.texi (Typeof): Likewise.
7632 (Zero Length): Likewise.
7633 (Escaped Newlines): Likewise.
7634 (Compound Literals): Likewise.
7635 (Function Attributes): Likewise.
7636 (Label Attributes): Likewise.
7637 (Type Attributes): Likewise.
7638 (Function Names): Likewise.
7639 (Other Builtins): Likewise.
7640 (Function Specific Option Pragmas): Likewise.
7641 (C++ Interface): Likewise.
7643 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
7645 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
7647 2015-03-11 Marek Polacek <polacek@redhat.com>
7649 PR tree-optimization/65388
7650 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
7652 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
7655 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
7656 * configure: Regenerate.
7657 * config.in: Regenerate.
7658 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
7659 [-mn-flash]: Document it.
7660 [__AVR_ARCH__]: Document avrtiny.
7662 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
7663 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
7664 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
7666 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7668 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
7670 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7673 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
7674 allow reloads of PLUS in floating point/VSX registers.
7676 2015-03-11 Junmo Park <junmoz.park@samsung.com>
7678 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
7680 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
7682 2015-03-11 Richard Biener <rguenther@suse.de>
7684 PR tree-optimization/65310
7685 * tree-sra.c (build_ref_for_offset): Also preserve larger
7688 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
7690 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
7692 2015-03-10 Jakub Jelinek <jakub@redhat.com>
7695 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
7697 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
7699 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
7701 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
7702 (sem_function::equals_wpa): ... here.
7704 2015-03-10 Marek Polacek <polacek@redhat.com>
7705 Jakub Jelinek <jakub@redhat.com>
7708 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
7709 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
7712 2015-03-10 Jakub Jelinek <jakub@redhat.com>
7715 * config/rs6000/t-linux: For powerpc64* target set
7716 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
7718 2015-03-10 Richard Biener <rguenther@suse.de>
7721 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
7722 for redirect_all_calls.
7724 2015-03-10 Marek Polacek <polacek@redhat.com>
7726 * gdbinit.in (pcfun): Define and document.
7728 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
7730 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
7731 of libgomp-plugin.h.
7732 (find_target_compiler): Support a case when the path to gcc is
7733 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
7734 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
7735 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
7737 (main): Use GCC_INSTALL_NAME as target_driver_name.
7738 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
7740 (mkoffload.o): Remove obsolete include path and defines.
7741 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
7743 2015-03-10 Richard Biener <rguenther@suse.de>
7746 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
7747 * tree-ssa-coalesce.c: Include timevar.h.
7748 (attempt_coalesce): Handle graph being NULL.
7749 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
7750 Split out abnormal coalescing to ...
7751 (perform_abnormal_coalescing): ... this function.
7752 (coalesce_ssa_name): Perform abnormal coalescing without computing
7754 (verify_ssa_coalescing_worker): New function.
7755 (verify_ssa_coalescing): Likewise.
7757 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
7760 * config.gcc (extra_options) [avr]: Remove.
7761 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
7762 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
7763 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
7765 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
7766 (-mmcu=): Add Var and MissingArgError properties.
7768 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
7769 * config/avr/t-multilib: Regenerate.
7770 * config/avr/specs.h: New file.
7771 * config/avr/driver-avr.c: New file.
7772 * config/avr/genopt.sh: Remove file.
7773 * config/avr/avr-tables.opt: Remove file.
7774 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
7775 * config/avr/avr-c.c: Same.
7777 (avr_current_device): Remove proto.
7778 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
7779 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
7780 (EXTRA_SPEC_FUNCTIONS): Define.
7781 (avr_devicespecs_file): New specs function proto.
7782 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
7783 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
7784 (avr_current_device): Remove definition and usage.
7785 (avr_set_core_architecture): New static function.
7786 (avr_option_override): Use it.
7787 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
7788 (mcu_name): New static array.
7789 (comparator, avr_archs_str, avr_mcus_str): New static functions.
7790 (avr_inform_devices, avr_inform_core_architectures): New functions.
7791 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
7792 (avrlibc.h) [WITH_AVRLIBC]: Include.
7793 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
7794 (print_mcu): Rewrite from scratch.
7795 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
7796 Forward to avr-specific specs defined in device-specs file.
7797 * config/avr/t-avr (driver-avr.o): New rule.
7798 (avr-devices.o): Depend on avr-arch.h.
7799 (avr-mcus): No more depend on avr-tables.opt.
7800 (avr-tables.opt): Remove rule.
7801 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
7803 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
7805 * c-family/c.opt (fchkp-use-wrappers): New.
7806 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
7807 (chkp_wrap_function): New.
7808 (chkp_build_instrumented_fndecl): Support wrapped
7810 * doc/invoke.texi (-fcheck-pointer-bounds): New.
7811 (-fchkp-check-incomplete-type): New.
7812 (-fchkp-first-field-has-own-bounds): New.
7813 (-fchkp-narrow-bounds): New.
7814 (-fchkp-narrow-to-innermost-array): New.
7815 (-fchkp-optimize): New.
7816 (-fchkp-use-fast-string-functions): New.
7817 (-fchkp-use-nochk-string-functions): New.
7818 (-fchkp-use-static-bounds): New.
7819 (-fchkp-use-static-const-bounds): New.
7820 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
7821 (-fchkp-check-read): New.
7822 (-fchkp-check-write): New.
7823 (-fchkp-store-bounds): New.
7824 (-fchkp-instrument-calls): New.
7825 (-fchkp-instrument-marked-only): New.
7826 (-fchkp-use-wrappers): New.
7827 (-static-libmpx): New.
7828 (-static-libmpxwrappers): New.
7830 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
7832 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
7833 (CHKP_SPEC): Add wrappers library.
7834 * c-family/c.opt (static-libmpxwrappers): New.
7836 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
7838 * config/i386/linux-common.h (LIBMPX_LIBS): New.
7841 * gcc.c (CHKP_SPEC): New.
7842 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
7843 * c-family/c.opt (static-libmpx): New.
7845 2015-03-10 Richard Biener <rguenther@suse.de>
7848 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
7850 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
7851 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
7852 (cgraph_add_edge_to_call_site_hash): Likewise.
7853 (cgraph_node::get_edge): Likewise.
7854 (cgraph_edge::set_call_stmt): Likewise.
7855 (cgraph_edge::remove_caller): Likewise.
7857 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
7859 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
7860 (callee_saved_gpr_regs_size): ... this.
7861 (callee_saved_regs_first_regno): Rename to ...
7862 (callee_saved_first_gpr_regno): ... this.
7863 (callee_saved_regs_last_regno) Rename to ...
7864 (callee_saved_last_gpr_regno): ... this.
7865 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
7867 (nds32_initial_elimination_offset): Likewise.
7868 (nds32_expand_prologue): Likewise.
7869 (nds32_expand_epilogue): Likewise.
7870 (nds32_expand_prologue_v3push): Likewise.
7871 (nds32_expand_epilogue_v3pop): Likewise.
7872 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7873 Adjust renamed variables.
7874 (nds32_output_stack_pop): Likewise.
7876 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
7878 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
7881 2015-03-10 Jakub Jelinek <jakub@redhat.com>
7883 PR rtl-optimization/65321
7884 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
7886 * var-tracking.c (use_narrower_mode): Likewise.
7888 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
7890 PR tree-optimization/65355
7891 * varasm.c (notice_global_symbol): Do not produce RTL.
7892 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
7894 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
7895 check for section anchors.
7897 2015-03-10 Alan Modra <amodra@gmail.com>
7900 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
7901 to be single-arch by default. Set cpu_is_64bit for powerpc64
7902 given --with-cpu=native.
7903 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
7904 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
7906 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
7907 rs6000_isa_flags rather than TARGET_64BIT.
7909 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
7910 Kaz Kojima <kkojima@gcc.gnu.org>
7912 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
7914 2015-03-09 Jakub Jelinek <jakub@redhat.com>
7917 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
7918 on a TREE_BINFO, instead use BINFO_TYPE.
7920 2015-03-09 Richard Biener <rguenther@suse.de>
7923 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
7924 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
7925 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
7926 of that. When comparing dereferences compare alignment.
7927 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
7929 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
7931 * ipa-inline-analysis.c (check_callers): Check
7932 node->can_remove_if_no_direct_calls_and_refs_p.
7933 (growth_likely_positive): Reorganize to call
7934 can_remove_if_no_direct_calls_p later.
7935 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
7936 will_be_removed_from_program_if_no_direct_calls_p): Add
7937 will_inline parameter.
7938 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
7939 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
7940 Handle inliner case correctly.
7942 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
7944 PR tree-optimization/63743
7945 * cfgexpand.c (reorder_operands): Also reorder if only second operand
7946 had its definition forwarded by TER.
7948 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
7951 * ipa-utils.h (types_odr_comparable): Add strict argument.
7952 * ipa-devirt.c: Fix whitespace;
7953 (odr_hasher): Remove.
7954 (odr_name_hasher, odr_vtable_hasher): New hashers.
7955 (can_be_name_hashed_p): New predicate.
7956 (hash_type_name): remove.
7957 (hash_odr_name): New.
7958 (odr_name_hasher::hash): new.
7959 (can_be_vtable_hashed_p): New.
7960 (hash_odr_vtable): New.
7961 (odr_vtable_hasher::hash): New.
7962 (types_same_for_odr): Add strict parameter.
7963 (types_odr_comparable): Likewise.
7964 (odr_name_hasher::equal): New.
7965 (odr_vtable_hasher::equal): New.
7966 (odr_name_hasher::remove): New.
7967 (odr_hash_type): Change to hash_table<odr_name_hasher>.
7968 (odr_vtable_hash_type): New.
7969 (odr_vtable_hash): New.
7970 (odr_subtypes_equivalent_p): Do strict comparsion.
7971 (add_type_duplicate): Merge type names; cleanup; avoid type
7973 (register_odr_type): Initialize vtable hash.
7974 (build_type_inheritance_graph): Likewise
7975 (get_odr_type): Reorg to use two hashes.
7976 (dump_possible_polymorphic_call_targets): Move sanity check after debug
7978 (ipa_devirt): Dump type_inheritance_graph.
7979 (types_same_for_odr): Add strict mode.
7981 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
7984 * cgraph.h (symtab_node): Add definition_alignment,
7985 can_increase_alignment_p and increase_alignment.
7986 * symtab.c (symtab_node::can_increase_alignment_p,
7987 increase_alignment_1, symtab_node::increase_alignment,
7988 symtab_node::definition_alignment): New.
7989 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
7990 can_increase_alignment_p.
7991 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
7992 * tree-vect-stmts.c (ensure_base_align): Likewise.
7993 * varasm.c (function_section_1): Use definition_alignment.
7994 (assemble_start_function): Likewise.
7995 (emit_local): likewise.
7996 (build_constant_desc): Likewsie.
7997 (output_constant_def_contents): Likewise.
7998 (place_block_symbol): Likewise.
7999 (output_object_block): Likewise.
8001 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
8004 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
8005 when outputting debug.
8007 2015-03-07 Marek Polacek <polacek@redhat.com>
8008 Martin Uecker <uecker@eecs.berkeley.edu>
8011 * doc/invoke.texi: Update description of -fsanitize=bounds.
8013 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
8015 * tree-ssa-phiopt.c (neg_replacement): Remove.
8016 (tree_ssa_phiopt_worker): Remove negate optimization.
8018 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
8021 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
8023 2015-03-06 Richard Biener <rguenther@suse.de>
8026 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
8027 and liveout_obstack members.
8028 (calculate_live_on_exit): Remove.
8029 (calculate_live_ranges): Change declaration.
8030 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
8031 (new_tree_live_info): Adjust.
8032 (calculate_live_ranges): Delete livein when not wanted.
8033 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
8034 Deal with partly deleted live info.
8035 (loe_visit_block): Remove temporary bitmap by using
8036 bitmap_ior_and_compl_into.
8037 (live_worklist): Adjust accordingly.
8038 (calculate_live_on_exit): Make static.
8039 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
8040 we do not need livein.
8042 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
8044 * real.c (real_from_string): Fix typo in assertion.
8046 2015-03-06 Alex Velenko <alex.velenko@arm.com>
8048 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
8051 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
8053 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
8055 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
8058 * lra-assigns.c (find_hard_regno_for): Rename to
8059 find_hard_regno_for_1. Add a new parameter.
8060 (find_hard_regno_for): New function using find_hard_regno_for_1.
8062 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
8064 PR rtl-optimization/65067
8065 * expmed.c (store_bit_field, extract_bit_field): Reworked the
8066 strict volatile bitfield handling.
8068 2015-03-05 Martin Liska <mliska@suse.cz>
8071 * ipa-icf.c (sem_variable::equals): Compare variables types.
8073 2015-03-05 Richard Henderson <rth@redhat.com>
8076 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
8077 correctly check weak symbol binding.
8079 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
8082 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
8085 2015-03-05 Martin Liska <mliska@suse.cz>
8087 * ipa-inline.c (inline_small_functions): Set default value to
8088 prevent warning during bootstrap.
8089 * tree.h: Add pragma guard that ignores false positives during
8092 2015-03-05 Richard Biener <rguenther@suse.de>
8094 PR tree-optimization/65310
8095 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
8096 Properly preserve alignment of the base of the access.
8098 2015-03-05 Richard Biener <rguenther@suse.de>
8101 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
8102 Compare dependence info.
8104 2015-03-05 Richard Biener <rguenther@suse.de>
8107 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
8109 (walk_ssa_copies): Revert last chage. Instead do not walk
8110 SSA names registered for SSA update.
8112 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
8115 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
8116 vtable references for their containing type.
8117 (sem_function::equals_wpa): Compare TYPE_RESTRICT
8118 and type attributes.
8120 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
8122 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
8124 * stor-layout.c (finalize_record_size): Revert latest change.
8126 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
8128 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
8130 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
8132 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
8133 for correct comdat handling.
8134 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
8136 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
8137 (used_from_object_file_p_worker): Remove.
8138 (cgraph_node::only_called_directly_or_alised): Add
8139 used_from_object_file_p.
8140 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
8141 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
8142 can_remove_if_no_direct_calls_and_refs_p.
8144 2015-03-04 Nick Clifton <nickc@redhat.com>
8146 * config/rl78/rl78.h (enum reg_class): Remove real registers from
8147 General register class.
8148 * config/rl78/rl78-real.md: Replace general register constraints
8149 with real+virtual register constraints.
8151 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8153 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
8154 from checking for -mhtm option.
8156 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
8158 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
8159 (struct ipa_sra_check_caller_data): Add has_thunk field.
8160 (ipa_sra_check_caller): Check for thunk.
8161 (ipa_sra_preliminary_function_checks): Give up on function with
8163 (ipa_early_sra): Use call_for_symbol_and_aliases.
8165 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
8168 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
8169 called for __stack_chk_guard symbol.
8171 2015-03-03 DJ Delorie <dj@redhat.com>
8173 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
8175 (*addhi3_real): Likewise.
8176 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
8177 pattern to match incrementing memory.
8178 * config/rl78/predicates.md (rl78_1_2_operand): New.
8179 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
8180 it's the same and only mem.
8181 (rl78_alloc_physical_registers_op2): If there's effectively only
8182 one MEM, transcode it into HL.
8183 (rl78_far_p): Reject addresses that aren't legitimate.
8185 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
8187 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
8190 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
8192 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
8194 Implement call0 ABI for xtensa
8195 * config/xtensa/constraints.md ("a" constraint): Include stack
8196 pointer in case of call0 ABI.
8197 ("q" constraint): Make empty in case of call0 ABI.
8198 ("D" constraint): Include stack pointer in case of call0 ABI.
8199 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
8200 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
8202 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
8204 (xtensa_regno_to_class): Make it a local variable in the
8205 function xtensa_regno_to_class.
8206 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
8207 macro, function prototype and implementation.
8208 (reg_nonleaf_alloc_order): Make it a local variable in the
8209 function order_regs_for_local_alloc.
8210 (xtensa_conditional_register_usage): New function.
8211 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
8212 (xtensa_valid_move): Allow direct moves to stack pointer
8213 register in call0 ABI.
8214 (xtensa_setup_frame_addresses): Only spill register windows in
8216 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
8217 call0 ABI respectively.
8218 (xtensa_function_arg_1): Only mark a7 register for copying in
8220 (xtensa_call_save_reg): New function.
8221 (compute_frame_size): Add space for callee saved register
8222 storage to the frame size in call0 ABI.
8223 (xtensa_expand_prologue): Generate code to set up stack frame
8224 and save callee-saved registers in call0 ABI.
8225 (xtensa_expand_epilogue): New function.
8226 (xtensa_set_return_address): New function.
8227 (xtensa_return_addr): Calculate return address in call0 ABI.
8228 (xtensa_builtin_saveregs): Only mark a7 register for copying and
8229 emit copying code in windowed ABI.
8230 (order_regs_for_local_alloc): Add preferred register allocation
8231 order for non-leaf function in call0 ABI.
8232 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
8233 (xtensa_asm_trampoline_template): Add trampoline generation for
8235 (xtensa_trampoline_init): Add trampoline initialization for
8237 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
8239 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
8240 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
8241 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
8242 ABI call-used registers.
8243 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
8244 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
8246 (REG_CLASS_CONTENTS): Include all registers into the preferred
8247 reload registers set, adjust the set in the
8248 xtensa_conditional_register_usage.
8249 (xtensa_regno_to_class): Drop variable declaration.
8250 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
8252 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
8254 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
8255 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
8256 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
8257 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
8258 location in call0 ABI.
8259 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
8260 stack adjustment size when handling exception.
8261 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
8262 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
8264 ("return" pattern): Generate ret.n/ret in call0 ABI.
8265 ("epilogue" pattern): Expand epilogue.
8266 ("nonlocal_goto" pattern): Use default in call0 ABI.
8267 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
8268 emit eh_set_a0_* depending on ABI.
8269 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
8270 ("eh_set_a0_call0", "blockage"): New patterns.
8272 2015-03-03 Martin Liska <mliska@suse.cz>
8275 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
8277 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8280 * config/rs6000/rs6000-tables.opt: Regenerate table.
8282 2015-03-03 Renlin Li <renlin.li@arm.com>
8284 * doc/md.texi (@item ^): Change ? into ^.
8286 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
8288 * doc/tm.texi: Regenerated.
8290 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
8292 * builtins.c (expand_builtin_return_addr): Add
8293 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
8295 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
8297 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
8299 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
8301 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
8304 2015-03-03 Martin Jambor <mjambor@suse.cz>
8305 Eric Botcazou <ebotcazou@adacore.com>
8307 * tree-sra.c (ipa_sra_check_caller_data): New type.
8308 (has_caller_p): Removed.
8309 (ipa_sra_check_caller): New function.
8310 (ipa_sra_preliminary_function_checks): Use it.
8312 2015-03-03 Martin Liska <mliska@suse.cz>
8314 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
8315 instead of if branch.
8317 2015-03-03 Martin Liska <mliska@suse.cz>
8320 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
8322 2015-03-23 Jeff Law <law@redhat.com>
8324 PR tree-optimization/65241
8325 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
8326 hash table if INSERT is true.
8328 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
8331 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
8333 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
8336 * config/avr/avr.c (context.h, tree-pass.h): Include them.
8337 (avr_pass_data_recompute_notes): New static variable.
8338 (avr_pass_recompute_notes): New class.
8339 (avr_register_passes): New static function.
8340 (avr_option_override): Call it.
8342 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
8344 Fix various problems with specs file generation.
8347 * config.gcc (extra_gcc_objs) [avr]: Remove.
8348 * config/avr/driver-avr.c: Remove file.
8349 * config/avr/t-avr (driver-avr.o): Remove rule.
8350 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
8351 INCLUDES to build. Depend on TM_H.
8352 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
8353 build warnings. Fix non-matching types and non-existing %-codes.
8355 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
8356 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
8357 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
8358 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
8359 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
8360 (LIBGCC_SPEC): Remove definitions.
8362 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
8364 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
8365 to create a register in testing mode.
8367 2015-03-03 Martin Liska <mliska@suse.cz>
8368 Jan Hubicka <hubicka@ucw.cz>
8371 * cgraph.c (cgraph_node::has_thunk_p): New function.
8372 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
8373 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
8374 (sem_function::merge): Assert is changed.
8376 2015-03-03 Martin Liska <mliska@suse.cz>
8377 Martin Jambor <mjambor@suse.cz>
8380 * ipa-icf.c (sem_item_optimizer::execute): Change function
8381 return value to boolean.
8382 (sem_item_optimizer::merge_classes): Likewise.
8383 (ipa_icf_driver): Return TODO_remove_functions in case there's
8384 a merge operation processed.
8385 * ipa-icf.h: Change function return value to boolean.
8387 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8390 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
8391 processor type for 64-bit little endian PowerPC.
8393 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8394 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
8395 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
8396 printing built-in mask so it does not pass NULL pointers.
8398 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
8401 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
8404 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
8405 !ISA_HAS_FP_CONDMOVE.
8407 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
8409 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
8412 2015-03-02 Ulrich Drepper <drepper@gmail.com>
8414 * doc/invoke.texi (Options for Code Generation Conventions):
8415 Fix URL of DSO paper.
8417 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
8420 * ipa-inline.c (check_callers): Looks for recursion.
8421 (inline_to_all_callers): Give up on uninlinable or recursive edges.
8422 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
8423 summary of inline clones.
8424 (do_estimate_growth_1): Fix recursion check.
8426 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
8429 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
8432 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
8433 Aldy Hernandez <aldyh@redhat.com>
8436 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
8437 when checking TYPE_BINFO.
8439 2015-03-02 Richard Biener <rguenther@suse.de>
8442 * ipa-icf-gimple.c: Include builtins.h.
8443 (func_checker::compare_memory_operand): Compare base alignment.
8445 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
8448 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
8449 are never passed by reference.
8451 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
8454 * tree-chkp.c (chkp_check_lower): Don't check against
8455 zero bounds for already instrumented functions.
8456 (chkp_check_upper): Likewise.
8457 (chkp_fini): Clean pass local data to avoid wrong reusage.
8459 2015-02-28 Martin Liska <mliska@suse.cz>
8460 Jan Hubicka <hubicka@ucw.cz>
8462 * ipa-icf.c (sem_variable::equals): Improve debug output;
8463 get variable constructor.
8464 (sem_variable::parse): Do not filter out too early; give up on
8465 volatile and register vars.
8466 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
8468 * ipa-icf.h (sem_variable::init): Do not set ctor.
8469 (sem_variable::ctor): Remove.
8471 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
8474 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
8476 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
8478 * ipa-icf.c: Include stor-layout.h
8479 (sem_function::compare_cgraph_references): Rename to ...
8480 (sem_item::compare_cgraph_references): ... this one.
8481 (sem_variable::equals_wpa): New function
8482 (sem_variable::equals): Do not check stuff already verified by
8484 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
8485 * ipa-icf.h (sem_item): Add compare_cgraph_references.
8486 (sem_function): Remove compare_cgraph_references.
8487 (sem_variable): Turns equals_wpa into non-inline.
8489 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
8491 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
8492 (sem_item::add_expr): New function.
8493 (sem_function::hash_stmt): Handle operands of most statements.
8494 (sem_variable::get_hash): Hash the actual constructor.
8495 * ipa-icf.h (sem_item): Add add_expr.
8496 (sem_function): Update prototype of hash_stmt
8498 2015-02-28 Martin Liska <mliska@suse.cz>
8499 Jan Hubicka <hubicka@ucw.cz>
8502 * ipa-icf-gimple.c (func_checker::compare_function_decl):
8504 (func_checker::compare_variable_decl): Skip symtab vars.
8505 (func_checker::compare_cst_or_decl): Update.
8506 * ipa-icf.c (sem_function::parse): Do not consider aliases.
8507 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
8508 use correct symtab predicates.
8509 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
8510 (sem_variable::parse): Update comment.
8511 (sem_item_optimizer::build_graph): Consider ultimate aliases
8514 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
8516 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
8519 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
8521 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
8522 (sem_variable::merge) Likewise.
8524 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
8526 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
8527 target; also match flag_ipa_devirt.
8529 2015-03-01 Martin Liska <mliska@suse.cz>
8530 Jan Hubicka <hubicka@ucw.cz>
8532 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
8533 Validate variable alignment.
8534 * ipa-icf.c (sem_function::equals_private): Be more precise
8535 about non-common function attributes.
8536 (sem_variable::equals): Likewise.
8538 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
8541 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
8542 across COMDAT group boundary.
8544 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
8547 * ipa-icf.c (clear_decl_rtl): New function.
8548 (sem_function::merge): Clear RTL before forming alias.
8549 (sem_variable::merge): Clear RTL before forming alias.
8551 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
8554 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
8556 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
8558 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
8561 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
8563 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
8564 a typo in the description.
8566 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
8569 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
8570 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
8571 * lra-constraints.c: Include "params.h".
8572 (EBB_PROBABILITY_CUTOFF): Use
8573 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
8574 (lra_inheritance): Use '<' instead of '<=' for
8575 EBB_PROBABILITY_CUTOFF.
8576 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
8579 2015-02-27 Martin Liska <mliska@suse.cz>
8581 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
8582 vector length condition.
8584 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
8586 * doc/extend.texi (x86 transactional memory intrinsics):
8587 Reorganize discussion of _xbegin. Clarify that the return
8588 value is a bit mask. Expand example and move to end of section.
8590 2015-02-26 Jakub Jelinek <jakub@redhat.com>
8591 Aldy Hernandez <aldyh@redhat.com>
8593 PR rtl-optimization/65220
8594 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
8596 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
8599 * lra-remat.c (update_scratch_ops): New.
8600 (do_remat): Call it.
8601 * lra.c (lra_register_new_scratch_op): New. Take code from ...
8602 (remove_scratches): ... here.
8603 * lra-int.h (lra_register_new_scratch_op): New prototype.
8605 2015-02-27 Marek Polacek <polacek@redhat.com>
8608 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
8609 -Wformat-signedness anymore.
8611 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8613 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
8615 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
8617 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8619 * config/s390/s390.c (enum s390_builtin):
8620 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
8621 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
8622 (s390_init_builtins): Generate new builtin functions.
8623 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
8624 (s390_sfpc, s390_efpc): New pattern definitions.
8626 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8628 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
8629 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
8630 (s390_builtin_decls): New array.
8631 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
8632 (s390_builtin_decl): New function.
8633 (TARGET_BUILTIN_DECL): Define macro.
8635 2015-02-27 Richard Biener <rguenther@suse.de>
8638 * builtins.c (get_object_alignment_2): Make sure to re-apply
8639 the ANDed mask after recursing to its operand gets us a new
8640 misalignment bit position.
8642 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
8643 Martin Liska <mliska@suse.cz>
8646 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
8647 Use address_matters_p.
8648 (redirect_all_callers, set_addressable): New functions.
8649 (sem_function::merge): Reorganize and fix merging issues.
8650 (sem_variable::merge): Likewise.
8651 (sem_variable::compare_sections): Remove.
8652 * common.opt (fmerge-all-constants, fmerge-constants): Remove
8654 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
8656 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
8658 (address_matters_1): New function.
8659 (symtab_node::address_matters_p): New function.
8660 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
8661 check for merged flag.
8662 * cgraph.h (address_matters_p): Declare.
8663 (symtab_node::address_taken_from_non_vtable_p): Remove.
8664 (symtab_node::address_can_be_compared_p): New method.
8665 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
8666 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
8668 (comdat_can_be_unshared_p_1) Use address_matters_p.
8669 (update_vtable_references): Fix formating.
8670 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
8671 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
8672 * cgraphclones.c: Preserve merged and icf_merged flags.
8674 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
8676 * doc/extend.texi (Function Attributes): Fix spelling and typos.
8677 (Label Attributes): Likewise.
8678 (Cilk Plus Builtins): Likewise.
8679 (ARC SIMD Built-in Functions): Likewise.
8680 (ARM C Language Extensions (ACLE)): Likewise.
8681 (PowerPC Built-in Functions): Likewise.
8682 (PowerPC Hardware Transactional Memory Built-in Functions):
8685 2015-02-26 Jakub Jelinek <jakub@redhat.com>
8687 PR tree-optimization/65216
8688 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
8689 new stmt and new SSA_NAME for lhs whenever the arguments have
8690 changed and weren't just swapped. Fix comment typo.
8692 PR tree-optimization/65215
8693 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
8694 for PDP endian targets.
8695 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
8696 Fix up formatting issues.
8697 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
8698 size is smaller than the original, adjust MEM_REF offset by the
8699 difference of sizes. Use is_gimple_mem_ref_addr instead of
8700 is_gimple_min_invariant test to avoid adding address temporaries.
8702 2015-02-26 Martin Liska <mliska@suse.cz>
8703 Jan Hubicka <hubicka@ucw.cz>
8706 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
8707 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
8708 (sem_item_optimizer::process_cong_reduction): Include division by
8709 sensitive references.
8710 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
8711 * ipa-ref.c (ipa_ref::address_matters_p): New function.
8712 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
8714 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
8717 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
8719 * config/avr/avr.c: Same.
8720 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
8721 Refuse any constant address not in 0..0xbf.
8722 * config/avr/avr.md (*mov<mode>, *movsf): Remove
8723 tiny_valid_direct_memory_access_range from insn conditions.
8724 (mov<mode>): Don't special-case expansion of avrtiny addresses.
8726 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
8729 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
8730 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
8731 * config/sh/predicates.md (const_logical_operand): New predicate.
8732 * config/sh/sh.md: Add new peephole2 patterns.
8734 2015-02-26 Marek Polacek <polacek@redhat.com>
8737 * ipa-inline.c (early_inliner): Recompute inline parameters.
8739 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8742 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
8743 instructions with TImode operands are included in the analysis.
8745 2015-02-26 Sebastian Pop <s.pop@samsung.com>
8747 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
8748 of an EDGE_FSM_THREAD.
8750 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
8752 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
8754 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
8757 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
8759 2015-02-26 Sebastian Pop <s.pop@samsung.com>
8761 PR tree-optimization/65048
8762 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
8763 (thread_through_all_blocks): Call valid_jump_thread_path.
8764 Remove invalid FSM jump-thread paths.
8766 2015-02-26 Jakub Jelinek <jakub@redhat.com>
8768 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
8769 (ipa_write_optimization_summaries): Likewise.
8770 * tree-streamer.h: Include data-streamer.h.
8771 (streamer_mode_table): Declare extern variable.
8772 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
8773 * lto-streamer-out.c (lto_output_init_mode_table,
8774 lto_write_mode_table): New functions.
8775 (produce_asm_for_decls): Call lto_write_mode_table when streaming
8777 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
8778 (lto_create_simple_input_block): Add mode_table argument to the
8779 lto_input_block constructors.
8780 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
8782 * data-streamer-in.c (string_for_index): Likewise.
8783 * ipa-inline-analysis.c (inline_read_section): Likewise.
8784 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
8785 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
8786 * lto-streamer-in.c (lto_read_body_or_constructor,
8787 lto_input_toplevel_asms): Likewise.
8788 (lto_input_mode_table): New function.
8789 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
8790 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
8791 Use bp_pack_machine_mode.
8792 * real.h (struct real_format): Add name field.
8793 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
8794 (class lto_input_block): Add mode_table member.
8795 (lto_input_block::lto_input_block): Add mode_table_ argument,
8796 initialize mode_table.
8797 (struct lto_file_decl_data): Add mode_table field.
8798 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
8799 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
8800 unpack_ts_decl_common_value_fields,
8801 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
8802 * tree-streamer.c (streamer_mode_table): New variable.
8803 * real.c (ieee_single_format, mips_single_format,
8804 motorola_single_format, spu_single_format, ieee_double_format,
8805 mips_double_format, motorola_double_format,
8806 ieee_extended_motorola_format, ieee_extended_intel_96_format,
8807 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
8808 ibm_extended_format, mips_extended_format, ieee_quad_format,
8809 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
8810 decimal_single_format, decimal_double_format, decimal_quad_format,
8811 ieee_half_format, arm_half_format, real_internal_format): Add name
8813 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
8815 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
8818 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
8819 reordering for selective scheduling.
8821 2015-02-26 Terry Guo <terry.guo@arm.com>
8823 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
8824 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
8825 (arm_arch_no_volatile_ce): Declare new global variable.
8826 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
8827 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
8828 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
8829 (TARGET_NO_VOLATILE_CE): New macro.
8830 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
8831 volatile memory access in IT block
8833 2015-02-25 Kai Tietz <ktietz@redhat.com>
8835 PR tree-optimization/61917
8836 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
8837 that reduc_def_stmt is null.
8839 2015-02-25 Martin Liska <mliska@suse.cz>
8841 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
8842 hard register variables.
8844 2015-02-25 Kai Tietz <ktietz@redhat.com>
8847 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
8848 (symtab::noninterposable_alias): Likewise.
8850 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
8853 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
8855 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
8857 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
8860 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
8861 as split condition; force split via '#' in output pattern.
8863 2015-02-25 Richard Biener <rguenther@suse.de>
8864 Kai Tietz <ktietz@redhat.com>
8866 PR tree-optimization/61917
8867 * tree-vect-loop.c (vectorizable_reduction): Allow
8868 vect_internal_def without reduction to exit graceful.
8870 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
8873 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
8874 only with NONDEBUG_INSN_P.
8876 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
8878 Use variadic macros with avr-log.c.
8880 * config/avr/avr-protos.h (avr_vdump): New prototype.
8881 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
8882 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
8883 * config/avr/avr-log.c: Adjust comments.
8884 (avr_vdump): New function.
8885 (avr_vadump): Pass caller as 2nd argument instead of format string.
8886 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
8887 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
8889 2015-02-25 Jakub Jelinek <jakub@redhat.com>
8892 * target.def (target_option_stream_in): New target hook.
8893 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
8894 targetm.target_option.post_stream_in if non-NULL.
8895 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
8896 * doc/tm.texi: Updated.
8897 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
8899 (TARGET_OPTION_POST_STREAM_IN): Redefine.
8901 2015-02-24 Jeff Law <law@redhat.com>
8904 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
8905 of operand 0 and operand 2.
8906 (zero_cost_loop_end, loop_end): Similarly.
8908 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
8910 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
8913 2015-02-24 DJ Delorie <dj@redhat.com>
8915 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
8916 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
8917 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
8918 instead of hardcoding SImode.
8920 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
8922 * omp-low.c (create_omp_child_function): Tag entrypoint
8923 functions with a special attribute.
8925 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8928 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
8930 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
8932 PR rtl-optimization/65123
8933 * lra-remat.c (operand_to_remat): Check hard regs in insn
8936 2015-02-24 Nick Clifton <nickc@redhat.com>
8938 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
8941 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
8944 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
8945 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
8946 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
8947 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
8948 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
8949 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
8950 (BUILT_IN_GOACC_PARALLEL): Specify as
8951 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
8952 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
8954 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8955 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8956 Remove function types.
8957 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
8958 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8959 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8962 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
8964 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
8966 2015-02-24 Jakub Jelinek <jakub@redhat.com>
8968 PR tree-optimization/65170
8969 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
8970 if val[1] < 0, clear also val[2] and return 3.
8972 2015-02-24 Alan Modra <amodra@gmail.com>
8975 * config/rs6000/rs6000.c (get_memref_parts): Only return true
8976 when *base is a reg. Handle nested plus addresses. Simplify
8979 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
8981 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
8982 use natural alignment when optimizing for size.
8984 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
8987 * config/sh/sh.md (movsicc_true+3): Remove peephole.
8988 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
8989 * config/sh/sh.c (replace_n_hard_rtx): Remove.
8991 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
8994 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
8995 too big for a wide_int. Implement missing wrapping operation.
8997 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
9000 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
9001 instead of const_int 4294901760.
9003 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
9005 * config/avr/t-avr: Fix typo in comment.
9007 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
9009 * doc/rtl.texi (fma): Clarify documentation.
9011 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
9014 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
9015 over input_location.
9017 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
9019 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
9020 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
9021 restrict alignments to absolute_biggest_alignment.
9022 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
9024 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
9025 * doc/tm.texi: Regenerate.
9026 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
9028 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
9031 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
9033 2015-02-20 Richard Biener <rguenther@suse.de>
9035 PR tree-optimization/65136
9036 * tree-ssa-propagate.c: Include cfgloop.h.
9037 (replace_phi_args_in): Avoid replacing loop latch edge PHI
9038 arguments with constants.
9040 2015-02-20 Jakub Jelinek <jakub@redhat.com>
9041 Martin Liska <mliska@suse.cz>
9044 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
9045 don't try to create_thunk if stdarg_p. If
9046 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
9047 redirect_callers if possible.
9048 (sem_item_optimizer::execute): Call unregister_hooks here...
9049 (ipa_icf_driver): ... instead of here.
9051 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9053 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
9054 Mark operand 0 as earlyclobber in 2nd alternative.
9055 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
9056 Write negated shift amount into QI lowpart operand 0 and use it
9058 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
9060 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
9062 * cgraph.h (clone_function_name_1): Declare.
9063 * cgraphclones.c (clone_function_name_1): New function.
9064 (clone_function_name): Use it.
9065 * lto-partition.c: Include "stringpool.h".
9066 (must_not_rename, maybe_rewrite_identifier)
9067 (validize_symbol_for_target): New static functions.
9068 (privatize_symbol_name): Use must_not_rename.
9069 (promote_symbol): Call validize_symbol_for_target.
9070 (lto_promote_cross_file_statics): Likewise.
9071 (lto_promote_statics_nonwpa): Likewise.
9073 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
9076 * config/avr/avr.md (pushhi_insn): New insn.
9077 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
9079 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
9080 Jakub Jelinek <jakub@redhat.com>
9082 * tree-streamer.c (preload_common_nodes): Don't preload
9083 TI_VA_LIST* for offloading.
9084 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
9087 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
9089 * config/pa/pa.c (pa_emit_move_sequence): Always force
9090 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
9093 * config/pa/pa.c (pa_reloc_rw_mask): New function.
9094 (TARGET_ASM_RELOC_RW_MASK): Define.
9095 (pa_cannot_force_const_mem): Revert previous change.
9097 2015-02-19 Martin Jambor <mjmabor@suse.cz>
9098 Jan Hubicka <hubicka@ucw.cz>
9101 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
9102 across jump functions.
9104 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
9106 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
9108 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
9110 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
9112 2015-02-19 Richard Henderson <rth@redhat.com>
9115 * varasm.c (default_binds_local_p_2): Don't test node->definition;
9116 test DECL_EXTERNAL independent of symtab_node.
9118 2015-02-19 Jakub Jelinek <jakub@redhat.com>
9121 * varpool.c (varpool_node::get_constructor): Return early
9122 if this->lto_file_data is NULL.
9124 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9126 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
9127 (rank_for_schedule_debug): Update.
9128 (ready_sort): Make static. Move sorting logic to ...
9129 (ready_sort_debug, ready_sort_real): New static functions.
9130 (schedule_block): Sort both debug insns and real insns in preparation
9131 for ready list trimming. Improve debug output.
9132 * sched-int.h (ready_sort): Remove global declaration.
9134 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
9136 * ipa-icf.c (sem_function::equals_private): Adjust.
9137 (sem_function::bb_dict_test): Take a vec<int> * instead of
9139 * ipa-icf.h (bb_dict_test): Likewise.
9141 2015-02-18 Jakub Jelinek <jakub@redhat.com>
9143 PR gcov-profile/64634
9144 * tree-eh.c (frob_into_branch_around): Fix up typos
9145 in function comment.
9146 (lower_catch): Put eh_seq resulting from EH lowering of
9147 the cleanup sequence after the cleanup rather than before it.
9149 2015-02-18 Tom de Vries <tom@codesourcery.com>
9151 * common.opt (fstdarg-opt): New option.
9152 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
9153 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
9154 (@item -fstdarg-opt): New item.
9156 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
9159 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
9162 2015-02-18 Jakub Jelinek <jakub@redhat.com>
9164 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
9166 (ALL_HOST_OBJS): Add mkoffload.o.
9167 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
9169 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
9171 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
9172 (compare_virtual_tables): Be smarter about skipping typeinfos;
9173 do sane output on virtual table table mismatch.
9174 (warn_odr): Be ready for forward declarations of enums;
9175 output sane info on base mismatch and virtual table mismatch.
9176 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
9177 when only one type is polymorphic.
9178 (get_odr_type): Fix hashtable corruption.
9179 (dump_odr_type): Dump mangled names.
9181 2015-02-18 Richard Biener <rguenther@suse.de>
9183 PR tree-optimization/65063
9184 * tree-predcom.c (determine_unroll_factor): Return 1 if we
9185 have replaced looparound PHIs.
9187 2015-02-18 Martin Liska <mliska@suse.cz>
9189 * lto-streamer.c (lto_streamer_init): Encapsulate
9190 streamer_check_handled_ts_structures with checking macro.
9192 2015-02-18 Jakub Jelinek <jakub@redhat.com>
9195 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
9196 section if !implicit_section.
9197 (cgraph_node::create_version_clone_with_body): Likewise.
9198 * trans-mem.c (ipa_tm_create_version): Likewise.
9200 2015-02-18 Richard Biener <rguenther@suse.de>
9202 PR tree-optimization/62217
9203 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
9206 2015-02-18 Marek Polacek <polacek@redhat.com>
9209 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
9210 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
9211 is in range [-16K, -1]. Don't issue run-time error if
9212 (ptr > ptr + offset).
9214 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
9216 * doc/install.texi (nvptx-*-none): New section.
9217 * doc/invoke.texi (Nvidia PTX Options): Likewise.
9218 * config/nvptx/nvptx.opt: Update.
9220 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
9221 (access_check): New functions, copied from
9222 config/i386/intelmic-mkoffload.c.
9223 (main): For non-installed testing, look in all COMPILER_PATHs for
9226 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
9228 2015-02-18 Andrew Pinski <apinski@cavium.com>
9229 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9231 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
9232 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
9234 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
9236 * ipa-visibility.c (function_and_variable_visibility): Only
9237 check locality if node is not already local.
9238 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
9239 call_for_symbol_and_aliases instead of
9240 call_for_symbol_thunks_and_aliases.
9241 (ipa_inline): Likewise.
9242 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
9244 * ipa.c (symbol_table::remove_unreachable_nodes): Use
9245 call_for_symbol_and_aliases.
9246 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
9247 (ipa_propagate_frequency_1): Use it; use opt_for_fn
9248 (ipa_propagate_frequency): Update.
9249 (ipa_profile): Add opt_for_fn gueards.
9251 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
9253 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
9254 * doc/invoke.texi (SH options): Document it.
9255 * config/sh/sh.c (sh_insn_length_adjustment): Check
9256 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
9258 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
9260 * common.opt (fipa-cp-alignment): New.
9261 * ipa-cp.c (ipcp_store_alignment_results): Check
9262 flag_ipa_cp_alignment.
9263 * opts.c (default_options_table): Enable -fipa-cp-alignment for
9265 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
9266 * doc/invoke.texi: Document -fipa-cp-alignment.
9268 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
9271 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
9272 to nil. Adjust comments.
9274 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
9276 * ipa-visibility.c (function_and_variable_visibility): Only
9277 check locality if node is not already local.
9278 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
9279 call_for_symbol_and_aliases instead of
9280 call_for_symbol_thunks_and_aliases.
9281 (ipa_inline): Likewise.
9282 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
9284 * ipa.c (symbol_table::remove_unreachable_nodes): Use
9285 call_for_symbol_and_aliases.
9286 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
9287 (ipa_propagate_frequency_1): Use it; use opt_for_fn
9288 (ipa_propagate_frequency): Update.
9289 (ipa_profile): Add opt_for_fn guards.
9291 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
9293 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
9294 skipping of "strange" tokens.
9296 2015-02-17 Jeff Law <law@redhat.com>
9298 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
9301 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
9303 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
9304 as forcing a HARD_DEP between instructions, thereby
9305 disallowing rewriting to break dependencies.
9307 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
9309 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
9310 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
9311 variables in boundary that have no inlitalizer encoded and are
9313 * varasm.c (default_binds_local_p_2): External definitions do not
9314 count as definitions here.
9316 2015-02-16 Jeff Law <law@redhat.com>
9318 PR tree-optimization/64823
9319 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
9321 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
9322 threading through blocks with PHIs, but no statements.
9323 (thread_through_normal_block): Distinguish between blocks where
9324 we did not process all the statements and blocks with no statements.
9326 2015-02-16 Jakub Jelinek <jakub@redhat.com>
9327 James Greenhalgh <james.greenhalgh@arm.com>
9330 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
9331 section if not linkonce. Fix up formatting.
9332 (cgraph_node::create_version_clone_with_body): Copy section.
9333 * trans-mem.c (ipa_tm_create_version): Likewise.
9335 2015-02-16 Richard Biener <rguenther@suse.de>
9337 PR tree-optimization/65077
9338 * tree-ssa-structalias.c (get_constraint_for_1): Handle
9339 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
9340 (find_func_aliases): Allow float values to carry pointers again.
9342 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9344 * doc/install.texi (Specific): Reorder targets list to put
9345 aarch64 in alphabetical order. Add a link to aarch64*-*-*
9348 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
9349 David Edelsohn <dje.gcc@gmail.com>
9352 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
9353 mapping class to external variable or function reference.
9354 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
9357 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
9360 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
9361 ASM_WEAKEN_DECL if defined.
9363 2015-02-16 Richard Biener <rguenther@suse.de>
9366 * varasm.c (default_file_start): For LTO produced units
9367 emit <artificial> as file directive.
9369 2015-02-16 Richard Biener <rguenther@suse.de>
9371 PR tree-optimization/63593
9372 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
9373 stmts and releasing SSA names until...
9374 (execute_pred_commoning): ... after processing all chains.
9376 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
9379 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
9382 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
9384 * doc/bugreport.texi: Adjust section titles throughout the file
9385 to use "Title Case".
9386 * doc/extend.texi: Likewise.
9387 * doc/gcov.texi: Likewise.
9388 * doc/implement-c.texi: Likewise.
9389 * doc/implement-cxx.texi: Likewise.
9390 * doc/invoke.texi: Likewise.
9391 * doc/objc.texi: Likewise.
9392 * doc/standards.texi: Likewise.
9393 * doc/trouble.texi: Likewise.
9395 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
9397 * cgraph.h (symtab_node::has_aliases_p): Simplify.
9398 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
9399 * tree.c (lookup_binfo_at_offset): Make static.
9400 (get_binfo_at_offset): Do not shadow offset; add explanatory
9403 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
9405 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
9406 for all floading point loads and stores except those using a register
9408 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
9411 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
9413 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
9414 (do_estimate_growth_1): Record if any uninlinable edge was seen.
9415 (estimate_growth): Handle uninlinable edges correctly.
9416 (check_callers): New.
9417 (growth_likely_positive): Handle aliases correctly.
9419 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
9421 * ipa-chkp.c: Use iterate_direct_aliases.
9422 * symtab.c (resolution_used_from_other_file_p): Move inline.
9423 (symtab_node::create_reference): Fix formating.
9424 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
9425 (symtab_node::iterate_reference): Move inline.
9426 (symtab_node::iterate_referring): Move inline.
9427 (symtab_node::iterate_direct_aliases): Move inline.
9428 (symtab_node::used_from_object_file_p_worker): Inline into ...
9429 (symtab_node::used_from_object_file_p): ... this one; move inline.
9430 (symtab_node::call_for_symbol_and_aliases): Move inline;
9431 use iterate_direct_aliases.
9432 (symtab_node::call_for_symbol_and_aliases_1): New method.
9433 (cgraph_node::call_for_symbol_and_aliases): Move inline;
9434 use iterate_direct_aliases.
9435 (cgraph_node::call_for_symbol_and_aliases_1): New method.
9436 (varpool_node::call_for_node_and_aliases): Rename to ...
9437 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
9438 use iterate_direct_aliases.
9439 (varpool_node::call_for_symbol_and_aliases_1): New method.
9440 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
9441 (ipa_discover_readonly_nonaddressable_var): Update.
9442 * ipa-devirt.c: Fix formating.
9443 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
9445 (cgraph_node::call_for_symbol_and_aliases): Move inline.
9446 (cgraph_node::call_for_symbol_and_aliases_1): New function..
9447 * cgraph.h (used_from_object_file_p_worker): Remove.
9448 (resolution_used_from_other_file_p): Move inline.
9449 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
9450 (symtab_node::iterate_reference): Move inline.
9451 (symtab_node::iterate_referring): Move inline.
9452 (symtab_node::iterate_direct_aliases): Move inline.
9453 (symtab_node::used_from_object_file_p_worker): Inline into ...
9454 (symtab_node::used_from_object_file_p): Move inline.
9455 * tree-emutls.c (ipa_lower_emutls): Update.
9456 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
9457 (varpool_node::call_for_node_and_aliases): Remove.
9459 2015-02-14 Jakub Jelinek <jakub@redhat.com>
9461 PR tree-optimization/62209
9462 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
9463 op == range->exp, insert seq and gimplified code after labels
9464 instead of after the phi.
9466 2015-02-13 Jeff Law <law@redhat.com>
9469 Revert my change for tree-optimization/64823.
9471 2015-02-13 Jakub Jelinek <jakub@redhat.com>
9473 PR tree-optimization/65053
9474 * tree-ssa-phiopt.c (value_replacement): When moving assign before
9475 cond, either reset VR on lhs or set it to phi result VR.
9477 2015-02-13 Jeff Law <law@redhat.com>
9479 PR tree-optimization/64823
9480 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
9481 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
9482 threading through blocks with PHIs, but no statements.
9483 (thread_through_normal_block): Distinguish between blocks where
9484 we did not process all the statements and blocks with no statements.
9486 PR rtl-optimization/47477
9487 * match.pd (convert (plus/minus (convert @0) (convert @1): New
9488 simplifier to narrow arithmetic.
9490 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
9493 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
9494 polymorphic call info when type is not known to be preserved.
9496 2015-02-13 Maritn Jambor <mjambor@suse.cz>
9499 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
9500 (inline_call): Use it.
9502 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
9504 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
9505 GOMP_DEVICE_NVIDIA_PTX.
9507 2015-02-13 Jakub Jelinek <jakub@redhat.com>
9510 * stmt.c (emit_case_nodes): Use void_type_node instead of
9511 NULL_TREE as LABEL_DECL type.
9513 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
9515 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
9517 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
9518 symbolic references to data to be forced to constant memory on the
9521 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
9523 PR tree-optimization/65002
9524 * tree-cfg.c (pass_data_fixup_cfg): Don't update
9526 * tree-sra.c (some_callers_have_no_vuse_p): New.
9527 (ipa_early_sra): Reject functions whose callers
9528 assume function is read only.
9530 2015-02-13 Richard Biener <rguenther@suse.de>
9533 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
9534 for LTO produced CUs.
9536 2015-02-13 Bin Cheng <bin.cheng@arm.com>
9538 PR tree-optimization/64705
9539 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
9540 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
9541 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
9542 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
9543 expand_simple_operations.
9545 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
9546 Richard Henderson <rth@redhat.com>
9549 * cgraphunit.c (cgraph_node::finalize_function): Set definition
9550 before notice_global_symbol.
9551 (varpool_node::finalize_decl): Likewise.
9552 * varasm.c (default_binds_local_p_2): Rename from
9553 default_binds_local_p_1, add weak_dominate argument. Use direct
9554 returns instead of assigning to local variable. Unify varpool and
9555 cgraph paths via symtab_node. Reject undef weak variables before
9556 testing visibility. Reorder tests for simplicity.
9557 (default_binds_local_p): Use default_binds_local_p_2.
9558 (default_binds_local_p_1): Likewise.
9559 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
9561 (default_elf_asm_output_external): Emit visibility when specified.
9563 2015-02-13 Alan Modra <amodra@gmail.com>
9565 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
9566 code setting up r11 for out-of-line fp restore.
9568 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
9570 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
9571 (muser-mode): Likewise.
9573 2015-02-13 Alan Modra <amodra@gmail.com>
9575 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
9576 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
9578 2015-02-12 David Howells <dhowells@redhat.com>
9580 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
9582 * tree-ssa-uninit.c (dump_predicates): Likewise.
9583 * opts.c (print_filtered_help): Likewise.
9585 2015-02-12 Jakub Jelinek <jakub@redhat.com>
9587 * dwarf2out.c (output_die): Use "%s", name instead of name to
9588 avoid -Wformat-security warning.
9590 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
9591 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
9592 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
9593 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
9595 2015-02-12 Jason Merrill <jason@redhat.com>
9597 * common.opt (-flifetime-dse): New.
9599 2015-02-12 Jakub Jelinek <jakub@redhat.com>
9602 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
9604 PR tree-optimization/65014
9605 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
9606 use original second operand of arg0 or arg1 instead of
9607 that adjusted by STRIP_NOPS.
9609 2015-02-11 Jeff Law <law@redhat.com>
9612 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
9613 that needs to be queued, just queue it for a single cycle.
9615 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
9617 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
9618 bodies of thunks; comment on why.
9619 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
9622 2015-02-11 Richard Henderson <rth@redhat.com>
9625 * tree-eh.c (mark_reachable_handlers): Mark source and destination
9626 regions of __builtin_eh_copy_values.
9628 2015-02-11 Jakub Jelinek <jakub@redhat.com>
9631 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
9632 ultimate alias is MEM with SYMBOL_REF satisfying
9633 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
9634 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
9636 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
9638 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
9639 "diagnostic-core.h".
9640 (main): Initialize progname, and call diagnostic_initialize.
9642 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
9643 instead of __OPENMP_TARGET__.
9645 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
9646 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
9649 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
9651 * doc/sourcebuild.texi (pie_enabled): Document.
9653 2015-02-11 Martin Liska <mliska@suse.cz>
9656 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
9657 a return value for call to a function that is noreturn.
9659 2015-02-11 Richard Biener <rguenther@suse.de>
9662 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
9665 2015-02-11 Andrew Pinski <apinski@cavium.com>
9668 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
9669 Change the first argument type to size_type_node and add another
9671 (aarch64_simd_expand_builtin): Handle the new argument to
9672 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
9673 print an out when the first two arguments are not
9674 nonzero integer constants.
9675 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
9676 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
9678 2015-02-11 Jakub Jelinek <jakub@redhat.com>
9681 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
9682 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
9683 (ix86_set_current_function): Rewritten.
9684 (ix86_add_new_builtins): Temporarily clear current_target_pragma
9685 when creating builtin fndecls.
9687 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
9690 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
9692 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
9693 have no comdat group.
9694 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
9695 (lto_output_varpool_node): Always output alias info.
9696 (output_refs): Output refs of boundary aliases, too.
9697 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
9698 (output_symtab): Output call eges in thunks in boundary.
9699 (get_alias_symbol): Remove.
9700 (input_node, input_varpool_node): Do not special case weakrefs.
9701 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
9702 alias and thunks targets in the boundary; do not take removed symbols
9703 from their comdat groups.
9704 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
9705 (cgraph_node::global_info): Remove.
9706 (cgraph_node::rtl_info): Look through aliases and thunks.
9707 * cgrpah.h (global_info): Remove.
9708 (non_local_p): Remove.
9710 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
9711 Sandra Loosemore <sandra@codesourcery.com>
9713 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
9714 to inline asm. List dialects in proper order.
9716 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
9717 Sandra Loosemore <sandra@codesourcery.com>
9719 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
9721 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
9723 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
9724 modified) reference to Solaris.
9726 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
9728 * doc/extend.texi (Extended Asm): Fix typos.
9730 2015-02-10 Jakub Jelinek <jakub@redhat.com>
9733 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
9735 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
9738 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
9739 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
9740 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
9741 * config/sh/constraints.md (Ara, Add): New constraints.
9742 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
9744 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
9745 atomic_mem_operand_0. Don't use force_reg on the memory address.
9746 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
9747 Sra constraint. Convert to insn_and_split. Add workaround for
9749 (atomic_compare_and_swap<mode>_hard): Copy to
9750 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
9751 Use atomic_mem_operand_0 predicate.
9752 (atomic_compare_and_swap<mode>_soft_gusa,
9753 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
9755 (atomic_compare_and_swap<mode>_soft_tcb,
9756 atomic_compare_and_swap<mode>_soft_imask,
9757 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
9758 atomic_mem_operand_0 predicate and SraSdd constraints.
9759 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
9761 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
9762 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
9763 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
9764 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
9765 force_reg on the memory address.
9766 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
9767 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
9768 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
9769 atomic_mem_operand_1 predicate and Sra constraint.
9770 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
9771 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
9772 Use atomic_mem_operand_1 predicate.
9773 (atomic_<fetchop_name><mode>_hard): Copy to
9774 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
9775 Use atomic_mem_operand_1 predicate.
9776 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
9777 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
9778 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
9779 insn_and_split. Use atomic_mem_operand_1 predicate.
9780 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
9781 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
9782 Use atomic_mem_operand_1 predicate.
9783 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
9784 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
9785 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
9786 in generated insn with original mem operand before emitting the insn.
9787 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
9788 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
9789 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
9790 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
9791 Use atomic_mem_operand_1 predicate and AraAdd constraints.
9792 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
9793 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
9794 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
9795 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
9796 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
9797 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
9798 atomic_not_fetch<mode>_soft_tcb,
9799 atomic_<fetchop_name>_fetch<mode>_soft_imask,
9800 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
9801 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
9802 Use atomic_mem_operand_1 predicate and SraSdd constraints.
9804 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
9806 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
9807 and 3 earlyclobber operands.
9809 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
9811 * common.opt (fstack-reuse): Mark as optimization.
9813 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
9816 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
9818 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
9820 PR tree-optimization/64326
9821 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
9823 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
9825 PR gcov-profile/61889
9826 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
9828 2015-02-10 Richard Biener <rguenther@suse.de>
9830 PR tree-optimization/64995
9831 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
9832 value we use is final.
9833 (visit_reference_op_store): Always valueize op.
9834 (visit_use): Properly valueize vuses.
9836 2015-02-10 Richard Biener <rguenther@suse.de>
9838 PR tree-optimization/64909
9839 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
9840 pass a scalar-stmt count estimate to the cost model.
9841 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
9843 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
9845 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
9846 enabled by default together with var-tracking.
9848 2015-02-10 Nick Clifton <nickc@redhat.com>
9850 * config/rl78/rl78.c: Remove DIV attribute code accidentally
9851 included in previous rl78 commit.
9853 2015-02-10 Richard Biener <rguenther@suse.de>
9855 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
9856 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
9859 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
9861 PR gcov-profile/61889
9862 * config.in: regenerate.
9863 * configure.in: Likewise.
9864 * configure.ac: Check for ftw.h.
9865 * gcov-tool.c: Check for ftw.h before using nftw.
9867 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
9870 * ipa-visibility.c (update_visibility_by_resolution_info): Only
9871 assert when not in lto mode.
9873 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
9875 * ira-color.c (setup_left_conflict_sizes_p): Simplify
9876 initialization/assignment of conflict_size.
9878 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
9881 * ipa-cp.c (gather_caller_stats): Skip thunks.
9882 (propagate_constants_topo): Skip aliases.
9884 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
9887 * config/sh/sh.c (sh_option_override): Don't change
9888 -freorder-blocks-and-partition to -freorder-blocks even when
9889 unwinding is enabled.
9890 (sh_can_follow_jump): Return false if the followee jump is
9891 a crossing jump when -freorder-blocks-and-partition is specified.
9892 * config/sh/sh.md (*jump_compact_crossing): New insn.
9894 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
9895 Kaz Kojima <kkojima@gcc.gnu.org>
9898 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
9899 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
9900 (sh_can_redirect_branch): Rename to ...
9901 (sh_can_follow_jump): ... this. Constify argument types.
9902 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
9903 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
9904 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
9905 * doc/tm.texi: Regenerate.
9907 2015-02-09 Jakub Jelinek <jakub@redhat.com>
9910 * builtins.c (expand_builtin): Call targetm.expand_builtin
9911 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
9913 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9916 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
9918 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9921 * ipa-icf.c (set_local): New function.
9922 (sem_function::merge): Use it.
9924 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9926 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
9927 (add_type_duplicate): Fix comparison of BINFOs.
9929 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9931 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
9932 on getting VOID pointer.
9934 2015-02-09 Jakub Jelinek <jakub@redhat.com>
9937 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
9940 2015-02-09 Richard Biener <rguenther@suse.de>
9942 * genmatch.c (replace_id): Copy expr_type.
9944 2015-02-09 Richard Biener <rguenther@suse.de>
9946 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
9947 (streamer_write_tree_bitfields): Declare.
9948 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
9949 properly unpack padding.
9950 (unpack_value_fields): Inline ...
9951 (streamer_read_tree_bitfields): ... here.
9952 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
9953 and properly add padding bits.
9954 (streamer_pack_tree_bitfields): Fold into ...
9955 (streamer_write_tree_bitfields): ... this new function,
9956 exposing the bitpack object.
9957 * lto-streamer-out.c (lto_write_tree_1): Call
9958 streamer_write_tree_bitfields.
9960 2015-02-09 Richard Biener <rguenther@suse.de>
9962 PR tree-optimization/54000
9963 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
9964 (struct ivopts_data): Add loop_loc member.
9965 (tree_ssa_iv_optimize_loop): Dump loop location.
9966 (create_new_ivs): Likewise, also dump number of IVs generated.
9968 2015-02-09 Martin Liska <mliska@suse.cz>
9970 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
9971 just if not yet registered.
9972 (ipa_icf_generate_summary): Register callgraph hooks.
9974 2015-02-08 Andrew Pinski <apinski@cavium.com>
9976 * config/aarch64/aarch64.c (gty_dummy): Delete.
9978 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9981 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
9982 (cgraph_node::local_p): Remove thunk related FIXME.
9984 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9987 * i386.c (ix86_function_regparm): Look through aliases to see if callee
9988 is local and optimized.
9989 (ix86_function_sseregparm): Likewise; also use target's SSE math
9990 settings; error out instead of silently generating wrong code
9992 (init_cumulative_args): Look through aliases.
9994 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9997 * ipa-split.c (execute_split_functions): Split if function has aliases.
9999 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
10002 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
10003 aliases before trying to expand it.
10004 (cgraph_node::expand_thunk): Fix formating.
10006 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
10008 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
10009 (Using Assembly Language with C): Expand introduction.
10010 (Basic Asm): Copy-edit. Add more information about uses of
10012 (Extended Asm): Copy-edit. Document new escape syntax and
10014 (Global Reg Vars): Copy-edit.
10015 (Local Reg Vars): Likewise.
10017 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
10021 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
10022 (DBX_CONTIN_CHAR): Define.
10024 2015-02-06 Sebastian Pop <s.pop@samsung.com>
10025 Brian Rzycki <b.rzycki@samsung.com>
10027 PR tree-optimization/64878
10028 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
10029 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
10030 Stop recursion at loop phi nodes after having visited a loop phi node.
10032 2015-02-06 Jakub Jelinek <jakub@redhat.com>
10034 * toplev.c (process_options): Change flag_ipa_ra before creating
10035 optimization_{default,current}_node.
10038 * cgraphunit.c (cgraph_node::expand_thunk): If
10039 restype is not is_gimple_reg_type nor the thunk_fndecl
10040 returns aggregate_value_p, set restmp to a temporary variable
10041 instead of resdecl.
10043 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
10045 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
10047 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10050 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
10051 add a general secondary reload handler for SDmode, unless we have
10052 both read/write support for SDmode.
10054 2015-02-06 Jakub Jelinek <jakub@redhat.com>
10056 PR middle-end/64937
10057 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
10058 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
10059 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
10060 1 before, push it to abstract_vec.
10061 (dwarf2out_abstract_function): Adjust caller. Don't call
10062 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
10063 DECL_ABSTRACT_P flags for all abstract_vec elts.
10065 2015-02-06 Renlin Li <renlin.li@arm.com>
10067 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
10069 * tree-ssa.c (execute_update_addresses_taken): Likewise.
10071 2015-02-06 Jeff Law <law@redhat.com>
10074 * config/h8300/h8300.c (push): New argument "in_prologue".
10075 Pass "in_prologue" along to "F".
10076 (h8300_push_pop): Corresponding changes.
10077 (h8300_expand_prologue): Likewise.
10078 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
10080 2015-02-06 Jakub Jelinek <jakub@redhat.com>
10082 PR rtl-optimization/64957
10084 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
10085 IOR rather than for AND.
10087 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
10090 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
10091 of shift-add and (add + shift) operations. Rename local variable.
10093 2015-02-05 Jeff Law <law@redhat.com>
10096 * config/h8300/constraints.md (U): Correctly dectect
10097 "eightbit_data" memory addresses.
10098 * config/h8300/h8300.c (eightbit_constant_address_p): Also
10099 handle (const (plus (symbol_ref (x)))) where x is declared
10100 as an 8-bit data memory address.
10101 * config/h8300/h8300.md (call, call_value): Correctly detect
10102 "funcvec" functions.
10105 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
10106 24 to 28 bits for the H8/300.
10108 2015-02-06 Alan Modra <amodra@gmail.com>
10111 * config/rs6000/rs6000.c (chain_already_loaded): New function.
10112 (rs6000_call_aix): Use it.
10114 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
10116 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
10119 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
10121 * config/h8300/constraints.md ("U" constraint): Use strict
10122 variant of REG_OK_FOR_BASE_P after reload has started.
10124 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
10126 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
10127 define to zero if !TARGET_NEON.
10128 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
10130 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
10131 Trevor Saunders <tsaunders@mozilla.com>
10134 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
10136 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
10139 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
10140 when removing varpool nodes.
10142 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
10145 * varpool.c (varpool_node::remove): Fix order of variables.
10147 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
10150 * ipa-inline.c (inline_small_functions): Fix ordering issue between
10151 speculation resolution and key updates.
10153 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
10155 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
10156 about not letting any speculative edges unupdated.
10158 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
10161 * gcov-io.c (gcov_var): Export.
10163 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
10165 PR middle-end/64922
10166 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
10167 edges that become speculative.
10169 2015-02-04 Jakub Jelinek <jakub@redhat.com>
10171 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
10172 or DW_LANG_Fortran08.
10173 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
10175 (gen_compile_unit_die): Handle "GNU Fortran2003" and
10176 "GNU Fortran2008" language strings.
10177 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
10178 * langhooks.h (lang_GNU_Fortran): New prototype.
10179 * langhooks.c (lang_GNU_Fortran): New function.
10180 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
10183 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
10185 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
10186 (RTX_OK_FOR_OLO10_P): Likewise.
10188 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
10190 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
10192 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
10194 PR middle-end/64922
10195 * gimple.c: Include gimple-ssa.h.
10196 (maybe_remove_unused_call_args): New function.
10197 * gimple.h (maybe_remove_unused_call_args): Declare.
10198 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
10199 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10200 * gimple-fold.c (gimple_fold_call): Likewise.
10202 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
10204 PR rtl-optimization/64905
10205 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
10206 pointer alignment if it isn't needed.
10208 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
10210 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
10211 cortex-a72.cortex-a53.
10212 * config/aarch64/aarch64-tune.md: Regenerate.
10213 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
10215 2015-02-04 Nick Clifton <nickc@redhat.com>
10217 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
10220 2015-02-04 Jakub Jelinek <jakub@redhat.com>
10222 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
10223 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
10224 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
10226 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
10227 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
10228 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
10229 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
10230 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
10231 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
10232 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
10233 * tree-core.h (enum built_in_function): In between
10234 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
10235 for builtins that use DEF_BUILTIN_CHKP macro.
10237 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
10240 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
10241 operands for tcc_comparison exprs. Fix typos.
10244 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
10245 of two XORs that have an intervening AND or IOR.
10248 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
10249 simplification of XOR of AND to not allocate new rtx before
10250 committing to a simplification.
10252 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10254 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
10255 manual swaps in all peepholes.
10257 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10259 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
10260 of manual swapping implementation.
10261 (aarch64_expand_vec_perm_const_1): Likewise.
10263 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
10265 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
10266 (generic_addrcost_table): Remove NAMED_PARAM.
10267 (cortexa57_addrcost_table): Likewise.
10268 (xgene1_addrcost_table): Likewise.
10269 (generic_regmove_table): Likewise.
10270 (cortexa53_regmove_table): Likewise.
10271 (xgene1_regmove_table): Likewise.
10272 (generic_vector_table): Likewise.
10273 (cortexa57_vector_table): Likewise.
10274 (xgene1_vector_table): Likewise.
10275 (generic_tunings): Likewise.
10276 (cortexa53_tunings): Likewise.
10277 (cortexa57_tunings): Likewise.
10278 (xgene1_tunings): Likewise.
10280 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
10282 * config/arm/arm-cores.def: Add cortex-a72 and
10283 cortex-a72.cortex-a53.
10284 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
10285 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
10286 * config/arm/arm-tune.md: Regenerate.
10287 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
10288 "cortex-a72.cortex-a53".
10289 * doc/invoke.texi (ARM Options/-mtune): Likewise.
10291 2015-02-04 Nick Clifton <nickc@redhat.com>
10294 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
10296 (nonimmediate_di_operand): Likewise.
10298 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
10299 prefixes of known F5 using MSP430 MCUs.
10301 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10303 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
10304 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
10305 instead of __builtin_sqrt.
10307 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
10309 * varasm.c (do_assemble_alias): Follow transparent alias
10311 (default_assemble_visibility): Follow transparent alias
10312 chain for decl name.
10314 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
10316 PR middle-end/62103
10317 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
10318 to compute size of referenced value in the constant case.
10320 2015-02-03 Jakub Jelinek <jakub@redhat.com>
10322 PR rtl-optimization/64756
10323 * cse.c (invalidate_dest): New function.
10324 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
10325 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
10326 invalidate and do not record it.
10328 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
10331 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
10332 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
10333 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
10334 atomic_nand<mode>_soft_tcb): New insns.
10335 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
10336 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
10337 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
10338 Split into atomic_not_fetchsi_hard if operands[0] is unused.
10339 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
10340 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
10341 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
10342 atomic_not<mode>_hard if operands[0] is unused.
10343 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
10344 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
10345 if operands[0] is unused.
10346 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
10347 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
10348 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
10349 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
10351 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
10352 into atomic_not<mode>_soft_tcb if operands[0] is unused.
10353 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
10354 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
10355 if operands[0] is unused.
10356 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
10357 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
10358 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
10359 atomic_nand_fetchsi_hard if operands[0] is unused.
10360 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
10361 atomic_nand<mode>_hard if operands[0] is unused.
10362 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
10363 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
10364 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
10365 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
10366 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
10367 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
10368 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
10369 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
10370 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
10371 atomic_not<mode>_hard if operands[0] is unused.
10372 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
10373 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
10375 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
10376 into atomic_not<mode>_soft_tcb if operands[0] is unused.
10377 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
10378 atomic_nand<mode>_hard if operands[0] is unused.
10379 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
10380 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
10382 2015-02-03 David Malcolm <dmalcolm@redhat.com>
10385 * Makefile.in (GCC_OBJS): Add gcc-main.o.
10386 * gcc-main.c: New file, containing "main" taken from gcc.c.
10387 * gcc.c (do_self_spec): Free decoded_options.
10388 (class driver): Move declaration to gcc.h.
10389 (main): Move declaration and implementation to new file
10391 (driver_get_configure_time_options): New function.
10392 * gcc.h (class driver): Move this declaration here, from
10394 (driver_get_configure_time_options): New declaration.
10396 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
10398 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
10399 cross-module inlining.
10400 * cgraph.h (cgraph_node): Add flag merged.
10401 * ipa-icf.c (sem_function::merge): Maintain it.
10403 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
10405 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
10406 instead of OBJECT_P.
10408 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
10411 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
10412 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
10413 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
10414 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
10416 2015-02-03 Jakub Jelinek <jakub@redhat.com>
10419 * combine.c (reg_n_sets_max): New variable.
10420 (can_change_dest_mode, reg_nonzero_bits_for_combine,
10421 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
10422 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
10423 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
10424 (rest_of_handle_combine): Initialize reg_n_sets_max.
10426 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
10428 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
10429 if some always_inline was inlined, apply changes before inlining
10432 2015-02-02 David Malcolm <dmalcolm@redhat.com>
10435 * config/arm/arm.c (arm_option_override): Set
10436 arm_selected_arch/cpu/tune to NULL on entry.
10438 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
10439 Andrew Pinski <pinskia@gcc.gnu.org>
10440 Jakub Jelinek <jakub@gcc.gnu.org>
10443 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
10444 integer typing for small model. Use IN_RANGE.
10446 2015-02-02 Richard Biener <rguenther@suse.de>
10448 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
10449 * tree-vrp.c (vrp_valueize_1): Likewise.
10451 2015-02-02 Alan Modra <amodra@gmail.com>
10453 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
10454 than mem for toc_restore.
10455 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
10456 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
10457 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
10459 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
10462 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
10463 explicit default options.
10465 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
10468 * ipa-utils.c (ipa_merge_profiles): Add release argument.
10469 * ipa-icf.c (sem_function::merge): Do not release body when merging.
10470 * ipa-utils.h (ipa_merge_profiles): Update prototype.
10472 2015-02-01 Jakub Jelinek <jakub@redhat.com>
10475 * cfgexpand.c (deep_ter_debug_map): New variable.
10476 (avoid_deep_ter_for_debug): New function.
10477 (expand_debug_expr): If TERed SSA_NAME is in
10478 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
10479 instead of trying to expand SSA_NAME's def stmt.
10480 (expand_debug_locations): When expanding debug bind
10481 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
10482 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
10484 (pass_expand::execute): Call avoid_deep_ter_for_debug on
10485 all debug bind stmts. Delete deep_ter_debug_map after
10486 expand_debug_location if non-NULL and clear it.
10488 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
10491 * config/sh/sync.md (atomic_fetch_notsi_hard,
10492 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
10493 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
10494 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
10495 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
10496 atomic_not_fetch<mode>_soft_imask): New insns.
10498 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10500 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
10501 (rank_for_schedule_debug): Split from ...
10502 (rank_for_schedule): ... this.
10503 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
10504 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
10506 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
10508 * doc/md.texi (Machine Constraints): Alphabetize table by target.
10509 * doc/extend.texi (x86 Variable Attributes): Move section to
10510 correct alphabetization after renaming.
10511 (x86 Type Attributes): Likewise.
10512 (Target Builtins): Re-alphabetize menu.
10513 (x86 Built-in Functions): Move section to correct alphabetization
10515 (x86 transactional memory intrinsics): Likewise.
10516 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
10517 and x86 Windows Options in table and menu.
10518 (x86 Options): Move section to correct alphabetization after
10520 (x86 Windows Options): Likewise.
10522 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
10524 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
10525 preferred names of the architecture and its 32- and 64-bit
10527 * doc/invoke.texi: Likewise.
10528 * doc/md.texi: Likewise.
10530 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
10533 * config/i386/predicates.md (address_no_seg_operand): Reject
10534 non-CONST_INT_P operands in invalid mode.
10536 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
10538 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
10539 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
10540 * config/i386/predicates.md (address_no_seg_operand): Call
10541 address_operand with VOIDmode.
10542 (vsib_address_operand): Ditto.
10543 (address_mpx_no_base_operand): Ditto.
10544 (address_mpx_no_index_operand): Ditto.
10546 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
10549 * lra-constraints.c (original_subreg_reg_mode): New.
10550 (simplify_operand_subreg): Try to simplify subreg of const. Use
10551 original_subreg_reg_mode for it.
10552 (swap_operands): Update original_subreg_reg_mode.
10553 (curr_insn_transform): Set up original_subreg_reg_mode.
10555 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
10558 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
10560 (process_alt_operands): Use it.
10561 (curr_insn_transform): Check the optional reload pseudo class is
10564 2015-01-30 Joseph Myers <joseph@codesourcery.com>
10566 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
10567 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
10569 * toplev.h (init_asm_output): Update comment on use of
10570 UNKNOWN_LOCATION with fatal_error.
10571 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
10572 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
10573 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
10574 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
10575 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
10576 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
10577 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
10578 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
10579 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
10580 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
10581 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
10582 fatal_error changed to pass input_location as first argument.
10584 2015-01-30 Martin Liska <mliska@suse.cz>
10586 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
10587 in #pragma GCC diagnostic guards.
10589 2015-01-30 Richard Biener <rguenther@suse.de>
10591 PR tree-optimization/64829
10592 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
10593 not add a widening conversion pattern but hand off extra
10594 widenings to callers.
10595 (vect_recog_widen_mult_pattern): Handle extra widening produced
10596 by vect_handle_widen_op_by_const.
10597 (vect_recog_widen_shift_pattern): Likewise.
10598 (vect_pattern_recog_1): Remove excess vertical space in dumping.
10599 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
10600 (vect_init_vector_1): Likewise.
10601 (vect_get_vec_def_for_operand): Likewise.
10602 (vect_finish_stmt_generation): Likewise.
10603 (vectorizable_load): Likewise.
10604 (vect_analyze_stmt): Likewise.
10605 (vect_is_simple_use): Likewise.
10607 2015-01-29 Jeff Law <law@redhat.com>
10609 * combine.c (try_combine): Fix typo in comment.
10611 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
10614 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
10615 (rs6000_stack_info): Add assert.
10616 (rs6000_output_savres_externs): New function, split off from...
10617 (rs6000_output_function_prologue): ... here. Do not call it for
10620 2015-01-29 Jeff Law <law@redhat.com>
10623 * combine.c (try_combine): If I0 is a memory load and I3 a store
10624 to a related address, increase the "goodness" of doing a 4-insn
10625 combination with I0-I3.
10626 (make_field_assignment): Handle SUBREGs in the ior+and case.
10628 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
10630 PR tree-optimization/64746
10631 * tree-if-conv.c (mask_exists): New function.
10632 (predicate_mem_writes): Save created mask with given size for further
10634 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
10635 (ifcvt_repair_bool_pattern): Collect all statements that are root
10636 of bool pattern and use iterative algorithm to remove multiple uses
10637 of predicates, display number of required iterations.
10639 2015-01-29 Richard Biener <rguenther@suse.de>
10641 PR tree-optimization/64853
10642 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
10643 stmt will get simulated again.
10644 * tree-ssa-ccp.c (valueize_op_1): Likewise.
10646 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10648 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
10649 return_in_pc. Remove redundant assignments.
10650 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
10651 (arm_expand_epilogue): Don't compare boolean with true in if condition.
10653 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
10655 * config/i386/i386.c (ix86_mode_after): Make static.
10657 2015-01-29 Richard Biener <rguenther@suse.de>
10659 PR tree-optimization/64844
10660 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
10661 dump cost model analysis.
10662 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10663 Do not register adjusted load/store costs here.
10665 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
10666 Uros Bizjak <ubizjak@gmail.com>
10668 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
10669 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
10670 using x86_use_pseudo_pic_reg.
10671 * config/i386/i386.c (ix86_conditional_register_usage): Remove
10672 support for fixed PIC register.
10673 (ix86_use_pseudo_pic_reg): Not static any more.
10675 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
10677 PR middle-end/64805
10678 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
10679 to avoid error in cgraph node verification.
10681 2015-01-29 Marek Polacek <polacek@redhat.com>
10683 * doc/standards.texi: Reflect that the default for C is gnu11.
10685 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
10688 * reorg.c (switch_text_sections_between_p): New function.
10689 (relax_delay_slots): Call it when testing if the jump insn
10690 is removable. Use targetm.can_follow_jump when testing if
10691 the conditional branch can follow an unconditional jump.
10693 2015-01-27 Caroline Tice <cmtice@google.com>
10695 Committing VTV Cywin/Ming patch for Patrick Wollgast
10696 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
10697 if -fvtable-verify=preinit/std is used.
10698 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
10699 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
10700 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
10701 if -fvtable-verify=preinit/std is used.
10702 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
10703 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
10704 if -fvtable-verify=preinit/std is used.
10705 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
10706 * config/i386/mingw32.h (LIB_SPEC): Likewise.
10707 * varasm.c (assemble_variable): Add code to properly set the comdat
10708 section and name for the .vtable_map_vars section in case the
10709 target is PE or COFF.
10711 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
10714 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
10715 make sane BB profile.
10716 (cgraph_node::expand_thunk): Make sane BB profile.
10717 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
10718 * cgraph.h (init_lowered_empty_function): Update prototype.
10719 * config/i386/i386.c (make_resolver_func): Update call.
10720 * predict.c (gate): Disable branch prediction pass if
10721 profile is already there.
10723 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
10725 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
10726 * opth-gen.awk: Likewise.
10727 * common.opt: Mark flag_fp_contract_mode as Optimization.
10729 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
10731 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
10732 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
10734 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
10737 * config/sh/predicates.md (atomic_arith_operand,
10738 atomic_logical_operand): Remove.
10739 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
10740 (atomic_arith_operand_0): New predicate.
10741 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
10742 Use atomic_arith_operand_0 for input values.
10743 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
10744 atomic_compare_and_swap<mode>_soft_gusa,
10745 atomic_compare_and_swap<mode>_soft_tcb,
10746 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
10747 arith_reg_operand instead of register_operand.
10748 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
10749 atomic_arith_operand_0 for newval input.
10750 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
10751 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
10752 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
10753 arith_reg_operand instead of register_operand.
10754 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
10755 fetchop_predicate_1, fetchop_constraint_1_llcs,
10756 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
10757 fetchop_constraint_1_imask): New code iterator attributes.
10758 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
10759 register_operand. Use fetchop_predicate_1.
10760 (atomic_fetch_<fetchop_name>si_hard,
10761 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
10762 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
10763 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
10764 and arith_reg_operand instead of register_operand. Use
10765 fetchop_predicate_1, fetchop_constraint_1_gusa.
10766 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
10767 and arith_reg_operand instead of register_operand. Use
10768 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
10770 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
10771 and arith_reg_operand instead of register_operand. Use
10772 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
10774 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
10775 register_operand. Use atomic_logical_operand_1.
10776 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
10777 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
10778 arith_reg_operand instead of register_operand.
10779 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
10780 Use arith_reg_dest and arith_reg_operand instead of register_operand.
10781 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
10782 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
10783 register_operand. Use fetchop_predicate_1.
10784 (atomic_<fetchop_name>_fetchsi_hard,
10785 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
10786 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
10787 fetchop_constraint_1_llcs.
10788 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
10789 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
10790 fetchop_constraint_1_gusa.
10791 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
10792 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
10793 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
10794 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
10795 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
10796 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
10797 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
10798 register_operand. Use atomic_logical_operand_1.
10799 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
10800 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
10801 arith_reg_operand instead of register_operand.
10802 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
10803 arith_reg_operand instead of register_operand. Use logical_operand
10804 and K08. Adjust asm sequence to allow R0 usage.
10805 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
10806 arith_reg_operand instead of register_operand. Use logical_operand
10809 2015-01-28 Jakub Jelinek <jakub@redhat.com>
10812 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
10813 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
10814 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
10815 only get_full_len HOST_WIDE_INTs from get_val () array rather than
10816 all bits in *val_wide.
10818 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
10820 * varpool.c (tls_model_names): Fix names.
10821 (varpool_node::dump): Dump tls- prefix for tls models.
10823 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
10824 Bernd Schmidt <bernds@codesourcery.com>
10825 Nathan Sidwell <nathan@codesourcery.com>
10827 * config/nvptx/mkoffload.c: New file.
10828 * config/nvptx/t-nvptx: Add build rules for it.
10829 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
10830 (extra_programs): Add mkoffload.
10831 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
10833 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
10835 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
10837 PR middle-end/64809
10838 * cfgexpand.c (reorder_operands): Skip debug gimples.
10840 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
10842 PR tree-optimization/64277
10843 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
10844 range info when possible to refine estimation.
10846 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
10848 PR tree-optimization/64718
10849 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
10850 be a 16bit unsigned integer when n->range is 16.
10851 (bswap_replace): Convert src to that type if necessary for all bswap
10852 sizes. Fix rotation right notation in nearby comment. Use bswap_type
10853 set in pass_optimize_bswap::execute ().
10855 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
10857 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
10858 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
10859 integer and floating point variants.
10860 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
10862 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
10864 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
10865 for all vector modes.
10867 2015-01-28 Jakub Jelinek <jakub@redhat.com>
10870 * doc/sourcebuild.texi (comdat_group): Document.
10872 2015-01-28 Terry Guo <terry.guo@arm.com>
10874 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
10876 2015-01-27 David Malcolm <dmalcolm@redhat.com>
10878 * toplev.c (print_version): Add param "show_global_state", and
10879 only print GGC and plugin information if it is true.
10880 (init_asm_output): Pass in "true" for the new param when calling
10882 (process_options): Likewise.
10883 (toplev::main): Likewise.
10884 * toplev.h (print_version): Add new param to decl.
10886 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
10890 * tree.c (lookup_binfo_at_offset): New function.
10891 (get_binfo_at_offset): Use it.
10893 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
10896 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
10897 on vtable being vtable.
10899 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
10901 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
10902 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
10903 -mhotpatch= option.
10904 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
10905 -mno-hotpatch options. Change syntax of -mhotpatch= option.
10906 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
10908 (s390_hotpatch_trampoline_halfwords_max): Renamed.
10909 (s390_hotpatch_hw_max): New name.
10910 (s390_hotpatch_trampoline_halfwords): Renamed.
10911 (s390_hotpatch_hw_before_label): New name.
10912 (get_hotpatch_attribute): Removed.
10913 (s390_hotpatch_hw_after_label): New name.
10914 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
10916 (s390_attribute_table): Ditto.
10917 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
10918 (s390_function_num_hotpatch_hw): New name.
10919 Remove special handling of inline functions and hotpatching.
10920 Return number of nops before and after the function label.
10921 (s390_can_inline_p): Removed.
10922 (s390_asm_output_function_label): Emit a configurable number of nops
10923 after the function label.
10924 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
10925 (TARGET_CAN_INLINE_P) Removed.
10926 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
10928 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10929 Jiong Wang <jiong.wang@arm.com>
10931 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
10933 (cb<optab><mode>1): Likewise.
10934 * config/aarch64/iterators.md (bcond): New define_code_attr.
10936 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10938 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
10941 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10943 * config/s390/s390.c (s390_register_move_cost): Increase costs for
10946 2015-01-27 Richard Biener <rguenther@suse.de>
10948 * tree-vrp.c (update_value_range): Intersect the range with
10949 old recorded SSA name range information.
10951 2015-01-27 Nick Clifton <nickc@redhat.com>
10953 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
10954 BC, DE and HL registers directly, not via AX.
10955 When decrementing the stack pointer by a large amount, transfer SP
10956 into AX and perform the subtraction there.
10957 (rl78_expand_epilogue): Perform the inverse of the above
10960 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10962 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
10964 2015-01-27 Jakub Jelinek <jakub@redhat.com>
10965 Yury Gribov <y.gribov@samsung.com>
10968 * ubsan.c (ubsan_source_location): Refactor code.
10969 (ubsan_type_descriptor): Update type size. Refactor code.
10971 2015-01-27 Richard Biener <rguenther@suse.de>
10973 PR tree-optimization/56273
10974 PR tree-optimization/59124
10975 PR tree-optimization/64277
10976 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
10977 from the first VRP pass.
10979 2015-01-27 Jakub Jelinek <jakub@redhat.com>
10982 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
10983 handle the first argument in the same loop as all the other arguments.
10985 PR rtl-optimization/61058
10986 * jump.c (cleanup_barriers): Update basic block boundaries
10987 if BLOCK_FOR_INSN is non-NULL on PREV.
10989 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
10991 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
10992 bounds narrowing, already instrumented calls and calls to
10993 not instrumentable functions.
10995 2015-01-27 Jakub Jelinek <jakub@redhat.com>
10997 PR tree-optimization/64807
10998 * wide-int.cc (wi::divmod_internal): Clear
10999 b_dividend[dividend_blocks_needed].
11001 2015-01-26 DJ Delorie <dj@redhat.com>
11003 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
11004 volatile memory references.
11006 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
11009 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
11011 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
11012 shifts if it already fits into K08.
11014 2015-01-26 Jakub Jelinek <jakub@redhat.com>
11017 * ipa-inline.c (inline_small_functions): Print "unknown" even
11018 if edge->call_stmt is non-NULL, but has builtins or unknown
11021 PR middle-end/64421
11022 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
11023 with asterisk, skip the first character.
11025 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
11028 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
11031 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
11034 * config/i386/i386.md (*movdi_internal): Also check operand 0
11035 to determine TYPE_LEA operand.
11036 (*movsi_internal): Ditto.
11038 2015-01-26 Jakub Jelinek <jakub@redhat.com>
11040 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
11041 OPTION_MASK_QUAD_MEMORY_ATOMIC.
11043 2015-01-26 Renlin Li <renlin.li@arm.com>
11045 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
11047 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
11050 2015-01-26 Richard Biener <rguenther@suse.de>
11052 PR middle-end/64764
11053 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
11054 combining two BIT_AND_EXPR predicates.
11056 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
11059 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
11061 2015-01-26 Terry Guo <terry.guo@arm.com>
11063 * config/arm/arm.c (arm_file_start): Update the assignment of
11064 Tag_ABI_HardFP_use.
11066 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
11068 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
11070 config/arm/arm.md: Include the new Cortex-A57 model.
11071 (generic_sched): Don't use generic_sched when tuning for
11074 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
11075 Uros Bizjak <ubizjak@gmail.com>
11077 * config/i386/i386.c (get_builtin_code_for_version): Add
11078 support for BMI and BMI2 multiversion functions.
11080 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11082 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
11083 (extract_bit_field): Likewise.
11084 (extract_low_bits): Likewise.
11085 (expand_mult): Likewise.
11086 (expand_mult_highpart_adjust): Likewise.
11088 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
11090 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
11091 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
11092 * config/i386/i386.c (processor_model): Add
11093 M_INTEL_COREI7_BROADWELL.
11094 (arch_names_table): Add "broadwell".
11096 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
11105 * config/sh/sh-protos.h
11106 (sh_extending_set_of_reg::can_use_as_unextended_reg,
11107 sh_extending_set_of_reg::use_as_unextended_reg,
11108 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
11109 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
11110 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
11111 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
11112 (sh_treg_insns): New class.
11113 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
11114 (scope_counter): New class.
11115 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
11116 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
11117 sh_extending_set_of_reg::can_use_as_unextended_reg,
11118 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
11119 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
11120 sh_split_treg_set_expr): New functions.
11121 (addsubcosts): Handle treg_set_expr.
11122 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
11123 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
11124 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
11125 (sh_insn_operands_modified_between_p): Make non-static.
11126 * config/sh/predicates.md (zero_extend_movu_operand): Allow
11127 simple_mem_operand in addition to displacement_mem_operand.
11128 (zero_extend_operand): Don't allow zero_extend_movu_operand.
11129 (treg_set_expr, treg_set_expr_not_const01,
11130 arith_reg_or_treg_set_expr): New predicates.
11131 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
11132 arith_or_int_operand instead of logical_operand. Convert to
11133 insn_and_split. Try to optimize constant operand in splitter.
11134 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
11135 (*tstqi_t_zero): Delete.
11136 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
11137 (tstsi_t_and_not): Delete.
11138 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
11139 Convert to insn_and_split.
11140 (unnamed split, tstsi_t_zero_extract_xor,
11141 tstsi_t_zero_extract_subreg_xor_little,
11142 tstsi_t_zero_extract_subreg_xor_big): Delete.
11143 (*tstsi_t_shift_mask): New insn_and_split.
11144 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
11145 to recombine with surrounding insns when splitting.
11146 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
11147 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
11148 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
11149 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
11150 (*cbranch_div0s: Delete.
11151 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
11152 Try to recombine with surrounding insns when splitting. Add operand
11154 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
11155 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
11156 *addc_r_r_msb, *addc_2r_msb): Delete.
11157 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
11159 (*addc_negreg_t): New insn_and_split.
11160 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
11161 Try to recombine with surrounding insns when splitting.
11162 Add operand order variants.
11163 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
11164 insn_and_split patterns.
11165 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
11166 surrounding insns when splitting.
11167 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
11168 (*rotcl): Likewise. Add zero_extract variant.
11169 (*ashrsi2_31): New insn_and_split.
11170 (*negc): Convert to insn_and_split. Use treg_set_expr.
11171 (*zero_extend<mode>si2_disp_mem): Update comment.
11172 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
11174 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
11175 with surrounding insns when splitting.
11176 (any_treg_expr_to_reg): New insn_and_split.
11177 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
11178 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
11179 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
11180 *zero_extract_2): New single bit zero extract patterns.
11181 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
11182 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
11183 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
11184 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
11186 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
11187 register_operand for set source.
11189 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
11191 * i386.opt (prefetch_sse): New targetsave.
11192 * i386.c (ix86_function_specific_save): Save prefetch_sse.
11193 (ix86_function_specific_restore): Restore prefetch_sse and initialize
11194 ix86_cost/ix86_tune_cost.
11196 2015-01-23 David Malcolm <dmalcolm@redhat.com>
11198 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
11199 Support the JIT by using 0 as the language type.
11201 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
11204 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
11205 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
11206 (mark_regno_live, process_bb_lives): Pass new parameter value to
11207 make_hard_regno_born.
11209 2015-01-23 Jakub Jelinek <jakub@redhat.com>
11211 PR rtl-optimization/63637
11212 PR rtl-optimization/60663
11213 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
11214 if elt->cost is MAX_COST for ASM_OPERANDS.
11215 (find_sets_in_insn): Fix up comment typo.
11216 (cse_insn): Don't set src_volatile for all non-volatile
11217 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
11218 or with "memory" clobber. Set elt->cost to MAX_COST
11219 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
11220 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
11222 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
11224 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
11227 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
11229 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
11230 libgcc/config/i386/elf-lib.h.
11232 2015-01-23 Jakub Jelinek <jakub@redhat.com>
11235 * gcc.c (print_configuration): Don't print a blank line at the end
11237 (run_attempt): ... but here unstead.
11239 PR middle-end/64734
11240 * omp-low.c (scan_sharing_clauses): Don't ignore
11241 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
11242 on target data/update constructs.
11244 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
11247 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
11248 (DEBUG_RELOAD): Removed define.
11249 (m32c_limit_reload_class): Enable traces with if DEBUG0.
11250 (m32c_function_arg): Added a type cast.
11251 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
11252 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
11253 * config/m32c/bitops.md (andqi3_16): Likewise.
11254 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
11255 (push_a01_l): Likewise.
11257 2015-01-23 David Malcolm <dmalcolm@redhat.com>
11260 * main.c (main): Construct toplev instances with init_signals=true.
11261 * toplev.c (general_init): Add param "init_signals", and use it to
11262 conditionalize the calls to signal and host_hooks.extra_signals.
11263 (toplev::toplev): Add param "init_signals".
11264 (toplev::main): When invoking general_init, pass m_init_signals
11265 to control whether signal-handlers are installed.
11266 * toplev.h (toplev::toplev): Add param "init_signals".
11267 (toplev::m_init_signals): New field.
11269 2015-01-23 David Malcolm <dmalcolm@redhat.com>
11272 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
11273 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
11274 latter may be affected by the former (e.g. on i686).
11276 2015-01-23 Martin Liska <mliska@suse.cz>
11278 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
11279 false positive during profiledbootstrap.
11281 2015-01-23 Tom de Vries <tom@codesourcery.com>
11284 * lto-opts.c (lto_write_options): Output non-explicit conservative
11286 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
11287 (append_compiler_options): Pass -fopenacc through.
11289 2015-01-23 Tom de Vries <tom@codesourcery.com>
11292 * lto-opts.c (lto_write_options): Output non-explicit conservative
11294 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
11295 (append_compiler_options): Pass -fopenmp through.
11297 2015-01-23 Jakub Jelinek <jakub@redhat.com>
11300 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
11303 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
11304 * diagnostic.def (DK_ICE_NOBT): New kind.
11305 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
11306 like DK_ICE, but never print backtrace.
11307 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
11308 (internal_error_no_backtrace): New function.
11309 * gcc.c (execute): Use internal_error_no_backtrace instead of
11312 2015-01-22 Jeff Law <law@redhat.com>
11315 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
11316 improve code density for small immediate to memory case.
11317 (insv): Better handle bitfield assignments when the field is
11318 being set to all ones.
11319 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
11322 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11323 Jakub Jelinek <jakub@redhat.com>
11325 PR middle-end/64729
11326 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
11327 for !TARGET_LIBC_PROVIDES_SSP version and
11328 -fstack-protector-{all,strong,explicit} otherwise.
11329 * config/freebsd.h (LINK_SSP_SPEC): Handle
11330 -fstack-protector-{strong,explicit}.
11332 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
11333 H.J. Lu <hongjiu.lu@intel.com>
11336 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
11339 2015-01-22 Wei Mi <wmi@google.com>
11341 PR rtl-optimization/64557
11342 * dse.c (record_store): Call get_addr for mem_addr.
11343 (check_mem_read_rtx): Likewise.
11345 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
11347 * fold-const.c (const_binop): Add early return for non-tcc_binary.
11349 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
11351 * toplev.c (init_local_tick): Process the failure when read
11352 fails for random_seed.
11354 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
11355 'pretty_name' to avoid memory overflow.
11357 2015-01-22 Richard Biener <rguenther@suse.de>
11359 PR middle-end/64728
11360 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
11361 abnormal coalescing on undefined SSA names.
11363 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
11367 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
11369 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
11371 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
11373 PR middle-end/63325
11374 * fold-const.c (fold_checksum_tree): Don't include value of
11375 expr->decl_with_vis.symtab_node in the checksum.
11377 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11379 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
11381 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
11384 * gcc.c (insert_comments): New function.
11385 (try_generate_repro): Call it.
11386 (append_text): Removed.
11388 2015-01-22 Richard Biener <rguenther@suse.de>
11390 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
11391 with IL incompatible options. Properly honor user optimize
11394 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
11396 PR rtl-optimization/64682
11397 * combine.c (distribute_notes): When moving a death note for
11398 a register that is set in the new I2, make sure to put it
11399 before that new I2.
11401 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
11403 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
11404 not TARGET_DEFAULT.
11406 2015-01-21 Jakub Jelinek <jakub@redhat.com>
11409 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
11410 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
11411 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
11414 * doc/invoke.texi (-fsanitize=vptr): Document.
11416 PR rtl-optimization/62078
11417 * dse.c: Include cfgcleanup.h.
11418 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
11419 anything call purge_all_dead_edges and cleanup_cfg at the end
11422 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
11424 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
11427 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11429 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
11432 2015-01-21 David Sherwood <david.sherwood@arm.com>
11433 Tejas Belagod <Tejas.Belagod@arm.com>
11435 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
11436 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
11437 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
11440 2015-01-21 David Sherwood <david.sherwood@arm.com>
11441 Tejas Belagod <Tejas.Belagod@arm.com>
11443 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
11444 (aarch64_reverse_mask): New decls.
11445 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
11446 (insn_count): New mode_attr.
11447 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
11448 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
11449 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
11450 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
11451 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
11452 (aarch64_simd_st4): New patterns.
11453 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
11454 (aarch64_reverse_mask): New functions.
11456 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
11458 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
11460 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
11461 addressing modes for BE.
11462 (aarch64_print_operand): Add 'R' specifier.
11463 (aarch64_simd_disambiguate_copy): Delete.
11464 (aarch64_simd_emit_reg_reg_move): New function.
11465 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
11466 in define_splits for structural moves.
11467 (mov<mode>): Use less restrictive predicates.
11468 (*aarch64_mov<mode>): Simplify and only allow for LE.
11469 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
11471 2015-01-21 Alan Hayward <alan.hayward@arm.com>
11473 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
11475 2015-01-21 Richard Henderson <rth@redhat.com>
11478 * ccmp.c (used_in_cond_stmt_p): Remove.
11479 (expand_ccmp_expr): Don't use it.
11481 2015-01-21 Nick Clifton <nickc@redhat.com>
11483 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
11486 2015-01-21 Richard Biener <rguenther@suse.de>
11488 PR middle-end/64313
11489 * tree-core.h (builtin_info, builtin_info_type): Turn from
11490 an object with two arrays into an array of an object with
11491 decl and two flags, implicit_p and declared_p.
11492 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
11493 set_builtin_decl, set_builtin_decl_implicit_p,
11494 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
11495 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
11496 * builtins.c (builtin_info): Adjust.
11497 * gimplify.c (gimplify_addr_expr): References to builtins
11498 that have been declared by the user makes them eligible for
11499 use by the compiler. Call set_builtin_decl_implicit_p on them.
11501 2015-01-20 Jeff Law <law@redhat.com>
11504 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
11505 allow pc-relative addresses in operand predicates or constraints.
11507 2015-01-21 Bin Cheng <bin.cheng@arm.com>
11509 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
11510 neon on aarch32 processors for stringops.
11512 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
11515 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
11517 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
11520 * ipa-inline.c: Include lto-streamer.h
11521 (report_inline_failed_reason): Output source file differences and
11522 flags on optimization/target node mismatch.
11523 (can_inline_edge_p): Consider caller to be the outer inline function;
11524 be less restrictive about matching opimize and optimize_size attributes.
11525 (inline_account_function_p): Break out from ...
11526 (inline_small_functions): ... here.
11527 * ipa-inline-transform.c (clone_inlined_nodes): Use
11528 inline_account_function_p.
11529 (inline_call): Use optimize attribution; use inline_account_function_p.
11530 (inline_transform): Use opt_for_fn.
11531 * ipa-inline.h (inline_account_function_p): Declare.
11533 2015-01-20 Jakub Jelinek <jakub@redhat.com>
11536 * dwarf2out.c (decl_piece_node): Don't put bitsize into
11537 mode if bitsize <= 0.
11538 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
11539 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
11540 sizes and positions.
11542 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
11544 * config/nios2/nios2.c (nios2_asm_file_end): Implement
11545 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
11547 (TARGET_ASM_FILE_END): Define.
11549 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11551 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
11552 (struct tune_params): Use the enum.
11553 * arm.c (arm_*_tune): Update.
11554 (arm_option_override): Update.
11556 2015-01-20 Richard Biener <rguenther@suse.de>
11559 * ipa-reference.c (add_static_var): Inline ...
11560 (analyze_function): ... here after splitting out from ...
11561 (is_proper_for_analysis): ... this.
11563 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
11566 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
11567 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
11568 replace the conditional with it's true branch.
11569 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
11570 (arm_lra_p): Remove.
11572 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
11574 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
11576 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11578 * config/tilegx/mul-tables.c: Move symtab.h include after
11579 coretypes.h include.
11580 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
11581 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
11582 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
11583 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
11584 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
11586 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
11590 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
11592 PR rtl-optimization/64081
11593 * loop-iv.c (def_pred_latch_p): New function.
11594 (latch_dominating_def): Allow specific cases with non-single
11596 (iv_get_reaching_def): Likewise.
11597 (check_complex_exit_p): New function.
11598 (check_simple_exit): Use check_complex_exit_p to allow certain cases
11599 with exits not executing on any iteration.
11601 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
11604 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
11605 to set branch cost.
11607 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
11610 * i386.c (gate): Check flag_expensive_optimizations and
11612 (ix86_option_override_internal): Drop optimize_size condition
11613 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
11614 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
11615 MASK_PREFER_AVX128.
11616 (ix86_avx256_split_vector_move_misalign,
11617 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
11618 * sse.md (all uses of TARGET_PREFER_AVX128): Add
11619 optimize_insn_for_speed_p check.
11621 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
11623 * config/mips/mips.h (FP_ASM_SPEC): New define.
11624 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
11627 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
11630 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
11631 nullptr for insn when reaching the first insn.
11632 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
11633 (sh_insn_operands_modified_between_p): Add nullptr check.
11634 (sh_find_extending_set_of_reg): Fix log message. Don't accept
11635 sign extending mem load if the insn contains any UNSPEC or
11638 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
11640 * params.def (inline-unit-growth): Drop to 15%.
11641 * invoke.texi (inline-unit-growth): Document change.
11643 2015-01-19 Martin Liska <mliska@suse.cz>
11646 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
11647 function for second argument of OBJ_TYPE_REF.
11649 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
11652 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
11653 whether function is an alias.
11655 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
11657 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
11660 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
11662 PR rtl-optimization/64671
11663 * lra-remat.c (operand_to_remat): Don't consider jump and call
11666 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
11669 * config/rs6000/default64.h: Include rs6000-cpus.def.
11670 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
11671 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
11672 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
11674 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
11676 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
11677 pseudo-op to specify assembler dialect.
11679 2015-01-19 Martin Liska <mliska@suse.cz>
11682 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
11683 Handle safe potentially removed nodes during filtering.
11685 2015-01-19 Martin Liska <mliska@suse.cz>
11687 * doc/extend.texi (no_icf): Add new attribute description.
11688 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
11689 where the pass attempts to merge a function with no_icf attribute.
11691 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11694 * doc/md.texi (ARM Options): Document register constraints.
11696 2015-01-19 Jiong Wang <jiong.wang@arm.com>
11697 Andrew Pinski <apinski@cavium.com>
11700 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
11701 (ashl<mode>3): Don't expand if operands[2] is not constant.
11703 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11706 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
11707 Match xor-and-xor RTL pattern.
11709 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
11711 PR rtl-optimization/64081
11712 * loop-iv.c (def_pred_latch_p): New function.
11713 (latch_dominating_def): Allow specific cases with non-single
11715 (iv_get_reaching_def): Likewise.
11716 (check_complex_exit_p): New function.
11717 (check_simple_exit): Use check_complex_exit_p to allow certain cases
11718 with exits not executing on any iteration.
11720 2015-01-19 Jakub Jelinek <jakub@redhat.com>
11722 * common.opt (fgraphite): Fix a typo.
11724 2015-01-19 Felix Yang <felix.yang@huawei.com>
11726 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
11728 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
11729 uminp, smax_nanp, smin_nanp): New builtins.
11730 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
11731 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
11732 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
11733 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
11734 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
11735 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
11736 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
11737 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
11738 vpminnms_f32): Rewrite using builtin functions.
11740 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
11743 * omp-low.c (offload_symbol_decl): Remove variable.
11744 (get_offload_symbol_decl): Remove function.
11745 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
11746 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
11747 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
11748 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
11749 BUILT_IN_GOACC_UPDATE don't pass it at all.
11751 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
11753 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
11756 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
11758 * ipa-chkp.c (chkp_produce_thunks): Add early param
11759 to split thunks production into two passes. Keep
11760 'always_inline' function bodies after the first pass.
11761 (pass_data_ipa_chkp_early_produce_thunks): New.
11762 (pass_ipa_chkp_early_produce_thunks): New.
11763 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
11764 chkp_produce_thunks signature.
11765 (make_pass_ipa_chkp_early_produce_thunks): New.
11766 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
11767 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
11768 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
11770 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
11772 * cgraph.c (cgraph_node::dump): Dump profile flags.
11774 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
11777 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
11778 reg appear first in the parallel.
11780 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
11782 * ipa-reference.c (set_reference_optimization_summary,
11783 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
11785 (ignore_module_statics): New static var.
11786 (propagate_bits): If ipa-reference is disabled, do not look into local
11788 (analyze_function): Disable analysis when ipa_reference is disabled.
11789 (generate_summary): Do not dump when reference is disabled;
11790 collect vars accessed from functions with ipa-reference disabled.
11791 (get_read_write_all_from_node): When ipa-reference is disabled, use the
11793 (gate): Enable for LTO.
11794 (ignore_edge_p): New function.
11795 (propagate): Skip functions w/o ipa-reference analysis.
11796 * optc-save-gen.awk: Handle optimize_debug correctly.
11797 * opth-gen.awk: Likewise.
11798 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
11799 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
11800 fira-share-save-slots, fira-share-spill-slots,
11801 fmodulo-sched-allow-regmoves, fpartial-inlining,
11802 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
11803 ftracer, ftree-parallelize-loops, fassociative-math,
11804 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
11806 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
11807 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
11809 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
11812 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
11815 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
11817 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
11819 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
11821 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
11822 Remove duplicate option listings.
11824 2015-01-18 Felix Yang <felix.yang@huawei.com>
11826 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
11827 (autofdo_source_profile::get_callsite_total_count,
11828 function_instance::get_function_instance_by_decl,
11829 string_table::get_index, string_table::get_index_by_decl,
11830 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
11831 Fix comment typos. Reformatting and minor code rearrangement.
11833 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
11835 * config/rs6000/rs6000.md (probe_stack): Delete.
11836 (probe_stack_address): New.
11838 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
11840 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
11841 to test for 32-bit ABIs, not !TARGET_POWERPC64.
11843 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
11845 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
11846 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
11847 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
11849 (rs6000_libcall_value): Use the new function.
11851 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
11853 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
11855 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
11857 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
11858 implement a more precise life analysis for it during backward scan.
11860 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11862 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
11864 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
11866 PR rtl-optimization/52773
11867 * calls.c (emit_library_call_value): When pushing arguments use
11868 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
11869 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
11870 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
11872 2015-01-17 Jeff Law <law@redhat.com>
11874 PR rtl-optimization/32790
11875 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
11876 not ZERO_EXTEND in SET_DESTs.
11878 2015-01-17 Alan Modra <amodra@gmail.com>
11880 * cprop.c (do_local_cprop): Revert last change.
11882 2015-01-16 DJ Delorie <dj@redhat.com>
11883 Nick Clifton <nickc@redhat.com>
11885 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
11886 (addhi3_real): Likewise. Fix [HL+0] syntax.
11887 (subqi3_real): Likewise.
11888 (subhi3_real): Likewise.
11889 (cbranchqi4_real): Likewise. Allow saddr,#imm.
11890 (cbranchhi4_real): Likewise.
11891 (cbranchhi4_real_inverted): Likewise.
11892 (cbranchsi4_real_lt): Likewise.
11893 (cbranchsi4_real_ge): Likewise.
11894 (cbranchsi4_real_ge): Likewise.
11895 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
11896 (sub<mode>3_virt): Likewise.
11897 (cbranchqi4_virt): Likewise.
11898 (cbranchhi4_virt): Likewise.
11899 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
11900 always use '[reg+imm]' even when imm is zero.
11901 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
11902 (rl78_general_operand): New.
11903 (rl78_nonimmediate_operand): New.
11904 (rl78_nonfar_operand): Use them.
11905 (rl78_nonfar_nonimm_operand): Likewise.
11906 (rl78_stack_based_mem): Fix.
11907 * config/rl78/constraints.md (Ibqi): New.
11912 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
11913 (iorqi3): Likewise.
11914 (xorqi3): Likewise.
11915 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
11917 * config/rl78/constrains (Qs8): New constraint.
11918 * config/rl78/rl78.c (rl78_flags_already_set): New function.
11919 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
11920 * config/rl78/rl78-real.md (update_Z): New attribute.
11921 Update patterns to set it.
11922 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
11923 shorter compare and branch sequence can be used.
11924 (cbranchhi4_real): Likewise.
11925 (cbranchhi4_real_inverted): Likewise.
11927 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
11928 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
11930 * config/rl78/rl78.c (rl78_get_name_encoding): New.
11931 (rl78_option_override): Allow -mes0 only if C.
11932 (characterize_address): Support subregs of symbol_refs.
11933 (rl78_addr_space_address_mode): Move. Add __near.
11934 (rl78_far_p): Likewise.
11935 (rl78_addr_space_pointer_mode): Likewise.
11936 (rl78_as_legitimate_address): Likewise.
11937 (rl78_addr_space_subset_p): Likewise.
11938 (rl78_addr_space_convert): Likewise.
11939 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
11940 symbols with -mes0.
11941 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
11943 (rl78_alloc_physical_registers_op1): Change logic to prefer
11944 symbol[BC] addressing.
11945 (frodata_section): New.
11946 (rl78_asm_init_sections): Initialize it.
11947 (rl78_select_section): Put __far readonly symbols in .frodata.
11948 (rl78_make_type_far): New.
11949 (rl78_insert_attributes): Force all readonly symbols to be
11951 (rl78_asm_out_integer): New.
11952 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
11953 * config/rl78/rl78.opt (-mes0): New.
11955 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
11956 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
11957 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
11958 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
11959 (rl78_saddr_p): New.
11960 (rl78_output_aligned_common): New.
11961 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
11962 (rl78_handle_saddr_attribute): New.
11963 (rl78_handle_naked_attribute): New.
11964 (rl78_attribute_table): Add saddr.
11965 (rl78_print_operand_1): Don't print '!' on saddr operands.
11966 (rl78_print_operand_1): Strip encodings.
11968 (rl78_strip_name_encoding): New.
11969 (rl78_attrlist_to_encoding): New.
11970 (rl78_encode_section_info): New.
11971 (rl78_asm_init_sections): New.
11972 (rl78_select_section): New.
11973 (rl78_output_labelref): New.
11974 (rl78_output_aligned_common): New.
11975 (rl78_asm_out_integer): New.
11976 (rl78_asm_ctor_dtor): New.
11977 (rl78_asm_constructor): New.
11978 (rl78_asm_destructor): New.
11980 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
11981 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
11982 (transcode_memory_rtx): Update.
11983 (rl78_expand_epilogue): Use A_REG instead of 0.
11985 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11987 * config/arm/arm-protos.h (struct tune_params): New field
11988 sched_autopref_queue_depth.
11989 * config/arm/arm.c (sched-int.h): Include header.
11990 (arm_first_cycle_multipass_dfa_lookahead_guard,)
11991 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
11992 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
11993 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
11994 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
11995 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
11996 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
11997 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
11998 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
11999 * config/arm/t-arm (arm.o): Update.
12000 * haifa-sched.c (update_insn_after_change): Update.
12001 (rank_for_schedule): Use auto-prefetcher model, if requested.
12002 (autopref_multipass_init): New static function.
12003 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
12004 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
12005 variable for debug dumps.
12006 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
12007 (autopref_multipass_dfa_lookahead_guard): New global function that
12008 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
12009 (init_h_i_d): Update.
12010 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
12011 * sched-int.h (enum autopref_multipass_data_status): New const enum.
12012 (autopref_multipass_data_): Structure for auto-prefetcher data.
12013 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
12014 (struct _haifa_insn_data:autopref_multipass_data): New field.
12015 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
12016 (autopref_multipass_dfa_lookahead_guard): Declare.
12018 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
12020 * rtlanal.c (get_base_term): Handle SCRATCH.
12022 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
12024 * config/aarch64/aarch64.c
12025 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
12026 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
12028 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
12029 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
12031 2015-01-17 Alan Modra <amodra@gmail.com>
12033 * cprop.c (do_local_cprop): Disallow replacement of fixed
12036 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12039 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
12042 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
12044 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
12045 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
12047 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12049 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
12050 * config/arm/thumb1.md: ... Here.
12052 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
12054 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
12055 TImode for TARGET_32BIT.
12057 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
12059 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
12060 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
12062 (rs6000_abi_word_mode): New function.
12064 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
12066 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
12067 instead of UNITS_PER_WORD to describe the size of stack slots.
12069 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
12071 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
12072 as rs6000_promote_function_mode. Move comment to there.
12073 (rs6000_promote_function_mode): New function.
12075 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
12077 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
12078 -mpowerpc64 is active.
12080 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
12082 PR middle-end/64353
12083 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
12086 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
12088 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
12089 introduced in revision 219724.
12091 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12092 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12095 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
12096 destination is not a GP reg.
12097 (*movdi_aarch64): Likewise.
12099 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
12102 * config/rs6000/default64.h: Revert ISA change.
12104 2015-01-16 Richard Biener <rguenther@suse.de>
12106 PR middle-end/64614
12107 * tree-ssa-uninit.c: Include tree-cfg.h.
12108 (MAX_SWITCH_CASES): New define.
12109 (convert_control_dep_chain_into_preds): Handle switch statements.
12110 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
12111 (normalize_one_pred_1): Do not split bit-manipulations.
12114 2015-01-16 Richard Biener <rguenther@suse.de>
12116 PR tree-optimization/64568
12117 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
12118 complex load rewriting for TARGET_MEM_REFs.
12120 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
12122 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
12124 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
12127 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
12129 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
12130 (aarch64_lra_p): Remove.
12132 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
12135 * ipa-chkp.h (chkp_instrumentable_p): New.
12136 * ipa-chkp.c: Include tree-inline.h.
12137 (chkp_instrumentable_p): New.
12138 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
12139 Fix processing of not instrumentable functions.
12140 (chkp_versioning): Use chkp_instrumentable_p. Warn about
12141 not instrumentable functions.
12142 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
12143 chkp_instrumentable_p.
12144 * tree-inline.h (copy_forbidden): New.
12145 * tree-inline.c (copy_forbidden): Not static anymore.
12147 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12149 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
12152 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
12154 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
12155 type OP_OUT to OP_INOUT.
12157 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
12159 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
12160 (high x) y) to y if x and y have the same base.
12162 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
12164 * config/arm/cortex-a57.md: New.
12165 * config/aarch64/aarch64.md: Include it.
12166 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
12167 * config/aarch64/aarch64-tune.md: Regenerate.
12169 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
12172 * ccmp.c (expand_ccmp_next): New function.
12173 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
12174 and compare insn sequence.
12175 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
12176 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
12177 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
12178 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
12179 (*ccmp_ior): Changed to ccmp_ior<mode>.
12180 (cmp<mode>): New pattern.
12181 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
12183 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
12185 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
12187 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
12188 _mm256_bsrli_epi128): New.
12189 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
12191 2015-01-15 Jiong Wang <jiong.wang@arm.com>
12193 * expmed.c (store_bit_field_using_insv): Improve warning message.
12194 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
12196 2015-01-15 Jiong Wang <jiong.wang@arm.com>
12198 PR rtl-optimization/64011
12199 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
12200 there is partial overflow.
12202 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
12204 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
12206 (nds32_expand_epilogue_v3pop): Likewise.
12207 * config/nds32/nds32.md (sibcall): Define this for sibling call
12209 (sibcall_register): Likewise.
12210 (sibcall_immediate): Likewise.
12211 (sibcall_value): Likewise.
12212 (sibcall_value_register): Likewise.
12213 (sibcall_value_immediate): Likewise.
12214 (sibcall_epilogue): Likewise.
12215 (epilogue): Pass false to indicate this is not a sibcall epilogue.
12216 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
12217 (nds32_expand_epilogue_v3pop): Likewise.
12219 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
12221 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
12222 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
12223 (return_internal): New.
12224 (return): Define this named pattern.
12225 (simple_return): Define this named pattern.
12226 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
12227 pattern instead of unspec_volatile_func_return.
12228 (nds32_expand_epilogue_v3pop): Likewise.
12229 (nds32_can_use_return_insn): New function.
12231 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
12233 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
12234 * config/nds32/nds32.md (pop25return): New.
12235 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
12236 pop25return pattern.
12238 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
12240 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
12241 -mforbid-fp-as-gp, and -mex9 options.
12243 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
12245 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
12246 remove -mgp-direct option.
12248 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
12250 * doc/invoke.texi (--param early-inlining-insns): Update default value.
12251 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
12253 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
12255 * ipa-inline.c (inline_small_functions): Work around hints
12258 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
12261 * doc/invoke.texi (Option Summary): Document new Nios II
12263 (Nios II Options): Likewise.
12264 * config/nios2/nios2.opt: Add -mgpopt= option support.
12265 Modify existing -mgpopt and -mno-gpopt options to be aliases.
12266 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
12267 * config/nios2/nios2.c (nios2_option_override): Adjust
12268 -mgpopt defaulting.
12269 (nios2_in_small_data_p): Return true for explicit small data
12270 sections even with -G0.
12271 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
12274 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
12277 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
12279 (inline_call): Fix removal of aliases.
12281 2015-01-15 Jakub Jelinek <jakub@redhat.com>
12283 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
12284 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
12285 * opts.c (common_handle_option): Add -fsanitize=vptr.
12286 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
12287 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
12288 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
12289 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
12290 (ubsan_expand_vptr_ifn): New prototype.
12291 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
12292 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
12293 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
12294 expand_LOOP_VECTORIZED): Make argument nameless, remove
12296 (expand_UBSAN_VPTR): New function.
12297 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
12299 (UBSAN_VPTR): New internal function.
12300 * sanopt.c (tree_map_traits): Renamed to ...
12301 (sanopt_tree_map_traits): ... this.
12302 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
12303 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
12304 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
12305 (maybe_optimize_ubsan_vptr_ifn): New function.
12306 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
12307 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
12309 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
12310 internal calls like pure functions for aliasing, even when they
12311 have other side-effects that prevent making them ECF_PURE.
12312 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
12313 (ubsan_expand_vptr_ifn): New function.
12315 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
12317 PR rtl-optimization/64110
12318 * stmt.c (parse_output_constraint): Process '^' and '$'.
12319 (parse_input_constraint): Ditto.
12320 * lra-constraints.c (process_alt_operands): Process the new
12322 * ira-costs.c (record_reg_classes): Process the new constraint
12324 * genoutput.c (indep_constraints): Add '^' and '$'.
12325 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
12326 * doc/md.texi: Add description of the new constraints.
12328 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
12329 Bernd Schmidt <bernds@codesourcery.com>
12330 Cesar Philippidis <cesar@codesourcery.com>
12331 James Norris <jnorris@codesourcery.com>
12332 Tom de Vries <tom@codesourcery.com>
12333 Ilmir Usmanov <i.usmanov@samsung.com>
12334 Dmitry Bocharnikov <dmitry.b@samsung.com>
12335 Evgeny Gavrin <e.gavrin@samsung.com>
12336 Jakub Jelinek <jakub@redhat.com>
12338 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
12339 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
12340 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
12341 New function types.
12342 * builtins.c: Include "gomp-constants.h".
12343 (expand_builtin_acc_on_device): New function.
12344 (expand_builtin, is_inexpensive_builtin): Handle
12345 BUILT_IN_ACC_ON_DEVICE.
12346 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
12348 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
12350 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
12351 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
12352 i386/intelmic-offload.h.
12353 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
12354 to libgomp and its dependencies.
12355 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
12356 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
12357 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
12358 * config/ia64/hpux.h (LIB_SPEC): Likewise.
12359 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12360 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
12361 * doc/generic.texi: Update for OpenACC changes.
12362 * doc/gimple.texi: Likewise.
12363 * doc/invoke.texi: Likewise.
12364 * doc/sourcebuild.texi: Likewise.
12365 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
12366 GF_OMP_FOR_KIND_OACC_LOOP.
12367 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
12368 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
12369 GF_OMP_TARGET_KIND_OACC_UPDATE,
12370 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
12372 * gimple.c: Update comments for OpenACC changes.
12373 * gimple.def: Likewise.
12374 * gimple.h: Likewise.
12375 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
12376 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
12377 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
12378 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
12379 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
12381 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
12382 * gimplify.c: Include "gomp-constants.h".
12383 Update comments for OpenACC changes.
12384 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
12385 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
12386 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
12387 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
12388 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
12389 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
12390 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
12391 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
12392 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
12394 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
12395 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
12396 OMP_CLAUSE_SET_MAP_KIND.
12397 (gimplify_oacc_cache): New function.
12398 (gimplify_omp_for): Handle OACC_LOOP.
12399 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
12401 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
12402 OACC_EXIT_DATA, OACC_UPDATE.
12403 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
12404 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
12405 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
12406 (gimplify_body): Consider flag_openacc next to flag_openmp.
12407 * lto-streamer-out.c: Include "gomp-constants.h".
12408 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
12409 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
12410 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
12411 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
12412 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
12413 (BUILT_IN_ACC_ON_DEVICE): New builtins.
12414 * omp-low.c: Include "gomp-constants.h".
12415 Update comments for OpenACC changes.
12416 (struct omp_context): Add reduction_map, gwv_below, gwv_this
12418 (extract_omp_for_data, use_pointer_for_field, install_var_field)
12419 (new_omp_context, delete_omp_context, scan_sharing_clauses)
12420 (create_omp_child_function, scan_omp_for, scan_omp_target)
12421 (check_omp_nesting_restrictions, lower_reduction_clauses)
12422 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
12423 Update for OpenACC changes.
12424 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
12425 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
12426 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
12427 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
12428 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
12429 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
12431 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
12432 Handle GF_OMP_FOR_KIND_OACC_LOOP.
12433 (expand_omp_target, lower_omp_target): Handle
12434 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
12435 GF_OMP_TARGET_KIND_OACC_UPDATE,
12436 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
12437 GF_OMP_TARGET_KIND_OACC_DATA.
12438 (pass_expand_omp::execute, execute_lower_omp)
12439 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
12441 (offload_symbol_decl): New variable.
12442 (oacc_get_reduction_array_id, oacc_max_threads)
12443 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
12444 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
12445 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
12446 (oacc_gimple_assign, oacc_initialize_reduction_data)
12447 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
12449 (is_targetreg_ctx): Remove function.
12450 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
12451 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
12452 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
12453 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
12454 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
12455 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
12456 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
12457 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
12458 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
12459 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
12460 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
12461 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
12462 * tree-core.h: Update comments for OpenACC changes.
12463 (enum omp_clause_map_kind): Remove.
12464 (struct tree_omp_clause): Change type of map_kind member from enum
12465 omp_clause_map_kind to unsigned char.
12466 * tree-inline.c: Update comments for OpenACC changes.
12467 * tree-nested.c: Likewise. Include "gomp-constants.h".
12468 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
12469 (convert_tramp_reference_stmt, convert_gimple_call): Update for
12470 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
12471 OMP_CLAUSE_SET_MAP_KIND.
12472 * tree-pretty-print.c: Include "gomp-constants.h".
12473 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
12474 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
12475 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
12476 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
12477 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
12478 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
12479 instead of OMP_CLAUSE_MAP_*.
12480 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
12481 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
12482 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
12483 * tree-streamer-in.c: Include "gomp-constants.h".
12484 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
12485 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
12486 * tree-streamer-out.c: Include "gomp-constants.h".
12487 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
12489 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
12490 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
12491 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
12492 * tree.c (omp_clause_num_ops): Update accordingly.
12493 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
12495 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
12496 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
12497 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
12498 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
12499 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
12500 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
12501 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
12502 (OMP_CLAUSE_SET_MAP_KIND): New macro.
12503 * varpool.c (varpool_node::get_create): Consider flag_openacc next
12505 * config/i386/intelmic-offload.h: New file.
12506 * config/nvptx/offload.h: Likewise.
12508 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12510 * explow.h: Remove duplicate contents.
12511 * dojump.h: Likewise.
12513 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
12515 * arm.c (arm_xgene_tune): Add default initializer for instruction
12518 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
12522 * ipa.c (symbol_table::remove_unreachable_nodes):
12523 Do not put abstract origins into boundary.
12525 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
12527 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
12528 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
12530 2015-01-15 Steve Ellcey <sellcey@mips.com>
12532 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
12533 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
12534 builtins.def, and chkp-builtins.def.
12536 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
12538 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
12541 2015-01-15 Richard Biener <rguenther@suse.de>
12543 PR tree-optimization/61743
12544 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
12545 information on PHIs for some simple cases.
12547 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12549 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
12551 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
12552 * config/arm/arm-cores.def (xgene1): New entry.
12553 * config/arm/arm-tables.opt: Regenerate.
12554 * config/arm/arm-tune.md: Regenerate.
12555 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
12557 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
12559 * tree-if-conv.c: Include hash-map.h.
12560 (aggressive_if_conv): New variable.
12561 (fold_build_cond_expr): Add simplification of non-zero condition.
12562 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
12563 destination block is not always executed.
12564 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
12565 than two predecessors if AGGRESSIVE_IF_CONV is true.
12566 (if_convertible_stmt_p): Fix commentary.
12567 (all_preds_critical_p): New function.
12568 (has_pred_critical_p): New function.
12569 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
12570 BB can have more than two predecessors and all incoming edges can be
12572 (predicate_bbs): Skip predication for loop exit block, use build2_loc
12573 to compute predicate for true edge.
12574 (find_phi_replacement_condition): Delete this function.
12575 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
12576 Allow interchange PHI arguments if EXTENDED is false.
12577 Change check that block containing reduction statement candidate
12578 is predecessor of phi-block since phi may have more than two arguments.
12579 (phi_args_hash_traits): New helper structure.
12580 (struct phi_args_hash_traits): New type.
12581 (phi_args_hash_traits::hash): New function.
12582 (phi_args_hash_traits::equal_keys): New function.
12583 (gen_phi_arg_condition): New function.
12584 (predicate_scalar_phi): Add handling of phi nodes with more than two
12585 arguments, delete COND and TRUE_BB arguments, insert body of
12586 find_phi_replacement_condition to predicate ordinary phi nodes.
12587 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
12588 delete call of find_phi_replacement_condition and invoke
12589 predicate_scalar_phi with two arguments.
12590 (insert_gimplified_predicates): Add assert that non-predicated block
12591 don't have statements to insert.
12592 (ifcvt_split_critical_edges): New function.
12593 (ifcvt_split_def_stmt): Likewise.
12594 (ifcvt_walk_pattern_tree): Likewise.
12595 (stmt_is_root_of_bool_pattern): Likewise.
12596 (ifcvt_repair_bool_pattern): Likewise.
12597 (ifcvt_local_dce): Likewise.
12598 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
12599 is copy of inner or outer loop force_vectorize field, invoke
12600 ifcvt_split_critical_edges, ifcvt_local_dce and
12601 ifcvt_repair_bool_pattern for aggressive if-conversion.
12603 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
12605 * config/aarch64/aarch64.md: Include xgene1.md.
12606 * config/aarch64/xgene1.md: New file.
12608 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12610 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
12611 xgene1 (APM XGene-1) core definition.
12612 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
12613 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
12614 * doc/invoke.texi: Document -mcpu=xgene1.
12616 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12618 * dojump.h: New header file.
12619 * explow.h: Likewise.
12620 * expr.h: Remove includes.
12621 Move expmed.c prototypes to expmed.h.
12622 Move dojump.c prototypes to dojump.h.
12623 Move alias.c prototypes to alias.h.
12624 Move explow.c prototypes to explow.h.
12625 Move calls.c prototypes to calls.h.
12626 Move emit-rtl.c prototypes to emit-rtl.h.
12627 Move varasm.c prototypes to varasm.h.
12628 Move stmt.c prototypes to stmt.h.
12629 (saved_pending_stack_adjust): Move to dojump.h.
12630 (adjust_address): Move to explow.h.
12631 (adjust_address_nv): Move to emit-rtl.h.
12632 (adjust_bitfield_address): Likewise.
12633 (adjust_bitfield_address_size): Likewise.
12634 (adjust_bitfield_address_nv): Likewise.
12635 (adjust_automodify_address_nv): Likewise.
12636 * explow.c (expr_size): Move to expr.c.
12637 (int_expr_size): Likewise.
12638 (tree_expr_size): Likewise.
12639 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12640 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
12641 * genemit.c (main): Generate includes statistics.h, real.h,
12642 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
12644 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
12645 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
12646 explow.h, emit-rtl.h, stmt.h.
12647 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
12648 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
12649 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
12650 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
12651 emit-rtl.h, varasm.h, stmt.h.
12652 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
12653 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
12654 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
12655 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
12656 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
12657 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
12658 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
12659 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
12660 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
12661 tm.h tree.h varasm.h vec.h wide-int.h.
12662 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12663 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
12664 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
12665 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
12666 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
12667 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
12668 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
12669 * loop-iv.c: Likewise.
12670 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
12671 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
12672 statistics.h stmt.h tree.h varasm.h wide-int.h.
12673 * lra-constraints.c: Likewise.
12674 * lra-eliminations.c: Likewise.
12675 * lra-lives.c: Likewise.
12676 * lra-remat.c: Likewise.
12677 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12678 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
12679 statistics.h stmt.h tree.h varasm.h wide-int.h.
12680 * hw-doloop.c: Likewise.
12681 * ira-color.c: Likewise.
12682 * ira-emit.c: Likewise.
12683 * loop-doloop.c: Likewise.
12684 * loop-invariant.c: Likewise.
12685 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12686 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
12687 statistics.h stmt.h tree.h varasm.h wide-int.h.
12688 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
12689 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
12690 statistics.h stmt.h tree.h varasm.h wide-int.h.
12691 * combine-stack-adj.c: Likewise.
12694 * ifcvt.c: Likewise.
12695 * ira-costs.c: Likewise.
12696 * jump.c: Likewise.
12697 * lra-coalesce.c: Likewise.
12698 * lra-spills.c: Likewise.
12699 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12700 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
12701 stmt.h varasm.h wide-int.h.
12702 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12703 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
12705 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
12706 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
12707 statistics.h stmt.h varasm.h wide-int.h.
12708 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
12709 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
12710 varasm.h wide-int.h.
12711 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
12712 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
12713 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
12714 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
12715 statistics.h stmt.h.
12716 * config/tilepro/tilepro.c: Likewise.
12717 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
12718 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
12719 * config/pdp11/pdp11.c: Likewise.
12720 * config/xtensa/xtensa.c: Likewise.
12721 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
12722 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
12724 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12725 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
12726 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
12727 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12728 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
12729 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
12730 * rtl-chkp.c: Likewise.
12731 * tree-chkp-opt.c: Likewise.
12732 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
12733 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
12734 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
12735 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12736 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
12737 statistics.h stmt.h.
12738 * tree-vect-data-refs.c: Likewise.
12739 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
12740 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12741 rtl.h statistics.h stmt.h varasm.h.
12742 * internal-fn.c: Likewise.
12743 * ipa-icf-gimple.c: Likewise.
12744 * lto-section-out.c: Likewise.
12745 * tree-data-ref.c: Likewise.
12746 * tree-nested.c: Likewise.
12747 * tree-outof-ssa.c: Likewise.
12748 * tree-predcom.c: Likewise.
12749 * tree-pretty-print.c: Likewise.
12750 * tree-scalar-evolution.c: Likewise.
12751 * tree-ssa-strlen.c: Likewise.
12752 * tree-vect-loop.c: Likewise.
12753 * tree-vect-patterns.c: Likewise.
12754 * tree-vect-slp.c: Likewise.
12755 * tree-vect-stmts.c: Likewise.
12756 * tsan.c: Likewise.
12757 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12758 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
12760 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
12761 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12762 statistics.h stmt.h varasm.h.
12763 * loop-unroll.c: Likewise.
12764 * ubsan.c: Likewise.
12765 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
12766 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
12768 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12769 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
12770 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
12771 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
12772 statistics.h stmt.h.
12773 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
12774 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
12775 statistics.h stmt.h varasm.h.
12776 * gimple-match-head.c: Likewise.
12777 * lto-cgraph.c: Likewise.
12778 * lto-section-in.c: Likewise.
12779 * lto-streamer-in.c: Likewise.
12780 * lto-streamer-out.c: Likewise.
12781 * tree-affine.c: Likewise.
12782 * tree-cfg.c: Likewise.
12783 * tree-cfgcleanup.c: Likewise.
12784 * tree-if-conv.c: Likewise.
12785 * tree-into-ssa.c: Likewise.
12786 * tree-ssa-alias.c: Likewise.
12787 * tree-ssa-copyrename.c: Likewise.
12788 * tree-ssa-dse.c: Likewise.
12789 * tree-ssa-forwprop.c: Likewise.
12790 * tree-ssa-live.c: Likewise.
12791 * tree-ssa-math-opts.c: Likewise.
12792 * tree-ssa-pre.c: Likewise.
12793 * tree-ssa-sccvn.c: Likewise.
12794 * tree-tailcall.c: Likewise.
12795 * tree-vect-generic.c: Likewise.
12796 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12797 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
12798 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12799 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
12800 * varasm.c: Likewise.
12801 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12802 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
12804 * init-regs.c: Likewise.
12806 * omp-low.c: Likewise.
12807 * stack-ptr-mod.c: Likewise.
12808 * tree-ssa-reassoc.c: Likewise.
12809 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12810 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
12812 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12813 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
12814 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12815 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
12816 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12817 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
12818 * tree-ssa-phiopt.c: Likewise.
12819 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12820 fixed-value.h hashtab.h real.h statistics.h stmt.h.
12821 * config/fr30/fr30.c: Likewise.
12822 * config/frv/frv.c: Likewise.
12823 * expr.c: Likewise.
12824 * final.c: Likewise.
12825 * optabs.c: Likewise.
12826 * passes.c: Likewise.
12827 * simplify-rtx.c: Likewise.
12828 * stmt.c: Likewise.
12829 * toplev.c: Likewise.
12830 * var-tracking.c: Likewise.
12831 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12832 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
12833 * lower-subreg.c: Likewise.
12834 * postreload-gcse.c: Likewise.
12836 * reginfo.c: Likewise.
12837 * store-motion.c: Likewise.
12838 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12839 fixed-value.h hashtab.h real.h stmt.h varasm.h.
12840 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12841 fixed-value.h hashtab.h statistics.h stmt.h.
12842 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12843 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
12844 * except.c: Likewise.
12845 * explow.c: Likewise.
12846 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12847 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
12849 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12850 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
12851 * tree-ssa-structalias.c: Likewise.
12852 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12853 fixed-value.h insn-config.h real.h statistics.h.
12854 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12855 fixed-value.h insn-config.h real.h statistics.h stmt.h.
12856 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12857 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
12858 * cfgbuild.c: Likewise.
12859 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12860 fixed-value.h real.h rtl.h statistics.h stmt.h.
12861 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12862 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
12863 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12864 fixed-value.h real.h statistics.h stmt.h.
12865 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12866 fixed-value.h real.h statistics.h stmt.h varasm.h.
12867 * cprop.c: Likewise.
12868 * modulo-sched.c: Likewise.
12869 * postreload.c: Likewise.
12870 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
12871 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
12872 statistics.h stmt.h varasm.h.
12873 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
12874 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12875 rtl.h statistics.h stmt.h varasm.h.
12876 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
12877 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
12879 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
12880 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
12882 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
12883 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
12885 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
12886 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
12887 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
12888 function.h real.h statistics.h stmt.h varasm.h.
12889 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
12890 insn-config.h real.h statistics.h stmt.h.
12891 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
12892 statistics.h stmt.h.
12893 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
12894 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
12895 statistics.h stmt.h varasm.h.
12896 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
12897 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
12898 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
12899 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
12900 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
12901 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
12902 statistics.h stmt.h varasm.h.
12903 * ipa-polymorphic-call.c: Likewise.
12904 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
12905 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12906 statistics.h stmt.h.
12907 * config/c6x/c6x.c: Likewise.
12908 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
12909 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12910 statistics.h stmt.h varasm.h.
12911 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
12912 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
12914 * ipa-split.c: Likewise.
12915 * tree-eh.c: Likewise.
12916 * tree-ssa-dce.c: Likewise.
12917 * tree-ssa-loop-niter.c: Likewise.
12918 * tree-vrp.c: Likewise.
12919 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
12920 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
12922 * config/nds32/nds32-fp-as-gp.c: Likewise.
12923 * config/nds32/nds32-intrinsic.c: Likewise.
12924 * config/nds32/nds32-isr.c: Likewise.
12925 * config/nds32/nds32-md-auxiliary.c: Likewise.
12926 * config/nds32/nds32-memory-manipulation.c: Likewise.
12927 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12928 * config/nds32/nds32-predicates.c: Likewise.
12929 * config/nds32/nds32.c: Likewise.
12930 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
12931 fixed-value.h hashtab.h real.h statistics.h.
12932 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
12933 fixed-value.h hashtab.h real.h statistics.h stmt.h.
12934 * config/arm/arm.c: Likewise.
12935 * config/avr/avr.c: Likewise.
12936 * config/bfin/bfin.c: Likewise.
12937 * config/h8300/h8300.c: Likewise.
12938 * config/i386/i386.c: Likewise.
12939 * config/ia64/ia64.c: Likewise.
12940 * config/iq2000/iq2000.c: Likewise.
12941 * config/m32c/m32c.c: Likewise.
12942 * config/m32r/m32r.c: Likewise.
12943 * config/m68k/m68k.c: Likewise.
12944 * config/mcore/mcore.c: Likewise.
12945 * config/mep/mep.c: Likewise.
12946 * config/mips/mips.c: Likewise.
12947 * config/mn10300/mn10300.c: Likewise.
12948 * config/moxie/moxie.c: Likewise.
12949 * config/pa/pa.c: Likewise.
12950 * config/rl78/rl78.c: Likewise.
12951 * config/rx/rx.c: Likewise.
12952 * config/s390/s390.c: Likewise.
12953 * config/sh/sh.c: Likewise.
12954 * config/sparc/sparc.c: Likewise.
12955 * config/spu/spu.c: Likewise.
12956 * config/stormy16/stormy16.c: Likewise.
12957 * config/v850/v850.c: Likewise.
12958 * config/vax/vax.c: Likewise.
12959 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
12960 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
12961 * config/msp430/msp430.c: Likewise.
12962 * predict.c: Likewise.
12963 * value-prof.c: Likewise.
12964 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
12965 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
12966 * config/microblaze/microblaze.c: Likewise.
12967 * config/nios2/nios2.c: Likewise.
12968 * config/rs6000/rs6000.c: Likewise.
12969 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
12970 insn-config.h real.h rtl.h statistics.h stmt.h.
12971 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
12972 insn-config.h real.h statistics.h stmt.h.
12973 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
12974 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
12975 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
12976 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
12977 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
12978 fixed-value.h real.h statistics.h stmt.h.
12979 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
12980 fixed-value.h statistics.h stmt.h.
12981 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
12984 2015-01-15 Jakub Jelinek <jakub@redhat.com>
12986 * gengtype.c (create_user_defined_type): Workaround
12987 -Wmaybe-uninitialized false positives.
12988 * cse.c (fold_rtx): Likewise.
12989 * loop-invariant.c (gain_for_invariant): Likewise.
12991 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
12993 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
12994 set the memory attributes in all cases but clear MEM_EXPR if need be.
12996 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
12998 PR tree-optimization/64434
12999 * cfgexpand.c (reorder_operands): New function.
13000 (expand_gimple_basic_block): Insert call of reorder_operands if
13003 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
13005 * config/mips/micromips.md (*swp): Remove explicit parallel.
13006 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
13007 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
13008 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
13009 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
13010 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
13011 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
13012 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
13013 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
13014 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
13015 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
13016 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
13017 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
13018 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
13019 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
13020 (mips_wrdsp): Likewise.
13021 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
13023 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
13024 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
13025 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
13026 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
13027 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
13028 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
13029 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
13030 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
13031 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
13033 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
13035 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
13036 (mips_print_operand): Support 'y' to print exact log2 in decimal
13038 * config/mips/mips.h (ISA_HAS_LSA): New define.
13039 (ISA_HAS_DLSA): Likewise.
13040 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
13041 * config/mips/predicates.md (const_immlsa_operand): New predicate.
13043 2015-01-15 Martin Liska <mliska@suse.cz>
13046 * optc-save-gen.awk: Add support for array types.
13048 2015-01-15 Richard Biener <rguenther@suse.de>
13050 PR middle-end/64365
13051 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
13052 for MEM_REF access functions with the same base can never partially
13055 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
13057 * common.opt: New option -fstack-protector-explicit.
13058 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
13059 (stack_protect_decl_phase): Handle stack_protect attribute for
13060 explicit stack protection requests.
13061 (expand_used_vars): Similarly.
13062 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
13063 * doc/extend.texi: Add documentation for "stack_protect" attribute.
13064 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
13066 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
13069 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
13071 (sh_extending_set_of_reg): New struct.
13072 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
13073 sh_remove_reg_dead_or_unused_notes): New Declarations.
13074 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
13075 sh_find_extending_set_of_reg, sh_split_tst_subregs,
13076 sh_extending_set_of_reg::use_as_extended_reg): New functions.
13077 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
13078 convert to insn_and_split and use new function sh_split_tst_subregs.
13080 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
13082 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
13084 (Optimization Options): Move -fuse-ld documentation to...
13085 (Link Options): ...here.
13087 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
13089 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
13091 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
13092 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
13093 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
13094 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
13095 instead of ZR for the memory operand of LL/SC.
13096 (compare_and_swap_12, sync_add<mode>): Likewise.
13097 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
13098 (sync_new_<optab>_12, sync_nand_12): Likewise.
13099 (sync_old_nand_12, sync_new_nand_12): Likewise.
13100 (sync_sub<mode>, sync_old_add<mode>): Likewise.
13101 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
13102 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
13103 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
13104 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
13105 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
13106 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
13107 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
13108 * doc/md.texi (ZC): Update description.
13110 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
13112 * builtins.c (expand_builtin_atomic_exchange): Remove error when
13113 memory model is CONSUME.
13114 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
13115 expand_builtin_atomic_store): Change invalid memory model errors to
13117 (expand_builtin_atomic_clear): Change invalid model errors to warnings
13118 and issue warning for CONSUME.
13120 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
13122 * lto-cgraph: Update function comments for
13123 lto_symtab_encoder_encode_*.
13125 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
13127 * Makefile.in (site.exp): Do not set ENABLE_LTO.
13129 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
13131 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
13132 * lto-cgraph.c (select_what_to_stream): Remove argument, use
13133 lto_stream_offload_p instead.
13134 * lto-streamer.h (select_what_to_stream): Remove argument.
13135 * passes.c (ipa_write_summaries): Likewise.
13136 * tree-pass.h (ipa_write_summaries): Likewise.
13138 2015-01-14 Richard Biener <rguenther@suse.de>
13140 PR tree-optimization/59354
13141 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
13142 groups larger than the slp group size as having gaps.
13144 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
13146 PR middle-end/59448
13147 * builtins.c (get_memmodel): Promote consume to acquire always.
13149 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
13152 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
13155 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
13158 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
13160 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
13161 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
13162 AVX512VBMI, as it implies AVX512BW.
13164 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
13167 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
13168 (vec_unpacks_hi_v16sf): Ditto.
13170 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13172 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
13175 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13177 * doc/invoke.texi (mapcs): Mention deprecation.
13178 (mapcs-frame): Likewise.
13180 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
13183 * config/arm/arm.c (callee_saved_reg_p): Define.
13184 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
13185 register is callee saved instead of !call_used_regs[reg].
13186 (thumb1_compute_save_reg_mask): Likewise.
13188 2015-01-14 Hale Wang <hale.wang@arm.com>
13190 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
13193 2015-01-14 Richard Biener <rguenther@suse.de>
13196 * tree-inline.c (insert_debug_decl_map): Check destination
13197 function MAY_HAVE_DEBUG_STMTS.
13198 (insert_init_debug_bind): Likewise.
13199 (insert_init_stmt): Remove redundant check.
13200 (remap_gimple_stmt): Drop debug stmts if the destination
13201 function has var-tracking assignments disabled.
13203 2015-01-14 Martin Liska <mliska@suse.cz>
13205 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
13206 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
13208 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13211 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
13212 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
13214 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
13216 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
13217 level from an ARCH; do not inject the default.
13218 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
13219 MIPS_ISA_LEVEL_SPEC.
13220 (MIPS_ISA_NAN2008_SPEC): Update comment.
13221 (BASE_DRIVER_SELF_SPECS): Likewise.
13222 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
13223 MIPS_DEFAULT_ISA_LEVEL_SPEC.
13224 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
13225 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
13226 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
13228 2015-01-14 Richard Biener <rguenther@suse.de>
13230 PR tree-optimization/64493
13231 PR tree-optimization/64495
13232 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
13233 assign the proper vectorized PHI to the inner loop exit PHIs.
13235 2015-01-14 Joey Ye <joey.ye@arm.com>
13237 * config/arm/arm.c (arm_compute_save_reg_mask):
13238 Do not save lr in case of tail call.
13239 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
13241 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
13243 * tree-vrp.c (check_array_ref): Emit more warnings
13244 for warn_array_bounds >= 2.
13245 * common.opt: New option -Warray-bounds=.
13246 * doc/invoke.texi: Document -Warray-bounds=.
13248 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
13250 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
13251 (mforbid-fp-as-gp): Remove.
13253 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
13254 (nds32_symbol_load_store_p): Remove.
13255 (nds32_fp_as_gp_check_available): Clean up implementation.
13256 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
13258 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
13259 fp-as-gp and ex9 cases.
13261 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
13263 * tree-profile.c (init_ic_make_global_vars): Drop workaround
13264 for bintuils bug 14342.
13265 (init_ic_make_global_vars): Likewise.
13266 (gimple_init_edge_profiler): Likewise.
13267 (gimple_gen_ic_func_profiler): Likewise.
13269 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13271 * ipa-inline.c (inline_small_functions): Swap the operands in
13274 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
13277 * ipa-inline-analysis.c (node_growth_cache): Remove.
13278 (initialize_growth_caches): Do not initialize it.
13279 (free_growth_caches): Do not free it.
13280 (do_estimate_growth): Rename to ...
13281 (estimate_growth): ... this one; drop growth cache code.
13282 (growth_likely_positive): Always go the heuristics way.
13283 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
13284 (reset_edge_caches): Do not reset node growth.
13285 (heap_edge_removal_hook): Do not maintain cache.
13286 (inline_small_functions): Likewise; strenghten sanity check.
13287 (ipa_inline): Do not maintain caches.
13288 * ipa-inline.h (node_growth_cache): Remove.
13289 (do_estimate_growth): Remove to ...
13290 (estimate_growth): this one; remove inline version.
13291 (reset_node_growth_cache): Remove.
13293 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
13296 * ipa-inline.c (inline_small_functions): Update callee keys after
13297 resolving speculation
13298 (inline_small_functions): Always check monotonicity of the queue.
13300 2015-01-13 Marek Polacek <polacek@redhat.com>
13302 PR middle-end/64391
13303 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
13305 2015-01-13 Jakub Jelinek <jakub@redhat.com>
13307 PR rtl-optimization/64286
13308 * ree.c (combine_reaching_defs): Move part of comment earlier,
13309 remove !SCALAR_INT_MODE_P check.
13310 (add_removable_extension): Don't add vector mode
13311 extensions if all uses of the source register aren't the same
13314 2015-01-13 Renlin Li <renlin.li@arm.com>
13316 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
13317 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
13319 2015-01-13 Martin Liska <mliska@suse.cz>
13321 * ipa-icf.c (sem_function::equals_private): Call new functions
13322 cl_target_option_print_diff and cl_optimization_print_diff.
13323 * optc-save-gen.awk (cl_target_option_print_diff): New function.
13324 (cl_optimization_print_diff): Likewise.
13325 * opth-gen.awk: Likewise.
13327 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
13329 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
13330 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
13331 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
13332 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
13333 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
13334 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
13336 2015-01-13 Andrew Pinski <apinski@cavium.com>
13338 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
13339 instead of src mode.
13341 2015-01-13 Richard Biener <rguenther@suse.de>
13344 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
13347 2015-01-13 Andrew Pinski <apinski@cavium.com>
13349 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
13351 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
13353 2015-01-13 Jakub Jelinek <jakub@redhat.com>
13355 PR middle-end/63974
13356 * cfgexpand.c (expand_computed_goto): Don't call
13357 convert_memory_address here.
13359 2015-01-13 Richard Biener <rguenther@suse.de>
13361 PR tree-optimization/64406
13362 * tree-loop-distibution.c (pass_loop_distribution::execute):
13363 Reset the SCEV hashtable if we distributed anything.
13365 2015-01-13 Richard Biener <rguenther@suse.de>
13367 PR tree-optimization/64404
13368 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
13369 SLP types for CSEd loads.
13371 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13373 PR tree-optimization/64436
13374 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
13375 merge of two symbolic numbers for a bitwise OR to ...
13376 (perform_symbolic_merge): This. Also fix computation of the range and
13377 end of the symbolic number corresponding to the result of a bitwise OR.
13379 2015-01-13 Richard Biener <rguenther@suse.de>
13381 PR tree-optimization/64568
13382 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
13383 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
13385 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
13387 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
13388 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
13390 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
13392 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
13393 target-specific symbol_ref flag.
13394 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
13395 resides in rodata section.
13396 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
13397 (nds32_encode_section_info): New function.
13399 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
13401 * config/nds32/nds32.md (call): Use pseudo instruction bal which
13402 clobbers TA_REGNUM if large code model is specified.
13403 (call_register): Likewise.
13404 (call_immediate): Likewise.
13405 (call_value): Likewise.
13406 (call_value_register): Likewise.
13407 (call_value_immediate): Likewise.
13409 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
13411 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
13412 (TARGET_CMODEL_MEDIUM): New macro.
13413 (TARGET_CMODEL_LARGE): New macro.
13414 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
13415 code model setting in assembly code.
13417 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
13419 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
13420 Remove MASK_GP_DIRECT flag.
13421 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
13422 one of the multilib default options.
13423 * config/nds32/nds32.opt (mgp-direct): Remove.
13424 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
13425 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
13427 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
13429 * config/nds32/nds32.opt (mcmodel): Add new option.
13430 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
13431 to describe code model.
13433 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
13436 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
13438 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
13440 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
13441 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
13442 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
13443 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
13444 __builtin_sh_set_fpscr.
13446 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
13448 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
13449 after a funtion name just to indicate it is a function.
13450 ([-fsanitize-undefined-trap-on-error]): Likewise.
13451 ([-fdbg-cnt=]): Likewise.
13452 ([-mmemcpy]): Likewise.
13453 ([-mflush-func]): Likewise.
13454 ([-msynci]): Likewise.
13456 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
13458 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
13461 2015-01-12 Jakub Jelinek <jakub@redhat.com>
13463 PR tree-optimization/64563
13464 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
13465 instead of != VR_VARYING.
13468 * config/i386/i386.c (ix86_expand_prologue): Add
13469 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
13471 PR tree-optimization/64454
13472 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
13473 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
13474 for signed or [0, op1 - 1] for unsigned modulo.
13475 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
13476 even if op1 does not satisfy integer_pow2p.
13479 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
13481 2015-01-12 Jeff Law <law@redhat.com>
13484 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
13485 (trunchiqi2, truncsihi2): Similarly.
13487 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
13488 rather than calling F.
13490 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
13492 * tsan.c (instrument_expr): Use force_gimple_operand.
13493 Use may_be_nonaddressable_p instead of is_gimple_addressable.
13495 2015-01-12 Richard Biener <rguenther@suse.de>
13497 PR tree-optimization/64530
13498 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
13501 2015-01-12 Richard Biener <rguenther@suse.de>
13503 PR middle-end/64357
13504 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
13507 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13509 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
13510 Cortex-A17 tuning parameters.
13511 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
13513 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13515 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
13516 * config/arm/arm.c (arm_macro_fusion_p): New function.
13517 (arm_macro_fusion_pair_p): Likewise.
13518 (TARGET_SCHED_MACRO_FUSION_P): Define.
13519 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
13520 (ARM_FUSE_NOTHING): Likewise.
13521 (ARM_FUSE_MOVW_MOVT): Likewise.
13522 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
13523 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
13524 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
13525 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
13526 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
13527 arm_cortex_a5_tune): Specify fuseable_ops value.
13529 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
13532 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
13533 test for PIE with copy reloc.
13534 * configure: Regenerated.
13536 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13538 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
13540 (arm_tls_descseq_addr): Likewise.
13541 (arm_gen_movmemqi): Likewise.
13542 (arm_expand_epilogue_apcs_frame): Likewise.
13543 (arm_expand_epilogue): Likewise.
13544 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
13547 2015-01-12 Martin Liska <mliska@suse.cz>
13550 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
13551 volatility for correct operands.
13553 2015-01-12 Martin Liska <mliska@suse.cz>
13555 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
13556 that a function is not leaf.
13557 (sem_function::compare_polymorphic_p): Likewise.
13559 2015-01-12 Martin Liska <mliska@suse.cz>
13561 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
13562 that a function is not leaf.
13563 (sem_function::compare_polymorphic_p): Likewise.
13565 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13567 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
13568 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
13569 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
13570 fold-const.h, tree-check.h.
13572 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
13576 * ipa-inline.c (compute_uninlined_call_time,
13577 compute_inlined_call_time): Use counts for extra precision when
13579 (big_speedup_p): Fix formating.
13580 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
13581 (relative_time_benefit): Remove.
13582 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
13583 merge guessed and read profile paths.
13584 (inline_small_functions): Count only !optimize_size functions into
13585 initial size; be more lax about sanity check when profile is used;
13586 be sure to update inlined function profile when profile is read.
13588 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
13591 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
13592 cost when edge becomes direct.
13593 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
13594 is resolved or when introducing new speculation.
13596 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
13600 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
13601 '||' to fix typo issue.
13603 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
13604 accept and return NULL.
13606 2015-01-12 Martin Liska <mliska@suse.cz>
13608 * cgraph.c (cgraph_edge::remove_callee): Move function to header
13609 file for being inlined.
13610 (cgraph_set_edge_callee): Delete.
13611 (cgraph_edge::redirect_callee): Move function to header file
13613 (cgraph_edge::make_direct): Use new function.
13614 (cgraph_edge::dump_edge_flags): New function created from
13615 static dump_edge_flags function.
13616 (cgraph_node::dump): Use new function.
13617 (cgraph_edge::verify_count_and_frequency): New function created
13618 from verify_edge_count_and_frequency.
13619 (cgraph_edge::verify_corresponds_to_fndecl): New function created
13620 from verify_edge_corresponds_to_fndecl.
13621 (verify_edge_corresponds_to_fndecl): Delete.
13622 (cgraph_node::verify_node): Use new function.
13623 * cgraph.h (cgraph_edge::set_callee): New function.
13624 (cgraph_edge::dump_edge_flags): Likewise.
13625 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
13627 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
13629 * ipa-utils.c (estimate_function_body_sizes): Do not
13630 free node params when called late with early=true.
13632 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
13634 * doc/md.texi (Instruction Patterns): Rewrite text for
13636 (Example): Likewise.
13638 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
13640 * doc/invoke.texi (Option Summary): Break long lines.
13641 [(-fdiagnostics-color)]: Put long literal in @smallexample
13643 [(-fsanitize-recover)]: Likewise.
13644 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
13645 [(-ffast-math)]: Likewise.
13646 [(--param max-inline-insns-recursive)]: Likewise.
13647 [(--param max-inline-recursive-depth)]: Likewise.
13648 [(-mno-text-section-literals)]: Likewise.
13650 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
13652 * doc/install.texi: Update for libgomp being renamed from "GNU
13653 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
13655 * doc/sourcebuild.texi: Likewise.
13657 2015-01-10 Anthony Green <green@moxielogic.com>
13659 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
13660 mul.x availability for moxiebox configuration.
13662 2015-01-09 Anthony Green <green@moxielogic.com>
13664 * config/moxie/moxie.md: Tabify assembly output.
13666 2015-01-09 Anthony Green <green@moxielogic.com>
13668 * config/moxie/moxie.md (CC_REG): Correct register definition.
13670 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
13672 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
13673 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
13676 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
13678 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
13680 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
13681 Jakub Jelinek <jakub@redhat.com>
13683 PR middle-end/64412
13684 * lto-streamer.h (lto_stream_offload_p): New declaration.
13685 * lto-streamer.c (lto_stream_offload_p): New variable.
13686 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
13687 at the same time as section_name_prefix.
13688 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
13689 if lto_stream_offload_p.
13690 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
13691 stream TREE_TARGET_OPTION if lto_stream_offload_p.
13692 (write_ts_function_decl_tree_pointers): Don't
13693 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
13694 * tree-streamer-in.c (unpack_value_fields): Don't stream
13695 TREE_TARGET_OPTION in if ACCEL_COMPILER.
13696 (lto_input_ts_function_decl_tree_pointers): Don't stream
13697 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
13698 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
13699 instead of section_name_prefix string comparisons.
13701 2015-01-09 Jakub Jelinek <jakub@redhat.com>
13703 PR rtl-optimization/64536
13704 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
13707 2015-01-09 Michael Collison <michael.collison@linaro.org>
13709 PR tree-optimization/64322
13710 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
13711 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
13713 2015-01-09 Tom de Vries <tom@codesourcery.com>
13715 PR rtl-optimization/64539
13716 * regcprop.c (kill_clobbered_values): Factor out of ...
13717 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
13718 instead of note_stores with kill_clobbered_value.
13720 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
13722 * ginclude/unwind-arm-common.h: Revert previous commit.
13724 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
13726 * config.gcc (arm*-*-freebsd*): New configuration.
13727 * config/arm/freebsd.h: New file.
13728 * config.host: Add extra components for arm*-*-freebsd*.
13729 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
13730 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
13732 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
13734 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
13736 * config/rs6000/t-rtems: Add e6500 multilibs.
13738 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
13740 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
13743 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
13745 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
13746 MULTILIB_EXCEPTIONS.
13748 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
13750 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
13751 MULTILIB_EXCEPTIONS.
13753 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
13755 * config/arm/t-rtems-eabi: Rename to...
13756 * config/arm/t-rtems: ...this.
13757 * config/arm/rtems-eabi.h: Rename to...
13758 * config/arm/rtems.h: ...this.
13759 * config.gcc (arm*-*-rtems*): Reflect changes above.
13761 2015-01-09 Richard Biener <rguenther@suse.de>
13763 PR tree-optimization/64410
13764 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
13766 (execute_update_addresses_taken): Deal with that.
13767 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
13768 loads/stores for complex variables.
13770 2015-01-09 Martin Liska <mliska@suse.cz>
13772 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
13774 (func_checker::compare_memory_operand): New function.
13775 (func_checker::compare_operand): Split case to newly
13777 (func_checker::compare_cst_or_decl): New function.
13778 (func_checker::compare_gimple_call): Identify
13780 (func_checker::compare_gimple_assign): Likewise.
13781 * ipa-icf-gimple.h: New function.
13783 2015-01-09 Martin Liska <mliska@suse.cz>
13786 * sreal.c (sreal::dump): Change unsigned format to signed for
13788 (sreal::to_double): Replace exp2 with scalbln.
13790 2015-01-09 Martin Liska <mliska@suse.cz>
13792 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
13793 * ipa-icf.c (sem_function::equals_private): Add support for target and
13794 (sem_item_optimizer::merge_classes): Remove redundant function
13795 optimization flags comparison.
13796 * tree.h (target_opts_for_fn): New function.
13798 2015-01-09 Tom de Vries <tom@codesourcery.com>
13800 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
13802 2015-01-09 Kito Cheng <kito@0xlab.org>
13804 PR rtl-optimization/64348
13805 * lra-constraints.c (split_reg): Fix caller-save store/restore
13806 instruction generation.
13808 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
13810 PR gcov-profile/61790
13811 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
13812 long long. Fallback to int64_t if host doesn't have long long and
13813 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
13815 2015-01-08 Jakub Jelinek <jakub@redhat.com>
13817 PR tree-optimization/63989
13818 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
13819 from 1000 to 10000.
13820 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
13821 (get_stridx): If we don't have a record for certain SSA_NAME,
13822 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
13823 constant offset, call get_stridx_plus_constant.
13824 (get_stridx_plus_constant): New function.
13825 (zero_length_string): Don't use get_stridx here.
13828 PR middle-end/64388
13829 * dse.c (struct insn_info): Mention frame_read set also
13830 before reload for tail calls on some targets.
13831 (scan_insn): Revert 2014-12-22 change. Set frame_read
13832 also before reload for tail calls if
13833 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
13834 instead of add_non_frame_wild_read for non-const/memset
13835 tail calls after reload.
13837 2015-01-08 Jason Merrill <jason@redhat.com>
13839 * ubsan.c (do_ubsan_in_current_function): New.
13840 (pass_ubsan::gate): Use it.
13841 * ubsan.h: Declare it.
13842 * convert.c (convert_to_integer): Use it.
13844 2015-01-08 Jakub Jelinek <jakub@redhat.com>
13847 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
13848 compare_code when it is unconditionally overwritten afterwards.
13849 Use ix86_reverse_condition instead of reverse_condition. Don't
13850 change code if *reverse_condition* returned UNKNOWN and don't
13851 swap ct/cf and negate diff in that case.
13853 2015-01-08 Mike Stump <mikestump@comcast.net>
13855 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
13856 (pass_tsan_O0::gate): Likewise.
13857 * extend.texi (Function Attributes): Add no_sanitize_thread
13860 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
13862 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
13863 for registering builtins.
13864 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
13865 add -fopenmp to the argv_obstack used when invoking
13866 compile_for_target.
13868 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
13869 add "-m32" or "-m64" to argv_obstack.
13870 (generate_host_descr_file): Likewise, when invoking host_compiler.
13871 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
13874 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
13876 * config/sh/sh-mem.cc: Use constant as second operand when emitting
13879 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
13882 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
13883 constant load if constant operand fits into I08.
13885 2015-01-08 Jakub Jelinek <jakub@redhat.com>
13888 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
13889 and TREE_THIS_VOLATILE for MEM_REFs.
13890 (build5_stat): Fix up initialization of TREE_READONLY and
13891 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
13893 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
13896 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
13897 of r for the second alternative of the destination operand.
13899 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
13902 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
13904 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
13906 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
13908 ([-fivar-visibility], [-fvisibility]): Likewise.
13910 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
13912 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
13913 the file where @code, @command, etc is more appropriate.
13915 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
13917 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
13918 of -mrecip= documentation.
13920 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13923 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
13924 correct reload handler if -m32 -mpowerpc64 is used.
13926 2015-01-06 Tom de Vries <tom@codesourcery.com>
13928 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
13930 2015-01-08 Christian Bruel <christian.bruel@st.com>
13933 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
13935 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13937 PR tree-optimization/63259
13938 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
13939 if optab exists for 16bit byteswap.
13941 2015-01-06 Jakub Jelinek <jakub@redhat.com>
13943 * opts.c (common_handle_option): Add support for
13944 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
13945 * doc/invoke.texi: Document -fno-sanitize=all,
13946 -f{,no-}sanitize-recover=all. Document that
13947 -fsanitize=float-cast-overflow is not enabled
13948 by -fsanitize=undefined. Fix up documentation
13949 of -f{,no-}sanitize-recover.
13951 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
13953 * config.gcc: Add Visium support.
13954 * configure.ac: Likewise.
13955 * configure: Regenerate.
13956 * doc/extend.texi (interrupt attribute): Add Visium.
13957 * doc/invoke.texi: Document Visium options.
13958 * doc/install.texi: Document Visium target.
13959 * doc/md.texi: Document Visium constraints.
13960 * common/config/visium: New directory.
13961 * config/visium: Likewise.
13963 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
13965 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
13966 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
13968 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
13970 * combine.c (combine_validate_cost): Do not count the cost of a
13971 split I2 twice. Do not display it twice in the dump, either.
13973 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
13975 Revert parts of r219199.
13976 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
13978 ([-Wtraditional]): Restore markup on <limits.h>.
13980 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
13983 * doc/invoke.texi: Document -Wsuggest-override.
13985 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
13987 PR rtl-optimization/64287
13988 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
13989 (process_options): Disable flag_ipa_ra if profiling.
13991 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
13993 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
13995 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
13997 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
13998 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
13999 put under #if TARGET_LOOPS guard.
14001 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
14003 * config/i386/i386.c (output_387_binary_op): Use std::swap.
14005 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
14007 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
14008 * rtl.h (refers_to_regno_p): Add overload.
14010 * bt-load.c: Likewise.
14011 * combine.c: Likewise.
14012 * df-scan.c: Likewise.
14013 * sched-deps.c: Likewise.
14014 * config/s390/s390.c: Likewise.
14015 * config/m32r/m32r.c: Likewise.
14016 * config/rs6000/spe.md: Likewise.
14017 * config/rs6000/rs6000.c: Likewise.
14018 * config/pa/pa.c: Likewise.
14019 * config/stormy16/stormy16.c: Likewise.
14020 * config/cris/cris.c: Likewise.
14021 * config/arc/arc.md: Likewise.
14022 * config/arc/arc.c: Likewise.
14023 * config/sh/sh.md: Likewise.
14024 * config/sh/sh.c: Likewise.
14025 * config/frv/frv.c: Likewise.
14027 2015-01-05 Jakub Jelinek <jakub@redhat.com>
14030 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
14031 call as cleanup of the whole body.
14032 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
14033 * tsan.c (replace_func_exit): New function.
14034 (instrument_func_exit): Moved earlier.
14035 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
14036 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
14038 (tsan_pass): Don't call instrument_func_exit.
14039 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
14040 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
14044 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
14045 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
14046 it to libubsan handler instead of EXPR. Fold comparisons earlier,
14047 if the result is integer_zerop, return NULL_TREE.
14048 * convert.c (convert_to_integer): Pass expr as ARG.
14050 PR tree-optimization/64465
14051 * tree-inline.c (redirect_all_calls): During inlining
14052 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
14053 changed the stmt to a non-throwing call.
14055 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
14057 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
14058 etc markup throughout the file.
14060 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14062 Enable experimental TSAN support for Ada.
14063 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
14065 2015-01-05 Jakub Jelinek <jakub@redhat.com>
14067 PR tree-optimization/64494
14068 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
14069 clear SSA_NAME_ANTI_RANGE_P flag.
14071 2015-01-05 Marek Polacek <polacek@redhat.com>
14073 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
14075 2015-01-05 Jakub Jelinek <jakub@redhat.com>
14077 Update copyright years.
14079 * gcc.c (process_command): Update copyright notice dates.
14080 * gcov-dump.c: Ditto.
14082 * doc/cpp.texi: Bump @copying's copyright year.
14083 * doc/cppinternals.texi: Ditto.
14084 * doc/gcc.texi: Ditto.
14085 * doc/gccint.texi: Ditto.
14086 * doc/gcov.texi: Ditto.
14087 * doc/install.texi: Ditto.
14088 * doc/invoke.texi: Ditto.
14090 * auto-profile.c, auto-profile.h: Fix up Copyright line.
14092 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
14094 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
14096 ([-fvtable-verify], [-fvtv-debug]): Likewise.
14097 ([-Wabi]): Likewise.
14098 ([-fmessage-length]): Likewise.
14099 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
14100 ([-Wno-discarded-qualifiers]): Likewise.
14101 ([-Wnodiscarded-array-qualifiers]): Likewise.
14102 ([-Wno-virtual-move-assign]): Likewise.
14103 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
14104 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
14105 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
14106 ([-fsanitize-undefined-trap-on-error]): Likewise.
14107 ([-floop-interchange]): Likewise.
14108 ([-ftree-coalesce-inlined-vars]): Likewise.
14109 ([-fvect-cost-model]): Likewise.
14110 ([-flto]): Likewise.
14111 ([--param]): Likewise.
14112 (Spec Files): Likewise.
14113 ([-mstrict-align]): Likewise.
14114 ([-mfix-cortex-a53-835769]): Likewise.
14115 ([-march], [-mtune]): Likewise.
14116 ([-mpic-register]): Likewise.
14117 ([-munaligned-access]): Likewise.
14118 ([-msp8]): Likewise.
14119 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
14120 (AVR Built-in Macros): Likewise.
14121 ([-mpreferred-stack-boundary]): Likewise.
14122 ([-mtune-crtl]): Likewise.
14123 ([-mashf]): Likewise.
14124 ([-mmcu=]): Likewise.
14125 ([-minrt]): Likewise.
14126 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
14127 ([-mupper-regs]): Likewise.
14128 ([-matomic-model]): Likewise.
14129 ([-mdiv]): Likewise.
14130 ([-mzdcbranch]): Likewise.
14131 ([-mdisable-callt]): Likewise.
14132 ([-msoft-float]): Likewise.
14133 ([-m8byte-align]): Likewise.
14134 ([-fstack-reuse]): Likewise.
14136 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
14138 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
14139 Fix markup, light copy-editing.
14140 ([-fauto-profile]): Rewrite to fix formatting and content
14143 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
14145 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
14146 Copy-edit description.
14147 ([-fisolate-erroneous-paths-attribute]): Likewise.
14148 * common.opt (fisolate-erroneous-paths-dereference):
14149 Copy-edit description.
14150 (fisolate-erroneous-paths-attribute): Likewise.
14152 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
14154 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
14157 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
14159 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
14160 ([-fvtv-debug]): Likewise.
14161 ([-Wc++-compat]): Likewise.
14162 ([-Wc++11-compat]): Likewise.
14163 ([-Wc++14-compat]): Likewise.
14164 ([-Wno-sized-deallocation]): Likewise.
14165 ([-femit-class-debug-always]): Likewise.
14166 ([-femit-struct-debug-detailed]): Likewise.
14167 ([-fno-keep-inline-dllexport]): Likewise.
14168 ([-fira-algorithm]): Likewise.
14169 ([-fira-region]): Likewise.
14170 ([-flra-remat]): Likewise.
14171 ([-fipa-ra]): Likewise.
14172 ([-fhoist-adjacent-loads]): Likewise.
14173 ([-fisolate-erroneous-paths-dereference]): Likewise.
14174 ([-fisolate-erroneous-paths-attribute]): Likewise.
14175 ([-ftree-switch-conversion]): Likewise.
14176 ([-ftree-tail-merge]): Likewise.
14177 ([-ftree-loop-if-convert]): Likewise.
14178 ([-ftree-loop-if-convert-stores]): Likewise.
14179 ([-ftree-loop-distribution]): Likewise.
14180 ([-ftree-loop-distribute-patterns]): Likewise.
14181 ([-flto-compression-level]): Likewise.
14182 ([-flto-report]): Likewise.
14183 ([-flto-report-wpa]): Likewise.
14184 ([-fuse-linker-plugin]): Likewise.
14185 ([-mfix-cortex-a53-835769]): Likewise.
14186 ([-mno-fix-cortex-a53-835769]): Likewise.
14187 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
14188 explicit listing; add a note to the discussion indicating they
14189 exist. Reorder table to group similar options. Add missing
14190 @opindex entries. Add @need commands throughout the table to
14191 allow it to be split across multiple pages.
14192 ([-m8bit-idiv]): Fix @opindex.
14193 ([-mavx256-split-unaligned-load]): Likewise.
14194 ([-mavx256-split-unaligned-store]): Likewise.
14195 ([-mstack-protector-guard]): Likewise.
14196 ([-mcpu=]): Likewise.
14197 ([-mcpu]): Likewise.
14198 ([-mpointer-size=]): Likewise.
14200 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
14202 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
14203 instead of `m' constraint. Likewise for unnamed movb comparison
14204 patterns using reg_before_reload_operand predicate.
14205 * config/pa/predicates.md (reg_before_reload_operand): Tighten
14206 predicate to reject register index and LO_SUM DLT memory forms
14209 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
14211 * doc/invoke.texi (Option Summary): Fix spelling of
14212 -fdevirtualize-at-ltrans.
14213 ([-fdevirtualize]): Fix markup.
14214 ([-fdevirtualize-speculatively]): Fix typo.
14215 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
14216 implementor-speaky.
14217 * common.opt (fdevirtualize-at-ltrans): Likewise.
14218 * ipa-devirt.c: Fix typos in comments throughout the file.
14219 (ipa_devirt): Fix typos in format strings for dump output.
14221 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
14223 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
14224 discussion of defaults, light copy-editing.
14226 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14228 * tsan.c (instrument_expr): corrected previous checkin.
14230 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14232 Instrument bit field and unaligned accesses for TSAN.
14233 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
14234 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
14235 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
14236 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
14237 unaligned memory regions.
14239 2015-01-01 Anthony Green <green@moxielogic.com>
14241 * config/moxie/predicates.md (moxie_general_movsrc_operand):
14242 Restrict move source register offsets to 16 bits.
14244 Copyright (C) 2015 Free Software Foundation, Inc.
14246 Copying and distribution of this file, with or without modification,
14247 are permitted in any medium without royalty provided the copyright
14248 notice and this notice are preserved.