df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
[gcc.git] / gcc / ChangeLog
1 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
2
3 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
4 Change type of new_regno to unsigned int.
5 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
6 new_regno to unsigned int.
7 (df_ref_change_reg_with_loc): Remove old_regno parameter.
8 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
9 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
10 (SET_REGNO_RAW): Add space after ",".
11
12 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13
14 * rtl.h (REG_NREGS): New macro
15 * alias.c (record_set): Use it.
16 * cfgcleanup.c (mark_effect): Likewise.
17 * combine.c (likely_spilled_retval_1): Likewise.
18 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
19 (move_deaths, distribute_notes): Likewise.
20 * cselib.c (cselib_record_set): Likewise.
21 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
22 * df-scan.c (df_mark_reg): Likewise.
23 * dse.c (look_for_hardregs): Likewise.
24 * dwarf2out.c (reg_loc_descriptor): Likewise.
25 (multiple_reg_loc_descriptor): Likewise.
26 * expr.c (write_complex_part, read_complex_part): Likewise.
27 (emit_move_complex): Likewise.
28 * haifa-sched.c (setup_ref_regs): Likewise.
29 * ira-lives.c (mark_hard_reg_live): Likewise.
30 * lra.c (lra_set_insn_recog_data): Likewise.
31 * mode-switching.c (create_pre_exit): Likewise.
32 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
33 (reload_combine_recognize_pattern): Likewise.
34 (reload_combine_note_use, move2add_record_mode): Likewise.
35 (reload_cse_move2add): Likewise.
36 * reg-stack.c (subst_stack_regs_pat): Likewise.
37 * regcprop.c (kill_value, copy_value): Likewise.
38 (copyprop_hardreg_forward_1): Likewise.
39 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
40 (build_def_use): Likewise.
41 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
42 (deps_analyze_insn): Likewise.
43 * sched-rgn.c (check_live_1, update_live_1): Likewise.
44 * sel-sched.c (count_occurrences_equiv): Likewise.
45 * valtrack.c (dead_debug_insert_temp): Likewise.
46
47 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
48
49 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
50 * dse.c (note_add_store): Likewise.
51 * ira-lives.c (mark_hard_reg_dead): Likewise.
52 * loop-invariant.c (mark_reg_store): Likewise.
53 (mark_reg_death): Likewise.
54 * postreload.c (reload_combine): Likewise.
55 (reload_combine_note_store): Likewise.
56 (reload_combine_note_use): Likewise.
57 * recog.c (peep2_reg_dead_p): Likewise.
58
59 2015-05-19 Alan Modra <amodra@gmail.com>
60
61 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
62 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
63 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
64 unused predicates.
65 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
66 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
67 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
68 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
69
70 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
71
72 * config/mips/mips.md (JOIN_MODE): New mode iterator.
73 (join2_load_Store<JOIN_MODE:mode>): New pattern.
74 (join2_loadhi): Likewise.
75 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
76 load-load and store-stores.
77 * config/mips/mips.opt (mload-store-pairs): New option.
78 (TARGET_LOAD_STORE_PAIRS): New macro.
79 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
80 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
81 * config/mips/mips.c (mips_load_store_bonding_p): New function.
82
83 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
84
85 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
86 explicit swaps.
87 * dojump.c (do_compare_rtx_and_jump): Likewise.
88 * expmed.c (emit_store_flag_1): Likewise.
89 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
90 * final.c (sprint_ul): Use std::reverse for reversing a string.
91 * fold-const.c (extract_muldiv_1): Use std::swap.
92 * genmodes.c (emit_mode_int_n): Likewise.
93 * ifcvt.c (dead_or_predicable): Likewise.
94 * ira-build.c (ira_merge_live_ranges): Likewise.
95 (swap_allocno_copy_ends_if_necessary): Likewise.
96 * ira.c (ira_setup_alts): Likewise.
97 * loop-iv.c (iv_analyze_expr): Likewise.
98 (implies_p): Likewise.
99 (canon_condition): Likewise.
100 * lra-constraints.c (swap_operands): Likewise.
101 * lra-lives.c (lra_merge_live_ranges): Likewise.
102 * omega.c (swap): Remove.
103 (bswap): Remove.
104 (omega_unprotect_1): Use std::swap.
105 (omega_solve_geq): Likewise.
106 * optabs.c (expand_binop_directly): Likewise.
107 (expand_binop): Likewise.
108 (emit_conditional_move): Likewise.
109 (emit_conditional_add): Likewise.
110 * postreload.c (reload_cse_simplify_operands): Likewise.
111 * reg-stack.c (emit_swap_insn): Likewise.
112 (swap_to_top): Likewise.
113 (compare_for_stack_reg): Likewise.
114 (subst_asm_stack_regs): Likewise.
115 * reload.c (find_reloads): Likewise.
116 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
117 * sel-sched.c (invoke_reorder_hooks): Likewise.
118 (create_block_for_bookkeeping): Likewise.
119 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
120 (lambda_matrix_right_hermite): Use std::swap.
121 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
122 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
123 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
124 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
125 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
126 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
127 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
128 * tree-vrp.c (compare_ranges): Likewise.
129 * var-tracking.c (add_with_sets): Likewise.
130 (vt_find_locations): Likewise.
131
132 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
133
134 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
135 pie executables.
136 (FBSD_ENDFILE_SPEC): Likewise.
137 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
138 config/freebsd-spec.h.
139 (ENDFILE_SPEC): Likewise.
140
141 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
142 Richard Henderson <rth@redhat.com>
143
144 PR target/57032
145 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
146 Check for a memory location that is not a reference (using an AND)
147 to an unaligned location here.
148 * config/alpha/predicates.md (normal_memory_operand): Remove.
149
150 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
151
152 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
153 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
154
155 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
156
157 * config/mips/mips.c (micromips_globals): New variable.
158 (mips_set_compression_mode): Save and reinitialize target-dependent
159 state for microMIPS.
160
161 2015-05-18 Martin Liska <mliska@suse.cz>
162
163 * dbgcnt.def: Add new counter.
164 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the
165 counter.
166
167 2015-05-18 Martin Liska <mliska@suse.cz>
168
169 * dbgcnt.def: Sort counters.
170 * opts.c (common_handle_option): Do not compile if
171 -fdbg-cnt-list is enabled.
172
173 2015-05-18 Tom de Vries <tom@codesourcery.com>
174
175 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
176 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
177 address operator to va_list operand.
178 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
179 unconditionally.
180 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
181 operand.
182 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
183 * config/s390/s390.c (s390_gimplify_va_arg): Same.
184 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
185
186 2015-05-18 Tom de Vries <tom@codesourcery.com>
187
188 * tree-ssa-tail-merge.c: Fix whitespace.
189
190 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
191
192 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
193 cortex-a17, and cortex-a17.cortex-a7.
194
195 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
196
197 PR target/54236
198 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
199
200 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
201
202 PR target/66174
203 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
204 QImode inner modes for TARGET_AVX512BW. Force mask operand
205 to a register for AVX512F modes.
206
207 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
208
209 * toplev.c (emit_debug_global_declarations): Do not output debug info
210 when doing slim LTO objects.
211
212 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
213
214 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
215 odr_types_equivalent_p): Declare.
216 (odr_type_p): Use gcc_checking_assert.
217 (type_in_anonymous_namespace_p) Declare.
218 (type_with_linkage_p): Declare.
219 * common.opt (Wlto-type-mismatch): New warning.
220 * ipa-devirt.c (compound_type_base): New function.
221 (odr_or_derived_type_p): New function.
222 (odr_types_equivalent_p): New function.
223 (add_type_duplicate): Simplify.
224 (type_with_linkage_p): Add hack to prevent false positives on C types
225 (type_in_anonymous_namespace_p): Likewise.
226 * tree.c (need_assembler_name_p): Use type_with_linkage.
227 * tree.h (type_in_anonymous_namespace_p): Remove.
228 * doc/invoke.texi (-Wlto-type-mismatch): Document
229
230 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
231
232 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
233 (verify_type): Verify STRING_FLAG.
234
235 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
236
237 PR fortran/44054
238 * tree-pretty-print.c (percent_K_format): Replace locus pointer
239 with accessor function.
240 * tree-diagnostic.c (diagnostic_report_current_function): Use
241 diagnostic_location function.
242 (maybe_unwind_expanded_macro_loc): Likewise.
243 (virt_loc_aware_diagnostic_finalizer): Likewise.
244 (default_tree_printer): Replace locus pointer with accessor function.
245 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
246 (diagnostic_set_info_translated): Initialize second location.
247 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
248 (diagnostic_show_locus): Handle two locations. Call
249 diagnostic_print_caret_line.
250 (diagnostic_print_caret_line): New.
251 (default_diagnostic_starter): Use diagnostic_location function.
252 (diagnostic_report_diagnostic): Use diagnostic_location function.
253 (verbatim): Do not set text.locus.
254 * diagnostic.h (struct diagnostic_info): Remove location field.
255 (struct diagnostic_context): Make caret_chars an array of two.
256 (diagnostic_location): New inline.
257 (diagnostic_expand_location): Handle two locations.
258 (diagnostic_same_line): New inline.
259 (diagnostic_print_caret_line): Declare.
260 (CARET_LINE_MARGIN): New constant.
261 * pretty-print.c (pp_printf): Do not set text.locus.
262 (pp_verbatim): Do not set text.locus.
263 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
264 (struct text_info): Replace locus pointer with locations
265 array. Add accessor functions.
266
267 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
268 Zhenqiang Chen <zhenqiang.chen@linaro.org>
269
270 PR target/65768
271 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
272 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
273 large constants in register instead of splitting them.
274
275 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
276
277 PR target/66140
278 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
279 replacements in memory addresses.
280 (get_unaligned_address): Ditto.
281
282 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
283
284 PR tree-optimization/64454
285 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
286 (-1 - A -> ~A): Remove unnecessary condition.
287
288 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
289
290 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
291 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
292 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
293
294 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
295
296 * ipa-chkp.h (chkp_wrap_function): New.
297 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
298 (chkp_wrap_function_name): New.
299 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
300 to get wrapper name.
301 * lto-cgraph.c: Include ipa-chkp.h.
302 (input_cgraph_1): Avoid alias chain for wrappers.
303
304 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
305
306 PR middle-end/66134
307 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
308 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
309
310 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
311
312 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
313 (AARCH64_FL_SLOWMUL): Delete.
314 (AARCH64_FL_CRC): Redefine to 1<<3.
315 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
316
317 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
318
319 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
320 casting.
321
322 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
323
324 * config/alpha/alpha.md (extendqidi2): Use general_operand
325 instead of some_operand for operand[1] predicate.
326 (extendhidi2): Ditto.
327 (cbranchdi4): Use general_operand instead of some_operand
328 for operand[1] and operands[2] predicates.
329 (cstoredi4): Ditto.
330 * config/alpha/predicates.md (some_operand): Remove unused predicate.
331 (some_ni_operand): Ditto.
332
333 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
334
335 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
336 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
337 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
338 low part of the constant using alpha_emit_set_const_1.
339 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
340
341 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
342
343 * varasm.c (output_constant_pool_1): Pass down alignment from
344 constant pool entry's descriptor to output_constant_pool_2.
345 (output_object_block): Add comment prior to call to
346 output_constant_pool_1.
347
348 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
349
350 PR rtl-optimization/65862
351 * target.def (ira_change_pseudo_allocno_class): New hook.
352 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
353 value of the hook.
354 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
355 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
356 hook.
357 * ira-costs.c (find_costs_and_classes): Call the hook and change
358 classes when it is necessary.
359 * doc/tm.texi: Update.
360
361 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
362
363 * config/i386/i386.md (sibcall_memory): Check that register with
364 callee address is not also used as one of the arguments, instead
365 of checking that it is not live after the sibcall.
366 (sibcall_pop_memory): Ditto.
367 (sibcall_value_memory): Ditto.
368 (sibcall_value_pop_memory): Ditto.
369
370 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
371
372 * generic-match-head.c (types_match): Handle non-types.
373 * gimple-match-head.c (types_match): Likewise.
374 * match.pd: Remove unnecessary TREE_TYPE for types_match.
375
376 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
377
378 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
379 (csneg3<mode>_insn): Enable expansion of pattern.
380
381 2015-05-14 Nick Clifton <nickc@redhat.com>
382
383 * config/rl78/rl78.c (rl78_select_section): Select the correct
384 default section based upon the category of the decl.
385
386 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
387
388 PR rtl-optimization/30967
389 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
390 destination mode for the cost of scc patterns.
391
392 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
393
394 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
395 using SWIM248 mode iterator.
396 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
397 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
398 for operand[2] constraint.
399 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
400
401 2015-05-13 Jakub Jelinek <jakub@redhat.com>
402
403 PR middle-end/66133
404 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
405 make sure it is never noreturn, even when the task body does not
406 return.
407 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
408 right before GIMPLE_OMP_RETURN.
409 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
410 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
411 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
412
413 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
414
415 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
416 * tree-ssa-math-opts.c: Include params.h
417 (pow_synth_sqrt_info): New struct.
418 (representable_as_half_series_p): New function.
419 (get_fn_chain): Likewise.
420 (print_nested_fn): Likewise.
421 (dump_fractional_sqrt_sequence): Likewise.
422 (dump_integer_part): Likewise.
423 (expand_pow_as_sqrts): Likewise.
424 (gimple_expand_builtin_pow): Use above to attempt to expand
425 pow as series of square roots. Removed now unused variables.
426
427 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
428
429 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
430 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
431 Remove *p0 and *p1 arguments. Rewrite function.
432 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
433 (alpha_split_const_mov): Update calls to alpha_extract_integer and
434 alpha_emit_set_long_const.
435 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
436 (alpha_output_mi_thunk_osf): Ditto.
437 * config/alpha/alpha.md (movti): Do not check operands[1]
438 for CONST_DOUBLE.
439
440 2015-05-13 Richard Biener <rguenther@suse.de>
441
442 PR tree-optimization/66129
443 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
444 commutative.
445 (vect_schedule_slp_instance): Fix typo.
446
447 2015-05-13 David Malcolm <dmalcolm@redhat.com>
448
449 * common.opt (fdump-internal-locations): New option.
450 * input.c: Include diagnostic-core.h.
451 (get_end_location): New function.
452 (write_digit): New function.
453 (write_digit_row): New function.
454 (dump_location_range): New function.
455 (dump_labelled_location_range): New function.
456 (dump_location_info): New function.
457 * input.h (dump_location_info): New prototype.
458 * toplev.c (compile_file): Handle flag_dump_locations.
459
460 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
461
462 * gimple-expr.h (is_gimple_constant): Reorder.
463 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
464
465 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
466
467 * combine.c (simplify_set): When generating a CC set, if the
468 source already is in the correct mode, do not wrap it in a
469 compare. Simplify the rest of that code.
470
471 2015-05-13 Richard Biener <rguenther@suse.de>
472
473 PR tree-optimization/66123
474 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
475 a taken edge.
476
477 2015-05-13 Richard Biener <rguenther@suse.de>
478
479 PR middle-end/66110
480 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
481 specially.
482 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
483
484 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
485
486 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
487 * aclocal.m4: Regenerated with automake-1.11.6.
488
489 2015-05-13 Tom de Vries <tom@codesourcery.com>
490
491 PR tree-optimization/66010
492 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
493 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
494 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
495 and rval based on do_deref.
496
497 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
498
499 PR target/65103
500 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
501 link time constants into adress expressions and therefore set
502 their cost to 0.
503
504 2015-05-13 Jakub Jelinek <jakub@redhat.com>
505
506 PR target/66112
507 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
508 Use SWI248 iterator instead of SWI.
509 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
510 Use eq_attr "alternative" "0" instead of match_test in
511 length_immediate attribute computation.
512 (*mulvhi4, *mulvhi4_1): New define_insns.
513
514 PR target/66112
515 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
516 SIGNED to get precision of non-negative value.
517
518 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
519
520 PR target/66048
521 * function.c (diddle_return_value_1): Process bounds first.
522 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
523 register.
524
525 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
526
527 PR rtl-optimization/64616
528 * loop-invariant.c (can_move_invariant_reg): New.
529 (move_invariant_reg): Call above new function to decide whether
530 instruction can just be moved, skipping creation of temporary
531 register.
532
533 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
534
535 PR target/pr66047.c
536 * i386.c (ix86_function_sseregparm): Only return -1 if local function
537 with implied regparm is called from -mno-sse function.
538 (init_cumulative_args): Output error if ix86_function_sseregparm
539 return -1 and SSE register would be needed.
540 (function_arg_advance_32): Likewise.
541 (function_arg_32): Likewise.
542 * i386.h (ix86_args): Add decl field.
543
544 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
545
546 PR ipa/65873
547 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
548 inlines across optimization boundary.
549
550 2015-05-12 Jason Merrill <jason@redhat.com>
551
552 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
553 string literal and macro name.
554
555 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
556
557 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
558 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
559 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
560
561 2015-05-12 David Malcolm <dmalcolm@redhat.com>
562
563 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
564 (-Wmisleading-indentation): New option.
565 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
566
567 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
568
569 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
570 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
571 (alpha_extract_integer): Ditto.
572 (alpha_legitimate_constant_p): Ditto.
573 (alpha_split_tmode_pair): Ditto.
574 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
575 (alpha_expand_mov): Ditto.
576 (print_operand): Remove handling of 'H' modifier.
577 <case 'm'>: Remove CONST_DOUBLE handling.
578 (summarize_insn): Handle CONST_WIDE_INT.
579 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
580 (anddi3): Ditto.
581 (movti): Handle CONST_WIDE_INT.
582 * config/alpha/constraints.md ('H'): Remove constraint definition.
583 ('G'): Do not match MODE_FLOAT class.
584 * config/alpha/predicates.md (const0_operand): Also match
585 const_wide_int.
586 (non_add_const_operand): Ditto.
587 (non_zero_const_operand): Ditto.
588 (some_operand): Ditto.
589 (input_operand): Ditto. Handle CONST_WIDE_INT.
590 (and_operand): Do not match const_double.
591 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
592
593 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
594
595 PR target/65697
596 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
597 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
598 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
599 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
600 is_mm_seq_cst, is_mm_sync): New accessor functions.
601 * builtins.c (expand_builtin_sync_operation,
602 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
603 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
604 (get_memmodel, expand_builtin_atomic_compare_exchange,
605 expand_builtin_atomic_load, expand_builtin_atomic_store,
606 expand_builtin_atomic_clear): Use new accessor routines.
607 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
608 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
609 (maybe_emit_sync_lock_test_and_set): Use new accessors and
610 MEMMODEL_SYNC_ACQUIRE.
611 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
612 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
613 expand_atomic_store): Use new accessors.
614 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
615 * tsan.c (instrument_builtin_call): Update check for memory model beyond
616 final enum to use MEMMODEL_LAST.
617 * c-family/c-common.c: Use new accessor for memmodel_base.
618 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
619 accessors.
620 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
621 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
622 mem_thread_fence, *dmb): Likewise.
623 * config/alpha/alpha.c (alpha_split_compare_and_swap,
624 alpha_split_compare_and_swap_12): Likewise.
625 * config/arm/arm.c (arm_expand_compare_and_swap,
626 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
627 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
628 atomic_loaddi): Likewise.
629 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
630 Likewise.
631 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
632 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
633 use new accessors.
634 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
635 atomic_store<mode>, atomic_compare_and_swap<mode>,
636 atomic_exchange<mode>): Use new accessors.
637 * config/mips/mips.c (mips_process_sync_loop): Likewise.
638 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
639 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
640 rs6000_post_atomic_barrier): Add new cases.
641 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
642 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
643 (atomic_load<mode>): Add new cases and use new accessors.
644 (store_quadpti): Add new cases.
645 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
646 accessors.
647 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
648 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
649 model, not 8.
650
651 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
652
653 * ipa-devirt.c (type_with_linkage_p): New function.
654 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
655 type has linkage.
656 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
657 (can_be_name_hashed_p): Simplify.
658 (hash_odr_name): Check that type has linkage before checking if it is
659 anonymous.
660 (types_same_for_odr): Likewise.
661 (odr_name_hasher::equal): Likewise.
662 (odr_subtypes_equivalent_p): Likewise.
663 (warn_types_mismatch): Likewise.
664 (get_odr_type): Likewise.
665 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
666 * ipa-utils.h (odr_type_p): Move offline.
667 * tree.c (need_assembler_name_p): Fix handling of types
668 without linkages.
669 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
670
671 2015-05-12 David Malcolm <dmalcolm@redhat.com>
672
673 * timevar.c (timevar_enable): Delete in favor of...
674 (g_timer): New global.
675 (struct timevar_def): Move to timevar.h inside class timer.
676 (struct timevar_stack_def): Likewise.
677 (timevars): Delete global in favor of field "m_timevars" within
678 class timer in timevar.h
679 (stack): Likewise, in favor of field "m_stack".
680 (unused_stack_instances): Likewise, in favor of field
681 "m_unused_stack_instances".
682 (start_time): Likewise, in favor of field "m_start_time".
683 (get_time): Eliminate check for timevar_enable.
684 (timer::timer): New function, built from part of timevar_init.
685 (timevar_init): Rewrite idempotency test from using
686 "timevar_enable" bool to using dynamic allocation of "g_timer".
687 Move rest of implementation into timer's constructor.
688 (timevar_push_1): Rename to...
689 (timer::push): ...this, adding "m_" prefixes to variables that
690 are now fields of timer.
691 (timevar_pop_1): Likewise, rename to...
692 (timer::pop): ...this, and add "m_" prefixes.
693 (timevar_start): Replace test for "timevar_enable" with one for
694 "g_timer", and move bulk of implementation to...
695 (timer::start): ...here, adding "m_" prefixes.
696 (timevar_stop): Likewise, from here...
697 (timer::stop): ...to here.
698 (timevar_cond_start): Likewise, from here...
699 (timer::cond_start): ...to here.
700 (timevar_cond_stop): Likewise, from here...
701 (timer::cond_stop): ...to here.
702 (validate_phases): Rename to...
703 (timer::validate_phases): ...this, and add "m_" prefixes. Make
704 locals "total" and "tv" const.
705 (timevar_print): Rename to...
706 (timer::print): ...this, and add "m_" prefixes. Make locals
707 "total" and "tv" const. Eliminate test for timevar_enable.
708 * timevar.h (timevar_enable): Eliminate.
709 (g_timer): New declaration.
710 (timevar_push_1): Eliminate.
711 (timevar_pop_1): Eliminate.
712 (timevar_print): Eliminate.
713 (class timer): New class.
714 (timevar_push): Rewrite to use g_timer.
715 (timevar_pop): Likewise.
716 * toplev.c (toplev::~toplev): Likewise.
717
718 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
719
720 * arm-protos.h (arm_sched_autopref): Delete.
721 (tune_params): Re-organize, use enums for flag values.
722 (FUSE_OPS): New macro.
723 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
724 (ARM_PREFETCH_BENEFICIAL): Likewise.
725 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
726 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
727 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
728 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
729 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
730 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
731 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
732 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
733 format.
734 (arm_option_override, thumb2_reorg, arm_print_tune_info)
735 (aarch_macro_fusion_pair_p): Update uses of current_tune.
736 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
737
738 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
739
740 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
741 "break".
742
743 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
744 Sandra Loosemore <sandra@codesourcery.com>
745
746 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
747 value.
748 (REG_CLASS_NAMES): Add "IJMP_REGS".
749 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
750 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
751 use new "c" register constraint.
752 * config/nios2/constraint.md (c): New register constraint
753 corresponding to IJMP_REGS.
754
755 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
756
757 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
758 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
759 define_splits): Delete, revamp, transmogrify into ...
760 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
761 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
762 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
763 New.
764
765 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
766
767 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
768 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
769
770 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
771
772 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
773 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
774 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
775 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
776 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
777 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
778 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
779 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
780 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
781 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
782 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
783 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
784 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
785 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
786 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
787 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
788 and 30 corresponding splitters): Delete.
789
790 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
791
792 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
793 zero_extract.
794
795 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
796
797 * combine.c (recog_for_combine_1): New function, factored out
798 from recog_for_combine.
799 (change_zero_ext): New function.
800 (recog_for_combine): If recog fails, try again with the pattern
801 modified by change_zero_ext; if that still fails, restore the
802 pattern.
803
804 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
805
806 * combine.c (get_undo_marker): New function.
807 (undo_to_marker): New function, largely factored out from ...
808 (undo_all): ... this. Adjust.
809
810 2015-05-12 Richard Biener <rguenther@suse.de>
811
812 PR tree-optimization/66101
813 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
814 fixup if we turn a loop exit edge to a fallthru edge.
815
816 2015-05-12 Richard Biener <rguenther@suse.de>
817
818 PR tree-optimization/37021
819 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
820 (SLP_TREE_TWO_OPERATORS): New define.
821 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
822 SLP_TREE_TWO_OPERATORS.
823 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
824 SLP node.
825 (vect_build_slp_tree): Adjust.
826 (vect_analyze_slp_cost_1): Likewise.
827 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
828 emitting two vector stmts and mixing the results.
829
830 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
831
832 * call.c (print_z_candidates): Remove dead code.
833
834 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
835
836 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
837 and zEC12_simple_fp.
838 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
839 to 1.
840
841 2015-05-12 Tom de Vries <tom@codesourcery.com>
842
843 PR tree-optimization/66010
844 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
845 ifn_va_arg.
846 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
847 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
848 va_lists are passed, and remove corresponding handling.
849 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
850 do_deref argument to ifn_va_arg.
851 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
852 ifn_va_arg.
853
854 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
855
856 PR target/65955
857 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
858 REG before taking its REGNO.
859
860 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
861
862 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
863 rsp->sign_bit_copies and rsp->nonzero_bits into ...
864 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
865 present to get more accurate information about the number of sign bit
866 copies and non zero bits.
867
868 2015-05-12 Richard Biener <rguenther@suse.de>
869
870 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
871 do not allow unrolling.
872
873 2015-05-11 Richard Henderson <rth@redhat.com>
874
875 * config/i386/i386-modes.def (CCP): New.
876 * config/i386/i386.c (put_condition_code): Handle it.
877 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
878
879 2015-05-11 Richard Henderson <rth@redhat.com>
880
881 * target.def (md_asm_clobbers): Replace with...
882 (md_asm_adjust): this.
883 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
884 (TARGET_MD_ASM_ADJUST): New.
885 * tm.texi: Rebuild.
886 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
887 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
888 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
889
890 * cfgexpand.c (check_operand_nalternatives): Accept vector of
891 constraints instead of lists of outputs and inputs.
892 (expand_asm_stmt): Save and restore input_location around the
893 body of the function. Move asm data into vectors instead of
894 building tree lists. Generate cleanup sequences as needed,
895 rather than waiting til the end. Use new md_asm_adjust hook.
896
897 * config/vxworks.c: Include vec.h before target.h.
898 * gimple.c: Likewise.
899 * incpath.c: Likewise.
900 * mode-switching.c: Likewise.
901
902 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
903 (cris_md_asm_adjust): this.
904 (TARGET_MD_ASM_CLOBBERS): Remove.
905 (TARGET_MD_ASM_ADJUST): New.
906 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
907 (ix86_md_asm_adjust): this.
908 (TARGET_MD_ASM_CLOBBERS): Remove.
909 (TARGET_MD_ASM_ADJUST): New.
910 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
911 (mn10300_md_asm_adjust): this.
912 (TARGET_MD_ASM_CLOBBERS): Remove.
913 (TARGET_MD_ASM_ADJUST): New.
914 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
915 (rs6000_md_asm_adjust): this.
916 (TARGET_MD_ASM_CLOBBERS): Remove.
917 (TARGET_MD_ASM_ADJUST): New.
918 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
919 (visium_md_asm_adjust): this.
920 (TARGET_MD_ASM_CLOBBERS): Remove.
921 (TARGET_MD_ASM_ADJUST): New.
922
923 2015-05-11 Richard Henderson <rth@redhat.com>
924
925 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
926 if noutputs is zero.
927 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
928
929 * cfgexpand.c (expand_asm_operands): Merge into...
930 (expand_asm_stmt): ... here.
931
932 * cfgexpand.c (expand_asm_operands): Don't call
933 resolve_asm_operand_names.
934 * stmt.c (resolve_asm_operand_names): Clarify block comment.
935
936 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
937
938 * dwarf2out.c (gen_member_die): Sanity check that we access
939 TYPE_MAIN_VARIANT for TYPE_METHODS.
940 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
941 checking TYPE_METHODS.
942 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
943 if non-null.
944 (build_distinct_type_copy): Clear TYPE_METHODS.
945 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
946 (verify_type): Allow TYPE_METHODS to be error_mark_node.
947 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
948
949 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
950
951 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
952 (emit_pattern_before_setloc): Likewise.
953
954 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
955
956 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
957 for define_peephole2s.
958 (get_peephole2_pattern): New function.
959 (main): Use it. Call validate_pattern.
960
961 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
962
963 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
964 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
965 (Last callee saved reg is different for AVR_TINY architecture)
966
967 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
968
969 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
970 when looking for memory references.
971
972 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
973
974 PR target/65753
975 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
976 via function pointers.
977
978 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
979
980 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
981 indirect call by forcing address into a pseudo with -fno-plt.
982 * common.opt (flag_plt): New option.
983 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
984 ([-fno-plt]): Document.
985
986 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
987
988 PR bootstrap/66105
989 * config/rs6000/option-defaults.h: Add space between string literal
990 and macro name.
991
992 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
993
994 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
995 accross ARM targets.
996
997 2015-05-11 Christian Bruel <christian.bruel@st.com>
998
999 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
1000 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
1001
1002 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
1003
1004 PR rtl-optimization/66076
1005 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
1006 Don't grow the heap array if it is already big enough from a
1007 previous iteration.
1008
1009 2015-05-11 Christian Bruel <christian.bruel@st.com>
1010
1011 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
1012 (is_called_in_ARM_mode): Remove.
1013 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
1014 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
1015 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
1016 arm_declare_function_name.
1017
1018 2015-05-11 Christian Bruel <christian.bruel@st.com>
1019
1020 * config/arm/arm.c (arm_option_override): Reoganized and split into :
1021 (arm_option_params_internal); New function.
1022 (arm_option_check_internal): New function.
1023 (arm_option_override_internal): New function.
1024 (thumb_code, thumb1_code): Remove.
1025 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
1026 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
1027 (thumb_code, thumb1_code): Remove.
1028 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
1029
1030 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
1031
1032 * config/alpha/alpha.c (alpha_emit_set_const_1)
1033 (alpha_emit_set_long_const, alpha_extract_integer)
1034 (alpha_legitimate_constant_p, alpha_split_const_mov)
1035 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
1036 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
1037 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
1038 HOST_WIDE_INT_1U.
1039 * config/alpha/predicates.md (mode_mask_operand): Do not match
1040 const_double RTX.
1041 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
1042 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
1043 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
1044 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
1045 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
1046
1047 2015-05-11 Jakub Jelinek <jakub@redhat.com>
1048
1049 PR target/65780
1050 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
1051 default_binds_local_p_2.
1052 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
1053 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
1054
1055 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
1056
1057 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
1058
1059 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
1060
1061 Patch by Richard Biener
1062 * coverage.c (coverage_obj_init): Delay building of type variant
1063 until the type is finished.
1064
1065 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
1066
1067 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
1068 mismatch between C and C++ type; compoare correctly ARG_TYPES
1069 for non-prototypes and output correctly parameter index for METHOD_TYPE.
1070 (odr_types_equivalent_p): Fix wording of warning about attributes;
1071 it is OK to match prototype and non-prototype.
1072
1073 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
1074
1075 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
1076 TYPE_ARG_TYPES list.
1077 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
1078 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
1079
1080 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
1081
1082 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
1083 * tree.h (is_lang_specific): Constify.
1084
1085 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
1086
1087 PR tree-optimization/64454
1088 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
1089 Rewrite.
1090
1091 2015-05-08 Jason Merrill <jason@redhat.com>
1092
1093 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
1094 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
1095 config/darwin.h, config/darwin9.h, config/elfos.h,
1096 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
1097 config/microblaze/microblaze.h, config/mips/mips.h,
1098 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
1099 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
1100 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1101 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
1102 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
1103 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
1104 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
1105 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
1106 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
1107 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
1108 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
1109 between string literal and macro name.
1110
1111 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1112
1113 * jump.c: Change argument types to rtx_insn *.
1114 * rtl.h: Adjust.
1115
1116 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1117
1118 * lra-constraints.c: Change argument type to rtx_insn *.
1119
1120 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1121
1122 * df-problems.c: Change argument type to rtx_insn *.
1123
1124 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1125
1126 * combine.c: Change argument type to rtx_insn *.
1127
1128 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1129
1130 * rtl.h: Adjust.
1131 * rtlanal.c: Change argument type to rtx_insn *.
1132
1133 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1134
1135 * sched-deps.c: Change argument types to rtx_insn *.
1136 * sched-int.h: Adjust.
1137
1138 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1139
1140 * dwarf2cfi.c: Change argument type to rtx_insn *.
1141
1142 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1143
1144 * ira.c (decrease_live_ranges_number): Changetype of local
1145 variable to rtx_insn *.
1146 * recog.c: Change argument types to rtx_insn *.
1147 * recog.h: Adjust.
1148
1149 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1150
1151 * reorg.c: Change argument types to rtx_insn *.
1152
1153 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1154
1155 * ira-color.c: Change argument types to rtx_insn *.
1156 * lra-eliminations.c: Likewise.
1157 * ira.h: Adjust.
1158
1159 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1160
1161 * gcse.c: Change argument types to rtx_insn *.
1162
1163 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1164
1165 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
1166
1167 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1168
1169 * emit-rtl.c (emit_debug_insn_before): Change argument type to
1170 rtx_insn *.
1171 * rtl.h: Adjust.
1172
1173 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1174
1175 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
1176 * rtl.h: Adjust.
1177
1178 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1179
1180 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
1181 * rtl.h: Adjust.
1182
1183 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1184
1185 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
1186 * rtl.h: Adjust.
1187
1188 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1189
1190 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
1191 * rtl.h: Adjust.
1192
1193 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1194
1195 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
1196 to rtx_insn *.
1197 * rtl.h: Adjust.
1198
1199 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1200
1201 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
1202 to rtx_insn *.
1203 * rtl.h: Likewise.
1204
1205 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1206
1207 * except.c (can_nonlocal_goto): Change type of argument to
1208 rtx_insn *.
1209 * rtl.h: Adjust.
1210
1211 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1212
1213 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
1214 * rtl.h: Adjust.
1215
1216 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1217
1218 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
1219 * cfgrtl.c (can_delete_label_p): Adjust.
1220 * rtl.h: likewise.
1221
1222 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1223
1224 * reorg.c (stop_search_p): Change argument to rtx_insn *.
1225
1226 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1227
1228 * except.c (make_reg_eh_region_note): Change argument to
1229 rtx_insn *.
1230 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
1231 * except.h: Adjust.
1232
1233 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1234
1235 * mode-switching.c (commit_mode_sets): Change type of local
1236 variable from rtx to rtx_insn *.
1237
1238 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
1239
1240 * doc/install.texi (--enable-languages): Add missing jit and lto info.
1241 Add ^ to grep command.
1242 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
1243 arg to last gimple_simplify declaration. Add missing gimple_build
1244 declaration for built-in function case with four tree args.
1245
1246 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
1247 Szabolcs Nagy <szabolcs.nagy@arm.com>
1248
1249 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1250 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
1251 (GNU_USER_DYNAMIC_LINKERN32): Update.
1252
1253 2015-05-08 Richard Biener <rguenther@suse.de>
1254
1255 PR tree-optimization/66036
1256 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
1257 Handle strided group loads.
1258 (vect_verify_datarefs_alignment): Likewise.
1259 (vect_enhance_data_refs_alignment): Likewise.
1260 (vect_analyze_group_access): Likewise.
1261 (vect_analyze_data_ref_access): Likewise.
1262 (vect_analyze_data_ref_accesses): Likewise.
1263 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
1264 (vectorizable_load): Likewise.
1265
1266 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
1267
1268 * config/rs6000/rs6000.md: Require operand inequality in one
1269 of the peepholes.
1270
1271 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
1272 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1273
1274 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
1275 from (set ...).
1276 * config/rx/rx.md (movdi, movdf): Likewise.
1277 Likewise for define_peephole2s.
1278
1279 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
1280
1281 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
1282 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
1283 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
1284 vtst_u64): Rewrite using gcc vector extensions.
1285
1286 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
1287
1288 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
1289 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
1290
1291 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
1292
1293 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
1294
1295 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1296
1297 * config/glibc-stdint.h (OPTION_MUSL): Define.
1298 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
1299 Change the definition based on OPTION_MUSL for 64 bit targets.
1300 * config/linux.h (OPTION_MUSL): Redefine.
1301 * config/alpha/linux.h (OPTION_MUSL): Redefine.
1302 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
1303 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
1304
1305 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
1306 Szabolcs Nagy <szabolcs.nagy@arm.com>
1307
1308 * config.gcc (LIBC_MUSL): New tm_defines macro.
1309 * config/linux.h (OPTION_MUSL): Define.
1310 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
1311 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
1312 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
1313 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
1314 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
1315 * config/linux.opt (mmusl): New option.
1316 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
1317 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
1318 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
1319 * configure: Regenerate.
1320
1321 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
1322 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1323
1324 PR target/48904
1325 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
1326 * config/i386/knetbsd-gnu64.h: New file.
1327
1328 2015-05-08 Marek Polacek <polacek@redhat.com>
1329
1330 PR c/64918
1331 * doc/invoke.texi: Document -Woverride-init-side-effects.
1332
1333 2015-05-07 Marek Polacek <polacek@redhat.com>
1334
1335 PR c/65179
1336 * doc/invoke.texi: Document -Wshift-negative-value.
1337
1338 2015-05-06 Aditya Kumar <hiraditya@msn.com>
1339
1340 * gcov-tool.c (do_merge): Refactore to remove int ret.
1341 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
1342 !type == FUNC to type != FUNC.
1343 * reload.h (struct target_reload): Changee to type of
1344 x_spill_indirect_levels from bool to unsigned char.
1345
1346 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
1347
1348 * rtl.h (always_void_p): New function.
1349 * gengenrtl.c (always_void_p): Likewise.
1350 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
1351 with code foo are always VOIDmode.
1352 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
1353 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
1354 compare-elim.c, config/aarch64/aarch64.c,
1355 config/aarch64/aarch64.md, config/alpha/alpha.c,
1356 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
1357 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
1358 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
1359 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
1360 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
1361 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
1362 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
1363 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
1364 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
1365 config/ia64/vect.md, config/iq2000/iq2000.c,
1366 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
1367 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
1368 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
1369 config/mep/mep.c, config/microblaze/microblaze.c,
1370 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
1371 config/mn10300/mn10300.c, config/msp430/msp430.c,
1372 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
1373 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
1374 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
1375 config/rs6000/altivec.md, config/rs6000/rs6000.c,
1376 config/rs6000/rs6000.md, config/rs6000/vector.md,
1377 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
1378 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
1379 config/sh/sh.md, config/sh/sh_treg_combine.cc,
1380 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
1381 config/spu/spu.md, config/stormy16/stormy16.c,
1382 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
1383 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
1384 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
1385 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
1386 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
1387 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
1388 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
1389 var-tracking.c: Update calls accordingly.
1390
1391 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
1392
1393 PR middle-end/192
1394 PR middle-end/54303
1395 * varasm.c (function_mergeable_rodata_prefix): New function.
1396 (mergeable_string_section): Use it.
1397 (mergeable_constant_section): Use it.
1398
1399 2015-05-07 Jeff Law <law@redhat.com>
1400
1401 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
1402 simplifier to narrow arithmetic.
1403 * generic-match-head.c: (types_match, single_use): New functions.
1404 * gimple-match-head.c: (types_match, single_use): New functions.
1405
1406 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1407
1408 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
1409 rtx type.
1410
1411 2015-05-07 Richard Biener <rguenther@suse.de>
1412
1413 PR tree-optimization/66002
1414 * passes.def: Schedule another pass_merge_phi after ifcombine, right
1415 before phiopt.
1416
1417 2015-05-07 Marek Polacek <polacek@redhat.com>
1418 Martin Uecker <uecker@eecs.berkeley.edu>
1419
1420 * doc/invoke.texi: Document -fsanitize=bounds-strict.
1421 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
1422 into SANITIZE_NONDEFAULT.
1423 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
1424
1425 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
1426
1427 PR target/66015
1428 * config/alpha/alpha.c (alpha_override_options_after_change): New.
1429 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
1430 (alpha_override_options): Move align_loops, align_jumps and
1431 align_functions handling into alpha_override_options_after_change.
1432
1433 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
1434 Chris Jones <chrisj@nvidia.com>
1435 Joshua Conner <jconner@nvidia.com>
1436
1437 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
1438 linking of crtfastmath.o.
1439 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
1440
1441 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1442
1443 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
1444 (cstore<mode>4_unsigned_imm): New expander.
1445 (cstore<mode>4): Remove empty constraint strings. Use the new
1446 expanders.
1447
1448 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
1449
1450 PR target/64208
1451 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
1452 alternatives.
1453
1454 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
1455
1456 * config/aarch64/geniterators.sh: Use standard BRE in sed.
1457
1458 2015-05-06 Alan Modra <amodra@gmail.com>
1459
1460 PR target/66033
1461 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
1462 (UNSPEC_NOP): Define.
1463 (reload_vsx_from_gpr<mode>): Add missing DONE.
1464 (reload_gpr_from_vsx<mode>): Likewise.
1465 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
1466 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
1467
1468 2015-05-06 Christian Bruel <christian.bruel@st.com>
1469
1470 PR target/66015
1471 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
1472 align_jumps, align_functions into aarch64_override_options_after_change.
1473
1474 2015-05-06 Richard Biener <rguenther@suse.de>
1475
1476 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
1477 vect_transform_slp_perm_load to check if we support a permutation
1478 for basic-block vectorization.
1479
1480 2015-05-06 Nick Clifton <nickc@redhat.com>
1481
1482 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
1483 used, even if it is not being used as a frame pointer.
1484
1485 2015-05-05 Jason Merrill <jason@redhat.com>
1486
1487 * dwarf2out.c (gen_member_die): Don't emit anything for an
1488 anonymous class constructor.
1489
1490 2015-05-05 David Malcolm <dmalcolm@redhat.com>
1491
1492 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
1493 that it reflects the block structure.
1494 (afdo_propagate_edge): Likewise.
1495 (afdo_calculate_branch_prob): Likewise.
1496 (afdo_annotate_cfg): Likewise.
1497 * cfgcleanup.c (equal_different_set_p): Likewise.
1498 (try_crossjump_to_edge): Likewise.
1499 * cgraph.c (cgraph_node::verify_node): Likewise.
1500 * cgraphunit.c (expand_all_functions): Likewise.
1501 * config/i386/i386.c (ix86_expand_copysign): Likewise.
1502 (exact_dependency_1): Likewise.
1503 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
1504 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
1505 * gensupport.c (process_define_subst): Likewise.
1506 * lto-wrapper.c (merge_and_complain): Likewise.
1507 * tree-if-conv.c (if_convertible_bb_p): Likewise.
1508 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
1509 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
1510 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
1511 * tree-vect-loop.c (vectorizable_reduction): Likewise.
1512 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
1513 * tree-vect-stmts.c (vectorizable_shift): Likewise.
1514 * tree-vrp.c (vrp_finalize): Likewise.
1515 * tree.c (variably_modified_type_p): Likewise.
1516
1517 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
1518
1519 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
1520 on darwin12 and later.
1521 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
1522 file to pass -rdynamic on darwin12 and later.
1523 * config/darwin.opt (rdynamic): Add.
1524
1525 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
1526
1527 * doc/extend.texi (C Extensions): Update menu for moved Variable
1528 Attributes and Type Attributes sections.
1529
1530 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
1531
1532 PR target/65990
1533 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
1534 if rep_8byte stringop strategy was specified for 32-bit target.
1535
1536 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
1537
1538 PR target/65915
1539 * config/i386/i386.md (vector convert to float spltiter): Check for
1540 xmm16+, when splitting scalar float conversion.
1541 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
1542
1543 2015-05-05 Nick Clifton <nickc@redhat.com>
1544
1545 * config/msp430/msp430-opts.h (enum msp430_regions): New.
1546 * config/msp430/msp430.c (msp430_override_options): Complain if
1547 -mcode-region or -mdata-region is used on a non MSP430X.
1548 (msp430_section_attr): New function. Checks lower, upper and
1549 either attributes.
1550 (msp430_attribute_table): Add lower, upper and either.
1551 (gen_prefix): New function. Generates a prefix for a section
1552 name.
1553 (msp430_select_section): New function - handles the choice of
1554 section for an object. Takes into account memory region
1555 attributes and options.
1556 (msp430_function_section): Use gen_prefix.
1557 (TARGET_SECTION_TYPE_FLAGS): Define.
1558 (msp430_section_type_flags): New function.
1559 (TARGET_ASM_UNIQUE_SECTION): Define.
1560 (msp430_unique_section): New function.
1561 (msp430_output_aligned_decl_common): New function.
1562 (msp430_do_not_relax_short_jumps): New function.
1563 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
1564 Define.
1565 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1566 * config/msp430/msp430-protos.h
1567 (msp430_do_not_relax_short_jumps): New prototype.
1568 (msp430_output_aligned_decl_common): New prototype.
1569 * config/msp430/msp430.md (length): New attribute.
1570 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
1571 then use a long code sequence for short jumps.
1572 * config/msp430/msp430.opt (mcode-region): New.
1573 (mdata-region): New.
1574 * doc/invoke.texi: Document new options.
1575 * doc/extend.texi: Document new attributes.
1576
1577 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
1578
1579 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
1580 (tune_params): Add field branch_costs.
1581 (aarch64_branch_cost): Declare.
1582 * gcc/config/aarch64.c (generic_branch_cost): New.
1583 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
1584 (cortexa53_tunings): Likewise.
1585 (cortexa57_tunings): Likewise.
1586 (thunderx_tunings): Likewise.
1587 (xgene1_tunings): Likewise.
1588 (aarch64_branch_cost): Define.
1589 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
1590
1591 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
1592
1593 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
1594 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
1595 * config/i386/i386.md: Ditto.
1596 * config/i386/winnt.c: Ditto.
1597
1598 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
1599
1600 * doc/extend.texi (__atomic Builtins): Move implementation details
1601 to the end of the description, rewrite opening paragraphs, state
1602 difference with __sync builtins, state C11/C++11 assumptions,
1603 weaken itemized descriptions, add explanation of memory model
1604 behaviour, expand description of compare-exchange, simplify text.
1605
1606 2015-05-05 Renlin Li <renlin.li@arm.com>
1607
1608 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
1609
1610 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
1611
1612 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
1613 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
1614 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
1615 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
1616 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
1617 * configure: Regenerate.
1618 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
1619 * doc/install.texi (aarch64*-*-*): Document new
1620 --enable-fix-cortex-a53-843419 option.
1621 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
1622 and -mno-fix-cortex-a53-843419 options.
1623
1624 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
1625
1626 PR target/65871
1627 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
1628
1629 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
1630
1631 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
1632 fix overactive TYPE_MIN_VALUE check and add FIXME for type
1633 compatibility problems.
1634
1635 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
1636
1637 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
1638 constraints.
1639 (cbranchsi4_reg): New.
1640 * config/microblaze/microblaze.c
1641 (microblaze_expand_conditional_branch_reg): New.
1642 * config/microblaze/microblaze-protos.h
1643 (microblaze_expand_conditional_branch_reg): New prototype.
1644
1645 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
1646
1647 * config/microblaze/microblaze.md (peephole2): New.
1648
1649 2015-05-04 Jeff Law <law@redhat.com>
1650
1651 Revert:
1652 2015-05-04 Jeff Law <law@redhat.com>
1653
1654 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
1655 simplifier to narrow arithmetic.
1656 * generic-match-head.c: (types_match, single_use): New functions.
1657 * gimple-match-head.c: (types_match, single_use): New functions.
1658
1659 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
1660
1661 PR target/65987
1662 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
1663 (split_branches): Likewise.
1664
1665 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
1666
1667 * common.opt (fdelete-null-pointer-checks): Init to -1.
1668 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
1669 override flag_delete_null_pointer_checks default.
1670 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
1671 behavior re address zero. Better document target-specific behavior.
1672 (-fisolate-errneous-paths-dereference): Mention relationship to
1673 -fdelete-null-pointer-checks.
1674
1675 2015-05-04 Jakub Jelinek <jakub@redhat.com>
1676
1677 PR tree-optimization/65984
1678 * ubsan.c: Include tree-cfg.h.
1679 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
1680 stmt_could_throw_p test, rename can_throw variable to ends_bb.
1681
1682 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
1683
1684 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
1685 to CONST_DOUBLE_P predicate.
1686 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
1687 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
1688 allow only operands that satisfy standard_sse_constant_p predicate.
1689 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
1690 to CONST_DOUBLE_P predicate.
1691
1692 2015-05-04 Jeff Law <law@redhat.com>
1693
1694 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
1695 simplifier to narrow arithmetic.
1696 * generic-match-head.c: (types_match, single_use): New functions.
1697 * gimple-match-head.c: (types_match, single_use): New functions.
1698
1699 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
1700
1701 * config/arm/arm.c: Restore bootstrap.
1702
1703 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
1704
1705 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
1706 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
1707 as CONST_WIDE_INT, not CONST_DOUBLE.
1708 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
1709 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
1710 (ix86_find_base_term): Do not check for CONST_DOUBLE.
1711 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
1712 (ix86_build_signbit_mask): Rewrite using wide ints.
1713 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
1714 (ix86_rtx_costs): Handle CONST_WIDE_INT.
1715 (find_constant): Ditto.
1716 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
1717 using gen_int_mode.
1718 * config/i386/predicates.md (x86_64_immediate_operand)
1719 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
1720 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
1721 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
1722 (const0_operand): Also match const_wide_int.
1723 (constm1_operand): Ditto.
1724 (const1_operand): Ditto.
1725
1726 2015-05-04 Richard Biener <rguenther@suse.de>
1727
1728 PR tree-optimization/65965
1729 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
1730 store groups at gaps.
1731
1732 2015-05-04 Richard Biener <rguenther@suse.de>
1733
1734 PR tree-optimization/65935
1735 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
1736 then make sure to apply that swapping to the IL.
1737
1738 2015-05-04 Jakub Jelinek <jakub@redhat.com>
1739
1740 * Makefile.in (PATCHLEVEL_c): New variable.
1741 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
1742 expand the same way as if DEVPHASE_c was non-empty.
1743
1744 2015-05-04 Kai Tietz <ktietz@redhat.com>
1745
1746 PR target/65559
1747 * lto-wrapper.c (run_gcc): Open filename
1748 in binary-mode.
1749
1750 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
1751
1752 * doc/extend.texi (Variable Attributes, Type Attributes): Move
1753 sections up in file, to immediately after the Function Attributes
1754 section.
1755
1756 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
1757
1758 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
1759
1760 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1761
1762 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
1763 (insert_partition_copy_on_edge): Adjust.
1764 (insert_rtx_to_part_on_edge): Likewise.
1765 (insert_part_to_rtx_on_edge): Likewise.
1766
1767 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1768
1769 * function.c (set_return_jump_label): Change type of argument to
1770 rtx_insn *.
1771 * function.h (set_return_jump_label): Adjust.
1772
1773 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1774
1775 * reload.h (struct reg_equivs_t): Change type of init to
1776 rtx_insn *.
1777 * ira.c (fix_reg_equiv_init): Adjust.
1778 * reload1.c (eliminate_regs_1): Likewise.
1779 (init_eliminable_invariants): Likewise.
1780
1781 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1782
1783 * cselib.c (fp_setter_insn): Take a rtx_insn *.
1784 * cselib.h (fp_setter_insn): Adjust.
1785
1786 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1787
1788 * recog.c (struct validate_replace_src_data): Change type of
1789 insn field to rtx_insn *.
1790 (validate_replace_src_group): Change type of argument to rtx_insn *.
1791 * recog.h (validate_replace_src_group): Adjust.
1792
1793 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1794
1795 * haifa-sched.c: Change the type of some variables to rtx_insn *.
1796 * sched-deps.c: Likewise.
1797 * sched-int.h: Likewise.
1798 * sched-rgn.c: Likewise.
1799 * sel-sched.c: Likewise.
1800
1801 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1802
1803 to rtx_insn *.
1804 * config/i386/i386.c: Change the type of some arguments to
1805 rtx_insn *.
1806 * config/arm/arm.c: Likewise.
1807
1808 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1809
1810 * lra-constraints.c: Change type of some arguments to rtx_insn *.
1811
1812 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1813
1814 * regcprop.c (kill_autoinc_value): Change type of argument to
1815 rtx_insn *.
1816
1817 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1818
1819 * genrecog.c (print_subroutine): Adjust.
1820 * recog.c (get_bool_attr_mask_uncached): Likewise.
1821 * recog.h (struct recog_data_d): Change the type of insn to
1822 rtx_insn *.
1823
1824 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1825
1826 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
1827
1828 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1829
1830 * df-problems.c (df_set_note): Change type of argument to
1831 rtx_insn *.
1832
1833 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1834
1835 * builtins.c (expand_builtin_trap): Change type of local
1836 variable to rtx_insn *.
1837 (add_sched_insns_for_speculation): Likewise.
1838 (ix86_emit_save_regs): Likewise.
1839 (get_scratch_register_on_entry): Likewise.
1840 (ix86_emit_restore_reg_using_pop): Likewise.
1841 (ix86_emit_leave): Likewise.
1842 (ix86_emit_restore_regs_using_mov): Likewise.
1843 (ix86_expand_epilogue): Likewise.
1844 Likewise.
1845 (rl78_alloc_physical_registers_umul): Likewise.
1846 * cselib.c (discard_useless_locs): Likewise.
1847 (cselib_invalidate_regno): Likewise.
1848 (cselib_invalidate_mem): Likewise.
1849 * function.c (expand_function_start): Likewise.
1850 (emit_use_return_register_into_block): Likewise.
1851 * gcse.c: Likewise.
1852 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
1853 * ifcvt.c (noce_get_alt_condition): Likewise.
1854 * loop-doloop.c (doloop_condition_get): Likewise.
1855 * lra-constraints.c (inherit_in_ebb): Likewise.
1856 * modulo-sched.c (sms_schedule_by_order): Likewise.
1857 * recog.c (next_insn_tests_no_inequality): Likewise.
1858 * reorg.c (emit_delay_sequence): Likewise.
1859 (update_reg_dead_notes): Likewise.
1860 (fix_reg_dead_note): Likewise.
1861 (fill_slots_from_thread): Likewise.
1862 (delete_computation): Likewise.
1863
1864 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
1865
1866 * doc/extend.texi (Variable Attributes): Add menu and proper
1867 @nodes to subsections. Move Microsoft Windows attributes to
1868 their own subsection.
1869 (Type Attributes): Reorganize introduction to remove duplicate
1870 list of attributes. Add menu and proper @nodes to subsections.
1871 Alphabetize the main table of common attributes.
1872
1873 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
1874
1875 * match.pd: New simplification patterns.
1876 (x + (x & 1)) -> ((x + 1) & ~1)
1877 (x & ~(x & y)) -> ((x & ~y))
1878 (x | ~(x | y)) -> ((x | ~y))
1879
1880 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1881
1882 * target.def (attribute_table): Mention that struct attribute_spec
1883 is defined in tree-core.h rather than tree.h
1884 * doc/tm.texi: Regenerate.
1885
1886 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
1887
1888 * genrecog.c (test): Rename to rtx_test. Update rest of file
1889 accordingly.
1890
1891 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
1892
1893 PR translation/65959
1894 * params.h (DEFPARAM): Rename msgid to nocmsgid.
1895
1896 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
1897
1898 * gcc/config/aarch64/aarch64-protos.h (tune_params):
1899 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
1900 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
1901 Return value depending on target.
1902 (generic_tunings): Initialize new target settings.
1903 (cortexa53_tunings): Likewise.
1904 (cortexa57_tunings): Likewise.
1905 (thunderx_tunings): Likewise.
1906 (xgene1_tunings): Likewise.
1907
1908 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
1909
1910 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
1911 Make Cortex-A53 shift costs more accurate.
1912
1913 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1914
1915 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
1916 UNSIGNED_FLOAT.
1917
1918 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
1919
1920 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
1921 Calculate cost of op0 and op1 in PLUS and MINUS cases.
1922
1923 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1924
1925 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
1926 Add cost of op0 in the compare-with-fpzero case.
1927
1928 2015-04-30 David Malcolm <dmalcolm@redhat.com>
1929
1930 * builtins.c (fold_builtin_1): Remove spurious second
1931 semicolon.
1932 * cgraph.h (symtab_node::get_availability): Likewise.
1933 * opts.c (common_handle_option): Remove spurious second semicolon.
1934 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
1935 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
1936
1937 2015-04-30 Caroline Tice <cmtice@google.com>
1938
1939 PR gcov-profile/65929
1940 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
1941 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
1942 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
1943 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
1944 * doc/tm.texi: Regenerate.
1945 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
1946 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
1947 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
1948 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
1949
1950 2015-04-30 Marek Polacek <polacek@redhat.com>
1951
1952 * varasm.c (handle_cache_entry): Fix logic.
1953
1954 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1955
1956 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
1957 (*extrsi5_insn_uxtw_alt): Likewise.
1958 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
1959 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
1960 operations.
1961
1962 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1963
1964 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
1965 fabd in ABS case.
1966
1967 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1968
1969 * config/aarch64/aarch64.md
1970 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
1971 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
1972 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
1973 appropriately. Handle alternative EON form.
1974
1975 2015-04-30 Renlin Li <renlin.li@arm.com>
1976
1977 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
1978 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
1979
1980 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
1981
1982 PR ipa/65873
1983 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
1984 -fstrict-aliasing boundaries.
1985
1986 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1987
1988 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
1989 and [SU]MNEGL patterns.
1990
1991 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1992
1993 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
1994 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
1995 combined arithmetic-shift ops. Properly handle all shift and extend
1996 operations that can occur in combination with PLUS/MINUS.
1997 Rename maybe_fma to compound_p.
1998 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
1999 arithmetic and shift operations.
2000
2001 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2002
2003 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
2004 rather than arith_shift cost when costing ADD/MINUS of an
2005 extended value.
2006
2007 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
2008
2009 PR lto/65948
2010 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
2011 to itself.
2012
2013 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
2014
2015 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
2016 are for the same position.
2017
2018 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
2019
2020 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
2021 vectorize_loops.
2022 (vectorize_loops): Use it.
2023
2024 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
2025
2026 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
2027 for aggregate types.
2028 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
2029 type to be non_ODR.
2030 * tree.c (need_assembler_name_p): Compute mangled name for
2031 non-fundamental types and integer types.
2032
2033 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
2034
2035 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
2036 manual swaps.
2037 * expr.c (expand_expr_real_2): Likewise.
2038
2039 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
2040
2041 * tree.c (build_common_builtin_nodes): Do not build
2042 __builtin_alloca_with_align as equivalent of library alloca.
2043
2044 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
2045
2046 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
2047 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
2048 bugus variants.
2049 * tree.c: Include print-tree.h and ipa-utils.h
2050 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
2051 (free_lang_data_in_cgraph): Call verify_type.
2052 (verify_type_variant): New function.
2053 (verify_type): New function.
2054 * tree.h (verify_type): Declare.
2055
2056 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
2057
2058 * config/mips/mips-cpus.def: (mips4): Change default processor
2059 from PROCESSOR_R8000 to PROCESSOR_R10000.
2060
2061 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
2062
2063 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
2064 la/jalr instead of jal.
2065
2066 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
2067
2068 PR target/65871
2069 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
2070 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
2071 (setcc+movzbl peephole2): Check also clobbered reg.
2072 (setcc+andl peephole2): Ditto.
2073
2074 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
2075
2076 PR libgomp/65099
2077 * config/nvptx/mkoffload.c (target_ilp32): New variable.
2078 (main): Set it depending on "-foffload-abi=[...]".
2079 (compile_native, main): Use it to pass "-m32" or "-m64" to the
2080 compiler.
2081
2082 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
2083
2084 PR target/65770
2085 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
2086 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
2087 Flip lane index back at assembly time for bigendian.
2088
2089 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
2090
2091 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
2092 * gimplify.c (gimplify_omp_workshare): Use it.
2093
2094 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
2095
2096 * Makefile.in (build/genrecog.o): Depend on inchash.h.
2097 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
2098 build/inchash.o
2099 * genrecog.c: Rewrite most of the code except for the third page.
2100
2101 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
2102
2103 * inchash.h, inchash.c: Include bconfig.h for build objects.
2104 * Makefile.in (build/inchash.o): New rule.
2105
2106 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
2107
2108 PR target/65924
2109 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
2110 number in type attribute expression.
2111
2112 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
2113
2114 * loop-iv.c (canon_condition): Generalize to all types of integer
2115 constant.
2116
2117 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
2118
2119 * gimple-walk.c: Prune duplicate or unneeded includes.
2120 (walk_gimple_asm): Only call parse_input_constraint or
2121 parse_output_constraint if their findings are used.
2122 Honour parse_input_constraint and parse_output_constraint
2123 result.
2124
2125 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
2126
2127 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
2128
2129 2015-04-29 Tom de Vries <tom@codesourcery.com>
2130
2131 PR tree-optimization/65893
2132 * passes.def (pass_all_optimizations): Move pass_stdarg to after
2133 pass_dce.
2134
2135 2015-04-29 Richard Biener <rguenther@suse.de>
2136
2137 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
2138 compute GROUP_SIZE for basic-block SLP.
2139 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
2140 take into account gaps.
2141 (vect_get_mask_element): Properly reject references to previous
2142 vectors.
2143 (vect_transform_slp_perm_load): Likewise.
2144
2145 2015-04-29 Christian Bruel <christian.bruel@st.com>
2146
2147 PR target/64835
2148 * config/i386/i386.c (ix86_default_align): New function.
2149 (ix86_override_options_after_change): Call ix86_default_align.
2150 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
2151 (ix86_override_options_after_change): New function.
2152
2153 2015-04-28 Jeff Law <law@redhat.com>
2154
2155 * tree-ssa-dom.c (record_equality); Fix comment typos.
2156
2157 2015-04-28 Tom de Vries <tom@codesourcery.com>
2158
2159 PR tree-optimization/65887
2160 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
2161
2162 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
2163
2164 * doc/extend.texi (Declaring Attributes of Functions): Split into
2165 subsections by target. Alphabetize the table of common attributes.
2166 Rewrite some of the introductory text to reflect the new structure.
2167 Update some cross-references to point to the new subsections.
2168 (Attribute Syntax): Put paragraph about "__" naming here. Remove
2169 duplicate copies in the discussion of function, label, and type
2170 attributes.
2171
2172 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
2173
2174 PR bootstrap/65910
2175 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
2176
2177 2015-04-28 Jason Merrill <jason@redhat.com>
2178
2179 PR c++/65734
2180 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
2181 (finalize_type_size): Respect TYPE_USER_ALIGN.
2182 (layout_type) [ARRAY_TYPE]: Likewise.
2183
2184 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
2185
2186 * config/arm/arm.md (*arm_movt): Fix type attribute.
2187 (*cmpsi_shiftsi): Likewise.
2188 (*cmpsi_shiftsi_swp): Likewise.
2189 (*movsicc_insn): Likewise.
2190 (*cond_move): Likewise.
2191 (*if_plus_move): Likewise.
2192 (*if_move_plus): Likewise.
2193 (*if_arith_move): Likewise.
2194 (*if_move_arith): Likewise.
2195 (*if_shift_move): Likewise.
2196 (*if_move_shift): Likewise.
2197 (*arm_movtas_ze): Likewise.
2198 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
2199 redundancy and type attribute.
2200 (*thumb2_movsi_insn): Fix type attribute.
2201 (*thumb2_addsi_short): Likewise.
2202 (thumb2_addsi3_compare0): Likewise.
2203 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
2204 attributes accordingly.
2205
2206 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
2207
2208 PR other/65911
2209 * function.c (pad_to_arg_alignment): Add parentheses.
2210
2211 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
2212
2213 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
2214 libgcc/config/frv/elf-lib.h.
2215
2216 2015-04-28 Tom de Vries <tom@codesourcery.com>
2217
2218 * tree-call-cdce.c: Fix example in header comment.
2219
2220 2015-04-28 Richard Biener <rguenther@suse.de>
2221
2222 PR tree-optimization/62283
2223 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
2224 fails fatally and we are vectorizing a basic-block simply
2225 cause the child to be constructed piecewise.
2226 (vect_analyze_slp_cost_1): Adjust.
2227 (vect_detect_hybrid_slp_stmts): Likewise.
2228 (vect_bb_slp_scalar_cost): Likewise.
2229 (vect_get_constant_vectors): For piecewise constructed
2230 constants place them after the last def.
2231 (vect_get_slp_defs): Adjust.
2232 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
2233 externals for basic-block vectorization.
2234
2235 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
2236
2237 PR target/63503
2238 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
2239 aarch64-*-*.
2240 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
2241 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
2242 (AARCH64_TUNE_FMA_STEERING): Likewise.
2243 * config/aarch64/aarch64-cores.def: Set
2244 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
2245 FMUL/FMADD instructions.
2246 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
2247 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
2248 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
2249 * config/aarch64/cortex-a57-fma-steering.h: New file.
2250 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2251
2252 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
2253
2254 * gensupport.c (std_preds): Add missing codes to address_operand entry.
2255
2256 2015-04-28 Richard Biener <rguenther@suse.de>
2257
2258 PR tree-optimization/65851
2259 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
2260 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
2261 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
2262 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
2263 (ccp_visit_phi_node): Adjust.
2264 (evaluate_stmt): For simplifications to SSA names return its
2265 lattice value if that isn't VARYING. Return immediately when
2266 simplified to a constant.
2267 (visit_assignment): Adjust.
2268 (ccp_visit_stmt): Likewise.
2269
2270 2015-04-28 Tom de Vries <tom@codesourcery.com>
2271
2272 PR tree-optimization/65818
2273 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
2274 evaluated.
2275
2276 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2277
2278 * calls.c (save_fixed_argument_area): Don't check
2279 ARGS_GROW_DOWNWARD with the preprocessor.
2280 (restore_fixed_argument_area): Likewise.
2281 (mem_overlaps_already_clobbered_arg_p): Likewise.
2282 (check_sibcall_argument_overlap): Likewise.
2283 (expand_call): Likewise.
2284 (emit_library_call_value_1): Likewise.
2285 (store_one_arg): Likewise.
2286 * function.c (assign_parms): Likewise.
2287 (locate_and_pad_parm): Likewise.
2288 (pad_to_arg_alignment): Likewise.
2289 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
2290
2291 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2292
2293 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
2294 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
2295 * calls.c (save_fixed_argument_area): Don't chekc if
2296 ARGS_GROW_DOWNWARD is defined.
2297 (restore_fixed_argument_area): Likewise.
2298 (mem_overlaps_already_clobbered_arg_p): Likewise.
2299 (check_sibcall_argument_overlap): Likewise.
2300 (expand_call): Likewise.
2301 (emit_library_call_value_1): Likewise.
2302 (store_one_arg): Likewise.
2303 * function.c (assign_parms): Likewise.
2304 (locate_and_pad_parm): Likewise.
2305 (pad_to_arg_alignment): Likewise.
2306 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
2307
2308 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2309
2310 * defaults.h (gen_epilogue): New function.
2311 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
2312 defined.
2313 * cfgrtl.c (cfg_layout_finalize): Likewise.
2314 * df-scan.c: Likewise.
2315 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2316 (reposition_prologue_and_epilogue_notes): Likewise.
2317 * reorg.c (find_end_label): Likewise.
2318 * toplev.c: Likewise.
2319
2320 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2321
2322 * bb-reorder.c (HAVE_return): Don't check if its undefined.
2323 * defaults.h (gen_simple_return): New function.
2324 (gen_simple_return): Likewise.
2325 (HAVE_return): Add default definition to false.
2326 (HAVE_simple_return): Likewise.
2327 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
2328 HAVE_return and HAVE_simple_return are defined.
2329 * function.c (gen_return_pattern): Likewise.
2330 (convert_jumps_to_returns): Likewise.
2331 (thread_prologue_and_epilogue_insns): Likewise.
2332 * reorg.c (find_end_label): Likewise.
2333 (dbr_schedule): Likewise.
2334 * shrink-wrap.c: Likewise.
2335 * shrink-wrap.h: Likewise.
2336
2337 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2338
2339 * defaults.h (EPILOGUE_USES): Add default definition of false.
2340 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
2341 * resource.c (init_resource_info): Likewise.
2342
2343 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2344
2345 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
2346 to false.
2347 * dwarf2out.c (field_byte_offset): REmove check if
2348 PCC_BITFIELD_TYPE_MATTERS is defined.
2349 * stor-layout.c (layout_decl): Likewise.
2350 (update_alignment_for_field): Likewise.
2351 (place_field): Likewise.
2352
2353 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2354
2355 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
2356 true.
2357 * regrename.c (check_new_reg_p): Remove check if
2358 HARD_REGNO_RENAME_OK is defined.
2359 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
2360
2361 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2362
2363 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
2364 * cse.c (fold_rtx): Likewise.
2365 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
2366 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
2367 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
2368 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
2369 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
2370 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
2371 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
2372 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
2373 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
2374 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
2375 * Likewise.
2376 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
2377 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
2378 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
2379 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
2380 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
2381 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
2382 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
2383 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
2384 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
2385 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
2386 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
2387 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
2388 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
2389 * doc/tm.texi: Regenerate.
2390 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
2391 either true or false.
2392
2393 2015-04-27 Jeff Law <law@redhat.com>
2394
2395 PR tree-optimization/65217
2396 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
2397 of them has a single use, make sure it is the LHS of the implied
2398 copy.
2399
2400 2015-04-28 Alan Modra <amodra@gmail.com>
2401
2402 PR target/65810
2403 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
2404 (offsettable_ok_by_alignment): Use minimum of decl and toc
2405 pointer alignment. Replace dead code with assertion.
2406 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
2407 case if size exceeds toc pointer alignment.
2408 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
2409 (rs6000_emit_move): Likewise.
2410 * configure.ac: Add linker toc pointer alignment check.
2411 * configure: Regenerate.
2412 * config.in: Regenerate.
2413
2414 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
2415
2416 * config.gcc: Add h8300-*-linux.
2417 * config/h8300/linux.h: New.
2418 * config/h8300/t-linux: New.
2419 * config/h8300/h8300.c (h8300_option_override): Normal mode
2420 is not supported for h8300-*-linux.
2421 (h8300_file_start): Target priority change.
2422 (get_shift_alg): Likewise.
2423 (h8300_shift_need_scratch_p): Likewise.
2424 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
2425 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
2426
2427 2015-04-27 Caroline Tice <cmtice@google.com>
2428
2429 * final.c (final_scan_insn): Output cold_function_name as function
2430 type.
2431 * varasm.c (cold_function_name): Make global.
2432 (assemble_start_function): Re-set cold_function_name.
2433 (assemble_end_function): Output cold partition size.
2434 * varasm.h (cold_function_name): Declare global.
2435
2436 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
2437
2438 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
2439 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
2440 constraint.
2441 (*movxi_internal_avx512f): Ditto.
2442 (define_split): Check for xmm16+, when splitting scalar float_extend.
2443 (*extendsfdf2_mixed): Use "v" constraint.
2444 (define_split): Check for xmm16+, when splitting scalar float_truncate.
2445 (*truncdfsf_fast_sse): Use "v" constraint.
2446 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
2447 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
2448 (define_peephole2): Check for xmm16+, when converting scalar
2449 float_truncate.
2450 (define_peephole2): Check for xmm16+, when converting scalar
2451 float_extend.
2452 (*fop_<mode>_comm_mixed): Use "v" constraint.
2453 (*fop_<mode>_comm_sse): Ditto.
2454 (*fop_<mode>_1_mixed): Ditto.
2455 (*sqrt<mode>2_sse): Ditto.
2456 (*ieee_s<ieee_maxmin><mode>3): Ditto.
2457
2458 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2459
2460 * combine.c (simplify_if_then_else): Use std::swap instead
2461 of manually swapping.
2462 (known_cond): Likewise.
2463 (simplify_comparison): Likewise.
2464
2465 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
2466
2467 PR target/64579
2468 * config/rs6000/htm.md: Remove all define_expands.
2469 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
2470 UNSPECV_HTM_TABORTWCI): Remove.
2471 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
2472 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
2473 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
2474 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
2475 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
2476 tabortwci_internal): Remove define_insns.
2477 (tabort<wd>c, tabort<wd>ci): New define_insns.
2478 (tabort): Use gpc_reg_operand.
2479 (tcheck): Remove operand.
2480 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
2481 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
2482 expected value.
2483 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
2484 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
2485 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
2486 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
2487 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
2488 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
2489 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
2490 (tcheck): Remove builtin argument.
2491 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
2492 not TARGET_64BIT.
2493 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
2494 tabortdc and tabortdci builtins when not in 64-bit mode.
2495 Modify code to handle the loss of the HTM define_expands.
2496 Emit code to copy the CR register to TARGET.
2497 (htm_init_builtins): Modify code to handle the loss of the HTM
2498 define_expands.
2499 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
2500 (RS6000_BTC_64BIT): Likewise.
2501 (RS6000_BTC_CR): New macro.
2502 * doc/extend.texi: Update documentation for htm builtins.
2503
2504 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2505
2506 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
2507 of manually swapping.
2508 (simplify_associative_operation): Likewise.
2509 (simplify_binary_operation): Likewise.
2510 (simplify_plus_minus): Likewise.
2511 (simplify_relational_operation): Likewise.
2512 (simplify_ternary_operation): Likewise.
2513
2514 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
2515
2516 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
2517 (xs_hi_nonmemory_operand): Remove error.
2518 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
2519 general_operand rather than xs_hi_general_operand.
2520
2521 2015-04-27 Richard Biener <rguenther@suse.de>
2522
2523 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
2524 (record_equivalences_from_stmt): Valueize rhs.
2525 (record_equality): Canonicalize x and y order via
2526 tree_swap_operands_p. Do not swap operands for same loop depth.
2527
2528 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
2529
2530 PR target/65296
2531 PR target/65895
2532 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
2533 Add hint how to use own spec file.
2534
2535 2015-04-27 Jakub Jelinek <jakub@redhat.com>
2536
2537 PR tree-optimization/65875
2538 * tree-vrp.c (update_value_range): If in is_new case setting
2539 old_vr to VR_VARYING, also set new_vr to it. Remove
2540 old_vr->type == VR_VARYING test.
2541 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
2542 SSA_PROP_INTERESTING if update_value_range returned true,
2543 but new range is VR_VARYING.
2544
2545 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
2546
2547 * combine.c (sign_extend_short_imm): New.
2548 (set_nonzero_bits_and_sign_copies): Use above new function for sign
2549 extension of src short immediate.
2550 (reg_nonzero_bits_for_combine): Likewise for tem.
2551
2552 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
2553
2554 * stor-layout.c (self_referential_component_ref_p): New predicate.
2555 (copy_self_referential_tree_r): Use it.
2556 (self_referential_size): Punt for simple operations directly involving
2557 self-referential component references.
2558 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
2559
2560 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
2561
2562 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
2563
2564 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
2565
2566 * vec.h (vec): Make splice arguments const. Update definitions
2567 accordingly.
2568
2569 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
2570
2571 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
2572 alternatives.
2573
2574 2015-04-26 Tom de Vries <tom@codesourcery.com>
2575
2576 PR tree-optimization/65826
2577 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
2578
2579 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
2580
2581 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
2582 (*madd3<mode>): Ditto.
2583 (*msub4<mode>): Ditto.
2584 (*msub3<mode>): Ditto.
2585 (*nmadd4<mode>): Ditto.
2586 (*nmadd3<mode>): Ditto.
2587 (*nmadd4<mode>_fastmath): Ditto.
2588 (*nmadd3<mode>_fastmath): Ditto.
2589 (*nmsub4<mode>): Ditto.
2590 (*nmsub3<mode>): Ditto.
2591 (*nmsub4<mode>_fastmath): Ditto.
2592 (*nmsub3<mode>_fastmath): Ditto.
2593
2594 2015-04-24 Jason Merrill <jason@redhat.com>
2595
2596 PR c++/50800
2597 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
2598 down when building TYPE_CANONICAL.
2599 (build_pointer_type_for_mode): Likewise.
2600
2601 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
2602
2603 * genrecog.c (validate_pattern): Check matching constraint refers
2604 to a lower numbered operand.
2605
2606 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2607
2608 PR target/65849
2609 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
2610 save to independent variables use the Save attribute. This will
2611 allow these options to be modified with the #pragma/attribute
2612 target support.
2613 (-mallow-movmisalign): Likewise.
2614 (-mallow-df-permute): Likewise.
2615 (-msched-groups): Likewise.
2616 (-malways-hint): Likewise.
2617 (-malign-branch-targets): Likewise.
2618 (-mvectorize-builtins): Likewise.
2619 (-msave-toc-indirect): Likewise.
2620
2621 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
2622 can be set via the #pragma/attribute target support.
2623 (rs6000_opt_vars): Likewise.
2624 (rs6000_inner_target_options): If VSX was set, also set
2625 -mno-avoid-indexed-addresses.
2626
2627 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2628
2629 * config/arm/iterators.md (shiftable_ops): Rename to...
2630 (SHIFTABLE_OPS): ... This. Update use in comments.
2631 (ior_xor): Rename to...
2632 (IOR_XOR): ... This.
2633 (vqh_ops): Rename to...
2634 (VQH_OPS): ... This.
2635 (vqhs_ops): Rename to...
2636 (VQHS_OPS): ... This.
2637 (rshifts): Rename to...
2638 (RSHIFTS): ... This.
2639 (returns): Rename to...
2640 (RETURNS): ... This.
2641 * config/arm/arm.md: Update uses of the above.
2642 * config/arm/neon.md: Likewise.
2643
2644 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2645
2646 * config.host (case ${host}): Add aarch64*-*-linux case.
2647 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
2648 fields to all the cores.
2649 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
2650 Add MCPU_MTUNE_NATIVE_SPECS.
2651 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
2652 field to all extensions.
2653 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
2654 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
2655 Adjust definition of AARCH64_OPT_EXTENSION.
2656 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
2657 (MCPU_MTUNE_NATIVE_SPECS): Define.
2658 * config/aarch64/driver-aarch64.c: New file.
2659 * config/aarch64/x-arch64: New file.
2660 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
2661 -mtune and -march.
2662
2663 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
2664 Wei Mi <wmi@google.com>
2665
2666 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
2667 * config/i386/i386.c (extract_base_offset_in_addr): New function.
2668 (ix86_operands_ok_for_move_multiple): Ditto.
2669 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
2670 (movlpd/movhpd to movupd peephole2): Ditto.
2671
2672 2015-04-24 Marek Polacek <polacek@redhat.com>
2673
2674 PR c/61534
2675 * input.h (from_macro_expansion_at): Define.
2676
2677 PR c/63357
2678 * doc/invoke.texi: Update description of -Wlogical-op.
2679
2680 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
2681
2682 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
2683 ternary operator in fprintf and harmonize spacing.
2684
2685 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
2686
2687 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
2688 Mark operand1 commutative.
2689
2690 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
2691
2692 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
2693 input operands in memory.
2694 (*vec_concatv2si_sse4_1): Ditto.
2695 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
2696 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
2697 register_operand.
2698 (vec_extract_hi_v32hi): Ditto.
2699 (vec_extract_hi_v64hi): Ditto.
2700 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
2701
2702 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
2703 Steven Bosscher <steven@gcc.gnu.org>
2704
2705 PR rtl-optimization/34503
2706 * cprop.c (cprop_reg_p): New.
2707 (hash_scan_set): Use above function to check if register can be
2708 propagated.
2709 (find_avail_set): Return up to two sets, one whose source is a
2710 register and one whose source is a constant. Sets are returned in an
2711 array passed as parameter rather than as a return value.
2712 (cprop_insn): Use a do while loop rather than a goto. Try each of the
2713 sets returned by find_avail_set, starting with the one whose source is
2714 a constant. Use cprop_reg_p to check if register can be propagated.
2715 (do_local_cprop): Use cprop_reg_p to check if register can be
2716 propagated.
2717 (implicit_set_cond_p): Likewise.
2718
2719 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
2720
2721 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
2722 (sem_function::equals): IGNORED_NODES parameter is now unused;
2723 update call of equals_private.
2724 (sem_function::equals_private): Do not call equals_wpa; skip
2725 gimple body matching if there is no body.
2726 (sem_function::init): Add logic to hash tthunk info.
2727 (sem_function::parse): Also parse thunks.
2728 * ipa-icf.h (equals_private): Update declaration.
2729
2730 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2731
2732 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
2733 asterisk from name so this can be generated directly.
2734 (*altivec_stvx_<mode>_internal): Likewise.
2735 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
2736 that this is never called during or after reload/lra.
2737 (rs6000_frame_related): Remove split_reg
2738 argument and logic that references it.
2739 (emit_frame_save): Remove last parameter from call to
2740 rs6000_frame_related.
2741 (rs6000_emit_prologue): Remove last parameter from eight calls to
2742 rs6000_frame_related. Force generation of stvx instruction for
2743 Altivec register saves. Remove split_reg handling, which is no
2744 longer needed.
2745 (rs6000_emit_epilogue): Force generation of lvx instruction for
2746 Altivec register restores.
2747
2748 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2749
2750 * config/rs6000/rs6000.opt (mcrypto): Change option description to
2751 match category changes in ISA 2.07B.
2752
2753 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2754
2755 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
2756 iterators.
2757 (cmp_op, cmp_type): New code attributes.
2758 (NEON_VCMP, NEON_VACMP): New int iterators.
2759 (cmp_op_unsp): New int attribute.
2760 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
2761 (neon_vceq<mode>): Delete.
2762 (neon_vc<cmp_op><mode>_insn): New pattern.
2763 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
2764 (neon_vcgeu<mode>): Delete.
2765 (neon_vcle<mode>): Likewise.
2766 (neon_vclt<mode>: Likewise.
2767 (neon_vcage<mode>): Likewise.
2768 (neon_vcagt<mode>): Likewise.
2769 (neon_vca<cmp_op><mode>): New define_expand.
2770 (neon_vca<cmp_op><mode>_insn): New pattern.
2771 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
2772
2773 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
2774
2775 * tree.h (attribute_value_equal): Declare.
2776 * tree.c (attribute_value_equal): Export.
2777
2778 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
2779
2780 * ipa-icf.c (sem_item::compare_attributes): New function.
2781 (sem_item::compare_referenced_symbol_properties): Compare variable
2782 attributes.
2783 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
2784 (sem_function::param_used_p): New function.
2785 (sem_function::equals_wpa): Fix attribute comparsion; match
2786 parameter type codes; do not compare paremter flags when
2787 they are not used; compare edge flags; compare indirect calls.
2788 (sem_item::update_hash_by_addr_refs): Hash reference type.
2789 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
2790 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
2791 reference use type.
2792 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
2793 * ipa-icf.h (compare_attributes, param_used_p): Declare.
2794
2795 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
2796
2797 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
2798 cleanup.
2799 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
2800 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
2801 (sem_item::compare_referenced_symbol_properties): New.
2802 (sem_item::hash_referenced_symbol_properties): New.
2803 (sem_item::compare_cgraph_references): Rename to ...
2804 (sem_item::compare_symbol_references): ... this one; use
2805 compare_referenced_symbol_properties.
2806 (sem_function::equals_wpa): Do not compare
2807 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
2808 DECL_IS_OPERATOR_NEW; compare pointer sizes.
2809 (sem_item::update_hash_by_addr_refs): Call
2810 hash_referenced_symbol_properties.
2811 (sem_item::update_hash_by_local_refs): Cleanup.
2812 (sem_function::merge): Do not mix up symbol properties.
2813 (sem_variable::equals_wpa): Use compare_symbol_references.
2814 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
2815 (sem_item::hash_referenced_symbol_properties): New.
2816 (sem_item::compare_symbol_references): New.
2817 (sem_item::compare_cgraph_references): Remove.
2818
2819 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
2820
2821 PR target/26702
2822 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
2823 Emit size of local.
2824
2825 2015-04-23 Nick Clifton <nickc@redhat.com>
2826
2827 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
2828 ATTRIBUTE_UNUSED to x parameter.
2829 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
2830
2831 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2832
2833 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
2834 TARGET_CRYPTO to TARGET_P8_VECTOR>
2835 (crypto_vpermxor_<mode>): Likewise.
2836 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
2837 (BU_CRYPTO_3A): Likewise.
2838 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
2839 (BU_CRYPTO_OVERLOAD_3A): New #define.
2840 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
2841 (VPMSUMH): Likewise.
2842 (VPMSUMW): Likewise.
2843 (VPMSUMD): Likewise.
2844 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
2845 (VPERMXOR_V4SI): Likewise.
2846 (VPERMXOR_V8HI): Likewise.
2847 (VPERMXOR_V16QI): Likewise.
2848 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
2849 BU_CRYPTO_OVERLOAD_2A.
2850 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
2851 BU_CRYPTO_OVERLOAD_3A.
2852 * config/rs6000/rs6000.opt (mcrypto): Change description of
2853 option.
2854
2855 2015-04-23 Richard Biener <rguenther@suse.de>
2856
2857 * passes.def: Remove copy propagation passes run directly after CCP.
2858 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
2859 SSA names.
2860 (ccp_visit_phi_node): Rework to handle first executable edge
2861 specially.
2862
2863 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
2864
2865 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
2866 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
2867 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
2868 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
2869 (thumb_legimitimize_reload_address): Remove.
2870 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
2871 Remove.
2872 (thumb_legimitimize_reload_address): Remove.
2873
2874 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2875
2876 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
2877
2878 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2879
2880 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
2881 MAX_LDM_STM_OPS.
2882 (store_multiple): Likewise.
2883
2884 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2885
2886 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
2887 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
2888 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
2889 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
2890 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
2891 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
2892 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
2893 Specify issue_rate value.
2894 (arm_issue_rate): Look up issue rate from tuning structs. Remove
2895 large switch statement.
2896 (arm_marvell_pj4_tune): New struct.
2897 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
2898 struct.
2899
2900 2015-04-23 Richard Biener <rguenther@suse.de>
2901
2902 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
2903 (vect_find_last_store_in_slp_instance): Rename to ...
2904 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
2905 (vect_analyze_slp_cost_1): Use vector_load for constant defs
2906 and vec_construct for external defs when estimating prologue cost.
2907 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
2908 Compute costs here only when vectorizing loops.
2909 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
2910 have been determined.
2911 (vect_schedule_slp_instance): Simplify vectorized code placement
2912 and prepare for in-BB external defs.
2913 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
2914 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
2915 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
2916 guard.
2917 (vect_model_load_cost): Likewise.
2918 (vectorizable_store): Instead add it here.
2919 (vectorizable_load): Likewise.
2920 (vect_is_simple_use): Dump def type textually.
2921
2922 2015-04-23 Richard Biener <rguenther@suse.de>
2923
2924 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
2925 * cfgloop.c (verify_loop_structure): Verify the root loop node.
2926 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
2927 instead of get_eh_region_from_lp_number.
2928 * loop-init.c (fix_loop_structure): If we removed a loop, reset
2929 the SCEV cache.
2930
2931 2015-04-23 Anton Blanchard <anton@samba.org>
2932
2933 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
2934 need for -mprofile-kernel to save LR to stack.
2935
2936 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2937
2938 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
2939 adjustments.
2940 (insn_is_swappable_p): Return 1 for a convert from double to
2941 single precision when all of its uses are splats of BE element
2942 zero.
2943
2944 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2945
2946 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
2947
2948 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2949
2950 PR target/65456
2951 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
2952 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
2953 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
2954 option.
2955 (rs6000_builtin_mask_for_load): Return 0 for targets with
2956 efficient unaligned VSX accesses so that the vectorizer will use
2957 direct unaligned loads.
2958 (rs6000_builtin_support_vector_misalignment): Always return true
2959 for targets with efficient unaligned VSX accesses.
2960 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
2961 stores on targets with efficient unaligned VSX accesses is almost
2962 always the same as the cost of an aligned load or store, so model
2963 it that way.
2964 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
2965 unaligned vectors if we have efficient unaligned VSX accesses.
2966 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
2967 undocumented option.
2968
2969 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2970
2971 Revert:
2972 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
2973
2974 * config.gcc (LIBC_MUSL): New tm_defines macro.
2975 * config/linux.h (OPTION_MUSL): Define.
2976 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
2977 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
2978 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
2979
2980 * config/linux.opt (mmusl): New option.
2981 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
2982 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
2983
2984 * configure: Regenerate.
2985
2986 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
2987
2988 * config.gcc (LIBC_MUSL): New tm_defines macro.
2989 * config/linux.h (OPTION_MUSL): Define.
2990 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
2991 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
2992 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
2993
2994 * config/linux.opt (mmusl): New option.
2995 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
2996 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
2997
2998 * configure: Regenerate.
2999
3000 2015-04-22 Yury Gribov <y.gribov@samsung.com>
3001
3002 * doc/invoke.texi (-fsanitize-sections): Update description.
3003 * asan.c (set_sanitized_sections): Parse incoming arg.
3004 (section_sanitized_p): Support wildcards.
3005
3006 2015-04-22 Tom de Vries <tom@codesourcery.com>
3007
3008 PR tree-optimization/65823
3009 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
3010 equality between ap_copy and ap.
3011
3012 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3013
3014 PR target/47098
3015 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
3016
3017 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3018
3019 PR target/47122
3020 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
3021
3022 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3023
3024 PR target/55144
3025 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
3026 remove already contained t-files.
3027
3028 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3029
3030 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
3031 Remove unneeded forward declarations.
3032 (suitable_for_tail_call_opt_p): Commentary typo fix.
3033
3034 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3035
3036 * varasm.c (emit_bss): Remove redundant guard.
3037
3038 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3039
3040 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
3041
3042 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3043
3044 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
3045
3046 2015-04-22 Hale Wang <hale.wang@arm.com>
3047 Terry Guo <terry.guo@arm.com>
3048
3049 PR rtl-optimization/64818
3050 * combine.c (can_combine_p): Don't combine user-specified
3051 register if it is in an asm input.
3052
3053 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
3054
3055 PR ipa/65076
3056 * passes.def (early_optimizations): Add pass_dse.
3057
3058 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3059
3060 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
3061 * reorg.c (redundant_insn): Remove ifdef
3062 INSN_REFERENCES_ARE_DELAYED.
3063 * resource.c (mark_referenced_resources): Likewise.
3064
3065 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3066
3067 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
3068 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
3069 * resource.c (mark_set_resources): Likewise.
3070
3071 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3072
3073 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
3074 * cfgcleanup.c (flow_find_cross_jump): Likewise.
3075 (flow_find_head_matching_sequence): Likewise.
3076 (try_head_merge_bb): Likewise.
3077 * combine.c (can_combine_p): Likewise.
3078 (try_combine): Likewise.
3079 (distribute_notes): Likewise.
3080 * df-problems.c (can_move_insns_across): Likewise.
3081 * final.c (final): Likewise.
3082 * gcse.c (insert_insn_end_basic_block): Likewise.
3083 * ira.c (find_moveable_pseudos): Likewise.
3084 * reorg.c (try_merge_delay_insns): Likewise.
3085 (fill_simple_delay_slots): Likewise.
3086 (fill_slots_from_thread): Likewise.
3087 * sched-deps.c (sched_analyze_2): Likewise.
3088
3089 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3090
3091 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
3092 PIC_OFFSET_TABLE_REGNUM.
3093
3094 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3095
3096 * alias.c (init_alias_target): Remove ifdef
3097 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
3098 * df-scan.c (df_insn_refs_collect): Likewise.
3099 (df_get_regular_block_artificial_uses): Likewise.
3100 (df_get_eh_block_artificial_uses): Likewise.
3101 (df_get_entry_block_def_set): Likewise.
3102 (df_get_exit_block_use_set): Likewise.
3103 * emit-rtl.c (gen_rtx_REG): Likewise.
3104 * ira.c (ira_setup_eliminable_regset): Likewise.
3105 * reginfo.c (init_reg_sets_1): Likewise.
3106 * regrename.c (rename_chains): Likewise.
3107 * reload1.c (reload): Likewise.
3108 (eliminate_regs_in_insn): Likewise.
3109 * resource.c (mark_referenced_resources): Likewise.
3110 (init_resource_info): Likewise.
3111
3112 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3113
3114 * defaults.h (MASK_RETURN_ADDR): New definition.
3115 * except.c (expand_builtin_extract_return_addr): Remove ifdef
3116 MASK_RETURN_ADDR.
3117
3118 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3119
3120 * defaults.h (RETURN_ADDR_OFFSET): New definition.
3121 * except.c (expand_builtin_extract_return_addr): Remove ifdef
3122 RETURN_ADDR_OFFSET.
3123 (expand_builtin_frob_return_addr): Likewise.
3124
3125 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3126
3127 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
3128 (try_redirect_by_replacing_jump): Likewise.
3129 (rtl_tidy_fallthru_edge): Likewise.
3130 * combine.c (insn_a_feeds_b): Likewise.
3131 (find_split_point): Likewise.
3132 (simplify_set): Likewise.
3133 * cprop.c (cprop_jump): Likewise.
3134 * cse.c (cse_extended_basic_block): Likewise.
3135 * df-problems.c (can_move_insns_across): Likewise.
3136 * function.c (emit_use_return_register_into_block): Likewise.
3137 * haifa-sched.c (sched_init): Likewise.
3138 * ira.c (find_moveable_pseudos): Likewise.
3139 * loop-invariant.c (find_invariant_insn): Likewise.
3140 * lra-constraints.c (curr_insn_transform): Likewise.
3141 * postreload.c (reload_combine_recognize_const_pattern):
3142 * Likewise.
3143 * reload.c (find_reloads): Likewise.
3144 * reorg.c (delete_scheduled_jump): Likewise.
3145 (steal_delay_list_from_target): Likewise.
3146 (steal_delay_list_from_fallthrough): Likewise.
3147 (redundant_insn): Likewise.
3148 (fill_simple_delay_slots): Likewise.
3149 (fill_slots_from_thread): Likewise.
3150 (delete_computation): Likewise.
3151 * sched-rgn.c (add_branch_dependences): Likewise.
3152
3153 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3154
3155 * genconfig.c (main): Always define HAVE_cc0.
3156 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
3157 HAVE_cc0.
3158 * cfgcleanup.c (flow_find_cross_jump): Likewise.
3159 (flow_find_head_matching_sequence): Likewise.
3160 (try_head_merge_bb): Likewise.
3161 * cfgrtl.c (rtl_merge_blocks): Likewise.
3162 (try_redirect_by_replacing_jump): Likewise.
3163 (rtl_tidy_fallthru_edge): Likewise.
3164 * combine.c (do_SUBST_MODE): Likewise.
3165 (insn_a_feeds_b): Likewise.
3166 (combine_instructions): Likewise.
3167 (can_combine_p): Likewise.
3168 (try_combine): Likewise.
3169 (find_split_point): Likewise.
3170 (subst): Likewise.
3171 (simplify_set): Likewise.
3172 (distribute_notes): Likewise.
3173 * cprop.c (cprop_jump): Likewise.
3174 * cse.c (cse_extended_basic_block): Likewise.
3175 * df-problems.c (can_move_insns_across): Likewise.
3176 * final.c (final): Likewise.
3177 (final_scan_insn): Likewise.
3178 * function.c (emit_use_return_register_into_block): Likewise.
3179 * gcse.c (insert_insn_end_basic_block): Likewise.
3180 * haifa-sched.c (sched_init): Likewise.
3181 * ira.c (find_moveable_pseudos): Likewise.
3182 * loop-invariant.c (find_invariant_insn): Likewise.
3183 * lra-constraints.c (curr_insn_transform): Likewise.
3184 * optabs.c (prepare_cmp_insn): Likewise.
3185 * postreload.c (reload_combine_recognize_const_pattern):
3186 * Likewise.
3187 * reload.c (find_reloads): Likewise.
3188 (find_reloads_address_1): Likewise.
3189 * reorg.c (delete_scheduled_jump): Likewise.
3190 (steal_delay_list_from_target): Likewise.
3191 (steal_delay_list_from_fallthrough): Likewise.
3192 (try_merge_delay_insns): Likewise.
3193 (redundant_insn): Likewise.
3194 (fill_simple_delay_slots): Likewise.
3195 (fill_slots_from_thread): Likewise.
3196 (delete_computation): Likewise.
3197 (relax_delay_slots): Likewise.
3198 * sched-deps.c (sched_analyze_2): Likewise.
3199 * sched-rgn.c (add_branch_dependences): Likewise.
3200
3201 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3202
3203 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
3204 that is trivially ded on non cc0 targets.
3205 (simplify_set): Likewise.
3206 (mark_used_regs_combine): Likewise.
3207 * cse.c (new_basic_block): Likewise.
3208 (fold_rtx): Likewise.
3209 (cse_insn): Likewise.
3210 (cse_extended_basic_block): Likewise.
3211 (set_live_p): Likewise.
3212 * rtlanal.c (canonicalize_condition): Likewise.
3213 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3214
3215 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3216
3217 * conditions.h: Define macros even if HAVE_cc0 is undefined.
3218 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
3219 * final.c: Likewise.
3220 * jump.c: Likewise.
3221 * recog.c: Likewise.
3222 * recog.h: Declare functions even when HAVE_cc0 is undefined.
3223 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
3224
3225 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3226
3227 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
3228 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
3229 * builtins.c (expand_builtin): Remove check if
3230 EH_RETURN_DATA_REGNO is defined.
3231 * df-scan.c (df_bb_refs_collect): Likewise.
3232 (df_get_exit_block_use_set): Likewise.
3233 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3234 * ira-lives.c (process_bb_node_lives): Likewise.
3235 * lra-lives.c (process_bb_lives): Likewise.
3236
3237 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
3238
3239 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
3240 FIRST_PSEUDO_REG): New.
3241 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
3242 (ARG_POINTER_REGNUM): Define to ARGP_REG.
3243 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
3244 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
3245 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
3246 (FIRST_INT_REG): New.
3247 (LAST_INT_REG): New.
3248 (FIRST_*_REG): Define using *_REG.
3249 (LAST_*_REG): Ditto.
3250 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
3251 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
3252 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
3253
3254 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3255
3256 * expmed.c: (synth_mult): Only assume overlapping
3257 shift with previous steps in alg_sub_t_m2 case.
3258
3259 2015-04-21 Richard Biener <rguenther@suse.de>
3260
3261 PR tree-optimization/65650
3262 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
3263 transitions involving copies.
3264 (set_lattice_value): Adjust for copy lattice state.
3265 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
3266 if that doesn't dominate the merge point.
3267 (bit_value_unop): Adjust what we treat as varying mask.
3268 (bit_value_binop): Likewise.
3269 (bit_value_assume_aligned): Likewise.
3270 (evaluate_stmt): When we simplified to a SSA name record a copy
3271 instead of dropping to varying.
3272 (visit_assignment): Simplify.
3273
3274 * gimple-match.h (gimple_simplify): Add another callback.
3275 * gimple-fold.c (fold_stmt_1): Adjust caller.
3276 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
3277 for the 2nd callback.
3278 * gimple-match-head.c (gimple_simplify): Add a callback that is
3279 used to valueize the stmt operands and use it that way.
3280
3281 2015-04-21 Richard Biener <rguenther@suse.de>
3282
3283 PR tree-optimization/65788
3284 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
3285
3286 2015-04-21 Richard Biener <rguenther@suse.de>
3287
3288 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
3289 vec_construct cost by vec_stmt_cost.
3290
3291 2015-04-21 Richard Biener <rguenther@suse.de>
3292
3293 * cfghooks.h (create_basic_block): Replace with two overloads
3294 for RTL and GIMPLE.
3295 (split_block): Likewise.
3296 * cfghooks.c (split_block): Rename to ...
3297 (split_block_1): ... this.
3298 (split_block): Add two type-safe overloads for RTL and GIMPLE.
3299 (split_block_after_labels): Call split_block_1.
3300 (create_basic_block): Rename to ...
3301 (create_basic_block_1): ... this.
3302 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
3303 (create_empty_bb): Call create_basic_block_1.
3304 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
3305 split_block_after_labels.
3306 * omp-low.c (expand_parallel_call): Likewise.
3307 (expand_omp_target): Likewise.
3308 (simd_clone_adjust): Likewise.
3309 * tree-chkp.c (chkp_get_entry_block): Likewise.
3310 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
3311 create_basic_block overload.
3312 (cgraph_node::expand_thunk): Likewise.
3313 * tree-cfg.c (make_blocks): Likewise.
3314 (handle_abnormal_edges): Likewise.
3315 * tree-inline.c (copy_bb): Likewise.
3316
3317 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3318
3319 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
3320 New pattern.
3321 (*xor_one_cmplsidi3_ze): Likewise.
3322
3323 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
3324
3325 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
3326 use df_remove_problem rather than manually removing problems, leaving
3327 holes in df->problems_in_order[].
3328
3329 2015-04-21 Tom de Vries <tom@codesourcery.com>
3330
3331 PR tree-optimization/65802
3332 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
3333
3334 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3335
3336 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
3337 Increase to 128.
3338 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
3339 at '.'. Assert that there's enough space for everything.
3340
3341 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
3342
3343 PR tree-optimization/64950
3344 Revert:
3345 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
3346
3347 PR target/41089
3348 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
3349 as volatile.
3350
3351 2015-04-20 Shiva Chen <shiva0217@gmail.com>
3352
3353 PR rtl-optimization/64916
3354 * cfgcleanup.c (values_equal_p): New function.
3355 (can_replace_by): Use it.
3356
3357 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
3358
3359 PR c++/65801
3360 * doc/invoke.texi ([-Wnarrowing]): Update.
3361
3362 2015-04-20 Jeff Law <law@redhat.com>
3363
3364 PR tree-optimization/65658
3365 * tree-ssa-threadupdate.c (redirection_block_p): Remove
3366 redundant test for GIMPLE_ASSIGN in last change.
3367
3368 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
3369
3370 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
3371 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
3372 (legitimize_tls_address): Ditto.
3373 (ix86_expand_move): Ditto.
3374 (ix86_expand_binary_operator): Remove reload_in_progress checks.
3375 (ix86_expand_unary_operator): Ditto.
3376 * config/i386/predicates.md (index_register_operand): Ditto.
3377
3378 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
3379
3380 * reorg.c (try_merge_delay_insns): Improve correctness checking
3381 for targets with multiple delay slots.
3382
3383 2015-04-20 Jeff Law <law@redhat.com>
3384
3385 PR tree-optimization/65658
3386 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
3387 statements too.
3388
3389 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
3390
3391 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
3392 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
3393 Delete.
3394
3395 2015-04-20 Jakub Jelinek <jakub@redhat.com>
3396
3397 PR debug/65807
3398 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
3399
3400 2015-04-20 Richard Biener <rguenther@suse.de>
3401
3402 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
3403 * gimple-fold.c (gimple_build_valueize): New function.
3404 (gimple_build): Always use gimple_build_valueize as valueize hook.
3405
3406 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
3407
3408 PR target/64134
3409 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
3410 and overwrite variable parts if <= 1/2 the elements are variable.
3411
3412 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
3413
3414 PR rtl-optimization/65805
3415 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
3416 Don't use difference of offset and previous offset if
3417 update_sp_offset is non-zero.
3418 (eliminate_regs_in_insn): Ditto.
3419 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
3420 lra_eliminate_regs_1 call.
3421 * lra-constraints.c (get_equiv_with_elimination): Ditto.
3422
3423 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
3424
3425 * hash-table.h: Remove version of hash_table that stored value_type *.
3426 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
3427 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
3428 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
3429 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
3430 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
3431 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
3432 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
3433 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
3434 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
3435 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
3436 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
3437 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
3438 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
3439 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
3440 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
3441 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
3442
3443 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3444 Jakub Jelinek <jakub@redhat.com>
3445
3446 PR target/65787
3447 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
3448 subsequent SH_NONE operand does not overwrite an existing *special
3449 value.
3450 (adjust_extract): Handle case where a vec_extract operation is
3451 wrapped in a PARALLEL.
3452
3453 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
3454
3455 PR target/65780
3456 * config/i386/i386.c (ix86_binds_local_p): Define only if
3457 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
3458
3459 2015-04-17 Jeff Law <law@redhat.com>
3460
3461 PR tree-optimization/47679
3462 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
3463 * tree-ssa-scopedtables.c: New file.
3464 * tree-ssa-scopedtables.h: New file.
3465 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
3466 (const_and_copies): Change name/type.
3467 (record_const_or_copy): Move into tree-ssa-scopedtables.c
3468 (record_const_or_copy_1): Similarly.
3469 (restore_vars_to_original_value): Similarly.
3470 (pass_dominator::execute): Create and destroy const_and_copies table.
3471 (thread_across_edge): Update passing of const_and_copies.
3472 (record_temporary_equivalence): Use method calls rather than
3473 manipulating const_and_copies directly.
3474 (record_equality, cprop_into_successor_phis): Similarly.
3475 (dom_opt_dom_walker::before_dom_children): Similarly.
3476 (dom_opt_dom_walker::after_dom_children): Similarly.
3477 (eliminate_redundant_computations): Similarly.
3478 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
3479 (record_temporary_equivalence): Likewise.
3480 (invalidate_equivalences): Likewise.
3481 (record_temporary_equivalences_from_phis): Update due to type
3482 change of const_and_copies. Use method calls rather than
3483 manipulating the stack directly.
3484 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3485 (thread_through_normal_block, thread_across_edge): Likewise.
3486 (thread_across_edge): Likewise.
3487 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
3488 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
3489 of equiv_stack.
3490 (identify_jump_threads): Update due to type change of equiv_stack.
3491 (finalize_jump_threads): Delete the equiv_stack when complete.
3492
3493 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
3494
3495 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
3496 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
3497 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
3498
3499 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
3500
3501 PR target/65535
3502 * config.gcc: Exit with a comment when we do not have a major version
3503 number for the FreeBSD target.
3504
3505 2015-04-17 Jakub Jelinek <jakub@redhat.com>
3506
3507 PR target/65689
3508 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
3509 maybe_allows_mem bitfields.
3510 (maybe_allows_none_start, maybe_allows_none_end,
3511 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
3512 maybe_allows_mem_end): New variables.
3513 (compute_maybe_allows): New function.
3514 (add_constraint): Use it to initialize maybe_allows_reg and
3515 maybe_allows_mem fields.
3516 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
3517 is_address constraints such that those that allow neither mem nor
3518 reg come first, then those that only allow reg but not mem, then
3519 those that only allow mem but not reg, then the rest.
3520 (write_allows_reg_mem_function): New function.
3521 (write_tm_preds_h): Call it.
3522 * stmt.c (parse_output_constraint, parse_input_constraint): Use
3523 the generated insn_extra_constraint_allows_reg_mem function
3524 instead of always setting *allows_reg = true; *allows_mem = true;
3525 for unknown extra constraints.
3526
3527 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
3528
3529 PR target/65780
3530 * output.h (default_binds_local_p_3): New.
3531 * varasm.c (default_binds_local_p_3): Make it public. Take an
3532 argument to indicate if common symbol may be local. If common
3533 symbol may be local, treat non-external variable as defined
3534 locally.
3535 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
3536 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
3537 * config/i386/i386.c (ix86_binds_local_p): New.
3538 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
3539 ix86_binds_local_p.
3540
3541 2015-04-17 Jakub Jelinek <jakub@redhat.com>
3542
3543 PR debug/65771
3544 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
3545 trying mem_loc_descriptor on XEXP (rtl, 0).
3546
3547 2015-04-17 Martin Liska <mliska@suse.cz>
3548
3549 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
3550 Release symbol_compare_collection.
3551 * ipa-reference.c: Add TODO that a vector should be released.
3552
3553 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
3554
3555 PR target/65296
3556 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
3557 to new AVR-LibC file layout (bug #44574).
3558 (*avrlibc_devicelib): Same.
3559 * config/avr/avr-mcus.def: Adjust comments.
3560 * config/avr/avr.opt (nodevicelib): Adjust help.
3561
3562 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
3563
3564 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
3565
3566 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
3567
3568 PR c++/64527
3569 * gimplify.c (gimplify_init_constructor): Always emit a
3570 side-effecting constructor.
3571
3572 2015-04-17 Tom de Vries <tom@codesourcery.com>
3573
3574 PR tree-optimization/64950
3575 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
3576 in cfun->curr_properties.
3577 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
3578 if we generate an IFN_VA_ARG.
3579 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
3580 function if PROP_gimple_lva is not set in src function.
3581
3582 2015-04-17 Tom de Vries <tom@codesourcery.com>
3583 Michael Matz <matz@suse.de>
3584
3585 PR tree-optimization/64950
3586 * gimple-iterator.c (update_modified_stmts): Remove static.
3587 * gimple-iterator.h (update_modified_stmts): Declare.
3588 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
3589 (gimplify_va_arg_internal): New function.
3590 (gimplify_va_arg_expr): Use IFN_VA_ARG.
3591 * gimplify.h (gimplify_va_arg_internal): Declare.
3592 * internal-fn.c (expand_VA_ARG): New unreachable function.
3593 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
3594 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
3595 (expand_ifn_va_arg): New function.
3596 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
3597 (pass_stdarg::execute): Call expand_ifn_va_arg.
3598 (pass_data_lower_vaarg): New pass_data.
3599 (pass_lower_vaarg): New gimple_opt_pass.
3600 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
3601 (make_pass_lower_vaarg): New function.
3602 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
3603 properties_required field.
3604 * passes.def (all_passes): Add pass_lower_vaarg.
3605 * tree-pass.h (PROP_gimple_lva): Add define.
3606 (make_pass_lower_vaarg): Declare.
3607
3608 2015-04-17 Tom de Vries <tom@codesourcery.com>
3609
3610 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
3611 * calls.c (call_expr_flags): Same.
3612
3613 2015-04-17 Tom de Vries <tom@codesourcery.com>
3614
3615 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
3616 (pass_stdarg::execute): ... here.
3617
3618 2015-04-17 Tom de Vries <tom@codesourcery.com>
3619 Michael Matz <matz@suse.de>
3620
3621 * tree-cfg.c (make_blocks_1): Factor out of ...
3622 (make_blocks): ... here.
3623 (make_edges_bb): Factor out of ...
3624 (make_edges): ... here.
3625 (gimple_find_sub_bbs): New function.
3626 * tree-cfg.h (gimple_find_sub_bbs): Declare.
3627
3628 2015-04-17 Tom de Vries <tom@codesourcery.com>
3629
3630 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
3631
3632 2015-04-17 Yury Gribov <y.gribov@samsung.com>
3633
3634 * asan.c (set_sanitized_sections): New function.
3635 (section_sanitized_p): Ditto.
3636 (asan_protect_global): Optionally sanitize user-defined
3637 sections.
3638 * asan.h (set_sanitized_sections): Declare new function.
3639 * common.opt (fsanitize-sections): New option.
3640 * doc/invoke.texi (-fsanitize-sections): Document new option.
3641 * opts-global.c (handle_common_deferred_options): Handle new
3642 option.
3643
3644 2015-04-17 Jakub Jelinek <jakub@redhat.com>
3645
3646 PR debug/65771
3647 * dwarf2out.c (loc_list_from_tree): Return NULL
3648 for DEBUG_EXPR_DECL.
3649
3650 2015-04-17 Christian Bruel <christian.bruel@st.com>
3651
3652 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
3653 same attributes.
3654
3655 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
3656
3657 * ira-color.c (setup_left_conflict_sizes_p): Do not process
3658 node itself when computing left conflict subnode size.
3659
3660 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
3661
3662 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
3663 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
3664 *fop_<mode>_1_sse using enabled attribute. Use
3665 register_mixssei387nonimm_operand operand 1 predicate. Change
3666 alternative 3 constraints from "x" to "v".
3667
3668 2015-04-16 Richard Biener <rguenther@suse.de>
3669
3670 PR tree-optimization/65774
3671 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
3672 bit-value tracking on.
3673
3674 2015-04-16 Richard Biener <rguenther@suse.de>
3675
3676 PR tree-optimization/64277
3677 * tree-vrp.c (check_array_ref): Fix anti-range handling,
3678 simplify upper bound handling.
3679 (search_for_addr_array): Simplify.
3680 (check_array_bounds): Handle ADDR_EXPRs here.
3681 (check_all_array_refs): Simplify.
3682
3683 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
3684
3685 * config/i386/i386.c (print_reg): Rewrite function.
3686
3687 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3688
3689 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
3690 Invert the condition.
3691
3692 2015-04-16 Renlin Li <renlin.li@arm.com>
3693
3694 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
3695 simplifications for UNSIGNED_FLOAT.
3696
3697 2015-04-16 Nick Clifton <nickc@redhat.com>
3698
3699 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
3700 MUL_UNINIT.
3701 (enum rl78_cpu_type): New.
3702 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
3703 (umulhi3_shift_virt): Remove m constraint from operand 1.
3704 (umulqihi3_virt): Likewise.
3705 * config/rl78/rl78.c (rl78_option_override): Add code to process
3706 -mcpu and -mmul options.
3707 (rl78_alloc_physical_registers): Add code to handle divhi and
3708 divsi valloc attributes.
3709 (set_origin): Likewise.
3710 * config/rl78/rl78.h (RL78_MUL_G14): Define.
3711 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
3712 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
3713 __RL78_Gxx__.
3714 (ASM_SPEC): Pass -mcpu on to assembler.
3715 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
3716 (mulqi3_rl78): Likewise.
3717 (mulhi3_g13): Likewise.
3718 (mulhi3): Generate the G13 or G14 versions of the insn directly.
3719 (mulsi3): Likewise.
3720 (mulhi3_g14): Add clobbers of AX and BC.
3721 (mulsi3_g14): Likewise.
3722 (mulsi3_g13): Likewise.
3723 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
3724 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
3725 * config/rl78/rl78.opt (mmul): Initialise value to
3726 RL78_MUL_UNINIT.
3727 (mcpu): New option.
3728 (m13, m14, mrl78): New option aliases.
3729 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
3730 (MULTILIB_DIRNAMES): Add g13 and g14.
3731 * doc/invoke.texi: Document -mcpu and -mmul options.
3732
3733 2015-04-16 Richard Biener <rguenther@suse.de>
3734
3735 * tree-ssa-ccp.c (likely_value): See if we have operands that
3736 are marked as never simulate again and return CONSTANT in this
3737 case.
3738 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
3739 not have any operands that will be simulated again as
3740 not being simulated again.
3741
3742 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
3743
3744 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
3745 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
3746 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
3747 attribute.
3748 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
3749 enabled attribute.
3750 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
3751 *float<SWI48:mode><MODEF:mode>2_sse.
3752 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
3753 enabled attribute.
3754 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
3755 enabled attribute.
3756
3757 2015-04-15 Tom de Vries <tom@codesourcery.com>
3758
3759 PR other/65487
3760 * function.c (push_dummy_function): New function.
3761 (init_dummy_function_start): Use push_dummy_function.
3762 (pop_dummy_function): New function. Factored out of ...
3763 (expand_dummy_function_end): ... here.
3764 * function.h (push_dummy_function, pop_dummy_function): Declare.
3765 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
3766 pop_dummy_function.
3767 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
3768
3769 2015-04-15 Jeff Law <law@redhat.com>
3770
3771 PR tree-optimization/47679
3772 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
3773 need for forward declaration in upcoming changes.
3774 (record_conditions, record_edge_info): Likewise.
3775
3776 PR rtl-optimization/42522
3777 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
3778 SIGN_EXTRACT as a whole object rather than simplifying
3779 its operand.
3780
3781 2015-04-15 Jakub Jelinek <jakub@redhat.com>
3782
3783 PR ipa/65765
3784 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
3785 and GIMPLE_PREDICT use break instead of return true. For
3786 GIMPLE_EH_DISPATCH, compare dispatch region.
3787
3788 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
3789
3790 * doc/extend.texi (__sync Builtins): Simplify some text. Update
3791 details about the implementation. Make clear preference for
3792 __atomic builtins. Reduce possibility of future change.
3793
3794 2015-04-15 Nick Clifton <nickc@redhat.com>
3795
3796 * config/rx/rx.opt (mallow-string-insns): New option.
3797 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
3798 builtin if string instructions are denied.
3799 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
3800 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
3801 appropriate.
3802 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
3803 * config/rx/rx.md (movstr): Enable pattern only if string
3804 instructions are allowed.
3805 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
3806 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
3807 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
3808 (MULTILIB_DIRNAMES): Add no-strings.
3809 * doc/invoke.texi: Document -mno-allow-string-insns.
3810
3811 2015-04-15 Alan Modra <amodra@gmail.com>
3812
3813 PR target/65408
3814 PR target/58744
3815 PR middle-end/36043
3816 * calls.c (load_register_parameters): Don't load past end of
3817 mem unless suitably aligned.
3818
3819 2015-04-15 Nick Clifton <nickc@redhat.com>
3820
3821 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
3822 decrement instruction as being frame related.
3823 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
3824 based addresses.
3825 If zero extending a function address enclose the operation in
3826 %code(...).
3827 (rl78_preferred_reload_class): New function.
3828 (TARGET_PREFERRED_RELOAD_CLASS): Define.
3829 * config/rl78/rl78.md: Remove useless constraints in expanders.
3830 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
3831 (mulhi3_rl78): Likewise.
3832 (mulhi3_g13): Likewise.
3833 (mulsi3_rl78): Likewise.
3834 (es_addr): Move to before the multiply patterns.
3835
3836 2015-04-15 Alan Modra <amodra@gmail.com>
3837
3838 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
3839 and sequence_stack. Add seq.
3840 (seq_stack): Delete.
3841 * function.c (prepare_function_start): Don't access x_last_insn.
3842 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
3843 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
3844 * emit_rtl.c (start_sequence, push_topmost_sequence,
3845 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
3846 sequence accessors.
3847 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
3848 remove_insn): Likewise. Simplify.
3849 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
3850 and pop_topmost_sequence.
3851 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
3852 debug insns.
3853 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
3854
3855 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
3856
3857 PR target/65729
3858 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
3859 the assertiion.
3860
3861 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
3862
3863 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
3864 (LEGACY_INT_REGNO_P): Ditto.
3865 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
3866 (ANY_MASK_REG_P): Remove.
3867 (BND_REG_P): Rename from ANY_BND_REG_P.
3868 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
3869 legacy integer registers. Do not handle MMX_REG_P in a special way.
3870 Merge 64byte and 32byte SSE handling.
3871
3872 2015-04-14 Nick Clifton <nickc@redhat.com>
3873
3874 * expr.c (expand_assignment): Force an address offset computation
3875 into a register before changing its mode.
3876 (expand_expr_real_1): Likewise.
3877
3878 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
3879
3880 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
3881 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
3882 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
3883 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
3884 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
3885 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
3886 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
3887 and __aarch64_vget_lane_any.
3888
3889 2015-04-14 Jakub Jelinek <jakub@redhat.com>
3890
3891 PR rtl-optimization/65761
3892 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
3893 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
3894
3895 2015-04-14 Richard Biener <rguenther@suse.de>
3896
3897 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
3898 (graphite_can_represent_scev): Use POINTER_TYPE_P.
3899
3900 2015-04-14 Richard Biener <rguenther@suse.de>
3901
3902 PR tree-optimization/65758
3903 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
3904 against -1.
3905 (ccp_lattice_meet): Likewise.
3906 (bit_value_unop): Likewise.
3907 (bit_value_binop): Likewise.
3908 (bit_value_assume_aligned): Likewise.
3909
3910 2015-04-14 Christian Bruel <christian.bruel@st.com>
3911
3912 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
3913 function.
3914
3915 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
3916
3917 PR tree-optimization/63387
3918 * match.pd ((x unord x) | (y unord y) -> (x unord y),
3919 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
3920
3921 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
3922
3923 * config/i386/predicates.md (any_QIreg_operand): Rename from
3924 q_regs_operand. Do not process subregs.
3925 (QIreg_operand): Use QI_REGNO_P predicate.
3926 (ext_QIreg_operand): Ditto.
3927 (ext_register_operand): Ditto.
3928 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
3929 (AND splitters): Ditto.
3930 (AND with -65536 splitter): Add SWI48 mode for operand 0.
3931 (AND with -256 splitter): Use any_QIreg_operand predicate and
3932 SWI248 mode for operand 0.
3933 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
3934 mode for operand 0.
3935 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
3936
3937 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
3938
3939 * doc/plugins.texi: Rewrite first introductory paragraph.
3940
3941 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
3942
3943 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
3944 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
3945
3946 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
3947
3948 * ipa-profie.c (ipa_profile): Check number of parameters
3949 and possible polymorphic call targets before
3950 devirtualizing.
3951
3952 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
3953
3954 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
3955 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
3956
3957 2015-04-13 Richard Biener <rguenther@suse.de>
3958
3959 PR tree-optimization/65204
3960 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
3961 takens for bit-CCP.
3962
3963 2015-04-13 Richard Biener <rguenther@suse.de>
3964
3965 PR target/65660
3966 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
3967 and cond_not_taken_branch_cost to 4 and 2.
3968 (bdver2_cost): Likewise.
3969 (bdver3_cost): Likewise.
3970 (bdver4_cost): Likewise.
3971
3972 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
3973
3974 * hash-table.h (hash_table constructor): Add mem stats.
3975 (alloc_entries): Likewise.
3976
3977 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
3978
3979 * ipa-cp.c (ipcp_driver): Relase prev_edge.
3980 * passes.c (execute_one_pass): Only add transform if pass has one.
3981
3982 2015-04-12 Joseph Myers <joseph@codesourcery.com>
3983
3984 * config/i386/i386.c (ix86_option_override_internal): Don't set
3985 -fprefetch-loop-arrays if optimizing for size.
3986
3987 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
3988 Gerald Pfeifer <gerald@pfeifer.com>
3989
3990 * doc/contrib.texi (Contributors): Add Martin Jambor and
3991 Michael Matz.
3992
3993 2015-04-12 Jakub Jelinek <jakub@redhat.com>
3994
3995 * BASE-VER: Set to 6.0.0.
3996
3997 PR tree-optimization/65747
3998 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
3999 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
4000
4001 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
4002
4003 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
4004 sentence. Improve grammar.
4005
4006 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
4007
4008 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
4009
4010 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
4011
4012 PR ipa/65743
4013 * ipa-inline-transform.c (speculation_removed): Remove static var.
4014 (check_speculations): New function.
4015 (clone_inlined_nodes): Do not check spculations.
4016 (inline_call): Call check_speculations.
4017 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
4018 consider non-invariants.
4019
4020 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
4021 Martin Liska <mliska@suse.cz>
4022
4023 PR ipa/65722
4024 * ipa-icf.c (sem_item::compare_cgraph_references): function and
4025 variable can not match.
4026 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
4027 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
4028
4029 2015-04-11 Jakub Jelinek <jakub@redhat.com>
4030
4031 PR tree-optimization/65735
4032 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
4033 Remove visited_phis argument, add visited_bbs, avoid recursing into the
4034 same bb rather than just into the same phi node.
4035 (thread_through_normal_block): Adjust caller.
4036
4037 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
4038
4039 * doc/contrib.texi (Contributors): Add Ira Rosen.
4040
4041 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
4042
4043 * gcov.c (find_source): Fix miswording in error message.
4044 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
4045 (ix86_expand_sse_comi_round): Fix typo in error message.
4046
4047 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
4048
4049 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
4050
4051 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
4052
4053 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
4054
4055 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
4056
4057 PR target/65710
4058 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
4059 Print bad_spills_num and insn_pseudos_num.
4060
4061 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4062
4063 PR target/65694
4064 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
4065 when creating +1 values for SImode.
4066
4067 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
4068
4069 PR target/65729
4070 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
4071 assert.
4072
4073 2015-04-10 Jakub Jelinek <jakub@redhat.com>
4074 Iain Sandoe <iain@codesourcery.com>
4075
4076 PR target/65351
4077 * configure: Regenerate.
4078
4079 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
4080
4081 PR target/65671
4082 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
4083
4084 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
4085
4086 * doc/contrib.texi (Contributors): Add John Marino.
4087
4088 2015-04-09 Jakub Jelinek <jakub@redhat.com>
4089
4090 PR tree-optimization/65709
4091 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
4092 TREE_TYPE (TREE_TYPE (t)).
4093
4094 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
4095
4096 PR target/65710
4097 * lra-int.h (lra_bad_spill_regno_start): New.
4098 * lra.c (lra_bad_spill_regno_start): New.
4099 (lra): Set up lra_bad_spill_regno_start. Set up
4100 lra_constraint_new_regno_start unconditionally.
4101 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
4102 spill preferences.
4103
4104 2015-04-09 Marek Polacek <polacek@redhat.com>
4105 Jakub Jelinek <jakub@redhat.com>
4106
4107 PR middle-end/65554
4108 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
4109 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
4110 of STRIP_NOPS.
4111
4112 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
4113
4114 PR rtl-optimization/65693
4115 * combine.c (is_parallel_of_n_reg_sets): Move outside of
4116 #ifndef HAVE_cc0.
4117
4118 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
4119
4120 PR target/65296
4121 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
4122 device specs file if "device-specs%s" didn't resolve to a path.
4123
4124 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
4125
4126 PR target/65676
4127 * config/i386/i386.c (fixup_modeless_constant): New.
4128 (ix86_expand_args_builtin): Fixup modeless constant operand.
4129 (ix86_expand_round_builtin): Ditto.
4130 (ix86_expand_special_args_builtin): Ditto.
4131 (ix86_expand_builtin): Ditto.
4132
4133 2015-04-09 Jakub Jelinek <jakub@redhat.com>
4134
4135 PR target/65693
4136 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
4137 any pow2 integer in between 2 and 0x80000000U inclusive.
4138
4139 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
4140
4141 PR rtl-optimization/65693
4142 * combine.c (is_parallel_of_n_reg_sets): Change first argument
4143 from an rtx_insn * to an rtx.
4144 (try_combine): Adjust both callers. Use it once more.
4145
4146 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
4147
4148 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
4149 (chkp_make_static_const_bounds): Search existing
4150 symbol by assembler name. Use make_decl_one_only.
4151 (chkp_get_zero_bounds_var): Remove node search which
4152 is now performed in chkp_make_static_const_bounds.
4153 (chkp_get_none_bounds_var): Likewise.
4154
4155 2015-04-08 Michael Witten <mfwitten@gmail.com>
4156
4157 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
4158 to an example.
4159
4160 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4161
4162 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
4163
4164 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
4165
4166 * doc/extend.texi (__sync Builtins): Fix grammar.
4167
4168 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4169
4170 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
4171
4172 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4173
4174 * varasm.c (emit_local): Move definition of align.
4175
4176 2015-04-08 Julian Brown <julian@codesourcery.com>
4177
4178 * config/nvptx/mkoffload.c (process): Support variable mapping.
4179
4180 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
4181
4182 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
4183 alpha_links **.
4184 (alpha_write_one_linkage): Correct typo.
4185
4186 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
4187
4188 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
4189
4190 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
4191
4192 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
4193
4194 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
4195
4196 * tree-chkp.h (chkp_insert_retbnd_call): New.
4197 * tree-chkp.c (chkp_insert_retbnd_call): New.
4198 * ipa-split.c (insert_bndret_call_after): Remove.
4199 (split_function): Use chkp_insert_retbnd_call.
4200 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
4201 bounds for instrumented functions.
4202
4203 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
4204
4205 PR ipa/65540
4206 * calls.c (initialize_argument_information): When producing tail
4207 call also turn SSA_NAMES passed by references to original PARM_DECLs
4208
4209 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
4210
4211 PR target/65648
4212 * lra-remat.c (do_remat): Process input and non-input insn
4213 registers separately.
4214
4215 2015-04-07 Jakub Jelinek <jakub@redhat.com>
4216
4217 PR debug/65678
4218 * valtrack.c (debug_lowpart_subreg): New function.
4219 (dead_debug_insert_temp): Use it.
4220
4221 PR middle-end/65680
4222 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
4223 into signed HOST_WIDE_INT the same as negative bit_offset.
4224
4225 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
4226
4227 * ipa-comdats.c (ipa_comdats): Visit all thunks
4228 to set proper comdat group.
4229
4230 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4231
4232 PR target/65489
4233 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
4234 on constants for NEON VSTRUCT modes.
4235
4236 2015-04-07 Jakub Jelinek <jakub@redhat.com>
4237 Iain Sandoe <iain@codesourcery.com>
4238
4239 PR target/65351
4240 * configure: Regenerate.
4241
4242 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4243
4244 PR target/65614
4245 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
4246 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
4247 that LFD is used to load double constants instead of LFS. Add
4248 defaults for all costs structures. Add comments for missing
4249 initialization fields.
4250 (size32_cost): Likewise.
4251 (size64_cost): Likewise.
4252 (rs64a_cost): Likewise.
4253 (mpccore_cost): Likewise.
4254 (ppc403_cost): Likewise.
4255 (ppc405_cost): Likewise.
4256 (ppc440_cost): Likewise.
4257 (ppc476_cost): Likewise.
4258 (ppc601_cost): Likewise.
4259 (ppc603_cost): Likewise.
4260 (ppc604_cost): Likewise.
4261 (ppc604e_cost): Likewise.
4262 (ppc620_cost): Likewise.
4263 (ppc630_cost): Likewise.
4264 (ppccell_cost): Likewise.
4265 (ppc750_cost): Likewise.
4266 (ppc7450_cost): Likewise.
4267 (ppc8540_cost): Likewise.
4268 (ppce300c2c3_cost): Likewise.
4269 (ppce500mc_cost): Likewise.
4270 (ppce500mc64_cost): Likewise.
4271 (ppce5500_cost): Likewise.
4272 (ppce6500_cost): Likewise.
4273 (titan_cost): Likewise.
4274 (power4_cost): Likewise.
4275 (power6_cost): Likewise.
4276 (power7_cost): Likewise.
4277 (power8_cost): Likewise.
4278 (ppca2_cost): Likewise.
4279 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
4280
4281 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
4282 instead of XXLOR to copy SFmode to clear out dirty bits created
4283 when SFmode denormals are generated.
4284 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
4285 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
4286
4287 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
4288
4289 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
4290 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
4291 * config/aarch64/aarch64-tune.md: Regenerate.
4292
4293 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
4294
4295 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
4296 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
4297 * config/arm/arm-cores.def (exynos-m1): New core.
4298 * config/arm/arm-tune.md: Regenerate.
4299 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
4300 * config/arm/bpabi.h: Likewise.
4301
4302 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
4303
4304 * ipa-cp (set_single_call_flag): Remove too
4305 restrictive assert.
4306
4307 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
4308
4309 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
4310 GOMP_offload_unregister from the destructor.
4311
4312 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
4313
4314 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
4315 flags for instrumentation thunk.
4316 (chkp_produce_thunks): Likewise.
4317
4318 2015-04-05 Martin Liska <mliska@suse.cz>
4319
4320 PR ipa/65665
4321 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
4322 has computed data structure.
4323 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
4324
4325 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
4326
4327 * invoke.texi (inline-unit-growth): Increase growth to 20%
4328 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
4329
4330 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
4331
4332 PR target/65647
4333 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
4334 value checking.
4335 (lra_rematerialization_iter): New.
4336 * lra.c (lra): Initialize lra_rematerialization_iter.
4337 Stop updating lra_constraint_new_regno_start after switching of
4338 inheritance and rematerialization.
4339 * lra-remat.c (lra_rematerialization_iter): New.
4340 (lra_remat): Add printing pass iteration. Do rematerialization
4341 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
4342
4343 2015-04-04 Richard Biener <rguenther@suse.de>
4344
4345 PR tree-optimization/64909
4346 PR tree-optimization/65660
4347 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
4348 to take a cost vector for scalar iteration cost.
4349 (vect_get_single_scalar_iteration_cost): Likewise.
4350 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
4351 Compute the scalar iteration cost into a cost vector.
4352 (vect_get_known_peeling_cost): Use the scalar cost vector to
4353 account for the cost of the peeled iterations.
4354 (vect_estimate_min_profitable_iters): Likewise.
4355 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
4356 Likewise.
4357
4358 2015-04-04 Alan Modra <amodra@gmail.com>
4359
4360 PR target/65576
4361 PR target/65240
4362 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
4363 0.0 constant unless TARGET_VSX.
4364 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
4365 alternative.
4366
4367 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
4368
4369 PR ipa/65654
4370 * ipa-inline-transform.c (inline_call): Skip sanity check to work
4371 around the ICE
4372
4373 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
4374
4375 PR ipa/65655
4376 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
4377 speculative indirect edges to avoid ordering issue.
4378
4379 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
4380
4381 PR ipa/65076
4382 * ipa-inline.c (edge_badness): Add combined size to the denominator.
4383
4384 2015-04-03 Jakub Jelinek <jakub@redhat.com>
4385
4386 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
4387 TYPE_ARTIFICIAL on the .omp_data* types.
4388
4389 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
4390
4391 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
4392 instrumentation thunks.
4393
4394 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
4395
4396 * config/i386/i386.c (ix86_expand_call): Avoid nested
4397 PARALLEL in returned call value.
4398
4399 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
4400
4401 * lto-cgraph.c (input_cgraph_1): Always link instrumented
4402 assembler name with original one.
4403
4404 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
4405
4406 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
4407
4408 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
4409
4410 Revert parts of r216820.
4411 * config/i386/i386.md (movqi_internal): Correct type calculation
4412 for alternatives 3 and 5.
4413
4414 2015-04-02 Jakub Jelinek <jakub@redhat.com>
4415
4416 PR preprocessor/61977
4417 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
4418 predefine __vector/__bool/__pixel macros nor context sensitive
4419 macros for CLK_ASM.
4420 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
4421
4422 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
4423
4424 * config/pa/pa.c (pa_output_move_double): Directly handle register
4425 indexed memory operand. Simplify handling of scaled register indexed
4426 memory operands.
4427
4428 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
4429
4430 PR driver/65444
4431 * config/i386/linux-common.h (MPX_SPEC): New.
4432 (CHKP_SPEC): Add MPX_SPEC.
4433 * doc/invoke.texi (-fcheck-pointer-boudns): Document
4434 possible issues with '-z bndplt' support in linker.
4435
4436 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
4437
4438 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
4439 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
4440 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
4441 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
4442 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
4443
4444 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
4445
4446 * config/i386/sync.md (UNSPEC_MOVA): Remove.
4447 (atomic_load<mode>): Change operand 0 predicate to
4448 nonimmediate_operand and fix up the destination when needed.
4449 Use UNSPEC_LDA.
4450 (atomic_loaddi_fpu): Use UNSPEC_LDA.
4451 (atomic_store<mode>): Change operand 1 predicate to
4452 nonimmendate_operand and move the source to register when needed.
4453 Use UNSPEC_STA.
4454 (atomic_store<mode>_1): Use UNSPEC_STA.
4455 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
4456 Fix moves from memory operand. Use UNSPEC_STA.
4457
4458 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4459
4460 * expmed.c (strict_volatile_bitfield_p): Check that the access will
4461 not cross a MODESIZE boundary.
4462 (store_bit_field, extract_bit_field): Added assertions in the
4463 strict volatile bitfields code path.
4464
4465 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
4466
4467 PR target/65624
4468 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
4469 Increase args array size by one to avoid buffer overflow.
4470
4471 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
4472
4473 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
4474 split_part.
4475 * ipa-inline.c (edge_badness): Add wrapper penalty.
4476 (sum_callers): Move up.
4477 (inline_small_functions): Set single_caller.
4478 * ipa-inline.h (inline_summary): Add single_caller.
4479 * ipa-split.c (split_function): Set split_part.
4480 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
4481 * cgraph.h (cgraph_node): Add split_part.
4482
4483 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
4484
4485 PR target/58945
4486 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
4487 Do not split operands 0 and operands 2 to halfmode.
4488 (atomic_compare_and_swap<mode>): Update for
4489 atomic_compare_and_swap<dwi>_doubleword changes.
4490
4491 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
4492
4493 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
4494 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
4495 no caching is done.
4496
4497 2015-03-31 Martin Liska <mliska@suse.cz>
4498
4499 PR ipa/65557
4500 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
4501 has already filled up function summary.
4502 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
4503
4504 2015-03-31 Richard Biener <rguenther@suse.de>
4505
4506 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
4507 of types.
4508
4509 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
4510
4511 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
4512 nested functions.
4513 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
4514 (s390_asm_output_function_label): Adapt to new signature of
4515 s390_function_num_hotpatch_hw
4516 Optimise the code generating assembler output.
4517 Add comments to assembler file.
4518
4519 2015-03-31 Richard Biener <rguenther@suse.de>
4520
4521 PR middle-end/65626
4522 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
4523 of the noreturn call so it is last and cleanup_control_flow_bb
4524 can do the CFG part.
4525
4526 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
4527
4528 PR target/65531
4529 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
4530 same_comdat_group for external symbols.
4531 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
4532 infinite same_comdat_group traversal loop.
4533
4534 2015-03-31 Jakub Jelinek <jakub@redhat.com>
4535
4536 PR plugins/61176
4537 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
4538 automatically to $headers.
4539
4540 2015-03-30 Jakub Jelinek <jakub@redhat.com>
4541
4542 PR ipa/65610
4543 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
4544 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
4545 function.
4546 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
4547 Use it.
4548 * ipa-prop.c (param_type_may_change_p): Likewise.
4549 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
4550 (remove_unused_scope_block_p): Add in_ctor_dtor_block
4551 argument. Before inlining, preserve
4552 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
4553 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
4554 recursive calls.
4555 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
4556
4557 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
4558
4559 PR ipa/65076
4560 * ipa-inline.c (edge_badness): Base denominator on callee's
4561 grwoth squared.
4562
4563 2015-03-27 Martin Jambor <mjambor@suse.cz>
4564
4565 PR ipa/65478
4566 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
4567 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
4568 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
4569 node_calling_single_call.
4570 * ipa-cp.c (count_callers): New function.
4571 (set_single_call_flag): Likewise.
4572 (initialize_node_lattices): Count callers and set single_flag_call if
4573 necessary.
4574 (incorporate_penalties): New function.
4575 (good_cloning_opportunity_p): Use it, dump new flags.
4576 (propagate_constants_topo): Set node_within_scc flag if appropriate.
4577 * doc/invoke.texi (ipa-cp-recursion-penalty,
4578 ipa-cp-single-call-pentalty): Document.
4579
4580 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
4581
4582 PR ipa/65588
4583 * symtab.c (symtab_node::get_partitioning_class): Register vars
4584 are duplicated.
4585 * varpool.c (symbol_table::output_variables) Do not assemble unefined
4586 decls for non-symbols.
4587
4588 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
4589
4590 PR target/65248
4591 * output.h (default_binds_local_p_2): New.
4592 * varasm.c (default_binds_local_p_2): Renamed to ...
4593 (default_binds_local_p_3): This. Don't return true on protected
4594 data symbol if protected data may be external.
4595 (default_binds_local_p): Use default_binds_local_p_3.
4596 (default_binds_local_p_1): Likewise.
4597 (default_binds_local_p_2): New.
4598 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
4599 default_binds_local_p_2 if TARGET_MACHO is undefined.
4600
4601 2015-03-27 Jakub Jelinek <jakub@redhat.com>
4602
4603 PR target/65593
4604 * config/i386/i386.c (legitimize_pic_address): If base
4605 is SYMBOL_REF or LABEL_REF using %rip addressing, force
4606 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
4607
4608 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
4609
4610 PR target/65531
4611 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
4612 comdat groups.
4613
4614 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
4615
4616 PR ipa/65600
4617 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
4618 of optimized out indirect call.
4619 (redirect_to_unreachable): Always build symbol table node for
4620 BUILT_IN_UNREACHABLE
4621
4622 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
4623
4624 PR target/65407
4625 * ira-costs.c (record_reg_classes): Process all constraint string
4626 containing 0-9.
4627
4628 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
4629
4630 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
4631 memory_operand.
4632
4633 PR target/65052
4634 * config/c6x/constraints.md (S3): New constraint.
4635 * config/c6x/c6x.md (real_jump): Use it.
4636
4637 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4638
4639 PR middle-end/65595
4640 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
4641 do redirection if the call is not optimized out.
4642
4643 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
4644
4645 PR target/65495
4646 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
4647 (fchkp-check-incomplete-type): Add LTO.
4648 (fchkp-zero-input-bounds-for-main): Likewise.
4649 (fchkp-first-field-has-own-bounds): Likewise.
4650 (fchkp-narrow-bounds): Likewise.
4651 (fchkp-narrow-to-innermost-array): Likewise.
4652 (fchkp-use-static-bounds): Likewise.
4653 (fchkp-use-static-const-bounds): Likewise.
4654 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
4655
4656 2015-03-27 Marek Polacek <polacek@redhat.com>
4657
4658 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
4659
4660 2015-03-27 Marek Polacek <polacek@redhat.com>
4661
4662 PR sanitizer/65583
4663 * ubsan.c (ubsan_create_edge): New function.
4664 (instrument_bool_enum_load): Call it.
4665 (instrument_nonnull_arg): Likewise.
4666 (instrument_nonnull_return): Likewise.
4667 (instrument_object_size): Likewise.
4668
4669 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4670
4671 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
4672 auto_vec.
4673
4674 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4675
4676 PR lto/65536
4677 * lto-streamer.h (class lto_location_cache): New.
4678 (struct data_in): Add location_cache.
4679 (lto_input_location): Update prototype.
4680 (stream_input_location_now): New.
4681 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
4682 pointer to location.
4683 (stream_input_location): Update.
4684 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
4685 (warn_odr): Apply location cache before warning.
4686 (lto_input_location): Update prototype.
4687 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
4688 Use stream_input_location_now.
4689 * lto-streamer-in.c (lto_location_cache::current_cache): New static
4690 variable.
4691 (lto_location_cache::cmp_loc): New function.
4692 (lto_location_cache::apply_location_cache): New function.
4693 (lto_location_cache::accept_location_cache): New function.
4694 (lto_location_cache::revert_location_cache): New function.
4695 (lto_location_cache::input_location): New function.
4696 (lto_input_location): Do location caching.
4697 (stream_input_location_now): New function.
4698 (input_eh_region, input_struct_function_base): Use
4699 stream_input_location_now.
4700 (lto_data_in_create): use new.
4701 (lto_data_in_delete): Use delete.
4702 * tree-streamer-in.c (unpack_ts_block_value_fields,
4703 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
4704 lto_input_ts_exp_tree_pointers): Update for cached location api.
4705
4706 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4707
4708 PR ipa/65076
4709 * passes.def: Add pass_nothrow.
4710 * ipa-pure-const.c: (pass_data_nothrow): New.
4711 (pass_nothrow): New.
4712 (pass_nothrow::execute): New.
4713 (make_pass_nothrow): New.
4714 * tree-pass.h (make_pass_nothrow): Declare.
4715
4716 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4717
4718 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
4719 edge to change by speculation resolution or redirection.
4720 (edge_set_predicate): Likewise.
4721 (inline_summary_t::duplicate): Likewise.
4722 (remap_edge_summaries): Likewise.
4723
4724 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4725
4726 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
4727 New macros.
4728 (can_inline_edge_p): Relax option matching for always inline functions.
4729
4730 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
4731
4732 PR target/65561
4733 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
4734 Check operand 4 and operand 0 for equality.
4735 (avx512f_vextract<shuffletype>32x4_1_maskm):
4736 Check operand 6 and operand 0 for equality.
4737 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
4738 for equality.
4739 (vec_extract_hi_<mode>_maskm): Ditto.
4740
4741 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4742
4743 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
4744 dead calls back to live.
4745 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
4746 cross check to ...
4747 (cgraph_node::verify_node): ... here; verify only callee edges,
4748 not caller.
4749 * cif-code.def (CILK_SPAWN): New code.
4750
4751 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4752
4753 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
4754 (edge_set_predicate): Use it to mark unreachable edges.
4755 (inline_summary_t::duplicate): Remove unnecesary code.
4756 (remap_edge_summaries): Likewise.
4757 (dump_inline_summary): Report contains_cilk_spawn.
4758 (compute_inline_parameters): Compute contains_cilk_spawn.
4759 (inline_read_section, inline_write_summary): Stream
4760 contains_cilk_spawn.
4761 * ipa-inline.c (can_inline_edge_p): Do not touch
4762 DECL_STRUCT_FUNCTION that may not be available;
4763 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
4764 remove check for callee_fun->can_throw_non_call_exceptions and
4765 replace it by optimization attribute check; check for flag_exceptions.
4766 * ipa-inline-transform.c (inline_call): Maintain
4767 DECL_FUNCTION_PERSONALITY
4768 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
4769
4770 2015-03-26 Jakub Jelinek <jakub@redhat.com>
4771
4772 PR tree-optimization/65551
4773 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
4774 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
4775
4776 2015-03-26 Richard Biener <rguenther@suse.de>
4777
4778 PR middle-end/65555
4779 * tree-cfg.c (verify_gimple_call): Do not require a call to
4780 have no LHS if it wasn't recognized as control altering yet.
4781
4782 2015-03-26 Jakub Jelinek <jakub@redhat.com>
4783
4784 PR tree-optimization/64715
4785 * passes.def: Add another instance of pass_object_sizes before ccp1.
4786 * tree-object-size.c (pass_object_sizes::execute): In
4787 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
4788 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
4789 __bos result and the computed constant. Remove redundant
4790 checks, obsoleted by gimple_call_builtin_p test.
4791
4792 * var-tracking.c (variable_tracking_main_1): Don't track
4793 variables for targetm.no_register_allocation targets.
4794
4795 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
4796
4797 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
4798 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
4799
4800 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
4801
4802 PR target/65569
4803 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
4804 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
4805 0.0 is correctly setup.
4806 (extenddftf2_internal): Likewise.
4807
4808 2015-03-25 Sebastian Pop <s.pop@samsung.com>
4809
4810 PR tree-optimization/65177
4811 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
4812 (bb_in_bbs): New.
4813 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
4814 edges not adjacent on the path to the original code.
4815
4816 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
4817
4818 PR bootstrap/65537
4819 * doc/install.texi (Building a native compiler): Document new
4820 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
4821 configuration assumes that the host supports the linker plugin.
4822
4823 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
4824
4825 PR target/65508
4826 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
4827 chain for generated call.
4828
4829 2015-03-25 Richard Biener <rguenther@suse.de>
4830
4831 * passes.c (pass_manager::execute_early_local_passes): Guard
4832 execution of pass_chkp_instrumentation_passes with
4833 flag_check_pointer_bounds.
4834 (pass_chkp_instrumentation_passes::gate): Likewise.
4835
4836 2015-03-25 Martin Liska <mliska@suse.cz>
4837
4838 PR tree-optimization/65538
4839 * symbol-summary.h (function_summary::~function_summary):
4840 Relese memory for allocated summaries.
4841 (function_summary::release): New function.
4842
4843 2015-03-25 Jakub Jelinek <jakub@redhat.com>
4844
4845 PR lto/65515
4846 * lto-streamer-out.c (DFS::worklist): New struct.
4847 (DFS::worklist_vec): New data member.
4848 (DFS::next_dfs_num): Remove.
4849 (DFS::DFS): Rewritten using worklist instead of recursion,
4850 using most of code from DFS::DFS_write_tree.
4851 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
4852 pass it to DFS_write_tree calls.
4853 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
4854 quick initial checks push it into worklist_vec and return.
4855
4856 2015-03-25 Richard Biener <rguenther@suse.de>
4857
4858 PR middle-end/65519
4859 * genmatch.c (expr::gen_transform): Re-write to avoid
4860 using gimple_build.
4861
4862 2015-03-25 Bin Cheng <bin.cheng@arm.com>
4863
4864 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
4865
4866 2015-03-25 Bin Cheng <bin.cheng@arm.com>
4867
4868 * config/arm/arm.opt (print_tune_info): New option.
4869 * config/arm/arm.c (arm_print_tune_info): New function.
4870 (arm_file_start): Call arm_print_tune_info.
4871 * config/arm/arm-protos.h (struct tune_params): Add comment.
4872 * doc/invoke.texi (@item -mprint-tune-info): New item.
4873 (-mtune): mention it in ARM Option Summary.
4874
4875 2015-03-25 DJ Delorie <dj@redhat.com>
4876
4877 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
4878 correct clause.
4879
4880 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
4881 Martin Liska <mliska@suse.cz>
4882
4883 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
4884 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
4885 (sem_item::add_type): New function.
4886 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
4887 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
4888 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
4889 (sem_function::equals_wpa): Fix typo.
4890 * ipa-icf.h (sem_item::add_type): New function.
4891 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
4892 order.
4893
4894 2015-03-24 Jakub Jelinek <jakub@redhat.com>
4895
4896 PR tree-optimization/65533
4897 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
4898 with swapped operands, call vect_free_slp_tree on
4899 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
4900 vector.
4901
4902 2015-03-24 Richard Biener <rguenther@suse.de>
4903
4904 PR middle-end/65517
4905 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
4906 for fixup if necessary.
4907
4908 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
4909
4910 * doc/extend.texi (Function Attributes): Add @cindex entries
4911 for all attributes and regularize their format. Delete text
4912 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
4913 information about "eightbit_data", "tiny_data", and "model"
4914 variable attributes to the Variable Attributes section. Fix
4915 some obvious typos and copy-editing issues.
4916 (Variable Attributes, Type Attributes): Likewise add/fix
4917 @cindex entries for all attributes.
4918
4919 2015-03-23 Jakub Jelinek <jakub@redhat.com>
4920
4921 PR target/65523
4922 * tree-chkp.c (chkp_build_returned_bound): Ignore
4923 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
4924
4925 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
4926
4927 PR target/65505
4928 * config/sh/predicates.md (simple_mem_operand,
4929 displacement_mem_operand): Add test for reg.
4930 (short_displacement_mem_operand): Test for displacement_mem_operand
4931 before invoking sh_disp_addr_displacement.
4932 * config/sh/constraints.md (Sdd, Sra): Simplify.
4933 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
4934 Remove redundant displacement_mem_operand tests.
4935
4936 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
4937
4938 PR target/65296
4939 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
4940 the same -mmcu=MCU more than once.
4941
4942 2015-03-23 Jakub Jelinek <jakub@redhat.com>
4943
4944 PR bootstrap/65522
4945 * ipa-devirt.c: Remove duplicate demangle.h include.
4946
4947 PR target/65504
4948 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
4949 on the pseudo.
4950 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
4951 REG_POINTER on *destptr after adjusting it for prologue size.
4952
4953 PR ipa/65521
4954 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
4955 ultimate_alias_target ()->order ints instead of
4956 ultimate_alias_target () pointers.
4957
4958 2015-03-23 Richard Biener <rguenther@suse.de>
4959
4960 PR tree-optimization/65518
4961 * tree-vect-stmts.c (vectorizable_load): Reject single-element
4962 interleaving cases we generate absymal code for.
4963
4964 2015-03-23 Richard Biener <rguenther@suse.de>
4965
4966 PR tree-optimization/65494
4967 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
4968 matches here.
4969 (vect_analyze_slp_instance): But do that here, always and once.
4970
4971 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4972
4973 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
4974 adding T or multiplying by T+1 and subracting T.
4975
4976 2015-03-22 Jeff Law <law@redhat.com>
4977
4978 PR rtl-optimization/64317
4979 * Makefile.in (OBJS): Add gcse-common.c
4980 * gcse.c: Include gcse-common.h
4981 (struct modify_pair_s): Move structure definition to gcse-common.h
4982 (compute_transp): Move function to gcse-common.c.
4983 (canon_list_insert): Similarly.
4984 (record_last_mem_set_info): Break out some code and put it into
4985 gcse-common.c. Call into the new common code.
4986 (compute_local_properties): Pass additional arguments to compute_transp.
4987 * postreload-gcse.c: Include gcse-common.h and df.h
4988 (modify_mem_list_set, blocks_with_calls): New variables.
4989 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
4990 (get_bb_avail_insn): Pass in the expression index too.
4991 (alloc_mem): Allocate memory for the new bitmaps and lists.
4992 (free_mem): Free memory for the new bitmaps and lists.
4993 (insert_expr_in_table): Record a bitmap index for each entry we
4994 add to the table.
4995 (record_last_mem_set_info): Call into common code in gcse-common.c.
4996 (get_bb_avail_insn): If no available insn was found in the requested
4997 BB. If BB has a single predecessor, see if the expression is
4998 transparent in BB and available in that single predecessor.
4999 (compute_expr_transp): New wrapper for compute_transp.
5000 (eliminate_partially_redundant_load): Pass expression's bitmap_index
5001 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
5002 (gcse_after_reload_main): If there are elements in the hash table,
5003 then compute transparency for all the elements in the hash table.
5004 * gcse-common.h: New file.
5005 * gcse-common.c: New file.
5006
5007 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
5008
5009 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
5010 as an adjective.
5011 (System Headers): Likewise.
5012 (Ifdef): Likewise.
5013 (Traditional macros): Likewise.
5014 (Invocation): Likewise.
5015 (Option Index): Likewise.
5016 * doc/cppopts.texi (-M): Likewise.
5017 (-finput-charset): Likewise.
5018 (--help): Likewise.
5019 * doc.invoke.texi (AVR Options): Likewise.
5020 (V850 Options): Likewise.
5021
5022 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
5023
5024 PR ipa/65475
5025 * ipa-devirt.c: Include demangle.h
5026 (odr_type_d): Add field rtti_broken.
5027 (odr_subtypes_equivalent_p): Do not require name to match.
5028 (compare_virtual_tables): Fix typo; if type already has ODR violation,
5029 bypass the tests; be ready for function referneces in vtables that are
5030 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
5031 (warn_odr): Give up for nameless types.
5032 (warn_types_mismatch): Report mismatch in mangled names;
5033 report mismatch in anonymous namespaces; look into component types to
5034 give useful error; report when mismatch is dragged in from other ODR
5035 type.
5036 (odr_types_equivalent_p): Match types for being polymorphic; avoid
5037 duplicated diagnostics.
5038 (add_type_duplicate): Reorder checks so more informative ones come
5039 first; fix typo; do not output "the extra base is defined here" when
5040 we did not warn.
5041 (BINFO_N_BASE_BINFOS): Relax sanity check.
5042
5043 2015-03-22 Martin Liska <mliska@suse.cz>
5044 Jakub Jelinek <jakub@redhat.com>
5045
5046 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
5047 masks that can potentially include a builtin.
5048 (ix86_add_new_builtins): Introduce fast filter for isa values
5049 that cannot trigger builtin inclusion.
5050
5051 2015-03-22 Martin Liska <mliska@suse.cz>
5052
5053 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
5054 (sem_item::update_hash_by_local_refs): Likewise.
5055 (sem_variable::get_hash): Empty line is fixed.
5056 (sem_item_optimizer::execute): Include adding of hash references.
5057 (sem_item_optimizer::update_hash_by_addr_refs): New function.
5058 (sem_item_optimizer::build_hash_based_classes): Use local hash.
5059 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
5060 (sem_item::update_hash_by_local_refs): Likewise.
5061
5062 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
5063
5064 PR ipa/65502
5065 * ipa-comdats.c (enqueue_references): Walk through thunks.
5066 (ipa_comdats): Likewise.
5067 (set_comdat_group_1): New function.
5068
5069 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
5070
5071 PR ipa/65475
5072 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
5073 non-polymorphic
5074
5075 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
5076 Gerald Pfeifer <gerald@pfeifer.com>
5077
5078 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
5079
5080 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
5081 Sandra Loosemore <sandra@codesourcery.com>
5082
5083 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
5084 function parameter declaration.
5085 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
5086 Update arguments to nios2_adjust_call_address().
5087 (sibcall_internal): Rename from *sibcall.
5088 (sibcall_value_internal): Rename from *sibcall_value.
5089 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
5090 (nios2_large_got_address): Add target temp reg parameter.
5091 (nios2_got_address): Adjust call to nios2_large_got_address, add
5092 force_reg around it.
5093 (nios2_load_pic_address): Add target temp reg parameter, replace call
5094 to nios2_got_address with corresponding code.
5095 (nios2_legitimize_constant_address): Update call to
5096 nios2_load_pic_address.
5097 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
5098 to use temp reg for PIC loading purposes.
5099 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
5100 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
5101 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
5102
5103 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
5104
5105 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
5106 usage of "the @option{...}".
5107 (-Wopenmp-simd): Likewise.
5108 (-fsanitize-recover): Likewise.
5109 (-fsanitize-undefined-trap-on-error): Likewise.
5110 (-flto): Likewise.
5111 (tracer-dynamic-coverage-feedback): Likewise.
5112 (reorder-block-duplicate-feedback): Likewise.
5113 (loop-unroll-jam-size): Likewise.
5114 (-B): Likewise.
5115 (-I-): Likewise.
5116 (-mabs=legacy): Likewise.
5117 (-mupper-regs-df): Likewise.
5118 (-mupper-regs-sf): Likewise.
5119 (-mpointers-to-nested-functions): Likewise.
5120
5121 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
5122
5123 * doc/extend.texi (Cilk Plus Builtins): Add markup.
5124
5125 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
5126
5127 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
5128 additional index entries and cross-references.
5129 (-fchkp-check-incomplete-type): Likewise.
5130 (-fchkp-first-field-has-own-bounds): Likewise.
5131 (-fchkp-narrow-to-innermost-array): Likewise.
5132 (-fchkp-use-fast-string-functions): Likewise.
5133 (-fchkp-use-nochk-string-functions): Likewise.
5134 (-fchkp-use-static-const-bounds): Likewise.
5135 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
5136 (-fchkp-instrument-marked-only): Likewise.
5137 (-fchkp-use-wrappers): Likewise.
5138 (-static-libmpx): Likewise.
5139 (-static-libmpxwrappers): Likewise.
5140 * doc/extend.texi (bnd_legacy): Likewise.
5141 (bnd_instrument): Likewise.
5142 (bnd_variable_size): Likewise.
5143 (Pointer Bounds Checker builtins): Likewise.
5144
5145 2015-03-21 Tom de Vries <tom@codesourcery.com>
5146
5147 PR tree-optimization/65458
5148 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
5149 * cgraph.h (cgraph_node): Add parallelized_function field.
5150 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
5151 (input_overwrite_node): Read parallelized_function field.
5152 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
5153 parallelized_function on cgraph_node for child_fn.
5154 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
5155 Remove include of gt-tree-parloops.h.
5156 (parallelized_functions): Remove static variable.
5157 (parallelized_function_p): Rewrite using parallelized_function field of
5158 cgraph_node.
5159 (create_loop_fn): Remove adding to parallelized_functions.
5160 * Makefile.in (GTFILES): Remove tree-parloops.c
5161
5162 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
5163
5164 PR rtl-optimization/64366
5165 * lra.c (lra_update_insn_regno_info): Consider regs in
5166 CALL_INSN_FUNCTION_USAGE memory.
5167
5168 2015-03-20 Richard Biener <rguenther@suse.de>
5169
5170 PR middle-end/64715
5171 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
5172 for type comparison and gcc_checking_assert.
5173 (chrec_fold_plus_poly_poly): Likewise.
5174 (chrec_fold_multiply_poly_poly): Likewise.
5175 (chrec_convert_1): Likewise.
5176 * gimplify.c (gimplify_expr): Remove premature folding of
5177 &X + CST to &MEM[&X, CST].
5178
5179 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
5180
5181 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
5182 already is final.
5183 (ipa_inline): Recompute inline_failed codes.
5184 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
5185 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
5186 CIF_FINAL_ERROR.
5187
5188 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
5189
5190 PR rtl-optimization/60851
5191 * recog.c (constrain_operands): Accept a pseudo register before reload
5192 for LRA enabled targets.
5193
5194 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
5195
5196 PR target/65240
5197 * config/rs6000/predicates.md (easy_fp_constant): Remove special
5198 -ffast-math handling that kept non-0 constants live in the RTL
5199 until reload. Remove logic testing the number of instructions it
5200 took to create a constant in a GPR that was never used, due to a
5201 test for soft-float earlier.
5202 (memory_fp_constant): Delete, no longer used.
5203
5204 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
5205 alternatives for loading non-0 constants into GPRs for hard
5206 floating point that is no longer needed due to changes in
5207 easy_fp_constant. Add support for loading 0.0 into GPRs.
5208 (mov<mode>_hardfloat32): Likewise.
5209 (mov<mode>_hardfloat64): Likewise.
5210 (mov<mode>_64bit_dm): Likewise.
5211 (movtd_64bit_nodm): Likewise.
5212 (pre-reload move FP constant define_split): Delete define_split,
5213 since it is no longer used.
5214 (extenddftf2_internal): Remove GHF constraints that are not valid
5215 for extenddftf2.
5216
5217 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
5218
5219 PR rtl-optimization/63491
5220 * lra-constraints.c (check_and_process_move): Use src instead of
5221 sreg. Remove some dead code.
5222
5223 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
5224
5225 PR ipa/65380
5226 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
5227 (sem_variable::merge): Likewise.
5228
5229 2015-03-19 Martin Liska <mliska@suse.cz>
5230
5231 PR ipa/65465
5232 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
5233 all fields of cgraph_thunk_info.
5234
5235 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
5236
5237 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
5238 clone instrumented thunks.
5239
5240 2015-03-19 Richard Biener <rguenther@suse.de>
5241
5242 Revert
5243 2015-03-10 Richard Biener <rguenther@suse.de>
5244
5245 PR middle-end/63155
5246 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
5247 * tree-ssa-coalesce.c: Include timevar.h.
5248 (attempt_coalesce): Handle graph being NULL.
5249 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
5250 Split out abnormal coalescing to ...
5251 (perform_abnormal_coalescing): ... this function.
5252 (coalesce_ssa_name): Perform abnormal coalescing without computing
5253 live/conflict.
5254 (verify_ssa_coalescing_worker): New function.
5255 (verify_ssa_coalescing): Likewise.
5256
5257 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5258 Jakub Jelinek <jakub@redhat.com>
5259
5260 PR sanitizer/65400
5261 * tsan.c (instrument_gimple): Clear tail call flag on
5262 calls.
5263
5264 2015-03-19 Jakub Jelinek <jakub@redhat.com>
5265
5266 PR sanitizer/65400
5267 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
5268 call in the return bb.
5269 (find_split_points): Add RETURN_BB argument, don't call
5270 find_return_bb.
5271 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
5272 if true append TSAN_FUNC_EXIT internal call after the call to
5273 the split off function.
5274 (execute_split_functions): Call find_return_bb here.
5275 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
5276 Adjust find_split_points and split_function calls.
5277
5278 2015-03-18 DJ Delorie <dj@redhat.com>
5279
5280 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
5281 (iorqi3_virt): Likewise.
5282
5283 2015-03-18 Tom de Vries <tom@codesourcery.com>
5284
5285 * tree-parloops.c (parallelize_loops): Make static.
5286 * tree-parloops.h (parallelize_loops): Remove extern declaration.
5287
5288 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
5289
5290 PR middle-end/64491
5291 Revert:
5292 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
5293
5294 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
5295 condition would be removed due to undefined behaviour.
5296
5297 2015-03-18 Martin Liska <mliska@suse.cz>
5298
5299 PR ipa/65432
5300 * cgraph.c (cgraph_node::get_create): Remove unnecessary
5301 xstrdup_for_dump wrapper.
5302 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
5303 sem_item::name.
5304 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
5305 with xstrdup_for_dump.
5306 (sem_variable::equals): Likewise.
5307 (sem_item_optimizer::read_section): Use symtab_node::name instead of
5308 sem_item::name.
5309 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
5310 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
5311 symtab_node::asm_name with xstrdup_for_dump.
5312 (congruence_class::dump): Use symtab_node::name instead of
5313 sem_item::name.
5314 * ipa-icf.h (symtab_node::name): Remove.
5315 (symtab_node::asm_name): Likewise.
5316
5317 2015-03-18 Jakub Jelinek <jakub@redhat.com>
5318
5319 PR tree-optimization/65450
5320 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
5321 function.
5322 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
5323 it instead of duplicate_ssa_name_ptr_info.
5324
5325 PR target/65222
5326 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
5327
5328 2015-03-18 Richard Biener <rguenther@suse.de>
5329
5330 * tree-data-ref.h (struct access_matrix): Remove.
5331 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
5332 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
5333 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
5334 (am_vector_index_for_loop): Likewise.
5335 (struct data_reference): Remove access_matrix member.
5336 (DR_ACCESS_MATRIX): Remove.
5337 (lambda_vector_new): Add comment.
5338 (lambda_matrix_new): Use XOBNEWVEC.
5339
5340 2015-03-18 Richard Biener <rguenther@suse.de>
5341
5342 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
5343 (pass_ch::execute): Cleanup the CFG only if we did sth.
5344 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
5345
5346 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5347
5348 * expmed.c (synth_mult): Use std::swap instead of manually
5349 swapping algorithms.
5350
5351 2015-03-18 Jakub Jelinek <jakub@redhat.com>
5352
5353 PR target/65078
5354 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
5355
5356 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
5357
5358 PR target/65296
5359 * config/avr/avr.opt (-nodevicelib): New option.
5360 * doc/invoke.texi (AVR Options): Document it.
5361 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
5362 libgcc.a, libc.a, libm.a.
5363 * config/avr/specs.h: Same.
5364 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
5365 which don't (directly) depend on the device. Print more help.
5366 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
5367 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
5368 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
5369 case of an error.
5370 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
5371 for specs file name.
5372 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
5373 * config/avr/avr-mcus.def: Adjust initializers and comments.
5374
5375 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
5376
5377 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
5378 DECL_ONE_ONLY to check if decl is one only.
5379 * ipa-split.c (consider_split): Limit splitt of one only functions.
5380
5381 2015-03-16 Jakub Jelinek <jakub@redhat.com>
5382
5383 PR tree-optimization/65427
5384 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
5385 functions.
5386 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
5387
5388 2015-03-16 Marek Polacek <polacek@redhat.com>
5389
5390 * cgraph.h (add_new_static_var): Remove declaration.
5391 * varpool.c (add_new_static_var): Remove function.
5392
5393 2015-03-16 Jakub Jelinek <jakub@redhat.com>
5394
5395 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
5396 instead of vec<tree> * with vec_alloc and release for args.
5397 Adjust all users.
5398
5399 PR middle-end/65431
5400 * omp-low.c (delete_omp_context): Only splay_tree_delete
5401 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
5402 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
5403
5404 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
5405
5406 PR sanitizer/64820
5407 * cfgexpand.c (align_base): New function.
5408 (alloc_stack_frame_space): Call it.
5409 (expand_stack_vars): Align prev_frame to be sure
5410 data->asan_vec elements aligned properly.
5411
5412 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
5413
5414 PR middle-end/65409
5415 * expr.c (store_field): Do not do a direct block copy if the source is
5416 a PARALLEL with BLKmode.
5417
5418 2015-03-16 Tom de Vries <tom@codesourcery.com>
5419
5420 PR middle-end/65414
5421 Revert:
5422 2015-03-12 Tom de Vries <tom@codesourcery.com>
5423
5424 PR rtl-optimization/64895
5425 * lra-lives.c (check_pseudos_live_through_calls): Use
5426 actual_call_used_reg_set instead of call_used_reg_set, if available.
5427
5428 2015-03-16 Alan Modra <amodra@gmail.com>
5429
5430 PR target/63150
5431 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
5432 Modify Z->r bswapdi splitter to use dest in place of scratch.
5433 In r->Z and Z->r bswapdi splitter rename word_high, word_low
5434 to word1, word2 and rearrange logic to suit.
5435 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
5436 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
5437 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
5438 Add one '?' on r->r. Modify Z->r splitter to avoid need for
5439 early clobber.
5440
5441 2015-03-14 Jakub Jelinek <jakub@redhat.com>
5442
5443 PR tree-optimization/65369
5444 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
5445 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
5446 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
5447
5448 PR tree-optimization/65418
5449 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
5450 are casts in the first PLUS_EXPR operand, ensure tbias and
5451 *totallowp are in the inner type.
5452
5453 PR rtl-optimization/65401
5454 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
5455 argument. If true, adjust_address_nv of x with big-endian
5456 correction for the mode widening to GET_MODE (y).
5457 (make_field_assignment): Don't do MEM mode widening here.
5458 Use MEM_P instead of GET_CODE == MEM.
5459
5460 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
5461
5462 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
5463 the external decls.
5464
5465 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5466
5467 PR target/64600
5468 * config/arm/arm.c (arm_gen_constant, AND case): Use
5469 ARM_SIGN_EXTEND when constructing AND mask.
5470
5471 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
5472
5473 * graph.c (print_graph_cfg): Make function names visible and append
5474 parenthesis to it. Also make groups of basic blocks belonging to the
5475 same function visible.
5476
5477 2015-03-12 Richard Biener <rguenther@suse.de>
5478
5479 PR middle-end/44563
5480 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
5481 to avoid quadratic behavior with inline expansion splitting blocks.
5482 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
5483 with the successor if the predecessor will be merged with it.
5484 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
5485 entry block with its successor.
5486
5487 2015-03-13 Richard Biener <rguenther@suse.de>
5488
5489 PR middle-end/44563
5490 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
5491 (cleanup_tree_cfg_1): Do not call it.
5492 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
5493 (fixup_noreturn_call): Mark the stmt as control altering.
5494 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
5495 here.
5496 (pass_data_fixup_cfg): Produce a dump file.
5497 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
5498 (need_noreturn_fixup): New global.
5499 (pass_dominator::execute): Fixup queued noreturn calls.
5500 (optimize_stmt): Queue calls that became noreturn for fixup.
5501 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
5502 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
5503 (el_to_fixup): New global.
5504 (eliminate_dom_walker::before_dom_childre): Queue calls that
5505 became noreturn for fixup.
5506 (eliminate): Fixup queued noreturn calls.
5507 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
5508 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
5509 (substitute_and_fold_dom_walker::before_dom_children): Queue
5510 alls that became noreturn for fixup.
5511 (substitute_and_fold): Fixup queued noreturn calls.
5512
5513 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
5514
5515 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
5516 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
5517 are building; for methods check ODR type of class they belong to if
5518 they may lead to a polymorphic call.
5519 (sem_function::compare_polymorphic_p): Be bit smarter about testing
5520 when function may lead to a polymorphic call.
5521 (sem_function::compare_type_list): Remove.
5522 (sem_variable::equals): Update use of compatible_types_p.
5523 (sem_variable::parse_tree_refs): Remove.
5524 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
5525 cdtor.
5526 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
5527 matching here.
5528 (func_checker::compatible_polymorphic_types_p): Break out from ...
5529 (unc_checker::compatible_types_p): ... here.
5530 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
5531 Declare.
5532 (unc_checker::compatible_types_p): Update.
5533 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
5534 Remove.
5535
5536 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5537
5538 PR rtl-optimization/65235
5539 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
5540 When first element of vec_concat is const_int, calculate its size
5541 using second element.
5542
5543 2015-03-12 Richard Biener <rguenther@suse.de>
5544
5545 PR middle-end/65270
5546 * fold-const.c (operand_equal_p): Fix ordering of resetting
5547 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
5548
5549 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
5550
5551 * config/s390/s390.c (s390_reorg): Move code to output nops after label
5552 to s390_reorg ().
5553 (s390_asm_output_function_label): Likewise.
5554 * config/s390/s390.c (s390_asm_output_function_label):
5555 Fix function label alignment with -mhtopatch.
5556 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
5557 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
5558 ("nop_2_byte"): New define_insn.
5559 ("nop_4_byte"): Likewise.
5560 ("nop_6_byte"): Likewise.
5561 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
5562 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
5563
5564 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
5565
5566 PR target/65103
5567 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
5568 register.
5569
5570 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
5571
5572 PR target/65044
5573 * toplev.c (process_options): Restrict Pointer Bounds Checker
5574 usage with Address Sanitizer.
5575
5576 2015-03-12 Richard Biener <rguenther@suse.de>
5577
5578 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
5579 to split on.
5580 * omp-low.c (expand_omp_taskreg): Split block before removing
5581 the stmt.
5582 (expand_omp_target): Likewise.
5583 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
5584 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
5585 stmt to split_block.
5586
5587 2015-03-12 Tom de Vries <tom@codesourcery.com>
5588
5589 PR rtl-optimization/64895
5590 * lra-lives.c (check_pseudos_live_through_calls): Use
5591 actual_call_used_reg_set instead of call_used_reg_set, if available.
5592
5593 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
5594
5595 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
5596 (cgraph_node::remove): Likewise.
5597 (cgraph_node::get_untransformed_body): Likewise.
5598 * varpool.c (varpool_node::remove): Likewise.
5599 (varpool_node::get_constructor): Add sanity check.
5600
5601 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
5602
5603 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
5604 old GCC versions.
5605 (-fabi-compat-version): Likewise.
5606 (-ffriend-injection): Likewise.
5607 (-Wdeclaration-after-statement): Likewise.
5608 (-fomit-frame-pointer): Likewise.
5609 (-ftree-coalesce-inlined-vars): Likewise.
5610 (-fvisibility=): Likewise.
5611 * doc/extend.texi (Typeof): Likewise.
5612 (Zero Length): Likewise.
5613 (Escaped Newlines): Likewise.
5614 (Compound Literals): Likewise.
5615 (Function Attributes): Likewise.
5616 (Label Attributes): Likewise.
5617 (Type Attributes): Likewise.
5618 (Function Names): Likewise.
5619 (Other Builtins): Likewise.
5620 (Function Specific Option Pragmas): Likewise.
5621 (C++ Interface): Likewise.
5622
5623 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
5624
5625 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
5626
5627 2015-03-11 Marek Polacek <polacek@redhat.com>
5628
5629 PR tree-optimization/65388
5630 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
5631
5632 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
5633
5634 PR target/65296
5635 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
5636 * configure: Regenerate.
5637 * config.in: Regenerate.
5638 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
5639 [-mn-flash]: Document it.
5640 [__AVR_ARCH__]: Document avrtiny.
5641
5642 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
5643 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
5644 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
5645
5646 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5647
5648 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
5649
5650 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5651
5652 PR target/65242
5653 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
5654 allow reloads of PLUS in floating point/VSX registers.
5655
5656 2015-03-11 Junmo Park <junmoz.park@samsung.com>
5657
5658 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
5659 crypto_sha256_fast.
5660 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
5661
5662 2015-03-11 Richard Biener <rguenther@suse.de>
5663
5664 PR tree-optimization/65310
5665 * tree-sra.c (build_ref_for_offset): Also preserve larger
5666 alignment.
5667
5668 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
5669
5670 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
5671
5672 2015-03-10 Jakub Jelinek <jakub@redhat.com>
5673
5674 PR target/65368
5675 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
5676 new define_expand.
5677 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
5678
5679 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
5680
5681 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
5682 (sem_function::equals_wpa): ... here.
5683
5684 2015-03-10 Marek Polacek <polacek@redhat.com>
5685 Jakub Jelinek <jakub@redhat.com>
5686
5687 PR sanitizer/65367
5688 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
5689 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
5690 separately.
5691
5692 2015-03-10 Jakub Jelinek <jakub@redhat.com>
5693
5694 PR target/65286
5695 * config/rs6000/t-linux: For powerpc64* target set
5696 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
5697
5698 2015-03-10 Richard Biener <rguenther@suse.de>
5699
5700 PR middle-end/44563
5701 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
5702 for redirect_all_calls.
5703
5704 2015-03-10 Marek Polacek <polacek@redhat.com>
5705
5706 * gdbinit.in (pcfun): Define and document.
5707
5708 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
5709
5710 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
5711 of libgomp-plugin.h.
5712 (find_target_compiler): Support a case when the path to gcc is
5713 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
5714 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
5715 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
5716 libgomp-plugin.h.
5717 (main): Use GCC_INSTALL_NAME as target_driver_name.
5718 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
5719 define.
5720 (mkoffload.o): Remove obsolete include path and defines.
5721 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
5722
5723 2015-03-10 Richard Biener <rguenther@suse.de>
5724
5725 PR middle-end/63155
5726 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
5727 * tree-ssa-coalesce.c: Include timevar.h.
5728 (attempt_coalesce): Handle graph being NULL.
5729 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
5730 Split out abnormal coalescing to ...
5731 (perform_abnormal_coalescing): ... this function.
5732 (coalesce_ssa_name): Perform abnormal coalescing without computing
5733 live/conflict.
5734 (verify_ssa_coalescing_worker): New function.
5735 (verify_ssa_coalescing): Likewise.
5736
5737 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
5738
5739 PR target/65296
5740 * config.gcc (extra_options) [avr]: Remove.
5741 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
5742 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
5743 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
5744
5745 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
5746 (-mmcu=): Add Var and MissingArgError properties.
5747 (-march=): Remove.
5748 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
5749 * config/avr/t-multilib: Regenerate.
5750 * config/avr/specs.h: New file.
5751 * config/avr/driver-avr.c: New file.
5752 * config/avr/genopt.sh: Remove file.
5753 * config/avr/avr-tables.opt: Remove file.
5754 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
5755 * config/avr/avr-c.c: Same.
5756 * avr-arch.h: Same.
5757 (avr_current_device): Remove proto.
5758 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
5759 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
5760 (EXTRA_SPEC_FUNCTIONS): Define.
5761 (avr_devicespecs_file): New specs function proto.
5762 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
5763 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
5764 (avr_current_device): Remove definition and usage.
5765 (avr_set_core_architecture): New static function.
5766 (avr_option_override): Use it.
5767 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
5768 (mcu_name): New static array.
5769 (comparator, avr_archs_str, avr_mcus_str): New static functions.
5770 (avr_inform_devices, avr_inform_core_architectures): New functions.
5771 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
5772 (avrlibc.h) [WITH_AVRLIBC]: Include.
5773 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
5774 (print_mcu): Rewrite from scratch.
5775 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
5776 Forward to avr-specific specs defined in device-specs file.
5777 * config/avr/t-avr (driver-avr.o): New rule.
5778 (avr-devices.o): Depend on avr-arch.h.
5779 (avr-mcus): No more depend on avr-tables.opt.
5780 (avr-tables.opt): Remove rule.
5781 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
5782
5783 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
5784
5785 * c-family/c.opt (fchkp-use-wrappers): New.
5786 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
5787 (chkp_wrap_function): New.
5788 (chkp_build_instrumented_fndecl): Support wrapped
5789 functions.
5790 * doc/invoke.texi (-fcheck-pointer-bounds): New.
5791 (-fchkp-check-incomplete-type): New.
5792 (-fchkp-first-field-has-own-bounds): New.
5793 (-fchkp-narrow-bounds): New.
5794 (-fchkp-narrow-to-innermost-array): New.
5795 (-fchkp-optimize): New.
5796 (-fchkp-use-fast-string-functions): New.
5797 (-fchkp-use-nochk-string-functions): New.
5798 (-fchkp-use-static-bounds): New.
5799 (-fchkp-use-static-const-bounds): New.
5800 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
5801 (-fchkp-check-read): New.
5802 (-fchkp-check-write): New.
5803 (-fchkp-store-bounds): New.
5804 (-fchkp-instrument-calls): New.
5805 (-fchkp-instrument-marked-only): New.
5806 (-fchkp-use-wrappers): New.
5807 (-static-libmpx): New.
5808 (-static-libmpxwrappers): New.
5809
5810 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
5811
5812 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
5813 (CHKP_SPEC): Add wrappers library.
5814 * c-family/c.opt (static-libmpxwrappers): New.
5815
5816 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
5817
5818 * config/i386/linux-common.h (LIBMPX_LIBS): New.
5819 (LIBMPX_SPEC): New.
5820 (CHKP_SPEC): New.
5821 * gcc.c (CHKP_SPEC): New.
5822 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
5823 * c-family/c.opt (static-libmpx): New.
5824
5825 2015-03-10 Richard Biener <rguenther@suse.de>
5826
5827 PR middle-end/44563
5828 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
5829 for compare_type.
5830 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
5831 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
5832 (cgraph_add_edge_to_call_site_hash): Likewise.
5833 (cgraph_node::get_edge): Likewise.
5834 (cgraph_edge::set_call_stmt): Likewise.
5835 (cgraph_edge::remove_caller): Likewise.
5836
5837 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
5838
5839 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
5840 (callee_saved_gpr_regs_size): ... this.
5841 (callee_saved_regs_first_regno): Rename to ...
5842 (callee_saved_first_gpr_regno): ... this.
5843 (callee_saved_regs_last_regno) Rename to ...
5844 (callee_saved_last_gpr_regno): ... this.
5845 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
5846 variables.
5847 (nds32_initial_elimination_offset): Likewise.
5848 (nds32_expand_prologue): Likewise.
5849 (nds32_expand_epilogue): Likewise.
5850 (nds32_expand_prologue_v3push): Likewise.
5851 (nds32_expand_epilogue_v3pop): Likewise.
5852 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
5853 Adjust renamed variables.
5854 (nds32_output_stack_pop): Likewise.
5855
5856 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
5857
5858 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
5859 code in comment.
5860
5861 2015-03-10 Jakub Jelinek <jakub@redhat.com>
5862
5863 PR rtl-optimization/65321
5864 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
5865 than shift mode.
5866 * var-tracking.c (use_narrower_mode): Likewise.
5867
5868 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
5869
5870 PR tree-optimization/65355
5871 * varasm.c (notice_global_symbol): Do not produce RTL.
5872 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
5873 anchor.
5874 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
5875 check for section anchors.
5876
5877 2015-03-10 Alan Modra <amodra@gmail.com>
5878
5879 PR target/65286
5880 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
5881 to be single-arch by default. Set cpu_is_64bit for powerpc64
5882 given --with-cpu=native.
5883 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
5884 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
5885 and powerpc64le.
5886 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
5887 rs6000_isa_flags rather than TARGET_64BIT.
5888
5889 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
5890 Kaz Kojima <kkojima@gcc.gnu.org>
5891
5892 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
5893
5894 2015-03-09 Jakub Jelinek <jakub@redhat.com>
5895
5896 PR lto/65361
5897 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
5898 on a TREE_BINFO, instead use BINFO_TYPE.
5899
5900 2015-03-09 Richard Biener <rguenther@suse.de>
5901
5902 PR middle-end/65270
5903 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
5904 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
5905 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
5906 of that. When comparing dereferences compare alignment.
5907 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
5908
5909 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
5910
5911 * ipa-inline-analysis.c (check_callers): Check
5912 node->can_remove_if_no_direct_calls_and_refs_p.
5913 (growth_likely_positive): Reorganize to call
5914 can_remove_if_no_direct_calls_p later.
5915 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
5916 will_be_removed_from_program_if_no_direct_calls_p): Add
5917 will_inline parameter.
5918 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
5919 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
5920 Handle inliner case correctly.
5921
5922 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
5923
5924 PR tree-optimization/63743
5925 * cfgexpand.c (reorder_operands): Also reorder if only second operand
5926 had its definition forwarded by TER.
5927
5928 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
5929
5930 PR lto/65316
5931 * ipa-utils.h (types_odr_comparable): Add strict argument.
5932 * ipa-devirt.c: Fix whitespace;
5933 (odr_hasher): Remove.
5934 (odr_name_hasher, odr_vtable_hasher): New hashers.
5935 (can_be_name_hashed_p): New predicate.
5936 (hash_type_name): remove.
5937 (hash_odr_name): New.
5938 (odr_name_hasher::hash): new.
5939 (can_be_vtable_hashed_p): New.
5940 (hash_odr_vtable): New.
5941 (odr_vtable_hasher::hash): New.
5942 (types_same_for_odr): Add strict parameter.
5943 (types_odr_comparable): Likewise.
5944 (odr_name_hasher::equal): New.
5945 (odr_vtable_hasher::equal): New.
5946 (odr_name_hasher::remove): New.
5947 (odr_hash_type): Change to hash_table<odr_name_hasher>.
5948 (odr_vtable_hash_type): New.
5949 (odr_vtable_hash): New.
5950 (odr_subtypes_equivalent_p): Do strict comparsion.
5951 (add_type_duplicate): Merge type names; cleanup; avoid type
5952 duplicates.
5953 (register_odr_type): Initialize vtable hash.
5954 (build_type_inheritance_graph): Likewise
5955 (get_odr_type): Reorg to use two hashes.
5956 (dump_possible_polymorphic_call_targets): Move sanity check after debug
5957 output.
5958 (ipa_devirt): Dump type_inheritance_graph.
5959 (types_same_for_odr): Add strict mode.
5960
5961 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
5962
5963 PR ipa/65334
5964 * cgraph.h (symtab_node): Add definition_alignment,
5965 can_increase_alignment_p and increase_alignment.
5966 * symtab.c (symtab_node::can_increase_alignment_p,
5967 increase_alignment_1, symtab_node::increase_alignment,
5968 symtab_node::definition_alignment): New.
5969 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
5970 can_increase_alignment_p.
5971 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
5972 * tree-vect-stmts.c (ensure_base_align): Likewise.
5973 * varasm.c (function_section_1): Use definition_alignment.
5974 (assemble_start_function): Likewise.
5975 (emit_local): likewise.
5976 (build_constant_desc): Likewsie.
5977 (output_constant_def_contents): Likewise.
5978 (place_block_symbol): Likewise.
5979 (output_object_block): Likewise.
5980
5981 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
5982
5983 PR ipa/65316
5984 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
5985 when outputting debug.
5986
5987 2015-03-07 Marek Polacek <polacek@redhat.com>
5988 Martin Uecker <uecker@eecs.berkeley.edu>
5989
5990 PR sanitizer/65280
5991 * doc/invoke.texi: Update description of -fsanitize=bounds.
5992
5993 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
5994
5995 * tree-ssa-phiopt.c (neg_replacement): Remove.
5996 (tree_ssa_phiopt_worker): Remove negate optimization.
5997
5998 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
5999
6000 PR ipa/65302
6001 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
6002
6003 2015-03-06 Richard Biener <rguenther@suse.de>
6004
6005 PR middle-end/64928
6006 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
6007 and liveout_obstack members.
6008 (calculate_live_on_exit): Remove.
6009 (calculate_live_ranges): Change declaration.
6010 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
6011 (new_tree_live_info): Adjust.
6012 (calculate_live_ranges): Delete livein when not wanted.
6013 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
6014 Deal with partly deleted live info.
6015 (loe_visit_block): Remove temporary bitmap by using
6016 bitmap_ior_and_compl_into.
6017 (live_worklist): Adjust accordingly.
6018 (calculate_live_on_exit): Make static.
6019 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
6020 we do not need livein.
6021
6022 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
6023
6024 * real.c (real_from_string): Fix typo in assertion.
6025
6026 2015-03-06 Alex Velenko <alex.velenko@arm.com>
6027
6028 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
6029 the patch.
6030
6031 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
6032
6033 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
6034
6035 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
6036
6037 PR target/64342
6038 * lra-assigns.c (find_hard_regno_for): Rename to
6039 find_hard_regno_for_1. Add a new parameter.
6040 (find_hard_regno_for): New function using find_hard_regno_for_1.
6041
6042 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
6043
6044 PR rtl-optimization/65067
6045 * expmed.c (store_bit_field, extract_bit_field): Reworked the
6046 strict volatile bitfield handling.
6047
6048 2015-03-05 Martin Liska <mliska@suse.cz>
6049
6050 PR ipa/65318
6051 * ipa-icf.c (sem_variable::equals): Compare variables types.
6052
6053 2015-03-05 Richard Henderson <rth@redhat.com>
6054
6055 PR target/65121
6056 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
6057 correctly check weak symbol binding.
6058
6059 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
6060
6061 PR middle-end/65315
6062 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
6063 needed alignment.
6064
6065 2015-03-05 Martin Liska <mliska@suse.cz>
6066
6067 * ipa-inline.c (inline_small_functions): Set default value to
6068 prevent warning during bootstrap.
6069 * tree.h: Add pragma guard that ignores false positives during
6070 bootstrap.
6071
6072 2015-03-05 Richard Biener <rguenther@suse.de>
6073
6074 PR tree-optimization/65310
6075 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6076 Properly preserve alignment of the base of the access.
6077
6078 2015-03-05 Richard Biener <rguenther@suse.de>
6079
6080 PR ipa/65270
6081 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
6082 Compare dependence info.
6083
6084 2015-03-05 Richard Biener <rguenther@suse.de>
6085
6086 PR middle-end/65233
6087 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
6088 tree-into-ssa.h.
6089 (walk_ssa_copies): Revert last chage. Instead do not walk
6090 SSA names registered for SSA update.
6091
6092 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
6093
6094 PR ipa/65270
6095 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
6096 vtable references for their containing type.
6097 (sem_function::equals_wpa): Compare TYPE_RESTRICT
6098 and type attributes.
6099
6100 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
6101
6102 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
6103 before negating it.
6104 * stor-layout.c (finalize_record_size): Revert latest change.
6105
6106 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
6107
6108 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
6109
6110 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
6111
6112 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
6113 for correct comdat handling.
6114 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
6115 Likewise.
6116 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
6117 (used_from_object_file_p_worker): Remove.
6118 (cgraph_node::only_called_directly_or_alised): Add
6119 used_from_object_file_p.
6120 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
6121 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
6122 can_remove_if_no_direct_calls_and_refs_p.
6123
6124 2015-03-04 Nick Clifton <nickc@redhat.com>
6125
6126 * config/rl78/rl78.h (enum reg_class): Remove real registers from
6127 General register class.
6128 * config/rl78/rl78-real.md: Replace general register constraints
6129 with real+virtual register constraints.
6130
6131 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6132
6133 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
6134 from checking for -mhtm option.
6135
6136 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
6137
6138 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
6139 (struct ipa_sra_check_caller_data): Add has_thunk field.
6140 (ipa_sra_check_caller): Check for thunk.
6141 (ipa_sra_preliminary_function_checks): Give up on function with
6142 thunks.
6143 (ipa_early_sra): Use call_for_symbol_and_aliases.
6144
6145 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
6146
6147 PR target/65249
6148 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
6149 called for __stack_chk_guard symbol.
6150
6151 2015-03-03 DJ Delorie <dj@redhat.com>
6152
6153 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
6154 inc/dec.
6155 (*addhi3_real): Likewise.
6156 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
6157 pattern to match incrementing memory.
6158 * config/rl78/predicates.md (rl78_1_2_operand): New.
6159 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
6160 it's the same and only mem.
6161 (rl78_alloc_physical_registers_op2): If there's effectively only
6162 one MEM, transcode it into HL.
6163 (rl78_far_p): Reject addresses that aren't legitimate.
6164
6165 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
6166
6167 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
6168 negating it.
6169
6170 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
6171
6172 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
6173
6174 Implement call0 ABI for xtensa
6175 * config/xtensa/constraints.md ("a" constraint): Include stack
6176 pointer in case of call0 ABI.
6177 ("q" constraint): Make empty in case of call0 ABI.
6178 ("D" constraint): Include stack pointer in case of call0 ABI.
6179 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
6180 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
6181 prototypes.
6182 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
6183 variable.
6184 (xtensa_regno_to_class): Make it a local variable in the
6185 function xtensa_regno_to_class.
6186 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
6187 macro, function prototype and implementation.
6188 (reg_nonleaf_alloc_order): Make it a local variable in the
6189 function order_regs_for_local_alloc.
6190 (xtensa_conditional_register_usage): New function.
6191 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
6192 (xtensa_valid_move): Allow direct moves to stack pointer
6193 register in call0 ABI.
6194 (xtensa_setup_frame_addresses): Only spill register windows in
6195 windowed ABI.
6196 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
6197 call0 ABI respectively.
6198 (xtensa_function_arg_1): Only mark a7 register for copying in
6199 windowed ABI.
6200 (xtensa_call_save_reg): New function.
6201 (compute_frame_size): Add space for callee saved register
6202 storage to the frame size in call0 ABI.
6203 (xtensa_expand_prologue): Generate code to set up stack frame
6204 and save callee-saved registers in call0 ABI.
6205 (xtensa_expand_epilogue): New function.
6206 (xtensa_set_return_address): New function.
6207 (xtensa_return_addr): Calculate return address in call0 ABI.
6208 (xtensa_builtin_saveregs): Only mark a7 register for copying and
6209 emit copying code in windowed ABI.
6210 (order_regs_for_local_alloc): Add preferred register allocation
6211 order for non-leaf function in call0 ABI.
6212 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
6213 (xtensa_asm_trampoline_template): Add trampoline generation for
6214 call0 ABI.
6215 (xtensa_trampoline_init): Add trampoline initialization for
6216 call0 ABI.
6217 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
6218 functions.
6219 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
6220 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
6221 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
6222 ABI call-used registers.
6223 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
6224 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
6225 call0 ABI.
6226 (REG_CLASS_CONTENTS): Include all registers into the preferred
6227 reload registers set, adjust the set in the
6228 xtensa_conditional_register_usage.
6229 (xtensa_regno_to_class): Drop variable declaration.
6230 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
6231 function.
6232 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
6233 respectively.
6234 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
6235 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
6236 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
6237 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
6238 location in call0 ABI.
6239 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
6240 stack adjustment size when handling exception.
6241 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
6242 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
6243 definitions.
6244 ("return" pattern): Generate ret.n/ret in call0 ABI.
6245 ("epilogue" pattern): Expand epilogue.
6246 ("nonlocal_goto" pattern): Use default in call0 ABI.
6247 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
6248 emit eh_set_a0_* depending on ABI.
6249 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
6250 ("eh_set_a0_call0", "blockage"): New patterns.
6251
6252 2015-03-03 Martin Liska <mliska@suse.cz>
6253
6254 PR ipa/65287
6255 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
6256
6257 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6258
6259 PR 65138/target
6260 * config/rs6000/rs6000-tables.opt: Regenerate table.
6261
6262 2015-03-03 Renlin Li <renlin.li@arm.com>
6263
6264 * doc/md.texi (@item ^): Change ? into ^.
6265
6266 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
6267
6268 * doc/tm.texi: Regenerated.
6269
6270 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
6271
6272 * builtins.c (expand_builtin_return_addr): Add
6273 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
6274 surrounding #ifdef.
6275 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
6276 definition to 1.
6277 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
6278 Likewise.
6279 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
6280 undefined.
6281 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
6282 paragraph.
6283
6284 2015-03-03 Martin Jambor <mjambor@suse.cz>
6285 Eric Botcazou <ebotcazou@adacore.com>
6286
6287 * tree-sra.c (ipa_sra_check_caller_data): New type.
6288 (has_caller_p): Removed.
6289 (ipa_sra_check_caller): New function.
6290 (ipa_sra_preliminary_function_checks): Use it.
6291
6292 2015-03-03 Martin Liska <mliska@suse.cz>
6293
6294 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
6295 instead of if branch.
6296
6297 2015-03-03 Martin Liska <mliska@suse.cz>
6298
6299 PR ipa/65282
6300 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
6301
6302 2015-03-23 Jeff Law <law@redhat.com>
6303
6304 PR tree-optimization/65241
6305 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
6306 hash table if INSERT is true.
6307
6308 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
6309
6310 PR target/65296
6311 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
6312
6313 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
6314
6315 PR target/64331
6316 * config/avr/avr.c (context.h, tree-pass.h): Include them.
6317 (avr_pass_data_recompute_notes): New static variable.
6318 (avr_pass_recompute_notes): New class.
6319 (avr_register_passes): New static function.
6320 (avr_option_override): Call it.
6321
6322 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
6323
6324 Fix various problems with specs file generation.
6325
6326 PR target/65296
6327 * config.gcc (extra_gcc_objs) [avr]: Remove.
6328 * config/avr/driver-avr.c: Remove file.
6329 * config/avr/t-avr (driver-avr.o): Remove rule.
6330 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
6331 INCLUDES to build. Depend on TM_H.
6332 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
6333 build warnings. Fix non-matching types and non-existing %-codes.
6334 (tm.h): Include.
6335 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
6336 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
6337 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
6338 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
6339 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
6340 (LIBGCC_SPEC): Remove definitions.
6341
6342 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
6343
6344 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
6345 to create a register in testing mode.
6346
6347 2015-03-03 Martin Liska <mliska@suse.cz>
6348 Jan Hubicka <hubicka@ucw.cz>
6349
6350 PR ipa/65263
6351 * cgraph.c (cgraph_node::has_thunk_p): New function.
6352 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
6353 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
6354 (sem_function::merge): Assert is changed.
6355
6356 2015-03-03 Martin Liska <mliska@suse.cz>
6357 Martin Jambor <mjambor@suse.cz>
6358
6359 PR ipa/65087
6360 * ipa-icf.c (sem_item_optimizer::execute): Change function
6361 return value to boolean.
6362 (sem_item_optimizer::merge_classes): Likewise.
6363 (ipa_icf_driver): Return TODO_remove_functions in case there's
6364 a merge operation processed.
6365 * ipa-icf.h: Change function return value to boolean.
6366
6367 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6368
6369 PR 65138/target
6370 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
6371 processor type for 64-bit little endian PowerPC.
6372
6373 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
6374 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
6375 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
6376 printing built-in mask so it does not pass NULL pointers.
6377
6378 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
6379 -mcpu=powerpc64le.
6380
6381 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
6382
6383 PR target/58158
6384 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
6385 !ISA_HAS_FP_CONDMOVE.
6386
6387 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
6388
6389 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
6390 reload_completed.
6391
6392 2015-03-02 Ulrich Drepper <drepper@gmail.com>
6393
6394 * doc/invoke.texi (Options for Code Generation Conventions):
6395 Fix URL of DSO paper.
6396
6397 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
6398
6399 PR ipa/65130
6400 * ipa-inline.c (check_callers): Looks for recursion.
6401 (inline_to_all_callers): Give up on uninlinable or recursive edges.
6402 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
6403 summary of inline clones.
6404 (do_estimate_growth_1): Fix recursion check.
6405
6406 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
6407
6408 PR ipa/64988
6409 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
6410 comdat groups.
6411
6412 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
6413 Aldy Hernandez <aldyh@redhat.com>
6414
6415 PR lto/65276
6416 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
6417 when checking TYPE_BINFO.
6418
6419 2015-03-02 Richard Biener <rguenther@suse.de>
6420
6421 PR ipa/65270
6422 * ipa-icf-gimple.c: Include builtins.h.
6423 (func_checker::compare_memory_operand): Compare base alignment.
6424
6425 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
6426
6427 PR target/65184
6428 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
6429 are never passed by reference.
6430
6431 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
6432
6433 PR target/65183
6434 * tree-chkp.c (chkp_check_lower): Don't check against
6435 zero bounds for already instrumented functions.
6436 (chkp_check_upper): Likewise.
6437 (chkp_fini): Clean pass local data to avoid wrong reusage.
6438
6439 2015-02-28 Martin Liska <mliska@suse.cz>
6440 Jan Hubicka <hubicka@ucw.cz>
6441
6442 * ipa-icf.c (sem_variable::equals): Improve debug output;
6443 get variable constructor.
6444 (sem_variable::parse): Do not filter out too early; give up on
6445 volatile and register vars.
6446 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
6447 variables.
6448 * ipa-icf.h (sem_variable::init): Do not set ctor.
6449 (sem_variable::ctor): Remove.
6450
6451 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
6452
6453 PR middle-end/65233
6454 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
6455
6456 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
6457
6458 * ipa-icf.c: Include stor-layout.h
6459 (sem_function::compare_cgraph_references): Rename to ...
6460 (sem_item::compare_cgraph_references): ... this one.
6461 (sem_variable::equals_wpa): New function
6462 (sem_variable::equals): Do not check stuff already verified by
6463 equals_wpa.
6464 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
6465 * ipa-icf.h (sem_item): Add compare_cgraph_references.
6466 (sem_function): Remove compare_cgraph_references.
6467 (sem_variable): Turns equals_wpa into non-inline.
6468
6469 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
6470
6471 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
6472 (sem_item::add_expr): New function.
6473 (sem_function::hash_stmt): Handle operands of most statements.
6474 (sem_variable::get_hash): Hash the actual constructor.
6475 * ipa-icf.h (sem_item): Add add_expr.
6476 (sem_function): Update prototype of hash_stmt
6477
6478 2015-02-28 Martin Liska <mliska@suse.cz>
6479 Jan Hubicka <hubicka@ucw.cz>
6480
6481 PR ipa/65245
6482 * ipa-icf-gimple.c (func_checker::compare_function_decl):
6483 Remove.
6484 (func_checker::compare_variable_decl): Skip symtab vars.
6485 (func_checker::compare_cst_or_decl): Update.
6486 * ipa-icf.c (sem_function::parse): Do not consider aliases.
6487 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
6488 use correct symtab predicates.
6489 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
6490 (sem_variable::parse): Update comment.
6491 (sem_item_optimizer::build_graph): Consider ultimate aliases
6492 for references.
6493
6494 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
6495
6496 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
6497 of OBJ_TYPE_REF.
6498
6499 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
6500
6501 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
6502 (sem_variable::merge) Likewise.
6503
6504 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
6505
6506 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
6507 target; also match flag_ipa_devirt.
6508
6509 2015-03-01 Martin Liska <mliska@suse.cz>
6510 Jan Hubicka <hubicka@ucw.cz>
6511
6512 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
6513 Validate variable alignment.
6514 * ipa-icf.c (sem_function::equals_private): Be more precise
6515 about non-common function attributes.
6516 (sem_variable::equals): Likewise.
6517
6518 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
6519
6520 PR ipa/65237
6521 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
6522 across COMDAT group boundary.
6523
6524 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
6525
6526 PR ipa/65232
6527 * ipa-icf.c (clear_decl_rtl): New function.
6528 (sem_function::merge): Clear RTL before forming alias.
6529 (sem_variable::merge): Clear RTL before forming alias.
6530
6531 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
6532
6533 PR ipa/65236
6534 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
6535
6536 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
6537
6538 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
6539 to neon_to_gp<q>.
6540
6541 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
6542
6543 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
6544 a typo in the description.
6545
6546 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
6547
6548 PR target/64317
6549 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
6550 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
6551 * lra-constraints.c: Include "params.h".
6552 (EBB_PROBABILITY_CUTOFF): Use
6553 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
6554 (lra_inheritance): Use '<' instead of '<=' for
6555 EBB_PROBABILITY_CUTOFF.
6556 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
6557 Document change.
6558
6559 2015-02-27 Martin Liska <mliska@suse.cz>
6560
6561 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
6562 vector length condition.
6563
6564 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
6565
6566 * doc/extend.texi (x86 transactional memory intrinsics):
6567 Reorganize discussion of _xbegin. Clarify that the return
6568 value is a bit mask. Expand example and move to end of section.
6569
6570 2015-02-26 Jakub Jelinek <jakub@redhat.com>
6571 Aldy Hernandez <aldyh@redhat.com>
6572
6573 PR rtl-optimization/65220
6574 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
6575
6576 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
6577
6578 PR target/65032
6579 * lra-remat.c (update_scratch_ops): New.
6580 (do_remat): Call it.
6581 * lra.c (lra_register_new_scratch_op): New. Take code from ...
6582 (remove_scratches): ... here.
6583 * lra-int.h (lra_register_new_scratch_op): New prototype.
6584
6585 2015-02-27 Marek Polacek <polacek@redhat.com>
6586
6587 PR c/65040
6588 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
6589 -Wformat-signedness anymore.
6590
6591 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6592
6593 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
6594 function.
6595 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
6596
6597 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6598
6599 * config/s390/s390.c (enum s390_builtin):
6600 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
6601 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
6602 (s390_init_builtins): Generate new builtin functions.
6603 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
6604 (s390_sfpc, s390_efpc): New pattern definitions.
6605
6606 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6607
6608 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
6609 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
6610 (s390_builtin_decls): New array.
6611 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
6612 (s390_builtin_decl): New function.
6613 (TARGET_BUILTIN_DECL): Define macro.
6614
6615 2015-02-27 Richard Biener <rguenther@suse.de>
6616
6617 PR middle-end/63175
6618 * builtins.c (get_object_alignment_2): Make sure to re-apply
6619 the ANDed mask after recursing to its operand gets us a new
6620 misalignment bit position.
6621
6622 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
6623 Martin Liska <mliska@suse.cz>
6624
6625 PR bootstrap/65150
6626 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
6627 Use address_matters_p.
6628 (redirect_all_callers, set_addressable): New functions.
6629 (sem_function::merge): Reorganize and fix merging issues.
6630 (sem_variable::merge): Likewise.
6631 (sem_variable::compare_sections): Remove.
6632 * common.opt (fmerge-all-constants, fmerge-constants): Remove
6633 Optimization flag.
6634 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
6635 redirect them.
6636 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
6637 decl is used.
6638 (address_matters_1): New function.
6639 (symtab_node::address_matters_p): New function.
6640 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
6641 check for merged flag.
6642 * cgraph.h (address_matters_p): Declare.
6643 (symtab_node::address_taken_from_non_vtable_p): Remove.
6644 (symtab_node::address_can_be_compared_p): New method.
6645 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
6646 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
6647 Remove.
6648 (comdat_can_be_unshared_p_1) Use address_matters_p.
6649 (update_vtable_references): Fix formating.
6650 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
6651 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
6652 * cgraphclones.c: Preserve merged and icf_merged flags.
6653
6654 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
6655
6656 * doc/extend.texi (Function Attributes): Fix spelling and typos.
6657 (Label Attributes): Likewise.
6658 (Cilk Plus Builtins): Likewise.
6659 (ARC SIMD Built-in Functions): Likewise.
6660 (ARM C Language Extensions (ACLE)): Likewise.
6661 (PowerPC Built-in Functions): Likewise.
6662 (PowerPC Hardware Transactional Memory Built-in Functions):
6663 Likewise.
6664
6665 2015-02-26 Jakub Jelinek <jakub@redhat.com>
6666
6667 PR tree-optimization/65216
6668 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
6669 new stmt and new SSA_NAME for lhs whenever the arguments have
6670 changed and weren't just swapped. Fix comment typo.
6671
6672 PR tree-optimization/65215
6673 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
6674 for PDP endian targets.
6675 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
6676 Fix up formatting issues.
6677 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
6678 size is smaller than the original, adjust MEM_REF offset by the
6679 difference of sizes. Use is_gimple_mem_ref_addr instead of
6680 is_gimple_min_invariant test to avoid adding address temporaries.
6681
6682 2015-02-26 Martin Liska <mliska@suse.cz>
6683 Jan Hubicka <hubicka@ucw.cz>
6684
6685 PR ipa/64693
6686 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
6687 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
6688 (sem_item_optimizer::process_cong_reduction): Include division by
6689 sensitive references.
6690 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
6691 * ipa-ref.c (ipa_ref::address_matters_p): New function.
6692 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
6693
6694 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
6695
6696 PR target/65192
6697 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
6698 Remove.
6699 * config/avr/avr.c: Same.
6700 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
6701 Refuse any constant address not in 0..0xbf.
6702 * config/avr/avr.md (*mov<mode>, *movsf): Remove
6703 tiny_valid_direct_memory_access_range from insn conditions.
6704 (mov<mode>): Don't special-case expansion of avrtiny addresses.
6705
6706 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
6707
6708 PR target/61142
6709 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
6710 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
6711 * config/sh/predicates.md (const_logical_operand): New predicate.
6712 * config/sh/sh.md: Add new peephole2 patterns.
6713
6714 2015-02-26 Marek Polacek <polacek@redhat.com>
6715
6716 PR ipa/65008
6717 * ipa-inline.c (early_inliner): Recompute inline parameters.
6718
6719 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6720
6721 PR target/65171
6722 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
6723 instructions with TImode operands are included in the analysis.
6724
6725 2015-02-26 Sebastian Pop <s.pop@samsung.com>
6726
6727 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
6728 of an EDGE_FSM_THREAD.
6729
6730 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
6731
6732 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
6733
6734 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
6735
6736 PR debug/46102
6737 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
6738
6739 2015-02-26 Sebastian Pop <s.pop@samsung.com>
6740
6741 PR tree-optimization/65048
6742 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
6743 (thread_through_all_blocks): Call valid_jump_thread_path.
6744 Remove invalid FSM jump-thread paths.
6745
6746 2015-02-26 Jakub Jelinek <jakub@redhat.com>
6747
6748 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
6749 (ipa_write_optimization_summaries): Likewise.
6750 * tree-streamer.h: Include data-streamer.h.
6751 (streamer_mode_table): Declare extern variable.
6752 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
6753 * lto-streamer-out.c (lto_output_init_mode_table,
6754 lto_write_mode_table): New functions.
6755 (produce_asm_for_decls): Call lto_write_mode_table when streaming
6756 offloading LTO.
6757 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
6758 (lto_create_simple_input_block): Add mode_table argument to the
6759 lto_input_block constructors.
6760 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
6761 Likewise.
6762 * data-streamer-in.c (string_for_index): Likewise.
6763 * ipa-inline-analysis.c (inline_read_section): Likewise.
6764 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
6765 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6766 * lto-streamer-in.c (lto_read_body_or_constructor,
6767 lto_input_toplevel_asms): Likewise.
6768 (lto_input_mode_table): New function.
6769 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
6770 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
6771 Use bp_pack_machine_mode.
6772 * real.h (struct real_format): Add name field.
6773 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
6774 (class lto_input_block): Add mode_table member.
6775 (lto_input_block::lto_input_block): Add mode_table_ argument,
6776 initialize mode_table.
6777 (struct lto_file_decl_data): Add mode_table field.
6778 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
6779 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
6780 unpack_ts_decl_common_value_fields,
6781 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
6782 * tree-streamer.c (streamer_mode_table): New variable.
6783 * real.c (ieee_single_format, mips_single_format,
6784 motorola_single_format, spu_single_format, ieee_double_format,
6785 mips_double_format, motorola_double_format,
6786 ieee_extended_motorola_format, ieee_extended_intel_96_format,
6787 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
6788 ibm_extended_format, mips_extended_format, ieee_quad_format,
6789 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
6790 decimal_single_format, decimal_double_format, decimal_quad_format,
6791 ieee_half_format, arm_half_format, real_internal_format): Add name
6792 field.
6793 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
6794
6795 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
6796
6797 PR target/65161
6798 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
6799 reordering for selective scheduling.
6800
6801 2015-02-26 Terry Guo <terry.guo@arm.com>
6802
6803 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
6804 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
6805 (arm_arch_no_volatile_ce): Declare new global variable.
6806 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
6807 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
6808 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
6809 (TARGET_NO_VOLATILE_CE): New macro.
6810 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
6811 volatile memory access in IT block
6812
6813 2015-02-25 Kai Tietz <ktietz@redhat.com>
6814
6815 PR tree-optimization/61917
6816 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
6817 that reduc_def_stmt is null.
6818
6819 2015-02-25 Martin Liska <mliska@suse.cz>
6820
6821 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
6822 hard register variables.
6823
6824 2015-02-25 Kai Tietz <ktietz@redhat.com>
6825
6826 PR target/64212
6827 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
6828 (symtab::noninterposable_alias): Likewise.
6829
6830 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
6831
6832 PR target/65167
6833 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
6834 bounds registers.
6835 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
6836
6837 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
6838
6839 PR target/64997
6840 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
6841 as split condition; force split via '#' in output pattern.
6842
6843 2015-02-25 Richard Biener <rguenther@suse.de>
6844 Kai Tietz <ktietz@redhat.com>
6845
6846 PR tree-optimization/61917
6847 * tree-vect-loop.c (vectorizable_reduction): Allow
6848 vect_internal_def without reduction to exit graceful.
6849
6850 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
6851
6852 PR target/65196
6853 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
6854 only with NONDEBUG_INSN_P.
6855
6856 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
6857
6858 Use variadic macros with avr-log.c.
6859
6860 * config/avr/avr-protos.h (avr_vdump): New prototype.
6861 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
6862 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
6863 * config/avr/avr-log.c: Adjust comments.
6864 (avr_vdump): New function.
6865 (avr_vadump): Pass caller as 2nd argument instead of format string.
6866 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
6867 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
6868
6869 2015-02-25 Jakub Jelinek <jakub@redhat.com>
6870
6871 PR lto/64374
6872 * target.def (target_option_stream_in): New target hook.
6873 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
6874 targetm.target_option.post_stream_in if non-NULL.
6875 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
6876 * doc/tm.texi: Updated.
6877 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
6878 function.
6879 (TARGET_OPTION_POST_STREAM_IN): Redefine.
6880
6881 2015-02-24 Jeff Law <law@redhat.com>
6882
6883 PR target/65117
6884 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
6885 of operand 0 and operand 2.
6886 (zero_cost_loop_end, loop_end): Similarly.
6887
6888 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
6889
6890 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
6891 CXX_MEM_STAT_INFO.
6892
6893 2015-02-24 DJ Delorie <dj@redhat.com>
6894
6895 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
6896 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
6897 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
6898 instead of hardcoding SImode.
6899
6900 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
6901
6902 * omp-low.c (create_omp_child_function): Tag entrypoint
6903 functions with a special attribute.
6904
6905 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6906
6907 PR target/65058
6908 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
6909
6910 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
6911
6912 PR rtl-optimization/65123
6913 * lra-remat.c (operand_to_remat): Check hard regs in insn
6914 definition too.
6915
6916 2015-02-24 Nick Clifton <nickc@redhat.com>
6917
6918 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
6919 to the assembler.
6920
6921 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
6922
6923 PR libgomp/64625
6924 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
6925 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
6926 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
6927 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
6928 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
6929 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
6930 (BUILT_IN_GOACC_PARALLEL): Specify as
6931 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
6932 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
6933 * builtin-types.def
6934 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
6935 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
6936 Remove function types.
6937 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
6938 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
6939 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
6940 New function types.
6941
6942 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
6943
6944 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
6945
6946 2015-02-24 Jakub Jelinek <jakub@redhat.com>
6947
6948 PR tree-optimization/65170
6949 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
6950 if val[1] < 0, clear also val[2] and return 3.
6951
6952 2015-02-24 Alan Modra <amodra@gmail.com>
6953
6954 PR target/65172
6955 * config/rs6000/rs6000.c (get_memref_parts): Only return true
6956 when *base is a reg. Handle nested plus addresses. Simplify
6957 pre_modify test.
6958
6959 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
6960
6961 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
6962 use natural alignment when optimizing for size.
6963
6964 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
6965
6966 PR target/65153
6967 * config/sh/sh.md (movsicc_true+3): Remove peephole.
6968 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
6969 * config/sh/sh.c (replace_n_hard_rtx): Remove.
6970
6971 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
6972
6973 PR fortran/63427
6974 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
6975 too big for a wide_int. Implement missing wrapping operation.
6976
6977 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
6978
6979 PR target/65163
6980 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
6981 instead of const_int 4294901760.
6982
6983 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
6984
6985 * config/avr/t-avr: Fix typo in comment.
6986
6987 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
6988
6989 * doc/rtl.texi (fma): Clarify documentation.
6990
6991 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
6992
6993 PR debug/58123
6994 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
6995 over input_location.
6996
6997 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
6998
6999 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
7000 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
7001 restrict alignments to absolute_biggest_alignment.
7002 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
7003 Define.
7004 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
7005 * doc/tm.texi: Regenerate.
7006 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
7007
7008 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
7009
7010 PR target/64172
7011 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
7012
7013 2015-02-20 Richard Biener <rguenther@suse.de>
7014
7015 PR tree-optimization/65136
7016 * tree-ssa-propagate.c: Include cfgloop.h.
7017 (replace_phi_args_in): Avoid replacing loop latch edge PHI
7018 arguments with constants.
7019
7020 2015-02-20 Jakub Jelinek <jakub@redhat.com>
7021 Martin Liska <mliska@suse.cz>
7022
7023 PR target/63892
7024 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
7025 don't try to create_thunk if stdarg_p. If
7026 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
7027 redirect_callers if possible.
7028 (sem_item_optimizer::execute): Call unregister_hooks here...
7029 (ipa_icf_driver): ... instead of here.
7030
7031 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7032
7033 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
7034 Mark operand 0 as earlyclobber in 2nd alternative.
7035 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
7036 Write negated shift amount into QI lowpart operand 0 and use it
7037 in the shift step.
7038 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
7039
7040 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
7041
7042 * cgraph.h (clone_function_name_1): Declare.
7043 * cgraphclones.c (clone_function_name_1): New function.
7044 (clone_function_name): Use it.
7045 * lto-partition.c: Include "stringpool.h".
7046 (must_not_rename, maybe_rewrite_identifier)
7047 (validize_symbol_for_target): New static functions.
7048 (privatize_symbol_name): Use must_not_rename.
7049 (promote_symbol): Call validize_symbol_for_target.
7050 (lto_promote_cross_file_statics): Likewise.
7051 (lto_promote_statics_nonwpa): Likewise.
7052
7053 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
7054
7055 PR target/64452
7056 * config/avr/avr.md (pushhi_insn): New insn.
7057 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
7058
7059 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
7060 Jakub Jelinek <jakub@redhat.com>
7061
7062 * tree-streamer.c (preload_common_nodes): Don't preload
7063 TI_VA_LIST* for offloading.
7064 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
7065 in_lto_p.
7066
7067 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
7068
7069 * config/pa/pa.c (pa_emit_move_sequence): Always force
7070 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
7071 note on insn.
7072
7073 * config/pa/pa.c (pa_reloc_rw_mask): New function.
7074 (TARGET_ASM_RELOC_RW_MASK): Define.
7075 (pa_cannot_force_const_mem): Revert previous change.
7076
7077 2015-02-19 Martin Jambor <mjmabor@suse.cz>
7078 Jan Hubicka <hubicka@ucw.cz>
7079
7080 PR ipa/65028
7081 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
7082 across jump functions.
7083
7084 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
7085
7086 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
7087
7088 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
7089
7090 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
7091
7092 2015-02-19 Richard Henderson <rth@redhat.com>
7093
7094 PR middle-end/65074
7095 * varasm.c (default_binds_local_p_2): Don't test node->definition;
7096 test DECL_EXTERNAL independent of symtab_node.
7097
7098 2015-02-19 Jakub Jelinek <jakub@redhat.com>
7099
7100 PR lto/65012
7101 * varpool.c (varpool_node::get_constructor): Return early
7102 if this->lto_file_data is NULL.
7103
7104 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7105
7106 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
7107 (rank_for_schedule_debug): Update.
7108 (ready_sort): Make static. Move sorting logic to ...
7109 (ready_sort_debug, ready_sort_real): New static functions.
7110 (schedule_block): Sort both debug insns and real insns in preparation
7111 for ready list trimming. Improve debug output.
7112 * sched-int.h (ready_sort): Remove global declaration.
7113
7114 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
7115
7116 * ipa-icf.c (sem_function::equals_private): Adjust.
7117 (sem_function::bb_dict_test): Take a vec<int> * instead of
7118 auto_vec<int>.
7119 * ipa-icf.h (bb_dict_test): Likewise.
7120
7121 2015-02-18 Jakub Jelinek <jakub@redhat.com>
7122
7123 PR gcov-profile/64634
7124 * tree-eh.c (frob_into_branch_around): Fix up typos
7125 in function comment.
7126 (lower_catch): Put eh_seq resulting from EH lowering of
7127 the cleanup sequence after the cleanup rather than before it.
7128
7129 2015-02-18 Tom de Vries <tom@codesourcery.com>
7130
7131 * common.opt (fstdarg-opt): New option.
7132 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
7133 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
7134 (@item -fstdarg-opt): New item.
7135
7136 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
7137
7138 PR target/65064
7139 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
7140 for common symbols.
7141
7142 2015-02-18 Jakub Jelinek <jakub@redhat.com>
7143
7144 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
7145 insn-modes.h.
7146 (ALL_HOST_OBJS): Add mkoffload.o.
7147 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
7148
7149 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
7150
7151 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
7152 (compare_virtual_tables): Be smarter about skipping typeinfos;
7153 do sane output on virtual table table mismatch.
7154 (warn_odr): Be ready for forward declarations of enums;
7155 output sane info on base mismatch and virtual table mismatch.
7156 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
7157 when only one type is polymorphic.
7158 (get_odr_type): Fix hashtable corruption.
7159 (dump_odr_type): Dump mangled names.
7160
7161 2015-02-18 Richard Biener <rguenther@suse.de>
7162
7163 PR tree-optimization/65063
7164 * tree-predcom.c (determine_unroll_factor): Return 1 if we
7165 have replaced looparound PHIs.
7166
7167 2015-02-18 Martin Liska <mliska@suse.cz>
7168
7169 * lto-streamer.c (lto_streamer_init): Encapsulate
7170 streamer_check_handled_ts_structures with checking macro.
7171
7172 2015-02-18 Jakub Jelinek <jakub@redhat.com>
7173
7174 PR ipa/65087
7175 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
7176 section if !implicit_section.
7177 (cgraph_node::create_version_clone_with_body): Likewise.
7178 * trans-mem.c (ipa_tm_create_version): Likewise.
7179
7180 2015-02-18 Richard Biener <rguenther@suse.de>
7181
7182 PR tree-optimization/62217
7183 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
7184 into BIVs.
7185
7186 2015-02-18 Marek Polacek <polacek@redhat.com>
7187
7188 PR sanitizer/65081
7189 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
7190 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
7191 is in range [-16K, -1]. Don't issue run-time error if
7192 (ptr > ptr + offset).
7193
7194 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
7195
7196 * doc/install.texi (nvptx-*-none): New section.
7197 * doc/invoke.texi (Nvidia PTX Options): Likewise.
7198 * config/nvptx/nvptx.opt: Update.
7199
7200 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
7201 (access_check): New functions, copied from
7202 config/i386/intelmic-mkoffload.c.
7203 (main): For non-installed testing, look in all COMPILER_PATHs for
7204 GCC_INSTALL_NAME.
7205
7206 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
7207
7208 2015-02-18 Andrew Pinski <apinski@cavium.com>
7209 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7210
7211 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
7212 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
7213
7214 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
7215
7216 * ipa-visibility.c (function_and_variable_visibility): Only
7217 check locality if node is not already local.
7218 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
7219 call_for_symbol_and_aliases instead of
7220 call_for_symbol_thunks_and_aliases.
7221 (ipa_inline): Likewise.
7222 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
7223 first walk aliases.
7224 * ipa.c (symbol_table::remove_unreachable_nodes): Use
7225 call_for_symbol_and_aliases.
7226 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
7227 (ipa_propagate_frequency_1): Use it; use opt_for_fn
7228 (ipa_propagate_frequency): Update.
7229 (ipa_profile): Add opt_for_fn gueards.
7230
7231 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
7232
7233 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
7234 * doc/invoke.texi (SH options): Document it.
7235 * config/sh/sh.c (sh_insn_length_adjustment): Check
7236 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
7237
7238 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
7239
7240 * common.opt (fipa-cp-alignment): New.
7241 * ipa-cp.c (ipcp_store_alignment_results): Check
7242 flag_ipa_cp_alignment.
7243 * opts.c (default_options_table): Enable -fipa-cp-alignment for
7244 -O2.
7245 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
7246 * doc/invoke.texi: Document -fipa-cp-alignment.
7247
7248 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
7249
7250 PR target/64793
7251 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
7252 to nil. Adjust comments.
7253
7254 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
7255
7256 * ipa-visibility.c (function_and_variable_visibility): Only
7257 check locality if node is not already local.
7258 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
7259 call_for_symbol_and_aliases instead of
7260 call_for_symbol_thunks_and_aliases.
7261 (ipa_inline): Likewise.
7262 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
7263 first walk aliases.
7264 * ipa.c (symbol_table::remove_unreachable_nodes): Use
7265 call_for_symbol_and_aliases.
7266 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
7267 (ipa_propagate_frequency_1): Use it; use opt_for_fn
7268 (ipa_propagate_frequency): Update.
7269 (ipa_profile): Add opt_for_fn guards.
7270
7271 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7272
7273 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
7274 skipping of "strange" tokens.
7275
7276 2015-02-17 Jeff Law <law@redhat.com>
7277
7278 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
7279 obsolete comment.
7280
7281 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
7282
7283 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
7284 as forcing a HARD_DEP between instructions, thereby
7285 disallowing rewriting to break dependencies.
7286
7287 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
7288
7289 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
7290 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
7291 variables in boundary that have no inlitalizer encoded and are
7292 not aliases.
7293 * varasm.c (default_binds_local_p_2): External definitions do not
7294 count as definitions here.
7295
7296 2015-02-16 Jeff Law <law@redhat.com>
7297
7298 PR tree-optimization/64823
7299 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
7300 statements.
7301 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
7302 threading through blocks with PHIs, but no statements.
7303 (thread_through_normal_block): Distinguish between blocks where
7304 we did not process all the statements and blocks with no statements.
7305
7306 2015-02-16 Jakub Jelinek <jakub@redhat.com>
7307 James Greenhalgh <james.greenhalgh@arm.com>
7308
7309 PR ipa/64963
7310 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
7311 section if not linkonce. Fix up formatting.
7312 (cgraph_node::create_version_clone_with_body): Copy section.
7313 * trans-mem.c (ipa_tm_create_version): Likewise.
7314
7315 2015-02-16 Richard Biener <rguenther@suse.de>
7316
7317 PR tree-optimization/65077
7318 * tree-ssa-structalias.c (get_constraint_for_1): Handle
7319 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
7320 (find_func_aliases): Allow float values to carry pointers again.
7321
7322 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
7323
7324 * doc/install.texi (Specific): Reorder targets list to put
7325 aarch64 in alphabetical order. Add a link to aarch64*-*-*
7326 from the top menu.
7327
7328 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7329 David Edelsohn <dje.gcc@gmail.com>
7330
7331 PR target/65058
7332 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
7333 mapping class to external variable or function reference.
7334 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
7335 mapping class.
7336
7337 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
7338
7339 PR target/53348
7340 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
7341 ASM_WEAKEN_DECL if defined.
7342
7343 2015-02-16 Richard Biener <rguenther@suse.de>
7344
7345 PR lto/65015
7346 * varasm.c (default_file_start): For LTO produced units
7347 emit <artificial> as file directive.
7348
7349 2015-02-16 Richard Biener <rguenther@suse.de>
7350
7351 PR tree-optimization/63593
7352 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
7353 stmts and releasing SSA names until...
7354 (execute_pred_commoning): ... after processing all chains.
7355
7356 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
7357
7358 PR ipa/65059
7359 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
7360 external functions.
7361
7362 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
7363
7364 * doc/bugreport.texi: Adjust section titles throughout the file
7365 to use "Title Case".
7366 * doc/extend.texi: Likewise.
7367 * doc/gcov.texi: Likewise.
7368 * doc/implement-c.texi: Likewise.
7369 * doc/implement-cxx.texi: Likewise.
7370 * doc/invoke.texi: Likewise.
7371 * doc/objc.texi: Likewise.
7372 * doc/standards.texi: Likewise.
7373 * doc/trouble.texi: Likewise.
7374
7375 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
7376
7377 * cgraph.h (symtab_node::has_aliases_p): Simplify.
7378 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
7379 * tree.c (lookup_binfo_at_offset): Make static.
7380 (get_binfo_at_offset): Do not shadow offset; add explanatory
7381 comment.
7382
7383 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
7384
7385 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
7386 for all floading point loads and stores except those using a register
7387 index address.
7388 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
7389 to a register.
7390
7391 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
7392
7393 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
7394 (do_estimate_growth_1): Record if any uninlinable edge was seen.
7395 (estimate_growth): Handle uninlinable edges correctly.
7396 (check_callers): New.
7397 (growth_likely_positive): Handle aliases correctly.
7398
7399 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
7400
7401 * ipa-chkp.c: Use iterate_direct_aliases.
7402 * symtab.c (resolution_used_from_other_file_p): Move inline.
7403 (symtab_node::create_reference): Fix formating.
7404 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
7405 (symtab_node::iterate_reference): Move inline.
7406 (symtab_node::iterate_referring): Move inline.
7407 (symtab_node::iterate_direct_aliases): Move inline.
7408 (symtab_node::used_from_object_file_p_worker): Inline into ...
7409 (symtab_node::used_from_object_file_p): ... this one; move inline.
7410 (symtab_node::call_for_symbol_and_aliases): Move inline;
7411 use iterate_direct_aliases.
7412 (symtab_node::call_for_symbol_and_aliases_1): New method.
7413 (cgraph_node::call_for_symbol_and_aliases): Move inline;
7414 use iterate_direct_aliases.
7415 (cgraph_node::call_for_symbol_and_aliases_1): New method.
7416 (varpool_node::call_for_node_and_aliases): Rename to ...
7417 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
7418 use iterate_direct_aliases.
7419 (varpool_node::call_for_symbol_and_aliases_1): New method.
7420 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
7421 (ipa_discover_readonly_nonaddressable_var): Update.
7422 * ipa-devirt.c: Fix formating.
7423 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
7424 Move inline.
7425 (cgraph_node::call_for_symbol_and_aliases): Move inline.
7426 (cgraph_node::call_for_symbol_and_aliases_1): New function..
7427 * cgraph.h (used_from_object_file_p_worker): Remove.
7428 (resolution_used_from_other_file_p): Move inline.
7429 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
7430 (symtab_node::iterate_reference): Move inline.
7431 (symtab_node::iterate_referring): Move inline.
7432 (symtab_node::iterate_direct_aliases): Move inline.
7433 (symtab_node::used_from_object_file_p_worker): Inline into ...
7434 (symtab_node::used_from_object_file_p): Move inline.
7435 * tree-emutls.c (ipa_lower_emutls): Update.
7436 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
7437 (varpool_node::call_for_node_and_aliases): Remove.
7438
7439 2015-02-14 Jakub Jelinek <jakub@redhat.com>
7440
7441 PR tree-optimization/62209
7442 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
7443 op == range->exp, insert seq and gimplified code after labels
7444 instead of after the phi.
7445
7446 2015-02-13 Jeff Law <law@redhat.com>
7447
7448 PR bootstrap/65060
7449 Revert my change for tree-optimization/64823.
7450
7451 2015-02-13 Jakub Jelinek <jakub@redhat.com>
7452
7453 PR tree-optimization/65053
7454 * tree-ssa-phiopt.c (value_replacement): When moving assign before
7455 cond, either reset VR on lhs or set it to phi result VR.
7456
7457 2015-02-13 Jeff Law <law@redhat.com>
7458
7459 PR tree-optimization/64823
7460 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
7461 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
7462 threading through blocks with PHIs, but no statements.
7463 (thread_through_normal_block): Distinguish between blocks where
7464 we did not process all the statements and blocks with no statements.
7465
7466 PR rtl-optimization/47477
7467 * match.pd (convert (plus/minus (convert @0) (convert @1): New
7468 simplifier to narrow arithmetic.
7469
7470 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
7471
7472 PR ipa/65028
7473 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
7474 polymorphic call info when type is not known to be preserved.
7475
7476 2015-02-13 Maritn Jambor <mjambor@suse.cz>
7477
7478 PR ipa/65028
7479 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
7480 (inline_call): Use it.
7481
7482 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
7483
7484 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
7485 GOMP_DEVICE_NVIDIA_PTX.
7486
7487 2015-02-13 Jakub Jelinek <jakub@redhat.com>
7488
7489 PR ipa/65034
7490 * stmt.c (emit_case_nodes): Use void_type_node instead of
7491 NULL_TREE as LABEL_DECL type.
7492
7493 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
7494
7495 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
7496 constraints.
7497 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
7498 symbolic references to data to be forced to constant memory on the
7499 SOM target.
7500
7501 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
7502
7503 PR tree-optimization/65002
7504 * tree-cfg.c (pass_data_fixup_cfg): Don't update
7505 SSA on start.
7506 * tree-sra.c (some_callers_have_no_vuse_p): New.
7507 (ipa_early_sra): Reject functions whose callers
7508 assume function is read only.
7509
7510 2015-02-13 Richard Biener <rguenther@suse.de>
7511
7512 PR lto/65015
7513 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
7514 for LTO produced CUs.
7515
7516 2015-02-13 Bin Cheng <bin.cheng@arm.com>
7517
7518 PR tree-optimization/64705
7519 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
7520 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
7521 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
7522 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
7523 expand_simple_operations.
7524
7525 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
7526 Richard Henderson <rth@redhat.com>
7527
7528 PR rtl/32219
7529 * cgraphunit.c (cgraph_node::finalize_function): Set definition
7530 before notice_global_symbol.
7531 (varpool_node::finalize_decl): Likewise.
7532 * varasm.c (default_binds_local_p_2): Rename from
7533 default_binds_local_p_1, add weak_dominate argument. Use direct
7534 returns instead of assigning to local variable. Unify varpool and
7535 cgraph paths via symtab_node. Reject undef weak variables before
7536 testing visibility. Reorder tests for simplicity.
7537 (default_binds_local_p): Use default_binds_local_p_2.
7538 (default_binds_local_p_1): Likewise.
7539 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
7540 via symtab_node.
7541 (default_elf_asm_output_external): Emit visibility when specified.
7542
7543 2015-02-13 Alan Modra <amodra@gmail.com>
7544
7545 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
7546 code setting up r11 for out-of-line fp restore.
7547
7548 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
7549
7550 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
7551 (muser-mode): Likewise.
7552
7553 2015-02-13 Alan Modra <amodra@gmail.com>
7554
7555 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
7556 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
7557
7558 2015-02-12 David Howells <dhowells@redhat.com>
7559
7560 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
7561 warning.
7562 * tree-ssa-uninit.c (dump_predicates): Likewise.
7563 * opts.c (print_filtered_help): Likewise.
7564
7565 2015-02-12 Jakub Jelinek <jakub@redhat.com>
7566
7567 * dwarf2out.c (output_die): Use "%s", name instead of name to
7568 avoid -Wformat-security warning.
7569
7570 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
7571 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
7572 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
7573 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
7574
7575 2015-02-12 Jason Merrill <jason@redhat.com>
7576
7577 * common.opt (-flifetime-dse): New.
7578
7579 2015-02-12 Jakub Jelinek <jakub@redhat.com>
7580
7581 PR sanitizer/65019
7582 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
7583
7584 PR tree-optimization/65014
7585 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
7586 use original second operand of arg0 or arg1 instead of
7587 that adjusted by STRIP_NOPS.
7588
7589 2015-02-11 Jeff Law <law@redhat.com>
7590
7591 PR target/63347
7592 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
7593 that needs to be queued, just queue it for a single cycle.
7594
7595 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
7596
7597 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
7598 bodies of thunks; comment on why.
7599 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
7600 symbols are extern.
7601
7602 2015-02-11 Richard Henderson <rth@redhat.com>
7603
7604 PR sanitize/65000
7605 * tree-eh.c (mark_reachable_handlers): Mark source and destination
7606 regions of __builtin_eh_copy_values.
7607
7608 2015-02-11 Jakub Jelinek <jakub@redhat.com>
7609
7610 PR middle-end/65003
7611 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
7612 ultimate alias is MEM with SYMBOL_REF satisfying
7613 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
7614 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
7615
7616 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
7617
7618 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
7619 "diagnostic-core.h".
7620 (main): Initialize progname, and call diagnostic_initialize.
7621
7622 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
7623 instead of __OPENMP_TARGET__.
7624
7625 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
7626 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
7627 hard-coding PTX_ID.
7628
7629 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
7630
7631 * doc/sourcebuild.texi (pie_enabled): Document.
7632
7633 2015-02-11 Martin Liska <mliska@suse.cz>
7634
7635 PR ipa/64813
7636 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
7637 a return value for call to a function that is noreturn.
7638
7639 2015-02-11 Richard Biener <rguenther@suse.de>
7640
7641 PR lto/65015
7642 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
7643 and -fresolution.
7644
7645 2015-02-11 Andrew Pinski <apinski@cavium.com>
7646
7647 PR target/64893
7648 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
7649 Change the first argument type to size_type_node and add another
7650 size_type_node.
7651 (aarch64_simd_expand_builtin): Handle the new argument to
7652 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
7653 print an out when the first two arguments are not
7654 nonzero integer constants.
7655 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
7656 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
7657
7658 2015-02-11 Jakub Jelinek <jakub@redhat.com>
7659
7660 PR target/61925
7661 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
7662 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
7663 (ix86_set_current_function): Rewritten.
7664 (ix86_add_new_builtins): Temporarily clear current_target_pragma
7665 when creating builtin fndecls.
7666
7667 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
7668
7669 PR ipa/65005
7670 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
7671 function.
7672 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
7673 have no comdat group.
7674 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
7675 (lto_output_varpool_node): Always output alias info.
7676 (output_refs): Output refs of boundary aliases, too.
7677 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
7678 (output_symtab): Output call eges in thunks in boundary.
7679 (get_alias_symbol): Remove.
7680 (input_node, input_varpool_node): Do not special case weakrefs.
7681 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
7682 alias and thunks targets in the boundary; do not take removed symbols
7683 from their comdat groups.
7684 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
7685 (cgraph_node::global_info): Remove.
7686 (cgraph_node::rtl_info): Look through aliases and thunks.
7687 * cgrpah.h (global_info): Remove.
7688 (non_local_p): Remove.
7689
7690 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
7691 Sandra Loosemore <sandra@codesourcery.com>
7692
7693 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
7694 to inline asm. List dialects in proper order.
7695
7696 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
7697 Sandra Loosemore <sandra@codesourcery.com>
7698
7699 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
7700
7701 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
7702
7703 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
7704 modified) reference to Solaris.
7705
7706 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
7707
7708 * doc/extend.texi (Extended Asm): Fix typos.
7709
7710 2015-02-10 Jakub Jelinek <jakub@redhat.com>
7711
7712 PR sanitizer/65004
7713 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
7714
7715 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
7716
7717 PR target/64661
7718 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
7719 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
7720 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
7721 * config/sh/constraints.md (Ara, Add): New constraints.
7722 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
7723 predicates.
7724 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
7725 atomic_mem_operand_0. Don't use force_reg on the memory address.
7726 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
7727 Sra constraint. Convert to insn_and_split. Add workaround for
7728 PR 64974.
7729 (atomic_compare_and_swap<mode>_hard): Copy to
7730 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
7731 Use atomic_mem_operand_0 predicate.
7732 (atomic_compare_and_swap<mode>_soft_gusa,
7733 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
7734 AraAdd constraints.
7735 (atomic_compare_and_swap<mode>_soft_tcb,
7736 atomic_compare_and_swap<mode>_soft_imask,
7737 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
7738 atomic_mem_operand_0 predicate and SraSdd constraints.
7739 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
7740 constraint.
7741 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
7742 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
7743 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
7744 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
7745 force_reg on the memory address.
7746 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
7747 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
7748 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
7749 atomic_mem_operand_1 predicate and Sra constraint.
7750 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
7751 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
7752 Use atomic_mem_operand_1 predicate.
7753 (atomic_<fetchop_name><mode>_hard): Copy to
7754 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
7755 Use atomic_mem_operand_1 predicate.
7756 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
7757 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
7758 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
7759 insn_and_split. Use atomic_mem_operand_1 predicate.
7760 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
7761 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
7762 Use atomic_mem_operand_1 predicate.
7763 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
7764 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
7765 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
7766 in generated insn with original mem operand before emitting the insn.
7767 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
7768 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
7769 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
7770 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
7771 Use atomic_mem_operand_1 predicate and AraAdd constraints.
7772 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
7773 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
7774 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
7775 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
7776 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
7777 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
7778 atomic_not_fetch<mode>_soft_tcb,
7779 atomic_<fetchop_name>_fetch<mode>_soft_imask,
7780 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
7781 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
7782 Use atomic_mem_operand_1 predicate and SraSdd constraints.
7783
7784 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
7785
7786 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
7787 and 3 earlyclobber operands.
7788
7789 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
7790
7791 * common.opt (fstack-reuse): Mark as optimization.
7792
7793 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
7794
7795 PR ipa/64982
7796 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
7797
7798 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
7799
7800 PR tree-optimization/64326
7801 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
7802
7803 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
7804
7805 PR gcov-profile/61889
7806 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
7807
7808 2015-02-10 Richard Biener <rguenther@suse.de>
7809
7810 PR tree-optimization/64995
7811 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
7812 value we use is final.
7813 (visit_reference_op_store): Always valueize op.
7814 (visit_use): Properly valueize vuses.
7815
7816 2015-02-10 Richard Biener <rguenther@suse.de>
7817
7818 PR tree-optimization/64909
7819 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
7820 pass a scalar-stmt count estimate to the cost model.
7821 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
7822
7823 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
7824
7825 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
7826 enabled by default together with var-tracking.
7827
7828 2015-02-10 Nick Clifton <nickc@redhat.com>
7829
7830 * config/rl78/rl78.c: Remove DIV attribute code accidentally
7831 included in previous rl78 commit.
7832
7833 2015-02-10 Richard Biener <rguenther@suse.de>
7834
7835 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
7836 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
7837 return the bitpack.
7838
7839 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
7840
7841 PR gcov-profile/61889
7842 * config.in: regenerate.
7843 * configure.in: Likewise.
7844 * configure.ac: Check for ftw.h.
7845 * gcov-tool.c: Check for ftw.h before using nftw.
7846
7847 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
7848
7849 PR lto/64076
7850 * ipa-visibility.c (update_visibility_by_resolution_info): Only
7851 assert when not in lto mode.
7852
7853 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7854
7855 * ira-color.c (setup_left_conflict_sizes_p): Simplify
7856 initialization/assignment of conflict_size.
7857
7858 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
7859
7860 PR ipa/64978
7861 * ipa-cp.c (gather_caller_stats): Skip thunks.
7862 (propagate_constants_topo): Skip aliases.
7863
7864 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
7865
7866 PR target/64761
7867 * config/sh/sh.c (sh_option_override): Don't change
7868 -freorder-blocks-and-partition to -freorder-blocks even when
7869 unwinding is enabled.
7870 (sh_can_follow_jump): Return false if the followee jump is
7871 a crossing jump when -freorder-blocks-and-partition is specified.
7872 * config/sh/sh.md (*jump_compact_crossing): New insn.
7873
7874 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
7875 Kaz Kojima <kkojima@gcc.gnu.org>
7876
7877 PR target/64761
7878 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
7879 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
7880 (sh_can_redirect_branch): Rename to ...
7881 (sh_can_follow_jump): ... this. Constify argument types.
7882 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
7883 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
7884 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
7885 * doc/tm.texi: Regenerate.
7886
7887 2015-02-09 Jakub Jelinek <jakub@redhat.com>
7888
7889 PR sanitizer/64981
7890 * builtins.c (expand_builtin): Call targetm.expand_builtin
7891 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
7892
7893 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7894
7895 PR ipa/61548
7896 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
7897
7898 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7899
7900 PR ipa/63566
7901 * ipa-icf.c (set_local): New function.
7902 (sem_function::merge): Use it.
7903
7904 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7905
7906 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
7907 (add_type_duplicate): Fix comparison of BINFOs.
7908
7909 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7910
7911 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
7912 on getting VOID pointer.
7913
7914 2015-02-09 Jakub Jelinek <jakub@redhat.com>
7915
7916 PR target/64979
7917 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
7918 va_list escapes.
7919
7920 2015-02-09 Richard Biener <rguenther@suse.de>
7921
7922 * genmatch.c (replace_id): Copy expr_type.
7923
7924 2015-02-09 Richard Biener <rguenther@suse.de>
7925
7926 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
7927 (streamer_write_tree_bitfields): Declare.
7928 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
7929 properly unpack padding.
7930 (unpack_value_fields): Inline ...
7931 (streamer_read_tree_bitfields): ... here.
7932 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
7933 and properly add padding bits.
7934 (streamer_pack_tree_bitfields): Fold into ...
7935 (streamer_write_tree_bitfields): ... this new function,
7936 exposing the bitpack object.
7937 * lto-streamer-out.c (lto_write_tree_1): Call
7938 streamer_write_tree_bitfields.
7939
7940 2015-02-09 Richard Biener <rguenther@suse.de>
7941
7942 PR tree-optimization/54000
7943 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
7944 (struct ivopts_data): Add loop_loc member.
7945 (tree_ssa_iv_optimize_loop): Dump loop location.
7946 (create_new_ivs): Likewise, also dump number of IVs generated.
7947
7948 2015-02-09 Martin Liska <mliska@suse.cz>
7949
7950 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
7951 just if not yet registered.
7952 (ipa_icf_generate_summary): Register callgraph hooks.
7953
7954 2015-02-08 Andrew Pinski <apinski@cavium.com>
7955
7956 * config/aarch64/aarch64.c (gty_dummy): Delete.
7957
7958 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7959
7960 PR ipa/63566
7961 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
7962 (cgraph_node::local_p): Remove thunk related FIXME.
7963
7964 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7965
7966 PR ipa/63566
7967 * i386.c (ix86_function_regparm): Look through aliases to see if callee
7968 is local and optimized.
7969 (ix86_function_sseregparm): Likewise; also use target's SSE math
7970 settings; error out instead of silently generating wrong code
7971 on mismatches.
7972 (init_cumulative_args): Look through aliases.
7973
7974 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7975
7976 PR ipa/63566
7977 * ipa-split.c (execute_split_functions): Split if function has aliases.
7978
7979 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7980
7981 PR ipa/63566
7982 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
7983 aliases before trying to expand it.
7984 (cgraph_node::expand_thunk): Fix formating.
7985
7986 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
7987
7988 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
7989 (Using Assembly Language with C): Expand introduction.
7990 (Basic Asm): Copy-edit. Add more information about uses of
7991 basic asm.
7992 (Extended Asm): Copy-edit. Document new escape syntax and
7993 %l[label] syntax.
7994 (Global Reg Vars): Copy-edit.
7995 (Local Reg Vars): Likewise.
7996
7997 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
7998
7999 PR debug/2714
8000 PR bootstrap/64256
8001 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
8002 (DBX_CONTIN_CHAR): Define.
8003
8004 2015-02-06 Sebastian Pop <s.pop@samsung.com>
8005 Brian Rzycki <b.rzycki@samsung.com>
8006
8007 PR tree-optimization/64878
8008 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
8009 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
8010 Stop recursion at loop phi nodes after having visited a loop phi node.
8011
8012 2015-02-06 Jakub Jelinek <jakub@redhat.com>
8013
8014 * toplev.c (process_options): Change flag_ipa_ra before creating
8015 optimization_{default,current}_node.
8016
8017 PR ipa/64896
8018 * cgraphunit.c (cgraph_node::expand_thunk): If
8019 restype is not is_gimple_reg_type nor the thunk_fndecl
8020 returns aggregate_value_p, set restmp to a temporary variable
8021 instead of resdecl.
8022
8023 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
8024
8025 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
8026
8027 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8028
8029 PR target/64205
8030 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
8031 add a general secondary reload handler for SDmode, unless we have
8032 both read/write support for SDmode.
8033
8034 2015-02-06 Jakub Jelinek <jakub@redhat.com>
8035
8036 PR middle-end/64937
8037 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
8038 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
8039 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
8040 1 before, push it to abstract_vec.
8041 (dwarf2out_abstract_function): Adjust caller. Don't call
8042 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
8043 DECL_ABSTRACT_P flags for all abstract_vec elts.
8044
8045 2015-02-06 Renlin Li <renlin.li@arm.com>
8046
8047 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
8048 complex gimple.
8049 * tree-ssa.c (execute_update_addresses_taken): Likewise.
8050
8051 2015-02-06 Jeff Law <law@redhat.com>
8052
8053 PR target/64889
8054 * config/h8300/h8300.c (push): New argument "in_prologue".
8055 Pass "in_prologue" along to "F".
8056 (h8300_push_pop): Corresponding changes.
8057 (h8300_expand_prologue): Likewise.
8058 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
8059
8060 2015-02-06 Jakub Jelinek <jakub@redhat.com>
8061
8062 PR rtl-optimization/64957
8063 PR debug/64817
8064 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
8065 IOR rather than for AND.
8066
8067 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
8068
8069 PR target/62631
8070 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
8071 of shift-add and (add + shift) operations. Rename local variable.
8072
8073 2015-02-05 Jeff Law <law@redhat.com>
8074
8075 PR target/17306
8076 * config/h8300/constraints.md (U): Correctly dectect
8077 "eightbit_data" memory addresses.
8078 * config/h8300/h8300.c (eightbit_constant_address_p): Also
8079 handle (const (plus (symbol_ref (x)))) where x is declared
8080 as an 8-bit data memory address.
8081 * config/h8300/h8300.md (call, call_value): Correctly detect
8082 "funcvec" functions.
8083
8084 PR target/43264
8085 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
8086 24 to 28 bits for the H8/300.
8087
8088 2015-02-06 Alan Modra <amodra@gmail.com>
8089
8090 PR target/64876
8091 * config/rs6000/rs6000.c (chain_already_loaded): New function.
8092 (rs6000_call_aix): Use it.
8093
8094 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
8095
8096 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
8097 check.
8098
8099 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
8100
8101 * config/h8300/constraints.md ("U" constraint): Use strict
8102 variant of REG_OK_FOR_BASE_P after reload has started.
8103
8104 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
8105
8106 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
8107 define to zero if !TARGET_NEON.
8108 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
8109
8110 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8111 Trevor Saunders <tsaunders@mozilla.com>
8112
8113 PR ipa/61548
8114 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
8115
8116 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8117
8118 PR ipa/61548
8119 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
8120 when removing varpool nodes.
8121
8122 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8123
8124 PR ipa/61548
8125 * varpool.c (varpool_node::remove): Fix order of variables.
8126
8127 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8128
8129 PR ipa/64686
8130 * ipa-inline.c (inline_small_functions): Fix ordering issue between
8131 speculation resolution and key updates.
8132
8133 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8134
8135 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
8136 about not letting any speculative edges unupdated.
8137
8138 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8139
8140 PR gcov/64123
8141 * gcov-io.c (gcov_var): Export.
8142
8143 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8144
8145 PR middle-end/64922
8146 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
8147 edges that become speculative.
8148
8149 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8150
8151 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
8152 or DW_LANG_Fortran08.
8153 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
8154 DW_LANG_Fortran08.
8155 (gen_compile_unit_die): Handle "GNU Fortran2003" and
8156 "GNU Fortran2008" language strings.
8157 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
8158 * langhooks.h (lang_GNU_Fortran): New prototype.
8159 * langhooks.c (lang_GNU_Fortran): New function.
8160 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
8161 lang_GNU_Fortran.
8162
8163 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
8164
8165 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
8166 (RTX_OK_FOR_OLO10_P): Likewise.
8167
8168 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
8169
8170 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
8171
8172 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8173
8174 PR middle-end/64922
8175 * gimple.c: Include gimple-ssa.h.
8176 (maybe_remove_unused_call_args): New function.
8177 * gimple.h (maybe_remove_unused_call_args): Declare.
8178 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
8179 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
8180 * gimple-fold.c (gimple_fold_call): Likewise.
8181
8182 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
8183
8184 PR rtl-optimization/64905
8185 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
8186 pointer alignment if it isn't needed.
8187
8188 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
8189
8190 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
8191 cortex-a72.cortex-a53.
8192 * config/aarch64/aarch64-tune.md: Regenerate.
8193 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
8194
8195 2015-02-04 Nick Clifton <nickc@redhat.com>
8196
8197 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
8198 inside a MEM.
8199
8200 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8201
8202 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
8203 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
8204 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
8205 of DEF_BUILTIN.
8206 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
8207 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
8208 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
8209 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
8210 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
8211 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
8212 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
8213 * tree-core.h (enum built_in_function): In between
8214 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
8215 for builtins that use DEF_BUILTIN_CHKP macro.
8216
8217 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
8218
8219 PR debug/64817
8220 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
8221 operands for tcc_comparison exprs. Fix typos.
8222
8223 PR debug/64817
8224 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
8225 of two XORs that have an intervening AND or IOR.
8226
8227 PR debug/64817
8228 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
8229 simplification of XOR of AND to not allocate new rtx before
8230 committing to a simplification.
8231
8232 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8233
8234 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
8235 manual swaps in all peepholes.
8236
8237 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8238
8239 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
8240 of manual swapping implementation.
8241 (aarch64_expand_vec_perm_const_1): Likewise.
8242
8243 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
8244
8245 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
8246 (generic_addrcost_table): Remove NAMED_PARAM.
8247 (cortexa57_addrcost_table): Likewise.
8248 (xgene1_addrcost_table): Likewise.
8249 (generic_regmove_table): Likewise.
8250 (cortexa53_regmove_table): Likewise.
8251 (xgene1_regmove_table): Likewise.
8252 (generic_vector_table): Likewise.
8253 (cortexa57_vector_table): Likewise.
8254 (xgene1_vector_table): Likewise.
8255 (generic_tunings): Likewise.
8256 (cortexa53_tunings): Likewise.
8257 (cortexa57_tunings): Likewise.
8258 (xgene1_tunings): Likewise.
8259
8260 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
8261
8262 * config/arm/arm-cores.def: Add cortex-a72 and
8263 cortex-a72.cortex-a53.
8264 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
8265 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
8266 * config/arm/arm-tune.md: Regenerate.
8267 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
8268 "cortex-a72.cortex-a53".
8269 * doc/invoke.texi (ARM Options/-mtune): Likewise.
8270
8271 2015-02-04 Nick Clifton <nickc@redhat.com>
8272
8273 PR target/64408
8274 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
8275 of accepted codes.
8276 (nonimmediate_di_operand): Likewise.
8277
8278 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
8279 prefixes of known F5 using MSP430 MCUs.
8280
8281 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8282
8283 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
8284 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
8285 instead of __builtin_sqrt.
8286
8287 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
8288
8289 * varasm.c (do_assemble_alias): Follow transparent alias
8290 chain for target.
8291 (default_assemble_visibility): Follow transparent alias
8292 chain for decl name.
8293
8294 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8295
8296 PR middle-end/62103
8297 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
8298 to compute size of referenced value in the constant case.
8299
8300 2015-02-03 Jakub Jelinek <jakub@redhat.com>
8301
8302 PR rtl-optimization/64756
8303 * cse.c (invalidate_dest): New function.
8304 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
8305 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
8306 invalidate and do not record it.
8307
8308 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
8309
8310 PR target/64660
8311 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
8312 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
8313 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
8314 atomic_nand<mode>_soft_tcb): New insns.
8315 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
8316 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
8317 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
8318 Split into atomic_not_fetchsi_hard if operands[0] is unused.
8319 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
8320 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
8321 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
8322 atomic_not<mode>_hard if operands[0] is unused.
8323 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
8324 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
8325 if operands[0] is unused.
8326 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
8327 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
8328 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
8329 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
8330 unused.
8331 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
8332 into atomic_not<mode>_soft_tcb if operands[0] is unused.
8333 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
8334 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
8335 if operands[0] is unused.
8336 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
8337 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
8338 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
8339 atomic_nand_fetchsi_hard if operands[0] is unused.
8340 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
8341 atomic_nand<mode>_hard if operands[0] is unused.
8342 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
8343 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
8344 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
8345 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
8346 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
8347 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
8348 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
8349 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
8350 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
8351 atomic_not<mode>_hard if operands[0] is unused.
8352 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
8353 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
8354 unused.
8355 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
8356 into atomic_not<mode>_soft_tcb if operands[0] is unused.
8357 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
8358 atomic_nand<mode>_hard if operands[0] is unused.
8359 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
8360 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
8361
8362 2015-02-03 David Malcolm <dmalcolm@redhat.com>
8363
8364 PR jit/64810
8365 * Makefile.in (GCC_OBJS): Add gcc-main.o.
8366 * gcc-main.c: New file, containing "main" taken from gcc.c.
8367 * gcc.c (do_self_spec): Free decoded_options.
8368 (class driver): Move declaration to gcc.h.
8369 (main): Move declaration and implementation to new file
8370 gcc-main.c.
8371 (driver_get_configure_time_options): New function.
8372 * gcc.h (class driver): Move this declaration here, from
8373 gcc.c.
8374 (driver_get_configure_time_options): New declaration.
8375
8376 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
8377
8378 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
8379 cross-module inlining.
8380 * cgraph.h (cgraph_node): Add flag merged.
8381 * ipa-icf.c (sem_function::merge): Maintain it.
8382
8383 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
8384
8385 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
8386 instead of OBJECT_P.
8387
8388 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
8389
8390 PR target/62631
8391 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
8392 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
8393 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
8394 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
8395
8396 2015-02-03 Jakub Jelinek <jakub@redhat.com>
8397
8398 PR other/63504
8399 * combine.c (reg_n_sets_max): New variable.
8400 (can_change_dest_mode, reg_nonzero_bits_for_combine,
8401 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
8402 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
8403 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
8404 (rest_of_handle_combine): Initialize reg_n_sets_max.
8405
8406 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
8407
8408 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
8409 if some always_inline was inlined, apply changes before inlining
8410 heuristically.
8411
8412 2015-02-02 David Malcolm <dmalcolm@redhat.com>
8413
8414 PR jit/64810
8415 * config/arm/arm.c (arm_option_override): Set
8416 arm_selected_arch/cpu/tune to NULL on entry.
8417
8418 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
8419 Andrew Pinski <pinskia@gcc.gnu.org>
8420 Jakub Jelinek <jakub@gcc.gnu.org>
8421
8422 PR target/64231
8423 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
8424 integer typing for small model. Use IN_RANGE.
8425
8426 2015-02-02 Richard Biener <rguenther@suse.de>
8427
8428 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
8429 * tree-vrp.c (vrp_valueize_1): Likewise.
8430
8431 2015-02-02 Alan Modra <amodra@gmail.com>
8432
8433 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
8434 than mem for toc_restore.
8435 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
8436 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
8437 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
8438
8439 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
8440
8441 PR target/64047
8442 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
8443 explicit default options.
8444
8445 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
8446
8447 PR ipa/64872
8448 * ipa-utils.c (ipa_merge_profiles): Add release argument.
8449 * ipa-icf.c (sem_function::merge): Do not release body when merging.
8450 * ipa-utils.h (ipa_merge_profiles): Update prototype.
8451
8452 2015-02-01 Jakub Jelinek <jakub@redhat.com>
8453
8454 PR debug/64817
8455 * cfgexpand.c (deep_ter_debug_map): New variable.
8456 (avoid_deep_ter_for_debug): New function.
8457 (expand_debug_expr): If TERed SSA_NAME is in
8458 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
8459 instead of trying to expand SSA_NAME's def stmt.
8460 (expand_debug_locations): When expanding debug bind
8461 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
8462 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
8463 value.
8464 (pass_expand::execute): Call avoid_deep_ter_for_debug on
8465 all debug bind stmts. Delete deep_ter_debug_map after
8466 expand_debug_location if non-NULL and clear it.
8467
8468 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
8469
8470 PR target/64851
8471 * config/sh/sync.md (atomic_fetch_notsi_hard,
8472 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
8473 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
8474 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
8475 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
8476 atomic_not_fetch<mode>_soft_imask): New insns.
8477
8478 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8479
8480 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
8481 (rank_for_schedule_debug): Split from ...
8482 (rank_for_schedule): ... this.
8483 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
8484 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
8485
8486 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
8487
8488 * doc/md.texi (Machine Constraints): Alphabetize table by target.
8489 * doc/extend.texi (x86 Variable Attributes): Move section to
8490 correct alphabetization after renaming.
8491 (x86 Type Attributes): Likewise.
8492 (Target Builtins): Re-alphabetize menu.
8493 (x86 Built-in Functions): Move section to correct alphabetization
8494 after renaming.
8495 (x86 transactional memory intrinsics): Likewise.
8496 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
8497 and x86 Windows Options in table and menu.
8498 (x86 Options): Move section to correct alphabetization after
8499 renaming.
8500 (x86 Windows Options): Likewise.
8501
8502 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
8503
8504 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
8505 preferred names of the architecture and its 32- and 64-bit
8506 variants.
8507 * doc/invoke.texi: Likewise.
8508 * doc/md.texi: Likewise.
8509
8510 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
8511
8512 PR target/64882
8513 * config/i386/predicates.md (address_no_seg_operand): Reject
8514 non-CONST_INT_P operands in invalid mode.
8515
8516 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
8517
8518 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
8519 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
8520 * config/i386/predicates.md (address_no_seg_operand): Call
8521 address_operand with VOIDmode.
8522 (vsib_address_operand): Ditto.
8523 (address_mpx_no_base_operand): Ditto.
8524 (address_mpx_no_index_operand): Ditto.
8525
8526 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
8527
8528 PR target/64688
8529 * lra-constraints.c (original_subreg_reg_mode): New.
8530 (simplify_operand_subreg): Try to simplify subreg of const. Use
8531 original_subreg_reg_mode for it.
8532 (swap_operands): Update original_subreg_reg_mode.
8533 (curr_insn_transform): Set up original_subreg_reg_mode.
8534
8535 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
8536
8537 PR target/64617
8538 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
8539 function.
8540 (process_alt_operands): Use it.
8541 (curr_insn_transform): Check the optional reload pseudo class is
8542 ok for the mode.
8543
8544 2015-01-30 Joseph Myers <joseph@codesourcery.com>
8545
8546 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
8547 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
8548 prototype.
8549 * toplev.h (init_asm_output): Update comment on use of
8550 UNKNOWN_LOCATION with fatal_error.
8551 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
8552 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
8553 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
8554 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
8555 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
8556 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
8557 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
8558 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
8559 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
8560 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
8561 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
8562 fatal_error changed to pass input_location as first argument.
8563
8564 2015-01-30 Martin Liska <mliska@suse.cz>
8565
8566 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
8567 in #pragma GCC diagnostic guards.
8568
8569 2015-01-30 Richard Biener <rguenther@suse.de>
8570
8571 PR tree-optimization/64829
8572 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
8573 not add a widening conversion pattern but hand off extra
8574 widenings to callers.
8575 (vect_recog_widen_mult_pattern): Handle extra widening produced
8576 by vect_handle_widen_op_by_const.
8577 (vect_recog_widen_shift_pattern): Likewise.
8578 (vect_pattern_recog_1): Remove excess vertical space in dumping.
8579 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
8580 (vect_init_vector_1): Likewise.
8581 (vect_get_vec_def_for_operand): Likewise.
8582 (vect_finish_stmt_generation): Likewise.
8583 (vectorizable_load): Likewise.
8584 (vect_analyze_stmt): Likewise.
8585 (vect_is_simple_use): Likewise.
8586
8587 2015-01-29 Jeff Law <law@redhat.com>
8588
8589 * combine.c (try_combine): Fix typo in comment.
8590
8591 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
8592
8593 PR target/64580
8594 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
8595 (rs6000_stack_info): Add assert.
8596 (rs6000_output_savres_externs): New function, split off from...
8597 (rs6000_output_function_prologue): ... here. Do not call it for
8598 thunks.
8599
8600 2015-01-29 Jeff Law <law@redhat.com>
8601
8602 PR target/15184
8603 * combine.c (try_combine): If I0 is a memory load and I3 a store
8604 to a related address, increase the "goodness" of doing a 4-insn
8605 combination with I0-I3.
8606 (make_field_assignment): Handle SUBREGs in the ior+and case.
8607
8608 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
8609
8610 PR tree-optimization/64746
8611 * tree-if-conv.c (mask_exists): New function.
8612 (predicate_mem_writes): Save created mask with given size for further
8613 use.
8614 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
8615 (ifcvt_repair_bool_pattern): Collect all statements that are root
8616 of bool pattern and use iterative algorithm to remove multiple uses
8617 of predicates, display number of required iterations.
8618
8619 2015-01-29 Richard Biener <rguenther@suse.de>
8620
8621 PR tree-optimization/64853
8622 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
8623 stmt will get simulated again.
8624 * tree-ssa-ccp.c (valueize_op_1): Likewise.
8625
8626 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8627
8628 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
8629 return_in_pc. Remove redundant assignments.
8630 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
8631 (arm_expand_epilogue): Don't compare boolean with true in if condition.
8632
8633 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
8634
8635 * config/i386/i386.c (ix86_mode_after): Make static.
8636
8637 2015-01-29 Richard Biener <rguenther@suse.de>
8638
8639 PR tree-optimization/64844
8640 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
8641 dump cost model analysis.
8642 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8643 Do not register adjusted load/store costs here.
8644
8645 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
8646 Uros Bizjak <ubizjak@gmail.com>
8647
8648 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
8649 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
8650 using x86_use_pseudo_pic_reg.
8651 * config/i386/i386.c (ix86_conditional_register_usage): Remove
8652 support for fixed PIC register.
8653 (ix86_use_pseudo_pic_reg): Not static any more.
8654
8655 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
8656
8657 PR middle-end/64805
8658 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
8659 to avoid error in cgraph node verification.
8660
8661 2015-01-29 Marek Polacek <polacek@redhat.com>
8662
8663 * doc/standards.texi: Reflect that the default for C is gnu11.
8664
8665 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
8666
8667 PR target/64761
8668 * reorg.c (switch_text_sections_between_p): New function.
8669 (relax_delay_slots): Call it when testing if the jump insn
8670 is removable. Use targetm.can_follow_jump when testing if
8671 the conditional branch can follow an unconditional jump.
8672
8673 2015-01-27 Caroline Tice <cmtice@google.com>
8674
8675 Committing VTV Cywin/Ming patch for Patrick Wollgast
8676 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
8677 if -fvtable-verify=preinit/std is used.
8678 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
8679 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
8680 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
8681 if -fvtable-verify=preinit/std is used.
8682 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
8683 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
8684 if -fvtable-verify=preinit/std is used.
8685 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
8686 * config/i386/mingw32.h (LIB_SPEC): Likewise.
8687 * varasm.c (assemble_variable): Add code to properly set the comdat
8688 section and name for the .vtable_map_vars section in case the
8689 target is PE or COFF.
8690
8691 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
8692
8693 PR ipa/64801
8694 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
8695 make sane BB profile.
8696 (cgraph_node::expand_thunk): Make sane BB profile.
8697 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
8698 * cgraph.h (init_lowered_empty_function): Update prototype.
8699 * config/i386/i386.c (make_resolver_func): Update call.
8700 * predict.c (gate): Disable branch prediction pass if
8701 profile is already there.
8702
8703 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
8704
8705 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
8706 * opth-gen.awk: Likewise.
8707 * common.opt: Mark flag_fp_contract_mode as Optimization.
8708
8709 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
8710
8711 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
8712 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
8713
8714 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
8715
8716 PR target/64659
8717 * config/sh/predicates.md (atomic_arith_operand,
8718 atomic_logical_operand): Remove.
8719 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
8720 (atomic_arith_operand_0): New predicate.
8721 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
8722 Use atomic_arith_operand_0 for input values.
8723 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
8724 atomic_compare_and_swap<mode>_soft_gusa,
8725 atomic_compare_and_swap<mode>_soft_tcb,
8726 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
8727 arith_reg_operand instead of register_operand.
8728 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
8729 atomic_arith_operand_0 for newval input.
8730 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
8731 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
8732 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
8733 arith_reg_operand instead of register_operand.
8734 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
8735 fetchop_predicate_1, fetchop_constraint_1_llcs,
8736 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
8737 fetchop_constraint_1_imask): New code iterator attributes.
8738 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
8739 register_operand. Use fetchop_predicate_1.
8740 (atomic_fetch_<fetchop_name>si_hard,
8741 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
8742 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
8743 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
8744 and arith_reg_operand instead of register_operand. Use
8745 fetchop_predicate_1, fetchop_constraint_1_gusa.
8746 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
8747 and arith_reg_operand instead of register_operand. Use
8748 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
8749 to allow R0 usage.
8750 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
8751 and arith_reg_operand instead of register_operand. Use
8752 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
8753 to allow R0 usage.
8754 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
8755 register_operand. Use atomic_logical_operand_1.
8756 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
8757 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
8758 arith_reg_operand instead of register_operand.
8759 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
8760 Use arith_reg_dest and arith_reg_operand instead of register_operand.
8761 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
8762 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
8763 register_operand. Use fetchop_predicate_1.
8764 (atomic_<fetchop_name>_fetchsi_hard,
8765 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
8766 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
8767 fetchop_constraint_1_llcs.
8768 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
8769 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
8770 fetchop_constraint_1_gusa.
8771 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
8772 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
8773 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
8774 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
8775 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
8776 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
8777 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
8778 register_operand. Use atomic_logical_operand_1.
8779 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
8780 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
8781 arith_reg_operand instead of register_operand.
8782 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
8783 arith_reg_operand instead of register_operand. Use logical_operand
8784 and K08. Adjust asm sequence to allow R0 usage.
8785 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
8786 arith_reg_operand instead of register_operand. Use logical_operand
8787 and K08.
8788
8789 2015-01-28 Jakub Jelinek <jakub@redhat.com>
8790
8791 PR other/63504
8792 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
8793 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
8794 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
8795 only get_full_len HOST_WIDE_INTs from get_val () array rather than
8796 all bits in *val_wide.
8797
8798 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
8799
8800 * varpool.c (tls_model_names): Fix names.
8801 (varpool_node::dump): Dump tls- prefix for tls models.
8802
8803 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
8804 Bernd Schmidt <bernds@codesourcery.com>
8805 Nathan Sidwell <nathan@codesourcery.com>
8806
8807 * config/nvptx/mkoffload.c: New file.
8808 * config/nvptx/t-nvptx: Add build rules for it.
8809 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
8810 (extra_programs): Add mkoffload.
8811 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
8812 function.
8813 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
8814
8815 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
8816
8817 PR middle-end/64809
8818 * cfgexpand.c (reorder_operands): Skip debug gimples.
8819
8820 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
8821
8822 PR tree-optimization/64277
8823 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
8824 range info when possible to refine estimation.
8825
8826 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
8827
8828 PR tree-optimization/64718
8829 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
8830 be a 16bit unsigned integer when n->range is 16.
8831 (bswap_replace): Convert src to that type if necessary for all bswap
8832 sizes. Fix rotation right notation in nearby comment. Use bswap_type
8833 set in pass_optimize_bswap::execute ().
8834
8835 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
8836
8837 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
8838 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
8839 integer and floating point variants.
8840 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
8841
8842 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
8843
8844 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
8845 for all vector modes.
8846
8847 2015-01-28 Jakub Jelinek <jakub@redhat.com>
8848
8849 PR bootstrap/64612
8850 * doc/sourcebuild.texi (comdat_group): Document.
8851
8852 2015-01-28 Terry Guo <terry.guo@arm.com>
8853
8854 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
8855
8856 2015-01-27 David Malcolm <dmalcolm@redhat.com>
8857
8858 * toplev.c (print_version): Add param "show_global_state", and
8859 only print GGC and plugin information if it is true.
8860 (init_asm_output): Pass in "true" for the new param when calling
8861 print_version.
8862 (process_options): Likewise.
8863 (toplev::main): Likewise.
8864 * toplev.h (print_version): Add new param to decl.
8865
8866 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
8867
8868 PR ipa/60871
8869 PR ipa/64139
8870 * tree.c (lookup_binfo_at_offset): New function.
8871 (get_binfo_at_offset): Use it.
8872
8873 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
8874
8875 PR ipa/64282
8876 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
8877 on vtable being vtable.
8878
8879 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
8880
8881 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
8882 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
8883 -mhotpatch= option.
8884 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
8885 -mno-hotpatch options. Change syntax of -mhotpatch= option.
8886 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
8887 Renamed.
8888 (s390_hotpatch_trampoline_halfwords_max): Renamed.
8889 (s390_hotpatch_hw_max): New name.
8890 (s390_hotpatch_trampoline_halfwords): Renamed.
8891 (s390_hotpatch_hw_before_label): New name.
8892 (get_hotpatch_attribute): Removed.
8893 (s390_hotpatch_hw_after_label): New name.
8894 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
8895 attribute.
8896 (s390_attribute_table): Ditto.
8897 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
8898 (s390_function_num_hotpatch_hw): New name.
8899 Remove special handling of inline functions and hotpatching.
8900 Return number of nops before and after the function label.
8901 (s390_can_inline_p): Removed.
8902 (s390_asm_output_function_label): Emit a configurable number of nops
8903 after the function label.
8904 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
8905 (TARGET_CAN_INLINE_P) Removed.
8906 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
8907
8908 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8909 Jiong Wang <jiong.wang@arm.com>
8910
8911 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
8912 of scratch reg.
8913 (cb<optab><mode>1): Likewise.
8914 * config/aarch64/iterators.md (bcond): New define_code_attr.
8915
8916 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8917
8918 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
8919 memory accesses.
8920
8921 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8922
8923 * config/s390/s390.c (s390_register_move_cost): Increase costs for
8924 FPR->GPR moves.
8925
8926 2015-01-27 Richard Biener <rguenther@suse.de>
8927
8928 * tree-vrp.c (update_value_range): Intersect the range with
8929 old recorded SSA name range information.
8930
8931 2015-01-27 Nick Clifton <nickc@redhat.com>
8932
8933 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
8934 BC, DE and HL registers directly, not via AX.
8935 When decrementing the stack pointer by a large amount, transfer SP
8936 into AX and perform the subtraction there.
8937 (rl78_expand_epilogue): Perform the inverse of the above
8938 enhancements.
8939
8940 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8941
8942 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
8943
8944 2015-01-27 Jakub Jelinek <jakub@redhat.com>
8945 Yury Gribov <y.gribov@samsung.com>
8946
8947 PR ubsan/64741
8948 * ubsan.c (ubsan_source_location): Refactor code.
8949 (ubsan_type_descriptor): Update type size. Refactor code.
8950
8951 2015-01-27 Richard Biener <rguenther@suse.de>
8952
8953 PR tree-optimization/56273
8954 PR tree-optimization/59124
8955 PR tree-optimization/64277
8956 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
8957 from the first VRP pass.
8958
8959 2015-01-27 Jakub Jelinek <jakub@redhat.com>
8960
8961 PR ipa/64776
8962 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
8963 handle the first argument in the same loop as all the other arguments.
8964
8965 PR rtl-optimization/61058
8966 * jump.c (cleanup_barriers): Update basic block boundaries
8967 if BLOCK_FOR_INSN is non-NULL on PREV.
8968
8969 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
8970
8971 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
8972 bounds narrowing, already instrumented calls and calls to
8973 not instrumentable functions.
8974
8975 2015-01-27 Jakub Jelinek <jakub@redhat.com>
8976
8977 PR tree-optimization/64807
8978 * wide-int.cc (wi::divmod_internal): Clear
8979 b_dividend[dividend_blocks_needed].
8980
8981 2015-01-26 DJ Delorie <dj@redhat.com>
8982
8983 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
8984 volatile memory references.
8985
8986 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
8987
8988 PR target/49263
8989 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
8990 remove_insn.
8991 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
8992 shifts if it already fits into K08.
8993
8994 2015-01-26 Jakub Jelinek <jakub@redhat.com>
8995
8996 PR ipa/64730
8997 * ipa-inline.c (inline_small_functions): Print "unknown" even
8998 if edge->call_stmt is non-NULL, but has builtins or unknown
8999 location.
9000
9001 PR middle-end/64421
9002 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
9003 with asterisk, skip the first character.
9004
9005 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
9006
9007 PR target/64806
9008 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
9009 order change.
9010
9011 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
9012
9013 PR target/64795
9014 * config/i386/i386.md (*movdi_internal): Also check operand 0
9015 to determine TYPE_LEA operand.
9016 (*movsi_internal): Ditto.
9017
9018 2015-01-26 Jakub Jelinek <jakub@redhat.com>
9019
9020 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
9021 OPTION_MASK_QUAD_MEMORY_ATOMIC.
9022
9023 2015-01-26 Renlin Li <renlin.li@arm.com>
9024
9025 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
9026 the comment.
9027 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
9028 for higher part.
9029
9030 2015-01-26 Richard Biener <rguenther@suse.de>
9031
9032 PR middle-end/64764
9033 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
9034 combining two BIT_AND_EXPR predicates.
9035
9036 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
9037
9038 PR bootstrap/64754
9039 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
9040
9041 2015-01-26 Terry Guo <terry.guo@arm.com>
9042
9043 * config/arm/arm.c (arm_file_start): Update the assignment of
9044 Tag_ABI_HardFP_use.
9045
9046 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
9047
9048 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
9049 pipeline model.
9050 config/arm/arm.md: Include the new Cortex-A57 model.
9051 (generic_sched): Don't use generic_sched when tuning for
9052 Cortex-A57.
9053
9054 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
9055 Uros Bizjak <ubizjak@gmail.com>
9056
9057 * config/i386/i386.c (get_builtin_code_for_version): Add
9058 support for BMI and BMI2 multiversion functions.
9059
9060 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9061
9062 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
9063 (extract_bit_field): Likewise.
9064 (extract_low_bits): Likewise.
9065 (expand_mult): Likewise.
9066 (expand_mult_highpart_adjust): Likewise.
9067
9068 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
9069
9070 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
9071 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
9072 * config/i386/i386.c (processor_model): Add
9073 M_INTEL_COREI7_BROADWELL.
9074 (arch_names_table): Add "broadwell".
9075
9076 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
9077
9078 PR target/49263
9079 PR target/53987
9080 PR target/64345
9081 PR target/59533
9082 PR target/52933
9083 PR target/54236
9084 PR target/51244
9085 * config/sh/sh-protos.h
9086 (sh_extending_set_of_reg::can_use_as_unextended_reg,
9087 sh_extending_set_of_reg::use_as_unextended_reg,
9088 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
9089 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
9090 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
9091 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
9092 (sh_treg_insns): New class.
9093 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
9094 (scope_counter): New class.
9095 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
9096 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
9097 sh_extending_set_of_reg::can_use_as_unextended_reg,
9098 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
9099 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
9100 sh_split_treg_set_expr): New functions.
9101 (addsubcosts): Handle treg_set_expr.
9102 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
9103 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
9104 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
9105 (sh_insn_operands_modified_between_p): Make non-static.
9106 * config/sh/predicates.md (zero_extend_movu_operand): Allow
9107 simple_mem_operand in addition to displacement_mem_operand.
9108 (zero_extend_operand): Don't allow zero_extend_movu_operand.
9109 (treg_set_expr, treg_set_expr_not_const01,
9110 arith_reg_or_treg_set_expr): New predicates.
9111 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
9112 arith_or_int_operand instead of logical_operand. Convert to
9113 insn_and_split. Try to optimize constant operand in splitter.
9114 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
9115 (*tstqi_t_zero): Delete.
9116 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
9117 (tstsi_t_and_not): Delete.
9118 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
9119 Convert to insn_and_split.
9120 (unnamed split, tstsi_t_zero_extract_xor,
9121 tstsi_t_zero_extract_subreg_xor_little,
9122 tstsi_t_zero_extract_subreg_xor_big): Delete.
9123 (*tstsi_t_shift_mask): New insn_and_split.
9124 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
9125 to recombine with surrounding insns when splitting.
9126 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
9127 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
9128 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
9129 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
9130 (*cbranch_div0s: Delete.
9131 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
9132 Try to recombine with surrounding insns when splitting. Add operand
9133 order variants.
9134 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
9135 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
9136 *addc_r_r_msb, *addc_2r_msb): Delete.
9137 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
9138 order variant.
9139 (*addc_negreg_t): New insn_and_split.
9140 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
9141 Try to recombine with surrounding insns when splitting.
9142 Add operand order variants.
9143 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
9144 insn_and_split patterns.
9145 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
9146 surrounding insns when splitting.
9147 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
9148 (*rotcl): Likewise. Add zero_extract variant.
9149 (*ashrsi2_31): New insn_and_split.
9150 (*negc): Convert to insn_and_split. Use treg_set_expr.
9151 (*zero_extend<mode>si2_disp_mem): Update comment.
9152 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
9153 condition.
9154 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
9155 with surrounding insns when splitting.
9156 (any_treg_expr_to_reg): New insn_and_split.
9157 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
9158 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
9159 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
9160 *zero_extract_2): New single bit zero extract patterns.
9161 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
9162 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
9163 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
9164 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
9165 set destination.
9166 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
9167 register_operand for set source.
9168
9169 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
9170
9171 * i386.opt (prefetch_sse): New targetsave.
9172 * i386.c (ix86_function_specific_save): Save prefetch_sse.
9173 (ix86_function_specific_restore): Restore prefetch_sse and initialize
9174 ix86_cost/ix86_tune_cost.
9175
9176 2015-01-23 David Malcolm <dmalcolm@redhat.com>
9177
9178 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
9179 Support the JIT by using 0 as the language type.
9180
9181 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
9182
9183 PR target/64317
9184 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
9185 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
9186 (mark_regno_live, process_bb_lives): Pass new parameter value to
9187 make_hard_regno_born.
9188
9189 2015-01-23 Jakub Jelinek <jakub@redhat.com>
9190
9191 PR rtl-optimization/63637
9192 PR rtl-optimization/60663
9193 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
9194 if elt->cost is MAX_COST for ASM_OPERANDS.
9195 (find_sets_in_insn): Fix up comment typo.
9196 (cse_insn): Don't set src_volatile for all non-volatile
9197 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
9198 or with "memory" clobber. Set elt->cost to MAX_COST
9199 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
9200 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
9201
9202 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
9203
9204 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
9205 alternative 1.
9206
9207 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
9208
9209 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
9210 libgcc/config/i386/elf-lib.h.
9211
9212 2015-01-23 Jakub Jelinek <jakub@redhat.com>
9213
9214 PR driver/64737
9215 * gcc.c (print_configuration): Don't print a blank line at the end
9216 here...
9217 (run_attempt): ... but here unstead.
9218
9219 PR middle-end/64734
9220 * omp-low.c (scan_sharing_clauses): Don't ignore
9221 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
9222 on target data/update constructs.
9223
9224 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
9225
9226 PR target/50928
9227 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
9228 (DEBUG_RELOAD): Removed define.
9229 (m32c_limit_reload_class): Enable traces with if DEBUG0.
9230 (m32c_function_arg): Added a type cast.
9231 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
9232 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
9233 * config/m32c/bitops.md (andqi3_16): Likewise.
9234 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
9235 (push_a01_l): Likewise.
9236
9237 2015-01-23 David Malcolm <dmalcolm@redhat.com>
9238
9239 PR jit/64721
9240 * main.c (main): Construct toplev instances with init_signals=true.
9241 * toplev.c (general_init): Add param "init_signals", and use it to
9242 conditionalize the calls to signal and host_hooks.extra_signals.
9243 (toplev::toplev): Add param "init_signals".
9244 (toplev::main): When invoking general_init, pass m_init_signals
9245 to control whether signal-handlers are installed.
9246 * toplev.h (toplev::toplev): Add param "init_signals".
9247 (toplev::m_init_signals): New field.
9248
9249 2015-01-23 David Malcolm <dmalcolm@redhat.com>
9250
9251 PR jit/64722
9252 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
9253 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
9254 latter may be affected by the former (e.g. on i686).
9255
9256 2015-01-23 Martin Liska <mliska@suse.cz>
9257
9258 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
9259 false positive during profiledbootstrap.
9260
9261 2015-01-23 Tom de Vries <tom@codesourcery.com>
9262
9263 PR libgomp/64672
9264 * lto-opts.c (lto_write_options): Output non-explicit conservative
9265 -fno-openacc.
9266 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
9267 (append_compiler_options): Pass -fopenacc through.
9268
9269 2015-01-23 Tom de Vries <tom@codesourcery.com>
9270
9271 PR libgomp/64707
9272 * lto-opts.c (lto_write_options): Output non-explicit conservative
9273 -fno-openmp.
9274 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
9275 (append_compiler_options): Pass -fopenmp through.
9276
9277 2015-01-23 Jakub Jelinek <jakub@redhat.com>
9278
9279 PR debug/64511
9280 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
9281 GTY markup.
9282
9283 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
9284 * diagnostic.def (DK_ICE_NOBT): New kind.
9285 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
9286 like DK_ICE, but never print backtrace.
9287 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
9288 (internal_error_no_backtrace): New function.
9289 * gcc.c (execute): Use internal_error_no_backtrace instead of
9290 internal_error.
9291
9292 2015-01-22 Jeff Law <law@redhat.com>
9293
9294 PR target/52076
9295 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
9296 improve code density for small immediate to memory case.
9297 (insv): Better handle bitfield assignments when the field is
9298 being set to all ones.
9299 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
9300 operand predicate.
9301
9302 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9303 Jakub Jelinek <jakub@redhat.com>
9304
9305 PR middle-end/64729
9306 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
9307 for !TARGET_LIBC_PROVIDES_SSP version and
9308 -fstack-protector-{all,strong,explicit} otherwise.
9309 * config/freebsd.h (LINK_SSP_SPEC): Handle
9310 -fstack-protector-{strong,explicit}.
9311
9312 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
9313 H.J. Lu <hongjiu.lu@intel.com>
9314
9315 PR ipa/64694
9316 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
9317 heap.
9318
9319 2015-01-22 Wei Mi <wmi@google.com>
9320
9321 PR rtl-optimization/64557
9322 * dse.c (record_store): Call get_addr for mem_addr.
9323 (check_mem_read_rtx): Likewise.
9324
9325 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
9326
9327 * fold-const.c (const_binop): Add early return for non-tcc_binary.
9328
9329 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
9330
9331 * toplev.c (init_local_tick): Process the failure when read
9332 fails for random_seed.
9333
9334 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
9335 'pretty_name' to avoid memory overflow.
9336
9337 2015-01-22 Richard Biener <rguenther@suse.de>
9338
9339 PR middle-end/64728
9340 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
9341 abnormal coalescing on undefined SSA names.
9342
9343 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
9344
9345 PR target/64688
9346 PR target/64477
9347 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
9348 for alternative 3.
9349 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
9350
9351 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
9352
9353 PR middle-end/63325
9354 * fold-const.c (fold_checksum_tree): Don't include value of
9355 expr->decl_with_vis.symtab_node in the checksum.
9356
9357 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9358
9359 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
9360
9361 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
9362
9363 PR driver/64690
9364 * gcc.c (insert_comments): New function.
9365 (try_generate_repro): Call it.
9366 (append_text): Removed.
9367
9368 2015-01-22 Richard Biener <rguenther@suse.de>
9369
9370 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
9371 with IL incompatible options. Properly honor user optimize
9372 attributes.
9373
9374 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
9375
9376 PR rtl-optimization/64682
9377 * combine.c (distribute_notes): When moving a death note for
9378 a register that is set in the new I2, make sure to put it
9379 before that new I2.
9380
9381 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
9382
9383 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
9384 not TARGET_DEFAULT.
9385
9386 2015-01-21 Jakub Jelinek <jakub@redhat.com>
9387
9388 PR debug/64511
9389 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
9390 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
9391 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
9392
9393 PR sanitizer/64706
9394 * doc/invoke.texi (-fsanitize=vptr): Document.
9395
9396 PR rtl-optimization/62078
9397 * dse.c: Include cfgcleanup.h.
9398 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
9399 anything call purge_all_dead_edges and cleanup_cfg at the end
9400 of the pass.
9401
9402 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
9403
9404 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
9405 edges.
9406
9407 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9408
9409 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
9410 decl attribute.
9411
9412 2015-01-21 David Sherwood <david.sherwood@arm.com>
9413 Tejas Belagod <Tejas.Belagod@arm.com>
9414
9415 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
9416 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
9417 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
9418 Removed.
9419
9420 2015-01-21 David Sherwood <david.sherwood@arm.com>
9421 Tejas Belagod <Tejas.Belagod@arm.com>
9422
9423 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
9424 (aarch64_reverse_mask): New decls.
9425 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
9426 (insn_count): New mode_attr.
9427 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
9428 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
9429 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
9430 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
9431 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
9432 (aarch64_simd_st4): New patterns.
9433 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
9434 (aarch64_reverse_mask): New functions.
9435
9436 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
9437
9438 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
9439 Declare.
9440 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
9441 addressing modes for BE.
9442 (aarch64_print_operand): Add 'R' specifier.
9443 (aarch64_simd_disambiguate_copy): Delete.
9444 (aarch64_simd_emit_reg_reg_move): New function.
9445 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
9446 in define_splits for structural moves.
9447 (mov<mode>): Use less restrictive predicates.
9448 (*aarch64_mov<mode>): Simplify and only allow for LE.
9449 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
9450
9451 2015-01-21 Alan Hayward <alan.hayward@arm.com>
9452
9453 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
9454
9455 2015-01-21 Richard Henderson <rth@redhat.com>
9456
9457 PR target/64669
9458 * ccmp.c (used_in_cond_stmt_p): Remove.
9459 (expand_ccmp_expr): Don't use it.
9460
9461 2015-01-21 Nick Clifton <nickc@redhat.com>
9462
9463 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
9464 PARALLELs.
9465
9466 2015-01-21 Richard Biener <rguenther@suse.de>
9467
9468 PR middle-end/64313
9469 * tree-core.h (builtin_info, builtin_info_type): Turn from
9470 an object with two arrays into an array of an object with
9471 decl and two flags, implicit_p and declared_p.
9472 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
9473 set_builtin_decl, set_builtin_decl_implicit_p,
9474 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
9475 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
9476 * builtins.c (builtin_info): Adjust.
9477 * gimplify.c (gimplify_addr_expr): References to builtins
9478 that have been declared by the user makes them eligible for
9479 use by the compiler. Call set_builtin_decl_implicit_p on them.
9480
9481 2015-01-20 Jeff Law <law@redhat.com>
9482
9483 PR target/59946
9484 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
9485 allow pc-relative addresses in operand predicates or constraints.
9486
9487 2015-01-21 Bin Cheng <bin.cheng@arm.com>
9488
9489 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
9490 neon on aarch32 processors for stringops.
9491
9492 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
9493
9494 PR ipa/63576
9495 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
9496
9497 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
9498
9499 PR lto/45375
9500 * ipa-inline.c: Include lto-streamer.h
9501 (report_inline_failed_reason): Output source file differences and
9502 flags on optimization/target node mismatch.
9503 (can_inline_edge_p): Consider caller to be the outer inline function;
9504 be less restrictive about matching opimize and optimize_size attributes.
9505 (inline_account_function_p): Break out from ...
9506 (inline_small_functions): ... here.
9507 * ipa-inline-transform.c (clone_inlined_nodes): Use
9508 inline_account_function_p.
9509 (inline_call): Use optimize attribution; use inline_account_function_p.
9510 (inline_transform): Use opt_for_fn.
9511 * ipa-inline.h (inline_account_function_p): Declare.
9512
9513 2015-01-20 Jakub Jelinek <jakub@redhat.com>
9514
9515 PR debug/64663
9516 * dwarf2out.c (decl_piece_node): Don't put bitsize into
9517 mode if bitsize <= 0.
9518 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
9519 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
9520 sizes and positions.
9521
9522 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
9523
9524 * config/nios2/nios2.c (nios2_asm_file_end): Implement
9525 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
9526 needed.
9527 (TARGET_ASM_FILE_END): Define.
9528
9529 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9530
9531 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
9532 (struct tune_params): Use the enum.
9533 * arm.c (arm_*_tune): Update.
9534 (arm_option_override): Update.
9535
9536 2015-01-20 Richard Biener <rguenther@suse.de>
9537
9538 PR ipa/64684
9539 * ipa-reference.c (add_static_var): Inline ...
9540 (analyze_function): ... here after splitting out from ...
9541 (is_proper_for_analysis): ... this.
9542
9543 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
9544
9545 PR target/64149
9546 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
9547 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
9548 replace the conditional with it's true branch.
9549 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
9550 (arm_lra_p): Remove.
9551
9552 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
9553
9554 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
9555
9556 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9557
9558 * config/tilegx/mul-tables.c: Move symtab.h include after
9559 coretypes.h include.
9560 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
9561 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
9562 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
9563 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
9564 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
9565
9566 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
9567
9568 PR bootstrap/64676
9569 Revert:
9570 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
9571
9572 PR rtl-optimization/64081
9573 * loop-iv.c (def_pred_latch_p): New function.
9574 (latch_dominating_def): Allow specific cases with non-single
9575 definitions.
9576 (iv_get_reaching_def): Likewise.
9577 (check_complex_exit_p): New function.
9578 (check_simple_exit): Use check_complex_exit_p to allow certain cases
9579 with exits not executing on any iteration.
9580
9581 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
9582
9583 PR lto/45375
9584 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
9585 to set branch cost.
9586
9587 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
9588
9589 PR lto/45375
9590 * i386.c (gate): Check flag_expensive_optimizations and
9591 optimize_size.
9592 (ix86_option_override_internal): Drop optimize_size condition
9593 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
9594 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
9595 MASK_PREFER_AVX128.
9596 (ix86_avx256_split_vector_move_misalign,
9597 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
9598 * sse.md (all uses of TARGET_PREFER_AVX128): Add
9599 optimize_insn_for_speed_p check.
9600
9601 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
9602
9603 * config/mips/mips.h (FP_ASM_SPEC): New define.
9604 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
9605 instead.
9606
9607 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
9608
9609 PR target/53988
9610 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
9611 nullptr for insn when reaching the first insn.
9612 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
9613 (sh_insn_operands_modified_between_p): Add nullptr check.
9614 (sh_find_extending_set_of_reg): Fix log message. Don't accept
9615 sign extending mem load if the insn contains any UNSPEC or
9616 UNSPEC_VOLATILE.
9617
9618 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
9619
9620 * params.def (inline-unit-growth): Drop to 15%.
9621 * invoke.texi (inline-unit-growth): Document change.
9622
9623 2015-01-19 Martin Liska <mliska@suse.cz>
9624
9625 PR ipa/64668
9626 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
9627 function for second argument of OBJ_TYPE_REF.
9628
9629 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
9630
9631 PR ipa/64218
9632 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
9633 whether function is an alias.
9634
9635 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
9636
9637 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
9638 cases.
9639
9640 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
9641
9642 PR rtl-optimization/64671
9643 * lra-remat.c (operand_to_remat): Don't consider jump and call
9644 insns.
9645
9646 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
9647
9648 PR target/59828
9649 * config/rs6000/default64.h: Include rs6000-cpus.def.
9650 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
9651 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
9652 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
9653 and POWER8.
9654 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
9655 POWER8.
9656 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
9657 pseudo-op to specify assembler dialect.
9658
9659 2015-01-19 Martin Liska <mliska@suse.cz>
9660
9661 PR ipa/64664
9662 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
9663 Handle safe potentially removed nodes during filtering.
9664
9665 2015-01-19 Martin Liska <mliska@suse.cz>
9666
9667 * doc/extend.texi (no_icf): Add new attribute description.
9668 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
9669 where the pass attempts to merge a function with no_icf attribute.
9670
9671 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9672
9673 PR target/64532
9674 * doc/md.texi (ARM Options): Document register constraints.
9675
9676 2015-01-19 Jiong Wang <jiong.wang@arm.com>
9677 Andrew Pinski <apinski@cavium.com>
9678
9679 PR target/64304
9680 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
9681 (ashl<mode>3): Don't expand if operands[2] is not constant.
9682
9683 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9684
9685 PR target/64448
9686 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
9687 Match xor-and-xor RTL pattern.
9688
9689 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
9690
9691 PR rtl-optimization/64081
9692 * loop-iv.c (def_pred_latch_p): New function.
9693 (latch_dominating_def): Allow specific cases with non-single
9694 definitions.
9695 (iv_get_reaching_def): Likewise.
9696 (check_complex_exit_p): New function.
9697 (check_simple_exit): Use check_complex_exit_p to allow certain cases
9698 with exits not executing on any iteration.
9699
9700 2015-01-19 Jakub Jelinek <jakub@redhat.com>
9701
9702 * common.opt (fgraphite): Fix a typo.
9703
9704 2015-01-19 Felix Yang <felix.yang@huawei.com>
9705
9706 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
9707 pattern.
9708 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
9709 uminp, smax_nanp, smin_nanp): New builtins.
9710 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
9711 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
9712 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
9713 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
9714 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
9715 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
9716 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
9717 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
9718 vpminnms_f32): Rewrite using builtin functions.
9719
9720 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
9721
9722 PR libgomp/64625
9723 * omp-low.c (offload_symbol_decl): Remove variable.
9724 (get_offload_symbol_decl): Remove function.
9725 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
9726 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
9727 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
9728 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
9729 BUILT_IN_GOACC_UPDATE don't pass it at all.
9730
9731 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
9732
9733 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
9734 callers.
9735
9736 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
9737
9738 * ipa-chkp.c (chkp_produce_thunks): Add early param
9739 to split thunks production into two passes. Keep
9740 'always_inline' function bodies after the first pass.
9741 (pass_data_ipa_chkp_early_produce_thunks): New.
9742 (pass_ipa_chkp_early_produce_thunks): New.
9743 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
9744 chkp_produce_thunks signature.
9745 (make_pass_ipa_chkp_early_produce_thunks): New.
9746 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
9747 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
9748 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
9749
9750 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
9751
9752 * cgraph.c (cgraph_node::dump): Dump profile flags.
9753
9754 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
9755
9756 PR target/64652
9757 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
9758 reg appear first in the parallel.
9759
9760 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
9761
9762 * ipa-reference.c (set_reference_optimization_summary,
9763 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
9764 disabled.
9765 (ignore_module_statics): New static var.
9766 (propagate_bits): If ipa-reference is disabled, do not look into local
9767 properties.
9768 (analyze_function): Disable analysis when ipa_reference is disabled.
9769 (generate_summary): Do not dump when reference is disabled;
9770 collect vars accessed from functions with ipa-reference disabled.
9771 (get_read_write_all_from_node): When ipa-reference is disabled, use the
9772 node flags.
9773 (gate): Enable for LTO.
9774 (ignore_edge_p): New function.
9775 (propagate): Skip functions w/o ipa-reference analysis.
9776 * optc-save-gen.awk: Handle optimize_debug correctly.
9777 * opth-gen.awk: Likewise.
9778 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
9779 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
9780 fira-share-save-slots, fira-share-spill-slots,
9781 fmodulo-sched-allow-regmoves, fpartial-inlining,
9782 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
9783 ftracer, ftree-parallelize-loops, fassociative-math,
9784 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
9785 Optimization
9786 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
9787 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
9788 Optimization.
9789 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
9790 Fix for IPA.
9791
9792 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
9793
9794 PR ipa/64378
9795 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
9796 flag correctly.
9797 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
9798
9799 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
9800
9801 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
9802 Remove duplicate option listings.
9803
9804 2015-01-18 Felix Yang <felix.yang@huawei.com>
9805
9806 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
9807 (autofdo_source_profile::get_callsite_total_count,
9808 function_instance::get_function_instance_by_decl,
9809 string_table::get_index, string_table::get_index_by_decl,
9810 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
9811 Fix comment typos. Reformatting and minor code rearrangement.
9812
9813 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
9814
9815 * config/rs6000/rs6000.md (probe_stack): Delete.
9816 (probe_stack_address): New.
9817
9818 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
9819
9820 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
9821 to test for 32-bit ABIs, not !TARGET_POWERPC64.
9822
9823 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
9824
9825 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
9826 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
9827 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
9828 snafu.
9829 (rs6000_libcall_value): Use the new function.
9830
9831 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
9832
9833 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
9834
9835 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
9836
9837 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
9838 implement a more precise life analysis for it during backward scan.
9839
9840 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9841
9842 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
9843
9844 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
9845
9846 PR rtl-optimization/52773
9847 * calls.c (emit_library_call_value): When pushing arguments use
9848 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
9849 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
9850 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
9851
9852 2015-01-17 Jeff Law <law@redhat.com>
9853
9854 PR rtl-optimization/32790
9855 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
9856 not ZERO_EXTEND in SET_DESTs.
9857
9858 2015-01-17 Alan Modra <amodra@gmail.com>
9859
9860 * cprop.c (do_local_cprop): Revert last change.
9861
9862 2015-01-16 DJ Delorie <dj@redhat.com>
9863 Nick Clifton <nickc@redhat.com>
9864
9865 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
9866 (addhi3_real): Likewise. Fix [HL+0] syntax.
9867 (subqi3_real): Likewise.
9868 (subhi3_real): Likewise.
9869 (cbranchqi4_real): Likewise. Allow saddr,#imm.
9870 (cbranchhi4_real): Likewise.
9871 (cbranchhi4_real_inverted): Likewise.
9872 (cbranchsi4_real_lt): Likewise.
9873 (cbranchsi4_real_ge): Likewise.
9874 (cbranchsi4_real_ge): Likewise.
9875 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
9876 (sub<mode>3_virt): Likewise.
9877 (cbranchqi4_virt): Likewise.
9878 (cbranchhi4_virt): Likewise.
9879 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
9880 always use '[reg+imm]' even when imm is zero.
9881 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
9882 (rl78_general_operand): New.
9883 (rl78_nonimmediate_operand): New.
9884 (rl78_nonfar_operand): Use them.
9885 (rl78_nonfar_nonimm_operand): Likewise.
9886 (rl78_stack_based_mem): Fix.
9887 * config/rl78/constraints.md (Ibqi): New.
9888 (IBqi): New.
9889 (Wsa): New.
9890 (Wsf): New.
9891 (Cs1): Fix.
9892 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
9893 (iorqi3): Likewise.
9894 (xorqi3): Likewise.
9895 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
9896
9897 * config/rl78/constrains (Qs8): New constraint.
9898 * config/rl78/rl78.c (rl78_flags_already_set): New function.
9899 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
9900 * config/rl78/rl78-real.md (update_Z): New attribute.
9901 Update patterns to set it.
9902 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
9903 shorter compare and branch sequence can be used.
9904 (cbranchhi4_real): Likewise.
9905 (cbranchhi4_real_inverted): Likewise.
9906
9907 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
9908 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
9909 address space.
9910 * config/rl78/rl78.c (rl78_get_name_encoding): New.
9911 (rl78_option_override): Allow -mes0 only if C.
9912 (characterize_address): Support subregs of symbol_refs.
9913 (rl78_addr_space_address_mode): Move. Add __near.
9914 (rl78_far_p): Likewise.
9915 (rl78_addr_space_pointer_mode): Likewise.
9916 (rl78_as_legitimate_address): Likewise.
9917 (rl78_addr_space_subset_p): Likewise.
9918 (rl78_addr_space_convert): Likewise.
9919 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
9920 symbols with -mes0.
9921 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
9922 addressing.
9923 (rl78_alloc_physical_registers_op1): Change logic to prefer
9924 symbol[BC] addressing.
9925 (frodata_section): New.
9926 (rl78_asm_init_sections): Initialize it.
9927 (rl78_select_section): Put __far readonly symbols in .frodata.
9928 (rl78_make_type_far): New.
9929 (rl78_insert_attributes): Force all readonly symbols to be
9930 __far when -mes0.
9931 (rl78_asm_out_integer): New.
9932 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
9933 * config/rl78/rl78.opt (-mes0): New.
9934
9935 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
9936 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
9937 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
9938 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
9939 (rl78_saddr_p): New.
9940 (rl78_output_aligned_common): New.
9941 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
9942 (rl78_handle_saddr_attribute): New.
9943 (rl78_handle_naked_attribute): New.
9944 (rl78_attribute_table): Add saddr.
9945 (rl78_print_operand_1): Don't print '!' on saddr operands.
9946 (rl78_print_operand_1): Strip encodings.
9947 (rl78_sfr_p): New.
9948 (rl78_strip_name_encoding): New.
9949 (rl78_attrlist_to_encoding): New.
9950 (rl78_encode_section_info): New.
9951 (rl78_asm_init_sections): New.
9952 (rl78_select_section): New.
9953 (rl78_output_labelref): New.
9954 (rl78_output_aligned_common): New.
9955 (rl78_asm_out_integer): New.
9956 (rl78_asm_ctor_dtor): New.
9957 (rl78_asm_constructor): New.
9958 (rl78_asm_destructor): New.
9959
9960 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
9961 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
9962 (transcode_memory_rtx): Update.
9963 (rl78_expand_epilogue): Use A_REG instead of 0.
9964
9965 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9966
9967 * config/arm/arm-protos.h (struct tune_params): New field
9968 sched_autopref_queue_depth.
9969 * config/arm/arm.c (sched-int.h): Include header.
9970 (arm_first_cycle_multipass_dfa_lookahead_guard,)
9971 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
9972 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
9973 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
9974 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
9975 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
9976 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
9977 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
9978 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
9979 * config/arm/t-arm (arm.o): Update.
9980 * haifa-sched.c (update_insn_after_change): Update.
9981 (rank_for_schedule): Use auto-prefetcher model, if requested.
9982 (autopref_multipass_init): New static function.
9983 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
9984 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
9985 variable for debug dumps.
9986 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
9987 (autopref_multipass_dfa_lookahead_guard): New global function that
9988 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
9989 (init_h_i_d): Update.
9990 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
9991 * sched-int.h (enum autopref_multipass_data_status): New const enum.
9992 (autopref_multipass_data_): Structure for auto-prefetcher data.
9993 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
9994 (struct _haifa_insn_data:autopref_multipass_data): New field.
9995 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
9996 (autopref_multipass_dfa_lookahead_guard): Declare.
9997
9998 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9999
10000 * rtlanal.c (get_base_term): Handle SCRATCH.
10001
10002 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10003
10004 * config/aarch64/aarch64.c
10005 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
10006 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
10007 * config/arm/arm.c
10008 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
10009 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
10010
10011 2015-01-17 Alan Modra <amodra@gmail.com>
10012
10013 * cprop.c (do_local_cprop): Disallow replacement of fixed
10014 hard registers.
10015
10016 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10017
10018 PR target/62066
10019 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
10020 early return 0.
10021
10022 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
10023
10024 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
10025 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
10026
10027 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10028
10029 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
10030 * config/arm/thumb1.md: ... Here.
10031
10032 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
10033
10034 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
10035 TImode for TARGET_32BIT.
10036
10037 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
10038
10039 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
10040 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
10041 as ...
10042 (rs6000_abi_word_mode): New function.
10043
10044 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
10045
10046 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
10047 instead of UNITS_PER_WORD to describe the size of stack slots.
10048
10049 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
10050
10051 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
10052 as rs6000_promote_function_mode. Move comment to there.
10053 (rs6000_promote_function_mode): New function.
10054
10055 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
10056
10057 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
10058 -mpowerpc64 is active.
10059
10060 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
10061
10062 PR middle-end/64353
10063 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
10064 virtuals on start.
10065
10066 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
10067
10068 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
10069 introduced in revision 219724.
10070
10071 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10072 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10073
10074 PR target/64263
10075 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
10076 destination is not a GP reg.
10077 (*movdi_aarch64): Likewise.
10078
10079 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
10080
10081 PR target/64623
10082 * config/rs6000/default64.h: Revert ISA change.
10083
10084 2015-01-16 Richard Biener <rguenther@suse.de>
10085
10086 PR middle-end/64614
10087 * tree-ssa-uninit.c: Include tree-cfg.h.
10088 (MAX_SWITCH_CASES): New define.
10089 (convert_control_dep_chain_into_preds): Handle switch statements.
10090 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
10091 (normalize_one_pred_1): Do not split bit-manipulations.
10092 Record (x & CST).
10093
10094 2015-01-16 Richard Biener <rguenther@suse.de>
10095
10096 PR tree-optimization/64568
10097 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
10098 complex load rewriting for TARGET_MEM_REFs.
10099
10100 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
10101
10102 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
10103
10104 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
10105
10106 PR target/64149
10107 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
10108 variable.
10109 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
10110 (aarch64_lra_p): Remove.
10111
10112 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
10113
10114 PR target/64363
10115 * ipa-chkp.h (chkp_instrumentable_p): New.
10116 * ipa-chkp.c: Include tree-inline.h.
10117 (chkp_instrumentable_p): New.
10118 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
10119 Fix processing of not instrumentable functions.
10120 (chkp_versioning): Use chkp_instrumentable_p. Warn about
10121 not instrumentable functions.
10122 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
10123 chkp_instrumentable_p.
10124 * tree-inline.h (copy_forbidden): New.
10125 * tree-inline.c (copy_forbidden): Not static anymore.
10126
10127 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10128
10129 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
10130 ptr1, ptr2 unused.
10131
10132 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
10133
10134 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
10135 type OP_OUT to OP_INOUT.
10136
10137 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
10138
10139 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
10140 (high x) y) to y if x and y have the same base.
10141
10142 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
10143
10144 * config/arm/cortex-a57.md: New.
10145 * config/aarch64/aarch64.md: Include it.
10146 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
10147 * config/aarch64/aarch64-tune.md: Regenerate.
10148
10149 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
10150
10151 PR target/64015
10152 * ccmp.c (expand_ccmp_next): New function.
10153 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
10154 and compare insn sequence.
10155 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
10156 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
10157 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
10158 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
10159 (*ccmp_ior): Changed to ccmp_ior<mode>.
10160 (cmp<mode>): New pattern.
10161 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
10162 parameters.
10163 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
10164
10165 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
10166
10167 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
10168 _mm256_bsrli_epi128): New.
10169 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
10170
10171 2015-01-15 Jiong Wang <jiong.wang@arm.com>
10172
10173 * expmed.c (store_bit_field_using_insv): Improve warning message.
10174 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
10175
10176 2015-01-15 Jiong Wang <jiong.wang@arm.com>
10177
10178 PR rtl-optimization/64011
10179 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
10180 there is partial overflow.
10181
10182 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
10183
10184 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
10185 prototype.
10186 (nds32_expand_epilogue_v3pop): Likewise.
10187 * config/nds32/nds32.md (sibcall): Define this for sibling call
10188 optimization.
10189 (sibcall_register): Likewise.
10190 (sibcall_immediate): Likewise.
10191 (sibcall_value): Likewise.
10192 (sibcall_value_register): Likewise.
10193 (sibcall_value_immediate): Likewise.
10194 (sibcall_epilogue): Likewise.
10195 (epilogue): Pass false to indicate this is not a sibcall epilogue.
10196 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
10197 (nds32_expand_epilogue_v3pop): Likewise.
10198
10199 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
10200
10201 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
10202 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
10203 (return_internal): New.
10204 (return): Define this named pattern.
10205 (simple_return): Define this named pattern.
10206 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
10207 pattern instead of unspec_volatile_func_return.
10208 (nds32_expand_epilogue_v3pop): Likewise.
10209 (nds32_can_use_return_insn): New function.
10210
10211 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
10212
10213 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
10214 * config/nds32/nds32.md (pop25return): New.
10215 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
10216 pop25return pattern.
10217
10218 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
10219
10220 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
10221 -mforbid-fp-as-gp, and -mex9 options.
10222
10223 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
10224
10225 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
10226 remove -mgp-direct option.
10227
10228 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
10229
10230 * doc/invoke.texi (--param early-inlining-insns): Update default value.
10231 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
10232
10233 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
10234
10235 * ipa-inline.c (inline_small_functions): Work around hints
10236 cache issue.
10237
10238 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
10239
10240 PR target/59710
10241 * doc/invoke.texi (Option Summary): Document new Nios II
10242 -mgpopt= syntax.
10243 (Nios II Options): Likewise.
10244 * config/nios2/nios2.opt: Add -mgpopt= option support.
10245 Modify existing -mgpopt and -mno-gpopt options to be aliases.
10246 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
10247 * config/nios2/nios2.c (nios2_option_override): Adjust
10248 -mgpopt defaulting.
10249 (nios2_in_small_data_p): Return true for explicit small data
10250 sections even with -G0.
10251 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
10252 option choices.
10253
10254 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
10255
10256 PR ipa/64612
10257 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
10258 of comdat locals.
10259 (inline_call): Fix removal of aliases.
10260
10261 2015-01-15 Jakub Jelinek <jakub@redhat.com>
10262
10263 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
10264 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
10265 * opts.c (common_handle_option): Add -fsanitize=vptr.
10266 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
10267 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
10268 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
10269 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
10270 (ubsan_expand_vptr_ifn): New prototype.
10271 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
10272 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
10273 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
10274 expand_LOOP_VECTORIZED): Make argument nameless, remove
10275 ATTRIBUTE_UNUSED.
10276 (expand_UBSAN_VPTR): New function.
10277 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
10278 in fn spec.
10279 (UBSAN_VPTR): New internal function.
10280 * sanopt.c (tree_map_traits): Renamed to ...
10281 (sanopt_tree_map_traits): ... this.
10282 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
10283 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
10284 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
10285 (maybe_optimize_ubsan_vptr_ifn): New function.
10286 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
10287 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
10288 -fsanitize=vptr.
10289 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
10290 internal calls like pure functions for aliasing, even when they
10291 have other side-effects that prevent making them ECF_PURE.
10292 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
10293 (ubsan_expand_vptr_ifn): New function.
10294
10295 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
10296
10297 PR rtl-optimization/64110
10298 * stmt.c (parse_output_constraint): Process '^' and '$'.
10299 (parse_input_constraint): Ditto.
10300 * lra-constraints.c (process_alt_operands): Process the new
10301 constraints.
10302 * ira-costs.c (record_reg_classes): Process the new constraint
10303 '^'.
10304 * genoutput.c (indep_constraints): Add '^' and '$'.
10305 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
10306 * doc/md.texi: Add description of the new constraints.
10307
10308 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
10309 Bernd Schmidt <bernds@codesourcery.com>
10310 Cesar Philippidis <cesar@codesourcery.com>
10311 James Norris <jnorris@codesourcery.com>
10312 Tom de Vries <tom@codesourcery.com>
10313 Ilmir Usmanov <i.usmanov@samsung.com>
10314 Dmitry Bocharnikov <dmitry.b@samsung.com>
10315 Evgeny Gavrin <e.gavrin@samsung.com>
10316 Jakub Jelinek <jakub@redhat.com>
10317
10318 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
10319 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
10320 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
10321 New function types.
10322 * builtins.c: Include "gomp-constants.h".
10323 (expand_builtin_acc_on_device): New function.
10324 (expand_builtin, is_inexpensive_builtin): Handle
10325 BUILT_IN_ACC_ON_DEVICE.
10326 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
10327 New macros.
10328 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
10329 flag_openmp.
10330 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
10331 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
10332 i386/intelmic-offload.h.
10333 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
10334 to libgomp and its dependencies.
10335 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
10336 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
10337 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
10338 * config/ia64/hpux.h (LIB_SPEC): Likewise.
10339 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10340 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
10341 * doc/generic.texi: Update for OpenACC changes.
10342 * doc/gimple.texi: Likewise.
10343 * doc/invoke.texi: Likewise.
10344 * doc/sourcebuild.texi: Likewise.
10345 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
10346 GF_OMP_FOR_KIND_OACC_LOOP.
10347 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
10348 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
10349 GF_OMP_TARGET_KIND_OACC_UPDATE,
10350 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
10351 Dump more data.
10352 * gimple.c: Update comments for OpenACC changes.
10353 * gimple.def: Likewise.
10354 * gimple.h: Likewise.
10355 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
10356 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
10357 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
10358 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
10359 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
10360 appropriate place.
10361 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
10362 * gimplify.c: Include "gomp-constants.h".
10363 Update comments for OpenACC changes.
10364 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
10365 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
10366 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
10367 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
10368 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
10369 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
10370 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
10371 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
10372 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
10373 OMP_CLAUSE_SEQ.
10374 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
10375 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
10376 OMP_CLAUSE_SET_MAP_KIND.
10377 (gimplify_oacc_cache): New function.
10378 (gimplify_omp_for): Handle OACC_LOOP.
10379 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
10380 OACC_DATA.
10381 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
10382 OACC_EXIT_DATA, OACC_UPDATE.
10383 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
10384 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
10385 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
10386 (gimplify_body): Consider flag_openacc next to flag_openmp.
10387 * lto-streamer-out.c: Include "gomp-constants.h".
10388 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
10389 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
10390 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
10391 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
10392 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
10393 (BUILT_IN_ACC_ON_DEVICE): New builtins.
10394 * omp-low.c: Include "gomp-constants.h".
10395 Update comments for OpenACC changes.
10396 (struct omp_context): Add reduction_map, gwv_below, gwv_this
10397 members.
10398 (extract_omp_for_data, use_pointer_for_field, install_var_field)
10399 (new_omp_context, delete_omp_context, scan_sharing_clauses)
10400 (create_omp_child_function, scan_omp_for, scan_omp_target)
10401 (check_omp_nesting_restrictions, lower_reduction_clauses)
10402 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
10403 Update for OpenACC changes.
10404 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
10405 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
10406 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
10407 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
10408 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
10409 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
10410 OMP_CLAUSE_MAP_*.
10411 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
10412 Handle GF_OMP_FOR_KIND_OACC_LOOP.
10413 (expand_omp_target, lower_omp_target): Handle
10414 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
10415 GF_OMP_TARGET_KIND_OACC_UPDATE,
10416 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
10417 GF_OMP_TARGET_KIND_OACC_DATA.
10418 (pass_expand_omp::execute, execute_lower_omp)
10419 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
10420 flag_openmp.
10421 (offload_symbol_decl): New variable.
10422 (oacc_get_reduction_array_id, oacc_max_threads)
10423 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
10424 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
10425 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
10426 (oacc_gimple_assign, oacc_initialize_reduction_data)
10427 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
10428 functions.
10429 (is_targetreg_ctx): Remove function.
10430 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
10431 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
10432 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
10433 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
10434 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
10435 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
10436 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
10437 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
10438 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
10439 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
10440 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
10441 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
10442 * tree-core.h: Update comments for OpenACC changes.
10443 (enum omp_clause_map_kind): Remove.
10444 (struct tree_omp_clause): Change type of map_kind member from enum
10445 omp_clause_map_kind to unsigned char.
10446 * tree-inline.c: Update comments for OpenACC changes.
10447 * tree-nested.c: Likewise. Include "gomp-constants.h".
10448 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
10449 (convert_tramp_reference_stmt, convert_gimple_call): Update for
10450 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
10451 OMP_CLAUSE_SET_MAP_KIND.
10452 * tree-pretty-print.c: Include "gomp-constants.h".
10453 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
10454 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
10455 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
10456 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
10457 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
10458 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
10459 instead of OMP_CLAUSE_MAP_*.
10460 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
10461 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
10462 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
10463 * tree-streamer-in.c: Include "gomp-constants.h".
10464 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
10465 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
10466 * tree-streamer-out.c: Include "gomp-constants.h".
10467 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
10468 OMP_CLAUSE_MAP_*.
10469 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
10470 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
10471 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
10472 * tree.c (omp_clause_num_ops): Update accordingly.
10473 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
10474 Likewise.
10475 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
10476 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
10477 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
10478 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
10479 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
10480 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
10481 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
10482 (OMP_CLAUSE_SET_MAP_KIND): New macro.
10483 * varpool.c (varpool_node::get_create): Consider flag_openacc next
10484 to flag_openmp.
10485 * config/i386/intelmic-offload.h: New file.
10486 * config/nvptx/offload.h: Likewise.
10487
10488 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10489
10490 * explow.h: Remove duplicate contents.
10491 * dojump.h: Likewise.
10492
10493 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
10494
10495 * arm.c (arm_xgene_tune): Add default initializer for instruction
10496 fusion.
10497
10498 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
10499
10500 PR ipa/64068
10501 PR ipa/64559
10502 * ipa.c (symbol_table::remove_unreachable_nodes):
10503 Do not put abstract origins into boundary.
10504
10505 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
10506
10507 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
10508 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
10509
10510 2015-01-15 Steve Ellcey <sellcey@mips.com>
10511
10512 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
10513 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
10514 builtins.def, and chkp-builtins.def.
10515
10516 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
10517
10518 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
10519 ISA 2.7 (POWER8).
10520
10521 2015-01-15 Richard Biener <rguenther@suse.de>
10522
10523 PR tree-optimization/61743
10524 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
10525 information on PHIs for some simple cases.
10526
10527 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10528
10529 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
10530 Include xgene1.md.
10531 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
10532 * config/arm/arm-cores.def (xgene1): New entry.
10533 * config/arm/arm-tables.opt: Regenerate.
10534 * config/arm/arm-tune.md: Regenerate.
10535 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
10536
10537 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
10538
10539 * tree-if-conv.c: Include hash-map.h.
10540 (aggressive_if_conv): New variable.
10541 (fold_build_cond_expr): Add simplification of non-zero condition.
10542 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
10543 destination block is not always executed.
10544 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
10545 than two predecessors if AGGRESSIVE_IF_CONV is true.
10546 (if_convertible_stmt_p): Fix commentary.
10547 (all_preds_critical_p): New function.
10548 (has_pred_critical_p): New function.
10549 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
10550 BB can have more than two predecessors and all incoming edges can be
10551 critical.
10552 (predicate_bbs): Skip predication for loop exit block, use build2_loc
10553 to compute predicate for true edge.
10554 (find_phi_replacement_condition): Delete this function.
10555 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
10556 Allow interchange PHI arguments if EXTENDED is false.
10557 Change check that block containing reduction statement candidate
10558 is predecessor of phi-block since phi may have more than two arguments.
10559 (phi_args_hash_traits): New helper structure.
10560 (struct phi_args_hash_traits): New type.
10561 (phi_args_hash_traits::hash): New function.
10562 (phi_args_hash_traits::equal_keys): New function.
10563 (gen_phi_arg_condition): New function.
10564 (predicate_scalar_phi): Add handling of phi nodes with more than two
10565 arguments, delete COND and TRUE_BB arguments, insert body of
10566 find_phi_replacement_condition to predicate ordinary phi nodes.
10567 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
10568 delete call of find_phi_replacement_condition and invoke
10569 predicate_scalar_phi with two arguments.
10570 (insert_gimplified_predicates): Add assert that non-predicated block
10571 don't have statements to insert.
10572 (ifcvt_split_critical_edges): New function.
10573 (ifcvt_split_def_stmt): Likewise.
10574 (ifcvt_walk_pattern_tree): Likewise.
10575 (stmt_is_root_of_bool_pattern): Likewise.
10576 (ifcvt_repair_bool_pattern): Likewise.
10577 (ifcvt_local_dce): Likewise.
10578 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
10579 is copy of inner or outer loop force_vectorize field, invoke
10580 ifcvt_split_critical_edges, ifcvt_local_dce and
10581 ifcvt_repair_bool_pattern for aggressive if-conversion.
10582
10583 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
10584
10585 * config/aarch64/aarch64.md: Include xgene1.md.
10586 * config/aarch64/xgene1.md: New file.
10587
10588 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10589
10590 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
10591 xgene1 (APM XGene-1) core definition.
10592 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
10593 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
10594 * doc/invoke.texi: Document -mcpu=xgene1.
10595
10596 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10597
10598 * dojump.h: New header file.
10599 * explow.h: Likewise.
10600 * expr.h: Remove includes.
10601 Move expmed.c prototypes to expmed.h.
10602 Move dojump.c prototypes to dojump.h.
10603 Move alias.c prototypes to alias.h.
10604 Move explow.c prototypes to explow.h.
10605 Move calls.c prototypes to calls.h.
10606 Move emit-rtl.c prototypes to emit-rtl.h.
10607 Move varasm.c prototypes to varasm.h.
10608 Move stmt.c prototypes to stmt.h.
10609 (saved_pending_stack_adjust): Move to dojump.h.
10610 (adjust_address): Move to explow.h.
10611 (adjust_address_nv): Move to emit-rtl.h.
10612 (adjust_bitfield_address): Likewise.
10613 (adjust_bitfield_address_size): Likewise.
10614 (adjust_bitfield_address_nv): Likewise.
10615 (adjust_automodify_address_nv): Likewise.
10616 * explow.c (expr_size): Move to expr.c.
10617 (int_expr_size): Likewise.
10618 (tree_expr_size): Likewise.
10619 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10620 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
10621 * genemit.c (main): Generate includes statistics.h, real.h,
10622 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
10623 stmt.h.
10624 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
10625 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
10626 explow.h, emit-rtl.h, stmt.h.
10627 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
10628 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
10629 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
10630 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
10631 emit-rtl.h, varasm.h, stmt.h.
10632 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
10633 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
10634 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
10635 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
10636 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
10637 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
10638 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
10639 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
10640 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
10641 tm.h tree.h varasm.h vec.h wide-int.h.
10642 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
10643 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
10644 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
10645 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
10646 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
10647 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
10648 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
10649 * loop-iv.c: Likewise.
10650 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
10651 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
10652 statistics.h stmt.h tree.h varasm.h wide-int.h.
10653 * lra-constraints.c: Likewise.
10654 * lra-eliminations.c: Likewise.
10655 * lra-lives.c: Likewise.
10656 * lra-remat.c: Likewise.
10657 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
10658 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
10659 statistics.h stmt.h tree.h varasm.h wide-int.h.
10660 * hw-doloop.c: Likewise.
10661 * ira-color.c: Likewise.
10662 * ira-emit.c: Likewise.
10663 * loop-doloop.c: Likewise.
10664 * loop-invariant.c: Likewise.
10665 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
10666 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
10667 statistics.h stmt.h tree.h varasm.h wide-int.h.
10668 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
10669 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
10670 statistics.h stmt.h tree.h varasm.h wide-int.h.
10671 * combine-stack-adj.c: Likewise.
10672 * cse.c: Likewise.
10673 * ddg.c: Likewise.
10674 * ifcvt.c: Likewise.
10675 * ira-costs.c: Likewise.
10676 * jump.c: Likewise.
10677 * lra-coalesce.c: Likewise.
10678 * lra-spills.c: Likewise.
10679 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
10680 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
10681 stmt.h varasm.h wide-int.h.
10682 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
10683 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
10684 varasm.h.
10685 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
10686 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
10687 statistics.h stmt.h varasm.h wide-int.h.
10688 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
10689 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
10690 varasm.h wide-int.h.
10691 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
10692 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
10693 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
10694 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
10695 statistics.h stmt.h.
10696 * config/tilepro/tilepro.c: Likewise.
10697 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
10698 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
10699 * config/pdp11/pdp11.c: Likewise.
10700 * config/xtensa/xtensa.c: Likewise.
10701 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
10702 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
10703 varasm.h.
10704 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10705 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
10706 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
10707 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10708 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
10709 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
10710 * rtl-chkp.c: Likewise.
10711 * tree-chkp-opt.c: Likewise.
10712 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
10713 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
10714 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
10715 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10716 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
10717 statistics.h stmt.h.
10718 * tree-vect-data-refs.c: Likewise.
10719 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
10720 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
10721 rtl.h statistics.h stmt.h varasm.h.
10722 * internal-fn.c: Likewise.
10723 * ipa-icf-gimple.c: Likewise.
10724 * lto-section-out.c: Likewise.
10725 * tree-data-ref.c: Likewise.
10726 * tree-nested.c: Likewise.
10727 * tree-outof-ssa.c: Likewise.
10728 * tree-predcom.c: Likewise.
10729 * tree-pretty-print.c: Likewise.
10730 * tree-scalar-evolution.c: Likewise.
10731 * tree-ssa-strlen.c: Likewise.
10732 * tree-vect-loop.c: Likewise.
10733 * tree-vect-patterns.c: Likewise.
10734 * tree-vect-slp.c: Likewise.
10735 * tree-vect-stmts.c: Likewise.
10736 * tsan.c: Likewise.
10737 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10738 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
10739 stmt.h.
10740 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
10741 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
10742 statistics.h stmt.h varasm.h.
10743 * loop-unroll.c: Likewise.
10744 * ubsan.c: Likewise.
10745 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
10746 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
10747 stmt.h varasm.h.
10748 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10749 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
10750 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
10751 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
10752 statistics.h stmt.h.
10753 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
10754 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
10755 statistics.h stmt.h varasm.h.
10756 * gimple-match-head.c: Likewise.
10757 * lto-cgraph.c: Likewise.
10758 * lto-section-in.c: Likewise.
10759 * lto-streamer-in.c: Likewise.
10760 * lto-streamer-out.c: Likewise.
10761 * tree-affine.c: Likewise.
10762 * tree-cfg.c: Likewise.
10763 * tree-cfgcleanup.c: Likewise.
10764 * tree-if-conv.c: Likewise.
10765 * tree-into-ssa.c: Likewise.
10766 * tree-ssa-alias.c: Likewise.
10767 * tree-ssa-copyrename.c: Likewise.
10768 * tree-ssa-dse.c: Likewise.
10769 * tree-ssa-forwprop.c: Likewise.
10770 * tree-ssa-live.c: Likewise.
10771 * tree-ssa-math-opts.c: Likewise.
10772 * tree-ssa-pre.c: Likewise.
10773 * tree-ssa-sccvn.c: Likewise.
10774 * tree-tailcall.c: Likewise.
10775 * tree-vect-generic.c: Likewise.
10776 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10777 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
10778 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10779 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
10780 * varasm.c: Likewise.
10781 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10782 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
10783 varasm.h.
10784 * init-regs.c: Likewise.
10785 * ira.c: Likewise.
10786 * omp-low.c: Likewise.
10787 * stack-ptr-mod.c: Likewise.
10788 * tree-ssa-reassoc.c: Likewise.
10789 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10790 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
10791 varasm.h.
10792 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10793 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
10794 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10795 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
10796 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10797 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
10798 * tree-ssa-phiopt.c: Likewise.
10799 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10800 fixed-value.h hashtab.h real.h statistics.h stmt.h.
10801 * config/fr30/fr30.c: Likewise.
10802 * config/frv/frv.c: Likewise.
10803 * expr.c: Likewise.
10804 * final.c: Likewise.
10805 * optabs.c: Likewise.
10806 * passes.c: Likewise.
10807 * simplify-rtx.c: Likewise.
10808 * stmt.c: Likewise.
10809 * toplev.c: Likewise.
10810 * var-tracking.c: Likewise.
10811 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10812 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
10813 * lower-subreg.c: Likewise.
10814 * postreload-gcse.c: Likewise.
10815 * ree.c: Likewise.
10816 * reginfo.c: Likewise.
10817 * store-motion.c: Likewise.
10818 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10819 fixed-value.h hashtab.h real.h stmt.h varasm.h.
10820 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10821 fixed-value.h hashtab.h statistics.h stmt.h.
10822 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10823 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
10824 * except.c: Likewise.
10825 * explow.c: Likewise.
10826 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10827 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
10828 varasm.h.
10829 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10830 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
10831 * tree-ssa-structalias.c: Likewise.
10832 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10833 fixed-value.h insn-config.h real.h statistics.h.
10834 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10835 fixed-value.h insn-config.h real.h statistics.h stmt.h.
10836 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10837 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
10838 * cfgbuild.c: Likewise.
10839 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10840 fixed-value.h real.h rtl.h statistics.h stmt.h.
10841 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10842 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
10843 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10844 fixed-value.h real.h statistics.h stmt.h.
10845 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10846 fixed-value.h real.h statistics.h stmt.h varasm.h.
10847 * cprop.c: Likewise.
10848 * modulo-sched.c: Likewise.
10849 * postreload.c: Likewise.
10850 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
10851 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
10852 statistics.h stmt.h varasm.h.
10853 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
10854 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
10855 rtl.h statistics.h stmt.h varasm.h.
10856 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
10857 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
10858 varasm.h.
10859 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
10860 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
10861 varasm.h.
10862 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
10863 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
10864 varasm.h.
10865 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
10866 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
10867 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
10868 function.h real.h statistics.h stmt.h varasm.h.
10869 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
10870 insn-config.h real.h statistics.h stmt.h.
10871 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
10872 statistics.h stmt.h.
10873 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
10874 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
10875 statistics.h stmt.h varasm.h.
10876 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
10877 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
10878 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
10879 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
10880 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
10881 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
10882 statistics.h stmt.h varasm.h.
10883 * ipa-polymorphic-call.c: Likewise.
10884 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
10885 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
10886 statistics.h stmt.h.
10887 * config/c6x/c6x.c: Likewise.
10888 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
10889 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
10890 statistics.h stmt.h varasm.h.
10891 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
10892 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
10893 stmt.h varasm.h.
10894 * ipa-split.c: Likewise.
10895 * tree-eh.c: Likewise.
10896 * tree-ssa-dce.c: Likewise.
10897 * tree-ssa-loop-niter.c: Likewise.
10898 * tree-vrp.c: Likewise.
10899 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
10900 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
10901 stmt.h.
10902 * config/nds32/nds32-fp-as-gp.c: Likewise.
10903 * config/nds32/nds32-intrinsic.c: Likewise.
10904 * config/nds32/nds32-isr.c: Likewise.
10905 * config/nds32/nds32-md-auxiliary.c: Likewise.
10906 * config/nds32/nds32-memory-manipulation.c: Likewise.
10907 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10908 * config/nds32/nds32-predicates.c: Likewise.
10909 * config/nds32/nds32.c: Likewise.
10910 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
10911 fixed-value.h hashtab.h real.h statistics.h.
10912 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
10913 fixed-value.h hashtab.h real.h statistics.h stmt.h.
10914 * config/arm/arm.c: Likewise.
10915 * config/avr/avr.c: Likewise.
10916 * config/bfin/bfin.c: Likewise.
10917 * config/h8300/h8300.c: Likewise.
10918 * config/i386/i386.c: Likewise.
10919 * config/ia64/ia64.c: Likewise.
10920 * config/iq2000/iq2000.c: Likewise.
10921 * config/m32c/m32c.c: Likewise.
10922 * config/m32r/m32r.c: Likewise.
10923 * config/m68k/m68k.c: Likewise.
10924 * config/mcore/mcore.c: Likewise.
10925 * config/mep/mep.c: Likewise.
10926 * config/mips/mips.c: Likewise.
10927 * config/mn10300/mn10300.c: Likewise.
10928 * config/moxie/moxie.c: Likewise.
10929 * config/pa/pa.c: Likewise.
10930 * config/rl78/rl78.c: Likewise.
10931 * config/rx/rx.c: Likewise.
10932 * config/s390/s390.c: Likewise.
10933 * config/sh/sh.c: Likewise.
10934 * config/sparc/sparc.c: Likewise.
10935 * config/spu/spu.c: Likewise.
10936 * config/stormy16/stormy16.c: Likewise.
10937 * config/v850/v850.c: Likewise.
10938 * config/vax/vax.c: Likewise.
10939 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
10940 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
10941 * config/msp430/msp430.c: Likewise.
10942 * predict.c: Likewise.
10943 * value-prof.c: Likewise.
10944 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
10945 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
10946 * config/microblaze/microblaze.c: Likewise.
10947 * config/nios2/nios2.c: Likewise.
10948 * config/rs6000/rs6000.c: Likewise.
10949 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
10950 insn-config.h real.h rtl.h statistics.h stmt.h.
10951 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
10952 insn-config.h real.h statistics.h stmt.h.
10953 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
10954 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
10955 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
10956 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
10957 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
10958 fixed-value.h real.h statistics.h stmt.h.
10959 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
10960 fixed-value.h statistics.h stmt.h.
10961 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
10962 stmt.h.
10963
10964 2015-01-15 Jakub Jelinek <jakub@redhat.com>
10965
10966 * gengtype.c (create_user_defined_type): Workaround
10967 -Wmaybe-uninitialized false positives.
10968 * cse.c (fold_rtx): Likewise.
10969 * loop-invariant.c (gain_for_invariant): Likewise.
10970
10971 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
10972
10973 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
10974 set the memory attributes in all cases but clear MEM_EXPR if need be.
10975
10976 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
10977
10978 PR tree-optimization/64434
10979 * cfgexpand.c (reorder_operands): New function.
10980 (expand_gimple_basic_block): Insert call of reorder_operands if
10981 optimized is true.
10982
10983 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
10984
10985 * config/mips/micromips.md (*swp): Remove explicit parallel.
10986 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
10987 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
10988 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
10989 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
10990 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
10991 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
10992 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
10993 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
10994 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
10995 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
10996 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
10997 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
10998 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
10999 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
11000 (mips_wrdsp): Likewise.
11001 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
11002 parallel.
11003 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
11004 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
11005 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
11006 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
11007 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
11008 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
11009 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
11010 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
11011 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
11012
11013 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
11014
11015 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
11016 (mips_print_operand): Support 'y' to print exact log2 in decimal
11017 of a const_int.
11018 * config/mips/mips.h (ISA_HAS_LSA): New define.
11019 (ISA_HAS_DLSA): Likewise.
11020 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
11021 * config/mips/predicates.md (const_immlsa_operand): New predicate.
11022
11023 2015-01-15 Martin Liska <mliska@suse.cz>
11024
11025 PR target/64377
11026 * optc-save-gen.awk: Add support for array types.
11027
11028 2015-01-15 Richard Biener <rguenther@suse.de>
11029
11030 PR middle-end/64365
11031 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
11032 for MEM_REF access functions with the same base can never partially
11033 overlap.
11034
11035 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
11036
11037 * common.opt: New option -fstack-protector-explicit.
11038 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
11039 (stack_protect_decl_phase): Handle stack_protect attribute for
11040 explicit stack protection requests.
11041 (expand_used_vars): Similarly.
11042 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
11043 * doc/extend.texi: Add documentation for "stack_protect" attribute.
11044 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
11045
11046 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
11047
11048 PR target/53988
11049 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
11050 reg-reg copies.
11051 (sh_extending_set_of_reg): New struct.
11052 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
11053 sh_remove_reg_dead_or_unused_notes): New Declarations.
11054 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
11055 sh_find_extending_set_of_reg, sh_split_tst_subregs,
11056 sh_extending_set_of_reg::use_as_extended_reg): New functions.
11057 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
11058 convert to insn_and_split and use new function sh_split_tst_subregs.
11059
11060 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
11061
11062 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
11063 option.
11064 (Optimization Options): Move -fuse-ld documentation to...
11065 (Link Options): ...here.
11066
11067 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
11068
11069 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
11070 offsets.
11071 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
11072 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
11073 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
11074 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
11075 instead of ZR for the memory operand of LL/SC.
11076 (compare_and_swap_12, sync_add<mode>): Likewise.
11077 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
11078 (sync_new_<optab>_12, sync_nand_12): Likewise.
11079 (sync_old_nand_12, sync_new_nand_12): Likewise.
11080 (sync_sub<mode>, sync_old_add<mode>): Likewise.
11081 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
11082 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
11083 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
11084 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
11085 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
11086 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
11087 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
11088 * doc/md.texi (ZC): Update description.
11089
11090 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
11091
11092 * builtins.c (expand_builtin_atomic_exchange): Remove error when
11093 memory model is CONSUME.
11094 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
11095 expand_builtin_atomic_store): Change invalid memory model errors to
11096 warnings.
11097 (expand_builtin_atomic_clear): Change invalid model errors to warnings
11098 and issue warning for CONSUME.
11099
11100 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
11101
11102 * lto-cgraph: Update function comments for
11103 lto_symtab_encoder_encode_*.
11104
11105 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
11106
11107 * Makefile.in (site.exp): Do not set ENABLE_LTO.
11108
11109 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
11110
11111 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
11112 * lto-cgraph.c (select_what_to_stream): Remove argument, use
11113 lto_stream_offload_p instead.
11114 * lto-streamer.h (select_what_to_stream): Remove argument.
11115 * passes.c (ipa_write_summaries): Likewise.
11116 * tree-pass.h (ipa_write_summaries): Likewise.
11117
11118 2015-01-14 Richard Biener <rguenther@suse.de>
11119
11120 PR tree-optimization/59354
11121 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
11122 groups larger than the slp group size as having gaps.
11123
11124 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
11125
11126 PR middle-end/59448
11127 * builtins.c (get_memmodel): Promote consume to acquire always.
11128
11129 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
11130
11131 PR target/64386
11132 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
11133 V32HImode.
11134
11135 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
11136
11137 PR target/64393
11138 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
11139 Enable AVX512BW.
11140 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
11141 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
11142 AVX512VBMI, as it implies AVX512BW.
11143
11144 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
11145
11146 PR target/64387
11147 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
11148 (vec_unpacks_hi_v16sf): Ditto.
11149
11150 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11151
11152 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
11153 is not available.
11154
11155 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11156
11157 * doc/invoke.texi (mapcs): Mention deprecation.
11158 (mapcs-frame): Likewise.
11159
11160 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
11161
11162 PR target/64453
11163 * config/arm/arm.c (callee_saved_reg_p): Define.
11164 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
11165 register is callee saved instead of !call_used_regs[reg].
11166 (thumb1_compute_save_reg_mask): Likewise.
11167
11168 2015-01-14 Hale Wang <hale.wang@arm.com>
11169
11170 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
11171 Cortex-M7.
11172
11173 2015-01-14 Richard Biener <rguenther@suse.de>
11174
11175 PR lto/64415
11176 * tree-inline.c (insert_debug_decl_map): Check destination
11177 function MAY_HAVE_DEBUG_STMTS.
11178 (insert_init_debug_bind): Likewise.
11179 (insert_init_stmt): Remove redundant check.
11180 (remap_gimple_stmt): Drop debug stmts if the destination
11181 function has var-tracking assignments disabled.
11182
11183 2015-01-14 Martin Liska <mliska@suse.cz>
11184
11185 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
11186 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
11187
11188 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11189
11190 PR target/64460
11191 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
11192 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
11193
11194 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
11195
11196 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
11197 level from an ARCH; do not inject the default.
11198 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
11199 MIPS_ISA_LEVEL_SPEC.
11200 (MIPS_ISA_NAN2008_SPEC): Update comment.
11201 (BASE_DRIVER_SELF_SPECS): Likewise.
11202 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
11203 MIPS_DEFAULT_ISA_LEVEL_SPEC.
11204 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
11205 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
11206 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
11207
11208 2015-01-14 Richard Biener <rguenther@suse.de>
11209
11210 PR tree-optimization/64493
11211 PR tree-optimization/64495
11212 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
11213 assign the proper vectorized PHI to the inner loop exit PHIs.
11214
11215 2015-01-14 Joey Ye <joey.ye@arm.com>
11216
11217 * config/arm/arm.c (arm_compute_save_reg_mask):
11218 Do not save lr in case of tail call.
11219 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
11220
11221 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
11222
11223 * tree-vrp.c (check_array_ref): Emit more warnings
11224 for warn_array_bounds >= 2.
11225 * common.opt: New option -Warray-bounds=.
11226 * doc/invoke.texi: Document -Warray-bounds=.
11227
11228 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
11229
11230 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
11231 (mforbid-fp-as-gp): Remove.
11232 (mex9): Remove.
11233 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
11234 (nds32_symbol_load_store_p): Remove.
11235 (nds32_fp_as_gp_check_available): Clean up implementation.
11236 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
11237 cases.
11238 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
11239 fp-as-gp and ex9 cases.
11240
11241 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
11242
11243 * tree-profile.c (init_ic_make_global_vars): Drop workaround
11244 for bintuils bug 14342.
11245 (init_ic_make_global_vars): Likewise.
11246 (gimple_init_edge_profiler): Likewise.
11247 (gimple_gen_ic_func_profiler): Likewise.
11248
11249 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11250
11251 * ipa-inline.c (inline_small_functions): Swap the operands in
11252 enum.
11253
11254 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
11255
11256 PR ipa/64481
11257 * ipa-inline-analysis.c (node_growth_cache): Remove.
11258 (initialize_growth_caches): Do not initialize it.
11259 (free_growth_caches): Do not free it.
11260 (do_estimate_growth): Rename to ...
11261 (estimate_growth): ... this one; drop growth cache code.
11262 (growth_likely_positive): Always go the heuristics way.
11263 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
11264 (reset_edge_caches): Do not reset node growth.
11265 (heap_edge_removal_hook): Do not maintain cache.
11266 (inline_small_functions): Likewise; strenghten sanity check.
11267 (ipa_inline): Do not maintain caches.
11268 * ipa-inline.h (node_growth_cache): Remove.
11269 (do_estimate_growth): Remove to ...
11270 (estimate_growth): this one; remove inline version.
11271 (reset_node_growth_cache): Remove.
11272
11273 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
11274
11275 PR ipa/64565
11276 * ipa-inline.c (inline_small_functions): Update callee keys after
11277 resolving speculation
11278 (inline_small_functions): Always check monotonicity of the queue.
11279
11280 2015-01-13 Marek Polacek <polacek@redhat.com>
11281
11282 PR middle-end/64391
11283 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
11284
11285 2015-01-13 Jakub Jelinek <jakub@redhat.com>
11286
11287 PR rtl-optimization/64286
11288 * ree.c (combine_reaching_defs): Move part of comment earlier,
11289 remove !SCALAR_INT_MODE_P check.
11290 (add_removable_extension): Don't add vector mode
11291 extensions if all uses of the source register aren't the same
11292 vector extensions.
11293
11294 2015-01-13 Renlin Li <renlin.li@arm.com>
11295
11296 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
11297 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
11298
11299 2015-01-13 Martin Liska <mliska@suse.cz>
11300
11301 * ipa-icf.c (sem_function::equals_private): Call new functions
11302 cl_target_option_print_diff and cl_optimization_print_diff.
11303 * optc-save-gen.awk (cl_target_option_print_diff): New function.
11304 (cl_optimization_print_diff): Likewise.
11305 * opth-gen.awk: Likewise.
11306
11307 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
11308
11309 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
11310 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
11311 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
11312 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
11313 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
11314 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
11315
11316 2015-01-13 Andrew Pinski <apinski@cavium.com>
11317
11318 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
11319 instead of src mode.
11320
11321 2015-01-13 Richard Biener <rguenther@suse.de>
11322
11323 PR lto/64373
11324 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
11325 DECL_CONTEXT.
11326
11327 2015-01-13 Andrew Pinski <apinski@cavium.com>
11328
11329 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
11330 volatile mems.
11331 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
11332
11333 2015-01-13 Jakub Jelinek <jakub@redhat.com>
11334
11335 PR middle-end/63974
11336 * cfgexpand.c (expand_computed_goto): Don't call
11337 convert_memory_address here.
11338
11339 2015-01-13 Richard Biener <rguenther@suse.de>
11340
11341 PR tree-optimization/64406
11342 * tree-loop-distibution.c (pass_loop_distribution::execute):
11343 Reset the SCEV hashtable if we distributed anything.
11344
11345 2015-01-13 Richard Biener <rguenther@suse.de>
11346
11347 PR tree-optimization/64404
11348 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
11349 SLP types for CSEd loads.
11350
11351 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11352
11353 PR tree-optimization/64436
11354 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
11355 merge of two symbolic numbers for a bitwise OR to ...
11356 (perform_symbolic_merge): This. Also fix computation of the range and
11357 end of the symbolic number corresponding to the result of a bitwise OR.
11358
11359 2015-01-13 Richard Biener <rguenther@suse.de>
11360
11361 PR tree-optimization/64568
11362 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
11363 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
11364
11365 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
11366
11367 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
11368 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
11369
11370 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
11371
11372 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
11373 target-specific symbol_ref flag.
11374 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
11375 resides in rodata section.
11376 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
11377 (nds32_encode_section_info): New function.
11378
11379 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
11380
11381 * config/nds32/nds32.md (call): Use pseudo instruction bal which
11382 clobbers TA_REGNUM if large code model is specified.
11383 (call_register): Likewise.
11384 (call_immediate): Likewise.
11385 (call_value): Likewise.
11386 (call_value_register): Likewise.
11387 (call_value_immediate): Likewise.
11388
11389 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
11390
11391 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
11392 (TARGET_CMODEL_MEDIUM): New macro.
11393 (TARGET_CMODEL_LARGE): New macro.
11394 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
11395 code model setting in assembly code.
11396
11397 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
11398
11399 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
11400 Remove MASK_GP_DIRECT flag.
11401 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
11402 one of the multilib default options.
11403 * config/nds32/nds32.opt (mgp-direct): Remove.
11404 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
11405 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
11406
11407 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
11408
11409 * config/nds32/nds32.opt (mcmodel): Add new option.
11410 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
11411 to describe code model.
11412
11413 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
11414
11415 PR target/64479
11416 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
11417
11418 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
11419
11420 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
11421 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
11422 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
11423 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
11424 __builtin_sh_set_fpscr.
11425
11426 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
11427
11428 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
11429 after a funtion name just to indicate it is a function.
11430 ([-fsanitize-undefined-trap-on-error]): Likewise.
11431 ([-fdbg-cnt=]): Likewise.
11432 ([-mmemcpy]): Likewise.
11433 ([-mflush-func]): Likewise.
11434 ([-msynci]): Likewise.
11435
11436 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
11437
11438 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
11439 example.
11440
11441 2015-01-12 Jakub Jelinek <jakub@redhat.com>
11442
11443 PR tree-optimization/64563
11444 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
11445 instead of != VR_VARYING.
11446
11447 PR target/64513
11448 * config/i386/i386.c (ix86_expand_prologue): Add
11449 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
11450
11451 PR tree-optimization/64454
11452 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
11453 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
11454 for signed or [0, op1 - 1] for unsigned modulo.
11455 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
11456 even if op1 does not satisfy integer_pow2p.
11457
11458 PR other/64370
11459 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
11460
11461 2015-01-12 Jeff Law <law@redhat.com>
11462
11463 PR target/64461
11464 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
11465 (trunchiqi2, truncsihi2): Similarly.
11466
11467 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
11468 rather than calling F.
11469
11470 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
11471
11472 * tsan.c (instrument_expr): Use force_gimple_operand.
11473 Use may_be_nonaddressable_p instead of is_gimple_addressable.
11474
11475 2015-01-12 Richard Biener <rguenther@suse.de>
11476
11477 PR tree-optimization/64530
11478 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
11479 back dr1.
11480
11481 2015-01-12 Richard Biener <rguenther@suse.de>
11482
11483 PR middle-end/64357
11484 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
11485 latches properly.
11486
11487 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11488
11489 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
11490 Cortex-A17 tuning parameters.
11491 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
11492
11493 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11494
11495 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
11496 * config/arm/arm.c (arm_macro_fusion_p): New function.
11497 (arm_macro_fusion_pair_p): Likewise.
11498 (TARGET_SCHED_MACRO_FUSION_P): Define.
11499 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
11500 (ARM_FUSE_NOTHING): Likewise.
11501 (ARM_FUSE_MOVW_MOVT): Likewise.
11502 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
11503 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
11504 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
11505 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
11506 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
11507 arm_cortex_a5_tune): Specify fuseable_ops value.
11508
11509 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
11510
11511 PR bootstrap/64561
11512 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
11513 test for PIE with copy reloc.
11514 * configure: Regenerated.
11515
11516 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11517
11518 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
11519 in gen_rtx_REG.
11520 (arm_tls_descseq_addr): Likewise.
11521 (arm_gen_movmemqi): Likewise.
11522 (arm_expand_epilogue_apcs_frame): Likewise.
11523 (arm_expand_epilogue): Likewise.
11524 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
11525 in gen_rtx_REG.
11526
11527 2015-01-12 Martin Liska <mliska@suse.cz>
11528
11529 PR ipa/64550
11530 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
11531 volatility for correct operands.
11532
11533 2015-01-12 Martin Liska <mliska@suse.cz>
11534
11535 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
11536 that a function is not leaf.
11537 (sem_function::compare_polymorphic_p): Likewise.
11538
11539 2015-01-12 Martin Liska <mliska@suse.cz>
11540
11541 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
11542 that a function is not leaf.
11543 (sem_function::compare_polymorphic_p): Likewise.
11544
11545 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11546
11547 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
11548 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
11549 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
11550 fold-const.h, tree-check.h.
11551
11552 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
11553
11554 PR ipa/63967
11555 PR ipa/64425
11556 * ipa-inline.c (compute_uninlined_call_time,
11557 compute_inlined_call_time): Use counts for extra precision when
11558 needed possible.
11559 (big_speedup_p): Fix formating.
11560 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
11561 (relative_time_benefit): Remove.
11562 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
11563 merge guessed and read profile paths.
11564 (inline_small_functions): Count only !optimize_size functions into
11565 initial size; be more lax about sanity check when profile is used;
11566 be sure to update inlined function profile when profile is read.
11567
11568 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
11569
11570 PR ipa/63470
11571 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
11572 cost when edge becomes direct.
11573 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
11574 is resolved or when introducing new speculation.
11575
11576 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
11577
11578 PR ipa/64551
11579 PR ipa/64552
11580 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
11581 '||' to fix typo issue.
11582
11583 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
11584 accept and return NULL.
11585
11586 2015-01-12 Martin Liska <mliska@suse.cz>
11587
11588 * cgraph.c (cgraph_edge::remove_callee): Move function to header
11589 file for being inlined.
11590 (cgraph_set_edge_callee): Delete.
11591 (cgraph_edge::redirect_callee): Move function to header file
11592 for being inlined.
11593 (cgraph_edge::make_direct): Use new function.
11594 (cgraph_edge::dump_edge_flags): New function created from
11595 static dump_edge_flags function.
11596 (cgraph_node::dump): Use new function.
11597 (cgraph_edge::verify_count_and_frequency): New function created
11598 from verify_edge_count_and_frequency.
11599 (cgraph_edge::verify_corresponds_to_fndecl): New function created
11600 from verify_edge_corresponds_to_fndecl.
11601 (verify_edge_corresponds_to_fndecl): Delete.
11602 (cgraph_node::verify_node): Use new function.
11603 * cgraph.h (cgraph_edge::set_callee): New function.
11604 (cgraph_edge::dump_edge_flags): Likewise.
11605 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
11606
11607 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
11608
11609 * ipa-utils.c (estimate_function_body_sizes): Do not
11610 free node params when called late with early=true.
11611
11612 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
11613
11614 * doc/md.texi (Instruction Patterns): Rewrite text for
11615 clarity.
11616 (Example): Likewise.
11617
11618 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
11619
11620 * doc/invoke.texi (Option Summary): Break long lines.
11621 [(-fdiagnostics-color)]: Put long literal in @smallexample
11622 instead of inline.
11623 [(-fsanitize-recover)]: Likewise.
11624 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
11625 [(-ffast-math)]: Likewise.
11626 [(--param max-inline-insns-recursive)]: Likewise.
11627 [(--param max-inline-recursive-depth)]: Likewise.
11628 [(-mno-text-section-literals)]: Likewise.
11629
11630 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
11631
11632 * doc/install.texi: Update for libgomp being renamed from "GNU
11633 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
11634 Runtime Library".
11635 * doc/sourcebuild.texi: Likewise.
11636
11637 2015-01-10 Anthony Green <green@moxielogic.com>
11638
11639 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
11640 mul.x availability for moxiebox configuration.
11641
11642 2015-01-09 Anthony Green <green@moxielogic.com>
11643
11644 * config/moxie/moxie.md: Tabify assembly output.
11645
11646 2015-01-09 Anthony Green <green@moxielogic.com>
11647
11648 * config/moxie/moxie.md (CC_REG): Correct register definition.
11649
11650 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
11651
11652 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
11653 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
11654 of log files.
11655
11656 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
11657
11658 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
11659
11660 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
11661 Jakub Jelinek <jakub@redhat.com>
11662
11663 PR middle-end/64412
11664 * lto-streamer.h (lto_stream_offload_p): New declaration.
11665 * lto-streamer.c (lto_stream_offload_p): New variable.
11666 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
11667 at the same time as section_name_prefix.
11668 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
11669 if lto_stream_offload_p.
11670 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
11671 stream TREE_TARGET_OPTION if lto_stream_offload_p.
11672 (write_ts_function_decl_tree_pointers): Don't
11673 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
11674 * tree-streamer-in.c (unpack_value_fields): Don't stream
11675 TREE_TARGET_OPTION in if ACCEL_COMPILER.
11676 (lto_input_ts_function_decl_tree_pointers): Don't stream
11677 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
11678 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
11679 instead of section_name_prefix string comparisons.
11680
11681 2015-01-09 Jakub Jelinek <jakub@redhat.com>
11682
11683 PR rtl-optimization/64536
11684 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
11685 tablejumps.
11686
11687 2015-01-09 Michael Collison <michael.collison@linaro.org>
11688
11689 PR tree-optimization/64322
11690 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
11691 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
11692
11693 2015-01-09 Tom de Vries <tom@codesourcery.com>
11694
11695 PR rtl-optimization/64539
11696 * regcprop.c (kill_clobbered_values): Factor out of ...
11697 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
11698 instead of note_stores with kill_clobbered_value.
11699
11700 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
11701
11702 * ginclude/unwind-arm-common.h: Revert previous commit.
11703
11704 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
11705
11706 * config.gcc (arm*-*-freebsd*): New configuration.
11707 * config/arm/freebsd.h: New file.
11708 * config.host: Add extra components for arm*-*-freebsd*.
11709 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
11710 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
11711
11712 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
11713
11714 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
11715 for -mcpu=e6500.
11716 * config/rs6000/t-rtems: Add e6500 multilibs.
11717
11718 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
11719
11720 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
11721 MPC8540.
11722
11723 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
11724
11725 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
11726 MULTILIB_EXCEPTIONS.
11727
11728 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
11729
11730 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
11731 MULTILIB_EXCEPTIONS.
11732
11733 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
11734
11735 * config/arm/t-rtems-eabi: Rename to...
11736 * config/arm/t-rtems: ...this.
11737 * config/arm/rtems-eabi.h: Rename to...
11738 * config/arm/rtems.h: ...this.
11739 * config.gcc (arm*-*-rtems*): Reflect changes above.
11740
11741 2015-01-09 Richard Biener <rguenther@suse.de>
11742
11743 PR tree-optimization/64410
11744 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
11745 on the LHS.
11746 (execute_update_addresses_taken): Deal with that.
11747 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
11748 loads/stores for complex variables.
11749
11750 2015-01-09 Martin Liska <mliska@suse.cz>
11751
11752 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
11753 name comparison.
11754 (func_checker::compare_memory_operand): New function.
11755 (func_checker::compare_operand): Split case to newly
11756 added functions.
11757 (func_checker::compare_cst_or_decl): New function.
11758 (func_checker::compare_gimple_call): Identify
11759 memory operands.
11760 (func_checker::compare_gimple_assign): Likewise.
11761 * ipa-icf-gimple.h: New function.
11762
11763 2015-01-09 Martin Liska <mliska@suse.cz>
11764
11765 PR ipa/64503
11766 * sreal.c (sreal::dump): Change unsigned format to signed for
11767 m_exp value.
11768 (sreal::to_double): Replace exp2 with scalbln.
11769
11770 2015-01-09 Martin Liska <mliska@suse.cz>
11771
11772 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
11773 * ipa-icf.c (sem_function::equals_private): Add support for target and
11774 (sem_item_optimizer::merge_classes): Remove redundant function
11775 optimization flags comparison.
11776 * tree.h (target_opts_for_fn): New function.
11777
11778 2015-01-09 Tom de Vries <tom@codesourcery.com>
11779
11780 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
11781
11782 2015-01-09 Kito Cheng <kito@0xlab.org>
11783
11784 PR rtl-optimization/64348
11785 * lra-constraints.c (split_reg): Fix caller-save store/restore
11786 instruction generation.
11787
11788 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
11789
11790 PR gcov-profile/61790
11791 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
11792 long long. Fallback to int64_t if host doesn't have long long and
11793 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
11794
11795 2015-01-08 Jakub Jelinek <jakub@redhat.com>
11796
11797 PR tree-optimization/63989
11798 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
11799 from 1000 to 10000.
11800 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
11801 (get_stridx): If we don't have a record for certain SSA_NAME,
11802 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
11803 constant offset, call get_stridx_plus_constant.
11804 (get_stridx_plus_constant): New function.
11805 (zero_length_string): Don't use get_stridx here.
11806
11807 PR target/55023
11808 PR middle-end/64388
11809 * dse.c (struct insn_info): Mention frame_read set also
11810 before reload for tail calls on some targets.
11811 (scan_insn): Revert 2014-12-22 change. Set frame_read
11812 also before reload for tail calls if
11813 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
11814 instead of add_non_frame_wild_read for non-const/memset
11815 tail calls after reload.
11816
11817 2015-01-08 Jason Merrill <jason@redhat.com>
11818
11819 * ubsan.c (do_ubsan_in_current_function): New.
11820 (pass_ubsan::gate): Use it.
11821 * ubsan.h: Declare it.
11822 * convert.c (convert_to_integer): Use it.
11823
11824 2015-01-08 Jakub Jelinek <jakub@redhat.com>
11825
11826 PR target/64338
11827 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
11828 compare_code when it is unconditionally overwritten afterwards.
11829 Use ix86_reverse_condition instead of reverse_condition. Don't
11830 change code if *reverse_condition* returned UNKNOWN and don't
11831 swap ct/cf and negate diff in that case.
11832
11833 2015-01-08 Mike Stump <mikestump@comcast.net>
11834
11835 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
11836 (pass_tsan_O0::gate): Likewise.
11837 * extend.texi (Function Attributes): Add no_sanitize_thread
11838 documentation.
11839
11840 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
11841
11842 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
11843 for registering builtins.
11844 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
11845 add -fopenmp to the argv_obstack used when invoking
11846 compile_for_target.
11847
11848 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
11849 add "-m32" or "-m64" to argv_obstack.
11850 (generate_host_descr_file): Likewise, when invoking host_compiler.
11851 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
11852 ld.
11853
11854 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
11855
11856 * config/sh/sh-mem.cc: Use constant as second operand when emitting
11857 tstsi_t insns.
11858
11859 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
11860
11861 PR target/55212
11862 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
11863 constant load if constant operand fits into I08.
11864
11865 2015-01-08 Jakub Jelinek <jakub@redhat.com>
11866
11867 PR sanitizer/64336
11868 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
11869 and TREE_THIS_VOLATILE for MEM_REFs.
11870 (build5_stat): Fix up initialization of TREE_READONLY and
11871 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
11872
11873 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
11874
11875 PR target/64533
11876 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
11877 of r for the second alternative of the destination operand.
11878
11879 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
11880
11881 PR target/36557
11882 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
11883
11884 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
11885
11886 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
11887 keywords.
11888 ([-fivar-visibility], [-fvisibility]): Likewise.
11889
11890 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
11891
11892 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
11893 the file where @code, @command, etc is more appropriate.
11894
11895 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
11896
11897 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
11898 of -mrecip= documentation.
11899
11900 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11901
11902 PR target/64505
11903 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
11904 correct reload handler if -m32 -mpowerpc64 is used.
11905
11906 2015-01-06 Tom de Vries <tom@codesourcery.com>
11907
11908 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
11909
11910 2015-01-08 Christian Bruel <christian.bruel@st.com>
11911
11912 PR target/64507
11913 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
11914
11915 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11916
11917 PR tree-optimization/63259
11918 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
11919 if optab exists for 16bit byteswap.
11920
11921 2015-01-06 Jakub Jelinek <jakub@redhat.com>
11922
11923 * opts.c (common_handle_option): Add support for
11924 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
11925 * doc/invoke.texi: Document -fno-sanitize=all,
11926 -f{,no-}sanitize-recover=all. Document that
11927 -fsanitize=float-cast-overflow is not enabled
11928 by -fsanitize=undefined. Fix up documentation
11929 of -f{,no-}sanitize-recover.
11930
11931 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
11932
11933 * config.gcc: Add Visium support.
11934 * configure.ac: Likewise.
11935 * configure: Regenerate.
11936 * doc/extend.texi (interrupt attribute): Add Visium.
11937 * doc/invoke.texi: Document Visium options.
11938 * doc/install.texi: Document Visium target.
11939 * doc/md.texi: Document Visium constraints.
11940 * common/config/visium: New directory.
11941 * config/visium: Likewise.
11942
11943 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
11944
11945 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
11946 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
11947
11948 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
11949
11950 * combine.c (combine_validate_cost): Do not count the cost of a
11951 split I2 twice. Do not display it twice in the dump, either.
11952
11953 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
11954
11955 Revert parts of r219199.
11956 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
11957 <inttypes.h>.
11958 ([-Wtraditional]): Restore markup on <limits.h>.
11959
11960 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
11961
11962 PR c++/31397
11963 * doc/invoke.texi: Document -Wsuggest-override.
11964
11965 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
11966
11967 PR rtl-optimization/64287
11968 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
11969 (process_options): Disable flag_ipa_ra if profiling.
11970
11971 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
11972
11973 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
11974
11975 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
11976
11977 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
11978 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
11979 put under #if TARGET_LOOPS guard.
11980
11981 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
11982
11983 * config/i386/i386.c (output_387_binary_op): Use std::swap.
11984
11985 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
11986
11987 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
11988 * rtl.h (refers_to_regno_p): Add overload.
11989 * cse.c: Use it.
11990 * bt-load.c: Likewise.
11991 * combine.c: Likewise.
11992 * df-scan.c: Likewise.
11993 * sched-deps.c: Likewise.
11994 * config/s390/s390.c: Likewise.
11995 * config/m32r/m32r.c: Likewise.
11996 * config/rs6000/spe.md: Likewise.
11997 * config/rs6000/rs6000.c: Likewise.
11998 * config/pa/pa.c: Likewise.
11999 * config/stormy16/stormy16.c: Likewise.
12000 * config/cris/cris.c: Likewise.
12001 * config/arc/arc.md: Likewise.
12002 * config/arc/arc.c: Likewise.
12003 * config/sh/sh.md: Likewise.
12004 * config/sh/sh.c: Likewise.
12005 * config/frv/frv.c: Likewise.
12006
12007 2015-01-05 Jakub Jelinek <jakub@redhat.com>
12008
12009 PR sanitizer/64265
12010 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
12011 call as cleanup of the whole body.
12012 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
12013 * tsan.c (replace_func_exit): New function.
12014 (instrument_func_exit): Moved earlier.
12015 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
12016 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
12017 been found.
12018 (tsan_pass): Don't call instrument_func_exit.
12019 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
12020 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
12021 inlining.
12022
12023 PR sanitizer/64344
12024 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
12025 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
12026 it to libubsan handler instead of EXPR. Fold comparisons earlier,
12027 if the result is integer_zerop, return NULL_TREE.
12028 * convert.c (convert_to_integer): Pass expr as ARG.
12029
12030 PR tree-optimization/64465
12031 * tree-inline.c (redirect_all_calls): During inlining
12032 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
12033 changed the stmt to a non-throwing call.
12034
12035 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
12036
12037 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
12038 etc markup throughout the file.
12039
12040 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
12041
12042 Enable experimental TSAN support for Ada.
12043 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
12044
12045 2015-01-05 Jakub Jelinek <jakub@redhat.com>
12046
12047 PR tree-optimization/64494
12048 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
12049 clear SSA_NAME_ANTI_RANGE_P flag.
12050
12051 2015-01-05 Marek Polacek <polacek@redhat.com>
12052
12053 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
12054
12055 2015-01-05 Jakub Jelinek <jakub@redhat.com>
12056
12057 Update copyright years.
12058
12059 * gcc.c (process_command): Update copyright notice dates.
12060 * gcov-dump.c: Ditto.
12061 * gcov.c: Ditto.
12062 * doc/cpp.texi: Bump @copying's copyright year.
12063 * doc/cppinternals.texi: Ditto.
12064 * doc/gcc.texi: Ditto.
12065 * doc/gccint.texi: Ditto.
12066 * doc/gcov.texi: Ditto.
12067 * doc/install.texi: Ditto.
12068 * doc/invoke.texi: Ditto.
12069
12070 * auto-profile.c, auto-profile.h: Fix up Copyright line.
12071
12072 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
12073
12074 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
12075 verb tense, etc.
12076 ([-fvtable-verify], [-fvtv-debug]): Likewise.
12077 ([-Wabi]): Likewise.
12078 ([-fmessage-length]): Likewise.
12079 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
12080 ([-Wno-discarded-qualifiers]): Likewise.
12081 ([-Wnodiscarded-array-qualifiers]): Likewise.
12082 ([-Wno-virtual-move-assign]): Likewise.
12083 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
12084 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
12085 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
12086 ([-fsanitize-undefined-trap-on-error]): Likewise.
12087 ([-floop-interchange]): Likewise.
12088 ([-ftree-coalesce-inlined-vars]): Likewise.
12089 ([-fvect-cost-model]): Likewise.
12090 ([-flto]): Likewise.
12091 ([--param]): Likewise.
12092 (Spec Files): Likewise.
12093 ([-mstrict-align]): Likewise.
12094 ([-mfix-cortex-a53-835769]): Likewise.
12095 ([-march], [-mtune]): Likewise.
12096 ([-mpic-register]): Likewise.
12097 ([-munaligned-access]): Likewise.
12098 ([-msp8]): Likewise.
12099 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
12100 (AVR Built-in Macros): Likewise.
12101 ([-mpreferred-stack-boundary]): Likewise.
12102 ([-mtune-crtl]): Likewise.
12103 ([-mashf]): Likewise.
12104 ([-mmcu=]): Likewise.
12105 ([-minrt]): Likewise.
12106 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
12107 ([-mupper-regs]): Likewise.
12108 ([-matomic-model]): Likewise.
12109 ([-mdiv]): Likewise.
12110 ([-mzdcbranch]): Likewise.
12111 ([-mdisable-callt]): Likewise.
12112 ([-msoft-float]): Likewise.
12113 ([-m8byte-align]): Likewise.
12114 ([-fstack-reuse]): Likewise.
12115
12116 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
12117
12118 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
12119 Fix markup, light copy-editing.
12120 ([-fauto-profile]): Rewrite to fix formatting and content
12121 problems.
12122
12123 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
12124
12125 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
12126 Copy-edit description.
12127 ([-fisolate-erroneous-paths-attribute]): Likewise.
12128 * common.opt (fisolate-erroneous-paths-dereference):
12129 Copy-edit description.
12130 (fisolate-erroneous-paths-attribute): Likewise.
12131
12132 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
12133
12134 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
12135 tidy grammar.
12136
12137 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
12138
12139 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
12140 ([-fvtv-debug]): Likewise.
12141 ([-Wc++-compat]): Likewise.
12142 ([-Wc++11-compat]): Likewise.
12143 ([-Wc++14-compat]): Likewise.
12144 ([-Wno-sized-deallocation]): Likewise.
12145 ([-femit-class-debug-always]): Likewise.
12146 ([-femit-struct-debug-detailed]): Likewise.
12147 ([-fno-keep-inline-dllexport]): Likewise.
12148 ([-fira-algorithm]): Likewise.
12149 ([-fira-region]): Likewise.
12150 ([-flra-remat]): Likewise.
12151 ([-fipa-ra]): Likewise.
12152 ([-fhoist-adjacent-loads]): Likewise.
12153 ([-fisolate-erroneous-paths-dereference]): Likewise.
12154 ([-fisolate-erroneous-paths-attribute]): Likewise.
12155 ([-ftree-switch-conversion]): Likewise.
12156 ([-ftree-tail-merge]): Likewise.
12157 ([-ftree-loop-if-convert]): Likewise.
12158 ([-ftree-loop-if-convert-stores]): Likewise.
12159 ([-ftree-loop-distribution]): Likewise.
12160 ([-ftree-loop-distribute-patterns]): Likewise.
12161 ([-flto-compression-level]): Likewise.
12162 ([-flto-report]): Likewise.
12163 ([-flto-report-wpa]): Likewise.
12164 ([-fuse-linker-plugin]): Likewise.
12165 ([-mfix-cortex-a53-835769]): Likewise.
12166 ([-mno-fix-cortex-a53-835769]): Likewise.
12167 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
12168 explicit listing; add a note to the discussion indicating they
12169 exist. Reorder table to group similar options. Add missing
12170 @opindex entries. Add @need commands throughout the table to
12171 allow it to be split across multiple pages.
12172 ([-m8bit-idiv]): Fix @opindex.
12173 ([-mavx256-split-unaligned-load]): Likewise.
12174 ([-mavx256-split-unaligned-store]): Likewise.
12175 ([-mstack-protector-guard]): Likewise.
12176 ([-mcpu=]): Likewise.
12177 ([-mcpu]): Likewise.
12178 ([-mpointer-size=]): Likewise.
12179
12180 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
12181
12182 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
12183 instead of `m' constraint. Likewise for unnamed movb comparison
12184 patterns using reg_before_reload_operand predicate.
12185 * config/pa/predicates.md (reg_before_reload_operand): Tighten
12186 predicate to reject register index and LO_SUM DLT memory forms
12187 after reload.
12188
12189 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
12190
12191 * doc/invoke.texi (Option Summary): Fix spelling of
12192 -fdevirtualize-at-ltrans.
12193 ([-fdevirtualize]): Fix markup.
12194 ([-fdevirtualize-speculatively]): Fix typo.
12195 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
12196 implementor-speaky.
12197 * common.opt (fdevirtualize-at-ltrans): Likewise.
12198 * ipa-devirt.c: Fix typos in comments throughout the file.
12199 (ipa_devirt): Fix typos in format strings for dump output.
12200
12201 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
12202
12203 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
12204 discussion of defaults, light copy-editing.
12205
12206 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12207
12208 * tsan.c (instrument_expr): corrected previous checkin.
12209
12210 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12211
12212 Instrument bit field and unaligned accesses for TSAN.
12213 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
12214 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
12215 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
12216 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
12217 unaligned memory regions.
12218
12219 2015-01-01 Anthony Green <green@moxielogic.com>
12220
12221 * config/moxie/predicates.md (moxie_general_movsrc_operand):
12222 Restrict move source register offsets to 16 bits.
12223 \f
12224 Copyright (C) 2015 Free Software Foundation, Inc.
12225
12226 Copying and distribution of this file, with or without modification,
12227 are permitted in any medium without royalty provided the copyright
12228 notice and this notice are preserved.