1 2015-08-21 Bin Cheng <bin.cheng@arm.com>
3 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
4 loop if EXPR is simplified to const value.
6 2015-08-21 Yury Gribov <y.gribov@samsung.com>
8 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
9 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
11 2015-08-21 Richard Biener <rguenther@suse.de>
14 * gimple-fold.c (replace_stmt_with_simplification): Assert
15 seq is empty when replacing a call with itself but different
17 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
18 a call require that it is const.
20 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
23 * builtins.c (get_object_alignment_2): Adjust.
24 * varasm.c (align_variable): Likewise.
25 (get_variable_align): Likewise.
26 (build_constant_desc): Likewise.
27 (force_const_mem): Likewise.
28 * doc/tm.texi.in: Likewise.
29 * doc/tm.texi: Regenerate.
31 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33 * genconfig.c (main): Always define HAVE_cc0.
34 * recog.c (rest_of_handle_peephole2): Adjust.
36 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
38 * reorg.c (relax_delay_slots): Don't use #if to check value of
41 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
43 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
44 * targhooks.c (default_have_conditional_execution): Adjust.
46 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
48 * rtl.h (rtvec_all_equal_p): Declare.
49 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
50 * rtl.c (rtvec_all_equal_p): New function.
51 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
52 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
53 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
54 * config/arm/arm.c (neon_vdup_constant): Likewise.
55 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
56 * config/tilegx/constraints.md (W, Y): Likewise.
57 * config/tilepro/constraints.md (W, Y): Likewise.
58 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
59 (classify_immediate): Use unwrap_const_vec_duplicate.
60 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
61 (reg_or_v2s8bit_operand): Likewise.
62 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
63 (reg_or_v4s8bit_operand): Likewise.
65 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
67 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
68 (vec_shasigma_be): New #define.
69 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
73 (VPMSUM): New BU_P8V_OVERLOAD_2.
74 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
75 entries for VEC_MADD and VEC_VPMSUM.
77 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
79 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
80 Multiply argument avr_n_flash by 64 to match unit of "KiB".
81 (avr_pgm_check_var_decl): Same.
83 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
85 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
86 initialization of HFmode scalar type (float16_t) to...
87 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
90 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
92 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
93 having an -mfp16-format.
95 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
97 * config/i386/predicates.md (vector_all_ones_operand): Use
98 CONSTM1_RTX to simplify definition.
100 2015-08-20 Richard Biener <rguenther@suse.de>
102 * toplev.c (compile_file): Remove loop calling late_global_decl
104 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
105 on decls we assembled.
107 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
109 * common/config/aarch64/aarch64-common.c
110 (AARCH64_CPU_NAME_LENGTH): Delete.
111 (aarch64_option_extension): New.
112 (all_extensions): Likewise.
113 (processor_name_to_arch): Likewise.
114 (arch_to_arch_name): Likewise.
116 (all_architectures): Likewise.
117 (aarch64_get_extension_string_for_isa_flags): Likewise.
118 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
120 * config/aarch64/aarch64-protos.h
121 (aarch64_get_extension_string_for_isa_flags): New.
122 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
123 (aarch64_option_print): Get the string to print from
124 aarch64_get_extension_string_for_isa_flags.
125 (aarch64_declare_function_name): Likewise.
126 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
127 (MCPU_TO_MARCH_SPEC): This.
128 (ASM_CPU_SPEC): Use it.
129 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
130 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
131 (EXTRA_SPEC_FUNCTIONS): Use it.
133 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
135 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
136 expansion when !ISA_HAS_LWL_LWR.
137 (mips_block_move_straight): Update the size of elements copied to
138 account for alignment when !ISA_HAS_LWL_LWR.
139 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
141 2015-08-19 Jiong Wang <jiong.wang@arm.com>
143 * expr.c (expand_expr_real_2): Check gimple statement during
146 2015-08-19 Magnus Granberg <zorry@gentoo.org>
148 * common.opt (fstack-protector): Initialize to -1.
149 (fstack-protector-all): Likewise.
150 (fstack-protector-strong): Likewise.
151 (fstack-protector-explicit): Likewise.
152 * configure.ac: Add --enable-default-ssp.
153 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
154 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
156 * doc/install.texi: Document --enable-default-ssp.
157 * config.in: Regenerated.
158 * configure: Likewise.
160 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
162 PR rtl-optimization/64164
163 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
164 (parm_in_stack_slot_p): ... this. Disregard mode, what
165 matters is whether the parm will live in a pseudo or a stack
167 (expand_one_ssa_partition): Deal with params without a default
169 * cfgexpand.h: Renamed function declaration.
170 * tree-ssa-coalesce.c: Adjust.
171 * function.c (split_complex_args): Allocate stack slot for
172 unassigned parms before splitting.
173 (parm_in_unassigned_mem_p): New. Use it instead of
174 parm_maybe_byref_p throughout this file.
175 (assign_parm_setup_block): Use it. Accept pseudos in the
177 (assign_parm_setup_reg): Drop BLKmode requirement.
178 (assign_parm_setup_stack): Allocate and fill in the address of
179 unassigned MEM parms.
181 2015-08-19 David Sherwood <david.sherwood@arm.com>
183 * genmodes.c (emit_mode_unit_size_inline): New function.
184 (emit_mode_unit_precision_inline): New function.
185 (emit_insn_modes_h): Emit new #define. Emit new functions.
186 (emit_mode_unit_size): New function.
187 (emit_mode_unit_precision): New function.
188 (emit_mode_adjustments): Add mode_unit_size adjustments.
189 (emit_insn_modes_c): Emit new arrays.
190 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
191 use new inline methods.
193 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
195 * config/aarch64/aarch64.c (bit_count): Delete prototype
197 (aarch64_print_operand): Use popcount_hwi instead of the above.
199 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
201 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
204 2015-08-19 Marek Polacek <polacek@redhat.com>
207 * gimple-ssa-isolate-paths.c
208 (insert_trap_and_remove_trailing_statements): Rename to ...
209 (insert_trap): ... this. Don't remove trailing statements; split
211 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
213 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
216 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
217 conditionalize the whole on __GNUC__. Add fallback code
218 depending neither on undefined nor implementation-defined behaviour.
220 2015-08-19 Jiong Wang <jiong.wang@arm.com>
222 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
223 whitespaces with tab.
225 2015-08-19 Florian Weimer <fweimer@redhat.com>
227 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
228 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
229 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
230 Move Name_Ids instantiation to the Prj.Proc package, to avoid
233 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
235 * config/arm/arm.c (bounds_check): Use %wd print format
236 for HOST_WIDE_INT arguments.
238 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
240 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
241 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
242 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
243 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
244 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
245 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
246 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
247 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
248 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
251 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
253 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
254 function.c, graphite-scop-detection.c, haifa-sched.c,
255 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
256 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
257 varasm.c: Remove typedefs of structs.
259 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
261 * config/rs6000/altivec.h (vec_adde): New define.
262 (vec_addec): Likewise.
263 (vec_double): Likewise.
264 (vec_bperm): Likewise.
266 * config/rs6000/rs6000-builtin.def (ADDE): New
267 BU_ALTIVEC_OVERLOAD_3.
269 (DOUBLE): New BU_VSX_OVERLOAD_1.
270 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
271 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
272 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
273 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
274 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
275 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
276 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
277 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
278 and P8V_BUILTIN_VEC_VBPERMQ.
280 2015-08-18 Jason Merrill <jason@redhat.com>
282 * print-tree.c (print_node): Handle TREE_BINFO.
284 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
287 * builtins.c (expand_builtin_signbit): Add asserts to make sure
288 we can expand BUILT_IN_SIGNBIT inline.
289 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
290 * doc/extend.texi: Document the type-generic __builtin_signbit.
292 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
294 PR rtl-optimization/67218
295 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
296 (simplify_unary_operation_1): Use it.
298 2015-08-18 Marek Polacek <polacek@redhat.com>
301 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
302 if the call isn't valid.
303 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
304 gimple_call_builtin_p.
305 (call_may_clobber_ref_p_1): Likewise.
306 (stmt_kills_ref_p): Likewise.
308 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
310 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
311 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
312 (mips_hard_regno_scratch_ok): Likewise.
313 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
314 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
316 2015-08-18 Bin Cheng <bin.cheng@arm.com>
318 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
319 (determine_value_range): Call refine_value_range_using_guard for
320 each loop initial condition to improve value range.
322 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
324 * config/i386/i386.c: Remove include of fibheap.h.
326 2015-08-17 Richard Biener <rguenther@suse.de>
328 PR tree-optimization/67221
329 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
330 (sccvn_dom_walker::before_dom_children): Mark backedges of
331 non-executable blocks as not executable.
333 2015-08-17 David Sherwood <david.sherwood@arm.com>
335 * config/arm/arm.c (neon_element_bits): Replace call to
336 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
337 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
338 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
339 (neon_vdup_lane<mode>): Likewise.
340 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
341 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
342 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
343 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
344 * config/spu/spu.c (arith_immediate_p): Likewise.
345 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
346 * expr.c (expand_expr_real_2): Likewise.
347 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
348 * simplify-rtx.c (simplify_immed_subreg): Likewise.
349 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
350 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
352 * fold-const.c (fold_binary_loc): Replace call to
353 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
354 GET_MODE_UNIT_PRECISION (m).
356 2015-08-17 Mike Stump <mikestump@comcast.net>
358 * config/arm/arm.c (arm_block_move_unaligned_straight):
359 Emit normal move instead of unaligned load when source or destination
360 are appropriately aligned.
362 2015-08-17 Richard Biener <rguenther@suse.de>
363 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
366 * match.pd (div (coss (op @0) : New simplifier.
368 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
370 PR rtl-optimization/64164
373 PR rtl-optimization/67000
376 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
377 * tree-ssa-copyrename.c: Removed.
378 * opts.c (default_options_table): Drop -ftree-copyrename. Add
379 -ftree-coalesce-vars.
380 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
381 * common.opt (ftree-copyrename): Ignore.
382 (ftree-coalesce-inlined-vars): Likewise.
383 * doc/invoke.texi: Remove the ignored options above.
384 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
385 * tree-ssa-coalesce.h: ... here.
386 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
387 headers required by it.
388 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
389 across variables when flag_tree_coalesce_vars. Check register
390 use and promoted modes to allow coalescing. Do not coalesce
391 maybe-byref parms with SSA_NAMEs of other variables, or
392 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
393 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
394 with its member functions to tree-ssa-coalesce.c.
395 (var_map_base_init): Likewise. Renamed to
396 compute_samebase_partition_bases.
397 (partition_view_normal): Drop want_bases parameter.
398 (partition_view_bitmap): Likewise.
399 * tree-ssa-live.h: Adjust declarations.
400 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
401 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
402 default defs at the entry point.
403 (dump_part_var_map): New.
404 (compute_optimized_partition_bases): New, called by...
405 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
406 of compute_samebase_partition_bases. Adjust.
407 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
408 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
409 (ssa_default_def_partition): New.
410 (get_rtl_for_parm_ssa_default_def): New.
411 (align_local_variable, add_stack_var): Support anonymous SSA
413 (defer_stack_allocation): Likewise. Declare earlier.
414 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
415 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
416 Do no record deferred-allocation marker in
417 SA.partition_to_pseudo.
418 (expand_stack_vars): Adjust check for the marker in it.
419 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
420 redundant MEM attr setting.
421 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
423 (expand_one_stack_var): ... this. New wrapper to check and
424 skip already expanded SSA partitions.
425 (record_alignment_for_reg_var): New, factored out of...
426 (expand_one_var): ... this.
427 (expand_one_ssa_partition): New.
428 (adjust_one_expanded_partition_var): New.
429 (expand_one_register_var): Check and skip already expanded SSA
431 (expand_used_vars): Don't create DECLs for anonymous SSA
432 names. Expand all SSA partitions, then adjust all SSA names.
433 (pass::execute): Replace the loops that set
434 SA.partition_to_pseudo from partition leaders and cleared
435 DECL_RTL for multi-location variables, and that which used to
436 rename vars and set attrs, with one that clears DECL_RTL and
437 checks that PARMs and RESULTs default_defs match DECL_RTL.
438 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
439 * emit-rtl.c: Include stor-layout.h.
440 (set_reg_attrs_for_parm): Handle NULL decl.
441 (set_reg_attrs_for_decl_rtl): Take mode from expression if
443 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
444 rather than its possibly-NULL DECL.
445 * explow.c (promote_ssa_mode): New.
446 * explow.h (promote_ssa_mode): Declare.
447 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
448 (read_complex_part): Export.
449 * expr.h (read_complex_part): Declare.
450 * cfgexpand.h (parm_maybe_byref_p): Declare.
451 * function.c: Include cfgexpand.h.
452 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
453 (use_register_for_parm_decl): Wrapper for the above to
454 special-case the result_ptr.
455 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
456 (split_complex_args): Take assign_parm_data_all argument.
457 Pass it to rtl_for_parm. Set up rtl and context for split
458 args. Reset complex parm before fetching its default decl
460 (assign_parms_unsplit_complex): Use the default-def complex
461 parm rtl if it matches the components.
462 (assign_parms_augmented_arg_list): Adjust.
463 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
464 multiple locations. Recognize split complex args.
465 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
466 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
467 (assign_parm_setup_block): Prefer SSA-assigned location, and
468 fill in its address if the memory location of a maybe-byref
469 parm was not assigned by cfgexpand.
470 (assign_parm_setup_reg): Likewise. Adjust its mode as
471 needed. Use entry_parm for equiv if stack_parm is NULL. Make
472 sure passed_pointer parms don't need conversion. Copy address
474 (assign_parm_setup_stack): Prefer SSA-assigned location.
475 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
476 rtl before testing for pointer bounds. Special-case result_ptr.
477 (expand_function_start): Maybe reset DECL_RTL of result.
478 Prefer SSA-assigned location for result and static chain.
479 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
480 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
481 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
482 anonymous SSA names. Use promote_ssa_mode.
483 (get_temp_reg): Likewise.
484 (remove_ssa_form): Adjust.
485 * stor-layout.c (layout_decl): Don't set mem attributes of
487 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
488 and get its reg_usage for reg invalidation.
489 (compute_bb_dataflow): Pass it insn.
490 (emit_notes_in_bb): Likewise.
492 2015-08-14 Marek Polacek <polacek@redhat.com>
494 * tree-core.h (tree_base): Fix typo.
496 2015-08-14 Marek Polacek <polacek@redhat.com>
499 * gimple.c (infer_nonnull_range_by_attribute): Check that the
500 nonnull argument position is not outside function arguments.
502 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
505 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
506 'lconst_atomic' with 'const_atomic'.
507 (atomic_fetch_<optab><mode>): Likewise.
508 (atomic_<optab>_fetch<mode>): Likewise.
509 * config/aarch64/iterators.md (lconst-atomic): Move below
513 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
514 Bernd Schmidt <bernds@codesourcery.com>
516 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
518 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
519 (DWARF2_DEBUGGING_INFO): Don't define.
520 * debug.h (dwarf2_lineno_debug_hooks): Declare.
521 * toplev.c (process_options): Add a case for it.
522 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
523 (dwarf2out_init): Skip most initializations if
524 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
526 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
527 DWARF2_LINENO_DEBUGGING_INFO.
528 * opts.c (set_debug_level): Likewise.
530 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
532 * config/arm/types.md (is_neon_type): Add missing types.
534 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
536 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
538 * config/i386/i386.c (PTA_SKYLAKE): New macros.
539 (processor_alias_table): Add skylake description.
540 (enum processor_model): Add skylake processor.
541 (arch_names_table): Add skylake record.
542 * doc/invoke.texi: Add skylake item.
544 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
546 * ira-int.h: Include recog.h.
547 * ira-build.c: Don't include recog.h.
548 * ira-color.c: Likewise.
549 * ira-conflicts.c: Likewise.
550 * ira-costs.c: Likewise.
551 * ira-emit.c: Likewise.
552 * ira-lives.c: Likewise.
554 * sched-deps.c: Likewise.
555 * sel-sched.c: Likewise.
556 * target-globals.c: Likewise.
558 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
561 * reload1.c (elimination_costs_in_insn): Make it obvious to the
562 compiler that the n_dups and n_operands loop bounds are invariant.
564 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
566 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
567 expressions in A and B.
569 2015-08-13 Richard Biener <rguenther@suse.de>
571 * tree.c (nonnull_arg_p): Move from ...
572 * tree-vrp.c (nonnull_arg_p): ... here.
573 * tree.h (nonnull_arg_p): Declare.
574 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
575 here, register ptr != 0 for nonnull_arg_p pointer arguments.
576 Properly initialize static chain and by-reference result pointer.
577 (run_scc_vn): Adjust.
579 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
581 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
584 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
586 * config/aarch64/aarch64-protos.h
587 (aarch64_gen_atomic_cas): Declare.
588 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
589 Choose appropriate instruction pattern for the target.
590 (aarch64_gen_atomic_cas): New.
591 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
592 (atomic_compare_and_swap<mode>_1): Rename to
593 aarch64_compare_and_swap<mode>. Fix some indentation.
594 (aarch64_compare_and_swap<mode>_lse): New.
595 (aarch64_atomic_cas<mode>): New.
597 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
599 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
602 2015-08-13 Richard Biener <rguenther@suse.de>
604 PR tree-optimization/67191
605 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
606 assert we value-numbered last stmts operand because it can validly
607 trigger for unreachable code.
609 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
611 PR rtl-optimization/67103
612 * ifcvt.c (noce_try_store_flag_constants): Move
613 x = (-(test != 0) & (b - a)) + a transformation to...
614 (noce_try_cmove): ... Here. Try it if normal conditional
617 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
619 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
621 * config/mips/mips.md (processor): Remove w32 and w64.
623 2015-08-13 Richard Biener <rguenther@suse.de>
625 PR tree-optimization/66502
626 PR tree-optimization/67167
627 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
629 (vn_phi_lookup): Adjust.
630 (vn_phi_insert): Likewise.
631 (visit_phi): Prefer to value-number to another PHI node
632 over value-numbering to a PHI argument.
633 (init_scc_vn): Mark DFS back edges.
635 2015-08-13 Richard Biener <rguenther@suse.de>
637 * gimple.h (gcall::code_): New constant static member.
638 (gcond::code_): Likewise.
639 * gimple.c (gcall::code_): Define.
640 (gcond::code_): Likewise.
641 (is_a_helper <const gcond *>): Add.
642 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
643 and forward to a new gcall overload with less checking and a
644 cheaper way to access the operand.
645 (gimple_call_lhs_ptr): Likewise.
646 (gimple_call_set_lhs): Likewise.
647 (gimple_call_internal_p): Likewise.
648 (gimple_call_with_bounds_p): Likewise.
649 (gimple_call_set_with_bounds): Likewise.
650 (gimple_call_internal_fn): Likewise.
651 (gimple_call_set_ctrl_altering): Likewise.
652 (gimple_call_ctrl_altering_p): Likewise.
653 (gimple_call_fntype): Likewise.
654 (gimple_call_fn): Likewise.
655 (gimple_call_fn_ptr): Likewise.
656 (gimple_call_set_fndecl): Likewise.
657 (gimple_call_fndecl): Likewise.
658 (gimple_call_chain): Likewise.
659 (gimple_call_num_args): Likewise.
660 (gimple_call_arg): Likewise.
661 (gimple_call_arg_ptr): Likewise.
662 (gimple_call_set_arg): Likewise.
663 (gimple_call_noreturn_p): Likewise.
664 (gimple_cond_code): Likewise.
665 (gimple_cond_lhs): Likewise.
666 (gimple_cond_rhs): Likewise.
667 (gimple_has_lhs): Reduce checking.
669 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
672 * match.pd (div (mult @0 @1) @1) : New simplifier.
674 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
677 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
678 predicate to allow construction of vector constants using the
679 VSLDOI vector shift instruction.
681 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
684 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
685 the number of bytes to be shifted left and filled in with either
686 all zero or all one bits.
687 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
689 (output_vec_const_move): On power8, generate XXLORC to generate
690 a vector constant with all 1's. Do a split if we need to use a
693 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
694 properly test for the MSB.
696 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
697 vector constants that can be created with VSLDOI.
699 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
702 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
703 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
704 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
705 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
706 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
707 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
708 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
709 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
710 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
712 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
714 * config/xtensa/constraints.md (define_constraint "Y"): New
716 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
717 * config/xtensa/linux.h (ASM_SPEC): Likewise.
718 * config/xtensa/predicates.md (move_operand): Match constants
719 and symbols in the presence of TARGET_AUTO_LITPOOLS.
720 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
721 immediate references to TLS data.
722 (xtensa_emit_move_sequence): Don't force constants to memory in
723 the presence of TARGET_AUTO_LITPOOLS.
724 (print_operand): Add 'y' format, same as default, but capable of
725 printing SF mode constants as well.
726 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
727 (movsf_internal): Add movi pattern that loads literal.
728 (movsf, movdf): Don't force constants to memory in the presence
729 of TARGET_AUTO_LITPOOLS.
730 (movdf_internal): Add 'Y' constraint.
731 * config/xtensa/xtensa.opt (mauto-litpools): New option.
732 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
734 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
736 * config/arm/arm-fpus.def: Replace booleans with feature flags.
738 * config/arm/arm.c (ARM_FPU): Update macro.
739 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
740 (TARGET_FP16): Likewise.
741 (TARGET_CRYPTO): Likewise.
742 (TARGET_NEON): Likewise.
743 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
746 2015-08-12 Tom de Vries <tom@codesourcery.com>
750 * doc/install.texi: Remove --with_host_libstdcxx item. Update
751 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
752 accordingly. Mention default for --with-stage1-ldflags.
754 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
756 * config/arm/arm.h (arm_fpu_feature_set): New.
757 (ARM_FPU_FSET_HAS): New.
761 (FPU_FL_CRYPTO): New.
763 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
765 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
766 after -mcmodel=large -fPIC sorry.
768 2015-08-12 Richard Biener <rguenther@suse.de>
770 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
771 comparison operand order and commutative ternary op operand order.
772 (sccvn_dom_walker::cond_stack): New state to track temporary
774 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
776 (sccvn_dom_walker::record_cond): Add a single temporary conditional
778 (sccvn_dom_walker::record_conds): Add a temporary conditional
779 expressions and all related expressions also true/false.
780 (sccvn_dom_walker::before_dom_children): Record temporary
781 expressions based on the controlling condition of a single
782 predecessor. When trying to simplify a conditional statement
783 lookup expressions we might have inserted earlier.
785 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
788 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
789 to ARM core registers.
791 2015-08-12 Nathan Sidwell <nathan@acm.org>
793 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
794 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
796 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
798 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
800 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
802 2015-08-12 Richard Biener <rguenther@suse.de>
804 * gimple.h (remove_pointer): New trait.
805 (GIMPLE_CHECK2): New inline template function.
806 (gassign::code_): New constant static member.
807 (is_a_helper<const gassign *>): Add.
808 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
809 and forward to a new gassign overload with less checking and a
810 cheaper way to access the operand.
811 (gimple_assign_lhs_ptr): Likewise.
812 (gimple_assign_set_lhs): Likewise.
813 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
815 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
817 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
819 (gimple_assign_rhs_code): Likewise.
820 * gimple.c (gassign::code_): Define.
822 2015-08-12 Richard Biener <rguenther@suse.de>
824 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
825 Eliminate edges marked as not executable by SCCVN.
826 * tree-ssa-sccvn.c: Include gimple-iterator.h.
827 (cond_dom_walker): Rename to sccvn_dom_walker.
828 (sccvn_dom_walker::before_dom_children): Value-number defs
830 (run_scc_vn): Remove loop value-numbering all SSA names.
831 Drop not visited SSA names to varying.
833 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
835 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
836 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
837 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
838 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
839 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
840 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
841 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
842 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
843 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
845 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
848 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
849 to enum feature_priority and feature_list.
850 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
853 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
855 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
858 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
862 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
863 account when deciding what was the command-line status.
865 2015-08-11 Nathan Sidwell <nathan@acm.org>
867 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
869 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
870 we're not the only contributor to target phi.
872 2015-08-11 Jiong Wang <jiong.wang@arm.com>
874 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
877 2015-08-11 Tom de Vries <tom@codesourcery.com>
879 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
881 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
883 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
885 * config/i386/i386.md (cpu): Remove knl.
887 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
891 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
893 * omp-low.c (oacc_process_reduction_data): Remove handline of
894 GOMP_DEVICE_HOST_NONSHM.
896 * lto-streamer-in.c (lto_input_mode_table): Adjust to
897 GET_MODE_INNER changes.
899 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
900 Ilya Verbin <ilya.verbin@intel.com>
902 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
905 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
907 * doc/options.texi (EnabledBy): Document that the argument must be
909 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
910 Not enabled by -Wall.
911 * optc-gen.awk: Give nicer error messages. Detect if the argument
912 of EnabledBy is not a Common option.
913 * common.opt (Wnull-dereference): Not enabled by -Wall.
914 * opt-functions.awk (lang_enabled_by): Nicer error messages.
916 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
918 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
919 model == 0x4f as Broadwell.
921 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
923 PR rtl-optimization/67028
924 * combine.c (simplify_comparison): Fix comment. Rearrange code.
925 Add test to see if a const_int fits in the new mode.
927 2015-08-07 DJ Delorie <dj@redhat.com>
929 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
931 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
933 PR rtl-optimization/67029
934 * ira-color.c: Include "recog.h" before including "ira-int.h".
935 * target-globals.c: Likewise.
936 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
937 adds an alternative_mask argument and use it instead of
938 preferred_alternatives.
939 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
940 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
941 * sched-deps.c: Include "ira-int.h" after including "ira.h".
942 (sched_analyze_insn): Update call to
943 ira_implicitly_set_insn_hard_regs.
944 * sel-sched.c: Include "ira-int.h" after including "ira.h".
945 (implicit_clobber_conflict_p): Update call to
946 ira_implicitly_set_insn_hard_regs.
948 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
950 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
952 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
955 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
956 currently_expanding_to_rtl is set.
958 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
960 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
961 * configure: Regenerate.
963 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
964 Jiong Wang <jiong.wang@arm.com>
966 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
967 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
968 (REG_CLASS_NAMES): Likewise.
969 (REG_CLASS_CONTENTS): Likewise.
970 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
971 (aarch64_register_move_cost): Likewise.
972 (aarch64_load_symref_appropriately): Invoke the new added pattern if
974 * config/aarch64/constraints.md (Uc0): New constraint.
976 2015-08-06 Jiong Wang <jiong.wang@arm.com>
978 * config/aarch64/constraints.md (Usf): Add the test of
979 aarch64_is_noplt_call_p.
981 2015-08-06 Jiong Wang <jiong.wang@arm.com>
983 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
985 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
986 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
987 (call_symbol): Likewise.
989 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
991 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
992 for vectorizing multiplication patterns.
993 * tree-vectorizer.h: Adjust the number of patterns.
995 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
997 * config/i386/sse.md (*vec_concatv2df): Declare added
998 alternatives as sselog type.
1000 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1002 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
1005 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1007 * config/s390/s390.c (s390_expand_tbegin): Expand either
1008 tbegin_1_z13 or tbegin_1 depending on VX flag.
1009 * config/s390/s390.md ("tbegin_1_z13"): New expander.
1011 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1013 * config/s390/s390.opt: Clarify description for -mzvector
1014 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
1017 2015-08-06 Richard Biener <rguenther@suse.de>
1019 * gimple.h (gimple_call_set_fn): Access op member directly.
1020 (gimple_call_chain_ptr): Likewise.
1021 (gimple_call_set_chain): Likewise.
1022 (gimple_cond_lhs_ptr): Likewise.
1023 (gimple_cond_set_lhs): Likewise.
1024 (gimple_cond_rhs_ptr): Likewise.
1025 (gimple_cond_set_rhs): Likewise.
1026 (gimple_cond_true_label): Likewise.
1027 (gimple_cond_set_true_label): Likewise.
1028 (gimple_cond_set_false_label): Likewise.
1029 (gimple_cond_false_label): Likewise.
1030 (gimple_label_label): Likewise.
1031 (gimple_label_set_label): Likewise.
1032 (gimple_goto_set_dest): Likewise.
1033 (gimple_asm_input_op): Likewise.
1034 (gimple_asm_input_op_ptr): Likewise.
1035 (gimple_asm_set_input_op): Likewise.
1036 (gimple_asm_output_op): Likewise.
1037 (gimple_asm_output_op_ptr): Likewise.
1038 (gimple_asm_set_output_op): Likewise.
1039 (gimple_asm_clobber_op): Likewise.
1040 (gimple_asm_set_clobber_op): Likewise.
1041 (gimple_asm_label_op): Likewise.
1042 (gimple_asm_set_label_op): Likewise.
1043 (gimple_switch_index): Likewise.
1044 (gimple_switch_index_ptr): Likewise.
1045 (gimple_return_retval_ptr): Likewise.
1046 (gimple_return_retval): Likewise.
1047 (gimple_return_set_retval): Likewise.
1048 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
1049 (gimple_switch_label): Likewise.
1050 (gimple_switch_set_label): Likewise.
1052 2015-08-06 Richard Biener <rguenther@suse.de>
1054 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
1055 bool comparison canonicalization and restrict to integers.
1057 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
1059 * coretypes.h (enum symbol_visibility): Relocate here.
1060 * flag-types.h (enum symbol_visibility): Remove.
1061 * tree-core.h (enum symbol_visibility): Remove.
1063 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
1066 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
1067 for no_split_stack function attribute along with
1069 (rs6000_expand_split_stack_prologue): Likewise.
1071 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1072 Jeff Law <law@redhat.com>
1075 * doc/invoke.texi (Wnull-dereference): New.
1076 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
1077 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
1078 Warn for potential NULL dereferences.
1079 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
1080 * ubsan.c (instrument_nonnull_arg): Call
1081 infer_nonnull_range_by_attribute.
1082 (instrument_nonnull_return): Likewise.
1083 * common.opt (Wnull-dereference); New.
1084 * gimple.c (infer_nonnull_range): Remove bool arguments.
1085 (infer_nonnull_range_by_dereference): New.
1086 (infer_nonnull_range_by_attribute): New.
1087 * gimple.h: Update declarations.
1089 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
1091 * gensupport.c (sequence_num): Replace with...
1092 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
1093 ...these new variables.
1094 (init_rtx_reader_args_cb): Update accordingly.
1095 (get_num_code_insns): Likewise.
1096 (read_md_rtx): Rework to use a while loop and get_c_test.
1097 Use the new counters. Remove redundant DEFINE_SUBST case.
1098 * genoutput.c (gen_split): Delete.
1099 (main): Don't call it.
1101 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
1103 * gensupport.h (get_c_test): Declare.
1104 * gensupport.c (get_c_test): New function.
1105 * genconditions.c (main): Use it.
1106 * genrecog.c (validate_pattern): Likewise.
1107 (match_pattern_1): Likewise. Remove c_test argument.
1108 (match_pattern): Update accordingly and remove c_test argument.
1109 (main): Update accordingly.
1111 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
1113 * gensupport.h (get_num_insn_codes): Declare.
1114 * gensupport.c (get_num_insn_codes): New function.
1115 * genattrtab.c (optimize_attrs): Rename max_insn_code to
1117 (main): Likewise. Use get_num_insn_codes.
1118 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
1120 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
1123 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
1124 is zero- rather than sign-extended.
1126 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
1128 * target-insns.def (can_extend): Delete.
1130 2015-08-05 Richard Biener <rguenther@suse.de>
1132 PR tree-optimization/67121
1133 * tree-if-conv.c (combine_blocks): Clear range-info produced
1134 by stmts no longer executed conditionally.
1136 2015-08-05 Nick Clifton <nickc@redhat.com>
1138 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
1139 to allow identical far pointers to remain.
1141 2015-08-05 Richard Biener <rguenther@suse.de>
1144 * match.pd: Compare address bases with == if they are decls
1145 or SSA names, not operand_equal_p. Otherwise fail.
1147 2015-08-05 Richard Biener <rguenther@suse.de>
1149 PR tree-optimization/67055
1150 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
1153 * g++.dg/torture/pr67055.C: New testcase.
1155 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
1157 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
1159 (define_attr "enabled"): Handle avx521vl and noavx512vl.
1160 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
1161 AVX-512 alternative out of SSE.
1162 (define_insn "*vec_concatv2df"): Ditto.
1164 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
1166 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
1167 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
1168 CODE_FOR_avx_ptestv4di.
1169 * config/i386/sse.md (define_mode_iterator V_AVX): New.
1170 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
1171 (define_insn "avx_ptest256"): Merge this ...
1172 (define_insn "sse4_1_ptest"): And this ...
1173 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
1175 2015-08-05 Richard Biener <rguenther@suse.de>
1177 PR tree-optimization/67109
1178 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
1179 against too big groups. Print whether this is a load or store
1180 group. Rename from ...
1181 (vect_analyze_group_access): ... this which is now a wrapper
1182 dissolving an invalid group.
1183 (vect_analyze_data_ref_accesses): Print whether this is a load
1186 2015-08-05 Richard Biener <rguenther@suse.de>
1189 * match.pd: Guard const_binop result checking against NULL_TREE
1192 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
1194 * cse.c (cse_insn): Restoring old behaviour for src_eqv
1195 when dest and value in the REG_EQUAL are same and dest
1198 2015-08-04 Anatoly Sokolov <aesok@post.ru>
1200 * config/moxie/moxie.h (PRINT_OPERAND,
1201 PRINT_OPERAND_ADDRESS): Remove macros.
1202 * config/moxie/moxie-protos.h (moxie_print_operand,
1203 moxie_print_operand_address): Remove declaration.
1204 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
1205 TARGET_PRINT_OPERAND_ADDRESS): Define.
1206 (moxie_print_operand, moxie_print_operand_address): Make static.
1208 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1211 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
1212 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
1214 2015-08-04 Richard Biener <rguenther@suse.de>
1216 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
1218 (dt_operand::gen_gimple_expr): Adjust.
1220 2015-08-04 Richard Biener <rguenther@suse.de>
1222 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
1223 bool compares on RHS.
1224 * match.pd: Add X ==/!= !X is false/true pattern.
1226 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
1228 * config/aarch64/aarch64.c: Change inner loop statement cost
1229 to be consistent with other targets.
1231 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
1233 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
1236 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
1238 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
1239 (machine_function): Remove pseudos field.
1241 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1243 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
1244 Exit early and use target_option_current_node if processing current
1247 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1249 * doc/extend.texi (AArch64 Function Attributes): New node.
1250 (AArch64 Pragmas): Likewise.
1252 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1254 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
1255 Initialize simd builtins if TARGET_SIMD.
1256 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
1257 Make sure that the builtins are initialized only once no matter how
1258 many times the function is called.
1259 (aarch64_init_builtins): Unconditionally initialize crc builtins.
1260 (aarch64_relayout_simd_param): New function.
1261 (aarch64_simd_expand_args): Use above during argument expansion.
1262 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
1263 simd builtins if TARGET_SIMD.
1264 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
1266 (aarch64_relayout_simd_types): Likewise.
1268 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1270 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
1271 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
1272 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
1273 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
1275 (aarch64_reset_previous_fndecl): New function.
1276 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
1278 * config/aarch64/aarch64-c.c: New file.
1279 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
1280 Push and pop options at beginning and end. Remove ifdef
1281 __ARM_FEATURE_CRC32.
1282 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
1283 Add pragma +nothing+simd and +nothing+crypto where appropriate.
1284 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
1285 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
1287 (aarch64_register_pragmas): Likewise.
1288 (aarch64_reset_previous_fndecl): Likewise.
1289 (aarch64_process_target_attr): Likewise.
1290 (aarch64_override_options_internal): Likewise.
1292 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1294 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
1296 (aarch64_can_inline_p): Likewise.
1297 (TARGET_CAN_INLINE_P): Define.
1299 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1301 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
1302 Remove static. Handle OPT_mgeneral_regs_only,
1303 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
1304 OPT_momit_leaf_frame_pointer.
1305 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
1306 (aarch64_attr_opt_type): New enum.
1307 (aarch64_attribute_info): New struct.
1308 (aarch64_handle_attr_arch): New function.
1309 (aarch64_handle_attr_cpu): Likewise.
1310 (aarch64_handle_attr_tune): Likewise.
1311 (aarch64_handle_attr_isa_flags): Likewise.
1312 (aarch64_attributes): New table.
1313 (aarch64_process_one_target_attr): New function.
1314 (num_occurences_in_str): Likewise.
1315 (aarch64_process_target_attr): Likewise.
1316 (aarch64_option_valid_attribute_p): Likewise.
1317 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
1318 * config/aarch64/aarch64-protos.h: Include input.h
1319 (aarch64_handle_option): Declare prototype.
1321 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1323 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
1324 * config/aarch64/aarch64.c: Include target-globals.h
1325 (aarch64_previous_fndecl): New variable.
1326 (aarch64_set_current_function): New function.
1327 (TARGET_SET_CURRENT_FUNCTION): Define.
1329 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1331 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
1332 (explicit_arch): Likewise.
1333 (x_aarch64_isa_flags): Likewise.
1334 (mgeneral-regs-only): Mark as Save.
1335 (mfix-cortex-a53-835769): Likewise.
1336 (mcmodel=): Likewise.
1337 (mstrict-align): Likewise.
1338 (momit-leaf-frame-pointer): Likewise.
1339 (mtls-dialect): Likewise.
1340 (master=): Likewise.
1341 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
1342 (aarch64_isa_flags): Remove extern declaration.
1343 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
1344 to indicate success or failure.
1345 (aarch64_validate_march): Likewise.
1346 (aarch64_validate_mtune): Likewise.
1347 (aarch64_isa_flags): Delete.
1348 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
1349 instead of aarch64_isa_flags.
1350 (aarch64_get_tune_cpu): New function.
1351 (aarch64_get_arch): Likewise.
1352 (aarch64_override_options): Use above and set up explicit_tune_core
1354 (aarch64_print_extension): Move earlier in file. Add isa_flags
1355 argument and use that instead of the global aarch64_isa_flags.
1356 (aarch64_option_save): New function.
1357 (aarch64_option_restore): Likewise.
1358 (aarch64_option_print): Likewise.
1359 (aarch64_declare_function_name): Likewise.
1360 (aarch64_start_file): Delete.
1361 (TARGET_ASM_FILE_START): Do not define.
1362 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
1363 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
1366 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1368 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
1369 flag_omit_leaf_frame_pointer to 2.
1371 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1373 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
1375 (TARGET_FIX_ERR_A53_835769): New macro.
1376 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
1377 handling of opts->x_aarch64_fix_a53_err835769.
1378 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
1379 than aarch64_fix_a53_err835769.
1380 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
1381 * config/aarch64/aarch64-linux.h: Likewise.
1383 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
1385 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
1386 ix86_expand_int_movcc as boolean.
1388 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1390 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
1391 (aarch64_cpu_string): Likewise.
1392 (aarch64_tune_string): Likewise.
1393 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
1394 (aarch64_parse_extension): Return aarch64_parse_opt_result.
1395 Add extra argument to put result into.
1396 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
1397 (aarch64_parse_cpu): Add arguments to put results into. Return
1398 aarch64_parse_opt_result.
1399 (aarch64_parse_tune): Likewise.
1400 (aarch64_override_options_after_change_1): New function.
1401 (aarch64_override_options_internal): New function.
1402 (aarch64_validate_mcpu): Likewise.
1403 (aarch64_validate_march): Likewise.
1404 (aarch64_validate_mtune): Likewise.
1405 (aarch64_override_options): Update to reflect above changes.
1406 Move some logic into aarch64_override_options_internal.
1407 Initialize target_option_default_node and target_option_current_node.
1408 (aarch64_override_options_after_change): Move logic into
1409 aarch64_override_options_after_change_1 and call it with global_options.
1410 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
1411 flag values from that.
1413 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1415 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1416 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
1417 * config/aarch64/aarch64.c (struct processor): Add arch field.
1418 (all_architectures): Handle above, move above all_cores.
1419 (all_cores): Handle above.
1420 (aarch64_parse_arch): Handle above changes.
1421 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
1422 above. Update comments.
1423 (armv8.1-a): Likewise.
1424 * config/aarch64/aarch64-cores.def: Update according to above.
1425 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
1426 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
1427 aarch64_arch_driver_info.
1429 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1431 * config/aarch64/aarch64.c (struct processor): Add ident field.
1432 Rename core sched_core.
1433 (all_cores): Handle above changes.
1434 (all_architectures): Likewise.
1435 (aarch64_parse_arch): Likewise.
1436 (aarch64_override_options): Likewise.
1438 2015-08-04 Richard Biener <rguenther@suse.de>
1440 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
1441 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
1442 comparisons embedded in [VEC_]COND_EXPRs.
1444 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
1446 * tree-if-conv.c: Fix various typos in comments.
1447 * tree-vect-stmts.c: Likewise.
1449 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
1451 PR tree-optimization/67043
1452 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
1453 preheader after hoisting invariant in it.
1454 (find_defs): Force recomputation of all luids.
1456 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
1458 * config/rs6000/htm.md (tabort.): Restrict the source operand to
1459 using a base register.
1461 2015-08-03 David Malcolm <dmalcolm@redhat.com>
1463 * main.c (main): Pass in NULL for toplev's external_timer.
1464 * timevar.c: Include coretypes.h.
1465 (class timer::named_items): New.
1466 (timer::named_items::named_items): New.
1467 (timer::named_items::~named_items): New.
1468 (timer::named_items::push): New.
1469 (timer::named_items::pop): New.
1470 (timer::named_items::print): New.
1471 (timer::timer): Initialize field "m_jit_client_items".
1472 (timer::~timer): New.
1473 (timer::push): Move bulk of implementation to...
1474 (timer::push_internal): ...here. New function.
1475 (timer::pop): Move bulk of implementation to...
1476 (timer::pop_internal): ...here. New function.
1477 (timer::push_client_item): New.
1478 (timer::pop_client_item): New.
1479 (timer::print_row): New function, taken from timer::print.
1480 (timer::print): Print "GCC items" header if we also have client
1481 items. Move row-printing to timer::print_row. Print any client
1483 (timer::get_topmost_item_name): New method.
1484 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
1485 (TV_JIT_CLIENT_CODE): New.
1486 * timevar.h (timer::push_client_item): New declaration.
1487 (timer::pop_client_item): New declaration.
1488 (timer::get_topmost_item_name): New method.
1489 (timer::push_internal): New declaration.
1490 (timer::pop_internal): New declaration.
1491 (timer::print_row): New declaration.
1492 (timer::named_items): New declaration.
1493 (timer::m_jit_client_items): New field.
1494 (timer): Add friend class named_items.
1495 (auto_timevar::auto_timevar): Add timer param.
1496 (auto_timevar::~auto_timevar): Use field "m_timer".
1497 (auto_timevar::m_timer): New field.
1498 * toplev.c (initialize_rtl): Add g_timer as param when
1499 constructing auto_timevar instance.
1500 (toplev::toplev): Add "external_timer" param, and use it to
1501 initialize the "g_timer" global if non-NULL.
1502 (toplev::~toplev): If this created "g_timer", delete it.
1503 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
1504 with "external_timer" timer *.
1506 2015-08-03 Alexander Basov <coohpt@gmail.com>
1511 * cfgexpand.c (expand_one_var): Add check if stack is going to
1512 be used in naked function.
1513 * expr.c (expand_expr_addr_expr_1): Remove excess checking
1514 whether expression should not reside in MEM.
1515 * function.c (use_register_for_decl): Do not use registers for
1516 non-register things (volatile, float, BLKMode) in naked functions.
1518 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
1521 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
1522 Adjust splits to match new pattern.
1524 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1526 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
1529 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
1530 point in VSX registers.
1532 * config/rs6000/constraints.md (wb constraint): Document unused
1534 (we constraint): Likewise.
1535 (wo constraint): Likewise.
1536 (wp constraint): New constraint for IEEE 128-bit floating point in
1538 (wq constraint): Likewise.
1540 * config/rs6000/predicates.md (easy_fp_constant): Add support for
1541 IEEE 128-bit floating point in VSX registers.
1542 (easy_scalar_constant): Likewise.
1544 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
1545 constraints (wp, wq) for IEEE 128-bit floating point in VSX
1547 (rs6000_init_hard_regno_mode_ok): Likewise.
1549 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
1550 floating point in VSX registers.
1559 (vsx_le_permute_<mode>): Add support to properly swap bytes for
1560 IEEE 128-bit floating point in VSX registers on little endian.
1561 (vsx_le_undo_permute_<mode>): Likewise.
1562 (vsx_le_perm_load_<mode>): Likewise.
1563 (vsx_le_perm_store_<mode>): Likewise.
1564 (splitters for IEEE 128-bit fp moves): Likewise.
1566 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
1569 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
1570 floating point in VSX registers.
1573 * doc/md.text (Machine Constraints): Document wp and wq
1574 constraints on PowerPC.
1576 2015-08-03 Jeff Law <law@redhat.com>
1579 PR gcov-profile/66899
1580 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
1581 iterate over the jump threading paths when an element in the
1582 jump threading paths array is eliminated.
1584 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
1586 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
1588 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
1590 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
1591 is_use_properly_guarded the variable def_preds. Free its
1592 contents before returning.
1593 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
1594 (is_use_properly_guarded): Replace local variable def_preds with
1595 a parameter. Adjust accordingly. Only update *def_preds if it's
1598 2015-08-03 Richard Biener <rguenther@suse.de>
1600 * genmatch.c (simplify::for_subst_vec): New member.
1601 (binary_ok): New helper for for lowering.
1602 (lower_for): Delay substituting operators into result expressions
1603 if we can merge the results eventually again.
1604 (capture_info::walk_result): Adjust for user_id appearing as
1605 result expression operator.
1606 (expr::gen_transform): Likewise.
1607 (dt_simplify::gen_1): Likewise.
1608 (dt_simplify::gen): Pass not substituted operators to tail
1609 functions or initialize local variable with it.
1610 (decision_tree::gen): Adjust function signature.
1611 * match.pd: Fix tests against global code and add default
1612 cases to switch stmts.
1614 2015-08-03 Richard Biener <rguenther@suse.de>
1616 * genmatch.c (dt_simplify::gen): Create captures array
1617 with an initializer.
1619 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1621 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
1622 the host compiler is affected by placement new aliasing bug.
1623 * configure: Regenerate.
1624 * Makefile.in (ALIASING_FLAGS): New variable.
1625 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
1627 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1630 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
1631 (negmulsf3_vfp): Likewise.
1632 (muldf3negdf_vfp): Disable for -frounding-math.
1633 (mulsf3negsf_vfp): Likewise.
1634 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
1635 fix MULT cost with -frounding-math.
1637 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1639 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
1640 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
1641 explicit. Prefer to add the flag whenever possible.
1642 (noce_process_if_block): Try noce_try_store_flag_constants before
1645 2015-08-03 Richard Biener <rguenther@suse.de>
1647 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
1648 New hash-map to record equivalent transforms.
1649 (dt_node::analyze): Populate the equivalent transforms hash-map.
1650 (dt_simplify::info): Add reference to hash-map entry.
1651 (dt_simplify::gen): If we have split out a function for the
1652 transform, generate a call to it.
1653 (sinfo_hashmap_traits::hash): New function.
1654 (compare_op): New helper function for ...
1655 (sinfo_hashmap_traits::equal_keys): ... this new function.
1656 (decision_tree::gen): Split out common equivalent transforms
1659 2015-08-03 Richard Biener <rguenther@suse.de>
1661 * gimple-fold.c (fold_gimple_assign): Remove folding of
1662 the comparison in COND_EXPRs.
1664 2015-08-03 Richard Biener <rguenther@suse.de>
1666 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
1667 on the rhs of assignments first simplify the embedded
1670 2015-08-03 Richard Biener <rguenther@suse.de>
1672 PR tree-optimization/66917
1673 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
1675 (DR_VECT_AUX): New macro.
1676 (set_dr_misalignment): Adjust.
1677 (dr_misalignment): Likewise.
1678 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
1679 Compute whether the base is at least element aligned.
1680 * tree-vect-stmts.c (ensure_base_align): Adjust.
1681 (vectorizable_store): If the base is not element aligned
1682 preserve alignment of the original access if misalignment is unknown.
1683 (vectorizable_load): Likewise.
1685 2015-08-02 Martin Sebor <msebor@redhat.com>
1687 * c-family/c.opt (-Wframe-address): New warning option.
1688 * doc/invoke.texi (Wframe-address): Document it.
1689 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
1690 Clarify possible effects of calling the functions with non-zero
1691 arguments and mention -Wframe-address.
1692 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
1694 2015-08-01 Michael Collison <michael.collison@linaro.org
1695 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1697 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
1698 (*arm_umin_cmp): Likewise.
1700 2015-08-01 Caroline Tice <cmtice@google.com>
1703 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
1705 (vtbl_find_mangled_name): New function.
1706 (vtbl_register_mangled_name): New function.
1707 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
1708 mangled name in mangled name vectors.
1709 (find_or_create_vtbl_map_node): Ditto.
1710 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
1711 update recursion_depth on function entry; pass it to every recursive
1712 call; automatically exit if depth > 25 (give up looking at that point).
1713 (verify_bb_vtables): Initialize recursion_depth and pass it to
1714 var_is_used_for_virtual_call_p.
1715 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
1716 global variable decls.
1717 (vtbl_register_mangled_name): New extern function decl.
1719 2015-08-01 Tom de Vries <tom@codesourcery.com>
1721 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
1723 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
1725 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
1726 operation_no_trapping_overflow. Allow non-overflow operations.
1727 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
1730 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
1733 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
1735 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1737 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
1738 Enable for TARGET_32BIT.
1739 (*if_move_neg): Likewise.
1741 2015-07-31 Nick Clifton <nickc@redhat.com>
1743 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
1744 Returns true for __model__.
1745 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1747 2015-07-31 Alan Modra <amodra@gmail.com>
1750 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
1751 (rs6000_emit_prologue): Set it.
1752 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
1754 2015-07-31 Richard Biener <rguenther@suse.de>
1756 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
1757 -> X == (C1 ^ C2) which is already implemented in match.pd.
1758 Remove redundant dispatching to fold_relational_const.
1759 Move unordered self and NaN compares ...
1760 * match.pd: ... as patterns here. Remove some stray captures
1763 2015-07-31 Petr Murzin <petr.murzin@intel.com>
1765 * config/i386/i386.c
1766 (bdesc_special_args): Convert mask type from signed to unsigned for
1768 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
1769 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
1770 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
1771 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
1772 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
1773 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
1774 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
1775 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
1776 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
1777 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
1778 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
1779 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
1780 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
1781 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
1782 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
1783 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
1784 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
1785 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
1786 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
1787 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
1788 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
1789 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
1790 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
1791 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
1792 * config/i386/i386-builtin-types.def
1793 (V16QI_FTYPE_V16SI): Remove.
1794 (V8DF_FTYPE_V8SI): Ditto.
1795 (V8HI_FTYPE_V8DI): Ditto.
1796 (V8SI_FTYPE_V8DI): Ditto.
1797 (V8SF_FTYPE_V8DF): Ditto.
1798 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
1799 (V16HI_FTYPE_V16SI): Ditto.
1800 (V16SF_FTYPE_V16HI): Ditto.
1801 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
1802 (V16SF_FTYPE_V16SI): Ditto.
1803 (V4DI_FTYPE_V4DI): Ditto.
1804 (V16SI_FTYPE_V16SF): Ditto.
1805 (V16SF_FTYPE_FLOAT): Ditto.
1806 (V8DF_FTYPE_DOUBLE): Ditto.
1807 (V8DI_FTYPE_INT64): Ditto.
1808 (V8DI_FTYPE_V4DI): Ditto.
1809 (V16QI_FTYPE_V8DI): Ditto.
1810 (UINT_FTYPE_V4SF): Ditto.
1811 (UINT64_FTYPE_V4SF): Ditto.
1812 (UINT_FTYPE_V2DF): Ditto.
1813 (UINT64_FTYPE_V2DF): Ditto.
1814 (V16SI_FTYPE_V16SI): Ditto.
1815 (V8DI_FTYPE_V8DI): Ditto.
1816 (V16SI_FTYPE_PV4SI): Ditto.
1817 (V16SF_FTYPE_PV4SF): Ditto.
1818 (V8DI_FTYPE_PV2DI): Ditto.
1819 (V8DF_FTYPE_PV2DF): Ditto.
1820 (V4DI_FTYPE_PV2DI): Ditto.
1821 (V4DF_FTYPE_PV2DF): Ditto.
1822 (V16SI_FTYPE_PV2SI): Ditto.
1823 (V16SF_FTYPE_PV2SF): Ditto.
1824 (V8DI_FTYPE_PV4DI): Ditto.
1825 (V8DF_FTYPE_PV4DF): Ditto.
1826 (V8SF_FTYPE_FLOAT): Ditto.
1827 (V4SF_FTYPE_FLOAT): Ditto.
1828 (V4DF_FTYPE_DOUBLE): Ditto.
1829 (V8SF_FTYPE_PV4SF): Ditto.
1830 (V8SI_FTYPE_PV4SI): Ditto.
1831 (V4SI_FTYPE_PV2SI): Ditto.
1832 (V8SF_FTYPE_PV2SF): Ditto.
1833 (V8SI_FTYPE_PV2SI): Ditto.
1834 (V16SF_FTYPE_PV8SF): Ditto.
1835 (V16SI_FTYPE_PV8SI): Ditto.
1836 (V8DI_FTYPE_V8SF): Ditto.
1837 (V4DI_FTYPE_V4SF): Ditto.
1838 (V2DI_FTYPE_V4SF): Ditto.
1839 (V64QI_FTYPE_QI): Ditto.
1840 (V32HI_FTYPE_HI): Ditto.
1841 (V8UHI_FTYPE_V8UHI): Ditto.
1842 (V16UHI_FTYPE_V16UHI): Ditto.
1843 (V32UHI_FTYPE_V32UHI): Ditto.
1844 (V2UDI_FTYPE_V2UDI): Ditto.
1845 (V4UDI_FTYPE_V4UDI): Ditto.
1846 (V8UDI_FTYPE_V8UDI): Ditto.
1847 (V4USI_FTYPE_V4USI): Ditto.
1848 (V8USI_FTYPE_V8USI): Ditto.
1849 (V16USI_FTYPE_V16USI): Ditto.
1850 (V2DF_FTYPE_V2DF_UINT64): Ditto.
1851 (V2DI_FTYPE_V2DF_V2DF): Ditto.
1852 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
1853 (V8DF_FTYPE_V8DF_V8DI): Ditto.
1854 (V4SF_FTYPE_V4SF_UINT64): Ditto.
1855 (V4SI_FTYPE_V4SF_V4SF): Ditto.
1856 (V16SF_FTYPE_V16SF_V16SI): Ditto.
1857 (V64QI_FTYPE_V32HI_V32HI): Ditto.
1858 (V32HI_FTYPE_V16SI_V16SI): Ditto.
1859 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
1860 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
1861 (V32HI_FTYPE_V64QI_V64QI): Ditto.
1862 (V32HI_FTYPE_V32HI_V32HI): Ditto.
1863 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
1864 (V16SI_FTYPE_V16SI_V4SI): Ditto.
1865 (V16SI_FTYPE_V16SI_V16SI): Ditto.
1866 (V16SI_FTYPE_V32HI_V32HI): Ditto.
1867 (V16SI_FTYPE_V16SI_SI): Ditto.
1868 (V8DI_FTYPE_V8DI_V8DI): Ditto.
1869 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
1870 (V8DI_FTYPE_V16SI_V16SI): Ditto.
1871 (V8DI_FTYPE_V8DI_V2DI): Ditto.
1872 (QI_FTYPE_QI): Ditto.
1873 (SI_FTYPE_SI): Ditto.
1874 (DI_FTYPE_DI): Ditto.
1875 (QI_FTYPE_QI_QI): Ditto.
1876 (QI_FTYPE_QI_INT): Ditto.
1877 (HI_FTYPE_HI_INT): Ditto.
1878 (SI_FTYPE_SI_INT): Ditto.
1879 (DI_FTYPE_DI_INT): Ditto.
1880 (HI_FTYPE_V16QI_V16QI): Ditto.
1881 (SI_FTYPE_V32QI_V32QI): Ditto.
1882 (DI_FTYPE_V64QI_V64QI): Ditto.
1883 (QI_FTYPE_V8HI_V8HI): Ditto.
1884 (HI_FTYPE_V16HI_V16HI): Ditto.
1885 (SI_FTYPE_V32HI_V32HI): Ditto.
1886 (QI_FTYPE_V4SI_V4SI): Ditto.
1887 (QI_FTYPE_V8SI_V8SI): Ditto.
1888 (QI_FTYPE_V2DI_V2DI): Ditto.
1889 (QI_FTYPE_V4DI_V4DI): Ditto.
1890 (QI_FTYPE_V8DI_V8DI): Ditto.
1891 (HI_FTYPE_V16SI_V16SI): Ditto.
1892 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
1893 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
1894 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
1895 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
1896 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
1897 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
1898 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
1899 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
1900 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
1901 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
1902 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
1903 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
1904 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
1905 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
1906 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
1907 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
1908 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
1909 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
1910 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
1911 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
1912 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
1913 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
1914 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
1915 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
1916 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
1917 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
1918 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
1919 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
1920 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
1921 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
1922 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
1923 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
1924 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
1925 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
1926 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
1927 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
1928 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
1929 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
1930 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
1931 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
1932 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
1933 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
1934 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
1935 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
1936 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
1937 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
1938 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
1939 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
1940 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
1941 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
1942 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
1943 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
1944 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
1945 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
1946 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
1947 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
1948 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
1949 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
1950 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
1951 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
1952 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
1953 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
1954 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
1955 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
1956 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
1957 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
1958 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
1959 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
1960 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
1961 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
1962 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
1963 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
1964 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
1965 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
1966 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
1967 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
1968 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
1969 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
1970 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
1971 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
1972 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
1973 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
1974 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
1975 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
1976 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
1977 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
1978 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
1979 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
1980 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
1981 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
1982 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
1983 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
1984 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
1985 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
1986 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
1987 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
1988 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
1989 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
1990 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
1991 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
1992 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
1993 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
1994 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
1995 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
1996 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
1997 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
1998 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
1999 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
2000 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
2001 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
2002 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
2003 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
2004 (HI_FTYPE_HI): Ditto.
2005 (HI_FTYPE_V16QI): Ditto.
2006 (SI_FTYPE_V32QI): Ditto.
2007 (DI_FTYPE_V64QI): Ditto.
2008 (QI_FTYPE_V8HI): Ditto.
2009 (HI_FTYPE_V16HI): Ditto.
2010 (SI_FTYPE_V32HI): Ditto.
2011 (QI_FTYPE_V4SI): Ditto.
2012 (QI_FTYPE_V8SI): Ditto.
2013 (HI_FTYPE_V16SI): Ditto.
2014 (QI_FTYPE_V2DI): Ditto.
2015 (QI_FTYPE_V4DI): Ditto.
2016 (QI_FTYPE_V8DI): Ditto.
2017 (V16QI_FTYPE_HI): Ditto.
2018 (V32QI_FTYPE_SI): Ditto.
2019 (V64QI_FTYPE_DI): Ditto.
2020 (V8HI_FTYPE_QI): Ditto.
2021 (V16HI_FTYPE_HI): Ditto.
2022 (V32HI_FTYPE_SI): Ditto.
2023 (V4SI_FTYPE_QI): Ditto.
2024 (V4SI_FTYPE_HI): Ditto.
2025 (V8SI_FTYPE_QI): Ditto.
2026 (V8SI_FTYPE_HI): Ditto.
2027 (V2DI_FTYPE_QI): Ditto.
2028 (V4DI_FTYPE_QI): Ditto.
2029 (HI_FTYPE_HI_HI): Ditto.
2030 (SI_FTYPE_SI_SI): Ditto.
2031 (DI_FTYPE_DI_DI): Ditto.
2032 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
2033 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
2034 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
2035 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
2036 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
2037 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
2038 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
2039 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
2040 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
2041 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
2042 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
2043 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
2044 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
2045 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
2046 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
2047 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
2048 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
2049 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
2050 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
2051 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
2052 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
2053 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
2054 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
2055 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
2056 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
2057 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
2058 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
2059 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
2060 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
2061 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
2062 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
2063 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
2064 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
2065 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
2066 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
2067 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
2068 (V16SI_FTYPE_HI): Ditto.
2069 (V8DI_FTYPE_QI): Ditto.
2070 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
2071 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
2072 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
2073 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
2074 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
2075 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
2076 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
2077 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
2078 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
2079 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
2080 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
2081 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
2082 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
2083 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
2084 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
2085 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
2086 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
2087 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
2088 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
2089 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
2090 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
2091 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
2092 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
2093 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
2094 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
2095 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
2096 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
2097 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
2098 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
2099 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
2100 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
2101 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
2102 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
2103 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
2104 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
2105 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
2106 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
2107 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
2108 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
2109 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
2110 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
2111 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
2112 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
2113 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
2114 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
2115 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
2116 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
2117 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
2118 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
2119 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
2120 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
2121 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
2122 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
2123 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
2124 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
2125 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
2126 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
2127 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
2128 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
2129 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
2130 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
2131 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
2132 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
2133 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
2134 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
2135 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
2136 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
2137 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
2138 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
2139 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
2140 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
2141 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
2142 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
2143 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
2144 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
2145 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
2146 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
2147 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
2148 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
2149 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
2150 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
2151 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
2152 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
2153 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
2154 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
2155 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
2156 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
2157 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
2158 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
2159 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
2160 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
2161 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
2162 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
2163 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
2164 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
2165 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
2166 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
2167 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
2168 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
2169 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
2170 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
2171 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
2172 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
2173 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
2174 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
2175 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
2176 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
2177 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
2178 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
2179 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
2180 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
2181 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
2182 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
2183 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
2184 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
2185 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
2186 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
2187 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
2188 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
2189 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
2190 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
2191 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
2192 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
2193 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
2194 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
2195 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
2196 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
2197 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
2198 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
2199 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
2200 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
2201 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
2202 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
2203 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
2204 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
2205 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
2206 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
2207 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
2208 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
2209 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
2210 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
2211 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
2212 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
2213 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
2214 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
2215 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
2216 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
2217 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
2218 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
2219 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
2220 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
2221 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
2222 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
2223 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
2224 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
2225 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
2226 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
2227 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
2228 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
2229 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
2230 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
2231 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
2232 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
2233 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
2234 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
2235 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
2236 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
2237 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
2238 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
2239 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
2240 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
2241 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
2242 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
2243 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
2244 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
2245 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
2246 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
2247 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
2248 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
2249 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
2250 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
2251 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
2252 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
2253 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
2254 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
2255 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
2256 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
2257 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
2258 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
2259 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
2260 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
2261 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
2262 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
2263 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
2264 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
2265 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
2266 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
2267 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
2268 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
2269 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
2270 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
2271 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
2272 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
2273 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
2274 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
2275 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
2276 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
2277 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
2278 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
2279 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
2280 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
2281 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
2282 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
2283 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
2284 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
2285 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
2286 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
2287 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
2288 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
2289 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
2290 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
2291 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
2292 (QI_FTYPE_V8DF_INT_QI): Ditto.
2293 (QI_FTYPE_V4DF_INT_QI): Ditto.
2294 (QI_FTYPE_V2DF_INT_QI): Ditto.
2295 (HI_FTYPE_V16SF_INT_HI): Ditto.
2296 (QI_FTYPE_V8SF_INT_QI): Ditto.
2297 (QI_FTYPE_V4SF_INT_QI): Ditto.
2298 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
2300 2015-07-31 Richard Biener <rguenther@suse.de>
2302 * gimple-fold.c (fold_gimple_assign): Remove folding of
2305 2015-07-31 Tom de Vries <tom@codesourcery.com>
2307 PR tree-optimization/66846
2308 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
2309 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
2310 (expand_omp_target) [ENABLE_CHECKING]: Same.
2311 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
2312 cfun if !LOOPS_NEED_FIXUP.
2313 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
2314 that omp_for already has its own loop struct.
2315 * tree-parloops.c (create_phi_for_local_result)
2316 (create_call_for_reduction): Handle simple latch bb.
2317 (create_parallel_loop): Add simple latch bb to preserve
2318 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
2319 (gen_parallel_loop): Remove call to cancel_loop_tree.
2320 (parallelize_loops): Skip loops that are inner loops of parallelized
2322 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
2323 verify_loop_structure.
2325 2015-07-30 Anatoly Sokolov <aesok@post.ru>
2327 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
2328 * config/v850/v850.md (RV_REGNUM): New constants.
2329 * config/v850/v850.c (v850_libcall_value): New functions.
2330 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
2331 (TARGET_LIBCALL_VALUE): Define.
2333 2015-07-30 Anatoly Sokolov <aesok@post.ru>
2335 * rtl.h (lowpart_subreg): Move in file.
2336 * loop-iv.c (lowpart_subreg): Move to...
2337 * simplify-rtx.c (lowpart_subreg): ...here.
2338 (simplify_binary_operation_1): Use lowpart_subreg instead of
2339 simplify_gen_subreg.
2340 * expr.c (expand_expr_real_2): Ditto.
2341 * emit-rtl.c (gen_lowpart_common): Ditto.
2342 * combine.c (gen_lowpart_for_combine): Ditto.
2343 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
2344 expand_debug_source_expr): Ditto.
2346 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
2348 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
2349 (expand_builtin_atomic_clear): Remove support for atomic_clear
2352 2015-07-30 Richard Biener <rguenther@suse.de>
2354 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
2355 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
2356 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
2357 redundant operand canonicalization.
2359 2015-07-30 David Sherwood <david.sherwood@arm.com>
2361 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
2362 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
2363 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
2364 * config/arm/arm.c (neon_valid_immediate): Likewise.
2365 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
2366 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
2367 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
2368 (expand_vec_perm_vpshufb2_vpermq): Likewise.
2369 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
2370 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
2371 * config/i386/sse.md
2372 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
2373 (*ssse3_palignr<mode>_perm): Likewise.
2374 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
2375 * config/spu/spu.c (arith_immediate_p): Likewise.
2376 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2377 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
2379 2015-07-30 Richard Biener <rguenther@suse.de>
2381 * genmatch.c (decision_tree::gen_gimple): Merge with ...
2382 (decision_tree::gen_generic): ... this into ...
2383 (decision_tree::gen): ... this.
2384 (main): Adjust callers.
2386 2015-07-30 Richard Biener <rguenther@suse.de>
2388 * genmatch.c (verbose): New global.
2389 (warning_at): Add overload with source_location.
2390 (capture_info::capture_info): Add bool whether generating gimple
2391 or generic. Add gimple member.
2392 (capture_info::cinfo): Add capture member.
2393 (capture_info::walk_match): Record capture. Warn on
2395 (capture_info::walk_c_expr): Add more fragments captures cannot
2396 escape through. Warn on escaped captures.
2397 (dt_simplify::gen_1): Warn on operands we force to have no
2399 (main): Initialize verbose.
2400 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
2402 2015-07-30 Richard Biener <rguenther@suse.de>
2405 * match.pd: Allow both operands to independently have conversion
2406 when simplifying compares of addresses.
2408 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
2412 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
2413 around those cases that need one.
2415 2015-07-29 Aditya Kumar <hiraditya@msn.com>
2417 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
2419 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
2421 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2422 New. Copied from config/i386/gnu-user.h.
2423 (ASM_COMMENT_START): Likewise.
2424 (DBX_REGISTER_NUMBER): Likewise.
2426 2015-07-29 Richard Biener <rguenther@suse.de>
2428 * gimple-fold.c (fold_gimple_cond): Remove.
2429 (fold_stmt_1): Do not call it.
2431 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
2433 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
2434 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
2436 * config/aarch64/aarch64-modes.def: Add HFmode.
2438 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2439 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
2441 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
2442 aarch64_promoted_type): New.
2444 (aarch64_float_const_representable_p): Disable HFmode.
2445 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
2446 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
2447 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
2449 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
2450 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
2452 * config/aarch64/iterators.md (GPF_F16): New.
2454 2015-07-29 Richard Biener <rguenther@suse.de>
2456 * match.pd: Merge address comparison patterns and make them
2457 handle some more cases.
2459 2015-07-29 Richard Biener <rguenther@suse.de>
2461 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
2462 (parser::parse_capture): Add bool argument on whether to reject
2464 (parser::parse_expr): Adjust.
2465 (parser::parse_op): Likewise.
2466 (parser::parse_pattern): Likewise.
2468 2015-07-29 Richard Biener <rguenther@suse.de>
2470 * gimple-fold.c (has_use_on_stmt): New function.
2471 (replace_stmt_with_simplification): Use it to allow
2472 abnormals originally referenced in the stmt.
2473 (fold_stmt_1): Canonicalize operand order.
2475 2015-07-28 David Sherwood <david.sherwood@arm.com>
2477 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
2478 GET_MODE_INNER unconditionally.
2479 * config/spu/spu.c (arith_immediate_p): Likewise.
2480 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
2481 * expmed.c (synth_mult): Remove check for VOIDmode result from
2483 (expand_mult_const): Likewise.
2484 * fold-const.c (fold_binary_loc): Replace call to element_precision
2485 with call to GET_MODE_PRECISION.
2486 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
2488 (emit_mode_inner): Likewise.
2489 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
2491 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
2492 (GET_MODE_UNIT_PRECISION): Likewise.
2493 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
2494 * simplify-rtx.c (simplify_immed_subreg): Likewise.
2495 * stor-layout.c (bitwise_type_for_mode): Update assert.
2496 (element_precision): Remove.
2498 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
2500 * target-insns.def (reload_load_address): New targetm instruction
2502 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
2504 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
2506 * target-insns.def (atomic_test_and_set): New targetm instruction
2508 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
2509 HAVE_*/gen_* interface.
2511 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
2513 * target-insns.def (can_extend, ptr_extend): New targetm instruction
2515 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
2516 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2517 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
2518 * rtlanal.c (nonzero_bits1): Likewise.
2519 (num_sign_bit_copies1): Likewise.
2521 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
2523 * target-insns.def (eh_return): New targetm instruction pattern.
2524 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
2526 * function.c (thread_prologue_and_epilogue_insns): Remove
2527 preprocessor condition.
2529 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
2531 * target-insns.def (indirect_jump): New targetm instruction pattern.
2532 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
2535 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
2537 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
2538 instead of nonimmediate_operand. Remove C condiition.
2540 2015-07-28 Richard Biener <rguenther@suse.de>
2542 * match.pd: Add more simplification of address comparisons.
2544 2015-07-28 Richard Biener <rguenther@suse.de>
2546 * match.pd: Re-order two cases in comparison with max/min
2547 value simplification to make it apply for bools.
2549 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2551 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
2552 Handle simple SIGN_EXTEND or ZERO_EXTEND.
2553 (aarch64_rtx_costs): Properly strip extend or extract before
2554 passing down to rtx costs again.
2556 2015-07-28 Nick Clifton <nickc@redhat.com>
2558 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
2559 Optimizes the case where -mes0 is active and a constant symbolic
2561 * config/rl78/rl78-protos.h: Prototype the new function.
2562 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
2564 2015-07-28 Tom de Vries <tom@codesourcery.com>
2566 * tree-parloops.c (reduc_stmt_res): New function.
2567 (initialize_reductions, add_field_for_reduction)
2568 (create_phi_for_local_result, create_loads_for_reductions)
2569 (create_stores_for_reduction, build_new_reduction): Handle case that
2570 reduc_stmt is a phi.
2571 (gather_scalar_reductions): Allow double_reduc reductions.
2573 2015-07-28 Richard Biener <rguenther@suse.de>
2575 * fold-const.c (fold_comparison): Remove equality folding
2576 of decl addresses ...
2577 * match.pd: ... here and merge with existing pattern.
2579 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
2581 PR tree-optimization/66828
2582 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
2583 from int64_t to uint64_t.
2585 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
2587 * opts-common.c (read_cmdline_option): List DriverOnly enum values
2588 as valid only in the error message of the driver, not in the
2589 messages of the language compilers.
2591 2015-07-27 Tom de Vries <tom@codesourcery.com>
2593 * tree-parloops.c (gather_scalar_reductions): Simplify function
2596 2015-07-27 Marek Polacek <polacek@redhat.com>
2598 * ipa-devirt.c (types_same_for_odr): Fix typo.
2600 2015-07-27 Jason Merrill <jason@redhat.com>
2603 * dwarf2out.c (gen_inlined_subroutine_die): Check
2604 cgraph_function_possibly_inlined_p.
2606 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
2608 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
2609 Place integer variant first.
2610 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2612 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
2615 * config/arm/arm-builtins.c (enum arm_builtins):
2616 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
2617 (ARM_BUILTIN_NEON_BASE): Rename macro to....
2618 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
2619 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
2620 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
2622 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
2625 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
2626 Add qualifier_lane_index.
2627 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
2628 (arm_getlane_qualifiers): Use qualifier_lane_index.
2629 (arm_lanemac_qualifiers): Rename to...
2630 (arm_mac_n_qualifiers): ...this.
2631 (LANEMAC_QUALIFIERS): Rename to...
2632 (MAC_N_QUALIFIERS): ...this.
2633 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
2634 (arm_setlane_qualifiers): Use qualifier_lane_index.
2635 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
2636 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
2637 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
2638 (arm_expand_neon_builtin): Handle qualifier_lane_index.
2640 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
2641 * config/arm/arm.c (bounds_check): Likewise, improve error message.
2642 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
2643 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
2644 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
2645 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
2646 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
2647 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
2648 qualifiers to TERNOP_IMM.
2649 (vdup_lane): Change qualifiers to GETLANE.
2650 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
2651 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
2652 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
2653 vqdmlsl_n): Change qualifiers to MAC_N.
2655 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
2656 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
2657 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
2658 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
2659 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
2660 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
2661 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
2662 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
2663 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
2664 Remove call to neon_lane_bounds.
2666 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
2668 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
2669 Place integer variant first.
2671 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
2673 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
2674 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
2675 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
2676 for armv6kz targets.
2677 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
2678 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
2679 (FL_FOR_ARCH6ZK): Remove.
2680 (FL_FOR_ARCH6KZ): New.
2681 (arm_arch6zk): New declaration.
2682 * config/arm/arm-tables.opt: Regenerate.
2683 * config/arm/arm.c (arm_arch6kz): New.
2684 (arm_option_override): Set arm_arch6kz.
2685 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
2686 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
2687 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
2689 2015-07-27 Marek Polacek <polacek@redhat.com>
2693 * doc/invoke.texi: Document -Wtautological-compare.
2695 2015-07-27 Richard Biener <rguenther@suse.de>
2697 * genmatch.c (decision_tree::gen_gimple): Split out large
2698 subtrees into separate functions.
2699 (decision_tree::gen_generic): Likewise.
2701 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
2703 * config/alpha/alpha.c: Use SUBREG_P predicate.
2704 * config/alpha/predicates.md: Ditto.
2706 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
2708 * config.host (s390*-*-*): Include driver-native.c only when
2709 building with s390* as host *and* target.
2711 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
2714 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
2715 T bit register modified_between_p check.
2717 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2719 * config/i386/i386.c: Use SUBREG_P predicate.
2720 * config/i386/i386.md: Ditto.
2721 * config/i386/sse.md: Ditto.
2722 * config/i386/predicates.md: Ditto.
2724 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2727 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
2728 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
2730 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2732 * Makefile.in: Remove use of TREEBROWSER.
2733 * config.in: Regenerated.
2734 * configure: Regenerated.
2735 * configure.ac: Remove definition of TREEBROWSER.
2736 * tree-browser.c: Removed.
2737 * tree-browser.def: Removed.
2739 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2741 * graphite-scop-detection.c: Include gimple-pretty-print.h.
2742 (stmt_simple_for_scop_p): Print when a stmt is not handled in
2744 (scopdet_basic_block_info): Print when a loop or bb cannot be
2745 represented in Graphite.
2747 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2750 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
2751 execution guard when min_size is less than size_needed.
2753 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2755 * doc/install.texi: Document supported versions of ISL.
2757 2015-07-25 Jeff Law <law@redhat.com>
2761 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2762 unable to find X NE 0 in the tables, return X as the simplified
2764 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2765 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2767 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2768 after removing the control flow statement and unnecessary edges.
2770 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
2773 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
2775 PR rtl-optimization/64164
2776 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2777 * tree-ssa-copyrename.c: Removed.
2778 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2779 -ftree-coalesce-vars.
2780 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2781 * common.opt (ftree-copyrename): Ignore.
2782 (ftree-coalesce-inlined-vars): Likewise.
2783 * doc/invoke.texi: Remove the ignored options above.
2784 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2785 * tree-ssa-coalesce.h: ... here.
2786 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2787 headers required by it.
2788 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2789 across variables when flag_tree_coalesce_vars. Check register
2790 use and promoted modes to allow coalescing. Moved to
2791 tree-ssa-coalesce.c.
2792 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2793 with its member functions to tree-ssa-coalesce.c.
2794 (var_map_base_init): Likewise. Renamed to
2795 compute_samebase_partition_bases.
2796 (partition_view_normal): Drop want_bases parameter.
2797 (partition_view_bitmap): Likewise.
2798 * tree-ssa-live.h: Adjust declarations.
2799 * tree-ssa-coalesce.c: Include explow.h.
2800 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2801 default defs at the entry point.
2802 (dump_part_var_map): New.
2803 (compute_optimized_partition_bases): New, called by...
2804 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2805 of compute_samebase_partition_bases. Adjust.
2806 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2807 * cfgexpand.c (leader_merge): New.
2808 (get_rtl_for_parm_ssa_default_def): New.
2809 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2810 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2811 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2812 redundant MEM attr setting.
2813 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2815 (expand_one_stack_var): ... this. New wrapper to check and
2816 skip already expanded SSA partitions.
2817 (record_alignment_for_reg_var): New, factored out of...
2818 (expand_one_var): ... this.
2819 (expand_one_ssa_partition): New.
2820 (adjust_one_expanded_partition_var): New.
2821 (expand_one_register_var): Check and skip already expanded SSA
2823 (expand_used_vars): Don't create DECLs for anonymous SSA
2824 names. Expand all SSA partitions, then adjust all SSA names.
2825 (pass::execute): Replace the loops that set
2826 SA.partition_to_pseudo from partition leaders and cleared
2827 DECL_RTL for multi-location variables, and that which used to
2828 rename vars and set attrs, with one that clears DECL_RTL and
2829 checks that PARMs and RESULTs default_defs match DECL_RTL.
2830 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2831 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2832 * explow.c (promote_ssa_mode): New.
2833 * explow.h (promote_ssa_mode): Declare.
2834 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2835 * function.c: Include cfgexpand.h.
2836 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2837 (use_register_for_parm_decl): Wrapper for the above to
2838 special-case the result_ptr.
2839 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2840 (split_complex_args): Take assign_parm_data_all argument.
2841 Pass it to rtl_for_parm. Set up rtl and context for split
2843 (assign_parms_augmented_arg_list): Adjust.
2844 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2845 multiple locations. Recognize split complex args.
2846 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2847 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2848 (assign_parm_setup_block): Prefer SSA-assigned location.
2849 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2850 if stack_parm is NULL.
2851 (assign_parm_setup_stack): Prefer SSA-assigned location.
2852 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2853 rtl before testing for pointer bounds. Special-case result_ptr.
2854 (expand_function_start): Maybe reset DECL_RTL of result.
2855 Prefer SSA-assigned location for result and static chain.
2856 Factor out DECL_RESULT and SET_DECL_RTL.
2857 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2858 anonymous SSA names. Use promote_ssa_mode.
2859 (get_temp_reg): Likewise.
2860 (remove_ssa_form): Adjust.
2861 * stor-layout.c (layout_decl): Don't set mem attributes of
2863 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2864 and get its reg_usage for reg invalidation.
2865 (compute_bb_dataflow): Pass it insn.
2866 (emit_notes_in_bb): Likewise.
2868 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2870 * config/i386/i386.c (ix86_va_start): Remove
2871 unneeded !TARGET_64BIT check.
2872 (ix86_gimplify_va_arg): Ditto.
2874 2015-07-24 Tom de Vries <tom@codesourcery.com>
2876 * graphite-sese-to-poly.c (build_poly_scop): Always call
2877 rewrite_commutative_reductions_out_of_ssa.
2879 2015-07-24 Tom de Vries <tom@codesourcery.com>
2881 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
2882 flag_associative_math to FLOAT_TYPE_P. Honour
2883 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
2885 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
2888 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
2889 and "%qD" in warning_at instead of "%q+D" in warning.
2891 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
2893 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
2894 (ix86_function_abi): Cleanup.
2896 2015-07-24 Michael Darling <darlingm@gmail.com>
2899 * acinclude.m4: Reflects renaming of configure.in to configure.ac
2900 * configure: Likewise
2901 * configure.ac: Likewise
2902 * doc/install.texi: Likewise
2903 * doc/tm.texi: Likewise
2904 * doc/tm.texi.in: Likewise
2906 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2908 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
2909 manually swapping values.
2910 * cse.c (fold_rtx): Likewise.
2911 * lra-eliminations.c (form_sum): Likewise.
2913 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
2916 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
2917 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
2918 (*jcc_1, *jcc_2, jump, simple_return_internal)
2919 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
2920 Set length_nobnd attribute instead of length attribute.
2921 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
2922 (length_nobnd): Remove attribute.
2923 (length): Remove length_nobnd processing.
2925 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
2927 * gimplify.c (omp_default_clause): New function. Reorganize flow
2928 for clarity. Broken out of ...
2929 (omp_notice_variable): ... here.
2931 2015-07-24 Gary Funck <gary@intrepid.com>
2934 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
2935 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
2937 2015-07-24 Tom de Vries <tom@codesourcery.com>
2939 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
2940 exit-first loop transform.
2942 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
2945 * tree-cfg.c (struct replace_decls_d): New struct.
2946 (replace_block_vars_by_duplicates_1): New function.
2947 (replace_block_vars_by_duplicates): Use it to replace the decls
2948 in the value exprs by duplicates.
2950 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2952 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
2953 -shared, -symbolic, -rdynamic.
2955 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2958 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
2959 -dynamic-linker within %{!static %{!shared, and -rdynamic within
2962 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2965 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
2966 edge summary is available.
2968 2015-07-24 Richard Biener <rguenther@suse.de>
2970 * genmatch.c (struct dt_node): Add statistic fields.
2971 (dt_node::analyze): New method.
2972 (decision_tree::gen_gimple): Call analyze on the root node
2973 and print statistics to stderr.
2974 (decision_tree::gen_generic): Likewise.
2976 2015-07-24 Richard Biener <rguenther@suse.de>
2978 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
2979 against the highest or lowest possible integer ...
2980 * match.pd: ... as patterns here.
2982 2015-07-24 Richard Biener <rguenther@suse.de>
2984 * genmatch.c (struct capture_info): Add same_as field.
2985 (capture_info::capture_info): Initialize same_as.
2986 (capture_info::walk_match): Compute same_as.
2987 (capture_info::walk_result): Compute stuff for the leader.
2988 (capture_info::walk_c_expr): Likewise.
2989 (dt_simplify::gen_1): Only look at leaders when deciding
2990 to force no side-effects or emit side-effects of omitted operands.
2992 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2994 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
2995 reg note to the GPR -> FPR save instructions.
2997 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2999 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
3001 (s390_expand_insv): Don't generate risbg pattern for constant zero
3003 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
3004 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
3007 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
3009 * config/s390/s390.c (s390_reorg): Clean up handling of processors
3012 (s390_issue_rate): Likewise.
3013 (s390_sched_reorder): Likewise.
3014 (s390_sched_variable_issue): Likewise.
3015 (s390_loop_unroll_adjust): Likewise.
3016 (s390_option_override): Likewise.
3018 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
3020 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
3021 processor capabilities with -march=native.
3022 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
3023 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
3024 (S390_TARGET_BITS_STRING): Macro to simplify specs.
3026 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
3028 * config/s390/s390.c (s390_issue_rate): Handle
3029 PROCESSOR_2094_Z9_EC.
3030 (s390_option_override): Likewise.
3031 (s390_adjust_priority): Likewise.
3033 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
3035 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
3036 when cross compiling.
3038 2015-07-24 Richard Biener <rguenther@suse.de>
3040 * fold-const.c (maybe_canonicalize_comparison_1): Move
3041 A code CST canonicalization ...
3042 * match.pd: ... to a pattern here.
3044 2015-07-24 Jiong Wang <jiong.wang@arm.com>
3047 2015-07-22 Jiong Wang <jiong.wang@arm.com>
3049 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
3050 (HONOR_REG_ALLOC_ORDER): Define.
3052 2015-07-24 Richard Biener <rguenther@suse.de>
3054 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
3055 * fold-const.c (fold_comparison): Move parameter does not
3056 alias &local simplification ...
3057 * match.pd: ... as a pattern here.
3059 2015-07-24 Richard Biener <rguenther@suse.de>
3061 * gimple-fold.c (replace_stmt_with_simplification): Special-case
3062 valueizing call operands.
3063 * gimple-match-head.c (maybe_push_res_to_seq): Take
3064 number of call arguments from ops array.
3065 (do_valueize): New function.
3066 (gimple_simplify): Return true if valueization changed
3067 any operand even if the result didn't simplify further.
3069 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3072 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
3074 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3077 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
3079 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
3081 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
3084 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
3086 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
3089 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
3091 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
3092 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
3094 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
3095 ms_va_list_type_node initialization.
3097 2015-07-23 Jeff Law <law@redhat.com>
3100 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
3101 unable to find X NE 0 in the tables, return X as the simplified
3103 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
3104 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
3106 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
3107 after removing the control flow statement and unnecessary edges.
3109 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
3111 * tree-pass.h (get_current_pass_name): Removed.
3113 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
3115 PR rtl-optimization/64164
3116 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
3117 * tree-ssa-copyrename.c: Removed.
3118 * opts.c (default_options_table): Drop -ftree-copyrename. Add
3119 -ftree-coalesce-vars.
3120 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
3121 * common.opt (ftree-copyrename): Ignore.
3122 (ftree-coalesce-inlined-vars): Likewise.
3123 * doc/invoke.texi: Remove the ignored options above.
3124 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
3125 * tree-ssa-coalesce.h: ... here.
3126 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
3127 headers required by it.
3128 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
3129 across variables when flag_tree_coalesce_vars. Check register
3130 use and promoted modes to allow coalescing. Moved to
3131 tree-ssa-coalesce.c.
3132 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
3133 with its member functions to tree-ssa-coalesce.c.
3134 (var_map_base_init): Likewise. Renamed to
3135 compute_samebase_partition_bases.
3136 (partition_view_normal): Drop want_bases parameter.
3137 (partition_view_bitmap): Likewise.
3138 * tree-ssa-live.h: Adjust declarations.
3139 * tree-ssa-coalesce.c: Include explow.h.
3140 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
3141 default defs at the entry point.
3142 (dump_part_var_map): New.
3143 (compute_optimized_partition_bases): New, called by...
3144 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
3145 of compute_samebase_partition_bases. Adjust.
3146 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
3147 * cfgexpand.c (leader_merge): New.
3148 (get_rtl_for_parm_ssa_default_def): New.
3149 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
3150 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
3151 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
3152 redundant MEM attr setting.
3153 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
3155 (expand_one_stack_var): ... this. New wrapper to check and
3156 skip already expanded SSA partitions.
3157 (record_alignment_for_reg_var): New, factored out of...
3158 (expand_one_var): ... this.
3159 (expand_one_ssa_partition): New.
3160 (adjust_one_expanded_partition_var): New.
3161 (expand_one_register_var): Check and skip already expanded SSA
3163 (expand_used_vars): Don't create DECLs for anonymous SSA
3164 names. Expand all SSA partitions, then adjust all SSA names.
3165 (pass::execute): Replace the loops that set
3166 SA.partition_to_pseudo from partition leaders and cleared
3167 DECL_RTL for multi-location variables, and that which used to
3168 rename vars and set attrs, with one that clears DECL_RTL and
3169 checks that PARMs and RESULTs default_defs match DECL_RTL.
3170 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
3171 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
3172 * explow.c (promote_ssa_mode): New.
3173 * explow.h (promote_ssa_mode): Declare.
3174 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
3175 * function.c: Include cfgexpand.h.
3176 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
3177 (use_register_for_parm_decl): Wrapper for the above to
3178 special-case the result_ptr.
3179 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
3180 (split_complex_args): Take assign_parm_data_all argument.
3181 Pass it to rtl_for_parm. Set up rtl and context for split
3183 (assign_parms_augmented_arg_list): Adjust.
3184 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
3185 multiple locations. Recognize split complex args.
3186 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
3187 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
3188 (assign_parm_setup_block): Prefer SSA-assigned location.
3189 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
3190 if stack_parm is NULL.
3191 (assign_parm_setup_stack): Prefer SSA-assigned location.
3192 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
3193 rtl before testing for pointer bounds. Special-case result_ptr.
3194 (expand_function_start): Maybe reset DECL_RTL of result.
3195 Prefer SSA-assigned location for result and static chain.
3196 Factor out DECL_RESULT and SET_DECL_RTL.
3197 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
3198 anonymous SSA names. Use promote_ssa_mode.
3199 (get_temp_reg): Likewise.
3200 (remove_ssa_form): Adjust.
3201 * stor-layout.c (layout_decl): Don't set mem attributes of
3203 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
3204 and get its reg_usage for reg invalidation.
3205 (compute_bb_dataflow): Pass it insn.
3206 (emit_notes_in_bb): Likewise.
3208 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
3211 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
3213 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
3214 (rs6000_emit_2insn_and): Handle dot forms.
3215 * config/rs6000/rs6000.md (and<mode>3): Adjust.
3216 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
3217 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
3219 2015-07-23 Richard Biener <rguenther@suse.de>
3221 * generic-match-head.c: Include cgraph.h.
3222 * gimple-match-head.c: Likewise.
3223 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
3225 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
3226 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
3229 2015-07-23 Richard Biener <rguenther@suse.de>
3231 * gimple-fold.c (fold_gimple_cond): Do not require folding
3232 results to pass valid_gimple_rhs_p.
3233 * tree-cfg.h (fold_cond_expr_cond): Remove.
3234 * tree-cfg.c (fold_cond_expr_cond): Likewise.
3235 (make_edges): Do not call it.
3236 * tree-inline.c (tree_function_versioning): Likewise.
3238 2015-07-23 Tom de Vries <tom@codesourcery.com>
3240 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
3241 vect_force_simple_reduction.
3242 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
3243 (vect_is_simple_reduction_1): Add and handle
3244 need_wrapping_integral_overflow parameter.
3245 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
3246 need_wrapping_integral_overflow parameter.
3247 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
3248 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
3251 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
3253 PR tree-optimization/66926,66951
3254 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
3255 INNER_LOOP and fix up condition for renaming virtual operands.
3257 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3259 * combine.c (try_combine): Use std::swap instead of manually
3262 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
3264 * config/mips/i6400.md: New file.
3265 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
3266 (mips64r6): Likewise.
3268 * config/mips/mips-tables.opt: Regenerate.
3269 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
3270 (mips_issue_rate): Add support for i6400.
3271 (mips_multipass_dfa_lookahead): Likewise.
3272 * config/mips/mips.h (TUNE_I6400): Define.
3273 * config/mips/mips.md: Include i6400.md.
3274 (processor): Add i6400.
3275 * doc/invoke.texi (-march=@var{arch}): Add i6400.
3277 2015-07-23 Richard Biener <rguenther@suse.de>
3280 * match.pd: Guard widen and sign-change comparison simplification
3283 2015-07-23 Richard Biener <rguenther@suse.de>
3285 PR tree-optimization/66945
3286 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
3287 ::before_dom_children): Force the propagators idea of
3288 non-executable edges to materialize, not what the folder
3291 2015-07-23 Richard Biener <rguenther@suse.de>
3293 * gimple.h (gimple_cond_make_false): Use 0 != 0.
3294 (gimple_cond_make_true): Use 1 != 0.
3296 2015-07-22 DJ Delorie <dj@redhat.com>
3298 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
3301 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
3302 (ashrhi3): Likewise.
3303 (lshrhi3): Likewise.
3304 (movhi): Take advantage of zero-extend to load small constants.
3306 (and<mode>3): Likewise.
3307 (zero_extendqihi2): Likewise.
3308 (zero_extendqisi2): New.
3309 * config/msp430/constraints.md (N,O): New.
3310 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
3312 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
3315 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
3316 to enum feature_priority and feature_list.
3317 (fold_builtin_cpu): Add F_AES to enum processor_features
3318 and isa_names_table.
3320 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
3323 * config/i386/linux-common.h (MPX_SPEC): Use linker option
3324 for 64bit target only.
3326 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
3328 * config/nvptx/nvptx.c: Expand some comments.
3330 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
3332 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
3333 (cortex_a53_advsimd): ...This.
3335 2015-07-22 Richard Biener <rguenther@suse.de>
3337 * genmatch.c (expr::gen_transform): Clarify error message
3338 and display location.
3340 2015-07-22 Richard Biener <rguenther@suse.de>
3342 * genmatch.c (struct operand): Add location member.
3343 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
3345 (struct simplify): Remove match_location and result_location
3347 (elsehwere): Adjust.
3349 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
3351 * config/mips/m5100.md: New file.
3352 * config/mips/mips-cpus.def (m5100, m5101): Define.
3353 * config/mips/mips-tables.opt: Regenerate.
3354 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
3355 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
3356 -march=m5101 to -mips32r5.
3357 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
3358 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
3360 * config/mips/mips.md: Include m5100.md.
3361 (processor): Add m5100.
3362 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
3364 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
3366 * config/mips/mips-cpus.def (interaptiv): Define.
3367 * config/mips/mips-tables.opt: Regenerate.
3368 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
3370 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
3371 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
3373 2015-07-22 Jiong Wang <jiong.wang@arm.com>
3376 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
3377 (HONOR_REG_ALLOC_ORDER): Define.
3379 2015-07-22 Richard Biener <rguenther@suse.de>
3381 PR tree-optimization/66952
3382 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
3383 blocks we end up executing unconditionally reset all SSA
3384 info such as range and alignment.
3385 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
3386 * tree-ssanames.c (reset_flow_sensitive_info): New function.
3388 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
3390 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
3393 2015-07-22 Richard Biener <rguenther@suse.de>
3395 * genmatch.c (parser::parse_result): Properly handle
3396 match with result operands and conditions.
3398 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
3401 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
3402 Add qualifier_struct_load_store_lane_index.
3403 (aarch64_types_loadstruct_lane_qualifiers): Use
3404 qualifier_struct_load_store_lane_index for lane index argument for
3406 (aarch64_types_storestruct_lane_qualifiers): Ditto.
3407 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3408 (aarch64_simd_expand_args): Add new argument describing mode of
3409 builtin. Check lane bounds for arguments with
3410 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3411 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
3412 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3413 (aarch64_simd_expand_builtin): Handle arguments with
3414 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
3415 aarch64_simd_expand_args.
3416 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
3417 vst[234]_lane with BUILTIN_VALLDIF.
3418 * config/aarch64/aarch64-simd.md:
3419 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
3420 endianness reversal on lane index.
3421 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
3422 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
3423 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
3424 (vec_store_lanesci_lane<mode>): Ditto.
3425 (vec_store_lanesxi_lane<mode>): Ditto.
3426 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
3427 reversal of lane index.
3428 (aarch64_ld3_lane<mode>): Ditto.
3429 (aarch64_ld4_lane<mode>): Ditto.
3430 (aarch64_st2_lane<mode>): Ditto.
3431 (aarch64_st3_lane<mode>): Ditto.
3432 (aarch64_st4_lane<mode>): Ditto.
3433 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
3434 to qmode. Add new mode parameter. Update uses.
3435 (__LD3_LANE_FUNC): Ditto.
3436 (__LD4_LANE_FUNC): Ditto.
3437 (__ST2_LANE_FUNC): Ditto.
3438 (__ST3_LANE_FUNC): Ditto.
3439 (__ST4_LANE_FUNC): Ditto.
3441 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
3443 * doc/invoke.texi (Language Independent Options): Rename node to
3444 Diagnostic Message Formatting Options.
3446 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
3449 * lra-remat.c (operand_to_remat): Prevent using insns with input
3450 subregs processed separately by IRA.
3452 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
3454 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
3456 (single_imm_use): Check for iterator node.
3457 (num_imm_uses): Likewise.
3458 * tree-ssa-operands.c (has_zero_uses_1): Delete.
3459 (single_imm_use_1): Check for iterator node.
3461 2015-07-21 Mike Frysinger <vapier@gentoo.org>
3462 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3464 * configure.ac: Add check for new options in isl-0.15.
3465 * config.in, configure: Rebuilt.
3466 * graphite-blocking.c: Include <isl/constraint.h>
3467 * graphite-interchange.c, graphite-poly.c: Likewise.
3468 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
3469 * graphite.c: Likewise.
3470 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
3472 * graphite-dependences.c: Include <isl/constraint.h>.
3473 (max_number_of_out_dimensions): Returns isl_stat.
3474 (extend_schedule_1): Likewise
3475 (extend_schedule): Corresponding changes.
3476 * graphite-optimize-isl.c: Include <isl/constraint.h> and
3478 (getSingleMap): Change return type of isl_stat.
3479 (optimize_isl): Conditionally use
3480 isl_options_set_schedule_serialize_sccs.
3481 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
3482 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
3484 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
3487 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
3488 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
3490 2015-07-21 Richard Biener <rguenther@suse.de>
3492 PR tree-optimization/66948
3493 * genmatch.c (capture_info::walk_match): Also recurse to
3494 captures. Properly compute expr state from captures of
3496 * match.pd: Add single-use guards to
3497 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
3499 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
3501 * config/nvptx/mkoffload.c (process): Add static destructor call.
3503 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3506 * match.pd (A - B -> A + (-B)): Don't allow folding
3507 when type if a fixed-point type.
3509 2015-07-20 DJ Delorie <dj@redhat.com>
3511 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
3512 (iorqi3_real): Likewise for set1.
3514 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
3516 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
3519 2015-07-20 Aditya Kumar <hiraditya@msn.com>
3521 * graphite-isl-ast-to-gimple.c:
3522 Refactor so that each function can access 'region'. This will help
3523 maintain a parameter rename_map within a region.
3525 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3527 * config/rs6000/rs6000.md (*lt0_disi): New.
3529 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3532 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
3533 "available letters" comment.
3534 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
3535 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
3536 and_2rld_operand): Delete.
3537 (and_operand): Adjust.
3538 (rotate_mask_operator): New.
3539 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
3540 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
3541 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
3542 extract_ME): Delete.
3543 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
3544 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
3545 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
3546 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
3547 rs6000_emit_2insn_and): New.
3548 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
3549 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
3550 includes_rldic_lshift_p, includes_rldicr_lshift_p,
3551 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
3552 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
3553 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
3554 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
3555 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
3556 rs6000_emit_2insn_and): New.
3557 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
3558 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
3560 <NOT>: Don't fall through to next case.
3561 <AND>: Handle the various rotate-and-mask cases directly.
3562 <IOR>: Always cost as one insn.
3563 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
3564 (and<mode>3): Adjust expander for the new patterns.
3565 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
3566 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
3567 (*and<mode>3_imm_dot_shifted): New.
3568 (*and<mode>3_mask): Delete, rewrite as ...
3569 (and<mode>3_mask): ... New.
3570 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
3571 (andsi3_internal0_nomc): Delete.
3572 (*andsi3_internal6): Delete.
3573 (*and<mode>3_2insn): New.
3574 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
3575 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
3576 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
3577 *insvdi_internal3): Delete.
3578 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
3579 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
3580 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
3581 *ior<mode>_mask): New.
3582 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
3583 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
3584 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
3585 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
3587 (ashr<mode>3): Delete expander.
3588 (*ashr<mode>3): Rename to ...
3589 (ashr<mode>3): ... This.
3590 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
3591 (*rotldi3_internal4, *rotldi3_internal5 and split,
3592 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
3593 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
3594 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
3595 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
3596 (splitter for loading a mask): Adjust.
3597 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
3599 2015-07-20 Marek Polacek <polacek@redhat.com>
3601 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
3602 output_add_clobbers, output_added_clobbers_hard_reg_p,
3603 gen_rtx_scratch): Remove declarations.
3605 2015-07-20 Marek Polacek <polacek@redhat.com>
3608 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
3610 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3612 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
3613 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
3615 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3617 * combine.c (combine_simplify_rtx): Move simplification step
3618 before various transformations/substitutions.
3620 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
3622 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
3623 (struct int_traits): Likewise.
3625 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3627 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
3628 function to vmsdbgout_function_decl.
3630 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
3633 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
3634 from misaligned positions.
3635 (ix86_expand_pinsr): Reject insertions to misaligned positions.
3637 2015-07-18 Sebastian Pop <s.pop@samsung.com>
3641 * Makefile.in: Removed omega.o.
3642 * common.opt: Document flag fcheck-data-deps as deprecated.
3643 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
3644 its associated params: omega-max-vars, omega-max-geqs,
3645 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
3646 omega-max-keys, omega-eliminate-redundant-constraints.
3647 * doc/loop.texi: Remove all the section on Omega.
3648 * graphite-blocking.c: Include missing params.h: it used to be
3649 included through tree-data-ref.h and omega.h.
3650 * graphite-isl-ast-to-gimple.c: Same.
3651 * graphite-optimize-isl.c: Same.
3652 * graphite-sese-to-poly.c: Same.
3656 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
3657 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
3658 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
3659 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
3660 * passes.def: Remove pass_check_data_deps.
3661 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
3662 (dump_conflict_function): Same.
3663 (dump_subscript): Same.
3664 (print_direction_vector): Same.
3665 (print_dir_vectors): Same.
3666 (print_lambda_vector): Same.
3667 (print_dist_vectors): Same.
3668 (dump_data_dependence_relation): Same.
3669 (dump_data_dependence_relations): Same.
3670 (dump_dist_dir_vectors): Same.
3672 (init_omega_eq_with_af): Removed.
3673 (omega_extract_distance_vectors): Removed.
3674 (omega_setup_subscript): Removed.
3675 (init_omega_for_ddr_1): Removed.
3676 (init_omega_for_ddr): Removed.
3677 (ddr_consistent_p): Removed.
3678 (compute_affine_dependence): Do not use omega to check data
3680 (compute_data_dependences_for_bb): Removed.
3681 (analyze_all_data_dependences): Removed.
3682 (tree_check_data_deps): Removed.
3683 * tree-data-ref.h: Do not include omega.h.
3684 (compute_data_dependences_for_bb): Removed.
3685 (tree_check_data_deps): Removed.
3686 * tree-ssa-loop.c (pass_check_data_deps): Removed.
3687 (make_pass_check_data_deps): Removed.
3688 * tree-ssa-phiopt.c: Include params.h.
3689 * tree-vect-data-refs.c: Same.
3690 * tree-vect-slp.c: Same.
3692 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
3694 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
3695 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
3696 (mem->fpreg splitters): Ditto.
3697 (general_operand->nonimmediate_operand splitter): Use explicit modes.
3698 Disable DFmode for TARGET_64BIT.
3700 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
3703 * config/i386/i386.c (ix86_expand_prologue): Replicate static
3706 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
3708 * config/nvptx/mkoffload.c (process): Constify host data.
3709 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
3711 (generate_host_descr_file): Likewise.
3713 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
3714 Sebastian Pop <s.pop@samsung.com>
3717 * graphite-dependences.c (add_pdr_constraints): Renamed
3718 pdr->extent to pdr->subscript_sizes.
3719 * graphite-interchange.c (build_linearized_memory_access): Add
3720 back all gcc_assert's that the "isl_int to isl_val conversion"
3721 patch has removed. Refactored.
3722 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
3723 * graphite-poly.c (new_poly_dr): Same.
3724 (free_poly_dr): Same.
3725 * graphite-poly.h (struct poly_dr): Same.
3726 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
3727 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
3728 * graphite-scop-detection.h: Fix space.
3729 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
3730 back all gcc_assert's removed by a previous patch.
3731 (wrap): Remove the_isl_ctx global variable that the same patch has
3733 (build_loop_iteration_domains): Same.
3734 (add_param_constraints): Same.
3735 (pdr_add_data_dimensions): Same. Refactored.
3736 (build_poly_dr): Renamed extent to subscript_sizes.
3738 2015-07-17 Marek Polacek <polacek@redhat.com>
3740 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
3741 * match.pd: ... here.
3743 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
3745 * config/nvptx/mkoffload.c (process): Constify target data.
3746 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
3747 Constify target data.
3748 (generate_target_offloadend_file): Likewise.
3750 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
3752 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
3753 to allow renaming of PHI arguments on edges incoming from outer
3754 loop header, add corresponding check before start PHI iterator.
3755 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
3756 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
3757 with true force_vectorize. Set-up dominator for outer loop too.
3758 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
3759 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
3760 was marked with force_vectorize and has restricted cfg.
3761 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
3763 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3764 do peeling for outer loops.
3766 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
3767 Matthias Klose <doko@ubuntu.com>
3769 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
3770 build-sysroot, sysroot from the `Miscenalleous configure options' to
3771 the `Directories' section and strip trailing `/' from with_sysroot.
3772 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
3773 * configure: Regenerated.
3775 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
3778 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
3779 (TARGET_HARD_DF_REGS): Ditto.
3780 (TARGET_HARD_XF_REGS): Ditto.
3781 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
3782 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
3783 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
3784 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
3785 (*movsf_internal): Add alternatives 16 and 17. Enable
3786 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
3788 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
3790 PR rtl-optimization/66891
3791 * calls.c (expand_call): Wrap precompute_register_parameters with
3792 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
3794 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
3796 * config/nvptx/mkoffload.c (process): Constify mapping variables.
3797 Define target data struct and initialize it.
3799 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
3801 PR rtl-optimization/66626
3802 * ira.h (emit-rtl.h): Include.
3803 (non_spilled_static_chain_regno_p): New.
3804 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
3805 unless it is non spilled static chain pseudo.
3806 (assign_hard_rego): Spill memory profitable allocno unless it is
3807 non spilled static chain pseudo.
3808 (allocno_spill_priority_compare): Put non spilled static chain
3809 pseudo at the end of sorted array.
3810 (improve_allocation): Do nothing if we have static chain and
3812 (allocno__priority_compare_func): Put non spilled static chain
3813 pseudo at the beginning of sorted array.
3814 (move_spill_restore): Ignore non spilled static chain pseudo.
3815 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
3816 to non spilled static chain pseudo.
3817 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
3818 pseudo at the beginning of sorted array.
3819 (spill_for): Spill non spilled static chain pseudo last.
3820 * lra-constraints.c (lra_constraints): Remove static chain pseudo
3821 check for equivalence.
3823 2015-07-16 Martin Liska <mliska@suse.cz>
3826 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
3827 dst_ctx if it does not exist.
3829 2015-07-16 Martin Liska <mliska@suse.cz>
3831 * hash-set.h (remove): New function.
3832 (iterator): New iteration class for hash_set.
3834 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3836 * genattrtab.c (make_canonical): Add a file_location parameter.
3837 Use fatal_at rather than fatal.
3838 (get_attr_value): Likewise. Update call to make_canonical.
3839 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
3840 (make_internal_attr): Update calls accordingly.
3842 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3844 * read-md.h (message_with_line, error_with_line): Delete.
3845 * read-md.c (message_with_line, error_with_line): Delete.
3846 * gensupport.h: Include read-md.h.
3847 (md_rtx_info): New structure.
3848 (read_md_rtx): Use it. Return a bool success value.
3849 * gensupport.c (read_md_rtx): Likewise.
3850 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
3851 (main): Update after interface changes.
3852 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
3853 (main): Update after interface changes.
3854 * genattrtab.c (insn_code_number): Delete.
3855 (optimize_attrs): Add a max_insn_code parameter and use it instead
3856 of insn_code_number.
3857 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
3858 Use *_at rather than *_with_line functions.
3859 (gen_insn): Likewise.
3860 (gen_delay): Likewise.
3861 (gen_insn_reserv): Likewise.
3862 (gen_bypass): Take an md_rtx_info rather than an rtx.
3863 (main): Update after interface changes. Use a local max_insn_code
3864 variable instead of insn_code_number.
3865 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
3866 an rtx. Use fatal_at rather than fatal.
3867 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
3868 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
3869 (gen_absence_set, gen_final_absence_set, gen_automaton)
3870 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
3871 (main): Update after interface changes.
3872 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
3874 (main): Update after interface changes.
3875 * genconditions.c (main): Use new read_md_rtx interface.
3876 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
3877 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
3878 (main): Update after interface changes.
3879 * genemit.c (insn_code_number, insn_index_number): Delete.
3880 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3881 Use fatal_at rather than fatal.
3882 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
3884 (gen_split): Likewise.
3885 (main): Update after interface changes.
3886 * genextract.c (line_no): Delete.
3887 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3888 Update call to walk_rtx.
3889 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
3890 rather than message_with_line.
3891 (walk_rtx): Add an md_rtx_info argument. Update call to
3892 VEC_safe_set_locstr.
3893 (main): Update after interface changes.
3894 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
3895 and lineno. Use error_at rather than separate message_with_line
3896 calls and have_error assignments.
3897 (main): Update after interface changes.
3898 * genmddump.c (main): Use new read_md_rtx interface.
3899 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
3900 (main): Update after interface changes.
3901 * genoutput.c (next_code_number): Delete.
3902 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3903 (gen_peephole, gen_expand, gen_split): Likewise.
3904 (note_constraint): Likewise. Use *_at rather than *_with_line
3906 (main): Update after interface changes.
3907 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
3909 (main): Update after interface changes.
3910 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
3911 than an rtx and lineno.
3912 (process_define_constraint): Likewise.
3913 (process_define_register_constraint): Likewise.
3914 (main): Update after interface changes.
3915 * genrecog.c (next_insn_code, pattern_lineno): Delete.
3916 (validate_pattern): Replace top-level rtx with an md_rtx_info.
3917 Use *_at rather than *_with_line functions.
3918 (match_pattern_2): Likewise.
3919 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
3920 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
3921 Use *_at rather than *_with_line functions.
3922 * gentarget-def.c (add_insn): New function.
3923 (main): Use it. Use new read_md_rtx interface.
3925 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3927 * gensupport.h (compute_test_codes): Take a file_location rather
3929 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
3930 rather than *_with_line functions.
3931 (process_define_predicate): Update call to compute_test_codes.
3932 * genpreds.c (validate_exp): Take a file_location rather than a
3933 line number. Use *_at functions rather than *_with_line functions.
3934 (process_define_predicate): Update call to validate_exp.
3935 (constraint_data): Replace lineno field with a file_location.
3936 (add_constraint): Take a file_location rather than a line number.
3937 Use *_at functions rather than *_with_line functions. Fix error
3938 message for address constraints. Update after changes to
3939 validate_exp, constraint_data and compute_test_codes.
3940 (process_define_constraint): Update accordingly.
3941 (process_define_register_constraint): Likewise.
3943 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3945 * genoutput.c (data): Use a file_location to record the source
3948 (idata, idata_end): Remove initialization.
3949 (constraint_data): Replace lineno with a file_location.
3950 (output_insn_data): Update after changes to data.
3951 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
3952 (scan_operands): Likewise, using *_at rather than *_with_line
3954 (process_template): Likewise.
3955 (validate_insn_alternatives): Likewise.
3956 (validate_insn_operands): Likewise.
3957 (validate_optab_operands): Likewise.
3958 (init_insn_for_nothing): Initialize idata and idata_end.
3959 (note_constraint): Update after changes to constraint_data,
3960 using at rather than with_line functions.
3961 (mdep_constraint_len): Take a file_location rather than a
3962 line number. Use at rather than with_line functions.
3964 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3966 * read-md.h (fatal_at): Declare.
3967 * read-md.c (fatal_at): New function.
3968 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
3969 to record the source position.
3970 (check_attr_test): Take a file_location instead of a line number.
3971 Use fatal_at instead of fatal.
3972 (check_attr_value): Update after above changes, using "at"
3973 rather than "with_line" reporting functions.
3974 (convert_set_attr_alternative): Likewise.
3975 (gen_attr): Likewise.
3976 (check_defs): Likewise. Don't assign to read_md_filename.
3977 (gen_insn): Update initialization after above changes.
3978 (gen_delay): Likewise.
3979 (write_insn_cases): Print the filename for a define_peephole.
3980 (gen_insn_reserv): Take a line number as argument and update
3981 the call to check_attr_test.
3982 (main): Pass a line number to gen_insn_reserv.
3984 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3986 * read-md.h (file_location): New structure.
3987 (directive_handler_t): Take a file_location rather than a line number.
3988 (message_at, error_at): Declare.
3989 (read_skip_construct): Delete.
3990 * read-md.c (message_with_line_1): Replace with...
3991 (message_at_1): ...this new function.
3992 (message_at, error_at): New functions.
3993 (message_with_line, error_with_line): Update to use message_at_1.
3994 (handle_enum): Take a file_location rather than a line number
3995 and use error_at for error reporting.
3996 (handle_include): Likewise.
3997 (read_skip_construct): Likewise. Make static.
3998 (handle_file): Update after above changes. Pass a file_location
3999 rather than a line number to handle_directive.
4000 * gensupport.c (queue_elem): Replace separate filename and lineno
4001 with a file_location.
4002 (queue_pattern): Replace filename and lineno arguments with a
4003 file_location. Update after change to queue_elem.
4004 (process_define_predicate): Replace lineno argument with a
4005 file_location and use error_at for error reporting. Update
4006 after above changes.
4007 (process_rtx): Likewise.
4008 (subst_pattern_match): Likewise.
4009 (get_alternatives_number): Likewise.
4010 (alter_predicate_for_insn): Likewise.
4011 (rtx_handle_directive): Likewise.
4012 (is_predicable): Update after above changes, using error_at rather
4013 than error_with_line.
4014 (has_subst_attribute): Likewise.
4015 (identify_predicable_attribute): Likewise.
4016 (alter_attrs_for_subst_insn): Likewise.
4017 (process_one_cond_exec): Likewise.
4018 (process_substs_on_one_elem): Likewise.
4019 (process_define_subst): Likewise.
4020 (check_define_attr_duplicates): Likewise.
4021 (read_md_rtx): Update after change to queue_elem.
4023 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
4025 * genoutput.c (next_index_number): Delete.
4026 (data): Remove index_number.
4027 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
4028 (main): Remove manipulation of next_index_number.
4030 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
4032 * genattrtab.c (check_attr_value): Remove handling of null attrs.
4033 (make_canonical): Likewise.
4035 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
4037 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
4038 instead of adjust_address_nv.
4039 (restore_stack_nonlocal): Likewise.
4040 (nonlocal_goto): Likewise.
4042 2015-07-16 Tom de Vries <tom@codesourcery.com>
4044 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
4045 not have a corresponding loop header phi.
4047 2015-07-16 Tom de Vries <tom@codesourcery.com>
4049 * tree-parloops.c (create_loads_for_reductions): Handle case that
4050 reduction is unused.
4052 2015-07-16 Richard Biener <rguenther@suse.de>
4054 PR tree-optimization/66894
4055 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
4056 about deriving NE_EXPR from truncated values.
4058 2015-07-16 Martin Liska <mliska@suse.cz>
4061 (object_allocator): Add new class.
4062 (pool_allocator::initialize): Use the underlying class.
4063 (pool_allocator::allocate): Likewise.
4064 (pool_allocator::remove): Likewise.
4065 (operator new): A new generic allocator.
4066 * asan.c (struct asan_mem_ref): Remove unused members.
4067 (asan_mem_ref_new): Replace new operator with
4068 object_allocator::allocate.
4069 (free_mem_ref_resources): Change deallocation.
4070 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
4071 with object_allocator.
4072 * config/sh/sh.c (add_constant): Replace new operator with
4073 object_allocator::allocate.
4074 (sh_reorg): Change call to a release method.
4075 * cselib.c (struct elt_list): Remove unused members.
4076 (new_elt_list): Replace new operator with
4077 object_allocator::allocate.
4078 (new_elt_loc_list): Likewise.
4079 (new_cselib_val): Likewise.
4080 (unchain_one_elt_list): Change delete operator with remove method.
4081 (unchain_one_elt_loc_list): Likewise.
4082 (unchain_one_value): Likewise.
4083 (cselib_finish): Release newly added static allocators.
4084 * cselib.h (struct cselib_val): Remove unused members.
4085 (struct elt_loc_list): Likewise.
4086 * df-problems.c (df_chain_alloc): Replace pool_allocator with
4088 * df-scan.c (struct df_scan_problem_data): Likewise.
4089 (df_scan_alloc): Likewise.
4090 * df.h (struct dataflow): Likewise.
4091 * dse.c (struct read_info_type): Likewise.
4092 (struct insn_info_type): Likewise.
4093 (struct dse_bb_info_type): Likewise.
4094 (struct group_info): Likewise.
4095 (struct deferred_change): Likewise.
4096 (get_group_info): Likewise.
4097 (delete_dead_store_insn): Likewise.
4098 (free_read_records): Likewise.
4099 (replace_read): Likewise.
4100 (check_mem_read_rtx): Likewise.
4101 (scan_insn): Likewise.
4102 (dse_step1): Likewise.
4103 (dse_step7): Likewise.
4104 * et-forest.c (struct et_occ): Remove unused members.
4105 (et_new_occ): Use allocate instead of new operator.
4106 (et_new_tree): Likewise.
4107 (et_free_tree): Call release method explicitly.
4108 (et_free_tree_force): Likewise.
4109 (et_free_pools): Likewise.
4110 (et_split): Use remove instead of delete operator.
4111 * et-forest.h (struct et_node): Remove unused members.
4112 * ipa-cp.c: Change pool_allocator to object_allocator.
4113 * ipa-inline-analysis.c: Likewise.
4114 * ipa-profile.c: Likewise.
4115 * ipa-prop.c: Likewise.
4116 * ipa-prop.h: Likewise.
4117 * ira-build.c (initiate_cost_vectors): Cast return value.
4118 (ira_allocate_cost_vector): Likewise.
4119 * ira-color.c (struct update_cost_record): Remove unused members.
4120 * lra-int.h (struct lra_live_range): Likewise.
4121 (struct lra_copy): Likewise.
4122 (struct lra_insn_reg): Likewise.
4123 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
4124 * lra.c (new_insn_reg): Replace new operator with allocate method.
4125 (free_insn_regs): Same for operator delete.
4126 (finish_insn_regs): Release new static allocator.
4127 (finish_insn_recog_data): Likewise.
4128 (lra_free_copies): Replace delete operator with remove method.
4129 (lra_create_copy): Replace operator new with allocate method.
4130 (invalidate_insn_data_regno_info): Same for remove method.
4131 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
4132 (free_debug_insn_changes): Replace delete operator with remove method.
4133 (replace_oldest_value_reg): Replace operator new with allocate method.
4134 (pass_cprop_hardreg::execute): Release new static variable.
4135 * sched-deps.c (sched_deps_init): Change pool_allocator to
4137 * sel-sched-ir.c: Likewise.
4138 * sel-sched-ir.h: Likewise.
4139 * stmt.c (expand_case): Likewise.
4140 (expand_sjlj_dispatch_table): Likewise.
4141 * tree-sra.c (struct access): Remove unused members.
4142 (struct assign_link): Likewise.
4143 (sra_deinitialize): Release newly added static pools.
4144 (create_access_1):Replace operator new with allocate method.
4145 (build_accesses_from_assign): Likewise.
4146 (create_artificial_child_access): Likewise.
4147 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
4148 pool_allocator to object_allocator.
4149 * tree-ssa-pre.c: Likewise.
4150 * tree-ssa-reassoc.c: Likewise.
4151 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
4152 * tree-ssa-strlen.c: Likewise.
4153 * tree-ssa-structalias.c: Likewise.
4154 * var-tracking.c (onepart_pool_allocate): New function.
4155 (unshare_variable): Use the newly added function.
4156 (variable_merge_over_cur): Likewise.
4157 (variable_from_dropped): Likewise.
4158 (variable_was_changed): Likewise.
4159 (set_slot_part): Likewise.
4160 (emit_notes_for_differences_1): Likewise.
4161 (vt_finalize): Release newly added static pools.
4163 2015-07-16 Martin Jambor <mjambor@suse.cz>
4165 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
4166 all uses. Fix two typos in its general comment.
4167 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
4169 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
4171 * config/i386/linux-common.h (LINK_MPX): New.
4172 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
4173 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
4174 indicating '-z bndplt' support by linker.
4175 * configure: Regenerate.
4176 * config.in: Regenerate.
4178 2015-07-16 Richard Biener <rguenther@suse.de>
4180 * fold-const.c (fold_widened_comparison): Remove.
4181 (fold_sign_changed_comparison): Likewise.
4182 (fold_comparison): Move widened and sign-changed comparison
4184 * match.pd: ... to patterns here.
4185 * generic-match-head.c: Include target.h.
4186 * gimple-match-head.c: Likewise.
4188 2015-07-16 Richard Biener <rguenther@suse.de>
4190 * tree-ssa-dom.c (dom_valueize): New function.
4191 (record_temporary_equivalences): Also record equivalences
4192 for dominating stmts that have uses of equivalences we are
4195 2015-07-16 Bin Cheng <bin.cheng@arm.com>
4197 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
4198 add_autoinc_candidates.
4199 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
4200 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
4201 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
4202 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
4204 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
4205 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
4206 Remove parameter struct iv*. Call add_autoinc_candidates here.
4207 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
4208 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
4210 (find_iv_candidates): Call new functions.
4212 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
4214 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
4215 uninitialized-variable warning.
4217 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
4220 * config/sh/sh.md (movdi): Split simple reg move to two movsi
4221 when the destination is R0.
4223 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
4226 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
4227 * config/i386/i386.c (ix86_expand_pextr): New function.
4228 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
4229 for non-lowpart subregs.
4230 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
4231 (insv<mode>): Use SWI248 mode iterator.
4232 (insv<mode>_1): Ditto.
4234 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
4235 Sebastian Pop <s.pop@samsung.com>
4237 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
4238 iterator to use_stmt.
4240 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
4241 Sebastian Pop <s.pop@samsung.com>
4243 * graphite-scop-detection.c (build_scops_1): Discard scops for
4246 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
4247 Sebastian Pop <s.pop@samsung.com>
4249 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
4250 case of a return statement in scop.
4252 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
4253 Sebastian Pop <s.pop@samsung.com>
4255 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
4256 INTEGER_TYPE parameters.
4257 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
4258 VECTOR_CST in scan_tree_for_params.
4259 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
4261 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
4263 * gimple-pretty-print.h: Don't include pretty-print.h.
4264 * tree-streamer.h: Don't include lto-streamer.h.
4265 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
4266 * gimple-streamer-in.c: Remove redundant includes.
4267 * gimple-streamer-out.c: Likewise.
4268 * ipa-devirt.c: Likewise.
4269 * ipa-icf.c: Likewise.
4270 * ipa-inline-analysis.c: Likewise.
4271 * ipa-polymorphic-call.c: Likewise.
4272 * ipa-profile.c: Likewise.
4273 * ipa-prop.c: Likewise.
4274 * ipa-pure-const.c: Likewise.
4275 * lto-cgraph.c: Likewise.
4276 * lto-streamer-in.c: Likewise.
4277 * lto-streamer-out.c: Likewise.
4278 * lto-streamer.c: Likewise.
4279 * tree-streamer-in.c: Likewise.
4280 * tree-streamer-out.c: Likewise.
4281 * tree-streamer.c: Likewise.
4283 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
4285 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
4287 * opts.c: Remove multiline #include comment.
4289 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
4291 * config/nvptx/mkoffload.c (process): Add C++ protection to
4294 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4297 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
4298 null before IEEE 128-bit floating point support patch.
4300 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4302 * simplify-rtx.c (simplify_ternary_operation): Add simplification
4303 for (!c) != {0,...,0} ? a : b for vector modes.
4305 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
4306 Martin Jambor <mjambor@suse.cz>
4308 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
4309 struct func_body_info* instead of struct ipa_node_params*, expecting
4310 fbi->info to be filled in. Replace throughout. Adjust call to
4311 ipa_load_from_parm_agg.
4312 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
4313 instead of struct ipa_node_params*. Adjust calls to other functions
4314 so that they pass either fbi or fbi->info.
4315 (set_switch_stmt_execution_predicate): Likewise.
4316 (will_be_nonconstant_predicate): Likewise.
4317 (compute_bb_predicates): Likewise.
4318 (estimate_function_body_sizes): Move asserts earlier. Fill in
4319 struct func_body_info, replace parms_info with fbi.info. Adjust
4320 calls to functions that now accept struct func_body_info.
4321 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
4322 (struct func_body_info): Likewise.
4323 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
4324 remove static. Adjust callers.
4325 (ipa_load_from_parm_agg): Remove.
4326 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
4327 (func_body_info): Likewise.
4328 (ipa_load_from_parm_agg): Adjust prototype.
4330 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4332 * gensupport.c (rtx_handle_directive): Adjust.
4333 * read-rtl.c (apply_iterators): Take vector to add rtxs to
4334 instead of expr list rtx.
4335 (add_define_attr_for_define_subst): Likewise.
4336 (add_define_subst_attr): Likewise.
4337 (read_subst_mapping): Likewise.
4338 (read_rtx): Likewise.
4339 * rtl.h (read_rtx): Adjust.
4341 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4343 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
4345 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
4348 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
4349 (*tls_local_dynamic_base_64_<mode>): Ditto.
4350 (*tls_local_dynamic_base_64_largepic): Ditto.
4351 (tls_global_dynamic_64_<mode>): Update expander pattern.
4352 (tls_local_dynamic_base_64_<mode>): Ditto.
4354 2015-07-15 Richard Biener <rguenther@suse.de>
4356 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
4357 and bool_var == 1 -> bool_var simplifications ...
4358 * match.pd: ... to patterns here. Factor out negate_expr_p
4359 cases from the A - B -> A + (-B) patterns as negate_expr_p
4360 predicate and add a -(A + B) -> (-B) - A pattern.
4362 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
4364 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
4366 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
4367 Robert Suchanek <robert.suchanek@imgtec.com>
4369 * config/mips/mips.c (mips_int_mask): New enum.
4370 (mips_shadow_set): Likewise.
4371 (int_mask): New variable.
4372 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
4373 (machine_function): Add int_mask and use_shadow_register_set.
4374 (mips_attribute_table): Add attribute handlers for interrupt and
4375 use_shadow_register_set.
4376 (mips_interrupt_mask): New static function.
4377 (mips_handle_interrupt_attr): Likewise.
4378 (mips_handle_use_shadow_register_set_attr): Likewise.
4379 (mips_use_shadow_register_set): Change return type to enum
4380 mips_shadow_set. Add argument handling for use_shadow_register_set
4382 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
4383 compare with mips_shadow_set enum.
4384 (mips_compute_frame_info): Add interrupt mask and
4385 use_shadow_register_set to per-function information structure.
4386 Add a stack slot for EPC unconditionally.
4387 (mips_expand_prologue): Compare use_shadow_register_set value
4388 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
4389 masked interrupt register but in EIC mode use K0 and save Cause in K0.
4390 EPC saved and restored unconditionally. Use PMODE_INSN macro when
4391 copying the stack pointer from the shadow register set.
4392 * config/mips/mips.h (SR_IM0): New define.
4393 * config/mips/mips.md (mips_rdpgpr): Rename to...
4394 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
4395 * doc/extend.texi (Declaring Attributes of Functions): Document
4396 optional arguments for interrupt and use_shadow_register_set
4399 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
4401 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
4402 interrupt attribute.
4403 (mips_expand_prologue): Disable the floating point unit in an ISR.
4404 * config/mips/mips.h (SR_COP1): New define.
4406 2015-07-15 Richard Biener <rguenther@suse.de>
4408 * genmatch.c (parser::peek, parser::peek_ident): Add argument
4409 to tell how many tokens to peek ahead (default 1).
4410 (parser::eat_token, parser::eat_ident): Return token consumed.
4411 (parser::parse_result): Parse new switch statement.
4412 * match.pd: Use case statements where appropriate.
4414 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
4416 PR rtl-optimization/58066
4417 * calls.c (expand_call): Precompute register parameters before stack
4418 alignment is performed.
4420 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
4422 PR rtl-optimization/66838
4423 * postreload.c (reload_cse_move2add): Also process
4424 CALL_INSN_FUNCTION_USAGE when resetting information of
4425 call-clobbered registers.
4427 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4428 Cesar Philippidis <cesar@codesourcery.com>
4429 Chung-Lin Tang <cltang@codesourcery.com>
4431 * config/nios2/constraints.md (U, v): New constraints.
4432 * config/nios2/predicates.md (rdprs_dcache_operand): New.
4433 (ldstex_memory_operand): New.
4434 * config/nios2/sync.md: New file.
4435 * config/nios2/nios2.md (unspecv): Add new builtin function
4437 (rdprs, flushd, flushda, wrpie, eni): New patterns.
4438 (top-level): Include sync.md.
4439 * config/nios2/nios2.c (N2_FTYPES): Add function types for
4441 (N2_BUILTINS): Add arch field setting, add new builtins.
4442 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
4444 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
4445 Also handle ldex/stex/ldsex/stsex builtins.
4446 (nios2_expand_rdprs_builtin): New function.
4447 (nios2_expand_cache_builtin): New function.
4448 (nios2_expand_wrpie_builtin): New function.
4449 (nios2_expand_eni_builtin): New function.
4450 (nios2_expand_builtin): Add arch field handling and new builtin
4452 * doc/extend.texi (Altera Nios II Built-in Functions): Document
4454 * doc/md.texi (Machine Constraints): Document U and v constraints.
4456 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4457 Cesar Philippidis <cesar@codesourcery.com>
4458 Chung-Lin Tang <cltang@codesourcery.com>
4460 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
4461 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
4462 callee_save_reg_size and uses_anonymous_args fields.
4463 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
4464 (nios2_create_cfa_notes): New function.
4465 (nios2_adjust_stack): New function for adjusting stack.
4466 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
4467 Use nios2_adjust_stack.
4468 (nios2_expand_epilogue): Likewise.
4469 (nios2_expand_return): New function.
4470 (nios2_can_use_return_insn): Update for CDX pop.n usage.
4471 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
4472 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
4473 * config/nios2/nios2.md (return): Use nios2_expand_return.
4475 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4476 Cesar Philippidis <cesar@codesourcery.com>
4477 Chung-Lin Tang <cltang@codesourcery.com>
4479 * config/nios2/predicates.md (pop_operation): New.
4480 (ldwm_operation, stwm_operation): New.
4481 (nios2_hard_register_operand): New.
4482 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
4483 (ldstwm_operation_p): Declare.
4484 (gen_ldstwm_peep): Declare.
4485 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
4486 (base_reg_adjustment_p): New.
4487 (pop_operation_p): New.
4488 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
4489 (nios2_ldstwm_regset_p): New.
4490 (ldstwm_operation_p): New.
4492 (nios2_ldst_parallel): New.
4493 (struct ldswm_operand): Declare.
4494 (compare_ldstwm_operands): New.
4495 (can_use_cdx_ldstw): New.
4496 (gen_ldstwm_peep): New.
4497 * config/nios2/nios2-ldstwm.sml: New.
4498 * config/nios2/nios2.md: Include ldstwm.md.
4499 * config/nios2/ldstwm.md: Generated.
4501 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4502 Cesar Philippidis <cesar@codesourcery.com>
4503 Chung-Lin Tang <cltang@codesourcery.com>
4505 * config/nios2/nios2.h (LABEL_ALIGN): Define.
4506 (REG_ALLOC_ORDER): Define.
4507 (ADJUST_REG_ALLOC_ORDER): Define.
4508 (HONOR_REG_ALLOC_ORDER): Define.
4509 (CDX_REG_P): Define.
4510 (ANDCLEAR_INT): Define.
4511 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
4512 (nios2_label_align): Declare.
4513 (nios2_cdx_narrow_form_p): Declare.
4514 (nios2_adjust_reg_alloc_order): Declare.
4515 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
4517 (nios2_large_unspec_reloc_p): New function, split from...
4518 (nios2_legitimate_pic_operand_p): ...here.
4519 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
4520 (nios2_print_operand_punct_valid_p): New.
4521 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
4522 (split_mem_address): New.
4523 (split_alu_insn): New.
4525 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
4526 (enum nios2_add_insn_kind): New.
4527 (nios2_add_insn_names, nios2_add_insn_narrow): New.
4528 (nios2_add_insn_classify): New.
4529 (nios2_add_insn_asm): New.
4530 (nios2_cdx_narrow_form_p): New.
4531 (label_align, min_labelno, max_labelno): New.
4533 (nios2_label_align): New.
4534 (nios2_adjust_reg_alloc_order): New.
4535 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4536 (TARGET_MACHINE_DEPENDENT_REORG): Define.
4537 * config/nios2/constraints.md (P): New constraint.
4538 * config/nios2/predicates.md (const_and_operand): New.
4540 (stack_memory_operand): New.
4541 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
4542 (length): Update to use nios2_cdx_narrow_form_p().
4543 (type): Add new insn type values.
4544 (control, alu, st, ld, shift): Update insn reservations with
4545 new insn type values.
4546 (*high, *lo_sum): Define new insn patterns for constant generation.
4547 (movqi_internal, movhi_internal, movsi_internal): Reduce
4548 alternatives, update asm template to handle CDX variants, update
4550 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
4551 template, update type attributes.
4552 (extendhisi2, extendqi<mode>2): Likewise.
4553 (addsi3): Change to use function for asm string.
4554 (subsi3): Add CDX notation to asm template, update type attributes.
4555 (negsi3, one_cmplsi3): Likewise.
4556 (andsi3): New pattern, specialized from logical patterns.
4557 (<code>si3): Remove and case, combine alternatives, update asm
4559 (<shift_op>si3): Add CDX notation, update type attributes.
4560 (rotrsi3): Update type attribute.
4561 (*merge, extzv, insv): New insn patterns.
4562 (return): Change to define_expand.
4563 (simple_return): Add CDX notation, update type attributes.
4564 (indirect_jump): Add CDX notation.
4565 (jump): Update asm cases, update length attribute expression.
4566 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
4567 (nios2_cbranch): Update asm cases and length attribute expression
4568 to handle CDX variants.
4569 (nios2_cmp<code>): Update asm template.
4570 (nop): Add CDX notation, update type attributes.
4571 (trap): Add CDX notation.
4572 (ctrapsi4): Update asm cases and length attribute expression to
4574 * doc/md.texi (Machine Constraints): Document P constraint.
4576 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4577 Cesar Philippidis <cesar@codesourcery.com>
4578 Chung-Lin Tang <cltang@codesourcery.com>
4580 * config/nios2/nios2.h (SMALL_INT12): New macro.
4581 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
4582 (nios2_valid_addr_expr_p): Use it.
4583 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
4584 with implicit "io" instructions on R2.
4585 * config/nios2/constraints.md (w): New constraint.
4586 * config/nios2/predicates.md (ldstio_memory_operand): New.
4587 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
4588 operand predicate and constraint.
4589 (ld<bh>io_signed, st<bhw>io>): Likewise.
4590 * doc/md.texi (Machine Constraints): Document w constraint.
4592 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4593 Cesar Philippidis <cesar@codesourcery.com>
4594 Chung-Lin Tang <cltang@codesourcery.com>
4596 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
4597 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
4598 Nios II architecture level.
4599 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
4600 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
4601 (OPTION_DEFAULT_SPECS): Define.
4602 (ASM_SPEC): Add -march= spec strings.
4603 * config/nios2/nios2.c (nios2_option_override): Check for
4604 conflicts involving new options.
4605 * config.gcc (nios2*-*-*): Support --with-arch=.
4606 * doc/invoke.texi (Option Summary, Nios II Options): Document
4607 -march=, -mbmx, and -mcdx.
4609 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
4611 PR rtl-optimization/66626
4612 * lra-constraints.c (lra_constraints): Prevent equivalence
4613 substitution for static chain pseudo in functions with nonlocal
4616 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4618 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
4619 (nios2_emit_stack_limit_check): Add size parameter. Handle
4620 -fstack-limit-symbol as well as -fstack-limit-register.
4621 (nios2_expand_prologue): Emit only a single stack limit check,
4622 even if multiple stack adjustments are required.
4623 (nios2_option_override): Diagnose unsupported combination of -fpic
4624 and -stack-limit-symbol.
4626 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
4628 * Makefile.in (top_srcdir): New.
4629 * configure.ac: Use AM_ZLIB.
4630 * configure: Regeneated.
4632 2015-07-14 Matthias Klose <doko@ubuntu.com>
4635 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
4637 2015-07-14 Richard Biener <rguenther@suse.de>
4639 PR tree-optimization/66863
4640 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
4641 what we record for conversion use stmt lhs inequalities.
4643 2015-07-14 Richard Biener <rguenther@suse.de>
4645 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
4646 (decision_tree::gen_gimple): Likewise.
4648 2015-07-14 Tom de Vries <tom@codesourcery.com>
4650 * gcc.c (greater_than_spec_func): Declare forward.
4651 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
4652 -ftree-parallelize-loops={0,1}.
4653 (static_spec_functions): Add greater_than_spec_func function with name
4655 (greater_than_spec_func): New function.
4657 2015-07-14 Richard Biener <rguenther@suse.de>
4659 * tree-ssa-dom.c (record_temporary_equivalences): Merge
4660 wideing type conversion case from record_equivalences_from_incoming_edge
4661 and use record_equality to record equivalences.
4662 (record_equivalences_from_incoming_edge): Call
4663 record_temporary_equivalences.
4665 2015-07-14 Richard Biener <rguenther@suse.de>
4667 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
4668 (struct if_expr): New.
4669 (struct with_expr): Likewise.
4670 (is_a_helper): Add helpers for if_expr and with_expr.
4671 (struct simplify): Add simplify_kind enum and member. Remove
4673 (simplify::simplify): Adjust.
4674 (lower_commutative): Adjust.
4675 (lower_opt_convert): Likewise.
4676 (lower_cond): Likewise.
4677 (replace_id): Handle with_expr and if_expr.
4678 (lower_for): Adjust.
4679 (dt_simplify::gen_1): New recursive worker, split out from ...
4680 (dt_simplify::gen): ... here. Deal with if and with expansion
4682 (capture_info::capture_info): Take context argument
4683 (capture_info::walk_result): Only analyze specific result.
4684 (parser::parse_result): New function.
4685 (parser::parse_simplify): Adjust to parse ifs with then end
4687 (parser::parse_if): Simplify.
4688 (parser::parse_pattern): Pass down simplify kind.
4689 * match.pd: Convert if structure to new syntax.
4691 2015-07-13 Marek Polacek <polacek@redhat.com>
4693 * rtl.c (rtx_equal_p_cb): Fix typo.
4695 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
4697 * omega.h: Don't include config.h, don't include params.h again if
4698 omega.h has already been included.
4699 * graphite-poly.h: Include sese.h.
4700 * graphite.c: Don't include sese.h, remove needless includes and
4701 minimize includes outside #ifdef HAVE_isl block.
4702 * graphite-blocking.c: Don't include sese.h, remove needless includes,
4703 and wrap entire file in #ifdef HAVE_isl
4704 * graphite-dependences.c: Likewise.
4705 * graphite-interchange.c: Likewise.
4706 * graphite-isl-ast-to-gimple.c: Likewise.
4707 * graphite-optimize-isl.c: Likewise.
4708 * graphite-poly.c: Likewise.
4709 * graphite-scop-detection.c: Likewise.
4710 * graphite-sese-to-poly.c: Likewise.
4712 2015-07-13 Tom de Vries <tom@codesourcery.com>
4714 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
4716 2015-07-13 Renlin Li <renlin.li@arm.com>
4719 * simplify-rtx.c (simplify_const_relational_operation): Add
4720 side_effects_p checks.
4722 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
4724 * bitmap.h: Fix double word typos.
4727 * cfgloopmanip.c: Same.
4730 * cgraphclones.c: Same.
4732 * config/aarch64/aarch64-protos.h: Same.
4733 * config/aarch64/aarch64.c: Same.
4734 * config/aarch64/aarch64.md: Same.
4735 * config/arm/arm.md: Same.
4736 * config/arm/arm1020e.md: Same.
4737 * config/arm/arm1026ejs.md: Same.
4738 * config/arm/arm926ejs.md: Same.
4739 * config/arm/fa526.md: Same.
4740 * config/arm/fa606te.md: Same.
4741 * config/arm/fa626te.md: Same.
4742 * config/arm/fa726te.md: Same.
4743 * config/arm/fmp626.md: Same.
4744 * config/darwin.c: Same.
4745 * config/epiphany/epiphany.c: Same.
4746 * config/frv/frv.c: Same.
4747 * config/ft32/ft32.c: Same.
4748 * config/gnu-user.h: Same.
4749 * config/h8300/constraints.md: Same.
4750 * config/i386/i386.c: Same.
4751 * config/i386/i386.md: Same.
4752 * config/iq2000/iq2000.md: Same.
4753 * config/mips/mips.c: Same.
4754 * config/mmix/mmix.md: Same.
4755 * config/moxie/moxie.c: Same.
4756 * config/nds32/nds32.md: Same.
4757 * config/pa/pa.h: Same.
4758 * config/rs6000/aix.h: Same.
4759 * config/rs6000/rs6000.h: Same.
4760 * config/sh/sh.c: Same.
4761 * config/tilegx/tilegx.md: Same.
4762 * config/tilepro/gen-mul-tables.cc: Same.
4765 * doc/invoke.texi: Same.
4767 * dwarf2out.c: Same.
4772 * hash-table.h: Same.
4773 * internal-fn.c: Same.
4775 * ipa-devirt.c: Same.
4778 * ipa-profile.c: Same.
4783 * reg-stack.c: Same.
4789 * tree-inline.c: Same.
4791 * tree-ssa-dom.c: Same.
4792 * tree-ssa-loop-ivopts.c: Same.
4793 * tree-ssa-structalias.c: Same.
4794 * tree-ssa-tail-merge.c: Same.
4795 * tree-ssa-ter.c: Same.
4796 * tree-ssa-threadupdate.c: Same.
4797 * tree-ssa-uninit.c: Same.
4798 * tree-ssanames.c: Same.
4799 * tree-vect-loop-manip.c: Same.
4805 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4808 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
4809 tree_ssa_phiopt_worker): Call it.
4811 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4813 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
4814 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
4817 2015-07-11 Marek Polacek <polacek@redhat.com>
4820 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
4821 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
4822 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
4823 rather than bb_has_abnormal_call_pred.
4824 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
4825 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
4826 rather than bb_has_abnormal_call_pred.
4828 2015-07-10 Anatoly Sokolov <aesok@post.ru>
4830 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4831 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
4832 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4833 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
4834 v850_legitimate_address_p): New functions.
4835 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4837 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
4840 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
4841 indirect sibcall with register arguments if register available
4842 for argument passing.
4843 (init_cumulative_args): Set cfun->machine->arg_reg_available
4844 to (cum->nregs > 0) or to true if function has a variable
4846 (function_arg_advance_32): Set cfun->machine->arg_reg_available
4847 to false if cum->nregs <= 0.
4848 * config/i386/i386.h (machine_function): Add arg_reg_available.
4850 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
4852 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
4853 and gen_higpart instead of gen_rtx_SUBREG.
4854 * config/i386/i386.md
4855 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
4856 (read-modify peephole2): Use gen_lowpart instead of
4857 gen_rtx_SUBREG for operand 5.
4859 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
4861 * config/tilepro/gen-mul-tables.cc (main): Change include list for
4863 * config/tilepro/mul-tables.c: Regenerate.
4864 * config/tilegx/mul-tables.c: Regenerate.
4866 2015-07-10 Richard Biener <rguenther@suse.de>
4868 * fold-const.c (distribute_bit_expr): Remove.
4869 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
4870 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
4871 to A & (B | C) and simplifying A << C1 << C2 to ...
4872 * match.pd: ... patterns here.
4874 2015-07-10 Jiong Wang <jiong.wang@arm.com>
4876 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4877 Mark mem as READONLY and NOTRAP for PIC symbol.
4879 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
4881 * gimple-predict.h: New file.
4882 (gimple_predict_predictor, gimple_predict_set_predictor,
4883 gimple_predict_outcome, gimple_predict_set_outcome,
4884 gimple_build_predict): Relocate here.
4885 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
4886 gimple_predict_outcome, gimple_predict_set_outcome): Move to
4888 * gimple.c (gimple_build_predict): Move to gimple-predict.h
4889 * basic-block.h: Don't include cfghooks.h.
4890 * backend.h: Don't include predict.h.
4891 * cfghooks.h: Include predict.h.
4892 * gimple-pretty-print.c: Include gimple-predict.h.
4893 * gimplify.c: Likwise.
4894 * predict.c: Adjust includes.
4895 * tree-inline.c: Likewise.
4897 * auto-inc-dec.c: Likewise.
4898 * auto-profile.c: Likewise.
4899 * bb-reorder.c: Likewise.
4900 * builtins.c: Likewise.
4901 * caller-save.c: Likewise.
4902 * calls.c: Likewise.
4903 * cfganal.c: Likewise.
4904 * cfgbuild.c: Likewise.
4906 * cfgcleanup.c: Likewise.
4907 * cfgexpand.c: Likewise.
4908 * cfghooks.c: Likewise.
4909 * cfgloopanal.c: Likewise.
4910 * cfgloop.c: Likewise.
4911 * cfgloopmanip.c: Likewise.
4912 * cfgrtl.c: Likewise.
4913 * cgraph.c: Likewise.
4914 * cgraphunit.c: Likewise.
4915 * combine.c: Likewise.
4916 * cprop.c: Likewise.
4919 * dojump.c: Likewise.
4921 * except.c: Likewise.
4922 * expmed.c: Likewise.
4924 * final.c: Likewise.
4925 * fold-const.c: Likewise.
4926 * function.c: Likewise.
4927 * fwprop.c: Likewise.
4928 * gcc-plugin.h: Likewise.
4930 * genattrtab.c: Likewise.
4931 * genemit.c: Likewise.
4932 * gengtype.c: Likewise.
4933 * genopinit.c: Likewise.
4934 * genoutput.c: Likewise.
4935 * genpreds.c: Likewise.
4936 * genrecog.c: Likewise.
4937 * gimple-fold.c: Likewise.
4938 * gimple-iterator.c: Likewise.
4939 * gimple-ssa-isolate-paths.c: Likewise.
4940 * gimple-ssa-strength-reduction.c: Likewise.
4941 * graph.c: Likewise.
4942 * graphite-blocking.c: Likewise.
4943 * graphite.c: Likewise.
4944 * graphite-dependences.c: Likewise.
4945 * graphite-interchange.c: Likewise.
4946 * graphite-isl-ast-to-gimple.c: Likewise.
4947 * graphite-optimize-isl.c: Likewise.
4948 * graphite-poly.c: Likewise.
4949 * graphite-scop-detection.c: Likewise.
4950 * graphite-sese-to-poly.c: Likewise.
4951 * haifa-sched.c: Likewise.
4952 * ifcvt.c: Likewise.
4953 * internal-fn.c: Likewise.
4954 * ipa-cp.c: Likewise.
4955 * ipa-profile.c: Likewise.
4956 * ipa-split.c: Likewise.
4957 * ipa-utils.c: Likewise.
4958 * ira-build.c: Likewise.
4959 * ira-color.c: Likewise.
4960 * ira-conflicts.c: Likewise.
4961 * ira-costs.c: Likewise.
4962 * ira-emit.c: Likewise.
4963 * ira-lives.c: Likewise.
4965 * loop-doloop.c: Likewise.
4966 * loop-init.c: Likewise.
4967 * loop-invariant.c: Likewise.
4968 * loop-unroll.c: Likewise.
4969 * lower-subreg.c: Likewise.
4970 * lra-assigns.c: Likewise.
4972 * lra-coalesce.c: Likewise.
4973 * lra-constraints.c: Likewise.
4974 * lra-lives.c: Likewise.
4975 * lto-cgraph.c: Likewise.
4976 * lto-streamer-in.c: Likewise.
4977 * mode-switching.c: Likewise.
4978 * modulo-sched.c: Likewise.
4979 * omp-low.c: Likewise.
4980 * optabs.c: Likewise.
4981 * passes.c: Likewise.
4982 * postreload.c: Likewise.
4983 * postreload-gcse.c: Likewise.
4984 * profile.c: Likewise.
4985 * recog.c: Likewise.
4986 * regstat.c: Likewise.
4987 * reload1.c: Likewise.
4988 * reorg.c: Likewise.
4989 * rtlanal.c: Likewise.
4990 * sched-ebb.c: Likewise.
4991 * sel-sched-ir.c: Likewise.
4993 * shrink-wrap.c: Likewise.
4994 * simplify-rtx.c: Likewise.
4996 * store-motion.c: Likewise.
4997 * tracer.c: Likewise.
4998 * trans-mem.c: Likewise.
4999 * tree-call-cdce.c: Likewise.
5000 * tree-cfg.c: Likewise.
5001 * tree-cfgcleanup.c: Likewise.
5002 * tree-chkp.c: Likewise.
5003 * tree-complex.c: Likewise.
5004 * tree-eh.c: Likewise.
5005 * tree-if-conv.c: Likewise.
5006 * tree-loop-distribution.c: Likewise.
5007 * tree-outof-ssa.c: Likewise.
5008 * tree-parloops.c: Likewise.
5009 * tree-predcom.c: Likewise.
5010 * tree-pretty-print.c: Likewise.
5011 * tree-profile.c: Likewise.
5012 * tree-sra.c: Likewise.
5013 * tree-ssa.c: Likewise.
5014 * tree-ssa-coalesce.c: Likewise.
5015 * tree-ssa-dce.c: Likewise.
5016 * tree-ssa-dom.c: Likewise.
5017 * tree-ssa-forwprop.c: Likewise.
5018 * tree-ssa-ifcombine.c: Likewise.
5019 * tree-ssa-loop-ch.c: Likewise.
5020 * tree-ssa-loop-im.c: Likewise.
5021 * tree-ssa-loop-ivcanon.c: Likewise.
5022 * tree-ssa-loop-ivopts.c: Likewise.
5023 * tree-ssa-loop-manip.c: Likewise.
5024 * tree-ssa-loop-prefetch.c: Likewise.
5025 * tree-ssa-loop-unswitch.c: Likewise.
5026 * tree-ssa-math-opts.c: Likewise.
5027 * tree-ssa-phiopt.c: Likewise.
5028 * tree-ssa-pre.c: Likewise.
5029 * tree-ssa-reassoc.c: Likewise.
5030 * tree-ssa-sink.c: Likewise.
5031 * tree-ssa-tail-merge.c: Likewise.
5032 * tree-ssa-threadedge.c: Likewise.
5033 * tree-ssa-threadupdate.c: Likewise.
5034 * tree-switch-conversion.c: Likewise.
5035 * tree-tailcall.c: Likewise.
5036 * tree-vect-data-refs.c: Likewise.
5037 * tree-vect-loop.c: Likewise.
5038 * tree-vect-loop-manip.c: Likewise.
5039 * tree-vectorizer.c: Likewise.
5040 * tree-vrp.c: Likewise.
5041 * ubsan.c: Likewise.
5042 * value-prof.c: Likewise.
5043 * varasm.c: Likewise.
5044 * var-tracking.c: Likewise.
5045 * config/aarch64/aarch64-builtins.c: Likewise.
5046 * config/aarch64/aarch64.c: Likewise.
5047 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5048 * config/alpha/alpha.c: Likewise.
5049 * config/arc/arc.c: Likewise.
5050 * config/arm/arm.c: Likewise.
5051 * config/avr/avr.c: Likewise.
5052 * config/bfin/bfin.c: Likewise.
5053 * config/c6x/c6x.c: Likewise.
5054 * config/cr16/cr16.c: Likewise.
5055 * config/cris/cris.c: Likewise.
5056 * config/darwin.c: Likewise.
5057 * config/darwin-c.c: Likewise.
5058 * config/epiphany/epiphany.c: Likewise.
5059 * config/epiphany/mode-switch-use.c: Likewise.
5060 * config/epiphany/resolve-sw-modes.c: Likewise.
5061 * config/fr30/fr30.c: Likewise.
5062 * config/frv/frv.c: Likewise.
5063 * config/ft32/ft32.c: Likewise.
5064 * config/h8300/h8300.c: Likewise.
5065 * config/i386/i386.c: Likewise.
5066 * config/i386/winnt.c: Likewise.
5067 * config/ia64/ia64.c: Likewise.
5068 * config/iq2000/iq2000.c: Likewise.
5069 * config/lm32/lm32.c: Likewise.
5070 * config/m32c/m32c.c: Likewise.
5071 * config/m32r/m32r.c: Likewise.
5072 * config/m68k/m68k.c: Likewise.
5073 * config/mcore/mcore.c: Likewise.
5074 * config/mep/mep.c: Likewise.
5075 * config/microblaze/microblaze.c: Likewise.
5076 * config/mips/mips.c: Likewise.
5077 * config/mmix/mmix.c: Likewise.
5078 * config/mn10300/mn10300.c: Likewise.
5079 * config/moxie/moxie.c: Likewise.
5080 * config/msp430/msp430.c: Likewise.
5081 * config/nds32/nds32.c: Likewise.
5082 * config/nds32/nds32-cost.c: Likewise.
5083 * config/nds32/nds32-fp-as-gp.c: Likewise.
5084 * config/nds32/nds32-intrinsic.c: Likewise.
5085 * config/nds32/nds32-isr.c: Likewise.
5086 * config/nds32/nds32-md-auxiliary.c: Likewise.
5087 * config/nds32/nds32-memory-manipulation.c: Likewise.
5088 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5089 * config/nds32/nds32-predicates.c: Likewise.
5090 * config/nios2/nios2.c: Likewise.
5091 * config/nvptx/nvptx.c: Likewise.
5092 * config/pa/pa.c: Likewise.
5093 * config/pdp11/pdp11.c: Likewise.
5094 * config/rl78/rl78.c: Likewise.
5095 * config/rs6000/rs6000.c: Likewise.
5096 * config/rx/rx.c: Likewise.
5097 * config/s390/s390.c: Likewise.
5098 * config/sh/sh.c: Likewise.
5099 * config/sh/sh-mem.cc: Likewise.
5100 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5101 * config/sh/sh_treg_combine.cc: Likewise.
5102 * config/sparc/sparc.c: Likewise.
5103 * config/spu/spu.c: Likewise.
5104 * config/stormy16/stormy16.c: Likewise.
5105 * config/tilegx/tilegx.c: Likewise.
5106 * config/tilepro/tilepro.c: Likewise.
5107 * config/v850/v850.c: Likewise.
5108 * config/vax/vax.c: Likewise.
5109 * config/visium/visium.c: Likewise.
5110 * config/xtensa/xtensa.c: Likewise.
5112 2015-07-10 Richard Biener <rguenther@suse.de>
5114 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
5115 (decision_tree::gen_gimple): Likewise.
5116 (decision_tree::gen_generic): Likewise.
5118 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
5121 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
5122 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
5124 2015-07-10 Jakub Jelinek <jakub@redhat.com>
5127 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
5128 or ORT_TASK contexts.
5129 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
5132 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5134 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
5137 2015-07-10 Tom de Vries <tom@codesourcery.com>
5139 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
5140 insert nit + 1 bound.
5142 2015-07-10 Richard Biener <rguenther@suse.de>
5144 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
5145 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
5146 (if_convertible_loop_p_1): For this always compute bb predicates.
5147 (if_convertible_loop_p): And free them.
5149 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5151 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
5154 2015-07-10 Richard Biener <rguenther@suse.de>
5156 PR tree-optimization/66823
5157 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
5160 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
5162 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
5163 to handle mips[32|64]r3 and mips[32|64]r5.
5165 2015-07-09 Jakub Jelinek <jakub@redhat.com>
5168 * tree-nested.c (get_static_chain): Or in a flag into
5169 info->static_chain_added.
5170 (get_frame_field, get_nonlocal_debug_decl): Likewise.
5171 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
5173 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
5174 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
5177 PR tree-optimization/66718
5178 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
5180 (vect_simd_lane_linear): New function.
5181 (vectorizable_simd_clone_call): Support using linear arguments for
5182 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
5184 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
5187 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
5189 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5191 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
5192 Use machine mode, not enum machine_mode in the prototype.
5194 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
5195 classify 128-bit floating point support.
5196 (FLOAT128_IBM_P): Likewise.
5197 (FLOAT128_VECTOR_P): Likewise.
5198 (FLOAT128_2REG_P): Likewise.
5199 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
5200 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
5201 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
5202 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
5204 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
5205 tests against TFmode/TDmode, since those modes do not use VSX
5207 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
5209 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
5210 tests against TFmode, etc.
5211 (invalid_e500_subreg): Add tests against IFmode/KFmode.
5212 (reg_offset_addressing_ok_p): Likewise.
5213 (rs6000_legitimate_offset_address_p): Likewise.
5214 (rs6000_legitimize_address): Likewise.
5215 (rs6000_legitimize_reload_address): Likewise.
5216 (rs6000_legitimate_address_p): Clean up tests against TFmode and
5217 TDmode to use the new helper macros, which will include IFmode and
5219 (rs6000_emit_move): Likewise.
5220 (rs6000_darwin64_record_arg_recurse): Likewise.
5221 (print_operand): Likewise.
5222 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
5223 that uses a single vector register as a vector and not as a
5224 floating point register in terms of the calling sequence.
5225 (rs6000_discover_homogeneous_aggregate): Likewise.
5226 (rs6000_return_in_memory): Likewise.
5227 (init_cumulative_args): Likewise.
5228 (rs6000_function_arg_boundary): Likewise.
5229 (rs6000_function_arg_advance_1): Likewise.
5230 (rs6000_function_arg): Likewise.
5231 (rs6000_pass_by_reference): Likewise.
5232 (rs6000_gimplify_va_arg): Likewise.
5233 (rs6000_secondary_reload_memory): Use machine_mode not enum
5235 (rs6000_split_multireg_move): Use new helper macros.
5236 (spe_func_has_64bit_regs_p): Likewise.
5237 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
5238 (output_toc): Use new helper macros.
5239 (rs6000_register_move_cost): Likewise.
5240 (rs6000_function_value): Add IEEE 128-bit floating point calling
5242 (rs6000_libcall_value): Likewise.
5243 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
5244 floating point support.
5245 (rs6000_vector_mode_supported_p): Likewise.
5247 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
5249 PR rtl-optimization/66782
5250 * lra-int.h (struct lra_insn_recog_data): Add comment about
5251 clobbered hard regs for arg_hard_regs.
5252 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
5253 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
5254 Add condition for processing used hard regs.
5255 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
5256 Process clobbered hard regs.
5258 2015-07-09 Michael Matz <matz@suse.de>
5260 * genmatch.c (fprintf_indent): New function.
5261 (operand::gen_transform): Add indent parameter.
5262 (expr::gen_transform, c_expr::gen_transform,
5263 capture::gen_transform): Ditto and use fprintf_indent.
5264 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
5265 (dt_operand::gen, dt_operand::gen_predicate,
5266 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
5267 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
5268 (decision_tree::gen_gimple): Adjust calls and indent generated
5270 (decision_tree::gen_generic): Ditto.
5271 (write_predicate): Ditto.
5273 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
5276 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
5277 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
5278 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
5279 {GENERAL,SSE,MMX}_REG_P where appropriate.
5281 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
5283 * lto-streamer.h: Don't include target.h and alloc-pool.h.
5284 * builtins.c: Adjust includes.
5285 * gimple.c: Likewise.
5286 * ipa-icf.c: Likewise.
5287 * lto-opts.c: Likewise.
5288 * ipa-reference.c: Likewise.
5289 * lto-section-out.c: Likewise.
5290 * lto-streamer-in.c: Likewise.
5291 * lto-streamer-out.c: Likewise.
5292 * opts-global.c: Likewise.
5293 * symtab.c: Likewise.
5294 * tree-chkp.c: Likewise.
5295 * tree-ssa-live.c: Likewise.
5296 * tree-streamer-in.c: Likewise.
5297 * tree-streamer-out.c: Likewise.
5298 * config/darwin.c: Likewise.
5299 * config/i386/winnt.c: Likewise.
5301 2015-07-09 Richard Biener <rguenther@suse.de>
5303 * genmatch.c (struct expr): Add force_single_use flag.
5304 (expr::expr): Add copy constructor.
5305 (capture_info::walk_match): Gather force_single_use captures.
5306 (expr::gen_transform): Use possibly NULLified sequence.
5307 (dt_simplify::gen): Apply single-use restrictions by NULLifying
5308 seq if any constrained expr is not single-use.
5309 (parser::parse_expr): Refactor to allow multiple flags. Handle
5310 's' flag to force an expression have a single-use if the pattern
5311 simplifies to more than one statement.
5312 * match.pd: Convert most single_use conditionals to :s flags.
5314 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
5316 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
5317 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
5318 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
5320 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
5322 * flags.h: Don't include flag-types.h or options.h.
5323 * opts-common.c: Adjust includes.
5324 * opts-global.c: Likewise.
5325 * common/config/epiphany/epiphany-common.c: Likewise.
5327 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
5330 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
5333 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
5336 * config/i386/i386.c (ix86_return_in_memory): Return true
5337 if int_size_in_bytes returns negative for IA MCU.
5339 2015-07-09 Marek Polacek <polacek@redhat.com>
5341 PR tree-optimization/66718
5342 * Makefile.in (OBJS): Add gimple-laddress.o.
5343 * passes.def: Schedule pass_laddress.
5344 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
5345 * tree-pass.h (make_pass_laddress): Declare.
5346 * gimple-laddress.c: New file.
5348 2015-07-09 Richard Biener <rguenther@suse.de>
5350 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
5352 2015-07-09 Richard Biener <rguenther@suse.de>
5354 PR tree-optimization/66807
5355 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
5357 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
5359 * function.c (stack_protect_epilogue): Use if rather than switch for
5360 check targetm.have_stack_protect_test.
5362 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5364 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
5365 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
5366 * config/arc/arc.h: Likewise.
5367 * config/arm/arm.h: Likewise.
5368 * config/bfin/bfin.h: Likewise.
5369 * config/epiphany/epiphany.h: Likewise.
5370 * config/frv/frv.h: Likewise.
5371 * config/ia64/ia64.h: Likewise.
5372 * config/iq2000/iq2000.h: Likewise.
5373 * config/lm32/lm32.h: Likewise.
5374 * config/m32r/m32r.h: Likewise.
5375 * config/mcore/mcore.h: Likewise.
5376 * config/mep/mep.h: Likewise.
5377 * config/microblaze/microblaze.h: Likewise.
5378 * config/mips/mips.h: Likewise.
5379 * config/mmix/mmix.h: Likewise.
5380 * config/mn10300/mn10300.h: Likewise.
5381 * config/nds32/nds32.h: Likewise.
5382 * config/nios2/nios2.h: Likewise.
5383 * config/pa/pa.h: Likewise.
5384 * config/rl78/rl78.h: Likewise.
5385 * config/sh/sh.h: Likewise.
5386 * config/sparc/sparc.h: Likewise.
5387 * config/stormy16/stormy16.h: Likewise.
5388 * config/tilegx/tilegx.h: Likewise.
5389 * config/tilepro/tilepro.h: Likewise.
5390 * config/v850/v850.h: Likewise.
5391 * config/xtensa/xtensa.h: Likewise.
5392 * doc/tm.texi: Regenerate.
5393 * doc/tm.texi.in: Adjust.
5394 * combine.c (simplify_set): Likewise.
5395 (simplify_comparison): Likewise.
5396 * expr.c (store_constructor): Likewise.
5397 * internal-fn.c (expand_arith_overflow): Likewise.
5398 * reload.c (push_reload): Likewise.
5399 (find_reloads): Likewise.
5400 (find_reloads_subreg_address): Likewise.
5401 * reload1.c (eliminate_regs_1): Likewise.
5402 * rtlanal.c (nonzero_bits1): Likewise.
5403 (num_sign_bit_copies1): Likewise.
5404 * simplify-rtx.c (simplify_truncation): Likewise.
5406 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5408 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
5409 of AUTO_INC_DEC with the preprocessor.
5410 * combine.c (combine_instructions): Likewise.
5411 (can_combine_p): Likewise.
5412 (try_combine): Likewise.
5413 * emit-rtl.c (try_split): Likewise.
5414 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5415 * lower-subreg.c (resolve_simple_move): Likewise.
5416 * lra.c (update_inc_notes): Likewise.
5417 * recog.c (asm_operand_ok): Likewise.
5418 (constrain_operands): Likewise.
5419 * regrename.c (scan_rtx_address): Likewise.
5420 * reload.c (update_auto_inc_notes): Likewise.
5421 (reg_inc_found_and_valid_p): Likewise.
5422 * reload1.c (reload): Likewise.
5423 (emit_input_reload_insns): Likewise.
5424 (delete_output_reload): Likewise.
5425 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5426 * valtrack.c (cleanup_auto_inc_dec): Likewise.
5428 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5430 * rtl.h: Always define AUTO_INC_DEC.
5431 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
5432 * combine.c (combine_instructions): Likewise.
5433 (can_combine_p): Likewise.
5434 (try_combine): Likewise.
5435 * emit-rtl.c (try_split): Likewise.
5436 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5437 * lower-subreg.c (resolve_simple_move): Likewise.
5438 * lra.c (update_inc_notes): Likewise.
5439 * recog.c (asm_operand_ok): Likewise.
5440 (constrain_operands): Likewise.
5441 * regrename.c (scan_rtx_address): Likewise.
5442 * reload.c (update_auto_inc_notes): Likewise.
5443 (find_equiv_reg): Likewise.
5444 * reload1.c (reload): Likewise.
5445 (reload_as_needed): Likewise.
5446 (choose_reload_regs): Likewise.
5447 (emit_input_reload_insns): Likewise.
5448 (delete_output_reload): Likewise.
5449 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5450 * valtrack.c (cleanup_auto_inc_dec): Likewise.
5452 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5454 * combine.c (can_combine_def_p): Don't check the value of
5455 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
5456 (combinable_i3pat): Likewise.
5457 (mark_used_regs_combine): Likewise.
5458 * regrename.c (rename_chains): Likewise.
5459 * reload.c (find_reloads_address): Likewise.
5460 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5462 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5464 * combine.c (update_rsp_from_reg_equal): Don't check if
5465 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
5466 (reg_nonzero_bits_for_combine): Likewise.
5467 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
5469 * config/frv/frv.h: Likewise.
5470 * config/lm32/lm32.h: Likewise.
5471 * config/mep/mep.h: Likewise.
5472 * config/mips/mips.h: Likewise.
5473 * config/rs6000/rs6000.h: Likewise.
5474 * config/sh/sh.h: Likewise.
5475 * config/tilegx/tilegx.h (enum reg_class): Likewise.
5476 * config/tilepro/tilepro.h: Likewise.
5477 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
5478 * doc/tm.texi: Regenerate.
5479 * doc/tm.texi.in: Adjust.
5480 * rtlanal.c (nonzero_bits1): Likewise.
5482 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5484 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
5485 with the preprocessor.
5486 (combine_instructions): Likewise.
5487 (try_combine): Likewise.
5489 (distribute_notes): Likewise.
5491 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5493 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
5495 (simplify_set): Likewise.
5496 * cse.c (cse_insn): Likewise.
5497 * fold-const.c (fold_single_bit_test): Likewise.
5498 (fold_unary_loc): Likewise.
5499 * postreload.c (reload_cse_simplify_set): Likewise.
5500 (reload_cse_simplify_operands): Likewise.
5502 2015-07-08 Jiong Wang <jiong.wang@arm.com>
5504 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
5505 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
5507 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
5510 * config/i386/x86intrin.h: Include <adxintrin.h> even if
5511 __iamcu__ is defined.
5513 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
5515 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
5517 2015-07-08 Iain Sandoe <iain@codesourcery.com>
5520 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
5521 names from preservation.
5523 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
5526 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
5528 (function_arg_advance_32): Don't pass vectors in registers for
5530 (function_arg_32): Likewise.
5531 (ix86_return_in_memory): Don't return vectors in registers for
5534 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
5537 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
5538 hard regno live at the start of BB with incoming abnormal edges.
5539 * lra-lives.c (process_bb_lives): Ditto.
5541 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
5544 * config/nvptx/mkoffload.c (main): Create an offload image only in
5545 64-bit configurations.
5547 2015-07-08 Martin Liska <mliska@suse.cz>
5550 * tree-sra.c (create_access_1): Call ctor without brackets.
5551 (create_artificial_child_access): Likewise.
5553 2015-07-08 Richard Biener <rguenther@suse.de>
5555 PR tree-optimization/66793
5556 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
5557 Properly split the block after stmts ending it.
5559 2015-07-08 Richard Biener <rguenther@suse.de>
5561 PR tree-optimization/66794
5562 * passes.c (execute_function_todo): Assert that post-dominators
5564 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
5565 Free post-dominators.
5567 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5569 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
5572 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
5574 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
5575 more than or equal 8 and less than 32 when optimizing for size.
5577 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5579 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
5580 COSTS_N_INSNS (1) and increment it appropriately throughout the
5583 2015-07-08 Richard Biener <rguenther@suse.de>
5585 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
5587 2015-07-08 Alan Modra <amodra@gmail.com>
5589 * target.def (rtx_costs): Remove "code" param, add "mode".
5590 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
5591 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
5592 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
5593 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
5594 call. Track mode when given in rtx.
5595 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
5596 (default_address_cost): Pass Pmode to rtx_cost.
5597 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
5598 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
5600 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
5601 (notreg_cost): Add mode param. Use it.
5602 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
5603 mode param and pass to set_src_cost. Update all calls.
5604 (hash_scan_set): Formatting.
5605 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
5606 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
5608 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
5609 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
5610 emit_store_flag): Update set_src_cost and rtx_cost calls.
5611 * auto-inc-dec.c (attempt_change): Likewise.
5612 * calls.c (precompute_register_parameters): Likewise.
5613 * combine.c (expand_compound_operation, make_extraction,
5614 force_to_mode, distribute_and_simplify_rtx): Likewise.
5615 * dojump.c (prefer_and_bit_test): Likewise.
5616 * dse.c (find_shift_sequence): Likewise.
5617 * expr.c (compress_float_constant): Likewise.
5618 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
5619 * ifcvt.c (noce_try_sign_mask): Likewise.
5620 * loop-doloop.c (doloop_optimize): Likewise.
5621 * loop-invariant.c (create_new_invariant): Likewise.
5622 * lower-subreg.c (shift_cost, compute_costs): Likewise.
5623 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
5624 lshift_cheap_p): Likewise.
5625 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
5626 try_replace_in_use, reload_cse_move2add): Likewise.
5627 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
5629 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5630 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5631 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
5632 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
5633 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
5634 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
5636 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
5637 * config/arc/arc.c (arc_rtx_costs): Likewise.
5638 * config/arm/arm.c (arm_rtx_costs): Likewise.
5639 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
5640 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
5641 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
5642 * config/cris/cris.c (cris_rtx_costs): Likewise.
5643 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
5644 * config/frv/frv.c (frv_rtx_costs): Likewise.
5645 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
5646 * config/i386/i386.c (ix86_rtx_costs): Likewise.
5647 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
5648 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
5649 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
5650 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
5651 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
5652 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
5653 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
5654 * config/mep/mep.c (mep_rtx_cost): Likewise.
5655 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
5656 * config/mips/mips.c (mips_rtx_costs): Likewise.
5657 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
5658 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
5659 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
5660 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
5661 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
5662 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
5663 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
5664 * config/pa/pa.c (hppa_rtx_costs): Likewise.
5665 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
5666 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
5667 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
5668 * config/s390/s390.c (s390_rtx_costs): Likewise.
5669 * config/sh/sh.c (sh_rtx_costs): Likewise.
5670 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
5671 * config/spu/spu.c (spu_rtx_costs): Likewise.
5672 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
5673 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
5674 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
5675 * config/v850/v850.c (v850_rtx_costs): Likewise.
5676 * config/vax/vax.c (vax_rtx_costs): Likewise.
5677 * config/visium/visium.c (visium_rtx_costs): Likewise.
5678 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
5679 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
5680 "code" param, and pass as outer_code to first rtx_cost call. Pass
5681 mode to rtx_cost calls.
5682 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
5684 (aarch64_rtx_costs_wrapper): Update.
5685 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
5686 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
5688 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
5690 (avr_operand_rtx_cost): Similarly.
5691 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
5692 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
5693 * config/mips/mips.c (mips_stack_address_p): Comment typo.
5694 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
5695 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
5696 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
5698 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
5699 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
5700 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
5701 * doc/tm.texi: Regenerate.
5703 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
5705 * tree-core.h: Include symtab.h.
5706 * rtl.h: Include hard-reg-set.h but not flags.h.
5707 (HARD_CONST): Remove condition compilation involving HARD_CONST since
5708 hard-reg-set.h is always included.
5709 * regs.h: Don't include hard-reg-set.h or rtl.h.
5710 * cfg.h: Include dominance.h.
5711 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
5712 * backend.h: New. Aggregate commonly used backend header files.
5713 * gimple-ssa.h: Don't include tree-hasher.h.
5714 * ssa.h: New. Aggregate commonly used SSA header files.
5715 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
5716 * sel-sched-ir.h: Flatten includes.
5717 * lra-int.h: Flatten completely.
5718 * sel-sched-dump.h: Flatten includes.
5719 * ira-int.h: Flatten includes.
5720 * gimple-streamer.h: Remove all includes.
5721 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
5722 * resource.h: Flatten hard-reg-set.h and df.h.
5723 * sched-int.h: Flatten insn-arrt.h and df.h.
5724 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
5725 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
5726 * genattrtab.c (write_header): Adjust generated includes.
5727 * genautomata.c (main): Likewise.
5728 * genconditions.c (write-header): Likewise.
5729 * genemit.c (main): Likewise.
5730 * gengtype.c (open_base_files): Likewise.
5731 * genopinit.c (main): Likewise.
5732 * genoutput.c (output_prologue): Likewise.
5733 * genpeep.c (main): Likewise.
5734 * genpreds.c (write_insn_preds_c): Likewise.
5735 * genrecog.c (write_header): Likewise.
5736 * alias.c: Adjust includes.
5738 * attribs.c: Likewise.
5739 * auto-inc-dec.c: Likewise.
5740 * auto-profile.c: Likewise.
5741 * bb-reorder.c: Likewise.
5742 * bt-load.c: Likewise.
5743 * builtins.c: Likewise.
5744 * caller-save.c: Likewise.
5745 * calls.c: Likewise.
5748 * cfganal.c: Likewise.
5749 * cfgbuild.c: Likewise.
5750 * cfgcleanup.c: Likewise.
5751 * cfgexpand.c: Likewise.
5752 * cfghooks.c: Likewise.
5753 * cfgloop.c: Likewise.
5754 * cfgloopanal.c: Likewise.
5755 * cfgloopmanip.c: Likewise.
5756 * cfgrtl.c: Likewise.
5757 * cgraph.c: Likewise.
5758 * cgraphbuild.c: Likewise.
5759 * cgraphclones.c: Likewise.
5760 * cgraphunit.c: Likewise.
5761 * cilk-common.c: Likewise.
5762 * combine-stack-adj.c: Likewise.
5763 * combine.c: Likewise.
5764 * compare-elim.c: Likewise.
5765 * convert.c: Likewise.
5766 * coverage.c: Likewise.
5767 * cppbuiltin.c: Likewise.
5768 * cprop.c: Likewise.
5770 * cselib.c: Likewise.
5771 * data-streamer-in.c: Likewise.
5772 * data-streamer-out.c: Likewise.
5773 * data-streamer.c: Likewise.
5774 * dbxout.c: Likewise.
5777 * debug.c: Likewise.
5778 * df-core.c: Likewise.
5779 * df-problems.c: Likewise.
5780 * df-scan.c: Likewise.
5782 * dojump.c: Likewise.
5783 * dominance.c: Likewise.
5784 * domwalk.c: Likewise.
5785 * double-int.c: Likewise.
5787 * dumpfile.c: Likewise.
5788 * dwarf2asm.c: Likewise.
5789 * dwarf2cfi.c: Likewise.
5790 * dwarf2out.c: Likewise.
5791 * emit-rtl.c: Likewise.
5792 * et-forest.c: Likewise.
5793 * except.c: Likewise.
5794 * explow.c: Likewise.
5795 * expmed.c: Likewise.
5797 * final.c: Likewise.
5798 * fixed-value.c: Likewise.
5799 * fold-const.c: Likewise.
5800 * function.c: Likewise.
5801 * fwprop.c: Likewise.
5802 * gcc-plugin.h: Likewise.
5803 * gcse-common.c: Likewise.
5805 * generic-match-head.c: Likewise.
5806 * ggc-page.c: Likewise.
5807 * gimple-builder.c: Likewise.
5808 * gimple-expr.c: Likewise.
5809 * gimple-fold.c: Likewise.
5810 * gimple-iterator.c: Likewise.
5811 * gimple-low.c: Likewise.
5812 * gimple-match-head.c: Likewise.
5813 * gimple-pretty-print.c: Likewise.
5814 * gimple-ssa-isolate-paths.c: Likewise.
5815 * gimple-ssa-strength-reduction.c: Likewise.
5816 * gimple-streamer-in.c: Likewise.
5817 * gimple-streamer-out.c: Likewise.
5818 * gimple-walk.c: Likewise.
5819 * gimple.c: Likewise.
5820 * gimplify-me.c: Likewise.
5821 * gimplify.c: Likewise.
5822 * godump.c: Likewise.
5823 * graph.c: Likewise.
5824 * graphite-blocking.c: Likewise.
5825 * graphite-dependences.c: Likewise.
5826 * graphite-interchange.c: Likewise.
5827 * graphite-isl-ast-to-gimple.c: Likewise.
5828 * graphite-optimize-isl.c: Likewise.
5829 * graphite-poly.c: Likewise.
5830 * graphite-scop-detection.c: Likewise.
5831 * graphite-sese-to-poly.c: Likewise.
5832 * graphite.c: Likewise.
5833 * haifa-sched.c: Likewise.
5834 * hw-doloop.c: Likewise.
5835 * ifcvt.c: Likewise.
5836 * init-regs.c: Likewise.
5837 * internal-fn.c: Likewise.
5838 * ipa-chkp.c: Likewise.
5839 * ipa-comdats.c: Likewise.
5840 * ipa-cp.c: Likewise.
5841 * ipa-devirt.c: Likewise.
5842 * ipa-icf-gimple.c: Likewise.
5843 * ipa-icf.c: Likewise.
5844 * ipa-inline-analysis.c: Likewise.
5845 * ipa-inline-transform.c: Likewise.
5846 * ipa-inline.c: Likewise.
5847 * ipa-polymorphic-call.c: Likewise.
5848 * ipa-profile.c: Likewise.
5849 * ipa-prop.c: Likewise.
5850 * ipa-pure-const.c: Likewise.
5851 * ipa-ref.c: Likewise.
5852 * ipa-reference.c: Likewise.
5853 * ipa-split.c: Likewise.
5854 * ipa-utils.c: Likewise.
5855 * ipa-visibility.c: Likewise.
5857 * ira-build.c: Likewise.
5858 * ira-color.c: Likewise.
5859 * ira-conflicts.c: Likewise.
5860 * ira-costs.c: Likewise.
5861 * ira-emit.c: Likewise.
5862 * ira-lives.c: Likewise.
5865 * langhooks.c: Likewise.
5867 * loop-doloop.c: Likewise.
5868 * loop-init.c: Likewise.
5869 * loop-invariant.c: Likewise.
5870 * loop-iv.c: Likewise.
5871 * loop-unroll.c: Likewise.
5872 * lower-subreg.c: Likewise.
5873 * lra-assigns.c: Likewise.
5874 * lra-coalesce.c: Likewise.
5875 * lra-constraints.c: Likewise.
5876 * lra-eliminations.c: Likewise.
5877 * lra-lives.c: Likewise.
5878 * lra-remat.c: Likewise.
5879 * lra-spills.c: Likewise.
5881 * lto-cgraph.c: Likewise.
5882 * lto-compress.c: Likewise.
5883 * lto-opts.c: Likewise.
5884 * lto-section-in.c: Likewise.
5885 * lto-section-out.c: Likewise.
5886 * lto-streamer-in.c: Likewise.
5887 * lto-streamer-out.c: Likewise.
5888 * lto-streamer.c: Likewise.
5890 * mode-switching.c: Likewise.
5891 * modulo-sched.c: Likewise.
5892 * omega.c: Likewise.
5893 * omp-low.c: Likewise.
5894 * optabs.c: Likewise.
5895 * opts-global.c: Likewise.
5896 * passes.c: Likewise.
5897 * plugin.c: Likewise.
5898 * postreload-gcse.c: Likewise.
5899 * postreload.c: Likewise.
5900 * predict.c: Likewise.
5901 * print-rtl.c: Likewise.
5902 * print-tree.c: Likewise.
5903 * profile.c: Likewise.
5905 * realmpfr.c: Likewise.
5906 * recog.c: Likewise.
5908 * reg-stack.c: Likewise.
5909 * regcprop.c: Likewise.
5910 * reginfo.c: Likewise.
5911 * regrename.c: Likewise.
5912 * regstat.c: Likewise.
5913 * reload.c: Likewise.
5914 * reload1.c: Likewise.
5915 * reorg.c: Likewise.
5916 * resource.c: Likewise.
5917 * rtl-chkp.c: Likewise.
5918 * rtlanal.c: Likewise.
5919 * rtlhooks.c: Likewise.
5920 * sanopt.c: Likewise.
5921 * sched-deps.c: Likewise.
5922 * sched-ebb.c: Likewise.
5923 * sched-rgn.c: Likewise.
5924 * sched-vis.c: Likewise.
5925 * sdbout.c: Likewise.
5926 * sel-sched-dump.c: Likewise.
5927 * sel-sched-ir.c: Likewise.
5928 * sel-sched.c: Likewise.
5930 * shrink-wrap.c: Likewise.
5931 * simplify-rtx.c: Likewise.
5932 * stack-ptr-mod.c: Likewise.
5934 * stor-layout.c: Likewise.
5935 * store-motion.c: Likewise.
5936 * stringpool.c: Likewise.
5937 * symtab.c: Likewise.
5938 * target-globals.c: Likewise.
5939 * targhooks.c: Likewise.
5940 * toplev.c: Likewise.
5941 * tracer.c: Likewise.
5942 * trans-mem.c: Likewise.
5943 * tree-affine.c: Likewise.
5944 * tree-browser.c: Likewise.
5945 * tree-call-cdce.c: Likewise.
5946 * tree-cfg.c: Likewise.
5947 * tree-cfgcleanup.c: Likewise.
5948 * tree-chkp-opt.c: Likewise.
5949 * tree-chkp.c: Likewise.
5950 * tree-chrec.c: Likewise.
5951 * tree-complex.c: Likewise.
5952 * tree-data-ref.c: Likewise.
5953 * tree-dfa.c: Likewise.
5954 * tree-diagnostic.c: Likewise.
5955 * tree-dump.c: Likewise.
5956 * tree-eh.c: Likewise.
5957 * tree-emutls.c: Likewise.
5958 * tree-if-conv.c: Likewise.
5959 * tree-inline.c: Likewise.
5960 * tree-into-ssa.c: Likewise.
5961 * tree-iterator.c: Likewise.
5962 * tree-loop-distribution.c: Likewise.
5963 * tree-nested.c: Likewise.
5964 * tree-nrv.c: Likewise.
5965 * tree-object-size.c: Likewise.
5966 * tree-outof-ssa.c: Likewise.
5967 * tree-parloops.c: Likewise.
5968 * tree-phinodes.c: Likewise.
5969 * tree-predcom.c: Likewise.
5970 * tree-pretty-print.c: Likewise.
5971 * tree-profile.c: Likewise.
5972 * tree-scalar-evolution.c: Likewise.
5973 * tree-sra.c: Likewise.
5974 * tree-ssa-address.c: Likewise.
5975 * tree-ssa-alias.c: Likewise.
5976 * tree-ssa-ccp.c: Likewise.
5977 * tree-ssa-coalesce.c: Likewise.
5978 * tree-ssa-copy.c: Likewise.
5979 * tree-ssa-copyrename.c: Likewise.
5980 * tree-ssa-dce.c: Likewise.
5981 * tree-ssa-dom.c: Likewise.
5982 * tree-ssa-dse.c: Likewise.
5983 * tree-ssa-forwprop.c: Likewise.
5984 * tree-ssa-ifcombine.c: Likewise.
5985 * tree-ssa-live.c: Likewise.
5986 * tree-ssa-loop-ch.c: Likewise.
5987 * tree-ssa-loop-im.c: Likewise.
5988 * tree-ssa-loop-ivcanon.c: Likewise.
5989 * tree-ssa-loop-ivopts.c: Likewise.
5990 * tree-ssa-loop-manip.c: Likewise.
5991 * tree-ssa-loop-niter.c: Likewise.
5992 * tree-ssa-loop-prefetch.c: Likewise.
5993 * tree-ssa-loop-unswitch.c: Likewise.
5994 * tree-ssa-loop.c: Likewise.
5995 * tree-ssa-math-opts.c: Likewise.
5996 * tree-ssa-operands.c: Likewise.
5997 * tree-ssa-phiopt.c: Likewise.
5998 * tree-ssa-phiprop.c: Likewise.
5999 * tree-ssa-pre.c: Likewise.
6000 * tree-ssa-propagate.c: Likewise.
6001 * tree-ssa-reassoc.c: Likewise.
6002 * tree-ssa-sccvn.c: Likewise.
6003 * tree-ssa-scopedtables.c: Likewise.
6004 * tree-ssa-sink.c: Likewise.
6005 * tree-ssa-strlen.c: Likewise.
6006 * tree-ssa-structalias.c: Likewise.
6007 * tree-ssa-tail-merge.c: Likewise.
6008 * tree-ssa-ter.c: Likewise.
6009 * tree-ssa-threadedge.c: Likewise.
6010 * tree-ssa-threadupdate.c: Likewise.
6011 * tree-ssa-uncprop.c: Likewise.
6012 * tree-ssa-uninit.c: Likewise.
6013 * tree-ssa.c: Likewise.
6014 * tree-ssanames.c: Likewise.
6015 * tree-stdarg.c: Likewise.
6016 * tree-streamer-in.c: Likewise.
6017 * tree-streamer-out.c: Likewise.
6018 * tree-streamer.c: Likewise.
6019 * tree-switch-conversion.c: Likewise.
6020 * tree-tailcall.c: Likewise.
6021 * tree-vect-data-refs.c: Likewise.
6022 * tree-vect-generic.c: Likewise.
6023 * tree-vect-loop-manip.c: Likewise.
6024 * tree-vect-loop.c: Likewise.
6025 * tree-vect-patterns.c: Likewise.
6026 * tree-vect-slp.c: Likewise.
6027 * tree-vect-stmts.c: Likewise.
6028 * tree-vectorizer.c: Likewise.
6029 * tree-vrp.c: Likewise.
6032 * ubsan.c: Likewise.
6033 * valtrack.c: Likewise.
6034 * value-prof.c: Likewise.
6035 * var-tracking.c: Likewise.
6036 * varasm.c: Likewise.
6037 * varpool.c: Likewise.
6038 * vmsdbgout.c: Likewise.
6039 * vtable-verify.c: Likewise.
6041 * wide-int.cc: Likewise.
6042 * xcoffout.c: Likewise.
6043 * config/aarch64/aarch64-builtins.c: Likewise.
6044 * config/aarch64/aarch64.c: Likewise.
6045 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6046 * config/alpha/alpha.c: Likewise.
6047 * config/arc/arc.c: Likewise.
6048 * config/arm/aarch-common.c: Likewise.
6049 * config/arm/arm-builtins.c: Likewise.
6050 * config/arm/arm-c.c: Likewise.
6051 * config/arm/arm.c: Likewise.
6052 * config/avr/avr-c.c: Likewise.
6053 * config/avr/avr-log.c: Likewise.
6054 * config/avr/avr.c: Likewise.
6055 * config/bfin/bfin.c: Likewise.
6056 * config/c6x/c6x.c: Likewise.
6057 * config/cr16/cr16.c: Likewise.
6058 * config/cris/cris.c: Likewise.
6059 * config/darwin-c.c: Likewise.
6060 * config/darwin.c: Likewise.
6061 * config/epiphany/epiphany.c: Likewise.
6062 * config/epiphany/mode-switch-use.c: Likewise.
6063 * config/epiphany/resolve-sw-modes.c: Likewise.
6064 * config/fr30/fr30.c: Likewise.
6065 * config/frv/frv.c: Likewise.
6066 * config/ft32/ft32.c: Likewise.
6067 * config/h8300/h8300.c: Likewise.
6068 * config/i386/i386-c.c: Likewise.
6069 * config/i386/i386.c: Likewise.
6070 * config/i386/msformat-c.c: Likewise.
6071 * config/i386/winnt-cxx.c: Likewise.
6072 * config/i386/winnt-stubs.c: Likewise.
6073 * config/i386/winnt.c: Likewise.
6074 * config/ia64/ia64-c.c: Likewise.
6075 * config/ia64/ia64.c: Likewise.
6076 * config/iq2000/iq2000.c: Likewise.
6077 * config/lm32/lm32.c: Likewise.
6078 * config/m32c/m32c-pragma.c: Likewise.
6079 * config/m32c/m32c.c: Likewise.
6080 * config/m32r/m32r.c: Likewise.
6081 * config/m68k/m68k.c: Likewise.
6082 * config/mcore/mcore.c: Likewise.
6083 * config/mep/mep-pragma.c: Likewise.
6084 * config/mep/mep.c: Likewise.
6085 * config/microblaze/microblaze-c.c: Likewise.
6086 * config/microblaze/microblaze.c: Likewise.
6087 * config/mips/mips.c: Likewise.
6088 * config/mmix/mmix.c: Likewise.
6089 * config/mn10300/mn10300.c: Likewise.
6090 * config/moxie/moxie.c: Likewise.
6091 * config/msp430/msp430-c.c: Likewise.
6092 * config/msp430/msp430.c: Likewise.
6093 * config/nds32/nds32-cost.c: Likewise.
6094 * config/nds32/nds32-fp-as-gp.c: Likewise.
6095 * config/nds32/nds32-intrinsic.c: Likewise.
6096 * config/nds32/nds32-isr.c: Likewise.
6097 * config/nds32/nds32-md-auxiliary.c: Likewise.
6098 * config/nds32/nds32-memory-manipulation.c: Likewise.
6099 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6100 * config/nds32/nds32-predicates.c: Likewise.
6101 * config/nds32/nds32.c: Likewise.
6102 * config/nios2/nios2.c: Likewise.
6103 * config/nvptx/nvptx.c: Likewise.
6104 * config/pa/pa.c: Likewise.
6105 * config/pdp11/pdp11.c: Likewise.
6106 * config/rl78/rl78-c.c: Likewise.
6107 * config/rl78/rl78.c: Likewise.
6108 * config/rs6000/rs6000-c.c: Likewise.
6109 * config/rs6000/rs6000.c: Likewise.
6110 * config/rx/rx.c: Likewise.
6111 * config/s390/s390-c.c: Likewise.
6112 * config/s390/s390.c: Likewise.
6113 * config/sh/sh-c.c: Likewise.
6114 * config/sh/sh-mem.cc: Likewise.
6115 * config/sh/sh.c: Likewise.
6116 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6117 * config/sh/sh_treg_combine.cc: Likewise.
6118 * config/sol2-c.c: Likewise.
6119 * config/sol2-cxx.c: Likewise.
6120 * config/sol2-stubs.c: Likewise.
6121 * config/sol2.c: Likewise.
6122 * config/sparc/sparc-c.c: Likewise.
6123 * config/sparc/sparc.c: Likewise.
6124 * config/spu/spu-c.c: Likewise.
6125 * config/spu/spu.c: Likewise.
6126 * config/stormy16/stormy16.c: Likewise.
6127 * config/tilegx/mul-tables.c: Likewise.
6128 * config/tilegx/tilegx-c.c: Likewise.
6129 * config/tilegx/tilegx.c: Likewise.
6130 * config/tilepro/mul-tables.c: Likewise.
6131 * config/tilepro/tilepro-c.c: Likewise.
6132 * config/tilepro/tilepro.c: Likewise.
6133 * config/v850/v850-c.c: Likewise.
6134 * config/v850/v850.c: Likewise.
6135 * config/vax/vax.c: Likewise.
6136 * config/visium/visium.c: Likewise.
6137 * config/vms/vms-c.c: Likewise.
6138 * config/vms/vms.c: Likewise.
6139 * config/vxworks.c: Likewise.
6140 * config/xtensa/xtensa.c: Likewise.
6142 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
6144 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
6145 Remove operand constraints. Change operand 2 predicate to
6146 nonmemory operand. Limit const_int values to mode bitsize. Only
6147 allow const_int values less than 32 when optimizing for size.
6148 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
6149 Remove operand constraints.
6150 (*bt<mode>): Use SImode for const_int values less than 32.
6151 (regmode): Remove mode attribute.
6153 2015-07-07 Anatoly Sokolov <aesok@post.ru>
6155 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6156 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
6157 moxie_legitimate_address_p): New functions.
6158 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6160 2015-07-07 Tom de Vries <tom@codesourcery.com>
6162 PR tree-optimization/66642
6163 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
6164 header comment. Rename split_edge variable to edge_at_split. Split
6165 exit edge to create new loop exit bb. Insert loop exit phis in new
6168 2015-07-07 Tom de Vries <tom@codesourcery.com>
6170 * tree-cfg.c (get_virtual_phi): New function.
6171 * tree-cfg.h (get_virtual_phi): Declare.
6172 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
6173 (rewrite_virtuals_into_loop_closed_ssa): New function.
6174 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
6176 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
6177 (transform_to_exit_first_loop_alt): Use
6178 rewrite_virtuals_into_loop_closed_ssa.
6180 2015-07-07 Richard Biener <rguenther@suse.de>
6182 * fold-const.c (fold_binary_loc): Move
6183 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
6184 * match.pd: ... here.
6185 Add (X * C1) % C2 -> 0 simplification pattern derived from
6188 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
6191 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
6192 change for target/65249.
6194 2015-07-07 Paulo Matos <pmatos@broadcom.com>
6196 * symtab.c (address_matters_1): Fix typo in comment above.
6197 (can_increase_alignment_p): Likewise.
6199 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6201 * function.c (free_after_compilation): Clear PROP_cfg in
6204 2015-07-07 Richard Biener <rguenther@suse.de>
6206 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
6208 (add_control_edge): Remove excessive vertical space in dumping.
6209 (process_ssa_edge_worklist): Simulate at most one statement and
6210 return whether we did. Do not simulate PHIs if they are in a
6211 BB not yet simulated.
6212 (ssa_propagate): Adjust to always drain the BB worklist whenever
6213 a BB is available there, likewise the VARYING edges list before
6214 the interesting edge list.
6216 2015-07-07 Christian Bruel <christian.bruel@st.com>
6219 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
6221 2015-07-07 Richard Biener <rguenther@suse.de>
6224 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
6227 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
6229 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
6230 modes for operands 0 and 3. Use SImode for operands 2 and 3.
6231 Copy operand 0 to a temporary if !ext_register_operand. Remove
6232 ancient extract_bit_field workaround.
6233 (insv<mode>_1): Rename from mov<mode>_insv_1.
6234 (*insvqi): Rename from *movqi_insv_2.
6235 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
6236 for renamed insvsi_1.
6237 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
6239 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
6241 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
6242 call to nvptx_reorg_subreg.
6244 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
6246 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
6247 * graphite-dependencies.c, graphite-interchange.c,
6248 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
6249 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
6252 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
6254 * match.pd: Remove element_mode inside HONOR_*.
6255 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
6256 (~X | X -> -1, ~X ^ X -> -1): Merge.
6257 * tree.c (build_each_one_cst): New function.
6258 * tree.h (build_each_one_cst): Likewise.
6260 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
6262 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6265 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
6267 * config.gcc <mips*-*-*>: Add fused-madd.opt.
6268 * config/mips/mips.opt (mfused-madd): Remove.
6269 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
6270 * config/mips/mips.h (TARGET_MIPS8000): New.
6271 (ISA_HAS_FP_MADD4_MSUB4): Remove.
6272 (ISA_HAS_FP_MADDF_MSUBF): Remove.
6273 (ISA_HAS_FP_MADD3_MSUB3): Remove.
6274 (ISA_HAS_NMADD4_NMSUB4): Remove.
6275 (ISA_HAS_NMADD3_NMSUB3): Remove.
6276 (ISA_HAS_FUSED_MADD4): New.
6277 (ISA_HAS_UNFUSED_MADD4): New.
6278 (ISA_HAS_FUSED_MADDF): New.
6279 (ISA_HAS_FUSED_MADD3): New.
6280 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
6281 (*fma<mode>4_madd3) New.
6282 (*fma<mode>4_madd4) New.
6283 (*fma<mode>4_maddf) New.
6285 (*fms<mode>4_msub3) New.
6286 (*fms<mode>4_msub4) New.
6288 (*fnma<mode>4_nmadd3) New.
6289 (*fnma<mode>4_nmadd4) New.
6291 (*fnms<mode>4_nmsub3) New.
6292 (*fnms<mode>4_nmsub4) New.
6293 (*madd4<mode>) Modify to be unfused only.
6294 (*msub4<mode>) Modify to be unfused only.
6295 (*nmadd4<mode>) Modify to be unfused only.
6296 (*nmsub4<mode>) Modify to be unfused only.
6297 (*madd3<mode>) Remove.
6298 (*msub3<mode>) Remove.
6299 (*nmadd3<mode>) Remove.
6300 (*nmsub3<mode>) Remove.
6301 (*nmadd3<mode>_fastmath) Remove.
6302 (*nmsub3<mode>_fastmath) Remove.
6303 (*nmadd4<mode>_fastmath) Update condition.
6304 (*nmsub4<mode>_fastmath) Update condition.
6306 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
6309 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
6310 alignment attribute, exploring one level down for records and arrays.
6312 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
6314 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
6315 modes for operands 0 and 1. Use SImode for operands 2 and 3.
6316 Copy operand 1 to a temporary if !ext_register_operand. Remove
6317 ancient extract_bit_field workaround.
6318 (*extv<mode>): Rename from *mov<mode>_extv_1.
6319 (*extvqi): Rename from *movqi_extv_1.
6320 (extzv<mode>): Rename from extzv. Use SWI248 modes for
6321 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
6322 to a temporary if !ext_register_operand. Remove ancient
6323 extract_bit_field workaround.
6324 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
6325 (*extzvqi): Rename from *movqi_extzv_2.
6326 (*testqi_ext_3): Remove modes from const_int_operand predicated
6327 operands. Add "n" constraint.
6328 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
6329 operand. Add "J" constraint.
6330 (*btsq, *btrq, *btcq peephole2s): Remove mode from
6331 const_0_to_63 predicated operand.
6332 (regmode): New insn attribute.
6333 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
6334 to nonmemory_operand. Use regmode insn attribute.
6335 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
6336 (*jcc_bt<mode>_mask): Remove mode from operand 3.
6337 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
6338 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
6339 operands. Use "N" constraint instead of "n".
6341 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
6343 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
6345 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
6348 * config/i386/i386.c (iamcu_cost): New.
6349 (m_IAMCU): Likewise.
6350 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
6351 (processor_target_table): Add an entry for "iamcu".
6352 (processor_alias_table): Likewise.
6353 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
6354 (ix86_adjust_cost): Likewise.
6355 (ia32_multipass_dfa_lookahead): Likewise.
6356 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
6357 * config/i386/x86-tune.def: Updated for m_IAMCU.
6359 2015-07-06 Richard Biener <rguenther@suse.de>
6361 PR tree-optimization/66772
6362 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
6363 values are available in the PHI node BB when there are
6364 still unexecutable edges.
6366 2015-07-06 Richard Biener <rguenther@suse.de>
6368 PR tree-optimization/66767
6369 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
6370 Make sure to build the alignment test on a SSA name without
6371 final alignment info valid only if the alignment test
6374 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
6377 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
6378 loop start when inserting LSETUP.
6380 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
6383 * config/i386/i386.c (ix86_option_override_internal): Allow
6384 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
6386 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6388 * read-md.c (decimal_string): Rename to ...
6389 (md_decimal_string): ... this.
6390 (handle_enum): Reflect this.
6392 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
6395 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
6397 2015-07-06 Richard Biener <rguenther@suse.de>
6400 * match.pd: Add missing constraint of y to REAL_CST in
6401 REAL_CST - x CMP y to y - CST CMP x simplification.
6403 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
6405 PR tree-optimization/66757
6406 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
6408 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
6409 Sandra Loosemore <sandra@codesourcery.com>
6411 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
6412 Delete extern declaration.
6413 (gprel_constant_p): Add extern declaration.
6414 * config/nios2/constraints.md ("S"): Use gprel_constant_p
6415 instead of nios2_symbol_ref_in_small_data_p.
6416 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
6417 (nios2_symbol_ref_in_small_data_p): Make static.
6418 (gprel_constant_p): Make non-static.
6420 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
6422 * doc/fragments.texi (Target Fragment): Convert debian.org
6424 * doc/install.texi (Configuration): Ditto.
6426 2015-07-05 Jakub Jelinek <jakub@redhat.com>
6428 PR tree-optimization/66718
6429 * tree-vect-stmts.c (vectorizable_call): Replace uses of
6430 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
6432 PR tree-optimization/66718
6433 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
6434 vectorizable_load, vectorizable_condition): Move vectype,
6435 nunits, ncopies computation after checking what kind of statement
6438 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6440 * target-insns.def (extv, extzv, insv): New targetm instruction
6442 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
6444 * recog.c (simplify_while_replacing): Likewise.
6446 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6448 * target-insns.def (doloop_begin, doloop_end): New targetm
6449 instruction patterns.
6450 * loop-init.c: Include target.h.
6451 (pass_loop2::gate): Use the new targetm patterns instead of
6452 HAVE_*/gen_* interface.
6453 (pass_rtl_doloop::gate): Likewise.
6454 (pass_rtl_doloop::execute): Remove preprocessor condition.
6455 * hw-doloop.c: Build unconditionally.
6456 * loop-doloop.c: Likewise.
6457 (doloop_optimize): Use the new targetm patterns instead of
6458 HAVE_*/gen_* interface.
6459 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
6460 * modulo-sched.c (doloop_register_get): Likewise.
6462 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6464 * target-insns.def (clear_cache): New targetm instruction pattern.
6465 * builtins.c (expand_builtin___clear_cache): Use it instead of
6466 HAVE_*/gen_* interface.
6468 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6470 * target-insns.def (allocate_stack, check_stack, probe_stack)
6471 (probe_stack_address, split_stack_prologue, split_stack_space_check):
6472 New targetm instruction patterns.
6473 * explow.c (allocate_dynamic_stack_space): Use them instead of
6474 HAVE_*/gen_* interface.
6475 (emit_stack_probe): Likewise.
6476 (probe_stack_range): Likewise.
6477 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6479 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6481 * target-insns.def (stack_protect_set, stack_protect_test): New
6482 targetm instruction patterns.
6483 * cfgexpand.c (stack_protect_prologue): Use them instead of
6484 HAVE_*/gen_* interface.
6485 * function.c (stack_protect_epilogue): Likewise.
6487 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6489 * expr.h (gen_move_insn_uncast): Delete.
6490 * expr.c (gen_move_insn_uncast): Delete.
6492 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6494 * target-insns.def (restore_stack_block, restore_stack_function)
6495 (restore_stack_nonlocal, save_stack_block, save_stack_function)
6496 (save_stack_nonlocal): New targetm instruction patterns.
6497 * builtins.c (expand_builtin_apply): Use them instead of
6498 HAVE_*/gen_* interface.
6499 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
6501 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6503 * target-insns.def (trap): New targetm instruction pattern.
6504 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
6506 * explow.c (allocate_dynamic_stack_space): Likewise.
6507 * ifcvt.c (find_if_header): Likewise.
6509 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6511 * target-insns.def (prefetch): New targetm instruction pattern.
6512 * tree-ssa-loop-prefetch.c: Include targeth.
6513 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
6514 of HAVE_*/gen_* interface.
6515 * builtins.c (expand_builtin_prefetch): Likewise.
6516 * toplev.c (process_options): Likewise.
6518 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6520 * target-insns.def (untyped_call, untyped_return): New targetm
6521 instruction patterns.
6522 * builtins.c (expand_builtin_apply): Use them instead of
6523 HAVE_*/gen_* interface.
6524 (result_vector): Define unconditionally.
6526 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6528 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
6529 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
6530 (nonlocal_goto_receiver): New targetm instruction patterns.
6531 * builtins.c (expand_builtin_setjmp_setup): Use them instead
6532 of HAVE_*/gen_* interface.
6533 (expand_builtin_setjmp_receiver): Likewise.
6534 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
6535 * except.c (expand_dw2_landing_pad_for_region): Likewise.
6537 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6539 * target.def: Add code_for_* hooks.
6540 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
6541 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
6542 * target-insns.def (casesi, tablejump): New targetm instruction
6544 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
6545 (do_tablejump): Likewise.
6546 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
6547 (expand_sjlj_dispatch_table): Likewise.
6548 * targhooks.c (default_case_values_threshold): Likewise.
6550 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
6552 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
6553 Use rtx_insn * instead of rtx.
6554 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
6555 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
6556 (nios2_call_tls_get_addr): Likewise.
6557 (nios2_emit_expensive_div): Likewise.
6558 (nios2_emit_move_sequence): Change return type to bool.
6559 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
6560 Change return type to bool.
6562 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6565 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
6567 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
6570 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
6571 of register_operand. Remove constraint.
6573 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
6575 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
6578 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
6580 * attribs.c (decl_attributes): Guard inform with the return value
6581 of the preceding warning.
6583 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
6585 * doc/invoke.texi (moverride): Move to correct section.
6587 2015-07-03 Richard Biener <rguenther@suse.de>
6589 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
6591 (dt_operand::gen_gimple_expr): After valueizing operands
6592 re-canonicalize operand order for commutative tree codes.
6594 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
6597 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
6599 (__crc32w): Likewise.
6600 (__crc32d): Likewise.
6601 (__rdpmc): Likewise.
6602 (__rdtscp): Likewise.
6604 (_rdtscp): Likewise.
6605 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
6608 2015-07-03 Richard Biener <rguenther@suse.de>
6610 * fold-const.c (fold_mathfn_compare): Remove.
6611 (fold_inf_compare): Likewise.
6612 (fold_comparison): Move floating point comparison simplifications...
6613 * match.pd: ... to patterns here. Introduce simple_comparisons
6614 operator list and use it for patterns formerly in fold_comparison.
6616 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
6618 PR tree-optimization/66119
6619 * toplev.c (process_options): Don't set up default values for
6620 the sra_max_scalarization_size_{speed,size} parameters.
6621 * tree-sra (analyze_all_variable_accesses): If no values
6622 have been set for the sra_max_scalarization_size_{speed,size}
6623 parameters, call get_move_ratio to get target defaults.
6625 2015-07-03 Richard Biener <rguenther@suse.de>
6627 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
6628 * match.pd: ... here.
6630 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
6633 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
6634 is not actually the default on FreeBSD.
6636 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6638 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
6640 (CMPGE_8HI): Likewise.
6641 (CMPGE_4SI): Likewise.
6642 (CMPGE_2DI): Likewise.
6643 (CMPGE_U16QI): Likewise.
6644 (CMPGE_U8HI): Likewise.
6645 (CMPGE_U4SI): Likewise.
6646 (CMPGE_U2DI): Likewise.
6647 (CMPLE_16QI): Likewise.
6648 (CMPLE_8HI): Likewise.
6649 (CMPLE_4SI): Likewise.
6650 (CMPLE_2DI): Likewise.
6651 (CMPLE_U16QI): Likewise.
6652 (CMPLE_U8HI): Likewise.
6653 (CMPLE_U4SI): Likewise.
6654 (CMPLE_U2DI): Likewise.
6655 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6656 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
6657 ALTIVEC_BUILTIN_VEC_CMPLE.
6658 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
6659 floating-point vector modes.
6660 (vector_nlt<mode>): New define_expand.
6661 (vector_nltu<mode>): Likewise.
6662 (vector_ngt<mode>): Likewise.
6663 (vector_ngtu<mode>): Likewise.
6665 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
6667 PR rtl-optimization/66706
6668 * combine.c (make_compound_operation): If an AND of SUBREG of
6669 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
6671 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
6673 * tree-pass.h (make_pass_ch_vect): New.
6674 * passes.def: Add pass_ch_vect just before pass_if_conversion.
6676 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
6677 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
6678 make_pass_ch_vect): New.
6679 (pass_ch): Extend ch_base.
6681 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
6682 (ch_base::copy_headers): ...here.
6684 2015-07-02 Richard Biener <rguenther@suse.de>
6686 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
6687 * fold-const.c (get_pointer_modulus_and_residue): Remove.
6688 (fold_binary_loc): Implement (T)ptr & CST in terms of
6689 get_pointer_alignment_1.
6690 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
6691 Make sure to build the alignment test on a SSA name without
6692 final alignment info valid only after the prologue.
6694 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
6696 * config/cris/cris.md ("epilogue"): Remove condition.
6697 ("prologue"): Ditto.
6699 2015-07-02 Richard Biener <rguenther@suse.de>
6701 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
6702 parameter to record a condition that is false.
6703 (record_conditions): When recording an extra NE_EXPR that is
6704 true also record a EQ_EXPR that is false.
6706 2015-07-02 Bin Cheng <bin.cheng@arm.com>
6708 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
6709 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
6710 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
6711 (set_iv, find_interesting_uses_address, add_candidate_1): New
6712 argument to alloc_iv.
6713 (find_interesting_uses_op, find_interesting_uses_cond): Don't
6714 duplicate struct iv.
6715 (free_loop_data): Don't free struct iv explicitly.
6716 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
6718 2015-07-01 DJ Delorie <dj@redhat.com>
6720 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
6722 (SUPPORTS_DISCRIMINATOR): Define.
6724 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
6727 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
6728 there are no CALLs in the same pattern.
6730 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6732 PR rtl-optimization/61047
6733 * rtlanal.c (get_initial_register_offset): New function.
6734 (rtx_addr_can_trap_p_1): Check offsets of stack references.
6736 2015-07-01 Richard Biener <rguenther@suse.de>
6738 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
6739 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
6740 ~X CMP C -> X CMP' ~C to ...
6741 * match.pd: ... patterns here.
6743 2015-07-01 Nick Clifton <nickc@redhat.com>
6745 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
6746 a 16-bit value into a 20-bit memory slot.
6748 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6750 * doc/sourcebuild.texi (AArch64-specific attributes): Document
6751 "aarch64_tiny", "aarch64_small", "aarch64_large",
6752 "aarch64_little_endian", "aarch64_big_endian".
6754 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6756 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
6757 Document "aarch64_small_fpic".
6759 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6761 * configure.ac: Add check for aarch64 assembler -fpic relocation
6763 * configure: Regenerate.
6764 * config.in: Regenerate.
6765 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
6766 to -fPIC if not support of -fpic relocation modifier in assembler.
6768 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
6771 * rtl.c (classify_insn): Handle returns in PARALLELs.
6773 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
6776 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
6777 to true if the function is nested and if not optimizing.
6778 (convert_local_omp_clauses): Initialize need_frame to true if the
6779 function contains nested functions and if not optimizing.
6781 2015-07-01 Richard Biener <rguenther@suse.de>
6783 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
6784 (X & Y) ^ Y -> ~X & Y transforms to ...
6785 * match.pd: ... here.
6787 2015-07-01 Richard Biener <rguenther@suse.de>
6789 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
6790 of converts to avoid uninteresting noise from the conversion
6791 simplifying patterns.
6793 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
6795 * config/c6x/c6x.c (try_rename_operands): Do not depend on
6796 gcc_assert evaluating its argument for side-effect.
6798 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
6801 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
6804 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
6806 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
6807 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
6808 (hash_scc): Add this_ref_p and ref_p parameters and pass them
6809 to the inner DFS walk.
6811 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6813 * target-insns.def (jump): New targetm instruction pattern.
6814 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
6815 instead of gen_jump.
6816 (fix_up_crossing_landing_pad): Likewise.
6817 (add_labels_and_missing_jumps): Likewise.
6818 (fix_crossing_conditional_branches): Likewise.
6819 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6820 (force_nonfallthru_and_redirect): Likewise.
6821 * cse.c (cse_insn): Likewise.
6822 * expmed.c (expand_divmod): Likewise.
6823 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
6824 * haifa-sched.c (init_before_recovery): Likewise.
6825 (sched_create_recovery_edges): Likewise.
6826 * ifcvt.c (find_cond_trap): Likewise.
6827 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
6828 (expand_float, expand_fix): Likewise.
6829 * stmt.c (emit_jump): Likewise.
6831 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6833 * defaults.h (HAVE_load_multiple, gen_load_multiple)
6834 (HAVE_store_multiple, gen_store_multiple): Delete.
6835 * target-insns.def (load_multiple, store_multiple): New targetm
6836 instruction patterns.
6837 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
6838 of HAVE_*/gen_* interface.
6840 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6842 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
6843 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
6844 (gen_mem_signal_fence): Delete.
6845 * target-insns.def (mem_signal_fence, mem_thread_fence)
6846 (memory_barrier): New targetm instruction patterns.
6847 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
6849 (expand_mem_signal_fence): Likewise.
6851 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6853 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
6854 * target-insns.def (epilogue, prologue, sibcall_prologue): New
6855 targetm instruction patterns.
6856 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
6858 * calls.c (expand_call): Likewise.
6859 * cfgrtl.c (cfg_layout_finalize): Likewise.
6860 * df-scan.c (df_get_entry_block_def_set): Likewise.
6861 (df_get_exit_block_use_set): Likewise.
6862 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
6863 * final.c (final_start_function): Likewise.
6864 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6865 (reposition_prologue_and_epilogue_notes): Likewise.
6866 * reorg.c (find_end_label): Likewise.
6867 * toplev.c (process_options): Likewise.
6869 2015-06-30 David Malcolm <dmalcolm@redhat.com>
6871 * typed-splay-tree.h: New file.
6873 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
6876 * lra-int.h (lra_substitute_pseudo): Add a parameter.
6877 (lra_substitute_pseudo_within_insn): Ditto.
6878 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
6880 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
6881 to lra_substitute_pseudo.
6882 * lra-lives.c (process_bb_lives): Add an argument to
6883 lra_substitute_pseudo_within_insn call.
6884 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
6885 argument to lra_substitute_pseudo and
6886 lra_substitute_pseudo_within_insn calls.
6887 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
6889 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
6891 * configure: Regenerated.
6893 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
6895 * config.gcc: Support i[34567]86-*-elfiamcu target.
6896 * config/i386/iamcu.h: New.
6897 * config/i386/i386.opt: Add -miamcu.
6898 * doc/invoke.texi: Document -miamcu.
6899 * common/config/i386/i386-common.c (ix86_handle_option): Turn
6900 off x87/MMX/SSE/AVX codegen for -miamcu.
6901 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6902 __iamcu/__iamcu__ for -miamcu.
6903 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
6904 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
6905 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
6906 * config/i386/i386.c (ix86_option_override_internal): Ignore and
6907 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
6908 MCU by default. Default long double to 64-bit for Intel MCU.
6909 Turn on -freg-struct-return for Intel MCU. Issue an error when
6910 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
6912 (function_arg_advance_32): Pass value whose size is no larger
6913 than 8 bytes in registers for Intel MCU.
6914 (function_arg_32): Likewise.
6915 (ix86_return_in_memory): Return value whose size is no larger
6916 than 8 bytes in registers for Intel MCU.
6917 (iamcu_alignment): New function.
6918 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
6920 (ix86_local_alignment): Don't increase alignment for Intel MCU.
6921 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
6924 2015-06-30 Marek Polacek <polacek@redhat.com>
6926 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
6927 both operands of the resulting expression.
6929 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
6930 the final expression with the operand's type and then convert
6931 it to the type of the expression.
6933 2015-06-30 Richard Biener <rguenther@suse.de>
6935 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
6936 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
6937 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
6938 * match.pd: ... to patterns here.
6940 2015-06-30 Richard Biener <rguenther@suse.de>
6942 PR tree-optimization/66704
6943 * tree-vect-data-refs.c (vect_setup_realignment): Use
6944 make_ssa_name for non-SSA name source.
6946 2015-06-30 Jakub Jelinek <jakub@redhat.com>
6949 * omp-low.c (simd_clone_adjust): Handle addressable linear
6950 or uniform parameters or non-gimple type uniform parameters.
6952 2015-06-30 Richard Biener <rguenther@suse.de>
6954 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
6955 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
6956 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
6957 * match.pd: ... here.
6958 Add a few cases of A - B -> A + (-B) when B "easily" negates.
6959 Move (x & y) | x -> x and friends before
6960 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
6962 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
6964 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
6965 -mfix-ut699 is not specified.
6966 (leon3_load): Rename into...
6967 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
6970 2015-06-30 Marek Polacek <polacek@redhat.com>
6972 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
6973 * match.pd: ... here.
6975 2015-06-30 Richard Biener <rguenther@suse.de>
6977 * target-insns.def (canonicalize_funcptr_for_compare): Add.
6978 * fold-const.c (build_range_check): Replace uses of
6979 HAVE_canonicalize_funcptr_for_compare.
6980 (fold_widened_comparison): Likewise.
6981 (fold_sign_changed_comparison): Likewise.
6982 * dojump.c: Include "target.h".
6983 (do_compare_and_jump): Replace uses of
6984 HAVE_canonicalize_funcptr_for_compare and
6985 gen_canonicalize_funcptr_for_compare.
6986 * expr.c (do_store_flag): Likewise.
6988 2015-06-30 Tom de Vries <tom@codesourcery.com>
6990 PR tree-optimization/66652
6991 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
6992 max_loop_iterations to determine if nit + 1 overflows.
6994 2015-06-30 Richard Biener <rguenther@suse.de>
6996 * tree-vrp.c (register_edge_assert_for_2): Also register
6997 asserts for dominating conversion results.
6999 2015-06-30 Bin Cheng <bin.cheng@arm.com>
7001 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
7004 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
7007 * configure.ac: Fix filds and fildq test for 64-bit.
7008 * configure: Regenerated.
7010 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
7012 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
7013 (nvptx_reorg): Here. Keep the non-subreg pieces.
7015 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
7017 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
7018 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
7020 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
7022 * config/i386/i386.md (*jcc_1): Use %! in asm template.
7023 Set attribute "length_nobnd" instead of "length".
7026 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
7028 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
7030 * config/nios2/nios2.c (nios2_delegitimize_address): Make
7031 assert less restrictive.
7033 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
7036 * cgraphunit.c (cgraph_node::finalize_function): Do not call
7037 do_warn_unused_parameter.
7038 * function.c (do_warn_unused_parameter): Move from here.
7039 * function.h (do_warn_unused_parameter): Do not declare.
7041 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
7044 * gcc.target/arm/armv-sync-comp-swap.c: New.
7045 * gcc.target/arm/armv-sync-op-acquire.c: New.
7046 * gcc.target/arm/armv-sync-op-full.c: New.
7047 * gcc.target/arm/armv-sync-op-release.c: New.
7049 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
7052 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
7053 initial acquire barrier with final barrier.
7055 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
7058 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
7059 initial acquire barrier with final barrier.
7061 2015-06-29 Richard Henderson <rth@redhat.com>
7063 * config/i386/constraints.md (Bf): New constraint.
7064 * config/i386/i386-c.c (ix86_target_macros): Define
7065 __GCC_ASM_FLAG_OUTPUTS__.
7066 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
7068 * doc/extend.texi (FlagOutputOperands): Document them.
7070 2015-06-29 Jiong Wang <jiong.wang@arm.com>
7072 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
7073 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
7075 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
7076 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
7077 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
7078 (aarch64_symbol_context): Ditto.
7079 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
7080 and use new pattern name.
7081 (aarch64_expand_mov_immediate): Ditto.
7082 (aarch64_print_operand): Ditto.
7083 (aarch64_classify_tls_symbol): Ditto.
7085 2015-06-29 Marek Polacek <polacek@redhat.com>
7086 Marc Glisse <marc.glisse@inria.fr>
7088 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
7089 * match.pd: ... pattern here.
7091 2015-06-29 Tom de Vries <tom@codesourcery.com>
7093 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
7096 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
7098 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
7099 feature description, split out the native option, add a link to
7100 the feature documentation, rearrange and slightly rewrite text.
7101 (Aarch64 options, -mcpu): Likewise.
7102 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
7103 +rdma implies Adv. SIMD.
7105 2015-06-29 Marek Polacek <polacek@redhat.com>
7108 * function.c (stack_protect_epilogue): Remove a cast to int.
7109 * doc/invoke.texi: Update -Wswitch-bool description.
7111 2015-06-29 Richard Biener <rguenther@suse.de>
7113 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
7114 * fold-const.c (fold_binary_loc): Move &A - &B simplification
7115 via ptr_difference_const ...
7116 * match.pd: ... here.
7117 When matching (X ^ Y) == Y also match with swapped operands.
7119 2015-06-29 Richard Biener <rguenther@suse.de>
7121 * lto-streamer.h (LTO_major_version): Bump to 5.
7123 2015-06-29 Richard Biener <rguenther@suse.de>
7125 PR tree-optimization/66677
7126 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
7127 STMT_VINFO_VEC_STMT clobbering less strict.
7129 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
7132 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
7133 division, compute max and min when value ranges for dividend and
7134 divisor are available.
7136 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
7137 Sandra Loosemore <sandra@codesourcery.com>
7139 * regrename.h (regrename_do_replace): Change to return bool.
7140 * regrename.c (rename_chains): Check return value of
7142 (regrename_do_replace): Re-validate the modified insns and
7144 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
7145 Update to match rename_chains changes.
7146 * config/c6x/c6x.c (try_rename_operands): Assert that
7147 regrename_do_replace returns true.
7149 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
7151 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
7152 operand 2 here. Use copy_addr_to_reg to copy non-index
7153 register operand 2 to a temporary.
7154 (<mode>_stx): Ditto for operand 1.
7155 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
7156 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
7157 (ix86_store_bounds): Ditto.
7159 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
7161 * print-tree.c (print_node) [TREE_VEC]: Print its length.
7163 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
7165 * gimple.c (gimple_call_set_fndecl): Remove.
7166 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
7167 build1_loc directly instead of build_fold_addr_expr_loc.
7169 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
7171 * hash-map.h (hash_map::traverse): Use the definition of the
7172 Key typedef rather than the typedef itself.
7174 2015-06-26 Martin Jambor <mjambor@suse.cz>
7177 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
7178 NULL instead of calling dump_enabled_p.
7180 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
7182 * config/aarch64/aarch64.opt: (override): New.
7183 * doc/invoke.texi (override): Document.
7184 * config/aarch64/aarch64.c (aarch64_flag_desc): New
7185 (aarch64_fusible_pairs): Likewise.
7186 (aarch64_tuning_flags): Likewise.
7187 (aarch64_tuning_override_function): Likewise.
7188 (aarch64_tuning_override_functions): Likewise.
7189 (aarch64_parse_one_option_token): Likewise.
7190 (aarch64_parse_boolean_options): Likewise.
7191 (aarch64_parse_fuse_string): Likewise.
7192 (aarch64_parse_tune_string): Likewise.
7193 (aarch64_parse_one_override_token): Likewise.
7194 (aarch64_parse_override_string): Likewise.
7195 (aarch64_override_options): Parse the -override string if it
7198 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
7200 * config/aarch64/aarch64-protos.h (tune_params): Remove
7202 (aarch64_tune_params): Remove const, change to no longer be
7204 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
7205 change to no longer be a pointer, initialize to generic_tunings.
7206 (aarch64_min_divisions_for_recip_mul): Change dereference of
7207 aarch64_tune_params to member access.
7208 (aarch64_reassociation_width): Likewise.
7209 (aarch64_rtx_mult_cost): Likewise.
7210 (aarch64_address_cost): Likewise.
7211 (aarch64_branch_cost): Likewise.
7212 (aarch64_rtx_costs): Likewise.
7213 (aarch64_register_move_cost): Likewise.
7214 (aarch64_memory_move_cost): Likewise.
7215 (aarch64_sched_issue_rate): Likewise.
7216 (aarch64_builtin_vectorization_cost): Likewise.
7217 (aarch64_override_options): Take a copy of the selected tuning
7218 struct in to aarch64_tune_params, rather than just setting
7219 a pointer, change dereferences of aarch64_tune_params to member
7221 (aarch64_override_options_after_change): Change dereferences of
7222 aarch64_tune_params to member access.
7223 (aarch64_macro_fusion_p): Likewise.
7224 (aarch_macro_fusion_pair_p): Likewise.
7225 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
7227 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
7229 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
7230 (aarch64_tune_flags): Likewise.
7231 (AARCH64_TUNE_FMA_STEERING): Likewise.
7232 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
7233 to AARCH64_FL_USE_FMA_STEERING_PASS.
7234 (cortex-a57.cortex-a53): Likewise.
7235 (cortex-a72): Use cortexa72_tunings.
7236 (cortex-a72.cortex-a53): Likewise.
7237 (exynos-m1): Likewise.
7238 * config/aarch64/aarch64-protos.h (tune_params): Add
7239 a field: extra_tuning_flags.
7240 * config/aarch64/aarch64-tuning-flags.def: New.
7241 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
7242 (aarch64_extra_tuning_flags): Likewise.
7243 (aarch64_tune_params): Declare here.
7244 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
7245 (cortexa53_tunings): Likewise.
7246 (cortexa57_tunings): Likewise.
7247 (thunderx_tunings): Likewise.
7248 (xgene1_tunings): Likewise.
7249 (cortexa72_tunings): New.
7250 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
7251 (gate): Check against aarch64_tune_params.
7252 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
7255 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
7257 * config/aarch64/aarch64-fusion-pairs.def: New.
7258 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
7259 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
7260 aarch64_fusion_pairs.
7261 (AARCH64_FUSE_MOV_MOVK): Likewise.
7262 (AARCH64_FUSE_ADRP_ADD): Likewise.
7263 (AARCH64_FUSE_MOVK_MOVK): Likewise.
7264 (AARCH64_FUSE_ADRP_LDR): Likewise.
7265 (AARCH64_FUSE_CMP_BRANCH): Likewise.
7267 2015-06-26 Jiong Wang <jiong.wang@arm.com>
7269 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
7270 SYMBOL_SMALL_GOT_28K.
7271 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
7272 relocation modifiers.
7273 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
7274 (ldr_got_small_28k_<mode>): New.
7275 (ldr_got_small_28k_sidi): New.
7276 * config/aarch64/iterators.md (got_modifier): New mode iterator.
7277 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
7278 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
7279 SYMBOL_SMALL_GOT_28K.
7280 (aarch64_rtx_costs): Add costs for new instruction sequences.
7281 (initialize_aarch64_code_model): Initialize new model.
7282 (aarch64_classify_symbol): Recognize new model and new symbol classification.
7283 (aarch64_asm_preferred_eh_data_format): Support new model.
7284 (aarch64_load_symref_appropriately): Generate new instruction
7285 sequences for -fpic.
7286 (TARGET_USE_PSEUDO_PIC_REG): New definition.
7287 (aarch64_use_pseudo_pic_reg): New function.
7289 2015-06-26 Jiong Wang <jiong.wang@arm.com>
7291 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
7292 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
7293 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
7294 (aarch64_expand_mov_immediate): Ditto.
7295 (aarch64_print_operand): Ditto.
7296 (aarch64_classify_symbol): Ditto.
7298 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
7300 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
7302 2015-06-26 Bin Cheng <bin.cheng@arm.com>
7305 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
7306 assertion failed. Remove assertion itself.
7308 2015-06-26 Richard Biener <rguenther@suse.de>
7310 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
7311 and -A CMP CST -> A CMP -CST which is redundant with a pattern
7313 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
7314 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
7315 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
7316 * match.pd: ... patterns here.
7318 2015-06-26 Marek Polacek <polacek@redhat.com>
7320 * match.pd ((x | y) & ~(x & y) -> x ^ y,
7321 (x | y) & (~x ^ y) -> x & y): New patterns.
7323 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
7325 * rtl.h (emit): Add an optional boolean parameter to control
7326 whether barriers are emitted.
7327 * emit-rtl.c (emit): Likewise.
7328 * gensupport.c (get_emit_function): Return null rather than "emit".
7329 * genemit.c (gen_emit_seq): Handle the null return value.
7330 Don't emit barriers after the final instruction in the sequence.
7331 * gentarget-def.c (main): Don't emit barriers after the instruction.
7333 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7335 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
7338 2015-06-26 Richard Biener <rguenther@suse.de>
7340 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
7342 2015-06-26 Richard Biener <rguenther@suse.de>
7344 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
7345 irrespective on whether the inner operation has a single use
7346 of both off are constant.
7348 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
7349 Segher Boessenkool <segher@kernel.crashing.org>
7352 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
7353 before doing PUT_MODE or PUT_CODE on operands to avoid
7354 in-place RTX modification.
7356 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
7358 * gentarget-def.c (def_target_insn): Cast return of strtol to
7361 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7363 * gimple.h (gimple_call_set_fn): Move inline function.
7364 * gimple.c (gimple_call_set_fn): Relocate here.
7366 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
7370 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
7371 the replacement insn will work.
7373 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
7375 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
7378 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7380 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
7381 * cgraph.h: Include ipa-ref.h and plugin-api.h.
7382 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
7383 (symtab_node::address_can_be_compared_p): Move function.
7384 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
7386 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
7387 * auto-profile.c: Likewise.
7388 * bb-reorder.c: Likewise.
7389 * builtins.c: Likewise.
7390 * calls.c: Likewise.
7391 * cfgexpand.c: Likewise.
7392 * cgraphbuild.c: Likewise.
7393 * cgraphclones.c: Likewise.
7394 * cgraphunit.c: Likewise.
7395 * combine.c: Likewise.
7396 * coverage.c: Likewise.
7397 * data-streamer-in.c: Likewise.
7398 * data-streamer-out.c: Likewise.
7399 * data-streamer.c: Likewise.
7400 * dbxout.c: Likewise.
7401 * dwarf2out.c: Likewise.
7402 * except.c: Likewise.
7404 * final.c: Likewise.
7405 * fold-const.c: Likewise.
7406 * ggc-page.c: Likewise.
7407 * gimple-fold.c: Likewise.
7408 * gimple-iterator.c: Likewise.
7409 * gimple-pretty-print.c: Likewise.
7410 * gimple-streamer-in.c: Likewise.
7411 * gimple-streamer-out.c: Likewise.
7412 * gimple.c: Likewise.
7413 * gimplify.c: Likewise.
7414 * ipa-chkp.c: Likewise.
7415 * ipa-comdats.c: Likewise.
7416 * ipa-cp.c: Likewise.
7417 * ipa-devirt.c: Likewise.
7418 * ipa-icf-gimple.c: Likewise.
7419 * ipa-icf.c: Likewise.
7420 * ipa-inline-analysis.c: Likewise.
7421 * ipa-inline-transform.c: Likewise.
7422 * ipa-inline.c: Likewise.
7423 * ipa-polymorphic-call.c: Likewise.
7424 * ipa-profile.c: Likewise.
7425 * ipa-prop.c: Likewise.
7426 * ipa-pure-const.c: Likewise.
7427 * ipa-ref.c: Likewise.
7428 * ipa-reference.c: Likewise.
7429 * ipa-split.c: Likewise.
7430 * ipa-utils.c: Likewise.
7431 * ipa-visibility.c: Likewise.
7433 * langhooks.c: Likewise.
7434 * lto-cgraph.c: Likewise.
7435 * lto-compress.c: Likewise.
7436 * lto-opts.c: Likewise.
7437 * lto-section-in.c: Likewise.
7438 * lto-section-out.c: Likewise.
7439 * lto-streamer-in.c: Likewise.
7440 * lto-streamer-out.c: Likewise.
7441 * lto-streamer.c: Likewise.
7442 * omp-low.c: Likewise.
7443 * opts-global.c: Likewise.
7444 * passes.c: Likewise.
7445 * predict.c: Likewise.
7446 * print-tree.c: Likewise.
7447 * profile.c: Likewise.
7449 * sanopt.c: Likewise.
7450 * stor-layout.c: Likewise.
7451 * symtab.c: Likewise.
7452 * toplev.c: Likewise.
7453 * trans-mem.c: Likewise.
7454 * tree-cfg.c: Likewise.
7455 * tree-chkp.c: Likewise.
7456 * tree-eh.c: Likewise.
7457 * tree-emutls.c: Likewise.
7458 * tree-inline.c: Likewise.
7459 * tree-nested.c: Likewise.
7460 * tree-parloops.c: Likewise.
7461 * tree-pretty-print.c: Likewise.
7462 * tree-profile.c: Likewise.
7463 * tree-sra.c: Likewise.
7464 * tree-ssa-alias.c: Likewise.
7465 * tree-ssa-live.c: Likewise.
7466 * tree-ssa-loop-ivcanon.c: Likewise.
7467 * tree-ssa-loop-ivopts.c: Likewise.
7468 * tree-ssa-pre.c: Likewise.
7469 * tree-ssa-sccvn.c: Likewise.
7470 * tree-ssa-strlen.c: Likewise.
7471 * tree-ssa-structalias.c: Likewise.
7472 * tree-streamer-in.c: Likewise.
7473 * tree-streamer-out.c: Likewise.
7474 * tree-streamer.c: Likewise.
7475 * tree-switch-conversion.c: Likewise.
7476 * tree-tailcall.c: Likewise.
7477 * tree-vect-data-refs.c: Likewise.
7478 * tree-vect-stmts.c: Likewise.
7479 * tree-vectorizer.c: Likewise.
7482 * ubsan.c: Likewise.
7483 * value-prof.c: Likewise.
7484 * varasm.c: Likewise.
7485 * varpool.c: Likewise.
7486 * config/arm/arm.c: Likewise.
7487 * config/bfin/bfin.c: Likewise.
7488 * config/c6x/c6x.c: Likewise.
7489 * config/cris/cris.c: Likewise.
7490 * config/darwin-c.c: Likewise.
7491 * config/darwin.c: Likewise.
7492 * config/i386/i386.c: Likewise.
7493 * config/i386/winnt.c: Likewise.
7494 * config/microblaze/microblaze.c: Likewise.
7495 * config/mips/mips.c: Likewise.
7496 * config/rs6000/rs6000.c: Likewise.
7497 * config/rx/rx.c: Likewise.
7498 * config/s390/s390.c: Likewise.
7499 * config/tilegx/mul-tables.c: Likewise.
7501 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7503 * config/aarch64/aarch64.c, config/alpha/alpha.c,
7504 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
7505 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
7506 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
7507 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
7508 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
7509 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
7510 config/microblaze/microblaze.c, config/mips/mips.c,
7511 config/mmix/mmix.c, config/mn10300/mn10300.c,
7512 config/moxie/moxie.c, config/msp430/msp430.c,
7513 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
7514 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
7515 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
7516 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
7517 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7518 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
7519 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
7520 target-def.h include.
7521 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
7523 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7525 * Makefile.in (TARGET_DEF): Add target-insns.def.
7526 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
7527 (build/gentarget-def.o): New rule.
7528 (genprogrtl): Add target-def.
7529 * target-insns.def, gentarget-def.c: New files.
7530 * target.def: Add targetm.have_* and targetm.gen_* hooks,
7531 based on the contents of target-insns.def.
7532 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
7533 (HAVE_return, gen_return): Delete.
7534 * target-def.h: Include insn-target-def.h.
7535 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
7536 instead of direct calls. Rely on them to do the appropriate assertions.
7537 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
7538 (convert_jumps_to_returns): Use targetm interface instead of
7540 (thread_prologue_and_epilogue_insns): Likewise.
7541 * reorg.c (find_end_label, dbr_schedule): Likewise.
7542 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
7543 * shrink-wrap.c (convert_to_simple_return): Likewise.
7544 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
7546 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7548 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
7549 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7550 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
7551 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
7552 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
7553 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
7554 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
7555 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
7556 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
7557 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
7558 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
7559 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
7560 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
7561 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7562 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
7563 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
7566 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7568 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
7569 (unbounded_int_hashmap_traits::key_type): Likewise.
7570 * hash-map.h (hash_map): Get the key type from the traits.
7571 * hash-traits.h (default_hash_traits): By default, inherit from the
7573 * alias.c (alias_set_traits): Delete.
7574 (alias_set_entry_d::children): Use alias_set_hash as the first
7576 (record_alias_subset): Update accordingly.
7577 * except.c (tree_hash_traits): Delete.
7578 (type_to_runtime_map): Use tree_hash as the first template parameter.
7579 (init_eh): Update accordingly.
7580 * genmatch.c (capture_id_map_hasher): Delete.
7581 (cid_map_t): Use nofree_string_hash as first template parameter.
7582 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
7583 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
7584 Use symbol_compare_hash as the first template parameter in
7586 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
7587 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
7589 * passes.c (pass_registry_hasher): Delete.
7590 (name_to_pass_map): Use nofree_string_hash as the first template
7592 (register_pass_name): Update accordingly.
7593 * sanopt.c (sanopt_tree_map_traits): Delete.
7594 (sanopt_tree_triplet_map_traits): Delete.
7595 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
7597 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
7598 the first template parameter.
7599 * sese.c (rename_map_hasher): Delete.
7600 (rename_map_type): Use tree_ssa_name_hash as the first template
7602 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
7603 (function_summary::m_map): Use map_hash as the first template
7605 (function_summary::release): Update accordingly.
7606 * tree-if-conv.c (phi_args_hash_traits): Delete.
7607 (predicate_scalar_phi): Use tree_operand_hash as the first template
7608 parameter to phi_arg_map.
7609 * tree-inline.h (dependence_hasher): Delete.
7610 (copy_body_data::dependence_map): Use dependence_hash as the first
7612 * tree-inline.c (remap_dependence_clique): Update accordingly.
7613 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
7614 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
7616 (addr_stridxptr): Update accordingly.
7617 * value-prof.c (profile_id_traits): Delete.
7618 (cgraph_node_map): Use profile_id_hash as the first template
7620 (init_node_map): Update accordingly.
7621 * config/alpha/alpha.c (string_traits): Delete.
7622 (machine_function::links): Use nofree_string_hash as the first
7624 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
7625 * config/m32c/m32c.c (pragma_traits): Delete.
7626 (pragma_htab): Use nofree_string_hash as the first template parameter.
7627 (m32c_note_pragma_address): Update accordingly.
7628 * config/mep/mep.c (pragma_traits): Delete.
7629 (pragma_htab): Use nofree_string_hash as the first template parameter.
7630 (mep_note_pragma_flag): Update accordingly.
7631 * config/mips/mips.c (mips16_flip_traits): Delete.
7632 (mflip_mips16_htab): Use nofree_string_hash as the first template
7634 (mflip_mips16_use_mips16_p): Update accordingly.
7635 (local_alias_traits): Delete.
7636 (mips16_local_aliases): Use nofree_string_hash as the first template
7638 (mips16_local_alias): Update accordingly.
7640 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7642 * hash-map-traits.h (default_hashmap_traits): Delete.
7644 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7646 * hash-map-traits.h (unbounded_hashmap_traits): New class.
7647 (unbounded_int_hashmap_traits): Likewise.
7648 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
7650 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7652 * ipa-icf.h (symbol_compare_hash): New class.
7653 (symbol_compare_hashmap_traits): Use it.
7654 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
7655 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
7656 (mem_alloc_description::reverse_mem_map_t): Remove redundant
7657 default_hashmap_traits.
7658 * sanopt.c (sanopt_tree_triplet_hash): New class.
7659 (sanopt_tree_triplet_map_traits): Use it.
7661 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7663 * gengtype-parse.c (require_template_declaration): Allow '+' in
7664 template parameters. Consolidate cases.
7665 * hash-traits.h (int_hash): New class.
7666 * alias.c (alias_set_hash): New structure.
7667 (alias_set_traits): Use it.
7668 * symbol-summary.h (function_summary::map_hash): New class.
7669 (function_summary::summary_hashmap_traits): Use it.
7670 * tree-inline.h (dependence_hash): New class.
7671 (dependence_hasher): Use it.
7672 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
7673 * value-prof.c (profile_id_hash): New class.
7674 (profile_id_traits): Use it.
7676 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7678 * config/mips/mips.c (mips16_flip_traits): Use it.
7679 (local_alias_traits, mips16_local_aliases): Convert from a map of
7680 rtxes to a map of symbol names.
7681 (mips16_local_alias): Update accordingly.
7683 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7685 * hash-traits.h (string_hash, nofree_string_hash): New classes.
7686 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
7687 * passes.c (pass_registry_hasher): Likewise.
7688 * config/alpha/alpha.c (string_traits): Likewise.
7689 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
7690 * config/m32c/m32c.c (pragma_traits): Likewise.
7691 * config/mep/mep.c (pragma_traits): Likewise.
7693 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7695 * tree-hash-traits.h (tree_hash): New class.
7696 * except.c: Include tree-hash-traits.h.
7697 (tree_hash_traits): Use tree_hash.
7699 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7701 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
7702 * sese.c: Include tree-hash-traits.h.
7703 (rename_map_hasher): Use tree_ssa_name_hasher.
7705 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7707 * tree-hash-traits.h (tree_decl_hash): New class.
7708 * tree-ssa-strlen.c: Include tree-hash-traits.h.
7709 (stridxlist_hash_traits): Use tree_decl_hash.
7711 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7713 * tree-hash-traits.h: New file.
7714 (tree_operand_hash): New class.
7715 * sanopt.c: Include tree-hash-traits.h.
7716 (sanopt_tree_map_traits): Use tree_operand_hash.
7717 * tree-if-conv.c: Include tree-hash-traits.h.
7718 (phi_args_hash_traits): Use tree_operand_hash.
7719 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
7720 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
7722 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7724 * hash-map-traits.h: Include hash-traits.h.
7725 (simple_hashmap_traits): New class.
7726 * mem-stats.h (hash_map): Change the default traits to
7727 simple_hashmap_traits<default_hash_traits<Key> >.
7729 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7731 * hash-table.h: Update comments.
7733 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7735 * hash-traits.h (default_hash_traits): New structure.
7736 * hash-set.h (default_hashset_traits): Delete.
7737 (hash_set): Use default_hash_traits<Key> instead of
7738 default_hashset_traits. Delete hash_entry type and use Key directly.
7739 * ipa-devirt.c (pair_traits): Delete.
7740 (default_hash_traits <type_pair>): Override.
7741 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
7742 (odr_types_equivalent_p, add_type_duplicate): Likewise.
7744 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7746 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
7748 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7750 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
7751 (has_is_empty, is_empty_helper): Delete.
7752 (has_mark_deleted, mark_deleted_helper): Delete.
7753 (has_mark_empty, mark_empty_helper): Delete.
7754 (hash_table::is_deleted): Call the Descriptor unconditionally.
7755 (hash_table::is_empty): Likewise.
7756 (hash_table::mark_deleted): Likewise.
7757 (hash_table::mark_empty): Likewise.
7759 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7761 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
7762 redundant typedefs and members.
7763 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
7765 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
7766 * ipa-devirt.c (odr_name_hasher): Likewise.
7767 (polymorphic_call_target_hasher): Likewise.
7768 * ira-costs.c (cost_classes_hasher): Likewise.
7769 * statistics.c (stats_counter_hasher): Likewise.
7770 * trans-mem.c (log_entry_hasher): Likewise.
7771 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
7772 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
7773 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
7774 * var-tracking.c (variable_hasher): Likewise.
7775 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
7776 Remove redundant typedefs and members.
7778 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7780 * hash-traits.h (ggc_cache_hasher): Rename to...
7781 (ggc_cache_remove): ...this and remove typedefs.
7782 (ggc_cache_ptr_hash): New class.
7783 * hash-table.h: Update commentary.
7784 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
7785 rather than ggc_cache_hasher.
7786 (const_wide_int_hasher, reg_attr_hasher): Likewise.
7787 (const_double_hasher, const_fixed_hasher): Likewise.
7788 * function.c (insn_cache_hasher): Likewise.
7789 * trans-mem.c (tm_wrapper_hasher): Likewise.
7790 * tree.h (tree_decl_map_cache_hasher): Likewise.
7791 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
7792 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
7793 * ubsan.c (tree_type_map_cache_hasher): Likewise.
7794 * varasm.c (tm_clone_hasher): Likewise.
7795 * config/i386/i386.c (dllimport_hasher): Likewise.
7796 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
7797 (tree_hasher): Likewise.
7799 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7801 * hash-traits.h (ggc_hasher): Rename to...
7802 (ggc_remover): ...this and remove typedefs.
7803 (ggc_cache_hasher): Update accordingly. Add typedefs.
7804 (ggc_ptr_hash): New class.
7805 * hash-table.h: Update comment.
7806 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
7808 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
7809 (tree_descriptor_hasher): Likewise.
7810 * cgraph.c (function_version_hasher): Likewise.
7811 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
7812 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
7813 (dw_loc_list_hasher, addr_hasher): Likewise.
7814 * function.h (used_type_hasher): Likewise.
7815 * function.c (temp_address_hasher): Likewise.
7816 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
7817 * libfuncs.h (libfunc_hasher): Likewise.
7818 * lto-streamer.h (decl_state_hasher): Likewise.
7819 * optabs.c (libfunc_decl_hasher): Likewise.
7820 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
7821 * varasm.c (section_hasher, object_block_hasher): Likewise.
7822 (const_rtx_desc_hasher): Likewise.
7823 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
7824 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
7826 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7828 * hash-traits.h (free_ptr_hash): New class.
7829 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
7830 rather than typed_free_remove. Remove redudant typedefs.
7831 (external_ref_hasher): Likewise.
7832 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
7833 (ehspec_hasher): Likewise.
7834 * ggc-common.c (saving_hasher): Likewise.
7835 * gimplify.c (gimplify_hasher): Likewise.
7836 * haifa-sched.c (delay_i2_hasher): Likewise.
7837 * loop-invariant.c (invariant_expr_hasher): Likewise.
7838 * loop-iv.c (biv_entry_hasher): Likewise.
7839 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
7840 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
7841 * tree-cfg.c (locus_discrim_hasher): Likewise.
7842 * tree-eh.c (finally_tree_hasher): Likewise.
7843 * tree-into-ssa.c (var_info_hasher): Likewise.
7844 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
7845 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
7846 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
7847 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
7848 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
7849 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
7850 (shared_bitmap_hasher): Likewise.
7851 * tree-ssa-threadupdate.c (redirection_data): Likewise.
7852 * tree-vectorizer.h (peel_info_hasher): Likewise.
7853 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
7854 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
7856 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7858 * hash-table.h: Update comments.
7859 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
7860 (nofree_ptr_hash): New class.
7861 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
7862 than typed_noop_remove. Remove redudant typedefs.
7863 * attribs.c (attribute_hasher): Likewise.
7864 * cfg.c (bb_copy_hasher): Likewise.
7865 * cselib.c (cselib_hasher): Likewise.
7866 * dse.c (invariant_group_base_hasher): Likewise.
7867 * dwarf2cfi.c (trace_info_hasher): Likewise.
7868 * dwarf2out.c (macinfo_entry_hasher): Likewise.
7869 (comdat_type_hasher, loc_list_hasher): Likewise.
7870 * gcse.c (pre_ldst_expr_hasher): Likewise.
7871 * genmatch.c (id_base): Likewise.
7872 * genrecog.c (test_pattern_hasher): Likewise.
7873 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
7874 * haifa-sched.c (delay_i1_hasher): Likewise.
7875 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
7876 * ipa-icf.h (congruence_class_group_hash): Likewise.
7877 * ipa-profile.c (histogram_hash): Likewise.
7878 * ira-color.c (allocno_hard_regs_hasher): Likewise.
7879 * lto-streamer.h (string_slot_hasher): Likewise.
7880 * lto-streamer.c (tree_entry_hasher): Likewise.
7881 * plugin.c (event_hasher): Likewise.
7882 * postreload-gcse.c (expr_hasher): Likewise.
7883 * store-motion.c (st_expr_hasher): Likewise.
7884 * tree-sra.c (uid_decl_hasher): Likewise.
7885 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
7886 (ssa_name_var_hash): Likewise.
7887 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
7888 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
7889 * tree-ssa-pre.c (pre_expr_d): Likewise.
7890 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
7891 * vtable-verify.h (registration_hasher): Likewise.
7892 * vtable-verify.c (vtbl_map_hasher): Likewise.
7893 * config/arm/arm.c (libcall_hasher): Likewise.
7894 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
7895 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
7896 * config/sol2.c (comdat_entry_hasher): Likewise.
7897 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
7898 (print_fold_checksum, fold_checksum_tree): Likewise.
7899 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
7900 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
7901 (fold_build_call_array_loc): Likewise.
7902 * tree-ssa-ccp.c (gimple_htab): Likewise.
7903 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
7904 rather than pointer_type.
7906 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7908 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
7909 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
7911 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7913 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
7914 (ggc_hasher::ggc_mx): Likewise.
7915 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
7916 that duplicate ggc_hasher ones.
7918 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7920 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
7921 (gt_cleare_cache): Check here for deleted and empty entries.
7922 Replace handle_cache_entry with a call to keep_cache_entry.
7923 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
7924 (ggc_cache_hasher::keep_cache_entry): New function.
7925 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
7926 (tm_wrapper_hasher::keep_cache_entry): New function.
7927 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
7928 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7929 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
7930 (type_cache_hasher::keep_cache_entry): New function.
7931 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
7932 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7933 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
7934 (tree_type_map_cache_hasher::keep_cache_entry): New function.
7935 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
7936 (tm_clone_hasher::keep_cache_entry): New function.
7937 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
7938 (dllimport_hasher::keep_cache_entry): New function.
7940 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7942 * hash-table.h: Include hash-traits.h.
7943 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
7944 (ggc_cache_hasher): Move to...
7945 * hash-traits.h: ...this new file.
7947 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7949 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
7950 struct cl_optimization.
7951 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
7952 * tree.c (make_node_stat): Allocate cl_optimization struct.
7953 (copy_node_stat): Allocate and copy cl_optimization struct.
7955 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7957 * function.h (struct incoming_args): Move struct.
7958 (pass_by_reference, reference_callee_copied): Remove prototypes.
7959 * emit-rtl.h (struct incoming_args): Relocate struct here.
7960 * calls.h (pass_by_reference, reference_callee_copied): Relocate
7962 * function.c (pass_by_reference, reference_callee_copied): Move.
7963 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
7964 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
7965 * ipa-chkp.c: Include calls.h.
7967 2015-06-25 Andrew Macleod <amacleod@redhat.com>
7969 * alias.h (alias_set_type): Move typedef.
7970 * coretypes.h (alias_set_type): Relocate typedef here.
7971 * rtl.h: Don't include alias.h.
7973 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7975 * cgraph.h (cgraph_rtl_info): Move to rtl.h
7976 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
7978 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
7979 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
7981 * calls.c: Include hard-reg-set.h before rtl.h.
7984 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7985 Vladimir Makarov <vmakarov@redhat.com>
7987 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
7990 2015-06-25 Richard Biener <rguenther@suse.de>
7992 * fold-const.c (fold_binary_loc): Move simplification of
7993 (X <<>> C1) & C2 ...
7994 * match.pd: ... here.
7996 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
7998 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
8000 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8002 * match.pd: Add patterns for vec_conds between 1 and 0.
8004 2015-06-25 Richard Biener <rguenther@suse.de>
8006 * tree-vect-stmts.c (vectorizable_conversion): Do not set
8007 STMT_VINFO_VEC_STMT for SLP.
8008 (vectorizable_store): Likewise.
8009 (vectorizable_load): Likewise.
8010 (vect_transform_stmt): Catch SLP vectorization clobbering
8011 STMT_VINFO_VEC_STMT.
8013 2015-06-25 Richard Biener <rguenther@suse.de>
8015 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
8017 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
8018 cleanup resulting dead code and parameters.
8019 (vect_transform_slp_perm_load): Adjust.
8021 2015-06-25 Nick Clifton <nickc@redhat.com>
8023 * config/bfin/bfin.c (bfin_expand_prologue): Set
8024 current_function_static_stack_size if flag_stack_usage_info is set.
8025 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
8026 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
8027 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
8028 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
8030 2015-06-25 Tom de Vries <tom@codesourcery.com>
8032 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
8033 comment that the generated IV is unsigned.
8035 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8038 * config/arm/arm.c (arm_dbx_register_number): Return
8039 DWARF_FRAME_REGISTERS by default.
8041 2015-06-25 Tom de Vries <tom@codesourcery.com>
8043 * dominance.c (calculate_dominance_info): Fix verify_dominators call
8044 argument. Call verify_dominator when reusing dominator info.
8046 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
8049 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
8050 an additional element of the unspec vector. Modify indices
8052 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
8053 * config/sh/sh.c (prepare_move_operands): Pass incremented
8054 const_int to gen_GOTaddr2picreg.
8055 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
8057 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
8059 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
8060 Condition on TARGET_FLOAT.
8062 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
8064 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
8067 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
8069 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
8071 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
8072 aarch64_err_no_fpadvsimd.
8074 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
8075 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
8076 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
8077 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
8078 Turn error into assert, test TARGET_FLOAT.
8079 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
8082 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
8085 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
8087 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
8089 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
8091 2015-06-24 Renlin Li <renlin.li@arm.com>
8093 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
8094 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
8096 2015-06-24 Richard Biener <rguenther@suse.de>
8098 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
8100 (lower_opt_convert): Support lowering of conditional view_convert.
8101 (parser::parse_operation): Likewise.
8102 (parser::parse_for): Likewise.
8104 2015-06-24 Renlin Li <renlin.li@arm.com>
8106 * varasm.c (emit_local): Use unsigned int for align variable.
8108 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8111 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
8112 for negative numbers.
8114 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8116 PR rtl-optimization/66306
8117 * reload.c (find_reloads): Swap the match_dup info for
8118 commutative operands.
8120 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8122 * config/s390/vx-builtins.md
8123 ("vec_scatter_element<mode>_<non_vec_int>")
8124 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
8125 attribute with bhfgq.
8127 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8129 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
8131 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8133 * config/s390/s390-builtin-types.def: Add flag to indicate the
8134 options under which the function type is needed.
8135 * config/s390/s390-builtins.def: Add flag to indicate the options
8136 under which the builtin is enabled.
8137 * config/s390/s390-builtins.h: Add flags parameter to macro
8139 (bflags_for_builtin): New function.
8140 (flags_for_builtin): Renamed to ...
8141 (opflags_for_builtin): ... this.
8142 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
8143 flags_for_builtin to bflags_for_builtin and
8144 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
8145 * config/s390/s390.c: Add initialization of bflags_builtin and
8146 opflags_builtin arrays.
8147 Remove code for flags_builtin.
8148 (s390_init_builtins): Only create builtin function types if one of
8149 their flags is active.
8150 Only create builtins if all of their flags are active.
8151 (s390_expand_builtin): Rename flags_for_builtin to
8152 opflags_for_builtin.
8154 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8156 * config/s390/vecintrin.h: Remove internal builtins.
8158 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8160 * config/s390/s390.c (s390_secondary_reload): Fix check for
8161 GENERAL_REGS register class.
8163 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8165 * config/s390/s390.c (s390_support_vector_misalignment): Call
8166 default implementation for !TARGET_VX.
8168 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8170 * config/s390/s390.c (s390_legitimate_constant_p): Add
8173 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8175 * config/s390/s390.c (s390_vector_abi): New variable definition.
8176 (s390_check_type_for_vector_abi): New function.
8177 (TARGET_ASM_FILE_END): New macro definition.
8178 (s390_asm_file_end): New function.
8179 (s390_function_arg): Call s390_check_type_for_vector_abi.
8180 (s390_gimplify_va_arg): Likewise.
8181 * configure: Regenerate.
8182 * configure.ac: Check for .gnu_attribute Binutils feature.
8184 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
8187 * config/bfin/bfin.c (hwloop_optimize): Initialize
8188 JUMP_LABEL for newly created jump.
8190 2015-06-23 Tristan Gingold <gingold@adacore.com>
8192 * collect-utils.c (collect_wait): Unlink the response file here
8195 (utils_cleanup): ...and here.
8197 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
8199 * df-scan.c: Don't include target-def.h.
8200 * targhooks.c: Likewise.
8201 * config/arm/arm-c.c: Likewise.
8202 * config/i386/i386-c.c: Likewise.
8203 * config/nds32/nds32-cost.c: Likewise.
8204 * config/nds32/nds32-fp-as-gp.c: Likewise.
8205 * config/nds32/nds32-intrinsic.c: Likewise.
8206 * config/nds32/nds32-isr.c: Likewise.
8207 * config/nds32/nds32-md-auxiliary.c: Likewise.
8208 * config/nds32/nds32-memory-manipulation.c: Likewise.
8209 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8210 * config/nds32/nds32-predicates.c: Likewise.
8212 2015-06-23 Richard Biener <rguenther@suse.de>
8214 PR tree-optimization/66636
8215 * tree-vect-stmts.c (vectorizable_store): Properly compute the
8216 def type for further defs for strided stores.
8218 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
8220 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
8221 conditional selects.
8222 (setcc_int<mode>, setcc_float<mode>): Reformat.
8224 2015-06-23 Marek Polacek <polacek@redhat.com>
8226 * match.pd ((x + y) - (x | y) -> x & y,
8227 (x + y) - (x & y) -> x | y): New patterns.
8229 2015-06-23 Ludovic Courtès <ludo@gnu.org>
8232 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
8233 '-dynamic-linker' within %{!shared: ...}.
8235 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
8238 * config/i386/predicates.md (addsub_vm_operator): New predicate.
8239 (addsub_vs_operator): Ditto.
8240 (addsub_vs_parallel): Ditto.
8241 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
8242 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
8243 Put minus RTX before plus and adjust vec_merge selector.
8244 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
8245 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
8246 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
8247 (addsub vec_merge splitters): New combiner splitters.
8248 (addsub vec_select/vec_concat splitters): Ditto.
8250 2015-06-23 Bin Cheng <bin.cheng@arm.com>
8252 PR tree-optimization/66449
8253 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
8254 POINTER_PLUS_EXPR for pointers.
8256 2015-06-23 Alan Modra <amodra@gmail.com>
8258 * rtlanal.c (commutative_operand_precedence): Correct comments.
8259 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
8260 declaration. Return an int. Distinguish REG,REG return from
8262 (struct simplify_plus_minus_op_data): Make local to function.
8263 (simplify_plus_minus): Don't set canonicalized if merely sorting
8264 registers. Avoid packing ops if nothing changes. White space fixes.
8266 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
8268 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
8269 -fdump-ada-spec is passed but not if -fsyntax-only is.
8271 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
8274 * lra-lives.c (process_bb_lives): Check insn copying the same
8275 reload pseudo and don't create a copy for it.
8277 2015-06-22 Tom de Vries <tom@codesourcery.com>
8279 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
8282 2015-06-22 Tom de Vries <tom@codesourcery.com>
8284 * builtins.def (DEF_GOMP_BUILTIN): Test
8285 'flag_tree_parallelize_loops > 1' instead of
8286 'flag_tree_parallelize_loops'. Test flag_cilkplus.
8288 2015-06-22 Tom de Vries <tom@codesourcery.com>
8290 * dominance.c (calculate_dominance_info): Verify dominators if
8293 2015-06-22 Marek Polacek <polacek@redhat.com>
8295 * match.pd ((x ^ y) ^ (x | y) -> x & y,
8296 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
8297 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
8298 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
8300 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
8303 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
8304 cost of embedded comparison.
8306 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8309 * config/rs6000/predicates.md (altivec_register_operand): Permit
8310 virtual stack registers.
8311 (vsx_register_operand): Likewise.
8312 (vfloat_operand): Likewise.
8313 (vint_operand): Likewise.
8314 (vlogical_operand): Likewise.
8316 2015-06-22 Richard Biener <rguenther@suse.de>
8318 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
8319 and single_scalar_iteration_cost members.
8320 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
8321 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
8322 (vect_get_single_scalar_iteration_cost): Remove.
8323 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
8324 Use LOOP_VINFO_SCALAR_ITERATION_COST.
8325 * tree-vect-loop.c (destroy_loop_vec_info): Free
8327 (vect_get_single_scalar_iteration_cost): Compute result into
8328 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
8329 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
8330 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
8331 (vect_estimate_min_profitable_iters): Use them.
8333 2015-06-22 Christian Bruel <christian.bruel@st.com>
8336 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
8337 (TARGET_INSERT_ATTRIBUTES): Define.
8338 (thumb_flipper): New var.
8339 * config/arm/arm.opt (-mflip-thumb): New switch.
8341 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
8342 Martin Liska <mliska@suse.cz>
8345 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
8346 construction of arg_types.
8347 (sem_function::sem_function): Likewise.
8348 (sem_function::~sem_function): Remove destruction of arg_types.
8349 (sem_function::compatible_parm_types_p): New function.
8350 (sem_function::equals_wpa): Reorg matching of return values
8351 and parameter types.
8352 (sem_function::equals_private): Reorg mathcing of argument types.
8353 (sem_function::parse_tree_args): Remove.
8354 * ipa-icf.h (init_wpa): Do not call it.
8355 (parse_tree_args): Remove.
8356 (compatible_parm_types_p): Declare.
8357 (result_type): Remove.
8358 (arg_types): Remove.
8360 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
8363 * ipa-polymorphic-call.c
8364 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
8365 initializing alias oracle; fix formating; set base_alias_set if it
8368 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
8370 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
8371 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
8372 (find_inc): Likewise.
8373 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
8375 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
8376 * df-scan.c (df_swap_refs): Remove.
8377 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
8378 * dominance.c (link_roots): Use std::swap instead of manually swapping.
8379 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
8380 * fold-const.c (fold_relational_const): Likewise.
8381 * genattrtab.c (simplify_test_exp): Likewise.
8382 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
8383 gimple_simplify): Likewise.
8384 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
8385 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
8386 * ipa-devirt.c (add_type_duplicate): Likewise.
8387 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
8388 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
8389 * lra.c (lra_create_copy): Likewise.
8390 * lto-streamer-out.c (DFS::DFS): Likewise.
8391 * modulo-sched.c (get_sched_window): Likewise.
8392 * omega.c (omega_pretty_print_problem): Likewise.
8393 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
8394 * reload1.c (reloads_unique_chain_p): Likewise.
8395 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
8396 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
8398 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
8400 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
8401 predicate_mem_writes): Likewise.
8402 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
8403 * tree-predcom.c (combine_chains): Likewise.
8404 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
8405 refs_may_alias_p_1): Likewise.
8406 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
8407 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
8408 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
8409 number_of_iterations_cond): Likewise.
8410 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
8411 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
8412 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8413 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8414 * tree-vrp.c (extract_range_from_binary_expr_1,
8415 extract_range_from_unary_expr_1): Likewise.
8417 2015-06-20 Marek Polacek <polacek@redhat.com>
8419 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
8421 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
8424 * config/sh/sh.c (prepare_move_operands): Replace subreg
8425 index term with R0 for base and index addressing.
8427 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
8429 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
8431 (movsf_aarch64): Change condition from register_operand to
8432 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
8433 load1. Change type for alternative 7 to store1.
8434 (movdf_aarch64): Likewise.
8436 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
8438 * config/vax/vax.md: Adjust sign/zero extend patterns to
8439 handle SUBREGs in operands[1].
8441 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8443 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
8444 of manually swapping.
8445 (expand_vec_perm_interleave2): Likewise.
8447 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
8449 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
8450 reuse bounds created for abnormal ssa names.
8452 2015-06-19 Jakub Jelinek <jakub@redhat.com>
8454 * config/nvptx/nvptx.md (allocate_stack): Rename to...
8455 (allocate_stack_<mode>): ... this, and add :P on both
8456 match_operand and unspec.
8457 (allocate_stack): New expander.
8459 2015-06-19 Christian Bruel <christian.bruel@st.com>
8463 * config/arm/arm.c (arm_set_current_function): Handle
8464 explicit default options.
8466 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
8468 * config/i386/i386.md (*movsicc_noc_zext): New insn.
8469 (zero-extended cmove with mem peephole2): New pattern.
8470 (cmove with mem peephole2): Merge patterns.
8472 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
8474 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
8476 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
8478 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
8479 * config/mips/mips.md (*madd4<mode>): Ditto.
8480 (*nmadd3<mode>) Ditto.
8481 (*nmadd4<mode>_fastmath): Ditto.
8482 (*nmadd3<mode>_fastmath): Ditto.
8483 (*nmsub4<mode>): Ditto.
8484 (*nmsub3<mode>): Ditto.
8485 (*nmsub4<mode>_fastmath): Ditto.
8486 (*nmsub3<mode>_fastmath): Ditto.
8488 2015-06-18 Michael Matz <matz@suse.de>
8491 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
8492 grouped strided stores.
8493 (vectorizable_load): Don't use the DR from first_stmt in
8494 the non-SLP grouped strided case.
8496 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8499 * function.c (assign_bounds): Add arguments assign_regs,
8500 assign_special, assign_bt.
8501 (assign_parms): For vararg functions handle bounds in BT
8502 and special slots after incoming vararg bounds.
8504 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8507 * cfgexpand.c (expand_return): Handle missing bounds.
8508 (expand_gimple_stmt_1): Likewise.
8509 * tree-chkp.c (chkp_expand_zero_bounds): New.
8510 * tree-chkp.h (chkp_expand_zero_bounds): New.
8512 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8515 * ipa-chkp.c (chkp_maybe_create_clone): Require
8516 functions to be instrumentable.
8517 * tree-chkp.c (chkp_replace_function_pointer): Use
8518 chkp_instrumentable_p instead of attribute check.
8520 2015-06-18 Richard Biener <rguenther@suse.de>
8522 PR tree-optimization/66510
8523 * tree-vect-stmts.c (vectorizable_load): Properly compute the
8524 number of vector loads for SLP permuted loads.
8525 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
8526 check the stride for loop vectorization.
8527 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
8528 vectorization factor.
8529 (vect_analyze_group_access): If the group size is not a power
8530 of two require a epilogue loop.
8531 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
8532 compute and optimizing and alias test pruning after final
8533 vectorization factor computation.
8534 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
8536 (vect_transform_slp_perm_load): Properly compute the original
8537 number of vector load stmts.
8539 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
8541 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
8542 "unlikely character , in @var" warning.
8544 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
8546 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
8547 (ix86_function_arg_advance): Ditto.
8548 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
8550 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
8552 * function.h (struct rtl_data): Remove struct and accessor macros.
8553 * emit-rtl.h (struct rtl_data): Relocate to here.
8554 * Makefile.in (GTFILES): Add emit-rtl.h.
8555 * df-core.c: Include emit-rtl.h.
8556 * genattrtab.c: Likewise.
8557 * genconditions.c: Likewise.
8558 * genpreds.c: Likewise.
8559 * genrecog.c: Likewise.
8560 * regcprop.c: Likewise.
8561 * resource.c: Likewise.
8562 * sched-rgn.c: Likewise.
8563 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8564 * config/i386/winnt.c: Likewise.
8566 2015-06-17 Jakub Jelinek <jakub@redhat.com>
8569 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
8570 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
8571 and has_force_vectorize_loops flags from cfun into
8573 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
8574 if simduid is non-NULL.
8575 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
8576 * passes.def (pass_simduid_cleanup): Add new pass after loop
8578 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
8579 indirection from htab argument's type.
8580 (shrink_simd_arrays): New function.
8581 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
8582 Don't call adjust_simduid_builtins if there are no loops.
8583 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
8584 (pass_simduid_cleanup::execute): New method.
8585 (make_pass_simduid_cleanup): New function.
8587 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
8589 * tree-core.h (tree_target_option): Make opts field a pointer to a
8590 cl_target_option instead of an instance of the struct.
8591 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
8593 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
8595 (copy_node_stat): Allocate and copy struct cl_target_option.
8597 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
8599 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
8600 Remove conditional exposure of prototypes.
8601 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
8602 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
8603 definitions in tree.h with functions.
8604 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
8606 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
8608 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
8610 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
8611 (*cmp<mode>_signed): ... this.
8612 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
8613 (*cmp<mode>_unsigned): ... this. Remove %b.
8615 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
8617 * coretypes.h: Include input.h and as-a.h.
8618 * rtl.h: Include input.h and as-a.h for generator files.
8619 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
8620 * vec.c: Don't include diagnostic-core.h.
8621 * alias.c: Do not include input.h, line-map.h or is-a.h.
8623 * attribs.c: Likewise.
8624 * auto-inc-dec.c: Likewise.
8625 * auto-profile.c: Likewise.
8626 * bb-reorder.c: Likewise.
8627 * bt-load.c: Likewise.
8628 * builtins.c: Likewise.
8629 * caller-save.c: Likewise.
8630 * calls.c: Likewise.
8633 * cfganal.c: Likewise.
8634 * cfgbuild.c: Likewise.
8635 * cfgcleanup.c: Likewise.
8636 * cfgexpand.c: Likewise.
8637 * cfghooks.c: Likewise.
8638 * cfgloop.c: Likewise.
8639 * cfgloop.h: Likewise.
8640 * cfgloopanal.c: Likewise.
8641 * cfgloopmanip.c: Likewise.
8642 * cfgrtl.c: Likewise.
8643 * cgraph.c: Likewise.
8644 * cgraphbuild.c: Likewise.
8645 * cgraphclones.c: Likewise.
8646 * cgraphunit.c: Likewise.
8647 * cilk-common.c: Likewise.
8648 * combine-stack-adj.c: Likewise.
8649 * combine.c: Likewise.
8650 * compare-elim.c: Likewise.
8651 * convert.c: Likewise.
8652 * coverage.c: Likewise.
8653 * cppbuiltin.c: Likewise.
8654 * cprop.c: Likewise.
8656 * cselib.c: Likewise.
8657 * data-streamer-in.c: Likewise.
8658 * data-streamer-out.c: Likewise.
8659 * data-streamer.c: Likewise.
8660 * dbxout.c: Likewise.
8663 * debug.c: Likewise.
8664 * df-core.c: Likewise.
8665 * df-problems.c: Likewise.
8666 * df-scan.c: Likewise.
8669 * diagnostic-core.h: Likewise.
8670 * diagnostic.c: Likewise.
8671 * dojump.c: Likewise.
8672 * dominance.c: Likewise.
8673 * domwalk.c: Likewise.
8674 * double-int.c: Likewise.
8676 * dumpfile.c: Likewise.
8677 * dumpfile.h: Likewise.
8678 * dwarf2asm.c: Likewise.
8679 * dwarf2cfi.c: Likewise.
8680 * dwarf2out.c: Likewise.
8681 * emit-rtl.c: Likewise.
8682 * et-forest.c: Likewise.
8683 * except.c: Likewise.
8684 * explow.c: Likewise.
8685 * expmed.c: Likewise.
8687 * final.c: Likewise.
8688 * fixed-value.c: Likewise.
8689 * fold-const.c: Likewise.
8690 * function.c: Likewise.
8691 * fwprop.c: Likewise.
8692 * gcc-plugin.h: Likewise.
8694 * generic-match-head.c: Likewise.
8695 * ggc-page.c: Likewise.
8696 * gimple-builder.c: Likewise.
8697 * gimple-expr.c: Likewise.
8698 * gimple-fold.c: Likewise.
8699 * gimple-iterator.c: Likewise.
8700 * gimple-low.c: Likewise.
8701 * gimple-match-head.c: Likewise.
8702 * gimple-pretty-print.c: Likewise.
8703 * gimple-ssa-isolate-paths.c: Likewise.
8704 * gimple-ssa-strength-reduction.c: Likewise.
8705 * gimple-streamer-in.c: Likewise.
8706 * gimple-streamer-out.c: Likewise.
8707 * gimple-streamer.h: Likewise.
8708 * gimple-walk.c: Likewise.
8709 * gimple.c: Likewise.
8710 * gimplify-me.c: Likewise.
8711 * gimplify.c: Likewise.
8712 * godump.c: Likewise.
8713 * graph.c: Likewise.
8714 * graphite-blocking.c: Likewise.
8715 * graphite-dependences.c: Likewise.
8716 * graphite-interchange.c: Likewise.
8717 * graphite-isl-ast-to-gimple.c: Likewise.
8718 * graphite-optimize-isl.c: Likewise.
8719 * graphite-poly.c: Likewise.
8720 * graphite-scop-detection.c: Likewise.
8721 * graphite-sese-to-poly.c: Likewise.
8722 * graphite.c: Likewise.
8723 * haifa-sched.c: Likewise.
8724 * hw-doloop.c: Likewise.
8725 * ifcvt.c: Likewise.
8726 * init-regs.c: Likewise.
8727 * input.c: Likewise.
8728 * internal-fn.c: Likewise.
8729 * ipa-chkp.c: Likewise.
8730 * ipa-comdats.c: Likewise.
8731 * ipa-cp.c: Likewise.
8732 * ipa-devirt.c: Likewise.
8733 * ipa-icf-gimple.c: Likewise.
8734 * ipa-icf.c: Likewise.
8735 * ipa-inline-analysis.c: Likewise.
8736 * ipa-inline-transform.c: Likewise.
8737 * ipa-inline.c: Likewise.
8738 * ipa-polymorphic-call.c: Likewise.
8739 * ipa-profile.c: Likewise.
8740 * ipa-prop.c: Likewise.
8741 * ipa-pure-const.c: Likewise.
8742 * ipa-ref.c: Likewise.
8743 * ipa-reference.c: Likewise.
8744 * ipa-split.c: Likewise.
8745 * ipa-utils.c: Likewise.
8746 * ipa-visibility.c: Likewise.
8748 * ira-build.c: Likewise.
8749 * ira-color.c: Likewise.
8750 * ira-conflicts.c: Likewise.
8751 * ira-costs.c: Likewise.
8752 * ira-emit.c: Likewise.
8753 * ira-lives.c: Likewise.
8756 * langhooks.c: Likewise.
8758 * loop-doloop.c: Likewise.
8759 * loop-init.c: Likewise.
8760 * loop-invariant.c: Likewise.
8761 * loop-iv.c: Likewise.
8762 * loop-unroll.c: Likewise.
8763 * lower-subreg.c: Likewise.
8764 * lra-assigns.c: Likewise.
8765 * lra-coalesce.c: Likewise.
8766 * lra-constraints.c: Likewise.
8767 * lra-eliminations.c: Likewise.
8768 * lra-lives.c: Likewise.
8769 * lra-remat.c: Likewise.
8770 * lra-spills.c: Likewise.
8772 * lto-cgraph.c: Likewise.
8773 * lto-compress.c: Likewise.
8774 * lto-opts.c: Likewise.
8775 * lto-section-in.c: Likewise.
8776 * lto-section-out.c: Likewise.
8777 * lto-streamer-in.c: Likewise.
8778 * lto-streamer-out.c: Likewise.
8779 * lto-streamer.c: Likewise.
8781 * mode-switching.c: Likewise.
8782 * modulo-sched.c: Likewise.
8783 * omega.c: Likewise.
8784 * omp-low.c: Likewise.
8785 * optabs.c: Likewise.
8786 * opts-global.c: Likewise.
8788 * passes.c: Likewise.
8789 * plugin.c: Likewise.
8790 * postreload-gcse.c: Likewise.
8791 * postreload.c: Likewise.
8792 * predict.c: Likewise.
8793 * pretty-print.h: Likewise.
8794 * print-rtl.c: Likewise.
8795 * print-tree.c: Likewise.
8796 * profile.c: Likewise.
8798 * realmpfr.c: Likewise.
8799 * recog.c: Likewise.
8801 * reg-stack.c: Likewise.
8802 * regcprop.c: Likewise.
8803 * reginfo.c: Likewise.
8804 * regrename.c: Likewise.
8805 * regstat.c: Likewise.
8806 * reload.c: Likewise.
8807 * reload1.c: Likewise.
8808 * reorg.c: Likewise.
8809 * resource.c: Likewise.
8810 * rtl-chkp.c: Likewise.
8811 * rtl-error.c: Likewise.
8812 * rtlanal.c: Likewise.
8813 * rtlhooks.c: Likewise.
8814 * sanopt.c: Likewise.
8815 * sched-deps.c: Likewise.
8816 * sched-ebb.c: Likewise.
8817 * sched-rgn.c: Likewise.
8818 * sched-vis.c: Likewise.
8819 * sdbout.c: Likewise.
8820 * sel-sched-dump.c: Likewise.
8821 * sel-sched-ir.c: Likewise.
8822 * sel-sched.c: Likewise.
8824 * shrink-wrap.c: Likewise.
8825 * simplify-rtx.c: Likewise.
8826 * stack-ptr-mod.c: Likewise.
8827 * statistics.c: Likewise.
8829 * stor-layout.c: Likewise.
8830 * store-motion.c: Likewise.
8831 * streamer-hooks.c: Likewise.
8832 * stringpool.c: Likewise.
8833 * symtab.c: Likewise.
8834 * target-globals.c: Likewise.
8835 * targhooks.c: Likewise.
8836 * toplev.c: Likewise.
8837 * tracer.c: Likewise.
8838 * trans-mem.c: Likewise.
8839 * tree-affine.c: Likewise.
8840 * tree-browser.c: Likewise.
8841 * tree-call-cdce.c: Likewise.
8842 * tree-cfg.c: Likewise.
8843 * tree-cfgcleanup.c: Likewise.
8844 * tree-chkp-opt.c: Likewise.
8845 * tree-chkp.c: Likewise.
8846 * tree-chrec.c: Likewise.
8847 * tree-complex.c: Likewise.
8848 * tree-data-ref.c: Likewise.
8849 * tree-dfa.c: Likewise.
8850 * tree-diagnostic.c: Likewise.
8851 * tree-dump.c: Likewise.
8852 * tree-eh.c: Likewise.
8853 * tree-emutls.c: Likewise.
8854 * tree-if-conv.c: Likewise.
8855 * tree-inline.c: Likewise.
8856 * tree-into-ssa.c: Likewise.
8857 * tree-iterator.c: Likewise.
8858 * tree-loop-distribution.c: Likewise.
8859 * tree-nested.c: Likewise.
8860 * tree-nrv.c: Likewise.
8861 * tree-object-size.c: Likewise.
8862 * tree-outof-ssa.c: Likewise.
8863 * tree-parloops.c: Likewise.
8864 * tree-phinodes.c: Likewise.
8865 * tree-predcom.c: Likewise.
8866 * tree-pretty-print.c: Likewise.
8867 * tree-profile.c: Likewise.
8868 * tree-scalar-evolution.c: Likewise.
8869 * tree-sra.c: Likewise.
8870 * tree-ssa-address.c: Likewise.
8871 * tree-ssa-alias.c: Likewise.
8872 * tree-ssa-ccp.c: Likewise.
8873 * tree-ssa-coalesce.c: Likewise.
8874 * tree-ssa-copy.c: Likewise.
8875 * tree-ssa-copyrename.c: Likewise.
8876 * tree-ssa-dce.c: Likewise.
8877 * tree-ssa-dom.c: Likewise.
8878 * tree-ssa-dse.c: Likewise.
8879 * tree-ssa-forwprop.c: Likewise.
8880 * tree-ssa-ifcombine.c: Likewise.
8881 * tree-ssa-live.c: Likewise.
8882 * tree-ssa-loop-ch.c: Likewise.
8883 * tree-ssa-loop-im.c: Likewise.
8884 * tree-ssa-loop-ivcanon.c: Likewise.
8885 * tree-ssa-loop-ivopts.c: Likewise.
8886 * tree-ssa-loop-manip.c: Likewise.
8887 * tree-ssa-loop-niter.c: Likewise.
8888 * tree-ssa-loop-prefetch.c: Likewise.
8889 * tree-ssa-loop-unswitch.c: Likewise.
8890 * tree-ssa-loop.c: Likewise.
8891 * tree-ssa-math-opts.c: Likewise.
8892 * tree-ssa-operands.c: Likewise.
8893 * tree-ssa-phiopt.c: Likewise.
8894 * tree-ssa-phiprop.c: Likewise.
8895 * tree-ssa-pre.c: Likewise.
8896 * tree-ssa-propagate.c: Likewise.
8897 * tree-ssa-reassoc.c: Likewise.
8898 * tree-ssa-sccvn.c: Likewise.
8899 * tree-ssa-scopedtables.c: Likewise.
8900 * tree-ssa-sink.c: Likewise.
8901 * tree-ssa-strlen.c: Likewise.
8902 * tree-ssa-structalias.c: Likewise.
8903 * tree-ssa-tail-merge.c: Likewise.
8904 * tree-ssa-ter.c: Likewise.
8905 * tree-ssa-threadedge.c: Likewise.
8906 * tree-ssa-threadupdate.c: Likewise.
8907 * tree-ssa-uncprop.c: Likewise.
8908 * tree-ssa-uninit.c: Likewise.
8909 * tree-ssa.c: Likewise.
8910 * tree-ssanames.c: Likewise.
8911 * tree-stdarg.c: Likewise.
8912 * tree-streamer-in.c: Likewise.
8913 * tree-streamer-out.c: Likewise.
8914 * tree-streamer.c: Likewise.
8915 * tree-switch-conversion.c: Likewise.
8916 * tree-tailcall.c: Likewise.
8917 * tree-vect-data-refs.c: Likewise.
8918 * tree-vect-generic.c: Likewise.
8919 * tree-vect-loop-manip.c: Likewise.
8920 * tree-vect-loop.c: Likewise.
8921 * tree-vect-patterns.c: Likewise.
8922 * tree-vect-slp.c: Likewise.
8923 * tree-vect-stmts.c: Likewise.
8924 * tree-vectorizer.c: Likewise.
8925 * tree-vrp.c: Likewise.
8928 * ubsan.c: Likewise.
8929 * valtrack.c: Likewise.
8930 * value-prof.c: Likewise.
8931 * var-tracking.c: Likewise.
8932 * varasm.c: Likewise.
8933 * varpool.c: Likewise.
8934 * vmsdbgout.c: Likewise.
8935 * vtable-verify.c: Likewise.
8937 * wide-int.cc: Likewise.
8938 * xcoffout.c: Likewise.
8939 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
8940 * common/common-targhooks.c: Likewise.
8941 * config/aarch64/aarch64-builtins.c: Likewise.
8942 * config/aarch64/aarch64.c: Likewise.
8943 * config/alpha/alpha.c: Likewise.
8944 * config/arc/arc.c: Likewise.
8945 * config/arm/aarch-common.c: Likewise.
8946 * config/arm/arm-builtins.c: Likewise.
8947 * config/arm/arm-c.c: Likewise.
8948 * config/arm/arm.c: Likewise.
8949 * config/avr/avr-c.c: Likewise.
8950 * config/avr/avr-log.c: Likewise.
8951 * config/avr/avr.c: Likewise.
8952 * config/bfin/bfin.c: Likewise.
8953 * config/c6x/c6x.c: Likewise.
8954 * config/cr16/cr16.c: Likewise.
8955 * config/cris/cris.c: Likewise.
8956 * config/darwin-c.c: Likewise.
8957 * config/darwin.c: Likewise.
8958 * config/default-c.c: Likewise.
8959 * config/epiphany/epiphany.c: Likewise.
8960 * config/epiphany/mode-switch-use.c: Likewise.
8961 * config/epiphany/resolve-sw-modes.c: Likewise.
8962 * config/fr30/fr30.c: Likewise.
8963 * config/frv/frv.c: Likewise.
8964 * config/ft32/ft32.c: Likewise.
8965 * config/glibc-c.c: Likewise.
8966 * config/h8300/h8300.c: Likewise.
8967 * config/i386/i386-c.c: Likewise.
8968 * config/i386/i386.c: Likewise.
8969 * config/i386/msformat-c.c: Likewise.
8970 * config/i386/winnt-cxx.c: Likewise.
8971 * config/i386/winnt-stubs.c: Likewise.
8972 * config/i386/winnt.c: Likewise.
8973 * config/ia64/ia64-c.c: Likewise.
8974 * config/ia64/ia64.c: Likewise.
8975 * config/iq2000/iq2000.c: Likewise.
8976 * config/lm32/lm32.c: Likewise.
8977 * config/m32c/m32c-pragma.c: Likewise.
8978 * config/m32c/m32c.c: Likewise.
8979 * config/m32r/m32r.c: Likewise.
8980 * config/m68k/m68k.c: Likewise.
8981 * config/mcore/mcore.c: Likewise.
8982 * config/mep/mep-pragma.c: Likewise.
8983 * config/mep/mep.c: Likewise.
8984 * config/microblaze/microblaze-c.c: Likewise.
8985 * config/microblaze/microblaze.c: Likewise.
8986 * config/mips/mips.c: Likewise.
8987 * config/mmix/mmix.c: Likewise.
8988 * config/mn10300/mn10300.c: Likewise.
8989 * config/moxie/moxie.c: Likewise.
8990 * config/msp430/msp430-c.c: Likewise.
8991 * config/msp430/msp430.c: Likewise.
8992 * config/nds32/nds32-cost.c: Likewise.
8993 * config/nds32/nds32-fp-as-gp.c: Likewise.
8994 * config/nds32/nds32-intrinsic.c: Likewise.
8995 * config/nds32/nds32-isr.c: Likewise.
8996 * config/nds32/nds32-md-auxiliary.c: Likewise.
8997 * config/nds32/nds32-memory-manipulation.c: Likewise.
8998 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8999 * config/nds32/nds32-predicates.c: Likewise.
9000 * config/nds32/nds32.c: Likewise.
9001 * config/nios2/nios2.c: Likewise.
9002 * config/nvptx/nvptx.c: Likewise.
9003 * config/pa/pa.c: Likewise.
9004 * config/pdp11/pdp11.c: Likewise.
9005 * config/rl78/rl78-c.c: Likewise.
9006 * config/rl78/rl78.c: Likewise.
9007 * config/rs6000/rs6000-c.c: Likewise.
9008 * config/rs6000/rs6000.c: Likewise.
9009 * config/rx/rx.c: Likewise.
9010 * config/s390/s390-c.c: Likewise.
9011 * config/s390/s390.c: Likewise.
9012 * config/sh/sh-c.c: Likewise.
9013 * config/sh/sh-mem.cc: Likewise.
9014 * config/sh/sh.c: Likewise.
9015 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9016 * config/sh/sh_treg_combine.cc: Likewise.
9017 * config/sol2-c.c: Likewise.
9018 * config/sol2-cxx.c: Likewise.
9019 * config/sol2-stubs.c: Likewise.
9020 * config/sol2.c: Likewise.
9021 * config/sparc/sparc-c.c: Likewise.
9022 * config/sparc/sparc.c: Likewise.
9023 * config/spu/spu-c.c: Likewise.
9024 * config/spu/spu.c: Likewise.
9025 * config/stormy16/stormy16.c: Likewise.
9026 * config/tilegx/mul-tables.c: Likewise.
9027 * config/tilegx/tilegx-c.c: Likewise.
9028 * config/tilegx/tilegx.c: Likewise.
9029 * config/tilepro/mul-tables.c: Likewise.
9030 * config/tilepro/tilepro-c.c: Likewise.
9031 * config/tilepro/tilepro.c: Likewise.
9032 * config/v850/v850-c.c: Likewise.
9033 * config/v850/v850.c: Likewise.
9034 * config/vax/vax.c: Likewise.
9035 * config/visium/visium.c: Likewise.
9036 * config/vms/vms-c.c: Likewise.
9037 * config/vms/vms.c: Likewise.
9038 * config/vxworks.c: Likewise.
9039 * config/winnt-c.c: Likewise.
9040 * config/xtensa/xtensa.c: Likewise.
9042 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
9044 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
9046 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
9048 2015-06-17 Richard Biener <rguenther@suse.de>
9050 PR tree-optimization/66251
9051 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
9052 stmts for SLP strided stores.
9055 2015-05-22 Richard Biener <rguenther@suse.de>
9057 PR tree-optimization/66251
9058 * tree-vect-stmts.c (vectorizable_conversion): Properly
9059 set STMT_VINFO_VEC_STMT even for the SLP case.
9061 2015-05-26 Michael Matz <matz@suse.de>
9064 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
9065 STMT_VINFO_VEC_STMT, also with SLP.
9067 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
9070 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
9071 (*avx_addsubv4df3_1s): Ditto.
9072 (*sse3_addsubv2df3_1): Ditto.
9073 (*sse3_addsubv2df3_1s): Ditto.
9074 (*avx_addsubv8sf3_1): Ditto.
9075 (*avx_addsubv8sf3_1s): Ditto.
9076 (*sse3_addsubv4sf3_1): Ditto.
9077 (*sse3_addsubv4sf3_1s): Ditto.
9079 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
9081 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
9082 (SYSROOT_SUFFIX_SPEC): Update.
9083 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
9084 (STARTFILE_PREFIX_SPEC): Update.
9085 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
9086 (MULTILIB_REQUIRED): New.
9087 (MULTILIB_OSDIRNAMES): New.
9088 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
9089 (MULTILIB_REQUIRED): New.
9090 (MULTILIB_OSDIRNAMES): New.
9092 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
9094 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
9095 * config/aarch64/aarch64-options-extensions.def: Update "fP",
9096 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
9097 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
9098 (AARCH64_FL_PAN): New.
9099 (AARCH64_FL_LOR): New.
9100 (AARCH64_FL_RDMA): New.
9101 (AARCH64_FL_FOR_ARCH8_1): New.
9102 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
9103 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
9105 2015-06-16 Martin Liska <mliska@suse.cz>
9107 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
9108 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
9111 2015-06-16 Richard Biener <rguenther@suse.de>
9113 * tree-vect-stmts.c (vectorizable_store): Adjust.
9114 (vectorizable_load): Likewise.
9115 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9117 (vect_create_data_ref_ptr): Likewise.
9118 (bump_vector_ptr): Adjust.
9120 2015-06-16 Richard Biener <rguenther@suse.de>
9122 * tree-vect-stmts.c (vectorizable_load): Properly start loads
9123 with the first element if this is grouped loads.
9125 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
9127 * config/arm/arm-protos.h (struct tune_params): Rename
9128 log_op_non_sc to log_op_non_short_circuit, and rename enum
9129 values to expand SC to SHORT_CIRCUIT.
9130 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
9131 to LOG_OP_NON_SHORT_CIRCUIT.
9132 (arm_fastmul_tune):Likewise
9133 (arm_strongarm_tune): Likewise.
9134 (arm_xscale_tune): Likewise.
9135 (arm_9e_tune): Likewise.
9136 (arm_marvell_pj4_tune): Likewise.
9137 (arm_v6t2_tune): Likewise.
9138 (arm_cortex_tune): Likewise.
9139 (arm_cortex_a8_tune): Likewise.
9140 (arm_cortex_a7_tune): Likewise.
9141 (arm_cortex_a15_tune): Likewise.
9142 (arm_cortex_a53_tune): Likewise.
9143 (arm_cortex_a57_tune): Likewise.
9144 (arm_xgene1_tune): Likewise.
9145 (arm_cortex_a5_tune): Likewise.
9146 (arm_cortex_a9_tune): Likewise.
9147 (arm_cortex_a12_tune): Likewise.
9148 (arm_v7m_tune): Likewise.
9149 (arm_cortex_m7_tune): Likewise.
9150 (arm_v6m_tune): Likewise.
9151 (arm_fa726te_tune): Likewise.
9153 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
9155 * altivec.md: Delete UNSPEC_VMLADDUHM.
9156 (mulv4si3_p8): New pattern.
9157 (mulv4si3): Use it for POWER8.
9158 (mulv8hi3): Use vmladduhm with zero addend.
9159 (altivec_vmladduhm): Descriptive RTL.
9161 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
9163 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
9164 to use neon_move instead of mov_imm.
9165 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
9166 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
9168 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
9169 aarch64_float_const_zero_rtx_p check before TFmode check.
9170 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
9172 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
9173 code and attributes to match. Change condition from register_operand
9174 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
9175 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
9178 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
9181 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
9184 2015-06-14 Shiva Chen <shiva0217@gmail.com>
9186 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
9187 HOST_WIDE_INT parameter.
9189 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
9192 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
9193 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
9195 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9197 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
9199 * rtl.h (classify_insn): Declare.
9200 * emit-rtl.c (classify_insn): Move to...
9201 * rtl.c: ...here and add generator support.
9202 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
9203 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
9204 * genemit.c (gen_emit_seq): New function.
9205 (gen_expand, gen_split): Use it.
9207 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
9209 * tree.c (make_vector_stat): Fix comment to state that the
9210 function returns a VECTOR_CST.
9212 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
9214 * gensupport.h (add_implicit_parallel): Declare.
9215 * genrecog.c (add_implicit_parallel): Move to...
9216 * gensupport.c (add_implicit_parallel): ...here.
9217 (process_one_cond_exec): Use it.
9218 * genemit.c (gen_insn): Likewise.
9220 2015-06-13 Iain Sandoe <iain@codesourcery.com>
9223 * passes.c (rest_of_decl_compilation): Do not register globals for
9224 early debug if they are declared in built-ins.
9226 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
9228 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
9230 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9232 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
9234 (noce_try_cmove_arith): Likewise.
9235 (noce_get_alt_condition): Likewise.
9237 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9239 * common/config/i386/i386-common.c
9240 (OPTION_MASK_ISA_MWAITX_SET): New.
9241 (ix86_handle_option): Handle mwaitx.
9242 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
9243 (x86_64-*-*): Likewise.
9244 * config/i386/mwaitxintrin.h: New header.
9245 * config/i386/cpuid.h (bit_MWAITX): Define.
9246 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
9248 * config/i386/i386.opt (mwaitx): New.
9249 * config/i386/i386-builtin-types.def
9250 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
9251 * config/i386/i386-c.c: Define __MWAITX__ if needed.
9252 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
9254 (ix86_option_override_internal): Handle new option.
9255 (processor_alias_table): Added PTA_MWAITX.
9256 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
9257 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
9258 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
9259 IX86_BUILTIN_MONITORX built-ins.
9260 * config/i386/i386.h (TARGET_MWAITX): New.
9261 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
9263 (mwaitx): New pattern.
9264 (monitorx_<mode>): New pattern.
9265 * config/i386/x86intrin.h: Include mwaitxintrin.h.
9266 * doc/extend.texi: Document monitorx and mwaitx builtins.
9267 * doc/invoke.texi: Document -mmwaitx option.
9269 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
9271 * emit-rtl.c (need_atomic_barrier_p): Mask model with
9272 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
9274 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
9276 * dbxout.c (xcoff_debug_hooks): Provide a function for
9277 register_main_translation_unit hook.
9279 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
9281 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
9282 variants cases from switch.
9283 (rs6000_post_atomic_barrier): Same.
9284 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
9285 (rs6000_expand_atomic_exchange): Same.
9286 (rs6000_expand_atomic_op): Same.
9287 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
9288 SYNC variants cases from switch.
9289 (atomic_load): Same.
9290 (atomic_store): Same.
9292 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
9294 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
9297 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
9300 * dwarf2out.c (check_die): Check for common duplicate attributes.
9301 (add_location_or_const_value_attribute): Do not add duplicate
9303 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
9305 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
9306 (gen_type_die_with_usage): Call check_die.
9307 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
9309 2015-06-11 Jason Merrill <jason@redhat.com>
9311 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
9314 2015-06-11 Marek Polacek <polacek@redhat.com>
9316 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
9318 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
9321 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
9322 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
9323 (*addx_extend_sp32): Fix pasto.
9324 (*subx_extend): Rename into...
9325 (*subx_extend_sp32): ...this.
9326 (*adddi3_extend_sp32): Add earlyclobber.
9327 (*subdi3_insn_sp32): Likewise.
9328 (*subdi3_extend_sp32): Likewise.
9329 (*and_not_di_sp32): Likewise.
9330 (*or_not_di_sp32): Likewise.
9331 (*xor_not_di_sp32): Likewise.
9332 (*negdi2_sp32): Likewise.
9333 (*one_cmpldi2_sp32): Likewise.
9335 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
9337 * debug.h (struct gcc_debug_hooks): Add a
9338 register_main_translation_unit hook.
9339 * debug.c (do_nothing_debug_hooks): Provide a function for this
9341 * dbxout.c (dbx_debug_hooks): Likewise.
9342 * sdbout.c (sdb_debug_hooks): Likewise.
9343 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9344 * dwarf2out.c (main_translation_unit): New global variable.
9345 (dwarf2out_register_main_translation_unit): New function
9346 implementing the new hook.
9347 (dwarf2_debug_hooks): Assign
9348 dwarf2out_register_main_translation_unit to this new hook.
9349 (dwarf2out_init): Associate any main translation unit to
9352 2015-06-11 Marek Polacek <polacek@redhat.com>
9354 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
9356 2015-06-11 Marek Polacek <polacek@redhat.com>
9358 * match.pd: Use single_use throughout.
9360 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9362 * config/arm/arm.c (arm_option_params_internal): When optimising
9363 for speed set max_insns_skipped when arm_restrict_it.
9365 2015-06-11 Christian Bruel <christian.bruel@st.com>
9368 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
9370 (arm_cpu_builtins): New function.
9371 (arm_pragma_target_parse): Call arm_cpu_builtins.
9372 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
9373 (arm_register_target_pragmas): Likewise.
9374 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
9375 Call arm_register_target_pragmas.
9376 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
9377 (arm_pragma_target_parse): Likewise.
9379 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
9381 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
9382 of the second operand.
9384 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
9387 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
9388 to prepare mask operand for AVX512 modes.
9390 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
9393 * doc/md.texi (Machine Constraints): Document that on the PowerPC
9394 if you use a constraint that targets a VSX register, you must use
9395 %x<n> in the template.
9397 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
9399 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
9400 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
9401 (define_insn "trap"): New definition.
9403 2015-06-10 Richard Biener <rguenther@suse.de>
9405 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
9407 (vect_supported_load_permutation_p): ... here. Handle
9408 supportable permutations in reductions.
9409 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
9410 for vectorizing strided group loads.
9412 2015-06-10 Jakub Jelinek <jakub@redhat.com>
9415 * config/i386/i386.c (ix86_split_long_move): For collisions
9416 involving direct tls segment refs, move the UNSPEC_TP possibly
9417 wrapped in ZERO_EXTEND out of the address for lea, to each of
9420 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9422 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
9423 dmb sy. Adjust tabs.
9425 2015-06-10 Tom de Vries <tom@codesourcery.com>
9427 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
9429 2015-06-10 Martin Liska <mliska@suse.cz>
9432 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
9433 all enum values in mem_alloc_origin.
9434 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
9436 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
9437 * bitmap.c (bitmap_register): Likewise.
9438 (dump_bitmap_statistics): Likewise.
9439 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
9440 (ggc_record_overhead): Likewise.
9441 * hash-map.h: Likewise.
9442 * hash-set.h: Likewise.
9443 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
9444 * hash-table.h: Likewise.
9445 * vec.c (vec_prefix::register_overhead): Likewise.
9446 (vec_prefix::release_overhead): Likewise.
9447 (dump_vec_loc_statistics): Likewise.
9449 2015-06-09 Christian Bruel <christian.bruel@st.com>
9452 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
9453 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
9454 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
9455 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
9456 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
9457 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
9458 (arm_valid_target_attribute_p): Likewise.
9459 (arm_set_current_function, arm_can_inline_p): Likewise.
9460 (arm_valid_target_attribute_rec): Likewise.
9461 (arm_previous_fndecl): New variable.
9462 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
9463 (TARGET_CAN_INLINE_P): Define.
9464 (arm_asm_trampoline_template): Emit mode.
9465 (arm_file_start): Don't set unified syntax.
9466 (arm_declare_function_name): Set unified syntax and mode.
9467 (arm_option_override): Init target_option_default_node.
9468 and target_option_current_node.
9469 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
9470 (*call_symbol): Likewise.
9471 * doc/extend.texi: Document ARM/Thumb target attribute.
9472 * doc/invoke.texi: Likewise.
9474 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
9477 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
9478 PR rtl-optimization/64164
9479 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9480 * tree-ssa-copyrename.c: Removed.
9481 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9482 -ftree-coalesce-vars.
9483 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9484 * common.opt (ftree-copyrename): Ignore.
9485 (ftree-coalesce-inlined-vars): Likewise.
9486 * doc/invoke.texi: Remove the ignored options above.
9487 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9488 * tree-ssa-coalesce.h: ... here.
9489 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9490 headers required by it.
9491 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9492 across variables when flag_tree_coalesce_vars. Check register
9493 use and promoted modes to allow coalescing. Moved to
9494 tree-ssa-coalesce.c.
9495 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9496 with its member functions to tree-ssa-coalesce.c.
9497 (var_map_base_init): Likewise. Renamed to
9498 compute_samebase_partition_bases.
9499 (partition_view_normal): Drop want_bases parameter.
9500 (partition_view_bitmap): Likewise.
9501 * tree-ssa-live.h: Adjust declarations.
9502 * tree-ssa-coalesce.c: Include explow.h.
9503 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9504 default defs at the entry point.
9505 (dump_part_var_map): New.
9506 (compute_optimized_partition_bases): New, called by...
9507 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9508 of compute_samebase_partition_bases. Adjust.
9509 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9510 * cfgexpand.c (leader_merge): New.
9511 (get_rtl_for_parm_ssa_default_def): New.
9512 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9513 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9514 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9515 redundant MEM attr setting.
9516 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9518 (expand_one_stack_var): ... this. New wrapper to check and
9519 skip already expanded SSA partitions.
9520 (record_alignment_for_reg_var): New, factored out of...
9521 (expand_one_var): ... this.
9522 (expand_one_ssa_partition): New.
9523 (adjust_one_expanded_partition_var): New.
9524 (expand_one_register_var): Check and skip already expanded SSA
9526 (expand_used_vars): Don't create DECLs for anonymous SSA
9527 names. Expand all SSA partitions, then adjust all SSA names.
9528 (pass::execute): Replace the loops that set
9529 SA.partition_to_pseudo from partition leaders and cleared
9530 DECL_RTL for multi-location variables, and that which used to
9531 rename vars and set attrs, with one that clears DECL_RTL and
9532 checks that PARMs and RESULTs default_defs match DECL_RTL.
9533 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9534 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9535 * explow.c (promote_ssa_mode): New.
9536 * explow.h (promote_ssa_mode): Declare.
9537 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9538 * function.c: Include cfgexpand.h.
9539 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9540 (use_register_for_parm_decl): Wrapper for the above to
9541 special-case the result_ptr.
9542 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9543 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9545 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9546 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9547 (assign_parm_setup_block): Prefer SSA-assigned location.
9548 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9549 if stack_parm is NULL.
9550 (assign_parm_setup_stack): Prefer SSA-assigned location.
9551 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9552 rtl before testing for pointer bounds. Special-case result_ptr.
9553 (expand_function_start): Maybe reset DECL_RTL of result.
9554 Prefer SSA-assigned location for result and static chain.
9555 Factor out DECL_RESULT and SET_DECL_RTL.
9556 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9557 anonymous SSA names. Use promote_ssa_mode.
9558 (get_temp_reg): Likewise.
9559 (remove_ssa_form): Adjust.
9560 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9561 and get its reg_usage for reg invalidation.
9562 (compute_bb_dataflow): Pass it insn.
9563 (emit_notes_in_bb): Likewise.
9564 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
9565 fail assert on conversion between unsigned types.
9567 2015-06-09 Tom de Vries <tom@codesourcery.com>
9569 PR tree-optimization/65460
9570 * omp-low.c (expand_omp_target): Set parallelized_function on
9571 cgraph_node for child_fn.
9573 2015-06-09 Tom de Vries <tom@codesourcery.com>
9575 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
9576 parallelized_function before add_new_function.
9578 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
9580 * gcc-plugin.h: Move decls to plugin.h and include it.
9581 * plugin.h: Relocate decls from gcc-plugin.h
9582 * ggc-page.c: Include required header files.
9583 * passes.c: Likewise.
9584 * cgraphunit.c: Likewise.
9586 2015-06-09 Tom de Vries <tom@codesourcery.com>
9588 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
9590 2015-06-09 Jason Merrill <jason@redhat.com>
9593 * toplev.c (check_global_declaration): Don't warn about a clone.
9595 2015-06-09 Marek Polacek <polacek@redhat.com>
9597 PR tree-optimization/66299
9598 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
9599 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
9602 2015-06-09 Richard Biener <rguenther@suse.de>
9604 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
9605 (vect_analyze_slp_instance): Instead do not falsely drop
9608 2015-06-09 Richard Biener <rguenther@suse.de>
9611 * match.pd: Handle A % (unsigned)(1 << B).
9613 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
9615 * varasm.c (output_object_block_htab): Remove.
9616 (output_object_block_compare): New.
9617 (output_object_blocks): Sort named object_blocks before outputting
9620 2015-06-09 Richard Biener <rguenther@suse.de>
9622 PR tree-optimization/66419
9623 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
9624 consider GROUP_GAP when detecting a perfect subchain.
9626 2015-06-09 Nick Clifton <nickc@redhat.com>
9628 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
9629 place read only data in the .frodata section.
9631 2015-06-09 Shiva Chen <shiva0217@gmail.com>
9633 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
9634 (atomic_store<mode>): Likewise.
9636 2015-06-09 Richard Biener <rguenther@suse.de>
9638 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
9640 2015-06-09 Richard Biener <rguenther@suse.de>
9643 * tree-inline.c (insert_init_debug_bind): Unshare value.
9645 2015-06-09 Richard Biener <rguenther@suse.de>
9647 PR tree-optimization/66396
9648 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
9649 Rename virtual operands.
9651 2015-06-09 Tom de Vries <tom@codesourcery.com>
9653 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
9654 always return false.
9656 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
9658 PR rtl-optimization/64164
9659 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9660 * tree-ssa-copyrename.c: Removed.
9661 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9662 -ftree-coalesce-vars.
9663 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9664 * common.opt (ftree-copyrename): Ignore.
9665 (ftree-coalesce-inlined-vars): Likewise.
9666 * doc/invoke.texi: Remove the ignored options above.
9667 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9668 * tree-ssa-coalesce.h: ... here.
9669 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9670 headers required by it.
9671 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9672 across variables when flag_tree_coalesce_vars. Check register
9673 use and promoted modes to allow coalescing. Moved to
9674 tree-ssa-coalesce.c.
9675 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9676 with its member functions to tree-ssa-coalesce.c.
9677 (var_map_base_init): Likewise. Renamed to
9678 compute_samebase_partition_bases.
9679 (partition_view_normal): Drop want_bases parameter.
9680 (partition_view_bitmap): Likewise.
9681 * tree-ssa-live.h: Adjust declarations.
9682 * tree-ssa-coalesce.c: Include explow.h.
9683 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9684 default defs at the entry point.
9685 (dump_part_var_map): New.
9686 (compute_optimized_partition_bases): New, called by...
9687 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9688 of compute_samebase_partition_bases. Adjust.
9689 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9690 * cfgexpand.c (leader_merge): New.
9691 (get_rtl_for_parm_ssa_default_def): New.
9692 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9693 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9694 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9695 redundant MEM attr setting.
9696 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9698 (expand_one_stack_var): ... this. New wrapper to check and
9699 skip already expanded SSA partitions.
9700 (record_alignment_for_reg_var): New, factored out of...
9701 (expand_one_var): ... this.
9702 (expand_one_ssa_partition): New.
9703 (adjust_one_expanded_partition_var): New.
9704 (expand_one_register_var): Check and skip already expanded SSA
9706 (expand_used_vars): Don't create DECLs for anonymous SSA
9707 names. Expand all SSA partitions, then adjust all SSA names.
9708 (pass::execute): Replace the loops that set
9709 SA.partition_to_pseudo from partition leaders and cleared
9710 DECL_RTL for multi-location variables, and that which used to
9711 rename vars and set attrs, with one that clears DECL_RTL and
9712 checks that PARMs and RESULTs default_defs match DECL_RTL.
9713 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9714 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9715 * explow.c (promote_ssa_mode): New.
9716 * explow.h (promote_ssa_mode): Declare.
9717 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9718 * function.c: Include cfgexpand.h.
9719 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9720 (use_register_for_parm_decl): Wrapper for the above to
9721 special-case the result_ptr.
9722 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9723 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9725 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9726 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9727 (assign_parm_setup_block): Prefer SSA-assigned location.
9728 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9729 if stack_parm is NULL.
9730 (assign_parm_setup_stack): Prefer SSA-assigned location.
9731 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9732 rtl before testing for pointer bounds. Special-case result_ptr.
9733 (expand_function_start): Maybe reset DECL_RTL of result.
9734 Prefer SSA-assigned location for result and static chain.
9735 Factor out DECL_RESULT and SET_DECL_RTL.
9736 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9737 anonymous SSA names. Use promote_ssa_mode.
9738 (get_temp_reg): Likewise.
9739 (remove_ssa_form): Adjust.
9740 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9741 and get its reg_usage for reg invalidation.
9742 (compute_bb_dataflow): Pass it insn.
9743 (emit_notes_in_bb): Likewise.
9744 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
9745 fail assert on conversion between unsigned types.
9747 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
9750 * tree-inline.c (reset_debug_binding): New.
9751 (reset_debug_bindings): Likewise.
9752 (expand_call_inline): Call it.
9754 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9756 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
9759 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9761 * lto-streamer-out.c (lto_output_location): Stream
9762 reserved locations correctly.
9763 * lto-streamer-in.c (lto_output_location): Likewise.
9765 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
9767 * coretypes.h: Include hash-table.h and hash-set.h for host files.
9768 * ggc.h: Don't include statistics.h>
9769 * hash-map.h: Remove all includes.
9770 * hash-set.h: Likewise.
9771 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
9772 the include list. Remove <new>.
9773 * inchash.h: Remove all includes.
9774 * mem-stats.h: Likewise.
9775 * vec.h: No special processing for generators or ggc.
9776 * alias.c : Adjust include files.
9777 * alloc-pool.c : Likewise.
9778 * alloc-pool.h : Likewise.
9779 * asan.c : Likewise.
9780 * attribs.c : Likewise.
9781 * auto-inc-dec.c : Likewise.
9782 * auto-profile.c : Likewise.
9783 * bb-reorder.c : Likewise.
9784 * bitmap.c : Likewise.
9785 * bitmap.h : Likewise.
9786 * bt-load.c : Likewise.
9787 * builtins.c : Likewise.
9788 * caller-save.c : Likewise.
9789 * calls.c : Likewise.
9790 * ccmp.c : Likewise.
9792 * cfganal.c : Likewise.
9793 * cfgbuild.c : Likewise.
9794 * cfgcleanup.c : Likewise.
9795 * cfgexpand.c : Likewise.
9796 * cfghooks.c : Likewise.
9797 * cfgloop.c : Likewise.
9798 * cfgloop.h : Likewise.
9799 * cfgloopanal.c : Likewise.
9800 * cfgloopmanip.c : Likewise.
9801 * cfgrtl.c : Likewise.
9802 * cgraph.c : Likewise.
9803 * cgraphbuild.c : Likewise.
9804 * cgraphclones.c : Likewise.
9805 * cgraphunit.c : Likewise.
9806 * cilk-common.c : Likewise.
9807 * combine-stack-adj.c : Likewise.
9808 * combine.c : Likewise.
9809 * compare-elim.c : Likewise.
9810 * context.c : Likewise.
9811 * convert.c : Likewise.
9812 * coverage.c : Likewise.
9813 * cppbuiltin.c : Likewise.
9814 * cprop.c : Likewise.
9816 * cselib.c : Likewise.
9817 * data-streamer-in.c : Likewise.
9818 * data-streamer-out.c : Likewise.
9819 * data-streamer.c : Likewise.
9820 * data-streamer.h : Likewise.
9821 * dbxout.c : Likewise.
9824 * debug.c : Likewise.
9825 * df-core.c : Likewise.
9826 * df-problems.c : Likewise.
9827 * df-scan.c : Likewise.
9830 * dojump.c : Likewise.
9831 * dominance.c : Likewise.
9832 * domwalk.c : Likewise.
9833 * double-int.c : Likewise.
9835 * dumpfile.c : Likewise.
9836 * dwarf2asm.c : Likewise.
9837 * dwarf2cfi.c : Likewise.
9838 * dwarf2out.c : Likewise.
9839 * emit-rtl.c : Likewise.
9840 * et-forest.c : Likewise.
9841 * except.c : Likewise.
9842 * except.h : Likewise.
9843 * explow.c : Likewise.
9844 * expmed.c : Likewise.
9845 * expr.c : Likewise.
9846 * final.c : Likewise.
9847 * fixed-value.c : Likewise.
9848 * fold-const.c : Likewise.
9849 * function.c : Likewise.
9850 * fwprop.c : Likewise.
9851 * gcc-plugin.h : Likewise.
9853 * gcse-common.c : Likewise.
9854 * gcse.c : Likewise.
9855 * genattrtab.c : Likewise.
9856 * genautomata.c : Likewise.
9857 * genconditions.c : Likewise.
9858 * genemit.c : Likewise.
9859 * generic-match-head.c : Likewise.
9860 * genextract.c : Likewise.
9861 * gengtype-state.c : Likewise.
9862 * gengtype.c : Likewise.
9863 * genhooks.c : Likewise.
9864 * genmatch.c : Likewise.
9865 * genmodes.c : Likewise.
9866 * genrecog.c : Likewise.
9867 * gensupport.c : Likewise.
9868 * ggc-common.c : Likewise.
9869 * ggc-internal.h : Likewise.
9870 * ggc-none.c : Likewise.
9871 * ggc-page.c : Likewise.
9872 * gimple-builder.c : Likewise.
9873 * gimple-expr.c : Likewise.
9874 * gimple-fold.c : Likewise.
9875 * gimple-iterator.c : Likewise.
9876 * gimple-low.c : Likewise.
9877 * gimple-match-head.c : Likewise.
9878 * gimple-pretty-print.c : Likewise.
9879 * gimple-ssa-isolate-paths.c : Likewise.
9880 * gimple-ssa-strength-reduction.c : Likewise.
9881 * gimple-ssa.h : Likewise.
9882 * gimple-streamer-in.c : Likewise.
9883 * gimple-streamer-out.c : Likewise.
9884 * gimple-streamer.h : Likewise.
9885 * gimple-walk.c : Likewise.
9886 * gimple.c : Likewise.
9887 * gimplify-me.c : Likewise.
9888 * gimplify.c : Likewise.
9889 * godump.c : Likewise.
9890 * graph.c : Likewise.
9891 * graphds.c : Likewise.
9892 * graphite-blocking.c : Likewise.
9893 * graphite-dependences.c : Likewise.
9894 * graphite-interchange.c : Likewise.
9895 * graphite-isl-ast-to-gimple.c : Likewise.
9896 * graphite-optimize-isl.c : Likewise.
9897 * graphite-poly.c : Likewise.
9898 * graphite-scop-detection.c : Likewise.
9899 * graphite-sese-to-poly.c : Likewise.
9900 * graphite.c : Likewise.
9901 * haifa-sched.c : Likewise.
9902 * hard-reg-set.h : Likewise.
9903 * hw-doloop.c : Likewise.
9904 * ifcvt.c : Likewise.
9905 * inchash.c : Likewise.
9906 * incpath.c : Likewise.
9907 * init-regs.c : Likewise.
9908 * input.c : Likewise.
9909 * internal-fn.c : Likewise.
9910 * ipa-chkp.c : Likewise.
9911 * ipa-comdats.c : Likewise.
9912 * ipa-cp.c : Likewise.
9913 * ipa-devirt.c : Likewise.
9914 * ipa-icf-gimple.c : Likewise.
9915 * ipa-icf.c : Likewise.
9916 * ipa-inline-analysis.c : Likewise.
9917 * ipa-inline-transform.c : Likewise.
9918 * ipa-inline.c : Likewise.
9919 * ipa-polymorphic-call.c : Likewise.
9920 * ipa-profile.c : Likewise.
9921 * ipa-prop.c : Likewise.
9922 * ipa-pure-const.c : Likewise.
9923 * ipa-ref.c : Likewise.
9924 * ipa-reference.c : Likewise.
9925 * ipa-split.c : Likewise.
9926 * ipa-utils.c : Likewise.
9927 * ipa-visibility.c : Likewise.
9929 * ira-build.c : Likewise.
9930 * ira-color.c : Likewise.
9931 * ira-conflicts.c : Likewise.
9932 * ira-costs.c : Likewise.
9933 * ira-emit.c : Likewise.
9934 * ira-lives.c : Likewise.
9936 * jump.c : Likewise.
9937 * langhooks.c : Likewise.
9939 * libfuncs.h : Likewise.
9940 * lists.c : Likewise.
9941 * loop-doloop.c : Likewise.
9942 * loop-init.c : Likewise.
9943 * loop-invariant.c : Likewise.
9944 * loop-iv.c : Likewise.
9945 * loop-unroll.c : Likewise.
9946 * lower-subreg.c : Likewise.
9947 * lra-assigns.c : Likewise.
9948 * lra-coalesce.c : Likewise.
9949 * lra-constraints.c : Likewise.
9950 * lra-eliminations.c : Likewise.
9951 * lra-lives.c : Likewise.
9952 * lra-remat.c : Likewise.
9953 * lra-spills.c : Likewise.
9955 * lto-cgraph.c : Likewise.
9956 * lto-compress.c : Likewise.
9957 * lto-opts.c : Likewise.
9958 * lto-section-in.c : Likewise.
9959 * lto-section-out.c : Likewise.
9960 * lto-streamer-in.c : Likewise.
9961 * lto-streamer-out.c : Likewise.
9962 * lto-streamer.c : Likewise.
9963 * lto-streamer.h : Likewise.
9965 * mode-switching.c : Likewise.
9966 * modulo-sched.c : Likewise.
9967 * omega.c : Likewise.
9968 * omp-low.c : Likewise.
9969 * optabs.c : Likewise.
9970 * opts-global.c : Likewise.
9971 * opts.h : Likewise.
9972 * passes.c : Likewise.
9973 * plugin.c : Likewise.
9974 * postreload-gcse.c : Likewise.
9975 * postreload.c : Likewise.
9976 * predict.c : Likewise.
9977 * print-rtl.c : Likewise.
9978 * print-tree.c : Likewise.
9979 * profile.c : Likewise.
9980 * read-md.c : Likewise.
9981 * read-md.h : Likewise.
9982 * read-rtl.c : Likewise.
9983 * real.c : Likewise.
9984 * realmpfr.c : Likewise.
9985 * recog.c : Likewise.
9987 * reg-stack.c : Likewise.
9988 * regcprop.c : Likewise.
9989 * reginfo.c : Likewise.
9990 * regrename.c : Likewise.
9991 * regstat.c : Likewise.
9992 * reload.c : Likewise.
9993 * reload1.c : Likewise.
9994 * reorg.c : Likewise.
9995 * resource.c : Likewise.
9996 * rtl-chkp.c : Likewise.
9999 * rtlanal.c : Likewise.
10000 * rtlhash.c : Likewise.
10001 * rtlhash.h : Likewise.
10002 * rtlhooks.c : Likewise.
10003 * sanopt.c : Likewise.
10004 * sched-deps.c : Likewise.
10005 * sched-ebb.c : Likewise.
10006 * sched-rgn.c : Likewise.
10007 * sched-vis.c : Likewise.
10008 * sdbout.c : Likewise.
10009 * sel-sched-dump.c : Likewise.
10010 * sel-sched-ir.c : Likewise.
10011 * sel-sched-ir.h : Likewise.
10012 * sel-sched.c : Likewise.
10013 * sese.c : Likewise.
10014 * shrink-wrap.c : Likewise.
10015 * shrink-wrap.h : Likewise.
10016 * simplify-rtx.c : Likewise.
10017 * stack-ptr-mod.c : Likewise.
10018 * statistics.c : Likewise.
10019 * stmt.c : Likewise.
10020 * stor-layout.c : Likewise.
10021 * store-motion.c : Likewise.
10022 * stringpool.c : Likewise.
10023 * symtab.c : Likewise.
10024 * target-globals.c : Likewise.
10025 * targhooks.c : Likewise.
10026 * tlink.c : Likewise.
10027 * toplev.c : Likewise.
10028 * tracer.c : Likewise.
10029 * trans-mem.c : Likewise.
10030 * tree-affine.c : Likewise.
10031 * tree-affine.h : Likewise.
10032 * tree-browser.c : Likewise.
10033 * tree-call-cdce.c : Likewise.
10034 * tree-cfg.c : Likewise.
10035 * tree-cfgcleanup.c : Likewise.
10036 * tree-chkp-opt.c : Likewise.
10037 * tree-chkp.c : Likewise.
10038 * tree-chrec.c : Likewise.
10039 * tree-complex.c : Likewise.
10040 * tree-data-ref.c : Likewise.
10041 * tree-dfa.c : Likewise.
10042 * tree-diagnostic.c : Likewise.
10043 * tree-dump.c : Likewise.
10044 * tree-eh.c : Likewise.
10045 * tree-eh.h : Likewise.
10046 * tree-emutls.c : Likewise.
10047 * tree-hasher.h : Likewise.
10048 * tree-if-conv.c : Likewise.
10049 * tree-inline.c : Likewise.
10050 * tree-inline.h : Likewise.
10051 * tree-into-ssa.c : Likewise.
10052 * tree-iterator.c : Likewise.
10053 * tree-loop-distribution.c : Likewise.
10054 * tree-nested.c : Likewise.
10055 * tree-nrv.c : Likewise.
10056 * tree-object-size.c : Likewise.
10057 * tree-outof-ssa.c : Likewise.
10058 * tree-parloops.c : Likewise.
10059 * tree-phinodes.c : Likewise.
10060 * tree-predcom.c : Likewise.
10061 * tree-pretty-print.c : Likewise.
10062 * tree-profile.c : Likewise.
10063 * tree-scalar-evolution.c : Likewise.
10064 * tree-sra.c : Likewise.
10065 * tree-ssa-address.c : Likewise.
10066 * tree-ssa-alias.c : Likewise.
10067 * tree-ssa-ccp.c : Likewise.
10068 * tree-ssa-coalesce.c : Likewise.
10069 * tree-ssa-copy.c : Likewise.
10070 * tree-ssa-copyrename.c : Likewise.
10071 * tree-ssa-dce.c : Likewise.
10072 * tree-ssa-dom.c : Likewise.
10073 * tree-ssa-dse.c : Likewise.
10074 * tree-ssa-forwprop.c : Likewise.
10075 * tree-ssa-ifcombine.c : Likewise.
10076 * tree-ssa-live.c : Likewise.
10077 * tree-ssa-loop-ch.c : Likewise.
10078 * tree-ssa-loop-im.c : Likewise.
10079 * tree-ssa-loop-ivcanon.c : Likewise.
10080 * tree-ssa-loop-ivopts.c : Likewise.
10081 * tree-ssa-loop-manip.c : Likewise.
10082 * tree-ssa-loop-niter.c : Likewise.
10083 * tree-ssa-loop-prefetch.c : Likewise.
10084 * tree-ssa-loop-unswitch.c : Likewise.
10085 * tree-ssa-loop.c : Likewise.
10086 * tree-ssa-math-opts.c : Likewise.
10087 * tree-ssa-operands.c : Likewise.
10088 * tree-ssa-phiopt.c : Likewise.
10089 * tree-ssa-phiprop.c : Likewise.
10090 * tree-ssa-pre.c : Likewise.
10091 * tree-ssa-propagate.c : Likewise.
10092 * tree-ssa-reassoc.c : Likewise.
10093 * tree-ssa-sccvn.c : Likewise.
10094 * tree-ssa-scopedtables.c : Likewise.
10095 * tree-ssa-sink.c : Likewise.
10096 * tree-ssa-strlen.c : Likewise.
10097 * tree-ssa-structalias.c : Likewise.
10098 * tree-ssa-tail-merge.c : Likewise.
10099 * tree-ssa-ter.c : Likewise.
10100 * tree-ssa-threadedge.c : Likewise.
10101 * tree-ssa-threadupdate.c : Likewise.
10102 * tree-ssa-uncprop.c : Likewise.
10103 * tree-ssa-uninit.c : Likewise.
10104 * tree-ssa.c : Likewise.
10105 * tree-ssanames.c : Likewise.
10106 * tree-stdarg.c : Likewise.
10107 * tree-streamer-in.c : Likewise.
10108 * tree-streamer-out.c : Likewise.
10109 * tree-streamer.c : Likewise.
10110 * tree-streamer.h : Likewise.
10111 * tree-switch-conversion.c : Likewise.
10112 * tree-tailcall.c : Likewise.
10113 * tree-vect-data-refs.c : Likewise.
10114 * tree-vect-generic.c : Likewise.
10115 * tree-vect-loop-manip.c : Likewise.
10116 * tree-vect-loop.c : Likewise.
10117 * tree-vect-patterns.c : Likewise.
10118 * tree-vect-slp.c : Likewise.
10119 * tree-vect-stmts.c : Likewise.
10120 * tree-vectorizer.c : Likewise.
10121 * tree-vectorizer.h : Likewise.
10122 * tree-vrp.c : Likewise.
10123 * tree.c : Likewise.
10124 * tsan.c : Likewise.
10125 * ubsan.c : Likewise.
10126 * valtrack.c : Likewise.
10127 * valtrack.h : Likewise.
10128 * value-prof.c : Likewise.
10129 * var-tracking.c : Likewise.
10130 * varasm.c : Likewise.
10131 * varpool.c : Likewise.
10133 * vmsdbgout.c : Likewise.
10134 * vtable-verify.c : Likewise.
10135 * vtable-verify.h : Likewise.
10136 * web.c : Likewise.
10137 * wide-int.cc : Likewise.
10138 * xcoffout.c : Likewise.
10139 * config/aarch64/aarch64-builtins.c : Likewise.
10140 * config/aarch64/aarch64.c : Likewise.
10141 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
10142 * config/alpha/alpha.c : Likewise.
10143 * config/arc/arc.c : Likewise.
10144 * config/arm/aarch-common.c : Likewise.
10145 * config/arm/arm-builtins.c : Likewise.
10146 * config/arm/arm-c.c : Likewise.
10147 * config/arm/arm.c : Likewise.
10148 * config/avr/avr-c.c : Likewise.
10149 * config/avr/avr-log.c : Likewise.
10150 * config/avr/avr.c : Likewise.
10151 * config/bfin/bfin.c : Likewise.
10152 * config/c6x/c6x.c : Likewise.
10153 * config/cr16/cr16.c : Likewise.
10154 * config/cris/cris.c : Likewise.
10155 * config/darwin-c.c : Likewise.
10156 * config/darwin.c : Likewise.
10157 * config/default-c.c : Likewise.
10158 * config/epiphany/epiphany.c : Likewise.
10159 * config/epiphany/mode-switch-use.c : Likewise.
10160 * config/epiphany/resolve-sw-modes.c : Likewise.
10161 * config/fr30/fr30.c : Likewise.
10162 * config/frv/frv.c : Likewise.
10163 * config/ft32/ft32.c : Likewise.
10164 * config/glibc-c.c : Likewise.
10165 * config/h8300/h8300.c : Likewise.
10166 * config/i386/i386-c.c : Likewise.
10167 * config/i386/i386.c : Likewise.
10168 * config/i386/msformat-c.c : Likewise.
10169 * config/i386/winnt-cxx.c : Likewise.
10170 * config/i386/winnt-stubs.c : Likewise.
10171 * config/i386/winnt.c : Likewise.
10172 * config/ia64/ia64-c.c : Likewise.
10173 * config/ia64/ia64.c : Likewise.
10174 * config/iq2000/iq2000.c : Likewise.
10175 * config/lm32/lm32.c : Likewise.
10176 * config/m32c/m32c-pragma.c : Likewise.
10177 * config/m32c/m32c.c : Likewise.
10178 * config/m32r/m32r.c : Likewise.
10179 * config/m68k/m68k.c : Likewise.
10180 * config/mcore/mcore.c : Likewise.
10181 * config/mep/mep-pragma.c : Likewise.
10182 * config/mep/mep.c : Likewise.
10183 * config/microblaze/microblaze-c.c : Likewise.
10184 * config/microblaze/microblaze.c : Likewise.
10185 * config/mips/mips.c : Likewise.
10186 * config/mmix/mmix.c : Likewise.
10187 * config/mn10300/mn10300.c : Likewise.
10188 * config/moxie/moxie.c : Likewise.
10189 * config/msp430/msp430-c.c : Likewise.
10190 * config/msp430/msp430.c : Likewise.
10191 * config/nds32/nds32-cost.c : Likewise.
10192 * config/nds32/nds32-fp-as-gp.c : Likewise.
10193 * config/nds32/nds32-intrinsic.c : Likewise.
10194 * config/nds32/nds32-isr.c : Likewise.
10195 * config/nds32/nds32-md-auxiliary.c : Likewise.
10196 * config/nds32/nds32-memory-manipulation.c : Likewise.
10197 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
10198 * config/nds32/nds32-predicates.c : Likewise.
10199 * config/nds32/nds32.c : Likewise.
10200 * config/nios2/nios2.c : Likewise.
10201 * config/nvptx/nvptx.c : Likewise.
10202 * config/pa/pa.c : Likewise.
10203 * config/pdp11/pdp11.c : Likewise.
10204 * config/rl78/rl78-c.c : Likewise.
10205 * config/rl78/rl78.c : Likewise.
10206 * config/rs6000/rs6000-c.c : Likewise.
10207 * config/rs6000/rs6000.c : Likewise.
10208 * config/rx/rx.c : Likewise.
10209 * config/s390/s390-c.c : Likewise.
10210 * config/s390/s390.c : Likewise.
10211 * config/sh/sh-c.c : Likewise.
10212 * config/sh/sh-mem.cc : Likewise.
10213 * config/sh/sh.c : Likewise.
10214 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
10215 * config/sh/sh_treg_combine.cc : Likewise.
10216 * config/sol2-c.c : Likewise.
10217 * config/sol2-cxx.c : Likewise.
10218 * config/sol2-stubs.c : Likewise.
10219 * config/sol2.c : Likewise.
10220 * config/sparc/sparc-c.c : Likewise.
10221 * config/sparc/sparc.c : Likewise.
10222 * config/spu/spu-c.c : Likewise.
10223 * config/spu/spu.c : Likewise.
10224 * config/stormy16/stormy16.c : Likewise.
10225 * config/tilegx/mul-tables.c : Likewise.
10226 * config/tilegx/tilegx-c.c : Likewise.
10227 * config/tilegx/tilegx.c : Likewise.
10228 * config/tilepro/mul-tables.c : Likewise.
10229 * config/tilepro/tilepro-c.c : Likewise.
10230 * config/tilepro/tilepro.c : Likewise.
10231 * config/v850/v850-c.c : Likewise.
10232 * config/v850/v850.c : Likewise.
10233 * config/vax/vax.c : Likewise.
10234 * config/visium/visium.c : Likewise.
10235 * config/vms/vms-c.c : Likewise.
10236 * config/vms/vms.c : Likewise.
10237 * config/vxworks.c : Likewise.
10238 * config/winnt-c.c : Likewise.
10239 * config/xtensa/xtensa.c : Likewise.
10241 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
10244 * ipa-utils.h (warn_types_mismatch): Update prototype.
10245 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
10247 (type_mismatch_p): New function.
10248 (warn_types_mismatch): Reorg to work better on non-C++ types.
10249 (odr_types_equivalent_p): Add loc1/loc2 parameters.
10250 (add_type_duplicate): Update.
10252 2015-06-08 Tom de Vries <tom@codesourcery.com>
10254 PR rtl-optimization/66444
10255 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
10258 2015-06-08 Richard Biener <rguenther@suse.de>
10260 PR tree-optimization/66422
10261 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
10262 block after inserted gcc_unreachable.
10264 2015-06-08 Nick Clifton <nickc@redhat.com>
10266 * config/rx/rx.c (rx_function_value): Do not promote vector types.
10267 (rx_promote_function_mode): Likewise.
10268 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
10270 2015-06-08 Jakub Jelinek <jakub@redhat.com>
10272 * genattrtab.c (insn_alternatives): Change type from int *
10274 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
10275 (get_attr_value): Change type of num_alt to uint64_t.
10276 (compute_alternative_mask): Change return type from
10277 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
10278 (make_alternative_compare, mk_attr_alt): Change argument type
10279 from int to uint64_t.
10280 (simplify_test_exp): Change type of i from int to uint64_t.
10281 Shift ((uint64_t) 1) instead of 1 up.
10282 (main): Adjust oballocvec first argument from int to uint64_t.
10283 Shift ((uint64_t) 1) instead of 1 up.
10285 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10288 * gdbhooks.py: Import sys.
10289 (intptr): New function. Replace int(...) by intptr(...).
10291 2015-06-08 Richard Biener <rguenther@suse.de>
10293 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
10294 adjustment for gaps at the end of a SLP load group properly.
10295 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
10296 all permutations we can generate.
10297 (vect_transform_slp_perm_load): Use the correct group-size.
10299 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
10301 * genmatch.c (expr::gen_transform): For conditions, guess the type
10302 from the second operand.
10304 2015-06-08 Tom de Vries <tom@codesourcery.com>
10306 PR tree-optimization/66442
10307 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
10308 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
10309 if the loop latch is not a singleton. Use
10310 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
10312 2015-06-08 Marek Polacek <polacek@redhat.com>
10315 * toplev.c (check_global_declaration): Don't warn about artificial
10318 2015-06-08 Tom de Vries <tom@codesourcery.com>
10320 PR tree-optimization/66436
10321 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
10323 * gimplify.c: Add tree-dump.h include.
10324 (gimplify_function_tree): Dump function to gimple dump file.
10325 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
10328 2015-06-08 Tom de Vries <tom@codesourcery.com>
10330 PR tree-optimization/66435
10331 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
10334 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
10336 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
10337 of ptr_type_node to not be ptr_to_node.
10338 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
10339 TREE_TYPE of pointers.
10340 * gimple-expr.c (useless_type_conversion): Reorder the check for
10341 function pointers and TYPE_CANONICAL.
10343 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
10346 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
10347 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
10348 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
10350 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
10351 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
10352 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
10353 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
10354 and non iso if unix2003.
10356 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
10358 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
10360 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
10362 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
10363 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
10364 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
10365 except.c, final.c, function.c, gcse-common.c, genemit.c,
10366 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
10367 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
10368 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
10369 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
10372 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
10374 * combine.c (combine_split_insns): Remove cast.
10375 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
10376 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
10377 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
10378 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
10379 * genemit.c (gen_split): Change return type of generated functions to
10381 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
10382 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
10383 gen_peephole2_* functions.
10384 (print_subroutine, main): Likewise.
10385 * recog.c (peephole2_optimize): Remove cast.
10386 (peep2_next_insn): Promote return type to rtx_insn.
10387 * recog.h (peep2_next_insn): Fix prototype.
10388 * rtl.h (try_split, split_insns): Likewise.
10390 2015-06-06 DJ Delorie <dj@redhat.com>
10392 * config/msp430/msp430.c (msp430_asm_integer): Support addition
10393 and subtraction too.
10395 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
10398 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
10399 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
10400 instead of Snd. Disparage Sid/z alternative with '^'.
10402 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
10404 * dwarf2out.c: Remove deferred_locations*.
10405 (dwarf2_debug_hooks): Add early_finish hook.
10406 Remove global_decl hook.
10407 Add early_global_decl and late_global_decl hook.
10408 New global early_dwarf.
10409 New structure set_early_dwarf.
10410 (output_die): Indicate whether a DIE was generated early
10411 when generating assembly with -dA.
10412 (struct limbo_die_struct): Document created_for field.
10413 Remove file_table_last_lookup.
10414 (remove_AT): Return TRUE if successful.
10415 (remove_child_TAG): Clear die_parent.
10416 (reparent_child): New function abstracted from...
10417 (splice_child_die): ...here.
10418 (new_die): ICE if a DIE ends up in limbo too late.
10420 (defer_location): Remove.
10421 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
10422 (fill_variable_array_bounds): New.
10423 (decl_start_label): Call fill_variable_array_bounds.
10424 (gen_formal_parameter_die): Rewrite to reuse previously generated
10426 (gen_subprogram_die): Same.
10427 (gen_variable_die): Same.
10428 (gen_const_die): Same.
10429 (gen_label_die): Same.
10430 (gen_lexical_block_die): Same.
10431 (decl_will_get_specification_p): New.
10432 (local_function_static): New.
10433 (gen_struct_or_union_type_die): Fill in variable-length fields.
10434 (gen_typedef_die): Fill in variable-length typedefs.
10435 (gen_tagged_type_die): Gracefully return on error_mark_node.
10436 Handle re-entrancy.
10437 (gen_type_die_with_usage): Handle variable-length types.
10438 Remove duplicate code for ARRAY_TYPE case.
10439 (process_scope_var): Only process imported modules during early
10441 (dwarf2out_early_global_decl): New.
10442 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
10443 (dwarf2out_type_decl): Set early_dwarf while calling
10445 (dwarf2out_decl): Verify that we did not recreate a previously
10447 Do not return on DECL_EXTERNALs in VAR_DECLs.
10448 Abstract some code to local_function_static.
10449 (lookup_filename): Remove use of file_table_last_lookup.
10450 Gracefully exit on missing file_name.
10451 (dwarf2out_finish): Verify limbo list.
10452 Remove deferred_locations_list use.
10453 Move deferred_asm_name and limbo flushing to...
10454 (dwarf2out_early_finish): ...here. New.
10455 (dwarf2out_c_finalize): Remove set of deferred_location_list,
10456 deferred_asm_name, and file_table_last_lookup.
10457 * cgraph.h (referred_to_p): Add default argument.
10458 * cgraphunit.c (referred_to_p): Add and handle include_self
10460 (analyze_functions): Add first_time argument.
10461 Call check_global_declaration for all symbols.
10462 Call late_global_decl for nodes for moribund nodes.
10463 (finalize_compilation_unit): Add new argument to
10465 Call early_global_decl for functions.
10466 Call early_finish debug hook.
10467 * dbxout.c (dbxout_early_global_decl): New.
10468 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
10469 (dbx_debug_hooks): Add new hooks.
10470 (xcoff_debug_hooks): Same.
10471 * debug.c (do_nothing_debug_hooks): Add early_finish field.
10472 Add early and late debug hooks.
10473 Remove global_decl hook.
10474 * debug.h (struct gcc_debug_hooks): Add early_finish,
10475 early_global_decl, and late_global_decl fields.
10476 Remove global_decl field.
10477 Document gcc_debug_hooks.
10478 * gengtype.c (output_typename): Remove.
10479 * godump.c (go_early_global_decl): New.
10480 (go_late_global_decl): New.
10481 (go_global_decl): Remove.
10482 (dump_go_spec_init): Remove global_decl. Add
10483 {early,late}_global_decl.
10484 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
10485 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
10486 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
10487 (write_global_declarations): Remove.
10488 (global_decl_processing): New.
10489 * langhooks.h (struct lang_hooks_for_decls): Remove
10490 final_write_globals field.
10491 Add post_compilation_parsing_cleanups field.
10492 * passes.c (rest_of_decl_compilation): Call early_global_decl.
10493 * sdbout.c: Add early and late_global_decl hooks. Remove
10494 sdbout_global_decl hook.
10495 Add early_finish field for sdb_debug_hooks.
10496 (sdbout_global_decl): Remove.
10497 (sdbout_early_global_decl): New.
10498 (sdbout_late_global_decl): New.
10499 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
10500 * toplev.c (check_global_declaration): Rename from
10501 check_global_declaration_1.
10502 Adapt to use symtab infrastructure.
10503 (check_global_declarations): Remove.
10504 (emit_debug_global_declarations): Remove.
10505 (compile_file): Remove call to final_write_globals langhook.
10506 Run the actual compilation process.
10507 Perform any post compilation parser cleanups.
10508 Generate late debug info.
10509 * toplev.h (check_global_declaration): New.
10510 (check_global_declaration_1): Remove.
10511 (check_global_declarations): Remove.
10512 (write_global_declarations): Remove.
10513 (emit_debug_global_declarations): Remove.
10514 (global_decl_processing): New.
10515 * tree-core.h (struct tree_block): Add DIE field.
10516 * tree.h (BLOCK_DIE): New.
10517 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
10519 (vmsdbgout_early_global_decl): New.
10520 (vmsdbgout_late_global_decl): New.
10521 Add early_finish debug hook field to vmsdbg_debug_hooks.
10522 Remove vmsdbgout_decl to vmsdbgout_function_decl.
10523 Add early and late_global_decl debug hooks.
10525 2015-06-05 Julian Brown <julian@codesourcery.com>
10526 Sandra Loosemore <sandra@codesourcery.com>
10528 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
10529 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
10530 to print-sysroot-suffix.sh script.
10532 2015-06-05 Tom de Vries <tom@codesourcery.com>
10534 merge from gomp4 branch:
10535 2015-05-28 Tom de Vries <tom@codesourcery.com>
10537 PR tree-optimization/65443
10538 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
10539 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
10540 (try_transform_to_exit_first_loop_alt): New function.
10541 (transform_to_exit_first_loop): Use
10542 try_transform_to_exit_first_loop_alt.
10544 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
10546 * builtins.c (expand_builtin_atomic_compare_exchange): Call
10547 emit_cmp_and_jump_insns with the mode of target.
10549 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10551 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
10553 2015-06-04 DJ Delorie <dj@redhat.com>
10555 * config/msp430/msp430.md (movsi_s): New. Special case for
10556 storing a 20-bit symbol into a 32-bit register.
10557 * config/msp430/msp430.c (msp430_subreg): Add support for it.
10558 * config/msp430/predicates.md (msp430_symbol_operand): New.
10560 2015-06-04 Sriraman Tallam <tmsriram@google.com>
10562 * c-family/c-common.c (noplt): New attribute.
10563 (handle_noplt_attribute): New handler.
10564 * calls.c (prepare_call_address): Check for noplt
10566 * config/i386/i386.c (ix86_expand_call): Check
10567 for noplt attribute.
10568 (ix86_nopic_noplt_attribute_p): New function.
10569 (ix86_output_call_insn): Output indirect call for non-pic
10571 * doc/extend.texi (noplt): Document new attribute.
10572 * doc/invoke.texi: Document new attribute.
10574 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
10576 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
10577 real.h, and fixed-value.h when included in host source files.
10578 * double-int.h: Remove redundant #includes listed above.
10579 * fixed-value.h: Likewise.
10580 * real.h: Likewise.
10581 * wide-int.h: Likewise.
10582 * inchash.h: Likewise.
10583 * rtl.h: Add some include files When included from a generator file.
10584 * target.h: Remove wide-int.h and insn-modes.h from the include list.
10585 * internal-fn.h: Don't include coretypes.h.
10586 * alias.c: Adjust includes for restructured coretypes.h.
10587 * asan.c: Likewise.
10588 * attribs.c: Likewise.
10589 * auto-inc-dec.c: Likewise.
10590 * auto-profile.c: Likewise.
10591 * bb-reorder.c: Likewise.
10592 * bt-load.c: Likewise.
10593 * builtins.c: Likewise.
10594 * caller-save.c: Likewise.
10595 * calls.c: Likewise.
10596 * ccmp.c: Likewise.
10598 * cfganal.c: Likewise.
10599 * cfgbuild.c: Likewise.
10600 * cfgcleanup.c: Likewise.
10601 * cfgexpand.c: Likewise.
10602 * cfghooks.c: Likewise.
10603 * cfgloop.c: Likewise.
10604 * cfgloop.h: Likewise.
10605 * cfgloopanal.c: Likewise.
10606 * cfgloopmanip.c: Likewise.
10607 * cfgrtl.c: Likewise.
10608 * cgraph.c: Likewise.
10609 * cgraphbuild.c: Likewise.
10610 * cgraphclones.c: Likewise.
10611 * cgraphunit.c: Likewise.
10612 * cilk-common.c: Likewise.
10613 * combine-stack-adj.c: Likewise.
10614 * combine.c: Likewise.
10615 * compare-elim.c: Likewise.
10616 * convert.c: Likewise.
10617 * coverage.c: Likewise.
10618 * cppbuiltin.c: Likewise.
10619 * cprop.c: Likewise.
10621 * cselib.c: Likewise.
10622 * data-streamer-in.c: Likewise.
10623 * data-streamer-out.c: Likewise.
10624 * data-streamer.c: Likewise.
10625 * dbxout.c: Likewise.
10628 * debug.c: Likewise.
10629 * df-core.c: Likewise.
10630 * df-problems.c: Likewise.
10631 * df-scan.c: Likewise.
10634 * dojump.c: Likewise.
10635 * dominance.c: Likewise.
10636 * domwalk.c: Likewise.
10637 * double-int.c: Likewise.
10639 * dumpfile.c: Likewise.
10640 * dwarf2asm.c: Likewise.
10641 * dwarf2cfi.c: Likewise.
10642 * dwarf2out.c: Likewise.
10643 * dwarf2out.h: Likewise.
10644 * emit-rtl.c: Likewise.
10645 * et-forest.c: Likewise.
10646 * except.c: Likewise.
10647 * explow.c: Likewise.
10648 * expmed.c: Likewise.
10649 * expr.c: Likewise.
10650 * final.c: Likewise.
10651 * fixed-value.c: Likewise.
10652 * fold-const.c: Likewise.
10653 * function.c: Likewise.
10654 * fwprop.c: Likewise.
10655 * gcc-plugin.h: Likewise.
10656 * gcse.c: Likewise.
10657 * generic-match-head.c: Likewise.
10658 * ggc-page.c: Likewise.
10659 * gimple-builder.c: Likewise.
10660 * gimple-expr.c: Likewise.
10661 * gimple-fold.c: Likewise.
10662 * gimple-iterator.c: Likewise.
10663 * gimple-low.c: Likewise.
10664 * gimple-match-head.c: Likewise.
10665 * gimple-pretty-print.c: Likewise.
10666 * gimple-ssa-isolate-paths.c: Likewise.
10667 * gimple-ssa-strength-reduction.c: Likewise.
10668 * gimple-streamer-in.c: Likewise.
10669 * gimple-streamer-out.c: Likewise.
10670 * gimple-streamer.h: Likewise.
10671 * gimple-walk.c: Likewise.
10672 * gimple.c: Likewise.
10673 * gimplify-me.c: Likewise.
10674 * gimplify.c: Likewise.
10675 * godump.c: Likewise.
10676 * graph.c: Likewise.
10677 * graphite-blocking.c: Likewise.
10678 * graphite-dependences.c: Likewise.
10679 * graphite-interchange.c: Likewise.
10680 * graphite-isl-ast-to-gimple.c: Likewise.
10681 * graphite-optimize-isl.c: Likewise.
10682 * graphite-poly.c: Likewise.
10683 * graphite-scop-detection.c: Likewise.
10684 * graphite-sese-to-poly.c: Likewise.
10685 * graphite.c: Likewise.
10686 * haifa-sched.c: Likewise.
10687 * hooks.h: Likewise.
10688 * hw-doloop.c: Likewise.
10689 * ifcvt.c: Likewise.
10690 * incpath.c: Likewise.
10691 * init-regs.c: Likewise.
10692 * internal-fn.c: Likewise.
10693 * ipa-chkp.c: Likewise.
10694 * ipa-comdats.c: Likewise.
10695 * ipa-cp.c: Likewise.
10696 * ipa-devirt.c: Likewise.
10697 * ipa-icf-gimple.c: Likewise.
10698 * ipa-icf.c: Likewise.
10699 * ipa-inline-analysis.c: Likewise.
10700 * ipa-inline-transform.c: Likewise.
10701 * ipa-inline.c: Likewise.
10702 * ipa-polymorphic-call.c: Likewise.
10703 * ipa-profile.c: Likewise.
10704 * ipa-prop.c: Likewise.
10705 * ipa-pure-const.c: Likewise.
10706 * ipa-ref.c: Likewise.
10707 * ipa-reference.c: Likewise.
10708 * ipa-split.c: Likewise.
10709 * ipa-utils.c: Likewise.
10710 * ipa-visibility.c: Likewise.
10712 * ira-build.c: Likewise.
10713 * ira-color.c: Likewise.
10714 * ira-conflicts.c: Likewise.
10715 * ira-costs.c: Likewise.
10716 * ira-emit.c: Likewise.
10717 * ira-lives.c: Likewise.
10719 * jump.c: Likewise.
10720 * langhooks.c: Likewise.
10722 * loop-doloop.c: Likewise.
10723 * loop-init.c: Likewise.
10724 * loop-invariant.c: Likewise.
10725 * loop-iv.c: Likewise.
10726 * loop-unroll.c: Likewise.
10727 * lower-subreg.c: Likewise.
10728 * lra-assigns.c: Likewise.
10729 * lra-coalesce.c: Likewise.
10730 * lra-constraints.c: Likewise.
10731 * lra-eliminations.c: Likewise.
10732 * lra-lives.c: Likewise.
10733 * lra-remat.c: Likewise.
10734 * lra-spills.c: Likewise.
10736 * lto-cgraph.c: Likewise.
10737 * lto-compress.c: Likewise.
10738 * lto-opts.c: Likewise.
10739 * lto-section-in.c: Likewise.
10740 * lto-section-out.c: Likewise.
10741 * lto-streamer-in.c: Likewise.
10742 * lto-streamer-out.c: Likewise.
10743 * lto-streamer.c: Likewise.
10745 * mode-switching.c: Likewise.
10746 * modulo-sched.c: Likewise.
10747 * omega.c: Likewise.
10748 * omp-low.c: Likewise.
10749 * optabs.c: Likewise.
10750 * opts-global.c: Likewise.
10751 * passes.c: Likewise.
10752 * plugin.c: Likewise.
10753 * postreload-gcse.c: Likewise.
10754 * postreload.c: Likewise.
10755 * predict.c: Likewise.
10756 * print-rtl.c: Likewise.
10757 * print-tree.c: Likewise.
10758 * profile.c: Likewise.
10759 * real.c: Likewise.
10760 * realmpfr.c: Likewise.
10761 * realmpfr.h: Likewise.
10762 * recog.c: Likewise.
10764 * reg-stack.c: Likewise.
10765 * regcprop.c: Likewise.
10766 * reginfo.c: Likewise.
10767 * regrename.c: Likewise.
10768 * regs.h: Likewise.
10769 * regstat.c: Likewise.
10770 * reload.c: Likewise.
10771 * reload1.c: Likewise.
10772 * reorg.c: Likewise.
10773 * resource.c: Likewise.
10774 * rtl-chkp.c: Likewise.
10775 * rtlanal.c: Likewise.
10776 * rtlhooks.c: Likewise.
10777 * sanopt.c: Likewise.
10778 * sched-deps.c: Likewise.
10779 * sched-ebb.c: Likewise.
10780 * sched-rgn.c: Likewise.
10781 * sched-vis.c: Likewise.
10782 * sdbout.c: Likewise.
10783 * sel-sched-dump.c: Likewise.
10784 * sel-sched-ir.c: Likewise.
10785 * sel-sched.c: Likewise.
10786 * sese.c: Likewise.
10787 * shrink-wrap.c: Likewise.
10788 * shrink-wrap.h: Likewise.
10789 * simplify-rtx.c: Likewise.
10790 * stack-ptr-mod.c: Likewise.
10791 * statistics.c: Likewise.
10792 * stmt.c: Likewise.
10793 * stor-layout.c: Likewise.
10794 * store-motion.c: Likewise.
10795 * stringpool.c: Likewise.
10796 * symtab.c: Likewise.
10797 * target-globals.c: Likewise.
10798 * targhooks.c: Likewise.
10799 * toplev.c: Likewise.
10800 * tracer.c: Likewise.
10801 * trans-mem.c: Likewise.
10802 * tree-affine.c: Likewise.
10803 * tree-affine.h: Likewise.
10804 * tree-browser.c: Likewise.
10805 * tree-call-cdce.c: Likewise.
10806 * tree-cfg.c: Likewise.
10807 * tree-cfgcleanup.c: Likewise.
10808 * tree-chkp-opt.c: Likewise.
10809 * tree-chkp.c: Likewise.
10810 * tree-chrec.c: Likewise.
10811 * tree-complex.c: Likewise.
10812 * tree-data-ref.c: Likewise.
10813 * tree-dfa.c: Likewise.
10814 * tree-diagnostic.c: Likewise.
10815 * tree-dump.c: Likewise.
10816 * tree-eh.c: Likewise.
10817 * tree-emutls.c: Likewise.
10818 * tree-if-conv.c: Likewise.
10819 * tree-inline.c: Likewise.
10820 * tree-into-ssa.c: Likewise.
10821 * tree-iterator.c: Likewise.
10822 * tree-loop-distribution.c: Likewise.
10823 * tree-nested.c: Likewise.
10824 * tree-nrv.c: Likewise.
10825 * tree-object-size.c: Likewise.
10826 * tree-outof-ssa.c: Likewise.
10827 * tree-parloops.c: Likewise.
10828 * tree-phinodes.c: Likewise.
10829 * tree-predcom.c: Likewise.
10830 * tree-pretty-print.c: Likewise.
10831 * tree-pretty-print.h: Likewise.
10832 * tree-profile.c: Likewise.
10833 * tree-scalar-evolution.c: Likewise.
10834 * tree-sra.c: Likewise.
10835 * tree-ssa-address.c: Likewise.
10836 * tree-ssa-alias.c: Likewise.
10837 * tree-ssa-ccp.c: Likewise.
10838 * tree-ssa-coalesce.c: Likewise.
10839 * tree-ssa-copy.c: Likewise.
10840 * tree-ssa-copyrename.c: Likewise.
10841 * tree-ssa-dce.c: Likewise.
10842 * tree-ssa-dom.c: Likewise.
10843 * tree-ssa-dse.c: Likewise.
10844 * tree-ssa-forwprop.c: Likewise.
10845 * tree-ssa-ifcombine.c: Likewise.
10846 * tree-ssa-live.c: Likewise.
10847 * tree-ssa-loop-ch.c: Likewise.
10848 * tree-ssa-loop-im.c: Likewise.
10849 * tree-ssa-loop-ivcanon.c: Likewise.
10850 * tree-ssa-loop-ivopts.c: Likewise.
10851 * tree-ssa-loop-manip.c: Likewise.
10852 * tree-ssa-loop-niter.c: Likewise.
10853 * tree-ssa-loop-prefetch.c: Likewise.
10854 * tree-ssa-loop-unswitch.c: Likewise.
10855 * tree-ssa-loop.c: Likewise.
10856 * tree-ssa-loop.h: Likewise.
10857 * tree-ssa-math-opts.c: Likewise.
10858 * tree-ssa-operands.c: Likewise.
10859 * tree-ssa-phiopt.c: Likewise.
10860 * tree-ssa-phiprop.c: Likewise.
10861 * tree-ssa-pre.c: Likewise.
10862 * tree-ssa-propagate.c: Likewise.
10863 * tree-ssa-reassoc.c: Likewise.
10864 * tree-ssa-sccvn.c: Likewise.
10865 * tree-ssa-scopedtables.c: Likewise.
10866 * tree-ssa-sink.c: Likewise.
10867 * tree-ssa-strlen.c: Likewise.
10868 * tree-ssa-structalias.c: Likewise.
10869 * tree-ssa-tail-merge.c: Likewise.
10870 * tree-ssa-ter.c: Likewise.
10871 * tree-ssa-threadedge.c: Likewise.
10872 * tree-ssa-threadupdate.c: Likewise.
10873 * tree-ssa-uncprop.c: Likewise.
10874 * tree-ssa-uninit.c: Likewise.
10875 * tree-ssa.c: Likewise.
10876 * tree-ssanames.c: Likewise.
10877 * tree-stdarg.c: Likewise.
10878 * tree-streamer-in.c: Likewise.
10879 * tree-streamer-out.c: Likewise.
10880 * tree-streamer.c: Likewise.
10881 * tree-switch-conversion.c: Likewise.
10882 * tree-tailcall.c: Likewise.
10883 * tree-vect-data-refs.c: Likewise.
10884 * tree-vect-generic.c: Likewise.
10885 * tree-vect-loop-manip.c: Likewise.
10886 * tree-vect-loop.c: Likewise.
10887 * tree-vect-patterns.c: Likewise.
10888 * tree-vect-slp.c: Likewise.
10889 * tree-vect-stmts.c: Likewise.
10890 * tree-vectorizer.c: Likewise.
10891 * tree-vrp.c: Likewise.
10892 * tree.c: Likewise.
10893 * tsan.c: Likewise.
10894 * ubsan.c: Likewise.
10895 * valtrack.c: Likewise.
10896 * value-prof.c: Likewise.
10897 * var-tracking.c: Likewise.
10898 * varasm.c: Likewise.
10899 * varpool.c: Likewise.
10900 * vmsdbgout.c: Likewise.
10901 * vtable-verify.c: Likewise.
10903 * wide-int-print.cc: Likewise.
10904 * wide-int-print.h: Likewise.
10905 * wide-int.cc: Likewise.
10906 * xcoffout.c: Likewise.
10907 * config/aarch64/aarch64-builtins.c: Likewise.
10908 * config/aarch64/aarch64.c: Likewise.
10909 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10910 * config/alpha/alpha.c: Likewise.
10911 * config/arc/arc.c: Likewise.
10912 * config/arm/aarch-common.c: Likewise.
10913 * config/arm/arm-builtins.c: Likewise.
10914 * config/arm/arm-c.c: Likewise.
10915 * config/arm/arm.c: Likewise.
10916 * config/avr/avr-c.c: Likewise.
10917 * config/avr/avr-log.c: Likewise.
10918 * config/avr/avr.c: Likewise.
10919 * config/bfin/bfin.c: Likewise.
10920 * config/c6x/c6x.c: Likewise.
10921 * config/cr16/cr16.c: Likewise.
10922 * config/cris/cris.c: Likewise.
10923 * config/darwin-c.c: Likewise.
10924 * config/darwin.c: Likewise.
10925 * config/default-c.c: Likewise.
10926 * config/epiphany/epiphany.c: Likewise.
10927 * config/epiphany/mode-switch-use.c: Likewise.
10928 * config/epiphany/resolve-sw-modes.c: Likewise.
10929 * config/fr30/fr30.c: Likewise.
10930 * config/frv/frv.c: Likewise.
10931 * config/ft32/ft32.c: Likewise.
10932 * config/glibc-c.c: Likewise.
10933 * config/h8300/h8300.c: Likewise.
10934 * config/i386/i386-c.c: Likewise.
10935 * config/i386/i386.c: Likewise.
10936 * config/i386/msformat-c.c: Likewise.
10937 * config/i386/winnt-cxx.c: Likewise.
10938 * config/i386/winnt-stubs.c: Likewise.
10939 * config/i386/winnt.c: Likewise.
10940 * config/ia64/ia64-c.c: Likewise.
10941 * config/ia64/ia64.c: Likewise.
10942 * config/iq2000/iq2000.c: Likewise.
10943 * config/lm32/lm32.c: Likewise.
10944 * config/m32c/m32c-pragma.c: Likewise.
10945 * config/m32c/m32c.c: Likewise.
10946 * config/m32r/m32r.c: Likewise.
10947 * config/m68k/m68k.c: Likewise.
10948 * config/mcore/mcore.c: Likewise.
10949 * config/mep/mep-pragma.c: Likewise.
10950 * config/mep/mep.c: Likewise.
10951 * config/microblaze/microblaze-c.c: Likewise.
10952 * config/microblaze/microblaze.c: Likewise.
10953 * config/mips/mips.c: Likewise.
10954 * config/mmix/mmix.c: Likewise.
10955 * config/mn10300/mn10300.c: Likewise.
10956 * config/moxie/moxie.c: Likewise.
10957 * config/msp430/msp430-c.c: Likewise.
10958 * config/msp430/msp430.c: Likewise.
10959 * config/nds32/nds32-cost.c: Likewise.
10960 * config/nds32/nds32-fp-as-gp.c: Likewise.
10961 * config/nds32/nds32-intrinsic.c: Likewise.
10962 * config/nds32/nds32-isr.c: Likewise.
10963 * config/nds32/nds32-md-auxiliary.c: Likewise.
10964 * config/nds32/nds32-memory-manipulation.c: Likewise.
10965 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10966 * config/nds32/nds32-predicates.c: Likewise.
10967 * config/nds32/nds32.c: Likewise.
10968 * config/nios2/nios2.c: Likewise.
10969 * config/nvptx/nvptx.c: Likewise.
10970 * config/pa/pa.c: Likewise.
10971 * config/pdp11/pdp11.c: Likewise.
10972 * config/rl78/rl78-c.c: Likewise.
10973 * config/rl78/rl78.c: Likewise.
10974 * config/rs6000/rs6000-c.c: Likewise.
10975 * config/rs6000/rs6000.c: Likewise.
10976 * config/rx/rx.c: Likewise.
10977 * config/s390/s390-c.c: Likewise.
10978 * config/s390/s390.c: Likewise.
10979 * config/sh/sh-c.c: Likewise.
10980 * config/sh/sh-mem.cc: Likewise.
10981 * config/sh/sh.c: Likewise.
10982 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10983 * config/sh/sh_treg_combine.cc: Likewise.
10984 * config/sol2-c.c: Likewise.
10985 * config/sol2-cxx.c: Likewise.
10986 * config/sol2-stubs.c: Likewise.
10987 * config/sol2.c: Likewise.
10988 * config/sparc/sparc-c.c: Likewise.
10989 * config/sparc/sparc.c: Likewise.
10990 * config/spu/spu-c.c: Likewise.
10991 * config/spu/spu.c: Likewise.
10992 * config/stormy16/stormy16.c: Likewise.
10993 * config/tilegx/mul-tables.c: Likewise.
10994 * config/tilegx/tilegx-c.c: Likewise.
10995 * config/tilegx/tilegx.c: Likewise.
10996 * config/tilepro/mul-tables.c: Likewise.
10997 * config/tilepro/tilepro-c.c: Likewise.
10998 * config/tilepro/tilepro.c: Likewise.
10999 * config/v850/v850-c.c: Likewise.
11000 * config/v850/v850.c: Likewise.
11001 * config/vax/vax.c: Likewise.
11002 * config/visium/visium.c: Likewise.
11003 * config/vms/vms-c.c: Likewise.
11004 * config/vms/vms.c: Likewise.
11005 * config/vxworks.c: Likewise.
11006 * config/winnt-c.c: Likewise.
11007 * config/xtensa/xtensa.c: Likewise.
11008 * common/config/bfin/bfin-common.c: Likewise.
11010 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
11012 * tree.h (tree_code_for_canonical_type_merging): New function.
11013 * tree.c (gimple_canonical_types_compatible_p): Use
11014 tree_code_for_canonical_type_merging..
11016 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11020 * doc/tm.texi: Regenerate.
11021 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
11022 * target.def (TARGET_RELAXED_ORDERING): Likewise.
11023 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
11024 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
11025 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
11026 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
11027 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
11028 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
11029 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
11031 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11033 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
11034 register fma steering pass.
11035 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
11036 AARCH64_TUNE_FMA_STEERING.
11038 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
11040 * tree.c (verify_type_variant): Verify that type and variant is
11042 (gimple_canonical_types_compatible_p): Look for main variants.
11044 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
11046 * config.gcc (powerpc*-*-*): Add support for a new configure
11047 option --with-advance-toolchain=<xxx> which overrides using the
11048 default header files, libraries and dynamic linker.
11050 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
11051 specs to support the configure --with-advance-toolchain=<xxx>
11053 (INCLUDE_EXTRA_SPEC): Likewise.
11054 (LINK_OS_EXTRA_SPEC32): Likewise.
11055 (LINK_OK_EXTRA_SPEC64): Likewise.
11056 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
11057 (DYNAMIC_LINKER_PREFIX): Likewise.
11058 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
11060 (GLIBC_DYNAMIC_LINKER32): Likewise.
11061 (GLIBC_DYNAMIC_LINKER64): Likewise.
11062 (LINK_OS_LINUX_SPEC32): Likewise.
11063 (LINK_OS_LINUX_SPEC64): Likewise.
11065 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
11066 configuration option.
11068 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
11071 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
11072 to determine current function ABI.
11073 (ix86_function_value_regno_p): Ditto.
11075 2015-06-03 Martin Liska <mliska@suse.cz>
11077 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
11078 * bitmap.h (struct bitmap_usage): Likewise.
11079 * ggc-common.c (struct ggc_usage): Likewise.
11080 * mem-stats.h (struct mem_location): Likewise.
11081 (struct mem_usage): Likewise.
11082 * vec.c (struct vec_usage): Likewise.
11084 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
11086 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
11089 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
11091 * doc/plugins.texi (enum plugin_event): New event.
11092 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
11093 and PLUGIN_FINISH_FUNCTION.
11094 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
11095 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
11097 2015-06-03 Richard Biener <rguenther@suse.de>
11099 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
11100 compute GROUP_GAP for the first element.
11101 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
11104 2015-06-03 Nick Clifton <nickc@redhat.com>
11106 * config/rl78/rl78-real.md: Add peepholes to avoid a register
11107 copy when calling a function.
11108 * config/rl78/rl78.c (need_to_save): Do not push the frame
11109 pointer in an interrupt handler prologue if it is never used.
11111 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11113 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
11115 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
11117 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
11118 reference when cloning alias node.
11120 2015-06-03 Martin Liska <mliska@suse.cz>
11122 * alloc-pool.h (struct pool_usage): Correct space padding.
11123 * ggc-page.c (ggc_print_statistics): Align columns in a report.
11124 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
11125 * tree.c (dump_tree_statistics): Align columns in a report.
11127 2015-06-03 Martin Liska <mliska@suse.cz>
11129 * alloc-pool.c (allocate_pool_descriptor): Remove.
11130 (struct pool_output_info): Likewise.
11131 (print_alloc_pool_statistics): Likewise.
11132 (dump_alloc_pool_statistics): Likewise.
11133 * alloc-pool.h (struct pool_usage): New struct.
11134 (pool_allocator::initialize): Change usage of memory statistics
11135 to a new interface.
11136 (pool_allocator::release): Likewise.
11137 (pool_allocator::allocate): Likewise.
11138 (pool_allocator::remove): Likewise.
11139 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
11140 for a pool allocator.
11141 * mem-stats.h (struct mem_location): Add new ctor.
11142 (struct mem_usage): Add counter for number of
11144 (mem_alloc_description::register_descriptor): New overload of
11145 * mem-stats.h (mem_location::to_string): New function.
11146 * bitmap.h (struct bitmap_usage): Use this new function.
11147 * ggc-common.c (struct ggc_usage): Likewise.
11150 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
11152 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
11153 of GCC_INSN_FLAGS_H block.
11155 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
11157 * explow.c (plus_constant): Update check after force_const_mem call
11158 to see if the value returned is not a NULL_RTX.
11160 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
11162 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
11163 remove instumentation thunks calling reachable functions.
11164 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
11165 * lto/lto-partition.c (privatize_symbol_name_1): New.
11166 (privatize_symbol_name): Privatize both decl and orig_decl
11167 names for instrumented functions.
11168 * cgraph.c (cgraph_node::verify_node): Add transparent
11169 alias chain check for instrumented node.
11171 2015-06-03 Marek Polacek <polacek@redhat.com>
11175 * tree.c (attribute_value_equal): Handle attribute format.
11176 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
11178 2015-06-03 Richard Biener <rguenther@suse.de>
11180 PR tree-optimization/63916
11181 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
11182 Forward-propagate non-invariant addresses by splicing their
11183 reference ops if the result isn't going to be used by PRE.
11184 (vn_reference_lookup_3): Remove pointless assert.
11186 2015-06-03 Richard Biener <rguenther@suse.de>
11188 PR tree-optimization/66375
11189 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
11190 add to the evolution before following SSA edges.
11192 2015-06-03 Bin Cheng <bin.cheng@arm.com>
11194 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
11195 (dump_use, dump_cand, find_induction_variables): Pass new argument
11197 (record_use): Preserve the ssa name information in IV.
11199 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
11201 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
11203 (add_mode_tests): Don't add mode tests if the predicate only
11204 accepts scalar constant integers. Otherwise, allow the mode
11205 of "op" to be VOIDmode if the predicate does accept such integers.
11207 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
11210 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
11211 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
11212 (aarch64_secondary_reload): Likewise
11213 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
11215 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
11218 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
11219 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11222 * cprop.c (try_replace_reg): Check cost of constants before propagating.
11224 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11226 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
11227 provide access to the IBM extended double floating point mode if
11228 long double is IEEE 128-bit floating point.
11229 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
11230 point if long double is the IBM extended double type.
11232 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
11233 enable adding IEEE 128-bit floating point support.
11234 (-mfloat128-software): Likewise.
11235 (-mfloat128-sw): Likewise.
11237 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
11238 128-bit floating point types to occupy any register if
11239 -mlong-double-64. Do not allow use of IFmode/KFmode unless
11240 -mfloat128-software is enabled.
11241 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
11243 (rs6000_option_override_internal): Add -mfloat128-* support.
11244 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
11246 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
11247 and float128 type nodes.
11248 (ieee128_float_type_node): Likewise.
11249 (ibm128_float_type_node): Likewise.
11251 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
11254 * config/aarch64/geniterators.sh: Rewrite in awk.
11256 2015-06-02 Martin Liska <mliska@suse.cz>
11258 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
11259 values to avoid -Wmaybe-uninitialized errors.
11261 2015-06-02 Richard Biener <rguenther@suse.de>
11264 * dwarf2out.c (lookup_context_die): New function.
11265 (resolve_addr): Avoid forcing a full DIE for the
11266 target of a DW_TAG_GNU_call_site during late compilation.
11267 Instead create a stub DIE without a type if we have a
11268 context DIE present.
11270 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
11272 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
11274 2015-06-02 Bin Cheng <bin.cheng@arm.com>
11276 PR tree-optimization/48052
11277 * cfgloop.h (struct control_iv): New.
11278 (struct loop): New field control_ivs.
11279 * tree-ssa-loop-niter.c : Include "stor-layout.h".
11280 (number_of_iterations_lt): Set no_overflow information.
11281 (number_of_iterations_exit): Init control iv in niter struct.
11282 (record_control_iv): New.
11283 (estimate_numbers_of_iterations_loop): Call record_control_iv.
11284 (loop_exits_before_overflow): New. Interface factored out of
11285 scev_probably_wraps_p.
11286 (scev_probably_wraps_p): Factor loop niter related code into
11287 loop_exits_before_overflow.
11288 (free_numbers_of_iterations_estimates_loop): Free control ivs.
11289 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
11291 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
11293 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
11294 the target doesn't belong to the current function.
11296 2015-06-02 Marek Polacek <polacek@redhat.com>
11298 PR middle-end/66345
11299 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
11300 get_maxval_strlen does not produce an INTEGER_CST.
11302 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
11304 * config/arc/constraints.md: Use lower-case names in match_code.
11305 * config/mmix/constraints.md: Likewise.
11307 2015-06-02 Richard Biener <rguenther@suse.de>
11309 PR tree-optimization/65961
11310 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
11311 check and clarify dump message.
11312 (vect_build_slp_tree): If all children are built up from scalars
11313 build up the parent from scalars instead.
11314 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
11316 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11319 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
11320 instead of print ... .
11322 2015-06-02 Alan Modra <amodra@gmail.com>
11324 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
11327 2015-06-02 Bin Cheng <bin.cheng@arm.com>
11329 PR tree-optimization/52563
11330 PR tree-optimization/62173
11331 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
11332 (alloc_iv, set_iv): New parameter.
11333 (determine_biv_step): Delete.
11334 (find_bivs): Inline original determine_biv_step. Pass new
11335 argument to set_iv.
11336 (idx_find_step): Use no_overflow information for conversion.
11337 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
11338 resolve_mixers handle folded_casts.
11339 (instantiate_scev_name): Change bool parameter to bool pointer.
11340 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
11341 (instantiate_array_ref, instantiate_scev_not): Ditto.
11342 (instantiate_scev_3, instantiate_scev_2): Ditto.
11343 (instantiate_scev_1, instantiate_scev_r): Ditto.
11344 (instantiate_scev_convert, ): Change parameter. Pass argument
11345 to chrec_convert_aggressive.
11346 (instantiate_scev): Change argument.
11347 (resolve_mixers): New parameter and set it.
11348 (scev_const_prop): New argument.
11349 * tree-scalar-evolution.h (resolve_mixers): New parameter.
11350 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
11352 (chrec_convert): New parameter. Move definition below.
11353 (chrec_convert_aggressive): New parameter and set it. Call
11354 convert_affine_scev.
11355 * tree-chrec.h (chrec_convert): New parameter.
11356 (chrec_convert_aggressive): Ditto.
11358 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
11360 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
11361 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
11362 the LHS of a no-return call if its type has variable size.
11363 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
11364 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
11366 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
11368 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
11369 * config.in: Regenerate.
11371 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
11373 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
11374 consecutive accesses within outer-loop with force_vectorize
11375 for references with zero step in inner-loop.
11377 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
11379 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
11380 rather than from gcc/build directory.
11382 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
11385 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
11386 for __sync memory models, emit initial loads and final barriers as
11389 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
11392 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
11393 (aarch64_split_atomic_op): Check for __sync memory models, emit
11394 appropriate initial loads and final barriers.
11396 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
11398 * Makefile.in: Fix gcov dependencies that should
11399 not point to a build folder.
11401 2015-06-01 Richard Biener <rguenther@suse.de>
11404 2015-05-29 Richard Biener <rguenther@suse.de>
11406 PR tree-optimization/66314
11407 * tree-ssa-threadupdate.c (create_block_for_threading): Add
11408 parameter that says which loop the new block belongs to.
11409 (ssa_create_duplicates): Blocks duplicated for the threaded
11410 path belong to the loop of the thread destination.
11412 2015-06-01 Martin Liska <mliska@suse.cz>
11414 * sched-deps.c: Include pool-alloc.h before
11415 cselib.h header file is included.
11417 2015-06-01 Richard Biener <rguenther@suse.de>
11419 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
11422 2015-06-01 Martin Liska <mliska@suse.cz>
11424 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
11425 a function local variable.
11427 2015-06-01 Martin Liska <mliska@suse.cz>
11429 * alloc-pool.c (create_alloc_pool): Remove.
11430 (empty_alloc_pool): Likewise.
11431 (free_alloc_pool): Likewise.
11432 (free_alloc_pool_if_empty): Likewise.
11433 (pool_alloc): Likewise.
11434 (pool_free): Likewise.
11435 * alloc-pool.h: Remove old declarations.
11437 2015-06-01 Martin Liska <mliska@suse.cz>
11439 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
11440 (ira_create_object): Likewise.
11441 (ira_create_allocno): Likewise.
11442 (ira_create_live_range): Likewise.
11443 (copy_live_range): Likewise.
11444 (ira_finish_live_range): Likewise.
11445 (ira_free_allocno_costs): Likewise.
11446 (finish_allocno): Likewise.
11447 (finish_allocnos): Likewise.
11448 (initiate_prefs): Likewise.
11449 (ira_create_pref): Likewise.
11450 (finish_pref): Likewise.
11451 (finish_prefs): Likewise.
11452 (initiate_copies): Likewise.
11453 (ira_create_copy): Likewise.
11454 (finish_copy): Likewise.
11455 (finish_copies): Likewise.
11456 (finish_prefs): Likewise.
11458 2015-06-01 Martin Liska <mliska@suse.cz>
11460 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
11461 (allocate_and_init_ipcp_value): Likewise.
11462 (ipcp_lattice::add_value): Likewise.
11463 (merge_agg_lats_step): Likewise.
11464 (ipcp_driver): Likewise.
11465 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
11466 (ipa_free_all_structures_after_iinln): Likewise.
11467 * ipa-prop.h: Likewise.
11469 2015-06-01 Martin Liska <mliska@suse.cz>
11471 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
11473 (set_hint_predicate): Likewise.
11474 (inline_summary_alloc): Likewise.
11475 (reset_inline_edge_summary): Likewise.
11476 (reset_inline_summary): Likewise.
11477 (set_cond_stmt_execution_predicate): Likewise.
11478 (set_switch_stmt_execution_predicate): Likewise.
11479 (compute_bb_predicates): Likewise.
11480 (estimate_function_body_sizes): Likewise.
11481 (inline_free_summary): Likewise.
11483 2015-06-01 Martin Liska <mliska@suse.cz>
11485 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
11486 (ipa_edge_duplication_hook): Likewise.
11487 (ipa_free_all_structures_after_ipa_cp): Likewise.
11488 (ipa_free_all_structures_after_iinln): Likewise.
11490 2015-06-01 Martin Liska <mliska@suse.cz>
11492 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
11493 (ipa_profile_generate_summary): Likewise.
11494 (ipa_profile_read_summary): Likewise.
11495 (ipa_profile): Likewise.
11497 2015-06-01 Martin Liska <mliska@suse.cz>
11499 * tree-ssa-structalias.c (new_var_info): Use new type-based
11501 (new_constraint): Likewise.
11502 (init_alias_vars): Likewise.
11503 (delete_points_to_sets): Likewise.
11505 2015-06-01 Martin Liska <mliska@suse.cz>
11507 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
11508 (free_strinfo): Likewise.
11509 (pass_strlen::execute): Likewise.
11511 2015-06-01 Martin Liska <mliska@suse.cz>
11513 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
11515 (vn_reference_insert_pieces): Likewise.
11516 (vn_phi_insert): Likewise.
11517 (visit_reference_op_call): Likewise.
11518 (copy_phi): Likewise.
11519 (copy_reference): Likewise.
11520 (process_scc): Likewise.
11521 (allocate_vn_table): Likewise.
11522 (free_vn_table): Likewise.
11524 2015-06-01 Martin Liska <mliska@suse.cz>
11526 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
11528 (add_repeat_to_ops_vec): Likewise.
11529 (get_ops): Likewise.
11530 (maybe_optimize_range_tests): Likewise.
11531 (init_reassoc): Likewise.
11532 (fini_reassoc): Likewise.
11534 2015-06-01 Martin Liska <mliska@suse.cz>
11536 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
11538 (bitmap_set_new): Likewise.
11539 (get_or_alloc_expr_for_constant): Likewise.
11540 (get_or_alloc_expr_for): Likewise.
11541 (phi_translate_1): Likewise.
11542 (compute_avail): Likewise.
11543 (init_pre): Likewise.
11544 (fini_pre): Likewise.
11546 2015-06-01 Martin Liska <mliska@suse.cz>
11548 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
11549 (delete_dep_node): Likewise.
11550 (create_deps_list): Likewise.
11551 (free_deps_list): Likewise.
11552 (sched_deps_init): Likewise.
11553 (sched_deps_finish): Likewise.
11555 2015-06-01 Martin Liska <mliska@suse.cz>
11557 * regcprop.c (free_debug_insn_changes): Use new type-based
11559 (replace_oldest_value_reg): Likewise.
11560 (pass_cprop_hardreg::execute): Likewise.
11562 2015-06-01 Martin Liska <mliska@suse.cz>
11564 * ira-build.c (initiate_cost_vectors): Use new type-based
11566 (ira_allocate_cost_vector): Likewise.
11567 (ira_free_cost_vector): Likewise.
11568 (finish_cost_vectors): Likewise.
11570 2015-06-01 Martin Liska <mliska@suse.cz>
11572 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
11574 (free_sched_pools): Likewise.
11575 * sel-sched-ir.h (_list_alloc): Likewise.
11576 (_list_remove): Likewise.
11578 2015-06-01 Martin Liska <mliska@suse.cz>
11580 * stmt.c (add_case_node): Use new type-based pool allocator.
11581 (expand_case): Likewise.
11582 (expand_sjlj_dispatch_table): Likewise.
11584 2015-06-01 Martin Liska <mliska@suse.cz>
11586 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
11587 (free_bb): Likewise.
11588 (pass_cse_reciprocals::execute): Likewise.
11590 2015-06-01 Martin Liska <mliska@suse.cz>
11592 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
11593 (sra_deinitialize) Likewise.
11594 (create_access_1) Likewise.
11595 (build_accesses_from_assign) Likewise.
11596 (create_artificial_child_access) Likewise.
11598 2015-06-01 Martin Liska <mliska@suse.cz>
11600 * dse.c (get_group_info):Use new type-based pool allocator.
11601 (dse_step0) Likewise.
11602 (free_store_info) Likewise.
11603 (delete_dead_store_insn) Likewise.
11604 (free_read_records) Likewise.
11605 (record_store) Likewise.
11606 (replace_read) Likewise.
11607 (check_mem_read_rtx) Likewise.
11608 (scan_insn) Likewise.
11609 (dse_step1) Likewise.
11610 (dse_step7) Likewise.
11612 2015-06-01 Martin Liska <mliska@suse.cz>
11614 * df-scan.c (struct df_scan_problem_data):Use new type-based
11616 (df_scan_free_internal) Likewise.
11617 (df_scan_alloc) Likewise.
11618 (df_grow_reg_info) Likewise.
11619 (df_free_ref) Likewise.
11620 (df_insn_create_insn_record) Likewise.
11621 (df_mw_hardreg_chain_delete) Likewise.
11622 (df_insn_info_delete) Likewise.
11623 (df_free_collection_rec) Likewise.
11624 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
11625 (df_sort_and_compress_mws) Likewise.
11626 (df_ref_create_structure) Likewise.
11627 (df_ref_record) Likewise.
11629 2015-06-01 Martin Liska <mliska@suse.cz>
11631 * df-problems.c (df_chain_create):Use new type-based pool allocator.
11632 (df_chain_unlink_1) Likewise.
11633 (df_chain_unlink) Likewise.
11634 (df_chain_remove_problem) Likewise.
11635 (df_chain_alloc) Likewise.
11636 (df_chain_free) Likewise.
11637 * df.h (struct dataflow) Likewise.
11639 2015-06-01 Martin Liska <mliska@suse.cz>
11641 * cselib.c (new_elt_list):Use new type-based pool allocator.
11642 (new_elt_loc_list) Likewise.
11643 (unchain_one_elt_list) Likewise.
11644 (unchain_one_elt_loc_list) Likewise.
11645 (unchain_one_value) Likewise.
11646 (new_cselib_val) Likewise.
11647 (cselib_init) Likewise.
11648 (cselib_finish) Likewise.
11650 2015-06-01 Martin Liska <mliska@suse.cz>
11652 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
11653 (sh_reorg) Likewise.
11655 2015-06-01 Martin Liska <mliska@suse.cz>
11657 * cfg.c (initialize_original_copy_tables):Use new type-based
11659 (free_original_copy_tables) Likewise.
11660 (copy_original_table_clear) Likewise.
11661 (copy_original_table_set) Likewise.
11663 2015-06-01 Martin Liska <mliska@suse.cz>
11665 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
11667 (asan_mem_ref_new) Likewise.
11668 (free_mem_ref_resources) Likewise.
11670 2015-06-01 Martin Liska <mliska@suse.cz>
11672 * var-tracking.c (variable_htab_free):Use new type-based
11674 (attrs_list_clear) Likewise.
11675 (attrs_list_insert) Likewise.
11676 (attrs_list_copy) Likewise.
11677 (shared_hash_unshare) Likewise.
11678 (shared_hash_destroy) Likewise.
11679 (unshare_variable) Likewise.
11680 (var_reg_delete_and_set) Likewise.
11681 (var_reg_delete) Likewise.
11682 (var_regno_delete) Likewise.
11683 (drop_overlapping_mem_locs) Likewise.
11684 (variable_union) Likewise.
11685 (insert_into_intersection) Likewise.
11686 (canonicalize_values_star) Likewise.
11687 (variable_merge_over_cur) Likewise.
11688 (dataflow_set_merge) Likewise.
11689 (remove_duplicate_values) Likewise.
11690 (variable_post_merge_new_vals) Likewise.
11691 (dataflow_set_preserve_mem_locs) Likewise.
11692 (dataflow_set_remove_mem_locs) Likewise.
11693 (variable_from_dropped) Likewise.
11694 (variable_was_changed) Likewise.
11695 (set_slot_part) Likewise.
11696 (clobber_slot_part) Likewise.
11697 (delete_slot_part) Likewise.
11698 (loc_exp_insert_dep) Likewise.
11699 (notify_dependents_of_changed_value) Likewise.
11700 (emit_notes_for_differences_1) Likewise.
11701 (vt_emit_notes) Likewise.
11702 (vt_initialize) Likewise.
11703 (vt_finalize) Likewise.
11705 2015-06-01 Martin Liska <mliska@suse.cz>
11707 * ira-color.c (init_update_cost_records):Use new type-based
11709 (get_update_cost_record) Likewise.
11710 (free_update_cost_record_list) Likewise.
11711 (finish_update_cost_records) Likewise.
11712 (initiate_cost_update) Likewise.
11714 2015-06-01 Martin Liska <mliska@suse.cz>
11716 * lra.c (init_insn_regs): Use new type-based pool allocator.
11717 (new_insn_reg) Likewise.
11718 (free_insn_reg) Likewise.
11719 (free_insn_regs) Likewise.
11720 (finish_insn_regs) Likewise.
11721 (init_insn_recog_data) Likewise.
11722 (init_reg_info) Likewise.
11723 (finish_reg_info) Likewise.
11724 (lra_free_copies) Likewise.
11725 (lra_create_copy) Likewise.
11726 (invalidate_insn_data_regno_info) Likewise.
11728 2015-06-01 Martin Liska <mliska@suse.cz>
11730 * lra-lives.c (free_live_range): Use new type-based pool allocator.
11731 (free_live_range_list) Likewise.
11732 (create_live_range) Likewise.
11733 (copy_live_range) Likewise.
11734 (lra_merge_live_ranges) Likewise.
11735 (remove_some_program_points_and_update_live_ranges) Likewise.
11736 (lra_live_ranges_init) Likewise.
11737 (lra_live_ranges_finish) Likewise.
11739 2015-06-01 Martin Liska <mliska@suse.cz>
11741 * et-forest.c (et_new_occ): Use new type-based pool allocator.
11742 (et_new_tree): Likewise.
11743 (et_free_tree): Likewise.
11744 (et_free_tree_force): Likewise.
11745 (et_free_pools): Likewise.
11746 (et_split): Likewise.
11748 2015-06-01 Martin Liska <mliska@suse.cz>
11750 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
11752 * alloc-pool.h (pool_allocator::pool_allocator): New function.
11753 (pool_allocator::release): Likewise.
11754 (inline pool_allocator::release_if_empty): Likewise.
11755 (inline pool_allocator::~pool_allocator): Likewise.
11756 (pool_allocator::allocate): Likewise.
11757 (pool_allocator::remove): Likewise.
11759 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11761 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
11764 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11766 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
11768 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
11769 (arm_macro_fusion_p): Likewise.
11770 (arm_macro_fusion_pair_p): Likewise.
11772 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11774 * config/aarch64/aarch64-protos.h (tune_params): Rename
11775 fuseable_ops to fusible_ops.
11776 * config/aarch64/aarch64.c (generic_tunings): Rename
11777 fuseable_ops to fusible_ops.
11778 (cortexa53_tunings): Likewise.
11779 (cortexa57_tunings): Likewise.
11780 (thunderx_tunings): Likewise.
11781 (xgene1_tunings): Likewise.
11782 (aarch64_macro_fusion_p): Likewise.
11783 (aarch64_macro_fusion_pair_p): Likewise.
11785 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
11787 * config/s390/driver-native.c: New file.
11788 * config/s390/x-native: New file.
11789 * config.host: Add new files for s390.
11790 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
11792 * config.gcc: Likewise.
11793 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
11794 * config/s390/s390-opts.h (enum processor_type): Ditto.
11795 * config/s390/s390.c (s390_option_override): Catch unhandled
11798 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
11801 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
11802 redirection for instrumented calls.
11803 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
11804 (append_compiler_options): Append -fcheck-pointer-bounds.
11805 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
11806 (chkp_redirect_edge): New.
11807 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
11808 (chkp_redirect_edge): New.
11810 2015-06-01 Richard Biener <rguenther@suse.de>
11812 PR tree-optimization/66280
11813 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
11816 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11818 * config/aarch64/aarch64.md
11819 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
11822 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
11824 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
11825 Remove obsolete kludge.
11827 2015-06-01 Richard Biener <rguenther@suse.de>
11829 * tree-ssa-reassoc.c (get_rank): Simplify.
11831 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
11833 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
11834 * configure: Regenerated.
11836 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
11838 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
11839 issue (add space between string literal and macro).
11840 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
11842 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
11844 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
11845 implict or explicit -fPIE or -fpie.
11847 2015-05-30 Mike Frysinger <vapier@gentoo.org>
11849 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
11851 2015-05-28 DJ Delorie <dj@redhat.com>
11853 * expmed.c (extract_bit_field_1): Avoid clobbering a
11854 yet-to-be-used base/index register.
11856 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
11858 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
11859 (alias_stats): Add num_universal.
11860 (alias_set_subset_of): Special case pointers; be ready for NULL
11862 (alias_sets_conflict_p): Special case pointers; be ready for NULL
11864 (init_alias_set_entry): Break out from ...
11865 (record_alias_subset): ... here; propagate new fields;
11866 allocate children only when really needed.
11867 (get_alias_set): Do less generous pointer globbing.
11868 (dump_alias_stats_in_alias_c): Update statistics.
11870 2015-05-30 Alan Modra <amodra@gmail.com>
11872 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
11873 correct block for use of r12.
11874 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
11876 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
11879 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
11882 2015-05-29 Jakub Jelinek <jakub@redhat.com>
11884 PR tree-optimization/66142
11885 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
11886 virtual phis that feed themselves.
11888 2015-05-29 Richard Biener <rguenther@suse.de>
11890 PR tree-optimization/66314
11891 * tree-ssa-threadupdate.c (create_block_for_threading): Add
11892 parameter that says which loop the new block belongs to.
11893 (ssa_create_duplicates): Blocks duplicated for the threaded
11894 path belong to the loop of the thread destination.
11896 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11898 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
11899 to cleanup-saved-temps.
11900 * doc/sourcebuild.texi (Clean up generated test files): Expand
11902 (dg-keep-saved-temps): Document new proc.
11903 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
11904 cleanup-saved-temps): Remove.
11906 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
11908 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
11909 gcc_AC_CHECK_DECLS.
11910 * configure: Regenerate.
11912 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11914 * config/nios2/linux.h (CPP_SPEC): Define.
11916 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11918 * config/microblaze/linux.h (CPP_SPEC): Define.
11920 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11922 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
11923 -pthread is specified.
11925 2015-05-28 Richard Biener <rguenther@suse.de>
11927 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
11928 (vect_fixup_scalar_cycles_with_patterns): Likewise.
11929 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
11930 after pattern recog.
11931 (vect_create_epilog_for_reduction): Properly handle reductions
11933 (vectorizable_reduction): Likewise.
11934 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
11936 (vect_get_constant_vectors): Create the correct number of
11937 initial values for reductions.
11938 (vect_schedule_slp_instance): Handle reduction chains that are
11939 type changing properly.
11940 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
11942 2015-05-28 Richard Biener <rguenther@suse.de>
11944 PR tree-optimization/66142
11945 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
11946 values better in memcpy destination handling. Handle non-aliasing
11949 2015-05-28 Lawrence Velázquez <vq@larryv.me>
11952 * config/darwin-c.c (version_components): New global enum.
11953 (parse_version, version_as_legacy_macro)
11954 (version_as_modern_macro, macosx_version_as_macro): New functions.
11955 (version_as_macro): Remove.
11956 (darwin_cpp_builtins): Use new function.
11958 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
11960 * builtins.c (expand_builtin_acc_on_device): Mark parameters
11961 with ATTRIBUTE_UNUSED.
11963 2015-05-28 Julian Brown <julian@codesourcery.com>
11967 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
11968 sequence for !ACCEL_COMPILER.
11970 2015-05-28 Nick Clifton <nickc@redhat.com>
11972 * config/rx/rx.c (push_regs): New function. Extracts code from...
11973 (rx_expand_prologue): ... here. Use push_regs to push even small
11974 spans of registers.
11975 (pop_regs): New function.
11976 (rx_expand_epilogue): Use pop_regs to pop even small spans of
11979 2015-05-28 Richard Biener <rguenther@suse.de>
11981 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
11983 (SLP_INSTANCE_BODY_COST_VEC): Remove.
11984 (vect_update_slp_costs_according_to_vf): Likewise.
11985 (vect_slp_analyze_operations): Update prototype.
11986 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
11987 vect_update_slp_costs_according_to_vf, adjust.
11988 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
11989 (vect_analyze_slp_cost_1): Likewise.
11990 (vect_analyze_slp_cost): Likewise. Properly deal with
11991 widening reduction ops. Commit body costs.
11992 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
11993 cost for loops from here.
11994 (vect_slp_analyze_operations): But do it from here when
11995 the vectorization factor is known and stmts are analyzed.
11996 (vect_bb_vectorization_profitable_p): Simplify.
11997 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
11998 (vect_update_slp_costs_according_to_vf): Remove.
12000 2015-05-27 Magnus Granberg <zorry@gentoo.org>
12001 H.J. Lu <hongjiu.lu@intel.com>
12003 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
12004 (BUILD_CFLAGS): Likewise.
12005 (BUILD_CXXFLAGS): Likewise.
12006 (LINKER): Add @NO_PIE_FLAG@.
12007 (BUILD_LDFLAGS): Likewise.
12008 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
12009 --enable-default-pie.
12010 * common.opt (fPIE): Initialize to -1.
12012 (no-pie): New option.
12013 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
12014 * configure.ac: Add --enable-default-pie.
12015 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
12016 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
12017 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
12018 * gcc.c (NO_PIE_SPEC): New.
12019 (PIE_SPEC): Likewise.
12020 (NO_FPIE1_SPEC): Likewise.
12021 (FPIE1_SPEC): Likewise.
12022 (NO_FPIE2_SPEC): Likewise.
12023 (FPIE2_SPEC): Likewise.
12024 (NO_FPIE2_SPEC): Likewise.
12025 (FPIE_SPEC): Likewise.
12026 (NO_FPIE_SPEC): Likewise.
12027 (NO_FPIC1_SPEC): Likewise.
12028 (FPIC1_SPEC): Likewise.
12029 (NO_FPIC2_SPEC): Likewise.
12030 (FPIC2_SPEC): Likewise.
12031 (NO_FPIC2_SPEC): Likewise.
12032 (FPIC_SPEC): Likewise.
12033 (NO_FPIC_SPEC): Likewise.
12034 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
12035 (FPIE1_OR_FPIC1_SPEC): Likewise.
12036 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
12037 (FPIE2_OR_FPIC2_SPEC): Likewise.
12038 (NO_FPIE_AND_FPIC_SPEC): Likewise.
12039 (FPIE_OR_FPIC_SPEC): Likewise.
12040 (LD_PIE_SPEC): Likewise.
12041 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
12042 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
12043 * config/darwin.h (PIE_SPEC): Renamed to ...
12044 (DARWIN_PIE_SPEC): This.
12045 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
12046 * config/darwin9.h (PIE_SPEC): Renamed to ...
12047 (DARWIN_PIE_SPEC): This.
12048 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
12049 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
12050 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
12051 FPIE2_OR_FPIC2_SPEC.
12052 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
12053 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
12054 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
12055 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
12056 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
12057 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
12058 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
12059 * config/m32r/m32r.h (ASM_SPEC): Likewise.
12060 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
12061 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12062 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
12063 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
12064 * config/sparc/linux.h (ASM_SPEC): Likewise.
12065 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12066 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
12067 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
12068 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12069 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12070 * config/sparc/sparc.h (ASM_SPEC): Likewise.
12071 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
12072 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
12073 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
12074 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
12075 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
12076 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
12077 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
12078 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
12079 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
12080 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
12081 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
12082 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
12083 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12084 * config/vax/linux.h (ASM_SPEC): Likewise.
12085 * doc/install.texi: Document --enable-default-pie.
12086 * doc/invoke.texi: Document -no-pie.
12087 * config.in: Regenerated.
12088 * configure: Likewise.
12090 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
12092 PR rtl-optimization/66168
12093 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
12094 can_move_invariant_reg.
12096 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
12099 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
12100 REG_EQUAL note when doing insert.
12102 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
12103 instead of "%d" for 'o' operand.
12105 2015-05-27 Nathan Sidwell <nathan@acm.org>
12108 * tree.c (build_pointer_type_for_mode): Canonical type does not
12109 inherit can_alias_all.
12110 (build_reference_type_for_mode): Likewise.
12112 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
12114 * expr.h (array_at_struct_end_p): Move to...
12115 (array_ref_element_size): Likewise.
12116 (component_ref_field_offset): Likewise.
12117 * tree.h (array_ref_element_size): ...here.
12118 (array_at_struct_end_p): Likewise.
12119 (component_ref_field_offset): Likewise.
12120 * expr.c (array_ref_element_size): Move to...
12121 (array_ref_low_bound): Likewise.
12122 (array_at_struct_end_p): Likewise.
12123 (array_ref_up_bound): Likewise.
12124 (component_ref_field_offset): Likewise.
12125 * tree.c (array_ref_element_size): ...here.
12126 (array_ref_low_bound): Likewise.
12127 (array_ref_up_bound): Likewise.
12128 (array_at_struct_end_p): Likewise.
12129 (component_ref_field_offset): Likewise.
12131 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
12132 Szabolcs Nagy <szabolcs.nagy@arm.com>
12134 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
12136 2015-05-27 Jason Merrill <jason@redhat.com>
12139 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
12140 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
12141 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
12143 2015-05-22 Aditya Kumar <hiraditya@msn.com>
12145 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
12148 * statistics.c (statistics_fini_pass): Print pass name.
12150 2015-05-27 Richard Biener <rguenther@suse.de>
12152 PR tree-optimization/66272
12154 2014-08-15 Richard Biener <rguenther@suse.de>
12156 PR tree-optimization/62031
12157 * tree-data-ref.c (dr_analyze_indices): Do not set
12158 DR_UNCONSTRAINED_BASE.
12159 (dr_may_alias_p): All indirect accesses have to go the
12160 formerly DR_UNCONSTRAINED_BASE path.
12161 * tree-data-ref.h (struct indices): Remove
12162 unconstrained_base member.
12163 (DR_UNCONSTRAINED_BASE): Remove.
12165 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
12167 * dwarf2out.c: Remove block_map.
12168 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
12169 (gen_lexical_block_die): Same.
12170 (dwarf2out_function_decl): Remove block_map use.
12171 (dwarf2out_c_finalize): Same.
12172 * tree-core.h (struct tree_block): Add die field.
12173 * tree.h (BLOCK_DIE): New.
12175 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12178 * expr.c (memory_load_overlap): New function.
12179 (emit_push_insn): When pushing partial args to the stack would
12180 clobber the register part load the overlapping part into a pseudo
12181 and put it into the hard reg after pushing. Change return type
12182 to bool. Add bool argument.
12183 * expr.h (emit_push_insn): Change return type to bool.
12185 * calls.c (expand_call): Cancel sibcall optimization when encountering
12186 partial argument on targets with ARGS_GROW_DOWNWARD and
12187 !STACK_GROWS_DOWNWARD.
12188 (emit_library_call_value_1): Update callsite of emit_push_insn.
12189 (store_one_arg): Likewise.
12191 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
12193 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
12195 2015-05-27 Martin Liska <mliska@suse.cz>
12197 * Makefile.in: Add additional dependencies related to memory report
12199 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
12200 * bitmap.c (struct bitmap_descriptor_d): Remove.
12201 (struct loc): Likewise.
12202 (struct bitmap_desc_hasher): Likewise.
12203 (bitmap_desc_hasher::hash): Likewise.
12204 (bitmap_desc_hasher::equal): Likewise.
12205 (get_bitmap_descriptor): Likewise.
12206 (bitmap_register): User new memory descriptor API.
12207 (register_overhead): Likewise.
12208 (bitmap_find_bit): Register nsearches and search_iter statistics.
12209 (struct bitmap_output_info): Remove.
12210 (print_statistics): Likewise.
12211 (dump_bitmap_statistics): Use new memory descriptor.
12212 * bitmap.h (struct bitmap_usage): New class.
12213 * genmatch.c: Extend header file inclusion.
12214 * genpreds.c: Likewise.
12215 * ggc-common.c (struct ggc_usage): New class.
12216 (struct ggc_loc_desc_hasher): Remove.
12217 (ggc_loc_desc_hasher::hash): Likewise.
12218 (ggc_loc_desc_hasher::equal): Likewise.
12219 (struct ggc_ptr_hash_entry): Likewise.
12220 (struct ptr_hash_hasher): Likewise.
12221 (ptr_hash_hasher::hash): Likewise.
12222 (ptr_hash_hasher::equal): Likewise.
12223 (make_loc_descriptor): Likewise.
12224 (ggc_prune_ptr): Likewise.
12225 (dump_ggc_loc_statistics): Use new memory descriptor.
12226 (ggc_record_overhead): Likewise.
12227 (ggc_free_overhead): Likewise.
12228 (final_cmp_statistic): Remove.
12229 (cmp_statistic): Likewise.
12230 (ggc_add_statistics): Liekwise.
12231 (ggc_prune_overhead_list): Likewise.
12232 * hash-map-traits.h: New file.
12233 * hash-map.h (struct default_hashmap_traits): Move the traits to a
12234 separate header file.
12235 * hash-set.h: Pass memory statistics info to ctor.
12236 * hash-table.c (void dump_hash_table_loc_statistics): New function.
12237 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
12238 (hash_table::~hash_table): Register memory release operation.
12239 (hash_table::alloc_entries): Handle memory allocation operation.
12240 (hash_table::expand): Likewise.
12241 * inchash.c (iterative_hash_hashval_t): Move implementation to header
12243 (iterative_hash_host_wide_int): Likewise.
12244 * inchash.h (class hash): Likewise.
12245 * mem-stats-traits.h: New file.
12246 * mem-stats.h: New file.
12247 (mem_location): Add new class.
12248 (mem_usage): Likewise.
12249 (mem_alloc_description): Likewise.
12250 * sese.c: Add new header file inclusision.
12251 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
12253 * tree-sra.c: Add new header file inclusision.
12254 * vec.c (struct vec_descriptor): Remove.
12255 (hash_descriptor): Likewise.
12256 (struct vec_usage): Likewise.
12257 (struct ptr_hash_entry): Likewise.
12258 (hash_ptr): Likewise.
12259 (eq_ptr): Likewise.
12260 (vec_prefix::register_overhead): Use new memory descriptor API.
12261 (vec_prefix::release_overhead): Likewise.
12262 (add_statistics): Remove.
12263 (dump_vec_loc_statistics): Use new memory descriptor API.
12264 * vec.h (struct vec_prefix): Likewise.
12265 (va_heap::reserve): Likewise.
12266 (va_heap::release): Likewise.
12267 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
12269 2015-05-27 Richard Biener <rguenther@suse.de>
12271 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
12272 earlier and remove ??? comment.
12273 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
12274 and got called from loop analysis bail out. Always pass the SLP
12275 node to the vectorizable_* functions.
12276 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
12277 the premature SLP check here.
12278 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
12279 detected SLP stmts.
12280 (vect_detect_hybrid_slp_1): Likewise.
12282 2015-05-26 Jeff Law <law@redhat.com>
12284 * combine.c (find_split_point): Verify that the shift count is a
12285 constant when choosing (plus (ashift ...)) as a split point.
12287 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
12288 No functional changes.
12290 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
12292 * ipa-polymorphic-call.c
12293 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
12294 case when call target is already known.
12296 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
12299 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
12300 take into account the case that operands[1] and operands[2]
12301 are the same register.
12303 2015-05-26 Michael Matz <matz@suse.de>
12305 PR middle-end/66251
12307 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
12309 (vect_create_vectorized_demotion_stmts): Always set
12310 STMT_VINFO_VEC_STMT, also with SLP.
12311 (vectorizable_store): Handle strided group stores.
12313 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12316 * config/aarch64/aarch64.md
12317 (*adds_shift_imm_<mode>): New pattern.
12318 (*subs_shift_imm_<mode>): Likewise.
12319 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
12320 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
12321 (*add_uxt<mode>_shift2): Likewise.
12322 (*add_uxtsi_shift2_uxtw): Likewise.
12323 (*sub_uxt<mode>_shift2): Likewise.
12324 (*sub_uxtsi_shift2_uxtw): Likewise.
12326 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
12328 * config/rs6000/constraints.md (Y, U): Use match_test.
12330 2015-05-26 Christian Bruel <christian.bruel@st.com>
12333 * config/arm/arm.c (arm_option_check_internal)
12334 (arm_option_params_internal): Check opts->target_flags to set macros.
12335 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
12336 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
12337 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
12338 (builtin_define): Replaced with def_or_undef_macro.
12339 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
12340 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
12341 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
12342 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
12343 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
12344 (TARGET_ARM_FEATURE_LDREX_P)
12345 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
12346 * config/arm/arm-c.c (def_or_undef_macro): New function.
12347 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
12349 2015-05-26 Christian Bruel <christian.bruel@st.com>
12351 * c-common.h (builtin_define_with_int_value)
12352 (builtin_define_type_sizeof): Declare.
12353 * c-cppbuiltin.c (builtin_define_with_int_value)
12354 (builtin_define_type_sizeof): Externalize.
12355 (builtin_define_std): Cleanup declaration.
12356 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
12357 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
12358 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
12359 (builtin_define, builtin_assert): New macros.
12361 2015-05-26 Richard Biener <rguenther@suse.de>
12363 PR tree-optimization/66142
12364 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
12365 MEM_REFs for the same base address.
12367 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12370 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
12372 2015-05-26 Jason Merrill <jason@redhat.com>
12374 * configure.ac: Set CXXFLAGS for ISL test.
12375 * configure: Regenerate.
12377 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
12378 strstr and basename.
12379 * configure: Regenerate.
12381 2015-05-26 Richard Biener <rguenther@suse.de>
12383 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
12384 X % C -> X & (C - 1) for C being a power-of two to ...
12385 * match.pd: ... patterns.
12387 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
12389 * match.pd (swapped_tcc_comparison): New operator list.
12390 (-A CMP -B): New simplification.
12391 * fold-const.c (fold_comparison): Remove corresponding code.
12393 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
12395 * caller-save.c (init_caller_save): Base temporary register numbers
12396 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
12397 * cfgloopanal.c (init_set_costs): Likewise.
12398 * dojump.c (prefer_and_bit_test): Likewise.
12399 * expr.c (init_expr_target): Likewise.
12400 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12401 * lower-subreg.c (init_lower_subreg): Likewise.
12402 * postreload.c (reload_cse_regs_1): Likewise.
12404 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
12406 * gensupport.h (compute_test_codes): Declare.
12407 * gensupport.c (compute_predicate_codes): Rename to...
12408 (compute_test_codes): ...this. Generalize error message.
12409 (process_define_predicate): Update accordingly.
12410 * genpreds.c (compute_maybe_allows): Delete.
12411 (add_constraint): Use compute_test_codes to determine whether
12412 something can accept a SUBREG, REG or MEM.
12414 2015-05-26 Torvald Riegel <triegel@redhat.com>
12416 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
12417 'memory model' to align with C++11; fix description of memory orders;
12420 2015-05-26 Richard Biener <rguenther@suse.de>
12422 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
12423 (vect_analyze_loop_operations): ... here. Remove slp parameter,
12424 detect whether we apply SLP. Remove call to
12425 vect_update_slp_costs_according_to_vf.
12426 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
12427 vect_update_slp_costs_according_to_vf from here. Dispatch
12428 to vect_slp_analyze_operations to analyze SLP stmts.
12429 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
12430 unused bb_vec_info parameter, adjust assert.
12431 (vect_slp_analyze_operations): Pass in the slp instance tree
12432 instead of bb_vec_info.
12433 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
12434 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
12436 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
12438 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
12439 Q_REGS. Expand comment.
12440 (REG_CLASS_NAMES): Ditto.
12441 (REG_CLASS_CONTENTS): Ditto.
12443 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
12446 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
12447 when LEGACY_INT_REGNO_P is processed.
12449 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
12451 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
12453 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12455 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
12456 register if not marked dead/unused, before return.
12458 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
12461 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
12462 is set; check for assembler name at LTO time.
12463 (type_in_anonymous_namespace): Remove hacks, check that all
12464 anonymous types are called "<anon>"
12465 (odr_type_p): Simplify; add check for "<anon>"
12466 (odr_subtypes_equivalent): Add odr_type_p check.
12467 * tree.c (need_assembler_name_p): Even anonymous namespace needs
12470 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
12472 * ipa-utils.h (method_class_type): Remove.
12473 * cgraphunit.c (walk_polymorphic_call_targets): Use
12474 TYPE_METHOD_BASETYPE.
12475 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
12476 on main variants only.
12477 (method_class_type): Remove.
12478 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
12479 (build_type_inheritance_graph): Likewise.
12480 * ipa-icf.c (sem_function::equals_wpa): Likewise.
12481 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
12482 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
12484 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
12486 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
12487 is_typedef_decl, typedef_variant_p): Constify.
12488 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
12489 is_typedef_decl, typedef_variant_p): Constify.
12491 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12493 * defaults.h (gen_tablejump): New function.
12494 (HAVE_tablejump): Add default value.
12496 * stmt.c: Likewise.
12498 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12500 * defaults.h (gen_store_multiple): New function.
12501 (HAVE_store_multiple): Add default value.
12502 * expr.c (move_block_from_reg): Adjust.
12504 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12506 * defaults.h (gen_load_multiple): New function.
12507 (HAVE_load_multiple): Add default value.
12508 * expr.c (move_block_to_reg): Adjust.
12510 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12512 * defaults.h (gen_mem_signal_fence): New function.
12513 (HAVE_mem_signal_fence): Add default value.
12514 * optabs.c: Adjust.
12516 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12518 * defaults.h (gen_memory_barrier): New function.
12519 (HAVE_memory_barrier): Add default value.
12520 * optabs.c: Adjust.
12522 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12524 * defaults.h (gen_mem_thread_fence): New function.
12525 (HAVE_mem_thread_fence): Add default definition.
12526 * optabs.c: Adjust.
12528 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12530 * combine.c (find_split_point): Check the value of HAVE_lo_sum
12531 instead of if it is defined.
12532 (combine_simplify_rtx): Likewise.
12533 * lra-constraints.c (process_address_1): Likewise.
12534 * config/darwin.c: Adjust.
12535 * genconfig.c (main): Always define HAVE_lo_sum.
12537 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12539 * genmatch.c (parser::parse_operation): Reject expanding
12540 operator-list inside 'for'.
12542 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12544 * genmatch.c (parser::parse_for): Reject iterator if used as
12547 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12549 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
12550 after end of id-list.
12552 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
12554 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
12555 we do not try to compute canonical type for type that does not need
12557 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
12559 * tree.h (type_with_alias_set_p): New.
12561 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
12563 * tree.c (gimple_canonical_types_compatible_p): Do not compare
12564 function attributes.
12565 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
12567 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
12569 * Makefile.in (check_gcc_parallelize): Delete.
12570 (lang_checks_parallelized): Update comment.
12572 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
12574 PR rtl-optimization/66237
12575 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
12576 location of an "as_a" cast.
12578 2015-05-22 Jeff Law <law@redhat.com>
12580 * config/pa/pa.md (non-canonical shift-add insns): Remove.
12581 (peepholes with non-canonical RTL sources): Remove.
12582 (peepholes for indexed stores of FP regs in integer modes): Match and
12583 generate canonical RTL.
12585 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
12587 PR tree-optimization/63387
12588 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
12589 ((x ord x) & (y ord y) -> (x ord y),
12590 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
12591 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
12592 vectors like scalars.
12594 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
12596 * convert.c (convert_to_integer, convert_to_vector): Include the
12597 types in the error message.
12599 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
12601 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
12604 2015-05-22 Jeff Law <law@redhat.com>
12606 * config/pa/pa.md (integer_indexed_store splitters): Use
12607 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
12608 insns -- adjusting the constant 2nd operand accordingly.
12610 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
12611 (plus (ashift X log2) Y) if it is a split point.
12613 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
12614 out of hppa_legitimize_address to handle both forms of a multiply
12616 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
12617 Always generate the ASHIFT variant as the result is not directly
12618 used in a MEM. Update comments and refactor slightly to improve
12621 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12624 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
12625 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
12626 (aarch64_composite_type_p): Return false if given type and mode are
12627 for a short vector.
12629 2015-05-22 Richard Biener <rguenther@suse.de>
12631 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
12633 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
12634 patterns when determining whether SLP is pure.
12635 (vect_is_slp_reduction): Remove check for pattern stmts.
12636 (vect_is_simple_reduction_1): Remove dead code.
12637 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
12638 (vect_get_and_check_slp_defs): Pass in the stmt number.
12639 Allow the first def in a reduction to be not a pattern stmt when
12640 the rest of the stmts def are patterns.
12641 (vect_build_slp_tree_1): Allow tcc_expression codes like
12642 SAD_EXPR and DOT_PROD_EXPR.
12643 (vect_build_slp_tree): Adjust.
12644 (vect_analyze_slp): Refactor and move BB vect error message ...
12645 (vect_slp_analyze_bb_1): ... here.
12647 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
12649 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
12650 for CSWTCH temporary.
12652 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12654 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
12655 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
12658 2015-05-22 Richard Biener <rguenther@suse.de>
12660 PR tree-optimization/66251
12661 * tree-vect-stmts.c (vectorizable_conversion): Properly
12662 set STMT_VINFO_VEC_STMT even for the SLP case.
12664 2015-05-22 Marek Polacek <polacek@redhat.com>
12666 * doc/extend.texi: Use @pxref instead of @xref.
12668 2015-05-22 hiraditya <hiraditya@msn.com>
12670 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
12673 2015-05-22 Richard Biener <rguenther@suse.de>
12675 PR tree-optimization/65701
12676 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12677 Move peeling cost models into one place. Peel for alignment
12678 for single loads only if an aligned load is cheaper than
12681 2015-05-22 Marek Polacek <polacek@redhat.com>
12684 * doc/extend.texi (Enumerator Attributes): New section.
12685 Document syntax of enumerator attributes.
12687 2015-05-22 Richard Biener <rguenther@suse.de>
12689 * tree-vect-loop.c (get_reduction_op): New function.
12690 (vect_model_reduction_cost): Use it, add reduc_index parameter.
12691 Make ready for BB reductions.
12692 (vect_create_epilog_for_reduction): Use get_reduction_op.
12693 (vectorizable_reduction): Init reduc_index to a valid value.
12694 Adjust vect_model_reduction_cost call.
12695 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
12696 operand for reduction defaults. Add SAD_EXPR support.
12697 Assert we have a neutral op for SLP reductions.
12698 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
12699 walking pattern stmt ops only recurse to SSA names.
12701 2015-05-22 Richard Biener <rguenther@suse.de>
12703 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
12704 assert with guard, remove check on detected reduction.
12705 (vect_recog_sad_pattern): Likewise.
12706 (vect_recog_widen_sum_pattern): Likewise.
12708 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12710 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
12711 __always_inline__ attribute.
12712 (vaesdq_u8): Likewise.
12713 (vaesmcq_u8): Likewise.
12714 (vaesimcq_u8): Likewise.
12715 (vsha1cq_u32): Likewise.
12716 (vsha1mq_u32): Likewise.
12717 (vsha1pq_u32): Likewise.
12718 (vsha1h_u32): Likewise.
12719 (vsha1su0q_u32): Likewise.
12720 (vsha1su1q_u32): Likewise.
12721 (vsha256hq_u32): Likewise.
12722 (vsha256h2q_u32): Likewise.
12723 (vsha256su0q_u32): Likewise.
12724 (vsha256su1q_u32): Likewise.
12725 (vmull_p64): Likewise.
12726 (vmull_high_p64): Likewise.
12728 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12730 * final.c (final_scan_insn): Don't check HAVE_peephole with the
12732 * output.h: Likewise.
12733 * genconfig.c (main): Alwways define HAVE_peephole.
12734 * genpeep.c: Don't emit checks of HAVE_peephole.
12736 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12738 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
12739 check HAVE_conditional_move with the preprocessor.
12741 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12743 * genconfig.c (main): Always define HAVE_conditional_move.
12744 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
12745 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
12748 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12750 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
12751 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
12752 and FRAME_POINTER_REGNUM with the preprocessor.
12754 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12756 * defaults.h: Add default for STACK_PUSH_CODE.
12757 * expr.c: Don't redefine STACK_PUSH_CODE.
12758 * recog.c: Likewise.
12760 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12762 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
12763 sched-deps.c: Use if instead of preprocessor checks with
12764 STACK_GROWS_DOWNWARD.
12766 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12768 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
12770 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
12771 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
12772 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
12773 * doc/tm.texi: Regenerate.
12775 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
12778 * config/i386/constraints.md (Bg): New constraint for GOT memory
12780 * config/i386/i386.md (*call_got_x32): New pattern.
12781 (*call_value_got_x32): Likewise.
12782 * config/i386/predicates.md (GOT_memory_operand): New predicate.
12784 2015-05-21 Jakub Jelinek <jakub@redhat.com>
12786 PR tree-optimization/66233
12787 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
12790 2015-05-21 Jeff Law <law@redhat.com>
12792 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
12793 than MULT for shadd sequences.
12795 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
12797 * alias.c (alias_stats): New static var.
12798 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
12799 (dump_alias_stats_in_alias_c): New function.
12800 * alias.h (dump_alias_stats_in_alias_c): Declare.
12801 * tree-ssa-alias.c (dump_alias_stats): Call it.
12803 2015-05-08 Michael Matz <matz@suse.de>
12805 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
12807 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
12808 (STMT_VINFO_STRIDED_P): ... this.
12809 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
12810 (vect_verify_datarefs_alignment): Likewise.
12811 (vect_enhance_data_refs_alignment): Likewise.
12812 (vect_analyze_data_ref_access): Likewise.
12813 (vect_analyze_data_refs): Accept strided stores.
12814 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
12815 (vect_model_load_cost): Adjust for macro rename.
12816 (vectorizable_mask_load_store): Likewise.
12817 (vectorizable_load): Likewise.
12818 (vectorizable_store): Open code strided stores.
12820 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12822 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
12823 Document sqrt_insn.
12825 2015-05-21 Richard Biener <rguenther@suse.de>
12828 * match.pd: Guard pattern optimzing (int)(float)int
12829 conversions to apply only on GIMPLE.
12831 2015-05-21 Jeff Law <law@redhat.com>
12833 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
12834 multiply-accumulate/shift-add insn generation.
12836 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
12839 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
12840 operands[1] are the same.
12842 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
12844 PR middle-end/66221
12845 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
12846 build_distinct_type_copy to copy bounds.
12848 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
12850 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
12851 Change to unsigned int.
12853 2015-05-20 Jeff Law <law@redhat.com>
12855 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
12856 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
12857 (pa_shadd_constant_p): Allow constants for shadd insns rather
12858 than valid scaling constants for memory addresses.
12859 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
12860 * config/pa/predicates.md (mem_shadd_operand): New predicate.
12861 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
12862 (shift-add insns using ASHIFT): New patterns.
12864 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
12866 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
12868 (fix_up_fall_thru_edges): Likewise.
12869 (fix_crossing_conditional_branches): Likewise. Promote jump targets
12870 from to rtx_insn to rtx_code_label where feasible.
12871 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
12872 gen_move_insn (returned type changed to rtx_insn).
12873 * builtins.c (expand_errno_check): Fix arguments of
12874 do_compare_rtx_and_jump (now expects rtx_code_label).
12875 (expand_builtin_acc_on_device): Likewise.
12876 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
12877 invert_jump (now exprects rtx_jump_insn).
12878 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
12879 (construct_init_block): Use rtx_code_label.
12880 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
12881 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
12882 calling redirect_jump.
12883 (patch_jump_insn): Likewise.
12884 (redirect_branch_edge): Likewise.
12885 (force_nonfallthru_and_redirect): Likewise.
12886 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
12888 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
12889 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
12890 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
12891 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
12892 to store the value retured by gen_label_rtx.
12893 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
12895 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
12896 (split_branches): Fix calls of redirect_jump.
12897 * dojump.c (jumpifnot): Promote argument type from rtx to
12899 (jumpifnot_1): Likewise.
12900 (jumpif): Likewise.
12901 (jumpif_1): Likewise.
12902 (do_jump_1): Likewise.
12903 (do_jump): Likewise. Use rtx_code_label when feasible.
12904 (do_jump_by_parts_greater_rtx): Likewise.
12905 (do_jump_by_parts_zero_rtx): Likewise.
12906 (do_jump_by_parts_equality_rtx): Likewise.
12907 (do_compare_rtx_and_jump): Likewise.
12908 * dojump.h: Update function prototypes.
12909 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
12911 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
12913 (emit_label_before): Likewise.
12914 (emit_jump_insn_after_noloc): Likewise.
12915 (emit_jump_insn_after_setloc): Likewise.
12916 (emit_jump_insn_after): Likewise
12917 (emit_jump_insn_before_setloc): Likewise.
12918 (emit_jump_insn_before): Likewise.
12919 (emit_label_before): Promote return type to rtx_code_label.
12920 (emit_label): Likewise.
12921 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
12922 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
12924 (emit_stack_restore): Likewise.
12925 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
12926 (do_cmp_and_jump): Likewise.
12927 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
12928 from rtx to rtx_code_label.
12929 (gen_move_insn_uncast): New function.
12930 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
12931 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
12932 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
12933 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
12934 invert_jump_1 and redirect_jump_1.
12935 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
12936 do_compare_rtx_and_jump.
12937 (expand_addsub_overflow): Likewise.
12938 (expand_neg_overflow): Likewise.
12939 (expand_mul_overflow): Likewise.
12940 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
12941 return value of gen_move_insn.
12942 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
12943 * loop-doloop.c (add_test): Use rtx_code_label.
12944 (doloop_modify): Likewise.
12945 (doloop_optimize): Likewise.
12946 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
12947 * lra-constraints.c (emit_spill_move): Remove cast of value returned
12949 (inherit_reload_reg): Add cast when calling dump_insn_slim.
12950 (split_reg): Likewise.
12951 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
12953 * optabs.c (expand_binop_directly): Remove casts of values returned by
12955 (expand_unop_direct): Likewise.
12956 (expand_abs): Likewise.
12957 (maybe_emit_unop_insn): Likewise.
12958 (maybe_gen_insn): Promote return type to rtx_insn.
12959 * optabs.h: Update prototype of maybe_gen_insn.
12960 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
12962 * recog.c (struct peep2_insn_data): Promote type of insn field to
12964 (peep2_reinit_state): Use NULL instead of NULL_RTX.
12965 (peep2_attempt): Remove casts of insn in peep2_insn_data.
12966 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
12967 * recog.h (struct insn_gen_fn): Promote return types of function
12968 pointers and operator ().from rtx to rtx_insn.
12969 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
12970 (fill_eager_delay_slots): Likewise.
12971 (relax_delay_slots): Likewise.
12972 (make_return_insns): Likewise.
12973 (dbr_schedule): Likewise.
12974 (optimize_skips): Likewise.
12975 (reorg_redirect_jump): Likewise.
12976 (fill_slots_from_thread): Likewise.
12977 * reorg.h: Update prototypes.
12978 * resource.c (find_dead_or_set_registers): Use dyn_cast to
12979 rtx_jump_insn instead of check. Use it's jump_target method.
12980 * rtl.h (rtx_jump_insn::jump_label): Define new method.
12981 (rtx_jump_insn::jump_target): Define new method.
12982 (rtx_jump_insn::set_jump_target): Define new method.
12983 * rtlanal.c (tablejump_p): Promote type of one local variable.
12984 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
12985 (sched_analyze_insn): Likewise.
12986 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
12987 (print_insn): Likewise.
12988 * stmt.c (label_rtx): Promote return type to rtx_insn.
12989 (force_label_rtx): Likewise.
12990 (jump_target_rtx): Define new function.
12991 (expand_label): Use it, get rid of one cast.
12992 (expand_naked_return): Promote rtx to rtx_code_label.
12993 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
12994 (expand_case): Use rtx_code_label instread of rtx where feasible.
12995 (expand_sjlj_dispatch_table): Likewise.
12996 (emit_case_nodes): Likewise.
12997 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
12998 * store-motion.c (insert_store): Make use of new return type of
12999 gen_move_insn and remove a cast.
13000 (replace_store_insn): Likewise.
13002 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
13004 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
13005 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
13007 2015-05-20 Jeff Law <law@redhat.com>
13009 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
13010 dispose of the jump thread path when the jump threading
13011 opportunity is cancelled.
13013 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13015 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
13016 when printing the caret character.
13018 2015-05-20 Marek Polacek <polacek@redhat.com>
13020 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
13022 2015-05-20 Marek Polacek <polacek@redhat.com>
13024 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
13025 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
13026 * gimple-fold.c (canonicalize_bool): Likewise.
13027 (same_bool_result_p): Likewise.
13028 * tree-if-conv.c (parse_predicate): Likewise.
13030 2015-05-20 Marek Polacek <polacek@redhat.com>
13032 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
13033 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
13035 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13037 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
13038 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
13041 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
13043 * config/mips/mips.h (micromips_globals): Declare.
13045 2015-05-20 David Malcolm <dmalcolm@redhat.com>
13047 * timevar.def (TV_INITIALIZE_RTL): New.
13048 * toplev.c (initialize_rtl): Use an auto_timevar to account this
13049 function's time to TV_INITIALIZE_RTL.
13051 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
13053 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
13054 gimple_build_nop calls.
13055 (chkp_find_bounds_for_elem): Likewise.
13056 (chkp_get_zero_bounds): Likewise.
13057 (chkp_get_none_bounds): Likewise.
13058 (chkp_get_bounds_by_definition): Likewise.
13059 (chkp_generate_extern_var_bounds): Likewise.
13060 (chkp_get_bounds_for_decl_addr): Likewise.
13061 (chkp_get_bounds_for_string_cst): Likewise.
13063 2015-05-20 Bin Cheng <bin.cheng@arm.com>
13065 PR tree-optimization/65447
13066 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
13067 (dump_use, dump_uses): Support to dump sub use.
13068 (record_use): New parameters to support sub use. Remove call to
13070 (record_sub_use, record_group_use): New functions.
13071 (compute_max_addr_offset, split_all_small_groups): New functions.
13072 (group_address_uses, rewrite_use_address): New functions.
13073 (strip_offset): New declaration.
13074 (find_interesting_uses_address): Call record_group_use.
13075 (add_candidate): New assertion.
13076 (infinite_cost_p): Move definition forward.
13077 (add_costs): Check INFTY cost and return immediately.
13078 (get_computation_cost_at): Clear setup cost and dependent bitmap
13080 (determine_use_iv_cost_address): Compute cost for sub uses.
13081 (rewrite_use_address_1): Rename from old rewrite_use_address.
13082 (free_loop_data): Free sub uses.
13083 (tree_ssa_iv_optimize_loop): Call group_address_uses.
13085 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13086 Jim Wilson <jim.wilson@linaro.org>
13088 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
13089 new fields loadv and storev.
13090 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
13091 Initialize loadv and storev.
13092 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
13093 (cortexa53_extra_costs): Likewise.
13094 (cortexa57_extra_costs): Likewise.
13095 (xgene1_extra_costs): Likewise.
13096 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
13099 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13101 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
13103 (cortexa8_extra_costs): Likewise.
13104 (cortexa5_extra_costs): Likewise.
13105 (cortexa7_extra_costs): Likewise.
13106 (cortexa12_extra_costs): Likewise.
13107 (cortexa15_extra_costs): Likewise.
13108 (v7m_extra_costs): Likewise.
13110 2015-05-20 Jeff Law <law@redhat.com>
13112 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
13113 instead of open-coded version. Also delete the jump thread created
13114 within this function.
13116 2015-05-20 Alan Modra <amodra@gmail.com>
13118 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
13119 stack adjusting insn. Formatting.
13120 (rs6000_emit_prologue): Track stack adjusting insn, and use of
13121 r12. If possible, emit first -fsplit-stack arg pointer insn
13122 before stack adjust. Don't use r12 to save cr if split-stack.
13124 2015-05-20 Alan Modra <amodra@gmail.com>
13126 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
13128 (rs6000_supports_split_stack): New function.
13129 * gcc/config/rs6000/rs6000.c (machine_function): Add
13130 split_stack_arg_pointer.
13131 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
13132 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
13133 rather than virtual_incoming_args_rtx.
13134 (rs6000_va_start): Likewise.
13135 (split_stack_arg_pointer_used_p): New function.
13136 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
13137 (morestack_ref): New var.
13138 (gen_add3_const, rs6000_expand_split_stack_prologue,
13139 rs6000_internal_arg_pointer, rs6000_live_on_entry,
13140 rs6000_split_stack_space_check): New functions.
13141 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
13142 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
13143 (UNSPECV_SPLIT_STACK_RETURN): Define.
13144 (split_stack_prologue, load_split_stack_limit,
13145 load_split_stack_limit_di, load_split_stack_limit_si,
13146 split_stack_return, split_stack_space_check): New expands and insns.
13147 * gcc/config/rs6000/rs6000-protos.h
13148 (rs6000_expand_split_stack_prologue): Declare.
13149 (rs6000_split_stack_space_check): Declare.
13151 2015-05-20 Alan Modra <amodra@gmail.com>
13153 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
13154 (direct_return): Test vrsave_size rather than vrsave_mask.
13155 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
13156 (rs6000_emit_epilogue): Likewise.
13158 2015-05-20 Alan Modra <amodra@gmail.com>
13160 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
13161 when not saving registers.
13162 (debug_stack_info): Adjust to omit printing unused offsets,
13164 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
13167 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13170 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
13171 value_type to const char *.
13173 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
13175 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
13176 to build a biarch toolchain again.
13178 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
13180 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
13181 or implicit declarations.
13182 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
13184 (get_odr_type): Check type has linkage before adding bases.
13185 (register_odr_type): Check that type has linkage before adding it.
13186 (type_known_to_have_no_deriavations_p): Rename to ..
13187 (type_known_to_have_no_derivations_p): This one.
13188 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
13189 (type_known_to_have_no_derivations_p): This one.
13190 * ipa-polymorphic-call.c
13191 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
13194 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
13196 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
13197 (layout_type): Use RECORD_OR_UNION_TYPE_P.
13199 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13201 * config/s390/s390.c (s390_vector_bool_type_p): New function.
13202 (s390_invalid_binary_op): New function.
13203 (TARGET_INVALID_BINARY_OP): Define macro.
13205 2015-05-19 David Sherwood <david.sherwood@arm.com>
13207 * loop-invariant.c (create_new_invariant): Don't calculate address cost
13208 if mode is not a scalar integer.
13209 (get_inv_cost): Increase computational cost for unused invariants.
13211 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13213 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
13214 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
13215 * config/s390/s390-builtin-types.def: New file.
13216 * config/s390/s390-builtins.def: New file.
13217 * config/s390/s390-builtins.h: New file.
13218 * config/s390/s390-c.c: New file.
13219 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
13220 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
13221 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
13222 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
13224 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
13226 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
13227 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
13228 variable definitions.
13229 (s390_const_operand_ok): New function.
13230 (s390_expand_builtin): Rewrite.
13231 (s390_init_builtins): New function.
13232 (s390_handle_vectorbool_attribute): New function.
13233 (s390_attribute_table): Add s390_vector_bool attribute.
13234 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
13235 (s390_branch_condition_mask): Generate masks for new modes.
13236 (s390_expand_vec_compare_cc): New function.
13237 (s390_mangle_type): Add mangling for vector bool types.
13238 (enum s390_builtin): Remove.
13239 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
13241 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
13242 s390_cpu_cpp_builtins.
13243 (REGISTER_TARGET_PRAGMAS): New macro.
13244 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
13245 (insn_cmp mode attribute): Add new CC modes.
13246 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
13247 (lcbb): New pattern definition.
13248 * config/s390/s390intrin.h: Include vecintrin.h.
13249 * config/s390/t-s390: New file.
13250 * config/s390/vecintrin.h: New file.
13251 * config/s390/vector.md: Include vx-builtins.md.
13252 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
13255 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13257 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
13259 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
13260 (s390_select_ccmode): Likewise.
13261 (s390_canonicalize_comparison): Swap operands if necessary.
13262 (s390_expand_vec_compare_scalar): Expand DFmode compare using
13263 single element vector instructions.
13264 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
13265 (s390_branch_condition_mask): Generate CC masks for the new modes.
13266 * config/s390/s390.md (v0, vf, vd): New mode attributes.
13267 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
13268 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
13269 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
13270 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
13271 (*extend<DSF:mode><BFP:mode>2): New insn definition.
13272 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
13273 (extend<DSF:mode><BFP:mode>2): Turn into expander.
13274 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
13275 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
13276 (sqrt<mode>2): Add vector instruction.
13278 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13280 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
13282 * config/s390/predicates.md (const0_operand, constm1_operand)
13283 (constable_operand): Accept vector operands.
13284 * config/s390/s390-modes.def: Add supported vector modes.
13285 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
13286 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
13287 (s390_bytemask_vector_p, s390_expand_vec_strlen)
13288 (s390_expand_vec_compare, s390_expand_vcond)
13289 (s390_expand_vec_init): Add prototypes.
13290 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
13291 (s390_vector_mode_supported_p): New function.
13292 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
13293 (s390_contiguous_bitmask_vector_p): New function.
13294 (s390_bytemask_vector_p): New function.
13295 (s390_split_ok_p): Vector regs don't work either.
13296 (regclass_map): Add VEC_REGS.
13297 (s390_legitimate_constant_p): Handle vector constants.
13298 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
13299 (legitimate_reload_vector_constant_p): New function.
13300 (s390_preferred_reload_class): Handle CONST_VECTOR.
13301 (s390_reload_symref_address): Likewise.
13302 (s390_secondary_reload): Vector memory instructions only support
13303 short displacements. Rename reload*_nonoffmem* to reload*_la*.
13304 (s390_emit_ccraw_jump): New function.
13305 (s390_expand_vec_strlen): New function.
13306 (s390_expand_vec_compare): New function.
13307 (s390_expand_vcond): New function.
13308 (s390_expand_vec_init): New function.
13309 (s390_dwarf_frame_reg_mode): New function.
13310 (print_operand): Handle addresses with 'O' and 'R' constraints.
13311 (NR_C_MODES, constant_modes): Add vector modes.
13312 (s390_output_pool_entry): Handle vector constants.
13313 (s390_hard_regno_mode_ok): Handle vector registers.
13314 (s390_class_max_nregs): Likewise.
13315 (s390_cannot_change_mode_class): New function.
13316 (s390_invalid_arg_for_unprototyped_fn): New function.
13317 (s390_function_arg_vector): New function.
13318 (s390_function_arg_float): Remove size variable.
13319 (s390_pass_by_reference): Handle vector arguments.
13320 (s390_function_arg_advance): Likewise.
13321 (s390_function_arg): Likewise.
13322 (s390_return_in_memory): Vector values are returned in a VR if
13324 (s390_function_and_libcall_value): Handle vector arguments.
13325 (s390_gimplify_va_arg): Likewise.
13326 (s390_call_saved_register_used): Consider the arguments named.
13327 (s390_conditional_register_usage): Disable v16-v31 for non-vec
13329 (s390_preferred_simd_mode): New function.
13330 (s390_support_vector_misalignment): New function.
13331 (s390_vector_alignment): New function.
13332 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
13333 (TARGET_VECTOR_MODE_SUPPORTED_P)
13334 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
13335 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
13336 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
13337 (TARGET_VECTOR_ALIGNMENT): Define target macro.
13338 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
13339 (FIRST_PSEUDO_REGISTER): Increase value.
13340 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
13341 (VECTOR_REG_P): Define macros.
13342 (FIXED_REGISTERS, CALL_USED_REGISTERS)
13343 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
13344 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
13345 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
13346 Add vector registers.
13347 (CANNOT_CHANGE_MODE_CLASS): Call C function.
13348 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
13349 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
13351 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
13352 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
13353 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
13354 (VR*_REGNUM): New constants.
13355 (ALL): New mode iterator.
13356 (INTALL): Remove mode iterator.
13358 (movti): Implement TImode moves for VRs.
13359 Disable TImode splitter for VR targets.
13360 Implement splitting TImode GPR<->VR moves.
13361 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
13362 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
13363 reload<mode>_la_in, reload<mode>_la_out.
13364 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
13365 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
13366 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
13367 (mov<mode> SF SD): Prefer lder, lde for loading.
13368 Add lrl and strl instructions.
13369 Add vector instructions.
13370 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
13371 Call s390_expand_vec_strlen on z13.
13372 (*cc_to_int): Change predicate to nonimmediate_operand.
13373 (addti3): Rename to *addti3. New expander.
13374 (subti3): Rename to *subti3. New expander.
13375 * config/s390/vector.md: New file.
13377 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13379 * common/config/s390/s390-common.c (processor_flags_table): Add
13381 * config.gcc: Add z13.
13382 * config/s390/s390-opts.h (enum processor_type): Add
13383 PROCESSOR_2964_Z13.
13384 * config/s390/s390.c (s390_adjust_priority): Check for
13385 PROCESSOR_2964_Z13.
13386 (s390_reorg): Likewise.
13387 (s390_sched_reorder): Likewise.
13388 (s390_sched_variable_issue): Likewise.
13389 (s390_loop_unroll_adjust): Likewise.
13390 (s390_option_override): Likewise. Default to -mvx when available.
13391 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
13392 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
13393 (TARGET_VX_ABI): Define macros.
13395 (TARGET_DEFAULT): Add MASK_OPT_VX.
13396 * config/s390/s390.md ("cpu" attribute): Add z13.
13397 ("cpu_facility" attribute): Add vec.
13398 * config/s390/s390.opt (processor_type): Add z13.
13399 (mvx): New options.
13400 * doc/invoke.texi: Add z13 option for -march.
13402 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13404 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
13405 mode check to make sure that only scalar integer values are
13408 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
13410 * tree.c (verify_type_variant): Fix #undef.
13411 (gimple_canonical_types_compatible_p): Move here from lto.c
13412 (verify_type): Verify TYPE_CANONICAL compatibility.
13413 * tree.h (gimple_canonical_types_compatible_p): Declare.
13415 2015-05-19 Jakub Jelinek <jakub@redhat.com>
13417 PR middle-end/66199
13418 * tree.h (OMP_TEAMS_COMBINED): Define.
13419 * gimplify.c (enum gimplify_omp_var_data): Add
13420 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
13421 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
13422 (omp_notice_variable): Accept both ORT_TEAMS
13423 and ORT_COMBINED_TEAMS. Don't recurse if
13424 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
13425 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
13427 (omp_no_lastprivate): New function.
13428 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
13429 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
13430 notice_outer and set appropriate bits, otherwise make
13431 sure default(none) combined constructs won't complain.
13432 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
13433 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
13434 omp_no_lastprivate either remove the clause or turn it
13435 into OMP_CLAUSE_PRIVATE.
13436 (gimplify_omp_for): Fix up handling of implicit
13437 lastprivate or linear iterators.
13438 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
13439 ORT_COMBINED_TEAMS.
13440 * omp-low.c (lower_omp_for_lastprivate): For combined
13441 for simd use fd.loop.n2 from the for rather than simd.
13443 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13445 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
13446 instead of gen_rtx_raw_REG.
13447 (cris_expand_epilogue): Likewise.
13448 * config/microblaze/microblaze.c (microblaze_classify_address):
13450 * config/sparc/sparc.md: Likewise.
13452 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
13454 * config/alpha/alpha.c (alpha_legitimize_reload_address)
13455 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
13456 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
13457 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
13458 Use CASE_CONST_SCALAR_INT.
13459 (print_operand) <case 'M'>: Use mode_width_operand to check the
13460 value of the constant.
13461 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
13462 * config/alpha/predicates.md (input_operand): Use general_operand
13463 instead of match_code as operand check.
13464 (symbolic_operand): Use match_code with subexpression digits.
13465 * config/alpha/constraints.md (Q): Ditto.
13467 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13469 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
13471 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13473 * config/s390/s390.c (s390_secondary_reload): Fix check for
13474 load/store relative.
13476 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13478 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
13479 alternative_mask to uint64_t.
13481 2015-05-19 Jakub Jelinek <jakub@redhat.com>
13483 PR tree-optimization/66187
13484 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
13485 Pass TYPE_SIGN to tree_int_cst_min_precision. If
13486 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
13488 2015-05-19 David Malcolm <dmalcolm@redhat.com>
13490 * diagnostic.c (diagnostic_report_current_module): Strengthen
13491 local "new_map" from const line_map * to
13492 const line_map_ordinary *.
13493 * genmatch.c (error_cb): Likewise for local "map".
13494 (output_line_directive): Likewise for local "map".
13495 * input.c (expand_location_1): Likewise for local "map".
13496 Pass NULL rather than &map to
13497 linemap_unwind_to_first_non_reserved_loc, since the value is never
13498 read from there, and the value written back not read from here.
13499 (is_location_from_builtin_token): Strengthen local "map" from
13500 const line_map * to const line_map_ordinary *.
13501 (dump_location_info): Strengthen locals "map" from
13502 line_map *, one to const line_map_ordinary *, the other
13503 to const line_map_macro *.
13504 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
13505 const line_map * to const line_map_macro *.
13506 (maybe_unwind_expanded_macro_loc): Add a call to
13507 linemap_check_macro when writing to the "map" field of the
13509 Introduce local const line_map_ordinary * "ord_map", using it in
13510 place of "map" in the part of the function where we know we have
13511 an ordinary map. Strengthen local "m" from const line_map * to
13512 const line_map_ordinary *.
13514 2015-05-19 Nick Clifton <nickc@redhat.com>
13517 * config/msp430/msp430.md (zero_extendhisi2): Add support for
13518 separate source and destination registers.
13520 2015-05-19 Richard Biener <rguenther@suse.de>
13522 PR tree-optimization/66165
13523 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
13524 for no load permutation.
13526 PR tree-optimization/66185
13527 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
13528 when building the SLP node from scalars.
13530 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
13531 Tristan Gingold <gingold@adacore.com>
13533 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
13534 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
13535 (expand_stack_restore): Call record_new_stack_level.
13536 (expand_stack_save): Do not call do_pending_stack_adjust.
13537 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
13538 * calls.c (expand_call): Call record_new_stack_level for alloca.
13539 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
13540 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
13541 (update_sjlj_context): New global function.
13542 * except.h (update_sjlj_context): Declare.
13543 * explow.c (record_new_stack_level): New global function.
13544 (allocate_dynamic_stack_space): Call record_new_stack_level.
13545 * explow.h (record_new_stack_level): Declare.
13546 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
13547 * cfgrtl.c (duplicate_insn_chain): Likewise.
13549 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13551 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
13552 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
13553 STACK_GROWS_DOWNWARD as normal if.
13554 (expand_call): Likewise.
13556 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
13559 * config/sh/sh.md (*round_int_even): New insn_and_split and
13560 accompanying new unnamed split.
13562 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13564 * bitmap.c (bitmap_set_range): Handle count==1 specially.
13565 (bitmap_clear_range): Likewise.
13566 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
13567 bitmap_set_range unconditionally.
13568 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
13569 * df-scan.c (df_mark_reg): Likewise.
13570 * haifa-sched.c (setup_ref_regs): Likewise.
13571 * sched-rgn.c (update_live_1): Likewise.
13573 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13575 * regs.h (END_HARD_REGNO): Delete.
13576 (END_REGNO): Move to...
13578 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
13579 * caller-save.c (mark_set_regs): Likewise.
13580 * combine.c (move_deaths, distribute_notes): Likewise.
13581 * cse.c (invalidate, invalidate_for_call): Likewise.
13582 * df-scan.c (df_ref_record): Likewise.
13583 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
13584 (record_last_reg_set_info): Likewise.
13585 * reg-stack.c (convert_regs_exit): Likewise.
13586 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
13587 * resource.c (update_live_status): Likewise.
13588 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
13590 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13592 * rtl.h (reg_info): Add an nregs field.
13593 (REG_NREGS): Use it.
13594 (SET_REGNO_RAW): Delete.
13595 (set_regno_raw): New function.
13596 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
13597 (END_REGNO): Redefine in terms of REG_NREGS.
13598 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
13600 * emit-rtl.c (set_mode_and_regno): Likewise.
13601 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
13602 instead of SET_REGNO_RAW.
13604 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13606 * rtl.h (PUT_MODE_RAW): New macro.
13607 (PUT_REG_NOTE_KIND): Use it.
13608 (set_mode_and_regno): Declare.
13609 (gen_raw_REG): Change regno to "unsigned int".
13610 (gen_rtx_REG): Change "unsigned" to "unsigned int".
13611 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
13612 use set_mode_and_regno to change the mode of registers.
13613 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
13614 * emit-rtl.c (set_mode_and_regno): New function.
13615 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
13616 * caller-save.c (reg_save_code): Use set_mode_and_regno.
13617 * expr.c (init_expr_target): Likewise.
13618 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13619 * postreload.c (reload_cse_simplify_operands): Likewise.
13621 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13623 * caller-save.c (init_caller_save): Use word_mode and
13624 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
13625 * expr.c (init_expr_target): Likewise.
13626 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13627 * postreload.c (reload_cse_regs_1): Likewise.
13629 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13631 * rtl.def (REG): Change format to "r".
13632 * rtl.h (rtunion): Remove rt_reg.
13633 (reg_info): New structure.
13634 (rtx_def): Add reg field to main union.
13635 (X0REGATTR): Delete.
13636 (REG_CHECK): New macro.
13637 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
13638 * rtl.c (rtx_format): Document "r".
13639 (rtx_code_size): Handle REG specially.
13640 * gengenrtl.c (special_format): Return true for formats
13642 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
13643 Deal with REG_ATTRS after the field loop.
13644 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
13645 * expmed.c (init_expmed): Call gen_raw_REG instead of
13647 * expr.c (init_expr_target): Likewise.
13648 * regcprop.c (maybe_mode_change): Likewise.
13649 * varasm.c (make_decl_rtl): Likewise.
13650 * final.c (leaf_renumber_regs_insn): Return early after
13652 * genemit.c (gen_exp): Handle 'r' fields.
13653 * genpeep.c (match_rtx): Likewise.
13654 * gensupport.c (subst_pattern_match): Likewise.
13655 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
13656 (alter_constraints, subst_dup): Likewise.
13657 * read-rtl.c (read_rtx_code): Likewise.
13658 * print-rtl.c (print_rtx): Likewise.
13659 * genrecog.c (find_operand, find_matching_operand): Likewise.
13660 (validate_pattern, match_pattern_2): Likewise.
13661 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
13662 (rtx_test::regno_field): New function.
13663 (operator ==, safe_to_hoist_p, transition_parameter_type)
13664 (parameter_type_string, print_parameter_value)
13665 (print_nonbool_test, print_test): Handle new enum values.
13666 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
13667 * lra-constraints.c (operands_match_p): Likewise.
13669 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13671 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
13672 Change type of new_regno to unsigned int.
13673 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
13674 new_regno to unsigned int.
13675 (df_ref_change_reg_with_loc): Remove old_regno parameter.
13676 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
13677 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
13678 (SET_REGNO_RAW): Add space after ",".
13680 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13682 * rtl.h (REG_NREGS): New macro
13683 * alias.c (record_set): Use it.
13684 * cfgcleanup.c (mark_effect): Likewise.
13685 * combine.c (likely_spilled_retval_1): Likewise.
13686 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
13687 (move_deaths, distribute_notes): Likewise.
13688 * cselib.c (cselib_record_set): Likewise.
13689 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
13690 * df-scan.c (df_mark_reg): Likewise.
13691 * dse.c (look_for_hardregs): Likewise.
13692 * dwarf2out.c (reg_loc_descriptor): Likewise.
13693 (multiple_reg_loc_descriptor): Likewise.
13694 * expr.c (write_complex_part, read_complex_part): Likewise.
13695 (emit_move_complex): Likewise.
13696 * haifa-sched.c (setup_ref_regs): Likewise.
13697 * ira-lives.c (mark_hard_reg_live): Likewise.
13698 * lra.c (lra_set_insn_recog_data): Likewise.
13699 * mode-switching.c (create_pre_exit): Likewise.
13700 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
13701 (reload_combine_recognize_pattern): Likewise.
13702 (reload_combine_note_use, move2add_record_mode): Likewise.
13703 (reload_cse_move2add): Likewise.
13704 * reg-stack.c (subst_stack_regs_pat): Likewise.
13705 * regcprop.c (kill_value, copy_value): Likewise.
13706 (copyprop_hardreg_forward_1): Likewise.
13707 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
13708 (build_def_use): Likewise.
13709 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
13710 (deps_analyze_insn): Likewise.
13711 * sched-rgn.c (check_live_1, update_live_1): Likewise.
13712 * sel-sched.c (count_occurrences_equiv): Likewise.
13713 * valtrack.c (dead_debug_insert_temp): Likewise.
13715 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13717 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
13718 * dse.c (note_add_store): Likewise.
13719 * ira-lives.c (mark_hard_reg_dead): Likewise.
13720 * loop-invariant.c (mark_reg_store): Likewise.
13721 (mark_reg_death): Likewise.
13722 * postreload.c (reload_combine): Likewise.
13723 (reload_combine_note_store): Likewise.
13724 (reload_combine_note_use): Likewise.
13725 * recog.c (peep2_reg_dead_p): Likewise.
13727 2015-05-19 Alan Modra <amodra@gmail.com>
13729 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
13730 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
13731 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
13733 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
13734 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
13735 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
13736 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
13738 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
13740 * config/mips/mips.md (JOIN_MODE): New mode iterator.
13741 (join2_load_Store<JOIN_MODE:mode>): New pattern.
13742 (join2_loadhi): Likewise.
13743 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
13744 load-load and store-stores.
13745 * config/mips/mips.opt (mload-store-pairs): New option.
13746 (TARGET_LOAD_STORE_PAIRS): New macro.
13747 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
13748 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
13749 * config/mips/mips.c (mips_load_store_bonding_p): New function.
13751 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
13753 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
13755 * dojump.c (do_compare_rtx_and_jump): Likewise.
13756 * expmed.c (emit_store_flag_1): Likewise.
13757 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
13758 * final.c (sprint_ul): Use std::reverse for reversing a string.
13759 * fold-const.c (extract_muldiv_1): Use std::swap.
13760 * genmodes.c (emit_mode_int_n): Likewise.
13761 * ifcvt.c (dead_or_predicable): Likewise.
13762 * ira-build.c (ira_merge_live_ranges): Likewise.
13763 (swap_allocno_copy_ends_if_necessary): Likewise.
13764 * ira.c (ira_setup_alts): Likewise.
13765 * loop-iv.c (iv_analyze_expr): Likewise.
13766 (implies_p): Likewise.
13767 (canon_condition): Likewise.
13768 * lra-constraints.c (swap_operands): Likewise.
13769 * lra-lives.c (lra_merge_live_ranges): Likewise.
13770 * omega.c (swap): Remove.
13772 (omega_unprotect_1): Use std::swap.
13773 (omega_solve_geq): Likewise.
13774 * optabs.c (expand_binop_directly): Likewise.
13775 (expand_binop): Likewise.
13776 (emit_conditional_move): Likewise.
13777 (emit_conditional_add): Likewise.
13778 * postreload.c (reload_cse_simplify_operands): Likewise.
13779 * reg-stack.c (emit_swap_insn): Likewise.
13780 (swap_to_top): Likewise.
13781 (compare_for_stack_reg): Likewise.
13782 (subst_asm_stack_regs): Likewise.
13783 * reload.c (find_reloads): Likewise.
13784 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
13785 * sel-sched.c (invoke_reorder_hooks): Likewise.
13786 (create_block_for_bookkeeping): Likewise.
13787 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
13788 (lambda_matrix_right_hermite): Use std::swap.
13789 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
13790 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13791 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
13792 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
13793 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
13794 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
13795 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13796 * tree-vrp.c (compare_ranges): Likewise.
13797 * var-tracking.c (add_with_sets): Likewise.
13798 (vt_find_locations): Likewise.
13800 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
13802 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
13804 (FBSD_ENDFILE_SPEC): Likewise.
13805 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
13806 config/freebsd-spec.h.
13807 (ENDFILE_SPEC): Likewise.
13809 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
13810 Richard Henderson <rth@redhat.com>
13813 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
13814 Check for a memory location that is not a reference (using an AND)
13815 to an unaligned location here.
13816 * config/alpha/predicates.md (normal_memory_operand): Remove.
13818 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
13820 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
13821 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
13823 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
13825 * config/mips/mips.c (micromips_globals): New variable.
13826 (mips_set_compression_mode): Save and reinitialize target-dependent
13827 state for microMIPS.
13829 2015-05-18 Martin Liska <mliska@suse.cz>
13831 * dbgcnt.def: Add new counter.
13832 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
13834 2015-05-18 Martin Liska <mliska@suse.cz>
13836 * dbgcnt.def: Sort counters.
13837 * opts.c (common_handle_option): Do not compile if
13838 -fdbg-cnt-list is enabled.
13840 2015-05-18 Tom de Vries <tom@codesourcery.com>
13842 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
13843 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
13844 address operator to va_list operand.
13845 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
13847 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
13849 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
13850 * config/s390/s390.c (s390_gimplify_va_arg): Same.
13851 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
13853 2015-05-18 Tom de Vries <tom@codesourcery.com>
13855 * tree-ssa-tail-merge.c: Fix whitespace.
13857 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
13859 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
13860 cortex-a17, and cortex-a17.cortex-a7.
13862 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
13865 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
13867 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
13870 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
13871 QImode inner modes for TARGET_AVX512BW. Force mask operand
13872 to a register for AVX512F modes.
13874 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13876 * toplev.c (emit_debug_global_declarations): Do not output debug info
13877 when doing slim LTO objects.
13879 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13881 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
13882 odr_types_equivalent_p): Declare.
13883 (odr_type_p): Use gcc_checking_assert.
13884 (type_in_anonymous_namespace_p) Declare.
13885 (type_with_linkage_p): Declare.
13886 * common.opt (Wlto-type-mismatch): New warning.
13887 * ipa-devirt.c (compound_type_base): New function.
13888 (odr_or_derived_type_p): New function.
13889 (odr_types_equivalent_p): New function.
13890 (add_type_duplicate): Simplify.
13891 (type_with_linkage_p): Add hack to prevent false positives on C types
13892 (type_in_anonymous_namespace_p): Likewise.
13893 * tree.c (need_assembler_name_p): Use type_with_linkage.
13894 * tree.h (type_in_anonymous_namespace_p): Remove.
13895 * doc/invoke.texi (-Wlto-type-mismatch): Document
13897 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13899 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
13900 (verify_type): Verify STRING_FLAG.
13902 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
13905 * tree-pretty-print.c (percent_K_format): Replace locus pointer
13906 with accessor function.
13907 * tree-diagnostic.c (diagnostic_report_current_function): Use
13908 diagnostic_location function.
13909 (maybe_unwind_expanded_macro_loc): Likewise.
13910 (virt_loc_aware_diagnostic_finalizer): Likewise.
13911 (default_tree_printer): Replace locus pointer with accessor function.
13912 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
13913 (diagnostic_set_info_translated): Initialize second location.
13914 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
13915 (diagnostic_show_locus): Handle two locations. Call
13916 diagnostic_print_caret_line.
13917 (diagnostic_print_caret_line): New.
13918 (default_diagnostic_starter): Use diagnostic_location function.
13919 (diagnostic_report_diagnostic): Use diagnostic_location function.
13920 (verbatim): Do not set text.locus.
13921 * diagnostic.h (struct diagnostic_info): Remove location field.
13922 (struct diagnostic_context): Make caret_chars an array of two.
13923 (diagnostic_location): New inline.
13924 (diagnostic_expand_location): Handle two locations.
13925 (diagnostic_same_line): New inline.
13926 (diagnostic_print_caret_line): Declare.
13927 (CARET_LINE_MARGIN): New constant.
13928 * pretty-print.c (pp_printf): Do not set text.locus.
13929 (pp_verbatim): Do not set text.locus.
13930 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
13931 (struct text_info): Replace locus pointer with locations
13932 array. Add accessor functions.
13934 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
13935 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13938 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
13939 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
13940 large constants in register instead of splitting them.
13942 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
13945 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
13946 replacements in memory addresses.
13947 (get_unaligned_address): Ditto.
13949 2015-05-16 James Bowman <james.bowman@ftdichip.com>
13951 * config/ft32/*: New files for FT32 port.
13952 * doc/install.texi: Add FT32 information.
13953 * doc/invoke.texi: Add FT32 information.
13954 * doc/md.texi: Add FT32 information.
13955 * doc/contrib.texi: Self added.
13957 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
13959 PR tree-optimization/64454
13960 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
13961 (-1 - A -> ~A): Remove unnecessary condition.
13963 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
13965 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
13966 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
13967 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
13969 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
13971 * ipa-chkp.h (chkp_wrap_function): New.
13972 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
13973 (chkp_wrap_function_name): New.
13974 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
13975 to get wrapper name.
13976 * lto-cgraph.c: Include ipa-chkp.h.
13977 (input_cgraph_1): Avoid alias chain for wrappers.
13979 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
13981 PR middle-end/66134
13982 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
13983 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
13985 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13987 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
13988 (AARCH64_FL_SLOWMUL): Delete.
13989 (AARCH64_FL_CRC): Redefine to 1<<3.
13990 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
13992 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13994 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
13997 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
13999 * config/alpha/alpha.md (extendqidi2): Use general_operand
14000 instead of some_operand for operand[1] predicate.
14001 (extendhidi2): Ditto.
14002 (cbranchdi4): Use general_operand instead of some_operand
14003 for operand[1] and operands[2] predicates.
14004 (cstoredi4): Ditto.
14005 * config/alpha/predicates.md (some_operand): Remove unused predicate.
14006 (some_ni_operand): Ditto.
14008 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
14010 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
14011 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
14012 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
14013 low part of the constant using alpha_emit_set_const_1.
14014 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
14016 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
14018 * varasm.c (output_constant_pool_1): Pass down alignment from
14019 constant pool entry's descriptor to output_constant_pool_2.
14020 (output_object_block): Add comment prior to call to
14021 output_constant_pool_1.
14023 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
14025 PR rtl-optimization/65862
14026 * target.def (ira_change_pseudo_allocno_class): New hook.
14027 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
14029 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
14030 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
14032 * ira-costs.c (find_costs_and_classes): Call the hook and change
14033 classes when it is necessary.
14034 * doc/tm.texi: Update.
14036 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
14038 * config/i386/i386.md (sibcall_memory): Check that register with
14039 callee address is not also used as one of the arguments, instead
14040 of checking that it is not live after the sibcall.
14041 (sibcall_pop_memory): Ditto.
14042 (sibcall_value_memory): Ditto.
14043 (sibcall_value_pop_memory): Ditto.
14045 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
14047 * generic-match-head.c (types_match): Handle non-types.
14048 * gimple-match-head.c (types_match): Likewise.
14049 * match.pd: Remove unnecessary TREE_TYPE for types_match.
14051 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
14053 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
14054 (csneg3<mode>_insn): Enable expansion of pattern.
14056 2015-05-14 Nick Clifton <nickc@redhat.com>
14058 * config/rl78/rl78.c (rl78_select_section): Select the correct
14059 default section based upon the category of the decl.
14061 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
14063 PR rtl-optimization/30967
14064 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
14065 destination mode for the cost of scc patterns.
14067 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
14069 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
14070 using SWIM248 mode iterator.
14071 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
14072 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
14073 for operand[2] constraint.
14074 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
14076 2015-05-13 Jakub Jelinek <jakub@redhat.com>
14078 PR middle-end/66133
14079 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
14080 make sure it is never noreturn, even when the task body does not
14082 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
14083 right before GIMPLE_OMP_RETURN.
14084 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
14085 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
14086 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
14088 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14090 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
14091 * tree-ssa-math-opts.c: Include params.h
14092 (pow_synth_sqrt_info): New struct.
14093 (representable_as_half_series_p): New function.
14094 (get_fn_chain): Likewise.
14095 (print_nested_fn): Likewise.
14096 (dump_fractional_sqrt_sequence): Likewise.
14097 (dump_integer_part): Likewise.
14098 (expand_pow_as_sqrts): Likewise.
14099 (gimple_expand_builtin_pow): Use above to attempt to expand
14100 pow as series of square roots. Removed now unused variables.
14102 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
14104 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
14105 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
14106 Remove *p0 and *p1 arguments. Rewrite function.
14107 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
14108 (alpha_split_const_mov): Update calls to alpha_extract_integer and
14109 alpha_emit_set_long_const.
14110 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
14111 (alpha_output_mi_thunk_osf): Ditto.
14112 * config/alpha/alpha.md (movti): Do not check operands[1]
14115 2015-05-13 Richard Biener <rguenther@suse.de>
14117 PR tree-optimization/66129
14118 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
14120 (vect_schedule_slp_instance): Fix typo.
14122 2015-05-13 David Malcolm <dmalcolm@redhat.com>
14124 * common.opt (fdump-internal-locations): New option.
14125 * input.c: Include diagnostic-core.h.
14126 (get_end_location): New function.
14127 (write_digit): New function.
14128 (write_digit_row): New function.
14129 (dump_location_range): New function.
14130 (dump_labelled_location_range): New function.
14131 (dump_location_info): New function.
14132 * input.h (dump_location_info): New prototype.
14133 * toplev.c (compile_file): Handle flag_dump_locations.
14135 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
14137 * gimple-expr.h (is_gimple_constant): Reorder.
14138 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
14140 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
14142 * combine.c (simplify_set): When generating a CC set, if the
14143 source already is in the correct mode, do not wrap it in a
14144 compare. Simplify the rest of that code.
14146 2015-05-13 Richard Biener <rguenther@suse.de>
14148 PR tree-optimization/66123
14149 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
14152 2015-05-13 Richard Biener <rguenther@suse.de>
14154 PR middle-end/66110
14155 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
14157 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
14159 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
14161 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
14162 * aclocal.m4: Regenerated with automake-1.11.6.
14164 2015-05-13 Tom de Vries <tom@codesourcery.com>
14166 PR tree-optimization/66010
14167 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
14168 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
14169 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
14170 and rval based on do_deref.
14172 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
14175 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
14176 link time constants into adress expressions and therefore set
14179 2015-05-13 Jakub Jelinek <jakub@redhat.com>
14182 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
14183 Use SWI248 iterator instead of SWI.
14184 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
14185 Use eq_attr "alternative" "0" instead of match_test in
14186 length_immediate attribute computation.
14187 (*mulvhi4, *mulvhi4_1): New define_insns.
14190 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
14191 SIGNED to get precision of non-negative value.
14193 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
14196 * function.c (diddle_return_value_1): Process bounds first.
14197 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
14200 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14202 PR rtl-optimization/64616
14203 * loop-invariant.c (can_move_invariant_reg): New.
14204 (move_invariant_reg): Call above new function to decide whether
14205 instruction can just be moved, skipping creation of temporary
14208 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
14210 PR target/pr66047.c
14211 * i386.c (ix86_function_sseregparm): Only return -1 if local function
14212 with implied regparm is called from -mno-sse function.
14213 (init_cumulative_args): Output error if ix86_function_sseregparm
14214 return -1 and SSE register would be needed.
14215 (function_arg_advance_32): Likewise.
14216 (function_arg_32): Likewise.
14217 * i386.h (ix86_args): Add decl field.
14219 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
14222 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
14223 inlines across optimization boundary.
14225 2015-05-12 Jason Merrill <jason@redhat.com>
14227 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
14228 string literal and macro name.
14230 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
14232 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
14233 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
14234 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
14236 2015-05-12 David Malcolm <dmalcolm@redhat.com>
14238 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
14239 (-Wmisleading-indentation): New option.
14240 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
14242 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
14244 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
14245 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
14246 (alpha_extract_integer): Ditto.
14247 (alpha_legitimate_constant_p): Ditto.
14248 (alpha_split_tmode_pair): Ditto.
14249 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
14250 (alpha_expand_mov): Ditto.
14251 (print_operand): Remove handling of 'H' modifier.
14252 <case 'm'>: Remove CONST_DOUBLE handling.
14253 (summarize_insn): Handle CONST_WIDE_INT.
14254 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
14256 (movti): Handle CONST_WIDE_INT.
14257 * config/alpha/constraints.md ('H'): Remove constraint definition.
14258 ('G'): Do not match MODE_FLOAT class.
14259 * config/alpha/predicates.md (const0_operand): Also match
14261 (non_add_const_operand): Ditto.
14262 (non_zero_const_operand): Ditto.
14263 (some_operand): Ditto.
14264 (input_operand): Ditto. Handle CONST_WIDE_INT.
14265 (and_operand): Do not match const_double.
14266 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
14268 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
14271 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
14272 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
14273 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
14274 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
14275 is_mm_seq_cst, is_mm_sync): New accessor functions.
14276 * builtins.c (expand_builtin_sync_operation,
14277 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
14278 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
14279 (get_memmodel, expand_builtin_atomic_compare_exchange,
14280 expand_builtin_atomic_load, expand_builtin_atomic_store,
14281 expand_builtin_atomic_clear): Use new accessor routines.
14282 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
14283 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
14284 (maybe_emit_sync_lock_test_and_set): Use new accessors and
14285 MEMMODEL_SYNC_ACQUIRE.
14286 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
14287 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
14288 expand_atomic_store): Use new accessors.
14289 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
14290 * tsan.c (instrument_builtin_call): Update check for memory model beyond
14291 final enum to use MEMMODEL_LAST.
14292 * c-family/c-common.c: Use new accessor for memmodel_base.
14293 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
14295 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
14296 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
14297 mem_thread_fence, *dmb): Likewise.
14298 * config/alpha/alpha.c (alpha_split_compare_and_swap,
14299 alpha_split_compare_and_swap_12): Likewise.
14300 * config/arm/arm.c (arm_expand_compare_and_swap,
14301 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
14302 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
14303 atomic_loaddi): Likewise.
14304 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
14306 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
14307 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
14309 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
14310 atomic_store<mode>, atomic_compare_and_swap<mode>,
14311 atomic_exchange<mode>): Use new accessors.
14312 * config/mips/mips.c (mips_process_sync_loop): Likewise.
14313 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
14314 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
14315 rs6000_post_atomic_barrier): Add new cases.
14316 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
14317 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
14318 (atomic_load<mode>): Add new cases and use new accessors.
14319 (store_quadpti): Add new cases.
14320 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
14322 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
14323 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
14326 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
14328 * ipa-devirt.c (type_with_linkage_p): New function.
14329 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
14331 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
14332 (can_be_name_hashed_p): Simplify.
14333 (hash_odr_name): Check that type has linkage before checking if it is
14335 (types_same_for_odr): Likewise.
14336 (odr_name_hasher::equal): Likewise.
14337 (odr_subtypes_equivalent_p): Likewise.
14338 (warn_types_mismatch): Likewise.
14339 (get_odr_type): Likewise.
14340 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
14341 * ipa-utils.h (odr_type_p): Move offline.
14342 * tree.c (need_assembler_name_p): Fix handling of types
14344 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
14346 2015-05-12 David Malcolm <dmalcolm@redhat.com>
14348 * timevar.c (timevar_enable): Delete in favor of...
14349 (g_timer): New global.
14350 (struct timevar_def): Move to timevar.h inside class timer.
14351 (struct timevar_stack_def): Likewise.
14352 (timevars): Delete global in favor of field "m_timevars" within
14353 class timer in timevar.h
14354 (stack): Likewise, in favor of field "m_stack".
14355 (unused_stack_instances): Likewise, in favor of field
14356 "m_unused_stack_instances".
14357 (start_time): Likewise, in favor of field "m_start_time".
14358 (get_time): Eliminate check for timevar_enable.
14359 (timer::timer): New function, built from part of timevar_init.
14360 (timevar_init): Rewrite idempotency test from using
14361 "timevar_enable" bool to using dynamic allocation of "g_timer".
14362 Move rest of implementation into timer's constructor.
14363 (timevar_push_1): Rename to...
14364 (timer::push): ...this, adding "m_" prefixes to variables that
14365 are now fields of timer.
14366 (timevar_pop_1): Likewise, rename to...
14367 (timer::pop): ...this, and add "m_" prefixes.
14368 (timevar_start): Replace test for "timevar_enable" with one for
14369 "g_timer", and move bulk of implementation to...
14370 (timer::start): ...here, adding "m_" prefixes.
14371 (timevar_stop): Likewise, from here...
14372 (timer::stop): ...to here.
14373 (timevar_cond_start): Likewise, from here...
14374 (timer::cond_start): ...to here.
14375 (timevar_cond_stop): Likewise, from here...
14376 (timer::cond_stop): ...to here.
14377 (validate_phases): Rename to...
14378 (timer::validate_phases): ...this, and add "m_" prefixes. Make
14379 locals "total" and "tv" const.
14380 (timevar_print): Rename to...
14381 (timer::print): ...this, and add "m_" prefixes. Make locals
14382 "total" and "tv" const. Eliminate test for timevar_enable.
14383 * timevar.h (timevar_enable): Eliminate.
14384 (g_timer): New declaration.
14385 (timevar_push_1): Eliminate.
14386 (timevar_pop_1): Eliminate.
14387 (timevar_print): Eliminate.
14388 (class timer): New class.
14389 (timevar_push): Rewrite to use g_timer.
14390 (timevar_pop): Likewise.
14391 * toplev.c (toplev::~toplev): Likewise.
14393 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
14395 * arm-protos.h (arm_sched_autopref): Delete.
14396 (tune_params): Re-organize, use enums for flag values.
14397 (FUSE_OPS): New macro.
14398 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
14399 (ARM_PREFETCH_BENEFICIAL): Likewise.
14400 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
14401 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
14402 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
14403 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
14404 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
14405 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
14406 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
14407 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
14409 (arm_option_override, thumb2_reorg, arm_print_tune_info)
14410 (aarch_macro_fusion_pair_p): Update uses of current_tune.
14411 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
14413 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
14415 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
14418 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
14419 Sandra Loosemore <sandra@codesourcery.com>
14421 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
14423 (REG_CLASS_NAMES): Add "IJMP_REGS".
14424 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
14425 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
14426 use new "c" register constraint.
14427 * config/nios2/constraint.md (c): New register constraint
14428 corresponding to IJMP_REGS.
14430 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
14432 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
14433 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
14434 define_splits): Delete, revamp, transmogrify into ...
14435 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
14436 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
14437 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
14440 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
14442 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
14443 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
14445 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
14447 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
14448 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
14449 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
14450 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
14451 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
14452 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
14453 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
14454 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
14455 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
14456 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14457 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
14458 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
14459 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
14460 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
14461 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
14462 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
14463 and 30 corresponding splitters): Delete.
14465 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
14467 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
14470 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
14472 * combine.c (recog_for_combine_1): New function, factored out
14473 from recog_for_combine.
14474 (change_zero_ext): New function.
14475 (recog_for_combine): If recog fails, try again with the pattern
14476 modified by change_zero_ext; if that still fails, restore the
14479 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
14481 * combine.c (get_undo_marker): New function.
14482 (undo_to_marker): New function, largely factored out from ...
14483 (undo_all): ... this. Adjust.
14485 2015-05-12 Richard Biener <rguenther@suse.de>
14487 PR tree-optimization/66101
14488 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
14489 fixup if we turn a loop exit edge to a fallthru edge.
14491 2015-05-12 Richard Biener <rguenther@suse.de>
14493 PR tree-optimization/37021
14494 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
14495 (SLP_TREE_TWO_OPERATORS): New define.
14496 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
14497 SLP_TREE_TWO_OPERATORS.
14498 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
14500 (vect_build_slp_tree): Adjust.
14501 (vect_analyze_slp_cost_1): Likewise.
14502 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
14503 emitting two vector stmts and mixing the results.
14505 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
14507 * call.c (print_z_candidates): Remove dead code.
14509 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14511 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
14512 and zEC12_simple_fp.
14513 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
14516 2015-05-12 Tom de Vries <tom@codesourcery.com>
14518 PR tree-optimization/66010
14519 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
14521 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
14522 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
14523 va_lists are passed, and remove corresponding handling.
14524 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
14525 do_deref argument to ifn_va_arg.
14526 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
14529 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14532 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
14533 REG before taking its REGNO.
14535 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
14537 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
14538 rsp->sign_bit_copies and rsp->nonzero_bits into ...
14539 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
14540 present to get more accurate information about the number of sign bit
14541 copies and non zero bits.
14543 2015-05-12 Richard Biener <rguenther@suse.de>
14545 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
14546 do not allow unrolling.
14548 2015-05-11 Richard Henderson <rth@redhat.com>
14550 * config/i386/i386-modes.def (CCP): New.
14551 * config/i386/i386.c (put_condition_code): Handle it.
14552 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
14554 2015-05-11 Richard Henderson <rth@redhat.com>
14556 * target.def (md_asm_clobbers): Replace with...
14557 (md_asm_adjust): this.
14558 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
14559 (TARGET_MD_ASM_ADJUST): New.
14560 * tm.texi: Rebuild.
14561 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
14562 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
14563 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
14565 * cfgexpand.c (check_operand_nalternatives): Accept vector of
14566 constraints instead of lists of outputs and inputs.
14567 (expand_asm_stmt): Save and restore input_location around the
14568 body of the function. Move asm data into vectors instead of
14569 building tree lists. Generate cleanup sequences as needed,
14570 rather than waiting til the end. Use new md_asm_adjust hook.
14572 * config/vxworks.c: Include vec.h before target.h.
14573 * gimple.c: Likewise.
14574 * incpath.c: Likewise.
14575 * mode-switching.c: Likewise.
14577 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
14578 (cris_md_asm_adjust): this.
14579 (TARGET_MD_ASM_CLOBBERS): Remove.
14580 (TARGET_MD_ASM_ADJUST): New.
14581 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
14582 (ix86_md_asm_adjust): this.
14583 (TARGET_MD_ASM_CLOBBERS): Remove.
14584 (TARGET_MD_ASM_ADJUST): New.
14585 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
14586 (mn10300_md_asm_adjust): this.
14587 (TARGET_MD_ASM_CLOBBERS): Remove.
14588 (TARGET_MD_ASM_ADJUST): New.
14589 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
14590 (rs6000_md_asm_adjust): this.
14591 (TARGET_MD_ASM_CLOBBERS): Remove.
14592 (TARGET_MD_ASM_ADJUST): New.
14593 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
14594 (visium_md_asm_adjust): this.
14595 (TARGET_MD_ASM_CLOBBERS): Remove.
14596 (TARGET_MD_ASM_ADJUST): New.
14598 2015-05-11 Richard Henderson <rth@redhat.com>
14600 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
14601 if noutputs is zero.
14602 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
14604 * cfgexpand.c (expand_asm_operands): Merge into...
14605 (expand_asm_stmt): ... here.
14607 * cfgexpand.c (expand_asm_operands): Don't call
14608 resolve_asm_operand_names.
14609 * stmt.c (resolve_asm_operand_names): Clarify block comment.
14611 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
14613 * dwarf2out.c (gen_member_die): Sanity check that we access
14614 TYPE_MAIN_VARIANT for TYPE_METHODS.
14615 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
14616 checking TYPE_METHODS.
14617 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
14619 (build_distinct_type_copy): Clear TYPE_METHODS.
14620 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
14621 (verify_type): Allow TYPE_METHODS to be error_mark_node.
14622 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
14624 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
14626 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
14627 (emit_pattern_before_setloc): Likewise.
14629 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
14631 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
14632 for define_peephole2s.
14633 (get_peephole2_pattern): New function.
14634 (main): Use it. Call validate_pattern.
14636 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14638 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
14639 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
14640 (Last callee saved reg is different for AVR_TINY architecture)
14642 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
14644 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
14645 when looking for memory references.
14647 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
14650 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
14651 via function pointers.
14653 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
14655 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
14656 indirect call by forcing address into a pseudo with -fno-plt.
14657 * common.opt (flag_plt): New option.
14658 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
14659 ([-fno-plt]): Document.
14661 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
14664 * config/rs6000/option-defaults.h: Add space between string literal
14667 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
14669 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
14670 accross ARM targets.
14672 2015-05-11 Christian Bruel <christian.bruel@st.com>
14674 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
14675 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
14677 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
14679 PR rtl-optimization/66076
14680 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
14681 Don't grow the heap array if it is already big enough from a
14682 previous iteration.
14684 2015-05-11 Christian Bruel <christian.bruel@st.com>
14686 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
14687 (is_called_in_ARM_mode): Remove.
14688 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
14689 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
14690 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
14691 arm_declare_function_name.
14693 2015-05-11 Christian Bruel <christian.bruel@st.com>
14695 * config/arm/arm.c (arm_option_override): Reoganized and split into :
14696 (arm_option_params_internal); New function.
14697 (arm_option_check_internal): New function.
14698 (arm_option_override_internal): New function.
14699 (thumb_code, thumb1_code): Remove.
14700 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
14701 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
14702 (thumb_code, thumb1_code): Remove.
14703 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
14705 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
14707 * config/alpha/alpha.c (alpha_emit_set_const_1)
14708 (alpha_emit_set_long_const, alpha_extract_integer)
14709 (alpha_legitimate_constant_p, alpha_split_const_mov)
14710 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
14711 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14712 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
14714 * config/alpha/predicates.md (mode_mask_operand): Do not match
14716 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14717 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
14718 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
14719 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14720 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
14722 2015-05-11 Jakub Jelinek <jakub@redhat.com>
14725 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
14726 default_binds_local_p_2.
14727 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
14728 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
14730 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14732 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
14734 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14736 Patch by Richard Biener
14737 * coverage.c (coverage_obj_init): Delay building of type variant
14738 until the type is finished.
14740 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14742 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
14743 mismatch between C and C++ type; compoare correctly ARG_TYPES
14744 for non-prototypes and output correctly parameter index for METHOD_TYPE.
14745 (odr_types_equivalent_p): Fix wording of warning about attributes;
14746 it is OK to match prototype and non-prototype.
14748 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14750 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
14751 TYPE_ARG_TYPES list.
14752 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
14753 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
14755 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14757 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
14758 * tree.h (is_lang_specific): Constify.
14760 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
14762 PR tree-optimization/64454
14763 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
14766 2015-05-08 Jason Merrill <jason@redhat.com>
14768 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
14769 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
14770 config/darwin.h, config/darwin9.h, config/elfos.h,
14771 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
14772 config/microblaze/microblaze.h, config/mips/mips.h,
14773 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
14774 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
14775 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
14776 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
14777 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
14778 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
14779 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
14780 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
14781 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
14782 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
14783 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
14784 between string literal and macro name.
14786 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14788 * jump.c: Change argument types to rtx_insn *.
14791 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14793 * lra-constraints.c: Change argument type to rtx_insn *.
14795 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14797 * df-problems.c: Change argument type to rtx_insn *.
14799 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14801 * combine.c: Change argument type to rtx_insn *.
14803 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14806 * rtlanal.c: Change argument type to rtx_insn *.
14808 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14810 * sched-deps.c: Change argument types to rtx_insn *.
14811 * sched-int.h: Adjust.
14813 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14815 * dwarf2cfi.c: Change argument type to rtx_insn *.
14817 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14819 * ira.c (decrease_live_ranges_number): Changetype of local
14820 variable to rtx_insn *.
14821 * recog.c: Change argument types to rtx_insn *.
14824 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14826 * reorg.c: Change argument types to rtx_insn *.
14828 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14830 * ira-color.c: Change argument types to rtx_insn *.
14831 * lra-eliminations.c: Likewise.
14834 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14836 * gcse.c: Change argument types to rtx_insn *.
14838 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14840 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
14842 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14844 * emit-rtl.c (emit_debug_insn_before): Change argument type to
14848 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14850 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
14853 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14855 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
14858 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14860 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
14863 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14865 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
14868 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14870 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
14874 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14876 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
14880 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14882 * except.c (can_nonlocal_goto): Change type of argument to
14886 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14888 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
14891 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14893 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
14894 * cfgrtl.c (can_delete_label_p): Adjust.
14897 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14899 * reorg.c (stop_search_p): Change argument to rtx_insn *.
14901 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14903 * except.c (make_reg_eh_region_note): Change argument to
14905 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
14906 * except.h: Adjust.
14908 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14910 * mode-switching.c (commit_mode_sets): Change type of local
14911 variable from rtx to rtx_insn *.
14913 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
14915 * doc/install.texi (--enable-languages): Add missing jit and lto info.
14916 Add ^ to grep command.
14917 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
14918 arg to last gimple_simplify declaration. Add missing gimple_build
14919 declaration for built-in function case with four tree args.
14921 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
14922 Szabolcs Nagy <szabolcs.nagy@arm.com>
14924 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
14925 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
14926 (GNU_USER_DYNAMIC_LINKERN32): Update.
14928 2015-05-08 Richard Biener <rguenther@suse.de>
14930 PR tree-optimization/66036
14931 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14932 Handle strided group loads.
14933 (vect_verify_datarefs_alignment): Likewise.
14934 (vect_enhance_data_refs_alignment): Likewise.
14935 (vect_analyze_group_access): Likewise.
14936 (vect_analyze_data_ref_access): Likewise.
14937 (vect_analyze_data_ref_accesses): Likewise.
14938 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
14939 (vectorizable_load): Likewise.
14941 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
14943 * config/rs6000/rs6000.md: Require operand inequality in one
14946 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
14947 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14949 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
14951 * config/rx/rx.md (movdi, movdf): Likewise.
14952 Likewise for define_peephole2s.
14954 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14956 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
14957 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
14958 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
14959 vtst_u64): Rewrite using gcc vector extensions.
14961 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14963 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
14964 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
14966 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14968 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
14970 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
14972 * config/glibc-stdint.h (OPTION_MUSL): Define.
14973 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
14974 Change the definition based on OPTION_MUSL for 64 bit targets.
14975 * config/linux.h (OPTION_MUSL): Redefine.
14976 * config/alpha/linux.h (OPTION_MUSL): Redefine.
14977 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
14978 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
14980 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
14981 Szabolcs Nagy <szabolcs.nagy@arm.com>
14983 * config.gcc (LIBC_MUSL): New tm_defines macro.
14984 * config/linux.h (OPTION_MUSL): Define.
14985 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
14986 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
14987 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
14988 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
14989 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
14990 * config/linux.opt (mmusl): New option.
14991 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
14992 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
14993 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
14994 * configure: Regenerate.
14996 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
14997 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15000 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
15001 * config/i386/knetbsd-gnu64.h: New file.
15003 2015-05-08 Marek Polacek <polacek@redhat.com>
15006 * doc/invoke.texi: Document -Woverride-init-side-effects.
15008 2015-05-07 Marek Polacek <polacek@redhat.com>
15011 * doc/invoke.texi: Document -Wshift-negative-value.
15013 2015-05-06 Aditya Kumar <hiraditya@msn.com>
15015 * gcov-tool.c (do_merge): Refactore to remove int ret.
15016 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
15017 !type == FUNC to type != FUNC.
15018 * reload.h (struct target_reload): Changee to type of
15019 x_spill_indirect_levels from bool to unsigned char.
15021 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
15023 * rtl.h (always_void_p): New function.
15024 * gengenrtl.c (always_void_p): Likewise.
15025 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
15026 with code foo are always VOIDmode.
15027 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
15028 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
15029 compare-elim.c, config/aarch64/aarch64.c,
15030 config/aarch64/aarch64.md, config/alpha/alpha.c,
15031 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
15032 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
15033 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
15034 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
15035 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
15036 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
15037 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
15038 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
15039 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
15040 config/ia64/vect.md, config/iq2000/iq2000.c,
15041 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
15042 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
15043 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
15044 config/mep/mep.c, config/microblaze/microblaze.c,
15045 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
15046 config/mn10300/mn10300.c, config/msp430/msp430.c,
15047 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
15048 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
15049 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
15050 config/rs6000/altivec.md, config/rs6000/rs6000.c,
15051 config/rs6000/rs6000.md, config/rs6000/vector.md,
15052 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
15053 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
15054 config/sh/sh.md, config/sh/sh_treg_combine.cc,
15055 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
15056 config/spu/spu.md, config/stormy16/stormy16.c,
15057 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
15058 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
15059 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
15060 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
15061 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
15062 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
15063 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
15064 var-tracking.c: Update calls accordingly.
15066 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
15069 PR middle-end/54303
15070 * varasm.c (function_mergeable_rodata_prefix): New function.
15071 (mergeable_string_section): Use it.
15072 (mergeable_constant_section): Use it.
15074 2015-05-07 Jeff Law <law@redhat.com>
15077 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
15078 simplifier to narrow arithmetic.
15079 * generic-match-head.c: (types_match, single_use): New functions.
15080 * gimple-match-head.c: (types_match, single_use): New functions.
15082 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15084 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
15087 2015-05-07 Richard Biener <rguenther@suse.de>
15089 PR tree-optimization/66002
15090 * passes.def: Schedule another pass_merge_phi after ifcombine, right
15093 2015-05-07 Marek Polacek <polacek@redhat.com>
15094 Martin Uecker <uecker@eecs.berkeley.edu>
15096 * doc/invoke.texi: Document -fsanitize=bounds-strict.
15097 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
15098 into SANITIZE_NONDEFAULT.
15099 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
15101 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
15104 * config/alpha/alpha.c (alpha_override_options_after_change): New.
15105 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
15106 (alpha_override_options): Move align_loops, align_jumps and
15107 align_functions handling into alpha_override_options_after_change.
15109 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
15110 Chris Jones <chrisj@nvidia.com>
15111 Joshua Conner <jconner@nvidia.com>
15113 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
15114 linking of crtfastmath.o.
15115 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
15117 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
15119 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
15120 (cstore<mode>4_unsigned_imm): New expander.
15121 (cstore<mode>4): Remove empty constraint strings. Use the new
15124 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
15127 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
15130 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15132 * config/aarch64/geniterators.sh: Use standard BRE in sed.
15134 2015-05-06 Alan Modra <amodra@gmail.com>
15137 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
15138 (UNSPEC_NOP): Define.
15139 (reload_vsx_from_gpr<mode>): Add missing DONE.
15140 (reload_gpr_from_vsx<mode>): Likewise.
15141 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
15142 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
15144 2015-05-06 Christian Bruel <christian.bruel@st.com>
15147 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
15148 align_jumps, align_functions into aarch64_override_options_after_change.
15150 2015-05-06 Richard Biener <rguenther@suse.de>
15152 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
15153 vect_transform_slp_perm_load to check if we support a permutation
15154 for basic-block vectorization.
15156 2015-05-06 Nick Clifton <nickc@redhat.com>
15158 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
15159 used, even if it is not being used as a frame pointer.
15161 2015-05-05 Jason Merrill <jason@redhat.com>
15163 * dwarf2out.c (gen_member_die): Don't emit anything for an
15164 anonymous class constructor.
15166 2015-05-05 David Malcolm <dmalcolm@redhat.com>
15168 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
15169 that it reflects the block structure.
15170 (afdo_propagate_edge): Likewise.
15171 (afdo_calculate_branch_prob): Likewise.
15172 (afdo_annotate_cfg): Likewise.
15173 * cfgcleanup.c (equal_different_set_p): Likewise.
15174 (try_crossjump_to_edge): Likewise.
15175 * cgraph.c (cgraph_node::verify_node): Likewise.
15176 * cgraphunit.c (expand_all_functions): Likewise.
15177 * config/i386/i386.c (ix86_expand_copysign): Likewise.
15178 (exact_dependency_1): Likewise.
15179 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
15180 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
15181 * gensupport.c (process_define_subst): Likewise.
15182 * lto-wrapper.c (merge_and_complain): Likewise.
15183 * tree-if-conv.c (if_convertible_bb_p): Likewise.
15184 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
15185 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
15186 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
15187 * tree-vect-loop.c (vectorizable_reduction): Likewise.
15188 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
15189 * tree-vect-stmts.c (vectorizable_shift): Likewise.
15190 * tree-vrp.c (vrp_finalize): Likewise.
15191 * tree.c (variably_modified_type_p): Likewise.
15193 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
15195 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
15196 on darwin12 and later.
15197 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
15198 file to pass -rdynamic on darwin12 and later.
15199 * config/darwin.opt (rdynamic): Add.
15201 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
15203 * doc/extend.texi (C Extensions): Update menu for moved Variable
15204 Attributes and Type Attributes sections.
15206 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
15209 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
15210 if rep_8byte stringop strategy was specified for 32-bit target.
15212 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
15215 * config/i386/i386.md (vector convert to float spltiter): Check for
15216 xmm16+, when splitting scalar float conversion.
15217 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
15219 2015-05-05 Nick Clifton <nickc@redhat.com>
15221 * config/msp430/msp430-opts.h (enum msp430_regions): New.
15222 * config/msp430/msp430.c (msp430_override_options): Complain if
15223 -mcode-region or -mdata-region is used on a non MSP430X.
15224 (msp430_section_attr): New function. Checks lower, upper and
15226 (msp430_attribute_table): Add lower, upper and either.
15227 (gen_prefix): New function. Generates a prefix for a section
15229 (msp430_select_section): New function - handles the choice of
15230 section for an object. Takes into account memory region
15231 attributes and options.
15232 (msp430_function_section): Use gen_prefix.
15233 (TARGET_SECTION_TYPE_FLAGS): Define.
15234 (msp430_section_type_flags): New function.
15235 (TARGET_ASM_UNIQUE_SECTION): Define.
15236 (msp430_unique_section): New function.
15237 (msp430_output_aligned_decl_common): New function.
15238 (msp430_do_not_relax_short_jumps): New function.
15239 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
15241 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
15242 * config/msp430/msp430-protos.h
15243 (msp430_do_not_relax_short_jumps): New prototype.
15244 (msp430_output_aligned_decl_common): New prototype.
15245 * config/msp430/msp430.md (length): New attribute.
15246 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
15247 then use a long code sequence for short jumps.
15248 * config/msp430/msp430.opt (mcode-region): New.
15249 (mdata-region): New.
15250 * doc/invoke.texi: Document new options.
15251 * doc/extend.texi: Document new attributes.
15253 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
15255 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
15256 (tune_params): Add field branch_costs.
15257 (aarch64_branch_cost): Declare.
15258 * gcc/config/aarch64.c (generic_branch_cost): New.
15259 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
15260 (cortexa53_tunings): Likewise.
15261 (cortexa57_tunings): Likewise.
15262 (thunderx_tunings): Likewise.
15263 (xgene1_tunings): Likewise.
15264 (aarch64_branch_cost): Define.
15265 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
15267 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
15269 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
15270 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
15271 * config/i386/i386.md: Ditto.
15272 * config/i386/winnt.c: Ditto.
15274 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
15276 * doc/extend.texi (__atomic Builtins): Move implementation details
15277 to the end of the description, rewrite opening paragraphs, state
15278 difference with __sync builtins, state C11/C++11 assumptions,
15279 weaken itemized descriptions, add explanation of memory model
15280 behaviour, expand description of compare-exchange, simplify text.
15282 2015-05-05 Renlin Li <renlin.li@arm.com>
15284 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
15286 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
15288 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
15289 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
15290 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
15291 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
15292 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
15293 * configure: Regenerate.
15294 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
15295 * doc/install.texi (aarch64*-*-*): Document new
15296 --enable-fix-cortex-a53-843419 option.
15297 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
15298 and -mno-fix-cortex-a53-843419 options.
15300 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
15303 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
15305 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
15307 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
15308 fix overactive TYPE_MIN_VALUE check and add FIXME for type
15309 compatibility problems.
15311 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
15313 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
15315 (cbranchsi4_reg): New.
15316 * config/microblaze/microblaze.c
15317 (microblaze_expand_conditional_branch_reg): New.
15318 * config/microblaze/microblaze-protos.h
15319 (microblaze_expand_conditional_branch_reg): New prototype.
15321 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
15323 * config/microblaze/microblaze.md (peephole2): New.
15325 2015-05-04 Jeff Law <law@redhat.com>
15328 2015-05-04 Jeff Law <law@redhat.com>
15330 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
15331 simplifier to narrow arithmetic.
15332 * generic-match-head.c: (types_match, single_use): New functions.
15333 * gimple-match-head.c: (types_match, single_use): New functions.
15335 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
15338 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
15339 (split_branches): Likewise.
15341 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
15343 * common.opt (fdelete-null-pointer-checks): Init to -1.
15344 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
15345 override flag_delete_null_pointer_checks default.
15346 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
15347 behavior re address zero. Better document target-specific behavior.
15348 (-fisolate-errneous-paths-dereference): Mention relationship to
15349 -fdelete-null-pointer-checks.
15351 2015-05-04 Jakub Jelinek <jakub@redhat.com>
15353 PR tree-optimization/65984
15354 * ubsan.c: Include tree-cfg.h.
15355 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
15356 stmt_could_throw_p test, rename can_throw variable to ends_bb.
15358 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
15360 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
15361 to CONST_DOUBLE_P predicate.
15362 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
15363 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
15364 allow only operands that satisfy standard_sse_constant_p predicate.
15365 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
15366 to CONST_DOUBLE_P predicate.
15368 2015-05-04 Jeff Law <law@redhat.com>
15370 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
15371 simplifier to narrow arithmetic.
15372 * generic-match-head.c: (types_match, single_use): New functions.
15373 * gimple-match-head.c: (types_match, single_use): New functions.
15375 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
15377 * config/arm/arm.c: Restore bootstrap.
15379 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
15381 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
15382 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
15383 as CONST_WIDE_INT, not CONST_DOUBLE.
15384 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
15385 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
15386 (ix86_find_base_term): Do not check for CONST_DOUBLE.
15387 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
15388 (ix86_build_signbit_mask): Rewrite using wide ints.
15389 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
15390 (ix86_rtx_costs): Handle CONST_WIDE_INT.
15391 (find_constant): Ditto.
15392 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
15393 using gen_int_mode.
15394 * config/i386/predicates.md (x86_64_immediate_operand)
15395 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
15396 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
15397 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
15398 (const0_operand): Also match const_wide_int.
15399 (constm1_operand): Ditto.
15400 (const1_operand): Ditto.
15402 2015-05-04 Richard Biener <rguenther@suse.de>
15404 PR tree-optimization/65965
15405 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
15406 store groups at gaps.
15408 2015-05-04 Richard Biener <rguenther@suse.de>
15410 PR tree-optimization/65935
15411 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
15412 then make sure to apply that swapping to the IL.
15414 2015-05-04 Jakub Jelinek <jakub@redhat.com>
15416 * Makefile.in (PATCHLEVEL_c): New variable.
15417 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
15418 expand the same way as if DEVPHASE_c was non-empty.
15420 2015-05-04 Kai Tietz <ktietz@redhat.com>
15423 * lto-wrapper.c (run_gcc): Open filename
15426 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
15428 * doc/extend.texi (Variable Attributes, Type Attributes): Move
15429 sections up in file, to immediately after the Function Attributes
15432 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
15434 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
15436 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15438 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
15439 (insert_partition_copy_on_edge): Adjust.
15440 (insert_rtx_to_part_on_edge): Likewise.
15441 (insert_part_to_rtx_on_edge): Likewise.
15443 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15445 * function.c (set_return_jump_label): Change type of argument to
15447 * function.h (set_return_jump_label): Adjust.
15449 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15451 * reload.h (struct reg_equivs_t): Change type of init to
15453 * ira.c (fix_reg_equiv_init): Adjust.
15454 * reload1.c (eliminate_regs_1): Likewise.
15455 (init_eliminable_invariants): Likewise.
15457 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15459 * cselib.c (fp_setter_insn): Take a rtx_insn *.
15460 * cselib.h (fp_setter_insn): Adjust.
15462 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15464 * recog.c (struct validate_replace_src_data): Change type of
15465 insn field to rtx_insn *.
15466 (validate_replace_src_group): Change type of argument to rtx_insn *.
15467 * recog.h (validate_replace_src_group): Adjust.
15469 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15471 * haifa-sched.c: Change the type of some variables to rtx_insn *.
15472 * sched-deps.c: Likewise.
15473 * sched-int.h: Likewise.
15474 * sched-rgn.c: Likewise.
15475 * sel-sched.c: Likewise.
15477 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15480 * config/i386/i386.c: Change the type of some arguments to
15482 * config/arm/arm.c: Likewise.
15484 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15486 * lra-constraints.c: Change type of some arguments to rtx_insn *.
15488 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15490 * regcprop.c (kill_autoinc_value): Change type of argument to
15493 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15495 * genrecog.c (print_subroutine): Adjust.
15496 * recog.c (get_bool_attr_mask_uncached): Likewise.
15497 * recog.h (struct recog_data_d): Change the type of insn to
15500 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15502 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
15504 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15506 * df-problems.c (df_set_note): Change type of argument to
15509 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15511 * builtins.c (expand_builtin_trap): Change type of local
15512 variable to rtx_insn *.
15513 (add_sched_insns_for_speculation): Likewise.
15514 (ix86_emit_save_regs): Likewise.
15515 (get_scratch_register_on_entry): Likewise.
15516 (ix86_emit_restore_reg_using_pop): Likewise.
15517 (ix86_emit_leave): Likewise.
15518 (ix86_emit_restore_regs_using_mov): Likewise.
15519 (ix86_expand_epilogue): Likewise.
15521 (rl78_alloc_physical_registers_umul): Likewise.
15522 * cselib.c (discard_useless_locs): Likewise.
15523 (cselib_invalidate_regno): Likewise.
15524 (cselib_invalidate_mem): Likewise.
15525 * function.c (expand_function_start): Likewise.
15526 (emit_use_return_register_into_block): Likewise.
15527 * gcse.c: Likewise.
15528 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
15529 * ifcvt.c (noce_get_alt_condition): Likewise.
15530 * loop-doloop.c (doloop_condition_get): Likewise.
15531 * lra-constraints.c (inherit_in_ebb): Likewise.
15532 * modulo-sched.c (sms_schedule_by_order): Likewise.
15533 * recog.c (next_insn_tests_no_inequality): Likewise.
15534 * reorg.c (emit_delay_sequence): Likewise.
15535 (update_reg_dead_notes): Likewise.
15536 (fix_reg_dead_note): Likewise.
15537 (fill_slots_from_thread): Likewise.
15538 (delete_computation): Likewise.
15540 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
15542 * doc/extend.texi (Variable Attributes): Add menu and proper
15543 @nodes to subsections. Move Microsoft Windows attributes to
15544 their own subsection.
15545 (Type Attributes): Reorganize introduction to remove duplicate
15546 list of attributes. Add menu and proper @nodes to subsections.
15547 Alphabetize the main table of common attributes.
15549 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
15551 * match.pd: New simplification patterns.
15552 (x + (x & 1)) -> ((x + 1) & ~1)
15553 (x & ~(x & y)) -> ((x & ~y))
15554 (x | ~(x | y)) -> ((x | ~y))
15556 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15558 * target.def (attribute_table): Mention that struct attribute_spec
15559 is defined in tree-core.h rather than tree.h
15560 * doc/tm.texi: Regenerate.
15562 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
15564 * genrecog.c (test): Rename to rtx_test. Update rest of file
15567 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
15569 PR translation/65959
15570 * params.h (DEFPARAM): Rename msgid to nocmsgid.
15572 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
15574 * gcc/config/aarch64/aarch64-protos.h (tune_params):
15575 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
15576 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
15577 Return value depending on target.
15578 (generic_tunings): Initialize new target settings.
15579 (cortexa53_tunings): Likewise.
15580 (cortexa57_tunings): Likewise.
15581 (thunderx_tunings): Likewise.
15582 (xgene1_tunings): Likewise.
15584 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
15586 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
15587 Make Cortex-A53 shift costs more accurate.
15589 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15591 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
15594 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
15596 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
15597 Calculate cost of op0 and op1 in PLUS and MINUS cases.
15599 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15601 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
15602 Add cost of op0 in the compare-with-fpzero case.
15604 2015-04-30 David Malcolm <dmalcolm@redhat.com>
15606 * builtins.c (fold_builtin_1): Remove spurious second
15608 * cgraph.h (symtab_node::get_availability): Likewise.
15609 * opts.c (common_handle_option): Remove spurious second semicolon.
15610 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
15611 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
15613 2015-04-30 Caroline Tice <cmtice@google.com>
15615 PR gcov-profile/65929
15616 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
15617 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
15618 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
15619 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
15620 * doc/tm.texi: Regenerate.
15621 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
15622 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
15623 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
15624 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
15626 2015-04-30 Marek Polacek <polacek@redhat.com>
15628 * varasm.c (handle_cache_entry): Fix logic.
15630 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15632 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
15633 (*extrsi5_insn_uxtw_alt): Likewise.
15634 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
15635 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
15638 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15640 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
15643 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15645 * config/aarch64/aarch64.md
15646 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
15647 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
15648 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
15649 appropriately. Handle alternative EON form.
15651 2015-04-30 Renlin Li <renlin.li@arm.com>
15653 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
15654 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
15656 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
15659 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
15660 -fstrict-aliasing boundaries.
15662 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15664 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
15665 and [SU]MNEGL patterns.
15667 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15669 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
15670 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
15671 combined arithmetic-shift ops. Properly handle all shift and extend
15672 operations that can occur in combination with PLUS/MINUS.
15673 Rename maybe_fma to compound_p.
15674 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
15675 arithmetic and shift operations.
15677 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15679 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
15680 rather than arith_shift cost when costing ADD/MINUS of an
15683 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
15686 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
15689 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
15691 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
15692 are for the same position.
15694 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
15696 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
15698 (vectorize_loops): Use it.
15700 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15702 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
15703 for aggregate types.
15704 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
15705 type to be non_ODR.
15706 * tree.c (need_assembler_name_p): Compute mangled name for
15707 non-fundamental types and integer types.
15709 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
15711 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
15713 * expr.c (expand_expr_real_2): Likewise.
15715 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15717 * tree.c (build_common_builtin_nodes): Do not build
15718 __builtin_alloca_with_align as equivalent of library alloca.
15720 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15722 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
15723 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
15725 * tree.c: Include print-tree.h and ipa-utils.h
15726 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
15727 (free_lang_data_in_cgraph): Call verify_type.
15728 (verify_type_variant): New function.
15729 (verify_type): New function.
15730 * tree.h (verify_type): Declare.
15732 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
15734 * config/mips/mips-cpus.def: (mips4): Change default processor
15735 from PROCESSOR_R8000 to PROCESSOR_R10000.
15737 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
15739 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
15740 la/jalr instead of jal.
15742 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
15745 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
15746 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
15747 (setcc+movzbl peephole2): Check also clobbered reg.
15748 (setcc+andl peephole2): Ditto.
15750 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
15753 * config/nvptx/mkoffload.c (target_ilp32): New variable.
15754 (main): Set it depending on "-foffload-abi=[...]".
15755 (compile_native, main): Use it to pass "-m32" or "-m64" to the
15758 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
15761 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
15762 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
15763 Flip lane index back at assembly time for bigendian.
15765 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
15767 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
15768 * gimplify.c (gimplify_omp_workshare): Use it.
15770 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15772 * Makefile.in (build/genrecog.o): Depend on inchash.h.
15773 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
15775 * genrecog.c: Rewrite most of the code except for the third page.
15777 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15779 * inchash.h, inchash.c: Include bconfig.h for build objects.
15780 * Makefile.in (build/inchash.o): New rule.
15782 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
15785 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
15786 number in type attribute expression.
15788 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15790 * loop-iv.c (canon_condition): Generalize to all types of integer
15793 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
15795 * gimple-walk.c: Prune duplicate or unneeded includes.
15796 (walk_gimple_asm): Only call parse_input_constraint or
15797 parse_output_constraint if their findings are used.
15798 Honour parse_input_constraint and parse_output_constraint
15801 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
15803 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
15805 2015-04-29 Tom de Vries <tom@codesourcery.com>
15807 PR tree-optimization/65893
15808 * passes.def (pass_all_optimizations): Move pass_stdarg to after
15811 2015-04-29 Richard Biener <rguenther@suse.de>
15813 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15814 compute GROUP_SIZE for basic-block SLP.
15815 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
15816 take into account gaps.
15817 (vect_get_mask_element): Properly reject references to previous
15819 (vect_transform_slp_perm_load): Likewise.
15821 2015-04-29 Christian Bruel <christian.bruel@st.com>
15824 * config/i386/i386.c (ix86_default_align): New function.
15825 (ix86_override_options_after_change): Call ix86_default_align.
15826 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
15827 (ix86_override_options_after_change): New function.
15829 2015-04-28 Jeff Law <law@redhat.com>
15831 * tree-ssa-dom.c (record_equality); Fix comment typos.
15833 2015-04-28 Tom de Vries <tom@codesourcery.com>
15835 PR tree-optimization/65887
15836 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
15838 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
15840 * doc/extend.texi (Declaring Attributes of Functions): Split into
15841 subsections by target. Alphabetize the table of common attributes.
15842 Rewrite some of the introductory text to reflect the new structure.
15843 Update some cross-references to point to the new subsections.
15844 (Attribute Syntax): Put paragraph about "__" naming here. Remove
15845 duplicate copies in the discussion of function, label, and type
15848 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
15851 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
15853 2015-04-28 Jason Merrill <jason@redhat.com>
15856 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
15857 (finalize_type_size): Respect TYPE_USER_ALIGN.
15858 (layout_type) [ARRAY_TYPE]: Likewise.
15860 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
15862 * config/arm/arm.md (*arm_movt): Fix type attribute.
15863 (*cmpsi_shiftsi): Likewise.
15864 (*cmpsi_shiftsi_swp): Likewise.
15865 (*movsicc_insn): Likewise.
15866 (*cond_move): Likewise.
15867 (*if_plus_move): Likewise.
15868 (*if_move_plus): Likewise.
15869 (*if_arith_move): Likewise.
15870 (*if_move_arith): Likewise.
15871 (*if_shift_move): Likewise.
15872 (*if_move_shift): Likewise.
15873 (*arm_movtas_ze): Likewise.
15874 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
15875 redundancy and type attribute.
15876 (*thumb2_movsi_insn): Fix type attribute.
15877 (*thumb2_addsi_short): Likewise.
15878 (thumb2_addsi3_compare0): Likewise.
15879 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
15880 attributes accordingly.
15882 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
15885 * function.c (pad_to_arg_alignment): Add parentheses.
15887 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
15889 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
15890 libgcc/config/frv/elf-lib.h.
15892 2015-04-28 Tom de Vries <tom@codesourcery.com>
15894 * tree-call-cdce.c: Fix example in header comment.
15896 2015-04-28 Richard Biener <rguenther@suse.de>
15898 PR tree-optimization/62283
15899 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
15900 fails fatally and we are vectorizing a basic-block simply
15901 cause the child to be constructed piecewise.
15902 (vect_analyze_slp_cost_1): Adjust.
15903 (vect_detect_hybrid_slp_stmts): Likewise.
15904 (vect_bb_slp_scalar_cost): Likewise.
15905 (vect_get_constant_vectors): For piecewise constructed
15906 constants place them after the last def.
15907 (vect_get_slp_defs): Adjust.
15908 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
15909 externals for basic-block vectorization.
15911 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15914 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
15916 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
15917 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
15918 (AARCH64_TUNE_FMA_STEERING): Likewise.
15919 * config/aarch64/aarch64-cores.def: Set
15920 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
15921 FMUL/FMADD instructions.
15922 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
15923 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
15924 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
15925 * config/aarch64/cortex-a57-fma-steering.h: New file.
15926 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15928 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
15930 * gensupport.c (std_preds): Add missing codes to address_operand entry.
15932 2015-04-28 Richard Biener <rguenther@suse.de>
15934 PR tree-optimization/65851
15935 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
15936 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
15937 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
15938 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
15939 (ccp_visit_phi_node): Adjust.
15940 (evaluate_stmt): For simplifications to SSA names return its
15941 lattice value if that isn't VARYING. Return immediately when
15942 simplified to a constant.
15943 (visit_assignment): Adjust.
15944 (ccp_visit_stmt): Likewise.
15946 2015-04-28 Tom de Vries <tom@codesourcery.com>
15948 PR tree-optimization/65818
15949 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
15952 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15954 * calls.c (save_fixed_argument_area): Don't check
15955 ARGS_GROW_DOWNWARD with the preprocessor.
15956 (restore_fixed_argument_area): Likewise.
15957 (mem_overlaps_already_clobbered_arg_p): Likewise.
15958 (check_sibcall_argument_overlap): Likewise.
15959 (expand_call): Likewise.
15960 (emit_library_call_value_1): Likewise.
15961 (store_one_arg): Likewise.
15962 * function.c (assign_parms): Likewise.
15963 (locate_and_pad_parm): Likewise.
15964 (pad_to_arg_alignment): Likewise.
15965 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15967 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15969 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
15970 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
15971 * calls.c (save_fixed_argument_area): Don't chekc if
15972 ARGS_GROW_DOWNWARD is defined.
15973 (restore_fixed_argument_area): Likewise.
15974 (mem_overlaps_already_clobbered_arg_p): Likewise.
15975 (check_sibcall_argument_overlap): Likewise.
15976 (expand_call): Likewise.
15977 (emit_library_call_value_1): Likewise.
15978 (store_one_arg): Likewise.
15979 * function.c (assign_parms): Likewise.
15980 (locate_and_pad_parm): Likewise.
15981 (pad_to_arg_alignment): Likewise.
15982 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15984 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15986 * defaults.h (gen_epilogue): New function.
15987 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
15989 * cfgrtl.c (cfg_layout_finalize): Likewise.
15990 * df-scan.c: Likewise.
15991 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15992 (reposition_prologue_and_epilogue_notes): Likewise.
15993 * reorg.c (find_end_label): Likewise.
15994 * toplev.c: Likewise.
15996 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15998 * bb-reorder.c (HAVE_return): Don't check if its undefined.
15999 * defaults.h (gen_simple_return): New function.
16000 (gen_simple_return): Likewise.
16001 (HAVE_return): Add default definition to false.
16002 (HAVE_simple_return): Likewise.
16003 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
16004 HAVE_return and HAVE_simple_return are defined.
16005 * function.c (gen_return_pattern): Likewise.
16006 (convert_jumps_to_returns): Likewise.
16007 (thread_prologue_and_epilogue_insns): Likewise.
16008 * reorg.c (find_end_label): Likewise.
16009 (dbr_schedule): Likewise.
16010 * shrink-wrap.c: Likewise.
16011 * shrink-wrap.h: Likewise.
16013 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16015 * defaults.h (EPILOGUE_USES): Add default definition of false.
16016 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
16017 * resource.c (init_resource_info): Likewise.
16019 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16021 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
16023 * dwarf2out.c (field_byte_offset): REmove check if
16024 PCC_BITFIELD_TYPE_MATTERS is defined.
16025 * stor-layout.c (layout_decl): Likewise.
16026 (update_alignment_for_field): Likewise.
16027 (place_field): Likewise.
16029 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16031 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
16033 * regrename.c (check_new_reg_p): Remove check if
16034 HARD_REGNO_RENAME_OK is defined.
16035 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
16037 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16039 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
16040 * cse.c (fold_rtx): Likewise.
16041 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
16042 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
16043 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
16044 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
16045 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
16046 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
16047 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
16048 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
16049 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
16050 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
16052 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
16053 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
16054 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
16055 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
16056 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
16057 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
16058 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
16059 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
16060 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
16061 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
16062 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
16063 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
16064 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
16065 * doc/tm.texi: Regenerate.
16066 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
16067 either true or false.
16069 2015-04-27 Jeff Law <law@redhat.com>
16071 PR tree-optimization/65217
16072 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
16073 of them has a single use, make sure it is the LHS of the implied
16076 2015-04-28 Alan Modra <amodra@gmail.com>
16079 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
16080 (offsettable_ok_by_alignment): Use minimum of decl and toc
16081 pointer alignment. Replace dead code with assertion.
16082 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
16083 case if size exceeds toc pointer alignment.
16084 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
16085 (rs6000_emit_move): Likewise.
16086 * configure.ac: Add linker toc pointer alignment check.
16087 * configure: Regenerate.
16088 * config.in: Regenerate.
16090 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
16092 * config.gcc: Add h8300-*-linux.
16093 * config/h8300/linux.h: New.
16094 * config/h8300/t-linux: New.
16095 * config/h8300/h8300.c (h8300_option_override): Normal mode
16096 is not supported for h8300-*-linux.
16097 (h8300_file_start): Target priority change.
16098 (get_shift_alg): Likewise.
16099 (h8300_shift_need_scratch_p): Likewise.
16100 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
16101 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
16103 2015-04-27 Caroline Tice <cmtice@google.com>
16105 * final.c (final_scan_insn): Output cold_function_name as function
16107 * varasm.c (cold_function_name): Make global.
16108 (assemble_start_function): Re-set cold_function_name.
16109 (assemble_end_function): Output cold partition size.
16110 * varasm.h (cold_function_name): Declare global.
16112 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
16114 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
16115 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
16117 (*movxi_internal_avx512f): Ditto.
16118 (define_split): Check for xmm16+, when splitting scalar float_extend.
16119 (*extendsfdf2_mixed): Use "v" constraint.
16120 (define_split): Check for xmm16+, when splitting scalar float_truncate.
16121 (*truncdfsf_fast_sse): Use "v" constraint.
16122 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
16123 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
16124 (define_peephole2): Check for xmm16+, when converting scalar
16126 (define_peephole2): Check for xmm16+, when converting scalar
16128 (*fop_<mode>_comm_mixed): Use "v" constraint.
16129 (*fop_<mode>_comm_sse): Ditto.
16130 (*fop_<mode>_1_mixed): Ditto.
16131 (*sqrt<mode>2_sse): Ditto.
16132 (*ieee_s<ieee_maxmin><mode>3): Ditto.
16134 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16136 * combine.c (simplify_if_then_else): Use std::swap instead
16137 of manually swapping.
16138 (known_cond): Likewise.
16139 (simplify_comparison): Likewise.
16141 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
16144 * config/rs6000/htm.md: Remove all define_expands.
16145 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
16146 UNSPECV_HTM_TABORTWCI): Remove.
16147 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
16148 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
16149 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
16150 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
16151 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
16152 tabortwci_internal): Remove define_insns.
16153 (tabort<wd>c, tabort<wd>ci): New define_insns.
16154 (tabort): Use gpc_reg_operand.
16155 (tcheck): Remove operand.
16156 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
16157 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
16159 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
16160 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
16161 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
16162 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
16163 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
16164 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
16165 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
16166 (tcheck): Remove builtin argument.
16167 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
16169 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
16170 tabortdc and tabortdci builtins when not in 64-bit mode.
16171 Modify code to handle the loss of the HTM define_expands.
16172 Emit code to copy the CR register to TARGET.
16173 (htm_init_builtins): Modify code to handle the loss of the HTM
16175 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
16176 (RS6000_BTC_64BIT): Likewise.
16177 (RS6000_BTC_CR): New macro.
16178 * doc/extend.texi: Update documentation for htm builtins.
16180 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16182 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
16183 of manually swapping.
16184 (simplify_associative_operation): Likewise.
16185 (simplify_binary_operation): Likewise.
16186 (simplify_plus_minus): Likewise.
16187 (simplify_relational_operation): Likewise.
16188 (simplify_ternary_operation): Likewise.
16190 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
16192 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
16193 (xs_hi_nonmemory_operand): Remove error.
16194 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
16195 general_operand rather than xs_hi_general_operand.
16197 2015-04-27 Richard Biener <rguenther@suse.de>
16199 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
16200 (record_equivalences_from_stmt): Valueize rhs.
16201 (record_equality): Canonicalize x and y order via
16202 tree_swap_operands_p. Do not swap operands for same loop depth.
16204 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
16208 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
16209 Add hint how to use own spec file.
16211 2015-04-27 Jakub Jelinek <jakub@redhat.com>
16213 PR tree-optimization/65875
16214 * tree-vrp.c (update_value_range): If in is_new case setting
16215 old_vr to VR_VARYING, also set new_vr to it. Remove
16216 old_vr->type == VR_VARYING test.
16217 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
16218 SSA_PROP_INTERESTING if update_value_range returned true,
16219 but new range is VR_VARYING.
16221 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
16223 * combine.c (sign_extend_short_imm): New.
16224 (set_nonzero_bits_and_sign_copies): Use above new function for sign
16225 extension of src short immediate.
16226 (reg_nonzero_bits_for_combine): Likewise for tem.
16228 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
16230 * stor-layout.c (self_referential_component_ref_p): New predicate.
16231 (copy_self_referential_tree_r): Use it.
16232 (self_referential_size): Punt for simple operations directly involving
16233 self-referential component references.
16234 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
16236 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
16238 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
16240 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
16242 * vec.h (vec): Make splice arguments const. Update definitions
16245 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
16247 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
16250 2015-04-26 Tom de Vries <tom@codesourcery.com>
16252 PR tree-optimization/65826
16253 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
16255 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
16257 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
16258 (*madd3<mode>): Ditto.
16259 (*msub4<mode>): Ditto.
16260 (*msub3<mode>): Ditto.
16261 (*nmadd4<mode>): Ditto.
16262 (*nmadd3<mode>): Ditto.
16263 (*nmadd4<mode>_fastmath): Ditto.
16264 (*nmadd3<mode>_fastmath): Ditto.
16265 (*nmsub4<mode>): Ditto.
16266 (*nmsub3<mode>): Ditto.
16267 (*nmsub4<mode>_fastmath): Ditto.
16268 (*nmsub3<mode>_fastmath): Ditto.
16270 2015-04-24 Jason Merrill <jason@redhat.com>
16273 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
16274 down when building TYPE_CANONICAL.
16275 (build_pointer_type_for_mode): Likewise.
16277 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
16279 * genrecog.c (validate_pattern): Check matching constraint refers
16280 to a lower numbered operand.
16282 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16285 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
16286 save to independent variables use the Save attribute. This will
16287 allow these options to be modified with the #pragma/attribute
16289 (-mallow-movmisalign): Likewise.
16290 (-mallow-df-permute): Likewise.
16291 (-msched-groups): Likewise.
16292 (-malways-hint): Likewise.
16293 (-malign-branch-targets): Likewise.
16294 (-mvectorize-builtins): Likewise.
16295 (-msave-toc-indirect): Likewise.
16297 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
16298 can be set via the #pragma/attribute target support.
16299 (rs6000_opt_vars): Likewise.
16300 (rs6000_inner_target_options): If VSX was set, also set
16301 -mno-avoid-indexed-addresses.
16303 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16305 * config/arm/iterators.md (shiftable_ops): Rename to...
16306 (SHIFTABLE_OPS): ... This. Update use in comments.
16307 (ior_xor): Rename to...
16308 (IOR_XOR): ... This.
16309 (vqh_ops): Rename to...
16310 (VQH_OPS): ... This.
16311 (vqhs_ops): Rename to...
16312 (VQHS_OPS): ... This.
16313 (rshifts): Rename to...
16314 (RSHIFTS): ... This.
16315 (returns): Rename to...
16316 (RETURNS): ... This.
16317 * config/arm/arm.md: Update uses of the above.
16318 * config/arm/neon.md: Likewise.
16320 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16322 * config.host (case ${host}): Add aarch64*-*-linux case.
16323 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
16324 fields to all the cores.
16325 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
16326 Add MCPU_MTUNE_NATIVE_SPECS.
16327 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
16328 field to all extensions.
16329 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
16330 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
16331 Adjust definition of AARCH64_OPT_EXTENSION.
16332 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
16333 (MCPU_MTUNE_NATIVE_SPECS): Define.
16334 * config/aarch64/driver-aarch64.c: New file.
16335 * config/aarch64/x-arch64: New file.
16336 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
16339 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
16340 Wei Mi <wmi@google.com>
16342 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
16343 * config/i386/i386.c (extract_base_offset_in_addr): New function.
16344 (ix86_operands_ok_for_move_multiple): Ditto.
16345 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
16346 (movlpd/movhpd to movupd peephole2): Ditto.
16348 2015-04-24 Marek Polacek <polacek@redhat.com>
16351 * input.h (from_macro_expansion_at): Define.
16354 * doc/invoke.texi: Update description of -Wlogical-op.
16356 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
16358 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
16359 ternary operator in fprintf and harmonize spacing.
16361 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
16363 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
16364 Mark operand1 commutative.
16366 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
16368 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
16369 input operands in memory.
16370 (*vec_concatv2si_sse4_1): Ditto.
16371 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
16372 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
16374 (vec_extract_hi_v32hi): Ditto.
16375 (vec_extract_hi_v64hi): Ditto.
16376 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
16378 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
16379 Steven Bosscher <steven@gcc.gnu.org>
16381 PR rtl-optimization/34503
16382 * cprop.c (cprop_reg_p): New.
16383 (hash_scan_set): Use above function to check if register can be
16385 (find_avail_set): Return up to two sets, one whose source is a
16386 register and one whose source is a constant. Sets are returned in an
16387 array passed as parameter rather than as a return value.
16388 (cprop_insn): Use a do while loop rather than a goto. Try each of the
16389 sets returned by find_avail_set, starting with the one whose source is
16390 a constant. Use cprop_reg_p to check if register can be propagated.
16391 (do_local_cprop): Use cprop_reg_p to check if register can be
16393 (implicit_set_cond_p): Likewise.
16395 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
16397 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
16398 (sem_function::equals): IGNORED_NODES parameter is now unused;
16399 update call of equals_private.
16400 (sem_function::equals_private): Do not call equals_wpa; skip
16401 gimple body matching if there is no body.
16402 (sem_function::init): Add logic to hash tthunk info.
16403 (sem_function::parse): Also parse thunks.
16404 * ipa-icf.h (equals_private): Update declaration.
16406 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16408 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
16409 asterisk from name so this can be generated directly.
16410 (*altivec_stvx_<mode>_internal): Likewise.
16411 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
16412 that this is never called during or after reload/lra.
16413 (rs6000_frame_related): Remove split_reg
16414 argument and logic that references it.
16415 (emit_frame_save): Remove last parameter from call to
16416 rs6000_frame_related.
16417 (rs6000_emit_prologue): Remove last parameter from eight calls to
16418 rs6000_frame_related. Force generation of stvx instruction for
16419 Altivec register saves. Remove split_reg handling, which is no
16421 (rs6000_emit_epilogue): Force generation of lvx instruction for
16422 Altivec register restores.
16424 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16426 * config/rs6000/rs6000.opt (mcrypto): Change option description to
16427 match category changes in ISA 2.07B.
16429 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16431 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
16433 (cmp_op, cmp_type): New code attributes.
16434 (NEON_VCMP, NEON_VACMP): New int iterators.
16435 (cmp_op_unsp): New int attribute.
16436 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
16437 (neon_vceq<mode>): Delete.
16438 (neon_vc<cmp_op><mode>_insn): New pattern.
16439 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
16440 (neon_vcgeu<mode>): Delete.
16441 (neon_vcle<mode>): Likewise.
16442 (neon_vclt<mode>: Likewise.
16443 (neon_vcage<mode>): Likewise.
16444 (neon_vcagt<mode>): Likewise.
16445 (neon_vca<cmp_op><mode>): New define_expand.
16446 (neon_vca<cmp_op><mode>_insn): New pattern.
16447 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
16449 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
16451 * tree.h (attribute_value_equal): Declare.
16452 * tree.c (attribute_value_equal): Export.
16454 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
16456 * ipa-icf.c (sem_item::compare_attributes): New function.
16457 (sem_item::compare_referenced_symbol_properties): Compare variable
16459 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
16460 (sem_function::param_used_p): New function.
16461 (sem_function::equals_wpa): Fix attribute comparsion; match
16462 parameter type codes; do not compare paremter flags when
16463 they are not used; compare edge flags; compare indirect calls.
16464 (sem_item::update_hash_by_addr_refs): Hash reference type.
16465 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
16466 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
16467 reference use type.
16468 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
16469 * ipa-icf.h (compare_attributes, param_used_p): Declare.
16471 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
16473 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
16475 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
16476 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
16477 (sem_item::compare_referenced_symbol_properties): New.
16478 (sem_item::hash_referenced_symbol_properties): New.
16479 (sem_item::compare_cgraph_references): Rename to ...
16480 (sem_item::compare_symbol_references): ... this one; use
16481 compare_referenced_symbol_properties.
16482 (sem_function::equals_wpa): Do not compare
16483 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
16484 DECL_IS_OPERATOR_NEW; compare pointer sizes.
16485 (sem_item::update_hash_by_addr_refs): Call
16486 hash_referenced_symbol_properties.
16487 (sem_item::update_hash_by_local_refs): Cleanup.
16488 (sem_function::merge): Do not mix up symbol properties.
16489 (sem_variable::equals_wpa): Use compare_symbol_references.
16490 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
16491 (sem_item::hash_referenced_symbol_properties): New.
16492 (sem_item::compare_symbol_references): New.
16493 (sem_item::compare_cgraph_references): Remove.
16495 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
16498 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
16499 Emit size of local.
16501 2015-04-23 Nick Clifton <nickc@redhat.com>
16503 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
16504 ATTRIBUTE_UNUSED to x parameter.
16505 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
16507 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16509 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
16510 TARGET_CRYPTO to TARGET_P8_VECTOR>
16511 (crypto_vpermxor_<mode>): Likewise.
16512 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
16513 (BU_CRYPTO_3A): Likewise.
16514 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
16515 (BU_CRYPTO_OVERLOAD_3A): New #define.
16516 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
16517 (VPMSUMH): Likewise.
16518 (VPMSUMW): Likewise.
16519 (VPMSUMD): Likewise.
16520 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
16521 (VPERMXOR_V4SI): Likewise.
16522 (VPERMXOR_V8HI): Likewise.
16523 (VPERMXOR_V16QI): Likewise.
16524 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
16525 BU_CRYPTO_OVERLOAD_2A.
16526 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
16527 BU_CRYPTO_OVERLOAD_3A.
16528 * config/rs6000/rs6000.opt (mcrypto): Change description of
16531 2015-04-23 Richard Biener <rguenther@suse.de>
16533 * passes.def: Remove copy propagation passes run directly after CCP.
16534 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
16536 (ccp_visit_phi_node): Rework to handle first executable edge
16539 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
16541 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
16542 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
16543 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
16544 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
16545 (thumb_legimitimize_reload_address): Remove.
16546 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
16548 (thumb_legimitimize_reload_address): Remove.
16550 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16552 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
16554 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16556 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
16558 (store_multiple): Likewise.
16560 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16562 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
16563 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
16564 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
16565 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
16566 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
16567 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
16568 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
16569 Specify issue_rate value.
16570 (arm_issue_rate): Look up issue rate from tuning structs. Remove
16571 large switch statement.
16572 (arm_marvell_pj4_tune): New struct.
16573 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
16576 2015-04-23 Richard Biener <rguenther@suse.de>
16578 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
16579 (vect_find_last_store_in_slp_instance): Rename to ...
16580 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
16581 (vect_analyze_slp_cost_1): Use vector_load for constant defs
16582 and vec_construct for external defs when estimating prologue cost.
16583 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
16584 Compute costs here only when vectorizing loops.
16585 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
16586 have been determined.
16587 (vect_schedule_slp_instance): Simplify vectorized code placement
16588 and prepare for in-BB external defs.
16589 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
16590 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
16591 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
16593 (vect_model_load_cost): Likewise.
16594 (vectorizable_store): Instead add it here.
16595 (vectorizable_load): Likewise.
16596 (vect_is_simple_use): Dump def type textually.
16598 2015-04-23 Richard Biener <rguenther@suse.de>
16600 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
16601 * cfgloop.c (verify_loop_structure): Verify the root loop node.
16602 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
16603 instead of get_eh_region_from_lp_number.
16604 * loop-init.c (fix_loop_structure): If we removed a loop, reset
16607 2015-04-23 Anton Blanchard <anton@samba.org>
16609 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
16610 need for -mprofile-kernel to save LR to stack.
16612 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16614 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
16616 (insn_is_swappable_p): Return 1 for a convert from double to
16617 single precision when all of its uses are splats of BE element
16620 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16622 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
16624 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16627 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
16628 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
16629 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
16631 (rs6000_builtin_mask_for_load): Return 0 for targets with
16632 efficient unaligned VSX accesses so that the vectorizer will use
16633 direct unaligned loads.
16634 (rs6000_builtin_support_vector_misalignment): Always return true
16635 for targets with efficient unaligned VSX accesses.
16636 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
16637 stores on targets with efficient unaligned VSX accesses is almost
16638 always the same as the cost of an aligned load or store, so model
16640 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
16641 unaligned vectors if we have efficient unaligned VSX accesses.
16642 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
16643 undocumented option.
16645 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16648 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
16650 * config.gcc (LIBC_MUSL): New tm_defines macro.
16651 * config/linux.h (OPTION_MUSL): Define.
16652 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16653 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16654 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16656 * config/linux.opt (mmusl): New option.
16657 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16658 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16660 * configure: Regenerate.
16662 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
16664 * config.gcc (LIBC_MUSL): New tm_defines macro.
16665 * config/linux.h (OPTION_MUSL): Define.
16666 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16667 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16668 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16670 * config/linux.opt (mmusl): New option.
16671 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16672 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16674 * configure: Regenerate.
16676 2015-04-22 Yury Gribov <y.gribov@samsung.com>
16678 * doc/invoke.texi (-fsanitize-sections): Update description.
16679 * asan.c (set_sanitized_sections): Parse incoming arg.
16680 (section_sanitized_p): Support wildcards.
16682 2015-04-22 Tom de Vries <tom@codesourcery.com>
16684 PR tree-optimization/65823
16685 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
16686 equality between ap_copy and ap.
16688 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16691 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
16693 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16696 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
16698 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16701 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
16702 remove already contained t-files.
16704 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16706 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
16707 Remove unneeded forward declarations.
16708 (suitable_for_tail_call_opt_p): Commentary typo fix.
16710 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16712 * varasm.c (emit_bss): Remove redundant guard.
16714 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16716 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
16718 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16720 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
16722 2015-04-22 Hale Wang <hale.wang@arm.com>
16723 Terry Guo <terry.guo@arm.com>
16725 PR rtl-optimization/64818
16726 * combine.c (can_combine_p): Don't combine user-specified
16727 register if it is in an asm input.
16729 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
16732 * passes.def (early_optimizations): Add pass_dse.
16734 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16736 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
16737 * reorg.c (redundant_insn): Remove ifdef
16738 INSN_REFERENCES_ARE_DELAYED.
16739 * resource.c (mark_referenced_resources): Likewise.
16741 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16743 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
16744 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
16745 * resource.c (mark_set_resources): Likewise.
16747 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16749 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
16750 * cfgcleanup.c (flow_find_cross_jump): Likewise.
16751 (flow_find_head_matching_sequence): Likewise.
16752 (try_head_merge_bb): Likewise.
16753 * combine.c (can_combine_p): Likewise.
16754 (try_combine): Likewise.
16755 (distribute_notes): Likewise.
16756 * df-problems.c (can_move_insns_across): Likewise.
16757 * final.c (final): Likewise.
16758 * gcse.c (insert_insn_end_basic_block): Likewise.
16759 * ira.c (find_moveable_pseudos): Likewise.
16760 * reorg.c (try_merge_delay_insns): Likewise.
16761 (fill_simple_delay_slots): Likewise.
16762 (fill_slots_from_thread): Likewise.
16763 * sched-deps.c (sched_analyze_2): Likewise.
16765 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16767 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
16768 PIC_OFFSET_TABLE_REGNUM.
16770 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16772 * alias.c (init_alias_target): Remove ifdef
16773 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
16774 * df-scan.c (df_insn_refs_collect): Likewise.
16775 (df_get_regular_block_artificial_uses): Likewise.
16776 (df_get_eh_block_artificial_uses): Likewise.
16777 (df_get_entry_block_def_set): Likewise.
16778 (df_get_exit_block_use_set): Likewise.
16779 * emit-rtl.c (gen_rtx_REG): Likewise.
16780 * ira.c (ira_setup_eliminable_regset): Likewise.
16781 * reginfo.c (init_reg_sets_1): Likewise.
16782 * regrename.c (rename_chains): Likewise.
16783 * reload1.c (reload): Likewise.
16784 (eliminate_regs_in_insn): Likewise.
16785 * resource.c (mark_referenced_resources): Likewise.
16786 (init_resource_info): Likewise.
16788 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16790 * defaults.h (MASK_RETURN_ADDR): New definition.
16791 * except.c (expand_builtin_extract_return_addr): Remove ifdef
16794 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16796 * defaults.h (RETURN_ADDR_OFFSET): New definition.
16797 * except.c (expand_builtin_extract_return_addr): Remove ifdef
16798 RETURN_ADDR_OFFSET.
16799 (expand_builtin_frob_return_addr): Likewise.
16801 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16803 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
16804 (try_redirect_by_replacing_jump): Likewise.
16805 (rtl_tidy_fallthru_edge): Likewise.
16806 * combine.c (insn_a_feeds_b): Likewise.
16807 (find_split_point): Likewise.
16808 (simplify_set): Likewise.
16809 * cprop.c (cprop_jump): Likewise.
16810 * cse.c (cse_extended_basic_block): Likewise.
16811 * df-problems.c (can_move_insns_across): Likewise.
16812 * function.c (emit_use_return_register_into_block): Likewise.
16813 * haifa-sched.c (sched_init): Likewise.
16814 * ira.c (find_moveable_pseudos): Likewise.
16815 * loop-invariant.c (find_invariant_insn): Likewise.
16816 * lra-constraints.c (curr_insn_transform): Likewise.
16817 * postreload.c (reload_combine_recognize_const_pattern):
16819 * reload.c (find_reloads): Likewise.
16820 * reorg.c (delete_scheduled_jump): Likewise.
16821 (steal_delay_list_from_target): Likewise.
16822 (steal_delay_list_from_fallthrough): Likewise.
16823 (redundant_insn): Likewise.
16824 (fill_simple_delay_slots): Likewise.
16825 (fill_slots_from_thread): Likewise.
16826 (delete_computation): Likewise.
16827 * sched-rgn.c (add_branch_dependences): Likewise.
16829 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16831 * genconfig.c (main): Always define HAVE_cc0.
16832 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
16834 * cfgcleanup.c (flow_find_cross_jump): Likewise.
16835 (flow_find_head_matching_sequence): Likewise.
16836 (try_head_merge_bb): Likewise.
16837 * cfgrtl.c (rtl_merge_blocks): Likewise.
16838 (try_redirect_by_replacing_jump): Likewise.
16839 (rtl_tidy_fallthru_edge): Likewise.
16840 * combine.c (do_SUBST_MODE): Likewise.
16841 (insn_a_feeds_b): Likewise.
16842 (combine_instructions): Likewise.
16843 (can_combine_p): Likewise.
16844 (try_combine): Likewise.
16845 (find_split_point): Likewise.
16847 (simplify_set): Likewise.
16848 (distribute_notes): Likewise.
16849 * cprop.c (cprop_jump): Likewise.
16850 * cse.c (cse_extended_basic_block): Likewise.
16851 * df-problems.c (can_move_insns_across): Likewise.
16852 * final.c (final): Likewise.
16853 (final_scan_insn): Likewise.
16854 * function.c (emit_use_return_register_into_block): Likewise.
16855 * gcse.c (insert_insn_end_basic_block): Likewise.
16856 * haifa-sched.c (sched_init): Likewise.
16857 * ira.c (find_moveable_pseudos): Likewise.
16858 * loop-invariant.c (find_invariant_insn): Likewise.
16859 * lra-constraints.c (curr_insn_transform): Likewise.
16860 * optabs.c (prepare_cmp_insn): Likewise.
16861 * postreload.c (reload_combine_recognize_const_pattern):
16863 * reload.c (find_reloads): Likewise.
16864 (find_reloads_address_1): Likewise.
16865 * reorg.c (delete_scheduled_jump): Likewise.
16866 (steal_delay_list_from_target): Likewise.
16867 (steal_delay_list_from_fallthrough): Likewise.
16868 (try_merge_delay_insns): Likewise.
16869 (redundant_insn): Likewise.
16870 (fill_simple_delay_slots): Likewise.
16871 (fill_slots_from_thread): Likewise.
16872 (delete_computation): Likewise.
16873 (relax_delay_slots): Likewise.
16874 * sched-deps.c (sched_analyze_2): Likewise.
16875 * sched-rgn.c (add_branch_dependences): Likewise.
16877 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16879 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
16880 that is trivially ded on non cc0 targets.
16881 (simplify_set): Likewise.
16882 (mark_used_regs_combine): Likewise.
16883 * cse.c (new_basic_block): Likewise.
16884 (fold_rtx): Likewise.
16885 (cse_insn): Likewise.
16886 (cse_extended_basic_block): Likewise.
16887 (set_live_p): Likewise.
16888 * rtlanal.c (canonicalize_condition): Likewise.
16889 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16891 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16893 * conditions.h: Define macros even if HAVE_cc0 is undefined.
16894 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
16895 * final.c: Likewise.
16896 * jump.c: Likewise.
16897 * recog.c: Likewise.
16898 * recog.h: Declare functions even when HAVE_cc0 is undefined.
16899 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
16901 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16903 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
16904 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
16905 * builtins.c (expand_builtin): Remove check if
16906 EH_RETURN_DATA_REGNO is defined.
16907 * df-scan.c (df_bb_refs_collect): Likewise.
16908 (df_get_exit_block_use_set): Likewise.
16909 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
16910 * ira-lives.c (process_bb_node_lives): Likewise.
16911 * lra-lives.c (process_bb_lives): Likewise.
16913 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
16915 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
16916 FIRST_PSEUDO_REG): New.
16917 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
16918 (ARG_POINTER_REGNUM): Define to ARGP_REG.
16919 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
16920 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
16921 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
16922 (FIRST_INT_REG): New.
16923 (LAST_INT_REG): New.
16924 (FIRST_*_REG): Define using *_REG.
16925 (LAST_*_REG): Ditto.
16926 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
16927 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
16928 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
16930 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16932 * expmed.c: (synth_mult): Only assume overlapping
16933 shift with previous steps in alg_sub_t_m2 case.
16935 2015-04-21 Richard Biener <rguenther@suse.de>
16937 PR tree-optimization/65650
16938 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
16939 transitions involving copies.
16940 (set_lattice_value): Adjust for copy lattice state.
16941 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
16942 if that doesn't dominate the merge point.
16943 (bit_value_unop): Adjust what we treat as varying mask.
16944 (bit_value_binop): Likewise.
16945 (bit_value_assume_aligned): Likewise.
16946 (evaluate_stmt): When we simplified to a SSA name record a copy
16947 instead of dropping to varying.
16948 (visit_assignment): Simplify.
16950 * gimple-match.h (gimple_simplify): Add another callback.
16951 * gimple-fold.c (fold_stmt_1): Adjust caller.
16952 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
16953 for the 2nd callback.
16954 * gimple-match-head.c (gimple_simplify): Add a callback that is
16955 used to valueize the stmt operands and use it that way.
16957 2015-04-21 Richard Biener <rguenther@suse.de>
16959 PR tree-optimization/65788
16960 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
16962 2015-04-21 Richard Biener <rguenther@suse.de>
16964 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
16965 vec_construct cost by vec_stmt_cost.
16967 2015-04-21 Richard Biener <rguenther@suse.de>
16969 * cfghooks.h (create_basic_block): Replace with two overloads
16970 for RTL and GIMPLE.
16971 (split_block): Likewise.
16972 * cfghooks.c (split_block): Rename to ...
16973 (split_block_1): ... this.
16974 (split_block): Add two type-safe overloads for RTL and GIMPLE.
16975 (split_block_after_labels): Call split_block_1.
16976 (create_basic_block): Rename to ...
16977 (create_basic_block_1): ... this.
16978 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
16979 (create_empty_bb): Call create_basic_block_1.
16980 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
16981 split_block_after_labels.
16982 * omp-low.c (expand_parallel_call): Likewise.
16983 (expand_omp_target): Likewise.
16984 (simd_clone_adjust): Likewise.
16985 * tree-chkp.c (chkp_get_entry_block): Likewise.
16986 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
16987 create_basic_block overload.
16988 (cgraph_node::expand_thunk): Likewise.
16989 * tree-cfg.c (make_blocks): Likewise.
16990 (handle_abnormal_edges): Likewise.
16991 * tree-inline.c (copy_bb): Likewise.
16993 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16995 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
16997 (*xor_one_cmplsidi3_ze): Likewise.
16999 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
17001 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
17002 use df_remove_problem rather than manually removing problems, leaving
17003 holes in df->problems_in_order[].
17005 2015-04-21 Tom de Vries <tom@codesourcery.com>
17007 PR tree-optimization/65802
17008 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
17010 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17012 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
17014 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
17015 at '.'. Assert that there's enough space for everything.
17017 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
17019 PR tree-optimization/64950
17021 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
17024 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
17027 2015-04-20 Shiva Chen <shiva0217@gmail.com>
17029 PR rtl-optimization/64916
17030 * cfgcleanup.c (values_equal_p): New function.
17031 (can_replace_by): Use it.
17033 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
17036 * doc/invoke.texi ([-Wnarrowing]): Update.
17038 2015-04-20 Jeff Law <law@redhat.com>
17040 PR tree-optimization/65658
17041 * tree-ssa-threadupdate.c (redirection_block_p): Remove
17042 redundant test for GIMPLE_ASSIGN in last change.
17044 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
17046 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
17047 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
17048 (legitimize_tls_address): Ditto.
17049 (ix86_expand_move): Ditto.
17050 (ix86_expand_binary_operator): Remove reload_in_progress checks.
17051 (ix86_expand_unary_operator): Ditto.
17052 * config/i386/predicates.md (index_register_operand): Ditto.
17054 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
17056 * reorg.c (try_merge_delay_insns): Improve correctness checking
17057 for targets with multiple delay slots.
17059 2015-04-20 Jeff Law <law@redhat.com>
17061 PR tree-optimization/65658
17062 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
17065 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
17067 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
17068 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
17071 2015-04-20 Jakub Jelinek <jakub@redhat.com>
17074 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
17076 2015-04-20 Richard Biener <rguenther@suse.de>
17078 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
17079 * gimple-fold.c (gimple_build_valueize): New function.
17080 (gimple_build): Always use gimple_build_valueize as valueize hook.
17082 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
17085 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
17086 and overwrite variable parts if <= 1/2 the elements are variable.
17088 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
17090 PR rtl-optimization/65805
17091 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
17092 Don't use difference of offset and previous offset if
17093 update_sp_offset is non-zero.
17094 (eliminate_regs_in_insn): Ditto.
17095 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
17096 lra_eliminate_regs_1 call.
17097 * lra-constraints.c (get_equiv_with_elimination): Ditto.
17099 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
17101 * hash-table.h: Remove version of hash_table that stored value_type *.
17102 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
17103 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
17104 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
17105 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
17106 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
17107 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
17108 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
17109 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
17110 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
17111 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
17112 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
17113 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
17114 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
17115 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
17116 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
17117 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
17119 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17120 Jakub Jelinek <jakub@redhat.com>
17123 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
17124 subsequent SH_NONE operand does not overwrite an existing *special
17126 (adjust_extract): Handle case where a vec_extract operation is
17127 wrapped in a PARALLEL.
17129 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
17132 * config/i386/i386.c (ix86_binds_local_p): Define only if
17133 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
17135 2015-04-17 Jeff Law <law@redhat.com>
17137 PR tree-optimization/47679
17138 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
17139 * tree-ssa-scopedtables.c: New file.
17140 * tree-ssa-scopedtables.h: New file.
17141 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
17142 (const_and_copies): Change name/type.
17143 (record_const_or_copy): Move into tree-ssa-scopedtables.c
17144 (record_const_or_copy_1): Similarly.
17145 (restore_vars_to_original_value): Similarly.
17146 (pass_dominator::execute): Create and destroy const_and_copies table.
17147 (thread_across_edge): Update passing of const_and_copies.
17148 (record_temporary_equivalence): Use method calls rather than
17149 manipulating const_and_copies directly.
17150 (record_equality, cprop_into_successor_phis): Similarly.
17151 (dom_opt_dom_walker::before_dom_children): Similarly.
17152 (dom_opt_dom_walker::after_dom_children): Similarly.
17153 (eliminate_redundant_computations): Similarly.
17154 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
17155 (record_temporary_equivalence): Likewise.
17156 (invalidate_equivalences): Likewise.
17157 (record_temporary_equivalences_from_phis): Update due to type
17158 change of const_and_copies. Use method calls rather than
17159 manipulating the stack directly.
17160 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
17161 (thread_through_normal_block, thread_across_edge): Likewise.
17162 (thread_across_edge): Likewise.
17163 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
17164 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
17166 (identify_jump_threads): Update due to type change of equiv_stack.
17167 (finalize_jump_threads): Delete the equiv_stack when complete.
17169 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
17171 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
17172 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
17173 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
17175 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
17178 * config.gcc: Exit with a comment when we do not have a major version
17179 number for the FreeBSD target.
17181 2015-04-17 Jakub Jelinek <jakub@redhat.com>
17184 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
17185 maybe_allows_mem bitfields.
17186 (maybe_allows_none_start, maybe_allows_none_end,
17187 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
17188 maybe_allows_mem_end): New variables.
17189 (compute_maybe_allows): New function.
17190 (add_constraint): Use it to initialize maybe_allows_reg and
17191 maybe_allows_mem fields.
17192 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
17193 is_address constraints such that those that allow neither mem nor
17194 reg come first, then those that only allow reg but not mem, then
17195 those that only allow mem but not reg, then the rest.
17196 (write_allows_reg_mem_function): New function.
17197 (write_tm_preds_h): Call it.
17198 * stmt.c (parse_output_constraint, parse_input_constraint): Use
17199 the generated insn_extra_constraint_allows_reg_mem function
17200 instead of always setting *allows_reg = true; *allows_mem = true;
17201 for unknown extra constraints.
17203 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
17206 * output.h (default_binds_local_p_3): New.
17207 * varasm.c (default_binds_local_p_3): Make it public. Take an
17208 argument to indicate if common symbol may be local. If common
17209 symbol may be local, treat non-external variable as defined
17211 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
17212 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
17213 * config/i386/i386.c (ix86_binds_local_p): New.
17214 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
17215 ix86_binds_local_p.
17217 2015-04-17 Jakub Jelinek <jakub@redhat.com>
17220 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
17221 trying mem_loc_descriptor on XEXP (rtl, 0).
17223 2015-04-17 Martin Liska <mliska@suse.cz>
17225 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
17226 Release symbol_compare_collection.
17227 * ipa-reference.c: Add TODO that a vector should be released.
17229 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
17232 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
17233 to new AVR-LibC file layout (bug #44574).
17234 (*avrlibc_devicelib): Same.
17235 * config/avr/avr-mcus.def: Adjust comments.
17236 * config/avr/avr.opt (nodevicelib): Adjust help.
17238 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
17240 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
17242 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
17245 * gimplify.c (gimplify_init_constructor): Always emit a
17246 side-effecting constructor.
17248 2015-04-17 Tom de Vries <tom@codesourcery.com>
17250 PR tree-optimization/64950
17251 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
17252 in cfun->curr_properties.
17253 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
17254 if we generate an IFN_VA_ARG.
17255 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
17256 function if PROP_gimple_lva is not set in src function.
17258 2015-04-17 Tom de Vries <tom@codesourcery.com>
17259 Michael Matz <matz@suse.de>
17261 PR tree-optimization/64950
17262 * gimple-iterator.c (update_modified_stmts): Remove static.
17263 * gimple-iterator.h (update_modified_stmts): Declare.
17264 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
17265 (gimplify_va_arg_internal): New function.
17266 (gimplify_va_arg_expr): Use IFN_VA_ARG.
17267 * gimplify.h (gimplify_va_arg_internal): Declare.
17268 * internal-fn.c (expand_VA_ARG): New unreachable function.
17269 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
17270 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
17271 (expand_ifn_va_arg): New function.
17272 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
17273 (pass_stdarg::execute): Call expand_ifn_va_arg.
17274 (pass_data_lower_vaarg): New pass_data.
17275 (pass_lower_vaarg): New gimple_opt_pass.
17276 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
17277 (make_pass_lower_vaarg): New function.
17278 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
17279 properties_required field.
17280 * passes.def (all_passes): Add pass_lower_vaarg.
17281 * tree-pass.h (PROP_gimple_lva): Add define.
17282 (make_pass_lower_vaarg): Declare.
17284 2015-04-17 Tom de Vries <tom@codesourcery.com>
17286 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
17287 * calls.c (call_expr_flags): Same.
17289 2015-04-17 Tom de Vries <tom@codesourcery.com>
17291 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
17292 (pass_stdarg::execute): ... here.
17294 2015-04-17 Tom de Vries <tom@codesourcery.com>
17295 Michael Matz <matz@suse.de>
17297 * tree-cfg.c (make_blocks_1): Factor out of ...
17298 (make_blocks): ... here.
17299 (make_edges_bb): Factor out of ...
17300 (make_edges): ... here.
17301 (gimple_find_sub_bbs): New function.
17302 * tree-cfg.h (gimple_find_sub_bbs): Declare.
17304 2015-04-17 Tom de Vries <tom@codesourcery.com>
17306 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
17308 2015-04-17 Yury Gribov <y.gribov@samsung.com>
17310 * asan.c (set_sanitized_sections): New function.
17311 (section_sanitized_p): Ditto.
17312 (asan_protect_global): Optionally sanitize user-defined
17314 * asan.h (set_sanitized_sections): Declare new function.
17315 * common.opt (fsanitize-sections): New option.
17316 * doc/invoke.texi (-fsanitize-sections): Document new option.
17317 * opts-global.c (handle_common_deferred_options): Handle new
17320 2015-04-17 Jakub Jelinek <jakub@redhat.com>
17323 * dwarf2out.c (loc_list_from_tree): Return NULL
17324 for DEBUG_EXPR_DECL.
17326 2015-04-17 Christian Bruel <christian.bruel@st.com>
17328 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
17331 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17333 * ira-color.c (setup_left_conflict_sizes_p): Do not process
17334 node itself when computing left conflict subnode size.
17336 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
17338 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
17339 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
17340 *fop_<mode>_1_sse using enabled attribute. Use
17341 register_mixssei387nonimm_operand operand 1 predicate. Change
17342 alternative 3 constraints from "x" to "v".
17344 2015-04-16 Richard Biener <rguenther@suse.de>
17346 PR tree-optimization/65774
17347 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
17348 bit-value tracking on.
17350 2015-04-16 Richard Biener <rguenther@suse.de>
17352 PR tree-optimization/64277
17353 * tree-vrp.c (check_array_ref): Fix anti-range handling,
17354 simplify upper bound handling.
17355 (search_for_addr_array): Simplify.
17356 (check_array_bounds): Handle ADDR_EXPRs here.
17357 (check_all_array_refs): Simplify.
17359 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
17361 * config/i386/i386.c (print_reg): Rewrite function.
17363 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17365 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
17366 Invert the condition.
17368 2015-04-16 Renlin Li <renlin.li@arm.com>
17370 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
17371 simplifications for UNSIGNED_FLOAT.
17373 2015-04-16 Nick Clifton <nickc@redhat.com>
17375 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
17377 (enum rl78_cpu_type): New.
17378 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
17379 (umulhi3_shift_virt): Remove m constraint from operand 1.
17380 (umulqihi3_virt): Likewise.
17381 * config/rl78/rl78.c (rl78_option_override): Add code to process
17382 -mcpu and -mmul options.
17383 (rl78_alloc_physical_registers): Add code to handle divhi and
17384 divsi valloc attributes.
17385 (set_origin): Likewise.
17386 * config/rl78/rl78.h (RL78_MUL_G14): Define.
17387 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
17388 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
17390 (ASM_SPEC): Pass -mcpu on to assembler.
17391 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
17392 (mulqi3_rl78): Likewise.
17393 (mulhi3_g13): Likewise.
17394 (mulhi3): Generate the G13 or G14 versions of the insn directly.
17395 (mulsi3): Likewise.
17396 (mulhi3_g14): Add clobbers of AX and BC.
17397 (mulsi3_g14): Likewise.
17398 (mulsi3_g13): Likewise.
17399 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
17400 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
17401 * config/rl78/rl78.opt (mmul): Initialise value to
17403 (mcpu): New option.
17404 (m13, m14, mrl78): New option aliases.
17405 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
17406 (MULTILIB_DIRNAMES): Add g13 and g14.
17407 * doc/invoke.texi: Document -mcpu and -mmul options.
17409 2015-04-16 Richard Biener <rguenther@suse.de>
17411 * tree-ssa-ccp.c (likely_value): See if we have operands that
17412 are marked as never simulate again and return CONSTANT in this
17414 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
17415 not have any operands that will be simulated again as
17416 not being simulated again.
17418 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
17420 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
17421 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
17422 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
17424 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
17426 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
17427 *float<SWI48:mode><MODEF:mode>2_sse.
17428 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
17430 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
17433 2015-04-15 Tom de Vries <tom@codesourcery.com>
17436 * function.c (push_dummy_function): New function.
17437 (init_dummy_function_start): Use push_dummy_function.
17438 (pop_dummy_function): New function. Factored out of ...
17439 (expand_dummy_function_end): ... here.
17440 * function.h (push_dummy_function, pop_dummy_function): Declare.
17441 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
17442 pop_dummy_function.
17443 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
17445 2015-04-15 Jeff Law <law@redhat.com>
17447 PR tree-optimization/47679
17448 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
17449 need for forward declaration in upcoming changes.
17450 (record_conditions, record_edge_info): Likewise.
17452 PR rtl-optimization/42522
17453 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
17454 SIGN_EXTRACT as a whole object rather than simplifying
17457 2015-04-15 Jakub Jelinek <jakub@redhat.com>
17460 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
17461 and GIMPLE_PREDICT use break instead of return true. For
17462 GIMPLE_EH_DISPATCH, compare dispatch region.
17464 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
17466 * doc/extend.texi (__sync Builtins): Simplify some text. Update
17467 details about the implementation. Make clear preference for
17468 __atomic builtins. Reduce possibility of future change.
17470 2015-04-15 Nick Clifton <nickc@redhat.com>
17472 * config/rx/rx.opt (mallow-string-insns): New option.
17473 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
17474 builtin if string instructions are denied.
17475 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
17476 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
17478 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
17479 * config/rx/rx.md (movstr): Enable pattern only if string
17480 instructions are allowed.
17481 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
17482 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
17483 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
17484 (MULTILIB_DIRNAMES): Add no-strings.
17485 * doc/invoke.texi: Document -mno-allow-string-insns.
17487 2015-04-15 Alan Modra <amodra@gmail.com>
17491 PR middle-end/36043
17492 * calls.c (load_register_parameters): Don't load past end of
17493 mem unless suitably aligned.
17495 2015-04-15 Nick Clifton <nickc@redhat.com>
17497 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
17498 decrement instruction as being frame related.
17499 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
17501 If zero extending a function address enclose the operation in
17503 (rl78_preferred_reload_class): New function.
17504 (TARGET_PREFERRED_RELOAD_CLASS): Define.
17505 * config/rl78/rl78.md: Remove useless constraints in expanders.
17506 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
17507 (mulhi3_rl78): Likewise.
17508 (mulhi3_g13): Likewise.
17509 (mulsi3_rl78): Likewise.
17510 (es_addr): Move to before the multiply patterns.
17512 2015-04-15 Alan Modra <amodra@gmail.com>
17514 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
17515 and sequence_stack. Add seq.
17516 (seq_stack): Delete.
17517 * function.c (prepare_function_start): Don't access x_last_insn.
17518 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
17519 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
17520 * emit_rtl.c (start_sequence, push_topmost_sequence,
17521 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
17522 sequence accessors.
17523 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
17524 remove_insn): Likewise. Simplify.
17525 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
17526 and pop_topmost_sequence.
17527 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
17529 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
17531 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
17534 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
17537 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
17539 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
17540 (LEGACY_INT_REGNO_P): Ditto.
17541 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
17542 (ANY_MASK_REG_P): Remove.
17543 (BND_REG_P): Rename from ANY_BND_REG_P.
17544 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
17545 legacy integer registers. Do not handle MMX_REG_P in a special way.
17546 Merge 64byte and 32byte SSE handling.
17548 2015-04-14 Nick Clifton <nickc@redhat.com>
17550 * expr.c (expand_assignment): Force an address offset computation
17551 into a register before changing its mode.
17552 (expand_expr_real_1): Likewise.
17554 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
17556 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
17557 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
17558 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
17559 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
17560 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
17561 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
17562 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
17563 and __aarch64_vget_lane_any.
17565 2015-04-14 Jakub Jelinek <jakub@redhat.com>
17567 PR rtl-optimization/65761
17568 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
17569 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
17571 2015-04-14 Richard Biener <rguenther@suse.de>
17573 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
17574 (graphite_can_represent_scev): Use POINTER_TYPE_P.
17576 2015-04-14 Richard Biener <rguenther@suse.de>
17578 PR tree-optimization/65758
17579 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
17581 (ccp_lattice_meet): Likewise.
17582 (bit_value_unop): Likewise.
17583 (bit_value_binop): Likewise.
17584 (bit_value_assume_aligned): Likewise.
17586 2015-04-14 Christian Bruel <christian.bruel@st.com>
17588 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
17591 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
17593 PR tree-optimization/63387
17594 * match.pd ((x unord x) | (y unord y) -> (x unord y),
17595 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
17597 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
17599 * config/i386/predicates.md (any_QIreg_operand): Rename from
17600 q_regs_operand. Do not process subregs.
17601 (QIreg_operand): Use QI_REGNO_P predicate.
17602 (ext_QIreg_operand): Ditto.
17603 (ext_register_operand): Ditto.
17604 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
17605 (AND splitters): Ditto.
17606 (AND with -65536 splitter): Add SWI48 mode for operand 0.
17607 (AND with -256 splitter): Use any_QIreg_operand predicate and
17608 SWI248 mode for operand 0.
17609 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
17610 mode for operand 0.
17611 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
17613 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
17615 * doc/plugins.texi: Rewrite first introductory paragraph.
17617 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17619 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
17620 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
17622 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17624 * ipa-profie.c (ipa_profile): Check number of parameters
17625 and possible polymorphic call targets before
17628 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
17630 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
17631 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
17633 2015-04-13 Richard Biener <rguenther@suse.de>
17635 PR tree-optimization/65204
17636 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
17637 takens for bit-CCP.
17639 2015-04-13 Richard Biener <rguenther@suse.de>
17642 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
17643 and cond_not_taken_branch_cost to 4 and 2.
17644 (bdver2_cost): Likewise.
17645 (bdver3_cost): Likewise.
17646 (bdver4_cost): Likewise.
17648 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17650 * hash-table.h (hash_table constructor): Add mem stats.
17651 (alloc_entries): Likewise.
17653 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17655 * ipa-cp.c (ipcp_driver): Relase prev_edge.
17656 * passes.c (execute_one_pass): Only add transform if pass has one.
17658 2015-04-12 Joseph Myers <joseph@codesourcery.com>
17660 * config/i386/i386.c (ix86_option_override_internal): Don't set
17661 -fprefetch-loop-arrays if optimizing for size.
17663 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17664 Gerald Pfeifer <gerald@pfeifer.com>
17666 * doc/contrib.texi (Contributors): Add Martin Jambor and
17669 2015-04-12 Jakub Jelinek <jakub@redhat.com>
17671 * BASE-VER: Set to 6.0.0.
17673 PR tree-optimization/65747
17674 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
17675 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
17677 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
17679 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
17680 sentence. Improve grammar.
17682 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
17684 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
17686 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
17689 * ipa-inline-transform.c (speculation_removed): Remove static var.
17690 (check_speculations): New function.
17691 (clone_inlined_nodes): Do not check spculations.
17692 (inline_call): Call check_speculations.
17693 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
17694 consider non-invariants.
17696 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
17697 Martin Liska <mliska@suse.cz>
17700 * ipa-icf.c (sem_item::compare_cgraph_references): function and
17701 variable can not match.
17702 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
17703 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
17705 2015-04-11 Jakub Jelinek <jakub@redhat.com>
17707 PR tree-optimization/65735
17708 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
17709 Remove visited_phis argument, add visited_bbs, avoid recursing into the
17710 same bb rather than just into the same phi node.
17711 (thread_through_normal_block): Adjust caller.
17713 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
17715 * doc/contrib.texi (Contributors): Add Ira Rosen.
17717 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
17719 * gcov.c (find_source): Fix miswording in error message.
17720 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
17721 (ix86_expand_sse_comi_round): Fix typo in error message.
17723 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
17725 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
17727 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
17729 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
17731 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
17734 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
17735 Print bad_spills_num and insn_pseudos_num.
17737 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17740 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
17741 when creating +1 values for SImode.
17743 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
17746 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
17749 2015-04-10 Jakub Jelinek <jakub@redhat.com>
17750 Iain Sandoe <iain@codesourcery.com>
17753 * configure: Regenerate.
17755 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
17758 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
17760 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
17762 * doc/contrib.texi (Contributors): Add John Marino.
17764 2015-04-09 Jakub Jelinek <jakub@redhat.com>
17766 PR tree-optimization/65709
17767 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
17768 TREE_TYPE (TREE_TYPE (t)).
17770 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
17773 * lra-int.h (lra_bad_spill_regno_start): New.
17774 * lra.c (lra_bad_spill_regno_start): New.
17775 (lra): Set up lra_bad_spill_regno_start. Set up
17776 lra_constraint_new_regno_start unconditionally.
17777 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
17780 2015-04-09 Marek Polacek <polacek@redhat.com>
17781 Jakub Jelinek <jakub@redhat.com>
17783 PR middle-end/65554
17784 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
17785 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
17788 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
17790 PR rtl-optimization/65693
17791 * combine.c (is_parallel_of_n_reg_sets): Move outside of
17794 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
17797 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
17798 device specs file if "device-specs%s" didn't resolve to a path.
17800 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
17803 * config/i386/i386.c (fixup_modeless_constant): New.
17804 (ix86_expand_args_builtin): Fixup modeless constant operand.
17805 (ix86_expand_round_builtin): Ditto.
17806 (ix86_expand_special_args_builtin): Ditto.
17807 (ix86_expand_builtin): Ditto.
17809 2015-04-09 Jakub Jelinek <jakub@redhat.com>
17812 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
17813 any pow2 integer in between 2 and 0x80000000U inclusive.
17815 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
17817 PR rtl-optimization/65693
17818 * combine.c (is_parallel_of_n_reg_sets): Change first argument
17819 from an rtx_insn * to an rtx.
17820 (try_combine): Adjust both callers. Use it once more.
17822 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17824 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
17825 (chkp_make_static_const_bounds): Search existing
17826 symbol by assembler name. Use make_decl_one_only.
17827 (chkp_get_zero_bounds_var): Remove node search which
17828 is now performed in chkp_make_static_const_bounds.
17829 (chkp_get_none_bounds_var): Likewise.
17831 2015-04-08 Michael Witten <mfwitten@gmail.com>
17833 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
17836 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17838 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
17840 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
17842 * doc/extend.texi (__sync Builtins): Fix grammar.
17844 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17846 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
17848 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17850 * varasm.c (emit_local): Move definition of align.
17852 2015-04-08 Julian Brown <julian@codesourcery.com>
17854 * config/nvptx/mkoffload.c (process): Support variable mapping.
17856 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
17858 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
17860 (alpha_write_one_linkage): Correct typo.
17862 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17864 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
17866 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
17868 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
17870 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17872 * tree-chkp.h (chkp_insert_retbnd_call): New.
17873 * tree-chkp.c (chkp_insert_retbnd_call): New.
17874 * ipa-split.c (insert_bndret_call_after): Remove.
17875 (split_function): Use chkp_insert_retbnd_call.
17876 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
17877 bounds for instrumented functions.
17879 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
17882 * calls.c (initialize_argument_information): When producing tail
17883 call also turn SSA_NAMES passed by references to original PARM_DECLs
17885 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
17888 * lra-remat.c (do_remat): Process input and non-input insn
17889 registers separately.
17891 2015-04-07 Jakub Jelinek <jakub@redhat.com>
17894 * valtrack.c (debug_lowpart_subreg): New function.
17895 (dead_debug_insert_temp): Use it.
17897 PR middle-end/65680
17898 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
17899 into signed HOST_WIDE_INT the same as negative bit_offset.
17901 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
17903 * ipa-comdats.c (ipa_comdats): Visit all thunks
17904 to set proper comdat group.
17906 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17909 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
17910 on constants for NEON VSTRUCT modes.
17912 2015-04-07 Jakub Jelinek <jakub@redhat.com>
17913 Iain Sandoe <iain@codesourcery.com>
17916 * configure: Regenerate.
17918 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
17921 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
17922 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
17923 that LFD is used to load double constants instead of LFS. Add
17924 defaults for all costs structures. Add comments for missing
17925 initialization fields.
17926 (size32_cost): Likewise.
17927 (size64_cost): Likewise.
17928 (rs64a_cost): Likewise.
17929 (mpccore_cost): Likewise.
17930 (ppc403_cost): Likewise.
17931 (ppc405_cost): Likewise.
17932 (ppc440_cost): Likewise.
17933 (ppc476_cost): Likewise.
17934 (ppc601_cost): Likewise.
17935 (ppc603_cost): Likewise.
17936 (ppc604_cost): Likewise.
17937 (ppc604e_cost): Likewise.
17938 (ppc620_cost): Likewise.
17939 (ppc630_cost): Likewise.
17940 (ppccell_cost): Likewise.
17941 (ppc750_cost): Likewise.
17942 (ppc7450_cost): Likewise.
17943 (ppc8540_cost): Likewise.
17944 (ppce300c2c3_cost): Likewise.
17945 (ppce500mc_cost): Likewise.
17946 (ppce500mc64_cost): Likewise.
17947 (ppce5500_cost): Likewise.
17948 (ppce6500_cost): Likewise.
17949 (titan_cost): Likewise.
17950 (power4_cost): Likewise.
17951 (power6_cost): Likewise.
17952 (power7_cost): Likewise.
17953 (power8_cost): Likewise.
17954 (ppca2_cost): Likewise.
17955 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
17957 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
17958 instead of XXLOR to copy SFmode to clear out dirty bits created
17959 when SFmode denormals are generated.
17960 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
17961 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
17963 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
17965 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
17966 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
17967 * config/aarch64/aarch64-tune.md: Regenerate.
17969 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
17971 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
17972 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
17973 * config/arm/arm-cores.def (exynos-m1): New core.
17974 * config/arm/arm-tune.md: Regenerate.
17975 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
17976 * config/arm/bpabi.h: Likewise.
17978 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
17980 * ipa-cp (set_single_call_flag): Remove too
17981 restrictive assert.
17983 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
17985 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
17986 GOMP_offload_unregister from the destructor.
17988 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
17990 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
17991 flags for instrumentation thunk.
17992 (chkp_produce_thunks): Likewise.
17994 2015-04-05 Martin Liska <mliska@suse.cz>
17997 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
17998 has computed data structure.
17999 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
18001 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
18003 * invoke.texi (inline-unit-growth): Increase growth to 20%
18004 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
18006 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
18009 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
18011 (lra_rematerialization_iter): New.
18012 * lra.c (lra): Initialize lra_rematerialization_iter.
18013 Stop updating lra_constraint_new_regno_start after switching of
18014 inheritance and rematerialization.
18015 * lra-remat.c (lra_rematerialization_iter): New.
18016 (lra_remat): Add printing pass iteration. Do rematerialization
18017 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
18019 2015-04-04 Richard Biener <rguenther@suse.de>
18021 PR tree-optimization/64909
18022 PR tree-optimization/65660
18023 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
18024 to take a cost vector for scalar iteration cost.
18025 (vect_get_single_scalar_iteration_cost): Likewise.
18026 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
18027 Compute the scalar iteration cost into a cost vector.
18028 (vect_get_known_peeling_cost): Use the scalar cost vector to
18029 account for the cost of the peeled iterations.
18030 (vect_estimate_min_profitable_iters): Likewise.
18031 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
18034 2015-04-04 Alan Modra <amodra@gmail.com>
18038 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
18039 0.0 constant unless TARGET_VSX.
18040 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
18043 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
18046 * ipa-inline-transform.c (inline_call): Skip sanity check to work
18049 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
18052 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
18053 speculative indirect edges to avoid ordering issue.
18055 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
18058 * ipa-inline.c (edge_badness): Add combined size to the denominator.
18060 2015-04-03 Jakub Jelinek <jakub@redhat.com>
18062 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
18063 TYPE_ARTIFICIAL on the .omp_data* types.
18065 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
18067 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
18068 instrumentation thunks.
18070 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
18072 * config/i386/i386.c (ix86_expand_call): Avoid nested
18073 PARALLEL in returned call value.
18075 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
18077 * lto-cgraph.c (input_cgraph_1): Always link instrumented
18078 assembler name with original one.
18080 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
18082 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
18084 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
18086 Revert parts of r216820.
18087 * config/i386/i386.md (movqi_internal): Correct type calculation
18088 for alternatives 3 and 5.
18090 2015-04-02 Jakub Jelinek <jakub@redhat.com>
18092 PR preprocessor/61977
18093 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
18094 predefine __vector/__bool/__pixel macros nor context sensitive
18095 macros for CLK_ASM.
18096 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
18098 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
18100 * config/pa/pa.c (pa_output_move_double): Directly handle register
18101 indexed memory operand. Simplify handling of scaled register indexed
18104 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
18107 * config/i386/linux-common.h (MPX_SPEC): New.
18108 (CHKP_SPEC): Add MPX_SPEC.
18109 * doc/invoke.texi (-fcheck-pointer-boudns): Document
18110 possible issues with '-z bndplt' support in linker.
18112 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
18114 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
18115 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
18116 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
18117 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
18118 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
18120 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
18122 * config/i386/sync.md (UNSPEC_MOVA): Remove.
18123 (atomic_load<mode>): Change operand 0 predicate to
18124 nonimmediate_operand and fix up the destination when needed.
18126 (atomic_loaddi_fpu): Use UNSPEC_LDA.
18127 (atomic_store<mode>): Change operand 1 predicate to
18128 nonimmendate_operand and move the source to register when needed.
18130 (atomic_store<mode>_1): Use UNSPEC_STA.
18131 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
18132 Fix moves from memory operand. Use UNSPEC_STA.
18134 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
18136 * expmed.c (strict_volatile_bitfield_p): Check that the access will
18137 not cross a MODESIZE boundary.
18138 (store_bit_field, extract_bit_field): Added assertions in the
18139 strict volatile bitfields code path.
18141 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
18144 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
18145 Increase args array size by one to avoid buffer overflow.
18147 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
18149 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
18151 * ipa-inline.c (edge_badness): Add wrapper penalty.
18152 (sum_callers): Move up.
18153 (inline_small_functions): Set single_caller.
18154 * ipa-inline.h (inline_summary): Add single_caller.
18155 * ipa-split.c (split_function): Set split_part.
18156 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
18157 * cgraph.h (cgraph_node): Add split_part.
18159 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
18162 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
18163 Do not split operands 0 and operands 2 to halfmode.
18164 (atomic_compare_and_swap<mode>): Update for
18165 atomic_compare_and_swap<dwi>_doubleword changes.
18167 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
18169 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
18170 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
18171 no caching is done.
18173 2015-03-31 Martin Liska <mliska@suse.cz>
18176 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
18177 has already filled up function summary.
18178 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
18180 2015-03-31 Richard Biener <rguenther@suse.de>
18182 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
18185 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
18187 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
18189 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
18190 (s390_asm_output_function_label): Adapt to new signature of
18191 s390_function_num_hotpatch_hw
18192 Optimise the code generating assembler output.
18193 Add comments to assembler file.
18195 2015-03-31 Richard Biener <rguenther@suse.de>
18197 PR middle-end/65626
18198 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
18199 of the noreturn call so it is last and cleanup_control_flow_bb
18200 can do the CFG part.
18202 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
18205 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
18206 same_comdat_group for external symbols.
18207 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
18208 infinite same_comdat_group traversal loop.
18210 2015-03-31 Jakub Jelinek <jakub@redhat.com>
18213 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
18214 automatically to $headers.
18216 2015-03-30 Jakub Jelinek <jakub@redhat.com>
18219 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
18220 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
18222 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
18224 * ipa-prop.c (param_type_may_change_p): Likewise.
18225 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
18226 (remove_unused_scope_block_p): Add in_ctor_dtor_block
18227 argument. Before inlining, preserve
18228 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
18229 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
18231 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
18233 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
18236 * ipa-inline.c (edge_badness): Base denominator on callee's
18239 2015-03-27 Martin Jambor <mjambor@suse.cz>
18242 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
18243 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
18244 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
18245 node_calling_single_call.
18246 * ipa-cp.c (count_callers): New function.
18247 (set_single_call_flag): Likewise.
18248 (initialize_node_lattices): Count callers and set single_flag_call if
18250 (incorporate_penalties): New function.
18251 (good_cloning_opportunity_p): Use it, dump new flags.
18252 (propagate_constants_topo): Set node_within_scc flag if appropriate.
18253 * doc/invoke.texi (ipa-cp-recursion-penalty,
18254 ipa-cp-single-call-pentalty): Document.
18256 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
18259 * symtab.c (symtab_node::get_partitioning_class): Register vars
18261 * varpool.c (symbol_table::output_variables) Do not assemble unefined
18262 decls for non-symbols.
18264 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
18267 * output.h (default_binds_local_p_2): New.
18268 * varasm.c (default_binds_local_p_2): Renamed to ...
18269 (default_binds_local_p_3): This. Don't return true on protected
18270 data symbol if protected data may be external.
18271 (default_binds_local_p): Use default_binds_local_p_3.
18272 (default_binds_local_p_1): Likewise.
18273 (default_binds_local_p_2): New.
18274 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
18275 default_binds_local_p_2 if TARGET_MACHO is undefined.
18277 2015-03-27 Jakub Jelinek <jakub@redhat.com>
18280 * config/i386/i386.c (legitimize_pic_address): If base
18281 is SYMBOL_REF or LABEL_REF using %rip addressing, force
18282 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
18284 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
18287 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
18290 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
18293 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
18294 of optimized out indirect call.
18295 (redirect_to_unreachable): Always build symbol table node for
18296 BUILT_IN_UNREACHABLE
18298 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
18301 * ira-costs.c (record_reg_classes): Process all constraint string
18304 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
18306 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
18310 * config/c6x/constraints.md (S3): New constraint.
18311 * config/c6x/c6x.md (real_jump): Use it.
18313 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18315 PR middle-end/65595
18316 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
18317 do redirection if the call is not optimized out.
18319 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
18322 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
18323 (fchkp-check-incomplete-type): Add LTO.
18324 (fchkp-zero-input-bounds-for-main): Likewise.
18325 (fchkp-first-field-has-own-bounds): Likewise.
18326 (fchkp-narrow-bounds): Likewise.
18327 (fchkp-narrow-to-innermost-array): Likewise.
18328 (fchkp-use-static-bounds): Likewise.
18329 (fchkp-use-static-const-bounds): Likewise.
18330 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
18332 2015-03-27 Marek Polacek <polacek@redhat.com>
18334 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
18336 2015-03-27 Marek Polacek <polacek@redhat.com>
18339 * ubsan.c (ubsan_create_edge): New function.
18340 (instrument_bool_enum_load): Call it.
18341 (instrument_nonnull_arg): Likewise.
18342 (instrument_nonnull_return): Likewise.
18343 (instrument_object_size): Likewise.
18345 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18347 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
18350 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18353 * lto-streamer.h (class lto_location_cache): New.
18354 (struct data_in): Add location_cache.
18355 (lto_input_location): Update prototype.
18356 (stream_input_location_now): New.
18357 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
18358 pointer to location.
18359 (stream_input_location): Update.
18360 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
18361 (warn_odr): Apply location cache before warning.
18362 (lto_input_location): Update prototype.
18363 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
18364 Use stream_input_location_now.
18365 * lto-streamer-in.c (lto_location_cache::current_cache): New static
18367 (lto_location_cache::cmp_loc): New function.
18368 (lto_location_cache::apply_location_cache): New function.
18369 (lto_location_cache::accept_location_cache): New function.
18370 (lto_location_cache::revert_location_cache): New function.
18371 (lto_location_cache::input_location): New function.
18372 (lto_input_location): Do location caching.
18373 (stream_input_location_now): New function.
18374 (input_eh_region, input_struct_function_base): Use
18375 stream_input_location_now.
18376 (lto_data_in_create): use new.
18377 (lto_data_in_delete): Use delete.
18378 * tree-streamer-in.c (unpack_ts_block_value_fields,
18379 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
18380 lto_input_ts_exp_tree_pointers): Update for cached location api.
18382 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18385 * passes.def: Add pass_nothrow.
18386 * ipa-pure-const.c: (pass_data_nothrow): New.
18387 (pass_nothrow): New.
18388 (pass_nothrow::execute): New.
18389 (make_pass_nothrow): New.
18390 * tree-pass.h (make_pass_nothrow): Declare.
18392 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18394 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
18395 edge to change by speculation resolution or redirection.
18396 (edge_set_predicate): Likewise.
18397 (inline_summary_t::duplicate): Likewise.
18398 (remap_edge_summaries): Likewise.
18400 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18402 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
18404 (can_inline_edge_p): Relax option matching for always inline functions.
18406 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
18409 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
18410 Check operand 4 and operand 0 for equality.
18411 (avx512f_vextract<shuffletype>32x4_1_maskm):
18412 Check operand 6 and operand 0 for equality.
18413 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
18415 (vec_extract_hi_<mode>_maskm): Ditto.
18417 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18419 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
18420 dead calls back to live.
18421 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
18423 (cgraph_node::verify_node): ... here; verify only callee edges,
18425 * cif-code.def (CILK_SPAWN): New code.
18427 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18429 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
18430 (edge_set_predicate): Use it to mark unreachable edges.
18431 (inline_summary_t::duplicate): Remove unnecesary code.
18432 (remap_edge_summaries): Likewise.
18433 (dump_inline_summary): Report contains_cilk_spawn.
18434 (compute_inline_parameters): Compute contains_cilk_spawn.
18435 (inline_read_section, inline_write_summary): Stream
18436 contains_cilk_spawn.
18437 * ipa-inline.c (can_inline_edge_p): Do not touch
18438 DECL_STRUCT_FUNCTION that may not be available;
18439 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
18440 remove check for callee_fun->can_throw_non_call_exceptions and
18441 replace it by optimization attribute check; check for flag_exceptions.
18442 * ipa-inline-transform.c (inline_call): Maintain
18443 DECL_FUNCTION_PERSONALITY
18444 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
18446 2015-03-26 Jakub Jelinek <jakub@redhat.com>
18448 PR tree-optimization/65551
18449 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
18450 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
18452 2015-03-26 Richard Biener <rguenther@suse.de>
18454 PR middle-end/65555
18455 * tree-cfg.c (verify_gimple_call): Do not require a call to
18456 have no LHS if it wasn't recognized as control altering yet.
18458 2015-03-26 Jakub Jelinek <jakub@redhat.com>
18460 PR tree-optimization/64715
18461 * passes.def: Add another instance of pass_object_sizes before ccp1.
18462 * tree-object-size.c (pass_object_sizes::execute): In
18463 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
18464 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
18465 __bos result and the computed constant. Remove redundant
18466 checks, obsoleted by gimple_call_builtin_p test.
18468 * var-tracking.c (variable_tracking_main_1): Don't track
18469 variables for targetm.no_register_allocation targets.
18471 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
18473 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
18474 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
18476 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
18479 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
18480 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
18481 0.0 is correctly setup.
18482 (extenddftf2_internal): Likewise.
18484 2015-03-25 Sebastian Pop <s.pop@samsung.com>
18486 PR tree-optimization/65177
18487 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
18489 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
18490 edges not adjacent on the path to the original code.
18492 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
18495 * doc/install.texi (Building a native compiler): Document new
18496 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
18497 configuration assumes that the host supports the linker plugin.
18499 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
18502 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
18503 chain for generated call.
18505 2015-03-25 Richard Biener <rguenther@suse.de>
18507 * passes.c (pass_manager::execute_early_local_passes): Guard
18508 execution of pass_chkp_instrumentation_passes with
18509 flag_check_pointer_bounds.
18510 (pass_chkp_instrumentation_passes::gate): Likewise.
18512 2015-03-25 Martin Liska <mliska@suse.cz>
18514 PR tree-optimization/65538
18515 * symbol-summary.h (function_summary::~function_summary):
18516 Relese memory for allocated summaries.
18517 (function_summary::release): New function.
18519 2015-03-25 Jakub Jelinek <jakub@redhat.com>
18522 * lto-streamer-out.c (DFS::worklist): New struct.
18523 (DFS::worklist_vec): New data member.
18524 (DFS::next_dfs_num): Remove.
18525 (DFS::DFS): Rewritten using worklist instead of recursion,
18526 using most of code from DFS::DFS_write_tree.
18527 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
18528 pass it to DFS_write_tree calls.
18529 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
18530 quick initial checks push it into worklist_vec and return.
18532 2015-03-25 Richard Biener <rguenther@suse.de>
18534 PR middle-end/65519
18535 * genmatch.c (expr::gen_transform): Re-write to avoid
18536 using gimple_build.
18538 2015-03-25 Bin Cheng <bin.cheng@arm.com>
18540 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
18542 2015-03-25 Bin Cheng <bin.cheng@arm.com>
18544 * config/arm/arm.opt (print_tune_info): New option.
18545 * config/arm/arm.c (arm_print_tune_info): New function.
18546 (arm_file_start): Call arm_print_tune_info.
18547 * config/arm/arm-protos.h (struct tune_params): Add comment.
18548 * doc/invoke.texi (@item -mprint-tune-info): New item.
18549 (-mtune): mention it in ARM Option Summary.
18551 2015-03-25 DJ Delorie <dj@redhat.com>
18553 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
18556 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
18557 Martin Liska <mliska@suse.cz>
18559 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
18560 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
18561 (sem_item::add_type): New function.
18562 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
18563 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
18564 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
18565 (sem_function::equals_wpa): Fix typo.
18566 * ipa-icf.h (sem_item::add_type): New function.
18567 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
18570 2015-03-24 Jakub Jelinek <jakub@redhat.com>
18572 PR tree-optimization/65533
18573 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
18574 with swapped operands, call vect_free_slp_tree on
18575 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
18578 2015-03-24 Richard Biener <rguenther@suse.de>
18580 PR middle-end/65517
18581 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
18582 for fixup if necessary.
18584 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
18586 * doc/extend.texi (Function Attributes): Add @cindex entries
18587 for all attributes and regularize their format. Delete text
18588 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
18589 information about "eightbit_data", "tiny_data", and "model"
18590 variable attributes to the Variable Attributes section. Fix
18591 some obvious typos and copy-editing issues.
18592 (Variable Attributes, Type Attributes): Likewise add/fix
18593 @cindex entries for all attributes.
18595 2015-03-23 Jakub Jelinek <jakub@redhat.com>
18598 * tree-chkp.c (chkp_build_returned_bound): Ignore
18599 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
18601 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
18604 * config/sh/predicates.md (simple_mem_operand,
18605 displacement_mem_operand): Add test for reg.
18606 (short_displacement_mem_operand): Test for displacement_mem_operand
18607 before invoking sh_disp_addr_displacement.
18608 * config/sh/constraints.md (Sdd, Sra): Simplify.
18609 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
18610 Remove redundant displacement_mem_operand tests.
18612 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
18615 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
18616 the same -mmcu=MCU more than once.
18618 2015-03-23 Jakub Jelinek <jakub@redhat.com>
18621 * ipa-devirt.c: Remove duplicate demangle.h include.
18624 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
18626 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
18627 REG_POINTER on *destptr after adjusting it for prologue size.
18630 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
18631 ultimate_alias_target ()->order ints instead of
18632 ultimate_alias_target () pointers.
18634 2015-03-23 Richard Biener <rguenther@suse.de>
18636 PR tree-optimization/65518
18637 * tree-vect-stmts.c (vectorizable_load): Reject single-element
18638 interleaving cases we generate absymal code for.
18640 2015-03-23 Richard Biener <rguenther@suse.de>
18642 PR tree-optimization/65494
18643 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
18645 (vect_analyze_slp_instance): But do that here, always and once.
18647 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18649 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
18650 adding T or multiplying by T+1 and subracting T.
18652 2015-03-22 Jeff Law <law@redhat.com>
18654 PR rtl-optimization/64317
18655 * Makefile.in (OBJS): Add gcse-common.c
18656 * gcse.c: Include gcse-common.h
18657 (struct modify_pair_s): Move structure definition to gcse-common.h
18658 (compute_transp): Move function to gcse-common.c.
18659 (canon_list_insert): Similarly.
18660 (record_last_mem_set_info): Break out some code and put it into
18661 gcse-common.c. Call into the new common code.
18662 (compute_local_properties): Pass additional arguments to compute_transp.
18663 * postreload-gcse.c: Include gcse-common.h and df.h
18664 (modify_mem_list_set, blocks_with_calls): New variables.
18665 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
18666 (get_bb_avail_insn): Pass in the expression index too.
18667 (alloc_mem): Allocate memory for the new bitmaps and lists.
18668 (free_mem): Free memory for the new bitmaps and lists.
18669 (insert_expr_in_table): Record a bitmap index for each entry we
18671 (record_last_mem_set_info): Call into common code in gcse-common.c.
18672 (get_bb_avail_insn): If no available insn was found in the requested
18673 BB. If BB has a single predecessor, see if the expression is
18674 transparent in BB and available in that single predecessor.
18675 (compute_expr_transp): New wrapper for compute_transp.
18676 (eliminate_partially_redundant_load): Pass expression's bitmap_index
18677 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
18678 (gcse_after_reload_main): If there are elements in the hash table,
18679 then compute transparency for all the elements in the hash table.
18680 * gcse-common.h: New file.
18681 * gcse-common.c: New file.
18683 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
18685 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
18687 (System Headers): Likewise.
18689 (Traditional macros): Likewise.
18690 (Invocation): Likewise.
18691 (Option Index): Likewise.
18692 * doc/cppopts.texi (-M): Likewise.
18693 (-finput-charset): Likewise.
18694 (--help): Likewise.
18695 * doc.invoke.texi (AVR Options): Likewise.
18696 (V850 Options): Likewise.
18698 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
18701 * ipa-devirt.c: Include demangle.h
18702 (odr_type_d): Add field rtti_broken.
18703 (odr_subtypes_equivalent_p): Do not require name to match.
18704 (compare_virtual_tables): Fix typo; if type already has ODR violation,
18705 bypass the tests; be ready for function referneces in vtables that are
18706 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
18707 (warn_odr): Give up for nameless types.
18708 (warn_types_mismatch): Report mismatch in mangled names;
18709 report mismatch in anonymous namespaces; look into component types to
18710 give useful error; report when mismatch is dragged in from other ODR
18712 (odr_types_equivalent_p): Match types for being polymorphic; avoid
18713 duplicated diagnostics.
18714 (add_type_duplicate): Reorder checks so more informative ones come
18715 first; fix typo; do not output "the extra base is defined here" when
18717 (BINFO_N_BASE_BINFOS): Relax sanity check.
18719 2015-03-22 Martin Liska <mliska@suse.cz>
18720 Jakub Jelinek <jakub@redhat.com>
18722 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
18723 masks that can potentially include a builtin.
18724 (ix86_add_new_builtins): Introduce fast filter for isa values
18725 that cannot trigger builtin inclusion.
18727 2015-03-22 Martin Liska <mliska@suse.cz>
18729 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
18730 (sem_item::update_hash_by_local_refs): Likewise.
18731 (sem_variable::get_hash): Empty line is fixed.
18732 (sem_item_optimizer::execute): Include adding of hash references.
18733 (sem_item_optimizer::update_hash_by_addr_refs): New function.
18734 (sem_item_optimizer::build_hash_based_classes): Use local hash.
18735 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
18736 (sem_item::update_hash_by_local_refs): Likewise.
18738 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18741 * ipa-comdats.c (enqueue_references): Walk through thunks.
18742 (ipa_comdats): Likewise.
18743 (set_comdat_group_1): New function.
18745 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18748 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
18751 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
18752 Gerald Pfeifer <gerald@pfeifer.com>
18754 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
18756 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
18757 Sandra Loosemore <sandra@codesourcery.com>
18759 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
18760 function parameter declaration.
18761 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
18762 Update arguments to nios2_adjust_call_address().
18763 (sibcall_internal): Rename from *sibcall.
18764 (sibcall_value_internal): Rename from *sibcall_value.
18765 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
18766 (nios2_large_got_address): Add target temp reg parameter.
18767 (nios2_got_address): Adjust call to nios2_large_got_address, add
18768 force_reg around it.
18769 (nios2_load_pic_address): Add target temp reg parameter, replace call
18770 to nios2_got_address with corresponding code.
18771 (nios2_legitimize_constant_address): Update call to
18772 nios2_load_pic_address.
18773 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
18774 to use temp reg for PIC loading purposes.
18775 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
18776 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18777 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
18779 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18781 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
18782 usage of "the @option{...}".
18783 (-Wopenmp-simd): Likewise.
18784 (-fsanitize-recover): Likewise.
18785 (-fsanitize-undefined-trap-on-error): Likewise.
18787 (tracer-dynamic-coverage-feedback): Likewise.
18788 (reorder-block-duplicate-feedback): Likewise.
18789 (loop-unroll-jam-size): Likewise.
18792 (-mabs=legacy): Likewise.
18793 (-mupper-regs-df): Likewise.
18794 (-mupper-regs-sf): Likewise.
18795 (-mpointers-to-nested-functions): Likewise.
18797 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18799 * doc/extend.texi (Cilk Plus Builtins): Add markup.
18801 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18803 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
18804 additional index entries and cross-references.
18805 (-fchkp-check-incomplete-type): Likewise.
18806 (-fchkp-first-field-has-own-bounds): Likewise.
18807 (-fchkp-narrow-to-innermost-array): Likewise.
18808 (-fchkp-use-fast-string-functions): Likewise.
18809 (-fchkp-use-nochk-string-functions): Likewise.
18810 (-fchkp-use-static-const-bounds): Likewise.
18811 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
18812 (-fchkp-instrument-marked-only): Likewise.
18813 (-fchkp-use-wrappers): Likewise.
18814 (-static-libmpx): Likewise.
18815 (-static-libmpxwrappers): Likewise.
18816 * doc/extend.texi (bnd_legacy): Likewise.
18817 (bnd_instrument): Likewise.
18818 (bnd_variable_size): Likewise.
18819 (Pointer Bounds Checker builtins): Likewise.
18821 2015-03-21 Tom de Vries <tom@codesourcery.com>
18823 PR tree-optimization/65458
18824 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
18825 * cgraph.h (cgraph_node): Add parallelized_function field.
18826 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
18827 (input_overwrite_node): Read parallelized_function field.
18828 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
18829 parallelized_function on cgraph_node for child_fn.
18830 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
18831 Remove include of gt-tree-parloops.h.
18832 (parallelized_functions): Remove static variable.
18833 (parallelized_function_p): Rewrite using parallelized_function field of
18835 (create_loop_fn): Remove adding to parallelized_functions.
18836 * Makefile.in (GTFILES): Remove tree-parloops.c
18838 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
18840 PR rtl-optimization/64366
18841 * lra.c (lra_update_insn_regno_info): Consider regs in
18842 CALL_INSN_FUNCTION_USAGE memory.
18844 2015-03-20 Richard Biener <rguenther@suse.de>
18846 PR middle-end/64715
18847 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
18848 for type comparison and gcc_checking_assert.
18849 (chrec_fold_plus_poly_poly): Likewise.
18850 (chrec_fold_multiply_poly_poly): Likewise.
18851 (chrec_convert_1): Likewise.
18852 * gimplify.c (gimplify_expr): Remove premature folding of
18853 &X + CST to &MEM[&X, CST].
18855 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18857 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
18859 (ipa_inline): Recompute inline_failed codes.
18860 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
18861 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
18864 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
18866 PR rtl-optimization/60851
18867 * recog.c (constrain_operands): Accept a pseudo register before reload
18868 for LRA enabled targets.
18870 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
18873 * config/rs6000/predicates.md (easy_fp_constant): Remove special
18874 -ffast-math handling that kept non-0 constants live in the RTL
18875 until reload. Remove logic testing the number of instructions it
18876 took to create a constant in a GPR that was never used, due to a
18877 test for soft-float earlier.
18878 (memory_fp_constant): Delete, no longer used.
18880 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
18881 alternatives for loading non-0 constants into GPRs for hard
18882 floating point that is no longer needed due to changes in
18883 easy_fp_constant. Add support for loading 0.0 into GPRs.
18884 (mov<mode>_hardfloat32): Likewise.
18885 (mov<mode>_hardfloat64): Likewise.
18886 (mov<mode>_64bit_dm): Likewise.
18887 (movtd_64bit_nodm): Likewise.
18888 (pre-reload move FP constant define_split): Delete define_split,
18889 since it is no longer used.
18890 (extenddftf2_internal): Remove GHF constraints that are not valid
18893 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
18895 PR rtl-optimization/63491
18896 * lra-constraints.c (check_and_process_move): Use src instead of
18897 sreg. Remove some dead code.
18899 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
18902 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
18903 (sem_variable::merge): Likewise.
18905 2015-03-19 Martin Liska <mliska@suse.cz>
18908 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
18909 all fields of cgraph_thunk_info.
18911 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
18913 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
18914 clone instrumented thunks.
18916 2015-03-19 Richard Biener <rguenther@suse.de>
18919 2015-03-10 Richard Biener <rguenther@suse.de>
18921 PR middle-end/63155
18922 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18923 * tree-ssa-coalesce.c: Include timevar.h.
18924 (attempt_coalesce): Handle graph being NULL.
18925 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18926 Split out abnormal coalescing to ...
18927 (perform_abnormal_coalescing): ... this function.
18928 (coalesce_ssa_name): Perform abnormal coalescing without computing
18930 (verify_ssa_coalescing_worker): New function.
18931 (verify_ssa_coalescing): Likewise.
18933 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18934 Jakub Jelinek <jakub@redhat.com>
18937 * tsan.c (instrument_gimple): Clear tail call flag on
18940 2015-03-19 Jakub Jelinek <jakub@redhat.com>
18943 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
18944 call in the return bb.
18945 (find_split_points): Add RETURN_BB argument, don't call
18947 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
18948 if true append TSAN_FUNC_EXIT internal call after the call to
18949 the split off function.
18950 (execute_split_functions): Call find_return_bb here.
18951 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
18952 Adjust find_split_points and split_function calls.
18954 2015-03-18 DJ Delorie <dj@redhat.com>
18956 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
18957 (iorqi3_virt): Likewise.
18959 2015-03-18 Tom de Vries <tom@codesourcery.com>
18961 * tree-parloops.c (parallelize_loops): Make static.
18962 * tree-parloops.h (parallelize_loops): Remove extern declaration.
18964 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
18966 PR middle-end/64491
18968 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
18970 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
18971 condition would be removed due to undefined behaviour.
18973 2015-03-18 Martin Liska <mliska@suse.cz>
18976 * cgraph.c (cgraph_node::get_create): Remove unnecessary
18977 xstrdup_for_dump wrapper.
18978 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
18980 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
18981 with xstrdup_for_dump.
18982 (sem_variable::equals): Likewise.
18983 (sem_item_optimizer::read_section): Use symtab_node::name instead of
18985 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
18986 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
18987 symtab_node::asm_name with xstrdup_for_dump.
18988 (congruence_class::dump): Use symtab_node::name instead of
18990 * ipa-icf.h (symtab_node::name): Remove.
18991 (symtab_node::asm_name): Likewise.
18993 2015-03-18 Jakub Jelinek <jakub@redhat.com>
18995 PR tree-optimization/65450
18996 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
18998 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
18999 it instead of duplicate_ssa_name_ptr_info.
19002 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
19004 2015-03-18 Richard Biener <rguenther@suse.de>
19006 * tree-data-ref.h (struct access_matrix): Remove.
19007 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
19008 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
19009 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
19010 (am_vector_index_for_loop): Likewise.
19011 (struct data_reference): Remove access_matrix member.
19012 (DR_ACCESS_MATRIX): Remove.
19013 (lambda_vector_new): Add comment.
19014 (lambda_matrix_new): Use XOBNEWVEC.
19016 2015-03-18 Richard Biener <rguenther@suse.de>
19018 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
19019 (pass_ch::execute): Cleanup the CFG only if we did sth.
19020 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
19022 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19024 * expmed.c (synth_mult): Use std::swap instead of manually
19025 swapping algorithms.
19027 2015-03-18 Jakub Jelinek <jakub@redhat.com>
19030 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
19032 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
19035 * config/avr/avr.opt (-nodevicelib): New option.
19036 * doc/invoke.texi (AVR Options): Document it.
19037 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
19038 libgcc.a, libc.a, libm.a.
19039 * config/avr/specs.h: Same.
19040 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
19041 which don't (directly) depend on the device. Print more help.
19042 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
19043 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
19044 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
19046 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
19047 for specs file name.
19048 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
19049 * config/avr/avr-mcus.def: Adjust initializers and comments.
19051 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
19053 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
19054 DECL_ONE_ONLY to check if decl is one only.
19055 * ipa-split.c (consider_split): Limit splitt of one only functions.
19057 2015-03-16 Jakub Jelinek <jakub@redhat.com>
19059 PR tree-optimization/65427
19060 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
19062 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
19064 2015-03-16 Marek Polacek <polacek@redhat.com>
19066 * cgraph.h (add_new_static_var): Remove declaration.
19067 * varpool.c (add_new_static_var): Remove function.
19069 2015-03-16 Jakub Jelinek <jakub@redhat.com>
19071 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
19072 instead of vec<tree> * with vec_alloc and release for args.
19075 PR middle-end/65431
19076 * omp-low.c (delete_omp_context): Only splay_tree_delete
19077 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
19078 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
19080 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
19083 * cfgexpand.c (align_base): New function.
19084 (alloc_stack_frame_space): Call it.
19085 (expand_stack_vars): Align prev_frame to be sure
19086 data->asan_vec elements aligned properly.
19088 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
19090 PR middle-end/65409
19091 * expr.c (store_field): Do not do a direct block copy if the source is
19092 a PARALLEL with BLKmode.
19094 2015-03-16 Tom de Vries <tom@codesourcery.com>
19096 PR middle-end/65414
19098 2015-03-12 Tom de Vries <tom@codesourcery.com>
19100 PR rtl-optimization/64895
19101 * lra-lives.c (check_pseudos_live_through_calls): Use
19102 actual_call_used_reg_set instead of call_used_reg_set, if available.
19104 2015-03-16 Alan Modra <amodra@gmail.com>
19107 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
19108 Modify Z->r bswapdi splitter to use dest in place of scratch.
19109 In r->Z and Z->r bswapdi splitter rename word_high, word_low
19110 to word1, word2 and rearrange logic to suit.
19111 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
19112 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
19113 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
19114 Add one '?' on r->r. Modify Z->r splitter to avoid need for
19117 2015-03-14 Jakub Jelinek <jakub@redhat.com>
19119 PR tree-optimization/65369
19120 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
19121 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
19122 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
19124 PR tree-optimization/65418
19125 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
19126 are casts in the first PLUS_EXPR operand, ensure tbias and
19127 *totallowp are in the inner type.
19129 PR rtl-optimization/65401
19130 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
19131 argument. If true, adjust_address_nv of x with big-endian
19132 correction for the mode widening to GET_MODE (y).
19133 (make_field_assignment): Don't do MEM mode widening here.
19134 Use MEM_P instead of GET_CODE == MEM.
19136 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
19138 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
19139 the external decls.
19141 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19144 * config/arm/arm.c (arm_gen_constant, AND case): Use
19145 ARM_SIGN_EXTEND when constructing AND mask.
19147 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
19149 * graph.c (print_graph_cfg): Make function names visible and append
19150 parenthesis to it. Also make groups of basic blocks belonging to the
19151 same function visible.
19153 2015-03-12 Richard Biener <rguenther@suse.de>
19155 PR middle-end/44563
19156 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
19157 to avoid quadratic behavior with inline expansion splitting blocks.
19158 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
19159 with the successor if the predecessor will be merged with it.
19160 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
19161 entry block with its successor.
19163 2015-03-13 Richard Biener <rguenther@suse.de>
19165 PR middle-end/44563
19166 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
19167 (cleanup_tree_cfg_1): Do not call it.
19168 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
19169 (fixup_noreturn_call): Mark the stmt as control altering.
19170 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
19172 (pass_data_fixup_cfg): Produce a dump file.
19173 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
19174 (need_noreturn_fixup): New global.
19175 (pass_dominator::execute): Fixup queued noreturn calls.
19176 (optimize_stmt): Queue calls that became noreturn for fixup.
19177 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
19178 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
19179 (el_to_fixup): New global.
19180 (eliminate_dom_walker::before_dom_childre): Queue calls that
19181 became noreturn for fixup.
19182 (eliminate): Fixup queued noreturn calls.
19183 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
19184 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
19185 (substitute_and_fold_dom_walker::before_dom_children): Queue
19186 alls that became noreturn for fixup.
19187 (substitute_and_fold): Fixup queued noreturn calls.
19189 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
19191 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
19192 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
19193 are building; for methods check ODR type of class they belong to if
19194 they may lead to a polymorphic call.
19195 (sem_function::compare_polymorphic_p): Be bit smarter about testing
19196 when function may lead to a polymorphic call.
19197 (sem_function::compare_type_list): Remove.
19198 (sem_variable::equals): Update use of compatible_types_p.
19199 (sem_variable::parse_tree_refs): Remove.
19200 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
19202 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
19204 (func_checker::compatible_polymorphic_types_p): Break out from ...
19205 (unc_checker::compatible_types_p): ... here.
19206 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
19208 (unc_checker::compatible_types_p): Update.
19209 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
19212 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19214 PR rtl-optimization/65235
19215 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
19216 When first element of vec_concat is const_int, calculate its size
19217 using second element.
19219 2015-03-12 Richard Biener <rguenther@suse.de>
19221 PR middle-end/65270
19222 * fold-const.c (operand_equal_p): Fix ordering of resetting
19223 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
19225 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
19227 * config/s390/s390.c (s390_reorg): Move code to output nops after label
19229 (s390_asm_output_function_label): Likewise.
19230 * config/s390/s390.c (s390_asm_output_function_label):
19231 Fix function label alignment with -mhtopatch.
19232 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
19233 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
19234 ("nop_2_byte"): New define_insn.
19235 ("nop_4_byte"): Likewise.
19236 ("nop_6_byte"): Likewise.
19237 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
19238 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
19240 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
19243 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
19246 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
19249 * toplev.c (process_options): Restrict Pointer Bounds Checker
19250 usage with Address Sanitizer.
19252 2015-03-12 Richard Biener <rguenther@suse.de>
19254 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
19256 * omp-low.c (expand_omp_taskreg): Split block before removing
19258 (expand_omp_target): Likewise.
19259 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
19260 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
19261 stmt to split_block.
19263 2015-03-12 Tom de Vries <tom@codesourcery.com>
19265 PR rtl-optimization/64895
19266 * lra-lives.c (check_pseudos_live_through_calls): Use
19267 actual_call_used_reg_set instead of call_used_reg_set, if available.
19269 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
19271 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
19272 (cgraph_node::remove): Likewise.
19273 (cgraph_node::get_untransformed_body): Likewise.
19274 * varpool.c (varpool_node::remove): Likewise.
19275 (varpool_node::get_constructor): Add sanity check.
19277 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
19279 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
19281 (-fabi-compat-version): Likewise.
19282 (-ffriend-injection): Likewise.
19283 (-Wdeclaration-after-statement): Likewise.
19284 (-fomit-frame-pointer): Likewise.
19285 (-ftree-coalesce-inlined-vars): Likewise.
19286 (-fvisibility=): Likewise.
19287 * doc/extend.texi (Typeof): Likewise.
19288 (Zero Length): Likewise.
19289 (Escaped Newlines): Likewise.
19290 (Compound Literals): Likewise.
19291 (Function Attributes): Likewise.
19292 (Label Attributes): Likewise.
19293 (Type Attributes): Likewise.
19294 (Function Names): Likewise.
19295 (Other Builtins): Likewise.
19296 (Function Specific Option Pragmas): Likewise.
19297 (C++ Interface): Likewise.
19299 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
19301 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
19303 2015-03-11 Marek Polacek <polacek@redhat.com>
19305 PR tree-optimization/65388
19306 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
19308 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
19311 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
19312 * configure: Regenerate.
19313 * config.in: Regenerate.
19314 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
19315 [-mn-flash]: Document it.
19316 [__AVR_ARCH__]: Document avrtiny.
19318 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
19319 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
19320 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
19322 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19324 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
19326 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19329 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
19330 allow reloads of PLUS in floating point/VSX registers.
19332 2015-03-11 Junmo Park <junmoz.park@samsung.com>
19334 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
19335 crypto_sha256_fast.
19336 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
19338 2015-03-11 Richard Biener <rguenther@suse.de>
19340 PR tree-optimization/65310
19341 * tree-sra.c (build_ref_for_offset): Also preserve larger
19344 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
19346 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
19348 2015-03-10 Jakub Jelinek <jakub@redhat.com>
19351 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
19353 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
19355 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
19357 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
19358 (sem_function::equals_wpa): ... here.
19360 2015-03-10 Marek Polacek <polacek@redhat.com>
19361 Jakub Jelinek <jakub@redhat.com>
19364 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
19365 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
19368 2015-03-10 Jakub Jelinek <jakub@redhat.com>
19371 * config/rs6000/t-linux: For powerpc64* target set
19372 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
19374 2015-03-10 Richard Biener <rguenther@suse.de>
19376 PR middle-end/44563
19377 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
19378 for redirect_all_calls.
19380 2015-03-10 Marek Polacek <polacek@redhat.com>
19382 * gdbinit.in (pcfun): Define and document.
19384 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
19386 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
19387 of libgomp-plugin.h.
19388 (find_target_compiler): Support a case when the path to gcc is
19389 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
19390 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
19391 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
19393 (main): Use GCC_INSTALL_NAME as target_driver_name.
19394 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
19396 (mkoffload.o): Remove obsolete include path and defines.
19397 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
19399 2015-03-10 Richard Biener <rguenther@suse.de>
19401 PR middle-end/63155
19402 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
19403 * tree-ssa-coalesce.c: Include timevar.h.
19404 (attempt_coalesce): Handle graph being NULL.
19405 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
19406 Split out abnormal coalescing to ...
19407 (perform_abnormal_coalescing): ... this function.
19408 (coalesce_ssa_name): Perform abnormal coalescing without computing
19410 (verify_ssa_coalescing_worker): New function.
19411 (verify_ssa_coalescing): Likewise.
19413 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
19416 * config.gcc (extra_options) [avr]: Remove.
19417 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
19418 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
19419 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
19421 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
19422 (-mmcu=): Add Var and MissingArgError properties.
19424 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
19425 * config/avr/t-multilib: Regenerate.
19426 * config/avr/specs.h: New file.
19427 * config/avr/driver-avr.c: New file.
19428 * config/avr/genopt.sh: Remove file.
19429 * config/avr/avr-tables.opt: Remove file.
19430 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
19431 * config/avr/avr-c.c: Same.
19432 * avr-arch.h: Same.
19433 (avr_current_device): Remove proto.
19434 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
19435 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
19436 (EXTRA_SPEC_FUNCTIONS): Define.
19437 (avr_devicespecs_file): New specs function proto.
19438 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
19439 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
19440 (avr_current_device): Remove definition and usage.
19441 (avr_set_core_architecture): New static function.
19442 (avr_option_override): Use it.
19443 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
19444 (mcu_name): New static array.
19445 (comparator, avr_archs_str, avr_mcus_str): New static functions.
19446 (avr_inform_devices, avr_inform_core_architectures): New functions.
19447 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
19448 (avrlibc.h) [WITH_AVRLIBC]: Include.
19449 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
19450 (print_mcu): Rewrite from scratch.
19451 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
19452 Forward to avr-specific specs defined in device-specs file.
19453 * config/avr/t-avr (driver-avr.o): New rule.
19454 (avr-devices.o): Depend on avr-arch.h.
19455 (avr-mcus): No more depend on avr-tables.opt.
19456 (avr-tables.opt): Remove rule.
19457 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
19459 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
19461 * c-family/c.opt (fchkp-use-wrappers): New.
19462 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
19463 (chkp_wrap_function): New.
19464 (chkp_build_instrumented_fndecl): Support wrapped
19466 * doc/invoke.texi (-fcheck-pointer-bounds): New.
19467 (-fchkp-check-incomplete-type): New.
19468 (-fchkp-first-field-has-own-bounds): New.
19469 (-fchkp-narrow-bounds): New.
19470 (-fchkp-narrow-to-innermost-array): New.
19471 (-fchkp-optimize): New.
19472 (-fchkp-use-fast-string-functions): New.
19473 (-fchkp-use-nochk-string-functions): New.
19474 (-fchkp-use-static-bounds): New.
19475 (-fchkp-use-static-const-bounds): New.
19476 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
19477 (-fchkp-check-read): New.
19478 (-fchkp-check-write): New.
19479 (-fchkp-store-bounds): New.
19480 (-fchkp-instrument-calls): New.
19481 (-fchkp-instrument-marked-only): New.
19482 (-fchkp-use-wrappers): New.
19483 (-static-libmpx): New.
19484 (-static-libmpxwrappers): New.
19486 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
19488 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
19489 (CHKP_SPEC): Add wrappers library.
19490 * c-family/c.opt (static-libmpxwrappers): New.
19492 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
19494 * config/i386/linux-common.h (LIBMPX_LIBS): New.
19495 (LIBMPX_SPEC): New.
19497 * gcc.c (CHKP_SPEC): New.
19498 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
19499 * c-family/c.opt (static-libmpx): New.
19501 2015-03-10 Richard Biener <rguenther@suse.de>
19503 PR middle-end/44563
19504 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
19506 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
19507 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
19508 (cgraph_add_edge_to_call_site_hash): Likewise.
19509 (cgraph_node::get_edge): Likewise.
19510 (cgraph_edge::set_call_stmt): Likewise.
19511 (cgraph_edge::remove_caller): Likewise.
19513 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
19515 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
19516 (callee_saved_gpr_regs_size): ... this.
19517 (callee_saved_regs_first_regno): Rename to ...
19518 (callee_saved_first_gpr_regno): ... this.
19519 (callee_saved_regs_last_regno) Rename to ...
19520 (callee_saved_last_gpr_regno): ... this.
19521 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
19523 (nds32_initial_elimination_offset): Likewise.
19524 (nds32_expand_prologue): Likewise.
19525 (nds32_expand_epilogue): Likewise.
19526 (nds32_expand_prologue_v3push): Likewise.
19527 (nds32_expand_epilogue_v3pop): Likewise.
19528 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
19529 Adjust renamed variables.
19530 (nds32_output_stack_pop): Likewise.
19532 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
19534 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
19537 2015-03-10 Jakub Jelinek <jakub@redhat.com>
19539 PR rtl-optimization/65321
19540 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
19542 * var-tracking.c (use_narrower_mode): Likewise.
19544 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
19546 PR tree-optimization/65355
19547 * varasm.c (notice_global_symbol): Do not produce RTL.
19548 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
19550 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
19551 check for section anchors.
19553 2015-03-10 Alan Modra <amodra@gmail.com>
19556 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
19557 to be single-arch by default. Set cpu_is_64bit for powerpc64
19558 given --with-cpu=native.
19559 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
19560 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
19562 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
19563 rs6000_isa_flags rather than TARGET_64BIT.
19565 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
19566 Kaz Kojima <kkojima@gcc.gnu.org>
19568 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
19570 2015-03-09 Jakub Jelinek <jakub@redhat.com>
19573 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
19574 on a TREE_BINFO, instead use BINFO_TYPE.
19576 2015-03-09 Richard Biener <rguenther@suse.de>
19578 PR middle-end/65270
19579 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
19580 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
19581 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
19582 of that. When comparing dereferences compare alignment.
19583 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
19585 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
19587 * ipa-inline-analysis.c (check_callers): Check
19588 node->can_remove_if_no_direct_calls_and_refs_p.
19589 (growth_likely_positive): Reorganize to call
19590 can_remove_if_no_direct_calls_p later.
19591 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
19592 will_be_removed_from_program_if_no_direct_calls_p): Add
19593 will_inline parameter.
19594 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
19595 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
19596 Handle inliner case correctly.
19598 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
19600 PR tree-optimization/63743
19601 * cfgexpand.c (reorder_operands): Also reorder if only second operand
19602 had its definition forwarded by TER.
19604 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
19607 * ipa-utils.h (types_odr_comparable): Add strict argument.
19608 * ipa-devirt.c: Fix whitespace;
19609 (odr_hasher): Remove.
19610 (odr_name_hasher, odr_vtable_hasher): New hashers.
19611 (can_be_name_hashed_p): New predicate.
19612 (hash_type_name): remove.
19613 (hash_odr_name): New.
19614 (odr_name_hasher::hash): new.
19615 (can_be_vtable_hashed_p): New.
19616 (hash_odr_vtable): New.
19617 (odr_vtable_hasher::hash): New.
19618 (types_same_for_odr): Add strict parameter.
19619 (types_odr_comparable): Likewise.
19620 (odr_name_hasher::equal): New.
19621 (odr_vtable_hasher::equal): New.
19622 (odr_name_hasher::remove): New.
19623 (odr_hash_type): Change to hash_table<odr_name_hasher>.
19624 (odr_vtable_hash_type): New.
19625 (odr_vtable_hash): New.
19626 (odr_subtypes_equivalent_p): Do strict comparsion.
19627 (add_type_duplicate): Merge type names; cleanup; avoid type
19629 (register_odr_type): Initialize vtable hash.
19630 (build_type_inheritance_graph): Likewise
19631 (get_odr_type): Reorg to use two hashes.
19632 (dump_possible_polymorphic_call_targets): Move sanity check after debug
19634 (ipa_devirt): Dump type_inheritance_graph.
19635 (types_same_for_odr): Add strict mode.
19637 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19640 * cgraph.h (symtab_node): Add definition_alignment,
19641 can_increase_alignment_p and increase_alignment.
19642 * symtab.c (symtab_node::can_increase_alignment_p,
19643 increase_alignment_1, symtab_node::increase_alignment,
19644 symtab_node::definition_alignment): New.
19645 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
19646 can_increase_alignment_p.
19647 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
19648 * tree-vect-stmts.c (ensure_base_align): Likewise.
19649 * varasm.c (function_section_1): Use definition_alignment.
19650 (assemble_start_function): Likewise.
19651 (emit_local): likewise.
19652 (build_constant_desc): Likewsie.
19653 (output_constant_def_contents): Likewise.
19654 (place_block_symbol): Likewise.
19655 (output_object_block): Likewise.
19657 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19660 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
19661 when outputting debug.
19663 2015-03-07 Marek Polacek <polacek@redhat.com>
19664 Martin Uecker <uecker@eecs.berkeley.edu>
19667 * doc/invoke.texi: Update description of -fsanitize=bounds.
19669 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
19671 * tree-ssa-phiopt.c (neg_replacement): Remove.
19672 (tree_ssa_phiopt_worker): Remove negate optimization.
19674 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19677 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
19679 2015-03-06 Richard Biener <rguenther@suse.de>
19681 PR middle-end/64928
19682 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
19683 and liveout_obstack members.
19684 (calculate_live_on_exit): Remove.
19685 (calculate_live_ranges): Change declaration.
19686 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
19687 (new_tree_live_info): Adjust.
19688 (calculate_live_ranges): Delete livein when not wanted.
19689 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
19690 Deal with partly deleted live info.
19691 (loe_visit_block): Remove temporary bitmap by using
19692 bitmap_ior_and_compl_into.
19693 (live_worklist): Adjust accordingly.
19694 (calculate_live_on_exit): Make static.
19695 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
19696 we do not need livein.
19698 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
19700 * real.c (real_from_string): Fix typo in assertion.
19702 2015-03-06 Alex Velenko <alex.velenko@arm.com>
19704 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
19707 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19709 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
19711 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
19714 * lra-assigns.c (find_hard_regno_for): Rename to
19715 find_hard_regno_for_1. Add a new parameter.
19716 (find_hard_regno_for): New function using find_hard_regno_for_1.
19718 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
19720 PR rtl-optimization/65067
19721 * expmed.c (store_bit_field, extract_bit_field): Reworked the
19722 strict volatile bitfield handling.
19724 2015-03-05 Martin Liska <mliska@suse.cz>
19727 * ipa-icf.c (sem_variable::equals): Compare variables types.
19729 2015-03-05 Richard Henderson <rth@redhat.com>
19732 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
19733 correctly check weak symbol binding.
19735 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
19737 PR middle-end/65315
19738 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
19741 2015-03-05 Martin Liska <mliska@suse.cz>
19743 * ipa-inline.c (inline_small_functions): Set default value to
19744 prevent warning during bootstrap.
19745 * tree.h: Add pragma guard that ignores false positives during
19748 2015-03-05 Richard Biener <rguenther@suse.de>
19750 PR tree-optimization/65310
19751 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19752 Properly preserve alignment of the base of the access.
19754 2015-03-05 Richard Biener <rguenther@suse.de>
19757 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
19758 Compare dependence info.
19760 2015-03-05 Richard Biener <rguenther@suse.de>
19762 PR middle-end/65233
19763 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
19765 (walk_ssa_copies): Revert last chage. Instead do not walk
19766 SSA names registered for SSA update.
19768 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19771 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
19772 vtable references for their containing type.
19773 (sem_function::equals_wpa): Compare TYPE_RESTRICT
19774 and type attributes.
19776 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
19778 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
19779 before negating it.
19780 * stor-layout.c (finalize_record_size): Revert latest change.
19782 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
19784 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
19786 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19788 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
19789 for correct comdat handling.
19790 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
19792 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
19793 (used_from_object_file_p_worker): Remove.
19794 (cgraph_node::only_called_directly_or_alised): Add
19795 used_from_object_file_p.
19796 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
19797 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
19798 can_remove_if_no_direct_calls_and_refs_p.
19800 2015-03-04 Nick Clifton <nickc@redhat.com>
19802 * config/rl78/rl78.h (enum reg_class): Remove real registers from
19803 General register class.
19804 * config/rl78/rl78-real.md: Replace general register constraints
19805 with real+virtual register constraints.
19807 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19809 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
19810 from checking for -mhtm option.
19812 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19814 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
19815 (struct ipa_sra_check_caller_data): Add has_thunk field.
19816 (ipa_sra_check_caller): Check for thunk.
19817 (ipa_sra_preliminary_function_checks): Give up on function with
19819 (ipa_early_sra): Use call_for_symbol_and_aliases.
19821 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
19824 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
19825 called for __stack_chk_guard symbol.
19827 2015-03-03 DJ Delorie <dj@redhat.com>
19829 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
19831 (*addhi3_real): Likewise.
19832 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
19833 pattern to match incrementing memory.
19834 * config/rl78/predicates.md (rl78_1_2_operand): New.
19835 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
19836 it's the same and only mem.
19837 (rl78_alloc_physical_registers_op2): If there's effectively only
19838 one MEM, transcode it into HL.
19839 (rl78_far_p): Reject addresses that aren't legitimate.
19841 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
19843 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
19846 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
19848 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
19850 Implement call0 ABI for xtensa
19851 * config/xtensa/constraints.md ("a" constraint): Include stack
19852 pointer in case of call0 ABI.
19853 ("q" constraint): Make empty in case of call0 ABI.
19854 ("D" constraint): Include stack pointer in case of call0 ABI.
19855 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
19856 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
19858 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
19860 (xtensa_regno_to_class): Make it a local variable in the
19861 function xtensa_regno_to_class.
19862 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
19863 macro, function prototype and implementation.
19864 (reg_nonleaf_alloc_order): Make it a local variable in the
19865 function order_regs_for_local_alloc.
19866 (xtensa_conditional_register_usage): New function.
19867 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
19868 (xtensa_valid_move): Allow direct moves to stack pointer
19869 register in call0 ABI.
19870 (xtensa_setup_frame_addresses): Only spill register windows in
19872 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
19873 call0 ABI respectively.
19874 (xtensa_function_arg_1): Only mark a7 register for copying in
19876 (xtensa_call_save_reg): New function.
19877 (compute_frame_size): Add space for callee saved register
19878 storage to the frame size in call0 ABI.
19879 (xtensa_expand_prologue): Generate code to set up stack frame
19880 and save callee-saved registers in call0 ABI.
19881 (xtensa_expand_epilogue): New function.
19882 (xtensa_set_return_address): New function.
19883 (xtensa_return_addr): Calculate return address in call0 ABI.
19884 (xtensa_builtin_saveregs): Only mark a7 register for copying and
19885 emit copying code in windowed ABI.
19886 (order_regs_for_local_alloc): Add preferred register allocation
19887 order for non-leaf function in call0 ABI.
19888 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
19889 (xtensa_asm_trampoline_template): Add trampoline generation for
19891 (xtensa_trampoline_init): Add trampoline initialization for
19893 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
19895 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
19896 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
19897 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
19898 ABI call-used registers.
19899 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
19900 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
19902 (REG_CLASS_CONTENTS): Include all registers into the preferred
19903 reload registers set, adjust the set in the
19904 xtensa_conditional_register_usage.
19905 (xtensa_regno_to_class): Drop variable declaration.
19906 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
19908 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
19910 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
19911 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
19912 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
19913 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
19914 location in call0 ABI.
19915 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
19916 stack adjustment size when handling exception.
19917 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
19918 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
19920 ("return" pattern): Generate ret.n/ret in call0 ABI.
19921 ("epilogue" pattern): Expand epilogue.
19922 ("nonlocal_goto" pattern): Use default in call0 ABI.
19923 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
19924 emit eh_set_a0_* depending on ABI.
19925 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
19926 ("eh_set_a0_call0", "blockage"): New patterns.
19928 2015-03-03 Martin Liska <mliska@suse.cz>
19931 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
19933 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19936 * config/rs6000/rs6000-tables.opt: Regenerate table.
19938 2015-03-03 Renlin Li <renlin.li@arm.com>
19940 * doc/md.texi (@item ^): Change ? into ^.
19942 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
19944 * doc/tm.texi: Regenerated.
19946 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
19948 * builtins.c (expand_builtin_return_addr): Add
19949 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
19950 surrounding #ifdef.
19951 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
19953 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
19955 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
19957 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
19960 2015-03-03 Martin Jambor <mjambor@suse.cz>
19961 Eric Botcazou <ebotcazou@adacore.com>
19963 * tree-sra.c (ipa_sra_check_caller_data): New type.
19964 (has_caller_p): Removed.
19965 (ipa_sra_check_caller): New function.
19966 (ipa_sra_preliminary_function_checks): Use it.
19968 2015-03-03 Martin Liska <mliska@suse.cz>
19970 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
19971 instead of if branch.
19973 2015-03-03 Martin Liska <mliska@suse.cz>
19976 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
19978 2015-03-23 Jeff Law <law@redhat.com>
19980 PR tree-optimization/65241
19981 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
19982 hash table if INSERT is true.
19984 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19987 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
19989 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19992 * config/avr/avr.c (context.h, tree-pass.h): Include them.
19993 (avr_pass_data_recompute_notes): New static variable.
19994 (avr_pass_recompute_notes): New class.
19995 (avr_register_passes): New static function.
19996 (avr_option_override): Call it.
19998 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
20000 Fix various problems with specs file generation.
20003 * config.gcc (extra_gcc_objs) [avr]: Remove.
20004 * config/avr/driver-avr.c: Remove file.
20005 * config/avr/t-avr (driver-avr.o): Remove rule.
20006 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
20007 INCLUDES to build. Depend on TM_H.
20008 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
20009 build warnings. Fix non-matching types and non-existing %-codes.
20011 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
20012 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
20013 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
20014 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
20015 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
20016 (LIBGCC_SPEC): Remove definitions.
20018 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
20020 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
20021 to create a register in testing mode.
20023 2015-03-03 Martin Liska <mliska@suse.cz>
20024 Jan Hubicka <hubicka@ucw.cz>
20027 * cgraph.c (cgraph_node::has_thunk_p): New function.
20028 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
20029 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
20030 (sem_function::merge): Assert is changed.
20032 2015-03-03 Martin Liska <mliska@suse.cz>
20033 Martin Jambor <mjambor@suse.cz>
20036 * ipa-icf.c (sem_item_optimizer::execute): Change function
20037 return value to boolean.
20038 (sem_item_optimizer::merge_classes): Likewise.
20039 (ipa_icf_driver): Return TODO_remove_functions in case there's
20040 a merge operation processed.
20041 * ipa-icf.h: Change function return value to boolean.
20043 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20046 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
20047 processor type for 64-bit little endian PowerPC.
20049 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20050 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
20051 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
20052 printing built-in mask so it does not pass NULL pointers.
20054 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
20057 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
20060 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
20061 !ISA_HAS_FP_CONDMOVE.
20063 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
20065 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
20068 2015-03-02 Ulrich Drepper <drepper@gmail.com>
20070 * doc/invoke.texi (Options for Code Generation Conventions):
20071 Fix URL of DSO paper.
20073 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
20076 * ipa-inline.c (check_callers): Looks for recursion.
20077 (inline_to_all_callers): Give up on uninlinable or recursive edges.
20078 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
20079 summary of inline clones.
20080 (do_estimate_growth_1): Fix recursion check.
20082 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
20085 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
20088 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
20089 Aldy Hernandez <aldyh@redhat.com>
20092 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
20093 when checking TYPE_BINFO.
20095 2015-03-02 Richard Biener <rguenther@suse.de>
20098 * ipa-icf-gimple.c: Include builtins.h.
20099 (func_checker::compare_memory_operand): Compare base alignment.
20101 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
20104 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
20105 are never passed by reference.
20107 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
20110 * tree-chkp.c (chkp_check_lower): Don't check against
20111 zero bounds for already instrumented functions.
20112 (chkp_check_upper): Likewise.
20113 (chkp_fini): Clean pass local data to avoid wrong reusage.
20115 2015-02-28 Martin Liska <mliska@suse.cz>
20116 Jan Hubicka <hubicka@ucw.cz>
20118 * ipa-icf.c (sem_variable::equals): Improve debug output;
20119 get variable constructor.
20120 (sem_variable::parse): Do not filter out too early; give up on
20121 volatile and register vars.
20122 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
20124 * ipa-icf.h (sem_variable::init): Do not set ctor.
20125 (sem_variable::ctor): Remove.
20127 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
20129 PR middle-end/65233
20130 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
20132 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
20134 * ipa-icf.c: Include stor-layout.h
20135 (sem_function::compare_cgraph_references): Rename to ...
20136 (sem_item::compare_cgraph_references): ... this one.
20137 (sem_variable::equals_wpa): New function
20138 (sem_variable::equals): Do not check stuff already verified by
20140 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
20141 * ipa-icf.h (sem_item): Add compare_cgraph_references.
20142 (sem_function): Remove compare_cgraph_references.
20143 (sem_variable): Turns equals_wpa into non-inline.
20145 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
20147 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
20148 (sem_item::add_expr): New function.
20149 (sem_function::hash_stmt): Handle operands of most statements.
20150 (sem_variable::get_hash): Hash the actual constructor.
20151 * ipa-icf.h (sem_item): Add add_expr.
20152 (sem_function): Update prototype of hash_stmt
20154 2015-02-28 Martin Liska <mliska@suse.cz>
20155 Jan Hubicka <hubicka@ucw.cz>
20158 * ipa-icf-gimple.c (func_checker::compare_function_decl):
20160 (func_checker::compare_variable_decl): Skip symtab vars.
20161 (func_checker::compare_cst_or_decl): Update.
20162 * ipa-icf.c (sem_function::parse): Do not consider aliases.
20163 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
20164 use correct symtab predicates.
20165 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
20166 (sem_variable::parse): Update comment.
20167 (sem_item_optimizer::build_graph): Consider ultimate aliases
20170 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
20172 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
20175 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
20177 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
20178 (sem_variable::merge) Likewise.
20180 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
20182 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
20183 target; also match flag_ipa_devirt.
20185 2015-03-01 Martin Liska <mliska@suse.cz>
20186 Jan Hubicka <hubicka@ucw.cz>
20188 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
20189 Validate variable alignment.
20190 * ipa-icf.c (sem_function::equals_private): Be more precise
20191 about non-common function attributes.
20192 (sem_variable::equals): Likewise.
20194 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
20197 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
20198 across COMDAT group boundary.
20200 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
20203 * ipa-icf.c (clear_decl_rtl): New function.
20204 (sem_function::merge): Clear RTL before forming alias.
20205 (sem_variable::merge): Clear RTL before forming alias.
20207 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
20210 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
20212 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
20214 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
20217 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
20219 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
20220 a typo in the description.
20222 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
20225 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
20226 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
20227 * lra-constraints.c: Include "params.h".
20228 (EBB_PROBABILITY_CUTOFF): Use
20229 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
20230 (lra_inheritance): Use '<' instead of '<=' for
20231 EBB_PROBABILITY_CUTOFF.
20232 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
20235 2015-02-27 Martin Liska <mliska@suse.cz>
20237 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
20238 vector length condition.
20240 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
20242 * doc/extend.texi (x86 transactional memory intrinsics):
20243 Reorganize discussion of _xbegin. Clarify that the return
20244 value is a bit mask. Expand example and move to end of section.
20246 2015-02-26 Jakub Jelinek <jakub@redhat.com>
20247 Aldy Hernandez <aldyh@redhat.com>
20249 PR rtl-optimization/65220
20250 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
20252 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
20255 * lra-remat.c (update_scratch_ops): New.
20256 (do_remat): Call it.
20257 * lra.c (lra_register_new_scratch_op): New. Take code from ...
20258 (remove_scratches): ... here.
20259 * lra-int.h (lra_register_new_scratch_op): New prototype.
20261 2015-02-27 Marek Polacek <polacek@redhat.com>
20264 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
20265 -Wformat-signedness anymore.
20267 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20269 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
20271 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
20273 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20275 * config/s390/s390.c (enum s390_builtin):
20276 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
20277 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
20278 (s390_init_builtins): Generate new builtin functions.
20279 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
20280 (s390_sfpc, s390_efpc): New pattern definitions.
20282 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20284 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
20285 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
20286 (s390_builtin_decls): New array.
20287 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
20288 (s390_builtin_decl): New function.
20289 (TARGET_BUILTIN_DECL): Define macro.
20291 2015-02-27 Richard Biener <rguenther@suse.de>
20293 PR middle-end/63175
20294 * builtins.c (get_object_alignment_2): Make sure to re-apply
20295 the ANDed mask after recursing to its operand gets us a new
20296 misalignment bit position.
20298 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
20299 Martin Liska <mliska@suse.cz>
20302 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
20303 Use address_matters_p.
20304 (redirect_all_callers, set_addressable): New functions.
20305 (sem_function::merge): Reorganize and fix merging issues.
20306 (sem_variable::merge): Likewise.
20307 (sem_variable::compare_sections): Remove.
20308 * common.opt (fmerge-all-constants, fmerge-constants): Remove
20310 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
20312 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
20314 (address_matters_1): New function.
20315 (symtab_node::address_matters_p): New function.
20316 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
20317 check for merged flag.
20318 * cgraph.h (address_matters_p): Declare.
20319 (symtab_node::address_taken_from_non_vtable_p): Remove.
20320 (symtab_node::address_can_be_compared_p): New method.
20321 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
20322 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
20324 (comdat_can_be_unshared_p_1) Use address_matters_p.
20325 (update_vtable_references): Fix formating.
20326 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
20327 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
20328 * cgraphclones.c: Preserve merged and icf_merged flags.
20330 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
20332 * doc/extend.texi (Function Attributes): Fix spelling and typos.
20333 (Label Attributes): Likewise.
20334 (Cilk Plus Builtins): Likewise.
20335 (ARC SIMD Built-in Functions): Likewise.
20336 (ARM C Language Extensions (ACLE)): Likewise.
20337 (PowerPC Built-in Functions): Likewise.
20338 (PowerPC Hardware Transactional Memory Built-in Functions):
20341 2015-02-26 Jakub Jelinek <jakub@redhat.com>
20343 PR tree-optimization/65216
20344 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
20345 new stmt and new SSA_NAME for lhs whenever the arguments have
20346 changed and weren't just swapped. Fix comment typo.
20348 PR tree-optimization/65215
20349 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
20350 for PDP endian targets.
20351 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
20352 Fix up formatting issues.
20353 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
20354 size is smaller than the original, adjust MEM_REF offset by the
20355 difference of sizes. Use is_gimple_mem_ref_addr instead of
20356 is_gimple_min_invariant test to avoid adding address temporaries.
20358 2015-02-26 Martin Liska <mliska@suse.cz>
20359 Jan Hubicka <hubicka@ucw.cz>
20362 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
20363 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
20364 (sem_item_optimizer::process_cong_reduction): Include division by
20365 sensitive references.
20366 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
20367 * ipa-ref.c (ipa_ref::address_matters_p): New function.
20368 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
20370 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
20373 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
20375 * config/avr/avr.c: Same.
20376 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
20377 Refuse any constant address not in 0..0xbf.
20378 * config/avr/avr.md (*mov<mode>, *movsf): Remove
20379 tiny_valid_direct_memory_access_range from insn conditions.
20380 (mov<mode>): Don't special-case expansion of avrtiny addresses.
20382 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
20385 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
20386 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
20387 * config/sh/predicates.md (const_logical_operand): New predicate.
20388 * config/sh/sh.md: Add new peephole2 patterns.
20390 2015-02-26 Marek Polacek <polacek@redhat.com>
20393 * ipa-inline.c (early_inliner): Recompute inline parameters.
20395 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20398 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
20399 instructions with TImode operands are included in the analysis.
20401 2015-02-26 Sebastian Pop <s.pop@samsung.com>
20403 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
20404 of an EDGE_FSM_THREAD.
20406 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
20408 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
20410 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
20413 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
20415 2015-02-26 Sebastian Pop <s.pop@samsung.com>
20417 PR tree-optimization/65048
20418 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
20419 (thread_through_all_blocks): Call valid_jump_thread_path.
20420 Remove invalid FSM jump-thread paths.
20422 2015-02-26 Jakub Jelinek <jakub@redhat.com>
20424 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
20425 (ipa_write_optimization_summaries): Likewise.
20426 * tree-streamer.h: Include data-streamer.h.
20427 (streamer_mode_table): Declare extern variable.
20428 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
20429 * lto-streamer-out.c (lto_output_init_mode_table,
20430 lto_write_mode_table): New functions.
20431 (produce_asm_for_decls): Call lto_write_mode_table when streaming
20433 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
20434 (lto_create_simple_input_block): Add mode_table argument to the
20435 lto_input_block constructors.
20436 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
20438 * data-streamer-in.c (string_for_index): Likewise.
20439 * ipa-inline-analysis.c (inline_read_section): Likewise.
20440 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
20441 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
20442 * lto-streamer-in.c (lto_read_body_or_constructor,
20443 lto_input_toplevel_asms): Likewise.
20444 (lto_input_mode_table): New function.
20445 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
20446 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
20447 Use bp_pack_machine_mode.
20448 * real.h (struct real_format): Add name field.
20449 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
20450 (class lto_input_block): Add mode_table member.
20451 (lto_input_block::lto_input_block): Add mode_table_ argument,
20452 initialize mode_table.
20453 (struct lto_file_decl_data): Add mode_table field.
20454 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
20455 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
20456 unpack_ts_decl_common_value_fields,
20457 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
20458 * tree-streamer.c (streamer_mode_table): New variable.
20459 * real.c (ieee_single_format, mips_single_format,
20460 motorola_single_format, spu_single_format, ieee_double_format,
20461 mips_double_format, motorola_double_format,
20462 ieee_extended_motorola_format, ieee_extended_intel_96_format,
20463 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
20464 ibm_extended_format, mips_extended_format, ieee_quad_format,
20465 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
20466 decimal_single_format, decimal_double_format, decimal_quad_format,
20467 ieee_half_format, arm_half_format, real_internal_format): Add name
20469 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
20471 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
20474 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
20475 reordering for selective scheduling.
20477 2015-02-26 Terry Guo <terry.guo@arm.com>
20479 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
20480 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
20481 (arm_arch_no_volatile_ce): Declare new global variable.
20482 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
20483 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
20484 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
20485 (TARGET_NO_VOLATILE_CE): New macro.
20486 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
20487 volatile memory access in IT block
20489 2015-02-25 Kai Tietz <ktietz@redhat.com>
20491 PR tree-optimization/61917
20492 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
20493 that reduc_def_stmt is null.
20495 2015-02-25 Martin Liska <mliska@suse.cz>
20497 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
20498 hard register variables.
20500 2015-02-25 Kai Tietz <ktietz@redhat.com>
20503 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
20504 (symtab::noninterposable_alias): Likewise.
20506 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
20509 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
20511 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
20513 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
20516 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
20517 as split condition; force split via '#' in output pattern.
20519 2015-02-25 Richard Biener <rguenther@suse.de>
20520 Kai Tietz <ktietz@redhat.com>
20522 PR tree-optimization/61917
20523 * tree-vect-loop.c (vectorizable_reduction): Allow
20524 vect_internal_def without reduction to exit graceful.
20526 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
20529 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
20530 only with NONDEBUG_INSN_P.
20532 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
20534 Use variadic macros with avr-log.c.
20536 * config/avr/avr-protos.h (avr_vdump): New prototype.
20537 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
20538 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
20539 * config/avr/avr-log.c: Adjust comments.
20540 (avr_vdump): New function.
20541 (avr_vadump): Pass caller as 2nd argument instead of format string.
20542 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
20543 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
20545 2015-02-25 Jakub Jelinek <jakub@redhat.com>
20548 * target.def (target_option_stream_in): New target hook.
20549 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
20550 targetm.target_option.post_stream_in if non-NULL.
20551 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
20552 * doc/tm.texi: Updated.
20553 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
20555 (TARGET_OPTION_POST_STREAM_IN): Redefine.
20557 2015-02-24 Jeff Law <law@redhat.com>
20560 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
20561 of operand 0 and operand 2.
20562 (zero_cost_loop_end, loop_end): Similarly.
20564 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
20566 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
20569 2015-02-24 DJ Delorie <dj@redhat.com>
20571 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
20572 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
20573 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
20574 instead of hardcoding SImode.
20576 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
20578 * omp-low.c (create_omp_child_function): Tag entrypoint
20579 functions with a special attribute.
20581 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
20584 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
20586 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
20588 PR rtl-optimization/65123
20589 * lra-remat.c (operand_to_remat): Check hard regs in insn
20592 2015-02-24 Nick Clifton <nickc@redhat.com>
20594 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
20597 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
20600 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
20601 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
20602 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
20603 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
20604 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
20605 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
20606 (BUILT_IN_GOACC_PARALLEL): Specify as
20607 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
20608 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
20609 * builtin-types.def
20610 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
20611 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
20612 Remove function types.
20613 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
20614 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
20615 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
20616 New function types.
20618 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
20620 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
20622 2015-02-24 Jakub Jelinek <jakub@redhat.com>
20624 PR tree-optimization/65170
20625 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
20626 if val[1] < 0, clear also val[2] and return 3.
20628 2015-02-24 Alan Modra <amodra@gmail.com>
20631 * config/rs6000/rs6000.c (get_memref_parts): Only return true
20632 when *base is a reg. Handle nested plus addresses. Simplify
20635 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
20637 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
20638 use natural alignment when optimizing for size.
20640 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
20643 * config/sh/sh.md (movsicc_true+3): Remove peephole.
20644 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
20645 * config/sh/sh.c (replace_n_hard_rtx): Remove.
20647 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
20650 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
20651 too big for a wide_int. Implement missing wrapping operation.
20653 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
20656 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
20657 instead of const_int 4294901760.
20659 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
20661 * config/avr/t-avr: Fix typo in comment.
20663 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
20665 * doc/rtl.texi (fma): Clarify documentation.
20667 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
20670 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
20671 over input_location.
20673 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20675 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
20676 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
20677 restrict alignments to absolute_biggest_alignment.
20678 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
20680 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
20681 * doc/tm.texi: Regenerate.
20682 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
20684 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
20687 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
20689 2015-02-20 Richard Biener <rguenther@suse.de>
20691 PR tree-optimization/65136
20692 * tree-ssa-propagate.c: Include cfgloop.h.
20693 (replace_phi_args_in): Avoid replacing loop latch edge PHI
20694 arguments with constants.
20696 2015-02-20 Jakub Jelinek <jakub@redhat.com>
20697 Martin Liska <mliska@suse.cz>
20700 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
20701 don't try to create_thunk if stdarg_p. If
20702 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
20703 redirect_callers if possible.
20704 (sem_item_optimizer::execute): Call unregister_hooks here...
20705 (ipa_icf_driver): ... instead of here.
20707 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20709 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
20710 Mark operand 0 as earlyclobber in 2nd alternative.
20711 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
20712 Write negated shift amount into QI lowpart operand 0 and use it
20714 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20716 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20718 * cgraph.h (clone_function_name_1): Declare.
20719 * cgraphclones.c (clone_function_name_1): New function.
20720 (clone_function_name): Use it.
20721 * lto-partition.c: Include "stringpool.h".
20722 (must_not_rename, maybe_rewrite_identifier)
20723 (validize_symbol_for_target): New static functions.
20724 (privatize_symbol_name): Use must_not_rename.
20725 (promote_symbol): Call validize_symbol_for_target.
20726 (lto_promote_cross_file_statics): Likewise.
20727 (lto_promote_statics_nonwpa): Likewise.
20729 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
20732 * config/avr/avr.md (pushhi_insn): New insn.
20733 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
20735 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20736 Jakub Jelinek <jakub@redhat.com>
20738 * tree-streamer.c (preload_common_nodes): Don't preload
20739 TI_VA_LIST* for offloading.
20740 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
20743 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
20745 * config/pa/pa.c (pa_emit_move_sequence): Always force
20746 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
20749 * config/pa/pa.c (pa_reloc_rw_mask): New function.
20750 (TARGET_ASM_RELOC_RW_MASK): Define.
20751 (pa_cannot_force_const_mem): Revert previous change.
20753 2015-02-19 Martin Jambor <mjmabor@suse.cz>
20754 Jan Hubicka <hubicka@ucw.cz>
20757 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
20758 across jump functions.
20760 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
20762 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
20764 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
20766 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
20768 2015-02-19 Richard Henderson <rth@redhat.com>
20770 PR middle-end/65074
20771 * varasm.c (default_binds_local_p_2): Don't test node->definition;
20772 test DECL_EXTERNAL independent of symtab_node.
20774 2015-02-19 Jakub Jelinek <jakub@redhat.com>
20777 * varpool.c (varpool_node::get_constructor): Return early
20778 if this->lto_file_data is NULL.
20780 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20782 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
20783 (rank_for_schedule_debug): Update.
20784 (ready_sort): Make static. Move sorting logic to ...
20785 (ready_sort_debug, ready_sort_real): New static functions.
20786 (schedule_block): Sort both debug insns and real insns in preparation
20787 for ready list trimming. Improve debug output.
20788 * sched-int.h (ready_sort): Remove global declaration.
20790 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
20792 * ipa-icf.c (sem_function::equals_private): Adjust.
20793 (sem_function::bb_dict_test): Take a vec<int> * instead of
20795 * ipa-icf.h (bb_dict_test): Likewise.
20797 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20799 PR gcov-profile/64634
20800 * tree-eh.c (frob_into_branch_around): Fix up typos
20801 in function comment.
20802 (lower_catch): Put eh_seq resulting from EH lowering of
20803 the cleanup sequence after the cleanup rather than before it.
20805 2015-02-18 Tom de Vries <tom@codesourcery.com>
20807 * common.opt (fstdarg-opt): New option.
20808 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
20809 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
20810 (@item -fstdarg-opt): New item.
20812 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
20815 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
20816 for common symbols.
20818 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20820 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
20822 (ALL_HOST_OBJS): Add mkoffload.o.
20823 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
20825 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
20827 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
20828 (compare_virtual_tables): Be smarter about skipping typeinfos;
20829 do sane output on virtual table table mismatch.
20830 (warn_odr): Be ready for forward declarations of enums;
20831 output sane info on base mismatch and virtual table mismatch.
20832 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
20833 when only one type is polymorphic.
20834 (get_odr_type): Fix hashtable corruption.
20835 (dump_odr_type): Dump mangled names.
20837 2015-02-18 Richard Biener <rguenther@suse.de>
20839 PR tree-optimization/65063
20840 * tree-predcom.c (determine_unroll_factor): Return 1 if we
20841 have replaced looparound PHIs.
20843 2015-02-18 Martin Liska <mliska@suse.cz>
20845 * lto-streamer.c (lto_streamer_init): Encapsulate
20846 streamer_check_handled_ts_structures with checking macro.
20848 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20851 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
20852 section if !implicit_section.
20853 (cgraph_node::create_version_clone_with_body): Likewise.
20854 * trans-mem.c (ipa_tm_create_version): Likewise.
20856 2015-02-18 Richard Biener <rguenther@suse.de>
20858 PR tree-optimization/62217
20859 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
20862 2015-02-18 Marek Polacek <polacek@redhat.com>
20865 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
20866 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
20867 is in range [-16K, -1]. Don't issue run-time error if
20868 (ptr > ptr + offset).
20870 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
20872 * doc/install.texi (nvptx-*-none): New section.
20873 * doc/invoke.texi (Nvidia PTX Options): Likewise.
20874 * config/nvptx/nvptx.opt: Update.
20876 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
20877 (access_check): New functions, copied from
20878 config/i386/intelmic-mkoffload.c.
20879 (main): For non-installed testing, look in all COMPILER_PATHs for
20882 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
20884 2015-02-18 Andrew Pinski <apinski@cavium.com>
20885 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
20887 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
20888 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
20890 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
20892 * ipa-visibility.c (function_and_variable_visibility): Only
20893 check locality if node is not already local.
20894 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20895 call_for_symbol_and_aliases instead of
20896 call_for_symbol_thunks_and_aliases.
20897 (ipa_inline): Likewise.
20898 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20899 first walk aliases.
20900 * ipa.c (symbol_table::remove_unreachable_nodes): Use
20901 call_for_symbol_and_aliases.
20902 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20903 (ipa_propagate_frequency_1): Use it; use opt_for_fn
20904 (ipa_propagate_frequency): Update.
20905 (ipa_profile): Add opt_for_fn gueards.
20907 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
20909 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
20910 * doc/invoke.texi (SH options): Document it.
20911 * config/sh/sh.c (sh_insn_length_adjustment): Check
20912 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
20914 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
20916 * common.opt (fipa-cp-alignment): New.
20917 * ipa-cp.c (ipcp_store_alignment_results): Check
20918 flag_ipa_cp_alignment.
20919 * opts.c (default_options_table): Enable -fipa-cp-alignment for
20921 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
20922 * doc/invoke.texi: Document -fipa-cp-alignment.
20924 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
20927 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
20928 to nil. Adjust comments.
20930 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
20932 * ipa-visibility.c (function_and_variable_visibility): Only
20933 check locality if node is not already local.
20934 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20935 call_for_symbol_and_aliases instead of
20936 call_for_symbol_thunks_and_aliases.
20937 (ipa_inline): Likewise.
20938 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20939 first walk aliases.
20940 * ipa.c (symbol_table::remove_unreachable_nodes): Use
20941 call_for_symbol_and_aliases.
20942 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20943 (ipa_propagate_frequency_1): Use it; use opt_for_fn
20944 (ipa_propagate_frequency): Update.
20945 (ipa_profile): Add opt_for_fn guards.
20947 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
20949 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
20950 skipping of "strange" tokens.
20952 2015-02-17 Jeff Law <law@redhat.com>
20954 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
20957 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
20959 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
20960 as forcing a HARD_DEP between instructions, thereby
20961 disallowing rewriting to break dependencies.
20963 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
20965 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
20966 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
20967 variables in boundary that have no inlitalizer encoded and are
20969 * varasm.c (default_binds_local_p_2): External definitions do not
20970 count as definitions here.
20972 2015-02-16 Jeff Law <law@redhat.com>
20974 PR tree-optimization/64823
20975 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
20977 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20978 threading through blocks with PHIs, but no statements.
20979 (thread_through_normal_block): Distinguish between blocks where
20980 we did not process all the statements and blocks with no statements.
20982 2015-02-16 Jakub Jelinek <jakub@redhat.com>
20983 James Greenhalgh <james.greenhalgh@arm.com>
20986 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
20987 section if not linkonce. Fix up formatting.
20988 (cgraph_node::create_version_clone_with_body): Copy section.
20989 * trans-mem.c (ipa_tm_create_version): Likewise.
20991 2015-02-16 Richard Biener <rguenther@suse.de>
20993 PR tree-optimization/65077
20994 * tree-ssa-structalias.c (get_constraint_for_1): Handle
20995 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
20996 (find_func_aliases): Allow float values to carry pointers again.
20998 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
21000 * doc/install.texi (Specific): Reorder targets list to put
21001 aarch64 in alphabetical order. Add a link to aarch64*-*-*
21004 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21005 David Edelsohn <dje.gcc@gmail.com>
21008 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
21009 mapping class to external variable or function reference.
21010 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
21013 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
21016 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
21017 ASM_WEAKEN_DECL if defined.
21019 2015-02-16 Richard Biener <rguenther@suse.de>
21022 * varasm.c (default_file_start): For LTO produced units
21023 emit <artificial> as file directive.
21025 2015-02-16 Richard Biener <rguenther@suse.de>
21027 PR tree-optimization/63593
21028 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
21029 stmts and releasing SSA names until...
21030 (execute_pred_commoning): ... after processing all chains.
21032 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
21035 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
21036 external functions.
21038 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
21040 * doc/bugreport.texi: Adjust section titles throughout the file
21041 to use "Title Case".
21042 * doc/extend.texi: Likewise.
21043 * doc/gcov.texi: Likewise.
21044 * doc/implement-c.texi: Likewise.
21045 * doc/implement-cxx.texi: Likewise.
21046 * doc/invoke.texi: Likewise.
21047 * doc/objc.texi: Likewise.
21048 * doc/standards.texi: Likewise.
21049 * doc/trouble.texi: Likewise.
21051 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
21053 * cgraph.h (symtab_node::has_aliases_p): Simplify.
21054 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
21055 * tree.c (lookup_binfo_at_offset): Make static.
21056 (get_binfo_at_offset): Do not shadow offset; add explanatory
21059 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
21061 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
21062 for all floading point loads and stores except those using a register
21064 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
21067 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
21069 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
21070 (do_estimate_growth_1): Record if any uninlinable edge was seen.
21071 (estimate_growth): Handle uninlinable edges correctly.
21072 (check_callers): New.
21073 (growth_likely_positive): Handle aliases correctly.
21075 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
21077 * ipa-chkp.c: Use iterate_direct_aliases.
21078 * symtab.c (resolution_used_from_other_file_p): Move inline.
21079 (symtab_node::create_reference): Fix formating.
21080 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
21081 (symtab_node::iterate_reference): Move inline.
21082 (symtab_node::iterate_referring): Move inline.
21083 (symtab_node::iterate_direct_aliases): Move inline.
21084 (symtab_node::used_from_object_file_p_worker): Inline into ...
21085 (symtab_node::used_from_object_file_p): ... this one; move inline.
21086 (symtab_node::call_for_symbol_and_aliases): Move inline;
21087 use iterate_direct_aliases.
21088 (symtab_node::call_for_symbol_and_aliases_1): New method.
21089 (cgraph_node::call_for_symbol_and_aliases): Move inline;
21090 use iterate_direct_aliases.
21091 (cgraph_node::call_for_symbol_and_aliases_1): New method.
21092 (varpool_node::call_for_node_and_aliases): Rename to ...
21093 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
21094 use iterate_direct_aliases.
21095 (varpool_node::call_for_symbol_and_aliases_1): New method.
21096 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
21097 (ipa_discover_readonly_nonaddressable_var): Update.
21098 * ipa-devirt.c: Fix formating.
21099 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
21101 (cgraph_node::call_for_symbol_and_aliases): Move inline.
21102 (cgraph_node::call_for_symbol_and_aliases_1): New function..
21103 * cgraph.h (used_from_object_file_p_worker): Remove.
21104 (resolution_used_from_other_file_p): Move inline.
21105 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
21106 (symtab_node::iterate_reference): Move inline.
21107 (symtab_node::iterate_referring): Move inline.
21108 (symtab_node::iterate_direct_aliases): Move inline.
21109 (symtab_node::used_from_object_file_p_worker): Inline into ...
21110 (symtab_node::used_from_object_file_p): Move inline.
21111 * tree-emutls.c (ipa_lower_emutls): Update.
21112 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
21113 (varpool_node::call_for_node_and_aliases): Remove.
21115 2015-02-14 Jakub Jelinek <jakub@redhat.com>
21117 PR tree-optimization/62209
21118 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
21119 op == range->exp, insert seq and gimplified code after labels
21120 instead of after the phi.
21122 2015-02-13 Jeff Law <law@redhat.com>
21125 Revert my change for tree-optimization/64823.
21127 2015-02-13 Jakub Jelinek <jakub@redhat.com>
21129 PR tree-optimization/65053
21130 * tree-ssa-phiopt.c (value_replacement): When moving assign before
21131 cond, either reset VR on lhs or set it to phi result VR.
21133 2015-02-13 Jeff Law <law@redhat.com>
21135 PR tree-optimization/64823
21136 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
21137 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
21138 threading through blocks with PHIs, but no statements.
21139 (thread_through_normal_block): Distinguish between blocks where
21140 we did not process all the statements and blocks with no statements.
21142 PR rtl-optimization/47477
21143 * match.pd (convert (plus/minus (convert @0) (convert @1): New
21144 simplifier to narrow arithmetic.
21146 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
21149 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
21150 polymorphic call info when type is not known to be preserved.
21152 2015-02-13 Maritn Jambor <mjambor@suse.cz>
21155 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
21156 (inline_call): Use it.
21158 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
21160 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
21161 GOMP_DEVICE_NVIDIA_PTX.
21163 2015-02-13 Jakub Jelinek <jakub@redhat.com>
21166 * stmt.c (emit_case_nodes): Use void_type_node instead of
21167 NULL_TREE as LABEL_DECL type.
21169 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
21171 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
21173 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
21174 symbolic references to data to be forced to constant memory on the
21177 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
21179 PR tree-optimization/65002
21180 * tree-cfg.c (pass_data_fixup_cfg): Don't update
21182 * tree-sra.c (some_callers_have_no_vuse_p): New.
21183 (ipa_early_sra): Reject functions whose callers
21184 assume function is read only.
21186 2015-02-13 Richard Biener <rguenther@suse.de>
21189 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
21190 for LTO produced CUs.
21192 2015-02-13 Bin Cheng <bin.cheng@arm.com>
21194 PR tree-optimization/64705
21195 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
21196 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
21197 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
21198 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
21199 expand_simple_operations.
21201 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
21202 Richard Henderson <rth@redhat.com>
21205 * cgraphunit.c (cgraph_node::finalize_function): Set definition
21206 before notice_global_symbol.
21207 (varpool_node::finalize_decl): Likewise.
21208 * varasm.c (default_binds_local_p_2): Rename from
21209 default_binds_local_p_1, add weak_dominate argument. Use direct
21210 returns instead of assigning to local variable. Unify varpool and
21211 cgraph paths via symtab_node. Reject undef weak variables before
21212 testing visibility. Reorder tests for simplicity.
21213 (default_binds_local_p): Use default_binds_local_p_2.
21214 (default_binds_local_p_1): Likewise.
21215 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
21217 (default_elf_asm_output_external): Emit visibility when specified.
21219 2015-02-13 Alan Modra <amodra@gmail.com>
21221 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
21222 code setting up r11 for out-of-line fp restore.
21224 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
21226 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
21227 (muser-mode): Likewise.
21229 2015-02-13 Alan Modra <amodra@gmail.com>
21231 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
21232 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
21234 2015-02-12 David Howells <dhowells@redhat.com>
21236 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
21238 * tree-ssa-uninit.c (dump_predicates): Likewise.
21239 * opts.c (print_filtered_help): Likewise.
21241 2015-02-12 Jakub Jelinek <jakub@redhat.com>
21243 * dwarf2out.c (output_die): Use "%s", name instead of name to
21244 avoid -Wformat-security warning.
21246 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
21247 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
21248 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
21249 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
21251 2015-02-12 Jason Merrill <jason@redhat.com>
21253 * common.opt (-flifetime-dse): New.
21255 2015-02-12 Jakub Jelinek <jakub@redhat.com>
21258 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
21260 PR tree-optimization/65014
21261 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
21262 use original second operand of arg0 or arg1 instead of
21263 that adjusted by STRIP_NOPS.
21265 2015-02-11 Jeff Law <law@redhat.com>
21268 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
21269 that needs to be queued, just queue it for a single cycle.
21271 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
21273 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
21274 bodies of thunks; comment on why.
21275 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
21276 symbols are extern.
21278 2015-02-11 Richard Henderson <rth@redhat.com>
21281 * tree-eh.c (mark_reachable_handlers): Mark source and destination
21282 regions of __builtin_eh_copy_values.
21284 2015-02-11 Jakub Jelinek <jakub@redhat.com>
21286 PR middle-end/65003
21287 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
21288 ultimate alias is MEM with SYMBOL_REF satisfying
21289 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
21290 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
21292 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
21294 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
21295 "diagnostic-core.h".
21296 (main): Initialize progname, and call diagnostic_initialize.
21298 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
21299 instead of __OPENMP_TARGET__.
21301 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
21302 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
21303 hard-coding PTX_ID.
21305 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
21307 * doc/sourcebuild.texi (pie_enabled): Document.
21309 2015-02-11 Martin Liska <mliska@suse.cz>
21312 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
21313 a return value for call to a function that is noreturn.
21315 2015-02-11 Richard Biener <rguenther@suse.de>
21318 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
21321 2015-02-11 Andrew Pinski <apinski@cavium.com>
21324 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
21325 Change the first argument type to size_type_node and add another
21327 (aarch64_simd_expand_builtin): Handle the new argument to
21328 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
21329 print an out when the first two arguments are not
21330 nonzero integer constants.
21331 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
21332 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
21334 2015-02-11 Jakub Jelinek <jakub@redhat.com>
21337 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
21338 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
21339 (ix86_set_current_function): Rewritten.
21340 (ix86_add_new_builtins): Temporarily clear current_target_pragma
21341 when creating builtin fndecls.
21343 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
21346 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
21348 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
21349 have no comdat group.
21350 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
21351 (lto_output_varpool_node): Always output alias info.
21352 (output_refs): Output refs of boundary aliases, too.
21353 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
21354 (output_symtab): Output call eges in thunks in boundary.
21355 (get_alias_symbol): Remove.
21356 (input_node, input_varpool_node): Do not special case weakrefs.
21357 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
21358 alias and thunks targets in the boundary; do not take removed symbols
21359 from their comdat groups.
21360 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
21361 (cgraph_node::global_info): Remove.
21362 (cgraph_node::rtl_info): Look through aliases and thunks.
21363 * cgrpah.h (global_info): Remove.
21364 (non_local_p): Remove.
21366 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
21367 Sandra Loosemore <sandra@codesourcery.com>
21369 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
21370 to inline asm. List dialects in proper order.
21372 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
21373 Sandra Loosemore <sandra@codesourcery.com>
21375 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
21377 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
21379 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
21380 modified) reference to Solaris.
21382 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
21384 * doc/extend.texi (Extended Asm): Fix typos.
21386 2015-02-10 Jakub Jelinek <jakub@redhat.com>
21389 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
21391 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
21394 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
21395 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
21396 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
21397 * config/sh/constraints.md (Ara, Add): New constraints.
21398 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
21400 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
21401 atomic_mem_operand_0. Don't use force_reg on the memory address.
21402 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
21403 Sra constraint. Convert to insn_and_split. Add workaround for
21405 (atomic_compare_and_swap<mode>_hard): Copy to
21406 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
21407 Use atomic_mem_operand_0 predicate.
21408 (atomic_compare_and_swap<mode>_soft_gusa,
21409 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
21410 AraAdd constraints.
21411 (atomic_compare_and_swap<mode>_soft_tcb,
21412 atomic_compare_and_swap<mode>_soft_imask,
21413 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
21414 atomic_mem_operand_0 predicate and SraSdd constraints.
21415 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
21417 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
21418 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
21419 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
21420 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
21421 force_reg on the memory address.
21422 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
21423 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
21424 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
21425 atomic_mem_operand_1 predicate and Sra constraint.
21426 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
21427 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
21428 Use atomic_mem_operand_1 predicate.
21429 (atomic_<fetchop_name><mode>_hard): Copy to
21430 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
21431 Use atomic_mem_operand_1 predicate.
21432 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
21433 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
21434 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
21435 insn_and_split. Use atomic_mem_operand_1 predicate.
21436 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
21437 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
21438 Use atomic_mem_operand_1 predicate.
21439 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
21440 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
21441 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
21442 in generated insn with original mem operand before emitting the insn.
21443 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
21444 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
21445 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
21446 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
21447 Use atomic_mem_operand_1 predicate and AraAdd constraints.
21448 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
21449 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
21450 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
21451 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
21452 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
21453 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
21454 atomic_not_fetch<mode>_soft_tcb,
21455 atomic_<fetchop_name>_fetch<mode>_soft_imask,
21456 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
21457 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
21458 Use atomic_mem_operand_1 predicate and SraSdd constraints.
21460 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
21462 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
21463 and 3 earlyclobber operands.
21465 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
21467 * common.opt (fstack-reuse): Mark as optimization.
21469 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
21472 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
21474 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
21476 PR tree-optimization/64326
21477 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
21479 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
21481 PR gcov-profile/61889
21482 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
21484 2015-02-10 Richard Biener <rguenther@suse.de>
21486 PR tree-optimization/64995
21487 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
21488 value we use is final.
21489 (visit_reference_op_store): Always valueize op.
21490 (visit_use): Properly valueize vuses.
21492 2015-02-10 Richard Biener <rguenther@suse.de>
21494 PR tree-optimization/64909
21495 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
21496 pass a scalar-stmt count estimate to the cost model.
21497 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
21499 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
21501 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
21502 enabled by default together with var-tracking.
21504 2015-02-10 Nick Clifton <nickc@redhat.com>
21506 * config/rl78/rl78.c: Remove DIV attribute code accidentally
21507 included in previous rl78 commit.
21509 2015-02-10 Richard Biener <rguenther@suse.de>
21511 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
21512 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
21513 return the bitpack.
21515 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
21517 PR gcov-profile/61889
21518 * config.in: regenerate.
21519 * configure.in: Likewise.
21520 * configure.ac: Check for ftw.h.
21521 * gcov-tool.c: Check for ftw.h before using nftw.
21523 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
21526 * ipa-visibility.c (update_visibility_by_resolution_info): Only
21527 assert when not in lto mode.
21529 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21531 * ira-color.c (setup_left_conflict_sizes_p): Simplify
21532 initialization/assignment of conflict_size.
21534 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
21537 * ipa-cp.c (gather_caller_stats): Skip thunks.
21538 (propagate_constants_topo): Skip aliases.
21540 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
21543 * config/sh/sh.c (sh_option_override): Don't change
21544 -freorder-blocks-and-partition to -freorder-blocks even when
21545 unwinding is enabled.
21546 (sh_can_follow_jump): Return false if the followee jump is
21547 a crossing jump when -freorder-blocks-and-partition is specified.
21548 * config/sh/sh.md (*jump_compact_crossing): New insn.
21550 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
21551 Kaz Kojima <kkojima@gcc.gnu.org>
21554 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
21555 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
21556 (sh_can_redirect_branch): Rename to ...
21557 (sh_can_follow_jump): ... this. Constify argument types.
21558 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
21559 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
21560 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
21561 * doc/tm.texi: Regenerate.
21563 2015-02-09 Jakub Jelinek <jakub@redhat.com>
21566 * builtins.c (expand_builtin): Call targetm.expand_builtin
21567 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
21569 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21572 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
21574 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21577 * ipa-icf.c (set_local): New function.
21578 (sem_function::merge): Use it.
21580 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21582 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
21583 (add_type_duplicate): Fix comparison of BINFOs.
21585 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21587 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
21588 on getting VOID pointer.
21590 2015-02-09 Jakub Jelinek <jakub@redhat.com>
21593 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
21596 2015-02-09 Richard Biener <rguenther@suse.de>
21598 * genmatch.c (replace_id): Copy expr_type.
21600 2015-02-09 Richard Biener <rguenther@suse.de>
21602 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
21603 (streamer_write_tree_bitfields): Declare.
21604 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
21605 properly unpack padding.
21606 (unpack_value_fields): Inline ...
21607 (streamer_read_tree_bitfields): ... here.
21608 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
21609 and properly add padding bits.
21610 (streamer_pack_tree_bitfields): Fold into ...
21611 (streamer_write_tree_bitfields): ... this new function,
21612 exposing the bitpack object.
21613 * lto-streamer-out.c (lto_write_tree_1): Call
21614 streamer_write_tree_bitfields.
21616 2015-02-09 Richard Biener <rguenther@suse.de>
21618 PR tree-optimization/54000
21619 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
21620 (struct ivopts_data): Add loop_loc member.
21621 (tree_ssa_iv_optimize_loop): Dump loop location.
21622 (create_new_ivs): Likewise, also dump number of IVs generated.
21624 2015-02-09 Martin Liska <mliska@suse.cz>
21626 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
21627 just if not yet registered.
21628 (ipa_icf_generate_summary): Register callgraph hooks.
21630 2015-02-08 Andrew Pinski <apinski@cavium.com>
21632 * config/aarch64/aarch64.c (gty_dummy): Delete.
21634 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21637 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
21638 (cgraph_node::local_p): Remove thunk related FIXME.
21640 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21643 * i386.c (ix86_function_regparm): Look through aliases to see if callee
21644 is local and optimized.
21645 (ix86_function_sseregparm): Likewise; also use target's SSE math
21646 settings; error out instead of silently generating wrong code
21648 (init_cumulative_args): Look through aliases.
21650 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21653 * ipa-split.c (execute_split_functions): Split if function has aliases.
21655 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21658 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
21659 aliases before trying to expand it.
21660 (cgraph_node::expand_thunk): Fix formating.
21662 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
21664 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
21665 (Using Assembly Language with C): Expand introduction.
21666 (Basic Asm): Copy-edit. Add more information about uses of
21668 (Extended Asm): Copy-edit. Document new escape syntax and
21670 (Global Reg Vars): Copy-edit.
21671 (Local Reg Vars): Likewise.
21673 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
21677 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
21678 (DBX_CONTIN_CHAR): Define.
21680 2015-02-06 Sebastian Pop <s.pop@samsung.com>
21681 Brian Rzycki <b.rzycki@samsung.com>
21683 PR tree-optimization/64878
21684 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
21685 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
21686 Stop recursion at loop phi nodes after having visited a loop phi node.
21688 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21690 * toplev.c (process_options): Change flag_ipa_ra before creating
21691 optimization_{default,current}_node.
21694 * cgraphunit.c (cgraph_node::expand_thunk): If
21695 restype is not is_gimple_reg_type nor the thunk_fndecl
21696 returns aggregate_value_p, set restmp to a temporary variable
21697 instead of resdecl.
21699 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
21701 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
21703 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21706 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
21707 add a general secondary reload handler for SDmode, unless we have
21708 both read/write support for SDmode.
21710 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21712 PR middle-end/64937
21713 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
21714 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
21715 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
21716 1 before, push it to abstract_vec.
21717 (dwarf2out_abstract_function): Adjust caller. Don't call
21718 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
21719 DECL_ABSTRACT_P flags for all abstract_vec elts.
21721 2015-02-06 Renlin Li <renlin.li@arm.com>
21723 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
21725 * tree-ssa.c (execute_update_addresses_taken): Likewise.
21727 2015-02-06 Jeff Law <law@redhat.com>
21730 * config/h8300/h8300.c (push): New argument "in_prologue".
21731 Pass "in_prologue" along to "F".
21732 (h8300_push_pop): Corresponding changes.
21733 (h8300_expand_prologue): Likewise.
21734 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
21736 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21738 PR rtl-optimization/64957
21740 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
21741 IOR rather than for AND.
21743 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
21746 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
21747 of shift-add and (add + shift) operations. Rename local variable.
21749 2015-02-05 Jeff Law <law@redhat.com>
21752 * config/h8300/constraints.md (U): Correctly dectect
21753 "eightbit_data" memory addresses.
21754 * config/h8300/h8300.c (eightbit_constant_address_p): Also
21755 handle (const (plus (symbol_ref (x)))) where x is declared
21756 as an 8-bit data memory address.
21757 * config/h8300/h8300.md (call, call_value): Correctly detect
21758 "funcvec" functions.
21761 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
21762 24 to 28 bits for the H8/300.
21764 2015-02-06 Alan Modra <amodra@gmail.com>
21767 * config/rs6000/rs6000.c (chain_already_loaded): New function.
21768 (rs6000_call_aix): Use it.
21770 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
21772 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
21775 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
21777 * config/h8300/constraints.md ("U" constraint): Use strict
21778 variant of REG_OK_FOR_BASE_P after reload has started.
21780 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
21782 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
21783 define to zero if !TARGET_NEON.
21784 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
21786 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21787 Trevor Saunders <tsaunders@mozilla.com>
21790 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
21792 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21795 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
21796 when removing varpool nodes.
21798 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21801 * varpool.c (varpool_node::remove): Fix order of variables.
21803 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21806 * ipa-inline.c (inline_small_functions): Fix ordering issue between
21807 speculation resolution and key updates.
21809 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21811 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
21812 about not letting any speculative edges unupdated.
21814 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21817 * gcov-io.c (gcov_var): Export.
21819 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21821 PR middle-end/64922
21822 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
21823 edges that become speculative.
21825 2015-02-04 Jakub Jelinek <jakub@redhat.com>
21827 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
21828 or DW_LANG_Fortran08.
21829 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
21831 (gen_compile_unit_die): Handle "GNU Fortran2003" and
21832 "GNU Fortran2008" language strings.
21833 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
21834 * langhooks.h (lang_GNU_Fortran): New prototype.
21835 * langhooks.c (lang_GNU_Fortran): New function.
21836 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
21839 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
21841 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
21842 (RTX_OK_FOR_OLO10_P): Likewise.
21844 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
21846 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
21848 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21850 PR middle-end/64922
21851 * gimple.c: Include gimple-ssa.h.
21852 (maybe_remove_unused_call_args): New function.
21853 * gimple.h (maybe_remove_unused_call_args): Declare.
21854 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
21855 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
21856 * gimple-fold.c (gimple_fold_call): Likewise.
21858 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
21860 PR rtl-optimization/64905
21861 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
21862 pointer alignment if it isn't needed.
21864 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
21866 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
21867 cortex-a72.cortex-a53.
21868 * config/aarch64/aarch64-tune.md: Regenerate.
21869 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
21871 2015-02-04 Nick Clifton <nickc@redhat.com>
21873 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
21876 2015-02-04 Jakub Jelinek <jakub@redhat.com>
21878 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
21879 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
21880 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
21882 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
21883 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
21884 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
21885 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
21886 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
21887 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
21888 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
21889 * tree-core.h (enum built_in_function): In between
21890 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
21891 for builtins that use DEF_BUILTIN_CHKP macro.
21893 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
21896 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
21897 operands for tcc_comparison exprs. Fix typos.
21900 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
21901 of two XORs that have an intervening AND or IOR.
21904 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
21905 simplification of XOR of AND to not allocate new rtx before
21906 committing to a simplification.
21908 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21910 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
21911 manual swaps in all peepholes.
21913 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21915 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
21916 of manual swapping implementation.
21917 (aarch64_expand_vec_perm_const_1): Likewise.
21919 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
21921 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
21922 (generic_addrcost_table): Remove NAMED_PARAM.
21923 (cortexa57_addrcost_table): Likewise.
21924 (xgene1_addrcost_table): Likewise.
21925 (generic_regmove_table): Likewise.
21926 (cortexa53_regmove_table): Likewise.
21927 (xgene1_regmove_table): Likewise.
21928 (generic_vector_table): Likewise.
21929 (cortexa57_vector_table): Likewise.
21930 (xgene1_vector_table): Likewise.
21931 (generic_tunings): Likewise.
21932 (cortexa53_tunings): Likewise.
21933 (cortexa57_tunings): Likewise.
21934 (xgene1_tunings): Likewise.
21936 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
21938 * config/arm/arm-cores.def: Add cortex-a72 and
21939 cortex-a72.cortex-a53.
21940 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
21941 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
21942 * config/arm/arm-tune.md: Regenerate.
21943 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
21944 "cortex-a72.cortex-a53".
21945 * doc/invoke.texi (ARM Options/-mtune): Likewise.
21947 2015-02-04 Nick Clifton <nickc@redhat.com>
21950 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
21952 (nonimmediate_di_operand): Likewise.
21954 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
21955 prefixes of known F5 using MSP430 MCUs.
21957 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21959 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
21960 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
21961 instead of __builtin_sqrt.
21963 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
21965 * varasm.c (do_assemble_alias): Follow transparent alias
21967 (default_assemble_visibility): Follow transparent alias
21968 chain for decl name.
21970 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
21972 PR middle-end/62103
21973 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
21974 to compute size of referenced value in the constant case.
21976 2015-02-03 Jakub Jelinek <jakub@redhat.com>
21978 PR rtl-optimization/64756
21979 * cse.c (invalidate_dest): New function.
21980 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
21981 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
21982 invalidate and do not record it.
21984 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
21987 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
21988 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
21989 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
21990 atomic_nand<mode>_soft_tcb): New insns.
21991 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
21992 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
21993 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
21994 Split into atomic_not_fetchsi_hard if operands[0] is unused.
21995 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
21996 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21997 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
21998 atomic_not<mode>_hard if operands[0] is unused.
21999 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
22000 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
22001 if operands[0] is unused.
22002 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
22003 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
22004 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
22005 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
22007 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
22008 into atomic_not<mode>_soft_tcb if operands[0] is unused.
22009 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
22010 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
22011 if operands[0] is unused.
22012 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
22013 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
22014 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
22015 atomic_nand_fetchsi_hard if operands[0] is unused.
22016 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
22017 atomic_nand<mode>_hard if operands[0] is unused.
22018 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
22019 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
22020 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
22021 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
22022 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
22023 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
22024 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
22025 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
22026 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
22027 atomic_not<mode>_hard if operands[0] is unused.
22028 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
22029 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
22031 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
22032 into atomic_not<mode>_soft_tcb if operands[0] is unused.
22033 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
22034 atomic_nand<mode>_hard if operands[0] is unused.
22035 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
22036 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
22038 2015-02-03 David Malcolm <dmalcolm@redhat.com>
22041 * Makefile.in (GCC_OBJS): Add gcc-main.o.
22042 * gcc-main.c: New file, containing "main" taken from gcc.c.
22043 * gcc.c (do_self_spec): Free decoded_options.
22044 (class driver): Move declaration to gcc.h.
22045 (main): Move declaration and implementation to new file
22047 (driver_get_configure_time_options): New function.
22048 * gcc.h (class driver): Move this declaration here, from
22050 (driver_get_configure_time_options): New declaration.
22052 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
22054 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
22055 cross-module inlining.
22056 * cgraph.h (cgraph_node): Add flag merged.
22057 * ipa-icf.c (sem_function::merge): Maintain it.
22059 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
22061 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
22062 instead of OBJECT_P.
22064 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
22067 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
22068 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
22069 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
22070 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
22072 2015-02-03 Jakub Jelinek <jakub@redhat.com>
22075 * combine.c (reg_n_sets_max): New variable.
22076 (can_change_dest_mode, reg_nonzero_bits_for_combine,
22077 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
22078 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
22079 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
22080 (rest_of_handle_combine): Initialize reg_n_sets_max.
22082 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
22084 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
22085 if some always_inline was inlined, apply changes before inlining
22088 2015-02-02 David Malcolm <dmalcolm@redhat.com>
22091 * config/arm/arm.c (arm_option_override): Set
22092 arm_selected_arch/cpu/tune to NULL on entry.
22094 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
22095 Andrew Pinski <pinskia@gcc.gnu.org>
22096 Jakub Jelinek <jakub@gcc.gnu.org>
22099 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
22100 integer typing for small model. Use IN_RANGE.
22102 2015-02-02 Richard Biener <rguenther@suse.de>
22104 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
22105 * tree-vrp.c (vrp_valueize_1): Likewise.
22107 2015-02-02 Alan Modra <amodra@gmail.com>
22109 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
22110 than mem for toc_restore.
22111 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
22112 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
22113 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
22115 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
22118 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
22119 explicit default options.
22121 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
22124 * ipa-utils.c (ipa_merge_profiles): Add release argument.
22125 * ipa-icf.c (sem_function::merge): Do not release body when merging.
22126 * ipa-utils.h (ipa_merge_profiles): Update prototype.
22128 2015-02-01 Jakub Jelinek <jakub@redhat.com>
22131 * cfgexpand.c (deep_ter_debug_map): New variable.
22132 (avoid_deep_ter_for_debug): New function.
22133 (expand_debug_expr): If TERed SSA_NAME is in
22134 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
22135 instead of trying to expand SSA_NAME's def stmt.
22136 (expand_debug_locations): When expanding debug bind
22137 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
22138 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
22140 (pass_expand::execute): Call avoid_deep_ter_for_debug on
22141 all debug bind stmts. Delete deep_ter_debug_map after
22142 expand_debug_location if non-NULL and clear it.
22144 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
22147 * config/sh/sync.md (atomic_fetch_notsi_hard,
22148 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
22149 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
22150 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
22151 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
22152 atomic_not_fetch<mode>_soft_imask): New insns.
22154 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22156 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
22157 (rank_for_schedule_debug): Split from ...
22158 (rank_for_schedule): ... this.
22159 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
22160 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
22162 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
22164 * doc/md.texi (Machine Constraints): Alphabetize table by target.
22165 * doc/extend.texi (x86 Variable Attributes): Move section to
22166 correct alphabetization after renaming.
22167 (x86 Type Attributes): Likewise.
22168 (Target Builtins): Re-alphabetize menu.
22169 (x86 Built-in Functions): Move section to correct alphabetization
22171 (x86 transactional memory intrinsics): Likewise.
22172 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
22173 and x86 Windows Options in table and menu.
22174 (x86 Options): Move section to correct alphabetization after
22176 (x86 Windows Options): Likewise.
22178 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
22180 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
22181 preferred names of the architecture and its 32- and 64-bit
22183 * doc/invoke.texi: Likewise.
22184 * doc/md.texi: Likewise.
22186 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
22189 * config/i386/predicates.md (address_no_seg_operand): Reject
22190 non-CONST_INT_P operands in invalid mode.
22192 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
22194 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
22195 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
22196 * config/i386/predicates.md (address_no_seg_operand): Call
22197 address_operand with VOIDmode.
22198 (vsib_address_operand): Ditto.
22199 (address_mpx_no_base_operand): Ditto.
22200 (address_mpx_no_index_operand): Ditto.
22202 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
22205 * lra-constraints.c (original_subreg_reg_mode): New.
22206 (simplify_operand_subreg): Try to simplify subreg of const. Use
22207 original_subreg_reg_mode for it.
22208 (swap_operands): Update original_subreg_reg_mode.
22209 (curr_insn_transform): Set up original_subreg_reg_mode.
22211 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
22214 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
22216 (process_alt_operands): Use it.
22217 (curr_insn_transform): Check the optional reload pseudo class is
22220 2015-01-30 Joseph Myers <joseph@codesourcery.com>
22222 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
22223 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
22225 * toplev.h (init_asm_output): Update comment on use of
22226 UNKNOWN_LOCATION with fatal_error.
22227 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
22228 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
22229 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
22230 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
22231 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
22232 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
22233 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
22234 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
22235 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
22236 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
22237 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
22238 fatal_error changed to pass input_location as first argument.
22240 2015-01-30 Martin Liska <mliska@suse.cz>
22242 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
22243 in #pragma GCC diagnostic guards.
22245 2015-01-30 Richard Biener <rguenther@suse.de>
22247 PR tree-optimization/64829
22248 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
22249 not add a widening conversion pattern but hand off extra
22250 widenings to callers.
22251 (vect_recog_widen_mult_pattern): Handle extra widening produced
22252 by vect_handle_widen_op_by_const.
22253 (vect_recog_widen_shift_pattern): Likewise.
22254 (vect_pattern_recog_1): Remove excess vertical space in dumping.
22255 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22256 (vect_init_vector_1): Likewise.
22257 (vect_get_vec_def_for_operand): Likewise.
22258 (vect_finish_stmt_generation): Likewise.
22259 (vectorizable_load): Likewise.
22260 (vect_analyze_stmt): Likewise.
22261 (vect_is_simple_use): Likewise.
22263 2015-01-29 Jeff Law <law@redhat.com>
22265 * combine.c (try_combine): Fix typo in comment.
22267 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
22270 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
22271 (rs6000_stack_info): Add assert.
22272 (rs6000_output_savres_externs): New function, split off from...
22273 (rs6000_output_function_prologue): ... here. Do not call it for
22276 2015-01-29 Jeff Law <law@redhat.com>
22279 * combine.c (try_combine): If I0 is a memory load and I3 a store
22280 to a related address, increase the "goodness" of doing a 4-insn
22281 combination with I0-I3.
22282 (make_field_assignment): Handle SUBREGs in the ior+and case.
22284 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
22286 PR tree-optimization/64746
22287 * tree-if-conv.c (mask_exists): New function.
22288 (predicate_mem_writes): Save created mask with given size for further
22290 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
22291 (ifcvt_repair_bool_pattern): Collect all statements that are root
22292 of bool pattern and use iterative algorithm to remove multiple uses
22293 of predicates, display number of required iterations.
22295 2015-01-29 Richard Biener <rguenther@suse.de>
22297 PR tree-optimization/64853
22298 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
22299 stmt will get simulated again.
22300 * tree-ssa-ccp.c (valueize_op_1): Likewise.
22302 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22304 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
22305 return_in_pc. Remove redundant assignments.
22306 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
22307 (arm_expand_epilogue): Don't compare boolean with true in if condition.
22309 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
22311 * config/i386/i386.c (ix86_mode_after): Make static.
22313 2015-01-29 Richard Biener <rguenther@suse.de>
22315 PR tree-optimization/64844
22316 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
22317 dump cost model analysis.
22318 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
22319 Do not register adjusted load/store costs here.
22321 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
22322 Uros Bizjak <ubizjak@gmail.com>
22324 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
22325 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
22326 using x86_use_pseudo_pic_reg.
22327 * config/i386/i386.c (ix86_conditional_register_usage): Remove
22328 support for fixed PIC register.
22329 (ix86_use_pseudo_pic_reg): Not static any more.
22331 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
22333 PR middle-end/64805
22334 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
22335 to avoid error in cgraph node verification.
22337 2015-01-29 Marek Polacek <polacek@redhat.com>
22339 * doc/standards.texi: Reflect that the default for C is gnu11.
22341 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
22344 * reorg.c (switch_text_sections_between_p): New function.
22345 (relax_delay_slots): Call it when testing if the jump insn
22346 is removable. Use targetm.can_follow_jump when testing if
22347 the conditional branch can follow an unconditional jump.
22349 2015-01-27 Caroline Tice <cmtice@google.com>
22351 Committing VTV Cywin/Ming patch for Patrick Wollgast
22352 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
22353 if -fvtable-verify=preinit/std is used.
22354 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
22355 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
22356 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
22357 if -fvtable-verify=preinit/std is used.
22358 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
22359 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
22360 if -fvtable-verify=preinit/std is used.
22361 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
22362 * config/i386/mingw32.h (LIB_SPEC): Likewise.
22363 * varasm.c (assemble_variable): Add code to properly set the comdat
22364 section and name for the .vtable_map_vars section in case the
22365 target is PE or COFF.
22367 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
22370 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
22371 make sane BB profile.
22372 (cgraph_node::expand_thunk): Make sane BB profile.
22373 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
22374 * cgraph.h (init_lowered_empty_function): Update prototype.
22375 * config/i386/i386.c (make_resolver_func): Update call.
22376 * predict.c (gate): Disable branch prediction pass if
22377 profile is already there.
22379 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
22381 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
22382 * opth-gen.awk: Likewise.
22383 * common.opt: Mark flag_fp_contract_mode as Optimization.
22385 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
22387 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
22388 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
22390 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
22393 * config/sh/predicates.md (atomic_arith_operand,
22394 atomic_logical_operand): Remove.
22395 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
22396 (atomic_arith_operand_0): New predicate.
22397 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
22398 Use atomic_arith_operand_0 for input values.
22399 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
22400 atomic_compare_and_swap<mode>_soft_gusa,
22401 atomic_compare_and_swap<mode>_soft_tcb,
22402 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
22403 arith_reg_operand instead of register_operand.
22404 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
22405 atomic_arith_operand_0 for newval input.
22406 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
22407 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
22408 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
22409 arith_reg_operand instead of register_operand.
22410 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
22411 fetchop_predicate_1, fetchop_constraint_1_llcs,
22412 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
22413 fetchop_constraint_1_imask): New code iterator attributes.
22414 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
22415 register_operand. Use fetchop_predicate_1.
22416 (atomic_fetch_<fetchop_name>si_hard,
22417 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
22418 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
22419 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
22420 and arith_reg_operand instead of register_operand. Use
22421 fetchop_predicate_1, fetchop_constraint_1_gusa.
22422 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
22423 and arith_reg_operand instead of register_operand. Use
22424 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
22426 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
22427 and arith_reg_operand instead of register_operand. Use
22428 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
22430 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
22431 register_operand. Use atomic_logical_operand_1.
22432 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
22433 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
22434 arith_reg_operand instead of register_operand.
22435 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
22436 Use arith_reg_dest and arith_reg_operand instead of register_operand.
22437 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
22438 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
22439 register_operand. Use fetchop_predicate_1.
22440 (atomic_<fetchop_name>_fetchsi_hard,
22441 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
22442 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
22443 fetchop_constraint_1_llcs.
22444 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
22445 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
22446 fetchop_constraint_1_gusa.
22447 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
22448 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
22449 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
22450 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
22451 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
22452 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
22453 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
22454 register_operand. Use atomic_logical_operand_1.
22455 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
22456 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
22457 arith_reg_operand instead of register_operand.
22458 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
22459 arith_reg_operand instead of register_operand. Use logical_operand
22460 and K08. Adjust asm sequence to allow R0 usage.
22461 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
22462 arith_reg_operand instead of register_operand. Use logical_operand
22465 2015-01-28 Jakub Jelinek <jakub@redhat.com>
22468 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
22469 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
22470 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
22471 only get_full_len HOST_WIDE_INTs from get_val () array rather than
22472 all bits in *val_wide.
22474 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
22476 * varpool.c (tls_model_names): Fix names.
22477 (varpool_node::dump): Dump tls- prefix for tls models.
22479 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
22480 Bernd Schmidt <bernds@codesourcery.com>
22481 Nathan Sidwell <nathan@codesourcery.com>
22483 * config/nvptx/mkoffload.c: New file.
22484 * config/nvptx/t-nvptx: Add build rules for it.
22485 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
22486 (extra_programs): Add mkoffload.
22487 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
22489 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
22491 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
22493 PR middle-end/64809
22494 * cfgexpand.c (reorder_operands): Skip debug gimples.
22496 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
22498 PR tree-optimization/64277
22499 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
22500 range info when possible to refine estimation.
22502 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
22504 PR tree-optimization/64718
22505 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
22506 be a 16bit unsigned integer when n->range is 16.
22507 (bswap_replace): Convert src to that type if necessary for all bswap
22508 sizes. Fix rotation right notation in nearby comment. Use bswap_type
22509 set in pass_optimize_bswap::execute ().
22511 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
22513 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
22514 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
22515 integer and floating point variants.
22516 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
22518 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
22520 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
22521 for all vector modes.
22523 2015-01-28 Jakub Jelinek <jakub@redhat.com>
22526 * doc/sourcebuild.texi (comdat_group): Document.
22528 2015-01-28 Terry Guo <terry.guo@arm.com>
22530 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
22532 2015-01-27 David Malcolm <dmalcolm@redhat.com>
22534 * toplev.c (print_version): Add param "show_global_state", and
22535 only print GGC and plugin information if it is true.
22536 (init_asm_output): Pass in "true" for the new param when calling
22538 (process_options): Likewise.
22539 (toplev::main): Likewise.
22540 * toplev.h (print_version): Add new param to decl.
22542 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
22546 * tree.c (lookup_binfo_at_offset): New function.
22547 (get_binfo_at_offset): Use it.
22549 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
22552 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
22553 on vtable being vtable.
22555 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
22557 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
22558 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
22559 -mhotpatch= option.
22560 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
22561 -mno-hotpatch options. Change syntax of -mhotpatch= option.
22562 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
22564 (s390_hotpatch_trampoline_halfwords_max): Renamed.
22565 (s390_hotpatch_hw_max): New name.
22566 (s390_hotpatch_trampoline_halfwords): Renamed.
22567 (s390_hotpatch_hw_before_label): New name.
22568 (get_hotpatch_attribute): Removed.
22569 (s390_hotpatch_hw_after_label): New name.
22570 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
22572 (s390_attribute_table): Ditto.
22573 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
22574 (s390_function_num_hotpatch_hw): New name.
22575 Remove special handling of inline functions and hotpatching.
22576 Return number of nops before and after the function label.
22577 (s390_can_inline_p): Removed.
22578 (s390_asm_output_function_label): Emit a configurable number of nops
22579 after the function label.
22580 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
22581 (TARGET_CAN_INLINE_P) Removed.
22582 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
22584 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22585 Jiong Wang <jiong.wang@arm.com>
22587 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
22589 (cb<optab><mode>1): Likewise.
22590 * config/aarch64/iterators.md (bcond): New define_code_attr.
22592 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22594 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
22597 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22599 * config/s390/s390.c (s390_register_move_cost): Increase costs for
22602 2015-01-27 Richard Biener <rguenther@suse.de>
22604 * tree-vrp.c (update_value_range): Intersect the range with
22605 old recorded SSA name range information.
22607 2015-01-27 Nick Clifton <nickc@redhat.com>
22609 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
22610 BC, DE and HL registers directly, not via AX.
22611 When decrementing the stack pointer by a large amount, transfer SP
22612 into AX and perform the subtraction there.
22613 (rl78_expand_epilogue): Perform the inverse of the above
22616 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22618 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
22620 2015-01-27 Jakub Jelinek <jakub@redhat.com>
22621 Yury Gribov <y.gribov@samsung.com>
22624 * ubsan.c (ubsan_source_location): Refactor code.
22625 (ubsan_type_descriptor): Update type size. Refactor code.
22627 2015-01-27 Richard Biener <rguenther@suse.de>
22629 PR tree-optimization/56273
22630 PR tree-optimization/59124
22631 PR tree-optimization/64277
22632 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
22633 from the first VRP pass.
22635 2015-01-27 Jakub Jelinek <jakub@redhat.com>
22638 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
22639 handle the first argument in the same loop as all the other arguments.
22641 PR rtl-optimization/61058
22642 * jump.c (cleanup_barriers): Update basic block boundaries
22643 if BLOCK_FOR_INSN is non-NULL on PREV.
22645 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
22647 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
22648 bounds narrowing, already instrumented calls and calls to
22649 not instrumentable functions.
22651 2015-01-27 Jakub Jelinek <jakub@redhat.com>
22653 PR tree-optimization/64807
22654 * wide-int.cc (wi::divmod_internal): Clear
22655 b_dividend[dividend_blocks_needed].
22657 2015-01-26 DJ Delorie <dj@redhat.com>
22659 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
22660 volatile memory references.
22662 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
22665 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
22667 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
22668 shifts if it already fits into K08.
22670 2015-01-26 Jakub Jelinek <jakub@redhat.com>
22673 * ipa-inline.c (inline_small_functions): Print "unknown" even
22674 if edge->call_stmt is non-NULL, but has builtins or unknown
22677 PR middle-end/64421
22678 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
22679 with asterisk, skip the first character.
22681 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
22684 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
22687 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
22690 * config/i386/i386.md (*movdi_internal): Also check operand 0
22691 to determine TYPE_LEA operand.
22692 (*movsi_internal): Ditto.
22694 2015-01-26 Jakub Jelinek <jakub@redhat.com>
22696 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
22697 OPTION_MASK_QUAD_MEMORY_ATOMIC.
22699 2015-01-26 Renlin Li <renlin.li@arm.com>
22701 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
22703 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
22706 2015-01-26 Richard Biener <rguenther@suse.de>
22708 PR middle-end/64764
22709 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
22710 combining two BIT_AND_EXPR predicates.
22712 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
22715 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
22717 2015-01-26 Terry Guo <terry.guo@arm.com>
22719 * config/arm/arm.c (arm_file_start): Update the assignment of
22720 Tag_ABI_HardFP_use.
22722 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
22724 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
22726 config/arm/arm.md: Include the new Cortex-A57 model.
22727 (generic_sched): Don't use generic_sched when tuning for
22730 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
22731 Uros Bizjak <ubizjak@gmail.com>
22733 * config/i386/i386.c (get_builtin_code_for_version): Add
22734 support for BMI and BMI2 multiversion functions.
22736 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22738 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
22739 (extract_bit_field): Likewise.
22740 (extract_low_bits): Likewise.
22741 (expand_mult): Likewise.
22742 (expand_mult_highpart_adjust): Likewise.
22744 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
22746 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
22747 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
22748 * config/i386/i386.c (processor_model): Add
22749 M_INTEL_COREI7_BROADWELL.
22750 (arch_names_table): Add "broadwell".
22752 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
22761 * config/sh/sh-protos.h
22762 (sh_extending_set_of_reg::can_use_as_unextended_reg,
22763 sh_extending_set_of_reg::use_as_unextended_reg,
22764 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
22765 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
22766 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
22767 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
22768 (sh_treg_insns): New class.
22769 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
22770 (scope_counter): New class.
22771 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
22772 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
22773 sh_extending_set_of_reg::can_use_as_unextended_reg,
22774 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
22775 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
22776 sh_split_treg_set_expr): New functions.
22777 (addsubcosts): Handle treg_set_expr.
22778 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
22779 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
22780 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
22781 (sh_insn_operands_modified_between_p): Make non-static.
22782 * config/sh/predicates.md (zero_extend_movu_operand): Allow
22783 simple_mem_operand in addition to displacement_mem_operand.
22784 (zero_extend_operand): Don't allow zero_extend_movu_operand.
22785 (treg_set_expr, treg_set_expr_not_const01,
22786 arith_reg_or_treg_set_expr): New predicates.
22787 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
22788 arith_or_int_operand instead of logical_operand. Convert to
22789 insn_and_split. Try to optimize constant operand in splitter.
22790 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
22791 (*tstqi_t_zero): Delete.
22792 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
22793 (tstsi_t_and_not): Delete.
22794 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
22795 Convert to insn_and_split.
22796 (unnamed split, tstsi_t_zero_extract_xor,
22797 tstsi_t_zero_extract_subreg_xor_little,
22798 tstsi_t_zero_extract_subreg_xor_big): Delete.
22799 (*tstsi_t_shift_mask): New insn_and_split.
22800 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
22801 to recombine with surrounding insns when splitting.
22802 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
22803 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
22804 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
22805 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
22806 (*cbranch_div0s: Delete.
22807 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
22808 Try to recombine with surrounding insns when splitting. Add operand
22810 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
22811 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
22812 *addc_r_r_msb, *addc_2r_msb): Delete.
22813 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
22815 (*addc_negreg_t): New insn_and_split.
22816 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
22817 Try to recombine with surrounding insns when splitting.
22818 Add operand order variants.
22819 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
22820 insn_and_split patterns.
22821 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
22822 surrounding insns when splitting.
22823 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
22824 (*rotcl): Likewise. Add zero_extract variant.
22825 (*ashrsi2_31): New insn_and_split.
22826 (*negc): Convert to insn_and_split. Use treg_set_expr.
22827 (*zero_extend<mode>si2_disp_mem): Update comment.
22828 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
22830 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
22831 with surrounding insns when splitting.
22832 (any_treg_expr_to_reg): New insn_and_split.
22833 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
22834 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
22835 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
22836 *zero_extract_2): New single bit zero extract patterns.
22837 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
22838 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
22839 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
22840 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
22842 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
22843 register_operand for set source.
22845 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
22847 * i386.opt (prefetch_sse): New targetsave.
22848 * i386.c (ix86_function_specific_save): Save prefetch_sse.
22849 (ix86_function_specific_restore): Restore prefetch_sse and initialize
22850 ix86_cost/ix86_tune_cost.
22852 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22854 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
22855 Support the JIT by using 0 as the language type.
22857 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
22860 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
22861 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
22862 (mark_regno_live, process_bb_lives): Pass new parameter value to
22863 make_hard_regno_born.
22865 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22867 PR rtl-optimization/63637
22868 PR rtl-optimization/60663
22869 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
22870 if elt->cost is MAX_COST for ASM_OPERANDS.
22871 (find_sets_in_insn): Fix up comment typo.
22872 (cse_insn): Don't set src_volatile for all non-volatile
22873 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
22874 or with "memory" clobber. Set elt->cost to MAX_COST
22875 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
22876 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
22878 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
22880 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
22883 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
22885 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
22886 libgcc/config/i386/elf-lib.h.
22888 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22891 * gcc.c (print_configuration): Don't print a blank line at the end
22893 (run_attempt): ... but here unstead.
22895 PR middle-end/64734
22896 * omp-low.c (scan_sharing_clauses): Don't ignore
22897 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
22898 on target data/update constructs.
22900 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
22903 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
22904 (DEBUG_RELOAD): Removed define.
22905 (m32c_limit_reload_class): Enable traces with if DEBUG0.
22906 (m32c_function_arg): Added a type cast.
22907 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
22908 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
22909 * config/m32c/bitops.md (andqi3_16): Likewise.
22910 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
22911 (push_a01_l): Likewise.
22913 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22916 * main.c (main): Construct toplev instances with init_signals=true.
22917 * toplev.c (general_init): Add param "init_signals", and use it to
22918 conditionalize the calls to signal and host_hooks.extra_signals.
22919 (toplev::toplev): Add param "init_signals".
22920 (toplev::main): When invoking general_init, pass m_init_signals
22921 to control whether signal-handlers are installed.
22922 * toplev.h (toplev::toplev): Add param "init_signals".
22923 (toplev::m_init_signals): New field.
22925 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22928 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
22929 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
22930 latter may be affected by the former (e.g. on i686).
22932 2015-01-23 Martin Liska <mliska@suse.cz>
22934 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
22935 false positive during profiledbootstrap.
22937 2015-01-23 Tom de Vries <tom@codesourcery.com>
22940 * lto-opts.c (lto_write_options): Output non-explicit conservative
22942 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
22943 (append_compiler_options): Pass -fopenacc through.
22945 2015-01-23 Tom de Vries <tom@codesourcery.com>
22948 * lto-opts.c (lto_write_options): Output non-explicit conservative
22950 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
22951 (append_compiler_options): Pass -fopenmp through.
22953 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22956 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
22959 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
22960 * diagnostic.def (DK_ICE_NOBT): New kind.
22961 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
22962 like DK_ICE, but never print backtrace.
22963 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
22964 (internal_error_no_backtrace): New function.
22965 * gcc.c (execute): Use internal_error_no_backtrace instead of
22968 2015-01-22 Jeff Law <law@redhat.com>
22971 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
22972 improve code density for small immediate to memory case.
22973 (insv): Better handle bitfield assignments when the field is
22974 being set to all ones.
22975 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
22978 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22979 Jakub Jelinek <jakub@redhat.com>
22981 PR middle-end/64729
22982 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
22983 for !TARGET_LIBC_PROVIDES_SSP version and
22984 -fstack-protector-{all,strong,explicit} otherwise.
22985 * config/freebsd.h (LINK_SSP_SPEC): Handle
22986 -fstack-protector-{strong,explicit}.
22988 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
22989 H.J. Lu <hongjiu.lu@intel.com>
22992 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
22995 2015-01-22 Wei Mi <wmi@google.com>
22997 PR rtl-optimization/64557
22998 * dse.c (record_store): Call get_addr for mem_addr.
22999 (check_mem_read_rtx): Likewise.
23001 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
23003 * fold-const.c (const_binop): Add early return for non-tcc_binary.
23005 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
23007 * toplev.c (init_local_tick): Process the failure when read
23008 fails for random_seed.
23010 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
23011 'pretty_name' to avoid memory overflow.
23013 2015-01-22 Richard Biener <rguenther@suse.de>
23015 PR middle-end/64728
23016 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
23017 abnormal coalescing on undefined SSA names.
23019 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
23023 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
23025 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
23027 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
23029 PR middle-end/63325
23030 * fold-const.c (fold_checksum_tree): Don't include value of
23031 expr->decl_with_vis.symtab_node in the checksum.
23033 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23035 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
23037 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
23040 * gcc.c (insert_comments): New function.
23041 (try_generate_repro): Call it.
23042 (append_text): Removed.
23044 2015-01-22 Richard Biener <rguenther@suse.de>
23046 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
23047 with IL incompatible options. Properly honor user optimize
23050 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
23052 PR rtl-optimization/64682
23053 * combine.c (distribute_notes): When moving a death note for
23054 a register that is set in the new I2, make sure to put it
23055 before that new I2.
23057 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
23059 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
23060 not TARGET_DEFAULT.
23062 2015-01-21 Jakub Jelinek <jakub@redhat.com>
23065 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
23066 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
23067 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
23070 * doc/invoke.texi (-fsanitize=vptr): Document.
23072 PR rtl-optimization/62078
23073 * dse.c: Include cfgcleanup.h.
23074 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
23075 anything call purge_all_dead_edges and cleanup_cfg at the end
23078 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
23080 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
23083 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
23085 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
23088 2015-01-21 David Sherwood <david.sherwood@arm.com>
23089 Tejas Belagod <Tejas.Belagod@arm.com>
23091 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
23092 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
23093 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
23096 2015-01-21 David Sherwood <david.sherwood@arm.com>
23097 Tejas Belagod <Tejas.Belagod@arm.com>
23099 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
23100 (aarch64_reverse_mask): New decls.
23101 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
23102 (insn_count): New mode_attr.
23103 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
23104 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
23105 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
23106 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
23107 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
23108 (aarch64_simd_st4): New patterns.
23109 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
23110 (aarch64_reverse_mask): New functions.
23112 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
23114 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
23116 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
23117 addressing modes for BE.
23118 (aarch64_print_operand): Add 'R' specifier.
23119 (aarch64_simd_disambiguate_copy): Delete.
23120 (aarch64_simd_emit_reg_reg_move): New function.
23121 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
23122 in define_splits for structural moves.
23123 (mov<mode>): Use less restrictive predicates.
23124 (*aarch64_mov<mode>): Simplify and only allow for LE.
23125 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
23127 2015-01-21 Alan Hayward <alan.hayward@arm.com>
23129 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
23131 2015-01-21 Richard Henderson <rth@redhat.com>
23134 * ccmp.c (used_in_cond_stmt_p): Remove.
23135 (expand_ccmp_expr): Don't use it.
23137 2015-01-21 Nick Clifton <nickc@redhat.com>
23139 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
23142 2015-01-21 Richard Biener <rguenther@suse.de>
23144 PR middle-end/64313
23145 * tree-core.h (builtin_info, builtin_info_type): Turn from
23146 an object with two arrays into an array of an object with
23147 decl and two flags, implicit_p and declared_p.
23148 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
23149 set_builtin_decl, set_builtin_decl_implicit_p,
23150 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
23151 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
23152 * builtins.c (builtin_info): Adjust.
23153 * gimplify.c (gimplify_addr_expr): References to builtins
23154 that have been declared by the user makes them eligible for
23155 use by the compiler. Call set_builtin_decl_implicit_p on them.
23157 2015-01-20 Jeff Law <law@redhat.com>
23160 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
23161 allow pc-relative addresses in operand predicates or constraints.
23163 2015-01-21 Bin Cheng <bin.cheng@arm.com>
23165 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
23166 neon on aarch32 processors for stringops.
23168 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
23171 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
23173 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
23176 * ipa-inline.c: Include lto-streamer.h
23177 (report_inline_failed_reason): Output source file differences and
23178 flags on optimization/target node mismatch.
23179 (can_inline_edge_p): Consider caller to be the outer inline function;
23180 be less restrictive about matching opimize and optimize_size attributes.
23181 (inline_account_function_p): Break out from ...
23182 (inline_small_functions): ... here.
23183 * ipa-inline-transform.c (clone_inlined_nodes): Use
23184 inline_account_function_p.
23185 (inline_call): Use optimize attribution; use inline_account_function_p.
23186 (inline_transform): Use opt_for_fn.
23187 * ipa-inline.h (inline_account_function_p): Declare.
23189 2015-01-20 Jakub Jelinek <jakub@redhat.com>
23192 * dwarf2out.c (decl_piece_node): Don't put bitsize into
23193 mode if bitsize <= 0.
23194 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
23195 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
23196 sizes and positions.
23198 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
23200 * config/nios2/nios2.c (nios2_asm_file_end): Implement
23201 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
23203 (TARGET_ASM_FILE_END): Define.
23205 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23207 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
23208 (struct tune_params): Use the enum.
23209 * arm.c (arm_*_tune): Update.
23210 (arm_option_override): Update.
23212 2015-01-20 Richard Biener <rguenther@suse.de>
23215 * ipa-reference.c (add_static_var): Inline ...
23216 (analyze_function): ... here after splitting out from ...
23217 (is_proper_for_analysis): ... this.
23219 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
23222 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
23223 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
23224 replace the conditional with it's true branch.
23225 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
23226 (arm_lra_p): Remove.
23228 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
23230 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
23232 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23234 * config/tilegx/mul-tables.c: Move symtab.h include after
23235 coretypes.h include.
23236 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
23237 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
23238 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
23239 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
23240 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
23242 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
23246 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
23248 PR rtl-optimization/64081
23249 * loop-iv.c (def_pred_latch_p): New function.
23250 (latch_dominating_def): Allow specific cases with non-single
23252 (iv_get_reaching_def): Likewise.
23253 (check_complex_exit_p): New function.
23254 (check_simple_exit): Use check_complex_exit_p to allow certain cases
23255 with exits not executing on any iteration.
23257 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
23260 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
23261 to set branch cost.
23263 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
23266 * i386.c (gate): Check flag_expensive_optimizations and
23268 (ix86_option_override_internal): Drop optimize_size condition
23269 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
23270 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
23271 MASK_PREFER_AVX128.
23272 (ix86_avx256_split_vector_move_misalign,
23273 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
23274 * sse.md (all uses of TARGET_PREFER_AVX128): Add
23275 optimize_insn_for_speed_p check.
23277 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
23279 * config/mips/mips.h (FP_ASM_SPEC): New define.
23280 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
23283 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
23286 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
23287 nullptr for insn when reaching the first insn.
23288 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
23289 (sh_insn_operands_modified_between_p): Add nullptr check.
23290 (sh_find_extending_set_of_reg): Fix log message. Don't accept
23291 sign extending mem load if the insn contains any UNSPEC or
23294 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
23296 * params.def (inline-unit-growth): Drop to 15%.
23297 * invoke.texi (inline-unit-growth): Document change.
23299 2015-01-19 Martin Liska <mliska@suse.cz>
23302 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
23303 function for second argument of OBJ_TYPE_REF.
23305 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
23308 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
23309 whether function is an alias.
23311 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
23313 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
23316 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
23318 PR rtl-optimization/64671
23319 * lra-remat.c (operand_to_remat): Don't consider jump and call
23322 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
23325 * config/rs6000/default64.h: Include rs6000-cpus.def.
23326 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
23327 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
23328 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
23330 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
23332 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
23333 pseudo-op to specify assembler dialect.
23335 2015-01-19 Martin Liska <mliska@suse.cz>
23338 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
23339 Handle safe potentially removed nodes during filtering.
23341 2015-01-19 Martin Liska <mliska@suse.cz>
23343 * doc/extend.texi (no_icf): Add new attribute description.
23344 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
23345 where the pass attempts to merge a function with no_icf attribute.
23347 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23350 * doc/md.texi (ARM Options): Document register constraints.
23352 2015-01-19 Jiong Wang <jiong.wang@arm.com>
23353 Andrew Pinski <apinski@cavium.com>
23356 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
23357 (ashl<mode>3): Don't expand if operands[2] is not constant.
23359 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23362 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
23363 Match xor-and-xor RTL pattern.
23365 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
23367 PR rtl-optimization/64081
23368 * loop-iv.c (def_pred_latch_p): New function.
23369 (latch_dominating_def): Allow specific cases with non-single
23371 (iv_get_reaching_def): Likewise.
23372 (check_complex_exit_p): New function.
23373 (check_simple_exit): Use check_complex_exit_p to allow certain cases
23374 with exits not executing on any iteration.
23376 2015-01-19 Jakub Jelinek <jakub@redhat.com>
23378 * common.opt (fgraphite): Fix a typo.
23380 2015-01-19 Felix Yang <felix.yang@huawei.com>
23382 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
23384 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
23385 uminp, smax_nanp, smin_nanp): New builtins.
23386 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
23387 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
23388 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
23389 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
23390 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
23391 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
23392 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
23393 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
23394 vpminnms_f32): Rewrite using builtin functions.
23396 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
23399 * omp-low.c (offload_symbol_decl): Remove variable.
23400 (get_offload_symbol_decl): Remove function.
23401 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
23402 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
23403 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
23404 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
23405 BUILT_IN_GOACC_UPDATE don't pass it at all.
23407 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
23409 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
23412 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
23414 * ipa-chkp.c (chkp_produce_thunks): Add early param
23415 to split thunks production into two passes. Keep
23416 'always_inline' function bodies after the first pass.
23417 (pass_data_ipa_chkp_early_produce_thunks): New.
23418 (pass_ipa_chkp_early_produce_thunks): New.
23419 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
23420 chkp_produce_thunks signature.
23421 (make_pass_ipa_chkp_early_produce_thunks): New.
23422 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
23423 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
23424 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
23426 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
23428 * cgraph.c (cgraph_node::dump): Dump profile flags.
23430 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
23433 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
23434 reg appear first in the parallel.
23436 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
23438 * ipa-reference.c (set_reference_optimization_summary,
23439 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
23441 (ignore_module_statics): New static var.
23442 (propagate_bits): If ipa-reference is disabled, do not look into local
23444 (analyze_function): Disable analysis when ipa_reference is disabled.
23445 (generate_summary): Do not dump when reference is disabled;
23446 collect vars accessed from functions with ipa-reference disabled.
23447 (get_read_write_all_from_node): When ipa-reference is disabled, use the
23449 (gate): Enable for LTO.
23450 (ignore_edge_p): New function.
23451 (propagate): Skip functions w/o ipa-reference analysis.
23452 * optc-save-gen.awk: Handle optimize_debug correctly.
23453 * opth-gen.awk: Likewise.
23454 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
23455 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
23456 fira-share-save-slots, fira-share-spill-slots,
23457 fmodulo-sched-allow-regmoves, fpartial-inlining,
23458 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
23459 ftracer, ftree-parallelize-loops, fassociative-math,
23460 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
23462 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
23463 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
23465 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
23468 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
23471 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
23473 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
23475 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
23477 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
23478 Remove duplicate option listings.
23480 2015-01-18 Felix Yang <felix.yang@huawei.com>
23482 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
23483 (autofdo_source_profile::get_callsite_total_count,
23484 function_instance::get_function_instance_by_decl,
23485 string_table::get_index, string_table::get_index_by_decl,
23486 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
23487 Fix comment typos. Reformatting and minor code rearrangement.
23489 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
23491 * config/rs6000/rs6000.md (probe_stack): Delete.
23492 (probe_stack_address): New.
23494 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
23496 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
23497 to test for 32-bit ABIs, not !TARGET_POWERPC64.
23499 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
23501 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
23502 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
23503 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
23505 (rs6000_libcall_value): Use the new function.
23507 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
23509 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
23511 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
23513 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
23514 implement a more precise life analysis for it during backward scan.
23516 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
23518 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
23520 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
23522 PR rtl-optimization/52773
23523 * calls.c (emit_library_call_value): When pushing arguments use
23524 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
23525 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
23526 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
23528 2015-01-17 Jeff Law <law@redhat.com>
23530 PR rtl-optimization/32790
23531 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
23532 not ZERO_EXTEND in SET_DESTs.
23534 2015-01-17 Alan Modra <amodra@gmail.com>
23536 * cprop.c (do_local_cprop): Revert last change.
23538 2015-01-16 DJ Delorie <dj@redhat.com>
23539 Nick Clifton <nickc@redhat.com>
23541 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
23542 (addhi3_real): Likewise. Fix [HL+0] syntax.
23543 (subqi3_real): Likewise.
23544 (subhi3_real): Likewise.
23545 (cbranchqi4_real): Likewise. Allow saddr,#imm.
23546 (cbranchhi4_real): Likewise.
23547 (cbranchhi4_real_inverted): Likewise.
23548 (cbranchsi4_real_lt): Likewise.
23549 (cbranchsi4_real_ge): Likewise.
23550 (cbranchsi4_real_ge): Likewise.
23551 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
23552 (sub<mode>3_virt): Likewise.
23553 (cbranchqi4_virt): Likewise.
23554 (cbranchhi4_virt): Likewise.
23555 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
23556 always use '[reg+imm]' even when imm is zero.
23557 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
23558 (rl78_general_operand): New.
23559 (rl78_nonimmediate_operand): New.
23560 (rl78_nonfar_operand): Use them.
23561 (rl78_nonfar_nonimm_operand): Likewise.
23562 (rl78_stack_based_mem): Fix.
23563 * config/rl78/constraints.md (Ibqi): New.
23568 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
23569 (iorqi3): Likewise.
23570 (xorqi3): Likewise.
23571 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
23573 * config/rl78/constrains (Qs8): New constraint.
23574 * config/rl78/rl78.c (rl78_flags_already_set): New function.
23575 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
23576 * config/rl78/rl78-real.md (update_Z): New attribute.
23577 Update patterns to set it.
23578 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
23579 shorter compare and branch sequence can be used.
23580 (cbranchhi4_real): Likewise.
23581 (cbranchhi4_real_inverted): Likewise.
23583 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
23584 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
23586 * config/rl78/rl78.c (rl78_get_name_encoding): New.
23587 (rl78_option_override): Allow -mes0 only if C.
23588 (characterize_address): Support subregs of symbol_refs.
23589 (rl78_addr_space_address_mode): Move. Add __near.
23590 (rl78_far_p): Likewise.
23591 (rl78_addr_space_pointer_mode): Likewise.
23592 (rl78_as_legitimate_address): Likewise.
23593 (rl78_addr_space_subset_p): Likewise.
23594 (rl78_addr_space_convert): Likewise.
23595 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
23596 symbols with -mes0.
23597 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
23599 (rl78_alloc_physical_registers_op1): Change logic to prefer
23600 symbol[BC] addressing.
23601 (frodata_section): New.
23602 (rl78_asm_init_sections): Initialize it.
23603 (rl78_select_section): Put __far readonly symbols in .frodata.
23604 (rl78_make_type_far): New.
23605 (rl78_insert_attributes): Force all readonly symbols to be
23607 (rl78_asm_out_integer): New.
23608 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
23609 * config/rl78/rl78.opt (-mes0): New.
23611 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
23612 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
23613 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
23614 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
23615 (rl78_saddr_p): New.
23616 (rl78_output_aligned_common): New.
23617 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
23618 (rl78_handle_saddr_attribute): New.
23619 (rl78_handle_naked_attribute): New.
23620 (rl78_attribute_table): Add saddr.
23621 (rl78_print_operand_1): Don't print '!' on saddr operands.
23622 (rl78_print_operand_1): Strip encodings.
23624 (rl78_strip_name_encoding): New.
23625 (rl78_attrlist_to_encoding): New.
23626 (rl78_encode_section_info): New.
23627 (rl78_asm_init_sections): New.
23628 (rl78_select_section): New.
23629 (rl78_output_labelref): New.
23630 (rl78_output_aligned_common): New.
23631 (rl78_asm_out_integer): New.
23632 (rl78_asm_ctor_dtor): New.
23633 (rl78_asm_constructor): New.
23634 (rl78_asm_destructor): New.
23636 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
23637 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
23638 (transcode_memory_rtx): Update.
23639 (rl78_expand_epilogue): Use A_REG instead of 0.
23641 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23643 * config/arm/arm-protos.h (struct tune_params): New field
23644 sched_autopref_queue_depth.
23645 * config/arm/arm.c (sched-int.h): Include header.
23646 (arm_first_cycle_multipass_dfa_lookahead_guard,)
23647 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
23648 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
23649 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
23650 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
23651 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
23652 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
23653 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
23654 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
23655 * config/arm/t-arm (arm.o): Update.
23656 * haifa-sched.c (update_insn_after_change): Update.
23657 (rank_for_schedule): Use auto-prefetcher model, if requested.
23658 (autopref_multipass_init): New static function.
23659 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
23660 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
23661 variable for debug dumps.
23662 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
23663 (autopref_multipass_dfa_lookahead_guard): New global function that
23664 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
23665 (init_h_i_d): Update.
23666 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
23667 * sched-int.h (enum autopref_multipass_data_status): New const enum.
23668 (autopref_multipass_data_): Structure for auto-prefetcher data.
23669 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
23670 (struct _haifa_insn_data:autopref_multipass_data): New field.
23671 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
23672 (autopref_multipass_dfa_lookahead_guard): Declare.
23674 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23676 * rtlanal.c (get_base_term): Handle SCRATCH.
23678 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23680 * config/aarch64/aarch64.c
23681 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
23682 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
23684 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
23685 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
23687 2015-01-17 Alan Modra <amodra@gmail.com>
23689 * cprop.c (do_local_cprop): Disallow replacement of fixed
23692 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23695 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
23698 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
23700 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
23701 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
23703 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23705 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
23706 * config/arm/thumb1.md: ... Here.
23708 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23710 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
23711 TImode for TARGET_32BIT.
23713 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23715 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
23716 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
23718 (rs6000_abi_word_mode): New function.
23720 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23722 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
23723 instead of UNITS_PER_WORD to describe the size of stack slots.
23725 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23727 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
23728 as rs6000_promote_function_mode. Move comment to there.
23729 (rs6000_promote_function_mode): New function.
23731 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23733 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
23734 -mpowerpc64 is active.
23736 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
23738 PR middle-end/64353
23739 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
23742 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
23744 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
23745 introduced in revision 219724.
23747 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23748 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23751 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
23752 destination is not a GP reg.
23753 (*movdi_aarch64): Likewise.
23755 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
23758 * config/rs6000/default64.h: Revert ISA change.
23760 2015-01-16 Richard Biener <rguenther@suse.de>
23762 PR middle-end/64614
23763 * tree-ssa-uninit.c: Include tree-cfg.h.
23764 (MAX_SWITCH_CASES): New define.
23765 (convert_control_dep_chain_into_preds): Handle switch statements.
23766 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
23767 (normalize_one_pred_1): Do not split bit-manipulations.
23770 2015-01-16 Richard Biener <rguenther@suse.de>
23772 PR tree-optimization/64568
23773 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
23774 complex load rewriting for TARGET_MEM_REFs.
23776 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
23778 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
23780 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
23783 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
23785 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
23786 (aarch64_lra_p): Remove.
23788 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
23791 * ipa-chkp.h (chkp_instrumentable_p): New.
23792 * ipa-chkp.c: Include tree-inline.h.
23793 (chkp_instrumentable_p): New.
23794 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
23795 Fix processing of not instrumentable functions.
23796 (chkp_versioning): Use chkp_instrumentable_p. Warn about
23797 not instrumentable functions.
23798 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
23799 chkp_instrumentable_p.
23800 * tree-inline.h (copy_forbidden): New.
23801 * tree-inline.c (copy_forbidden): Not static anymore.
23803 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23805 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
23808 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
23810 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
23811 type OP_OUT to OP_INOUT.
23813 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
23815 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
23816 (high x) y) to y if x and y have the same base.
23818 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
23820 * config/arm/cortex-a57.md: New.
23821 * config/aarch64/aarch64.md: Include it.
23822 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
23823 * config/aarch64/aarch64-tune.md: Regenerate.
23825 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
23828 * ccmp.c (expand_ccmp_next): New function.
23829 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
23830 and compare insn sequence.
23831 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
23832 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
23833 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
23834 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
23835 (*ccmp_ior): Changed to ccmp_ior<mode>.
23836 (cmp<mode>): New pattern.
23837 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
23839 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
23841 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
23843 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
23844 _mm256_bsrli_epi128): New.
23845 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
23847 2015-01-15 Jiong Wang <jiong.wang@arm.com>
23849 * expmed.c (store_bit_field_using_insv): Improve warning message.
23850 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
23852 2015-01-15 Jiong Wang <jiong.wang@arm.com>
23854 PR rtl-optimization/64011
23855 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
23856 there is partial overflow.
23858 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23860 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
23862 (nds32_expand_epilogue_v3pop): Likewise.
23863 * config/nds32/nds32.md (sibcall): Define this for sibling call
23865 (sibcall_register): Likewise.
23866 (sibcall_immediate): Likewise.
23867 (sibcall_value): Likewise.
23868 (sibcall_value_register): Likewise.
23869 (sibcall_value_immediate): Likewise.
23870 (sibcall_epilogue): Likewise.
23871 (epilogue): Pass false to indicate this is not a sibcall epilogue.
23872 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
23873 (nds32_expand_epilogue_v3pop): Likewise.
23875 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23877 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
23878 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
23879 (return_internal): New.
23880 (return): Define this named pattern.
23881 (simple_return): Define this named pattern.
23882 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
23883 pattern instead of unspec_volatile_func_return.
23884 (nds32_expand_epilogue_v3pop): Likewise.
23885 (nds32_can_use_return_insn): New function.
23887 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23889 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
23890 * config/nds32/nds32.md (pop25return): New.
23891 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
23892 pop25return pattern.
23894 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23896 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
23897 -mforbid-fp-as-gp, and -mex9 options.
23899 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23901 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
23902 remove -mgp-direct option.
23904 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23906 * doc/invoke.texi (--param early-inlining-insns): Update default value.
23907 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
23909 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23911 * ipa-inline.c (inline_small_functions): Work around hints
23914 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
23917 * doc/invoke.texi (Option Summary): Document new Nios II
23919 (Nios II Options): Likewise.
23920 * config/nios2/nios2.opt: Add -mgpopt= option support.
23921 Modify existing -mgpopt and -mno-gpopt options to be aliases.
23922 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
23923 * config/nios2/nios2.c (nios2_option_override): Adjust
23924 -mgpopt defaulting.
23925 (nios2_in_small_data_p): Return true for explicit small data
23926 sections even with -G0.
23927 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
23930 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23933 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
23935 (inline_call): Fix removal of aliases.
23937 2015-01-15 Jakub Jelinek <jakub@redhat.com>
23939 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
23940 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
23941 * opts.c (common_handle_option): Add -fsanitize=vptr.
23942 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
23943 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
23944 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
23945 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
23946 (ubsan_expand_vptr_ifn): New prototype.
23947 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
23948 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
23949 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
23950 expand_LOOP_VECTORIZED): Make argument nameless, remove
23952 (expand_UBSAN_VPTR): New function.
23953 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
23955 (UBSAN_VPTR): New internal function.
23956 * sanopt.c (tree_map_traits): Renamed to ...
23957 (sanopt_tree_map_traits): ... this.
23958 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
23959 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
23960 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
23961 (maybe_optimize_ubsan_vptr_ifn): New function.
23962 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
23963 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
23965 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
23966 internal calls like pure functions for aliasing, even when they
23967 have other side-effects that prevent making them ECF_PURE.
23968 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
23969 (ubsan_expand_vptr_ifn): New function.
23971 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
23973 PR rtl-optimization/64110
23974 * stmt.c (parse_output_constraint): Process '^' and '$'.
23975 (parse_input_constraint): Ditto.
23976 * lra-constraints.c (process_alt_operands): Process the new
23978 * ira-costs.c (record_reg_classes): Process the new constraint
23980 * genoutput.c (indep_constraints): Add '^' and '$'.
23981 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
23982 * doc/md.texi: Add description of the new constraints.
23984 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
23985 Bernd Schmidt <bernds@codesourcery.com>
23986 Cesar Philippidis <cesar@codesourcery.com>
23987 James Norris <jnorris@codesourcery.com>
23988 Tom de Vries <tom@codesourcery.com>
23989 Ilmir Usmanov <i.usmanov@samsung.com>
23990 Dmitry Bocharnikov <dmitry.b@samsung.com>
23991 Evgeny Gavrin <e.gavrin@samsung.com>
23992 Jakub Jelinek <jakub@redhat.com>
23994 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
23995 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23996 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23997 New function types.
23998 * builtins.c: Include "gomp-constants.h".
23999 (expand_builtin_acc_on_device): New function.
24000 (expand_builtin, is_inexpensive_builtin): Handle
24001 BUILT_IN_ACC_ON_DEVICE.
24002 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
24004 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
24006 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
24007 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
24008 i386/intelmic-offload.h.
24009 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
24010 to libgomp and its dependencies.
24011 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
24012 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
24013 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
24014 * config/ia64/hpux.h (LIB_SPEC): Likewise.
24015 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
24016 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
24017 * doc/generic.texi: Update for OpenACC changes.
24018 * doc/gimple.texi: Likewise.
24019 * doc/invoke.texi: Likewise.
24020 * doc/sourcebuild.texi: Likewise.
24021 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
24022 GF_OMP_FOR_KIND_OACC_LOOP.
24023 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
24024 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
24025 GF_OMP_TARGET_KIND_OACC_UPDATE,
24026 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
24028 * gimple.c: Update comments for OpenACC changes.
24029 * gimple.def: Likewise.
24030 * gimple.h: Likewise.
24031 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
24032 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
24033 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
24034 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
24035 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
24037 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
24038 * gimplify.c: Include "gomp-constants.h".
24039 Update comments for OpenACC changes.
24040 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
24041 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
24042 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
24043 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
24044 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
24045 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
24046 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
24047 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
24048 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
24050 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
24051 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
24052 OMP_CLAUSE_SET_MAP_KIND.
24053 (gimplify_oacc_cache): New function.
24054 (gimplify_omp_for): Handle OACC_LOOP.
24055 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
24057 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
24058 OACC_EXIT_DATA, OACC_UPDATE.
24059 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
24060 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
24061 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
24062 (gimplify_body): Consider flag_openacc next to flag_openmp.
24063 * lto-streamer-out.c: Include "gomp-constants.h".
24064 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
24065 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
24066 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
24067 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
24068 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
24069 (BUILT_IN_ACC_ON_DEVICE): New builtins.
24070 * omp-low.c: Include "gomp-constants.h".
24071 Update comments for OpenACC changes.
24072 (struct omp_context): Add reduction_map, gwv_below, gwv_this
24074 (extract_omp_for_data, use_pointer_for_field, install_var_field)
24075 (new_omp_context, delete_omp_context, scan_sharing_clauses)
24076 (create_omp_child_function, scan_omp_for, scan_omp_target)
24077 (check_omp_nesting_restrictions, lower_reduction_clauses)
24078 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
24079 Update for OpenACC changes.
24080 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
24081 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
24082 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
24083 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
24084 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
24085 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
24087 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
24088 Handle GF_OMP_FOR_KIND_OACC_LOOP.
24089 (expand_omp_target, lower_omp_target): Handle
24090 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
24091 GF_OMP_TARGET_KIND_OACC_UPDATE,
24092 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
24093 GF_OMP_TARGET_KIND_OACC_DATA.
24094 (pass_expand_omp::execute, execute_lower_omp)
24095 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
24097 (offload_symbol_decl): New variable.
24098 (oacc_get_reduction_array_id, oacc_max_threads)
24099 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
24100 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
24101 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
24102 (oacc_gimple_assign, oacc_initialize_reduction_data)
24103 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
24105 (is_targetreg_ctx): Remove function.
24106 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
24107 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
24108 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
24109 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
24110 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
24111 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
24112 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
24113 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
24114 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
24115 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
24116 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
24117 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
24118 * tree-core.h: Update comments for OpenACC changes.
24119 (enum omp_clause_map_kind): Remove.
24120 (struct tree_omp_clause): Change type of map_kind member from enum
24121 omp_clause_map_kind to unsigned char.
24122 * tree-inline.c: Update comments for OpenACC changes.
24123 * tree-nested.c: Likewise. Include "gomp-constants.h".
24124 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
24125 (convert_tramp_reference_stmt, convert_gimple_call): Update for
24126 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
24127 OMP_CLAUSE_SET_MAP_KIND.
24128 * tree-pretty-print.c: Include "gomp-constants.h".
24129 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
24130 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
24131 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
24132 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
24133 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
24134 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
24135 instead of OMP_CLAUSE_MAP_*.
24136 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
24137 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
24138 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
24139 * tree-streamer-in.c: Include "gomp-constants.h".
24140 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
24141 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
24142 * tree-streamer-out.c: Include "gomp-constants.h".
24143 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
24145 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
24146 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
24147 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
24148 * tree.c (omp_clause_num_ops): Update accordingly.
24149 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
24151 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
24152 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
24153 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
24154 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
24155 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
24156 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
24157 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
24158 (OMP_CLAUSE_SET_MAP_KIND): New macro.
24159 * varpool.c (varpool_node::get_create): Consider flag_openacc next
24161 * config/i386/intelmic-offload.h: New file.
24162 * config/nvptx/offload.h: Likewise.
24164 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24166 * explow.h: Remove duplicate contents.
24167 * dojump.h: Likewise.
24169 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
24171 * arm.c (arm_xgene_tune): Add default initializer for instruction
24174 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
24178 * ipa.c (symbol_table::remove_unreachable_nodes):
24179 Do not put abstract origins into boundary.
24181 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
24183 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
24184 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
24186 2015-01-15 Steve Ellcey <sellcey@mips.com>
24188 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
24189 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
24190 builtins.def, and chkp-builtins.def.
24192 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
24194 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
24197 2015-01-15 Richard Biener <rguenther@suse.de>
24199 PR tree-optimization/61743
24200 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
24201 information on PHIs for some simple cases.
24203 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24205 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
24207 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
24208 * config/arm/arm-cores.def (xgene1): New entry.
24209 * config/arm/arm-tables.opt: Regenerate.
24210 * config/arm/arm-tune.md: Regenerate.
24211 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
24213 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
24215 * tree-if-conv.c: Include hash-map.h.
24216 (aggressive_if_conv): New variable.
24217 (fold_build_cond_expr): Add simplification of non-zero condition.
24218 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
24219 destination block is not always executed.
24220 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
24221 than two predecessors if AGGRESSIVE_IF_CONV is true.
24222 (if_convertible_stmt_p): Fix commentary.
24223 (all_preds_critical_p): New function.
24224 (has_pred_critical_p): New function.
24225 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
24226 BB can have more than two predecessors and all incoming edges can be
24228 (predicate_bbs): Skip predication for loop exit block, use build2_loc
24229 to compute predicate for true edge.
24230 (find_phi_replacement_condition): Delete this function.
24231 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
24232 Allow interchange PHI arguments if EXTENDED is false.
24233 Change check that block containing reduction statement candidate
24234 is predecessor of phi-block since phi may have more than two arguments.
24235 (phi_args_hash_traits): New helper structure.
24236 (struct phi_args_hash_traits): New type.
24237 (phi_args_hash_traits::hash): New function.
24238 (phi_args_hash_traits::equal_keys): New function.
24239 (gen_phi_arg_condition): New function.
24240 (predicate_scalar_phi): Add handling of phi nodes with more than two
24241 arguments, delete COND and TRUE_BB arguments, insert body of
24242 find_phi_replacement_condition to predicate ordinary phi nodes.
24243 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
24244 delete call of find_phi_replacement_condition and invoke
24245 predicate_scalar_phi with two arguments.
24246 (insert_gimplified_predicates): Add assert that non-predicated block
24247 don't have statements to insert.
24248 (ifcvt_split_critical_edges): New function.
24249 (ifcvt_split_def_stmt): Likewise.
24250 (ifcvt_walk_pattern_tree): Likewise.
24251 (stmt_is_root_of_bool_pattern): Likewise.
24252 (ifcvt_repair_bool_pattern): Likewise.
24253 (ifcvt_local_dce): Likewise.
24254 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
24255 is copy of inner or outer loop force_vectorize field, invoke
24256 ifcvt_split_critical_edges, ifcvt_local_dce and
24257 ifcvt_repair_bool_pattern for aggressive if-conversion.
24259 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
24261 * config/aarch64/aarch64.md: Include xgene1.md.
24262 * config/aarch64/xgene1.md: New file.
24264 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24266 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
24267 xgene1 (APM XGene-1) core definition.
24268 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
24269 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
24270 * doc/invoke.texi: Document -mcpu=xgene1.
24272 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24274 * dojump.h: New header file.
24275 * explow.h: Likewise.
24276 * expr.h: Remove includes.
24277 Move expmed.c prototypes to expmed.h.
24278 Move dojump.c prototypes to dojump.h.
24279 Move alias.c prototypes to alias.h.
24280 Move explow.c prototypes to explow.h.
24281 Move calls.c prototypes to calls.h.
24282 Move emit-rtl.c prototypes to emit-rtl.h.
24283 Move varasm.c prototypes to varasm.h.
24284 Move stmt.c prototypes to stmt.h.
24285 (saved_pending_stack_adjust): Move to dojump.h.
24286 (adjust_address): Move to explow.h.
24287 (adjust_address_nv): Move to emit-rtl.h.
24288 (adjust_bitfield_address): Likewise.
24289 (adjust_bitfield_address_size): Likewise.
24290 (adjust_bitfield_address_nv): Likewise.
24291 (adjust_automodify_address_nv): Likewise.
24292 * explow.c (expr_size): Move to expr.c.
24293 (int_expr_size): Likewise.
24294 (tree_expr_size): Likewise.
24295 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24296 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
24297 * genemit.c (main): Generate includes statistics.h, real.h,
24298 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
24300 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
24301 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
24302 explow.h, emit-rtl.h, stmt.h.
24303 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
24304 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
24305 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
24306 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
24307 emit-rtl.h, varasm.h, stmt.h.
24308 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
24309 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
24310 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
24311 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
24312 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
24313 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
24314 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
24315 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
24316 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
24317 tm.h tree.h varasm.h vec.h wide-int.h.
24318 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
24319 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
24320 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
24321 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
24322 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
24323 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
24324 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
24325 * loop-iv.c: Likewise.
24326 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
24327 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
24328 statistics.h stmt.h tree.h varasm.h wide-int.h.
24329 * lra-constraints.c: Likewise.
24330 * lra-eliminations.c: Likewise.
24331 * lra-lives.c: Likewise.
24332 * lra-remat.c: Likewise.
24333 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
24334 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
24335 statistics.h stmt.h tree.h varasm.h wide-int.h.
24336 * hw-doloop.c: Likewise.
24337 * ira-color.c: Likewise.
24338 * ira-emit.c: Likewise.
24339 * loop-doloop.c: Likewise.
24340 * loop-invariant.c: Likewise.
24341 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
24342 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
24343 statistics.h stmt.h tree.h varasm.h wide-int.h.
24344 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
24345 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
24346 statistics.h stmt.h tree.h varasm.h wide-int.h.
24347 * combine-stack-adj.c: Likewise.
24350 * ifcvt.c: Likewise.
24351 * ira-costs.c: Likewise.
24352 * jump.c: Likewise.
24353 * lra-coalesce.c: Likewise.
24354 * lra-spills.c: Likewise.
24355 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
24356 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
24357 stmt.h varasm.h wide-int.h.
24358 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
24359 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
24361 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
24362 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
24363 statistics.h stmt.h varasm.h wide-int.h.
24364 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
24365 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
24366 varasm.h wide-int.h.
24367 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
24368 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
24369 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
24370 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
24371 statistics.h stmt.h.
24372 * config/tilepro/tilepro.c: Likewise.
24373 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
24374 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
24375 * config/pdp11/pdp11.c: Likewise.
24376 * config/xtensa/xtensa.c: Likewise.
24377 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
24378 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
24380 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24381 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
24382 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
24383 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24384 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
24385 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
24386 * rtl-chkp.c: Likewise.
24387 * tree-chkp-opt.c: Likewise.
24388 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
24389 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
24390 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
24391 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24392 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
24393 statistics.h stmt.h.
24394 * tree-vect-data-refs.c: Likewise.
24395 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
24396 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24397 rtl.h statistics.h stmt.h varasm.h.
24398 * internal-fn.c: Likewise.
24399 * ipa-icf-gimple.c: Likewise.
24400 * lto-section-out.c: Likewise.
24401 * tree-data-ref.c: Likewise.
24402 * tree-nested.c: Likewise.
24403 * tree-outof-ssa.c: Likewise.
24404 * tree-predcom.c: Likewise.
24405 * tree-pretty-print.c: Likewise.
24406 * tree-scalar-evolution.c: Likewise.
24407 * tree-ssa-strlen.c: Likewise.
24408 * tree-vect-loop.c: Likewise.
24409 * tree-vect-patterns.c: Likewise.
24410 * tree-vect-slp.c: Likewise.
24411 * tree-vect-stmts.c: Likewise.
24412 * tsan.c: Likewise.
24413 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24414 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
24416 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
24417 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24418 statistics.h stmt.h varasm.h.
24419 * loop-unroll.c: Likewise.
24420 * ubsan.c: Likewise.
24421 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
24422 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
24424 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24425 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
24426 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
24427 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
24428 statistics.h stmt.h.
24429 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
24430 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
24431 statistics.h stmt.h varasm.h.
24432 * gimple-match-head.c: Likewise.
24433 * lto-cgraph.c: Likewise.
24434 * lto-section-in.c: Likewise.
24435 * lto-streamer-in.c: Likewise.
24436 * lto-streamer-out.c: Likewise.
24437 * tree-affine.c: Likewise.
24438 * tree-cfg.c: Likewise.
24439 * tree-cfgcleanup.c: Likewise.
24440 * tree-if-conv.c: Likewise.
24441 * tree-into-ssa.c: Likewise.
24442 * tree-ssa-alias.c: Likewise.
24443 * tree-ssa-copyrename.c: Likewise.
24444 * tree-ssa-dse.c: Likewise.
24445 * tree-ssa-forwprop.c: Likewise.
24446 * tree-ssa-live.c: Likewise.
24447 * tree-ssa-math-opts.c: Likewise.
24448 * tree-ssa-pre.c: Likewise.
24449 * tree-ssa-sccvn.c: Likewise.
24450 * tree-tailcall.c: Likewise.
24451 * tree-vect-generic.c: Likewise.
24452 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24453 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
24454 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24455 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
24456 * varasm.c: Likewise.
24457 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24458 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
24460 * init-regs.c: Likewise.
24462 * omp-low.c: Likewise.
24463 * stack-ptr-mod.c: Likewise.
24464 * tree-ssa-reassoc.c: Likewise.
24465 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24466 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
24468 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24469 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
24470 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24471 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
24472 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24473 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
24474 * tree-ssa-phiopt.c: Likewise.
24475 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24476 fixed-value.h hashtab.h real.h statistics.h stmt.h.
24477 * config/fr30/fr30.c: Likewise.
24478 * config/frv/frv.c: Likewise.
24479 * expr.c: Likewise.
24480 * final.c: Likewise.
24481 * optabs.c: Likewise.
24482 * passes.c: Likewise.
24483 * simplify-rtx.c: Likewise.
24484 * stmt.c: Likewise.
24485 * toplev.c: Likewise.
24486 * var-tracking.c: Likewise.
24487 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24488 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
24489 * lower-subreg.c: Likewise.
24490 * postreload-gcse.c: Likewise.
24492 * reginfo.c: Likewise.
24493 * store-motion.c: Likewise.
24494 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24495 fixed-value.h hashtab.h real.h stmt.h varasm.h.
24496 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24497 fixed-value.h hashtab.h statistics.h stmt.h.
24498 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24499 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
24500 * except.c: Likewise.
24501 * explow.c: Likewise.
24502 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24503 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
24505 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24506 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
24507 * tree-ssa-structalias.c: Likewise.
24508 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24509 fixed-value.h insn-config.h real.h statistics.h.
24510 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24511 fixed-value.h insn-config.h real.h statistics.h stmt.h.
24512 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24513 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
24514 * cfgbuild.c: Likewise.
24515 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24516 fixed-value.h real.h rtl.h statistics.h stmt.h.
24517 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24518 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
24519 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24520 fixed-value.h real.h statistics.h stmt.h.
24521 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24522 fixed-value.h real.h statistics.h stmt.h varasm.h.
24523 * cprop.c: Likewise.
24524 * modulo-sched.c: Likewise.
24525 * postreload.c: Likewise.
24526 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
24527 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
24528 statistics.h stmt.h varasm.h.
24529 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
24530 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24531 rtl.h statistics.h stmt.h varasm.h.
24532 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
24533 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
24535 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
24536 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
24538 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
24539 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
24541 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
24542 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
24543 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
24544 function.h real.h statistics.h stmt.h varasm.h.
24545 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
24546 insn-config.h real.h statistics.h stmt.h.
24547 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
24548 statistics.h stmt.h.
24549 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
24550 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
24551 statistics.h stmt.h varasm.h.
24552 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
24553 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
24554 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
24555 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
24556 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
24557 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
24558 statistics.h stmt.h varasm.h.
24559 * ipa-polymorphic-call.c: Likewise.
24560 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
24561 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24562 statistics.h stmt.h.
24563 * config/c6x/c6x.c: Likewise.
24564 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
24565 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24566 statistics.h stmt.h varasm.h.
24567 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
24568 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
24570 * ipa-split.c: Likewise.
24571 * tree-eh.c: Likewise.
24572 * tree-ssa-dce.c: Likewise.
24573 * tree-ssa-loop-niter.c: Likewise.
24574 * tree-vrp.c: Likewise.
24575 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
24576 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
24578 * config/nds32/nds32-fp-as-gp.c: Likewise.
24579 * config/nds32/nds32-intrinsic.c: Likewise.
24580 * config/nds32/nds32-isr.c: Likewise.
24581 * config/nds32/nds32-md-auxiliary.c: Likewise.
24582 * config/nds32/nds32-memory-manipulation.c: Likewise.
24583 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24584 * config/nds32/nds32-predicates.c: Likewise.
24585 * config/nds32/nds32.c: Likewise.
24586 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
24587 fixed-value.h hashtab.h real.h statistics.h.
24588 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
24589 fixed-value.h hashtab.h real.h statistics.h stmt.h.
24590 * config/arm/arm.c: Likewise.
24591 * config/avr/avr.c: Likewise.
24592 * config/bfin/bfin.c: Likewise.
24593 * config/h8300/h8300.c: Likewise.
24594 * config/i386/i386.c: Likewise.
24595 * config/ia64/ia64.c: Likewise.
24596 * config/iq2000/iq2000.c: Likewise.
24597 * config/m32c/m32c.c: Likewise.
24598 * config/m32r/m32r.c: Likewise.
24599 * config/m68k/m68k.c: Likewise.
24600 * config/mcore/mcore.c: Likewise.
24601 * config/mep/mep.c: Likewise.
24602 * config/mips/mips.c: Likewise.
24603 * config/mn10300/mn10300.c: Likewise.
24604 * config/moxie/moxie.c: Likewise.
24605 * config/pa/pa.c: Likewise.
24606 * config/rl78/rl78.c: Likewise.
24607 * config/rx/rx.c: Likewise.
24608 * config/s390/s390.c: Likewise.
24609 * config/sh/sh.c: Likewise.
24610 * config/sparc/sparc.c: Likewise.
24611 * config/spu/spu.c: Likewise.
24612 * config/stormy16/stormy16.c: Likewise.
24613 * config/v850/v850.c: Likewise.
24614 * config/vax/vax.c: Likewise.
24615 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
24616 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
24617 * config/msp430/msp430.c: Likewise.
24618 * predict.c: Likewise.
24619 * value-prof.c: Likewise.
24620 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
24621 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
24622 * config/microblaze/microblaze.c: Likewise.
24623 * config/nios2/nios2.c: Likewise.
24624 * config/rs6000/rs6000.c: Likewise.
24625 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
24626 insn-config.h real.h rtl.h statistics.h stmt.h.
24627 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
24628 insn-config.h real.h statistics.h stmt.h.
24629 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
24630 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
24631 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
24632 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
24633 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
24634 fixed-value.h real.h statistics.h stmt.h.
24635 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
24636 fixed-value.h statistics.h stmt.h.
24637 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
24640 2015-01-15 Jakub Jelinek <jakub@redhat.com>
24642 * gengtype.c (create_user_defined_type): Workaround
24643 -Wmaybe-uninitialized false positives.
24644 * cse.c (fold_rtx): Likewise.
24645 * loop-invariant.c (gain_for_invariant): Likewise.
24647 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
24649 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
24650 set the memory attributes in all cases but clear MEM_EXPR if need be.
24652 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
24654 PR tree-optimization/64434
24655 * cfgexpand.c (reorder_operands): New function.
24656 (expand_gimple_basic_block): Insert call of reorder_operands if
24659 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
24661 * config/mips/micromips.md (*swp): Remove explicit parallel.
24662 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
24663 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
24664 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
24665 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
24666 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
24667 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
24668 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
24669 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
24670 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
24671 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
24672 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
24673 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
24674 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
24675 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
24676 (mips_wrdsp): Likewise.
24677 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
24679 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
24680 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
24681 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
24682 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
24683 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
24684 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
24685 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
24686 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
24687 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
24689 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24691 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
24692 (mips_print_operand): Support 'y' to print exact log2 in decimal
24694 * config/mips/mips.h (ISA_HAS_LSA): New define.
24695 (ISA_HAS_DLSA): Likewise.
24696 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
24697 * config/mips/predicates.md (const_immlsa_operand): New predicate.
24699 2015-01-15 Martin Liska <mliska@suse.cz>
24702 * optc-save-gen.awk: Add support for array types.
24704 2015-01-15 Richard Biener <rguenther@suse.de>
24706 PR middle-end/64365
24707 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
24708 for MEM_REF access functions with the same base can never partially
24711 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
24713 * common.opt: New option -fstack-protector-explicit.
24714 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
24715 (stack_protect_decl_phase): Handle stack_protect attribute for
24716 explicit stack protection requests.
24717 (expand_used_vars): Similarly.
24718 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
24719 * doc/extend.texi: Add documentation for "stack_protect" attribute.
24720 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
24722 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
24725 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
24727 (sh_extending_set_of_reg): New struct.
24728 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
24729 sh_remove_reg_dead_or_unused_notes): New Declarations.
24730 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
24731 sh_find_extending_set_of_reg, sh_split_tst_subregs,
24732 sh_extending_set_of_reg::use_as_extended_reg): New functions.
24733 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
24734 convert to insn_and_split and use new function sh_split_tst_subregs.
24736 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
24738 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
24740 (Optimization Options): Move -fuse-ld documentation to...
24741 (Link Options): ...here.
24743 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24745 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
24747 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
24748 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
24749 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
24750 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
24751 instead of ZR for the memory operand of LL/SC.
24752 (compare_and_swap_12, sync_add<mode>): Likewise.
24753 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
24754 (sync_new_<optab>_12, sync_nand_12): Likewise.
24755 (sync_old_nand_12, sync_new_nand_12): Likewise.
24756 (sync_sub<mode>, sync_old_add<mode>): Likewise.
24757 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
24758 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
24759 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
24760 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
24761 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
24762 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
24763 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
24764 * doc/md.texi (ZC): Update description.
24766 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
24768 * builtins.c (expand_builtin_atomic_exchange): Remove error when
24769 memory model is CONSUME.
24770 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
24771 expand_builtin_atomic_store): Change invalid memory model errors to
24773 (expand_builtin_atomic_clear): Change invalid model errors to warnings
24774 and issue warning for CONSUME.
24776 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
24778 * lto-cgraph: Update function comments for
24779 lto_symtab_encoder_encode_*.
24781 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
24783 * Makefile.in (site.exp): Do not set ENABLE_LTO.
24785 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
24787 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
24788 * lto-cgraph.c (select_what_to_stream): Remove argument, use
24789 lto_stream_offload_p instead.
24790 * lto-streamer.h (select_what_to_stream): Remove argument.
24791 * passes.c (ipa_write_summaries): Likewise.
24792 * tree-pass.h (ipa_write_summaries): Likewise.
24794 2015-01-14 Richard Biener <rguenther@suse.de>
24796 PR tree-optimization/59354
24797 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
24798 groups larger than the slp group size as having gaps.
24800 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
24802 PR middle-end/59448
24803 * builtins.c (get_memmodel): Promote consume to acquire always.
24805 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24808 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
24811 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24814 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
24816 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
24817 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
24818 AVX512VBMI, as it implies AVX512BW.
24820 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24823 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
24824 (vec_unpacks_hi_v16sf): Ditto.
24826 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24828 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
24831 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24833 * doc/invoke.texi (mapcs): Mention deprecation.
24834 (mapcs-frame): Likewise.
24836 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
24839 * config/arm/arm.c (callee_saved_reg_p): Define.
24840 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
24841 register is callee saved instead of !call_used_regs[reg].
24842 (thumb1_compute_save_reg_mask): Likewise.
24844 2015-01-14 Hale Wang <hale.wang@arm.com>
24846 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
24849 2015-01-14 Richard Biener <rguenther@suse.de>
24852 * tree-inline.c (insert_debug_decl_map): Check destination
24853 function MAY_HAVE_DEBUG_STMTS.
24854 (insert_init_debug_bind): Likewise.
24855 (insert_init_stmt): Remove redundant check.
24856 (remap_gimple_stmt): Drop debug stmts if the destination
24857 function has var-tracking assignments disabled.
24859 2015-01-14 Martin Liska <mliska@suse.cz>
24861 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
24862 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
24864 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24867 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
24868 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
24870 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24872 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
24873 level from an ARCH; do not inject the default.
24874 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
24875 MIPS_ISA_LEVEL_SPEC.
24876 (MIPS_ISA_NAN2008_SPEC): Update comment.
24877 (BASE_DRIVER_SELF_SPECS): Likewise.
24878 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
24879 MIPS_DEFAULT_ISA_LEVEL_SPEC.
24880 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
24881 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
24882 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
24884 2015-01-14 Richard Biener <rguenther@suse.de>
24886 PR tree-optimization/64493
24887 PR tree-optimization/64495
24888 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
24889 assign the proper vectorized PHI to the inner loop exit PHIs.
24891 2015-01-14 Joey Ye <joey.ye@arm.com>
24893 * config/arm/arm.c (arm_compute_save_reg_mask):
24894 Do not save lr in case of tail call.
24895 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
24897 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
24899 * tree-vrp.c (check_array_ref): Emit more warnings
24900 for warn_array_bounds >= 2.
24901 * common.opt: New option -Warray-bounds=.
24902 * doc/invoke.texi: Document -Warray-bounds=.
24904 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
24906 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
24907 (mforbid-fp-as-gp): Remove.
24909 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
24910 (nds32_symbol_load_store_p): Remove.
24911 (nds32_fp_as_gp_check_available): Clean up implementation.
24912 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
24914 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
24915 fp-as-gp and ex9 cases.
24917 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24919 * tree-profile.c (init_ic_make_global_vars): Drop workaround
24920 for bintuils bug 14342.
24921 (init_ic_make_global_vars): Likewise.
24922 (gimple_init_edge_profiler): Likewise.
24923 (gimple_gen_ic_func_profiler): Likewise.
24925 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24927 * ipa-inline.c (inline_small_functions): Swap the operands in
24930 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24933 * ipa-inline-analysis.c (node_growth_cache): Remove.
24934 (initialize_growth_caches): Do not initialize it.
24935 (free_growth_caches): Do not free it.
24936 (do_estimate_growth): Rename to ...
24937 (estimate_growth): ... this one; drop growth cache code.
24938 (growth_likely_positive): Always go the heuristics way.
24939 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
24940 (reset_edge_caches): Do not reset node growth.
24941 (heap_edge_removal_hook): Do not maintain cache.
24942 (inline_small_functions): Likewise; strenghten sanity check.
24943 (ipa_inline): Do not maintain caches.
24944 * ipa-inline.h (node_growth_cache): Remove.
24945 (do_estimate_growth): Remove to ...
24946 (estimate_growth): this one; remove inline version.
24947 (reset_node_growth_cache): Remove.
24949 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24952 * ipa-inline.c (inline_small_functions): Update callee keys after
24953 resolving speculation
24954 (inline_small_functions): Always check monotonicity of the queue.
24956 2015-01-13 Marek Polacek <polacek@redhat.com>
24958 PR middle-end/64391
24959 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
24961 2015-01-13 Jakub Jelinek <jakub@redhat.com>
24963 PR rtl-optimization/64286
24964 * ree.c (combine_reaching_defs): Move part of comment earlier,
24965 remove !SCALAR_INT_MODE_P check.
24966 (add_removable_extension): Don't add vector mode
24967 extensions if all uses of the source register aren't the same
24970 2015-01-13 Renlin Li <renlin.li@arm.com>
24972 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
24973 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
24975 2015-01-13 Martin Liska <mliska@suse.cz>
24977 * ipa-icf.c (sem_function::equals_private): Call new functions
24978 cl_target_option_print_diff and cl_optimization_print_diff.
24979 * optc-save-gen.awk (cl_target_option_print_diff): New function.
24980 (cl_optimization_print_diff): Likewise.
24981 * opth-gen.awk: Likewise.
24983 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
24985 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
24986 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
24987 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
24988 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
24989 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
24990 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
24992 2015-01-13 Andrew Pinski <apinski@cavium.com>
24994 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
24995 instead of src mode.
24997 2015-01-13 Richard Biener <rguenther@suse.de>
25000 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
25003 2015-01-13 Andrew Pinski <apinski@cavium.com>
25005 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
25007 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
25009 2015-01-13 Jakub Jelinek <jakub@redhat.com>
25011 PR middle-end/63974
25012 * cfgexpand.c (expand_computed_goto): Don't call
25013 convert_memory_address here.
25015 2015-01-13 Richard Biener <rguenther@suse.de>
25017 PR tree-optimization/64406
25018 * tree-loop-distibution.c (pass_loop_distribution::execute):
25019 Reset the SCEV hashtable if we distributed anything.
25021 2015-01-13 Richard Biener <rguenther@suse.de>
25023 PR tree-optimization/64404
25024 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
25025 SLP types for CSEd loads.
25027 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
25029 PR tree-optimization/64436
25030 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
25031 merge of two symbolic numbers for a bitwise OR to ...
25032 (perform_symbolic_merge): This. Also fix computation of the range and
25033 end of the symbolic number corresponding to the result of a bitwise OR.
25035 2015-01-13 Richard Biener <rguenther@suse.de>
25037 PR tree-optimization/64568
25038 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
25039 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
25041 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
25043 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
25044 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
25046 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
25048 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
25049 target-specific symbol_ref flag.
25050 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
25051 resides in rodata section.
25052 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
25053 (nds32_encode_section_info): New function.
25055 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
25057 * config/nds32/nds32.md (call): Use pseudo instruction bal which
25058 clobbers TA_REGNUM if large code model is specified.
25059 (call_register): Likewise.
25060 (call_immediate): Likewise.
25061 (call_value): Likewise.
25062 (call_value_register): Likewise.
25063 (call_value_immediate): Likewise.
25065 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
25067 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
25068 (TARGET_CMODEL_MEDIUM): New macro.
25069 (TARGET_CMODEL_LARGE): New macro.
25070 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
25071 code model setting in assembly code.
25073 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
25075 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25076 Remove MASK_GP_DIRECT flag.
25077 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
25078 one of the multilib default options.
25079 * config/nds32/nds32.opt (mgp-direct): Remove.
25080 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
25081 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
25083 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
25085 * config/nds32/nds32.opt (mcmodel): Add new option.
25086 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
25087 to describe code model.
25089 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
25092 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
25094 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
25096 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
25097 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
25098 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
25099 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
25100 __builtin_sh_set_fpscr.
25102 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
25104 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
25105 after a funtion name just to indicate it is a function.
25106 ([-fsanitize-undefined-trap-on-error]): Likewise.
25107 ([-fdbg-cnt=]): Likewise.
25108 ([-mmemcpy]): Likewise.
25109 ([-mflush-func]): Likewise.
25110 ([-msynci]): Likewise.
25112 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
25114 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
25117 2015-01-12 Jakub Jelinek <jakub@redhat.com>
25119 PR tree-optimization/64563
25120 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
25121 instead of != VR_VARYING.
25124 * config/i386/i386.c (ix86_expand_prologue): Add
25125 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
25127 PR tree-optimization/64454
25128 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
25129 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
25130 for signed or [0, op1 - 1] for unsigned modulo.
25131 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
25132 even if op1 does not satisfy integer_pow2p.
25135 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
25137 2015-01-12 Jeff Law <law@redhat.com>
25140 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
25141 (trunchiqi2, truncsihi2): Similarly.
25143 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
25144 rather than calling F.
25146 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
25148 * tsan.c (instrument_expr): Use force_gimple_operand.
25149 Use may_be_nonaddressable_p instead of is_gimple_addressable.
25151 2015-01-12 Richard Biener <rguenther@suse.de>
25153 PR tree-optimization/64530
25154 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
25157 2015-01-12 Richard Biener <rguenther@suse.de>
25159 PR middle-end/64357
25160 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
25163 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25165 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
25166 Cortex-A17 tuning parameters.
25167 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
25169 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25171 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
25172 * config/arm/arm.c (arm_macro_fusion_p): New function.
25173 (arm_macro_fusion_pair_p): Likewise.
25174 (TARGET_SCHED_MACRO_FUSION_P): Define.
25175 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
25176 (ARM_FUSE_NOTHING): Likewise.
25177 (ARM_FUSE_MOVW_MOVT): Likewise.
25178 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
25179 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
25180 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
25181 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
25182 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
25183 arm_cortex_a5_tune): Specify fuseable_ops value.
25185 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
25188 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
25189 test for PIE with copy reloc.
25190 * configure: Regenerated.
25192 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25194 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
25196 (arm_tls_descseq_addr): Likewise.
25197 (arm_gen_movmemqi): Likewise.
25198 (arm_expand_epilogue_apcs_frame): Likewise.
25199 (arm_expand_epilogue): Likewise.
25200 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
25203 2015-01-12 Martin Liska <mliska@suse.cz>
25206 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
25207 volatility for correct operands.
25209 2015-01-12 Martin Liska <mliska@suse.cz>
25211 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
25212 indication that a function is not leaf.
25213 (sem_function::compare_polymorphic_p): Likewise.
25215 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25217 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
25218 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
25219 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
25220 fold-const.h, tree-check.h.
25222 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
25226 * ipa-inline.c (compute_uninlined_call_time,
25227 compute_inlined_call_time): Use counts for extra precision when
25229 (big_speedup_p): Fix formating.
25230 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
25231 (relative_time_benefit): Remove.
25232 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
25233 merge guessed and read profile paths.
25234 (inline_small_functions): Count only !optimize_size functions into
25235 initial size; be more lax about sanity check when profile is used;
25236 be sure to update inlined function profile when profile is read.
25238 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
25241 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
25242 cost when edge becomes direct.
25243 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
25244 is resolved or when introducing new speculation.
25246 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
25250 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
25251 '||' to fix typo issue.
25253 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
25254 accept and return NULL.
25256 2015-01-12 Martin Liska <mliska@suse.cz>
25258 * cgraph.c (cgraph_edge::remove_callee): Move function to header
25259 file for being inlined.
25260 (cgraph_set_edge_callee): Delete.
25261 (cgraph_edge::redirect_callee): Move function to header file
25263 (cgraph_edge::make_direct): Use new function.
25264 (cgraph_edge::dump_edge_flags): New function created from
25265 static dump_edge_flags function.
25266 (cgraph_node::dump): Use new function.
25267 (cgraph_edge::verify_count_and_frequency): New function created
25268 from verify_edge_count_and_frequency.
25269 (cgraph_edge::verify_corresponds_to_fndecl): New function created
25270 from verify_edge_corresponds_to_fndecl.
25271 (verify_edge_corresponds_to_fndecl): Delete.
25272 (cgraph_node::verify_node): Use new function.
25273 * cgraph.h (cgraph_edge::set_callee): New function.
25274 (cgraph_edge::dump_edge_flags): Likewise.
25275 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
25277 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
25279 * ipa-utils.c (estimate_function_body_sizes): Do not
25280 free node params when called late with early=true.
25282 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
25284 * doc/md.texi (Instruction Patterns): Rewrite text for
25286 (Example): Likewise.
25288 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
25290 * doc/invoke.texi (Option Summary): Break long lines.
25291 [(-fdiagnostics-color)]: Put long literal in @smallexample
25293 [(-fsanitize-recover)]: Likewise.
25294 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
25295 [(-ffast-math)]: Likewise.
25296 [(--param max-inline-insns-recursive)]: Likewise.
25297 [(--param max-inline-recursive-depth)]: Likewise.
25298 [(-mno-text-section-literals)]: Likewise.
25300 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
25302 * doc/install.texi: Update for libgomp being renamed from "GNU
25303 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
25305 * doc/sourcebuild.texi: Likewise.
25307 2015-01-10 Anthony Green <green@moxielogic.com>
25309 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
25310 mul.x availability for moxiebox configuration.
25312 2015-01-09 Anthony Green <green@moxielogic.com>
25314 * config/moxie/moxie.md: Tabify assembly output.
25316 2015-01-09 Anthony Green <green@moxielogic.com>
25318 * config/moxie/moxie.md (CC_REG): Correct register definition.
25320 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
25322 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
25323 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
25326 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
25328 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
25330 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
25331 Jakub Jelinek <jakub@redhat.com>
25333 PR middle-end/64412
25334 * lto-streamer.h (lto_stream_offload_p): New declaration.
25335 * lto-streamer.c (lto_stream_offload_p): New variable.
25336 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
25337 at the same time as section_name_prefix.
25338 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
25339 if lto_stream_offload_p.
25340 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
25341 stream TREE_TARGET_OPTION if lto_stream_offload_p.
25342 (write_ts_function_decl_tree_pointers): Don't
25343 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
25344 * tree-streamer-in.c (unpack_value_fields): Don't stream
25345 TREE_TARGET_OPTION in if ACCEL_COMPILER.
25346 (lto_input_ts_function_decl_tree_pointers): Don't stream
25347 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
25348 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
25349 instead of section_name_prefix string comparisons.
25351 2015-01-09 Jakub Jelinek <jakub@redhat.com>
25353 PR rtl-optimization/64536
25354 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
25357 2015-01-09 Michael Collison <michael.collison@linaro.org>
25359 PR tree-optimization/64322
25360 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
25361 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
25363 2015-01-09 Tom de Vries <tom@codesourcery.com>
25365 PR rtl-optimization/64539
25366 * regcprop.c (kill_clobbered_values): Factor out of ...
25367 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
25368 instead of note_stores with kill_clobbered_value.
25370 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
25372 * ginclude/unwind-arm-common.h: Revert previous commit.
25374 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
25376 * config.gcc (arm*-*-freebsd*): New configuration.
25377 * config/arm/freebsd.h: New file.
25378 * config.host: Add extra components for arm*-*-freebsd*.
25379 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
25380 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
25382 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
25384 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
25386 * config/rs6000/t-rtems: Add e6500 multilibs.
25388 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
25390 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
25393 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
25395 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
25396 MULTILIB_EXCEPTIONS.
25398 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
25400 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
25401 MULTILIB_EXCEPTIONS.
25403 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
25405 * config/arm/t-rtems-eabi: Rename to...
25406 * config/arm/t-rtems: ...this.
25407 * config/arm/rtems-eabi.h: Rename to...
25408 * config/arm/rtems.h: ...this.
25409 * config.gcc (arm*-*-rtems*): Reflect changes above.
25411 2015-01-09 Richard Biener <rguenther@suse.de>
25413 PR tree-optimization/64410
25414 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
25416 (execute_update_addresses_taken): Deal with that.
25417 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
25418 loads/stores for complex variables.
25420 2015-01-09 Martin Liska <mliska@suse.cz>
25422 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
25424 (func_checker::compare_memory_operand): New function.
25425 (func_checker::compare_operand): Split case to newly
25427 (func_checker::compare_cst_or_decl): New function.
25428 (func_checker::compare_gimple_call): Identify
25430 (func_checker::compare_gimple_assign): Likewise.
25431 * ipa-icf-gimple.h: New function.
25433 2015-01-09 Martin Liska <mliska@suse.cz>
25436 * sreal.c (sreal::dump): Change unsigned format to signed for
25438 (sreal::to_double): Replace exp2 with scalbln.
25440 2015-01-09 Martin Liska <mliska@suse.cz>
25442 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
25443 * ipa-icf.c (sem_function::equals_private): Add support for target and
25444 (sem_item_optimizer::merge_classes): Remove redundant function
25445 optimization flags comparison.
25446 * tree.h (target_opts_for_fn): New function.
25448 2015-01-09 Tom de Vries <tom@codesourcery.com>
25450 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
25452 2015-01-09 Kito Cheng <kito@0xlab.org>
25454 PR rtl-optimization/64348
25455 * lra-constraints.c (split_reg): Fix caller-save store/restore
25456 instruction generation.
25458 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
25460 PR gcov-profile/61790
25461 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
25462 long long. Fallback to int64_t if host doesn't have long long and
25463 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
25465 2015-01-08 Jakub Jelinek <jakub@redhat.com>
25467 PR tree-optimization/63989
25468 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
25469 from 1000 to 10000.
25470 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
25471 (get_stridx): If we don't have a record for certain SSA_NAME,
25472 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
25473 constant offset, call get_stridx_plus_constant.
25474 (get_stridx_plus_constant): New function.
25475 (zero_length_string): Don't use get_stridx here.
25478 PR middle-end/64388
25479 * dse.c (struct insn_info): Mention frame_read set also
25480 before reload for tail calls on some targets.
25481 (scan_insn): Revert 2014-12-22 change. Set frame_read
25482 also before reload for tail calls if
25483 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
25484 instead of add_non_frame_wild_read for non-const/memset
25485 tail calls after reload.
25487 2015-01-08 Jason Merrill <jason@redhat.com>
25489 * ubsan.c (do_ubsan_in_current_function): New.
25490 (pass_ubsan::gate): Use it.
25491 * ubsan.h: Declare it.
25492 * convert.c (convert_to_integer): Use it.
25494 2015-01-08 Jakub Jelinek <jakub@redhat.com>
25497 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
25498 compare_code when it is unconditionally overwritten afterwards.
25499 Use ix86_reverse_condition instead of reverse_condition. Don't
25500 change code if *reverse_condition* returned UNKNOWN and don't
25501 swap ct/cf and negate diff in that case.
25503 2015-01-08 Mike Stump <mikestump@comcast.net>
25505 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
25506 (pass_tsan_O0::gate): Likewise.
25507 * extend.texi (Function Attributes): Add no_sanitize_thread
25510 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
25512 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
25513 for registering builtins.
25514 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
25515 add -fopenmp to the argv_obstack used when invoking
25516 compile_for_target.
25518 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
25519 add "-m32" or "-m64" to argv_obstack.
25520 (generate_host_descr_file): Likewise, when invoking host_compiler.
25521 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
25524 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
25526 * config/sh/sh-mem.cc: Use constant as second operand when emitting
25529 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
25532 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
25533 constant load if constant operand fits into I08.
25535 2015-01-08 Jakub Jelinek <jakub@redhat.com>
25538 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
25539 and TREE_THIS_VOLATILE for MEM_REFs.
25540 (build5_stat): Fix up initialization of TREE_READONLY and
25541 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
25543 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
25546 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
25547 of r for the second alternative of the destination operand.
25549 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
25552 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
25554 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
25556 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
25558 ([-fivar-visibility], [-fvisibility]): Likewise.
25560 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
25562 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
25563 the file where @code, @command, etc is more appropriate.
25565 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
25567 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
25568 of -mrecip= documentation.
25570 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25573 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
25574 correct reload handler if -m32 -mpowerpc64 is used.
25576 2015-01-06 Tom de Vries <tom@codesourcery.com>
25578 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
25580 2015-01-08 Christian Bruel <christian.bruel@st.com>
25583 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
25585 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
25587 PR tree-optimization/63259
25588 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
25589 if optab exists for 16bit byteswap.
25591 2015-01-06 Jakub Jelinek <jakub@redhat.com>
25593 * opts.c (common_handle_option): Add support for
25594 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
25595 * doc/invoke.texi: Document -fno-sanitize=all,
25596 -f{,no-}sanitize-recover=all. Document that
25597 -fsanitize=float-cast-overflow is not enabled
25598 by -fsanitize=undefined. Fix up documentation
25599 of -f{,no-}sanitize-recover.
25601 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
25603 * config.gcc: Add Visium support.
25604 * configure.ac: Likewise.
25605 * configure: Regenerate.
25606 * doc/extend.texi (interrupt attribute): Add Visium.
25607 * doc/invoke.texi: Document Visium options.
25608 * doc/install.texi: Document Visium target.
25609 * doc/md.texi: Document Visium constraints.
25610 * common/config/visium: New directory.
25611 * config/visium: Likewise.
25613 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
25615 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
25616 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
25618 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
25620 * combine.c (combine_validate_cost): Do not count the cost of a
25621 split I2 twice. Do not display it twice in the dump, either.
25623 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
25625 Revert parts of r219199.
25626 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
25628 ([-Wtraditional]): Restore markup on <limits.h>.
25630 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
25633 * doc/invoke.texi: Document -Wsuggest-override.
25635 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
25637 PR rtl-optimization/64287
25638 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
25639 (process_options): Disable flag_ipa_ra if profiling.
25641 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
25643 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
25645 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
25647 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
25648 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
25649 put under #if TARGET_LOOPS guard.
25651 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
25653 * config/i386/i386.c (output_387_binary_op): Use std::swap.
25655 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
25657 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
25658 * rtl.h (refers_to_regno_p): Add overload.
25660 * bt-load.c: Likewise.
25661 * combine.c: Likewise.
25662 * df-scan.c: Likewise.
25663 * sched-deps.c: Likewise.
25664 * config/s390/s390.c: Likewise.
25665 * config/m32r/m32r.c: Likewise.
25666 * config/rs6000/spe.md: Likewise.
25667 * config/rs6000/rs6000.c: Likewise.
25668 * config/pa/pa.c: Likewise.
25669 * config/stormy16/stormy16.c: Likewise.
25670 * config/cris/cris.c: Likewise.
25671 * config/arc/arc.md: Likewise.
25672 * config/arc/arc.c: Likewise.
25673 * config/sh/sh.md: Likewise.
25674 * config/sh/sh.c: Likewise.
25675 * config/frv/frv.c: Likewise.
25677 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25680 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
25681 call as cleanup of the whole body.
25682 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
25683 * tsan.c (replace_func_exit): New function.
25684 (instrument_func_exit): Moved earlier.
25685 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
25686 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
25688 (tsan_pass): Don't call instrument_func_exit.
25689 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
25690 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
25694 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
25695 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
25696 it to libubsan handler instead of EXPR. Fold comparisons earlier,
25697 if the result is integer_zerop, return NULL_TREE.
25698 * convert.c (convert_to_integer): Pass expr as ARG.
25700 PR tree-optimization/64465
25701 * tree-inline.c (redirect_all_calls): During inlining
25702 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
25703 changed the stmt to a non-throwing call.
25705 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
25707 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
25708 etc markup throughout the file.
25710 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
25712 Enable experimental TSAN support for Ada.
25713 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
25715 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25717 PR tree-optimization/64494
25718 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
25719 clear SSA_NAME_ANTI_RANGE_P flag.
25721 2015-01-05 Marek Polacek <polacek@redhat.com>
25723 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
25725 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25727 Update copyright years.
25729 * gcc.c (process_command): Update copyright notice dates.
25730 * gcov-dump.c: Ditto.
25732 * doc/cpp.texi: Bump @copying's copyright year.
25733 * doc/cppinternals.texi: Ditto.
25734 * doc/gcc.texi: Ditto.
25735 * doc/gccint.texi: Ditto.
25736 * doc/gcov.texi: Ditto.
25737 * doc/install.texi: Ditto.
25738 * doc/invoke.texi: Ditto.
25740 * auto-profile.c, auto-profile.h: Fix up Copyright line.
25742 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
25744 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
25746 ([-fvtable-verify], [-fvtv-debug]): Likewise.
25747 ([-Wabi]): Likewise.
25748 ([-fmessage-length]): Likewise.
25749 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
25750 ([-Wno-discarded-qualifiers]): Likewise.
25751 ([-Wnodiscarded-array-qualifiers]): Likewise.
25752 ([-Wno-virtual-move-assign]): Likewise.
25753 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
25754 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
25755 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
25756 ([-fsanitize-undefined-trap-on-error]): Likewise.
25757 ([-floop-interchange]): Likewise.
25758 ([-ftree-coalesce-inlined-vars]): Likewise.
25759 ([-fvect-cost-model]): Likewise.
25760 ([-flto]): Likewise.
25761 ([--param]): Likewise.
25762 (Spec Files): Likewise.
25763 ([-mstrict-align]): Likewise.
25764 ([-mfix-cortex-a53-835769]): Likewise.
25765 ([-march], [-mtune]): Likewise.
25766 ([-mpic-register]): Likewise.
25767 ([-munaligned-access]): Likewise.
25768 ([-msp8]): Likewise.
25769 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
25770 (AVR Built-in Macros): Likewise.
25771 ([-mpreferred-stack-boundary]): Likewise.
25772 ([-mtune-crtl]): Likewise.
25773 ([-mashf]): Likewise.
25774 ([-mmcu=]): Likewise.
25775 ([-minrt]): Likewise.
25776 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
25777 ([-mupper-regs]): Likewise.
25778 ([-matomic-model]): Likewise.
25779 ([-mdiv]): Likewise.
25780 ([-mzdcbranch]): Likewise.
25781 ([-mdisable-callt]): Likewise.
25782 ([-msoft-float]): Likewise.
25783 ([-m8byte-align]): Likewise.
25784 ([-fstack-reuse]): Likewise.
25786 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25788 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
25789 Fix markup, light copy-editing.
25790 ([-fauto-profile]): Rewrite to fix formatting and content
25793 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25795 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
25796 Copy-edit description.
25797 ([-fisolate-erroneous-paths-attribute]): Likewise.
25798 * common.opt (fisolate-erroneous-paths-dereference):
25799 Copy-edit description.
25800 (fisolate-erroneous-paths-attribute): Likewise.
25802 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25804 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
25807 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25809 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
25810 ([-fvtv-debug]): Likewise.
25811 ([-Wc++-compat]): Likewise.
25812 ([-Wc++11-compat]): Likewise.
25813 ([-Wc++14-compat]): Likewise.
25814 ([-Wno-sized-deallocation]): Likewise.
25815 ([-femit-class-debug-always]): Likewise.
25816 ([-femit-struct-debug-detailed]): Likewise.
25817 ([-fno-keep-inline-dllexport]): Likewise.
25818 ([-fira-algorithm]): Likewise.
25819 ([-fira-region]): Likewise.
25820 ([-flra-remat]): Likewise.
25821 ([-fipa-ra]): Likewise.
25822 ([-fhoist-adjacent-loads]): Likewise.
25823 ([-fisolate-erroneous-paths-dereference]): Likewise.
25824 ([-fisolate-erroneous-paths-attribute]): Likewise.
25825 ([-ftree-switch-conversion]): Likewise.
25826 ([-ftree-tail-merge]): Likewise.
25827 ([-ftree-loop-if-convert]): Likewise.
25828 ([-ftree-loop-if-convert-stores]): Likewise.
25829 ([-ftree-loop-distribution]): Likewise.
25830 ([-ftree-loop-distribute-patterns]): Likewise.
25831 ([-flto-compression-level]): Likewise.
25832 ([-flto-report]): Likewise.
25833 ([-flto-report-wpa]): Likewise.
25834 ([-fuse-linker-plugin]): Likewise.
25835 ([-mfix-cortex-a53-835769]): Likewise.
25836 ([-mno-fix-cortex-a53-835769]): Likewise.
25837 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
25838 explicit listing; add a note to the discussion indicating they
25839 exist. Reorder table to group similar options. Add missing
25840 @opindex entries. Add @need commands throughout the table to
25841 allow it to be split across multiple pages.
25842 ([-m8bit-idiv]): Fix @opindex.
25843 ([-mavx256-split-unaligned-load]): Likewise.
25844 ([-mavx256-split-unaligned-store]): Likewise.
25845 ([-mstack-protector-guard]): Likewise.
25846 ([-mcpu=]): Likewise.
25847 ([-mcpu]): Likewise.
25848 ([-mpointer-size=]): Likewise.
25850 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
25852 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
25853 instead of `m' constraint. Likewise for unnamed movb comparison
25854 patterns using reg_before_reload_operand predicate.
25855 * config/pa/predicates.md (reg_before_reload_operand): Tighten
25856 predicate to reject register index and LO_SUM DLT memory forms
25859 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
25861 * doc/invoke.texi (Option Summary): Fix spelling of
25862 -fdevirtualize-at-ltrans.
25863 ([-fdevirtualize]): Fix markup.
25864 ([-fdevirtualize-speculatively]): Fix typo.
25865 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
25866 implementor-speaky.
25867 * common.opt (fdevirtualize-at-ltrans): Likewise.
25868 * ipa-devirt.c: Fix typos in comments throughout the file.
25869 (ipa_devirt): Fix typos in format strings for dump output.
25871 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
25873 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
25874 discussion of defaults, light copy-editing.
25876 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25878 * tsan.c (instrument_expr): corrected previous checkin.
25880 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25882 Instrument bit field and unaligned accesses for TSAN.
25883 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
25884 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
25885 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
25886 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
25887 unaligned memory regions.
25889 2015-01-01 Anthony Green <green@moxielogic.com>
25891 * config/moxie/predicates.md (moxie_general_movsrc_operand):
25892 Restrict move source register offsets to 16 bits.
25894 Copyright (C) 2015 Free Software Foundation, Inc.
25896 Copying and distribution of this file, with or without modification,
25897 are permitted in any medium without royalty provided the copyright
25898 notice and this notice are preserved.