[AArch64] Enable autoprefetcher modelling in the scheduler
[official-gcc.git] / gcc / ChangeLog
blobc5c44bd773a121f56aae3e93bf70730e54a9eb79
1 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3         * config/aarch64/aarch64-protos.h
4         (struct tune_params): Add autoprefetcher_model field.
5         * config/aarch64/aarch64.c: Include params.h
6         (generic_tunings): Specify autoprefetcher_model value.
7         (cortexa53_tunings): Likewise.
8         (cortexa57_tunings): Likewise.
9         (cortexa72_tunings): Likewise.
10         (thunderx_tunings): Likewise.
11         (xgene1_tunings): Likewise.
12         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
13         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
14         (aarch64_override_options_internal): Set
15         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
17 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
19         * builtins.c (fold_builtin_exponent): Delete.
20         (fold_builtin_2): Handle constant expN arguments here.
21         * match.pd: Fold expN(logN(x)) -> x.
23 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
25         * builtins.c (fold_builtin_powi): Delete.
26         (fold_builtin_2): Handle constant powi arguments here.
27         * match.pd: Add rules previously handled by fold_builtin_powi.
29 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
31         * builtins.c (fold_builtin_pow): Delete in favor of...
32         (fold_const_builtin_pow): ...this new function.  Only handle constant
33         arguments.
34         (fold_builtin_2): Update accordingly.
35         * match.pd: Add rules previously handled by fold_builtin_pow.
37 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
39         * builtins.c (fold_builtin_hypot): Delete.
40         (fold_builtin_2): Handle constant hypot arguments here.
41         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
42         hypot(x, x) to fabs(x)*sqrt(2).
44 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
46         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
47         instead of make_ssa_name if not yet in SSA form.
49 2015-10-27  Richard Biener  <rguenther@suse.de>
51         * cfg.c (free_edge): Add function argument and use it instead of cfun.
52         (clear_edges): Likewise.
53         * cfg.h (clear_edges): Adjust prototype.
54         * cfgexpand.c (pass_expand::execute): Adjust.
55         * cfgloop.c (release_recorded_exits): Add function argument and use
56         it instead of cfun.
57         * cfgloop.h (release_recorded_exits): Adjust prototype.
58         (loops_state_satisfies_p): Add overload with function argument.
59         (loops_state_set): Likewise.
60         (loops_state_clear): Likewise.
61         (struct loop_iterator): Add function argument to constructor
62         and iterator and use it instead of cfun.
63         (FOR_EACH_LOOP_FN): New macro.
64         (loop_optimizer_finalize): Add overload with function argument.
65         * loop-init.c (loop_optimizer_init): Adjust.
66         (fix_loop_structure): Likewise.
67         (loop_optimizer_finaliz): Add function argument and use it
68         instead of cfun.
69         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
70         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
71         * cgraph.c (release_function_body): Do not push/pop cfun.
72         * final.c (rest_of_clean_state): Adjust.
73         * graphite.c (graphite_finalize): Likewise.
74         * tree-ssa-copy.c (fini_copy_prop): Likewise.
75         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
76         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
77         (tree_unroll_loops_completely): Likewise.
78         (pass_complete_unrolli::execute): Likewise.
79         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
80         Add function argument and use it instead of cfun.
81         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
82         Adjust prototype.
83         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
84         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
85         instead of cfun.
86         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
87         * tree-ssanames.c (fini_ssanames): Add function argument and use it
88         instead of cfun.
89         * tree-ssanames.c (fini_ssanames): Adjust prototype.
90         * tree-vrp.c (execute_vrp): Adjust.
91         * value-prof.c (free_histograms): Add function argument and use it
92         instead of cfun.
93         * value-prof.h (free_histograms): Adjust prototype.
95 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
97         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
98         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
99         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
101 2015-10-27  Tom de Vries  <tom@codesourcery.com>
103         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
104         field_type.
106 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
108         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
109         (inv_can_prop_to_addr_use): New function.
110         (record_use): Call can_prop_to_addr_uses, set the new field.
111         (get_inv_cost): Count cost if inv can't be propagated into its
112         address uses.
114 2015-10-26  Doug Evans  <dje@google.com>
116         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
118 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
120         * match.pd (fold_widened_comparison): Apply simplifications to all
121         integral types.
123 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
125         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
126         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
127         * doc/tm.texi: Regenerated.
128         * reorg.c (dbr_schedule): Use new hook.
129         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
131 2015-10-26  Jeff Law  <law@redhat.com>
133         PR tree-optimization/68013
134         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
135         Make sure the first block in the path is in VISITED_BBs.
137 2015-10-26  Richard Biener  <rguenther@suse.de>
138         Dominik Vogt  <vogt@linux.vnet.ibm.com>
140         PR middle-end/67443
141         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
142         Properly prune ref->ref for accesses outside of ref.
144 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
146         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
147         new statements to be inserted if inplace.  Allow calls to have
148         nonempty sequences.
150 2015-10-26  Richard Biener  <rguenther@suse.de>
152         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
153         (do_valueize): New function.
154         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
155         replace_uses_by.
156         * tree-ssa-threadedge.c: Remove builtins.h include, include
157         gimple-fold.h
158         (fold_assignment_stmt): Remove.
159         (threadedge_valueize): New function.
160         (record_temporary_equivalences_from_stmts): Use
161         gimple_fold_stmt_to_constant_1, note additional cleanup
162         opportunities.
164 2015-10-26  Richard Biener  <rguenther@suse.de>
166         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
167         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
169 2015-10-26  Alan Hayward <alan.hayward@arm.com>
171         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
172         VEC_COND_EXPR types.
174 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
176         * auto-inc-dec.c (insert_move_insn_before): Delete.
177         (attempt_change): Remember to cost the simple move in the
178         FORM_PRE_ADD and FORM_POST_ADD cases.
180 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
182         PR target/68091
183         * config/sh/sh.c (sh_vector_mode_supported_p): Use
184         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
186 2015-10-26  Tom de Vries  <tom@codesourcery.com>
188         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
189         factored out of ...
190         (intra_create_variable_infos): ... here.
192 2015-10-26  Tom de Vries  <tom@codesourcery.com>
194         * tree-ssa-structalias.c (intra_create_variable_infos): Add
195         restrict_pointer_p and recursive_restrict_p variables.
197 2015-10-26  Tom de Vries  <tom@codesourcery.com>
199         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
200         get_vi_for_tree call.
202 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
204         PR middle-end/67989
205         * optabs.c (expand_atomic_compare_and_swap): Handle case when
206         ptarget_oval or ptarget_bool are const0_rtx.
208 2015-10-26  Christian Bruel  <christian.bruel@st.com>
210         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
211         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
212         * cp/method.c (implicitly_declare_fn): Likewise.
213         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
214         * java/class.c (add_method_1): Likewise.
216 2015-10-26  Richard Biener  <rguenther@suse.de>
218         * alloc-pool.h (base_pool_allocator): Use placement new.
219         (base_pool_allocator::remove): Likewise.  Compute size outside of
220         flag_checking.
222 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
224         * builtins.c (do_real_to_int_conversion): New function.
225         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
226         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
227         arguments here.
228         * match.pd: Add rules previously handled by fold_fixed_mathfn
229         and fold_builtin_int_roundingfn.
231 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
233         * match.pd: Use macros to define built-in operator lists.
235 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
236             Richard Biener  <rguenther@suse.de>
238         * genmatch.c (dt_simplify::gen): Skip captures that are
239         part of the result.
240         (parser::parse_expr): Allow captures in results too.
241         * builtins.c (fold_builtin_cexp): Delete.
242         (fold_builtin_1): Handle constant cexp arguments here.
243         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
245 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
247         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
248         conditional compilation.
249         (base_pool_allocator::remove): Use flag_checking.
251 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
253         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
255         PR middle-end/68079
256         * dojump.c (do_compare_and_jump): Canonicalize both function and
257         method types.
259 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
261         PR target/68084
262         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
263         for =@ccae.
265 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
267         PR ipa/pr67600
268         * ipa-polymorphic-call.c
269         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
270         instance offset with offset of outer type.
272 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
274         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
276 2015-10-23  Caroline Tice  <cmtice@google.com>
278         (from Richard Biener
279         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
280         call to iterative_hash_host_wide_int.
282 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
284         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
285         Define as yes.
287 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
289         * tree-vect-generic.c (expand_vector_operations_1): Check
290         optab exists before use it.
292 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
294         * tree-vect-generic.c (expand_vector_condition): Avoid
295         uninitialized variable warning.
297 2015-10-23  Jeff Law  <law@redhat.com>
299         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
300         here.  Instead...
301         (execute_todo): Call it here.
302         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
303         statistics
304         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
306 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
307             Szabolcs Nagy  <szabolcs.nagy@arm.com>
309         * config.gcc (enable_secureplt): Add *-linux*-musl*.
311 2015-10-23  Jeff Law  <law@redhat.com>
313         PR tree-optimization/67830
314         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
315         Explicitly verify the mask has no bits outside the type of
316         the innermost operands.
318 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
319             Szabolcs Nagy  <szabolcs.nagy@arm.com>
321         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
322         (MUSL_DYNAMIC_LINKER64): Define.
323         (GNU_USER_DYNAMIC_LINKER32): Update.
324         (GNU_USER_DYNAMIC_LINKER64): Update.
325         (CHOOSE_DYNAMIC_LINKER): Update.
327         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
328         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
329         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
330         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
331         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
332         (CHOOSE_DYNAMIC_LINKER): Update.
333         (INCLUDE_DEFAULTS): Redefine.
335         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
337 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
339         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
340         comparing addresses.
342 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
344         * fold-const.c (operand_equal_p): Handle matching of vector
345         constructors.
347 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
349         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
351 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
352             Andrew Pinski  <apinski@cavium.com>
354         PR rtl-optimization/67736
355         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
356         of gen_lowpart.
358 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
360         PR middle-end/68066
361         * tree.c (build_truth_vector_type): Support BLK mode
362         returned for boolean vector.
364 2015-10-23  Alan Hayward <alan.hayward@arm.com>
366         PR tree-optimization/65947
367         * tree-vect-loop.c
368         (vect_is_simple_reduction_1): Find condition reductions.
369         (vect_model_reduction_cost): Add condition reduction costs.
370         (get_initial_def_for_reduction): Add condition reduction initial var.
371         (vect_create_epilog_for_reduction): Add condition reduction epilog.
372         (vectorizable_reduction): Condition reduction support.
373         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
374         * doc/sourcebuild.texi (Vector-specific attributes): Document
375         vect_max_reduc
377 2015-10-23  Richard Biener  <rguenther@suse.de>
379         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
380         and builtins.def.
382 2015-10-23  Richard Biener  <rguenther@suse.de>
383             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
385         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
386         into (A ^ B) - B to match.pd
387         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
389         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
390         New simplifier.
391         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
392         New simplifier.
393         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
394         New simplifier.
395         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
396         New simplifier.
397         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
398         INTEGER_CST@1)): New simplifier.
400 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
402         * builtins.c (integer_valued_real_p): Move to fold-const.c.
403         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
404         (fold_builtin_ceil, fold_builtin_round): Delete.
405         (fold_builtin_1): Handle constant trunc, floor, ceil and round
406         arguments here.
407         * convert.c (convert_to_real): Remove narrowing of rounding
408         functions.
409         * fold-const.h (integer_valued_real_unary_p)
410         (integer_valued_real_binary_p, integer_valued_real_call_p)
411         (integer_valued_real_single_p, integer_valued_real_p): Declare.
412         * fold-const.c (tree_single_nonnegative_warnv_p): Move
413         name_registered_for_update_p check to SSA_NAME case statement.
414         Don't call tree_simple_nonnegative_warnv_p for SSA names.
415         (integer_valued_real_unary_p, integer_valued_real_binary_p)
416         (integer_valued_real_call_p, integer_valued_real_single_p)
417         (integer_valued_real_invalid_p): New functions.
418         (integer_valued_real_p): Move from fold-const.c and rework
419         to call the functions above.  Handle SSA names.
420         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
421         * gimple-fold.c (gimple_assign_integer_valued_real_p)
422         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
423         (gimple_stmt_integer_valued_real_p): New functions.
424         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
425         Fold f(x)->x for the same f if x is known to be integer-valued.
426         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
427         the result.  Canonicalize floor(x) as trunc(x) if x is
428         nonnegative.
430 2015-10-23  Tom de Vries  <tom@codesourcery.com>
432         * tree-ssa-structalias.c (intra_create_variable_infos): Use
433         make_constraint_from.
435 2015-10-23  Tom de Vries  <tom@codesourcery.com>
437         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
438         setting of is_full_var in case of a single field.
440 2015-10-22  Martin Sebor  <msebor@redhat.com>
442         PR driver/68043
443         * config/i386/i386.opt: Add missing periods to the ends of sentences.
444         * config/msp430/msp430.opt: Same.
446 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
448         * doc/extend.exp (Global Register Variables): Rewrite.
450 2015-10-22  Jeff Law  <law@redhat.com>
452         * genattrtab.c (main): If we do not have any annul-true or annul-false
453         slots, then write out a dummy eligible_for_annul_true or
454         eligible_for_annul_false as needed.
456 2015-10-22  Nick Clifton  <nickc@redhat.com>
458         * config/msp430/msp430.opt: Add -msilicon-errata and
459         -msilicon-errata-warn.
460         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
461         assembler.
462         * doc/invoke.texi: Document new options.
464 2015-10-22  Richard Biener  <rguenther@suse.de>
466         PR tree-optimization/58497
467         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
468         (expand_vector_operations_1): Use it.  Lower operations on
469         all uniform vectors to scalar operations if the HW supports it.
471 2015-10-22  Richard Biener  <rguenther@suse.de>
473         PR tree-optimization/19049
474         PR tree-optimization/65962
475         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
476         to strided accesses if single-element interleaving doesn't work.
478 2015-10-22  Richard Biener  <rguenther@suse.de>
480         PR middle-end/68046
481         PR middle-end/61893
482         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
483         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
484         (expand_unop): Likewise.
486 2015-10-22  Richard Biener  <rguenther@suse.de>
488         * fold-const.c (fold_addr_of_array_ref_difference): Properly
489         convert operands before folding a MINUS_EXPR.
490         (fold_binary_loc): Move simplification of MINUS_EXPR on
491         converted POINTER_PLUS_EXPRs ...
492         * match.pd: ... here.
494 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
496         * builtins.c (fold_builtin_tan): Delete.
497         (fold_builtin_1): Handle constant tan arguments here.
498         * match.pd: Simplify (tan (atan x)) to x.
500 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
502         * builtins.c (fold_builtin_cproj): Delete.
503         (fold_builtin_1): Handle constant arguments here.
504         (build_complex_cproj): Move and rename to...
505         * tree.c: (build_complex_inf): ...this.
506         * tree.h (build_complex_inf): Declare.
507         * match.pd: Fold cproj(x)->x if x has no infinity.
508         Use build_complex_inf for existing cproj rules.
510 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
512         PR target/68015
513         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
514         already have a comparison result.
516 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
518         PR target/63304
519         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
520         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
521         (aarch64_classify_address): Likewise.
522         (aarch64_secondary_reload): Likewise.
523         (aarch64_override_options_after_change_1): Adjust.
524         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
525         Use aarch64_nopcrelative_literal_loads.
526         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
527         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
528         Declare.
530 2015-10-21  Martin Sebor  <msebor@redhat.com>
532         PR driver/68043
533         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
534         (print_filtered_help): Reference aliased option's name and encourage
535         readers to use it in preference to the alias if the former is not
536         documented.  Mention when using an option is diagnosed.
537         * gcc.c (display_help): End each sentence with a period.
539         * common.opt: End each sentence that describes an option with
540         a period.
541         * config/aarch64/aarch64.opt: Same.
542         * config/alpha/alpha.opt: Same.
543         * config/arc/arc.opt: Same.
544         * config/arm/arm.opt: Same.
545         * config/avr/avr.opt: Same.
546         * config/bfin/bfin.opt: Same.
547         * config/c6x/c6x.opt: Same.
548         * config/cr16/cr16.opt: Same.
549         * config/cris/cris.opt: Same.
550         * config/cris/linux.opt: Same.
551         * config/darwin.opt: Same.
552         * config/epiphany/epiphany.opt: Same.
553         * config/fr30/fr30.opt: Same.
554         * config/frv/frv.opt: Same.
555         * config/ft32/ft32.opt: Same.
556         * config/g.opt: Same.
557         * config/h8300/h8300.opt: Same.
558         * config/i386/cygming.opt: Same.
559         * config/i386/djgpp.opt: Same.
560         * config/i386/i386.opt: Same.
561         * config/i386/interix.opt: Same.
562         * config/i386/mingw-w64.opt: Same.
563         * config/i386/mingw.opt: Same.
564         * config/ia64/ia64.opt: Same.
565         * config/ia64/ilp32.opt: Same.
566         * config/iq2000/iq2000.opt: Same.
567         * config/linux.opt: Same.
568         * config/lm32/lm32.opt: Same.
569         * config/lynx.opt: Same.
570         * config/m32c/m32c.opt: Same.
571         * config/m32r/m32r.opt: Same.
572         * config/m68k/ieee.opt: Same.
573         * config/m68k/m68k.opt: Same.
574         * config/mcore/mcore.opt: Same.
575         * config/mep/mep.opt: Same.
576         * config/microblaze/microblaze.opt: Same.
577         * config/mips/mips.opt: Same.
578         * config/mmix/mmix.opt: Same.
579         * config/mn10300/mn10300.opt: Same.
580         * config/moxie/moxie.opt: Same.
581         * config/msp430/msp430.opt: Same.
582         * config/nios2/elf.opt: Same.
583         * config/nios2/nios2.opt: Same.
584         * config/nvptx/nvptx.opt: Same.
585         * config/pa/pa-hpux.opt: Same.
586         * config/pa/pa-hpux1010.opt: Same.
587         * config/pa/pa-hpux1111.opt: Same.
588         * config/pa/pa-hpux1131.opt: Same.
589         * config/pa/pa.opt: Same.
590         * config/pa/pa64-hpux.opt: Same.
591         * config/pdp11/pdp11.opt: Same.
592         * config/rl78/rl78.opt: Same.
593         * config/rs6000/476.opt: Same.
594         * config/rs6000/aix64.opt: Same.
595         * config/rs6000/darwin.opt: Same.
596         * config/rs6000/linux64.opt: Same.
597         * config/rs6000/rs6000.opt: Same.
598         * config/rs6000/sysv4.opt: Same.
599         * config/s390/s390.opt: Same.
600         * config/s390/tpf.opt: Same.
601         * config/sh/sh.opt: Same.
602         * config/sol2.opt: Same.
603         * config/sparc/long-double-switch.opt: Same.
604         * config/sparc/sparc.opt: Same.
605         * config/spu/spu.opt: Same.
606         * config/stormy16/stormy16.opt: Same.
607         * config/tilegx/tilegx.opt: Same.
608         * config/tilepro/tilepro.opt: Same.
609         * config/v850/v850.opt: Same.
610         * config/vax/vax.opt: Same.
611         * config/visium/visium.opt: Same.
612         * config/vms/vms.opt: Same.
613         * config/vxworks.opt: Same.
614         * config/xtensa/xtensa.opt: Same.
616 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
617             Sebastian Pop  <s.pop@samsung.com>
619         * graphite-scop-detection.c (parameter_index_in_region): Update call to
620         invariant_in_sese_p_rec.
621         * graphite-sese-to-poly.c (extract_affine): Same.
622         * sese.c (invariant_in_sese_p_rec): Pass in an extra
623         parameter has_vdefs.
624         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
625         variable depends on virtual definitions in the current region.
626         * sese.h (invariant_in_sese_p_rec): Update declaration.
628 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
629             Sebastian Pop  <s.pop@samsung.com>
631         * graphite-scop-detection.c (build_scops): Do not handle scops
632         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
633         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
635 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
637         * config.in: Regenerate.
638         * configure: Regenerate.
639         * configure.ac (CHECKING_P): Define.
640         * system.h: Use CHECKING_P.
642 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
644         PR ipa/67056
645         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
646         is negative we don't know the type.
647         (check_stmt_for_type_change): Skip constructors of non-polymorphic
648         types as those won't help devirutalization.
650 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
652         * fold-const.c (operand_equal_p): Add code matching empty constructors.
654 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
656         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
657         comments.
658         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
659         Add comments on sign of the result.
660         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
661         Recurse on operand #1 instead of operand #0.
662         <CEIL_MOD_EXPR>: Do not recurse.
663         <ROUND_MOD_EXPR>: Likewise.
665 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
667         * cfgrtl.c (pass_free_cfg::execute): Adjust.
668         * final.c (dbr_sequence_length): Always define.
669         (shorten_branches): Adjust.
670         * genattr-common.c (main): Always define DELAY_SLOTS.
671         * genattr.c (main): Unconditionally declare functions and define
672         macros related to delay slots.
673         * genattrtab.c (write_eligible_delay): Adjust.
674         (main): Always write out delay slot functions.
675         * opts.c (default_options_table): Adjust.
676         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
677         (redirect_with_delay_list_safe_p): Likewise.
678         (fill_simple_delay_slots): Likewise.
679         (fill_slots_from_thread): Likewise.
680         (make_return_insns): Likewise.
681         (dbr_schedule): Likewise.
682         (rest_of_handle_delay_slots): Likewise.
683         (pass_delay_slots::gate): Likewise.
684         * toplev.c (process_options): Likewise.
686 2015-10-21  Richard Henderson  <rth@redhat.com>
688         * targhooks.c (default_addr_space_pointer_mode): Remove check
689         for generic address space.
690         (default_addr_space_address_mode): Likewise.
691         (default_addr_space_valid_pointer_mode): Likewise.
692         (default_addr_space_legitimate_address_p): Likewise.
693         (default_addr_space_legitimize_address): Likewise.
694         * target.def (addr_space.pointer_mode): Update documentation
695         of default behavior.
696         (addr_space.address_mode): Likewise.
697         * tm.texi: Update.
699         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
700         address spaces.
702 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
704         * builtins.c (fold_builtin_cabs): Delete.
705         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
706         * match.pd: Add rules previously handled by fold_builtin_cabs.
708 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
710         * fold-const.h (fold_strip_sign_ops): Delete.
711         * fold-const.c (fold_strip_sign_ops): Likewise.
712         (fold_unary_loc, fold_binary_loc): Remove calls to it.
713         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
714         (fold_builtin_ccos): Delete.
715         (fold_builtin_pow): Don't call fold_strip_sign_ops.
716         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
717         Remove fndecl argument.
718         (fold_builtin_1): Update calls accordingly.  Handle constant
719         cos, cosh, ccos and ccosh here.
721 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
723         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
724         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
725         * common.opt (fssa-backprop): New option.
726         * fold-const.h (negate_mathfn_p): Declare.
727         * fold-const.c (negate_mathfn_p): Make public.
728         * timevar.def (TV_TREE_BACKPROP): New.
729         * tree-pass.h (make_pass_backprop): Declare.
730         * passes.def (pass_backprop): Add.
731         * gimple-ssa-backprop.c: New file.
733 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
734             Sebastian Pop  <s.pop@samsung.com>
736         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
737         Do not call create_empty_if_region_on_edge when cond_expr is true.
738         (translate_isl_ast_node_for): Check whether a guard has been generated.
740 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
742         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
743         (operator=): Removed.
744         (dr_info): Make alias_set number the last argument with default
745         value of invalid_alias_set.
746         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
747         of dr_info.
748         (rewrite_reductions_out_of_ssa): Iterate only through the
749         basic blocks which are inside region.
750         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
751         * sese.h (struct sese_l): Removed assignment operator.
752         (split_region_for_bb): Removed dead code.
754 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
756         * graphite-poly.h (struct dr_info): Removed conversion constructor.
757         (struct scop): Renamed scop::region to scop::scop_info
758         (scop_set_region): Same.
759         (SCOP_REGION): Removed
760         (SCOP_CONTEXT): Removed.
761         (POLY_SCOP_P): Removed.
762         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
763         Rename scop->region to scop->scop_info.
764         (add_parameters_to_ivs_params): Same.
765         (graphite_regenerate_ast_isl): Same.
766         * graphite-poly.c (new_scop): Same.
767         (free_scop): Same.
768         (print_scop_params): Same.
769         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
770         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
771         (dot_all_scops_1): Rename scop->region to scop->scop_info.
772         (scop_detection::nb_pbbs_in_loops): Same.
773         (find_scop_parameters): Same.
774         (try_generate_gimple_bb): Same.
775         (gather_bbs::before_dom_children): Same.
776         (gather_bbs::after_dom_children): Same.
777         (build_scops): Same.
778         * graphite-sese-to-poly.c (build_scop_scattering): Same.
779         (extract_affine_chrec): Same.
780         (extract_affine): Same.
781         (set_scop_parameter_dim): Same.
782         (build_loop_iteration_domains): Same.
783         (create_pw_aff_from_tree): Same.
784         (add_param_constraints): Same.
785         (build_scop_iteration_domain): Same.
786         (build_scop_drs): Same.
787         (analyze_drs_in_stmts): Same.
788         (insert_out_of_ssa_copy_on_edge): Same.
789         (rewrite_close_phi_out_of_ssa):Same.
790         (rewrite_reductions_out_of_ssa):Same.
791         (handle_scalar_deps_crossing_scop_limits):Same.
792         (rewrite_cross_bb_scalar_deps):Same.
793         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
794         (build_poly_scop):Same.
795         (build_alias_set): Use pointer to dr_info.
796         * graphite.c (print_graphite_scop_statistics):
797         (graphite_transform_loops):
798         * sese.h (struct sese_l): Remove conversion constructor.
800 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
802         PR middle-end/67966
803         * tree.c (verify_type): Verify that TYPE_MODE match
804         between TYPE_CANONICAL and type.
805         * expr.c (store_expr_with_bounds): Revert my previous change.
806         * expmed.c (store_bit_field_1): Revert prevoius change.
807         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
808         to match for all types.
810 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
812         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
813         nesting.
815 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
817         * doc/tm.texi: Regenerated.
818         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
819         * stor-layout.c (layout_type): Use mode to get vector mask size.
820         * target.def (get_mask_mode): New.
821         * targhooks.c (default_get_mask_mode): New.
822         * targhooks.h (default_get_mask_mode): New.
823         * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
824         for boolean vector.
825         * tree.c (MAX_BOOL_CACHED_PREC): New.
826         (nonstandard_boolean_type_cache): New.
827         (build_nonstandard_boolean_type): New.
828         (make_vector_type): Vector mask has no canonical type.
829         (build_truth_vector_type): New.
830         (build_same_sized_truth_vector_type): New.
831         (truth_type_for): Support vector masks.
832         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
833         (build_truth_vector_type): New.
834         (build_same_sized_truth_vector_type): New.
835         (build_nonstandard_boolean_type): New.
836         * tree-cfg.c (verify_gimple_comparison) Require boolean
837         vector type for vector comparison.
838         (verify_gimple_assign_ternary): Likewise.
839         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
840         condition operand.
841         * tree-vect-stmts.c (vectorizable_condition): Use boolean
842         vector type for vector comparison.
843         * tree-vect-generic.c (elem_op_func): Add new operand to hold
844         vector type.
845         (do_unop): Adjust to modified function type.
846         (do_binop): Likewise.
847         (do_plus_minus): Likewise.
848         (do_negate); Likewise.
849         (expand_vector_piecewise): Likewise.
850         (do_cond): Likewise.
851         (do_compare): Use comparison instead of condition.
852         (expand_vector_divmod): Use boolean vector type for comparison.
853         (expand_vector_operations_1): Skip scalar mask operations.
855 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
857         * omp-low.c (simd_clone_create): Set in_other_partition
858         for created clones.
860 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
862         * doc/extend.exp (Local Register Variables): Rewrite.
864 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
866         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
867         and x*x in cases where the operands are sign ops.  Extend these
868         rules to handle copysign as a sign op (including for cos, cosh
869         and pow, which already treated negate and abs as sign ops).
871 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
873         PR target/68018
874         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
875         for 64-bit MS_ABI targets also when default incoming stack boundary
876         is overriden.
878 2015-10-21  Richard Biener  <rguenther@suse.de>
880         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
881         cond stmts, enhanced and split out from ...
882         (vn_phi_eq): ... here.
884 2015-10-21  Richard Biener  <rguenther@suse.de>
886         PR middle-end/68031
887         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
888         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
889         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
890         make sure they are not registered for update.
892 2015-10-21  Richard Biener  <rguenther@suse.de>
894         PR tree-optimization/68026
895         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
896         unsigned VARYING values.
898 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
900         * asan.c (asan_emit_stack_protection): Don't pass local stack to
901         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
902         NULL and use local stack than.
903         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
904         in addition to __asan_init.
905         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
906         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
907         * asan.h (asan_intercepted_p): Handle new string builtins.
908         * ubsan.c (ubsan_use_new_style_p): New function.
909         (ubsan_instrument_float_cast): If location is unknown, assign
910         input_location to loc. Propagate loc to ubsan_create_data if
911         ubsan_use_new_style_p returned true.
913 2015-10-21  Jeff Law  <law@redhat.com>
915         * Makefile.in (OBJS): Remove sched-vis.c
916         * sched-vis.c: Removed.  Code moved into...
917         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
918         * rtl.h: Remove prototypes for functions now living in print-rtl.c
919         * print-rtl.h Add prototypes for new functions in print-rtl.c.
920         * auto-inc-dec.c: Include print-rtl.h
921         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
922         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
924         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
925         ATTRIBUTE_UNUSED.
927 2015-10-21  Richard Biener  <rguenther@suse.de>
928             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
930         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
931         to match.pd.
932         Move (a * (1 << b)) is (a << b) to match.pd.
933         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
934         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
935         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
937         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
938         New simplifier.
939         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
940         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
941         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
942         : New simplifier.
943         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
944         New simplifier.
945         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
947 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
948             Szabolcs Nagy  <szabolcs.nagy@arm.com>
949             Alan Modra  <amodra@gmail.com>
951         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
952         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
953         (LINK_SPEC): Add %(link_secure_plt).
954         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
955         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
957 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
958             Szabolcs Nagy  <szabolcs.nagy@arm.com>
960         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
961         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
963 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
965         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
966         New function.
967         (fusion_load_store): Use it.
968         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
969         ldp and stp in VD modes.
970         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
971         (store_pair<mode>, VD): Likewise.
973 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
975         PR rtl-optimization/67609
976         * lra-splill.c (lra_final_code_change): Don't remove all
977         sub-registers.
979 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
981         * simplify-rtx.c (simplify_binary_operation): If either operand was
982         a constant pool reference use them if all other simplifications failed.
984 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
986         * config/aarch64/aarch64.md
987         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
988         * config/aarch64/aarch64-simd.md
989         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
990         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
991         (aarch64_fpconst_pow_of_2): New function.
992         (aarch64_vec_fpconst_pow_of_2): Likewise.
993         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
994         prototype.
995         (aarch64_vec_fpconst_pow_of_2): Likewise.
996         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
997         (aarch64_fp_vec_pow2): Likewise.
999 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
1001         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
1002         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
1003         * config/alpha/alpha.c (alpha_function_arg_advance): Update
1004         ALPHA_ARG_SIZE usage.
1005         (alpha_arg_partial_bytes): Ditto.
1007 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1009         PR target/66810
1010         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
1011         error_mark_node decls.
1013 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1015         PR target/67963
1016         PR target/67985
1017         * common/config/i386/i386-common.c (ix86_handle_option): Remove
1018         OPT_miamcu handling.
1019         * config/i386/i386.c (PTA_NO_80387): New macro.
1020         (processor_alias_table): Add PTA_NO_80387 to lakemont.
1021         (ix86_option_override_internal): Update MASK_80387 from
1022         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
1023         SSE math only if 80387 is supported.  Don't change
1024         MASK_FLOAT_RETURNS.
1025         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
1026         80387 is supported.
1027         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
1028         if TARGET_80387 is true and TARGET_IAMCU is false.
1029         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
1030         is true and TARGET_IAMCU_P is false.
1032 2015-10-20  Richard Biener  <rguenther@suse.de>
1034         PR tree-optimization/68017
1035         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
1037 2015-10-20  Martin Liska  <mliska@suse.cz>
1039         * cgraphclones.c (cgraph_node::create_virtual_clone):
1040         Verify cgraph_node.local.versionable instead of calling
1041         tree_versionable_function_p.
1042         * ipa-cp.c (determine_versionability): Save the information
1043         to ipa_node_params summary.
1044         (ipcp_versionable_function_p): Use it.
1045         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
1046         (ipcp_generate_summary): Do not compute cgraph_node
1047         versionability.
1048         * ipa-inline-analysis.c (inline_generate_summary): Compute
1049         versionability for all cgraph nodes.
1050         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
1051         ipa_node_params::versionability.
1052         * ipa-prop.h (struct ipa_node_params): Declare it.
1054 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1056         PR other/67868
1057         * varasm.c (assemble_variable): Move special vtv handling to..
1058         (handle_vtv_comdat_sections): .. here. New function.
1059         (output_object_block): Handle vtv sections.
1061 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1063         PR target/66912
1064         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
1066 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
1068         * doc/extend.texi: Update documentation WRT inline functions.
1070 2015-10-20  Alan Modra  <amodra@gmail.com>
1072         PR go/66870
1073         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
1074         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
1075         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
1077 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
1079         PR rtl-optimization/66790
1080         * df.h (DF_MIR): New macro.
1081         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
1082         (DF_MIR_INFO_BB): New macro.
1083         (DF_MIR_IN, DF_MIR_OUT): New macros.
1084         (struct df_mir_bb_info): New.
1085         (df_mir): New macro.
1086         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
1087         declarations.
1088         (df_mir_get_bb_info): New.
1089         * df-problems.c (struct df_mir_problem_data): New.
1090         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
1091         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
1092         df_mir_confluence_0, df_mir_confluence_n,
1093         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
1094         df_mir_bottom_dump, df_mir_verify_solution_start,
1095         df_mir_verify_solution_end): New.
1096         (problem_MIR): New.
1097         (df_mir_add_problem, df_mir_simulate_one_insn): New.
1098         * timevar.def (TV_DF_MIR): New.
1099         * ree.c: Include bitmap.h
1100         (add_removable_extension): Add an INIT_REGS parameter.  Use it
1101         to skip zero-extensions that may get an uninitialized register.
1102         (find_removable_extensions): Compute must-initialized registers
1103         using the MIR dataflow problem. Update the call to
1104         add_removable_extension.
1105         (find_and_remove_re): Call df_mir_add_problem.
1107 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
1109         * common/config/mn10300/mn10300-common.c
1110         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
1111         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
1113 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
1115         * doc/extend.texi (Explicit Register Variables): Simplify and
1116         avoid unnecessary and confusion abbreviations.  Update cross
1117         references.
1118         doc/implement-c.tex: Update cross reference.
1120 2015-10-19  Jeff Law  <law@redhat.com>
1122         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
1123         that create irreducible loops unless the path elimiantes a multiway
1124         branch.
1126 2015-10-19  Richard Biener  <rguenther@suse.de>
1128         PR tree-optimization/67975
1129         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
1130         * tree-cfg.c (extract_true_false_controlled_edges): Split out
1131         core worker from ...
1132         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
1133         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
1134         instead of block number for PHIs with two or one args.
1135         (vn_phi_eq): Compare edge predicates of PHIs that are in different
1136         blocks.
1138 2015-10-19  Richard Biener  <rguenther@suse.de>
1140         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
1141         (gimple_stmt_nonnegative_warnv_p): Use it.
1142         * match.pd (CPROJ): New operator list.
1143         (cproj (complex ...)): Move simplifications from ...
1144         * builtins.c (fold_builtin_cproj): ... here.
1146 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1148         * config/i386/i386.c (ix86_expand_vector_move): Use
1149         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
1150         alignment.
1152 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1154         * doc/invoke.texi: Replace @optindex with @opindex.
1156 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1158         PR target/67995
1159         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
1160         arch= is set,  clear all bits in x_ix86_isa_flags, except for
1161         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
1163 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
1165         PR middle-end/68002
1166         * common.opt (fkeep-static-functions): New option.
1167         * doc/invoke.texi: Document it.
1168         * cgraphunit.c (cgraph_node::finalize_function): Use it.
1170 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1172         * sched-int.h (struct autopref_multipass_data_): Remove offset
1173         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
1174         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
1175         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
1176         (autopref_rank_data): New function.
1177         (autopref_rank_for_schedule): Use it.
1178         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
1180 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
1182         PR other/65800
1183         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
1185 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
1187         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
1188         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
1189         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
1190         (STANDARD_STARTFILE_PREFIX_1): New.
1191         (STANDARD_STARTFILE_PREFIX_2): New.
1193 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
1195         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
1196         (darwin_driver_init): Note a version-min when provided on the c/l.
1197         * config/darwin.h (%darwin_minversion): Remove.
1198         * config/i386/darwin.h: Likewise.
1199         * config/rs6000/darwin.h: Likewise.
1200         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
1201         rather than an arbitrary constant.
1203 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
1205         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
1206         PPC, detect conflicts between -arch and multilib settings.  Detect
1207         and warn about conflicts between multiple -arch definitions.
1209 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
1211         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
1213 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1215         * lra-constraints.c (add_next_usage_insn): Change argument type
1216         from rtx to rtx_insn *.
1218 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
1220         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
1221         for Lakemont.
1223 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
1225         * config/tilepro/gen-mul-tables.cc: Adjust include files.
1226         * config/tilegx/mul-tables.c: Regenerate.
1227         * config/tilepro/mul-tables.c: Regenerate.
1229         * config/tilegx/tilegx-c.c: Adjust include files.
1230         * config/tilegx/tilegx.c: Likewise.
1231         * config/tilepro/tilepro-c.c: Likewise.
1232         * config/tilepro/tilepro.c: Likewise.
1233         * config/aarch64/aarch64-builtins.c: Likewise.
1234         * config/aarch64/aarch64.c: Likewise.
1235         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1236         * config/alpha/alpha.c: Likewise.
1237         * config/arc/arc.c: Likewise.
1238         * config/arm/aarch-common.c: Likewise.
1239         * config/arm/arm-builtins.c: Likewise.
1240         * config/arm/arm-c.c: Likewise.
1241         * config/arm/arm.c: Likewise.
1242         * config/avr/avr-c.c: Likewise.
1243         * config/avr/avr-devices.c: Likewise.
1244         * config/avr/avr-log.c: Likewise.
1245         * config/avr/avr.c: Likewise.
1246         * config/bfin/bfin.c: Likewise.
1247         * config/c6x/c6x.c: Likewise.
1248         * config/cr16/cr16.c: Likewise.
1249         * config/cris/cris.c: Likewise.
1250         * config/darwin-c.c: Likewise.
1251         * config/darwin-driver.c: Likewise.
1252         * config/darwin.c: Likewise.
1253         * config/default-c.c: Likewise.
1254         * config/epiphany/epiphany.c: Likewise.
1255         * config/epiphany/mode-switch-use.c: Likewise.
1256         * config/epiphany/resolve-sw-modes.c: Likewise.
1257         * config/fr30/fr30.c: Likewise.
1258         * config/frv/frv.c: Likewise.
1259         * config/ft32/ft32.c: Likewise.
1260         * config/glibc-c.c: Likewise.
1261         * config/h8300/h8300.c: Likewise.
1262         * config/i386/host-cygwin.c: Likewise.
1263         * config/i386/host-mingw32.c: Likewise.
1264         * config/i386/i386-c.c: Likewise.
1265         * config/i386/i386.c: Likewise.
1266         * config/i386/msformat-c.c: Likewise.
1267         * config/i386/winnt-cxx.c: Likewise.
1268         * config/i386/winnt-stubs.c: Likewise.
1269         * config/i386/winnt.c: Likewise.
1270         * config/ia64/ia64-c.c: Likewise.
1271         * config/ia64/ia64.c: Likewise.
1272         * config/iq2000/iq2000.c: Likewise.
1273         * config/lm32/lm32.c: Likewise.
1274         * config/m32c/m32c-pragma.c: Likewise.
1275         * config/m32c/m32c.c: Likewise.
1276         * config/m32r/m32r.c: Likewise.
1277         * config/mcore/mcore.c: Likewise.
1278         * config/mep/mep-pragma.c: Likewise.
1279         * config/mep/mep.c: Likewise.
1280         * config/microblaze/microblaze-c.c: Likewise.
1281         * config/microblaze/microblaze.c: Likewise.
1282         * config/mips/mips-tables.opt
1283         * config/mips/mips.c: Likewise.
1284         * config/mmix/mmix.c: Likewise.
1285         * config/mn10300/mn10300.c: Likewise.
1286         * config/moxie/moxie.c: Likewise.
1287         * config/msp430/msp430-c.c: Likewise.
1288         * config/msp430/msp430.c: Likewise.
1289         * config/nds32/nds32-cost.c: Likewise.
1290         * config/nds32/nds32-fp-as-gp.c: Likewise.
1291         * config/nds32/nds32-intrinsic.c: Likewise.
1292         * config/nds32/nds32-isr.c: Likewise.
1293         * config/nds32/nds32-md-auxiliary.c: Likewise.
1294         * config/nds32/nds32-memory-manipulation.c: Likewise.
1295         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1296         * config/nds32/nds32-predicates.c: Likewise.
1297         * config/nds32/nds32.c: Likewise.
1298         * config/nios2/nios2.c: Likewise.
1299         * config/nvptx/mkoffload.c: Likewise.
1300         * config/nvptx/nvptx.c: Likewise.
1301         * config/pa/pa.c: Likewise.
1302         * config/pdp11/pdp11.c: Likewise.
1303         * config/rl78/rl78-c.c: Likewise.
1304         * config/rl78/rl78.c: Likewise.
1305         * config/rs6000/host-darwin.c: Likewise.
1306         * config/rs6000/rs6000-c.c: Likewise.
1307         * config/rs6000/rs6000-linux.c: Likewise.
1308         * config/rs6000/rs6000.c: Likewise.
1309         * config/rx/rx.c: Likewise.
1310         * config/s390/s390-c.c: Likewise.
1311         * config/s390/s390.c: Likewise.
1312         * config/sh/sh-c.c: Likewise.
1313         * config/sh/sh-mem.cc: Likewise.
1314         * config/sh/sh.c: Likewise.
1315         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1316         * config/sh/sh_treg_combine.cc: Likewise.
1317         * config/sol2-c.c: Likewise.
1318         * config/sol2-cxx.c: Likewise.
1319         * config/sol2-stubs.c: Likewise.
1320         * config/sol2.c: Likewise.
1321         * config/sparc/sparc-c.c: Likewise.
1322         * config/sparc/sparc.c: Likewise.
1323         * config/spu/spu-c.c: Likewise.
1324         * config/spu/spu.c: Likewise.
1325         * config/stormy16/stormy16.c: Likewise.
1326         * config/v850/v850-c.c: Likewise.
1327         * config/v850/v850.c: Likewise.
1328         * config/vax/vax.c: Likewise.
1329         * config/visium/visium.c: Likewise.
1330         * config/vms/vms-c.c: Likewise.
1331         * config/vms/vms.c: Likewise.
1332         * config/vxworks.c: Likewise.
1333         * config/winnt-c.c: Likewise.
1334         * config/xtensa/xtensa.c: Likewise.
1336 2015-10-16  Christian Bruel  <christian.bruel@st.com>
1338         PR target/67745
1339         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
1340         (FUNCTION_BOUNDARY_P): New macro:
1341         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
1342         New hook.
1343         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
1344         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
1345         * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
1346         * gcc/function.c (allocate_struct_function): Call
1347         relayout_function hook.
1348         * gcc/passes.c (rest_of_decl_compilation): Likewise.
1350 2015-10-16  Christian Bruel  <christian.bruel@st.com>
1352         PR target/67745
1353         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
1354         * config/arm/arm.c (arm_option_override_internal): Call
1355         arm_override_options_after_change_1.
1356         (arm_override_options_after_change): New function.
1357         (arm_override_options_after_change_1): Likewise.
1358         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
1360 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1362         Revert:
1363         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1364         empty constructors.
1366 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1368         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
1369         argument is an ADDR_EXPR.
1371 2015-10-16  Richard Biener  <rguenther@suse.de>
1373         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
1374         and get rid of force_gimple_operand_gsi.
1375         (gimple_fold_builtin_memory_chk): Likewise.
1376         (gimple_fold_builtin_stxcpy_chk): Likewise.
1377         (rewrite_to_defined_overflow): Likewise.
1378         (gimple_convert_to_ptrofftype): New function.
1379         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
1381 2015-10-16  Richard Biener  <rguenther@suse.de>
1383         * tree-nested.h (build_addr): Adjust prototype.
1384         * tree-nested.c (build_addr): Remove context argument and use
1385         mark_addressable.
1386         (get_static_chain): Adjust calls to build_addr.
1387         (convert_nl_goto_reference): Likewise.
1388         (convert_tramp_reference_op): Likewise.
1389         (finalize_nesting_tree_1): Likewise.
1390         * value-prof.c (gimple_ic): Likewise.
1391         * gimple-low.c (lower_builtin_setjmp): Likewise.
1392         * tree-parloops.c (take_address_of): Likewise.
1393         (create_call_for_reduction_1): Likewise.
1394         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
1395         (gimple_gen_ic_func_profiler): Likewise.
1397 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1399         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1400         empty constructors.
1402 2015-10-16  Michael Collison  <michael.collison@linaro.org>
1403             Andrew Pinski <andrew.pinski@caviumnetworks.com>
1405         * match.pd ((x < y) && (x < z) -> x < min (y,z),
1406         (x > y) and (x > z) -> x > max (y,z))
1408 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
1409             Szabolcs Nagy  <szabolcs.nagy@arm.com>
1411         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
1412         (DYNAMIC_LINKER): Renamed to ...
1413         (GLIBC_DYNAMIC_LINKER): This.
1414         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
1416 2015-10-15  Marek Polacek  <polacek@redhat.com>
1418         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
1419         gimple_call_builtin instead of is_gimple_call.
1421 2015-10-15  Richard Biener  <rguenther@suse.de>
1423         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
1425 2015-10-15  Richard Biener  <rguenther@suse.de>
1427         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
1428         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
1429         * tree-vect-loop.c (get_initial_def_for_induction): Drop
1430         use of force_gimple_operand in favor of gimple_build.
1431         Use vect_get_new_ssa_name.
1432         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
1433         (vectorizable_mask_load_store): Likewise.
1434         (vectorizable_call): Likewise.
1435         (vectorizable_store): Likewise.
1436         (vectorizable_load): Likewise.
1437         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
1439 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
1441         PR tree-optimization/67945
1442         * tree-pass.h (PROP_gimple_opt_math): New property flag.
1443         * generic-match-head.c (canonicalize_math_p): New function.
1444         * gimple-match-head.c: Include tree-pass.h.
1445         (canonicalize_math_p): New function.
1446         * match.pd: Group math built-in rules into simplifications
1447         and canonicalizations.  Guard the latter with canonicalize_math_p.
1448         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
1449         PROP_gimple_opt_math property.
1451 2015-10-15  Marek Polacek  <polacek@redhat.com>
1453         PR tree-optimization/67953
1454         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
1456 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
1458         * config.gcc: Recognize "." in architecture base name for AArch64.
1460 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
1462         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
1463         ROUND_UP macro.
1464         * config/mips/mips.c (mips_setup_incoming_varargs): Use
1465         ROUND_DOWN to calculate off.
1466         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
1467         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
1468         rounded_size.
1470 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1472         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
1474 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
1475             Torvald Riegel  <triegel@redhat.com>
1477         PR target/67281
1478         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
1479         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1480         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
1481         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
1482         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
1483         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1484         trechkpt, treclaim, tsr, ttest): New define_expands.
1485         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1486         __TM_FENCE__ for htm.
1487         * doc/extend.texi: Update documentation for htm builtins.
1489 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
1491         PR target/67967
1492         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
1493         REG_CFA_EXPRESSION to aligned SSE stores.
1495 2015-10-14  Jeff Law  <law@redhat.com>
1497         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
1498         num_threaded_edges for successful FSM threads too.
1500 2015-10-14  Richard Biener  <rguenther@suse.de>
1502         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
1503         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
1504         (vect_get_vec_def_for_operand): Remove unused parameter.
1505         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
1506         (vect_create_epilog_for_reduction): Likewise.
1507         (vectorizable_reduction): Likewise.
1508         (vectorizable_live_operation): Likewise.
1509         * tree-vect-patterns.c (type_conversion_p): Likewise.
1510         (vect_recog_vector_vector_shift_pattern): Likewise.
1511         (check_bool_pattern): Likewise.
1512         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1513         (vect_analyze_slp_cost_1): Likewise.
1514         * tree-vect-stmts.c (process_use): Likewise.
1515         (vect_get_vec_def_for_operand): Do not handle reductions.
1516         (vect_get_vec_defs): Adjust.
1517         (vectorizable_mask_load_store): Likewise.
1518         (vectorizable_call): Likewise.
1519         (vectorizable_simd_clone_call): Likewise.
1520         (vect_get_loop_based_defs): Likewise.
1521         (vectorizable_conversion): Likewise.
1522         (vectorizable_assignment): Likewise.
1523         (vectorizable_shift): Likewise.
1524         (vectorizable_operation): Likewise.
1525         (vectorizable_store): Likewise.
1526         (vectorizable_load): Likewise.
1527         (vect_is_simple_cond): Likewise.
1528         (vectorizable_condition): Likewise.
1529         (vect_is_simple_use): Remove unused parameters.
1530         (vect_is_simple_use_1): Adjust and rename.
1532 2015-10-14  Richard Biener  <rguenther@suse.de>
1534         PR tree-optimization/67915
1535         * match.pd: Handle comparisons of addresses of STRING_CSTs.
1536         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
1537         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
1538         stmt folding in favor of GIMPLE one.
1540 2015-10-14  Marek Polacek  <polacek@redhat.com>
1542         PR tree-optimization/67815
1543         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
1544         (reassociate_bb): Call it.
1546 2015-10-14  Richard Biener  <rguenther@suse.de>
1548         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1549         Reset info at start.
1550         (vect_analyze_group_access_1): Add debug print.
1551         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
1552         (vect_compute_single_scalar_iteration_cost): ... to this.
1553         (vect_analyze_loop_2): Adjust.
1554         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
1555         * tree-vectorizer.h: ... here.
1556         (add_stmt_info_to_vec): Remove.
1557         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
1559 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1561         * targhooks.c (default_target_option_pragma_parse): Do not warn if
1562         called on behalf of "#pragma GCC pop_options".
1564 2015-10-14  Tom de Vries  <tom@codesourcery.com>
1566         * cfganal.c (verify_no_unreachable_blocks): New function.
1567         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
1568         verify_no_unreachable_blocks.
1569         cfganal.h (verify_no_unreachable_blocks): Declare.
1571 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
1573         * common.opt: Add flag_checking.
1574         * system.h (CHECKING_P): Define.
1576 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
1577             Aldy Hernandez  <aldyh@redhat.com>
1578             Ilya Verbin  <ilya.verbin@intel.com>
1580         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
1581         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
1582         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
1583         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
1584         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
1585         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
1586         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
1587         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
1588         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
1589         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
1590         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
1591         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
1592         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
1593         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1594         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
1595         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1596         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1597         (struct cgraph_simd_clone_arg): Adjust comment.
1598         * coretypes.h (struct gomp_ordered): New forward decl.
1599         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
1600         set critical clauses to it.
1601         (gimple_build_omp_ordered): Return gomp_ordered * instead of
1602         gimple *.  Add CLAUSES argument, set ordered clauses to it.
1603         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
1604         GIMPLE_OMP_ORDERED.
1605         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
1606         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
1607         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
1608         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
1609         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
1610         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
1611         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
1612         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
1613         renumber
1614         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
1615         (gomp_critical): Add clauses field.
1616         (gomp_ordered): New struct.
1617         (is_a_helper <gomp_ordered *>::test): New inline.
1618         (gimple_build_omp_critical): Add CLAUSES argument.
1619         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
1620         instead of gimple *.
1621         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
1622         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
1623         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
1624         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
1625         inline functions.
1626         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
1627         (dump_gimple_omp_target): Handle enter data and exit data.
1628         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
1629         (dump_gimple_omp_critical): Print clauses.
1630         (dump_gimple_omp_ordered): New function.
1631         (dump_gimple_omp_task): Handle taskloop.
1632         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
1633         GIMPLE_OMP_ORDERED.
1634         * gimple-walk.c (walk_gimple_op): Walk clauses on
1635         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
1636         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
1637         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
1638         (struct gimplify_omp_ctx): Add loop_iter_var,
1639         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
1640         and target_firstprivatize_array_bases fields.
1641         (delete_omp_context): Release loop_iter_var.
1642         (gimplify_bind_expr): Handle ORT_NONE.
1643         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
1644         ORT_COMBINED_TARGET.
1645         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
1646         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
1647         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
1648         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
1649         ctx->target_map_scalars_firstprivate.
1650         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
1651         data sharing clauses.  For data sharing clause with VLA decl
1652         on omp target/target data don't add firstprivate for the pointer.
1653         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
1654         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
1655         the addition of ORT_COMBINED_TARGET.
1656         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
1657         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
1658         pointers as zero length array sections and
1659         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
1660         data sharing.
1661         (omp_check_private): Handle omp_member_access_dummy_var vars.
1662         (find_decl_expr): New function.
1663         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
1664         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
1665         Handle OMP_CLAUSE_GANG separately.  Handle
1666         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1667         clauses.  Diagnose linear clause on combined
1668         distribute {, parallel for} simd construct, unless it is the loop
1669         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
1670         Handle map clauses with COMPONENT_REF.  Initialize
1671         ctx->target_map_scalars_firstprivate,
1672         ctx->target_firstprivatize_array_bases and
1673         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
1674         linear clause even to target region if combined.  Remove
1675         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
1676         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
1677         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
1678         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
1679         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
1680         For linear clause on worksharing loop combined with parallel add
1681         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
1682         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
1683         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
1684         taskloop if needed.
1685         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
1686         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
1687         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
1688         GOMP_MAP_POINTER.
1689         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
1690         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
1691         in target body.  Handle removal of struct mapping if struct is not
1692         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
1693         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
1694         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
1695         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
1696         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
1697         clause appear together.  Handle
1698         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
1699         clause if it has map-type-modifier always.  Handle
1700         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1701         clauses.
1702         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
1703         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
1704         callers.
1705         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
1706         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
1707         iterators in doacross loops.
1708         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
1709         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
1710         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
1711         for the addition of ORT_COMBINED_TARGET.
1712         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
1713         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
1714         and OMP_TARGET_EXIT_DATA.
1715         (gimplify_omp_ordered): New function.
1716         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
1717         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
1718         Gimplify clauses on OMP_CRITICAL.
1719         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
1720         expand_GOMP_SIMD_ORDERED_END): New functions.
1721         * internal-fn.def (GOMP_SIMD_ORDERED_START,
1722         GOMP_SIMD_ORDERED_END): New internal functions.
1723         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
1724         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
1725         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
1726         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
1727         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
1728         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
1729         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
1730         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
1731         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
1732         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
1733         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
1734         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
1735         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
1736         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
1737         adjust type.
1738         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
1739         GOMP_target_data_41, adjust type.
1740         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
1741         GOMP_target_update_41, adjust type.
1742         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
1743         field.
1744         (struct omp_for_data): Add ordered and simd_schedule fields.
1745         (omp_member_access_dummy_var, unshare_and_remap_1,
1746         unshare_and_remap, is_taskloop_ctx): New functions.
1747         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
1748         (extract_omp_for_data): Handle taskloops and doacross loops
1749         and simd schedule modifier.
1750         (omp_adjust_chunk_size): New function.
1751         (get_ws_args_for): Use it.
1752         (lookup_sfield): Change first argument to splay_tree_key,
1753         add overload with first argument tree.
1754         (maybe_lookup_field): Likewise.
1755         (use_pointer_for_field): Handle omp_member_access_dummy_var.
1756         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
1757         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
1758         (build_outer_var_ref): Add LASTPRIVATE argument, handle
1759         taskloops and omp_member_access_dummy_var vars.
1760         (build_sender_ref): Change first argument to splay_tree_key,
1761         add overload with first argument tree.
1762         (install_var_field): For mask & 8 use &DECL_UID as key instead
1763         of the tree itself.
1764         (fixup_child_record_type): Const qualify *.omp_data_i.
1765         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
1766         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
1767         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
1768         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
1769         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
1770         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
1771         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
1772         kinds.
1773         (add_taskreg_looptemp_clauses): New function.
1774         (scan_omp_parallel): Use it.
1775         (scan_omp_task): Likewise.
1776         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1777         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
1778         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1779         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
1780         sandwiched taskloop constructs.  Type check
1781         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
1782         region.  Diagnose depend(source) or depend(sink:...) on
1783         target constructs or task/taskloop.
1784         (handle_simd_reference): Use get_name.
1785         (lower_rec_input_clauses): Likewise.  Ignore all
1786         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
1787         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
1788         before passing it to omp_clause_{default,copy}_ctor.  Handle
1789         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
1790         lastprivate_firstprivate flag for linear that needs copyin and
1791         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
1792         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
1793         on taskloop lookup decl in outer context.  Pass true to
1794         build_outer_var_ref lastprivate argument.  Handle
1795         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
1796         outside of outer taskloop for.
1797         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
1798         OMP_CLAUSE_DECL.
1799         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
1800         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
1801         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
1802         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
1803         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
1804         abstract origin.  Handle omp_member_access_dummy_var vars.
1805         (expand_parallel_call): Use expand_omp_build_assign.
1806         (expand_task_call): Handle taskloop construct expansion.  Add
1807         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
1808         integers.  Add priority argument to GOMP_task* calls.  Or in
1809         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
1810         GOMP_task call.
1811         (expand_omp_build_assign): Add prototype.  Add AFTER
1812         argument, if true emit statements after *GSI_P and continue linking.
1813         (expand_omp_taskreg): Adjust expand_task_call caller.
1814         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
1815         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
1816         zero_iter2_bb and first_zero_iter2 arguments, handle computation
1817         of counts even for ordered loops.
1818         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
1819         (expand_omp_ordered_source, expand_omp_ordered_sink,
1820         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
1821         functions.
1822         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
1823         clauses on worksharing loop.  Handle DOACROSS loop expansion.
1824         (expand_omp_for_static_nochunk): Handle linear clauses on
1825         worksharing loop.  Adjust expand_omp_for_init_counts
1826         callers.
1827         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
1828         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
1829         expand_omp_for_init_counts callers.
1830         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
1831         functions.
1832         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
1833         Handle doacross loops.
1834         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1835         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
1836         GOMP_target_{41,update_41,enter_exit_data} libcalls.
1837         (expand_omp): Don't expand ordered depend constructs here, record
1838         ord_stmt instead for later expand_omp_for_generic.
1839         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1840         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
1841         clause as stand-alone directive.
1842         (lower_omp_ordered_clauses): New function.
1843         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
1844         don't lower anything.
1845         (lower_omp_for_lastprivate): Use last _looptemp_ clause
1846         on taskloop for comparison.
1847         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
1848         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
1849         expansion for linear adjustments.
1850         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1851         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
1852         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
1853         to tree * pointing to the stmt's clauses.
1854         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
1855         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1856         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
1857         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
1858         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
1859         clauses.  Always use short kind and 8-bit align shift.
1860         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
1861         (struct lower_omp_regimplify_operands_data): New type.
1862         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
1863         New functions.
1864         (lower_omp_1): Use lower_omp_regimplify_operands instead of
1865         gimple_regimplify_operands.
1866         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1867         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
1868         clause as stand-alone directive.
1869         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
1870         (simd_clone_mangle): Mangle the various linear kinds
1871         per the new ABI.
1872         (simd_clone_adjust_argument_types): Handle
1873         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
1874         (simd_clone_init_simd_arrays): Don't do anything for uval.
1875         (simd_clone_adjust): Handle
1876         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
1877         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
1878         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
1879         * omp-low.h (omp_member_access_dummy_var): New prototype.
1880         * passes.def (pass_simduid_cleanup): Schedule another copy of the
1881         pass after all optimizations.
1882         * tree.c (omp_clause_code_name): Add entries for
1883         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1884         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1885         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
1886         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
1887         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
1888         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
1889         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1890         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
1891         clauses.
1892         * tree-core.h (enum omp_clause_linear_kind): New.
1893         (struct tree_omp_clause): Change type of map_kind
1894         from unsigned char to unsigned int.  Add subcode.if_modifier
1895         and subcode.linear_kind fields.
1896         (enum omp_clause_code): Add
1897         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1898         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1899         (OMP_CLAUSE_REDUCTION): Document
1900         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1901         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
1902         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
1903         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
1904         operand.
1905         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
1906         operand.
1907         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
1908         codes.
1909         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
1910         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
1911         char.
1912         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
1913         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
1914         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
1915         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
1916         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
1917         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
1918         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
1919         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
1920         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
1921         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
1922         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
1923         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
1924         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
1925         * tree-inline.c (remap_gimple_stmt): Handle clauses on
1926         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
1927         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
1928         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
1929         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1930         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1931         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1932         (convert_local_omp_clauses): Likewise.
1933         * tree-pretty-print.c (dump_omp_clause): Handle
1934         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1935         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1936         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
1937         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
1938         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
1939         GOMP_MAP_FORCE_DEALLOC.  Handle
1940         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
1941         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
1942         and clauses on OMP_ORDERED and OMP_CRITICAL.
1943         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
1944         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
1945         (vectorize_loops): Adjust comments.
1946         (pass_simduid_cleanup::execute): Likewise.
1947         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
1948         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
1949         * wide-int.h (wi::gcd): New.
1951 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
1953         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
1954         (ix86_function_arg_advance): Ditto.
1955         (ix86_function_arg): Ditto.
1956         (ix86_gimplify_va_arg): Ditto.
1957         (ix86_class_max_nregs): Ditto.
1958         (inline_memory_move_cost): Ditto.
1959         (ix86_set_reg_reg_cost): Ditto.
1960         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
1962 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
1964         PR middle-end/67912
1965         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
1967 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
1969         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
1970         ROUND_UP macro and UNITS_PER_WORD * 2.
1971         * config/sparc/sparc.c (sparc_compute_frame_size):
1972         Use ROUND_UP and ROUND_DOWN macros where applicable.
1973         (function_arg_record_value, function_arg_record_value_1)
1974         (function_arg_record_value_1): Ditto.
1975         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
1976         alignment to double-word.
1977         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
1978         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
1979         rounded_size.
1981 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
1983         * gcc/rtl.h (print_insn): Fix prototype.
1985 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1987         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
1988         -1.  Add assert that returned entry matches phi argument.
1989         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
1990         free_stmt_vec_info_vec ...
1991         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
1992         with -1.
1994 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
1996         PR tree-optimization/67909, 67947
1997         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
1998         really skip the inner loop.
2000 2015-10-13  Jeff Law  <law@redhat.com>
2002         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2003         Allow single block jump threading paths.
2005 2015-10-13  Tom de Vries  <tom@codesourcery.com>
2007         PR tree-optimization/67476
2008         * doc/invoke.texi (@item parloops-schedule): New item.
2009         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
2010         * tree-parloops.c: Include params-enum.h.
2011         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
2013 2015-10-13  Tom de Vries  <tom@codesourcery.com>
2015         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
2016         * params-enum.h: New file.
2017         * opts.c (handle_param): Handle case that param arg is a string.
2018         * params-list.h: Handle DEFPARAMENUM5 in params.def.
2019         * params.c (find_param): New function, factored out of ...
2020         (set_param_value): ... here.
2021         (param_string_value_p): New function.
2022         * params.h (struct param_info): Add value_names field.
2023         (find_param, param_string_value_p): Declare.
2025 2015-10-13  Tom de Vries  <tom@codesourcery.com>
2027         PR tree-optimization/67476
2028         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
2030 2015-10-13  Richard Biener  <rguenther@suse.de>
2032         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
2033         the data dependence vector.
2034         (vect_peeling_hash_insert): Get the peeling hash table as argument.
2035         (vect_peeling_hash_get_lowest_cost): Likewise.
2036         (vect_enhance_data_refs_alignment): Adjust.
2037         (struct _vect_peel_info, struct _vect_peel_extended_info,
2038         struct peel_info_hasher): Move from ...
2039         * tree-vectorizer.h: ... here.
2040         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
2041         (LOOP_VINFO_PEELING_HTAB): Likewise.
2042         (struct _loop_vec_info): Remove min_profitable_iters and
2043         peeling_htab members.
2044         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
2045         here.
2046         (destroy_loop_vec_info): Adjust.
2047         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
2048         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
2049         to estimate alias versioning cost.
2050         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
2052 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
2054         * real.h (real_isinteger): Declare.
2055         * real.c (real_isinteger): New function.
2056         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
2057         if y is an even integer.
2059 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2061         revert:
2062         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2063         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
2064         counts when these are more informative.
2066 2015-10-12  Jeff Law  <law@redhat.com>
2068         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
2069         (fsm_find_control_stmt_paths): Change name of first argument to
2070         more accurately relfect what it really is.  Handle simplification
2071         of GIMPLE_COND after finding a thread path for NAME.
2072         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
2073         nontrivial conditions to be handled by FSM threader.
2074         (thread_through_normal_block): Extract the name to looup via
2075         FSM threader from COND_EXPR.
2077         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
2078         restriction that traced SSA_NAME is a user variable.
2080 2015-10-12  Tom de Vries  <tom@codesourcery.com>
2082         PR tree-optimization/67476
2083         * omp-low.c (expand_omp_for_generic): Add missing phis.
2085 2015-10-12  Tom de Vries  <tom@codesourcery.com>
2087         PR tree-optimization/67476
2088         * omp-low.c (expand_omp_for_generic): Handle simple latch.
2090 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
2092         * config/aarch64/aarch64-simd-builtins.def: Update builtins
2093         tables: add tbl3 and tbx4.
2094         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
2095         (aarch64_tbx4v8qi): New.
2096         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
2097         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
2098         Rewrite using builtin functions.
2099         * config/aarch64/iterators.md (UNSPEC_TBX): New.
2101 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
2103         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
2104         ROUND_UP macro.
2105         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
2106         Use ROUND_UP and ROUND_DOWN macros where applicable.
2107         (rs6000_darwin64_record_arg_flush): Ditto.
2108         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
2109         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
2110         rounded_size.
2112 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
2114         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
2115         (AARCH64_ROUND_DOWN): Ditto.
2116         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
2118 2015-10-12  Richard Biener  <rguenther@suse.de>
2120         PR ipa/67783
2121         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
2122         code that analyzes IVs on each stmt but in a cheaper way avoiding
2123         quadratic behavior.
2125 2015-10-12  Nick Clifton  <nickc@redhat.com>
2127         * config/msp430/msp430.c (msp430_mcu_names): Rename to
2128         msp430_mcu_data, add fields for ISA and hardware multiply
2129         support.  Import latest data from the devices.csv file.
2130         (msp430_override_option): Use the data from the new array.
2131         (msp430_use_f5_series_hwmult): Likewise.
2132         (use_32bit_hwmult): Likewise.
2133         (msp430_no_hwmult): Likewise.
2134         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
2135         MCU names.
2136         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
2137         not recognised then no hardware multiply support is assumed and
2138         that only the MSP430 ISA is allowed.
2140 2015-10-12  Richard Biener  <rguenther@suse.de>
2142         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
2143         related code ...
2144         (vect_analyze_loop_2): ... here.
2146 2015-10-11  Jason Merrill  <jason@redhat.com>
2148         PR c++/67557
2149         * expr.c (store_field): Call store_constructor directly when
2150         storing a CONSTRUCTOR into a target smaller than its type.
2151         Guard against unsafe bitwise copy.
2153 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2155         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
2156         counts when these are more informative.
2158 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2160         * tree-profile.c (tree_profiling): Do not clear
2161         pure/const when not instrumenting.
2162         (pass tree_profile): Add dump of symtab.
2164 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2166         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
2167         addresses.
2168         (fold_addr_of_array_ref_difference): Likewise.
2170 2015-10-11  Jeff Law  <law@redhat.com>
2172         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
2173         tree-ssa-threadbackward.c.
2174         (fsm_find_control_statement_thread_paths): Likewise.
2175         (thread_through_normal_block): Break out FSM bits and move them
2176         into a new function in tree-ssa-threadbackward.c.  Call new function
2177         instead.
2178         Minimize header file usage.
2179         * tree-ssa-threadbackward.h: New file.
2180         * tree-ssa-threadbackward.c: Likewise.
2181         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
2183 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
2185         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
2187 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
2189         PR rtl-optimization/67864
2190         * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
2191         fallthrough edges for conditional jumps.  Don't sort candidate
2192         edges if not optimizing for speed.
2194 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2196         * defaults.h (REVERSE_CONDITION): New default definition.
2197         * jump.c (reversed_comparison_code_parts): Adjust.
2199 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2201         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
2202         check HARD_FRAME_POINTER_IS_ARG_POINTER.
2204 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2206         * defaults.h (FRAME_ADDR_RTX): New default definition.
2207         * builtins.c (expand_builtin_return_addr): Adjust.
2209 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2211         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
2212         * builtins.c (expand_builtin_return_addr): Adjust.
2214 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2216         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
2217         * builtins.c (expand_builtin_return_addr): Adjust.
2218         * doc/tm.texi: Likewise.
2219         * doc/tm.texi.in: Likewise.
2220         * except.c (expand_builtin_unwind_init): Likewise.
2222 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2224         * builtins.c (expand_builtin_return_addr): Adjust.
2225         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
2227 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
2229         * tree.c (type_with_interoperable_signedness): New.
2230         (gimple_canonical_types_compatible_p): Use it.
2231         * tree.h (type_with_interoperable_signedness): Declare
2233 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
2235         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
2236         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
2237         when OEP_ADDRESS_OF is se.
2239 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
2240             Sebastian Pop  <s.pop@samsung.com>
2242         * graphite-dependences.c (scop_get_dependences): Add dump of the
2243         data dependence graph.
2244         * graphite-poly.c (print_isl_union_map): New.
2245         (debug_isl_union_map): New.
2246         * graphite-poly.h (print_isl_union_map): Declare.
2247         (debug_isl_union_map): Declare.
2249 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
2250             Sebastian Pop  <s.pop@samsung.com>
2252         * graphite-poly.c (print_iteration_domain): Remove verbosity.
2253         Remove OpenScop formatting.
2254         (print_iteration_domains): Same.
2255         (debug_iteration_domain): Same.
2256         (debug_iteration_domains): Same.
2257         (print_pdr): Same.
2258         (debug_pdr): Same.
2259         (dump_gbb_cases): Same.
2260         (dump_gbb_conditions): Same.
2261         (print_pdrs): Same.
2262         (debug_pdrs): Same.
2263         (print_pbb_body): Same.
2264         (print_pbb): Same.
2265         (print_scop_params): Same.
2266         (print_scop_context): Same.
2267         (print_scop): Same.
2268         (debug_pbb_domain): Same.
2269         (debug_pbb): Same.
2270         (debug_scop_context): Same.
2271         (debug_scop): Same.
2272         (debug_scop_params): Same.
2273         * graphite-poly.h: Same.
2274         * graphite.c (graphite_transform_loops): Same.
2276 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2278         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
2279         call that isn't needed.
2281 2015-10-09  Jeff Law  <law@redhat.com>
2283         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
2284         rather than moving each name to the freelist individually.
2286 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
2288         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
2289         * frame-header-opt.c: New file.
2290         * config/mips/mips-proto.h (mips_register_frame_header_opt):
2291         Add prototype.
2292         * config/mips/mips.c (mips_compute_frame_info): Check
2293         optimize_call_stack flag.
2294         (mips_option_override): Register new frame_header_opt pass.
2295         (mips_frame_info, mips_int_mask, mips_shadow_set,
2296         machine_function): Move these types to...
2297         * config/mips/mips.h: here.
2298         (machine_function): Add does_not_use_frame_header and
2299         optimize_call_stack fields.
2300         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
2301         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
2302         Document new flags.
2303         * config/mips/mips.opt (mframe-header-opt): Add new option.
2305 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
2307         * config/i386/i386.c
2308         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
2309         ROUND_DOWN where applicable.
2311 2015-10-09  Jeff Law  <law@redhat.com>
2313         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
2314         correct statement.
2316 2015-10-09  Renlin Li  <renlin.li@arm.com>
2318         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
2319         operands[0] and operands[2].
2320         (neon_vtrn<mode>_insn): Likewise.
2321         (neon_vzip<mode>_insn): Likewise.
2323 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2325         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
2326         ((X & C2) << C1): Expand to...
2327         (X {&,^,|} C2 << C1): ...This.
2328         ((X & C2) >> C1): Expand to...
2329         (X {&,^,|} C2 >> C1): ...This.
2331 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
2333         PR target/67895
2334         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
2335         Adjust embedded rounding/SAE specifier position.
2336         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
2337         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
2338         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
2339         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
2340         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2341         Likewise.
2342         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
2344 2015-10-09  Martin Jambor  <mjambor@suse.cz>
2346         tree-optimization/67794
2347         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
2348         between types of state,ents but accept original definitions as a
2349         parameter.
2350         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
2351         iterate over definitions.
2353 2015-10-09  James Norris  <jnorris@codesourcery.com>
2355         * config/rs6000/rs6000.c (rs6000_offload_options): New.
2356         (TARGET_OFFLOAD_OPTIONS): New.
2358 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
2360         PR middle-end/67891
2361         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
2363         PR middle-end/67766
2364         * function.c (expand_function_end): Move return value
2365         promotion past the handling of PARALLELs and CONCATs.
2367         PR rtl-optimization/67828
2368         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
2369         (tree_may_unswitch_on): Don't unswitch on expressions
2370         involving undefined values.
2372 2015-10-09  Richard Biener  <rguenther@suse.de>
2374         * genmatch.c (print_operand): Fix formatting.
2375         (dt_node::append_simplify): Warn for multiple simplifiers
2376         that match the same pattern.
2377         * match.pd (log (exp @0)): Remove duplicates.
2379 2015-10-09  Richard Biener  <rguenth@suse.de>
2381         PR target/67366
2382         * gimple-fold.c (optabs-query.h): Include
2383         (gimple_fold_builtin_memory_op): Allow unaligned stores
2384         when movmisalign_optabs are available.
2386 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2388         PR target/67366
2389         * config/arm/arm.md (movmisalign<mode>): New.
2390         * config/arm/iterators.md (HSI): New.
2392 2015-10-09  Richard Biener  <rguenther@suse.de>
2394         PR tree-optimization/67891
2395         * gimple-match.h (gimple_simplified_result_is_gimple_val):
2396         New helper.
2397         (gimple_resimplify1): Declare.
2398         (gimple_resimplify2): Likewise.
2399         (gimple_resimplify3): Likewise.
2400         * gimple-match-head.c (gimple_resimplify1): Export.
2401         (gimple_resimplify2): Likewise.
2402         (gimple_resimplify3): Likewise.
2403         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
2404         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2405         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
2406         to avoid creating stmts without VN info.
2408 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
2410         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
2411         of availability.
2413 2015-10-08  Jeff Law  <law@redhat.com>
2415         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
2416         and release_ssa_name in two places.
2417         (gimple_stringop_fixed_value): Similarly.
2419         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
2420         release_defs.
2422         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
2423         unlink_stmt_vdef and release_ssa_name_fn.
2425         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
2426         release_defs.
2428 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
2430         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
2431         SSE register save area to 16 bytes only if the incoming stack
2432         boundary is no less than 16 bytes.
2434 2015-10-08  Jeff Law  <law@redhat.com>
2436         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
2437         release_ssa_name.  Fix typo in comment.
2439 2015-10-08  Nathan Sidwell  <nathan@acm.org>
2441         * config/nvptx/nvptx.h (struct machine_function): Add comment.
2442         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
2443         may return pointer as well as in memory.
2444         (nvptx_output_return): Likewise.
2446 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
2448         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
2449         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
2450         * match.pd: Add rules previously handled by fold_builtin_sqrt
2451         and fold_builtin_cbrt.
2453 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
2455         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
2456         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
2457         * fold-const.h (tree_unary_nonnegative_warnv_p)
2458         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2459         (tree_expr_nonnegative_warnv_p): Add depth parameters.
2460         * fold-const.c: Include gimple-fold.h and params.h.
2461         (tree_ssa_name_nonnegative_warnv_p): New function.
2462         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
2463         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2464         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
2465         Add a depth parameter and increment it for recursive calls to
2466         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
2467         to handle SSA names.
2468         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
2469         (gimple_stmt_nonnegative_warnv_p): Declare.
2470         * tree-vrp.c (remove_range_assertions): Remove assert that condition
2471         cannot be proven false.
2472         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
2473         (gimple_stmt_nonnegative_warnv_p): Move to...
2474         * gimple-fold.c: ...here.  Add depth parameters and pass them
2475         down to the tree routines.  Accept statements that aren't
2476         assignments or calls but just return false for them.
2477         (gimple_val_nonnegative_real_p): Delete.
2478         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
2479         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
2480         Check HONOR_NANs first.
2482 2015-10-08  Martin Jambor  <mjambor@suse.cz>
2484         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
2485         unnecessary MIN.
2487 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
2489         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
2490         in the tail of outer-loop.
2492 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
2494         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
2495         return UI_NONE.
2497 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
2499         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
2500         "cfghooks.h", add prototypes for introduced new functions.
2501         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
2502         checks on ability of loop unswitching to tree_unswitch_single_loop;
2503         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
2504         on innermost loop check.
2505         (tree_unswitch_single_loop): Add all required checks on ability of
2506         loop unswitching under zero recursive level guard.
2507         (tree_unswitch_outer_loop): New function.
2508         (find_loop_guard): Likewise.
2509         (empty_bb_without_guard_p): Likewise.
2510         (used_outside_loop_p): Likewise.
2511         (get_vop_from_header): Likewise.
2512         (hoist_guard): Likewise.
2513         (check_exit_phi): Likewise.
2515 2015-10-08  Marek Polacek  <polacek@redhat.com>
2517         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
2518         ops element.
2520 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2522         PR c/65345
2523         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
2524         create_tmp_var_raw instead of create_tmp_var.
2526 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
2528         * expr.c (store_expr_with_bounds): Handle aggregate moves from
2529         BLKmode.
2530         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
2531         to define gimple type system; compare aggregates only by size.
2533 2015-10-07  Jeff Law  <law@redhat.com>
2535         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
2536         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
2537         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
2538         unnecessarily.
2540 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2541             Sebastian Pop  <s.pop@samsung.com>
2543         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
2544         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
2545         (generate_isl_schedule): Same.
2546         * graphite-optimize-isl.c (scop_get_domains): Same.
2547         (apply_schedule_map_to_scop): Same.
2548         * graphite-poly.c (print_iteration_domains): Same.
2549         (remove_gbbs_in_scop): Same.
2550         (new_scop): Same.
2551         (free_scop): Same.
2552         (print_scop): Same.
2553         * graphite-poly.h (struct scop): Rename bbs to pbbs.
2554         (SCOP_BBS): Remove.
2555         * graphite-scop-detection.c (compare_bb_depths): Remove.
2556         (graphite_sort_dominated_info): Remove.
2557         (try_generate_gimple_bb): Move out of scop_detection.
2558         (all_non_dominated_preds_marked_p): Remove.
2559         (build_scop_bbs_1): Remove.
2560         (build_scop_bbs): Remove.
2561         (nb_pbbs_in_loops): Do not use SCOP_BBS.
2562         (find_scop_parameters): Same.
2563         (sese_dom_walker): Rename gather_bbs.
2564         (before_dom_children): Call try_generate_gimple_bb and collect gbb
2565         and pbb.
2566         (build_scops): Call gather_bbs.
2567         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
2568         (add_conditions_to_constraints): Same.
2569         (build_scop_iteration_domain): Same.
2570         (build_scop_drs): Same.
2571         (new_pbb_from_pbb): Same.
2572         * sese.c (new_sese_info): Create bbs.
2573         * sese.h (struct sese_info_t): Add bbs.
2575 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
2577         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
2578         encoding in 64-bit mode.
2580 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
2582         PR target/66697
2583         * config/i386/i386.c (ix86_option_override_internal): Always use
2584         8-byte minimum stack boundary in 64-bit mode.
2585         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
2586         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
2587         Add a REG_CFA_EXPRESSION note if needed.
2588         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
2589         (ix86_handle_force_align_arg_pointer_attribute): New.
2590         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
2591         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
2592         with ix86_handle_force_align_arg_pointer_attribute.
2593         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
2595 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2596             Sebastian Pop  <s.pop@samsung.com>
2598         * graphite-scop-detection.c (parameter_index_in_region): Remove
2599         use of SESE_ADD_PARAMS.
2600         (find_scop_parameters): Same.
2601         * sese.c (new_sese_info): Same.
2602         * sese.h (struct sese_info_t): Remove add_params.
2603         (SESE_ADD_PARAMS): Remove.
2605 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2606             Sebastian Pop  <s.pop@samsung.com>
2608         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
2609         an sese_info_p.
2610         (copy_def): Same.
2611         (copy_internal_parameters): Same.
2612         (translate_isl_ast_to_gimple): Use an sese_l.
2613         (build_iv_mapping): Same.
2614         * graphite-poly.c (new_sese): Rename new_sese_info.
2615         (free_sese): Rename free_sese_info.
2616         * graphite-poly.h (struct scop): Use an sese_info_p.
2617         (scop_set_region): Same.
2618         * graphite-scop-detection.c (struct sese_l): Moved...
2619         (get_entry_bb): Moved...
2620         (get_exit_bb): Moved...
2621         (parameter_index_in_region_1): Use an sese_info_p.
2622         (parameter_index_in_region): Same.
2623         (scan_tree_for_params): Same.
2624         (find_params_in_bb): Same.
2625         (sese_dom_walker): Use an sese_l.
2626         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
2627         (reduction_phi_p): Same.
2628         (parameter_index_in_region_1): Use an sese_info_p.
2629         (propagate_expr_outside_region): Use an sese_l.
2630         * graphite.c: Replace uses of SCOP_REGION.
2631         * sese.c (sese_record_loop): Use an sese_info_p.
2632         (build_sese_loop_nests): Same.
2633         (sese_build_liveouts_use): Same.
2634         (sese_build_liveouts_bb): Same.
2635         (sese_build_liveouts_bb): Same.
2636         (sese_bad_liveouts_use): Same.
2637         (sese_reset_debug_liveouts_bb): Same.
2638         (sese_build_liveouts): Same.
2639         (new_sese): Renamed new_sese_info.
2640         (free_sese): Renamed free_sese_info.
2641         (set_rename): Use an sese_info_p.
2642         (graphite_copy_stmts_from_block): Same.
2643         (copy_bb_and_scalar_dependences): Same.
2644         (outermost_loop_in_sese_1): Use an sese_l.
2645         (outermost_loop_in_sese): Same.
2646         (if_region_set_false_region): Use an sese_info_p.
2647         (move_sese_in_condition): Same.
2648         (scalar_evolution_in_region): Use an sese_l.
2649         * sese.h (struct sese_l): ... here.
2650         (SESE_ENTRY): Remove.
2651         (SESE_ENTRY_BB): Remove.
2652         (SESE_EXIT): Remove.
2653         (SESE_EXIT_BB): Remove.
2654         (sese_contains_loop): Use an sese_info_p.
2655         (sese_nb_params): Same.
2656         (bb_in_sese_p): Use an sese_l.
2657         (stmt_in_sese_p): Same.
2658         (defined_in_sese_p): Same.
2659         (loop_in_sese_p): Same.
2660         (sese_loop_depth): Same.
2661         (struct ifsese_s): Use an sese_info_p.
2662         (gbb_loop_at_index): Use an sese_l.
2663         (nb_common_loops): Same.
2664         (scev_analyzable_p): Same.
2666 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2668         * config/i386/i386.c (ix86_conditional_register_usage): Use
2669         CALL_USED_REGISTERS_MASK.
2670         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
2672 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2674         PR bootstrap/67385
2675         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
2676         * configure: Regenerated.
2678 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2680         PR target/67850
2681         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
2682         (ix86_set_current_function): This.
2683         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
2685 2015-10-07  Richard Biener  <rguenther@suse.de>
2687         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
2688         (vinfo_for_stmt): Adjust.
2689         (set_vinfo_for_stmt): Likewise.
2690         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
2691         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
2692         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
2693         of inner loop.
2694         (vect_analyze_loop_1): Remove.
2695         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
2696         inner loop when vectorizing an outer loop by splitting out from ...
2697         (vect_analyze_loop_form): ... here.
2699 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2701         PR c/65345
2702         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
2703         Use create_tmp_var_raw instead of create_tmp_var.
2705 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
2707         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
2708         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
2709         * real.c (CACHED_FRACTION): New helper macro.
2710         (dconst_third_ptr): Use it.
2711         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
2712         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
2713         dconst_sixth.
2714         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
2716 2015-10-06  Jeff Law  <law@redhat.com>
2718         PR tree-optimization/67816
2719         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
2720         from remove_jump_threads_starting_at.  Accept an edge rather than
2721         a basic block.
2722         * tree-ssa-threadupdate.c (removed_edges): New hash table.
2723         (remove_jump_threads_including): Note edges that get removed from
2724         the CFG for later pruning of jump threading paths including them.
2725         (thread_through_all_blocks): Remove paths which include edges that
2726         have been removed.
2727         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
2728         on each outgoing edges when optimizing away a control statement.
2730 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2732         * reorg.c (emit_delay_sequence): Store list of delay slot insns
2733         in a vector instead of rtx_insn_list.
2734         (add_to_delay_list): Likewise.
2735         (delete_from_delay_slot): Likewise.
2736         (optimize_skip): Likewise.
2737         (redirect_with_delay_list_safe_p): Likewise.
2738         (check_annul_list_true_false): Likewise.
2739         (steal_delay_list_from_target): Likewise.
2740         (steal_delay_list_from_fallthrough): Likewise.
2741         (redundant_insn): Likewise.
2742         (fill_simple_delay_slots): Likewise.
2743         (fill_slots_from_thread): Likewise.
2744         (fill_eager_delay_slots): Likewise.
2745         (relax_delay_slots): Likewise.
2747 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
2749         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
2750         For -mgpopt=local, also exclude unintialized common symbols.
2751         * doc/invoke.texi (Nios II Options): Document the change.
2753 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
2755         * config/aarch64/iterators.md (vwcore): Add missing cases for
2756          V4HF/V8HF modes.
2758 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2759             Sebastian Pop  <s.pop@samsung.com>
2761         * graphite-poly.c (new_scop): Initialize drs.
2762         * graphite-poly.h (struct dr_info): New.
2763         (struct scop): Add drs.
2764         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
2765         (pdr_add_memory_accesses): Same.
2766         (build_poly_dr): Same.
2767         (build_alias_set): Same.
2768         (build_scop_drs): Same.
2769         (build_pbb_drs): Remove.
2770         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
2771         * tree-data-ref.h (data_reference): Remove alias_set.
2773 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2774             Sebastian Pop  <s.pop@samsung.com>
2776         * graphite-poly.c (free_data_refs_aux): Remove.
2777         (free_gimple_poly_bb): Do not call free_data_refs_aux.
2778         * graphite-poly.h (struct base_alias_pair): Remove.
2779         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
2780         base_alias_pair and dr->aux.
2781         (build_alias_set): Same.
2782         * tree-data-ref.c (create_data_ref): Initialize alias_set.
2783         * tree-data-ref.h (data_reference): Add alias_set.
2785 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2786             Sebastian Pop  <s.pop@samsung.com>
2788         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
2789         Do not set PDR_BASE_OBJECT_SET.
2790         * graphite-poly.h (poly_dr): Same.
2791         (PDR_BASE_OBJECT_SET): Remove.
2792         (new_poly_dr): Update decl.
2793         * graphite-sese-to-poly.c (build_poly_dr): Update call to
2794         new_poly_dr.
2795         (write_alias_graph_to_ascii_dimacs): Remove.
2796         (write_alias_graph_to_ascii_dot): Remove.
2797         (write_alias_graph_to_ascii_ecc): Remove.
2798         (dr_same_base_object_p): Remove.
2799         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
2800         code.
2801         (build_base_obj_set_for_drs): Remove.
2802         (dump_alias_graphs): Remove.
2803         (build_scop_drs): Remove dead code.
2805 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2806             Peter Bergner  <bergner@vnet.ibm.com>
2808         PR target/67808
2809         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
2810         allow registers, but provide insns for the combiner to create for
2811         loads from memory. Separate VSX code from non-VSX code. For
2812         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
2813         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
2814         so that registers come before memory operations. Drop support from
2815         converting DFmode to TFmode, if the DFmode value is in a GPR
2816         register.
2817         (extenddftf2_fprs): Likewise.
2818         (extenddftf2_internal): Likewise.
2819         (extenddftf2_vsx): Likewise.
2820         (extendsftf2): In the expander, only allow registers, but provide
2821         insns for the combiner to create for stores and loads.
2823 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2825         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
2826         from the decl parameter.
2828 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
2830         PR 67861
2831         * gimple-fold.c (gimple_fold_builtin): Add break after
2832         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
2834 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2836         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
2837         to scop->isl_context.
2839 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2841         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
2842         (output_probe_stack_range): Rotate the loop and simplify.
2843         (thumb1_expand_prologue): Tweak sorry message.
2844         * config/arm/arm.md (probe_stack): Use bare string.
2846 2015-10-06  Nick Clifton  <nickc@redhat.com>
2848         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
2850 2015-10-06  Nick Clifton  <nickc@redhat.com>
2852         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
2853         (ATTR_PERSIST): New constant.
2854         (msp430_data_attr): New function - verifies an attribute that only
2855         applies to variables.
2856         (msp430_attributes): Add noinit and persistent attributes.
2857         (noinit_section): New variable.
2858         (presis_section): New variable.
2859         (TARGET_ASM_INIT_SECTIONS): Define.
2860         (msp430_init_sections): New function - initialises the noinit and
2861         persist section variables.
2862         (msp430_select_section): Add support for noinit and persist
2863         attributes.
2864         (msp430_section_type_flags): Likewise.
2865         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
2866         and persistent attributes.
2868 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2869             Sebastian Pop  <s.pop@samsung.com>
2871         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
2872         (no_violations): Remove.
2873         (subtract_commutative_associative_deps): Remove.
2874         (compute_deps): Do not call subtract_commutative_associative_deps.
2875         (transform_is_safe): Remove.
2876         (graphite_legal_transform): Remove.
2877         * graphite-poly.h (graphite_legal_transform): Remove.
2879 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
2881         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
2882         which are in this region are passed so gcc_assert and remove redundant
2883         computation.
2884         * sese.c (sese_build_liveouts): Pass only those bbs which are not
2885         in region.
2886         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
2887         gcc_assert on that and remove unnecessary computation.
2888         (sese_build_liveouts_use): Same.
2890 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2892         * graphite-dependences.c (scop_get_reads): Renamed scop->context
2893         to scop->param_context.
2894         (scop_get_must_writes): Same.
2895         (scop_get_may_writes): Same.
2896         (scop_get_original_schedule): Same.
2897         (scop_get_transformed_schedule): Same.
2898         (subtract_commutative_associative_deps): Same.
2899         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
2900         (generate_isl_context): Same.
2901         (generate_isl_schedule): Same.
2902         (scop_to_isl_ast): Same.
2903         (graphite_regenerate_ast_isl): Same.
2904         * graphite-optimize-isl.c (scop_get_domains): Same.
2905         (optimize_isl): Renamed scop->context to scop->param_context.
2906         * graphite-poly.c (new_poly_bb): Change the type of argument to
2907         gimple_poly_bb_p.
2908         (new_scop): Renamed scop->context to scop->param_context.
2909         (free_scop): Same.
2910         (print_scop_context): Same.
2911         * graphite-poly.h (new_poly_dr): Change the type of argument from
2912         void* to data_reference_p.
2913         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
2914         (new_poly_bb): Change the type of argument from void* to
2915         gimple_poly_bb_p.
2916         (pbb_set_black_box): Same.
2917         (struct scop): Rename context to param_context, ctx to isl_context.
2918         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
2919         Move declarations closer to assignment.
2920         (find_params_in_bb): Same.
2921         (find_scop_parameters): Same.
2922         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
2923         Global to be used for statement IDs.
2924         (isl_id_for_pbb): Use ssa_name_version_typesize.
2925         (simple_copy_phi_p): Move declarations closer to assignment.
2926         (build_pbb_scattering_polyhedrons): Same.
2927         (build_scop_scattering): Same.
2928         (isl_id_for_ssa_name): Same.
2929         (extract_affine_name): Same.
2930         (extract_affine_int): Same.
2931         (extract_affine): Same.
2932         (set_scop_parameter_dim): Use renamed member.
2933         (build_loop_iteration_domains): Same.
2934         (add_param_constraints): Same.
2935         (build_scop_iteration_domain): Same.
2936         (pdr_add_data_dimensions): Same.
2937         (build_poly_dr): Same.
2938         (build_scop_drs): Move declarations closer to assignment.
2939         (analyze_drs_in_stmts): Same.
2940         (insert_out_of_ssa_copy): Same.
2941         (insert_out_of_ssa_copy_on_edge): Same.
2942         (propagate_expr_outside_region): Same.
2943         (rewrite_phi_out_of_ssa): Same.
2944         (rewrite_degenerate_phi): Same.
2945         (rewrite_reductions_out_of_ssa): Same.
2946         (rewrite_cross_bb_scalar_dependence): Same.
2947         (handle_scalar_deps_crossing_scop_limits): Same.
2948         (rewrite_cross_bb_scalar_deps): Same.
2949         * graphite.c (graphite_transform_loops): Use renamed member.
2951 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
2953         PR c/65345
2954         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
2955         create_tmp_var_raw instead of create_tmp_var.
2957 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2959         PR c/65345
2960         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
2961         Use create_tmp_var_raw instead of create_tmp_var.
2963 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
2965         PR target/67849
2966         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
2967         split for upper-bank registers when target does not support
2968         AVX512VL.
2969         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
2970         split when target does not support AVX512VL.
2972 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
2974         PR c/65345
2975         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
2976         Adjust to use create_tmp_var_raw instead of create_tmp_var.
2978 2015-10-06  Nick Clifton  <nickc@redhat.com>
2980         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
2981         multiplication.
2983 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
2985         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
2986         (case ${target}): Add znver1.
2987         * config/i386/cpuid.h(bit_CLZERO):  Define.
2988         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2989         -march=native recognize znver1 processors.
2990         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2991         znver1, clzero def_and_undef.
2992         * config/i386/i386.c (struct processor_costs znver1_cost): New.
2993         (m_znver1): New definition.
2994         (m_AMD_MULTIPLE): Includes m_znver1.
2995         (processor_target_table): Add znver1 entry.
2996         (ix86_target_string) : Add clzero entry.
2997         (static const char *const cpu_names): Add znver1 entry.
2998         (ix86_option_override_internal): Add znver1 instruction sets.
2999         (PTA_CLZERO) :  New definition.
3000         (ix86_option_override_internal): Handle new clzerooption.
3001         (ix86_issue_rate): Add znver1.
3002         (ix86_adjust_cost): Add znver1.
3003         (ia32_multipass_dfa_lookahead): Add znver1.
3004         (has_dispatch): Add znver1.
3005         * config/i386/i386.h (TARGET_znver1): New definition.
3006         (TARGET_CLZERO): Define.
3007         (TARGET_CLZERO_P): Define.
3008         (struct ix86_size_cost): Add TARGET_ZNVER1.
3009         (enum processor_type): Add PROCESSOR_znver1.
3010         * config/i386/i386.md (define_attr "cpu"): Add znver1.
3011         (set_attr znver1_decode): New definitions for znver1.
3012         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
3013         (mclzero): New.
3014         * config/i386/mmx.md (set_attr znver1_decode): New definitions
3015         for znver1.
3016         * config/i386/sse.md (set_attr znver1_decode): Likewise.
3017         * config/i386/x86-tune.def:  Add znver1 tunings.
3018         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
3019         * gcc/doc/invoke.texi: Add details about znver1
3021 2015-10-06  Richard Biener  <rguenther@suse.de>
3023         PR tree-optimization/67859
3024         * tree-ssa-pre.c (create_expression_by_pieces): Properly
3025         discard not inserted stmts.
3027 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
3029         * doc/extend.texi (Template Instantiation): Reorder options and
3030         de-emphasize -frepo.
3031         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
3032         example instead of -frepo.
3034 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3036         PR c/65345
3037         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
3038         use create_tmp_var_raw rather than create_tmp_var.
3040 2015-10-06  Richard Biener  <rguenther@suse.de>
3042         * tree-vectorizer.h (vec_info): New base class for...
3043         (_loop_vec_info): ... this and ...
3044         (_bb_vec_info): ... this.
3045         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
3046         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
3047         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
3048         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
3049         vect_destroy_datarefs): Adjust interface to take a vec_info *
3050         rather than both a loop_vec_info and a bb_vec_info argument.
3051         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
3052         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
3053         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
3054         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
3055         accordingly.
3056         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
3057         (destroy_loop_vec_info, vect_analyze_loop_2,
3058         vect_is_simple_reduction_1, get_initial_def_for_induction,
3059         vect_create_epilog_for_reduction, vectorizable_reduction,
3060         vectorizable_live_operation, vect_transform_loop): Adjust.
3061         * tree-vect-patterns.c (type_conversion_p,
3062         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
3063         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
3064         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
3065         check_bool_pattern, vect_recog_bool_pattern,
3066         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
3067         * tree-vect-slp.c (vect_get_and_check_slp_defs,
3068         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
3069         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
3070         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
3071         (new_bb_vec_info): Initialize base classs.
3072         * tree-vect-stmts.c (record_stmt_cost, process_use,
3073         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
3074         vectorizable_mask_load_store, vectorizable_call,
3075         vectorizable_simd_clone_call, vectorizable_conversion,
3076         vectorizable_assignment, vectorizable_shift,
3077         vectorizable_operation, vectorizable_store,
3078         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
3079         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
3080         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
3082 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
3084         PR c/65345
3085         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
3086         create_tmp_var_raw rather than create_tmp_var.
3088 2015-10-05  Marek Polacek  <polacek@redhat.com>
3090         * tree-ssa-loop-im.c
3091         (move_computations_dom_walker::before_dom_children): Don't set
3092         SSA_NAME_ANTI_RANGE_P.
3093         * tree-ssa-phiopt.c (value_replacement): Likewise.
3095 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
3096             Sebastian Pop  <s.pop@samsung.com>
3098         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
3100 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
3101             Sebastian Pop  <s.pop@samsung.com>
3103         * graphite-poly.c (new_gimple_poly_bb): ... here.
3104         (free_data_refs_aux): ... here.
3105         (free_gimple_poly_bb): ... here.
3106         (remove_gbbs_in_scop): ... here.
3107         (new_scop): Call new_sese.
3108         (free_scop): Call remove_gbbs_in_scop and free_sese.
3109         * graphite-poly.h (base_alias_pair): ... here.
3110         (new_gimple_poly_bb): Declare.
3111         (free_gimple_poly_bb): Declare.
3112         * graphite-scop-detection.c (parameter_index_in_region_1):
3113         (parameter_index_in_region): ... here.
3114         (scan_tree_for_params): ... here.
3115         (find_params_in_bb): ... here.
3116         (find_scop_parameters): ... here.
3117         (build_scops): Call find_scop_parameters.
3118         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
3119         (free_scops): Move...
3120         (single_pred_cond_non_loop_exit): Move...
3121         (sese_dom_walker::before_dom_children): Move...
3122         (sese_dom_walker::after_dom_children): Move...
3123         (build_poly_scop): Move...
3124         * graphite-sese-to-poly.h (base_alias_pair): Move...
3125         * graphite.c (free_scops): ... here.
3127 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
3128             Sebastian Pop  <s.pop@samsung.com>
3130         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
3131         (trivially_empty_bb_p): Move...
3132         (same_close_phi_node): Move...
3133         (new_gimple_poly_bb): Move...
3134         (compare_bb_depths): Move...
3135         (graphite_sort_dominated_info): Move...
3136         (remove_duplicate_close_phi): Move...
3137         (make_close_phi_nodes_unique): Move...
3138         (canonicalize_loop_closed_ssa): Move...
3139         (canonicalize_loop_closed_ssa_form): Move...
3140         (loop_ivs_can_be_represented): Move...
3141         (single_pred_cond_non_loop_exit): Move...
3142         (graphite_can_represent_init): Move...
3143         (graphite_can_represent_scev): Move...
3144         (stmt_has_simple_data_refs_p): Move...
3145         (stmt_has_side_effects):  Move...
3146         (graphite_can_represent_stmt): Move...
3147         (scop_detection): ... here.
3148         (sese_dom_walker): ... and here.
3149         (build_scops): Call all moved functions.
3150         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
3151         (all_non_dominated_preds_marked_p): Move...
3152         (build_scop_bbs_1): Move...
3153         (build_scop_bbs): Move...
3154         (set_scop_parameter_dim): Move...
3155         (nb_pbbs_in_loops): Move...
3156         (build_poly_scop): Do not call all the moved functions.
3158 2015-10-05  Martin Jambor  <mjambor@suse.cz>
3159             Jan Hubicka  <hubicka@ucw.cz>
3161         * ipa-cp.c (ipcp_alignment_lattice): New type.
3162         (ipcp_param_lattices): Use the above to represent alignment.
3163         (ipcp_alignment_lattice::print): New function.
3164         (print_all_lattices): Use it to print alignment information.
3165         (ipcp_alignment_lattice::top_p): New function.
3166         (ipcp_alignment_lattice::bottom_p): Likewise.
3167         (ipcp_alignment_lattice::set_to_bottom): Likewise.
3168         (ipcp_alignment_lattice::meet_with_1): Likewise.
3169         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
3170         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
3171         (initialize_node_lattices): Likewise.
3172         (propagate_alignment_accross_jump_function): Work with the new class
3173         for alignment lattices.
3174         (propagate_constants_accross_call): Pass only the alignment lattice to
3175         propagate_alignment_accross_jump_function.
3176         (ipcp_store_alignment_results): Work with the new class for alignment
3177         lattices.
3179 2015-10-05  Marek Polacek  <polacek@redhat.com>
3181         PR tree-optimization/67821
3182         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
3184 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
3186         PR other/65021
3187         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
3188         function to...
3189         (mkoffload_cleanup): ... this.  Adjust all users.
3190         (maybe_unlink): Look at save_temps and verbose flags instead of
3191         debug flag.
3192         (main): Parse "-save-temps" flag.
3193         (generate_target_descr_file, generate_target_offloadend_file)
3194         (generate_host_descr_file, prepare_target_image): Pass it on.
3195         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
3196         (mkoffload_cleanup): New function.
3197         (maybe_unlink): Look at save_temps and verbose flags instead of
3198         debug flag.
3199         (main): Instead of calling utils_cleanup, register atexit handler
3200         for mkoffload_cleanup.
3201         (main): Parse "-save-temps" flag.
3202         (compile_native, main): Pass it on.
3203         * lto-wrapper.c (compile_offload_image): Likewise.
3205 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3207         * gimple.h (gimple_op_ptr): Require a non const gimple *.
3208         (gimple_assign_lhs_ptr): Likewise.
3209         (gimple_assign_rhs1_ptr): Likewise.
3210         (gimple_assign_rhs2_ptr): Likewise.
3211         (gimple_assign_rhs3_ptr): Likewise.
3212         (gimple_call_lhs_ptr): Likewise.
3213         (gimple_call_fn_ptr): Likewise.
3214         (gimple_call_chain_ptr): Likewise.
3215                 (gimple_call_arg_ptr): Likewise.
3216                 (gimple_cond_lhs_ptr): Likewise.
3217         (gimple_cond_rhs_ptr): Likewise.
3218         (gimple_switch_index_ptr): Likewise.
3219         (gimple_return_retval_ptr): Likewise.
3221 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3223         * gimple.h (gimple_asm_input_op_ptr): Remove.
3224         (gimple_asm_output_op_ptr): Likewise.
3226 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3228         * gimple.h (gimple_location_ptr): Remove.
3229         * tree-vrp.c (check_all_array_refs): Adjust.
3231 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3233         * tree-ssa-operands.c (build_uses): store tree * instead of
3234         tree.
3235         (finalize_ssa_uses): Adjust.
3236         (append_use): Likewise.
3237         (verify_ssa_operands): Likewise.
3239 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3241         * real.h (build_real_truncate): Declare.
3242         * tree.c (build_real_truncate): New function.
3243         (strip_float_extensions): Use it.
3244         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
3245         (fold_builtin_hypot, fold_builtin_pow): Likewise.
3246         * match.pd: Likewise.
3248 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
3249            Jiong Wang  <jiong.wang@arm.com>
3251         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
3253 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3255         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
3256         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
3257         (aarch64_print_operand, aarch64_float_const_representable_p)
3258         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
3259         instead of REAL_VALUE_FROM_CONST_DOUBLE.
3260         * config/arc/arc.c (arc_print_operand): Likewise.
3261         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
3262         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
3263         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
3264         Likewise.
3265         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
3266         (consttable_16): Likewise.
3267         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
3268         * config/avr/avr.c (avr_print_operand): Likewise.
3269         * config/bfin/bfin.md: Likewise (in a define_split).
3270         * config/c6x/c6x.md: Likewise (in a define_split).
3271         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
3272         (cr16_print_operand): Likewise.
3273         * config/cris/cris.c (cris_print_operand): Likewise.
3274         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
3275         * config/fr30/fr30.c (fr30_print_operand): Likewise.
3276         (fr30_const_double_is_zero): Likewise.
3277         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
3278         * config/frv/frv.md: Likewise (in a define_split).
3279         * config/frv/predicates.md (int_2word_operand): Likewise.
3280         * config/h8300/h8300.c (h8300_print_operand): Likewise.
3281         * config/i386/i386.c (standard_80387_constant_p): Likewise.
3282         (ix86_print_operand, ix86_split_to_parts): Likewise.
3283         * config/i386/i386.md: Likewise (in a define_split).
3284         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
3285         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
3286         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
3287         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
3288         (print_operand): Likewise.
3289         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
3290         * config/mep/mep.md: Likewise (in define_split).
3291         * config/microblaze/microblaze.c (microblaze_const_double_ok)
3292         (print_operand): Likewise.
3293         * config/mips/mips.md (consttable_float): Likewise.
3294         * config/mmix/mmix.c (mmix_intval): Likewise.
3295         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
3296         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
3297         * config/pa/pa.c (pa_singlemove_string): Likewise.
3298         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
3299         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
3300         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
3301         (output_toc): Likewise.
3302         * config/rs6000/rs6000.md: Likewise (in define_splits).
3303         * config/rx/rx.c (rx_print_operand): Likewise.
3304         * config/s390/s390.c (s390_output_pool_entry): Likewise.
3305         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3306         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
3307         (and also in define_splits).
3308         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
3309         (fp_high_losum_p): Likewise.
3310         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
3311         (*movsf_high): Likewise.
3312         * config/spu/spu.c (const_double_to_hwint): Likewise.
3313         * config/v850/v850.c (const_double_split): Likewise.
3314         * config/vax/vax.c (vax_float_literal): Likewise.
3315         * config/visium/visium.c (visium_expand_copysign): Likewise.
3316         * config/visium/visium.md: Likewise (in define_split).
3317         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3318         * config/xtensa/xtensa.c (print_operand): Likewise.
3319         (xtensa_output_literal): Likewise.
3320         * cprop.c (implicit_set_cond_p): Likewise.
3321         * dwarf2out.c (insert_float): Likewise.
3322         * expmed.c (expand_mult, make_tree): Likewise.
3323         * expr.c (compress_float_constant): Likewise.
3324         * rtlanal.c (split_double): Likewise.
3325         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3326         (simplify_const_unary_operation, simplify_binary_operation_1)
3327         (simplify_const_binary_operation): Likewise.
3328         (simplify_const_relational_operation): Likewise.
3329         * varasm.c (output_constant_pool_2): Likewise.
3331 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3333         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
3334         instead of CONST_DOUBLE_FROM_REAL_VALUE.
3335         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
3336         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
3337         instead of CONST_DOUBLE_FROM_REAL_VALUE.
3338         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
3339         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
3340         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
3341         (ix86_emit_swsqrtsf): Likewise.
3342         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
3343         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3344         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
3345         * config/pa/pa.c (pa_expand_builtin): Likewise.
3346         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
3347         (rs6000_scale_v2df): Likewise.
3348         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
3349         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
3350         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
3351         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
3352         (vec_ctul): Likewise.
3353         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
3354         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
3355         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
3356         * cse.c (fold_rtx): Likewise.
3357         * emit-rtl.c (immed_double_const): Likewise (in comments).
3358         (init_emit_once): Likewise.
3359         * expr.c (compress_float_constant, expand_expr_real_1)
3360         (const_vector_from_tree): Likewise.
3361         * optabs.c (expand_float, expand_fix): Likewise.
3362         * reg-stack.c (reg_to_stack): Likewise.
3363         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3364         (simplify_const_unary_operation, simplify_binary_operation_1)
3365         (simplify_const_binary_operation, simplify_relational_operation)
3366         (simplify_immed_subreg): Likewise.
3368 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3370         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
3371         * doc/tm.texi: Regenerate.
3372         * real.h (REAL_ARITHMETIC): Delete.
3373         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
3374         (ix86_expand_round_sse4): Use real_arithmetic instead of
3375         REAL_ARITHMETIC.
3376         * config/i386/sse.md (round<mode>2): Likewise.
3377         * rtl.h (rtx_to_tree_code): Likewise (in comment).
3378         * explow.c (rtx_to_tree_code): Likewise (in comment).
3379         * match.pd: Likewise.
3380         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3381         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3382         (expand_pow_as_sqrts): Likewise.
3383         * tree-pretty-print.c (dump_generic_node): Remove code that
3384         was conditional on REAL_ARITHMETIC being undefined.
3386 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3388         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
3389         * doc/tm.texi: Regenerate.
3390         * real.h (real_less): Declare.
3391         (REAL_VALUES_LESS): Delete.
3392         * real.c (real_less): New function.
3393         (real_compare): Use it.
3394         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
3395         of REAL_VALUES_LESS.
3396         * config/microblaze/microblaze.c (microblaze_const_double_ok):
3397         Likewise.
3398         * fold-const.c (fold_convert_const_int_from_real): Likewise.
3399         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3400         (simplify_const_relational_operation): Likewise.
3401         * tree-call-cdce.c (check_pow): Likewise.
3402         (gen_conditions_for_pow_cst_base): Likewise.
3404 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3406         * real.h (REAL_VALUES_IDENTICAL): Delete.
3407         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
3408         instead of REAL_VALUES_IDENTICAL.
3409         * fold-const.c (operand_equal_p): Likewise.
3410         * ipa-icf.c (sem_variable::equals): Likewise.
3411         * tree-complex.c (some_nonzerop): Likewise.
3412         (expand_complex_multiplication): Likewise.
3413         * tree.c (simple_cst_equal): Likewise.
3414         * varasm.c (compare_constant): Likewise.
3416 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3418         * real.h (real_equal): Declare.
3419         (REAL_VALUES_EQUAL): Delete.
3420         * real.c (real_equal): New function.
3421         (real_compare): Use it.
3422         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
3423         * doc/tm.texi: Regenerate.
3424         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
3425         real_equal instead of REAL_VALUES_EQUAL.
3426         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
3427         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
3428         (fp_const_from_val): Likewise.
3429         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
3430         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
3431         (floating_exact_log2): Likewise.
3432         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3433         * config/vax/vax.c (vax_float_literal): Likewise.
3434         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3435         * cprop.c (implicit_set_cond_p): Likewise.
3436         * expmed.c (expand_mult): Likewise.
3437         * fold-const.c (const_binop): Likewise.
3438         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3439         (simplify_const_binary_operation): Likewise.
3440         (simplify_const_relational_operation): Likewise.
3441         * tree-call-cdce.c (check_pow): Likewise.
3442         (gen_conditions_for_pow_cst_base): Likewise.
3443         * tree-inline.c (estimate_num_insns): Likewise.
3444         * tree-ssa-dom.c (record_equality): Likewise.
3445         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3446         (gimple_expand_builtin_pow): Likewise.
3447         (pass_optimize_widening_mul::execute): Likewise.
3448         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3449         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
3450         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
3452 2015-10-05  Richard Biener  <rguenther@suse.de>
3454         PR ipa/67783
3455         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
3456         consider loop header PHI defs as IVs.
3458 2015-10-05  Richard Biener  <rguenther@suse.de>
3460         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
3461         call handling ...
3462         (create_expression_by_pieces): ... here and build GIMPLE
3463         calls directly.  Use gimple_build API and avoid force_gimple_operand.
3464         (insert_into_preds_of_block): Simplify.
3465         (do_regular_insertion): Add comment.
3467 2015-10-04  Jason Merrill  <jason@redhat.com>
3469         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
3471 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
3473         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
3474         check for general register.
3475         (ix86_emit_save_regs): Ditto.
3476         (ix86_emit_save_regs_using_mov): Ditto.
3477         (ix86_emit_restore_regs_using_pop): Ditto.
3478         (ix86_emit_restore_regs_using_mov): Ditto.
3480 2015-10-03  Marek Polacek  <polacek@redhat.com>
3482         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
3483         (insn-dfatab.o): Likewise.
3485 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
3487         * config.gcc (xtensa*-*-uclinux*): New configuration.
3488         * config/xtensa/uclinux.h: New file.
3489         * config/xtensa/uclinux.opt: New file.
3491 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
3493         * doc/cpp.texi (Standard Predefined Macros): Document value of
3494         __cplusplus for C++14.
3496 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
3498         * gcc.c (process_command): Use spec_machine rather than
3499         spec_host_machine to build tooldir_prefix2.
3501 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
3502             Bernd Schmidt  <bernds@codesourcery.com>
3504         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
3505         (Token, Stmt): Remove structs.
3506         (decls, vars, fns): Remove variables.
3507         (alloc_comment, append_stmt, is_keyword): Remove macros.
3508         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
3509         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
3510         (parse_init, parse_file): Remove functions.
3511         (read_file): Accept a pointer to a length and store into it.
3512         (process): Don't try to parse the input file, just write it out as
3513         a string, but looking for maps.  Also write out the length.
3514         (main): Don't use "-S" to compile PTX code.
3516 2015-10-02  Jeff Law  <law@redhat.com>
3518         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
3519         fixups.
3521 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
3523         PR target/67822
3524         * config/nvptx/mkoffload.c (main): Scan the argument vector for
3525         -fopenmp, and skip generating an offloading image if specified.
3527 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
3529         * system.h (ROUND_UP): New macro definition.
3530         (ROUND_DOWN): Ditto.
3531         * ggc-page.c (ROUND_UP): Remove local macro definition.
3532         (PAGE_ALIGN): Implement using ROUND_UP macro.
3534         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
3535         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
3536         to align values.
3537         (ix86_compute_frame_layout): Ditto.
3538         (ix86_expand_prologue): Ditto.
3539         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
3540         to round down values.
3541         (expand_set_or_movmem_via_rep): Ditto.
3543 2015-10-02  Marek Polacek  <polacek@redhat.com>
3545         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
3547 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
3549         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
3550         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
3551         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
3552         (free_gimple_bb): Renamed free_gimple_poly_bb.
3553         (try_generate_gimple_bb): Hoist loop invariant code.
3554         (analyze_drs_in_stmts): Same.
3555         (build_scop_drs): Call renamed functions.
3556         (new_pbb_from_pbb): Same.
3557         (scop_ivs_can_be_represented): Delete as functionality now moved to
3558         graphite-scop-detection.c
3559         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
3561 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
3563         * graphite-scop-detection.c (stmt_has_side_effects): New function
3564           outlined from stmt_simple_for_scop_p.
3565         (graphite_can_represent_stmt): Same.
3566         (stmt_simple_for_scop_p): Moved code out of this function for better
3567         readability.
3569 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3571         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
3572         F_AVX512IFMA.
3573         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
3575 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3577         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
3579 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
3581         PR rtl-optimization/67756
3582         * lra-constraints.c (match_reload): Add a new parameter.  Use it
3583         for creating a pseudo with the same value.
3584         (curr_insn_transform): Pass a new argument to match_reload.
3586 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3588         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
3589         (expand_vec_perm_even_odd_1): Handle V64QImode.
3590         (ix86_expand_vec_perm_const_1): Try expansion with
3591         expand_vec_perm_even_odd_trunc as well.
3592         * config/i386/sse.md (VI124_AVX512F): Rename to ...
3593         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
3594         to V54QI.
3595         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
3596         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
3597         to V32HI and V16SI.
3598         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
3599         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
3600         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
3601         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
3602         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
3603         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
3605 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3607         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
3608         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
3610 2015-10-02  Jason Merrill  <jason@redhat.com>
3612         PR c/59218
3613         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
3614         (diagnose_tm_1_op): Also diagnose volatile accesses in
3615         transaction_safe function.
3617 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
3619         * system.h (malloc.h): Don't include obsolete header.
3621 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3623         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
3624         (TLS_SECTION_ASM_FLAG): Delete.
3626 2015-10-02  Marek Polacek  <polacek@redhat.com>
3628         PR c/64249
3629         * doc/invoke.texi: Document -Wduplicated-cond.
3630         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
3631         (insn-dfatab.o): Likewise.
3632         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
3633         warning.
3635 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
3637         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
3638         sequences.
3640 2015-10-02  Renlin Li  <renlin.li@arm.com>
3642         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
3644 2015-10-02  Renlin Li  <renlin.li@arm.com>
3646         PR target/66776
3647         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
3649 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3651         PR rtl-optimization/67786
3652         PR rtl-optimization/67787
3653         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
3654         it modifies a reg used in the condition calculation.
3656 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
3658         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
3659         alternatives for reads from memory and moves from general-purpose
3660         registers.
3661         (*aarch64_combinez_be<mode>): Likewise.
3663 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
3665         PR target/51726
3666         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
3667         selectany within this function without need to keep attribute.
3668         (i386_pe_encode_section_info): Remove selectany-code.
3670 2015-10-02  Richard Biener  <rguenther@suse.de>
3672         * tree-ssa-sccvn.c (has_VN_INFO): New function.
3673         (free_scc_vn): Use it.
3674         (visit_use): Remove dead code and refactor to use gassign
3675         and use less indentation.
3677 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3679         PR target/67788
3680         PR target/67789
3681         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
3682         (rs6000_cannot_copy_insn_p): New function.
3683         * config/rs6000/rs6000.md (cannot_copy): New attribute.
3684         (load_toc_v4_PIC_1_normal): Set cannot_copy.
3685         (load_toc_v4_PIC_1_476): Ditto.
3687 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
3689         * graphite-scop-detection.c (struct sese_l): New conversion constructor
3690         so that this type can be pushed into a vec.
3691         (class scop_builder): use sese_l to collect scops.
3692         (get_scops): New getter function.
3693         (remove_intersecting_scops): Use sese_l instead of scops_p.
3694         (intersects): Same.
3695         (add_scop): Same.
3696         (subsumes): Same.
3697         (remove_subscops): Same.
3698         (build_scops): Add scops to vec<scops_p> once all the scops have been
3699         detected.
3701 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
3703         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3704         Renamed type from gimple_bb_p to gimple_poly_bb_p.
3705         (translate_isl_ast_node_user): Same.
3706         * graphite-poly.c (new_poly_bb): Same.
3707         * graphite-poly.h (gbb_from_bb): Same.
3708         * sese.h: Same.
3709         * graphite-sese-to-poly.c (new_gimple_bb):
3710         gimple_bb_p -> gimple_poly_bb_p
3711         (build_scop_scattering): Same.
3712         (find_params_in_bb): Same.
3713         (add_conditions_to_domain): Same.
3714         (sese_dom_walker::before_dom_children): Same.
3715         (analyze_drs_in_stmts): Same.
3716         (new_pbb_from_pbb): Same.
3717         (free_data_refs_aux): New pointer to type base_alias_pair.
3718         * graphite-sese-to-poly.h: Same.
3719         * sese.c (if_region_set_false_region): Fixed Indentation.
3720         (move_sese_in_condition): Same.
3722 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3723             Aditya Kumar  <aditya.k7@samsung.com>
3725         PR tree-optimization/66980
3726         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
3727         when data reference analysis has failed.
3729 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3730             Aditya Kumar  <aditya.k7@samsung.com>
3732         PR tree-optimization/67754
3733         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
3734         scev analysis on the same loop nest as analyze_drs_in_stmts.
3735         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
3736         renamed...
3737         (try_generate_gimple_bb): Call outermost_loop_in_sese.
3738         (analyze_drs_in_stmts): Same.
3739         * sese.c (outermost_loop_in_sese): ...here.
3741 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3742             Aditya Kumar  <aditya.k7@samsung.com>
3744         PR tree-optimization/67754
3745         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
3746         recursion on the inner loops.
3748 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3750         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
3751         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
3752         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
3753         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
3754         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
3756 2015-10-01  Marek Polacek  <polacek@redhat.com>
3758         PR c/65345
3759         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
3760         create_tmp_var_raw rather than create_tmp_var.
3762 2015-10-01  Marek Polacek  <polacek@redhat.com>
3764         PR tree-optimization/67769
3765         * tree-ssa-phiopt.c (conditional_replacement): Call
3766         reset_flow_sensitive_info_in_bb.
3767         (minmax_replacement): Likewise.
3768         (abs_replacement): Likewise.
3770 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
3772         * builtins.c: Don't include gomp-constants.h.
3773         (fold_builtin_1): Don't fold acc_on_device here.
3774         * gimple-fold.c: Include gomp-constants.h.
3775         (gimple_fold_builtin_acc_on_device): New.
3776         (gimple_fold_builtin): Call it.
3778 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3780         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
3781         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
3783 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
3785         * config/arm/aarch-common-protos.h
3786         (aarch_accumulator_forwarding): New.
3787         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3788         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
3789         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3790         * config/arm/cortex-a53.md: Rewrite.
3792 2015-10-01  Richard Biener  <rguenther@suse.de>
3794         * gimple-match.h (mprts_hook): Declare.
3795         * gimple-match.head.c (mprts_hook): Define.
3796         (maybe_push_res_to_seq): Use new hook.
3797         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3798         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
3799         (vn_ssa_aux::has_constants): Remove.
3800         * tree-ssa-sccvn.c: Include gimple-match.h.
3801         (VN_INFO_GET): Assert we don't re-use SSA names.
3802         (vn_get_expr_for): Remove.
3803         (expr_has_constants): Likewise.
3804         (stmt_has_constants): Likewise.
3805         (simplify_binary_expression): Likewise.
3806         (simplify_unary_expression): Likewise.
3807         (vn_lookup_simplify_result): New hook.
3808         (visit_copy): Adjust.
3809         (visit_reference_op_call): Likewise.
3810         (visit_phi): Likewise.
3811         (visit_use): Likewise.
3812         (process_scc): Likewise.
3813         (init_scc_vn): Likewise.
3814         (visit_reference_op_load): Likewise.  Use match-and-simplify and
3815         a gimple seq for inserted expressions.
3816         (try_to_simplify): Remove GENERIC stmt combining code.
3817         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
3818         * tree-ssa-pre.c (eliminate_insert): Adjust.
3819         (eliminate_dom_walker::before_dom_children): Likewise.
3821 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3823         * doc/invoke.texi (Optimization Options): Add
3824         -freorder-blocks-algorithm=.
3825         (Optimize Options) <-O>: Add -freorder-blocks.
3826         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
3827         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
3828         <-freorder-blocks>: Also enabled at levels -O and -Os.
3829         <-freorder-blocks-algorithm=>: Document new option.
3831 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3833         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
3834         with flag_reorder_blocks_algorithm.
3835         * common.opt (freorder-blocks-algorithm=): New flag.
3836         (reorder_blocks_algorithm): New enum.
3837         * flag-types.h (reorder_blocks_algorithm): New enum.
3838         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
3839         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
3841 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3843         * bb-reorder.c: Add intro comment.
3844         (reorder_basic_blocks_software_trace_cache): Print a header to
3845         the dump file.
3846         (edge_order): New function.
3847         (reorder_basic_blocks_simple): New function.
3848         (reorder_basic_blocks): Choose between the STC and the simple
3849         algorithms (always choose the former).
3851 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3853         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
3854         function, factored out from ...
3855         (reorder_basic_blocks): ... here.
3857 2015-10-01  Tom de Vries  <tom@codesourcery.com>
3859         * tree-cfg.c (dump_function_to_file): Dump function attributes using
3860         __attribute__(()) string.  Move dumping of function attributes to before
3861         function name.
3863 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
3865         PR target/66870
3866         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
3867         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
3868         based on gold linker version.
3869         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
3870         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
3871         * configure, config.in: Regenerate.
3873 2015-10-01  Alan Modra  <amodra@gmail.com>
3875         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
3876         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
3877         (rs6000_output_mi_thunk): Likewise.
3879 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
3881         * config/nvptx/mkoffload.c (process): Change offload data format.
3883 2015-09-30  Jeff Law  <law@redhat.com>
3885         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
3886         with constant conditions.
3887         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
3888         (remove_ctrl_stmt_and_useless_edges): No longer static.
3889         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
3890         (remove_ctrl_stmt_and_useless_edges): Likewise.
3892 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
3893             Cesar Philippidis  <cesar@codesourcery.com>
3895         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
3896         (TARGET_GOACC_VALIDATE_DIMS): Override.
3897         * target.def (TARGET_GOACC): New target hook prefix.
3898         (validate_dims): New hook.
3899         * targhooks.h (default_goacc_validate_dims): New.
3900         * omp-low.c (oacc_validate_dims): New.
3901         (execute_oacc_device_lower): New.
3902         (default_goacc_validate_dims): New.
3903         (pass_data_oacc_device_lower): New.
3904         (pass_oacc_device_lower): New pass.
3905         (make_pass_oacc_device_lower): New.
3906         * tree-pass.h (make_pass_oacc_device_lower): Declare.
3907         * passes.def (pass_oacc_device_lower): Add it.
3908         * doc/tm.texi: Rebuilt.
3909         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
3910         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
3912 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3914         PR rtl-optimization/67037
3915         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
3917 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
3919         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
3920         * passes.c: Include tree-ssanames.h.
3921         (execute_function_todo): Flush the pending free SSA_NAMEs after
3922         eliminating unreachable basic blocks.
3923         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
3924         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
3925         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
3926         (flush_ssanames_freelist): New function.
3927         (release_ssaname_fn): Put released names on the queue.
3928         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
3929         * tree-ssanames.h (flush_ssanames_freelist): Declare.
3931 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3933         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
3934         (generate_target_descr_file, generate_target_offloadend_file)
3935         (generate_host_descr_file, prepare_target_image): Pass it on.
3936         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
3937         (compile_native, main): Pass it on.
3938         * lto-wrapper.c (compile_offload_image): Likewise.
3940 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3941             Ilya Verbin  <ilya.verbin@intel.com>
3942             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3944         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
3945         (prepare_target_image, main): Refactor argv building to use
3946         obstacks.
3948 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3950         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
3951         * config/spu/spu.c (spu_expand_atomic_op): New function.
3952         * config/spu/spu.md (AINT): New mode iterator.
3953         (ATOMIC): New code iterator.
3954         (atomic_name, atomic_pred): New code predicates.
3955         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
3956         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
3957         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
3958         "atomic_<atomic_name>_fetch<mode>"): Likewise.
3960 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
3962         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
3963         debug insns.
3964         (scalar_chain::convert_reg): Likewise.
3966 2015-09-30  Richard Biener  <rguenther@suse.de>
3968         * builtins.c: Add comment that no new simplifications should
3969         be added here.
3971 2015-09-30  Marek Polacek  <polacek@redhat.com>
3973         PR tree-optimization/67690
3974         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
3975         reset_flow_sensitive_info_in_bb.
3976         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
3977         * tree-ssanames.c: Include "gimple-iterator.h".
3978         (reset_flow_sensitive_info_in_bb): New function.
3979         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
3981 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3983         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
3984         variable, replacing it with...
3985         (offload_abi): ... this new variable.  Adjust all users.
3986         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
3988 2015-09-30  Matthias Klose  <doko@ubuntu.com>
3990         * configure.ac: Remove extraneous ;;.
3991         * configure: Regenerate.
3993 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
3995         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
3996         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
3997         predicate, disallow register for operand 2.
3999 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
4001         * graphite-dependences.c (scop_get_dependences): Moved in down
4002         in order to be visible to its caller.
4003         * graphite-poly.h: Removed compute_deps, and extend_schedule.
4005 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
4006             Aditya Kumar  <aditya.k7@samsung.com>
4008         PR tree-optimization/67754
4009         * graphite-optimize-isl.c (optimize_isl): Call
4010         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
4012 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
4014         * builtins.c (expand_builtin_acc_on_device): Delete.
4015         (expand_builtin): Don't call it.
4016         (fold_builtin_1): Fold acc_on_device.
4018 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4020         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
4021         (ix86_nsaved_sseregs): Likewise.
4023 2015-09-29  Jeff Law  <law@redhat.com>
4025         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
4026         computation of unused value.
4028         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
4029         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
4030         inline macro expansion.
4032         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
4034         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
4035         (gen_shl_sext): Likewise.
4036         * config/sh/sh.md (divsi3): Likewise.
4037         (imm->ext_dest_operand splitter): Likewise.
4039 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
4040             Aditya Kumar  <aditya.k7@samsung.com>
4042         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
4043         (nb_data_writes_in_bb): Remove.
4044         (split_pbb): Remove.
4045         (split_reduction_stmt): Remove.
4046         (is_reduction_operation_p): Remove.
4047         (phi_contains_arg): Remove.
4048         (follow_ssa_with_commutative_ops): Remove.
4049         (detect_commutative_reduction_arg): Remove.
4050         (detect_commutative_reduction_assign): Remove.
4051         (follow_inital_value_to_phi): Remove.
4052         (edge_initial_value_for_loop_phi): Remove.
4053         (initial_value_for_loop_phi): Remove.
4054         (used_outside_reduction): Remove.
4055         (detect_commutative_reduction): Remove.
4056         (translate_scalar_reduction_to_array_for_stmt): Remove.
4057         (remove_phi): Remove.
4058         (dr_indices_valid_in_loop): Remove.
4059         (close_phi_written_to_memory): Remove.
4060         (translate_scalar_reduction_to_array): Remove.
4061         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
4062         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
4063         (rewrite_commutative_reductions_out_of_ssa): Remove.
4064         (build_poly_scop): Remove call to
4065         rewrite_commutative_reductions_out_of_ssa.
4067 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
4069         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
4070         Add new insn types for vector load and store pairs.
4071         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
4072         types "neon_ldp{,_q}".
4073         * config/arm/cortex-a57.md (neon_load_c): Add insn types
4074         "neon_ldp{,_q}".
4075         (neon_store_complex): Add insn types "neon_stp{,_q}".
4076         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
4077         "neon_{ldp,stp}_q".
4079 2015-09-29  Jeff Law  <law@redhat.com>
4081         * config/rx/constraints.md (Int08): Fix undefined left shift
4082         behaviour.
4083         (Sint08, Sint16, Sint24): Likewise.
4084         * config/rx/rx.c (rx_get_stack_layout): Likewise.
4086         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
4087         behaviour.
4089         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
4090         left shift behaviour.
4091         * config/msp430/constraints.md ('L' constraint): Similarly.
4092         ('Ys' constraint): Similarly.
4094 2015-09-29  Richard Biener  <rguenther@suse.de>
4096         PR tree-optimization/67170
4097         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
4098         the translate function pointer parameter to get the
4099         bool whether to disambiguate only by reference.
4100         (walk_non_aliased_vuses): Likewise.
4101         * tree-ssa-alias.c (maybe_skip_until): Adjust.
4102         (get_continuation_for_phi_1): Likewise.
4103         (get_continuation_for_phi): Likewise.
4104         (walk_non_aliased_vuses): Likewise.
4105         * tree-ssa-sccvn.c (const_parms): New bitmap.
4106         (vn_reference_lookup_3): Adjust for interface change.
4107         Disambiguate parameters pointing to readonly memory.
4108         (free_scc_vn): Free const_parms.
4109         (run_scc_vn): Initialize const_parms from a fn spec attribute.
4111 2015-09-29  Richard Biener  <rguenther@suse.de>
4113         PR tree-optimization/67741
4114         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
4115         builtin calls with correct signature.
4117 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
4119         PR target/65105
4120         * config/i386/i386.c: Include dbgcnt.h.
4121         (has_non_address_hard_reg): New.
4122         (convertible_comparison_p): New.
4123         (scalar_to_vector_candidate_p): New.
4124         (remove_non_convertible_regs): New.
4125         (scalar_chain): New.
4126         (scalar_chain::scalar_chain): New.
4127         (scalar_chain::~scalar_chain): New.
4128         (scalar_chain::add_to_queue): New.
4129         (scalar_chain::mark_dual_mode_def): New.
4130         (scalar_chain::analyze_register_chain): New.
4131         (scalar_chain::add_insn): New.
4132         (scalar_chain::build): New.
4133         (scalar_chain::compute_convert_gain): New.
4134         (scalar_chain::replace_with_subreg): New.
4135         (scalar_chain::replace_with_subreg_in_insn): New.
4136         (scalar_chain::emit_conversion_insns): New.
4137         (scalar_chain::make_vector_copies): New.
4138         (scalar_chain::convert_reg): New.
4139         (scalar_chain::convert_op): New.
4140         (scalar_chain::convert_insn): New.
4141         (scalar_chain::convert): New.
4142         (convert_scalars_to_vector): New.
4143         (pass_data_stv): New.
4144         (pass_stv): New.
4145         (make_pass_stv): New.
4146         (ix86_option_override): Created and register stv pass.
4147         (flag_opts): Add -mstv.
4148         (ix86_option_override_internal): Likewise.
4149         * config/i386/i386.md (SWIM1248x): New.
4150         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
4151         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
4152         (*anddi3_doubleword): New.
4153         (*zext<mode>_doubleword): New.
4154         (*zextsi_doubleword): New.
4155         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
4156         (*<code>di3_doubleword): New.
4157         * config/i386/i386.opt (mstv): New.
4158         * dbgcnt.def (stv_conversion): New.
4160 2015-09-29  Tom de Vries  <tom@codesourcery.com>
4162         * tree-cfg.c (dump_function_to_file): Dump function attributes.
4164 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
4166         PR target/67716
4167         * config/sh/sh.c (sh_override_options_after_change): New.
4168         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4169         (sh_option_override): Move align_loops, align_jumps and
4170         align_functions handling into sh_override_options_after_change.
4172 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
4174         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
4175         (nvptx_record_offload_symbol): Record function execution geometry.
4176         * config/nvptx/mkoffload.c (process): Include launch geometry in
4177         function data.
4178         * omp-low.c (oacc_launch_pack): New.
4179         (replace_oacc_fn_attrib): New.
4180         (set_oacc_fn_attrib): New.
4181         (get_oacc_fn_attrib): New.
4182         (expand_omp_target): Create keyed varargs for GOACC_parallel call
4183         generation.
4184         * omp-low.h (get_oacc_fn_attrib): Declare.
4185         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
4186         (DEF_FUNCTION_TYPE_VAR_11): Delete.
4187         * tree.h (OMP_CLAUSE_EXPR): New.
4188         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
4190 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
4191             Sebastian Pop  <s.pop@samsung.com>
4193         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
4195 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
4196             Sebastian Pop  <s.pop@samsung.com>
4198         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
4199         * graphite-scop-detection.c (struct sese_l): New type.
4200         (get_entry_bb): API for getting entry bb of SESE.
4201         (get_exit_bb): API for getting exit bb of SESE.
4202         (class debug_printer): New type.  Simple printer in debug mode.
4203         (trivially_empty_bb_p): New.  Return true when BB is empty or
4204         contains only debug instructions.
4205         (graphite_can_represent_expr): Call scalar_evoution_in_region
4206         instead of analyze_scalar_evolution.  Pass in scop instead of only
4207         the scop entry.
4208         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
4209         scop entry.
4210         (stmt_simple_for_scop_p): Same.
4211         (harmful_stmt_in_bb): Same.
4212         (graphite_can_represent_loop): Deleted.
4213         (struct scopdet_info): Deleted.
4214         (scopdet_basic_block_info): Deleted.
4215         (build_scops_1): Deleted.
4216         (bb_in_sd_region): Deleted.
4217         (find_single_entry_edge): Deleted.
4218         (find_single_exit_edge): Deleted.
4219         (create_single_entry_edge): Deleted.
4220         (sd_region_without_exit): Deleted.
4221         (create_single_exit_edge): Deleted.
4222         (unmark_exit_edges): Deleted.
4223         (mark_exit_edges): Deleted.
4224         (create_sese_edges): Deleted.
4225         (build_graphite_scops): Deleted.
4226         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
4227         (build_scops): Use the new scop_builder to build scops.
4228         (dot_all_scops_1): Use the new pretty printer.  Print loop father
4229         as well.
4230         (loop_body_is_valid_scop): New.  Return true if loop body is a
4231         valid scop.
4232         (class scop_builder): New.  Builds SCoPs for polyhedral
4233         optimizations.
4234         (scop_builder): New constructor.
4235         (static sese_l invalid_sese): sese_l with invalid edges.
4236         (get_sese): Get an sese (from a loop) if possible, invalid_sese
4237         otherwise.
4238         (get_nearest_dom_with_single_entry): Get nearest dominator of a
4239         basic_block with single entry.  Return NULL if we get to the
4240         beginning of a function.
4241         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
4242         a basic_block with single exit.  Return NULL if we get to the
4243         beginning of a function.
4244         (print_sese): Pretty-print SESE.
4245         (merge_sese): Merge two SESEs if possible and return the new SESE.
4246         (build_scop_depth): Start building the SCoP within a loop nest.
4247         (build_scop_breadth): Start building the SCoP at a single loop
4248         depth.  Merge adjacent SESEs if valid.
4249         (can_represent_loop_1): Returns true if Graphite can represent
4250         loop inside SCoP.  Helper for can_represent_loop.
4251         (can_represent_loop): Returns true if Graphite can represent LOOP
4252         and all its nested loops in SCoP.
4253         (loop_is_valid_scop): Returns true if LOOP and all its nests
4254         constitute a valid SCoP.
4255         (region_has_one_loop): Returns true of a region has only one loop.
4256         (add_scop): Add SCoP to the list of valid scops.  Removes an
4257         already existing scop if it intersects with or subsumed by this one.
4258         (harmful_stmt_in_region): Returns true if SCoP has any statment
4259         which cannot be represented by Graphite.
4260         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
4261         (remove_subscops): Remove any SCoP from the list of already found
4262         SCoPs, if subsumed by S1.
4263         (intersects): Return true if region bounded by SCoPs S1 and S2
4264         intersect.
4265         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
4266         * graphite.c (print_graphite_scop_statistics):
4267         (print_graphite_statistics): Print SCoP info while debugging.
4268         (graphite_initialize): Early exit in case number of loops in a
4269         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
4270         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
4271         (graphite_finalize):
4272         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
4273         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
4274         (recompute_all_dominators): Recalculate POST_DOMINATORS.
4275         * tree-cfg.c (print_loops): Print the function name while printing
4276         loops.
4278 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
4279             Sebastian Pop  <s.pop@samsung.com>
4281         PR tree-optimization/67700
4282         * graphite-sese-to-poly.c (parameter_index_in_region): Call
4283         invariant_in_sese_p_rec.
4284         (extract_affine): Same.
4285         (rewrite_cross_bb_scalar_deps): Call update_ssa.
4286         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
4287         * sese.h (invariant_in_sese_p_rec): Declare.
4289 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
4291         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
4293 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
4295         Revert:
4296         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4297                     Jiong Wang  <jiong.wang@arm.com>
4299         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4300         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4301         (REG_CLASS_NAMES): Likewise.
4302         (REG_CLASS_CONTENTS): Likewise.
4303         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4304         (aarch64_register_move_cost): Likewise.
4305         (aarch64_load_symref_appropriately): Invoke the new added pattern if
4306         possible.
4307         * config/aarch64/constraints.md (Uc0): New constraint.
4309 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
4311         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
4313 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
4315         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
4316         SECTION_EXCLUDE in XO mapping class.
4318 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
4320         PR target/54236
4321         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
4322         and handle ne and eq codes.
4323         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
4324         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
4325         CONST_INT_P.  Use reverse_condition.
4326         (sh_split_treg_set_expr): Likewise.
4328 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
4330         * config/arm/types.md (type): Add rotate_imm.
4331         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
4332         ROR immediate case.
4333         (*rorsi3_insn_uxtw): Likewise.
4334         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
4335         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
4336         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
4338 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4340         PR rtl-optimization/67481
4341         * ifcvt.c (contains_ccmode_rtx_p): New function.
4342         (insn_valid_noce_process_p): Use it.
4344 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4346         PR rtl-optimization/67456
4347         PR rtl-optimization/67464
4348         PR rtl-optimization/67465
4349         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
4350         move in the mode of x.  Handle combination of complex and simple
4351         block pairs as well as the case when one is empty.
4353 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4355         * doc/gimple.texi: Update references to gimple_statement_base.
4356         * gdbhooks.py: Likewise.
4357         * gimple.h: Likewise.
4359 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4361         * config/sparc/driver-sparc.c: map LEON to leon3
4363 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4365         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
4366           and make it inverse to change default
4367         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
4368           supervisor mode
4369         * doc/invoke.texi: Document change of default
4371 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4373         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
4374         true on %f0 for a target without FPU.
4375         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
4376         without FPU.
4377         (untyped_return): Do not load %f0 for a target without FPU.
4379 2015-09-28  Andrew Pinski  <apinski@cavium.com>
4381         * config/aarch64/aarch64.md (prefetch):
4382         Change the predicate of operand 0 to register_operand.
4384 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
4386         * config/i386/predicates.md (register_sse4nonimm_operand): New
4387         predicate.
4388         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
4389         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
4390         Use register_sse4nonimm_operand as operand 0 predicate.
4391         (*vec_extractv8hi_sse2): Remove insn pattern.
4392         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
4393         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
4395 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
4396             Kaz Kojima  <kkojima@gcc.gnu.org>
4398         PR target/67391
4399         * config/sh/sh-protos.h (sh_lra_p): Declare.
4400         * config/sh/sh.c (sh_lra_p): Make non-static.
4401         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
4402         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
4403         Expand into addsi3_scr if operands[2] if needed.
4404         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
4405         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
4406         (addsi3_scr, *addsi3): New insn_and_split patterns.
4408 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
4410         PR rtl-optimization/64164
4411         PR tree-optimization/67312
4412         PR middle-end/67340
4413         PR middle-end/67490
4414         PR bootstrap/67597
4415         * cfgexpand.c (parm_in_stack_slot_p): Remove.
4416         (ssa_default_def_partition): Remove.
4417         (get_rtl_for_parm_ssa_default_def): Remove.
4418         (set_rtl): Check that RTL assignments match expectations.
4419         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
4420         default def location for params and results.  Record SSA names
4421         or types in REG and MEM attrs, respectively.
4422         (set_parm_rtl): New.
4423         (expand_one_ssa_partition): Drop logic that assigned MEMs with
4424         unassigned addresses.
4425         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
4426         deferred stack alloc vars.
4427         (expand_used_vars): Skip partitions holding parm default defs.
4428         Move adjust_one_expanded_partition_var loop...
4429         (pass_expand::execute): ... here.  Drop redundant assert.
4430         Adjust comments before the final loop over all ssa names.
4431         Require assigned rtl of parms and results to match exactly.
4432         Reset its attributes to match them, not any other variables in
4433         the same partition.
4434         (expand_debug_expr): Use entry value for PARM's default defs
4435         only iff they have zero nondebug uses.
4436         * cfgexpand.h (parm_in_stack_slot_p): Remove.
4437         (get_rtl_for_parm_ssa_default_def): Remove.
4438         (set_parm_rtl): Declare.
4439         * doc/invoke.texi: Improve wording.
4440         * explow.c (promote_decl_mode): Fix promote_function_mode for
4441         result decls not by reference.
4442         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
4443         bypass TYPE_MODE to get the actual vector mode.
4444         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
4445         2015-08-19's changes as follows.  Drop include of
4446         basic-block.h and df.h.
4447         (rtl_for_parm): Remove.
4448         (maybe_reset_rtl_for_parm): Remove.
4449         (parm_in_unassigned_mem_p): Remove.
4450         (use_register_for_decl): Add logic for RESULT_DECLs matching
4451         assign_parms' behavior.
4452         (split_complex_args): Revert.
4453         (assign_parms_augmented_arg_list): Revert.  Add comment
4454         referencing the logic above.
4455         (assign_parm_adjust_stack_rtl): Revert.
4456         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
4457         of SET_DECL_RTL.  Set up a REG if the parm demands so.
4458         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
4459         calls into a single set_parm_rtl.  Set up a temporary RTL
4460         temporarily for expand_assignment.
4461         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
4462         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
4463         (assign_bounds): Revert.
4464         (assign_parms): Revert.  Use set_parm_rtl.
4465         (allocate_struct_function): Relayout result and parms of
4466         non-abstruct functions.
4467         (expand_function_start): Revert.  Use set_parm_rtl.  If the
4468         result is not a hard reg, create a pseudo from the promoted
4469         mode of the default def.  Promote static chain mode.
4470         * tree-outof-ssa.c (remove_ssa_form): Drop unused
4471         partition_has_default_def.  Set up
4472         partitions_for_parm_default_defs.
4473         (finish_out_of_ssa): Remove partition_has_default_def.
4474         Release partitions_for_parm_default_defs.
4475         * tree-outof-ssa.h (struct ssaexpand): Remove
4476         partition_has_default_def.  Add
4477         partitions_for_parm_default_defs.
4478         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
4479         stor-layout.h.
4480         (build_ssa_conflict_graph): Fix conflict-detection of default
4481         defs of even unused default defs of params and results.
4482         (for_all_parms): New.
4483         (create_default_def): New.
4484         (register_default_def): New.
4485         (coalesce_with_default): New.
4486         (create_outofssa_var_map): Create default defs for all parms
4487         and results, and register their partitions.  Add GIMPLE_RETURN
4488         operands as coalesce candidates with results.  Add default
4489         defs of each parm or result as coalesce candidates with its
4490         other defs.  Mark each result def, and each default def of
4491         parms, as used_in_copy.
4492         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
4493         with the ssa names, even anonymous ones.  Drop
4494         parm_in_stack_slot_p calls.  Require same signedness and
4495         alignment.
4496         (coalesce_ssa_name): Add coalesce candidates for all defs of
4497         each parm and result, even unused ones.
4498         (parm_default_def_partition_arg): New type.
4499         (set_parm_default_def_partition): New.
4500         (get_parm_default_def_partitions): New.
4501         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
4502         * tree-ssa-live.c (partition_view_init): Regard unused defs of
4503         parms and results as used.
4504         (verify_live_on_entry): Don't error out just because they're
4505         not live.
4507 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
4509         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4510         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
4511         (output_fde): Don't output length for debug_frame on AIX.
4512         (output_call_frame_info): Don't output length for debug_frame on AIX.
4513         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
4514         HAVE_XCOFF_DWARF_EXTRAS.
4515         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
4516         HAVE_XCOFF_DWARF_EXTRAS.
4517         (output_compilation_unit_header): Don't output length on AIX.
4518         (output_pubnames): Don't output length on AIX.
4519         (output_aranges): Delete argument. Compute length locally. Don't
4520         output length on AIX.
4521         (output_line_info): Don't output length on AIX.
4522         (dwarf2out_finish): Don't compute aranges_length.
4523         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4524         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
4525         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
4526         symbol decoration for AIX.
4527         (rs6000_xcoff_debug_unwind_info): New.
4528         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
4529         for SECTION_DEBUG.
4530         (rs6000_xcoff_declare_function_name): Emit different
4531         .function pseudo-op when DWARF2_DEBUG. Don't call
4532         xcoffout_declare_function for DWARF2_DEBUG.
4533         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
4534         Redefine.
4535         * config/rs6000/aix71.h: New.
4536         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
4537         locations support.
4538         * configure: Regenerate.
4539         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
4540         DWARF support.
4542 2015-09-26  Jeff Law  <law@redhat.com>
4544         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
4545         behaviour.
4546         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
4547         behaviour.
4549         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
4550         behaviour
4552         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
4553         undefined behaviour.
4555         * config/cris/cris.md (asrandb): Fix left shift undefined
4556         behaviour.
4557         (asrandw): Likewise.
4559 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
4561         PR target/61578
4562         * lra-constarints.c (match_reload): Check presence of the input pseudo
4563         in the output operand.
4565 2015-09-25  Tobias Burnus  <burnus@net-b.de>
4567         * doc/invoke.texi (-fsanitize): Minor wording tweak.
4569 2015-09-25  Tobias Burnus  <burnus@net-b.de>
4571         * doc/invoke.texi (-fsanitize): Update URLs.
4573 2015-09-25  Teresa Johnson  <tejohnson@google.com>
4575         * opts.c (finish_options): Unset -freorder-blocks-and-partition
4576         if not using profile.
4578 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4580         PR pretty-print/67567
4581         * pretty-print.c (pp_string): Add gcc_checking_assert.
4582         * pretty-print.h (output_buffer_append_r): Likewise.
4584 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
4586         PR target/67675
4587         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
4588         addr2 individually.  Don't emit logical or insn if one is known to
4589         be aligned approriately.
4590         (sh_expand_cmpnstr): Likewise.
4592 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
4594         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
4595         __builtin_aarch64_fp[sc]r arguments into a register.
4597 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
4599         * config.gcc (x86_archs): Replace lakemount with lakemont.
4600         (with_cpu): Likewise.
4601         (with_arch): Likewise.
4602         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4603         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
4604         __tune_lakemount__ with __tune_lakemont__.
4605         * config/i386/i386.c (lakemount_cost): Renamed to ...
4606         (lakemont_cost): This.
4607         (m_LAKEMOUNT): Renamed to ...
4608         (m_LAKEMONT): This.
4609         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
4610         (processor_target_table): Replace "lakemount" with "lakemont".
4611         (processor_alias_table): Likewise.
4612         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
4613         PROCESSOR_LAKEMONT.
4614         (ix86_adjust_cost): Likewise.
4615         (ia32_multipass_dfa_lookahead): Likewise.
4616         * config/i386/i386.h (processor_type): Likewise.
4617         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
4618         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
4619         Lakemount with Lakemont.
4621 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
4623         * config.gcc (x86_archs): Replace iamcu with lakemount.
4624         (with_cpu): Likewise.
4625         (with_arch): Likewise.
4626         * doc/invoke.texi: Likewise.
4627         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4628         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
4629         __tune_iamcu__ with __tune_lakemount__.
4630         * config/i386/i386.c (iamcu_cost): Renamed to ...
4631         (lakemount_cost): This.
4632         (m_IAMCU): Renamed to ...
4633         (m_LAKEMOUNT): This.
4634         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
4635         (processor_target_table): Replace "iamcu" with "lakemount".
4636         (processor_alias_table): Likewise.
4637         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
4638         PROCESSOR_LAKEMOUNT.
4639         (ix86_adjust_cost): Likewise.
4640         (ia32_multipass_dfa_lookahead): Likewise.
4641         * config/i386/i386.h (processor_type): Likewise.
4642         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
4644 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
4646         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
4647         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
4648         Declare.
4649         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
4650         (pa_expand_compare_and_swap_loop): New.
4651         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
4652         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
4653         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
4654         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
4655         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
4656         Revise.
4658 2015-09-24  Michael Collison  <michael.collison@linaro.org>
4660         PR other/57195
4661         * read-md.c (read_name): Allow mode iterators inside angle
4662         brackets in rtl expressions.
4664 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
4666         PR target/61578
4667         * ira-color.c (update_allocno_cost): Add parameter.
4668         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
4669         parameter.
4671 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4673         PR driver/67640
4674         * opts-common.c (prune_options): Discard all -fdiagnostics-color
4675         but the last one, which is moved to the front to be processed
4676         first.
4677         * opts.c (enable_warning_as_error): Reject options that do not
4678         control warnings.
4680 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
4682         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
4684 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
4686         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
4687         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
4688         (aarch64_cannot_force_const_mem): Likewise.
4689         (aarch64_classify_address): Likewise.
4690         (aarch64_classify_symbolic_expression): Likewise.
4691         (aarch64_print_operand): Likewise.
4692         (aarch64_classify_symbol): Likewise.
4693         (aarch64_mov_operand_p): Likewise.
4694         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
4695         (aarch64_mov_operand): Likewise.
4697 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
4699         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
4700         for info->spe_gp_size.
4702 2015-09-24  Richard Biener  <rguenther@suse.de>
4704         PR lto/67699
4705         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
4706         abstract origins.
4708 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
4710         * tree-object-size.c (plus_stmt_object_size)
4711         (cond_expr_object_size): Change the formal parameters from gimple
4712         to gimple *.
4713         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
4714         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
4715         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
4717 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4719         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
4720         Check for ld -type pie on Solaris 11.x and 12.
4721         * configure: Regenerate.
4722         * config.in: Regenerate.
4724         * gcc.c (LD_PIE_SPEC): Allow redefinition.
4726         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
4727         (STARTFILE_SPEC): Use it.
4728         (ENDFILE_CRTEND_SPEC): Define.
4729         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
4730         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
4731         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
4732         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
4733         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
4734         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
4735         (ENDFILE_ARCH_SPEC): Define.
4736         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
4738 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4740         * configure.ac (gcc_cv_solaris_crts): New test.
4741         * configure. Regenerate.
4742         * config.in: Regenerate.
4743         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
4744         HAVE_SOLARIS_CRTS variant.
4746 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4748         * tree-inline.h (count_insns_seq): Delete prototype.
4749         (estimate_num_insns_seq): Define prototype.
4750         * tree-inline.c (count_insns_seq): Delete.
4751         (estimate_num_insns_seq): Remove static qualifier.
4752         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
4753         with estimate_num_insns_seq.
4755 2015-09-24  Richard Biener  <rguenther@suse.de>
4757         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
4758         members.
4759         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
4760         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
4761         offset.
4762         (ao_ref_init_from_vn_reference): Record clique and base in the
4763         built base.
4764         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
4766 2015-09-24  Richard Biener  <rguenther@suse.de>
4768         PR tree-optimization/48885
4769         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
4770         as not including any restrict tags from other pointers.
4772 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4774         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
4775         character when appending to offload_targets.
4777         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
4778         offload targets by commas, not colons.
4779         * config.in: Regenerate.
4780         * configure: Likewise.
4781         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
4782         instead of setting up the default offload targets here...
4783         (process_command): ..., do it here.
4784         libgomp/
4785         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
4786         targets are separated by commas.
4787         * config.h.in: Regenerate.
4789 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4790             Nathan Sidwell  <nathan@codesourcery.com>
4792         * omp-low.h (omp_reduction_init_op): Declare.
4793         * omp-low.c (omp_reduction_init_op): New, broken out of ...
4794         (omp_reduction_init): ... here.  Call it.
4795         * tree-parloops.c (initialize_reductions): Use
4796         omp_reduction_init_op.
4798 2015-09-23   Richard Biener  <rguenther@suse.de>
4800         PR middle-end/67662
4801         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
4802         undefined overflow unless they will cancel out.
4804 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4806         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
4807         insn emit.
4809 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4811         PR c/49655
4812         * opts.h (write_langs): Declare.
4813         * opts-global.c (write_langs): Make it extern.
4815 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
4817         PR target/67391
4818         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
4819         overlapping regs when matching the pattern.
4821 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
4823         * config/aarch64/aarch64-simd.md
4824         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
4825         (aarch64_float_truncate_hi_v4sf_le): New.
4826         (aarch64_float_truncate_hi_v4sf_be): Likewise.
4828 2015-09-23  Richard Biener  <rguenther@suse.de>
4830         * tree-ssa-structalias.c (intra_create_variable_infos): Build
4831         representatives for all restrict qualified pointer destinations.
4833 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4835         * config/i386/i386.md (define_code_attr mshift): New.
4836         (define_mode_iterator SWI1248_AVX512BW): Rename ...
4837         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
4838         only.
4839         (define_insn "*k<logic><mode>"): Use new iterator name.
4840         (define_insn "*<mshift><mode>3"): New.
4842 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
4844         PR middle-end/67649
4845         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
4846         mark the block as accessible.
4848 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
4850         * function.c (thread_prologue_and_epilogue_insns): Delete
4851         orig_entry_edge argument to try_shrink_wrapping.
4852         * shrink-wrap.c (can_get_prologue): New function.
4853         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
4854         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
4855         can_get_prologue where needed.  Remove code that finds a single
4856         edge for the prologue.  Remove code that tests if any reg clobbered
4857         by the prologue is live on the prologue edge.  Remove code that finds
4858         the new prologue edge after duplicating blocks.  Make a new prologue
4859         block and edge.
4860         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
4862 2015-09-22  Jeff Law  <law@redhat.com>
4864         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
4865         behavior.
4867 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
4869         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
4870         -Wtemplates, -Wnamespaces): Document.
4872 2015-09-22  Tom de Vries  <tom@codesourcery.com>
4874         PR tree-optimization/67671
4875         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
4876         pointer references as restrict.
4878 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
4880         * config/nios2/nios2.c (nios2_legitimize_address): When handling
4881         'reg + reloc' cases, allow first operand to be non-REG, and use
4882         force_reg() to enforce address pattern.
4884 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
4886         PR target/67480
4887         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
4888         (define_mode_iterator VI12_AVX_AVX512F): New.
4889         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
4890         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
4891         (define_insn "*<code><mode>3"): ... Into new pattern using
4892         VI12_AVX_AVX512F iterators without masking.
4894 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4896         * config.gcc: Support "skylake-avx512".
4897         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4898         PROCESSOR_SKYLAKE_AVX512.
4899         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
4900         (processor_target_table): Add "skylake-avx512".
4901         (PTA_SKYLAKE_AVX512): Define.
4902         (ix86_option_override_internal): Add "skylake_avx512".
4903         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
4904         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
4905         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
4906         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
4907         * doc/invoke.texi (skylake-avx512): New.
4909 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4911         * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
4912         operand in pattern.
4913         (define_insn "kunpcksi"): Ditto.
4914         (define_insn "kunpckdi"): Ditto.
4916 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4918         * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
4919         iterator instead of fixed modes.
4921 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4923         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4924         Adjust declaration.
4925         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
4926         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
4927         out_result.  Update to support update-fetch operations.
4928         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
4929         Adjust for change to aarch64_gen_atomic_ldop.
4930         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
4931         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
4932         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
4933         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
4934         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
4936 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4938         * config/aarch64/aarch64-protos.h
4939         (aarch64_atomic_ldop_supported_p): Declare.
4940         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
4941         (enum aarch64_atomic_load_op_code): New.
4942         (aarch64_emit_atomic_load_op): New.
4943         (aarch64_gen_atomic_ldop): Update to support load-operate
4944         patterns.
4945         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
4946         to an expander.
4947         (aarch64_atomic_<atomic_optab><mode>): New.
4948         (aarch64_atomic_<atomic_optab><mode>_lse): New.
4949         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
4950         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
4951         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
4953 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4955         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
4956         (UNSPECV_ATOMIC_LDOP_OR): New.
4957         (UNSPECV_ATOMIC_LDOP_BIC): New.
4958         (UNSPECV_ATOMIC_LDOP_XOR): New.
4959         (UNSPECV_ATOMIC_LDOP_PLUS): New.
4960         (ATOMIC_LDOP): New.
4961         (atomic_ldop): New.
4962         (aarch64_atomic_load<atomic_ldop><mode>): New.
4964 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4966         * config/aarch64/aarch64.md
4967         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
4968         pattern.
4970 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4972         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4973         Declare.
4974         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
4975         (aarch64_gen_atomic_ldop): New.
4976         (aarch64_split_atomic_op): Fix whitespace and add a comment.
4977         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
4978         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
4979         (atomic_exchange<mode>): Replace with an expander.
4980         (aarch64_atomic_exchange<mode>): New.
4981         (aarch64_atomic_exchange<mode>_lse): New.
4982         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
4983         (aarch64_atomic_swp<mode>): New.
4985 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4987         * tree-inline.c (expand_call_inline): Use inform for extra note.
4988         Do not give a note with UNKNOWN_LOCATION.
4989         Replace input_location with gimple_location (stmt).
4990         Use true/false instead of TRUE/FALSE.
4992 2015-09-22  Tom de Vries  <tom@codesourcery.com>
4994         PR tree-optimization/67666
4995         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
4996         with single field non-conservative.
4998 2015-09-21  David S. Miller  <davem@davemloft.net>
5000         PR/67622
5001         Revert:
5002         2015-09-11  David S. Miller  <davem@davemloft.net>
5004         * config/sparc/constraints.md: Make "U" constraint a real register
5005         constraint.
5006         * config/sparc/sparc.c (TARGET_LRA_P): Define.
5007         (D_MODES, DF_MODES): Add missing cast.
5008         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5009         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5010         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5011         cost to 8.
5012         * config/sparc/sparc.h (PROMOTE_MODE): Define.
5013         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5014         provide these insn when flag_pic.
5016         2015-09-17  David S. Miller  <davem@davemloft.net>
5018         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
5019         Declare.
5020         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
5021         function.
5022         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5023         (HARD_REGNO_CALLER_SAVE_MODE): Define.
5024         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5025         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5026         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5027         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5028         provide when flag_pic.
5030 2015-09-21  Jeff Law  <law@redhat.com>
5032         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
5033         behavior.
5035 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5037         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
5039 2015-09-21  Richard Biener  <rguenther@suse.de>
5041         * passes.c (rest_of_decl_compilation): Do not call
5042         dwarf2out_early_global_decl for aliases.
5044 2015-09-21  Richard Biener  <rguenther@suse.de>
5046         PR debug/67664
5047         * dwarf2out.c (add_location_or_const_value_attribute): Remove
5048         attribute parameter.  Early exit if either DW_AT_const_value
5049         or DW_AT_location are present already.
5050         (gen_variable_die): Adjust caller.
5051         (dwarf2out_late_global_decl): Likewise.
5053 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
5055         PR target/67657
5056         * config/sh/sh.c (sh_remove_overlapping_post_inc,
5057         sh_peephole_emit_move_insn): Add new functions.
5058         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
5059         sh_peephole_emit_move_insn): Declere them.
5060         * config/sh/sh.md: Use them in various peephole2 patterns.
5062 2015-09-21  Richard Biener  <rguenther@suse.de>
5064         PR middle-end/67651
5065         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
5066         address with -fno-delete-null-pointer-checks.
5068 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
5070         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
5071         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
5072         (reduc_uplus_v16qi): Remove.
5074         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
5075         (reduc_<VEC_reduc_name>_v2df): Remove.
5076         (reduc_<VEC_reduc_name>_v4sf): Remove.
5077         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
5079         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
5080         gen_ function by removing * prefix.
5081         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
5083 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5085         PR middle-end/60832
5086         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5087         Print i_bound without converting it to a tree.
5089 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
5091         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
5092         operands[4] operands[5] swap with std::swap, removed tmp variable.
5093         (arm_evpc_neon_vzip): Replaced in0/in1 and
5094         out0/out1 swaps with std::swap, removed x variable.
5095         (arm_evpc_neon_vtrn): Replaced in0/int1 and
5096         out0/out1 swaos with std::swap, removed x variable.
5097         (arm_expand_vec_perm_const_1): Replaced
5098         d->op0/d->op1 swap with std::swap, removed x variable.
5099         (arm_evpc_neon_vuzp): Replaced in0/in1 and
5100         out0/out1 swaps with std::swap, removed x variable.
5102 2015-09-21  Jonathan Yong  <10walls@gmail.com>
5104         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
5105         sysroot/usr/lib/32api for additional win32 libraries,
5106         fixes failing Cygwin bootstrapping.
5108 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
5110         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
5112 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
5114         PR target/67126
5115         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
5116         (*mov_t_msb_neg): Rewrite negc pattern.
5118 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
5120         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
5121         immediate generation code.
5123 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
5125         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
5126         redundant immediate generation code.
5128 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
5130         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
5131         (AARCH64_NUM_BITMASKS): Remove.
5132         (aarch64_bitmasks_cmp): Remove.
5133         (aarch64_build_bitmask_table): Remove.
5135 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
5137         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
5138         slow immediate matching loops with a faster algorithm.
5140 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
5142         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
5143         faster algorithm.
5145 2015-09-20  Jeff Law  <law@redhat.com>
5147         PR tree-optimization/47679
5148         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
5149         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
5150         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
5151         (thread_through_normal_block): Use record_temporary_equivalences.
5153 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
5155         * coretypes.h (gimple): Change typedef to be a forward declaration.
5156         * gimple.h (gimple_statement_base): rename to gimple.
5157         * (all functions and types using gimple): Adjust.
5158         * *.[ch]: Likewise.
5160 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
5161             David Edelsohn  <dje.gcc@gmail.com>
5163         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
5164         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5165         (EH_FRAME_THROUGH_COLLECT2): Define.
5166         (EH_TABLES_CAN_BE_READ_ONLY): Define.
5167         (ASM_OUTPUT_DWARF_PCREL): Define.
5168         (ASM_OUTPUT_DWARF_DATAREL): Define.
5170 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
5172         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
5173         of TARGET_ELF32.
5175 2015-09-18  Jeff Law  <law@redhat.com>
5177         PR tree-optimization/47679
5178         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
5179         it here ...
5180         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
5181         object.  Update constructor.
5182         (pass_dominator::execute):  Corresponding chagnes to declaration
5183         and initialization of avail_exprs_stack.  Update constructor call
5184         for dom_opt_dom_walker object.
5185         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
5186         it down to children as needed.
5187         (record_equivalences_from_incoming_edge): Likewise.
5188         (eliminate_redundant_computations): Likewise.
5189         (record_equivalences_from_stmt): Likewise.
5190         (simplify_stmt_for_jump_threading): Likewise.
5191         (record_temporary_equivalences): Likewise.
5192         (optimize_stmt): Likewise.
5193         (dom_opt_dom_walker::thread_across_edge): Update access to
5194         avail_exprs_stack object and pass it to children as needed.
5195         (dom_opt_dom_walker::before_dom_children): Similarly.
5196         (dom_opt_dom_walker::after_dom_children): Similarly.
5197         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
5198         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
5199         Add avail_expr_stack argument.  Pass it to children as needed.
5200         (dummy_simplify): Likewise.
5201         (simplify_control_stmt_condition): Likewise.
5202         (thread_around_empty_blocks): Likewise.
5203         (thread_through_normal_block): Likewise.
5204         (thread_across_edge): Likewise.
5205         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5206         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
5208         PR tree-optimization/47679
5209         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
5210         it here ...
5211         (dom_opt_dom_walker): New private member holding the const_and_copies
5212         object.  Update constructor.
5213         (pass_dominator::execute): Corresponding changes to declaration
5214         and initialization of const_and_copies.  Update constructor call
5215         for the dom_opt_dom_walker object.
5216         (record_temporary_equivalences): Accept const_and_copies argument
5217         pass it down to children as needed.
5218         (record_equality): Likewise.
5219         (record_equivalences_from_incoming_edge): Likewise.
5220         (cprop_into_successor_phis, optimize_stmt): Likewise.
5221         (eliminate_redundant_computations): Likewise.
5222         (dom_opt_dom_walker::thread_across_edge): Update access to
5223         const_and_copies object and pass it to children as needed.
5224         (dom_opt_dom_walker::before_dom_children): Similarly.
5225         (dom_opt_dom_walker::after_dom_children): Similarly.
5227         PR tree-optimization/47679
5228         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
5229         it into the avail_exprs_stack class.
5230         (pass_dominator::execute): Corresponding changes to declaration
5231         and initialization of avail_exprs.  Pass avail_exprs to
5232         dump_dominator_optimization_stats.
5233         (record_cond): Extract avail_exprs from avail_exprs_stack.
5234         (lookup_avail_expr): Similarly.
5235         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
5236         position in file.
5237         (dump_dominator_optimization_stats): Make static and prototype.
5238         Add argument for the hash table to dump.
5239         (debug_dominator_optimization_stats): Remove.
5240         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
5241         prototype.
5242         (debug_dominator_optimization_stats): Similarly.
5243         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
5244         "void" in prototype for pop_to_marker method.  Add accessor method
5245         for the underlying avail_exprs table.
5247         * tree-ssa-threadedge.c: Remove trailing whitespace.
5249 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
5251         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
5252         unsigned.
5253         (pa_ldil_cint_p): Likewise.
5254         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
5255         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
5256         Update callers.
5257         * config/pa/pa.md: Likewise.
5259 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
5261         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
5262         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
5263         (diagnostic_show_locus): Likewise.
5264         (diagnostic_print_caret_line): Likewise.
5265         * diagnostic-show-locus.c: New file.
5267 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
5269         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
5270         "back" parameter. Declare label in #if block.
5272 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
5274         PR middle-end/67619
5275         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
5276         the address to a register.
5278 2015-09-18  Jeff Law  <law@redhat.com>
5280         PR tree-optimization/47679
5281         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
5282         * tree-ssa-dom.c: Remove unnecessary header includes.
5283         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
5284         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
5285         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
5286         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
5287         (pass_phi_only_cprop::execute): Likewise.
5288         (make_pass_phi_only_cprop): Likewise.
5289         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
5290         uses of file scoped statics by passing the required objects
5291         as parameters wherever needed.
5293 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
5294             David Edelsohn  <dje.gcc@gmail.com>
5296         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
5297         EH_FRAME_THROUGH_COLLECT2.
5298         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
5299         DW_EH_PE_datarel.
5300         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
5301         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
5302         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
5303         * except.c (switch_to_exception_section): Use a read-only section
5304         even if EH_FRAME_SECTION_NAME is undefined.
5305         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
5306         * collect2.c (write_c_file_stat): Provide dbase on AIX.
5307         (scan_prog_file): Don't export __dso_handle nor
5308         __gcc_unwind_dbase.
5309         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5310         (EH_TABLES_CAN_BE_READ_ONLY): Define.
5311         (ASM_OUTPUT_DWARF_PCREL): Define.
5312         (ASM_OUTPUT_DWARF_DATAREL): Define.
5313         (EH_FRAME_THROUGH_COLLECT2): Define.
5314         (EH_FRAME_IN_DATA_SECTION): Delete.
5315         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
5316         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
5317         Declare.
5318         (rs6000_asm_output_dwarf_datarel): Declare.
5319         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
5320         (rs6000_aix_asm_output_dwarf_datarel): New.
5321         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
5322         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
5323         (EH_FRAME_THROUGH_COLLECT2): Define.
5324         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
5325         (EH_FRAME_THROUGH_COLLECT2): Define.
5326         (EH_TABLES_CAN_BE_READ_ONLY): Define.
5327         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
5328         (EH_FRAME_THROUGH_COLLECT2): New.
5329         (ASM_OUTPUT_DWARF_DATAREL): New.
5330         * doc/tm.texi: Regenerate.
5332 2015-09-18  Richard Biener  <rguenther@suse.de>
5334         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
5335         we're in early phase.
5336         (schedule_generic_params_dies_gen): Likewise.
5337         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
5338         work as possible, retaining unhandled cases.
5339         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
5340         clear out generic_type_instances at the end.
5341         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
5342         (dwarf2out_early_finish): ... here.  Do most of
5343         gen_remaining_tmpl_value_param_die_attribute here.
5345 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
5347         PR tree-optimization/67283
5348         * tree-sra.c (type_consists_of_records_p): Rename to...
5349         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5350         (completely_scalarize_record): Rename to...
5351         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
5352         (scalarize_elem): New.
5353         (analyze_all_variable_accesses): Follow renamings.
5355 2015-09-18  Richard Biener  <rguenther@suse.de>
5357         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
5358         in early-dwarf.
5360 2015-09-18  Richard Biener  <rguenther@suse.de>
5362         PR tree-optimization/66142
5363         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
5364         treat MEM[&x] and x the same.
5365         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
5366         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
5367         when we simplified sth.
5368         (vn_reference_maybe_forwprop_address): Likewise.
5369         (valueize_refs_1): When we simplified through
5370         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
5371         set valueized_anything to true.
5372         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
5373         one ref kills the other instead of just a offset-based test.
5374         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
5375         for the operand_equal_p test to compare bases and also compare
5376         sizes.
5378 2015-09-17  Christian Bruel  <christian.bruel@st.com>
5380         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
5382 2015-09-17  Richard Henderson  <rth@redhat.com>
5384         PR libstdc++/65913
5385         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
5386         pointers that encode the alignment of the object.
5388 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5390         PR rtl-optimization/66790
5391         * df-problems.c (LIVE): Amend documentation.
5393 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
5395         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
5396         and optabs-tree.o.
5397         (GTFILES): Replace optabs.c with optabs-libfunc.c.
5398         * genopinit.c (main): Add an include guard to insn-opinit.h.
5399         Protect the rtx_code parts with NUM_RTX_CODE.
5400         * optabs.h: Split parts out to...
5401         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
5402         * optabs.c: Split parts out to...
5403         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
5404         * cilk-common.c: Include optabs-query.h rather than optabs.h.
5405         * fold-const.c: Likewise.
5406         * target-globals.c: Likewise.
5407         * tree-if-conv.c: Likewise.
5408         * tree-ssa-forwprop.c: Likewise.
5409         * tree-ssa-loop-prefetch.c: Likewise.
5410         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
5411         Remove unncessary include files.
5412         * tree-ssa-phiopt.c: Likewise.
5413         * tree-ssa-reassoc.c: Likewise.
5414         * tree-switch-conversion.c: Likewise.
5415         * tree-vect-data-refs.c: Likewise.
5416         * tree-vect-generic.c: Likewise.
5417         * tree-vect-loop.c: Likewise.
5418         * tree-vect-patterns.c: Likewise.
5419         * tree-vect-slp.c: Likewise.
5420         * tree-vect-stmts.c: Likewise.
5421         * tree-vrp.c: Likewise.
5422         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
5423         rather than optabs.h.
5424         * expr.c: Include optabs-tree.h.
5425         * function.c: Likewise.
5427 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5429         PR middle-end/65958
5430         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
5431         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
5432         * config/arm/arm.c: Include common/common-target.h.
5433         (use_return_insn): Return 0 if the static chain register was saved
5434         above a non-APCS frame.
5435         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
5436         (struct scratch_reg): New.
5437         (get_scratch_register_on_entry): New function.
5438         (release_scratch_register_on_entry): Likewise.
5439         (arm_emit_probe_stack_range): Likewise.
5440         (output_probe_stack_range): Likewise.
5441         (arm_expand_prologue): Factor out code dealing with the IP register
5442         for nested function and adjust it for stack checking.
5443         Invoke arm_emit_probe_stack_range if static builtin stack checking
5444         is enabled.
5445         (thumb1_expand_prologue): Sorry out if static builtin stack checking
5446         is enabled.
5447         (arm_expand_epilogue): Add the saved static chain register, if any, to
5448         the amount of pre-pushed registers to pop.
5449         (arm_frame_pointer_required): Return true if static stack checking is
5450         enabled and we want to catch the exception with the EABI unwinder.
5451         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
5452         (UNSPEC_PROBE_STACK_RANGE): Likewise.
5453         * config/arm/arm.md (probe_stack): New insn.
5454         (probe_stack_range): Likewise.
5456 2015-09-17  Richard Biener  <rguenther@suse.de>
5458         * genmatch.c (parser::parse_expr): Improve error message
5459         for mis-placed flags.
5461 2015-09-17  Richard Biener  <rguenther@suse.de>
5463         * passes.c (rest_of_decl_compilation): Always call early_global_decl
5464         debug hook when we created a varpool node.
5465         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
5466         dwarf2out_early_global_decl, when not just add location or
5467         value attributes to existing DIEs.
5469 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
5471         * config/aarch64/aarch64.md (copysigndf3): New.
5472         (copysignsf3): Likewise.
5474 2015-09-17  David S. Miller  <davem@davemloft.net>
5476         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
5477         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
5478         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5479         (HARD_REGNO_CALLER_SAVE_MODE): Define.
5480         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5481         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5482         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5483         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5484         provide when flag_pic.
5486 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5488         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
5489         object_allocator change.
5491 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
5493         PR tree-optimization/66388
5494         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
5495         (dump_iv): Dump no_overflow information.
5496         (alloc_iv): Initialize new field for struct iv.
5497         (mark_bivs): Count number of no_overflow bivs.
5498         (find_deriving_biv_for_expr, record_biv_for_address_use): New
5499         functions.
5500         (idx_find_step): Call new functions above.
5501         (add_candidate_1, add_candidate): New paramter.
5502         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
5503         (get_computation_aff): Simplify convertion of cand for BIV.
5504         (get_computation_cost_at): Step cand's base if necessary.
5506 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
5508         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
5509         parameter.
5510         (tree_simplify_using_condition): Ditto.
5511         (simplify_using_initial_conditions): Ditto.
5512         (loop_exits_before_overflow): Pass new argument to function
5513         simplify_using_initial_conditions.  Remove case for type conversions
5514         simplification.
5515         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
5516         parameter.
5517         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
5518         in iv base using loop initial conditions.
5520 2015-09-16  Jeff Law  <law@redhat.com>
5522         PR tree-optimization/47679
5523         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
5524         (free_all_edge_infos): Use it.
5525         (allocate_edge_info): Free preexisting edge info data.
5526         (pass_dominator::execute): Set up initial edge info structures.
5527         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
5528         thread_across_edge.
5529         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
5530         If non-null, then push/pop markers appropriately.
5531         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5532         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
5533         thread-across_edge.
5535 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
5537         * config/ft32/ft32.c: Fix the memory address space predicate.
5539 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
5541         PR target/67573
5542         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
5543         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
5545 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5547         * toplev.h (check_global_declaration): Remove declaration.
5548         * toplev.c (check_global_declaration): Move to ...
5549         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
5550         (analyze_functions): Update call.
5552 2015-09-16  David S. Miller  <davem@davemloft.net>
5554         * lra-constraints.c (simplify_operand_subreg): Do not assume that
5555         lowpart of a SUBREG has offset zero.
5557 2015-09-16  Jeff Law  <law@redhat.com>
5559         PR tree-optimization/47679
5560         * tree-ssa-dom.c (enum expr_kind): Moved from here to
5561         tree-ssa-scopedtables.h.
5562         (struct hashable_expr, class expr_hash_elt): Likewise.
5563         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
5564         Move associated methods into tree-ssa-scopedtables.c.
5565         (avail_expr_hash, initialize_expr_from_cond): Similarly.
5566         (hashable_expr_equal_p, add_expr_commutative): Likewise.
5567         (add_hashable_expr): Likewise.
5568         (record_cond): Delete element directly.
5569         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
5570         private copy ctor and assignment operator methods.
5571         (expr_elt_hasher): Inline trivial methods.
5572         (initialize_expr_from_cond): Prototype.
5573         * tree-ssa-scopedtables.c: Add necessary includes, functions and
5574         methods that were previously in tree-ssa-dom.c.  Improve various
5575         comments.
5577 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
5579         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
5581 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
5583         PR bootstrap/67587
5584         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
5585         fixup_partitions.
5587 2015-09-16  Richard Biener  <rguenther@suse.de>
5589         PR middle-end/67253
5590         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
5591         location of possibly shared trees.
5593 2015-09-16  Richard Biener  <rguenther@suse.de>
5595         PR middle-end/67271
5596         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
5598 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
5600         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
5601         offset and size computations instead of HOST_WIDE_INT.
5603 2015-09-16  Richard Biener  <rguenther@suse.de>
5605         PR middle-end/67442
5606         * fold-const.c (extract_muldiv_1): Properly extend multiplication
5607         result before builting a tree via wide_int_to_tree.
5609 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
5611         * Makefile.in: Add memory-block.cc
5612         (pool_allocator::initialize): Use fixed block size.
5613         (pool_allocator::release): Use memory_block_pool.
5614         (pool_allocator::allocate): Likewise.
5615         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
5616         object pools.
5617         * cfg.c (initialize_original_copy_tables): Likewise.
5618         * cselib.c (elt_list_pool, elt_loc_list_pool,
5619         cselib_val_pool): Likewise.
5620         * df-problems.c (df_chain_alloc): Likewise.
5621         * df-scan.c (df_scan_alloc): Likewise.
5622         * dse.c (cse_store_info_pool, rtx_store_info_pool,
5623         read_info_type_pool, insn_info_type_pool, bb_info_pool,
5624         group_info_pool, deferred_change_pool): Likewise.
5625         * et-forest.c (et_nodes, et_occurrences): Likewise.
5626         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
5627         ipcp_agg_lattice_pool): Likewise.
5628         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
5629         * ipa-profile.c (histogram_pool): Likewise.
5630         * ipa-prop.c (ipa_refdesc_pool): Likewise.
5631         * ira-build.c (live_range_pool, allocno_pool, object_pool,
5632         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
5633         * ira-color.c (update_cost_record_pool): Likewise.
5634         * lra-lives.c (lra_live_range_pool): Likewise.
5635         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
5636         * memory-block.cc: New file.
5637         * memory-block.h: New file.
5638         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
5639         * sched-deps.c (sched_deps_init): Likewise.
5640         * sel-sched-ir.c (sched_lists_pool): Likewise.
5641         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
5642         * tree-sra.c (access_pool): Likewise.
5643         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5644         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
5645         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
5646         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5647         * tree-ssa-strlen.c (strinfo_pool): Likewise.
5648         * tree-ssa-structalias.c (variable_info_pool): Likewise.
5649         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
5650         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
5652 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
5654         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
5655         definition.
5656         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
5657         call0 ABI.
5659 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
5661         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
5662         to pass TLS call argument, according to current ABI.
5663         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
5664         callx0 for TLS call, according to current ABI.
5666 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5668         * tree-eh.c (lower_try_finally_dup_block): Clear location information
5669         on stack restore statements.
5670         (decide_copy_try_finally): Do not consider a stack restore statement as
5671         coming from sources.
5673 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
5675         * config/alpha/alpha.c (alpha_expand_block_clear): Use
5676         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
5678 2015-09-15  Jeff Law  <law@redhat.com>
5680         PR tree-optimization/47679
5681         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
5682         methods and private members.
5683         (avail_exprs_stack): Similarly.  Change type of global
5684         from a pair of expr_hash_elt_t to the new class.
5685         (expr_elt_hasher::hash): Corresponding changes.
5686         (expr_elt_hasher::equal): Similarly.
5687         (avail_expr_hash): Similarly.
5688         (pass_dominator::execute): Similarly.
5689         (dom_opt_dom_walker::thread_across_edge): Similarly.
5690         (record_cond): Similarly.
5691         (dom_opt_dom_walker::before_dom_children): Similarly.
5692         (dom_opt_dom_walker::after_dom_children): Similarly.
5693         (lookup_avail_expr): Likewise.
5694         (initialize_hash_element): Now a expr_hash_elt constructor.
5695         (initialize_hash_element_from_expr): Similarly.
5696         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
5697         (free_expr_hash_elt): Call dtor for the element.
5698         (remove_local_expressions_from_table): Now the "pop_to_marker"
5699         method in the available_exprs_stack class.
5700         (avail_expr_stack::record_expr): Method factored out.
5701         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
5702         Fix formatting.
5703         (hashable_expr_equal_p): Fix formatting.
5705 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
5707         * input.h (location_get_source_line): Drop "expanded_location"
5708         param in favor of a file and line number.
5709         * input.c (location_get_source_line): Likewise.
5710         (dump_location_info): Update for change in signature of
5711         location_get_source_line.
5712         * diagnostic.c (diagnostic_print_caret_line): Likewise.
5714 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5716         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
5717         Bump to 4KB for SJLJ exceptions.
5718         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
5719         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
5720         * doc/tm.texi: Regenerate.
5722 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5724         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
5725         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
5726         Update prototype.
5728 2015-09-15  Richard Biener  <rguenther@suse.de>
5730         PR tree-optimization/67470
5731         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
5732         structure for PHI hoisting by inserting a forwarder block
5733         if appropriate.
5735 2015-09-15  Christian Bruel  <christian.bruel@st.com>
5737         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
5738         (arm_option_print): New function.
5740 2015-09-15  Christian Bruel  <christian.bruel@st.com>
5742         PR target/52144
5743         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
5744         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
5745         Remove flags parameter.
5746         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
5747         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
5748         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
5749         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
5750         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
5751         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
5752         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
5753         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
5755 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5757         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
5759         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
5760         AARCH64_VALID_SIMD_DREG_MODE.
5762 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5764         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
5765         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
5766         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
5767         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
5768         aarch64_ld4_lane<mode>): Combine together, making...
5769         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5770         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5771         aarch64_st4_lane<mode>): Combine together, making...
5772         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5773         * config/aarch64/iterators.md (nregs): Add comment.
5775 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5777         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
5778         Change operand mode from <V_TWO_ELEM> to BLK.
5779         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
5780         (aarch64_vec_store_lanesoi_lane<mode): Likewise
5781         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5782         (aarch64_ld2_lane<mode>): Likewise.
5783         (aarch64_st2_lane<VQ:mode>): Likewise.
5784         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
5786 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5788         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
5789         Change operand mode from <V_FOUR_ELEM> to BLK.
5790         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
5791         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
5792         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5793         (aarch64_ld4_lane<mode>): Likewise.
5794         (aarch64_st4_lane<mode>): Likewise.
5795         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
5797 2015-09-15  Richard Biener  <rguenther@suse.de>
5799         PR middle-end/67563
5800         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
5801         transfer EH info from old to new stmt.
5802         (replace_call_with_value): Likewise.
5803         (replace_call_with_call_and_fold): Likewise.
5804         (gimple_fold_builtin_memory_op): Likewise.
5805         (gimple_fold_builtin_memset): Likewise.
5806         (gimple_fold_builtin_stpcpy): Likewise.
5807         (gimple_fold_call): Likewise.
5809 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5811         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
5812         comment.
5813         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
5814         (aarch64_simd_intEI_type_node): Likewise.
5815         (aarch64_simd_builtin_std_type): Remove EImode case.
5816         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
5817         * config/aarch64/aarch64-modes.def: Remove EImode.
5819 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5821         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
5822         Change operand mode from <V_THREE_ELEM> to BLK.
5823         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
5824         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
5825         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5826         (aarch64_ld3_lane<mode>): Likewise.
5827         (aarch64_st3_lane<mode>): Likewise.
5828         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
5830 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5832         * config/aarch64/aarch64-simd.md
5833         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
5834         Change all TImode operands to BLKmode.
5835         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
5836         Change all EImode operands to BLKmode.
5837         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
5838         Change all OImode operands to BLKmode.
5840         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
5841         and call set_mem_size.
5842         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
5844         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
5846 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5848         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
5849         to...
5850         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
5852         (vec_store_lanesci_lane<mode>): Rename to...
5853         (aarch64_vec_store_lanesci_lane<mode>): ...this.
5855         (vec_store_lanesxi_lane<mode>): Rename to...
5856         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
5858         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5859         aarch64_st4_lane<mode>): Follow renaming.
5861 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5863         * config/s390/s390.c (s390_const_operand_ok): Add missing
5864         brackets.
5866 2015-09-15  Richard Biener  <rguenther@suse.de>
5868         PR lto/67568
5869         * lto-streamer.h (lto_location_cache::current_sysp): Properly
5870         initialize.
5871         * lto-streamer-out.c (clear_line_info): Likewise.
5873 2015-09-15  Richard Biener  <rguenther@suse.de>
5875         * doc/match-and-simplify.texi: Fix wording.
5877 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
5879         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
5880         unnecessary type conversion in op1.
5882 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
5884         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
5885         (dup_block_and_redirect): Delete function.
5886         (can_dup_for_shrink_wrapping): New function.
5887         (fix_fake_fallthrough_edge): New function.
5888         (try_shrink_wrapping): Rewrite function.
5889         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
5891 2015-09-14  Rich Felker  <dalias@libc.org>
5893         * configure.ac: Change target pattern for sh TLS support
5894         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
5895         * configure: Regenerate.
5897 2015-09-14  Jeff Law  <law@redhat.com>
5899         PR tree-optimization/47679
5900         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
5901         type rather than void *.
5903 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5905         PR fortran/67460
5906         * diagnostic.c (diagnostic_initialize): Do not set
5907         some_warnings_are_errors.
5908         (diagnostic_finish): Use DK_WERROR count instead.
5909         (diagnostic_report_diagnostic): Do not set
5910         some_warnings_are_errors.
5911         * diagnostic.h (struct diagnostic_context): Remove
5912         some_warnings_are_errors.
5914 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
5916         * config/sparc/predicates.md (const_all_ones_operand): Use
5917         CONSTM1_RTX to simplify definition.
5919 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
5921         PR target/67061
5922         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
5923         Handle call insns.
5925 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
5927         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
5928         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
5929         OPT_fshow_column to handled saved option cases.
5930         (append_compiler_options): Do not skip the above added options.
5932 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5934         PR target/63304
5935         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
5936         nopcrelative_literal_loads.
5937         (aarch64_classify_address): Likewise.
5938         (aarch64_constant_pool_reload_icode): Define.
5939         (aarch64_secondary_reload): Handle secondary reloads for
5940         literal pools.
5941         (aarch64_override_options): Handle nopcrelative_literal_loads.
5942         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
5943         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5944         Define.
5945         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5946         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
5947         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
5948         predicate.
5949         * doc/invoke.texi (mpc-relative-literal-loads): Document.
5951 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
5953         PR middle-end/67401
5954         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
5955         sync_compare_and_swap_optab libcall to target_oval.
5957 2015-09-14  Marek Polacek  <polacek@redhat.com>
5959         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
5960         value.
5961         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
5963 2015-09-11  Mark Wielaard  <mjw@redhat.com>
5965         PR c/28901
5966         * toplev.c (check_global_declaration): Check and use
5967         warn_unused_const_variable.
5968         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
5969         (-Wunused-variable): Remove non-constant. For C implies
5970         -Wunused-const-variable.
5971         (-Wunused-const-variable): New.
5973 2015-09-14  Richard Biener  <rguenther@suse.de>
5975         * doc/match-and-simplify.texi: Update for changed syntax
5976         of inner ifs and the new switch expression.
5978 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
5980         * config/i386/haswell.md: New file describing Haswell pipeline.
5981         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
5982         haswell-like processors.
5983         (ix86_reassociation_width): Increase reassociation width for 64-bit
5984         Haswell processor family.
5985         * config/i386/i386.md: Introduce haswell cpu and include new md file.
5987 2015-09-14  Richard Biener  <rguenther@suse.de>
5989         * doc/match-and-simplify.texi: Fixup some formatting issues
5990         and document the 's' flag.
5992 2015-09-13  Olivier Hainque  <hainque@adacore.com>
5993             Eric Botcazou  <ebotcazou@adacore.com>
5995         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
5996         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
5997         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
5998         (TARGET_CPU_gr5): Likewise.
5999         (TARGET_CPU_gr6): Likewise.
6000         (MULTILIB_DEFAULTS): Likewise.
6001         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
6002         for mcpu=gr5 and mcpu=gr6.
6003         (MULTILIB_DIRNAMES): Adjust accordingly.
6005 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6007         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
6008         (mem_ref_p): Likewise.
6009         (outermost_indep_loop): Adjust.
6010         (mem_ref_in_stmt): Likewise.
6011         (determine_max_movement): Likewise.
6012         (mem_ref_alloc): Likewise.
6013         (record_mem_ref_loc): Likewise.
6014         (set_ref_stored_in_loop): Likewise.
6015         (mark_ref_stored): Likewise.
6016         (gather_mem_refs_stmt): Likewise.
6017         (mem_refs_may_alias_p): Likewise.
6018         (for_all_locs_in_loop): Likewise.
6019         (struct rewrite_mem_ref_loc): Likewise.
6020         (rewrite_mem_refs): Likewise.
6021         (struct first_mem_ref_loc_1): Likewise.
6022         (first_mem_ref_loc): Likewise.
6023         (struct sm_set_flag_if_changed): Likewise.
6024         (execute_sm_if_changed_flag_set): Likewise.
6025         (execute_sm): Likewise.
6026         (hoist_memory_references):
6027         (struct ref_always_accessed): Likewise.
6028         (ref_always_accessed_p): Likewise.
6029         (refs_independent_p): Likewise.
6030         (record_dep_loop): Likewise.
6031         (ref_indep_loop_p_1): Likewise.
6032         (ref_indep_loop_p_2): Likewise.
6033         (ref_indep_loop_p): Likewise.
6034         (can_sm_ref_p): Likewise.
6035         (find_refs_for_sm): Likewise.
6036         (tree_ssa_lim_finalize): Likewise.
6038 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6040         * dwarf2out.c (dw_attr_ref): Remove typedef.
6041         (dw_line_info_ref): Likewise.
6042         (pubname_ref): Likewise.
6043         (dw_ranges_ref): Likewise.
6044         (dw_ranges_by_label_ref): Likewise.
6045         (comdat_type_node_ref): Likewise.
6046         (get_AT): Adjust.
6047         (get_AT_low_pc): Likewise.
6048         (get_AT_hi_pc): Likewise.
6049         (get_AT_string): Likewise.
6050         (get_AT_flag): Likewise.
6051         (get_AT_unsigned): Likewise.
6052         (get_AT_ref): Likewise.
6053         (get_AT_file): Likewise.
6054         (remove_AT): Likewise.
6055         (print_die): Likewise.
6056         (check_die): Likewise.
6057         (die_checksum): Likewise.
6058         (attr_checksum_ordered): Likewise.
6059         (struct checksum_attributes): Likewise.
6060         (collect_checksum_attributes): Likewise.
6061         (die_checksum_ordered): Likewise.
6062         (same_die_p): Likewise.
6063         (is_declaration_die): Likewise.
6064         (clone_die): Likewise.
6065         (clone_as_declaration): Likewise.
6066         (copy_declaration_context): Likewise.
6067         (break_out_comdat_types): Likewise.
6068         (copy_decls_walk): Likewise.
6069         (output_location_lists): Likewise.
6070         (external_ref_hasher::hash): Likewise.
6071         (optimize_external_refs_1): Likewise.
6072         (build_abbrev_table): Likewise.
6073         (size_of_die): Likewise.
6074         (unmark_all_dies): Likewise.
6075         (size_of_pubnames): Likewise.
6076         (output_die_abbrevs): Likewise.
6077         (output_die): Likewise.
6078         (output_pubnames): Likewise.
6079         (add_ranges_num): Likewise.
6080         (add_ranges_by_labels): Likewise.
6081         (add_high_low_attributes): Likewise.
6082         (gen_producer_string): Likewise.
6083         (dwarf2out_set_name): Likewise.
6084         (new_line_info_table): Likewise.
6085         (prune_unused_types_walk_attribs): Likewise.
6086         (prune_unused_types_update_strings): Likewise.
6087         (prune_unused_types): Likewise.
6088         (resolve_addr): Likewise.
6089         (optimize_location_lists_1): Likewise.
6090         (index_location_lists): Likewise.
6091         (dwarf2out_finish): Likewise.
6093 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6095         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
6097 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6099         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
6100         (dump_asserts_for): Adjust.
6101         (register_new_assert_for): Likewise.
6102         (process_assert_insertions): Likewise.
6103         (insert_range_assertions): Likewise.
6105 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6107         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
6108         and remove typedef.
6109         (new_temp_expr_table): Adjust.
6110         (free_temp_expr_table): Likewise.
6111         (version_to_be_replaced_p): Likewise.
6112         (make_dependent_on_partition): Likewise.
6113         (add_to_partition_kill_list): Likewise.
6114         (remove_from_partition_kill_list): Likewise.
6115         (add_dependence): Likewise.
6116         (finished_with_expr): Likewise.
6117         (process_replaceable): Likewise.
6118         (kill_expr): Likewise.
6119         (kill_virtual_exprs): Likewise.
6120         (mark_replaceable): Likewise.
6121         (find_replaceable_in_bb): Likewise.
6122         (find_replaceable_exprs): Likewise.
6123         (debug_ter): Likewise.
6125 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6127         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
6128         (struct btr_user): Rename from btr_user_s.
6129         (struct btr_def): Rename from btr_def_s.
6130         (find_btr_def_group): Adjust.
6131         (add_btr_def): Likewise.
6132         (new_btr_user): Likewise.
6133         (note_other_use_this_block): Likewise.
6134         (compute_defs_uses_and_gen): Likewise.
6135         (link_btr_uses): Likewise.
6136         (build_btr_def_use_webs): Likewise.
6137         (block_at_edge_of_live_range_p): Likewise.
6138         (btr_def_live_range): Likewise.
6139         (combine_btr_defs): Likewise.
6140         (move_btr_def): Likewise.
6141         (migrate_btr_def): Likewise.
6142         (migrate_btr_defs): Likewise.
6144 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6146         * var-tracking.c (shared_hash_def): Rename to shared_hash.
6147         (shared_hash): Remove typedef.
6148         (struct dataflow_set): Adjust.
6149         (shared_hash_unshare): Likewise.
6150         (dataflow_set_merge): Likewise.
6151         (vt_initialize): Likewise.
6152         (vt_finalize): Likewise.
6154 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6156         * var-tracking.c (struct location_chain): Rename from
6157         location_chain_def.
6158         (struct variable_part): Adjust.
6159         (variable_htab_free): Likewise.
6160         (unshare_variable): Likewise.
6161         (get_init_value): Likewise.
6162         (get_addr_from_local_cache): Likewise.
6163         (drop_overlapping_mem_locs): Likewise.
6164         (val_reset): Likewise.
6165         (struct variable_union_info): Likewise.
6166         (variable_union): Likewise.
6167         (find_loc_in_1pdv): Likewise.
6168         (insert_into_intersection): Likewise.
6169         (intersect_loc_chains): Likewise.
6170         (canonicalize_loc_order_check): Likewise.
6171         (canonicalize_values_mark): Likewise.
6172         (canonicalize_values_star): Likewise.
6173         (canonicalize_vars_star): Likewise.
6174         (variable_merge_over_cur): Likewise.
6175         (remove_duplicate_values): Likewise.
6176         (variable_post_merge_new_vals): Likewise.
6177         (variable_post_merge_perm_vals): Likewise.
6178         (find_mem_expr_in_1pdv): Likewise.
6179         (dataflow_set_preserve_mem_locs): Likewise.
6180         (dataflow_set_remove_mem_locs): Likewise.
6181         (variable_part_different_p): Likewise.
6182         (onepart_variable_different_p): Likewise.
6183         (find_src_set_src): Likewise.
6184         (dump_var): Likewise.
6185         (set_slot_part): Likewise.
6186         (clobber_slot_part): Likewise.
6187         (delete_slot_part): Likewise.
6188         (vt_expand_var_loc_chain): Likewise.
6189         (emit_note_insn_var_location): Likewise.
6190         (vt_finalize): Likewise.
6192 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6194         * dse.c (store_info_t): Remove typedef.
6195         (group_info_t): Likewise.
6196         (const_group_info_t): Likewise.
6197         (deferred_change_t): Likewise.
6198         (get_group_info): Adjust.
6199         (free_store_info): Likewise.
6200         (canon_address): Likewise.
6201         (clear_rhs_from_active_local_stores): Likewise.
6202         (record_store): Likewise.
6203         (replace_read): Likewise.
6204         (check_mem_read_rtx): Likewise.
6205         (scan_insn): Likewise.
6206         (remove_useless_values): Likewise.
6207         (dse_step1): Likewise.
6208         (dse_step2_init): Likewise.
6209         (dse_step2_nospill): Likewise.
6210         (scan_stores_nospill): Likewise.
6211         (scan_reads_nospill): Likewise.
6212         (dse_step3_exit_block_scan): Likewise.
6213         (dse_step3): Likewise.
6214         (dse_step5_nospill): Likewise.
6215         (dse_step6): Likewise.
6217 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6219         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
6220         (alias_set_entry): Remove typedef.
6221         (alias_set_subset_of): Adjust.
6222         (alias_sets_conflict_p): Likewise.
6223         (init_alias_set_entry): Likewise.
6224         (get_alias_set): Likewise.
6225         (new_alias_set): Likewise.
6226         (record_alias_subset): Likewise.
6228 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
6230         * doc/install.texi (Downloading the source): Mark up
6231         contrib/download_prerequisites properly and drop leading "./".
6233 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6235         * config/arc/arc.h: Remove define of STRUCT_VALUE.
6236         * config/lm32/lm32.h: Likewise.
6237         * config/mep/mep.h: Likewise.
6238         * config/visium/visium.h: Likewise.
6239         * system.h: Poison STRUCT_VALUE macro.
6241 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
6243         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
6244         CONSTANT_P operands.
6246 2015-09-11  David S. Miller  <davem@davemloft.net>
6248         * config/sparc/constraints.md: Make "U" constraint a real register
6249         constraint.
6250         * config/sparc/sparc.c (TARGET_LRA_P): Define.
6251         (D_MODES, DF_MODES): Add missing cast.
6252         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6253         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6254         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6255         cost to 8.
6256         * config/sparc/sparc.h (PROMOTE_MODE): Define.
6257         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6258         provide these insn when flag_pic.
6260 2015-09-11  Jeff Law  <law@redhat.com>
6262         PR tree-optimization/47679
6263         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
6264         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
6265         member with m_.  Update inline member functions as necessary.  Add
6266         toplevel comment.
6267         * tree-ssa-scopedtables.c: Update const_and_copies's member
6268         functions to use m_ prefix to access the stack.
6270 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
6272         * graphite-optimize-isl.c (disable_tiling): Remove.
6273         (get_schedule_for_band): Do not use disable_tiling.
6274         (get_prevector_map): Delete function.
6275         (enable_polly_vector): Remove.
6276         (get_schedule_for_band_list): Remove dead code.
6278 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
6280         * graphite-optimize-isl.c (get_tile_map): Refactor.
6281         (get_schedule_for_band): Same.
6282         (getScheduleForBand): Same.
6283         (get_prevector_map): Same.
6284         (get_schedule_for_band_list): Same.
6285         (get_schedule_map): Same.
6286         (get_single_map): Same.
6287         (apply_schedule_map_to_scop): Same.
6288         (optimize_isl): Same.
6290 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6292         PR target/63304
6293         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
6294         (movtf): Delete.
6295         * config/aarch64/iterators.md (GPF_TF_F16): New.
6296         (GPF_F16): Delete.
6298 2015-09-10  Nathan Sidwell  <nathan@acm.org>
6300         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
6301         (nvptx_reorg): Adjust comments.
6303 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
6305         PR bootstrap/67363
6306         * configure.ac: Check if setenv and unsetenv are declared.
6307         * configure: Rebuild.
6308         * config.in: Rebuild.
6309         * system.h: Declare setenv and unsetenv if not declared.
6311 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6313         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
6314         commentary to simplify permute mask adjustment equation.
6315         (special_handling_values): Add SH_VPERM.
6316         (const_load_sequence_p): New function.
6317         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
6318         the mask loaded from the constant pool.
6319         (adjust_vperm): New function.
6320         (handle_special_swappables): Call adjust_vperm.
6321         (dump_swap_insn_table): Handle SH_VPERM.
6323 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
6325         * shrink-wrap.c (requires_stack_frame_p): Remove static.
6326         * shrink-wrap.h (requires_stack_frame_p): Put back.
6328 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
6330         * reload1.c (elimination_costs_in_insn): Locally turn
6331         -Wmaybe-uninitialized into a warning.
6333 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
6335         * shrink-wrap.c (requires_stack_frame_p): Make static.
6336         (prepare_shrink_wrap): Likewise.
6337         (dup_block_and_redirect): Likewise.
6338         * shrink-wrap.h: Remove declarations of those functions.
6340 2015-09-10  Mark Wielaard  <mjw@redhat.com>
6342         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
6344 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
6346         PR target/67506
6347         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
6348         missing simplify_gen_subreg.
6350 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6352         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
6353         the vector element is bigger than 64 bit.
6355 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6357         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
6358         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
6360 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6362         * config/s390/s390.c: Add V1TImode to constant pool modes.
6364 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6366         PR target/67439
6367         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
6368         predicate.  Set predicable_short_it attr to "no".
6370 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
6372         PR rtl-optimization/67421
6373         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
6374         left wide shift tranformation.
6376 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
6378         * common/config/arc/arc-common.c: Remove references to A5.
6379         * config/arc/arc-opts.h: Likewise.
6380         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
6381         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
6382         * config/arc/t-arc-newlib: Likewise.
6384 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
6386         * config/arc/arc.md (length): Fix attribute length for conditional
6387         executed instructions with long immediate.
6389 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6391         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
6392         type for second alternative.
6394 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
6396         * doc/invoke.texi (Downloading GCC): Mention
6397         contrib/download_prerequisites script.
6399 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
6401         PR c++/67523
6402         * gimplify.c (gimplify_omp_for): If inner stmt is not found
6403         for combined loop, assert seen_error () and return GS_ERROR.
6405         PR middle-end/67521
6406         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
6407         if decl is already in outer->variables.
6409         PR middle-end/67517
6410         * gimplify.c (gimplify_scan_omp_clauses): Instead of
6411         asserting that decl is not specified in octx->variables,
6412         break out of the loop if it is.
6414         PR c++/67514
6415         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
6416         iterator is not explicitly determined, but is defined inside
6417         of the combined workshare region, handle it like if it has
6418         DECL_EXPR in OMP_FOR_PRE_BODY.
6420 2015-09-09  Nathan Sidwell  <nathan@acm.org>
6422         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
6423         (*cmp<mode>): Add assembler spacing.
6424         (setcc_int<mode>, set_cc_float<mode>): Likewise.
6425         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
6426         level.
6427         (write_func_decl_from_insn): Refactor argument loops & comma emission.
6428         (nvptx_expand_call): Likewise.
6429         (nvptx_output_call_insn): Likewise.
6430         (nvptx_reorg_subreg): Add spacing.
6432 2015-09-09  Marek Polacek  <polacek@redhat.com>
6434         PR middle-end/67512
6435         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
6436         for comparisons.
6438 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
6440         PR c++/53184
6441         * doc/invoke.texi ([Wsubobject-linkage]): Document.
6443 2015-09-09  Tom de Vries  <tom@codesourcery.com>
6445         * params-list.h: Add missing copyright notice.
6447 2015-09-09  Nathan Sidwell  <nathan@acm.org>
6449         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
6450         sel_truesi, not andsi.
6452 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6454         * config/arm/arm.md (*subsi3_compare0): Rename to...
6455         (subsi3_compare0): ... This.
6456         (modsi3): New define_expand.
6457         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
6458         when operand is power of 2.
6460 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6462         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
6463         (*neg<mode>2_compare0): Rename to...
6464         (neg<mode>2_compare0): ... This.
6465         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
6466         Move check for speed inside the if-then-elses.  Reflect
6467         CSNEG sequence in MOD by power of 2 case.
6469 2015-09-09  Alan Modra  <amodra@gmail.com>
6471         PR target/67378
6472         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
6473         reload replacement for PRE_MODIFY address reg.
6475 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
6477         PR tree-optimization/53852
6478         * config.in: Regenerate.
6479         * configure: Regenerate.
6480         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
6481         * graphite-optimize-isl.c (optimize_isl): Stop computation when
6482         PARAM_MAX_ISL_OPERATIONS is reached.
6483         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
6484         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
6485         result equal to isl_stat_ok as the status now can be isl_error_quota.
6486         (subtract_commutative_associative_deps): Same.
6487         (compute_deps): Same.
6489 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
6490             Sebastian Pop  <s.pop@samsung.com>
6492         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6493         Return the parameter if it was saved in corresponding
6494         parameter_rename_map of the region.
6495         (copy_def): Copy def from sese region to the newly created region.
6496         (copy_internal_parameters): Copy all the internal parameters defined
6497         within a region to the newly created region.
6498         (graphite_regenerate_ast_isl): Copy parameters to the new region before
6499         translating isl to gimple.
6500         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
6501         the loop-nest does not have any data-references.
6502         (build_graphite_scops): Create a scop only when there is at least one
6503         loop inside it.
6504         (contains_only_close_phi_nodes): Deleted.
6505         (print_graphite_scop_statistics): Deleted
6506         (print_graphite_statistics): Deleted
6507         (limit_scops): Deleted.
6508         (build_scops): Removed call to limit_scops.
6509         * sese.c (new_sese): Construct.
6510         (free_sese): Destruct.
6511         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
6512         added.
6513         (set_rename): Pass sese region so that parameters inside the region can
6514         be added to its parameter_rename_map.
6515         (rename_uses): Pass sese region.
6516         (graphite_copy_stmts_from_block): Do not copy parameters that have been
6517         generated in the header of the scop. For each SSA_NAME in the
6518         parameter_rename_map rename its usage.
6519         (invariant_in_sese_p_rec): Return false if tree t is defined outside
6520         sese region.
6521         (scalar_evolution_in_region): If the tree t is invariant just return t.
6522         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
6523         struct sese to keep track of all the parameters which need renaming.
6524         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
6525         any data-refs.
6526         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
6528 2015-09-08  Tom de Vries  <tom@codesourcery.com>
6530         * Makefile.in (generated_files): Add params.list.
6531         (params.list, s-params.list): Add rule.
6532         * params.h (enum compiler_param): Include params-list.h.  Move define
6533         DEFPARAM, include params.def and undef DEFPARAM ...
6534         * params-list.h: ... here.  New file.
6536 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
6538         * pretty-print.h (printer_fn): Fix typo in comment.
6540 2015-09-07  Jeff Law  <law@redhat.com>
6542         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
6544 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6546         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
6547         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
6548         (arm_neon_fp16_hw): New.
6550 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6552         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
6553         UNITS_PER_WORD >= 4.
6555 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6557         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
6558         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
6559         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
6560         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
6561         (aarch64_float_extend_lo_v2df): Rename to...
6562         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
6564         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
6565         (float_extend_lo): Add v4sf.
6567         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
6568         * config/aarch64/iterators.md (VQ_HSF): New iterator.
6569         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
6570         (Vwide): New mode_attr.
6572 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6574         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
6575         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
6576         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
6577         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
6578         V4HF and V8HF variants to iterator.
6580         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
6582         * config/aarch64/iterators.md (VDQF_F16): New.
6583         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
6585 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6587         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
6588         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6589         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
6590         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
6591         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
6592         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6593         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
6594         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
6595         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
6596         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
6597         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
6598         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6599         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
6600         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
6601         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
6602         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
6603         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
6604         vld1q_dup_f16): New.
6606 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6608         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
6609         Reparameterize to...
6610         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
6611         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
6612         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
6614         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
6615         v8hf variant.
6616         (float_truncate_lo_): Use BUILTIN_VDF iterator.
6618         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
6620         * config/aarch64/iterators.md (VDF, Vdtype): New.
6621         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
6623 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6625         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
6626         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
6627         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
6628         Add __builtin_aarch64_simd_hf.
6629         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
6630         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
6631         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
6632         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
6633         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
6634         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
6635         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
6636         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
6637         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
6639         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
6640         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
6641         (VDC, Vdbl): Add V4HF.
6643 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6645         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
6646         V4HFmode and V8HFmode.
6647         (aarch64_split_simd_move): Add case for V8HFmode.
6648         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
6649         (aarch64_simd_builtin_std_type): Handle HFmode.
6650         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
6652         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
6653         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
6654         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
6656         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
6657         Float16x8_t.
6659         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
6660         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
6661         New typedefs.
6662         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
6663         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
6664         vst1q_lane_f16): New.
6665         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
6666         (VALLDI_F16, VALL_F16): New.
6667         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
6668         Add cases for V4HF and V8HF.
6669         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
6671 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6673         * config/arm/arm-builtins.c (VAR11, VAR12): New.
6674         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
6675         vld4_dup): Add v4hf variant.
6676         (vget_high, vget_low): Add v8hf variant.
6677         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
6678         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
6679         v4hf and v8hf variants.
6681         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
6682         (VDX): Add V4HF.
6683         (V_DOUBLE): Add case for V4HF.
6684         (VQX): Add V8HF.
6685         (V_HALF): Add case for V8HF.
6686         (VDQX): Add V4HF, V8HF.
6687         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
6688         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
6690         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
6691         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
6692         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
6693         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
6694         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
6695         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
6696         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
6697         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
6698         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
6700         (neon_vcreate, neon_vreinterpretv8qi<mode>,
6701         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6702         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
6703         Change VDX to VD_RE.
6705         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
6706         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
6707         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
6709         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
6710         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
6711         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
6712         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
6713         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
6714         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
6715         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
6716         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
6717         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
6719 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6721         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
6722         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
6723         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
6724         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
6725         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6726         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
6727         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
6728         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
6729         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
6730         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
6731         New.
6733 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6735         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
6737         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
6739         * config/arm/arm-builtins.c (v8hf_UP): New.
6740         (arm_init_simd_builtin_types): Initialise Float16x8_t.
6742         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
6744         * config/arm/arm_neon.h (float16x8_t): New typedef.
6746 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6748         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
6749         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
6750         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
6751         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
6752         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6753         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
6754         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
6755         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
6756         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6757         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
6759 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
6761         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
6762         non-alphanumeric characters in the symbol name.
6764 2015-09-07  Marek Polacek  <polacek@redhat.com>
6766         PR inline-asm/67448
6767         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
6768         a memory input.
6770 2015-09-07  Marek Polacek  <polacek@redhat.com>
6772         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
6774 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
6776         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
6777         not warn.
6779 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
6781         PR middle-end/67452
6782         * tree-ssa-live.c: Include cfgloop.h.
6783         (remove_unused_locals): Clear loop->simduid if simduid is about
6784         to be removed from cfun->local_decls.
6786 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6788         PR target/65210
6789         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
6790         attribute as well.
6792 2015-09-04  Tom de Vries  <tom@codesourcery.com>
6794         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
6796 2015-09-04  Jeff Law  <law@redhat.com>
6798         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
6799         unnecessary constructor.  It's now trivial and implemented inside...
6800         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
6801         constructor.  Add comments to various methods.  Remove unused
6802         private fields.
6803         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
6804         * tree-vrp.c (identify_jump_threads): Likewise.
6805         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
6806         indentation issues.
6807         (thread_across_edge): Similarly.
6808         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
6809         arguments in constructor call.
6811 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
6813         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
6814         temp path contains a '-'.
6816 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6817             Petr Murzin  <petr.murzin@intel.com>
6818             Kirill Yukhin  <kirill.yukhin@intel.com>
6820         * config/i386/i386-builtin-types.def
6821         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
6822         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
6823         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
6824         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
6825         * config/i386/i386.c
6826         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
6827         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6828         IX86_BUILTIN_SCATTERALTDIV16SI.
6829         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
6830         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
6831         __builtin_ia32_scatteraltdiv8si.
6832         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
6833         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6834         IX86_BUILTIN_SCATTERALTDIV16SI.
6835         (ix86_vectorize_builtin_scatter): New.
6836         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
6837         ix86_vectorize_builtin_scatter.
6839 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6840             Petr Murzin  <petr.murzin@intel.com>
6841             Kirill Yukhin  <kirill.yukhin@intel.com>
6843         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
6844         * doc/tm.texi: Regenerate.
6845         * target.def: Add scatter builtin.
6846         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
6847         for loads/stores in case of gather/scatter accordingly.
6848         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6849         STMT_VINFO_GATHER_P(S).
6850         (vect_check_gather): Rename to ...
6851         (vect_check_gather_scatter): this.
6852         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
6853         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
6854         (vect_check_gather_scatter): Use it instead of vect_check_gather.
6855         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
6856         variable and new checkings for it accordingly.
6857         * tree-vect-stmts.c
6858         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6859         STMT_VINFO_GATHER_P(S).
6860         (vect_check_gather_scatter): Use it instead of vect_check_gather.
6861         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
6863 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
6865         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
6866         define_insn.
6867         (mulv16qi3): New define_expand.
6869 2015-09-03  Martin Sebor  <msebor@redhat.com>
6871         PR c/66516
6872         * doc/extend.texi (Other Builtins): Document when the address
6873         of a built-in function can be taken.
6875 2015-09-03  Richard Biener  <rguenther@suse.de>
6877         * dwarf2out.c (flush_limbo_die_list): Split out from ...
6878         (dwarf2out_early_finish): ... here.
6879         (dwarf2out_finish): Do not call dwarf2out_early_finish but
6880         flush_limbo_die_list.  Assert we have no deferred asm names.
6882 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6884         * optabs.c (expand_binop): Don't create a broadcast vector with a
6885         source element wider than the inner mode.
6887 2015-09-03  Richard Biener  <rguenther@suse.de>
6889         * varasm.c (output_constant): Use fold_convert instead of
6890         wide_int_to_tree.
6892 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6894         PR tree-optimization/65637
6895         * omp-low.c (expand_omp_for_static_chunk): Handle case that
6896         fin_bb has 2 predecessors.
6898 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6900         PR tree-optimization/65637
6901         * omp-low.c (find_phi_with_arg_on_edge): New function.
6902         (expand_omp_for_static_chunk): Fix inner loop phi.
6904 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6906         PR tree-optimization/65637
6907         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
6908         that head is NULL.
6910 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6912         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
6914 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6916         * doc/invoke.texi (parloops-chunk-size): Add item.
6917         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
6918         * tree-parloops.c: Include params.h.
6919         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
6920         param parloops-chunk-size is used.
6922 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6924         PR middle-end/67351
6925         * fold-const.c (fold_binary_loc) : Move
6926         Transform (x >> c) << c into x & (-1<<c) or
6927         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
6928         types using simplify and match.
6929         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
6930         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
6932 2015-09-03  Richard Biener  <rguenther@suse.de>
6934         PR ipa/66705
6935         * tree-ssa-structalias.c (ctor_for_analysis): New function.
6936         (create_variable_info_for_1): Use ctor_for_analysis instead
6937         of get_constructor.
6938         (create_variable_info_for): Likewise.
6940 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
6942         PR ipa/67280
6943         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
6944         in new callgraph edge.
6946 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
6948         PR target/59810
6949         PR target/63652
6950         PR target/63653
6951         * config/aarch64/aarch64-simd.md
6952         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
6953         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
6954         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
6955         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
6957 2015-09-02  Alan Modra  <amodra@gmail.com>
6959         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
6960         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
6961         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
6963 2015-09-02  Alan Modra  <amodra@gmail.com>
6965         PR target/67417
6966         * config/rs6000/predicates.md (current_file_function_operand): Don't
6967         return true for weak symbols.
6968         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
6970 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
6971             Andrew Bennett  <andrew.bennett@imgtec.com>
6973         * config/mips/mips-opts.h (mips_cb_setting): New enum.
6974         * config/mips/mips-protos.h: Add definitions for
6975         mips_output_jump and mips_output_equal_conditional_branch
6976         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
6977         JIC instruction.
6978         (mips_emit_compare): Add support for the MIPS R6 conditional
6979         compact branches.
6980         (mips_process_sync_loop): Likewise.
6981         (mips_output_order_conditional_branch): Likewise.
6982         (mips16_build_call_stub): Change MIPS_CALL to
6983         mips_output_jump.
6984         (mips_print_operand_punctuation): Update 's' case to only
6985         apply to micromips r2.
6986         (mips_adjust_insn_length): Add support for forbidden slot
6987         hazards.
6988         (mips_avoid_hazard): Likewise.
6989         (mips_reorg_process_insns): Likewise.
6990         (mips_output_jump): New function.
6991         (mips_output_equal_conditional_branch): Likewise.
6992         (mips_output_conditional_branch): Use jrc/bc if compact
6993         branch support is enabled.  Ensure the forbidden slots
6994         between the two branch instructions is filled with a nop.
6995         (mips_option_override): Add support to process the compact
6996         branch option and set the correct defaults.  Prevent
6997         non-explict relocs being using for MIPS R6.
6998         (mips_trampoline_init): Add compact branch support.
6999         (mips_mult_zero_zero_cost): Allow zero initialisation of
7000         accumulators with TARGET_DSP.
7001         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
7002         (TARGET_CB_MAYBE): New define.
7003         (TARGET_CB_ALWAYS): New define.
7004         (ISA_HAS_DELAY_SLOTS): New define.
7005         (ISA_HAS_COMPACT_BRANCHES): New define.
7006         (ISA_HAS_JRC): New define.
7007         (MIPS_BRANCH_C): New define.
7008         (MIPS_CALL): Removed.
7009         (MICROMIPS_J): Removed.
7010         * config/mips/mips.md (compact_form): New attr.
7011         (hazard): Add support for forbidden slots.
7012         (define_delay): Add support for compact branches.
7013         (*branch_order<mode>): Likewise.
7014         (*branch_order<mode>_inverted): Likewise.
7015         (*branch_equality<mode>): Likewise.
7016         (*branch_equality<mode>_inverted): Likewise.
7017         (*jump_absolute): Likewise.
7018         (*jump_pic): Likewise.
7019         (indirect_jump): Use mips_output_jump to produce assembly output.
7020         (tablejump_<mode>"): Likewise.
7021         (*<optab>"): Likewise.
7022         (<optab>_internal): Likewise.
7023         (sibcall_internal): Likewise.
7024         (sibcall_value_internal): Likewise.
7025         (sibcall_value_multiple_internal): Likewise.
7026         (call_internal): Likewise.
7027         (call_split): Likewise.
7028         (call_internal_direct): Likewise.
7029         (call_direct_split): Likewise.
7030         (call_value_internal): Likewise.
7031         (call_value_split): Likewise.
7032         (call_value_internal_direct): Likewise.
7033         (call_value_direct_split): Likewise.
7034         (call_value_multiple_internal): Likewise.
7035         (call_value_multiple_split): Likewise.
7036         (mips_get_fcsr_mips16_<mode>): Likewise.
7037         (mips_set_fcsr_mips16_<mode>): Likewise.
7038         (tls_get_tp_mips16_<mode>): Likewise.
7039         * config/mips/mips.opt: Add -mcompact-branches option.
7040         * config/mips/predicates.md (order_operator): Ensure the
7041         conditional compact branches are only used if the ISA them.
7042         * doc/invoke.texi: Document -mcompact-branches option.
7044 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
7046         PR target/61578
7047         * lra-lives.c (process_bb_lives): Process move pseudos with the
7048         same value for copies and preferences
7049         * lra-constraints.c (match_reload): Create match reload pseudo
7050         with the same value from single dying input pseudo.
7052 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
7054         PR target/67405
7055         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
7057 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
7059         * trans-mem.c: Add contributed-by.
7060         * trans-mem.h: Same.
7062 2015-09-01  Richard Biener  <rguenther@suse.de>
7064         * expr.c (expand_expr_real_1): For expanding TERed defs
7065         set the current location to that of the def if not UNKNOWN.
7067 2015-09-01  David Sherwood  <david.sherwood@arm.com>
7069         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
7071 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7073         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
7074         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
7075         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
7076         Include rtl-iter.h.
7077         (noce_simple_bbs): New function.
7078         (noce_try_move): Bail if basic blocks are not simple.
7079         (noce_try_store_flag): Likewise.
7080         (noce_try_store_flag_constants): Likewise.
7081         (noce_try_addcc): Likewise.
7082         (noce_try_store_flag_mask): Likewise.
7083         (noce_try_cmove): Likewise.
7084         (noce_try_minmax): Likewise.
7085         (noce_try_abs): Likewise.
7086         (noce_try_sign_mask): Likewise.
7087         (noce_try_bitop): Likewise.
7088         (bbs_ok_for_cmove_arith): New function.
7089         (noce_emit_all_but_last): Likewise.
7090         (noce_emit_insn): Likewise.
7091         (noce_emit_bb): Likewise.
7092         (noce_try_cmove_arith): Handle non-simple basic blocks.
7093         (insn_valid_noce_process_p): New function.
7094         (contains_mem_rtx_p): Likewise.
7095         (bb_valid_for_noce_process_p): Likewise.
7096         (noce_process_if_block): Allow non-simple basic blocks
7097         where appropriate.
7099 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
7101         * tree-ssa-dom.c (record_equivalences_from_phis,
7102         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
7103         (lookup_avail_expr): Likewise, and remove comment and unused temp.
7105 2015-09-01  Nick Clifton  <nickc@redhat.com>
7107         * config/msp430/msp430.opt (mcpu): Fix typo.
7109 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7111         * config/aarch64/aarch64.c (aarch64_set_current_function):
7112         Re-layout any vector parameters have non-simd layout.
7113         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
7114         Delete.
7115         (aarch64_simd_expand_args): Delete call to the above.
7117 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
7119         * doc/invoke.texi (asan-stack): Add space before option.
7121 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
7123         * tree.h (zerop): New function.
7124         * tree.c (zerop): Likewise.
7125         (element_precision): Handle expressions.
7126         * match.pd (define_predicates): Add zerop.
7127         (x <= +Inf): Fix comment.
7128         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
7129         * fold-const.c (fold_binary_loc): ... here. Remove.
7131 2015-08-31  Richard Biener  <rguenther@suse.de>
7133         PR middle-end/67381
7134         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
7136 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
7138         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
7139         (CEXPI): New operator list.
7140         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
7141         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
7142         Converted from ...
7143         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
7145 2015-08-31  Tom de Vries  <tom@codesourcery.com>
7147         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
7148         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
7149         parameter.
7150         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
7151         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
7152         (rewrite_into_loop_closed_ssa): ... here.
7153         (replace_uses_in_dominated_bbs): Remove function.
7154         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
7155         rewrite_into_loop_closed_ssa_1.
7157 2015-08-31  Michael Matz  <matz@suse.de>
7159         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
7160         enter entry and exit blocks for reverse post order.
7162 2015-08-31  Richard Biener  <rguenther@suse.de>
7164         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
7165         (lto_location_cache::current_sysp): Likewise.
7166         (output_block::current_sysp): Likewise.
7167         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
7168         (lto_location_cache::apply_location_cache): Properly record
7169         system header locations.
7170         (lto_location_cache::input_location): Input whether a file
7171         is a system header.
7172         * lto-streamer-out.c (lto_output_location): Stream whether a file
7173         is a system header.
7175 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7177         PR bootstrap/67363
7178         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
7180 2015-08-31  Tom de Vries  <tom@codesourcery.com>
7182         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
7183         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
7184         Improve function header comments.
7186 2015-08-30  Michael Collison  <michael.collison@linaro.org>
7188         PR other/67320
7189         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
7190         standard names
7192 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7194         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
7195         special_handling bitfield.
7196         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
7197         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
7198         that represents a general xxpermdi.
7199         (insn_is_swappable_p): Add handling for vec_concat of two
7200         doublewords, which maps to a specific xxpermdi.
7201         (adjust_xxpermdi): New function.
7202         (adjust_concat): Likewise.
7203         (handle_special_swappables): Call adjust_xxpermdi and
7204         adjust_concat.
7205         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
7207 2015-08-30  Rich Felker <dalias@libc.org>
7209         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
7210         case instead of sh[123456ble]-*-*.
7212 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
7214         * ira.c (print_unform_and_important_classes,
7215         print_translated_classes): Remove reg_class_names static array.
7216         (print_unform_and_important_classes): Rename to ...
7217         (print_uniform_and_important_classes): ... this.
7218         (ira_debug_allocno_classes): Update accordingly.
7220 2015-08-29  Tom de Vries  <tom@codesourcery.com>
7222         PR tree-optimization/46193
7223         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
7224         clause.
7226 2015-08-28  Jeff Law  <law@redhat.com>
7228         PR lto/66752
7229         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7230         unable to find X NE 0 in the tables, return X as the simplified
7231         condition.
7232         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7233         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
7234         to VISISTED_BBS.
7235         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7236         after removing the control flow statement and unnecessary edges.
7238 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
7240         Revert:
7241         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7243         PR tree-optimization/67283
7244         * tree-sra.c (type_consists_of_records_p): Rename to...
7245         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7247         (completely_scalarize_record): Rename to...
7248         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
7249         code to:
7250         (scalarize_elem): New.
7252 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
7254         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
7255         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
7256         (aarch64_symbol_type): Likewise.
7257         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7258         Likewise.
7259         (aarch64_expand_mov_immediate): Likewise.
7260         (aarch64_print_operand): Likewise.
7261         (aarch64_classify_tls_symbol): Likewise.
7263 2015-08-28  Richard Biener  <rguenther@suse.de>
7265         * cgraphunit.c (symbol_table::compile): Move early debug generation
7266         and finish...
7267         (symbol_table::finalize_compilation_unit): ... back here and
7268         add a !seen_error () guard.
7270 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
7272         * toplev.c (process_options): Do not use flag_loop_block,
7273         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
7274         flag_loop_optimize_isl.
7276 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
7278         * Makefile.in (OBJS): Remove graphite-blocking.o and
7279         graphite-interchange.o.
7280         * common.opt (floop-strip-mine, floop-interchange, floop-block):
7281         Alias of floop-nest-optimize.
7282         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
7283         Document as alias of -floop-nest-optimize.
7284         * graphite-blocking.c: Remove.
7285         * graphite-interchange.c: Remove.
7286         * graphite-optimize-isl.c: Include dumpfile.h.
7287         (getScheduleForBand): Add dump for tiled loops.  Use
7288         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
7289         * graphite-poly.c (scop_max_loop_depth): Remove.
7290         (print_scattering_function_1): Remove.
7291         (print_scattering_function): Remove.
7292         (print_scattering_functions): Remove.
7293         (debug_scattering_function): Remove.
7294         (debug_scattering_functions): Remove.
7295         (apply_poly_transforms): Remove use of flag_loop_block,
7296         flag_loop_strip_mine, and flag_loop_interchange.
7297         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
7298         PBB_ORIGINAL.
7299         (print_pdr_access_layout): Remove.
7300         (print_pdr): Print ISL representation.
7301         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
7302         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
7303         (free_scop): Same.
7304         (openscop_print_pbb_domain): Remove.
7305         (print_pbb): Remove call to print_scattering_function.
7306         (openscop_print_scop_context): Remove.
7307         (print_scop_context): Do not print matrices anymore.
7308         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
7309         SCOP_TRANSFORMED_SCHEDULE.
7310         (print_isl_set): Add printing of a new line.
7311         (print_isl_map): Same.
7312         (print_isl_aff): Same.
7313         (print_isl_constraint): Same.
7314         (loop_to_lst): Remove.
7315         (scop_to_lst): Remove.
7316         (lst_indent_to): Remove.
7317         (print_lst): Remove.
7318         (debug_lst): Remove.
7319         (dot_lst_1): Remove.
7320         (dot_lst): Remove.
7321         (reverse_loop_at_level): Remove.
7322         (reverse_loop_for_pbbs): Remove.
7323         * graphite-poly.h (pdr_dim_iter_domain): Remove.
7324         (pdr_nb_params): Remove.
7325         (pdr_alias_set_dim): Remove.
7326         (pdr_subscript_dim): Remove.
7327         (pdr_iterator_dim): Remove.
7328         (pdr_parameter_dim): Remove.
7329         (same_pdr_p): Remove.
7330         (struct poly_scattering): Remove.
7331         (struct poly_bb): Remove _original, _transformed, _saved.
7332         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
7333         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
7334         (PBB_NB_LOCAL_VARIABLES): Remove.
7335         (PBB_NB_SCATTERING_TRANSFORM): Remove.
7336         (schedule_to_scattering): Remove.
7337         (number_of_write_pdrs): Remove.
7338         (pbb_dim_iter_domain): Remove.
7339         (pbb_nb_params): Remove.
7340         (pbb_nb_scattering_orig): Remove.
7341         (pbb_nb_scattering_transform): Remove.
7342         (pbb_nb_dynamic_scattering_transform): Remove.
7343         (pbb_nb_local_vars): Remove.
7344         (pbb_iterator_dim): Remove.
7345         (pbb_parameter_dim): Remove.
7346         (psco_scattering_dim): Remove.
7347         (psct_scattering_dim): Remove.
7348         (psct_local_var_dim): Remove.
7349         (psco_iterator_dim): Remove.
7350         (psct_iterator_dim): Remove.
7351         (psco_parameter_dim): Remove.
7352         (psct_parameter_dim): Remove.
7353         (psct_dynamic_dim): Remove.
7354         (psct_static_dim): Remove.
7355         (psct_add_local_variable): Remove.
7356         (new_lst_loop): Remove.
7357         (new_lst_stmt): Remove.
7358         (free_lst): Remove.
7359         (copy_lst): Remove.
7360         (lst_add_loop_under_loop): Remove.
7361         (lst_depth): Remove.
7362         (lst_dewey_number): Remove.
7363         (lst_dewey_number_at_depth): Remove.
7364         (lst_pred): Remove.
7365         (lst_succ): Remove.
7366         (lst_find_pbb): Remove.
7367         (find_lst_loop): Remove.
7368         (lst_find_first_pbb): Remove.
7369         (lst_empty_p): Remove.
7370         (lst_find_last_pbb): Remove.
7371         (lst_contains_p): Remove.
7372         (lst_contains_pbb): Remove.
7373         (lst_create_nest): Remove.
7374         (lst_remove_from_sequence): Remove.
7375         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
7376         (lst_niter_for_loop): Remove.
7377         (pbb_update_scattering): Remove.
7378         (lst_update_scattering_under): Remove.
7379         (lst_update_scattering): Remove.
7380         (lst_insert_in_sequence): Remove.
7381         (lst_replace): Remove.
7382         (lst_substitute_3): Remove.
7383         (lst_distribute_lst): Remove.
7384         (lst_remove_all_before_including_pbb): Remove.
7385         (lst_remove_all_before_excluding_pbb): Remove.
7386         (struct scop): Remove original_schedule, transformed_schedule, and
7387         saved_schedule.
7388         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
7389         (SCOP_SAVED_SCHEDULE): Remove.
7390         (poly_scattering_new): Remove.
7391         (poly_scattering_free): Remove.
7392         (poly_scattering_copy): Remove.
7393         (store_scattering_pbb): Remove.
7394         (store_lst_schedule): Remove.
7395         (restore_lst_schedule): Remove.
7396         (store_scattering): Remove.
7397         (restore_scattering_pbb): Remove.
7398         (restore_scattering): Remove.
7399         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7400         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
7401         compute the scattering polyhedron dimension from the dimension of
7402         pbb->domain.
7403         (build_scop_scattering): Update call to
7404         build_pbb_scattering_polyhedrons.
7405         (build_poly_scop): Remove call to scop_to_lst.
7406         * graphite.c (graphite_transform_loops): Add call to print_scop.
7407         (gate_graphite_transforms): Remove use of flag_loop_block,
7408         flag_loop_interchange, and flag_loop_strip_mine.
7410 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
7412         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
7413         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
7414         -floop-nest-optimize.
7415         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
7416         (generate_luj_sepclass): Remove.
7417         (generate_luj_options): Remove.
7418         (set_options): Remove opt_luj.
7419         (scop_to_isl_ast): Remove opt_luj.
7420         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
7421         flag_loop_unroll_jam.
7422         (getPrevectorMap_full): Remove.
7423         (getScheduleForBandList): Remove map_sepcl.
7424         (getScheduleMap): Same.
7425         (apply_schedule_map_to_scop): Remove sepcl.
7426         (optimize_isl): Same.
7427         * graphite-poly.c (apply_poly_transforms): Remove check for
7428         flag_loop_unroll_jam.
7429         (new_poly_bb): Remove map_sepclass.
7430         * graphite-poly.h (struct poly_bb): Same.
7431         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
7432         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
7433         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
7434         * toplev.c (process_options): Remove flag_loop_unroll_jam.
7436 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
7438         PR target/67317
7439         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
7440         (addqi3_cc): Ditto.
7441         (UNSPEC_ADD_CARRY): Remove.
7442         (addqi3_cconly_overflow): New expander.
7443         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
7444         Adjust for changed add<mode>3_carry.
7445         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
7446         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
7447         (<plusminus_insn><mode>3_carry): Remove expander.
7448         (*<plusminus_insn><mode>3_carry): Split insn pattern to
7449         add<mode>3_carry and sub<mode>3_carry.
7450         (plusminus_carry_mnemonic): Remove code attribute.
7451         (add<mode>3_carry): Canonicalize insn pattern.
7452         (*addsi3_carry_zext): Ditto.
7453         (sub<mode>3_carry): Ditto.
7454         (*subsi3_carry_zext): Ditto.
7455         (adcx<mode>3): Remove insn pattern.
7456         (addcarry<mode>): New insn pattern.
7457         (subborrow<mode>): Ditto.
7458         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
7459         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
7460         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
7461         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
7462         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
7463         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
7464         Rewrite expander to not clobber carry flag chains.
7466 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
7468         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
7469         instead of a rotate.
7471 2015-08-27  Marek Polacek  <polacek@redhat.com>
7473         PR middle-end/67005
7474         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
7475         an entry into an irreducible region.
7477 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7479         * configure: Regenerate.
7481 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7483         PR tree-optimization/67283
7484         * tree-sra.c (type_consists_of_records_p): Rename to...
7485         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7487         (completely_scalarize_record): Rename to...
7488         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7489         (scalarize_elem): New.
7491 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7493         * tree-sra.c (completely_scalarize_var): Rename to...
7494         (create_total_scalarization_access): ... Here. Drop call to
7495         completely_scalarize_record.
7497         (analyze_all_variable_accesses): Replace completely_scalarize_var
7498         with create_total_scalarization_access and completely_scalarize_record.
7500 2015-08-27  Alan Modra  <amodra@gmail.com>
7502         PR target/67356
7503         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
7504         for operand 1.
7506 2015-08-27  Richard Biener  <rguenther@suse.de>
7508         * passes.c (rest_of_decl_compilation): Guard early_global_decl
7509         call with !seen_error ().
7510         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
7511         early debug generation and finish...
7512         (symbol_table::compile): ... here to put it after a !seen_error ()
7513         guard.
7515 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7517         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
7518         Solaris 12+.
7520 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7521             Andre Vieira  <andre.simoesdiasvieira@arm.com>
7523         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
7524         (*cb<optab><mode>1): Likewise.
7525         (*tb<optab><mode>1): Likewise.
7526         (*cb<optab><mode>1): Likewise.
7527         * config/aarch64/iterators.md (inv_cb): New code attribute.
7528         (inv_tb): Likewise.
7529         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
7530         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
7532 2015-08-27  Richard Biener  <rguenther@suse.de>
7534         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
7536 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7538         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
7539         trap to fix ICE.
7541 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7543         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
7544         Add declaration.
7546         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
7547         comment.
7548         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
7549         floating point in VSX registers.
7550         (rs6000_output_move_128bit): Always print out the set insn if we
7551         can't generate an appropriate 128-bit move.
7552         (rs6000_generate_compare): Add support for IEEE 128-bit floating
7553         point in VSX registers comparisons.
7554         (rs6000_expand_float128_convert): Likewise.
7556         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
7557         predicate for only GPR hard registers.
7559         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
7560         modes to iterators. Add new iterators for moving 128-bit values in
7561         scalar FPR registers and VSX registers.
7562         (FMOVE128): Likewise.
7563         (FMOVE128_FPR): Likewise.
7564         (FMOVE128_GPR): Likewise.
7565         (FMOVE128_VSX): Likewise.
7566         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
7567         in VSX registers.
7568         (IFKF): Likewise.
7569         (IBM128): Likewise.
7570         (TFIFKF): Likewise.
7571         (RELOAD): Add IEEE 128-bit floating point modes.
7572         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
7573         floating point in VSX registers modes.
7574         (signbit<mode>2, IBM128 iterator): Likewise.
7575         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
7576         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
7577         (negtf2): Likewise.
7578         (neg<mode>2, TFIFKF iterator): Likewise.
7579         (negtf2_internal): Likewise.
7580         (abstf2): Likewise.
7581         (abs<mode>2, TFIFKF iterator): Likewise.
7582         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
7583         VSX insn support for negate, absolute value, and negative absolute
7584         value.
7585         (ieee_128bit_vsx_neg<mode>2): Likewise.
7586         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7587         (ieee_128bit_vsx_abs<mode>2): Likewise.
7588         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7589         (ieee_128bit_vsx_nabs<mode>2): Likewise.
7590         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7591         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
7592         floating point in VSX registers.
7593         (unpack<mode>_dm): Likewise.
7594         (unpack<mode>_nodm): Likewise.
7595         (pack<mode>): Likewise.
7596         (unpackv1ti): Likewise.
7597         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
7598         (packv1ti): Likewise.
7599         (pack<mode>, FMOVE128_VSX iterator): Likewise.
7600         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
7601         registers.
7602         (extenddftf2_internal): Likewise.
7603         (trunctfdf2): Likewise.
7604         (trunctfdf2_internal2): Likewise.
7605         (fix_trunc_helper): Likewise.
7606         (fix_trunctfdi2"): Likewise.
7607         (floatditf2): Likewise.
7608         (floatuns<mode>tf2): Likewise.
7609         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7610         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7611         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7612         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7613         (float<SDI:mode><IFKF:mode>2): Likewise.
7614         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7616 2015-08-26  Renlin Li  <renlin.li@arm.com>
7618         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
7620 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7621             Jiong Wang  <jiong.wang@arm.com>
7623         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
7624         (tlsie_tiny_<mode>): New define_insn.
7625         (tlsie_tiny_sidi): Likewise.
7626         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
7627         SYMBOL_TINY_TLSIE.
7628         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
7629         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
7630         SYMBOL_TINY_TLSIE.
7631         (aarch64_expand_mov_immediate): Likewise.
7632         (aarch64_print_operand): Likewise.
7633         (arch64_classify_tls_symbol): Likewise.
7635 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7637         * config/arm/arm-arches.def: Replace single value flags with
7638         an initializer built from ARM_FSET_MAKE_CPU1.
7639         * config/arm/arm-cores.def: Likewise.
7640         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
7641         derivation from the ARM_CORE macro definition, use the given value
7642         instead.
7643         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
7644         ARM_ARCH macro definition, use the given value instead.
7646 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7648         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
7649         feature set.
7650         (struct builtin_description): Replace field mask with field
7651         features.
7652         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
7653         (IWMMXT2_BUILTIN): Likewise.
7654         (IWMMXT2_BUILTIN2): Likewise.
7655         (FP_BUILTIN): Likewise.
7656         (CRC32_BUILTIN): Likewise.
7657         (CRYPTO_BUILTIN): Likewise.
7658         (iwmmx_mbuiltin): Likewise.
7659         (iwmmx2_mbuiltin): Likewise.
7660         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
7661         struct builtin_description.
7663 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7665         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
7666         (struct builtin_description): Change type of mask to unsigned
7667         long.
7668         * config/arm/arm-protos.h (insn_flags): Declare as type
7669         arm_feature_set.
7670         (tune_flags): Likewise.
7671         * config/arm/arm.c (feature_count): New.
7672         (insn_flags): Define as type arm_feature_set.
7673         (tune_flags): Likewise.
7674         (struct processors): Define field flags as type arm_feature_set.
7675         (all_cores): Update for change to struct processors.
7676         (all_architectures): Likewise.
7677         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
7678         macros.
7679         (arm_option_override_internal): Likewise.
7680         (arm_option_override): Likewise.
7682 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7683             Jiong Wang  <jiong.wang@arm.com>
7685         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
7686         tls size for tiny, small, large memory model.
7687         (aarch64_load_symref_appropriately): Support new symbol types.
7688         (aarch64_expand_mov_immediate): Likewise.
7689         (aarch64_print_operand): Likewise.
7690         (aarch64_classify_tls_symbol): Likewise.
7691         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
7692         (aarch64_symbol_type): Likewise.
7693         * config/aarch64/aarch64.md (tlsle): Deleted.
7694         (tlsle12_<mode>): New define_insn.
7695         (tlsle24_<mode>): Likewise.
7696         (tlsle32_<mode>): Likewise.
7697         (tlsle48_<mode>): Likewise.
7698         * doc/sourcebuild.texi (AArch64-specific attributes): Document
7699         "aarch64_tlsle32".
7701 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7703         * config/arm/arm-protos.h (FL_NONE): New.
7704         (FL_ANY): New.
7705         (arm_feature_set): New.
7706         (ARM_FSET_MAKE): New.
7707         (ARM_FSET_MAKE_CPU1): New.
7708         (ARM_FSET_MAKE_CPU2): New.
7709         (ARM_FSET_CPU1): New.
7710         (ARM_FSET_CPU2): New.
7711         (ARM_FSET_EMPTY): New.
7712         (ARM_FSET_ANY): New.
7713         (ARM_FSET_HAS_CPU1): New.
7714         (ARM_FSET_HAS_CPU2): New.
7715         (ARM_FSET_HAS_CPU): New.
7716         (ARM_FSET_ADD_CPU1): New.
7717         (ARM_FSET_ADD_CPU2): New.
7718         (ARM_FSET_DEL_CPU1): New.
7719         (ARM_FSET_DEL_CPU2): New.
7720         (ARM_FSET_UNION): New.
7721         (ARM_FSET_INTER): New.
7722         (ARM_FSET_XOR): New.
7723         (ARM_FSET_EXCLUDE): New.
7724         (AFM_FSET_IS_EMPTY): New.
7725         (ARM_FSET_CPU_SUBSET): New.
7727 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
7729         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
7730         SYMBOL_TLSLE to SYMBOL_TLSLE24.
7731         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7732         Likewise.
7733         (aarch64_expand_mov_immediate): Likewise.
7734         (aarch64_print_operand): Likewise.
7735         (aarch64_classify_symbol): Likewise.
7737 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
7739         * config/aarch64/aarch64.opt (mtls-size): New entry.
7740         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
7741         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
7742         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
7744 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7746         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
7747         ARM_CORE entry.  Fix some white-space.
7748         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
7749         ARM_CORE definition.
7751 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7753         * fold-const.c (fold_binary_loc) : Move Optimize
7754         root(x)*root(y) as root(x*y) to match.pd.
7755         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
7756         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
7757         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
7758         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
7759         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
7760         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
7761         (mult (exps:s @0) (exps:s @1)) : New simplifier.
7762         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
7763         (rdiv @0 (exps:s @1)) : New simplifier.
7765 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
7767         * gcc.c (driver::finalize): Only assign to extra_specs if
7768         [EXTRA_SPECS].
7770 2015-08-25  Marek Polacek  <polacek@redhat.com>
7772         PR middle-end/67330
7773         * varasm.c (declare_weak): Return after giving an error.
7775 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
7777         * gcc-main.c (main): Add params to driver ctor.
7778         * gcc.c (class env_manager): New.
7779         (env): New global.
7780         (env_manager::init): New.
7781         (env_manager::get): New.
7782         (env_manager::xput): New.
7783         (env_manager::restore): New.
7784         Poison getenv and putenv.
7785         (DEFAULT_TARGET_SYSTEM_ROOT): New.
7786         (target_system_root): Update initialization to use
7787         DEFAULT_TARGET_SYSTEM_ROOT.
7788         (struct spec_list): Add field "default_ptr".
7789         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
7790         (init_spec): Likewise.
7791         (set_spec): Clear field "default_ptr".
7792         (read_specs): Free "spec" and "buffer".
7793         (xputenv): Reimplement in terms of env_manager.
7794         (process_command): Replace ::getenv calls with calls to the
7795         env_manager singleton.
7796         (process_brace_body): Free string in three places.
7797         (driver::driver): New.
7798         (driver::~driver): New.
7799         (used_arg): Convert from a function to...
7800         (class used_arg_t): ...this class, and...
7801         (used_arg): ...this new global instance.
7802         (used_arg_t::finalize): New function.
7803         (getenv_spec_function): Add "const" to local "value".  Replace
7804         ::getenv call with call to the env_manager singleton.
7805         (path_prefix_reset): New function.
7806         (driver::finalize): New function.
7807         * gcc.h (driver::driver): New.
7808         (driver::~driver): New.
7809         (driver::finalize): New.
7811 2015-08-25  Nathan Sidwell  <nathan@acm.org>
7813         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
7814         target doesn't have one.
7816 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
7818         PR target/67346
7819         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
7821 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
7823         PR target/67344
7824         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
7825         a define_insn, remove second alternative.
7827 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
7828             Joseph Myers  <joseph@codesourcery.com>
7830         * gcc.c (struct switchstr): Expand comment.
7832 2015-08-25  Nathan Sidwell  <nathan@acm.org>
7834         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
7835         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
7837 2015-08-25  Richard Biener  <rguenther@suse.de>
7839         PR middle-end/67306
7840         * genmatch.c (expr::gen_transform): Verify the result of
7841         builtin_decl_implicit.
7842         (dt_simplify::gen_1): Likewise.
7844 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7846         * config/arm/constraints.md: Also list Cs and US ARM-specific
7847         constraints as used.
7849 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
7851         PR target/66609
7852         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
7853         UNSPEC_PCREL.
7854         (nonpic_symbol_mentioned_p): Likewise.
7855         (sh_delegitimize_address): Likewise.
7856         (sh_function_ok_for_sibcall): Take into account weak symbols.
7857         (sh_expand_sym_label2reg): New.
7858         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
7859         * config/sh/sh.md (UNSPEC_PCREL): New enum.
7860         (call_pcrel): Use sh_expand_sym_label2reg.
7861         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7862         (symPCREL_label2reg) New expand.
7864 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
7866         * graphite-poly.c: Change type of region from void* to sese.
7867         * graphite-poly.h (struct scop): Changing the type of scop::region
7868         from void* to sese. Change accessor macro accordingly.
7869         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
7871 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
7873         * graphite-scop-detection.c (stmt_simple_for_scop_p):
7874         Constrain only on INTEGER_TYPE.
7876 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7878         PR target/67211
7879         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
7880         -mefficient-unaligned-vsx on ISA 2.7.
7882         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
7883         option to a masked option.
7885         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
7886         logic for -mefficient-unaligned-vsx so that it is set via an arch
7887         ISA option, instead of being set if -mtune=power8 is set. Move
7888         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
7889         near other default option handling.
7891 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7893         * genflags.c (gen_macro): Delete.
7894         (gen_proto): Don't create GEN.*CALL.* macros.
7895         * gensupport.h (get_file_location): Declare.
7896         * gensupport.c (rtx_locs): New variable.
7897         (read_md_rtx): Record rtx locations.
7898         (get_file_location): New function.
7899         * target-insns.def (call, call_pop, call_value, call_value_pop)
7900         (sibcall, sibcall_value): New patterns.
7901         * gentarget-def.c (parse_argument): New function.
7902         (def_target_insn): Use it.  Handle optional operands.  Raise an
7903         error if an .md pattern has the wrong number of operands for the
7904         pattern name.  Remove the names of unused operands from the prototype.
7905         * builtins.c (expand_builtin_apply): Use targetm functions
7906         instead of HAVE_call_value and GEN_CALL_VALUE.
7907         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
7908         and sibcall_value_pop.
7909         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
7910         of GEN_CALL.
7911         * config/alpha/alpha.md (untyped_call): Likewise.
7912         * config/iq2000/iq2000.md (untyped_call): Likewise.
7913         * config/m68k/m68k.md (untyped_call): Likewise.
7914         * config/mips/mips.md (untyped_call): Likewise.
7915         * config/pa/pa.md (untyped_call): Likewise.
7916         * config/rs6000/rs6000.md (untyped_call): Likewise.
7917         * config/sparc/sparc.md (untyped_call): Likewise.
7918         * config/tilegx/tilegx.md (untyped_call): Likewise.
7919         * config/tilepro/tilepro.md (untyped_call): Likewise.
7920         * config/visium/visium.md (untyped_call): Likewise.
7921         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
7922         gen_call_value instead of GEN_CALL_VALUE.
7923         * config/arm/arm.md (untyped_call): Likewise.
7924         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
7925         GEN_CALL.
7927 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7929         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
7930         (have_cbranchcc4): New variable.
7931         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
7932         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
7933         (if_convert): Initialize have_cbranchcc4.
7935 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7937         * builtins.c (expand_cmpstrn): Rename to...
7938         (expand_cmpstrn_or_cmpmem): ...this.
7939         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
7940         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
7941         Remove mode argument.
7942         (expand_builtin): Update accordingly.
7944 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7946         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
7947         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
7948         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
7949         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
7950         Add predicates for operands 0 and 3.
7951         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
7952         operand.
7953         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
7954         immediate_operand to nonmemory_operand.
7956 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7958         * df-scan.c (df_insn_info_init_fields): New function, split out
7959         from...
7960         (df_insn_create_insn_record): ...here.
7961         (df_insn_info_free_fields): New function, split out from...
7962         (df_insn_info_delete): ...here.
7963         (df_insn_rescan): Use the new functions instead of freeing and
7964         reallocating the df_insn_info.
7966 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7968         * doc/install.texi (Binaries): Remove links no longer valid.
7970 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
7972         * config/nvptx/mkoffload.c (process): Replace
7973         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
7975 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
7977         PR target/67329
7978         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
7980 2015-08-24  Renlin Li  <renlin.li@arm.com>
7982         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
7983         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
7984         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
7985         * config/arm/constraints.md ("j"): Add check for high code.
7987 2015-08-24  Tom de Vries  <tom@codesourcery.com>
7989         PR tree-optimization/65468
7990         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
7991         chunk_size is one.
7993 2015-08-24  Nathan Sidwell  <nathan@acm.org>
7995         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
7996         change to nvptx_type_from_mode call. Use arg_promotion for both
7997         split and non-split args.
7999 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
8001         * target-insns.def (movstr): New pattern.
8002         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
8003         (expand_movstr): Use targetm rather than HAVE_movstr/
8004         CODE_FOR_movstr.
8006 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
8008         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
8009         cast syntax.
8011 2015-08-24  Andrew Pinski  <apinski@cavium.com>
8013         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
8014         AARCH64_EXTRA_TUNING_OPTION.
8015         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
8016         New enum.
8017         (aarch64_extra_tuning_flags): Base the shifted value on the index
8018         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
8019         * config/aarch64/aarch64.c: Remove the last argument to
8020         AARCH64_EXTRA_TUNING_OPTION.
8022 2015-08-23  Nathan Sidwell  <nathan@acm.org>
8024         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
8025         decls.
8026         (nvptx_declare_function_name): Insert formatting tabs for
8027         consistency.
8029 2015-08-23  Tom de Vries  <tom@codesourcery.com>
8031         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
8032         parm_decl, rather than generating a dummy default def in cfun.
8033         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
8034         ssa_name from cfun and child_fn do not share a stmt as def stmt.
8035         (move_stmt_op): Handle PARM_DECl.
8036         (gather_ssa_name_hash_map_from): New function.
8037         (move_sese_region_to_fn): Add default defs for function params, and add
8038         them to vars_map.  Release copied ssa names.
8039         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
8041 2015-08-23  Tom de Vries  <tom@codesourcery.com>
8043         * doc/sourcebuild.texi: Rename vect_no_int_max with
8044         vect_no_int_min_max.  Update description.
8046 2015-08-22  Andrew Pinski  <apinski@cavium.com>
8048          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
8049         * config/aarch64/aarch64-protos.h
8050         (aarch64_fusion_pairs_index): New enum.
8051         (aarch64_fusion_pairs): Base the shifted value on the index instead
8052         Rewrite AARCH64_FUSE_ALL to be based on the end index.
8053         of the argument to AARCH64_FUSION_PAIR.
8054         * config/aarch64/aarch64.c: Remove the last argument to
8055         AARCH64_FUSION_PAIR.
8057 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
8059         * dominance.c (new_zero_array): Define.
8060         (dom_info): Redefine as class with proper encapsulation.
8061         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
8062         Add new members.
8063         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
8064         allocations/deallocations.  Pass function as parameter (instead of
8065         using cfun).
8066         (dom_info::get_idom): Define accessor method.
8067         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
8068         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
8069         (calculate_dominance_info): Adjust to use dom_info class.
8070         (verify_dominators): Likewise.
8072 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
8074         * print-rtl.c (print_rtx): Check the correct range for
8075         flag_dump_unnumbered_links to behave as documented.
8077         PR rtl-optimization/67227
8078         PR rtl-optimization/64164
8079         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
8080         (nonoverlapping_memrefs_p): Test offsets and sizes when given
8081         identical gimple_reg exprs.
8083 2015-08-21  Nathan Sidwell  <nathan@acm.org>
8085         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
8086         expansion.
8087         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
8088         crtl->stack_alignment_needed to determine alignment.
8089         (nvptx_get_drap_rtx): New.
8090         (TARGET_GET_DRAP_RTX): Override.
8091         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
8093 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8095         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
8097 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8099         * configure.ac: Remove uwin* cases.
8100         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
8101         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
8102         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
8103         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
8104         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
8105         i[34567]86-*-uwin*, powerpc-*-beos*.
8107 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
8109         * gencodes.c (gencodes): Print the comma for the preceding
8110         enum value rather than the current one.  Use aliased enum values
8111         rather than #defines for compiled-out patterns.
8112         (main): Update accordingly.  Replace LAST_INSN_CODE with
8113         NUM_INSN_CODES.
8114         * lra.c (insn_code_data): Update accordingly.
8115         (finish_insn_code_data_once, get_static_insn_data): Likewise.
8116         * recog.h (target_recog): Likewise.
8117         (preprocess_insn_constraints): Change parameter to unsigned int.
8118         * recog.c (preprocess_insn_constraints): Likewise.
8119         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
8120         * tree-vect-stmts.c (vectorizable_operation): Simplify.
8122 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8124         PR rtl-optimization/61657
8125         * loop-iv.c (iv_number_of_iterations): Declare up and down as
8126         unsigned.  Remove superflous uint64_t cast.
8128 2014-08-21  Felix Yang  <felix.yang@huawei.com>
8129             Jiji Jiang  <jiangjiji@huawei.com>
8131         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
8132         argument and get builtin function code directly from CALL.
8133         (gimple_stringop_fixed_value): Modified accordingly.
8134         (gimple_stringops_transform, gimple_stringops_values_to_profile):
8135         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
8137 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8139         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
8141 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8143         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
8144         to match.pd.
8145         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
8146         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
8147         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
8148         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
8149         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
8150         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
8151         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
8152         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
8153         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
8154         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
8156         * match.pd (SIN ) : New Operator.
8157         (TAN) : New Operator.
8158         (mult (SQRT@1 @0) @1) : New simplifier.
8159         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
8160         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8161         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8162         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
8163         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
8164         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
8165         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
8166         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
8167         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
8168         (rdiv @0 (POW:s @1 @2)) : New simplifier.
8170 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
8172         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
8173         loop if EXPR is simplified to const value.
8175 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
8177         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
8178         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
8180 2015-08-21  Richard Biener  <rguenther@suse.de>
8182         PR middle-end/67285
8183         * gimple-fold.c (replace_stmt_with_simplification): Assert
8184         seq is empty when replacing a call with itself but different
8185         arguments.
8186         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
8187         a call require that it is const.
8189 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8191         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
8192         * builtins.c (get_object_alignment_2): Adjust.
8193         * varasm.c (align_variable): Likewise.
8194         (get_variable_align): Likewise.
8195         (build_constant_desc): Likewise.
8196         (force_const_mem): Likewise.
8197         * doc/tm.texi.in: Likewise.
8198         * doc/tm.texi: Regenerate.
8200 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8202         * genconfig.c (main): Always define HAVE_cc0.
8203         * recog.c (rest_of_handle_peephole2): Adjust.
8205 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8207         * reorg.c (relax_delay_slots): Don't use #if to check value of
8208         HAVE_cc0.
8210 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8212         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
8213         * targhooks.c (default_have_conditional_execution): Adjust.
8215 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
8217         * rtl.h (rtvec_all_equal_p): Declare.
8218         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
8219         * rtl.c (rtvec_all_equal_p): New function.
8220         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
8221         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
8222         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
8223         * config/arm/arm.c (neon_vdup_constant): Likewise.
8224         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
8225         * config/tilegx/constraints.md (W, Y): Likewise.
8226         * config/tilepro/constraints.md (W, Y): Likewise.
8227         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
8228         (classify_immediate): Use unwrap_const_vec_duplicate.
8229         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
8230         (reg_or_v2s8bit_operand): Likewise.
8231         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
8232         (reg_or_v4s8bit_operand): Likewise.
8234 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8236         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
8237         (vec_shasigma_be): New #define.
8238         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
8239         (VPMSUMH): Likewise.
8240         (VPMSUMW): Likewise.
8241         (VPMSUMD): Likewise.
8242         (VPMSUM): New BU_P8V_OVERLOAD_2.
8243         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
8244         entries for VEC_MADD and VEC_VPMSUM.
8246 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
8248         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
8249         Multiply argument avr_n_flash by 64 to match unit of "KiB".
8250         (avr_pgm_check_var_decl): Same.
8252 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
8254         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
8255         initialization of HFmode scalar type (float16_t) to...
8256         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
8257         code.
8259         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
8261         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
8262         having an -mfp16-format.
8264 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
8266         * config/i386/predicates.md (vector_all_ones_operand): Use
8267         CONSTM1_RTX to simplify definition.
8269 2015-08-20  Richard Biener  <rguenther@suse.de>
8271         * toplev.c (compile_file): Remove loop calling late_global_decl
8272         on all symbols.
8273         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
8274         on decls we assembled.
8276 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
8278         * common/config/aarch64/aarch64-common.c
8279         (AARCH64_CPU_NAME_LENGTH): Delete.
8280         (aarch64_option_extension): New.
8281         (all_extensions): Likewise.
8282         (processor_name_to_arch): Likewise.
8283         (arch_to_arch_name): Likewise.
8284         (all_cores): New.
8285         (all_architectures): Likewise.
8286         (aarch64_get_extension_string_for_isa_flags): Likewise.
8287         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
8288         architecture names.
8289         * config/aarch64/aarch64-protos.h
8290         (aarch64_get_extension_string_for_isa_flags): New.
8291         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
8292         (aarch64_option_print): Get the string to print from
8293         aarch64_get_extension_string_for_isa_flags.
8294         (aarch64_declare_function_name): Likewise.
8295         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
8296         (MCPU_TO_MARCH_SPEC): This.
8297         (ASM_CPU_SPEC): Use it.
8298         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
8299         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
8300         (EXTRA_SPEC_FUNCTIONS): Use it.
8302 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
8304         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
8305         expansion when !ISA_HAS_LWL_LWR.
8306         (mips_block_move_straight): Update the size of elements copied to
8307         account for alignment when !ISA_HAS_LWL_LWR.
8308         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
8310 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
8312         * expr.c (expand_expr_real_2): Check gimple statement during
8313         LSHIFT_EXPR expand.
8315 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
8317         * common.opt (fstack-protector): Initialize to -1.
8318         (fstack-protector-all): Likewise.
8319         (fstack-protector-strong): Likewise.
8320         (fstack-protector-explicit): Likewise.
8321         * configure.ac: Add --enable-default-ssp.
8322         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
8323         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
8324         -1.
8325         * doc/install.texi: Document --enable-default-ssp.
8326         * config.in: Regenerated.
8327         * configure: Likewise.
8329 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
8331         PR rtl-optimization/64164
8332         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
8333         (parm_in_stack_slot_p): ... this.  Disregard mode, what
8334         matters is whether the parm will live in a pseudo or a stack
8335         slot.
8336         (expand_one_ssa_partition): Deal with params without a default
8337         def.  Disregard mode.
8338         * cfgexpand.h: Renamed function declaration.
8339         * tree-ssa-coalesce.c: Adjust.
8340         * function.c (split_complex_args): Allocate stack slot for
8341         unassigned parms before splitting.
8342         (parm_in_unassigned_mem_p): New.  Use it instead of
8343         parm_maybe_byref_p throughout this file.
8344         (assign_parm_setup_block): Use it.  Accept pseudos in the
8345         expand-assigned rtl.
8346         (assign_parm_setup_reg): Drop BLKmode requirement.
8347         (assign_parm_setup_stack): Allocate and fill in the address of
8348         unassigned MEM parms.
8350 2015-08-19  David Sherwood  <david.sherwood@arm.com>
8352         * genmodes.c (emit_mode_unit_size_inline): New function.
8353         (emit_mode_unit_precision_inline): New function.
8354         (emit_insn_modes_h): Emit new #define.  Emit new functions.
8355         (emit_mode_unit_size): New function.
8356         (emit_mode_unit_precision): New function.
8357         (emit_mode_adjustments): Add mode_unit_size adjustments.
8358         (emit_insn_modes_c): Emit new arrays.
8359         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
8360         use new inline methods.
8362 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8364         * config/aarch64/aarch64.c (bit_count): Delete prototype
8365         and definition.
8366         (aarch64_print_operand): Use popcount_hwi instead of the above.
8368 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8370         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
8371         comment.
8373 2015-08-19  Marek Polacek  <polacek@redhat.com>
8375         PR middle-end/67133
8376         * gimple-ssa-isolate-paths.c
8377         (insert_trap_and_remove_trailing_statements): Rename to ...
8378         (insert_trap): ... this.  Don't remove trailing statements; split
8379         block instead.
8380         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
8382 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
8384         PR other/67042
8385         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
8386         conditionalize the whole on __GNUC__.  Add fallback code
8387         depending neither on undefined nor implementation-defined behaviour.
8389 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
8391         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
8392         whitespaces with tab.
8394 2015-08-19  Florian Weimer  <fweimer@redhat.com>
8396         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
8397         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
8398         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
8399         Move Name_Ids instantiation to the Prj.Proc package, to avoid
8400         trampolines.
8402 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8404         * config/arm/arm.c (bounds_check): Use %wd print format
8405         for HOST_WIDE_INT arguments.
8407 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
8409         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
8410         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
8411         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
8412         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
8413         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
8414         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
8415         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
8416         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
8417         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
8418         typedefs.
8420 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
8422         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
8423         function.c, graphite-scop-detection.c, haifa-sched.c,
8424         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
8425         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
8426         varasm.c: Remove typedefs of structs.
8428 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
8430         * config/rs6000/altivec.h (vec_adde): New define.
8431         (vec_addec): Likewise.
8432         (vec_double): Likewise.
8433         (vec_bperm): Likewise.
8434         (vec_gb): Likewise.
8435         * config/rs6000/rs6000-builtin.def (ADDE): New
8436         BU_ALTIVEC_OVERLOAD_3.
8437         (ADDEC): Likewise.
8438         (DOUBLE): New BU_VSX_OVERLOAD_1.
8439         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
8440         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
8441         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
8442         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
8443         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
8444         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
8445         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
8446         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
8447         and P8V_BUILTIN_VEC_VBPERMQ.
8449 2015-08-18  Jason Merrill  <jason@redhat.com>
8451         * print-tree.c (print_node): Handle TREE_BINFO.
8453 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8455         PR middle-end/36757
8456         * builtins.c (expand_builtin_signbit): Add asserts to make sure
8457         we can expand BUILT_IN_SIGNBIT inline.
8458         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
8459         * doc/extend.texi: Document the type-generic __builtin_signbit.
8461 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
8463         PR rtl-optimization/67218
8464         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
8465         (simplify_unary_operation_1): Use it.
8467 2015-08-18  Marek Polacek  <polacek@redhat.com>
8469         PR middle-end/67222
8470         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
8471         if the call isn't valid.
8472         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
8473         gimple_call_builtin_p.
8474         (call_may_clobber_ref_p_1): Likewise.
8475         (stmt_kills_ref_p): Likewise.
8477 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
8479         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
8480         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
8481         (mips_hard_regno_scratch_ok): Likewise.
8482         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
8483         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
8485 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
8487         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
8488         (determine_value_range): Call refine_value_range_using_guard for
8489         each loop initial condition to improve value range.
8491 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
8493         * config/i386/i386.c: Remove include of fibheap.h.
8495 2015-08-17  Richard Biener  <rguenther@suse.de>
8497         PR tree-optimization/67221
8498         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
8499         (sccvn_dom_walker::before_dom_children): Mark backedges of
8500         non-executable blocks as not executable.
8502 2015-08-17  David Sherwood  <david.sherwood@arm.com>
8504         * config/arm/arm.c (neon_element_bits): Replace call to
8505         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
8506         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
8507         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
8508         (neon_vdup_lane<mode>): Likewise.
8509         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
8510         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
8511         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
8512         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
8513         * config/spu/spu.c (arith_immediate_p): Likewise.
8514         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8515         * expr.c (expand_expr_real_2): Likewise.
8516         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
8517         * simplify-rtx.c (simplify_immed_subreg): Likewise.
8518         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
8519         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
8520         New variable.
8521         * fold-const.c (fold_binary_loc): Replace call to
8522         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
8523         GET_MODE_UNIT_PRECISION (m).
8525 2015-08-17  Mike Stump  <mikestump@comcast.net>
8527         * config/arm/arm.c (arm_block_move_unaligned_straight):
8528         Emit normal move instead of unaligned load when source or destination
8529         are appropriately aligned.
8531 2015-08-17  Richard Biener  <rguenther@suse.de>
8532             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8534         PR middle-end/16107
8535         * match.pd (div (coss (op @0) : New simplifier.
8537 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
8539         PR rtl-optimization/64164
8540         PR bootstrap/66978
8541         PR middle-end/66983
8542         PR rtl-optimization/67000
8543         PR middle-end/67034
8544         PR middle-end/67035
8545         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8546         * tree-ssa-copyrename.c: Removed.
8547         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
8548         -ftree-coalesce-vars.
8549         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8550         * common.opt (ftree-copyrename): Ignore.
8551         (ftree-coalesce-inlined-vars): Likewise.
8552         * doc/invoke.texi: Remove the ignored options above.
8553         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8554         * tree-ssa-coalesce.h: ... here.
8555         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8556         headers required by it.
8557         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8558         across variables when flag_tree_coalesce_vars.  Check register
8559         use and promoted modes to allow coalescing.  Do not coalesce
8560         maybe-byref parms with SSA_NAMEs of other variables, or
8561         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
8562         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8563         with its member functions to tree-ssa-coalesce.c.
8564         (var_map_base_init): Likewise.  Renamed to
8565         compute_samebase_partition_bases.
8566         (partition_view_normal): Drop want_bases parameter.
8567         (partition_view_bitmap): Likewise.
8568         * tree-ssa-live.h: Adjust declarations.
8569         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
8570         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8571         default defs at the entry point.
8572         (dump_part_var_map): New.
8573         (compute_optimized_partition_bases): New, called by...
8574         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8575         of compute_samebase_partition_bases.  Adjust.
8576         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8577         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
8578         (ssa_default_def_partition): New.
8579         (get_rtl_for_parm_ssa_default_def): New.
8580         (align_local_variable, add_stack_var): Support anonymous SSA
8581         names.
8582         (defer_stack_allocation): Likewise.  Declare earlier.
8583         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8584         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8585         Do no record deferred-allocation marker in
8586         SA.partition_to_pseudo.
8587         (expand_stack_vars): Adjust check for the marker in it.
8588         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
8589         redundant MEM attr setting.
8590         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
8591         from...
8592         (expand_one_stack_var): ... this.  New wrapper to check and
8593         skip already expanded SSA partitions.
8594         (record_alignment_for_reg_var): New, factored out of...
8595         (expand_one_var): ... this.
8596         (expand_one_ssa_partition): New.
8597         (adjust_one_expanded_partition_var): New.
8598         (expand_one_register_var): Check and skip already expanded SSA
8599         partitions.
8600         (expand_used_vars): Don't create DECLs for anonymous SSA
8601         names.  Expand all SSA partitions, then adjust all SSA names.
8602         (pass::execute): Replace the loops that set
8603         SA.partition_to_pseudo from partition leaders and cleared
8604         DECL_RTL for multi-location variables, and that which used to
8605         rename vars and set attrs, with one that clears DECL_RTL and
8606         checks that PARMs and RESULTs default_defs match DECL_RTL.
8607         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8608         * emit-rtl.c: Include stor-layout.h.
8609         (set_reg_attrs_for_parm): Handle NULL decl.
8610         (set_reg_attrs_for_decl_rtl): Take mode from expression if
8611         it's not a DECL.
8612         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
8613         rather than its possibly-NULL DECL.
8614         * explow.c (promote_ssa_mode): New.
8615         * explow.h (promote_ssa_mode): Declare.
8616         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8617         (read_complex_part): Export.
8618         * expr.h (read_complex_part): Declare.
8619         * cfgexpand.h (parm_maybe_byref_p): Declare.
8620         * function.c: Include cfgexpand.h.
8621         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8622         (use_register_for_parm_decl): Wrapper for the above to
8623         special-case the result_ptr.
8624         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8625         (split_complex_args): Take assign_parm_data_all argument.
8626         Pass it to rtl_for_parm.  Set up rtl and context for split
8627         args.  Reset complex parm before fetching its default decl
8628         rtl.
8629         (assign_parms_unsplit_complex): Use the default-def complex
8630         parm rtl if it matches the components.
8631         (assign_parms_augmented_arg_list): Adjust.
8632         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8633         multiple locations.  Recognize split complex args.
8634         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8635         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
8636         (assign_parm_setup_block): Prefer SSA-assigned location, and
8637         fill in its address if the memory location of a maybe-byref
8638         parm was not assigned by cfgexpand.
8639         (assign_parm_setup_reg): Likewise.  Adjust its mode as
8640         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
8641         sure passed_pointer parms don't need conversion.  Copy address
8642         or value as needed.
8643         (assign_parm_setup_stack): Prefer SSA-assigned location.
8644         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8645         rtl before testing for pointer bounds.  Special-case result_ptr.
8646         (expand_function_start): Maybe reset DECL_RTL of result.
8647         Prefer SSA-assigned location for result and static chain.
8648         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
8649         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
8650         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8651         anonymous SSA names.  Use promote_ssa_mode.
8652         (get_temp_reg): Likewise.
8653         (remove_ssa_form): Adjust.
8654         * stor-layout.c (layout_decl): Don't set mem attributes of
8655         non-MEMs.
8656         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8657         and get its reg_usage for reg invalidation.
8658         (compute_bb_dataflow): Pass it insn.
8659         (emit_notes_in_bb): Likewise.
8661 2015-08-14  Marek Polacek  <polacek@redhat.com>
8663         * tree-core.h (tree_base): Fix typo.
8665 2015-08-14  Marek Polacek  <polacek@redhat.com>
8667         PR middle-end/67133
8668         * gimple.c (infer_nonnull_range_by_attribute): Check that the
8669         nonnull argument position is not outside function arguments.
8671 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
8673         PR target/67143
8674         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
8675         'lconst_atomic' with 'const_atomic'.
8676         (atomic_fetch_<optab><mode>): Likewise.
8677         (atomic_<optab>_fetch<mode>): Likewise.
8678         * config/aarch64/iterators.md (lconst-atomic): Move below
8679         'const_atomic'.
8680         (const_atomic): New.
8682 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
8683             Bernd Schmidt  <bernds@codesourcery.com>
8685         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
8686         debug options.
8687         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
8688         (DWARF2_DEBUGGING_INFO): Don't define.
8689         * debug.h (dwarf2_lineno_debug_hooks): Declare.
8690         * toplev.c (process_options): Add a case for it.
8691         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
8692         (dwarf2out_init): Skip most initializations if
8693         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
8694         case.
8695         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
8696         DWARF2_LINENO_DEBUGGING_INFO.
8697         * opts.c (set_debug_level): Likewise.
8699 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
8701         * config/arm/types.md (is_neon_type): Add missing types.
8703 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
8705         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
8706         for skylake.
8707         * config/i386/i386.c (PTA_SKYLAKE): New macros.
8708         (processor_alias_table): Add skylake description.
8709         (enum processor_model): Add skylake processor.
8710         (arch_names_table): Add skylake record.
8711         * doc/invoke.texi: Add skylake item.
8713 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
8715         * ira-int.h: Include recog.h.
8716         * ira-build.c: Don't include recog.h.
8717         * ira-color.c: Likewise.
8718         * ira-conflicts.c: Likewise.
8719         * ira-costs.c: Likewise.
8720         * ira-emit.c: Likewise.
8721         * ira-lives.c: Likewise.
8722         * ira.c: Likewise.
8723         * sched-deps.c: Likewise.
8724         * sel-sched.c: Likewise.
8725         * target-globals.c: Likewise.
8727 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8729         PR bootstrap/55035
8730         * reload1.c (elimination_costs_in_insn): Make it obvious to the
8731         compiler that the n_dups and n_operands loop bounds are invariant.
8733 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8735         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
8736         expressions in A and B.
8738 2015-08-13  Richard Biener  <rguenther@suse.de>
8740         * tree.c (nonnull_arg_p): Move from ...
8741         * tree-vrp.c (nonnull_arg_p): ... here.
8742         * tree.h (nonnull_arg_p): Declare.
8743         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
8744         here, register ptr != 0 for nonnull_arg_p pointer arguments.
8745         Properly initialize static chain and by-reference result pointer.
8746         (run_scc_vn): Adjust.
8748 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
8750         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
8751         TUNE_I6400.
8753 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
8755         * config/aarch64/aarch64-protos.h
8756         (aarch64_gen_atomic_cas): Declare.
8757         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
8758         Choose appropriate instruction pattern for the target.
8759         (aarch64_gen_atomic_cas): New.
8760         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
8761         (atomic_compare_and_swap<mode>_1): Rename to
8762         aarch64_compare_and_swap<mode>.  Fix some indentation.
8763         (aarch64_compare_and_swap<mode>_lse): New.
8764         (aarch64_atomic_cas<mode>): New.
8766 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
8768         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
8769         (TARGET_LSE): New.
8771 2015-08-13  Richard Biener  <rguenther@suse.de>
8773         PR tree-optimization/67191
8774         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
8775         assert we value-numbered last stmts operand because it can validly
8776         trigger for unreachable code.
8778 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8780         PR rtl-optimization/67103
8781         * ifcvt.c (noce_try_store_flag_constants): Move
8782         x = (-(test != 0) & (b - a)) + a transformation to...
8783         (noce_try_cmove): ... Here.  Try it if normal conditional
8784         move fails.
8786 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
8788         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
8789         pseudo-processors.
8790         * config/mips/mips.md (processor): Remove w32 and w64.
8792 2015-08-13  Richard Biener  <rguenther@suse.de>
8794         PR tree-optimization/66502
8795         PR tree-optimization/67167
8796         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
8797         backedge arguments.
8798         (vn_phi_lookup): Adjust.
8799         (vn_phi_insert): Likewise.
8800         (visit_phi): Prefer to value-number to another PHI node
8801         over value-numbering to a PHI argument.
8802         (init_scc_vn): Mark DFS back edges.
8804 2015-08-13  Richard Biener  <rguenther@suse.de>
8806         * gimple.h (gcall::code_): New constant static member.
8807         (gcond::code_): Likewise.
8808         * gimple.c (gcall::code_): Define.
8809         (gcond::code_): Likewise.
8810         (is_a_helper <const gcond *>): Add.
8811         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
8812         and forward to a new gcall overload with less checking and a
8813         cheaper way to access the operand.
8814         (gimple_call_lhs_ptr): Likewise.
8815         (gimple_call_set_lhs): Likewise.
8816         (gimple_call_internal_p): Likewise.
8817         (gimple_call_with_bounds_p): Likewise.
8818         (gimple_call_set_with_bounds): Likewise.
8819         (gimple_call_internal_fn): Likewise.
8820         (gimple_call_set_ctrl_altering): Likewise.
8821         (gimple_call_ctrl_altering_p): Likewise.
8822         (gimple_call_fntype): Likewise.
8823         (gimple_call_fn): Likewise.
8824         (gimple_call_fn_ptr): Likewise.
8825         (gimple_call_set_fndecl): Likewise.
8826         (gimple_call_fndecl): Likewise.
8827         (gimple_call_chain): Likewise.
8828         (gimple_call_num_args): Likewise.
8829         (gimple_call_arg): Likewise.
8830         (gimple_call_arg_ptr): Likewise.
8831         (gimple_call_set_arg): Likewise.
8832         (gimple_call_noreturn_p): Likewise.
8833         (gimple_cond_code): Likewise.
8834         (gimple_cond_lhs): Likewise.
8835         (gimple_cond_rhs): Likewise.
8836         (gimple_has_lhs): Reduce checking.
8838 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8840         PR middle-end/25529
8841         * match.pd (div (mult @0 @1) @1) : New simplifier.
8843 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8845         PR target/67071
8846         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
8847         predicate to allow construction of vector constants using the
8848         VSLDOI vector shift instruction.
8850         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
8851         declaration.
8853         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
8854         the number of bytes to be shifted left and filled in with either
8855         all zero or all one bits.
8856         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
8857         methods exist.
8858         (output_vec_const_move): On power8, generate XXLORC to generate
8859         a vector constant with all 1's. Do a split if we need to use a
8860         VSLDOI instruction.
8862         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
8863         properly test for the MSB.
8865         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
8866         vector constants that can be created with VSLDOI.
8868 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
8870         revert:
8871         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8872         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8873         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8874         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8875         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8876         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8877         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8878         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8879         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8881 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
8883         * config/xtensa/constraints.md (define_constraint "Y"): New
8884         constraint.
8885         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
8886         * config/xtensa/linux.h (ASM_SPEC): Likewise.
8887         * config/xtensa/predicates.md (move_operand): Match constants
8888         and symbols in the presence of TARGET_AUTO_LITPOOLS.
8889         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
8890         immediate references to TLS data.
8891         (xtensa_emit_move_sequence): Don't force constants to memory in
8892         the presence of TARGET_AUTO_LITPOOLS.
8893         (print_operand): Add 'y' format, same as default, but capable of
8894         printing SF mode constants as well.
8895         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
8896         (movsf_internal): Add movi pattern that loads literal.
8897         (movsf, movdf): Don't force constants to memory in the presence
8898         of TARGET_AUTO_LITPOOLS.
8899         (movdf_internal): Add 'Y' constraint.
8900         * config/xtensa/xtensa.opt (mauto-litpools): New option.
8901         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
8903 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
8905         * config/arm/arm-fpus.def: Replace booleans with feature flags.
8906         Update comment.
8907         * config/arm/arm.c (ARM_FPU): Update macro.
8908         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
8909         (TARGET_FP16): Likewise.
8910         (TARGET_CRYPTO): Likewise.
8911         (TARGET_NEON): Likewise.
8912         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
8913         field features.
8915 2015-08-12  Tom de Vries  <tom@codesourcery.com>
8917         PR other/67092
8918         PR other/67098
8919         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
8920         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
8921         accordingly.  Mention default for --with-stage1-ldflags.
8923 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
8925         * config/arm/arm.h (arm_fpu_feature_set): New.
8926         (ARM_FPU_FSET_HAS): New.
8927         (FPU_FL_NONE): New.
8928         (FPU_FL_NEON): New.
8929         (FPU_FL_FP16): New.
8930         (FPU_FL_CRYPTO): New.
8932 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8934         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
8935         after -mcmodel=large -fPIC sorry.
8937 2015-08-12  Richard Biener  <rguenther@suse.de>
8939         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
8940         comparison operand order and commutative ternary op operand order.
8941         (sccvn_dom_walker::cond_stack): New state to track temporary
8942         expressions.
8943         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
8944         no longer valid.
8945         (sccvn_dom_walker::record_cond): Add a single temporary conditional
8946         expression.
8947         (sccvn_dom_walker::record_conds): Add a temporary conditional
8948         expressions and all related expressions also true/false.
8949         (sccvn_dom_walker::before_dom_children): Record temporary
8950         expressions based on the controlling condition of a single
8951         predecessor.  When trying to simplify a conditional statement
8952         lookup expressions we might have inserted earlier.
8954 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
8956         PR target/67127
8957         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
8958         to ARM core registers.
8960 2015-08-12  Nathan Sidwell  <nathan@acm.org>
8962         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
8963         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
8965 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
8967         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
8968         line with comments.
8969         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
8971 2015-08-12  Richard Biener  <rguenther@suse.de>
8973         * gimple.h (remove_pointer): New trait.
8974         (GIMPLE_CHECK2): New inline template function.
8975         (gassign::code_): New constant static member.
8976         (is_a_helper<const gassign *>): Add.
8977         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
8978         and forward to a new gassign overload with less checking and a
8979         cheaper way to access the operand.
8980         (gimple_assign_lhs_ptr): Likewise.
8981         (gimple_assign_set_lhs): Likewise.
8982         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
8983         Likewise.
8984         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
8985         Likewise.
8986         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
8987         Likewise.
8988         (gimple_assign_rhs_code): Likewise.
8989         * gimple.c (gassign::code_): Define.
8991 2015-08-12  Richard Biener  <rguenther@suse.de>
8993         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8994         Eliminate edges marked as not executable by SCCVN.
8995         * tree-ssa-sccvn.c: Include gimple-iterator.h.
8996         (cond_dom_walker): Rename to sccvn_dom_walker.
8997         (sccvn_dom_walker::before_dom_children): Value-number defs
8998         of all stmts.
8999         (run_scc_vn): Remove loop value-numbering all SSA names.
9000         Drop not visited SSA names to varying.
9002 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
9004         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
9005         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
9006         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
9007         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
9008         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9009         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9010         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
9011         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
9012         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
9014 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
9016         PR target/66954
9017         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
9018         to enum feature_priority and feature_list.
9019         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
9020         and isa_names_table.
9022 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
9024         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
9025         vect_induction_def.
9027 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9029         PR c/66098
9030         PR c/66711
9031         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
9032         account when deciding what was the command-line status.
9034 2015-08-11  Nathan Sidwell  <nathan@acm.org>
9036         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
9038         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
9039         we're not the only contributor to target phi.
9041 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
9043         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
9044         FIXED_REG0.
9046 2015-08-11  Tom de Vries  <tom@codesourcery.com>
9048         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
9050 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
9052         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
9053         with CPU_SLM.
9054         * config/i386/i386.md (cpu): Remove knl.
9056 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
9058         PR libgomp/65742
9059         PR middle-end/66332
9060         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
9061         open-coded sequence.
9062         * omp-low.c (oacc_process_reduction_data): Remove handline of
9063         GOMP_DEVICE_HOST_NONSHM.
9065         * lto-streamer-in.c (lto_input_mode_table): Adjust to
9066         GET_MODE_INNER changes.
9068 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
9069             Ilya Verbin  <ilya.verbin@intel.com>
9071         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
9073 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9075         * doc/options.texi (EnabledBy): Document that the argument must be
9076         a Common option.
9077         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
9078         Not enabled by -Wall.
9079         * optc-gen.awk: Give nicer error messages. Detect if the argument
9080         of EnabledBy is not a Common option.
9081         * common.opt (Wnull-dereference): Not enabled by -Wall.
9082         * opt-functions.awk (lang_enabled_by): Nicer error messages.
9084 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
9086         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
9087         model == 0x4f as Broadwell.
9089 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
9091         PR rtl-optimization/67028
9092         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
9093         Add test to see if a const_int fits in the new mode.
9095 2015-08-07  DJ Delorie  <dj@redhat.com>
9097         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
9099 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
9101         PR rtl-optimization/67029
9102         * ira-color.c: Include "recog.h" before including "ira-int.h".
9103         * target-globals.c: Likewise.
9104         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
9105         adds an alternative_mask argument and use it instead of
9106         preferred_alternatives.
9107         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
9108         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
9109         * sched-deps.c: Include "ira-int.h" after including "ira.h".
9110         (sched_analyze_insn): Update call to
9111         ira_implicitly_set_insn_hard_regs.
9112         * sel-sched.c: Include "ira-int.h" after including "ira.h".
9113         (implicit_clobber_conflict_p): Update call to
9114         ira_implicitly_set_insn_hard_regs.
9116 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
9118         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
9120 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
9122         PR target/67002
9123         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
9124         currently_expanding_to_rtl is set.
9126 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
9128         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
9129         * configure: Regenerate.
9131 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9132             Jiong Wang  <jiong.wang@arm.com>
9134         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
9135         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
9136         (REG_CLASS_NAMES): Likewise.
9137         (REG_CLASS_CONTENTS): Likewise.
9138         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
9139         (aarch64_register_move_cost): Likewise.
9140         (aarch64_load_symref_appropriately): Invoke the new added pattern if
9141         possible.
9142         * config/aarch64/constraints.md (Uc0): New constraint.
9144 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
9146         * config/aarch64/constraints.md (Usf): Add the test of
9147         aarch64_is_noplt_call_p.
9149 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
9151         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
9152         declaration.
9153         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
9154         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
9155         (call_symbol): Likewise.
9157 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
9159         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
9160         for vectorizing multiplication patterns.
9161         * tree-vectorizer.h: Adjust the number of patterns.
9163 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
9165         * config/i386/sse.md (*vec_concatv2df): Declare added
9166         alternatives as sselog type.
9168 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9170         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
9171         all GPRs.
9173 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9175         * config/s390/s390.c (s390_expand_tbegin): Expand either
9176         tbegin_1_z13 or tbegin_1 depending on VX flag.
9177         * config/s390/s390.md ("tbegin_1_z13"): New expander.
9179 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9181         * config/s390/s390.opt: Clarify description for -mzvector
9182         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
9183         -mzvector.
9185 2015-08-06  Richard Biener  <rguenther@suse.de>
9187         * gimple.h (gimple_call_set_fn): Access op member directly.
9188         (gimple_call_chain_ptr): Likewise.
9189         (gimple_call_set_chain): Likewise.
9190         (gimple_cond_lhs_ptr): Likewise.
9191         (gimple_cond_set_lhs): Likewise.
9192         (gimple_cond_rhs_ptr): Likewise.
9193         (gimple_cond_set_rhs): Likewise.
9194         (gimple_cond_true_label): Likewise.
9195         (gimple_cond_set_true_label): Likewise.
9196         (gimple_cond_set_false_label): Likewise.
9197         (gimple_cond_false_label): Likewise.
9198         (gimple_label_label): Likewise.
9199         (gimple_label_set_label): Likewise.
9200         (gimple_goto_set_dest): Likewise.
9201         (gimple_asm_input_op): Likewise.
9202         (gimple_asm_input_op_ptr): Likewise.
9203         (gimple_asm_set_input_op): Likewise.
9204         (gimple_asm_output_op): Likewise.
9205         (gimple_asm_output_op_ptr): Likewise.
9206         (gimple_asm_set_output_op): Likewise.
9207         (gimple_asm_clobber_op): Likewise.
9208         (gimple_asm_set_clobber_op): Likewise.
9209         (gimple_asm_label_op): Likewise.
9210         (gimple_asm_set_label_op): Likewise.
9211         (gimple_switch_index): Likewise.
9212         (gimple_switch_index_ptr): Likewise.
9213         (gimple_return_retval_ptr): Likewise.
9214         (gimple_return_retval): Likewise.
9215         (gimple_return_set_retval): Likewise.
9216         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
9217         (gimple_switch_label): Likewise.
9218         (gimple_switch_set_label): Likewise.
9220 2015-08-06  Richard Biener  <rguenther@suse.de>
9222         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
9223         bool comparison canonicalization and restrict to integers.
9225 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
9227         * coretypes.h (enum symbol_visibility): Relocate here.
9228         * flag-types.h (enum symbol_visibility): Remove.
9229         * tree-core.h (enum symbol_visibility): Remove.
9231 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
9233         PR target/66870
9234         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
9235         for no_split_stack function attribute along with
9236         flag_split_stack.
9237         (rs6000_expand_split_stack_prologue): Likewise.
9239 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9240             Jeff Law  <law@redhat.com>
9242         PR c/16351
9243         * doc/invoke.texi (Wnull-dereference): New.
9244         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
9245         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
9246         Warn for potential NULL dereferences.
9247         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
9248         * ubsan.c (instrument_nonnull_arg): Call
9249         infer_nonnull_range_by_attribute.
9250         (instrument_nonnull_return): Likewise.
9251         * common.opt (Wnull-dereference); New.
9252         * gimple.c (infer_nonnull_range): Remove bool arguments.
9253         (infer_nonnull_range_by_dereference): New.
9254         (infer_nonnull_range_by_attribute): New.
9255         * gimple.h: Update declarations.
9257 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9259         * gensupport.c (sequence_num): Replace with...
9260         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
9261         ...these new variables.
9262         (init_rtx_reader_args_cb): Update accordingly.
9263         (get_num_code_insns): Likewise.
9264         (read_md_rtx): Rework to use a while loop and get_c_test.
9265         Use the new counters.  Remove redundant DEFINE_SUBST case.
9266         * genoutput.c (gen_split): Delete.
9267         (main): Don't call it.
9269 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9271         * gensupport.h (get_c_test): Declare.
9272         * gensupport.c (get_c_test): New function.
9273         * genconditions.c (main): Use it.
9274         * genrecog.c (validate_pattern): Likewise.
9275         (match_pattern_1): Likewise.  Remove c_test argument.
9276         (match_pattern): Update accordingly and remove c_test argument.
9277         (main): Update accordingly.
9279 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9281         * gensupport.h (get_num_insn_codes): Declare.
9282         * gensupport.c (get_num_insn_codes): New function.
9283         * genattrtab.c (optimize_attrs): Rename max_insn_code to
9284         num_insn_codes.
9285         (main): Likewise.  Use get_num_insn_codes.
9286         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
9288 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9290         PR middle-end/66311
9291         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
9292         is zero- rather than sign-extended.
9294 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9296         * target-insns.def (can_extend): Delete.
9298 2015-08-05  Richard Biener  <rguenther@suse.de>
9300         PR tree-optimization/67121
9301         * tree-if-conv.c (combine_blocks): Clear range-info produced
9302         by stmts no longer executed conditionally.
9304 2015-08-05  Nick Clifton  <nickc@redhat.com>
9306         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
9307         to allow identical far pointers to remain.
9309 2015-08-05  Richard Biener  <rguenther@suse.de>
9311         PR middle-end/67120
9312         * match.pd: Compare address bases with == if they are decls
9313         or SSA names, not operand_equal_p.  Otherwise fail.
9315 2015-08-05  Richard Biener  <rguenther@suse.de>
9317         PR tree-optimization/67055
9318         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
9319         NULL gimple_block.
9321         * g++.dg/torture/pr67055.C: New testcase.
9323 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
9325         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
9326         noavx512vl.
9327         (define_attr "enabled"): Handle avx521vl and noavx512vl.
9328         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
9329         AVX-512 alternative out of SSE.
9330         (define_insn "*vec_concatv2df"): Ditto.
9332 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
9334         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
9335         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
9336         CODE_FOR_avx_ptestv4di.
9337         * config/i386/sse.md (define_mode_iterator V_AVX): New.
9338         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
9339         (define_insn "avx_ptest256"): Merge this ...
9340         (define_insn "sse4_1_ptest"): And this ...
9341         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
9343 2015-08-05  Richard Biener  <rguenther@suse.de>
9345         PR tree-optimization/67109
9346         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
9347         against too big groups.  Print whether this is a load or store
9348         group.  Rename from ...
9349         (vect_analyze_group_access): ... this which is now a wrapper
9350         dissolving an invalid group.
9351         (vect_analyze_data_ref_accesses): Print whether this is a load
9352         or store group.
9354 2015-08-05  Richard Biener  <rguenther@suse.de>
9356         PR middle-end/67107
9357         * match.pd: Guard const_binop result checking against NULL_TREE
9358         result.
9360 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
9362         * cse.c (cse_insn): Restoring old behaviour for src_eqv
9363          when dest and value in the REG_EQUAL are same and dest
9364          is STRICT_LOW_PART.
9366 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
9368         * config/moxie/moxie.h (PRINT_OPERAND,
9369           PRINT_OPERAND_ADDRESS): Remove macros.
9370         * config/moxie/moxie-protos.h (moxie_print_operand,
9371           moxie_print_operand_address): Remove declaration.
9372         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
9373           TARGET_PRINT_OPERAND_ADDRESS): Define.
9374           (moxie_print_operand, moxie_print_operand_address): Make static.
9376 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9378         PR target/66731
9379         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
9380         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
9382 2015-08-04  Richard Biener  <rguenther@suse.de>
9384         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
9385         generated code.
9386         (dt_operand::gen_gimple_expr): Adjust.
9388 2015-08-04  Richard Biener  <rguenther@suse.de>
9390         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
9391         bool compares on RHS.
9392         * match.pd: Add X ==/!= !X is false/true pattern.
9394 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
9396         * config/aarch64/aarch64.c: Change inner loop statement cost
9397         to be consistent with other targets.
9399 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
9401         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
9402         targets.
9404 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
9406         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
9407         (machine_function): Remove pseudos field.
9409 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9411         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9412         Exit early and use target_option_current_node if processing current
9413         pragma.
9415 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9417         * doc/extend.texi (AArch64 Function Attributes): New node.
9418         (AArch64 Pragmas): Likewise.
9420 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9422         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9423         Initialize simd builtins if TARGET_SIMD.
9424         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
9425         Make sure that the builtins are initialized only once no matter how
9426         many times the function is called.
9427         (aarch64_init_builtins): Unconditionally initialize crc builtins.
9428         (aarch64_relayout_simd_param): New function.
9429         (aarch64_simd_expand_args): Use above during argument expansion.
9430         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
9431         simd builtins if TARGET_SIMD.
9432         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
9433         prototype.
9434         (aarch64_relayout_simd_types): Likewise.
9436 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9438         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
9439         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
9440         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
9441         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9442         static keyword.
9443         (aarch64_reset_previous_fndecl): New function.
9444         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
9445         the string.
9446         * config/aarch64/aarch64-c.c: New file.
9447         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
9448         Push and pop options at beginning and end.  Remove ifdef
9449         __ARM_FEATURE_CRC32.
9450         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
9451         Add pragma +nothing+simd and +nothing+crypto where appropriate.
9452         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
9453         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
9454         Define prototype.
9455         (aarch64_register_pragmas): Likewise.
9456         (aarch64_reset_previous_fndecl): Likewise.
9457         (aarch64_process_target_attr): Likewise.
9458         (aarch64_override_options_internal): Likewise.
9460 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9462         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
9463         New function.
9464         (aarch64_can_inline_p): Likewise.
9465         (TARGET_CAN_INLINE_P): Define.
9467 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9469         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
9470         Remove static.  Handle OPT_mgeneral_regs_only,
9471         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
9472         OPT_momit_leaf_frame_pointer.
9473         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
9474         (aarch64_attr_opt_type): New enum.
9475         (aarch64_attribute_info): New struct.
9476         (aarch64_handle_attr_arch): New function.
9477         (aarch64_handle_attr_cpu): Likewise.
9478         (aarch64_handle_attr_tune): Likewise.
9479         (aarch64_handle_attr_isa_flags): Likewise.
9480         (aarch64_attributes): New table.
9481         (aarch64_process_one_target_attr): New function.
9482         (num_occurences_in_str): Likewise.
9483         (aarch64_process_target_attr): Likewise.
9484         (aarch64_option_valid_attribute_p): Likewise.
9485         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
9486         * config/aarch64/aarch64-protos.h: Include input.h
9487         (aarch64_handle_option): Declare prototype.
9489 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9491         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
9492         * config/aarch64/aarch64.c: Include target-globals.h
9493         (aarch64_previous_fndecl): New variable.
9494         (aarch64_set_current_function): New function.
9495         (TARGET_SET_CURRENT_FUNCTION): Define.
9497 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9499         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
9500         (explicit_arch): Likewise.
9501         (x_aarch64_isa_flags): Likewise.
9502         (mgeneral-regs-only): Mark as Save.
9503         (mfix-cortex-a53-835769): Likewise.
9504         (mcmodel=): Likewise.
9505         (mstrict-align): Likewise.
9506         (momit-leaf-frame-pointer): Likewise.
9507         (mtls-dialect): Likewise.
9508         (master=): Likewise.
9509         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
9510         (aarch64_isa_flags): Remove extern declaration.
9511         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
9512         to indicate success or failure.
9513         (aarch64_validate_march): Likewise.
9514         (aarch64_validate_mtune): Likewise.
9515         (aarch64_isa_flags): Delete.
9516         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
9517         instead of aarch64_isa_flags.
9518         (aarch64_get_tune_cpu): New function.
9519         (aarch64_get_arch): Likewise.
9520         (aarch64_override_options): Use above and set up explicit_tune_core
9521         and explicit_arch.
9522         (aarch64_print_extension): Move earlier in file.  Add isa_flags
9523         argument and use that instead of the global aarch64_isa_flags.
9524         (aarch64_option_save): New function.
9525         (aarch64_option_restore): Likewise.
9526         (aarch64_option_print): Likewise.
9527         (aarch64_declare_function_name): Likewise.
9528         (aarch64_start_file): Delete.
9529         (TARGET_ASM_FILE_START): Do not define.
9530         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
9531         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
9532         Declare prototype.
9534 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9536         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
9537         flag_omit_leaf_frame_pointer to 2.
9539 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9541         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
9542         define to 0 or 1.
9543         (TARGET_FIX_ERR_A53_835769): New macro.
9544         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9545         handling of opts->x_aarch64_fix_a53_err835769.
9546         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
9547         than aarch64_fix_a53_err835769.
9548         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
9549         * config/aarch64/aarch64-linux.h: Likewise.
9551 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
9553         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
9554         ix86_expand_int_movcc as boolean.
9556 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9558         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
9559         (aarch64_cpu_string): Likewise.
9560         (aarch64_tune_string): Likewise.
9561         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
9562         (aarch64_parse_extension): Return aarch64_parse_opt_result.
9563         Add extra argument to put result into.
9564         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
9565         (aarch64_parse_cpu): Add arguments to put results into. Return
9566         aarch64_parse_opt_result.
9567         (aarch64_parse_tune): Likewise.
9568         (aarch64_override_options_after_change_1): New function.
9569         (aarch64_override_options_internal): New function.
9570         (aarch64_validate_mcpu): Likewise.
9571         (aarch64_validate_march): Likewise.
9572         (aarch64_validate_mtune): Likewise.
9573         (aarch64_override_options): Update to reflect above changes.
9574         Move some logic into aarch64_override_options_internal.
9575         Initialize target_option_default_node and target_option_current_node.
9576         (aarch64_override_options_after_change): Move logic into
9577         aarch64_override_options_after_change_1 and call it with global_options.
9578         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
9579         flag values from that.
9581 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9583         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9584         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
9585         * config/aarch64/aarch64.c (struct processor): Add arch field.
9586         (all_architectures): Handle above, move above all_cores.
9587         (all_cores): Handle above.
9588         (aarch64_parse_arch): Handle above changes.
9589         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
9590         above.  Update comments.
9591         (armv8.1-a): Likewise.
9592         * config/aarch64/aarch64-cores.def: Update according to above.
9593         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
9594         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
9595         aarch64_arch_driver_info.
9597 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9599         * config/aarch64/aarch64.c (struct processor): Add ident field.
9600         Rename core sched_core.
9601         (all_cores): Handle above changes.
9602         (all_architectures): Likewise.
9603         (aarch64_parse_arch): Likewise.
9604         (aarch64_override_options): Likewise.
9606 2015-08-04  Richard Biener  <rguenther@suse.de>
9608         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
9609         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
9610         comparisons embedded in [VEC_]COND_EXPRs.
9612 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
9614         * tree-if-conv.c: Fix various typos in comments.
9615         * tree-vect-stmts.c: Likewise.
9617 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9619         PR tree-optimization/67043
9620         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
9621         preheader after hoisting invariant in it.
9622         (find_defs): Force recomputation of all luids.
9624 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
9626         * config/rs6000/htm.md (tabort.): Restrict the source operand to
9627         using a base register.
9629 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
9631         * main.c (main): Pass in NULL for toplev's external_timer.
9632         * timevar.c: Include coretypes.h.
9633         (class timer::named_items): New.
9634         (timer::named_items::named_items): New.
9635         (timer::named_items::~named_items): New.
9636         (timer::named_items::push): New.
9637         (timer::named_items::pop): New.
9638         (timer::named_items::print): New.
9639         (timer::timer): Initialize field "m_jit_client_items".
9640         (timer::~timer): New.
9641         (timer::push): Move bulk of implementation to...
9642         (timer::push_internal): ...here.  New function.
9643         (timer::pop): Move bulk of implementation to...
9644         (timer::pop_internal): ...here.  New function.
9645         (timer::push_client_item): New.
9646         (timer::pop_client_item): New.
9647         (timer::print_row): New function, taken from timer::print.
9648         (timer::print): Print "GCC items" header if we also have client
9649         items.  Move row-printing to timer::print_row.  Print any client
9650         items.
9651         (timer::get_topmost_item_name): New method.
9652         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
9653         (TV_JIT_CLIENT_CODE): New.
9654         * timevar.h (timer::push_client_item): New declaration.
9655         (timer::pop_client_item): New declaration.
9656         (timer::get_topmost_item_name): New method.
9657         (timer::push_internal): New declaration.
9658         (timer::pop_internal): New declaration.
9659         (timer::print_row): New declaration.
9660         (timer::named_items): New declaration.
9661         (timer::m_jit_client_items): New field.
9662         (timer): Add friend class named_items.
9663         (auto_timevar::auto_timevar): Add timer param.
9664         (auto_timevar::~auto_timevar): Use field "m_timer".
9665         (auto_timevar::m_timer): New field.
9666         * toplev.c (initialize_rtl): Add g_timer as param when
9667         constructing auto_timevar instance.
9668         (toplev::toplev): Add "external_timer" param, and use it to
9669         initialize the "g_timer" global if non-NULL.
9670         (toplev::~toplev): If this created "g_timer", delete it.
9671         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
9672         with "external_timer" timer *.
9674 2015-08-03  Alexander Basov <coohpt@gmail.com>
9676         PR middle-end/64744
9677         PR middle-end/48470
9678         PR middle-end/43404
9679         * cfgexpand.c (expand_one_var): Add check if stack is going to
9680         be used in naked function.
9681         * expr.c (expand_expr_addr_expr_1): Remove excess checking
9682         whether expression should not reside in MEM.
9683         * function.c (use_register_for_decl): Do not use registers for
9684         non-register things (volatile, float, BLKMode) in naked functions.
9686 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
9688         PR target/67060
9689         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
9690         Adjust splits to match new pattern.
9692 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
9694         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
9695         (VEC_M): Likewise.
9696         (VEC_N): Likewise.
9697         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
9698         point in VSX registers.
9700         * config/rs6000/constraints.md (wb constraint): Document unused
9701         w<x> constraint.
9702         (we constraint): Likewise.
9703         (wo constraint): Likewise.
9704         (wp constraint): New constraint for IEEE 128-bit floating point in
9705         VSX registers.
9706         (wq constraint): Likewise.
9708         * config/rs6000/predicates.md (easy_fp_constant): Add support for
9709         IEEE 128-bit floating point in VSX registers.
9710         (easy_scalar_constant): Likewise.
9712         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
9713         constraints (wp, wq) for IEEE 128-bit floating point in VSX
9714         registers.
9715         (rs6000_init_hard_regno_mode_ok): Likewise.
9717         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
9718         floating point in VSX registers.
9719         (VSX_L): Likewise.
9720         (VSX_M): Likewise.
9721         (VSX_M2): Likewise.
9722         (VSm): Likewise.
9723         (VSs): Likewise.
9724         (VSr): Likewise.
9725         (VSa): Likewise.
9726         (VSv): Likewise.
9727         (vsx_le_permute_<mode>): Add support to properly swap bytes for
9728         IEEE 128-bit floating point in VSX registers on little endian.
9729         (vsx_le_undo_permute_<mode>): Likewise.
9730         (vsx_le_perm_load_<mode>): Likewise.
9731         (vsx_le_perm_store_<mode>): Likewise.
9732         (splitters for IEEE 128-bit fp moves): Likewise.
9734         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
9735         wq constraints.
9737         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
9738         floating point in VSX registers.
9739         (VM2): Likewise.
9741         * doc/md.text (Machine Constraints): Document wp and wq
9742         constraints on PowerPC.
9744 2015-08-03  Jeff Law  <law@redhat.com>
9746         PR middle-end/66314
9747         PR gcov-profile/66899
9748         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
9749         iterate over the jump threading paths when an element in the
9750         jump threading paths array is eliminated.
9752 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
9754         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
9756 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
9758         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
9759         is_use_properly_guarded the variable def_preds.  Free its
9760         contents before returning.
9761         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
9762         (is_use_properly_guarded): Replace local variable def_preds with
9763         a parameter.  Adjust accordingly.  Only update *def_preds if it's
9764         the empty vector.
9766 2015-08-03  Richard Biener  <rguenther@suse.de>
9768         * genmatch.c (simplify::for_subst_vec): New member.
9769         (binary_ok): New helper for for lowering.
9770         (lower_for): Delay substituting operators into result expressions
9771         if we can merge the results eventually again.
9772         (capture_info::walk_result): Adjust for user_id appearing as
9773         result expression operator.
9774         (expr::gen_transform): Likewise.
9775         (dt_simplify::gen_1): Likewise.
9776         (dt_simplify::gen): Pass not substituted operators to tail
9777         functions or initialize local variable with it.
9778         (decision_tree::gen): Adjust function signature.
9779         * match.pd: Fix tests against global code and add default
9780         cases to switch stmts.
9782 2015-08-03  Richard Biener  <rguenther@suse.de>
9784         * genmatch.c (dt_simplify::gen): Create captures array
9785         with an initializer.
9787 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9789         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
9790         the host compiler is affected by placement new aliasing bug.
9791         * configure: Regenerate.
9792         * Makefile.in (ALIASING_FLAGS): New variable.
9793         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
9795 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9797         PR target/66731
9798         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
9799         (negmulsf3_vfp): Likewise.
9800         (muldf3negdf_vfp): Disable for -frounding-math.
9801         (mulsf3negsf_vfp): Likewise.
9802         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
9803         fix MULT cost with -frounding-math.
9805 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9807         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
9808         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
9809         explicit.  Prefer to add the flag whenever possible.
9810         (noce_process_if_block): Try noce_try_store_flag_constants before
9811         noce_try_cmove.
9813 2015-08-03  Richard Biener  <rguenther@suse.de>
9815         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
9816         New hash-map to record equivalent transforms.
9817         (dt_node::analyze): Populate the equivalent transforms hash-map.
9818         (dt_simplify::info): Add reference to hash-map entry.
9819         (dt_simplify::gen): If we have split out a function for the
9820         transform, generate a call to it.
9821         (sinfo_hashmap_traits::hash): New function.
9822         (compare_op): New helper function for ...
9823         (sinfo_hashmap_traits::equal_keys): ... this new function.
9824         (decision_tree::gen): Split out common equivalent transforms
9825         into functions.
9827 2015-08-03  Richard Biener  <rguenther@suse.de>
9829         * gimple-fold.c (fold_gimple_assign): Remove folding of
9830         the comparison in COND_EXPRs.
9832 2015-08-03  Richard Biener  <rguenther@suse.de>
9834         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
9835         on the rhs of assignments first simplify the embedded
9836         GENERIC condition.
9838 2015-08-03  Richard Biener  <rguenther@suse.de>
9840         PR tree-optimization/66917
9841         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
9842         field.
9843         (DR_VECT_AUX): New macro.
9844         (set_dr_misalignment): Adjust.
9845         (dr_misalignment): Likewise.
9846         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9847         Compute whether the base is at least element aligned.
9848         * tree-vect-stmts.c (ensure_base_align): Adjust.
9849         (vectorizable_store): If the base is not element aligned
9850         preserve alignment of the original access if misalignment is unknown.
9851         (vectorizable_load): Likewise.
9853 2015-08-02  Martin Sebor  <msebor@redhat.com>
9855         * c-family/c.opt (-Wframe-address): New warning option.
9856         * doc/invoke.texi (Wframe-address): Document it.
9857         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
9858         Clarify possible effects of calling the functions with non-zero
9859         arguments and mention -Wframe-address.
9860         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
9862 2015-08-01  Michael Collison  <michael.collison@linaro.org
9863             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9865         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
9866         (*arm_umin_cmp): Likewise.
9868 2015-08-01  Caroline Tice  <cmtice@google.com>
9870         PR 66521
9871         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
9872         global variables.
9873         (vtbl_find_mangled_name):  New function.
9874         (vtbl_register_mangled_name):  New function.
9875         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
9876         mangled name in mangled name vectors.
9877         (find_or_create_vtbl_map_node):  Ditto.
9878         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
9879         update recursion_depth on function entry; pass it to every recursive
9880         call; automatically exit if depth > 25 (give up looking at that point).
9881         (verify_bb_vtables):  Initialize recursion_depth and pass it to
9882         var_is_used_for_virtual_call_p.
9883         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
9884         global variable decls.
9885         (vtbl_register_mangled_name): New extern function decl.
9887 2015-08-01  Tom de Vries  <tom@codesourcery.com>
9889         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
9890         function.
9891         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
9892         Declare.
9893         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
9894         operation_no_trapping_overflow.  Allow non-overflow operations.
9895         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
9896         operations.
9898 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
9900         PR target/67049
9901         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
9903 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9905         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
9906         Enable for TARGET_32BIT.
9907         (*if_move_neg): Likewise.
9909 2015-07-31  Nick Clifton  <nickc@redhat.com>
9911         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
9912         Returns true for __model__.
9913         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9915 2015-07-31  Alan Modra  <amodra@gmail.com>
9917         PR target/66870
9918         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
9919         (rs6000_emit_prologue): Set it.
9920         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
9922 2015-07-31  Richard Biener  <rguenther@suse.de>
9924         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
9925         -> X == (C1 ^ C2) which is already implemented in match.pd.
9926         Remove redundant dispatching to fold_relational_const.
9927         Move unordered self and NaN compares ...
9928         * match.pd: ... as patterns here.  Remove some stray captures
9929         and add a comment.
9931 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
9933         * config/i386/i386.c
9934         (bdesc_special_args): Convert mask type from signed to unsigned for
9935         masked builtins.
9936         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
9937         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
9938         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
9939         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
9940         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
9941         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
9942         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
9943         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
9944         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
9945         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
9946         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
9947         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
9948         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
9949         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
9950         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
9951         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
9952         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
9953         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
9954         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
9955         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
9956         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
9957         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
9958         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
9959         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
9960         * config/i386/i386-builtin-types.def
9961         (V16QI_FTYPE_V16SI): Remove.
9962         (V8DF_FTYPE_V8SI): Ditto.
9963         (V8HI_FTYPE_V8DI): Ditto.
9964         (V8SI_FTYPE_V8DI): Ditto.
9965         (V8SF_FTYPE_V8DF): Ditto.
9966         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
9967         (V16HI_FTYPE_V16SI): Ditto.
9968         (V16SF_FTYPE_V16HI): Ditto.
9969         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
9970         (V16SF_FTYPE_V16SI): Ditto.
9971         (V4DI_FTYPE_V4DI): Ditto.
9972         (V16SI_FTYPE_V16SF): Ditto.
9973         (V16SF_FTYPE_FLOAT): Ditto.
9974         (V8DF_FTYPE_DOUBLE): Ditto.
9975         (V8DI_FTYPE_INT64): Ditto.
9976         (V8DI_FTYPE_V4DI): Ditto.
9977         (V16QI_FTYPE_V8DI): Ditto.
9978         (UINT_FTYPE_V4SF): Ditto.
9979         (UINT64_FTYPE_V4SF): Ditto.
9980         (UINT_FTYPE_V2DF): Ditto.
9981         (UINT64_FTYPE_V2DF): Ditto.
9982         (V16SI_FTYPE_V16SI): Ditto.
9983         (V8DI_FTYPE_V8DI): Ditto.
9984         (V16SI_FTYPE_PV4SI): Ditto.
9985         (V16SF_FTYPE_PV4SF): Ditto.
9986         (V8DI_FTYPE_PV2DI): Ditto.
9987         (V8DF_FTYPE_PV2DF): Ditto.
9988         (V4DI_FTYPE_PV2DI): Ditto.
9989         (V4DF_FTYPE_PV2DF): Ditto.
9990         (V16SI_FTYPE_PV2SI): Ditto.
9991         (V16SF_FTYPE_PV2SF): Ditto.
9992         (V8DI_FTYPE_PV4DI): Ditto.
9993         (V8DF_FTYPE_PV4DF): Ditto.
9994         (V8SF_FTYPE_FLOAT): Ditto.
9995         (V4SF_FTYPE_FLOAT): Ditto.
9996         (V4DF_FTYPE_DOUBLE): Ditto.
9997         (V8SF_FTYPE_PV4SF): Ditto.
9998         (V8SI_FTYPE_PV4SI): Ditto.
9999         (V4SI_FTYPE_PV2SI): Ditto.
10000         (V8SF_FTYPE_PV2SF): Ditto.
10001         (V8SI_FTYPE_PV2SI): Ditto.
10002         (V16SF_FTYPE_PV8SF): Ditto.
10003         (V16SI_FTYPE_PV8SI): Ditto.
10004         (V8DI_FTYPE_V8SF): Ditto.
10005         (V4DI_FTYPE_V4SF): Ditto.
10006         (V2DI_FTYPE_V4SF): Ditto.
10007         (V64QI_FTYPE_QI): Ditto.
10008         (V32HI_FTYPE_HI): Ditto.
10009         (V8UHI_FTYPE_V8UHI): Ditto.
10010         (V16UHI_FTYPE_V16UHI): Ditto.
10011         (V32UHI_FTYPE_V32UHI): Ditto.
10012         (V2UDI_FTYPE_V2UDI): Ditto.
10013         (V4UDI_FTYPE_V4UDI): Ditto.
10014         (V8UDI_FTYPE_V8UDI): Ditto.
10015         (V4USI_FTYPE_V4USI): Ditto.
10016         (V8USI_FTYPE_V8USI): Ditto.
10017         (V16USI_FTYPE_V16USI): Ditto.
10018         (V2DF_FTYPE_V2DF_UINT64): Ditto.
10019         (V2DI_FTYPE_V2DF_V2DF): Ditto.
10020         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
10021         (V8DF_FTYPE_V8DF_V8DI): Ditto.
10022         (V4SF_FTYPE_V4SF_UINT64): Ditto.
10023         (V4SI_FTYPE_V4SF_V4SF): Ditto.
10024         (V16SF_FTYPE_V16SF_V16SI): Ditto.
10025         (V64QI_FTYPE_V32HI_V32HI): Ditto.
10026         (V32HI_FTYPE_V16SI_V16SI): Ditto.
10027         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
10028         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
10029         (V32HI_FTYPE_V64QI_V64QI): Ditto.
10030         (V32HI_FTYPE_V32HI_V32HI): Ditto.
10031         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
10032         (V16SI_FTYPE_V16SI_V4SI): Ditto.
10033         (V16SI_FTYPE_V16SI_V16SI): Ditto.
10034         (V16SI_FTYPE_V32HI_V32HI): Ditto.
10035         (V16SI_FTYPE_V16SI_SI): Ditto.
10036         (V8DI_FTYPE_V8DI_V8DI): Ditto.
10037         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
10038         (V8DI_FTYPE_V16SI_V16SI): Ditto.
10039         (V8DI_FTYPE_V8DI_V2DI): Ditto.
10040         (QI_FTYPE_QI): Ditto.
10041         (SI_FTYPE_SI): Ditto.
10042         (DI_FTYPE_DI): Ditto.
10043         (QI_FTYPE_QI_QI): Ditto.
10044         (QI_FTYPE_QI_INT): Ditto.
10045         (HI_FTYPE_HI_INT): Ditto.
10046         (SI_FTYPE_SI_INT): Ditto.
10047         (DI_FTYPE_DI_INT): Ditto.
10048         (HI_FTYPE_V16QI_V16QI): Ditto.
10049         (SI_FTYPE_V32QI_V32QI): Ditto.
10050         (DI_FTYPE_V64QI_V64QI): Ditto.
10051         (QI_FTYPE_V8HI_V8HI): Ditto.
10052         (HI_FTYPE_V16HI_V16HI): Ditto.
10053         (SI_FTYPE_V32HI_V32HI): Ditto.
10054         (QI_FTYPE_V4SI_V4SI): Ditto.
10055         (QI_FTYPE_V8SI_V8SI): Ditto.
10056         (QI_FTYPE_V2DI_V2DI): Ditto.
10057         (QI_FTYPE_V4DI_V4DI): Ditto.
10058         (QI_FTYPE_V8DI_V8DI): Ditto.
10059         (HI_FTYPE_V16SI_V16SI): Ditto.
10060         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
10061         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
10062         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
10063         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
10064         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
10065         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
10066         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
10067         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
10068         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
10069         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
10070         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
10071         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
10072         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
10073         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
10074         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
10075         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
10076         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
10077         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
10078         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
10079         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
10080         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
10081         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
10082         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
10083         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
10084         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
10085         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
10086         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
10087         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
10088         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
10089         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
10090         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
10091         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
10092         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
10093         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
10094         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
10095         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
10096         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
10097         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
10098         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
10099         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
10100         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
10101         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
10102         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
10103         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
10104         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
10105         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
10106         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
10107         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
10108         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
10109         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
10110         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
10111         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
10112         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
10113         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
10114         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
10115         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
10116         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
10117         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
10118         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
10119         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
10120         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
10121         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
10122         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
10123         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
10124         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
10125         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
10126         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
10127         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
10128         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
10129         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
10130         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
10131         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
10132         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
10133         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
10134         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
10135         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10136         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
10137         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
10138         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
10139         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10140         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10141         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
10142         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
10143         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
10144         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10145         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
10146         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
10147         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10148         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10149         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10150         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
10151         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10152         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
10153         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
10154         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10155         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10156         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10157         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
10158         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
10159         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
10160         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
10161         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10162         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10163         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10164         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
10165         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
10166         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
10167         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
10168         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
10169         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
10170         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
10171         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
10172         (HI_FTYPE_HI): Ditto.
10173         (HI_FTYPE_V16QI): Ditto.
10174         (SI_FTYPE_V32QI): Ditto.
10175         (DI_FTYPE_V64QI): Ditto.
10176         (QI_FTYPE_V8HI): Ditto.
10177         (HI_FTYPE_V16HI): Ditto.
10178         (SI_FTYPE_V32HI): Ditto.
10179         (QI_FTYPE_V4SI): Ditto.
10180         (QI_FTYPE_V8SI): Ditto.
10181         (HI_FTYPE_V16SI): Ditto.
10182         (QI_FTYPE_V2DI): Ditto.
10183         (QI_FTYPE_V4DI): Ditto.
10184         (QI_FTYPE_V8DI): Ditto.
10185         (V16QI_FTYPE_HI): Ditto.
10186         (V32QI_FTYPE_SI): Ditto.
10187         (V64QI_FTYPE_DI): Ditto.
10188         (V8HI_FTYPE_QI): Ditto.
10189         (V16HI_FTYPE_HI): Ditto.
10190         (V32HI_FTYPE_SI): Ditto.
10191         (V4SI_FTYPE_QI): Ditto.
10192         (V4SI_FTYPE_HI): Ditto.
10193         (V8SI_FTYPE_QI): Ditto.
10194         (V8SI_FTYPE_HI): Ditto.
10195         (V2DI_FTYPE_QI): Ditto.
10196         (V4DI_FTYPE_QI): Ditto.
10197         (HI_FTYPE_HI_HI): Ditto.
10198         (SI_FTYPE_SI_SI): Ditto.
10199         (DI_FTYPE_DI_DI): Ditto.
10200         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10201         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10202         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10203         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10204         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10205         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10206         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10207         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10208         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10209         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10210         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10211         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10212         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10213         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10214         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10215         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10216         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10217         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10218         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10219         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10220         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
10221         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
10222         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
10223         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
10224         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
10225         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
10226         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
10227         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
10228         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
10229         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
10230         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
10231         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
10232         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
10233         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
10234         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
10235         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
10236         (V16SI_FTYPE_HI): Ditto.
10237         (V8DI_FTYPE_QI): Ditto.
10238         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10239         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10240         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10241         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10242         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10243         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10244         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10245         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10246         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10247         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10248         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10249         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10250         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10251         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10252         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10253         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
10254         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
10255         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10256         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10257         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10258         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10259         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10260         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10261         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10262         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10263         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
10264         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
10265         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
10266         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10267         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10268         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10269         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10270         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10271         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
10272         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
10273         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
10274         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10275         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10276         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10277         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
10278         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10279         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10280         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
10281         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
10282         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10283         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10284         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10285         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10286         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10287         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10288         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10289         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10290         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
10291         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10292         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10293         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10294         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10295         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10296         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10297         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10298         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10299         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10300         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10301         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10302         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10303         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
10304         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
10305         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
10306         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10307         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
10308         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
10309         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
10310         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10311         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
10312         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
10313         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
10314         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
10315         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
10316         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10317         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
10318         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
10319         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10320         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10321         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10322         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10323         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10324         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10325         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10326         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10327         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10328         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10329         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10330         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10331         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10332         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10333         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10334         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10335         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10336         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10337         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10338         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10339         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10340         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10341         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10342         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10343         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10344         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10345         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10346         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10347         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10348         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10349         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10350         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10351         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10352         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10353         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
10354         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
10355         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
10356         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10357         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10358         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
10359         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
10360         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
10361         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
10362         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
10363         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
10364         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
10365         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
10366         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
10367         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
10368         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
10369         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
10370         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
10371         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
10372         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
10373         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
10374         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
10375         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
10376         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
10377         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
10378         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
10379         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
10380         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
10381         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
10382         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
10383         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
10384         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
10385         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
10386         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
10387         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
10388         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
10389         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
10390         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
10391         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
10392         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
10393         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
10394         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
10395         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
10396         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
10397         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
10398         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
10399         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
10400         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
10401         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
10402         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
10403         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
10404         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
10405         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
10406         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
10407         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
10408         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
10409         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
10410         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
10411         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
10412         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
10413         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
10414         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
10415         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
10416         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
10417         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
10418         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
10419         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
10420         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
10421         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
10422         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
10423         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
10424         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
10425         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
10426         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
10427         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
10428         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
10429         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
10430         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
10431         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
10432         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
10433         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
10434         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
10435         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
10436         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
10437         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
10438         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
10439         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
10440         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
10441         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
10442         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
10443         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
10444         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
10445         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
10446         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
10447         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
10448         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
10449         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
10450         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
10451         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
10452         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
10453         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
10454         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
10455         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
10456         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
10457         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
10458         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
10459         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
10460         (QI_FTYPE_V8DF_INT_QI): Ditto.
10461         (QI_FTYPE_V4DF_INT_QI): Ditto.
10462         (QI_FTYPE_V2DF_INT_QI): Ditto.
10463         (HI_FTYPE_V16SF_INT_HI): Ditto.
10464         (QI_FTYPE_V8SF_INT_QI): Ditto.
10465         (QI_FTYPE_V4SF_INT_QI): Ditto.
10466         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
10468 2015-07-31  Richard Biener  <rguenther@suse.de>
10470         * gimple-fold.c (fold_gimple_assign): Remove folding of
10471         GIMPLE_BINARY_RHS.
10473 2015-07-31  Tom de Vries  <tom@codesourcery.com>
10475         PR tree-optimization/66846
10476         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
10477         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
10478         (expand_omp_target) [ENABLE_CHECKING]: Same.
10479         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
10480         cfun if !LOOPS_NEED_FIXUP.
10481         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
10482         that omp_for already has its own loop struct.
10483         * tree-parloops.c (create_phi_for_local_result)
10484         (create_call_for_reduction): Handle simple latch bb.
10485         (create_parallel_loop): Add simple latch bb to preserve
10486         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
10487         (gen_parallel_loop): Remove call to cancel_loop_tree.
10488         (parallelize_loops): Skip loops that are inner loops of parallelized
10489         loops.
10490         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
10491         verify_loop_structure.
10493 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
10495         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
10496         * config/v850/v850.md (RV_REGNUM): New constants.
10497         * config/v850/v850.c (v850_libcall_value): New functions.
10498         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
10499         (TARGET_LIBCALL_VALUE): Define.
10501 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
10503         * rtl.h (lowpart_subreg): Move in file.
10504         * loop-iv.c (lowpart_subreg): Move to...
10505         * simplify-rtx.c (lowpart_subreg): ...here.
10506           (simplify_binary_operation_1): Use lowpart_subreg instead of
10507           simplify_gen_subreg.
10508         * expr.c (expand_expr_real_2): Ditto.
10509         * emit-rtl.c (gen_lowpart_common): Ditto.
10510         * combine.c (gen_lowpart_for_combine): Ditto.
10511         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
10512           expand_debug_source_expr): Ditto.
10514 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
10516         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
10517         (expand_builtin_atomic_clear): Remove support for atomic_clear
10518         pattern.
10520 2015-07-30  Richard Biener  <rguenther@suse.de>
10522         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
10523         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
10524         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
10525         redundant operand canonicalization.
10527 2015-07-30  David Sherwood  <david.sherwood@arm.com>
10529         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
10530         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
10531         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
10532         * config/arm/arm.c (neon_valid_immediate): Likewise.
10533         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
10534         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
10535         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
10536         (expand_vec_perm_vpshufb2_vpermq): Likewise.
10537         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
10538         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
10539         * config/i386/sse.md
10540         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
10541         (*ssse3_palignr<mode>_perm): Likewise.
10542         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
10543         * config/spu/spu.c (arith_immediate_p): Likewise.
10544         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10545         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
10547 2015-07-30  Richard Biener  <rguenther@suse.de>
10549         * genmatch.c (decision_tree::gen_gimple): Merge with ...
10550         (decision_tree::gen_generic): ... this into ...
10551         (decision_tree::gen): ... this.
10552         (main): Adjust callers.
10554 2015-07-30  Richard Biener  <rguenther@suse.de>
10556         * genmatch.c (verbose): New global.
10557         (warning_at): Add overload with source_location.
10558         (capture_info::capture_info): Add bool whether generating gimple
10559         or generic.  Add gimple member.
10560         (capture_info::cinfo): Add capture member.
10561         (capture_info::walk_match): Record capture.  Warn on
10562         non-captured leafs.
10563         (capture_info::walk_c_expr): Add more fragments captures cannot
10564         escape through.  Warn on escaped captures.
10565         (dt_simplify::gen_1): Warn on operands we force to have no
10566         side-effects.
10567         (main): Initialize verbose.
10568         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
10570 2015-07-30  Richard Biener  <rguenther@suse.de>
10572         PR middle-end/67053
10573         * match.pd: Allow both operands to independently have conversion
10574         when simplifying compares of addresses.
10576 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
10578         PR target/66217
10579         PR target/67045
10580         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
10581         around those cases that need one.
10583 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
10585         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
10587 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
10589         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
10590         New.  Copied from config/i386/gnu-user.h.
10591         (ASM_COMMENT_START): Likewise.
10592         (DBX_REGISTER_NUMBER): Likewise.
10594 2015-07-29  Richard Biener  <rguenther@suse.de>
10596         * gimple-fold.c (fold_gimple_cond): Remove.
10597         (fold_stmt_1): Do not call it.
10599 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
10601         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
10602         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
10604         * config/aarch64/aarch64-modes.def: Add HFmode.
10606         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10607         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
10609         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
10610         aarch64_promoted_type): New.
10612         (aarch64_float_const_representable_p): Disable HFmode.
10613         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
10614         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
10615         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
10617         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
10618         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
10620         * config/aarch64/iterators.md (GPF_F16): New.
10622 2015-07-29  Richard Biener  <rguenther@suse.de>
10624         * match.pd: Merge address comparison patterns and make them
10625         handle some more cases.
10627 2015-07-29  Richard Biener  <rguenther@suse.de>
10629         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
10630         (parser::parse_capture): Add bool argument on whether to reject
10631         unknown captures.
10632         (parser::parse_expr): Adjust.
10633         (parser::parse_op): Likewise.
10634         (parser::parse_pattern): Likewise.
10636 2015-07-29  Richard Biener  <rguenther@suse.de>
10638         * gimple-fold.c (has_use_on_stmt): New function.
10639         (replace_stmt_with_simplification): Use it to allow
10640         abnormals originally referenced in the stmt.
10641         (fold_stmt_1): Canonicalize operand order.
10643 2015-07-28  David Sherwood  <david.sherwood@arm.com>
10645         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
10646         GET_MODE_INNER unconditionally.
10647         * config/spu/spu.c (arith_immediate_p): Likewise.
10648         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
10649         * expmed.c (synth_mult): Remove check for VOIDmode result from
10650         GET_MODE_INNER.
10651         (expand_mult_const): Likewise.
10652         * fold-const.c (fold_binary_loc): Replace call to element_precision
10653         with call to GET_MODE_PRECISION.
10654         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
10655         m->name.
10656         (emit_mode_inner): Likewise.
10657         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
10658         result check.
10659         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
10660         (GET_MODE_UNIT_PRECISION): Likewise.
10661         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
10662         * simplify-rtx.c (simplify_immed_subreg): Likewise.
10663         * stor-layout.c (bitwise_type_for_mode): Update assert.
10664         (element_precision): Remove.
10666 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10668         * target-insns.def (reload_load_address): New targetm instruction
10669         pattern.
10670         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
10672 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10674         * target-insns.def (atomic_test_and_set): New targetm instruction
10675         pattern.
10676         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
10677         HAVE_*/gen_* interface.
10679 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10681         * target-insns.def (can_extend, ptr_extend): New targetm instruction
10682         patterns.
10683         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
10684         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10685         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10686         * rtlanal.c (nonzero_bits1): Likewise.
10687         (num_sign_bit_copies1): Likewise.
10689 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10691         * target-insns.def (eh_return): New targetm instruction pattern.
10692         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
10693         interface.
10694         * function.c (thread_prologue_and_epilogue_insns): Remove
10695         preprocessor condition.
10697 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10699         * target-insns.def (indirect_jump): New targetm instruction pattern.
10700         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
10701         interface.
10703 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10705         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
10706         instead of nonimmediate_operand.  Remove C condiition.
10708 2015-07-28  Richard Biener  <rguenther@suse.de>
10710         * match.pd: Add more simplification of address comparisons.
10712 2015-07-28  Richard Biener  <rguenther@suse.de>
10714         * match.pd: Re-order two cases in comparison with max/min
10715         value simplification to make it apply for bools.
10717 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10719         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
10720         Handle simple SIGN_EXTEND or ZERO_EXTEND.
10721         (aarch64_rtx_costs): Properly strip extend or extract before
10722         passing down to rtx costs again.
10724 2015-07-28  Nick Clifton  <nickc@redhat.com>
10726         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
10727         Optimizes the case where -mes0 is active and a constant symbolic
10728         address is used.
10729         * config/rl78/rl78-protos.h: Prototype the new function.
10730         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
10732 2015-07-28  Tom de Vries  <tom@codesourcery.com>
10734         * tree-parloops.c (reduc_stmt_res): New function.
10735         (initialize_reductions, add_field_for_reduction)
10736         (create_phi_for_local_result, create_loads_for_reductions)
10737         (create_stores_for_reduction, build_new_reduction): Handle case that
10738         reduc_stmt is a phi.
10739         (gather_scalar_reductions): Allow double_reduc reductions.
10741 2015-07-28  Richard Biener  <rguenther@suse.de>
10743         * fold-const.c (fold_comparison): Remove equality folding
10744         of decl addresses ...
10745         * match.pd: ... here and merge with existing pattern.
10747 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10749         PR tree-optimization/66828
10750         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
10751         from int64_t to uint64_t.
10753 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10755         * opts-common.c (read_cmdline_option): List DriverOnly enum values
10756         as valid only in the error message of the driver, not in the
10757         messages of the language compilers.
10759 2015-07-27  Tom de Vries  <tom@codesourcery.com>
10761         * tree-parloops.c (gather_scalar_reductions): Simplify function
10762         structure.
10764 2015-07-27  Marek Polacek  <polacek@redhat.com>
10766         * ipa-devirt.c (types_same_for_odr): Fix typo.
10768 2015-07-27  Jason Merrill  <jason@redhat.com>
10770         PR debug/66468
10771         * dwarf2out.c (gen_inlined_subroutine_die): Check
10772         cgraph_function_possibly_inlined_p.
10774 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
10776         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
10777         Place integer variant first.
10778         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10780 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
10782         PR/63870
10783         * config/arm/arm-builtins.c (enum arm_builtins):
10784         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
10785         (ARM_BUILTIN_NEON_BASE): Rename macro to....
10786         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
10787         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
10788         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
10790 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
10792         PR/63870
10793         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
10794         Add qualifier_lane_index.
10795         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
10796         (arm_getlane_qualifiers): Use qualifier_lane_index.
10797         (arm_lanemac_qualifiers): Rename to...
10798         (arm_mac_n_qualifiers): ...this.
10799         (LANEMAC_QUALIFIERS): Rename to...
10800         (MAC_N_QUALIFIERS): ...this.
10801         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
10802         (arm_setlane_qualifiers): Use qualifier_lane_index.
10803         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
10804         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
10805         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
10806         (arm_expand_neon_builtin): Handle qualifier_lane_index.
10808         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
10809         * config/arm/arm.c (bounds_check): Likewise, improve error message.
10810         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
10811         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
10812         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
10813         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
10814         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
10815         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
10816         qualifiers to TERNOP_IMM.
10817         (vdup_lane): Change qualifiers to GETLANE.
10818         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
10819         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
10820         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
10821         vqdmlsl_n): Change qualifiers to MAC_N.
10823         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
10824         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
10825         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
10826         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
10827         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
10828         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
10829         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
10830         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
10831         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
10832         Remove call to neon_lane_bounds.
10834 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
10836         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
10837         Place integer variant first.
10839 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
10841         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
10842         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
10843         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
10844         for armv6kz targets.
10845         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
10846         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
10847         (FL_FOR_ARCH6ZK): Remove.
10848         (FL_FOR_ARCH6KZ): New.
10849         (arm_arch6zk): New declaration.
10850         * config/arm/arm-tables.opt: Regenerate.
10851         * config/arm/arm.c (arm_arch6kz): New.
10852         (arm_option_override): Set arm_arch6kz.
10853         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
10854         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
10855         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
10857 2015-07-27  Marek Polacek  <polacek@redhat.com>
10859         PR c++/66555
10860         PR c/54979
10861         * doc/invoke.texi: Document -Wtautological-compare.
10863 2015-07-27  Richard Biener  <rguenther@suse.de>
10865         * genmatch.c (decision_tree::gen_gimple): Split out large
10866         subtrees into separate functions.
10867         (decision_tree::gen_generic): Likewise.
10869 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
10871         * config/alpha/alpha.c: Use SUBREG_P predicate.
10872         * config/alpha/predicates.md: Ditto.
10874 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10876         * config.host (s390*-*-*): Include driver-native.c only when
10877         building with s390* as host *and* target.
10879 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
10881         PR target/66930
10882         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
10883         T bit register modified_between_p check.
10885 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10887         * config/i386/i386.c: Use SUBREG_P predicate.
10888         * config/i386/i386.md: Ditto.
10889         * config/i386/sse.md: Ditto.
10890         * config/i386/predicates.md: Ditto.
10892 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10894         PR target/67004
10895         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
10896         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
10898 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10900         * Makefile.in: Remove use of TREEBROWSER.
10901         * config.in: Regenerated.
10902         * configure: Regenerated.
10903         * configure.ac: Remove definition of TREEBROWSER.
10904         * tree-browser.c: Removed.
10905         * tree-browser.def: Removed.
10907 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10909         * graphite-scop-detection.c: Include gimple-pretty-print.h.
10910         (stmt_simple_for_scop_p): Print when a stmt is not handled in
10911         Graphite.
10912         (scopdet_basic_block_info): Print when a loop or bb cannot be
10913         represented in Graphite.
10915 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10917         PR target/66648
10918         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
10919         execution guard when min_size is less than size_needed.
10921 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10923         * doc/install.texi: Document supported versions of ISL.
10925 2015-07-25  Jeff Law  <law@redhat.com>
10927         Revert:
10928         PR lto/66752
10929         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10930         unable to find X NE 0 in the tables, return X as the simplified
10931         condition.
10932         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10933         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
10934         to VISISTED_BBS.  */
10935         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10936         after removing the control flow statement and unnecessary edges.
10938 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
10940         Revert:
10941         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
10943         PR rtl-optimization/64164
10944         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10945         * tree-ssa-copyrename.c: Removed.
10946         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10947         -ftree-coalesce-vars.
10948         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10949         * common.opt (ftree-copyrename): Ignore.
10950         (ftree-coalesce-inlined-vars): Likewise.
10951         * doc/invoke.texi: Remove the ignored options above.
10952         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10953         * tree-ssa-coalesce.h: ... here.
10954         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10955         headers required by it.
10956         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10957         across variables when flag_tree_coalesce_vars.  Check register
10958         use and promoted modes to allow coalescing.  Moved to
10959         tree-ssa-coalesce.c.
10960         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10961         with its member functions to tree-ssa-coalesce.c.
10962         (var_map_base_init): Likewise.  Renamed to
10963         compute_samebase_partition_bases.
10964         (partition_view_normal): Drop want_bases parameter.
10965         (partition_view_bitmap): Likewise.
10966         * tree-ssa-live.h: Adjust declarations.
10967         * tree-ssa-coalesce.c: Include explow.h.
10968         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10969         default defs at the entry point.
10970         (dump_part_var_map): New.
10971         (compute_optimized_partition_bases): New, called by...
10972         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10973         of compute_samebase_partition_bases.  Adjust.
10974         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10975         * cfgexpand.c (leader_merge): New.
10976         (get_rtl_for_parm_ssa_default_def): New.
10977         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10978         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10979         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10980         redundant MEM attr setting.
10981         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10982         from...
10983         (expand_one_stack_var): ... this.  New wrapper to check and
10984         skip already expanded SSA partitions.
10985         (record_alignment_for_reg_var): New, factored out of...
10986         (expand_one_var): ... this.
10987         (expand_one_ssa_partition): New.
10988         (adjust_one_expanded_partition_var): New.
10989         (expand_one_register_var): Check and skip already expanded SSA
10990         partitions.
10991         (expand_used_vars): Don't create DECLs for anonymous SSA
10992         names.  Expand all SSA partitions, then adjust all SSA names.
10993         (pass::execute): Replace the loops that set
10994         SA.partition_to_pseudo from partition leaders and cleared
10995         DECL_RTL for multi-location variables, and that which used to
10996         rename vars and set attrs, with one that clears DECL_RTL and
10997         checks that PARMs and RESULTs default_defs match DECL_RTL.
10998         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10999         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11000         * explow.c (promote_ssa_mode): New.
11001         * explow.h (promote_ssa_mode): Declare.
11002         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11003         * function.c: Include cfgexpand.h.
11004         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11005         (use_register_for_parm_decl): Wrapper for the above to
11006         special-case the result_ptr.
11007         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11008         (split_complex_args): Take assign_parm_data_all argument.
11009         Pass it to rtl_for_parm.  Set up rtl and context for split
11010         args.
11011         (assign_parms_augmented_arg_list): Adjust.
11012         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11013         multiple locations.  Recognize split complex args.
11014         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11015         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
11016         (assign_parm_setup_block): Prefer SSA-assigned location.
11017         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
11018         if stack_parm is NULL.
11019         (assign_parm_setup_stack): Prefer SSA-assigned location.
11020         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
11021         rtl before testing for pointer bounds.  Special-case result_ptr.
11022         (expand_function_start): Maybe reset DECL_RTL of result.
11023         Prefer SSA-assigned location for result and static chain.
11024         Factor out DECL_RESULT and SET_DECL_RTL.
11025         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11026         anonymous SSA names.  Use promote_ssa_mode.
11027         (get_temp_reg): Likewise.
11028         (remove_ssa_form): Adjust.
11029         * stor-layout.c (layout_decl): Don't set mem attributes of
11030         non-MEMs.
11031         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11032         and get its reg_usage for reg invalidation.
11033         (compute_bb_dataflow): Pass it insn.
11034         (emit_notes_in_bb): Likewise.
11036 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
11038         * config/i386/i386.c (ix86_va_start): Remove
11039         unneeded !TARGET_64BIT check.
11040         (ix86_gimplify_va_arg): Ditto.
11042 2015-07-24  Tom de Vries  <tom@codesourcery.com>
11044         * graphite-sese-to-poly.c (build_poly_scop): Always call
11045         rewrite_commutative_reductions_out_of_ssa.
11047 2015-07-24  Tom de Vries  <tom@codesourcery.com>
11049         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
11050         flag_associative_math to FLOAT_TYPE_P.  Honour
11051         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
11053 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11055         PR c++/64079
11056         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
11057         and "%qD" in warning_at instead of "%q+D" in warning.
11059 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
11061         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
11062         (ix86_function_abi): Cleanup.
11064 2015-07-24  Michael Darling  <darlingm@gmail.com>
11066         PR other/66259
11067         * acinclude.m4: Reflects renaming of configure.in to configure.ac
11068         * configure: Likewise
11069         * configure.ac: Likewise
11070         * doc/install.texi: Likewise
11071         * doc/tm.texi: Likewise
11072         * doc/tm.texi.in: Likewise
11074 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11076         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
11077         manually swapping values.
11078         * cse.c (fold_rtx): Likewise.
11079         * lra-eliminations.c (form_sum): Likewise.
11081 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
11083         PR target/64003
11084         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
11085         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
11086         (*jcc_1, *jcc_2, jump, simple_return_internal)
11087         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
11088         Set length_nobnd attribute instead of length attribute.
11089         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
11090         (length_nobnd): Remove attribute.
11091         (length): Remove length_nobnd processing.
11093 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
11095         * gimplify.c (omp_default_clause): New function.  Reorganize flow
11096         for clarity. Broken out of ...
11097         (omp_notice_variable): ... here.
11099 2015-07-24  Gary Funck  <gary@intrepid.com>
11101         PR middle-end/66984
11102         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
11103         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
11105 2015-07-24  Tom de Vries  <tom@codesourcery.com>
11107         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
11108         exit-first loop transform.
11110 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
11112         PR 66714
11113         * tree-cfg.c (struct replace_decls_d): New struct.
11114         (replace_block_vars_by_duplicates_1): New function.
11115         (replace_block_vars_by_duplicates): Use it to replace the decls
11116         in the value exprs by duplicates.
11118 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11120         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
11121         -shared, -symbolic, -rdynamic.
11123 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11125         PR target/65711
11126         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
11127         -dynamic-linker within %{!static %{!shared, and -rdynamic within
11128         %{!static.
11130 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
11132         PR ipa/66566
11133         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
11134         edge summary is available.
11136 2015-07-24  Richard Biener  <rguenther@suse.de>
11138         * genmatch.c (struct dt_node): Add statistic fields.
11139         (dt_node::analyze): New method.
11140         (decision_tree::gen_gimple): Call analyze on the root node
11141         and print statistics to stderr.
11142         (decision_tree::gen_generic): Likewise.
11144 2015-07-24  Richard Biener  <rguenther@suse.de>
11146         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
11147         against the highest or lowest possible integer ...
11148         * match.pd: ... as patterns here.
11150 2015-07-24  Richard Biener  <rguenther@suse.de>
11152         * genmatch.c (struct capture_info): Add same_as field.
11153         (capture_info::capture_info): Initialize same_as.
11154         (capture_info::walk_match): Compute same_as.
11155         (capture_info::walk_result): Compute stuff for the leader.
11156         (capture_info::walk_c_expr): Likewise.
11157         (dt_simplify::gen_1): Only look at leaders when deciding
11158         to force no side-effects or emit side-effects of omitted operands.
11160 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11162         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
11163         reg note to the GPR -> FPR save instructions.
11165 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11167         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
11168         cheaper.
11169         (s390_expand_insv): Don't generate risbg pattern for constant zero
11170         sources.
11171         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
11172         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
11173         splitters.
11175 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11177         * config/s390/s390.c (s390_reorg): Clean up handling of processors
11178         with
11179         -mtune=
11180         (s390_issue_rate): Likewise.
11181         (s390_sched_reorder): Likewise.
11182         (s390_sched_variable_issue): Likewise.
11183         (s390_loop_unroll_adjust): Likewise.
11184         (s390_option_override):  Likewise.
11186 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11188         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
11189         processor capabilities with -march=native.
11190         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
11191         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
11192         (S390_TARGET_BITS_STRING): Macro to simplify specs.
11194 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11196         * config/s390/s390.c (s390_issue_rate): Handle
11197         PROCESSOR_2094_Z9_EC.
11198         (s390_option_override): Likewise.
11199         (s390_adjust_priority): Likewise.
11201 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11203         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
11204         when cross compiling.
11206 2015-07-24  Richard Biener  <rguenther@suse.de>
11208         * fold-const.c (maybe_canonicalize_comparison_1): Move
11209         A code CST canonicalization ...
11210         * match.pd: ... to a pattern here.
11212 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
11214         Revert:
11215         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
11216         PR target/63521
11217         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11218         (HONOR_REG_ALLOC_ORDER): Define.
11220 2015-07-24  Richard Biener  <rguenther@suse.de>
11222         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
11223         * fold-const.c (fold_comparison): Move parameter does not
11224         alias &local simplification ...
11225         * match.pd: ... as a pattern here.
11227 2015-07-24  Richard Biener  <rguenther@suse.de>
11229         * gimple-fold.c (replace_stmt_with_simplification): Special-case
11230         valueizing call operands.
11231         * gimple-match-head.c (maybe_push_res_to_seq): Take
11232         number of call arguments from ops array.
11233         (do_valueize): New function.
11234         (gimple_simplify): Return true if valueization changed
11235         any operand even if the result didn't simplify further.
11237 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11239         PR middle-end/25530
11240         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
11242 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11244         PR middle-end/25529
11245         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
11247 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
11249         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
11250         instruction.
11252 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
11254         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
11255         clean up.
11257 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
11259         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
11260         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
11261         targets here.
11262         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
11263         ms_va_list_type_node initialization.
11265 2015-07-23  Jeff Law  <law@redhat.com>
11267         PR lto/66752
11268         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11269         unable to find X NE 0 in the tables, return X as the simplified
11270         condition.
11271         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11272         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
11273         to VISISTED_BBS.  */
11274         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11275         after removing the control flow statement and unnecessary edges.
11277 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11279         * tree-pass.h (get_current_pass_name): Removed.
11281 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
11283         PR rtl-optimization/64164
11284         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11285         * tree-ssa-copyrename.c: Removed.
11286         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
11287         -ftree-coalesce-vars.
11288         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11289         * common.opt (ftree-copyrename): Ignore.
11290         (ftree-coalesce-inlined-vars): Likewise.
11291         * doc/invoke.texi: Remove the ignored options above.
11292         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11293         * tree-ssa-coalesce.h: ... here.
11294         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11295         headers required by it.
11296         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11297         across variables when flag_tree_coalesce_vars.  Check register
11298         use and promoted modes to allow coalescing.  Moved to
11299         tree-ssa-coalesce.c.
11300         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11301         with its member functions to tree-ssa-coalesce.c.
11302         (var_map_base_init): Likewise.  Renamed to
11303         compute_samebase_partition_bases.
11304         (partition_view_normal): Drop want_bases parameter.
11305         (partition_view_bitmap): Likewise.
11306         * tree-ssa-live.h: Adjust declarations.
11307         * tree-ssa-coalesce.c: Include explow.h.
11308         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11309         default defs at the entry point.
11310         (dump_part_var_map): New.
11311         (compute_optimized_partition_bases): New, called by...
11312         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11313         of compute_samebase_partition_bases.  Adjust.
11314         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11315         * cfgexpand.c (leader_merge): New.
11316         (get_rtl_for_parm_ssa_default_def): New.
11317         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11318         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11319         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
11320         redundant MEM attr setting.
11321         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
11322         from...
11323         (expand_one_stack_var): ... this.  New wrapper to check and
11324         skip already expanded SSA partitions.
11325         (record_alignment_for_reg_var): New, factored out of...
11326         (expand_one_var): ... this.
11327         (expand_one_ssa_partition): New.
11328         (adjust_one_expanded_partition_var): New.
11329         (expand_one_register_var): Check and skip already expanded SSA
11330         partitions.
11331         (expand_used_vars): Don't create DECLs for anonymous SSA
11332         names.  Expand all SSA partitions, then adjust all SSA names.
11333         (pass::execute): Replace the loops that set
11334         SA.partition_to_pseudo from partition leaders and cleared
11335         DECL_RTL for multi-location variables, and that which used to
11336         rename vars and set attrs, with one that clears DECL_RTL and
11337         checks that PARMs and RESULTs default_defs match DECL_RTL.
11338         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11339         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11340         * explow.c (promote_ssa_mode): New.
11341         * explow.h (promote_ssa_mode): Declare.
11342         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11343         * function.c: Include cfgexpand.h.
11344         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11345         (use_register_for_parm_decl): Wrapper for the above to
11346         special-case the result_ptr.
11347         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11348         (split_complex_args): Take assign_parm_data_all argument.
11349         Pass it to rtl_for_parm.  Set up rtl and context for split
11350         args.
11351         (assign_parms_augmented_arg_list): Adjust.
11352         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11353         multiple locations.  Recognize split complex args.
11354         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11355         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
11356         (assign_parm_setup_block): Prefer SSA-assigned location.
11357         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
11358         if stack_parm is NULL.
11359         (assign_parm_setup_stack): Prefer SSA-assigned location.
11360         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
11361         rtl before testing for pointer bounds.  Special-case result_ptr.
11362         (expand_function_start): Maybe reset DECL_RTL of result.
11363         Prefer SSA-assigned location for result and static chain.
11364         Factor out DECL_RESULT and SET_DECL_RTL.
11365         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11366         anonymous SSA names.  Use promote_ssa_mode.
11367         (get_temp_reg): Likewise.
11368         (remove_ssa_form): Adjust.
11369         * stor-layout.c (layout_decl): Don't set mem attributes of
11370         non-MEMs.
11371         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11372         and get its reg_usage for reg invalidation.
11373         (compute_bb_dataflow): Pass it insn.
11374         (emit_notes_in_bb): Likewise.
11376 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
11378         PR target/66217
11379         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
11380         prototype.
11381         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
11382         (rs6000_emit_2insn_and): Handle dot forms.
11383         * config/rs6000/rs6000.md (and<mode>3): Adjust.
11384         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
11385         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
11387 2015-07-23  Richard Biener  <rguenther@suse.de>
11389         * generic-match-head.c: Include cgraph.h.
11390         * gimple-match-head.c: Likewise.
11391         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
11392         SSA names.
11393         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
11394         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
11395         pattern.
11397 2015-07-23  Richard Biener  <rguenther@suse.de>
11399         * gimple-fold.c (fold_gimple_cond): Do not require folding
11400         results to pass valid_gimple_rhs_p.
11401         * tree-cfg.h (fold_cond_expr_cond): Remove.
11402         * tree-cfg.c (fold_cond_expr_cond): Likewise.
11403         (make_edges): Do not call it.
11404         * tree-inline.c (tree_function_versioning): Likewise.
11406 2015-07-23  Tom de Vries  <tom@codesourcery.com>
11408         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
11409         vect_force_simple_reduction.
11410         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
11411         (vect_is_simple_reduction_1): Add and handle
11412         need_wrapping_integral_overflow parameter.
11413         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
11414         need_wrapping_integral_overflow parameter.
11415         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
11416         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
11417         decl.
11419 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
11421         PR tree-optimization/66926,66951
11422         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
11423         INNER_LOOP and fix up condition for renaming virtual operands.
11425 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11427         * combine.c (try_combine): Use std::swap instead of manually
11428         swapping.
11430 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
11432         * config/mips/i6400.md: New file.
11433         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
11434         (mips64r6): Likewise.
11435         (i6400): Define.
11436         * config/mips/mips-tables.opt: Regenerate.
11437         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
11438         (mips_issue_rate): Add support for i6400.
11439         (mips_multipass_dfa_lookahead): Likewise.
11440         * config/mips/mips.h (TUNE_I6400): Define.
11441         * config/mips/mips.md: Include i6400.md.
11442         (processor): Add i6400.
11443         * doc/invoke.texi (-march=@var{arch}): Add i6400.
11445 2015-07-23  Richard Biener  <rguenther@suse.de>
11447         PR middle-end/66916
11448         * match.pd: Guard widen and sign-change comparison simplification
11449         with single_use.
11451 2015-07-23  Richard Biener  <rguenther@suse.de>
11453         PR tree-optimization/66945
11454         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
11455         ::before_dom_children): Force the propagators idea of
11456         non-executable edges to materialize, not what the folder
11457         chooses.
11459 2015-07-23  Richard Biener  <rguenther@suse.de>
11461         * gimple.h (gimple_cond_make_false): Use 0 != 0.
11462         (gimple_cond_make_true): Use 1 != 0.
11464 2015-07-22  DJ Delorie  <dj@redhat.com>
11466         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
11467         slashes.
11469         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
11470         (ashrhi3): Likewise.
11471         (lshrhi3): Likewise.
11472         (movhi): Take advantage of zero-extend to load small constants.
11473         (movpsi): Likewise.
11474         (and<mode>3): Likewise.
11475         (zero_extendqihi2): Likewise.
11476         (zero_extendqisi2): New.
11477         * config/msp430/constraints.md (N,O): New.
11478         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
11480 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
11482         PR target/66954
11483         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
11484         to enum feature_priority and feature_list.
11485         (fold_builtin_cpu): Add F_AES to enum processor_features
11486         and isa_names_table.
11488 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
11490         PR driver/66737
11491         * config/i386/linux-common.h (MPX_SPEC): Use linker option
11492         for 64bit target only.
11494 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
11496         * config/nvptx/nvptx.c: Expand some comments.
11498 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
11500         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
11501         (cortex_a53_advsimd): ...This.
11503 2015-07-22  Richard Biener  <rguenther@suse.de>
11505         * genmatch.c (expr::gen_transform): Clarify error message
11506         and display location.
11508 2015-07-22  Richard Biener  <rguenther@suse.de>
11510         * genmatch.c (struct operand): Add location member.
11511         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
11512         constructors.
11513         (struct simplify): Remove match_location and result_location
11514         members.
11515         (elsehwere): Adjust.
11517 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
11519         * config/mips/m5100.md: New file.
11520         * config/mips/mips-cpus.def (m5100, m5101): Define.
11521         * config/mips/mips-tables.opt: Regenerate.
11522         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
11523         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
11524         -march=m5101 to -mips32r5.
11525         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
11526         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
11527         !-msoft-float.
11528         * config/mips/mips.md: Include m5100.md.
11529         (processor): Add m5100.
11530         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
11532 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
11534         * config/mips/mips-cpus.def (interaptiv): Define.
11535         * config/mips/mips-tables.opt: Regenerate.
11536         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
11537         -mips32r2.
11538         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
11539         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
11541 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
11543         PR target/63521
11544         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11545         (HONOR_REG_ALLOC_ORDER): Define.
11547 2015-07-22  Richard Biener  <rguenther@suse.de>
11549         PR tree-optimization/66952
11550         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
11551         blocks we end up executing unconditionally reset all SSA
11552         info such as range and alignment.
11553         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
11554         * tree-ssanames.c (reset_flow_sensitive_info): New function.
11556 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
11558         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
11559         typo in attribute.
11561 2015-07-22  Richard Biener  <rguenther@suse.de>
11563         * genmatch.c (parser::parse_result): Properly handle
11564         match with result operands and conditions.
11566 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
11568         PR target/63870
11569         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
11570         Add qualifier_struct_load_store_lane_index.
11571         (aarch64_types_loadstruct_lane_qualifiers): Use
11572         qualifier_struct_load_store_lane_index for lane index argument for
11573         last argument.
11574         (aarch64_types_storestruct_lane_qualifiers): Ditto.
11575         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11576         (aarch64_simd_expand_args): Add new argument describing mode of
11577         builtin. Check lane bounds for arguments with
11578         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11579         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
11580         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11581         (aarch64_simd_expand_builtin): Handle arguments with
11582         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
11583         aarch64_simd_expand_args.
11584         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
11585         vst[234]_lane with BUILTIN_VALLDIF.
11586         * config/aarch64/aarch64-simd.md:
11587         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
11588         endianness reversal on lane index.
11589         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
11590         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
11591         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
11592         (vec_store_lanesci_lane<mode>): Ditto.
11593         (vec_store_lanesxi_lane<mode>): Ditto.
11594         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
11595         reversal of lane index.
11596         (aarch64_ld3_lane<mode>): Ditto.
11597         (aarch64_ld4_lane<mode>): Ditto.
11598         (aarch64_st2_lane<mode>): Ditto.
11599         (aarch64_st3_lane<mode>): Ditto.
11600         (aarch64_st4_lane<mode>): Ditto.
11601         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
11602         to qmode. Add new mode parameter. Update uses.
11603         (__LD3_LANE_FUNC): Ditto.
11604         (__LD4_LANE_FUNC): Ditto.
11605         (__ST2_LANE_FUNC): Ditto.
11606         (__ST3_LANE_FUNC): Ditto.
11607         (__ST4_LANE_FUNC): Ditto.
11609 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
11611         * doc/invoke.texi (Language Independent Options): Rename node to
11612         Diagnostic Message Formatting Options.
11614 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
11616         PR ipa/66424.
11617         * lra-remat.c (operand_to_remat): Prevent using insns with input
11618         subregs processed separately by IRA.
11620 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
11622         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
11623         straight loops.
11624         (single_imm_use): Check for iterator node.
11625         (num_imm_uses): Likewise.
11626         * tree-ssa-operands.c (has_zero_uses_1): Delete.
11627         (single_imm_use_1): Check for iterator node.
11629 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
11630             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11632         * configure.ac: Add check for new options in isl-0.15.
11633         * config.in, configure: Rebuilt.
11634         * graphite-blocking.c: Include <isl/constraint.h>
11635         * graphite-interchange.c,  graphite-poly.c: Likewise.
11636         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
11637         * graphite.c: Likewise.
11638         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
11639         <isl/union_set.h>.
11640         * graphite-dependences.c: Include <isl/constraint.h>.
11641         (max_number_of_out_dimensions): Returns isl_stat.
11642         (extend_schedule_1): Likewise
11643         (extend_schedule): Corresponding changes.
11644         * graphite-optimize-isl.c: Include <isl/constraint.h> and
11645         <isl/union_set.h>.
11646         (getSingleMap): Change return type of isl_stat.
11647         (optimize_isl): Conditionally use
11648         isl_options_set_schedule_serialize_sccs.
11649         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
11650         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
11652 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
11654         PR target/66956
11655         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
11656         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
11658 2015-07-21  Richard Biener  <rguenther@suse.de>
11660         PR tree-optimization/66948
11661         * genmatch.c (capture_info::walk_match): Also recurse to
11662         captures.  Properly compute expr state from captures of
11663         captures.
11664         * match.pd: Add single-use guards to
11665         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
11667 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
11669         * config/nvptx/mkoffload.c (process): Add static destructor call.
11671 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11673         PR middle-end/66915
11674         * match.pd (A - B -> A + (-B)): Don't allow folding
11675         when type if a fixed-point type.
11677 2015-07-20  DJ Delorie  <dj@redhat.com>
11679         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
11680         (iorqi3_real): Likewise for set1.
11682 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
11684         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
11685         for !TARGET_64BIT.
11687 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
11689         * graphite-isl-ast-to-gimple.c:
11690         Refactor so that each function can access 'region'. This will help
11691         maintain a parameter rename_map within a region.
11693 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
11695         * config/rs6000/rs6000.md (*lt0_disi): New.
11697 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
11699         PR target/66217
11700         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
11701         "available letters" comment.
11702         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
11703         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
11704         and_2rld_operand):  Delete.
11705         (and_operand): Adjust.
11706         (rotate_mask_operator): New.
11707         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
11708         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
11709         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
11710         extract_ME): Delete.
11711         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11712         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
11713         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
11714         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11715         rs6000_emit_2insn_and): New.
11716         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
11717         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
11718         includes_rldic_lshift_p, includes_rldicr_lshift_p,
11719         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
11720         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11721         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
11722         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
11723         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11724         rs6000_emit_2insn_and): New.
11725         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
11726         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
11727         handling.
11728         <NOT>: Don't fall through to next case.
11729         <AND>: Handle the various rotate-and-mask cases directly.
11730         <IOR>: Always cost as one insn.
11731         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
11732         (and<mode>3): Adjust expander for the new patterns.
11733         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
11734         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
11735         (*and<mode>3_imm_dot_shifted): New.
11736         (*and<mode>3_mask): Delete, rewrite as ...
11737         (and<mode>3_mask): ... New.
11738         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
11739         (andsi3_internal0_nomc): Delete.
11740         (*andsi3_internal6): Delete.
11741         (*and<mode>3_2insn): New.
11742         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11743         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11744         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
11745         *insvdi_internal3): Delete.
11746         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
11747         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
11748         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
11749         *ior<mode>_mask): New.
11750         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
11751         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11752         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11753         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11754         Delete.
11755         (ashr<mode>3): Delete expander.
11756         (*ashr<mode>3): Rename to ...
11757         (ashr<mode>3): ... This.
11758         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
11759         (*rotldi3_internal4, *rotldi3_internal5 and split,
11760         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
11761         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
11762         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
11763         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
11764         (splitter for loading a mask): Adjust.
11765         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
11767 2015-07-20  Marek Polacek  <polacek@redhat.com>
11769         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
11770         output_add_clobbers, output_added_clobbers_hard_reg_p,
11771         gen_rtx_scratch): Remove declarations.
11773 2015-07-20  Marek Polacek  <polacek@redhat.com>
11775         PR c++/55095
11776         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
11778 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11780         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
11781         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
11783 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11785         * combine.c (combine_simplify_rtx): Move simplification step
11786         before various transformations/substitutions.
11788 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
11790         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
11791         (struct int_traits): Likewise.
11793 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11795         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
11796         function to vmsdbgout_function_decl.
11798 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
11800         PR target/66922
11801         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
11802         from misaligned positions.
11803         (ix86_expand_pinsr): Reject insertions to misaligned positions.
11805 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
11807         PR middle-end/46851
11808         PR middle-end/60340
11809         * Makefile.in: Removed omega.o.
11810         * common.opt: Document flag fcheck-data-deps as deprecated.
11811         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
11812         its associated params: omega-max-vars, omega-max-geqs,
11813         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
11814         omega-max-keys, omega-eliminate-redundant-constraints.
11815         * doc/loop.texi: Remove all the section on Omega.
11816         * graphite-blocking.c: Include missing params.h: it used to be
11817         included through tree-data-ref.h and omega.h.
11818         * graphite-isl-ast-to-gimple.c: Same.
11819         * graphite-optimize-isl.c: Same.
11820         * graphite-sese-to-poly.c: Same.
11821         * graphite.c: Same.
11822         * omega.c: Remove.
11823         * omega.h: Remove.
11824         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
11825         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
11826         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
11827         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
11828         * passes.def: Remove pass_check_data_deps.
11829         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
11830         (dump_conflict_function): Same.
11831         (dump_subscript): Same.
11832         (print_direction_vector): Same.
11833         (print_dir_vectors): Same.
11834         (print_lambda_vector): Same.
11835         (print_dist_vectors): Same.
11836         (dump_data_dependence_relation): Same.
11837         (dump_data_dependence_relations): Same.
11838         (dump_dist_dir_vectors): Same.
11839         (dump_ddrs): Same.
11840         (init_omega_eq_with_af): Removed.
11841         (omega_extract_distance_vectors): Removed.
11842         (omega_setup_subscript): Removed.
11843         (init_omega_for_ddr_1): Removed.
11844         (init_omega_for_ddr): Removed.
11845         (ddr_consistent_p): Removed.
11846         (compute_affine_dependence): Do not use omega to check data
11847         dependences.
11848         (compute_data_dependences_for_bb): Removed.
11849         (analyze_all_data_dependences): Removed.
11850         (tree_check_data_deps): Removed.
11851         * tree-data-ref.h: Do not include omega.h.
11852         (compute_data_dependences_for_bb): Removed.
11853         (tree_check_data_deps): Removed.
11854         * tree-ssa-loop.c (pass_check_data_deps): Removed.
11855         (make_pass_check_data_deps): Removed.
11856         * tree-ssa-phiopt.c: Include params.h.
11857         * tree-vect-data-refs.c: Same.
11858         * tree-vect-slp.c: Same.
11860 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
11862         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
11863         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
11864         (mem->fpreg splitters): Ditto.
11865         (general_operand->nonimmediate_operand splitter): Use explicit modes.
11866         Disable DFmode for TARGET_64BIT.
11868 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11870         PR target/66906
11871         * config/i386/i386.c (ix86_expand_prologue): Replicate static
11872         chain on the stack.
11874 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
11876         * config/nvptx/mkoffload.c (process): Constify host data.
11877         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11878         Constify host data.
11879         (generate_host_descr_file): Likewise.
11881 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
11882             Sebastian Pop  <s.pop@samsung.com>
11884         PR middle-end/61929
11885         * graphite-dependences.c (add_pdr_constraints): Renamed
11886         pdr->extent to pdr->subscript_sizes.
11887         * graphite-interchange.c (build_linearized_memory_access): Add
11888         back all gcc_assert's that the "isl_int to isl_val conversion"
11889         patch has removed.  Refactored.
11890         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
11891         * graphite-poly.c (new_poly_dr): Same.
11892         (free_poly_dr): Same.
11893         * graphite-poly.h (struct poly_dr): Same.
11894         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
11895         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
11896         * graphite-scop-detection.h: Fix space.
11897         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
11898         back all gcc_assert's removed by a previous patch.
11899         (wrap): Remove the_isl_ctx global variable that the same patch has
11900         added.
11901         (build_loop_iteration_domains): Same.
11902         (add_param_constraints): Same.
11903         (pdr_add_data_dimensions): Same.  Refactored.
11904         (build_poly_dr): Renamed extent to subscript_sizes.
11906 2015-07-17  Marek Polacek  <polacek@redhat.com>
11908         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
11909         * match.pd: ... here.
11911 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
11913         * config/nvptx/mkoffload.c (process): Constify target data.
11914         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11915         Constify target data.
11916         (generate_target_offloadend_file): Likewise.
11918 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
11920         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
11921         to allow renaming of PHI arguments on edges incoming from outer
11922         loop header, add corresponding check before start PHI iterator.
11923         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
11924         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
11925         with true force_vectorize.  Set-up dominator for outer loop too.
11926         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
11927         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
11928         was marked with force_vectorize and has restricted cfg.
11929         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
11930         inner loop.
11931         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
11932         do peeling for outer loops.
11934 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
11935             Matthias Klose  <doko@ubuntu.com>
11937         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
11938         build-sysroot, sysroot from the `Miscenalleous configure options' to
11939         the `Directories' section and strip trailing `/' from with_sysroot.
11940         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
11941         * configure: Regenerated.
11943 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
11945         PR target/66824
11946         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
11947         (TARGET_HARD_DF_REGS): Ditto.
11948         (TARGET_HARD_XF_REGS): Ditto.
11949         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
11950         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
11951         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
11952         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
11953         (*movsf_internal): Add alternatives 16 and 17. Enable
11954         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
11956 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
11958         PR rtl-optimization/66891
11959         * calls.c (expand_call): Wrap precompute_register_parameters with
11960         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
11962 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
11964         * config/nvptx/mkoffload.c (process): Constify mapping variables.
11965         Define target data struct and initialize it.
11967 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
11969         PR rtl-optimization/66626
11970         * ira.h (emit-rtl.h): Include.
11971         (non_spilled_static_chain_regno_p): New.
11972         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
11973         unless it is non spilled static chain pseudo.
11974         (assign_hard_rego): Spill memory profitable allocno unless it is
11975         non spilled static chain pseudo.
11976         (allocno_spill_priority_compare): Put non spilled static chain
11977         pseudo at the end of sorted array.
11978         (improve_allocation): Do nothing if we have static chain and
11979         non-local goto.
11980         (allocno__priority_compare_func): Put non spilled static chain
11981         pseudo at the beginning of sorted array.
11982         (move_spill_restore): Ignore non spilled static chain pseudo.
11983         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
11984         to non spilled static chain pseudo.
11985         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
11986         pseudo at the beginning of sorted array.
11987         (spill_for): Spill non spilled static chain pseudo last.
11988         * lra-constraints.c (lra_constraints): Remove static chain pseudo
11989         check for equivalence.
11991 2015-07-16  Martin Liska  <mliska@suse.cz>
11993         PR ipa/66896.
11994         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
11995         dst_ctx if it does not exist.
11997 2015-07-16  Martin Liska  <mliska@suse.cz>
11999         * hash-set.h (remove): New function.
12000         (iterator): New iteration class for hash_set.
12002 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
12004         * genattrtab.c (make_canonical): Add a file_location parameter.
12005         Use fatal_at rather than fatal.
12006         (get_attr_value): Likewise.  Update call to make_canonical.
12007         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
12008         (make_internal_attr): Update calls accordingly.
12010 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
12012         * read-md.h (message_with_line, error_with_line): Delete.
12013         * read-md.c (message_with_line, error_with_line): Delete.
12014         * gensupport.h: Include read-md.h.
12015         (md_rtx_info): New structure.
12016         (read_md_rtx): Use it.  Return a bool success value.
12017         * gensupport.c (read_md_rtx): Likewise.
12018         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
12019         (main): Update after interface changes.
12020         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
12021         (main): Update after interface changes.
12022         * genattrtab.c (insn_code_number): Delete.
12023         (optimize_attrs): Add a max_insn_code parameter and use it instead
12024         of insn_code_number.
12025         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
12026         Use *_at rather than *_with_line functions.
12027         (gen_insn): Likewise.
12028         (gen_delay): Likewise.
12029         (gen_insn_reserv): Likewise.
12030         (gen_bypass): Take an md_rtx_info rather than an rtx.
12031         (main): Update after interface changes.  Use a local max_insn_code
12032         variable instead of insn_code_number.
12033         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
12034         an rtx.  Use fatal_at rather than fatal.
12035         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
12036         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
12037         (gen_absence_set, gen_final_absence_set, gen_automaton)
12038         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
12039         (main): Update after interface changes.
12040         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
12041         and code number.
12042         (main): Update after interface changes.
12043         * genconditions.c (main): Use new read_md_rtx interface.
12044         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
12045         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
12046         (main): Update after interface changes.
12047         * genemit.c (insn_code_number, insn_index_number): Delete.
12048         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12049         Use fatal_at rather than fatal.
12050         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
12051         rather than fatal.
12052         (gen_split): Likewise.
12053         (main): Update after interface changes.
12054         * genextract.c (line_no): Delete.
12055         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12056         Update call to walk_rtx.
12057         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
12058         rather than message_with_line.
12059         (walk_rtx): Add an md_rtx_info argument.  Update call to
12060         VEC_safe_set_locstr.
12061         (main): Update after interface changes.
12062         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
12063         and lineno.  Use error_at rather than separate message_with_line
12064         calls and have_error assignments.
12065         (main): Update after interface changes.
12066         * genmddump.c (main): Use new read_md_rtx interface.
12067         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
12068         (main): Update after interface changes.
12069         * genoutput.c (next_code_number): Delete.
12070         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
12071         (gen_peephole, gen_expand, gen_split): Likewise.
12072         (note_constraint): Likewise.  Use *_at rather than *_with_line
12073         functions.
12074         (main): Update after interface changes.
12075         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
12076         rtx and lineno.
12077         (main): Update after interface changes.
12078         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
12079         than an rtx and lineno.
12080         (process_define_constraint): Likewise.
12081         (process_define_register_constraint): Likewise.
12082         (main): Update after interface changes.
12083         * genrecog.c (next_insn_code, pattern_lineno): Delete.
12084         (validate_pattern): Replace top-level rtx with an md_rtx_info.
12085         Use *_at rather than *_with_line functions.
12086         (match_pattern_2): Likewise.
12087         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
12088         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
12089         Use *_at rather than *_with_line functions.
12090         * gentarget-def.c (add_insn): New function.
12091         (main): Use it.  Use new read_md_rtx interface.
12093 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
12095         * gensupport.h (compute_test_codes): Take a file_location rather
12096         than a line number.
12097         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
12098         rather than *_with_line functions.
12099         (process_define_predicate): Update call to compute_test_codes.
12100         * genpreds.c (validate_exp): Take a file_location rather than a
12101         line number.  Use *_at functions rather than *_with_line functions.
12102         (process_define_predicate): Update call to validate_exp.
12103         (constraint_data): Replace lineno field with a file_location.
12104         (add_constraint): Take a file_location rather than a line number.
12105         Use *_at functions rather than *_with_line functions.  Fix error
12106         message for address constraints.  Update after changes to
12107         validate_exp, constraint_data and compute_test_codes.
12108         (process_define_constraint): Update accordingly.
12109         (process_define_register_constraint): Likewise.
12111 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
12113         * genoutput.c (data): Use a file_location to record the source
12114         position.
12115         (nothing): Delete.
12116         (idata, idata_end): Remove initialization.
12117         (constraint_data): Replace lineno with a file_location.
12118         (output_insn_data): Update after changes to data.
12119         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
12120         (scan_operands): Likewise, using *_at rather than *_with_line
12121         functions.
12122         (process_template): Likewise.
12123         (validate_insn_alternatives): Likewise.
12124         (validate_insn_operands): Likewise.
12125         (validate_optab_operands): Likewise.
12126         (init_insn_for_nothing): Initialize idata and idata_end.
12127         (note_constraint): Update after changes to constraint_data,
12128         using at rather than with_line functions.
12129         (mdep_constraint_len): Take a file_location rather than a
12130         line number.  Use at rather than with_line functions.
12132 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
12134         * read-md.h (fatal_at): Declare.
12135         * read-md.c (fatal_at): New function.
12136         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
12137         to record the source position.
12138         (check_attr_test): Take a file_location instead of a line number.
12139         Use fatal_at instead of fatal.
12140         (check_attr_value): Update after above changes, using "at"
12141         rather than "with_line" reporting functions.
12142         (convert_set_attr_alternative): Likewise.
12143         (gen_attr): Likewise.
12144         (check_defs): Likewise.  Don't assign to read_md_filename.
12145         (gen_insn): Update initialization after above changes.
12146         (gen_delay): Likewise.
12147         (write_insn_cases): Print the filename for a define_peephole.
12148         (gen_insn_reserv): Take a line number as argument and update
12149         the call to check_attr_test.
12150         (main): Pass a line number to gen_insn_reserv.
12152 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
12154         * read-md.h (file_location): New structure.
12155         (directive_handler_t): Take a file_location rather than a line number.
12156         (message_at, error_at): Declare.
12157         (read_skip_construct): Delete.
12158         * read-md.c (message_with_line_1): Replace with...
12159         (message_at_1): ...this new function.
12160         (message_at, error_at): New functions.
12161         (message_with_line, error_with_line): Update to use message_at_1.
12162         (handle_enum): Take a file_location rather than a line number
12163         and use error_at for error reporting.
12164         (handle_include): Likewise.
12165         (read_skip_construct): Likewise.  Make static.
12166         (handle_file): Update after above changes.  Pass a file_location
12167         rather than a line number to handle_directive.
12168         * gensupport.c (queue_elem): Replace separate filename and lineno
12169         with a file_location.
12170         (queue_pattern): Replace filename and lineno arguments with a
12171         file_location.  Update after change to queue_elem.
12172         (process_define_predicate): Replace lineno argument with a
12173         file_location and use error_at for error reporting.  Update
12174         after above changes.
12175         (process_rtx): Likewise.
12176         (subst_pattern_match): Likewise.
12177         (get_alternatives_number): Likewise.
12178         (alter_predicate_for_insn): Likewise.
12179         (rtx_handle_directive): Likewise.
12180         (is_predicable): Update after above changes, using error_at rather
12181         than error_with_line.
12182         (has_subst_attribute): Likewise.
12183         (identify_predicable_attribute): Likewise.
12184         (alter_attrs_for_subst_insn): Likewise.
12185         (process_one_cond_exec): Likewise.
12186         (process_substs_on_one_elem): Likewise.
12187         (process_define_subst): Likewise.
12188         (check_define_attr_duplicates): Likewise.
12189         (read_md_rtx): Update after change to queue_elem.
12191 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
12193         * genoutput.c (next_index_number): Delete.
12194         (data): Remove index_number.
12195         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
12196         (main): Remove manipulation of next_index_number.
12198 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
12200         * genattrtab.c (check_attr_value): Remove handling of null attrs.
12201         (make_canonical): Likewise.
12203 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
12205         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
12206         instead of adjust_address_nv.
12207         (restore_stack_nonlocal): Likewise.
12208         (nonlocal_goto): Likewise.
12210 2015-07-16  Tom de Vries  <tom@codesourcery.com>
12212         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
12213         not have a corresponding loop header phi.
12215 2015-07-16  Tom de Vries  <tom@codesourcery.com>
12217         * tree-parloops.c (create_loads_for_reductions): Handle case that
12218         reduction is unused.
12220 2015-07-16  Richard Biener  <rguenther@suse.de>
12222         PR tree-optimization/66894
12223         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
12224         about deriving NE_EXPR from truncated values.
12226 2015-07-16  Martin Liska  <mliska@suse.cz>
12228         * alloc-pool.h
12229         (object_allocator): Add new class.
12230         (pool_allocator::initialize): Use the underlying class.
12231         (pool_allocator::allocate): Likewise.
12232         (pool_allocator::remove): Likewise.
12233         (operator new): A new generic allocator.
12234         * asan.c (struct asan_mem_ref): Remove unused members.
12235         (asan_mem_ref_new): Replace new operator with
12236         object_allocator::allocate.
12237         (free_mem_ref_resources): Change deallocation.
12238         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
12239         with object_allocator.
12240         * config/sh/sh.c (add_constant): Replace new operator with
12241         object_allocator::allocate.
12242         (sh_reorg): Change call to a release method.
12243         * cselib.c (struct elt_list): Remove unused members.
12244         (new_elt_list): Replace new operator with
12245         object_allocator::allocate.
12246         (new_elt_loc_list): Likewise.
12247         (new_cselib_val): Likewise.
12248         (unchain_one_elt_list): Change delete operator with remove method.
12249         (unchain_one_elt_loc_list): Likewise.
12250         (unchain_one_value): Likewise.
12251         (cselib_finish): Release newly added static allocators.
12252         * cselib.h (struct cselib_val): Remove unused members.
12253         (struct elt_loc_list): Likewise.
12254         * df-problems.c (df_chain_alloc): Replace pool_allocator with
12255         object_allocator.
12256         * df-scan.c (struct df_scan_problem_data): Likewise.
12257         (df_scan_alloc): Likewise.
12258         * df.h (struct dataflow): Likewise.
12259         * dse.c (struct read_info_type): Likewise.
12260         (struct insn_info_type): Likewise.
12261         (struct dse_bb_info_type): Likewise.
12262         (struct group_info): Likewise.
12263         (struct deferred_change): Likewise.
12264         (get_group_info): Likewise.
12265         (delete_dead_store_insn): Likewise.
12266         (free_read_records): Likewise.
12267         (replace_read): Likewise.
12268         (check_mem_read_rtx): Likewise.
12269         (scan_insn): Likewise.
12270         (dse_step1): Likewise.
12271         (dse_step7): Likewise.
12272         * et-forest.c (struct et_occ): Remove unused members.
12273         (et_new_occ): Use allocate instead of new operator.
12274         (et_new_tree): Likewise.
12275         (et_free_tree): Call release method explicitly.
12276         (et_free_tree_force): Likewise.
12277         (et_free_pools): Likewise.
12278         (et_split): Use remove instead of delete operator.
12279         * et-forest.h (struct et_node): Remove unused members.
12280         * ipa-cp.c: Change pool_allocator to object_allocator.
12281         * ipa-inline-analysis.c: Likewise.
12282         * ipa-profile.c: Likewise.
12283         * ipa-prop.c: Likewise.
12284         * ipa-prop.h: Likewise.
12285         * ira-build.c (initiate_cost_vectors): Cast return value.
12286         (ira_allocate_cost_vector): Likewise.
12287         * ira-color.c (struct update_cost_record): Remove unused members.
12288         * lra-int.h (struct lra_live_range): Likewise.
12289         (struct lra_copy): Likewise.
12290         (struct lra_insn_reg): Likewise.
12291         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
12292         * lra.c (new_insn_reg): Replace new operator with allocate method.
12293         (free_insn_regs): Same for operator delete.
12294         (finish_insn_regs): Release new static allocator.
12295         (finish_insn_recog_data): Likewise.
12296         (lra_free_copies): Replace delete operator with remove method.
12297         (lra_create_copy): Replace operator new with allocate method.
12298         (invalidate_insn_data_regno_info): Same for remove method.
12299         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
12300         (free_debug_insn_changes): Replace delete operator with remove method.
12301         (replace_oldest_value_reg): Replace operator new with allocate method.
12302         (pass_cprop_hardreg::execute): Release new static variable.
12303         * sched-deps.c (sched_deps_init): Change pool_allocator to
12304         object_allocator.
12305         * sel-sched-ir.c: Likewise.
12306         * sel-sched-ir.h: Likewise.
12307         * stmt.c (expand_case): Likewise.
12308         (expand_sjlj_dispatch_table): Likewise.
12309         * tree-sra.c (struct access): Remove unused members.
12310         (struct assign_link): Likewise.
12311         (sra_deinitialize): Release newly added static pools.
12312         (create_access_1):Replace operator new with allocate method.
12313         (build_accesses_from_assign): Likewise.
12314         (create_artificial_child_access): Likewise.
12315         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
12316         pool_allocator to object_allocator.
12317         * tree-ssa-pre.c: Likewise.
12318         * tree-ssa-reassoc.c: Likewise.
12319         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12320         * tree-ssa-strlen.c: Likewise.
12321         * tree-ssa-structalias.c: Likewise.
12322         * var-tracking.c (onepart_pool_allocate): New function.
12323         (unshare_variable): Use the newly added function.
12324         (variable_merge_over_cur): Likewise.
12325         (variable_from_dropped): Likewise.
12326         (variable_was_changed): Likewise.
12327         (set_slot_part): Likewise.
12328         (emit_notes_for_differences_1): Likewise.
12329         (vt_finalize): Release newly added static pools.
12331 2015-07-16  Martin Jambor  <mjambor@suse.cz>
12333         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
12334         all uses.  Fix two typos in its general comment.
12335         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
12337 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
12339         * config/i386/linux-common.h (LINK_MPX): New.
12340         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
12341         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
12342         indicating '-z bndplt' support by linker.
12343         * configure: Regenerate.
12344         * config.in: Regenerate.
12346 2015-07-16  Richard Biener  <rguenther@suse.de>
12348         * fold-const.c (fold_widened_comparison): Remove.
12349         (fold_sign_changed_comparison): Likewise.
12350         (fold_comparison): Move widened and sign-changed comparison
12351         simplification ...
12352         * match.pd: ... to patterns here.
12353         * generic-match-head.c: Include target.h.
12354         * gimple-match-head.c: Likewise.
12356 2015-07-16  Richard Biener  <rguenther@suse.de>
12358         * tree-ssa-dom.c (dom_valueize): New function.
12359         (record_temporary_equivalences): Also record equivalences
12360         for dominating stmts that have uses of equivalences we are
12361         about to record.
12363 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
12365         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
12366         add_autoinc_candidates.
12367         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
12368         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
12369         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
12370         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
12371         Call new function.
12372         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
12373         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
12374         Remove parameter struct iv*.  Call add_autoinc_candidates here.
12375         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
12376         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
12377         Call new function.
12378         (find_iv_candidates): Call new functions.
12380 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
12382         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
12383         uninitialized-variable warning.
12385 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
12387         PR target/65249
12388         * config/sh/sh.md (movdi): Split simple reg move to two movsi
12389         when the destination is R0.
12391 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
12393         PR target/66866
12394         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
12395         * config/i386/i386.c (ix86_expand_pextr): New function.
12396         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
12397         for non-lowpart subregs.
12398         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
12399         (insv<mode>): Use SWI248 mode iterator.
12400         (insv<mode>_1): Ditto.
12402 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12403             Sebastian Pop  <s.pop@samsung.com>
12405         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
12406         iterator to use_stmt.
12408 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12409             Sebastian Pop <s.pop@samsung.com>
12411         * graphite-scop-detection.c (build_scops_1): Discard scops for
12412         which entry==exit.
12414 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12415             Sebastian Pop <s.pop@samsung.com>
12417         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
12418         case of a return statement in scop.
12420 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12421             Sebastian Pop <s.pop@samsung.com>
12423         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
12424         INTEGER_TYPE parameters.
12425         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
12426         VECTOR_CST in scan_tree_for_params.
12427         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
12429 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
12431         * gimple-pretty-print.h: Don't include pretty-print.h.
12432         * tree-streamer.h: Don't include lto-streamer.h.
12433         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
12434         * gimple-streamer-in.c: Remove redundant includes.
12435         * gimple-streamer-out.c: Likewise.
12436         * ipa-devirt.c: Likewise.
12437         * ipa-icf.c: Likewise.
12438         * ipa-inline-analysis.c: Likewise.
12439         * ipa-polymorphic-call.c: Likewise.
12440         * ipa-profile.c: Likewise.
12441         * ipa-prop.c: Likewise.
12442         * ipa-pure-const.c: Likewise.
12443         * lto-cgraph.c: Likewise.
12444         * lto-streamer-in.c: Likewise.
12445         * lto-streamer-out.c: Likewise.
12446         * lto-streamer.c: Likewise.
12447         * tree-streamer-in.c: Likewise.
12448         * tree-streamer-out.c: Likewise.
12449         * tree-streamer.c: Likewise.
12451 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
12453         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
12454         include input.h.
12455         * opts.c: Remove multiline #include comment.
12457 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
12459         * config/nvptx/mkoffload.c (process): Add C++ protection to
12460         emitted code.
12462 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12464         PR target/66854
12465         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
12466         null before IEEE 128-bit floating point support patch.
12468 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12470         * simplify-rtx.c (simplify_ternary_operation): Add simplification
12471         for (!c) != {0,...,0} ? a : b for vector modes.
12473 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
12474             Martin Jambor  <mjambor@suse.cz>
12476         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
12477         struct func_body_info* instead of struct ipa_node_params*, expecting
12478         fbi->info to be filled in.  Replace throughout.  Adjust call to
12479         ipa_load_from_parm_agg.
12480         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
12481         instead of struct ipa_node_params*.  Adjust calls to other functions
12482         so that they pass either fbi or fbi->info.
12483         (set_switch_stmt_execution_predicate): Likewise.
12484         (will_be_nonconstant_predicate): Likewise.
12485         (compute_bb_predicates): Likewise.
12486         (estimate_function_body_sizes): Move asserts earlier.  Fill in
12487         struct func_body_info, replace parms_info with fbi.info.  Adjust
12488         calls to functions that now accept struct func_body_info.
12489         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
12490         (struct func_body_info): Likewise.
12491         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
12492         remove static.  Adjust callers.
12493         (ipa_load_from_parm_agg): Remove.
12494         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
12495         (func_body_info): Likewise.
12496         (ipa_load_from_parm_agg): Adjust prototype.
12498 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12500         * gensupport.c (rtx_handle_directive): Adjust.
12501         * read-rtl.c (apply_iterators): Take vector to add rtxs to
12502         instead of expr list rtx.
12503         (add_define_attr_for_define_subst): Likewise.
12504         (add_define_subst_attr): Likewise.
12505         (read_subst_mapping): Likewise.
12506         (read_rtx): Likewise.
12507         * rtl.h (read_rtx): Adjust.
12509 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12511         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
12513 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12515         PR target/58066
12516         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
12517         (*tls_local_dynamic_base_64_<mode>): Ditto.
12518         (*tls_local_dynamic_base_64_largepic): Ditto.
12519         (tls_global_dynamic_64_<mode>): Update expander pattern.
12520         (tls_local_dynamic_base_64_<mode>): Ditto.
12522 2015-07-15  Richard Biener  <rguenther@suse.de>
12524         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
12525         and bool_var == 1 -> bool_var simplifications ...
12526         * match.pd: ... to patterns here.  Factor out negate_expr_p
12527         cases from the A - B -> A + (-B) patterns as negate_expr_p
12528         predicate and add a -(A + B) -> (-B) - A pattern.
12530 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
12532         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
12534 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
12535             Robert Suchanek  <robert.suchanek@imgtec.com>
12537         * config/mips/mips.c (mips_int_mask): New enum.
12538         (mips_shadow_set): Likewise.
12539         (int_mask): New variable.
12540         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
12541         (machine_function): Add int_mask and use_shadow_register_set.
12542         (mips_attribute_table): Add attribute handlers for interrupt and
12543         use_shadow_register_set.
12544         (mips_interrupt_mask): New static function.
12545         (mips_handle_interrupt_attr): Likewise.
12546         (mips_handle_use_shadow_register_set_attr): Likewise.
12547         (mips_use_shadow_register_set): Change return type to enum
12548         mips_shadow_set.  Add argument handling for use_shadow_register_set
12549         attribute.
12550         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
12551         compare with mips_shadow_set enum.
12552         (mips_compute_frame_info): Add interrupt mask and
12553         use_shadow_register_set to per-function information structure.
12554         Add a stack slot for EPC unconditionally.
12555         (mips_expand_prologue): Compare use_shadow_register_set value
12556         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
12557         masked interrupt register but in EIC mode use K0 and save Cause in K0.
12558         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
12559         copying the stack pointer from the shadow register set.
12560         * config/mips/mips.h (SR_IM0): New define.
12561         * config/mips/mips.md (mips_rdpgpr): Rename to...
12562         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
12563         * doc/extend.texi (Declaring Attributes of Functions): Document
12564         optional arguments for interrupt and use_shadow_register_set
12565         attributes.
12567 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
12569         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
12570         interrupt attribute.
12571         (mips_expand_prologue): Disable the floating point unit in an ISR.
12572         * config/mips/mips.h (SR_COP1): New define.
12574 2015-07-15  Richard Biener  <rguenther@suse.de>
12576         * genmatch.c (parser::peek, parser::peek_ident): Add argument
12577         to tell how many tokens to peek ahead (default 1).
12578         (parser::eat_token, parser::eat_ident): Return token consumed.
12579         (parser::parse_result): Parse new switch statement.
12580         * match.pd: Use case statements where appropriate.
12582 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12584         PR rtl-optimization/58066
12585         * calls.c (expand_call): Precompute register parameters before stack
12586         alignment is performed.
12588 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12590         PR rtl-optimization/66838
12591         * postreload.c (reload_cse_move2add): Also process
12592         CALL_INSN_FUNCTION_USAGE when resetting information of
12593         call-clobbered registers.
12595 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12596             Cesar Philippidis  <cesar@codesourcery.com>
12597             Chung-Lin Tang  <cltang@codesourcery.com>
12599         * config/nios2/constraints.md (U, v): New constraints.
12600         * config/nios2/predicates.md (rdprs_dcache_operand): New.
12601         (ldstex_memory_operand): New.
12602         * config/nios2/sync.md: New file.
12603         * config/nios2/nios2.md (unspecv): Add new builtin function
12604         UNSPECV codes.
12605         (rdprs, flushd, flushda, wrpie, eni): New patterns.
12606         (top-level): Include sync.md.
12607         * config/nios2/nios2.c (N2_FTYPES): Add function types for
12608         new builtins.
12609         (N2_BUILTINS): Add arch field setting, add new builtins.
12610         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
12611         for arch field.
12612         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
12613         Also handle ldex/stex/ldsex/stsex builtins.
12614         (nios2_expand_rdprs_builtin): New function.
12615         (nios2_expand_cache_builtin): New function.
12616         (nios2_expand_wrpie_builtin): New function.
12617         (nios2_expand_eni_builtin): New function.
12618         (nios2_expand_builtin): Add arch field handling and new builtin
12619         cases.
12620         * doc/extend.texi (Altera Nios II Built-in Functions): Document
12621         new builtins.
12622         * doc/md.texi (Machine Constraints): Document U and v constraints.
12624 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12625             Cesar Philippidis  <cesar@codesourcery.com>
12626             Chung-Lin Tang  <cltang@codesourcery.com>
12628         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
12629         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
12630         callee_save_reg_size and uses_anonymous_args fields.
12631         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
12632         (nios2_create_cfa_notes): New function.
12633         (nios2_adjust_stack): New function for adjusting stack.
12634         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
12635         Use nios2_adjust_stack.
12636         (nios2_expand_epilogue): Likewise.
12637         (nios2_expand_return): New function.
12638         (nios2_can_use_return_insn): Update for CDX pop.n usage.
12639         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
12640         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
12641         * config/nios2/nios2.md (return): Use nios2_expand_return.
12643 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12644             Cesar Philippidis  <cesar@codesourcery.com>
12645             Chung-Lin Tang  <cltang@codesourcery.com>
12647         * config/nios2/predicates.md (pop_operation): New.
12648         (ldwm_operation, stwm_operation): New.
12649         (nios2_hard_register_operand): New.
12650         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
12651         (ldstwm_operation_p): Declare.
12652         (gen_ldstwm_peep): Declare.
12653         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
12654         (base_reg_adjustment_p): New.
12655         (pop_operation_p): New.
12656         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
12657         (nios2_ldstwm_regset_p): New.
12658         (ldstwm_operation_p): New.
12659         (gen_ldst): New.
12660         (nios2_ldst_parallel): New.
12661         (struct ldswm_operand): Declare.
12662         (compare_ldstwm_operands): New.
12663         (can_use_cdx_ldstw): New.
12664         (gen_ldstwm_peep): New.
12665         * config/nios2/nios2-ldstwm.sml: New.
12666         * config/nios2/nios2.md: Include ldstwm.md.
12667         * config/nios2/ldstwm.md: Generated.
12669 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12670             Cesar Philippidis  <cesar@codesourcery.com>
12671             Chung-Lin Tang  <cltang@codesourcery.com>
12673         * config/nios2/nios2.h (LABEL_ALIGN): Define.
12674         (REG_ALLOC_ORDER): Define.
12675         (ADJUST_REG_ALLOC_ORDER): Define.
12676         (HONOR_REG_ALLOC_ORDER): Define.
12677         (CDX_REG_P): Define.
12678         (ANDCLEAR_INT): Define.
12679         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
12680         (nios2_label_align): Declare.
12681         (nios2_cdx_narrow_form_p): Declare.
12682         (nios2_adjust_reg_alloc_order): Declare.
12683         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
12684         operation.
12685         (nios2_large_unspec_reloc_p): New function, split from...
12686         (nios2_legitimate_pic_operand_p): ...here.
12687         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
12688         (nios2_print_operand_punct_valid_p): New.
12689         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
12690         (split_mem_address): New.
12691         (split_alu_insn): New.
12692         (cdxreg): New.
12693         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
12694         (enum nios2_add_insn_kind): New.
12695         (nios2_add_insn_names, nios2_add_insn_narrow): New.
12696         (nios2_add_insn_classify): New.
12697         (nios2_add_insn_asm): New.
12698         (nios2_cdx_narrow_form_p): New.
12699         (label_align, min_labelno, max_labelno): New.
12700         (nios2_reorg): New.
12701         (nios2_label_align): New.
12702         (nios2_adjust_reg_alloc_order): New.
12703         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12704         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12705         * config/nios2/constraints.md (P): New constraint.
12706         * config/nios2/predicates.md (const_and_operand): New.
12707         (and_operand): New.
12708         (stack_memory_operand): New.
12709         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
12710         (length): Update to use nios2_cdx_narrow_form_p().
12711         (type): Add new insn type values.
12712         (control, alu, st, ld, shift): Update insn reservations with
12713         new insn type values.
12714         (*high, *lo_sum): Define new insn patterns for constant generation.
12715         (movqi_internal, movhi_internal, movsi_internal): Reduce
12716         alternatives, update asm template to handle CDX variants, update
12717         type attributes.
12718         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
12719         template, update type attributes.
12720         (extendhisi2, extendqi<mode>2): Likewise.
12721         (addsi3): Change to use function for asm string.
12722         (subsi3): Add CDX notation to asm template, update type attributes.
12723         (negsi3, one_cmplsi3): Likewise.
12724         (andsi3): New pattern, specialized from logical patterns.
12725         (<code>si3): Remove and case, combine alternatives, update asm
12726         template.
12727         (<shift_op>si3): Add CDX notation, update type attributes.
12728         (rotrsi3): Update type attribute.
12729         (*merge, extzv, insv): New insn patterns.
12730         (return): Change to define_expand.
12731         (simple_return): Add CDX notation, update type attributes.
12732         (indirect_jump): Add CDX notation.
12733         (jump): Update asm cases, update length attribute expression.
12734         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
12735         (nios2_cbranch): Update asm cases and length attribute expression
12736         to handle CDX variants.
12737         (nios2_cmp<code>): Update asm template.
12738         (nop): Add CDX notation, update type attributes.
12739         (trap): Add CDX notation.
12740         (ctrapsi4): Update asm cases and length attribute expression to
12741         handle CDX variant.
12742         * doc/md.texi (Machine Constraints): Document P constraint.
12744 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12745             Cesar Philippidis  <cesar@codesourcery.com>
12746             Chung-Lin Tang  <cltang@codesourcery.com>
12748         * config/nios2/nios2.h (SMALL_INT12): New macro.
12749         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
12750         (nios2_valid_addr_expr_p): Use it.
12751         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
12752         with implicit "io" instructions on R2.
12753         * config/nios2/constraints.md (w): New constraint.
12754         * config/nios2/predicates.md (ldstio_memory_operand): New.
12755         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
12756         operand predicate and constraint.
12757         (ld<bh>io_signed, st<bhw>io>): Likewise.
12758         * doc/md.texi (Machine Constraints): Document w constraint.
12760 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12761             Cesar Philippidis  <cesar@codesourcery.com>
12762             Chung-Lin Tang  <cltang@codesourcery.com>
12764         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
12765         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
12766         Nios II architecture level.
12767         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
12768         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
12769         (OPTION_DEFAULT_SPECS): Define.
12770         (ASM_SPEC): Add -march= spec strings.
12771         * config/nios2/nios2.c (nios2_option_override): Check for
12772         conflicts involving new options.
12773         * config.gcc (nios2*-*-*): Support --with-arch=.
12774         * doc/invoke.texi (Option Summary, Nios II Options): Document
12775         -march=, -mbmx, and -mcdx.
12777 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
12779         PR rtl-optimization/66626
12780         * lra-constraints.c (lra_constraints): Prevent equivalence
12781         substitution for static chain pseudo in functions with nonlocal
12782         goto.
12784 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12786         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
12787         (nios2_emit_stack_limit_check): Add size parameter.  Handle
12788         -fstack-limit-symbol as well as -fstack-limit-register.
12789         (nios2_expand_prologue): Emit only a single stack limit check,
12790         even if multiple stack adjustments are required.
12791         (nios2_option_override): Diagnose unsupported combination of -fpic
12792         and -stack-limit-symbol.
12794 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
12796         * Makefile.in (top_srcdir): New.
12797         * configure.ac: Use AM_ZLIB.
12798         * configure: Regeneated.
12800 2015-07-14  Matthias Klose  <doko@ubuntu.com>
12802         PR target/66840
12803         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
12805 2015-07-14  Richard Biener  <rguenther@suse.de>
12807         PR tree-optimization/66863
12808         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
12809         what we record for conversion use stmt lhs inequalities.
12811 2015-07-14  Richard Biener  <rguenther@suse.de>
12813         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
12814         (decision_tree::gen_gimple): Likewise.
12816 2015-07-14  Tom de Vries  <tom@codesourcery.com>
12818         * gcc.c (greater_than_spec_func): Declare forward.
12819         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
12820         -ftree-parallelize-loops={0,1}.
12821         (static_spec_functions): Add greater_than_spec_func function with name
12822         "gt".
12823         (greater_than_spec_func): New function.
12825 2015-07-14  Richard Biener  <rguenther@suse.de>
12827         * tree-ssa-dom.c (record_temporary_equivalences): Merge
12828         wideing type conversion case from record_equivalences_from_incoming_edge
12829         and use record_equality to record equivalences.
12830         (record_equivalences_from_incoming_edge): Call
12831         record_temporary_equivalences.
12833 2015-07-14  Richard Biener  <rguenther@suse.de>
12835         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
12836         (struct if_expr): New.
12837         (struct with_expr): Likewise.
12838         (is_a_helper): Add helpers for if_expr and with_expr.
12839         (struct simplify): Add simplify_kind enum and member.  Remove
12840         ifexpr_vec member.
12841         (simplify::simplify): Adjust.
12842         (lower_commutative): Adjust.
12843         (lower_opt_convert): Likewise.
12844         (lower_cond): Likewise.
12845         (replace_id): Handle with_expr and if_expr.
12846         (lower_for): Adjust.
12847         (dt_simplify::gen_1): New recursive worker, split out from ...
12848         (dt_simplify::gen): ... here.  Deal with if and with expansion
12849         recursively.
12850         (capture_info::capture_info): Take context argument
12851         (capture_info::walk_result): Only analyze specific result.
12852         (parser::parse_result): New function.
12853         (parser::parse_simplify): Adjust to parse ifs with then end
12854         else case.
12855         (parser::parse_if): Simplify.
12856         (parser::parse_pattern): Pass down simplify kind.
12857         * match.pd: Convert if structure to new syntax.
12859 2015-07-13  Marek Polacek  <polacek@redhat.com>
12861         * rtl.c (rtx_equal_p_cb): Fix typo.
12863 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
12865         * omega.h: Don't include config.h, don't include params.h again if
12866         omega.h has already been included.
12867         * graphite-poly.h: Include sese.h.
12868         * graphite.c: Don't include sese.h, remove needless includes and
12869         minimize includes outside #ifdef HAVE_isl block.
12870         * graphite-blocking.c: Don't include sese.h, remove needless includes,
12871         and wrap entire file in #ifdef HAVE_isl
12872         * graphite-dependences.c: Likewise.
12873         * graphite-interchange.c: Likewise.
12874         * graphite-isl-ast-to-gimple.c: Likewise.
12875         * graphite-optimize-isl.c: Likewise.
12876         * graphite-poly.c: Likewise.
12877         * graphite-scop-detection.c: Likewise.
12878         * graphite-sese-to-poly.c: Likewise.
12880 2015-07-13  Tom de Vries  <tom@codesourcery.com>
12882         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
12884 2015-07-13  Renlin Li  <renlin.li@arm.com>
12886         PR rtl/66556
12887         * simplify-rtx.c (simplify_const_relational_operation): Add
12888         side_effects_p checks.
12890 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
12892         * bitmap.h: Fix double word typos.
12893         * builtins.c: Same.
12894         * calls.c: Same.
12895         * cfgloopmanip.c: Same.
12896         * cgraph.c: Same.
12897         * cgraph.h: Same.
12898         * cgraphclones.c: Same.
12899         * combine.c: Same.
12900         * config/aarch64/aarch64-protos.h: Same.
12901         * config/aarch64/aarch64.c: Same.
12902         * config/aarch64/aarch64.md: Same.
12903         * config/arm/arm.md: Same.
12904         * config/arm/arm1020e.md: Same.
12905         * config/arm/arm1026ejs.md: Same.
12906         * config/arm/arm926ejs.md: Same.
12907         * config/arm/fa526.md: Same.
12908         * config/arm/fa606te.md: Same.
12909         * config/arm/fa626te.md: Same.
12910         * config/arm/fa726te.md: Same.
12911         * config/arm/fmp626.md: Same.
12912         * config/darwin.c: Same.
12913         * config/epiphany/epiphany.c: Same.
12914         * config/frv/frv.c: Same.
12915         * config/ft32/ft32.c: Same.
12916         * config/gnu-user.h: Same.
12917         * config/h8300/constraints.md: Same.
12918         * config/i386/i386.c: Same.
12919         * config/i386/i386.md: Same.
12920         * config/iq2000/iq2000.md: Same.
12921         * config/mips/mips.c: Same.
12922         * config/mmix/mmix.md: Same.
12923         * config/moxie/moxie.c: Same.
12924         * config/nds32/nds32.md: Same.
12925         * config/pa/pa.h: Same.
12926         * config/rs6000/aix.h: Same.
12927         * config/rs6000/rs6000.h: Same.
12928         * config/sh/sh.c: Same.
12929         * config/tilegx/tilegx.md: Same.
12930         * config/tilepro/gen-mul-tables.cc: Same.
12931         * cse.c: Same.
12932         * dbxout.c: Same.
12933         * doc/invoke.texi: Same.
12934         * dse.c: Same.
12935         * dwarf2out.c: Same.
12936         * final.c: Same.
12937         * gcc.c: Same.
12938         * genmatch.c: Same.
12939         * gimplify.c: Same.
12940         * hash-table.h: Same.
12941         * internal-fn.c: Same.
12942         * ipa-cp.c: Same.
12943         * ipa-devirt.c: Same.
12944         * ipa-icf.c: Same.
12945         * ipa-icf.h: Same.
12946         * ipa-profile.c: Same.
12947         * ipa-prop.c: Same.
12948         * ipa-prop.h: Same.
12949         * ira.c: Same.
12950         * omp-low.c: Same.
12951         * reg-stack.c: Same.
12952         * regcprop.c: Same.
12953         * reorg.c: Same.
12954         * rtl.h: Same.
12955         * sbitmap.h: Same.
12956         * tree-eh.c: Same.
12957         * tree-inline.c: Same.
12958         * tree-sra.c: Same.
12959         * tree-ssa-dom.c: Same.
12960         * tree-ssa-loop-ivopts.c: Same.
12961         * tree-ssa-structalias.c: Same.
12962         * tree-ssa-tail-merge.c: Same.
12963         * tree-ssa-ter.c: Same.
12964         * tree-ssa-threadupdate.c: Same.
12965         * tree-ssa-uninit.c: Same.
12966         * tree-ssanames.c: Same.
12967         * tree-vect-loop-manip.c: Same.
12968         * tree-vrp.c: Same.
12969         * tree.c: Same.
12970         * valtrack.c: Same.
12971         * vec.h: Same.
12973 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12975         PR middle-end/66726
12976         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
12977         tree_ssa_phiopt_worker): Call it.
12979 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12981         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
12982         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
12983         REG_EQUAL note.
12985 2015-07-11  Marek Polacek  <polacek@redhat.com>
12987         PR middle-end/66353
12988         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
12989         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
12990         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
12991         rather than bb_has_abnormal_call_pred.
12992         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
12993         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
12994         rather than bb_has_abnormal_call_pred.
12996 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
12998         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12999         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
13000         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13001         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
13002         v850_legitimate_address_p): New functions.
13003         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13005 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
13007         PR target/66819
13008         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
13009         indirect sibcall with register arguments if register available
13010         for argument passing.
13011         (init_cumulative_args): Set cfun->machine->arg_reg_available
13012         to (cum->nregs > 0) or to true if function has a variable
13013         argument list.
13014         (function_arg_advance_32): Set cfun->machine->arg_reg_available
13015         to false if cum->nregs <= 0.
13016         * config/i386/i386.h (machine_function): Add arg_reg_available.
13018 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
13020         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
13021         and gen_higpart instead of gen_rtx_SUBREG.
13022         * config/i386/i386.md
13023         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
13024         (read-modify peephole2): Use gen_lowpart instead of
13025         gen_rtx_SUBREG for operand 5.
13027 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
13029         * config/tilepro/gen-mul-tables.cc (main): Change include list for
13030         generated files.
13031         * config/tilepro/mul-tables.c: Regenerate.
13032         * config/tilegx/mul-tables.c: Regenerate.
13034 2015-07-10  Richard Biener  <rguenther@suse.de>
13036         * fold-const.c (distribute_bit_expr): Remove.
13037         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
13038         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
13039         to A & (B | C) and simplifying A << C1 << C2 to ...
13040         * match.pd: ... patterns here.
13042 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
13044         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13045         Mark mem as READONLY and NOTRAP for PIC symbol.
13047 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
13049         * gimple-predict.h: New file.
13050         (gimple_predict_predictor, gimple_predict_set_predictor,
13051         gimple_predict_outcome, gimple_predict_set_outcome,
13052         gimple_build_predict): Relocate here.
13053         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
13054         gimple_predict_outcome, gimple_predict_set_outcome): Move to
13055         gimple-predict.h.
13056         * gimple.c (gimple_build_predict): Move to gimple-predict.h
13057         * basic-block.h: Don't include cfghooks.h.
13058         * backend.h: Don't include predict.h.
13059         * cfghooks.h: Include predict.h.
13060         * gimple-pretty-print.c: Include gimple-predict.h.
13061         * gimplify.c: Likwise.
13062         * predict.c: Adjust includes.
13063         * tree-inline.c: Likewise.
13064         * asan.c: Likewise.
13065         * auto-inc-dec.c: Likewise.
13066         * auto-profile.c: Likewise.
13067         * bb-reorder.c: Likewise.
13068         * builtins.c: Likewise.
13069         * caller-save.c: Likewise.
13070         * calls.c: Likewise.
13071         * cfganal.c: Likewise.
13072         * cfgbuild.c: Likewise.
13073         * cfg.c: Likewise.
13074         * cfgcleanup.c: Likewise.
13075         * cfgexpand.c: Likewise.
13076         * cfghooks.c: Likewise.
13077         * cfgloopanal.c: Likewise.
13078         * cfgloop.c: Likewise.
13079         * cfgloopmanip.c: Likewise.
13080         * cfgrtl.c: Likewise.
13081         * cgraph.c: Likewise.
13082         * cgraphunit.c: Likewise.
13083         * combine.c: Likewise.
13084         * cprop.c: Likewise.
13085         * cse.c: Likewise.
13086         * dce.c: Likewise.
13087         * dojump.c: Likewise.
13088         * dse.c: Likewise.
13089         * except.c: Likewise.
13090         * expmed.c: Likewise.
13091         * expr.c: Likewise.
13092         * final.c: Likewise.
13093         * fold-const.c: Likewise.
13094         * function.c: Likewise.
13095         * fwprop.c: Likewise.
13096         * gcc-plugin.h: Likewise.
13097         * gcse.c: Likewise.
13098         * genattrtab.c: Likewise.
13099         * genemit.c: Likewise.
13100         * gengtype.c: Likewise.
13101         * genopinit.c: Likewise.
13102         * genoutput.c: Likewise.
13103         * genpreds.c: Likewise.
13104         * genrecog.c: Likewise.
13105         * gimple-fold.c: Likewise.
13106         * gimple-iterator.c: Likewise.
13107         * gimple-ssa-isolate-paths.c: Likewise.
13108         * gimple-ssa-strength-reduction.c: Likewise.
13109         * graph.c: Likewise.
13110         * graphite-blocking.c: Likewise.
13111         * graphite.c: Likewise.
13112         * graphite-dependences.c: Likewise.
13113         * graphite-interchange.c: Likewise.
13114         * graphite-isl-ast-to-gimple.c: Likewise.
13115         * graphite-optimize-isl.c: Likewise.
13116         * graphite-poly.c: Likewise.
13117         * graphite-scop-detection.c: Likewise.
13118         * graphite-sese-to-poly.c: Likewise.
13119         * haifa-sched.c: Likewise.
13120         * ifcvt.c: Likewise.
13121         * internal-fn.c: Likewise.
13122         * ipa-cp.c: Likewise.
13123         * ipa-profile.c: Likewise.
13124         * ipa-split.c: Likewise.
13125         * ipa-utils.c: Likewise.
13126         * ira-build.c: Likewise.
13127         * ira-color.c: Likewise.
13128         * ira-conflicts.c: Likewise.
13129         * ira-costs.c: Likewise.
13130         * ira-emit.c: Likewise.
13131         * ira-lives.c: Likewise.
13132         * jump.c: Likewise.
13133         * loop-doloop.c: Likewise.
13134         * loop-init.c: Likewise.
13135         * loop-invariant.c: Likewise.
13136         * loop-unroll.c: Likewise.
13137         * lower-subreg.c: Likewise.
13138         * lra-assigns.c: Likewise.
13139         * lra.c: Likewise.
13140         * lra-coalesce.c: Likewise.
13141         * lra-constraints.c: Likewise.
13142         * lra-lives.c: Likewise.
13143         * lto-cgraph.c: Likewise.
13144         * lto-streamer-in.c: Likewise.
13145         * mode-switching.c: Likewise.
13146         * modulo-sched.c: Likewise.
13147         * omp-low.c: Likewise.
13148         * optabs.c: Likewise.
13149         * passes.c: Likewise.
13150         * postreload.c: Likewise.
13151         * postreload-gcse.c: Likewise.
13152         * profile.c: Likewise.
13153         * recog.c: Likewise.
13154         * regstat.c: Likewise.
13155         * reload1.c: Likewise.
13156         * reorg.c: Likewise.
13157         * rtlanal.c: Likewise.
13158         * sched-ebb.c: Likewise.
13159         * sel-sched-ir.c: Likewise.
13160         * sese.c: Likewise.
13161         * shrink-wrap.c: Likewise.
13162         * simplify-rtx.c: Likewise.
13163         * stmt.c: Likewise.
13164         * store-motion.c: Likewise.
13165         * tracer.c: Likewise.
13166         * trans-mem.c: Likewise.
13167         * tree-call-cdce.c: Likewise.
13168         * tree-cfg.c: Likewise.
13169         * tree-cfgcleanup.c: Likewise.
13170         * tree-chkp.c: Likewise.
13171         * tree-complex.c: Likewise.
13172         * tree-eh.c: Likewise.
13173         * tree-if-conv.c: Likewise.
13174         * tree-loop-distribution.c: Likewise.
13175         * tree-outof-ssa.c: Likewise.
13176         * tree-parloops.c: Likewise.
13177         * tree-predcom.c: Likewise.
13178         * tree-pretty-print.c: Likewise.
13179         * tree-profile.c: Likewise.
13180         * tree-sra.c: Likewise.
13181         * tree-ssa.c: Likewise.
13182         * tree-ssa-coalesce.c: Likewise.
13183         * tree-ssa-dce.c: Likewise.
13184         * tree-ssa-dom.c: Likewise.
13185         * tree-ssa-forwprop.c: Likewise.
13186         * tree-ssa-ifcombine.c: Likewise.
13187         * tree-ssa-loop-ch.c: Likewise.
13188         * tree-ssa-loop-im.c: Likewise.
13189         * tree-ssa-loop-ivcanon.c: Likewise.
13190         * tree-ssa-loop-ivopts.c: Likewise.
13191         * tree-ssa-loop-manip.c: Likewise.
13192         * tree-ssa-loop-prefetch.c: Likewise.
13193         * tree-ssa-loop-unswitch.c: Likewise.
13194         * tree-ssa-math-opts.c: Likewise.
13195         * tree-ssa-phiopt.c: Likewise.
13196         * tree-ssa-pre.c: Likewise.
13197         * tree-ssa-reassoc.c: Likewise.
13198         * tree-ssa-sink.c: Likewise.
13199         * tree-ssa-tail-merge.c: Likewise.
13200         * tree-ssa-threadedge.c: Likewise.
13201         * tree-ssa-threadupdate.c: Likewise.
13202         * tree-switch-conversion.c: Likewise.
13203         * tree-tailcall.c: Likewise.
13204         * tree-vect-data-refs.c: Likewise.
13205         * tree-vect-loop.c: Likewise.
13206         * tree-vect-loop-manip.c: Likewise.
13207         * tree-vectorizer.c: Likewise.
13208         * tree-vrp.c: Likewise.
13209         * ubsan.c: Likewise.
13210         * value-prof.c: Likewise.
13211         * varasm.c: Likewise.
13212         * var-tracking.c: Likewise.
13213         * config/aarch64/aarch64-builtins.c: Likewise.
13214         * config/aarch64/aarch64.c: Likewise.
13215         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13216         * config/alpha/alpha.c: Likewise.
13217         * config/arc/arc.c: Likewise.
13218         * config/arm/arm.c: Likewise.
13219         * config/avr/avr.c: Likewise.
13220         * config/bfin/bfin.c: Likewise.
13221         * config/c6x/c6x.c: Likewise.
13222         * config/cr16/cr16.c: Likewise.
13223         * config/cris/cris.c: Likewise.
13224         * config/darwin.c: Likewise.
13225         * config/darwin-c.c: Likewise.
13226         * config/epiphany/epiphany.c: Likewise.
13227         * config/epiphany/mode-switch-use.c: Likewise.
13228         * config/epiphany/resolve-sw-modes.c: Likewise.
13229         * config/fr30/fr30.c: Likewise.
13230         * config/frv/frv.c: Likewise.
13231         * config/ft32/ft32.c: Likewise.
13232         * config/h8300/h8300.c: Likewise.
13233         * config/i386/i386.c: Likewise.
13234         * config/i386/winnt.c: Likewise.
13235         * config/ia64/ia64.c: Likewise.
13236         * config/iq2000/iq2000.c: Likewise.
13237         * config/lm32/lm32.c: Likewise.
13238         * config/m32c/m32c.c: Likewise.
13239         * config/m32r/m32r.c: Likewise.
13240         * config/m68k/m68k.c: Likewise.
13241         * config/mcore/mcore.c: Likewise.
13242         * config/mep/mep.c: Likewise.
13243         * config/microblaze/microblaze.c: Likewise.
13244         * config/mips/mips.c: Likewise.
13245         * config/mmix/mmix.c: Likewise.
13246         * config/mn10300/mn10300.c: Likewise.
13247         * config/moxie/moxie.c: Likewise.
13248         * config/msp430/msp430.c: Likewise.
13249         * config/nds32/nds32.c: Likewise.
13250         * config/nds32/nds32-cost.c: Likewise.
13251         * config/nds32/nds32-fp-as-gp.c: Likewise.
13252         * config/nds32/nds32-intrinsic.c: Likewise.
13253         * config/nds32/nds32-isr.c: Likewise.
13254         * config/nds32/nds32-md-auxiliary.c: Likewise.
13255         * config/nds32/nds32-memory-manipulation.c: Likewise.
13256         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13257         * config/nds32/nds32-predicates.c: Likewise.
13258         * config/nios2/nios2.c: Likewise.
13259         * config/nvptx/nvptx.c: Likewise.
13260         * config/pa/pa.c: Likewise.
13261         * config/pdp11/pdp11.c: Likewise.
13262         * config/rl78/rl78.c: Likewise.
13263         * config/rs6000/rs6000.c: Likewise.
13264         * config/rx/rx.c: Likewise.
13265         * config/s390/s390.c: Likewise.
13266         * config/sh/sh.c: Likewise.
13267         * config/sh/sh-mem.cc: Likewise.
13268         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13269         * config/sh/sh_treg_combine.cc: Likewise.
13270         * config/sparc/sparc.c: Likewise.
13271         * config/spu/spu.c: Likewise.
13272         * config/stormy16/stormy16.c: Likewise.
13273         * config/tilegx/tilegx.c: Likewise.
13274         * config/tilepro/tilepro.c: Likewise.
13275         * config/v850/v850.c: Likewise.
13276         * config/vax/vax.c: Likewise.
13277         * config/visium/visium.c: Likewise.
13278         * config/xtensa/xtensa.c: Likewise.
13280 2015-07-10  Richard Biener  <rguenther@suse.de>
13282         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
13283         (decision_tree::gen_gimple): Likewise.
13284         (decision_tree::gen_generic): Likewise.
13286 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
13288         PR target/66813
13289         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
13290         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
13292 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
13294         PR middle-end/66820
13295         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
13296         or ORT_TASK contexts.
13297         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
13298         is non-zero.
13300 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13302         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
13303         above function.
13305 2015-07-10  Tom de Vries  <tom@codesourcery.com>
13307         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
13308         insert nit + 1 bound.
13310 2015-07-10  Richard Biener  <rguenther@suse.de>
13312         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
13313         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
13314         (if_convertible_loop_p_1): For this always compute bb predicates.
13315         (if_convertible_loop_p): And free them.
13317 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13319         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
13320         in dump message.
13322 2015-07-10  Richard Biener  <rguenther@suse.de>
13324         PR tree-optimization/66823
13325         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
13326         inverted predicate.
13328 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
13330         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
13331         to handle mips[32|64]r3 and mips[32|64]r5.
13333 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
13335         PR middle-end/66633
13336         * tree-nested.c (get_static_chain): Or in a flag into
13337         info->static_chain_added.
13338         (get_frame_field, get_nonlocal_debug_decl): Likewise.
13339         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
13340         2015-07-01 changes.
13341         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
13342         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
13343         add it to clauses.
13345         PR tree-optimization/66718
13346         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
13347         field.
13348         (vect_simd_lane_linear): New function.
13349         (vectorizable_simd_clone_call): Support using linear arguments for
13350         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
13352 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13354         PR target/66821
13355         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
13357 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
13359         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
13360         Use machine mode, not enum machine_mode in the prototype.
13362         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
13363         classify 128-bit floating point support.
13364         (FLOAT128_IBM_P): Likewise.
13365         (FLOAT128_VECTOR_P): Likewise.
13366         (FLOAT128_2REG_P): Likewise.
13367         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
13368         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
13369         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13370         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
13372         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
13373         tests against TFmode/TDmode, since those modes do not use VSX
13374         addresses.
13375         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
13376         support.
13377         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
13378         tests against TFmode, etc.
13379         (invalid_e500_subreg): Add tests against IFmode/KFmode.
13380         (reg_offset_addressing_ok_p): Likewise.
13381         (rs6000_legitimate_offset_address_p): Likewise.
13382         (rs6000_legitimize_address): Likewise.
13383         (rs6000_legitimize_reload_address): Likewise.
13384         (rs6000_legitimate_address_p): Clean up tests against TFmode and
13385         TDmode to use the new helper macros, which will include IFmode and
13386         KFmode.
13387         (rs6000_emit_move): Likewise.
13388         (rs6000_darwin64_record_arg_recurse): Likewise.
13389         (print_operand): Likewise.
13390         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
13391         that uses a single vector register as a vector and not as a
13392         floating point register in terms of the calling sequence.
13393         (rs6000_discover_homogeneous_aggregate): Likewise.
13394         (rs6000_return_in_memory): Likewise.
13395         (init_cumulative_args): Likewise.
13396         (rs6000_function_arg_boundary): Likewise.
13397         (rs6000_function_arg_advance_1): Likewise.
13398         (rs6000_function_arg): Likewise.
13399         (rs6000_pass_by_reference): Likewise.
13400         (rs6000_gimplify_va_arg): Likewise.
13401         (rs6000_secondary_reload_memory): Use machine_mode not enum
13402         machine mode.
13403         (rs6000_split_multireg_move): Use new helper macros.
13404         (spe_func_has_64bit_regs_p): Likewise.
13405         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
13406         (output_toc): Use new helper macros.
13407         (rs6000_register_move_cost): Likewise.
13408         (rs6000_function_value): Add IEEE 128-bit floating point calling
13409         sequence support.
13410         (rs6000_libcall_value): Likewise.
13411         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
13412         floating point support.
13413         (rs6000_vector_mode_supported_p): Likewise.
13415 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
13417         PR rtl-optimization/66782
13418         * lra-int.h (struct lra_insn_recog_data): Add comment about
13419         clobbered hard regs for arg_hard_regs.
13420         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
13421         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
13422         Add condition for processing used hard regs.
13423         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
13424         Process clobbered hard regs.
13426 2015-07-09  Michael Matz  <matz@suse.de>
13428         * genmatch.c (fprintf_indent): New function.
13429         (operand::gen_transform): Add indent parameter.
13430         (expr::gen_transform, c_expr::gen_transform,
13431         capture::gen_transform): Ditto and use fprintf_indent.
13432         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
13433         (dt_operand::gen, dt_operand::gen_predicate,
13434         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
13435         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
13436         (decision_tree::gen_gimple): Adjust calls and indent generated
13437         code.
13438         (decision_tree::gen_generic): Ditto.
13439         (write_predicate): Ditto.
13441 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13443         PR target/66814
13444         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
13445         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
13446         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
13447         {GENERAL,SSE,MMX}_REG_P where appropriate.
13449 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
13451         * lto-streamer.h: Don't include target.h and alloc-pool.h.
13452         * builtins.c: Adjust includes.
13453         * gimple.c: Likewise.
13454         * ipa-icf.c: Likewise.
13455         * lto-opts.c: Likewise.
13456         * ipa-reference.c: Likewise.
13457         * lto-section-out.c: Likewise.
13458         * lto-streamer-in.c: Likewise.
13459         * lto-streamer-out.c: Likewise.
13460         * opts-global.c: Likewise.
13461         * symtab.c: Likewise.
13462         * tree-chkp.c: Likewise.
13463         * tree-ssa-live.c: Likewise.
13464         * tree-streamer-in.c: Likewise.
13465         * tree-streamer-out.c: Likewise.
13466         * config/darwin.c: Likewise.
13467         * config/i386/winnt.c: Likewise.
13469 2015-07-09  Richard Biener  <rguenther@suse.de>
13471         * genmatch.c (struct expr): Add force_single_use flag.
13472         (expr::expr): Add copy constructor.
13473         (capture_info::walk_match): Gather force_single_use captures.
13474         (expr::gen_transform): Use possibly NULLified sequence.
13475         (dt_simplify::gen): Apply single-use restrictions by NULLifying
13476         seq if any constrained expr is not single-use.
13477         (parser::parse_expr): Refactor to allow multiple flags.  Handle
13478         's' flag to force an expression have a single-use if the pattern
13479         simplifies to more than one statement.
13480         * match.pd: Convert most single_use conditionals to :s flags.
13482 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13484         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
13485         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13486         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
13488 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
13490         * flags.h: Don't include flag-types.h or options.h.
13491         * opts-common.c: Adjust includes.
13492         * opts-global.c: Likewise.
13493         * common/config/epiphany/epiphany-common.c: Likewise.
13495 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13497         PR target/66818
13498         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
13499         for IA MCU.
13501 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13503         PR target/66817
13504         * config/i386/i386.c (ix86_return_in_memory): Return true
13505         if int_size_in_bytes returns negative for IA MCU.
13507 2015-07-09  Marek Polacek  <polacek@redhat.com>
13509         PR tree-optimization/66718
13510         * Makefile.in (OBJS): Add gimple-laddress.o.
13511         * passes.def: Schedule pass_laddress.
13512         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
13513         * tree-pass.h (make_pass_laddress): Declare.
13514         * gimple-laddress.c: New file.
13516 2015-07-09  Richard Biener  <rguenther@suse.de>
13518         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
13520 2015-07-09  Richard Biener  <rguenther@suse.de>
13522         PR tree-optimization/66807
13523         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
13525 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
13527         * function.c (stack_protect_epilogue): Use if rather than switch for
13528         check targetm.have_stack_protect_test.
13530 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13532         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
13533         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
13534         * config/arc/arc.h: Likewise.
13535         * config/arm/arm.h: Likewise.
13536         * config/bfin/bfin.h: Likewise.
13537         * config/epiphany/epiphany.h: Likewise.
13538         * config/frv/frv.h: Likewise.
13539         * config/ia64/ia64.h: Likewise.
13540         * config/iq2000/iq2000.h: Likewise.
13541         * config/lm32/lm32.h: Likewise.
13542         * config/m32r/m32r.h: Likewise.
13543         * config/mcore/mcore.h: Likewise.
13544         * config/mep/mep.h: Likewise.
13545         * config/microblaze/microblaze.h: Likewise.
13546         * config/mips/mips.h: Likewise.
13547         * config/mmix/mmix.h: Likewise.
13548         * config/mn10300/mn10300.h: Likewise.
13549         * config/nds32/nds32.h: Likewise.
13550         * config/nios2/nios2.h: Likewise.
13551         * config/pa/pa.h: Likewise.
13552         * config/rl78/rl78.h: Likewise.
13553         * config/sh/sh.h: Likewise.
13554         * config/sparc/sparc.h: Likewise.
13555         * config/stormy16/stormy16.h: Likewise.
13556         * config/tilegx/tilegx.h: Likewise.
13557         * config/tilepro/tilepro.h: Likewise.
13558         * config/v850/v850.h: Likewise.
13559         * config/xtensa/xtensa.h: Likewise.
13560         * doc/tm.texi: Regenerate.
13561         * doc/tm.texi.in: Adjust.
13562         * combine.c (simplify_set): Likewise.
13563         (simplify_comparison): Likewise.
13564         * expr.c (store_constructor): Likewise.
13565         * internal-fn.c (expand_arith_overflow): Likewise.
13566         * reload.c (push_reload): Likewise.
13567         (find_reloads): Likewise.
13568         (find_reloads_subreg_address): Likewise.
13569         * reload1.c (eliminate_regs_1): Likewise.
13570         * rtlanal.c (nonzero_bits1): Likewise.
13571         (num_sign_bit_copies1): Likewise.
13572         * simplify-rtx.c (simplify_truncation): Likewise.
13574 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13576         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
13577         of AUTO_INC_DEC with the preprocessor.
13578         * combine.c (combine_instructions): Likewise.
13579         (can_combine_p): Likewise.
13580         (try_combine): Likewise.
13581         * emit-rtl.c (try_split): Likewise.
13582         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13583         * lower-subreg.c (resolve_simple_move): Likewise.
13584         * lra.c (update_inc_notes): Likewise.
13585         * recog.c (asm_operand_ok): Likewise.
13586         (constrain_operands): Likewise.
13587         * regrename.c (scan_rtx_address): Likewise.
13588         * reload.c (update_auto_inc_notes): Likewise.
13589         (reg_inc_found_and_valid_p): Likewise.
13590         * reload1.c (reload): Likewise.
13591         (emit_input_reload_insns): Likewise.
13592         (delete_output_reload): Likewise.
13593         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13594         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13596 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13598         * rtl.h: Always define AUTO_INC_DEC.
13599         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
13600         * combine.c (combine_instructions): Likewise.
13601         (can_combine_p): Likewise.
13602         (try_combine): Likewise.
13603         * emit-rtl.c (try_split): Likewise.
13604         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13605         * lower-subreg.c (resolve_simple_move): Likewise.
13606         * lra.c (update_inc_notes): Likewise.
13607         * recog.c (asm_operand_ok): Likewise.
13608         (constrain_operands): Likewise.
13609         * regrename.c (scan_rtx_address): Likewise.
13610         * reload.c (update_auto_inc_notes): Likewise.
13611         (find_equiv_reg): Likewise.
13612         * reload1.c (reload): Likewise.
13613         (reload_as_needed): Likewise.
13614         (choose_reload_regs): Likewise.
13615         (emit_input_reload_insns): Likewise.
13616         (delete_output_reload): Likewise.
13617         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13618         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13620 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13622         * combine.c (can_combine_def_p): Don't check the value of
13623         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
13624         (combinable_i3pat): Likewise.
13625         (mark_used_regs_combine): Likewise.
13626         * regrename.c (rename_chains): Likewise.
13627         * reload.c (find_reloads_address): Likewise.
13628         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13630 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13632         * combine.c (update_rsp_from_reg_equal): Don't check if
13633         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
13634         (reg_nonzero_bits_for_combine): Likewise.
13635         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
13636         1.
13637         * config/frv/frv.h: Likewise.
13638         * config/lm32/lm32.h: Likewise.
13639         * config/mep/mep.h: Likewise.
13640         * config/mips/mips.h: Likewise.
13641         * config/rs6000/rs6000.h: Likewise.
13642         * config/sh/sh.h: Likewise.
13643         * config/tilegx/tilegx.h (enum reg_class): Likewise.
13644         * config/tilepro/tilepro.h: Likewise.
13645         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
13646         * doc/tm.texi: Regenerate.
13647         * doc/tm.texi.in: Adjust.
13648         * rtlanal.c (nonzero_bits1): Likewise.
13650 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13652         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
13653         with the preprocessor.
13654         (combine_instructions): Likewise.
13655         (try_combine): Likewise.
13656         (subst): Likewise.
13657         (distribute_notes): Likewise.
13659 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13661         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
13662         defined.
13663         (simplify_set): Likewise.
13664         * cse.c (cse_insn): Likewise.
13665         * fold-const.c (fold_single_bit_test): Likewise.
13666         (fold_unary_loc): Likewise.
13667         * postreload.c (reload_cse_simplify_set): Likewise.
13668         (reload_cse_simplify_operands): Likewise.
13670 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
13672         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
13673         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
13675 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
13677         PR target/66746
13678         * config/i386/x86intrin.h: Include <adxintrin.h> even if
13679         __iamcu__ is defined.
13681 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13683         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
13685 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
13687         PR target/66523
13688         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
13689         names from preservation.
13691 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
13693         PR target/66806
13694         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
13695         change for IAMCU.
13696         (function_arg_advance_32): Don't pass vectors in registers for
13697         IAMCU.
13698         (function_arg_32): Likewise.
13699         (ix86_return_in_memory): Don't return vectors in registers for
13700         IAMCU.
13702 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
13704         PR middle-end/66334
13705         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
13706         hard regno live at the start of BB with incoming abnormal edges.
13707         * lra-lives.c (process_bb_lives): Ditto.
13709 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
13711         PR libgomp/65099
13712         * config/nvptx/mkoffload.c (main): Create an offload image only in
13713         64-bit configurations.
13715 2015-07-08  Martin Liska  <mliska@suse.cz>
13717         PR bootstrap/66744
13718         * tree-sra.c (create_access_1): Call ctor without brackets.
13719         (create_artificial_child_access): Likewise.
13721 2015-07-08  Richard Biener  <rguenther@suse.de>
13723         PR tree-optimization/66793
13724         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
13725         Properly split the block after stmts ending it.
13727 2015-07-08  Richard Biener  <rguenther@suse.de>
13729         PR tree-optimization/66794
13730         * passes.c (execute_function_todo): Assert that post-dominators
13731         are not computed.
13732         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
13733         Free post-dominators.
13735 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13737         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
13738         with early exit.
13740 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13742         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
13743         more than or equal 8 and less than 32 when optimizing for size.
13745 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13747         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
13748         COSTS_N_INSNS (1) and increment it appropriately throughout the
13749         function.
13751 2015-07-08  Richard Biener  <rguenther@suse.de>
13753         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
13755 2015-07-08  Alan Modra  <amodra@gmail.com>
13757         * target.def (rtx_costs): Remove "code" param, add "mode".
13758         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
13759         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
13760         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
13761         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
13762         call.  Track mode when given in rtx.
13763         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
13764         (default_address_cost): Pass Pmode to rtx_cost.
13765         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
13766         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
13767         with NULL set.
13768         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
13769         (notreg_cost): Add mode param.  Use it.
13770         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
13771         mode param and pass to set_src_cost.  Update all calls.
13772         (hash_scan_set): Formatting.
13773         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
13774         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
13775         * hooks.h: Ditto.
13776         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
13777         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
13778         emit_store_flag): Update set_src_cost and rtx_cost calls.
13779         * auto-inc-dec.c (attempt_change): Likewise.
13780         * calls.c (precompute_register_parameters): Likewise.
13781         * combine.c (expand_compound_operation, make_extraction,
13782         force_to_mode, distribute_and_simplify_rtx): Likewise.
13783         * dojump.c (prefer_and_bit_test): Likewise.
13784         * dse.c (find_shift_sequence): Likewise.
13785         * expr.c (compress_float_constant): Likewise.
13786         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
13787         * ifcvt.c (noce_try_sign_mask): Likewise.
13788         * loop-doloop.c (doloop_optimize): Likewise.
13789         * loop-invariant.c (create_new_invariant): Likewise.
13790         * lower-subreg.c (shift_cost, compute_costs): Likewise.
13791         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
13792         lshift_cheap_p): Likewise.
13793         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
13794         try_replace_in_use, reload_cse_move2add): Likewise.
13795         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
13796         Likewise.
13797         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13798         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13799         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
13800         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13801         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
13802         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
13803         to rtx_cost calls.
13804         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
13805         * config/arc/arc.c (arc_rtx_costs): Likewise.
13806         * config/arm/arm.c (arm_rtx_costs): Likewise.
13807         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
13808         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13809         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
13810         * config/cris/cris.c (cris_rtx_costs): Likewise.
13811         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
13812         * config/frv/frv.c (frv_rtx_costs): Likewise.
13813         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
13814         * config/i386/i386.c (ix86_rtx_costs): Likewise.
13815         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
13816         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
13817         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
13818         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
13819         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
13820         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
13821         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
13822         * config/mep/mep.c (mep_rtx_cost): Likewise.
13823         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
13824         * config/mips/mips.c (mips_rtx_costs): Likewise.
13825         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
13826         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
13827         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
13828         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
13829         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
13830         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
13831         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
13832         * config/pa/pa.c (hppa_rtx_costs): Likewise.
13833         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
13834         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
13835         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
13836         * config/s390/s390.c (s390_rtx_costs): Likewise.
13837         * config/sh/sh.c (sh_rtx_costs): Likewise.
13838         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
13839         * config/spu/spu.c (spu_rtx_costs): Likewise.
13840         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
13841         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
13842         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
13843         * config/v850/v850.c (v850_rtx_costs): Likewise.
13844         * config/vax/vax.c (vax_rtx_costs): Likewise.
13845         * config/visium/visium.c (visium_rtx_costs): Likewise.
13846         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
13847         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
13848         "code" param, and pass as outer_code to first rtx_cost call.  Pass
13849         mode to rtx_cost calls.
13850         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
13851         calls.
13852         (aarch64_rtx_costs_wrapper): Update.
13853         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
13854         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
13855         rtx_cost calls.
13856         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
13857         and rtx_cost calls.
13858         (avr_operand_rtx_cost): Similarly.
13859         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
13860         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
13861         * config/mips/mips.c (mips_stack_address_p): Comment typo.
13862         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
13863         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
13864         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
13865         rtx_cost.
13866         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
13867         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
13868         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
13869         * doc/tm.texi: Regenerate.
13871 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
13873         * tree-core.h: Include symtab.h.
13874         * rtl.h: Include hard-reg-set.h but not flags.h.
13875         (HARD_CONST): Remove condition compilation involving HARD_CONST since
13876         hard-reg-set.h is always included.
13877         * regs.h: Don't include hard-reg-set.h or rtl.h.
13878         * cfg.h: Include dominance.h.
13879         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
13880         * backend.h: New.  Aggregate commonly used backend header files.
13881         * gimple-ssa.h: Don't include tree-hasher.h.
13882         * ssa.h: New.  Aggregate commonly used SSA header files.
13883         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
13884         * sel-sched-ir.h: Flatten includes.
13885         * lra-int.h: Flatten completely.
13886         * sel-sched-dump.h: Flatten includes.
13887         * ira-int.h: Flatten includes.
13888         * gimple-streamer.h: Remove all includes.
13889         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
13890         * resource.h: Flatten hard-reg-set.h and df.h.
13891         * sched-int.h: Flatten insn-arrt.h and df.h.
13892         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
13893         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
13894         * genattrtab.c (write_header): Adjust generated includes.
13895         * genautomata.c (main): Likewise.
13896         * genconditions.c (write-header): Likewise.
13897         * genemit.c (main): Likewise.
13898         * gengtype.c (open_base_files): Likewise.
13899         * genopinit.c (main): Likewise.
13900         * genoutput.c (output_prologue): Likewise.
13901         * genpeep.c (main): Likewise.
13902         * genpreds.c (write_insn_preds_c): Likewise.
13903         * genrecog.c (write_header): Likewise.
13904         * alias.c: Adjust includes.
13905         * asan.c: Likewise.
13906         * attribs.c: Likewise.
13907         * auto-inc-dec.c: Likewise.
13908         * auto-profile.c: Likewise.
13909         * bb-reorder.c: Likewise.
13910         * bt-load.c: Likewise.
13911         * builtins.c: Likewise.
13912         * caller-save.c: Likewise.
13913         * calls.c: Likewise.
13914         * ccmp.c: Likewise.
13915         * cfg.c: Likewise.
13916         * cfganal.c: Likewise.
13917         * cfgbuild.c: Likewise.
13918         * cfgcleanup.c: Likewise.
13919         * cfgexpand.c: Likewise.
13920         * cfghooks.c: Likewise.
13921         * cfgloop.c: Likewise.
13922         * cfgloopanal.c: Likewise.
13923         * cfgloopmanip.c: Likewise.
13924         * cfgrtl.c: Likewise.
13925         * cgraph.c: Likewise.
13926         * cgraphbuild.c: Likewise.
13927         * cgraphclones.c: Likewise.
13928         * cgraphunit.c: Likewise.
13929         * cilk-common.c: Likewise.
13930         * combine-stack-adj.c: Likewise.
13931         * combine.c: Likewise.
13932         * compare-elim.c: Likewise.
13933         * convert.c: Likewise.
13934         * coverage.c: Likewise.
13935         * cppbuiltin.c: Likewise.
13936         * cprop.c: Likewise.
13937         * cse.c: Likewise.
13938         * cselib.c: Likewise.
13939         * data-streamer-in.c: Likewise.
13940         * data-streamer-out.c: Likewise.
13941         * data-streamer.c: Likewise.
13942         * dbxout.c: Likewise.
13943         * dce.c: Likewise.
13944         * ddg.c: Likewise.
13945         * debug.c: Likewise.
13946         * df-core.c: Likewise.
13947         * df-problems.c: Likewise.
13948         * df-scan.c: Likewise.
13949         * dfp.c: Likewise.
13950         * dojump.c: Likewise.
13951         * dominance.c: Likewise.
13952         * domwalk.c: Likewise.
13953         * double-int.c: Likewise.
13954         * dse.c: Likewise.
13955         * dumpfile.c: Likewise.
13956         * dwarf2asm.c: Likewise.
13957         * dwarf2cfi.c: Likewise.
13958         * dwarf2out.c: Likewise.
13959         * emit-rtl.c: Likewise.
13960         * et-forest.c: Likewise.
13961         * except.c: Likewise.
13962         * explow.c: Likewise.
13963         * expmed.c: Likewise.
13964         * expr.c: Likewise.
13965         * final.c: Likewise.
13966         * fixed-value.c: Likewise.
13967         * fold-const.c: Likewise.
13968         * function.c: Likewise.
13969         * fwprop.c: Likewise.
13970         * gcc-plugin.h: Likewise.
13971         * gcse-common.c: Likewise.
13972         * gcse.c: Likewise.
13973         * generic-match-head.c: Likewise.
13974         * ggc-page.c: Likewise.
13975         * gimple-builder.c: Likewise.
13976         * gimple-expr.c: Likewise.
13977         * gimple-fold.c: Likewise.
13978         * gimple-iterator.c: Likewise.
13979         * gimple-low.c: Likewise.
13980         * gimple-match-head.c: Likewise.
13981         * gimple-pretty-print.c: Likewise.
13982         * gimple-ssa-isolate-paths.c: Likewise.
13983         * gimple-ssa-strength-reduction.c: Likewise.
13984         * gimple-streamer-in.c: Likewise.
13985         * gimple-streamer-out.c: Likewise.
13986         * gimple-walk.c: Likewise.
13987         * gimple.c: Likewise.
13988         * gimplify-me.c: Likewise.
13989         * gimplify.c: Likewise.
13990         * godump.c: Likewise.
13991         * graph.c: Likewise.
13992         * graphite-blocking.c: Likewise.
13993         * graphite-dependences.c: Likewise.
13994         * graphite-interchange.c: Likewise.
13995         * graphite-isl-ast-to-gimple.c: Likewise.
13996         * graphite-optimize-isl.c: Likewise.
13997         * graphite-poly.c: Likewise.
13998         * graphite-scop-detection.c: Likewise.
13999         * graphite-sese-to-poly.c: Likewise.
14000         * graphite.c: Likewise.
14001         * haifa-sched.c: Likewise.
14002         * hw-doloop.c: Likewise.
14003         * ifcvt.c: Likewise.
14004         * init-regs.c: Likewise.
14005         * internal-fn.c: Likewise.
14006         * ipa-chkp.c: Likewise.
14007         * ipa-comdats.c: Likewise.
14008         * ipa-cp.c: Likewise.
14009         * ipa-devirt.c: Likewise.
14010         * ipa-icf-gimple.c: Likewise.
14011         * ipa-icf.c: Likewise.
14012         * ipa-inline-analysis.c: Likewise.
14013         * ipa-inline-transform.c: Likewise.
14014         * ipa-inline.c: Likewise.
14015         * ipa-polymorphic-call.c: Likewise.
14016         * ipa-profile.c: Likewise.
14017         * ipa-prop.c: Likewise.
14018         * ipa-pure-const.c: Likewise.
14019         * ipa-ref.c: Likewise.
14020         * ipa-reference.c: Likewise.
14021         * ipa-split.c: Likewise.
14022         * ipa-utils.c: Likewise.
14023         * ipa-visibility.c: Likewise.
14024         * ipa.c: Likewise.
14025         * ira-build.c: Likewise.
14026         * ira-color.c: Likewise.
14027         * ira-conflicts.c: Likewise.
14028         * ira-costs.c: Likewise.
14029         * ira-emit.c: Likewise.
14030         * ira-lives.c: Likewise.
14031         * ira.c: Likewise.
14032         * jump.c: Likewise.
14033         * langhooks.c: Likewise.
14034         * lcm.c: Likewise.
14035         * loop-doloop.c: Likewise.
14036         * loop-init.c: Likewise.
14037         * loop-invariant.c: Likewise.
14038         * loop-iv.c: Likewise.
14039         * loop-unroll.c: Likewise.
14040         * lower-subreg.c: Likewise.
14041         * lra-assigns.c: Likewise.
14042         * lra-coalesce.c: Likewise.
14043         * lra-constraints.c: Likewise.
14044         * lra-eliminations.c: Likewise.
14045         * lra-lives.c: Likewise.
14046         * lra-remat.c: Likewise.
14047         * lra-spills.c: Likewise.
14048         * lra.c: Likewise.
14049         * lto-cgraph.c: Likewise.
14050         * lto-compress.c: Likewise.
14051         * lto-opts.c: Likewise.
14052         * lto-section-in.c: Likewise.
14053         * lto-section-out.c: Likewise.
14054         * lto-streamer-in.c: Likewise.
14055         * lto-streamer-out.c: Likewise.
14056         * lto-streamer.c: Likewise.
14057         * mcf.c: Likewise.
14058         * mode-switching.c: Likewise.
14059         * modulo-sched.c: Likewise.
14060         * omega.c: Likewise.
14061         * omp-low.c: Likewise.
14062         * optabs.c: Likewise.
14063         * opts-global.c: Likewise.
14064         * passes.c: Likewise.
14065         * plugin.c: Likewise.
14066         * postreload-gcse.c: Likewise.
14067         * postreload.c: Likewise.
14068         * predict.c: Likewise.
14069         * print-rtl.c: Likewise.
14070         * print-tree.c: Likewise.
14071         * profile.c: Likewise.
14072         * real.c: Likewise.
14073         * realmpfr.c: Likewise.
14074         * recog.c: Likewise.
14075         * ree.c: Likewise.
14076         * reg-stack.c: Likewise.
14077         * regcprop.c: Likewise.
14078         * reginfo.c: Likewise.
14079         * regrename.c: Likewise.
14080         * regstat.c: Likewise.
14081         * reload.c: Likewise.
14082         * reload1.c: Likewise.
14083         * reorg.c: Likewise.
14084         * resource.c: Likewise.
14085         * rtl-chkp.c: Likewise.
14086         * rtlanal.c: Likewise.
14087         * rtlhooks.c: Likewise.
14088         * sanopt.c: Likewise.
14089         * sched-deps.c: Likewise.
14090         * sched-ebb.c: Likewise.
14091         * sched-rgn.c: Likewise.
14092         * sched-vis.c: Likewise.
14093         * sdbout.c: Likewise.
14094         * sel-sched-dump.c: Likewise.
14095         * sel-sched-ir.c: Likewise.
14096         * sel-sched.c: Likewise.
14097         * sese.c: Likewise.
14098         * shrink-wrap.c: Likewise.
14099         * simplify-rtx.c: Likewise.
14100         * stack-ptr-mod.c: Likewise.
14101         * stmt.c: Likewise.
14102         * stor-layout.c: Likewise.
14103         * store-motion.c: Likewise.
14104         * stringpool.c: Likewise.
14105         * symtab.c: Likewise.
14106         * target-globals.c: Likewise.
14107         * targhooks.c: Likewise.
14108         * toplev.c: Likewise.
14109         * tracer.c: Likewise.
14110         * trans-mem.c: Likewise.
14111         * tree-affine.c: Likewise.
14112         * tree-browser.c: Likewise.
14113         * tree-call-cdce.c: Likewise.
14114         * tree-cfg.c: Likewise.
14115         * tree-cfgcleanup.c: Likewise.
14116         * tree-chkp-opt.c: Likewise.
14117         * tree-chkp.c: Likewise.
14118         * tree-chrec.c: Likewise.
14119         * tree-complex.c: Likewise.
14120         * tree-data-ref.c: Likewise.
14121         * tree-dfa.c: Likewise.
14122         * tree-diagnostic.c: Likewise.
14123         * tree-dump.c: Likewise.
14124         * tree-eh.c: Likewise.
14125         * tree-emutls.c: Likewise.
14126         * tree-if-conv.c: Likewise.
14127         * tree-inline.c: Likewise.
14128         * tree-into-ssa.c: Likewise.
14129         * tree-iterator.c: Likewise.
14130         * tree-loop-distribution.c: Likewise.
14131         * tree-nested.c: Likewise.
14132         * tree-nrv.c: Likewise.
14133         * tree-object-size.c: Likewise.
14134         * tree-outof-ssa.c: Likewise.
14135         * tree-parloops.c: Likewise.
14136         * tree-phinodes.c: Likewise.
14137         * tree-predcom.c: Likewise.
14138         * tree-pretty-print.c: Likewise.
14139         * tree-profile.c: Likewise.
14140         * tree-scalar-evolution.c: Likewise.
14141         * tree-sra.c: Likewise.
14142         * tree-ssa-address.c: Likewise.
14143         * tree-ssa-alias.c: Likewise.
14144         * tree-ssa-ccp.c: Likewise.
14145         * tree-ssa-coalesce.c: Likewise.
14146         * tree-ssa-copy.c: Likewise.
14147         * tree-ssa-copyrename.c: Likewise.
14148         * tree-ssa-dce.c: Likewise.
14149         * tree-ssa-dom.c: Likewise.
14150         * tree-ssa-dse.c: Likewise.
14151         * tree-ssa-forwprop.c: Likewise.
14152         * tree-ssa-ifcombine.c: Likewise.
14153         * tree-ssa-live.c: Likewise.
14154         * tree-ssa-loop-ch.c: Likewise.
14155         * tree-ssa-loop-im.c: Likewise.
14156         * tree-ssa-loop-ivcanon.c: Likewise.
14157         * tree-ssa-loop-ivopts.c: Likewise.
14158         * tree-ssa-loop-manip.c: Likewise.
14159         * tree-ssa-loop-niter.c: Likewise.
14160         * tree-ssa-loop-prefetch.c: Likewise.
14161         * tree-ssa-loop-unswitch.c: Likewise.
14162         * tree-ssa-loop.c: Likewise.
14163         * tree-ssa-math-opts.c: Likewise.
14164         * tree-ssa-operands.c: Likewise.
14165         * tree-ssa-phiopt.c: Likewise.
14166         * tree-ssa-phiprop.c: Likewise.
14167         * tree-ssa-pre.c: Likewise.
14168         * tree-ssa-propagate.c: Likewise.
14169         * tree-ssa-reassoc.c: Likewise.
14170         * tree-ssa-sccvn.c: Likewise.
14171         * tree-ssa-scopedtables.c: Likewise.
14172         * tree-ssa-sink.c: Likewise.
14173         * tree-ssa-strlen.c: Likewise.
14174         * tree-ssa-structalias.c: Likewise.
14175         * tree-ssa-tail-merge.c: Likewise.
14176         * tree-ssa-ter.c: Likewise.
14177         * tree-ssa-threadedge.c: Likewise.
14178         * tree-ssa-threadupdate.c: Likewise.
14179         * tree-ssa-uncprop.c: Likewise.
14180         * tree-ssa-uninit.c: Likewise.
14181         * tree-ssa.c: Likewise.
14182         * tree-ssanames.c: Likewise.
14183         * tree-stdarg.c: Likewise.
14184         * tree-streamer-in.c: Likewise.
14185         * tree-streamer-out.c: Likewise.
14186         * tree-streamer.c: Likewise.
14187         * tree-switch-conversion.c: Likewise.
14188         * tree-tailcall.c: Likewise.
14189         * tree-vect-data-refs.c: Likewise.
14190         * tree-vect-generic.c: Likewise.
14191         * tree-vect-loop-manip.c: Likewise.
14192         * tree-vect-loop.c: Likewise.
14193         * tree-vect-patterns.c: Likewise.
14194         * tree-vect-slp.c: Likewise.
14195         * tree-vect-stmts.c: Likewise.
14196         * tree-vectorizer.c: Likewise.
14197         * tree-vrp.c: Likewise.
14198         * tree.c: Likewise.
14199         * tsan.c: Likewise.
14200         * ubsan.c: Likewise.
14201         * valtrack.c: Likewise.
14202         * value-prof.c: Likewise.
14203         * var-tracking.c: Likewise.
14204         * varasm.c: Likewise.
14205         * varpool.c: Likewise.
14206         * vmsdbgout.c: Likewise.
14207         * vtable-verify.c: Likewise.
14208         * web.c: Likewise.
14209         * wide-int.cc: Likewise.
14210         * xcoffout.c: Likewise.
14211         * config/aarch64/aarch64-builtins.c: Likewise.
14212         * config/aarch64/aarch64.c: Likewise.
14213         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14214         * config/alpha/alpha.c: Likewise.
14215         * config/arc/arc.c: Likewise.
14216         * config/arm/aarch-common.c: Likewise.
14217         * config/arm/arm-builtins.c: Likewise.
14218         * config/arm/arm-c.c: Likewise.
14219         * config/arm/arm.c: Likewise.
14220         * config/avr/avr-c.c: Likewise.
14221         * config/avr/avr-log.c: Likewise.
14222         * config/avr/avr.c: Likewise.
14223         * config/bfin/bfin.c: Likewise.
14224         * config/c6x/c6x.c: Likewise.
14225         * config/cr16/cr16.c: Likewise.
14226         * config/cris/cris.c: Likewise.
14227         * config/darwin-c.c: Likewise.
14228         * config/darwin.c: Likewise.
14229         * config/epiphany/epiphany.c: Likewise.
14230         * config/epiphany/mode-switch-use.c: Likewise.
14231         * config/epiphany/resolve-sw-modes.c: Likewise.
14232         * config/fr30/fr30.c: Likewise.
14233         * config/frv/frv.c: Likewise.
14234         * config/ft32/ft32.c: Likewise.
14235         * config/h8300/h8300.c: Likewise.
14236         * config/i386/i386-c.c: Likewise.
14237         * config/i386/i386.c: Likewise.
14238         * config/i386/msformat-c.c: Likewise.
14239         * config/i386/winnt-cxx.c: Likewise.
14240         * config/i386/winnt-stubs.c: Likewise.
14241         * config/i386/winnt.c: Likewise.
14242         * config/ia64/ia64-c.c: Likewise.
14243         * config/ia64/ia64.c: Likewise.
14244         * config/iq2000/iq2000.c: Likewise.
14245         * config/lm32/lm32.c: Likewise.
14246         * config/m32c/m32c-pragma.c: Likewise.
14247         * config/m32c/m32c.c: Likewise.
14248         * config/m32r/m32r.c: Likewise.
14249         * config/m68k/m68k.c: Likewise.
14250         * config/mcore/mcore.c: Likewise.
14251         * config/mep/mep-pragma.c: Likewise.
14252         * config/mep/mep.c: Likewise.
14253         * config/microblaze/microblaze-c.c: Likewise.
14254         * config/microblaze/microblaze.c: Likewise.
14255         * config/mips/mips.c: Likewise.
14256         * config/mmix/mmix.c: Likewise.
14257         * config/mn10300/mn10300.c: Likewise.
14258         * config/moxie/moxie.c: Likewise.
14259         * config/msp430/msp430-c.c: Likewise.
14260         * config/msp430/msp430.c: Likewise.
14261         * config/nds32/nds32-cost.c: Likewise.
14262         * config/nds32/nds32-fp-as-gp.c: Likewise.
14263         * config/nds32/nds32-intrinsic.c: Likewise.
14264         * config/nds32/nds32-isr.c: Likewise.
14265         * config/nds32/nds32-md-auxiliary.c: Likewise.
14266         * config/nds32/nds32-memory-manipulation.c: Likewise.
14267         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14268         * config/nds32/nds32-predicates.c: Likewise.
14269         * config/nds32/nds32.c: Likewise.
14270         * config/nios2/nios2.c: Likewise.
14271         * config/nvptx/nvptx.c: Likewise.
14272         * config/pa/pa.c: Likewise.
14273         * config/pdp11/pdp11.c: Likewise.
14274         * config/rl78/rl78-c.c: Likewise.
14275         * config/rl78/rl78.c: Likewise.
14276         * config/rs6000/rs6000-c.c: Likewise.
14277         * config/rs6000/rs6000.c: Likewise.
14278         * config/rx/rx.c: Likewise.
14279         * config/s390/s390-c.c: Likewise.
14280         * config/s390/s390.c: Likewise.
14281         * config/sh/sh-c.c: Likewise.
14282         * config/sh/sh-mem.cc: Likewise.
14283         * config/sh/sh.c: Likewise.
14284         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14285         * config/sh/sh_treg_combine.cc: Likewise.
14286         * config/sol2-c.c: Likewise.
14287         * config/sol2-cxx.c: Likewise.
14288         * config/sol2-stubs.c: Likewise.
14289         * config/sol2.c: Likewise.
14290         * config/sparc/sparc-c.c: Likewise.
14291         * config/sparc/sparc.c: Likewise.
14292         * config/spu/spu-c.c: Likewise.
14293         * config/spu/spu.c: Likewise.
14294         * config/stormy16/stormy16.c: Likewise.
14295         * config/tilegx/mul-tables.c: Likewise.
14296         * config/tilegx/tilegx-c.c: Likewise.
14297         * config/tilegx/tilegx.c: Likewise.
14298         * config/tilepro/mul-tables.c: Likewise.
14299         * config/tilepro/tilepro-c.c: Likewise.
14300         * config/tilepro/tilepro.c: Likewise.
14301         * config/v850/v850-c.c: Likewise.
14302         * config/v850/v850.c: Likewise.
14303         * config/vax/vax.c: Likewise.
14304         * config/visium/visium.c: Likewise.
14305         * config/vms/vms-c.c: Likewise.
14306         * config/vms/vms.c: Likewise.
14307         * config/vxworks.c: Likewise.
14308         * config/xtensa/xtensa.c: Likewise.
14310 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
14312         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
14313         Remove operand constraints.  Change operand 2 predicate to
14314         nonmemory operand.  Limit const_int values to mode bitsize.  Only
14315         allow const_int values less than 32 when optimizing for size.
14316         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
14317         Remove operand constraints.
14318         (*bt<mode>): Use SImode for const_int values less than 32.
14319         (regmode): Remove mode attribute.
14321 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
14323         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14324         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
14325           moxie_legitimate_address_p): New functions.
14326           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14328 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14330         PR tree-optimization/66642
14331         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
14332         header comment.  Rename split_edge variable to edge_at_split.  Split
14333         exit edge to create new loop exit bb.  Insert loop exit phis in new
14334         loop exit bb.
14336 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14338         * tree-cfg.c (get_virtual_phi): New function.
14339         * tree-cfg.h (get_virtual_phi): Declare.
14340         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
14341         (rewrite_virtuals_into_loop_closed_ssa): New function.
14342         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
14343         Declare.
14344         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
14345         (transform_to_exit_first_loop_alt): Use
14346         rewrite_virtuals_into_loop_closed_ssa.
14348 2015-07-07  Richard Biener  <rguenther@suse.de>
14350         * fold-const.c (fold_binary_loc): Move
14351         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
14352         * match.pd: ... here.
14353         Add (X * C1) % C2 -> 0 simplification pattern derived from
14354         extract_muldiv_1.
14356 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
14358         PR target/66780
14359         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
14360         change for target/65249.
14362 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
14364         * symtab.c (address_matters_1): Fix typo in comment above.
14365         (can_increase_alignment_p): Likewise.
14367 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14369         * function.c (free_after_compilation): Clear PROP_cfg in
14370         f->curr_properties.
14372 2015-07-07  Richard Biener  <rguenther@suse.de>
14374         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
14375         add which use to.
14376         (add_control_edge): Remove excessive vertical space in dumping.
14377         (process_ssa_edge_worklist): Simulate at most one statement and
14378         return whether we did.  Do not simulate PHIs if they are in a
14379         BB not yet simulated.
14380         (ssa_propagate): Adjust to always drain the BB worklist whenever
14381         a BB is available there, likewise the VARYING edges list before
14382         the interesting edge list.
14384 2015-07-07  Christian Bruel  <christian.bruel@st.com>
14386         PR target/52144
14387         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
14389 2015-07-07  Richard Biener  <rguenther@suse.de>
14391         PR middle-end/66739
14392         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
14393         A - B.
14395 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
14397         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
14398         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
14399         Copy operand 0 to a temporary if !ext_register_operand.  Remove
14400         ancient extract_bit_field workaround.
14401         (insv<mode>_1): Rename from mov<mode>_insv_1.
14402         (*insvqi): Rename from *movqi_insv_2.
14403         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
14404         for renamed insvsi_1.
14405         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
14407 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14409         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
14410         call to nvptx_reorg_subreg.
14412 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
14414         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
14415         * graphite-dependencies.c, graphite-interchange.c,
14416         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
14417         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
14418         Likewise.
14420 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
14422         * match.pd: Remove element_mode inside HONOR_*.
14423         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
14424         (~X | X -> -1, ~X ^ X -> -1): Merge.
14425         * tree.c (build_each_one_cst): New function.
14426         * tree.h (build_each_one_cst): Likewise.
14428 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14430         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14431         PROCESSOR_IAMCU.
14433 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
14435         * config.gcc <mips*-*-*>: Add fused-madd.opt.
14436         * config/mips/mips.opt (mfused-madd): Remove.
14437         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
14438         * config/mips/mips.h (TARGET_MIPS8000): New.
14439         (ISA_HAS_FP_MADD4_MSUB4): Remove.
14440         (ISA_HAS_FP_MADDF_MSUBF): Remove.
14441         (ISA_HAS_FP_MADD3_MSUB3): Remove.
14442         (ISA_HAS_NMADD4_NMSUB4): Remove.
14443         (ISA_HAS_NMADD3_NMSUB3): Remove.
14444         (ISA_HAS_FUSED_MADD4): New.
14445         (ISA_HAS_UNFUSED_MADD4): New.
14446         (ISA_HAS_FUSED_MADDF): New.
14447         (ISA_HAS_FUSED_MADD3): New.
14448         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
14449         (*fma<mode>4_madd3) New.
14450         (*fma<mode>4_madd4) New.
14451         (*fma<mode>4_maddf) New.
14452         (fms<mode>4) New.
14453         (*fms<mode>4_msub3) New.
14454         (*fms<mode>4_msub4) New.
14455         (fnma<mode>4) New.
14456         (*fnma<mode>4_nmadd3) New.
14457         (*fnma<mode>4_nmadd4) New.
14458         (fnms<mode>4) New.
14459         (*fnms<mode>4_nmsub3) New.
14460         (*fnms<mode>4_nmsub4) New.
14461         (*madd4<mode>) Modify to be unfused only.
14462         (*msub4<mode>) Modify to be unfused only.
14463         (*nmadd4<mode>) Modify to be unfused only.
14464         (*nmsub4<mode>) Modify to be unfused only.
14465         (*madd3<mode>) Remove.
14466         (*msub3<mode>) Remove.
14467         (*nmadd3<mode>) Remove.
14468         (*nmsub3<mode>) Remove.
14469         (*nmadd3<mode>_fastmath) Remove.
14470         (*nmsub3<mode>_fastmath) Remove.
14471         (*nmadd4<mode>_fastmath) Update condition.
14472         (*nmsub4<mode>_fastmath) Update condition.
14474 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
14476         PR target/65956
14477         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
14478         alignment attribute, exploring one level down for records and arrays.
14480 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
14482         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
14483         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
14484         Copy operand 1 to a temporary if !ext_register_operand.  Remove
14485         ancient extract_bit_field workaround.
14486         (*extv<mode>): Rename from *mov<mode>_extv_1.
14487         (*extvqi): Rename from *movqi_extv_1.
14488         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
14489         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
14490         to a temporary if !ext_register_operand.  Remove ancient
14491         extract_bit_field workaround.
14492         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
14493         (*extzvqi): Rename from *movqi_extzv_2.
14494         (*testqi_ext_3): Remove modes from const_int_operand predicated
14495         operands.  Add "n" constraint.
14496         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
14497         operand.  Add "J" constraint.
14498         (*btsq, *btrq, *btcq peephole2s): Remove mode from
14499         const_0_to_63 predicated operand.
14500         (regmode): New insn attribute.
14501         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
14502         to nonmemory_operand.  Use regmode insn attribute.
14503         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
14504         (*jcc_bt<mode>_mask): Remove mode from operand 3.
14505         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
14506         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
14507         operands.  Use "N" constraint instead of "n".
14509 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
14511         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
14513 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14515         PR target/66749
14516         * config/i386/i386.c (iamcu_cost): New.
14517         (m_IAMCU): Likewise.
14518         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
14519         (processor_target_table): Add an entry for "iamcu".
14520         (processor_alias_table): Likewise.
14521         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
14522         (ix86_adjust_cost): Likewise.
14523         (ia32_multipass_dfa_lookahead): Likewise.
14524         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
14525         * config/i386/x86-tune.def: Updated for m_IAMCU.
14527 2015-07-06  Richard Biener  <rguenther@suse.de>
14529         PR tree-optimization/66772
14530         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
14531         values are available in the PHI node BB when there are
14532         still unexecutable edges.
14534 2015-07-06  Richard Biener  <rguenther@suse.de>
14536         PR tree-optimization/66767
14537         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
14538         Make sure to build the alignment test on a SSA name without
14539         final alignment info valid only if the alignment test
14540         evaluates to true.
14542 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
14544         PR target/66620
14545         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
14546         loop start when inserting LSETUP.
14548 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14550         PR target/53383
14551         * config/i386/i386.c (ix86_option_override_internal): Allow
14552         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
14554 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14556         * read-md.c (decimal_string): Rename to ...
14557         (md_decimal_string): ... this.
14558         (handle_enum): Reflect this.
14560 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14562         PR target/66731
14563         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
14565 2015-07-06  Richard Biener  <rguenther@suse.de>
14567         PR middle-end/66759
14568         * match.pd: Add missing constraint of y to REAL_CST in
14569         REAL_CST - x CMP y to y - CST CMP x simplification.
14571 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
14573         PR tree-optimization/66757
14574         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
14576 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
14577             Sandra Loosemore <sandra@codesourcery.com>
14579         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
14580         Delete extern declaration.
14581         (gprel_constant_p): Add extern declaration.
14582         * config/nios2/constraints.md ("S"): Use gprel_constant_p
14583         instead of nios2_symbol_ref_in_small_data_p.
14584         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
14585         (nios2_symbol_ref_in_small_data_p): Make static.
14586         (gprel_constant_p): Make non-static.
14588 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
14590         * doc/fragments.texi (Target Fragment): Convert debian.org
14591         link to use https.
14592         * doc/install.texi (Configuration): Ditto.
14594 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
14596         PR tree-optimization/66718
14597         * tree-vect-stmts.c (vectorizable_call): Replace uses of
14598         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
14600         PR tree-optimization/66718
14601         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
14602         vectorizable_load, vectorizable_condition): Move vectype,
14603         nunits, ncopies computation after checking what kind of statement
14604         stmt is.
14606 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14608         * target-insns.def (extv, extzv, insv): New targetm instruction
14609         patterns.
14610         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
14611         interface.
14612         * recog.c (simplify_while_replacing): Likewise.
14614 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14616         * target-insns.def (doloop_begin, doloop_end): New targetm
14617         instruction patterns.
14618         * loop-init.c: Include target.h.
14619         (pass_loop2::gate): Use the new targetm patterns instead of
14620         HAVE_*/gen_* interface.
14621         (pass_rtl_doloop::gate): Likewise.
14622         (pass_rtl_doloop::execute): Remove preprocessor condition.
14623         * hw-doloop.c: Build unconditionally.
14624         * loop-doloop.c: Likewise.
14625         (doloop_optimize): Use the new targetm patterns instead of
14626         HAVE_*/gen_* interface.
14627         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
14628         * modulo-sched.c (doloop_register_get): Likewise.
14630 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14632         * target-insns.def (clear_cache): New targetm instruction pattern.
14633         * builtins.c (expand_builtin___clear_cache): Use it instead of
14634         HAVE_*/gen_* interface.
14636 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14638         * target-insns.def (allocate_stack, check_stack, probe_stack)
14639         (probe_stack_address, split_stack_prologue, split_stack_space_check):
14640         New targetm instruction patterns.
14641         * explow.c (allocate_dynamic_stack_space): Use them instead of
14642         HAVE_*/gen_* interface.
14643         (emit_stack_probe): Likewise.
14644         (probe_stack_range): Likewise.
14645         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14647 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14649         * target-insns.def (stack_protect_set, stack_protect_test): New
14650         targetm instruction patterns.
14651         * cfgexpand.c (stack_protect_prologue): Use them instead of
14652         HAVE_*/gen_* interface.
14653         * function.c (stack_protect_epilogue): Likewise.
14655 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14657         * expr.h (gen_move_insn_uncast): Delete.
14658         * expr.c (gen_move_insn_uncast): Delete.
14660 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14662         * target-insns.def (restore_stack_block, restore_stack_function)
14663         (restore_stack_nonlocal, save_stack_block, save_stack_function)
14664         (save_stack_nonlocal): New targetm instruction patterns.
14665         * builtins.c (expand_builtin_apply): Use them instead of
14666         HAVE_*/gen_* interface.
14667         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
14669 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14671         * target-insns.def (trap): New targetm instruction pattern.
14672         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
14673         interface.
14674         * explow.c (allocate_dynamic_stack_space): Likewise.
14675         * ifcvt.c (find_if_header): Likewise.
14677 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14679         * target-insns.def (prefetch): New targetm instruction pattern.
14680         * tree-ssa-loop-prefetch.c: Include targeth.
14681         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
14682         of HAVE_*/gen_* interface.
14683         * builtins.c (expand_builtin_prefetch): Likewise.
14684         * toplev.c (process_options): Likewise.
14686 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14688         * target-insns.def (untyped_call, untyped_return): New targetm
14689         instruction patterns.
14690         * builtins.c (expand_builtin_apply): Use them instead of
14691         HAVE_*/gen_* interface.
14692         (result_vector): Define unconditionally.
14694 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14696         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
14697         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
14698         (nonlocal_goto_receiver): New targetm instruction patterns.
14699         * builtins.c (expand_builtin_setjmp_setup): Use them instead
14700         of HAVE_*/gen_* interface.
14701         (expand_builtin_setjmp_receiver): Likewise.
14702         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
14703         * except.c (expand_dw2_landing_pad_for_region): Likewise.
14705 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14707         * target.def: Add code_for_* hooks.
14708         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
14709         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
14710         * target-insns.def (casesi, tablejump): New targetm instruction
14711         patterns.
14712         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
14713         (do_tablejump): Likewise.
14714         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
14715         (expand_sjlj_dispatch_table): Likewise.
14716         * targhooks.c (default_case_values_threshold): Likewise.
14718 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
14720         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
14721         Use rtx_insn * instead of rtx.
14722         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
14723         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
14724         (nios2_call_tls_get_addr): Likewise.
14725         (nios2_emit_expensive_div): Likewise.
14726         (nios2_emit_move_sequence): Change return type to bool.
14727         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
14728         Change return type to bool.
14730 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14732         PR target/66747
14733         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
14735 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
14737         PR target/66114
14738         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
14739         of register_operand.  Remove constraint.
14741 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
14743         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
14744         the first argument.
14746 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
14748         * attribs.c (decl_attributes): Guard inform with the return value
14749         of the preceding warning.
14751 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
14753         * doc/invoke.texi (moverride): Move to correct section.
14755 2015-07-03  Richard Biener  <rguenther@suse.de>
14757         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
14758         Copy from tree.c
14759         (dt_operand::gen_gimple_expr): After valueizing operands
14760         re-canonicalize operand order for commutative tree codes.
14762 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
14764         PR target/66746.
14765         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
14766         is defined.
14767         (__crc32w): Likewise.
14768         (__crc32d): Likewise.
14769         (__rdpmc): Likewise.
14770         (__rdtscp): Likewise.
14771         (_rdpmc): Likewise.
14772         (_rdtscp): Likewise.
14773         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
14774         is defined.
14776 2015-07-03  Richard Biener  <rguenther@suse.de>
14778         * fold-const.c (fold_mathfn_compare): Remove.
14779         (fold_inf_compare): Likewise.
14780         (fold_comparison): Move floating point comparison simplifications...
14781         * match.pd: ... to patterns here.  Introduce simple_comparisons
14782         operator list and use it for patterns formerly in fold_comparison.
14784 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
14786         PR tree-optimization/66119
14787         * toplev.c (process_options): Don't set up default values for
14788         the sra_max_scalarization_size_{speed,size} parameters.
14789         * tree-sra (analyze_all_variable_accesses): If no values
14790         have been set for the sra_max_scalarization_size_{speed,size}
14791         parameters, call get_move_ratio to get target defaults.
14793 2015-07-03  Richard Biener  <rguenther@suse.de>
14795         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
14796         * match.pd: ... here.
14798 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
14800         PR target/37072
14801         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
14802         is not actually the default on FreeBSD.
14804 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14806         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
14807         definition.
14808         (CMPGE_8HI): Likewise.
14809         (CMPGE_4SI): Likewise.
14810         (CMPGE_2DI): Likewise.
14811         (CMPGE_U16QI): Likewise.
14812         (CMPGE_U8HI): Likewise.
14813         (CMPGE_U4SI): Likewise.
14814         (CMPGE_U2DI): Likewise.
14815         (CMPLE_16QI): Likewise.
14816         (CMPLE_8HI): Likewise.
14817         (CMPLE_4SI): Likewise.
14818         (CMPLE_2DI): Likewise.
14819         (CMPLE_U16QI): Likewise.
14820         (CMPLE_U8HI): Likewise.
14821         (CMPLE_U4SI): Likewise.
14822         (CMPLE_U2DI): Likewise.
14823         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14824         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
14825         ALTIVEC_BUILTIN_VEC_CMPLE.
14826         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
14827         floating-point vector modes.
14828         (vector_nlt<mode>): New define_expand.
14829         (vector_nltu<mode>): Likewise.
14830         (vector_ngt<mode>): Likewise.
14831         (vector_ngtu<mode>): Likewise.
14833 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
14835         PR rtl-optimization/66706
14836         * combine.c (make_compound_operation): If an AND of SUBREG of
14837         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
14839 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
14841         * tree-pass.h (make_pass_ch_vect): New.
14842         * passes.def: Add pass_ch_vect just before pass_if_conversion.
14844         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
14845         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
14846         make_pass_ch_vect): New.
14847         (pass_ch): Extend ch_base.
14849         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
14850         (ch_base::copy_headers): ...here.
14852 2015-07-02  Richard Biener  <rguenther@suse.de>
14854         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
14855         * fold-const.c (get_pointer_modulus_and_residue): Remove.
14856         (fold_binary_loc): Implement (T)ptr & CST in terms of
14857         get_pointer_alignment_1.
14858         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
14859         Make sure to build the alignment test on a SSA name without
14860         final alignment info valid only after the prologue.
14862 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
14864         * config/cris/cris.md ("epilogue"): Remove condition.
14865         ("prologue"): Ditto.
14867 2015-07-02  Richard Biener  <rguenther@suse.de>
14869         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
14870         parameter to record a condition that is false.
14871         (record_conditions): When recording an extra NE_EXPR that is
14872         true also record a EQ_EXPR that is false.
14874 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
14876         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
14877         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
14878         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
14879         (set_iv, find_interesting_uses_address, add_candidate_1): New
14880         argument to alloc_iv.
14881         (find_interesting_uses_op, find_interesting_uses_cond): Don't
14882         duplicate struct iv.
14883         (free_loop_data): Don't free struct iv explicitly.
14884         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
14886 2015-07-01  DJ Delorie  <dj@redhat.com>
14888         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
14889         (LIB_SPEC): Add.
14890         (SUPPORTS_DISCRIMINATOR): Define.
14892 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
14894         PR bootstrap/66685
14895         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
14896         there are no CALLs in the same pattern.
14898 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14900         PR rtl-optimization/61047
14901         * rtlanal.c (get_initial_register_offset): New function.
14902         (rtx_addr_can_trap_p_1): Check offsets of stack references.
14904 2015-07-01  Richard Biener  <rguenther@suse.de>
14906         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
14907         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
14908         ~X CMP C -> X CMP' ~C to ...
14909         * match.pd: ... patterns here.
14911 2015-07-01  Nick Clifton  <nickc@redhat.com>
14913         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
14914         a 16-bit value into a 20-bit memory slot.
14916 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14918         * doc/sourcebuild.texi (AArch64-specific attributes): Document
14919         "aarch64_tiny", "aarch64_small", "aarch64_large",
14920         "aarch64_little_endian", "aarch64_big_endian".
14922 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14924         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
14925         Document "aarch64_small_fpic".
14927 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14929         * configure.ac: Add check for aarch64 assembler -fpic relocation
14930         modifier support.
14931         * configure: Regenerate.
14932         * config.in: Regenerate.
14933         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
14934         to -fPIC if not support of -fpic relocation modifier in assembler.
14936 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
14938         PR bootstrap/66685
14939         * rtl.c (classify_insn): Handle returns in PARALLELs.
14941 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
14943         PR middle-end/66633
14944         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
14945         to true if the function is nested and if not optimizing.
14946         (convert_local_omp_clauses): Initialize need_frame to true if the
14947         function contains nested functions and if not optimizing.
14949 2015-07-01  Richard Biener  <rguenther@suse.de>
14951         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
14952         (X & Y) ^ Y -> ~X & Y transforms to ...
14953         * match.pd: ... here.
14955 2015-07-01  Richard Biener <rguenther@suse.de>
14957         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
14958         of converts to avoid uninteresting noise from the conversion
14959         simplifying patterns.
14961 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
14963         * config/c6x/c6x.c (try_rename_operands): Do not depend on
14964         gcc_assert evaluating its argument for side-effect.
14966 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
14968         PR target/64833
14969         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
14970         flag_pic is set.
14972 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
14974         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
14975         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
14976         (hash_scc): Add this_ref_p and ref_p parameters and pass them
14977         to the inner DFS walk.
14979 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14981         * target-insns.def (jump): New targetm instruction pattern.
14982         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
14983         instead of gen_jump.
14984         (fix_up_crossing_landing_pad): Likewise.
14985         (add_labels_and_missing_jumps): Likewise.
14986         (fix_crossing_conditional_branches): Likewise.
14987         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14988         (force_nonfallthru_and_redirect): Likewise.
14989         * cse.c (cse_insn): Likewise.
14990         * expmed.c (expand_divmod): Likewise.
14991         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
14992         * haifa-sched.c (init_before_recovery): Likewise.
14993         (sched_create_recovery_edges): Likewise.
14994         * ifcvt.c (find_cond_trap): Likewise.
14995         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
14996         (expand_float, expand_fix): Likewise.
14997         * stmt.c (emit_jump): Likewise.
14999 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
15001         * defaults.h (HAVE_load_multiple, gen_load_multiple)
15002         (HAVE_store_multiple, gen_store_multiple): Delete.
15003         * target-insns.def (load_multiple, store_multiple): New targetm
15004         instruction patterns.
15005         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
15006         of HAVE_*/gen_* interface.
15008 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
15010         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
15011         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
15012         (gen_mem_signal_fence): Delete.
15013         * target-insns.def (mem_signal_fence, mem_thread_fence)
15014         (memory_barrier): New targetm instruction patterns.
15015         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
15016         interface.
15017         (expand_mem_signal_fence): Likewise.
15019 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
15021         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
15022         * target-insns.def (epilogue, prologue, sibcall_prologue): New
15023         targetm instruction patterns.
15024         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
15025         interface.
15026         * calls.c (expand_call): Likewise.
15027         * cfgrtl.c (cfg_layout_finalize): Likewise.
15028         * df-scan.c (df_get_entry_block_def_set): Likewise.
15029         (df_get_exit_block_use_set): Likewise.
15030         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
15031         * final.c (final_start_function): Likewise.
15032         * function.c (thread_prologue_and_epilogue_insns): Likewise.
15033         (reposition_prologue_and_epilogue_notes): Likewise.
15034         * reorg.c (find_end_label): Likewise.
15035         * toplev.c (process_options): Likewise.
15037 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
15039         * typed-splay-tree.h: New file.
15041 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
15043         PR debug/66691
15044         * lra-int.h (lra_substitute_pseudo): Add a parameter.
15045         (lra_substitute_pseudo_within_insn): Ditto.
15046         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
15047         of constant.
15048         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
15049         to lra_substitute_pseudo.
15050         * lra-lives.c (process_bb_lives): Add an argument to
15051         lra_substitute_pseudo_within_insn call.
15052         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
15053         argument to lra_substitute_pseudo and
15054         lra_substitute_pseudo_within_insn calls.
15055         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
15057 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
15059         * configure: Regenerated.
15061 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
15063         * config.gcc: Support i[34567]86-*-elfiamcu target.
15064         * config/i386/iamcu.h: New.
15065         * config/i386/i386.opt: Add -miamcu.
15066         * doc/invoke.texi: Document -miamcu.
15067         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
15068         off x87/MMX/SSE/AVX codegen for -miamcu.
15069         * config/i386/i386-c.c (ix86_target_macros_internal): Define
15070         __iamcu/__iamcu__ for -miamcu.
15071         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
15072         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
15073         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
15074         * config/i386/i386.c (ix86_option_override_internal): Ignore and
15075         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
15076         MCU by default.  Default long double to 64-bit for Intel MCU.
15077         Turn on -freg-struct-return for Intel MCU.  Issue an error when
15078         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
15079         AVX is turned on.
15080         (function_arg_advance_32): Pass value whose size is no larger
15081         than 8 bytes in registers for Intel MCU.
15082         (function_arg_32): Likewise.
15083         (ix86_return_in_memory): Return value whose size is no larger
15084         than 8 bytes in registers for Intel MCU.
15085         (iamcu_alignment): New function.
15086         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
15087         true.
15088         (ix86_local_alignment): Don't increase alignment for Intel MCU.
15089         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
15090         true.
15092 2015-06-30  Marek Polacek  <polacek@redhat.com>
15094         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
15095         both operands of the resulting expression.
15097         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
15098         the final expression with the operand's type and then convert
15099         it to the type of the expression.
15101 2015-06-30  Richard Biener  <rguenther@suse.de>
15103         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
15104         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
15105         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
15106         * match.pd: ... to patterns here.
15108 2015-06-30  Richard Biener  <rguenther@suse.de>
15110         PR tree-optimization/66704
15111         * tree-vect-data-refs.c (vect_setup_realignment): Use
15112         make_ssa_name for non-SSA name source.
15114 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
15116         PR middle-end/66702
15117         * omp-low.c (simd_clone_adjust): Handle addressable linear
15118         or uniform parameters or non-gimple type uniform parameters.
15120 2015-06-30  Richard Biener  <rguenther@suse.de>
15122         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
15123         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
15124         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
15125         * match.pd: ... here.
15126         Add a few cases of A - B -> A + (-B) when B "easily" negates.
15127         Move (x & y) | x -> x and friends before
15128         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
15130 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
15132         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
15133         -mfix-ut699 is not specified.
15134         (leon3_load): Rename into...
15135         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
15136         is specified.
15138 2015-06-30  Marek Polacek  <polacek@redhat.com>
15140         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
15141         * match.pd: ... here.
15143 2015-06-30  Richard Biener  <rguenther@suse.de>
15145         * target-insns.def (canonicalize_funcptr_for_compare): Add.
15146         * fold-const.c (build_range_check): Replace uses of
15147         HAVE_canonicalize_funcptr_for_compare.
15148         (fold_widened_comparison): Likewise.
15149         (fold_sign_changed_comparison): Likewise.
15150         * dojump.c: Include "target.h".
15151         (do_compare_and_jump): Replace uses of
15152         HAVE_canonicalize_funcptr_for_compare and
15153         gen_canonicalize_funcptr_for_compare.
15154         * expr.c (do_store_flag): Likewise.
15156 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15158         PR tree-optimization/66652
15159         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
15160         max_loop_iterations to determine if nit + 1 overflows.
15162 2015-06-30  Richard Biener  <rguenther@suse.de>
15164         * tree-vrp.c (register_edge_assert_for_2): Also register
15165         asserts for dominating conversion results.
15167 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
15169         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
15170         field in struct iv.
15172 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
15174         PR target/66509
15175         * configure.ac: Fix filds and fildq test for 64-bit.
15176         * configure: Regenerated.
15178 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
15180         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
15181         (nvptx_reorg): Here.  Keep the non-subreg pieces.
15183 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
15185         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
15186         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15188 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
15190         * config/i386/i386.md (*jcc_1): Use %! in asm template.
15191         Set attribute "length_nobnd" instead of "length".
15192         (*jcc_2): Ditto.
15193         (jump): Ditto.
15194         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
15196 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
15198         * config/nios2/nios2.c (nios2_delegitimize_address): Make
15199         assert less restrictive.
15201 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15203         PR fortran/66605
15204         * cgraphunit.c (cgraph_node::finalize_function): Do not call
15205         do_warn_unused_parameter.
15206         * function.c (do_warn_unused_parameter): Move from here.
15207         * function.h (do_warn_unused_parameter): Do not declare.
15209 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15211         PR target/65697
15212         * gcc.target/arm/armv-sync-comp-swap.c: New.
15213         * gcc.target/arm/armv-sync-op-acquire.c: New.
15214         * gcc.target/arm/armv-sync-op-full.c: New.
15215         * gcc.target/arm/armv-sync-op-release.c: New.
15217 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15219         PR target/65697
15220         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
15221         initial acquire barrier with final barrier.
15223 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15225         PR target/65697
15226         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
15227         initial acquire barrier with final barrier.
15229 2015-06-29  Richard Henderson  <rth@redhat.com>
15231         * config/i386/constraints.md (Bf): New constraint.
15232         * config/i386/i386-c.c (ix86_target_macros): Define
15233         __GCC_ASM_FLAG_OUTPUTS__.
15234         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
15235         as flags outputs.
15236         * doc/extend.texi (FlagOutputOperands): Document them.
15238 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
15240         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
15241         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
15242         unspec name.
15243         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
15244         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
15245         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
15246         (aarch64_symbol_context): Ditto.
15247         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
15248         and use new pattern name.
15249         (aarch64_expand_mov_immediate): Ditto.
15250         (aarch64_print_operand): Ditto.
15251         (aarch64_classify_tls_symbol): Ditto.
15253 2015-06-29  Marek Polacek  <polacek@redhat.com>
15254             Marc Glisse  <marc.glisse@inria.fr>
15256         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
15257         * match.pd: ... pattern here.
15259 2015-06-29  Tom de Vries  <tom@codesourcery.com>
15261         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
15262         function structure.
15264 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15266         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
15267         feature description, split out the native option, add a link to
15268         the feature documentation, rearrange and slightly rewrite text.
15269         (Aarch64 options, -mcpu): Likewise.
15270         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
15271         +rdma implies Adv. SIMD.
15273 2015-06-29  Marek Polacek  <polacek@redhat.com>
15275         PR c/66322
15276         * function.c (stack_protect_epilogue): Remove a cast to int.
15277         * doc/invoke.texi: Update -Wswitch-bool description.
15279 2015-06-29  Richard Biener  <rguenther@suse.de>
15281         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
15282         * fold-const.c (fold_binary_loc): Move &A - &B simplification
15283         via ptr_difference_const ...
15284         * match.pd: ... here.
15285         When matching (X ^ Y) == Y also match with swapped operands.
15287 2015-06-29  Richard Biener  <rguenther@suse.de>
15289         * lto-streamer.h (LTO_major_version): Bump to 5.
15291 2015-06-29  Richard Biener  <rguenther@suse.de>
15293         PR tree-optimization/66677
15294         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
15295         STMT_VINFO_VEC_STMT clobbering less strict.
15297 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
15299         PR middle-end/64130
15300         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
15301         division, compute max and min when value ranges for dividend and
15302         divisor are available.
15304 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
15305             Sandra Loosemore <sandra@codesourcery.com>
15307         * regrename.h (regrename_do_replace): Change to return bool.
15308         * regrename.c (rename_chains): Check return value of
15309         regname_do_replace.
15310         (regrename_do_replace): Re-validate the modified insns and
15311         return bool status.
15312         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
15313         Update to match rename_chains changes.
15314         * config/c6x/c6x.c (try_rename_operands): Assert that
15315         regrename_do_replace returns true.
15317 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
15319         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
15320         operand 2 here.  Use copy_addr_to_reg to copy non-index
15321         register operand 2 to a temporary.
15322         (<mode>_stx): Ditto for operand 1.
15323         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
15324         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
15325         (ix86_store_bounds): Ditto.
15327 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
15329         * print-tree.c (print_node) [TREE_VEC]: Print its length.
15331 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
15333         * gimple.c (gimple_call_set_fndecl): Remove.
15334         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
15335         build1_loc directly instead of build_fold_addr_expr_loc.
15337 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
15339         * hash-map.h (hash_map::traverse): Use the definition of the
15340         Key typedef rather than the typedef itself.
15342 2015-06-26  Martin Jambor  <mjambor@suse.cz>
15344         PR debug/66301
15345         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
15346         NULL instead of calling dump_enabled_p.
15348 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15350         * config/aarch64/aarch64.opt: (override): New.
15351         * doc/invoke.texi (override): Document.
15352         * config/aarch64/aarch64.c (aarch64_flag_desc): New
15353         (aarch64_fusible_pairs): Likewise.
15354         (aarch64_tuning_flags): Likewise.
15355         (aarch64_tuning_override_function): Likewise.
15356         (aarch64_tuning_override_functions): Likewise.
15357         (aarch64_parse_one_option_token): Likewise.
15358         (aarch64_parse_boolean_options): Likewise.
15359         (aarch64_parse_fuse_string): Likewise.
15360         (aarch64_parse_tune_string): Likewise.
15361         (aarch64_parse_one_override_token): Likewise.
15362         (aarch64_parse_override_string): Likewise.
15363         (aarch64_override_options): Parse the -override string if it
15364         is present.
15366 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15368         * config/aarch64/aarch64-protos.h (tune_params): Remove
15369         const from members.
15370         (aarch64_tune_params): Remove const, change to no longer be
15371         a pointer.
15372         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
15373         change to no longer be a pointer, initialize to generic_tunings.
15374         (aarch64_min_divisions_for_recip_mul): Change dereference of
15375         aarch64_tune_params to member access.
15376         (aarch64_reassociation_width): Likewise.
15377         (aarch64_rtx_mult_cost): Likewise.
15378         (aarch64_address_cost): Likewise.
15379         (aarch64_branch_cost): Likewise.
15380         (aarch64_rtx_costs): Likewise.
15381         (aarch64_register_move_cost): Likewise.
15382         (aarch64_memory_move_cost): Likewise.
15383         (aarch64_sched_issue_rate): Likewise.
15384         (aarch64_builtin_vectorization_cost): Likewise.
15385         (aarch64_override_options): Take a copy of the selected tuning
15386         struct in to aarch64_tune_params, rather than just setting
15387         a pointer, change dereferences of aarch64_tune_params to member
15388         accesses.
15389         (aarch64_override_options_after_change): Change dereferences of
15390         aarch64_tune_params to member access.
15391         (aarch64_macro_fusion_p): Likewise.
15392         (aarch_macro_fusion_pair_p): Likewise.
15393         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
15395 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15397         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
15398         (aarch64_tune_flags): Likewise.
15399         (AARCH64_TUNE_FMA_STEERING): Likewise.
15400         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
15401         to AARCH64_FL_USE_FMA_STEERING_PASS.
15402         (cortex-a57.cortex-a53): Likewise.
15403         (cortex-a72): Use cortexa72_tunings.
15404         (cortex-a72.cortex-a53): Likewise.
15405         (exynos-m1): Likewise.
15406         * config/aarch64/aarch64-protos.h (tune_params): Add
15407         a field: extra_tuning_flags.
15408         * config/aarch64/aarch64-tuning-flags.def: New.
15409         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
15410         (aarch64_extra_tuning_flags): Likewise.
15411         (aarch64_tune_params): Declare here.
15412         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
15413         (cortexa53_tunings): Likewise.
15414         (cortexa57_tunings): Likewise.
15415         (thunderx_tunings): Likewise.
15416         (xgene1_tunings): Likewise.
15417         (cortexa72_tunings): New.
15418         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
15419          (gate): Check against aarch64_tune_params.
15420         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
15421         aarch64-protos.h.
15423 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15425         * config/aarch64/aarch64-fusion-pairs.def: New.
15426         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
15427         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
15428         aarch64_fusion_pairs.
15429         (AARCH64_FUSE_MOV_MOVK): Likewise.
15430         (AARCH64_FUSE_ADRP_ADD): Likewise.
15431         (AARCH64_FUSE_MOVK_MOVK): Likewise.
15432         (AARCH64_FUSE_ADRP_LDR): Likewise.
15433         (AARCH64_FUSE_CMP_BRANCH): Likewise.
15435 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
15437         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
15438         SYMBOL_SMALL_GOT_28K.
15439         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
15440         relocation modifiers.
15441         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
15442         (ldr_got_small_28k_<mode>): New.
15443         (ldr_got_small_28k_sidi): New.
15444         * config/aarch64/iterators.md (got_modifier): New mode iterator.
15445         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
15446         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15447         SYMBOL_SMALL_GOT_28K.
15448         (aarch64_rtx_costs): Add costs for new instruction sequences.
15449         (initialize_aarch64_code_model): Initialize new model.
15450         (aarch64_classify_symbol): Recognize new model and new symbol classification.
15451         (aarch64_asm_preferred_eh_data_format): Support new model.
15452         (aarch64_load_symref_appropriately): Generate new instruction
15453         sequences for -fpic.
15454         (TARGET_USE_PSEUDO_PIC_REG): New definition.
15455         (aarch64_use_pseudo_pic_reg): New function.
15457 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
15459         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15460         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
15461         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
15462         (aarch64_expand_mov_immediate): Ditto.
15463         (aarch64_print_operand): Ditto.
15464         (aarch64_classify_symbol): Ditto.
15466 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
15468         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
15470 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
15472         PR bootstrap/66638
15473         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
15474         assertion failed.  Remove assertion itself.
15476 2015-06-26  Richard Biener  <rguenther@suse.de>
15478         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
15479         and -A CMP CST -> A CMP -CST which is redundant with a pattern
15480         in match.pd.
15481         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
15482         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
15483         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
15484         * match.pd: ... patterns here.
15486 2015-06-26  Marek Polacek  <polacek@redhat.com>
15488         * match.pd ((x | y) & ~(x & y) -> x ^ y,
15489         (x | y) & (~x ^ y) -> x & y): New patterns.
15491 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
15493         * rtl.h (emit): Add an optional boolean parameter to control
15494         whether barriers are emitted.
15495         * emit-rtl.c (emit): Likewise.
15496         * gensupport.c (get_emit_function): Return null rather than "emit".
15497         * genemit.c (gen_emit_seq): Handle the null return value.
15498         Don't emit barriers after the final instruction in the sequence.
15499         * gentarget-def.c (main): Don't emit barriers after the instruction.
15501 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15503         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
15504         TARGET_UNIFIED_ASM.
15506 2015-06-26  Richard Biener  <rguenther@suse.de>
15508         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
15510 2015-06-26  Richard Biener  <rguenther@suse.de>
15512         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
15513         irrespective on whether the inner operation has a single use
15514         of both off are constant.
15516 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
15517             Segher Boessenkool  <segher@kernel.crashing.org>
15519         PR target/66412
15520         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
15521         before doing PUT_MODE or PUT_CODE on operands to avoid
15522         in-place RTX modification.
15524 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15526         * gentarget-def.c (def_target_insn): Cast return of strtol to
15527         unsigned int.
15529 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15531         * gimple.h (gimple_call_set_fn): Move inline function.
15532         * gimple.c (gimple_call_set_fn): Relocate here.
15534 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
15536         PR target/65979
15537         PR target/66611
15538         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
15539         the replacement insn will work.
15541 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15543         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
15544         by default.
15546 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15548         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
15549         * cgraph.h: Include ipa-ref.h and plugin-api.h.
15550         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
15551         (symtab_node::address_can_be_compared_p): Move function.
15552         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
15553         definition here.
15554         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
15555         * auto-profile.c: Likewise.
15556         * bb-reorder.c: Likewise.
15557         * builtins.c: Likewise.
15558         * calls.c: Likewise.
15559         * cfgexpand.c: Likewise.
15560         * cgraphbuild.c: Likewise.
15561         * cgraphclones.c: Likewise.
15562         * cgraphunit.c: Likewise.
15563         * combine.c: Likewise.
15564         * coverage.c: Likewise.
15565         * data-streamer-in.c: Likewise.
15566         * data-streamer-out.c: Likewise.
15567         * data-streamer.c: Likewise.
15568         * dbxout.c: Likewise.
15569         * dwarf2out.c: Likewise.
15570         * except.c: Likewise.
15571         * expr.c: Likewise.
15572         * final.c: Likewise.
15573         * fold-const.c: Likewise.
15574         * ggc-page.c: Likewise.
15575         * gimple-fold.c: Likewise.
15576         * gimple-iterator.c: Likewise.
15577         * gimple-pretty-print.c: Likewise.
15578         * gimple-streamer-in.c: Likewise.
15579         * gimple-streamer-out.c: Likewise.
15580         * gimple.c: Likewise.
15581         * gimplify.c: Likewise.
15582         * ipa-chkp.c: Likewise.
15583         * ipa-comdats.c: Likewise.
15584         * ipa-cp.c: Likewise.
15585         * ipa-devirt.c: Likewise.
15586         * ipa-icf-gimple.c: Likewise.
15587         * ipa-icf.c: Likewise.
15588         * ipa-inline-analysis.c: Likewise.
15589         * ipa-inline-transform.c: Likewise.
15590         * ipa-inline.c: Likewise.
15591         * ipa-polymorphic-call.c: Likewise.
15592         * ipa-profile.c: Likewise.
15593         * ipa-prop.c: Likewise.
15594         * ipa-pure-const.c: Likewise.
15595         * ipa-ref.c: Likewise.
15596         * ipa-reference.c: Likewise.
15597         * ipa-split.c: Likewise.
15598         * ipa-utils.c: Likewise.
15599         * ipa-visibility.c: Likewise.
15600         * ipa.c: Likewise.
15601         * langhooks.c: Likewise.
15602         * lto-cgraph.c: Likewise.
15603         * lto-compress.c: Likewise.
15604         * lto-opts.c: Likewise.
15605         * lto-section-in.c: Likewise.
15606         * lto-section-out.c: Likewise.
15607         * lto-streamer-in.c: Likewise.
15608         * lto-streamer-out.c: Likewise.
15609         * lto-streamer.c: Likewise.
15610         * omp-low.c: Likewise.
15611         * opts-global.c: Likewise.
15612         * passes.c: Likewise.
15613         * predict.c: Likewise.
15614         * print-tree.c: Likewise.
15615         * profile.c: Likewise.
15616         * ree.c: Likewise.
15617         * sanopt.c: Likewise.
15618         * stor-layout.c: Likewise.
15619         * symtab.c: Likewise.
15620         * toplev.c: Likewise.
15621         * trans-mem.c: Likewise.
15622         * tree-cfg.c: Likewise.
15623         * tree-chkp.c: Likewise.
15624         * tree-eh.c: Likewise.
15625         * tree-emutls.c: Likewise.
15626         * tree-inline.c: Likewise.
15627         * tree-nested.c: Likewise.
15628         * tree-parloops.c: Likewise.
15629         * tree-pretty-print.c: Likewise.
15630         * tree-profile.c: Likewise.
15631         * tree-sra.c: Likewise.
15632         * tree-ssa-alias.c: Likewise.
15633         * tree-ssa-live.c: Likewise.
15634         * tree-ssa-loop-ivcanon.c: Likewise.
15635         * tree-ssa-loop-ivopts.c: Likewise.
15636         * tree-ssa-pre.c: Likewise.
15637         * tree-ssa-sccvn.c: Likewise.
15638         * tree-ssa-strlen.c: Likewise.
15639         * tree-ssa-structalias.c: Likewise.
15640         * tree-streamer-in.c: Likewise.
15641         * tree-streamer-out.c: Likewise.
15642         * tree-streamer.c: Likewise.
15643         * tree-switch-conversion.c: Likewise.
15644         * tree-tailcall.c: Likewise.
15645         * tree-vect-data-refs.c: Likewise.
15646         * tree-vect-stmts.c: Likewise.
15647         * tree-vectorizer.c: Likewise.
15648         * tree.c: Likewise.
15649         * tsan.c: Likewise.
15650         * ubsan.c: Likewise.
15651         * value-prof.c: Likewise.
15652         * varasm.c: Likewise.
15653         * varpool.c: Likewise.
15654         * config/arm/arm.c: Likewise.
15655         * config/bfin/bfin.c: Likewise.
15656         * config/c6x/c6x.c: Likewise.
15657         * config/cris/cris.c: Likewise.
15658         * config/darwin-c.c: Likewise.
15659         * config/darwin.c: Likewise.
15660         * config/i386/i386.c: Likewise.
15661         * config/i386/winnt.c: Likewise.
15662         * config/microblaze/microblaze.c: Likewise.
15663         * config/mips/mips.c: Likewise.
15664         * config/rs6000/rs6000.c: Likewise.
15665         * config/rx/rx.c: Likewise.
15666         * config/s390/s390.c: Likewise.
15667         * config/tilegx/mul-tables.c: Likewise.
15669 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15671         * config/aarch64/aarch64.c, config/alpha/alpha.c,
15672         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
15673         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
15674         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
15675         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15676         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15677         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15678         config/microblaze/microblaze.c, config/mips/mips.c,
15679         config/mmix/mmix.c, config/mn10300/mn10300.c,
15680         config/moxie/moxie.c, config/msp430/msp430.c,
15681         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15682         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15683         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15684         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15685         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15686         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15687         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
15688         target-def.h include.
15689         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
15691 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15693         * Makefile.in (TARGET_DEF): Add target-insns.def.
15694         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
15695         (build/gentarget-def.o): New rule.
15696         (genprogrtl): Add target-def.
15697         * target-insns.def, gentarget-def.c: New files.
15698         * target.def: Add targetm.have_* and targetm.gen_* hooks,
15699         based on the contents of target-insns.def.
15700         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
15701         (HAVE_return, gen_return): Delete.
15702         * target-def.h: Include insn-target-def.h.
15703         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
15704         instead of direct calls.  Rely on them to do the appropriate assertions.
15705         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
15706         (convert_jumps_to_returns): Use targetm interface instead of
15707         direct calls.
15708         (thread_prologue_and_epilogue_insns): Likewise.
15709         * reorg.c (find_end_label, dbr_schedule): Likewise.
15710         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
15711         * shrink-wrap.c (convert_to_simple_return): Likewise.
15712         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
15714 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15716         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
15717         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
15718         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
15719         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
15720         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15721         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15722         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15723         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
15724         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
15725         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15726         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15727         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15728         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15729         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15730         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15731         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
15732         includes to end.
15734 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15736         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
15737         (unbounded_int_hashmap_traits::key_type): Likewise.
15738         * hash-map.h (hash_map): Get the key type from the traits.
15739         * hash-traits.h (default_hash_traits): By default, inherit from the
15740         template parameter.
15741         * alias.c (alias_set_traits): Delete.
15742         (alias_set_entry_d::children): Use alias_set_hash as the first
15743         template parameter.
15744         (record_alias_subset): Update accordingly.
15745         * except.c (tree_hash_traits): Delete.
15746         (type_to_runtime_map): Use tree_hash as the first template parameter.
15747         (init_eh): Update accordingly.
15748         * genmatch.c (capture_id_map_hasher): Delete.
15749         (cid_map_t): Use nofree_string_hash as first template parameter.
15750         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
15751         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
15752         Use symbol_compare_hash as the first template parameter in
15753         subdivide_hash_map.
15754         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
15755         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
15756         template parameter.
15757         * passes.c (pass_registry_hasher): Delete.
15758         (name_to_pass_map): Use nofree_string_hash as the first template
15759         parameter.
15760         (register_pass_name): Update accordingly.
15761         * sanopt.c (sanopt_tree_map_traits): Delete.
15762         (sanopt_tree_triplet_map_traits): Delete.
15763         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
15764         template parameter.
15765         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
15766         the first template parameter.
15767         * sese.c (rename_map_hasher): Delete.
15768         (rename_map_type): Use tree_ssa_name_hash as the first template
15769         parameter.
15770         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
15771         (function_summary::m_map): Use map_hash as the first template
15772         parameter.
15773         (function_summary::release): Update accordingly.
15774         * tree-if-conv.c (phi_args_hash_traits): Delete.
15775         (predicate_scalar_phi): Use tree_operand_hash as the first template
15776         parameter to phi_arg_map.
15777         * tree-inline.h (dependence_hasher): Delete.
15778         (copy_body_data::dependence_map): Use dependence_hash as the first
15779         template parameter.
15780         * tree-inline.c (remap_dependence_clique): Update accordingly.
15781         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
15782         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
15783         parameter.
15784         (addr_stridxptr): Update accordingly.
15785         * value-prof.c (profile_id_traits): Delete.
15786         (cgraph_node_map): Use profile_id_hash as the first template
15787         parameter.
15788         (init_node_map): Update accordingly.
15789         * config/alpha/alpha.c (string_traits): Delete.
15790         (machine_function::links): Use nofree_string_hash as the first
15791         template parameter.
15792         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
15793         * config/m32c/m32c.c (pragma_traits): Delete.
15794         (pragma_htab): Use nofree_string_hash as the first template parameter.
15795         (m32c_note_pragma_address): Update accordingly.
15796         * config/mep/mep.c (pragma_traits): Delete.
15797         (pragma_htab): Use nofree_string_hash as the first template parameter.
15798         (mep_note_pragma_flag): Update accordingly.
15799         * config/mips/mips.c (mips16_flip_traits): Delete.
15800         (mflip_mips16_htab): Use nofree_string_hash as the first template
15801         parameter.
15802         (mflip_mips16_use_mips16_p): Update accordingly.
15803         (local_alias_traits): Delete.
15804         (mips16_local_aliases): Use nofree_string_hash as the first template
15805         parameter.
15806         (mips16_local_alias): Update accordingly.
15808 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15810         * hash-map-traits.h (default_hashmap_traits): Delete.
15812 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15814         * hash-map-traits.h (unbounded_hashmap_traits): New class.
15815         (unbounded_int_hashmap_traits): Likewise.
15816         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
15818 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15820         * ipa-icf.h (symbol_compare_hash): New class.
15821         (symbol_compare_hashmap_traits): Use it.
15822         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
15823         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
15824         (mem_alloc_description::reverse_mem_map_t): Remove redundant
15825         default_hashmap_traits.
15826         * sanopt.c (sanopt_tree_triplet_hash): New class.
15827         (sanopt_tree_triplet_map_traits): Use it.
15829 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15831         * gengtype-parse.c (require_template_declaration): Allow '+' in
15832         template parameters.  Consolidate cases.
15833         * hash-traits.h (int_hash): New class.
15834         * alias.c (alias_set_hash): New structure.
15835         (alias_set_traits): Use it.
15836         * symbol-summary.h (function_summary::map_hash): New class.
15837         (function_summary::summary_hashmap_traits): Use it.
15838         * tree-inline.h (dependence_hash): New class.
15839         (dependence_hasher): Use it.
15840         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
15841         * value-prof.c (profile_id_hash): New class.
15842         (profile_id_traits): Use it.
15844 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15846         * config/mips/mips.c (mips16_flip_traits): Use it.
15847         (local_alias_traits, mips16_local_aliases): Convert from a map of
15848         rtxes to a map of symbol names.
15849         (mips16_local_alias): Update accordingly.
15851 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15853         * hash-traits.h (string_hash, nofree_string_hash): New classes.
15854         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
15855         * passes.c (pass_registry_hasher): Likewise.
15856         * config/alpha/alpha.c (string_traits): Likewise.
15857         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
15858         * config/m32c/m32c.c (pragma_traits): Likewise.
15859         * config/mep/mep.c (pragma_traits): Likewise.
15861 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15863         * tree-hash-traits.h (tree_hash): New class.
15864         * except.c: Include tree-hash-traits.h.
15865         (tree_hash_traits): Use tree_hash.
15867 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15869         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
15870         * sese.c: Include tree-hash-traits.h.
15871         (rename_map_hasher): Use tree_ssa_name_hasher.
15873 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15875         * tree-hash-traits.h (tree_decl_hash): New class.
15876         * tree-ssa-strlen.c: Include tree-hash-traits.h.
15877         (stridxlist_hash_traits): Use tree_decl_hash.
15879 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15881         * tree-hash-traits.h: New file.
15882         (tree_operand_hash): New class.
15883         * sanopt.c: Include tree-hash-traits.h.
15884         (sanopt_tree_map_traits): Use tree_operand_hash.
15885         * tree-if-conv.c: Include tree-hash-traits.h.
15886         (phi_args_hash_traits): Use tree_operand_hash.
15887         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
15888         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
15890 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15892         * hash-map-traits.h: Include hash-traits.h.
15893         (simple_hashmap_traits): New class.
15894         * mem-stats.h (hash_map): Change the default traits to
15895         simple_hashmap_traits<default_hash_traits<Key> >.
15897 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15899         * hash-table.h: Update comments.
15901 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15903         * hash-traits.h (default_hash_traits): New structure.
15904         * hash-set.h (default_hashset_traits): Delete.
15905         (hash_set): Use default_hash_traits<Key> instead of
15906         default_hashset_traits.  Delete hash_entry type and use Key directly.
15907         * ipa-devirt.c (pair_traits): Delete.
15908         (default_hash_traits <type_pair>): Override.
15909         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
15910         (odr_types_equivalent_p, add_type_duplicate): Likewise.
15912 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15914         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
15916 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15918         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
15919         (has_is_empty, is_empty_helper): Delete.
15920         (has_mark_deleted, mark_deleted_helper): Delete.
15921         (has_mark_empty, mark_empty_helper): Delete.
15922         (hash_table::is_deleted): Call the Descriptor unconditionally.
15923         (hash_table::is_empty): Likewise.
15924         (hash_table::mark_deleted): Likewise.
15925         (hash_table::mark_empty): Likewise.
15927 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15929         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
15930         redundant typedefs and members.
15931         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
15932         redundant typedefs.
15933         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
15934         * ipa-devirt.c (odr_name_hasher): Likewise.
15935         (polymorphic_call_target_hasher): Likewise.
15936         * ira-costs.c (cost_classes_hasher): Likewise.
15937         * statistics.c (stats_counter_hasher): Likewise.
15938         * trans-mem.c (log_entry_hasher): Likewise.
15939         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15940         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
15941         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
15942         * var-tracking.c (variable_hasher): Likewise.
15943         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
15944         Remove redundant typedefs and members.
15946 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15948         * hash-traits.h (ggc_cache_hasher): Rename to...
15949         (ggc_cache_remove): ...this and remove typedefs.
15950         (ggc_cache_ptr_hash): New class.
15951         * hash-table.h: Update commentary.
15952         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
15953         rather than ggc_cache_hasher.
15954         (const_wide_int_hasher, reg_attr_hasher): Likewise.
15955         (const_double_hasher, const_fixed_hasher): Likewise.
15956         * function.c (insn_cache_hasher): Likewise.
15957         * trans-mem.c (tm_wrapper_hasher): Likewise.
15958         * tree.h (tree_decl_map_cache_hasher): Likewise.
15959         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
15960         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
15961         * ubsan.c (tree_type_map_cache_hasher): Likewise.
15962         * varasm.c (tm_clone_hasher): Likewise.
15963         * config/i386/i386.c (dllimport_hasher): Likewise.
15964         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
15965         (tree_hasher): Likewise.
15967 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15969         * hash-traits.h (ggc_hasher): Rename to...
15970         (ggc_remover): ...this and remove typedefs.
15971         (ggc_cache_hasher): Update accordingly.  Add typedefs.
15972         (ggc_ptr_hash): New class.
15973         * hash-table.h: Update comment.
15974         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
15975         ggc_hasher.
15976         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
15977         (tree_descriptor_hasher): Likewise.
15978         * cgraph.c (function_version_hasher): Likewise.
15979         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
15980         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
15981         (dw_loc_list_hasher, addr_hasher): Likewise.
15982         * function.h (used_type_hasher): Likewise.
15983         * function.c (temp_address_hasher): Likewise.
15984         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
15985         * libfuncs.h (libfunc_hasher): Likewise.
15986         * lto-streamer.h (decl_state_hasher): Likewise.
15987         * optabs.c (libfunc_decl_hasher): Likewise.
15988         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
15989         * varasm.c (section_hasher, object_block_hasher): Likewise.
15990         (const_rtx_desc_hasher): Likewise.
15991         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
15992         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
15994 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15996         * hash-traits.h (free_ptr_hash): New class.
15997         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
15998         rather than typed_free_remove.  Remove redudant typedefs.
15999         (external_ref_hasher): Likewise.
16000         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
16001         (ehspec_hasher): Likewise.
16002         * ggc-common.c (saving_hasher): Likewise.
16003         * gimplify.c (gimplify_hasher): Likewise.
16004         * haifa-sched.c (delay_i2_hasher): Likewise.
16005         * loop-invariant.c (invariant_expr_hasher): Likewise.
16006         * loop-iv.c (biv_entry_hasher): Likewise.
16007         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
16008         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
16009         * tree-cfg.c (locus_discrim_hasher): Likewise.
16010         * tree-eh.c (finally_tree_hasher): Likewise.
16011         * tree-into-ssa.c (var_info_hasher): Likewise.
16012         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
16013         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
16014         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
16015         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
16016         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
16017         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
16018         (shared_bitmap_hasher): Likewise.
16019         * tree-ssa-threadupdate.c (redirection_data): Likewise.
16020         * tree-vectorizer.h (peel_info_hasher): Likewise.
16021         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
16022         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
16024 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
16026         * hash-table.h: Update comments.
16027         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
16028         (nofree_ptr_hash): New class.
16029         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
16030         than typed_noop_remove.  Remove redudant typedefs.
16031         * attribs.c (attribute_hasher): Likewise.
16032         * cfg.c (bb_copy_hasher): Likewise.
16033         * cselib.c (cselib_hasher): Likewise.
16034         * dse.c (invariant_group_base_hasher): Likewise.
16035         * dwarf2cfi.c (trace_info_hasher): Likewise.
16036         * dwarf2out.c (macinfo_entry_hasher): Likewise.
16037         (comdat_type_hasher, loc_list_hasher): Likewise.
16038         * gcse.c (pre_ldst_expr_hasher): Likewise.
16039         * genmatch.c (id_base): Likewise.
16040         * genrecog.c (test_pattern_hasher): Likewise.
16041         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
16042         * haifa-sched.c (delay_i1_hasher): Likewise.
16043         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
16044         * ipa-icf.h (congruence_class_group_hash): Likewise.
16045         * ipa-profile.c (histogram_hash): Likewise.
16046         * ira-color.c (allocno_hard_regs_hasher): Likewise.
16047         * lto-streamer.h (string_slot_hasher): Likewise.
16048         * lto-streamer.c (tree_entry_hasher): Likewise.
16049         * plugin.c (event_hasher): Likewise.
16050         * postreload-gcse.c (expr_hasher): Likewise.
16051         * store-motion.c (st_expr_hasher): Likewise.
16052         * tree-sra.c (uid_decl_hasher): Likewise.
16053         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
16054         (ssa_name_var_hash): Likewise.
16055         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
16056         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
16057         * tree-ssa-pre.c (pre_expr_d): Likewise.
16058         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
16059         * vtable-verify.h (registration_hasher): Likewise.
16060         * vtable-verify.c (vtbl_map_hasher): Likewise.
16061         * config/arm/arm.c (libcall_hasher): Likewise.
16062         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
16063         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
16064         * config/sol2.c (comdat_entry_hasher): Likewise.
16065         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
16066         (print_fold_checksum, fold_checksum_tree): Likewise.
16067         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
16068         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
16069         (fold_build_call_array_loc): Likewise.
16070         * tree-ssa-ccp.c (gimple_htab): Likewise.
16071         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
16072         rather than pointer_type.
16074 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
16076         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
16077         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
16079 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
16081         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
16082         (ggc_hasher::ggc_mx): Likewise.
16083         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
16084         that duplicate ggc_hasher ones.
16086 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
16088         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
16089         (gt_cleare_cache): Check here for deleted and empty entries.
16090         Replace handle_cache_entry with a call to keep_cache_entry.
16091         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
16092         (ggc_cache_hasher::keep_cache_entry): New function.
16093         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
16094         (tm_wrapper_hasher::keep_cache_entry): New function.
16095         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
16096         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
16097         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
16098         (type_cache_hasher::keep_cache_entry): New function.
16099         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
16100         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
16101         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
16102         (tree_type_map_cache_hasher::keep_cache_entry): New function.
16103         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
16104         (tm_clone_hasher::keep_cache_entry): New function.
16105         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
16106         (dllimport_hasher::keep_cache_entry): New function.
16108 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
16110         * hash-table.h: Include hash-traits.h.
16111         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
16112         (ggc_cache_hasher): Move to...
16113         * hash-traits.h: ...this new file.
16115 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
16117         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
16118         struct cl_optimization.
16119         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
16120         * tree.c (make_node_stat): Allocate cl_optimization struct.
16121         (copy_node_stat): Allocate and copy cl_optimization struct.
16123 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
16125         * function.h (struct incoming_args): Move struct.
16126         (pass_by_reference, reference_callee_copied): Remove prototypes.
16127         * emit-rtl.h (struct incoming_args): Relocate struct here.
16128         * calls.h (pass_by_reference, reference_callee_copied): Relocate
16129         prototypes here.
16130         * function.c (pass_by_reference, reference_callee_copied): Move.
16131         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
16132         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
16133         * ipa-chkp.c: Include calls.h.
16135 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
16137         * alias.h (alias_set_type): Move typedef.
16138         * coretypes.h (alias_set_type): Relocate typedef here.
16139         * rtl.h: Don't include alias.h.
16141 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
16143         * cgraph.h (cgraph_rtl_info): Move to rtl.h
16144         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
16145         and instance.
16146         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
16147         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
16148         doesn't exist.
16149         * calls.c: Include hard-reg-set.h before rtl.h.
16150         * ira.c: Likewise.
16152 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16153             Vladimir Makarov  <vmakarov@redhat.com>
16155         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
16156         Add assert.
16158 2015-06-25  Richard Biener  <rguenther@suse.de>
16160         * fold-const.c (fold_binary_loc): Move simplification of
16161         (X <<>> C1) & C2 ...
16162         * match.pd: ... here.
16164 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
16166         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
16168 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
16170         * match.pd: Add patterns for vec_conds between 1 and 0.
16172 2015-06-25  Richard Biener  <rguenther@suse.de>
16174         * tree-vect-stmts.c (vectorizable_conversion): Do not set
16175         STMT_VINFO_VEC_STMT for SLP.
16176         (vectorizable_store): Likewise.
16177         (vectorizable_load): Likewise.
16178         (vect_transform_stmt): Catch SLP vectorization clobbering
16179         STMT_VINFO_VEC_STMT.
16181 2015-06-25  Richard Biener  <rguenther@suse.de>
16183         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
16184         dumping.
16185         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
16186         cleanup resulting dead code and parameters.
16187         (vect_transform_slp_perm_load): Adjust.
16189 2015-06-25  Nick Clifton  <nickc@redhat.com>
16191         * config/bfin/bfin.c (bfin_expand_prologue): Set
16192         current_function_static_stack_size if flag_stack_usage_info is set.
16193         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
16194         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
16195         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16196         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
16198 2015-06-25  Tom de Vries  <tom@codesourcery.com>
16200         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
16201         comment that the generated IV is unsigned.
16203 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16205         PR target/29693
16206         * config/arm/arm.c (arm_dbx_register_number): Return
16207         DWARF_FRAME_REGISTERS by default.
16209 2015-06-25  Tom de Vries  <tom@codesourcery.com>
16211         * dominance.c (calculate_dominance_info): Fix verify_dominators call
16212         argument.  Call verify_dominator when reusing dominator info.
16214 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
16216         PR target/66563
16217         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
16218         an additional element of the unspec vector.  Modify indices
16219         of operands.
16220         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
16221         * config/sh/sh.c (prepare_move_operands): Pass incremented
16222         const_int to gen_GOTaddr2picreg.
16223         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
16225 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
16227         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
16228         Condition on TARGET_FLOAT.
16230 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
16232         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
16233         and (no)crypto.
16235 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
16237         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
16239         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
16240         aarch64_err_no_fpadvsimd.
16242         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
16243         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
16244         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
16245         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
16246         Turn error into assert, test TARGET_FLOAT.
16247         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
16248         TARGET_FLOAT.
16250 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
16252         PR debug/66482
16253         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
16255 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
16257         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
16259 2015-06-24  Renlin Li <renlin.li@arm.com>
16261         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
16262         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
16264 2015-06-24  Richard Biener  <rguenther@suse.de>
16266         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
16267         (main): Likewise.
16268         (lower_opt_convert): Support lowering of conditional view_convert.
16269         (parser::parse_operation): Likewise.
16270         (parser::parse_for): Likewise.
16272 2015-06-24  Renlin Li  <renlin.li@arm.com>
16274         * varasm.c (emit_local): Use unsigned int for align variable.
16276 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16278         PR target/63408
16279         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
16280         for negative numbers.
16282 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16284         PR rtl-optimization/66306
16285         * reload.c (find_reloads): Swap the match_dup info for
16286         commutative operands.
16288 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16290         * config/s390/vx-builtins.md
16291         ("vec_scatter_element<mode>_<non_vec_int>")
16292         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
16293         attribute with bhfgq.
16295 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16297         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
16299 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16301         * config/s390/s390-builtin-types.def: Add flag to indicate the
16302         options under which the function type is needed.
16303         * config/s390/s390-builtins.def: Add flag to indicate the options
16304         under which the builtin is enabled.
16305         * config/s390/s390-builtins.h: Add flags parameter to macro
16306         definitions.
16307         (bflags_for_builtin): New function.
16308         (flags_for_builtin): Renamed to ...
16309         (opflags_for_builtin): ... this.
16310         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
16311         flags_for_builtin to bflags_for_builtin and
16312         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
16313         * config/s390/s390.c: Add initialization of bflags_builtin and
16314         opflags_builtin arrays.
16315         Remove code for flags_builtin.
16316         (s390_init_builtins): Only create builtin function types if one of
16317         their flags is active.
16318         Only create builtins if all of their flags are active.
16319         (s390_expand_builtin): Rename flags_for_builtin to
16320         opflags_for_builtin.
16322 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16324         * config/s390/vecintrin.h: Remove internal builtins.
16326 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16328         * config/s390/s390.c (s390_secondary_reload): Fix check for
16329         GENERAL_REGS register class.
16331 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16333         * config/s390/s390.c (s390_support_vector_misalignment): Call
16334         default implementation for !TARGET_VX.
16336 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16338         * config/s390/s390.c (s390_legitimate_constant_p): Add
16339         TARGET_VX check.
16341 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16343         * config/s390/s390.c (s390_vector_abi): New variable definition.
16344         (s390_check_type_for_vector_abi): New function.
16345         (TARGET_ASM_FILE_END): New macro definition.
16346         (s390_asm_file_end): New function.
16347         (s390_function_arg): Call s390_check_type_for_vector_abi.
16348         (s390_gimplify_va_arg): Likewise.
16349         * configure: Regenerate.
16350         * configure.ac: Check for .gnu_attribute Binutils feature.
16352 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
16354         PR target/65803
16355         * config/bfin/bfin.c (hwloop_optimize): Initialize
16356         JUMP_LABEL for newly created jump.
16358 2015-06-23  Tristan Gingold  <gingold@adacore.com>
16360         * collect-utils.c (collect_wait): Unlink the response file here
16361         instead of...
16362         (do_wait): ...here.
16363         (utils_cleanup): ...and here.
16365 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
16367         * df-scan.c: Don't include target-def.h.
16368         * targhooks.c: Likewise.
16369         * config/arm/arm-c.c: Likewise.
16370         * config/i386/i386-c.c: Likewise.
16371         * config/nds32/nds32-cost.c: Likewise.
16372         * config/nds32/nds32-fp-as-gp.c: Likewise.
16373         * config/nds32/nds32-intrinsic.c: Likewise.
16374         * config/nds32/nds32-isr.c: Likewise.
16375         * config/nds32/nds32-md-auxiliary.c: Likewise.
16376         * config/nds32/nds32-memory-manipulation.c: Likewise.
16377         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16378         * config/nds32/nds32-predicates.c: Likewise.
16380 2015-06-23  Richard Biener  <rguenther@suse.de>
16382         PR tree-optimization/66636
16383         * tree-vect-stmts.c (vectorizable_store): Properly compute the
16384         def type for further defs for strided stores.
16386 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
16388         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
16389         conditional selects.
16390         (setcc_int<mode>, setcc_float<mode>): Reformat.
16392 2015-06-23  Marek Polacek  <polacek@redhat.com>
16394         * match.pd ((x + y) - (x | y) -> x & y,
16395         (x + y) - (x & y) -> x | y): New patterns.
16397 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
16399         PR 65711
16400         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
16401         '-dynamic-linker' within %{!shared: ...}.
16403 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
16405         PR target/66560
16406         * config/i386/predicates.md (addsub_vm_operator): New predicate.
16407         (addsub_vs_operator): Ditto.
16408         (addsub_vs_parallel): Ditto.
16409         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
16410         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
16411         Put minus RTX before plus and adjust vec_merge selector.
16412         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
16413         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
16414         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
16415         (addsub vec_merge splitters): New combiner splitters.
16416         (addsub vec_select/vec_concat splitters): Ditto.
16418 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
16420         PR tree-optimization/66449
16421         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
16422         POINTER_PLUS_EXPR for pointers.
16424 2015-06-23  Alan Modra  <amodra@gmail.com>
16426         * rtlanal.c (commutative_operand_precedence): Correct comments.
16427         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
16428         declaration.  Return an int.  Distinguish REG,REG return from
16429         others.
16430         (struct simplify_plus_minus_op_data): Make local to function.
16431         (simplify_plus_minus): Don't set canonicalized if merely sorting
16432         registers.  Avoid packing ops if nothing changes.  White space fixes.
16434 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
16436         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
16437         -fdump-ada-spec is passed but not if -fsyntax-only is.
16439 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
16441         PR bootstrap/63740
16442         * lra-lives.c (process_bb_lives): Check insn copying the same
16443         reload pseudo and don't create a copy for it.
16445 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16447         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
16448         for cond_stmt.
16450 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16452         * builtins.def (DEF_GOMP_BUILTIN): Test
16453         'flag_tree_parallelize_loops > 1' instead of
16454         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
16456 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16458         * dominance.c (calculate_dominance_info): Verify dominators if
16459         early-out.
16461 2015-06-22  Marek Polacek  <polacek@redhat.com>
16463         * match.pd ((x ^ y) ^ (x | y) -> x & y,
16464         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
16465         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
16466         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
16468 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
16470         PR target/65871
16471         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
16472         cost of embedded comparison.
16474 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16476         PR target/65914
16477         * config/rs6000/predicates.md (altivec_register_operand): Permit
16478         virtual stack registers.
16479         (vsx_register_operand): Likewise.
16480         (vfloat_operand): Likewise.
16481         (vint_operand): Likewise.
16482         (vlogical_operand): Likewise.
16484 2015-06-22  Richard Biener  <rguenther@suse.de>
16486         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
16487         and single_scalar_iteration_cost members.
16488         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
16489         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
16490         (vect_get_single_scalar_iteration_cost): Remove.
16491         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
16492         Use LOOP_VINFO_SCALAR_ITERATION_COST.
16493         * tree-vect-loop.c (destroy_loop_vec_info): Free
16494         scalar_cost_vec.
16495         (vect_get_single_scalar_iteration_cost): Compute result into
16496         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
16497         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
16498         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
16499         (vect_estimate_min_profitable_iters): Use them.
16501 2015-06-22  Christian Bruel  <christian.bruel@st.com>
16503         PR target/52144
16504         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
16505         (TARGET_INSERT_ATTRIBUTES): Define.
16506         (thumb_flipper): New var.
16507         * config/arm/arm.opt (-mflip-thumb): New switch.
16509 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
16510             Martin Liska  <mliska@suse.cz>
16512         PR ipa/65908
16513         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
16514         construction of arg_types.
16515         (sem_function::sem_function): Likewise.
16516         (sem_function::~sem_function): Remove destruction of arg_types.
16517         (sem_function::compatible_parm_types_p): New function.
16518         (sem_function::equals_wpa): Reorg matching of return values
16519         and parameter types.
16520         (sem_function::equals_private): Reorg mathcing of argument types.
16521         (sem_function::parse_tree_args): Remove.
16522         * ipa-icf.h (init_wpa): Do not call it.
16523         (parse_tree_args): Remove.
16524         (compatible_parm_types_p): Declare.
16525         (result_type): Remove.
16526         (arg_types): Remove.
16528 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
16530         PR ipa/66351
16531         * ipa-polymorphic-call.c
16532         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
16533         initializing alias oracle; fix formating; set base_alias_set if it
16534         is known.
16536 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
16538         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
16539         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
16540         (find_inc): Likewise.
16541         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
16542         swapping.
16543         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
16544         * df-scan.c (df_swap_refs): Remove.
16545         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
16546         * dominance.c (link_roots): Use std::swap instead of manually swapping.
16547         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
16548         * fold-const.c (fold_relational_const): Likewise.
16549         * genattrtab.c (simplify_test_exp): Likewise.
16550         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
16551         gimple_simplify): Likewise.
16552         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
16553         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
16554         * ipa-devirt.c (add_type_duplicate): Likewise.
16555         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
16556         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
16557         * lra.c (lra_create_copy): Likewise.
16558         * lto-streamer-out.c (DFS::DFS): Likewise.
16559         * modulo-sched.c (get_sched_window): Likewise.
16560         * omega.c (omega_pretty_print_problem): Likewise.
16561         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
16562         * reload1.c (reloads_unique_chain_p): Likewise.
16563         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
16564         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
16565         use std::swap.
16566         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
16567         manually swapping.
16568         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
16569         predicate_mem_writes): Likewise.
16570         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
16571         * tree-predcom.c (combine_chains): Likewise.
16572         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
16573         refs_may_alias_p_1): Likewise.
16574         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
16575         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16576         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
16577         number_of_iterations_cond): Likewise.
16578         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16579         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
16580         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
16581         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
16582         * tree-vrp.c (extract_range_from_binary_expr_1,
16583         extract_range_from_unary_expr_1): Likewise.
16585 2015-06-20  Marek Polacek  <polacek@redhat.com>
16587         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
16589 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
16591         PR target/66591
16592         * config/sh/sh.c (prepare_move_operands): Replace subreg
16593         index term with R0 for base and index addressing.
16595 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
16597         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
16598         op1 is an fp zero.
16599         (movsf_aarch64): Change condition from register_operand to
16600         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
16601         load1.  Change type for alternative 7 to store1.
16602         (movdf_aarch64): Likewise.
16604 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
16606         * config/vax/vax.md: Adjust sign/zero extend patterns to
16607         handle SUBREGs in operands[1].
16609 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16611         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
16612         of manually swapping.
16613         (expand_vec_perm_interleave2): Likewise.
16615 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
16617         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
16618         reuse bounds created for abnormal ssa names.
16620 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
16622         * config/nvptx/nvptx.md (allocate_stack): Rename to...
16623         (allocate_stack_<mode>): ... this, and add :P on both
16624         match_operand and unspec.
16625         (allocate_stack): New expander.
16627 2015-06-19  Christian Bruel  <christian.bruel@st.com>
16629         PR target/66541
16630         PR target/52144
16631         * config/arm/arm.c (arm_set_current_function): Handle
16632         explicit default options.
16634 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
16636         * config/i386/i386.md (*movsicc_noc_zext): New insn.
16637         (zero-extended cmove with mem peephole2): New pattern.
16638         (cmove with mem peephole2): Merge patterns.
16640 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
16642         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
16644 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
16646         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
16647         * config/mips/mips.md (*madd4<mode>): Ditto.
16648         (*nmadd3<mode>) Ditto.
16649         (*nmadd4<mode>_fastmath): Ditto.
16650         (*nmadd3<mode>_fastmath): Ditto.
16651         (*nmsub4<mode>): Ditto.
16652         (*nmsub3<mode>): Ditto.
16653         (*nmsub4<mode>_fastmath): Ditto.
16654         (*nmsub3<mode>_fastmath): Ditto.
16656 2015-06-18  Michael Matz  <matz@suse.de>
16658         PR middle-end/66253
16659         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
16660         grouped strided stores.
16661         (vectorizable_load): Don't use the DR from first_stmt in
16662         the non-SLP grouped strided case.
16664 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16666         PR target/66569
16667         * function.c (assign_bounds): Add arguments assign_regs,
16668         assign_special, assign_bt.
16669         (assign_parms): For vararg functions handle bounds in BT
16670         and special slots after incoming vararg bounds.
16672 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16674         PR middle-end/66568
16675         * cfgexpand.c (expand_return): Handle missing bounds.
16676         (expand_gimple_stmt_1): Likewise.
16677         * tree-chkp.c (chkp_expand_zero_bounds): New.
16678         * tree-chkp.h (chkp_expand_zero_bounds): New.
16680 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16682         PR middle-end/66567
16683         * ipa-chkp.c (chkp_maybe_create_clone): Require
16684         functions to be instrumentable.
16685         * tree-chkp.c (chkp_replace_function_pointer): Use
16686         chkp_instrumentable_p instead of attribute check.
16688 2015-06-18  Richard Biener  <rguenther@suse.de>
16690         PR tree-optimization/66510
16691         * tree-vect-stmts.c (vectorizable_load): Properly compute the
16692         number of vector loads for SLP permuted loads.
16693         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
16694         check the stride for loop vectorization.
16695         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
16696         vectorization factor.
16697         (vect_analyze_group_access): If the group size is not a power
16698         of two require a epilogue loop.
16699         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
16700         compute and optimizing and alias test pruning after final
16701         vectorization factor computation.
16702         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
16703         vector alignment.
16704         (vect_transform_slp_perm_load): Properly compute the original
16705         number of vector load stmts.
16707 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
16709         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
16710         "unlikely character , in @var" warning.
16712 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
16714         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
16715         (ix86_function_arg_advance): Ditto.
16716         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
16718 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16720         * function.h (struct rtl_data): Remove struct and accessor macros.
16721         * emit-rtl.h (struct rtl_data): Relocate to here.
16722         * Makefile.in (GTFILES): Add emit-rtl.h.
16723         * df-core.c: Include emit-rtl.h.
16724         * genattrtab.c: Likewise.
16725         * genconditions.c: Likewise.
16726         * genpreds.c: Likewise.
16727         * genrecog.c: Likewise.
16728         * regcprop.c: Likewise.
16729         * resource.c: Likewise.
16730         * sched-rgn.c: Likewise.
16731         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16732         * config/i386/winnt.c: Likewise.
16734 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
16736         PR middle-end/66429
16737         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
16738         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
16739         and has_force_vectorize_loops flags from cfun into
16740         child_cfun.
16741         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
16742         if simduid is non-NULL.
16743         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
16744         * passes.def (pass_simduid_cleanup): Add new pass after loop
16745         passes.
16746         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
16747         indirection from htab argument's type.
16748         (shrink_simd_arrays): New function.
16749         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
16750         Don't call adjust_simduid_builtins if there are no loops.
16751         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
16752         (pass_simduid_cleanup::execute): New method.
16753         (make_pass_simduid_cleanup): New function.
16755 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
16757         * tree-core.h (tree_target_option): Make opts field a pointer to a
16758         cl_target_option instead of an instance of the struct.
16759         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
16760         the structure.
16761         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
16762         TARGET_OPTION_NODE.
16763         (copy_node_stat): Allocate and copy struct cl_target_option.
16765 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16767         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
16768         Remove conditional exposure of prototypes.
16769         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
16770         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
16771         definitions in tree.h with functions.
16772         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
16773         anon_aggrname_p.
16774         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
16776 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
16778         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
16779         (*cmp<mode>_signed): ... this.
16780         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
16781         (*cmp<mode>_unsigned): ... this.  Remove %b.
16783 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16785         * coretypes.h: Include input.h and as-a.h.
16786         * rtl.h: Include input.h and as-a.h for generator files.
16787         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
16788         * vec.c: Don't include diagnostic-core.h.
16789         * alias.c: Do not include input.h, line-map.h or is-a.h.
16790         * asan.c: Likewise.
16791         * attribs.c: Likewise.
16792         * auto-inc-dec.c: Likewise.
16793         * auto-profile.c: Likewise.
16794         * bb-reorder.c: Likewise.
16795         * bt-load.c: Likewise.
16796         * builtins.c: Likewise.
16797         * caller-save.c: Likewise.
16798         * calls.c: Likewise.
16799         * ccmp.c: Likewise.
16800         * cfg.c: Likewise.
16801         * cfganal.c: Likewise.
16802         * cfgbuild.c: Likewise.
16803         * cfgcleanup.c: Likewise.
16804         * cfgexpand.c: Likewise.
16805         * cfghooks.c: Likewise.
16806         * cfgloop.c: Likewise.
16807         * cfgloop.h: Likewise.
16808         * cfgloopanal.c: Likewise.
16809         * cfgloopmanip.c: Likewise.
16810         * cfgrtl.c: Likewise.
16811         * cgraph.c: Likewise.
16812         * cgraphbuild.c: Likewise.
16813         * cgraphclones.c: Likewise.
16814         * cgraphunit.c: Likewise.
16815         * cilk-common.c: Likewise.
16816         * combine-stack-adj.c: Likewise.
16817         * combine.c: Likewise.
16818         * compare-elim.c: Likewise.
16819         * convert.c: Likewise.
16820         * coverage.c: Likewise.
16821         * cppbuiltin.c: Likewise.
16822         * cprop.c: Likewise.
16823         * cse.c: Likewise.
16824         * cselib.c: Likewise.
16825         * data-streamer-in.c: Likewise.
16826         * data-streamer-out.c: Likewise.
16827         * data-streamer.c: Likewise.
16828         * dbxout.c: Likewise.
16829         * dce.c: Likewise.
16830         * ddg.c: Likewise.
16831         * debug.c: Likewise.
16832         * df-core.c: Likewise.
16833         * df-problems.c: Likewise.
16834         * df-scan.c: Likewise.
16835         * df.h: Likewise.
16836         * dfp.c: Likewise.
16837         * diagnostic-core.h: Likewise.
16838         * diagnostic.c: Likewise.
16839         * dojump.c: Likewise.
16840         * dominance.c: Likewise.
16841         * domwalk.c: Likewise.
16842         * double-int.c: Likewise.
16843         * dse.c: Likewise.
16844         * dumpfile.c: Likewise.
16845         * dumpfile.h: Likewise.
16846         * dwarf2asm.c: Likewise.
16847         * dwarf2cfi.c: Likewise.
16848         * dwarf2out.c: Likewise.
16849         * emit-rtl.c: Likewise.
16850         * et-forest.c: Likewise.
16851         * except.c: Likewise.
16852         * explow.c: Likewise.
16853         * expmed.c: Likewise.
16854         * expr.c: Likewise.
16855         * final.c: Likewise.
16856         * fixed-value.c: Likewise.
16857         * fold-const.c: Likewise.
16858         * function.c: Likewise.
16859         * fwprop.c: Likewise.
16860         * gcc-plugin.h: Likewise.
16861         * gcse.c: Likewise.
16862         * generic-match-head.c: Likewise.
16863         * ggc-page.c: Likewise.
16864         * gimple-builder.c: Likewise.
16865         * gimple-expr.c: Likewise.
16866         * gimple-fold.c: Likewise.
16867         * gimple-iterator.c: Likewise.
16868         * gimple-low.c: Likewise.
16869         * gimple-match-head.c: Likewise.
16870         * gimple-pretty-print.c: Likewise.
16871         * gimple-ssa-isolate-paths.c: Likewise.
16872         * gimple-ssa-strength-reduction.c: Likewise.
16873         * gimple-streamer-in.c: Likewise.
16874         * gimple-streamer-out.c: Likewise.
16875         * gimple-streamer.h: Likewise.
16876         * gimple-walk.c: Likewise.
16877         * gimple.c: Likewise.
16878         * gimplify-me.c: Likewise.
16879         * gimplify.c: Likewise.
16880         * godump.c: Likewise.
16881         * graph.c: Likewise.
16882         * graphite-blocking.c: Likewise.
16883         * graphite-dependences.c: Likewise.
16884         * graphite-interchange.c: Likewise.
16885         * graphite-isl-ast-to-gimple.c: Likewise.
16886         * graphite-optimize-isl.c: Likewise.
16887         * graphite-poly.c: Likewise.
16888         * graphite-scop-detection.c: Likewise.
16889         * graphite-sese-to-poly.c: Likewise.
16890         * graphite.c: Likewise.
16891         * haifa-sched.c: Likewise.
16892         * hw-doloop.c: Likewise.
16893         * ifcvt.c: Likewise.
16894         * init-regs.c: Likewise.
16895         * input.c: Likewise.
16896         * internal-fn.c: Likewise.
16897         * ipa-chkp.c: Likewise.
16898         * ipa-comdats.c: Likewise.
16899         * ipa-cp.c: Likewise.
16900         * ipa-devirt.c: Likewise.
16901         * ipa-icf-gimple.c: Likewise.
16902         * ipa-icf.c: Likewise.
16903         * ipa-inline-analysis.c: Likewise.
16904         * ipa-inline-transform.c: Likewise.
16905         * ipa-inline.c: Likewise.
16906         * ipa-polymorphic-call.c: Likewise.
16907         * ipa-profile.c: Likewise.
16908         * ipa-prop.c: Likewise.
16909         * ipa-pure-const.c: Likewise.
16910         * ipa-ref.c: Likewise.
16911         * ipa-reference.c: Likewise.
16912         * ipa-split.c: Likewise.
16913         * ipa-utils.c: Likewise.
16914         * ipa-visibility.c: Likewise.
16915         * ipa.c: Likewise.
16916         * ira-build.c: Likewise.
16917         * ira-color.c: Likewise.
16918         * ira-conflicts.c: Likewise.
16919         * ira-costs.c: Likewise.
16920         * ira-emit.c: Likewise.
16921         * ira-lives.c: Likewise.
16922         * ira.c: Likewise.
16923         * jump.c: Likewise.
16924         * langhooks.c: Likewise.
16925         * lcm.c: Likewise.
16926         * loop-doloop.c: Likewise.
16927         * loop-init.c: Likewise.
16928         * loop-invariant.c: Likewise.
16929         * loop-iv.c: Likewise.
16930         * loop-unroll.c: Likewise.
16931         * lower-subreg.c: Likewise.
16932         * lra-assigns.c: Likewise.
16933         * lra-coalesce.c: Likewise.
16934         * lra-constraints.c: Likewise.
16935         * lra-eliminations.c: Likewise.
16936         * lra-lives.c: Likewise.
16937         * lra-remat.c: Likewise.
16938         * lra-spills.c: Likewise.
16939         * lra.c: Likewise.
16940         * lto-cgraph.c: Likewise.
16941         * lto-compress.c: Likewise.
16942         * lto-opts.c: Likewise.
16943         * lto-section-in.c: Likewise.
16944         * lto-section-out.c: Likewise.
16945         * lto-streamer-in.c: Likewise.
16946         * lto-streamer-out.c: Likewise.
16947         * lto-streamer.c: Likewise.
16948         * mcf.c: Likewise.
16949         * mode-switching.c: Likewise.
16950         * modulo-sched.c: Likewise.
16951         * omega.c: Likewise.
16952         * omp-low.c: Likewise.
16953         * optabs.c: Likewise.
16954         * opts-global.c: Likewise.
16955         * opts.h: Likewise.
16956         * passes.c: Likewise.
16957         * plugin.c: Likewise.
16958         * postreload-gcse.c: Likewise.
16959         * postreload.c: Likewise.
16960         * predict.c: Likewise.
16961         * pretty-print.h: Likewise.
16962         * print-rtl.c: Likewise.
16963         * print-tree.c: Likewise.
16964         * profile.c: Likewise.
16965         * real.c: Likewise.
16966         * realmpfr.c: Likewise.
16967         * recog.c: Likewise.
16968         * ree.c: Likewise.
16969         * reg-stack.c: Likewise.
16970         * regcprop.c: Likewise.
16971         * reginfo.c: Likewise.
16972         * regrename.c: Likewise.
16973         * regstat.c: Likewise.
16974         * reload.c: Likewise.
16975         * reload1.c: Likewise.
16976         * reorg.c: Likewise.
16977         * resource.c: Likewise.
16978         * rtl-chkp.c: Likewise.
16979         * rtl-error.c: Likewise.
16980         * rtlanal.c: Likewise.
16981         * rtlhooks.c: Likewise.
16982         * sanopt.c: Likewise.
16983         * sched-deps.c: Likewise.
16984         * sched-ebb.c: Likewise.
16985         * sched-rgn.c: Likewise.
16986         * sched-vis.c: Likewise.
16987         * sdbout.c: Likewise.
16988         * sel-sched-dump.c: Likewise.
16989         * sel-sched-ir.c: Likewise.
16990         * sel-sched.c: Likewise.
16991         * sese.c: Likewise.
16992         * shrink-wrap.c: Likewise.
16993         * simplify-rtx.c: Likewise.
16994         * stack-ptr-mod.c: Likewise.
16995         * statistics.c: Likewise.
16996         * stmt.c: Likewise.
16997         * stor-layout.c: Likewise.
16998         * store-motion.c: Likewise.
16999         * streamer-hooks.c: Likewise.
17000         * stringpool.c: Likewise.
17001         * symtab.c: Likewise.
17002         * target-globals.c: Likewise.
17003         * targhooks.c: Likewise.
17004         * toplev.c: Likewise.
17005         * tracer.c: Likewise.
17006         * trans-mem.c: Likewise.
17007         * tree-affine.c: Likewise.
17008         * tree-browser.c: Likewise.
17009         * tree-call-cdce.c: Likewise.
17010         * tree-cfg.c: Likewise.
17011         * tree-cfgcleanup.c: Likewise.
17012         * tree-chkp-opt.c: Likewise.
17013         * tree-chkp.c: Likewise.
17014         * tree-chrec.c: Likewise.
17015         * tree-complex.c: Likewise.
17016         * tree-data-ref.c: Likewise.
17017         * tree-dfa.c: Likewise.
17018         * tree-diagnostic.c: Likewise.
17019         * tree-dump.c: Likewise.
17020         * tree-eh.c: Likewise.
17021         * tree-emutls.c: Likewise.
17022         * tree-if-conv.c: Likewise.
17023         * tree-inline.c: Likewise.
17024         * tree-into-ssa.c: Likewise.
17025         * tree-iterator.c: Likewise.
17026         * tree-loop-distribution.c: Likewise.
17027         * tree-nested.c: Likewise.
17028         * tree-nrv.c: Likewise.
17029         * tree-object-size.c: Likewise.
17030         * tree-outof-ssa.c: Likewise.
17031         * tree-parloops.c: Likewise.
17032         * tree-phinodes.c: Likewise.
17033         * tree-predcom.c: Likewise.
17034         * tree-pretty-print.c: Likewise.
17035         * tree-profile.c: Likewise.
17036         * tree-scalar-evolution.c: Likewise.
17037         * tree-sra.c: Likewise.
17038         * tree-ssa-address.c: Likewise.
17039         * tree-ssa-alias.c: Likewise.
17040         * tree-ssa-ccp.c: Likewise.
17041         * tree-ssa-coalesce.c: Likewise.
17042         * tree-ssa-copy.c: Likewise.
17043         * tree-ssa-copyrename.c: Likewise.
17044         * tree-ssa-dce.c: Likewise.
17045         * tree-ssa-dom.c: Likewise.
17046         * tree-ssa-dse.c: Likewise.
17047         * tree-ssa-forwprop.c: Likewise.
17048         * tree-ssa-ifcombine.c: Likewise.
17049         * tree-ssa-live.c: Likewise.
17050         * tree-ssa-loop-ch.c: Likewise.
17051         * tree-ssa-loop-im.c: Likewise.
17052         * tree-ssa-loop-ivcanon.c: Likewise.
17053         * tree-ssa-loop-ivopts.c: Likewise.
17054         * tree-ssa-loop-manip.c: Likewise.
17055         * tree-ssa-loop-niter.c: Likewise.
17056         * tree-ssa-loop-prefetch.c: Likewise.
17057         * tree-ssa-loop-unswitch.c: Likewise.
17058         * tree-ssa-loop.c: Likewise.
17059         * tree-ssa-math-opts.c: Likewise.
17060         * tree-ssa-operands.c: Likewise.
17061         * tree-ssa-phiopt.c: Likewise.
17062         * tree-ssa-phiprop.c: Likewise.
17063         * tree-ssa-pre.c: Likewise.
17064         * tree-ssa-propagate.c: Likewise.
17065         * tree-ssa-reassoc.c: Likewise.
17066         * tree-ssa-sccvn.c: Likewise.
17067         * tree-ssa-scopedtables.c: Likewise.
17068         * tree-ssa-sink.c: Likewise.
17069         * tree-ssa-strlen.c: Likewise.
17070         * tree-ssa-structalias.c: Likewise.
17071         * tree-ssa-tail-merge.c: Likewise.
17072         * tree-ssa-ter.c: Likewise.
17073         * tree-ssa-threadedge.c: Likewise.
17074         * tree-ssa-threadupdate.c: Likewise.
17075         * tree-ssa-uncprop.c: Likewise.
17076         * tree-ssa-uninit.c: Likewise.
17077         * tree-ssa.c: Likewise.
17078         * tree-ssanames.c: Likewise.
17079         * tree-stdarg.c: Likewise.
17080         * tree-streamer-in.c: Likewise.
17081         * tree-streamer-out.c: Likewise.
17082         * tree-streamer.c: Likewise.
17083         * tree-switch-conversion.c: Likewise.
17084         * tree-tailcall.c: Likewise.
17085         * tree-vect-data-refs.c: Likewise.
17086         * tree-vect-generic.c: Likewise.
17087         * tree-vect-loop-manip.c: Likewise.
17088         * tree-vect-loop.c: Likewise.
17089         * tree-vect-patterns.c: Likewise.
17090         * tree-vect-slp.c: Likewise.
17091         * tree-vect-stmts.c: Likewise.
17092         * tree-vectorizer.c: Likewise.
17093         * tree-vrp.c: Likewise.
17094         * tree.c: Likewise.
17095         * tsan.c: Likewise.
17096         * ubsan.c: Likewise.
17097         * valtrack.c: Likewise.
17098         * value-prof.c: Likewise.
17099         * var-tracking.c: Likewise.
17100         * varasm.c: Likewise.
17101         * varpool.c: Likewise.
17102         * vmsdbgout.c: Likewise.
17103         * vtable-verify.c: Likewise.
17104         * web.c: Likewise.
17105         * wide-int.cc: Likewise.
17106         * xcoffout.c: Likewise.
17107         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
17108         * common/common-targhooks.c: Likewise.
17109         * config/aarch64/aarch64-builtins.c: Likewise.
17110         * config/aarch64/aarch64.c: Likewise.
17111         * config/alpha/alpha.c: Likewise.
17112         * config/arc/arc.c: Likewise.
17113         * config/arm/aarch-common.c: Likewise.
17114         * config/arm/arm-builtins.c: Likewise.
17115         * config/arm/arm-c.c: Likewise.
17116         * config/arm/arm.c: Likewise.
17117         * config/avr/avr-c.c: Likewise.
17118         * config/avr/avr-log.c: Likewise.
17119         * config/avr/avr.c: Likewise.
17120         * config/bfin/bfin.c: Likewise.
17121         * config/c6x/c6x.c: Likewise.
17122         * config/cr16/cr16.c: Likewise.
17123         * config/cris/cris.c: Likewise.
17124         * config/darwin-c.c: Likewise.
17125         * config/darwin.c: Likewise.
17126         * config/default-c.c: Likewise.
17127         * config/epiphany/epiphany.c: Likewise.
17128         * config/epiphany/mode-switch-use.c: Likewise.
17129         * config/epiphany/resolve-sw-modes.c: Likewise.
17130         * config/fr30/fr30.c: Likewise.
17131         * config/frv/frv.c: Likewise.
17132         * config/ft32/ft32.c: Likewise.
17133         * config/glibc-c.c: Likewise.
17134         * config/h8300/h8300.c: Likewise.
17135         * config/i386/i386-c.c: Likewise.
17136         * config/i386/i386.c: Likewise.
17137         * config/i386/msformat-c.c: Likewise.
17138         * config/i386/winnt-cxx.c: Likewise.
17139         * config/i386/winnt-stubs.c: Likewise.
17140         * config/i386/winnt.c: Likewise.
17141         * config/ia64/ia64-c.c: Likewise.
17142         * config/ia64/ia64.c: Likewise.
17143         * config/iq2000/iq2000.c: Likewise.
17144         * config/lm32/lm32.c: Likewise.
17145         * config/m32c/m32c-pragma.c: Likewise.
17146         * config/m32c/m32c.c: Likewise.
17147         * config/m32r/m32r.c: Likewise.
17148         * config/m68k/m68k.c: Likewise.
17149         * config/mcore/mcore.c: Likewise.
17150         * config/mep/mep-pragma.c: Likewise.
17151         * config/mep/mep.c: Likewise.
17152         * config/microblaze/microblaze-c.c: Likewise.
17153         * config/microblaze/microblaze.c: Likewise.
17154         * config/mips/mips.c: Likewise.
17155         * config/mmix/mmix.c: Likewise.
17156         * config/mn10300/mn10300.c: Likewise.
17157         * config/moxie/moxie.c: Likewise.
17158         * config/msp430/msp430-c.c: Likewise.
17159         * config/msp430/msp430.c: Likewise.
17160         * config/nds32/nds32-cost.c: Likewise.
17161         * config/nds32/nds32-fp-as-gp.c: Likewise.
17162         * config/nds32/nds32-intrinsic.c: Likewise.
17163         * config/nds32/nds32-isr.c: Likewise.
17164         * config/nds32/nds32-md-auxiliary.c: Likewise.
17165         * config/nds32/nds32-memory-manipulation.c: Likewise.
17166         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17167         * config/nds32/nds32-predicates.c: Likewise.
17168         * config/nds32/nds32.c: Likewise.
17169         * config/nios2/nios2.c: Likewise.
17170         * config/nvptx/nvptx.c: Likewise.
17171         * config/pa/pa.c: Likewise.
17172         * config/pdp11/pdp11.c: Likewise.
17173         * config/rl78/rl78-c.c: Likewise.
17174         * config/rl78/rl78.c: Likewise.
17175         * config/rs6000/rs6000-c.c: Likewise.
17176         * config/rs6000/rs6000.c: Likewise.
17177         * config/rx/rx.c: Likewise.
17178         * config/s390/s390-c.c: Likewise.
17179         * config/s390/s390.c: Likewise.
17180         * config/sh/sh-c.c: Likewise.
17181         * config/sh/sh-mem.cc: Likewise.
17182         * config/sh/sh.c: Likewise.
17183         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17184         * config/sh/sh_treg_combine.cc: Likewise.
17185         * config/sol2-c.c: Likewise.
17186         * config/sol2-cxx.c: Likewise.
17187         * config/sol2-stubs.c: Likewise.
17188         * config/sol2.c: Likewise.
17189         * config/sparc/sparc-c.c: Likewise.
17190         * config/sparc/sparc.c: Likewise.
17191         * config/spu/spu-c.c: Likewise.
17192         * config/spu/spu.c: Likewise.
17193         * config/stormy16/stormy16.c: Likewise.
17194         * config/tilegx/mul-tables.c: Likewise.
17195         * config/tilegx/tilegx-c.c: Likewise.
17196         * config/tilegx/tilegx.c: Likewise.
17197         * config/tilepro/mul-tables.c: Likewise.
17198         * config/tilepro/tilepro-c.c: Likewise.
17199         * config/tilepro/tilepro.c: Likewise.
17200         * config/v850/v850-c.c: Likewise.
17201         * config/v850/v850.c: Likewise.
17202         * config/vax/vax.c: Likewise.
17203         * config/visium/visium.c: Likewise.
17204         * config/vms/vms-c.c: Likewise.
17205         * config/vms/vms.c: Likewise.
17206         * config/vxworks.c: Likewise.
17207         * config/winnt-c.c: Likewise.
17208         * config/xtensa/xtensa.c: Likewise.
17210 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
17212         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
17213         function.
17214         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
17216 2015-06-17  Richard Biener  <rguenther@suse.de>
17218         PR tree-optimization/66251
17219         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
17220         stmts for SLP strided stores.
17222         Revert
17223         2015-05-22  Richard Biener  <rguenther@suse.de>
17225         PR tree-optimization/66251
17226         * tree-vect-stmts.c (vectorizable_conversion): Properly
17227         set STMT_VINFO_VEC_STMT even for the SLP case.
17229         2015-05-26  Michael Matz  <matz@suse.de>
17231         PR middle-end/66251
17232         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
17233         STMT_VINFO_VEC_STMT, also with SLP.
17235 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
17237         PR target/56766
17238         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
17239         (*avx_addsubv4df3_1s): Ditto.
17240         (*sse3_addsubv2df3_1): Ditto.
17241         (*sse3_addsubv2df3_1s): Ditto.
17242         (*avx_addsubv8sf3_1): Ditto.
17243         (*avx_addsubv8sf3_1s): Ditto.
17244         (*sse3_addsubv4sf3_1): Ditto.
17245         (*sse3_addsubv4sf3_1s): Ditto.
17247 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
17249         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
17250         (SYSROOT_SUFFIX_SPEC): Update.
17251         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
17252         (STARTFILE_PREFIX_SPEC): Update.
17253         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
17254         (MULTILIB_REQUIRED): New.
17255         (MULTILIB_OSDIRNAMES): New.
17256         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
17257         (MULTILIB_REQUIRED): New.
17258         (MULTILIB_OSDIRNAMES): New.
17260 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
17262         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
17263         * config/aarch64/aarch64-options-extensions.def: Update "fP",
17264         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
17265         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
17266         (AARCH64_FL_PAN): New.
17267         (AARCH64_FL_LOR): New.
17268         (AARCH64_FL_RDMA): New.
17269         (AARCH64_FL_FOR_ARCH8_1): New.
17270         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
17271         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
17273 2015-06-16  Martin Liska  <mliska@suse.cz>
17275         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
17276         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
17277         guard.
17279 2015-06-16  Richard Biener  <rguenther@suse.de>
17281         * tree-vect-stmts.c (vectorizable_store): Adjust.
17282         (vectorizable_load): Likewise.
17283         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
17284         Simplify.
17285         (vect_create_data_ref_ptr): Likewise.
17286         (bump_vector_ptr): Adjust.
17288 2015-06-16  Richard Biener  <rguenther@suse.de>
17290         * tree-vect-stmts.c (vectorizable_load): Properly start loads
17291         with the first element if this is grouped loads.
17293 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
17295         * config/arm/arm-protos.h (struct tune_params): Rename
17296         log_op_non_sc to log_op_non_short_circuit, and rename enum
17297         values to expand SC to SHORT_CIRCUIT.
17298         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
17299         to LOG_OP_NON_SHORT_CIRCUIT.
17300         (arm_fastmul_tune):Likewise
17301         (arm_strongarm_tune): Likewise.
17302         (arm_xscale_tune): Likewise.
17303         (arm_9e_tune): Likewise.
17304         (arm_marvell_pj4_tune): Likewise.
17305         (arm_v6t2_tune): Likewise.
17306         (arm_cortex_tune): Likewise.
17307         (arm_cortex_a8_tune): Likewise.
17308         (arm_cortex_a7_tune): Likewise.
17309         (arm_cortex_a15_tune): Likewise.
17310         (arm_cortex_a53_tune): Likewise.
17311         (arm_cortex_a57_tune): Likewise.
17312         (arm_xgene1_tune): Likewise.
17313         (arm_cortex_a5_tune): Likewise.
17314         (arm_cortex_a9_tune): Likewise.
17315         (arm_cortex_a12_tune): Likewise.
17316         (arm_v7m_tune): Likewise.
17317         (arm_cortex_m7_tune): Likewise.
17318         (arm_v6m_tune): Likewise.
17319         (arm_fa726te_tune): Likewise.
17321 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
17323         * altivec.md: Delete UNSPEC_VMLADDUHM.
17324         (mulv4si3_p8): New pattern.
17325         (mulv4si3): Use it for POWER8.
17326         (mulv8hi3): Use vmladduhm with zero addend.
17327         (altivec_vmladduhm): Descriptive RTL.
17329 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
17331         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
17332         to use neon_move instead of mov_imm.
17333         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
17334         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
17336         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
17337         aarch64_float_const_zero_rtx_p check before TFmode check.
17338         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
17339         an fp zero.
17340         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
17341         code and attributes to match.  Change condition from register_operand
17342         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
17343         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
17344         to store2.
17346 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
17348         PR debug/66535
17349         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
17350         there is no parent.
17352 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
17354         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
17355         HOST_WIDE_INT parameter.
17357 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
17359         PR ipa/66181
17360         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
17361         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
17362         TYPE_NO_FORCE_BLK.
17363         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
17365 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
17367         * rtl.h (classify_insn): Declare.
17368         * emit-rtl.c (classify_insn): Move to...
17369         * rtl.c: ...here and add generator support.
17370         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
17371         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
17372         * genemit.c (gen_emit_seq): New function.
17373         (gen_expand, gen_split): Use it.
17375 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
17377         * tree.c (make_vector_stat): Fix comment to state that the
17378         function returns a VECTOR_CST.
17380 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
17382         * gensupport.h (add_implicit_parallel): Declare.
17383         * genrecog.c (add_implicit_parallel): Move to...
17384         * gensupport.c (add_implicit_parallel): ...here.
17385         (process_one_cond_exec): Use it.
17386         * genemit.c (gen_insn): Likewise.
17388 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
17390         PR bootstrap/66448
17391         * passes.c (rest_of_decl_compilation): Do not register globals for
17392         early debug if they are declared in built-ins.
17394 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
17396         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
17398 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17400         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
17401         manually swapping.
17402         (noce_try_cmove_arith): Likewise.
17403         (noce_get_alt_condition): Likewise.
17405 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
17407         * common/config/i386/i386-common.c
17408         (OPTION_MASK_ISA_MWAITX_SET): New.
17409         (ix86_handle_option): Handle mwaitx.
17410         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
17411         (x86_64-*-*): Likewise.
17412         * config/i386/mwaitxintrin.h: New header.
17413         * config/i386/cpuid.h (bit_MWAITX):  Define.
17414         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17415         MWAITX support.
17416         * config/i386/i386.opt (mwaitx): New.
17417         * config/i386/i386-builtin-types.def
17418         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
17419         * config/i386/i386-c.c: Define __MWAITX__ if needed.
17420         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
17421         (PTA_MWAITX): New.
17422         (ix86_option_override_internal): Handle new option.
17423         (processor_alias_table): Added PTA_MWAITX.
17424         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
17425         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
17426         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
17427         IX86_BUILTIN_MONITORX  built-ins.
17428         * config/i386/i386.h (TARGET_MWAITX): New.
17429         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
17430         UNSPEC_MONITORX.
17431         (mwaitx):  New pattern.
17432         (monitorx_<mode>): New pattern.
17433         * config/i386/x86intrin.h: Include mwaitxintrin.h.
17434         * doc/extend.texi: Document monitorx and mwaitx builtins.
17435         * doc/invoke.texi: Document -mmwaitx option.
17437 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
17439         * emit-rtl.c (need_atomic_barrier_p): Mask model with
17440         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
17442 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
17444         * dbxout.c (xcoff_debug_hooks): Provide a function for
17445         register_main_translation_unit hook.
17447 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
17449         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
17450         variants cases from switch.
17451         (rs6000_post_atomic_barrier): Same.
17452         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
17453         (rs6000_expand_atomic_exchange): Same.
17454         (rs6000_expand_atomic_op): Same.
17455         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
17456         SYNC variants cases from switch.
17457         (atomic_load): Same.
17458         (atomic_store): Same.
17460 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
17462         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
17463         CONST_INT for goto.
17465 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
17467         PR bootstrap/66448
17468         * dwarf2out.c (check_die): Check for common duplicate attributes.
17469         (add_location_or_const_value_attribute): Do not add duplicate
17470         attributes.
17471         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
17472         time around.
17473         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
17474         (gen_type_die_with_usage): Call check_die.
17475         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
17477 2015-06-11  Jason Merrill  <jason@redhat.com>
17479         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
17480         dies.
17482 2015-06-11  Marek Polacek  <polacek@redhat.com>
17484         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
17486 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
17488         PR bootstrap/66252
17489         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
17490         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
17491         (*addx_extend_sp32): Fix pasto.
17492         (*subx_extend): Rename into...
17493         (*subx_extend_sp32): ...this.
17494         (*adddi3_extend_sp32): Add earlyclobber.
17495         (*subdi3_insn_sp32): Likewise.
17496         (*subdi3_extend_sp32): Likewise.
17497         (*and_not_di_sp32): Likewise.
17498         (*or_not_di_sp32): Likewise.
17499         (*xor_not_di_sp32): Likewise.
17500         (*negdi2_sp32): Likewise.
17501         (*one_cmpldi2_sp32): Likewise.
17503 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
17505         * debug.h (struct gcc_debug_hooks): Add a
17506         register_main_translation_unit hook.
17507         * debug.c (do_nothing_debug_hooks): Provide a function for this
17508         new hook.
17509         * dbxout.c (dbx_debug_hooks): Likewise.
17510         * sdbout.c (sdb_debug_hooks): Likewise.
17511         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17512         * dwarf2out.c (main_translation_unit): New global variable.
17513         (dwarf2out_register_main_translation_unit): New function
17514         implementing the new hook.
17515         (dwarf2_debug_hooks): Assign
17516         dwarf2out_register_main_translation_unit to this new hook.
17517         (dwarf2out_init): Associate any main translation unit to
17518         comp_unit_die ().
17520 2015-06-11  Marek Polacek  <polacek@redhat.com>
17522         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
17524 2015-06-11  Marek Polacek  <polacek@redhat.com>
17526         * match.pd: Use single_use throughout.
17528 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17530         * config/arm/arm.c (arm_option_params_internal): When optimising
17531         for speed set max_insns_skipped when arm_restrict_it.
17533 2015-06-11  Christian Bruel  <christian.bruel@st.com>
17535         PR target/52144
17536         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
17537          macros in ...
17538         (arm_cpu_builtins): New function.
17539         (arm_pragma_target_parse): Call arm_cpu_builtins.
17540         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
17541         (arm_register_target_pragmas): Likewise.
17542         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
17543          Call arm_register_target_pragmas.
17544         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
17545         (arm_pragma_target_parse): Likewise.
17547 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
17549         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
17550         of the second operand.
17552 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
17554         PR target/66473
17555         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
17556         to prepare mask operand for AVX512 modes.
17558 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
17560         PR target/66474
17561         * doc/md.texi (Machine Constraints): Document that on the PowerPC
17562         if you use a constraint that targets a VSX register, you must use
17563         %x<n> in the template.
17565 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
17567         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
17568         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
17569         (define_insn "trap"): New definition.
17571 2015-06-10  Richard Biener  <rguenther@suse.de>
17573         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
17574         out from ...
17575         (vect_supported_load_permutation_p): ... here.  Handle
17576         supportable permutations in reductions.
17577         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
17578         for vectorizing strided group loads.
17580 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
17582         PR target/66470
17583         * config/i386/i386.c (ix86_split_long_move): For collisions
17584         involving direct tls segment refs, move the UNSPEC_TP possibly
17585         wrapped in ZERO_EXTEND out of the address for lea, to each of
17586         the memory loads.
17588 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17590         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
17591         dmb sy. Adjust tabs.
17593 2015-06-10  Tom de Vries  <tom@codesourcery.com>
17595         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
17597 2015-06-10  Martin Liska  <mliska@suse.cz>
17599         PR bootstrap/66471
17600         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
17601         all enum values in mem_alloc_origin.
17602         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
17603         name.
17604         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
17605         * bitmap.c (bitmap_register): Likewise.
17606         (dump_bitmap_statistics): Likewise.
17607         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
17608         (ggc_record_overhead): Likewise.
17609         * hash-map.h: Likewise.
17610         * hash-set.h: Likewise.
17611         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
17612         * hash-table.h: Likewise.
17613         * vec.c (vec_prefix::register_overhead): Likewise.
17614         (vec_prefix::release_overhead): Likewise.
17615         (dump_vec_loc_statistics): Likewise.
17617 2015-06-09  Christian Bruel  <christian.bruel@st.com>
17619         PR target/52144
17620         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
17621         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
17622         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
17623         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
17624         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
17625         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
17626         (arm_valid_target_attribute_p): Likewise.
17627         (arm_set_current_function, arm_can_inline_p): Likewise.
17628         (arm_valid_target_attribute_rec): Likewise.
17629         (arm_previous_fndecl): New variable.
17630         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17631         (TARGET_CAN_INLINE_P): Define.
17632         (arm_asm_trampoline_template): Emit mode.
17633         (arm_file_start): Don't set unified syntax.
17634         (arm_declare_function_name): Set unified syntax and mode.
17635         (arm_option_override): Init target_option_default_node.
17636         and target_option_current_node.
17637         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
17638         (*call_symbol): Likewise.
17639         * doc/extend.texi: Document ARM/Thumb target attribute.
17640         * doc/invoke.texi: Likewise.
17642 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17644         Revert:
17645         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17646         PR rtl-optimization/64164
17647         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17648         * tree-ssa-copyrename.c: Removed.
17649         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17650         -ftree-coalesce-vars.
17651         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17652         * common.opt (ftree-copyrename): Ignore.
17653         (ftree-coalesce-inlined-vars): Likewise.
17654         * doc/invoke.texi: Remove the ignored options above.
17655         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17656         * tree-ssa-coalesce.h: ... here.
17657         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17658         headers required by it.
17659         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17660         across variables when flag_tree_coalesce_vars.  Check register
17661         use and promoted modes to allow coalescing.  Moved to
17662         tree-ssa-coalesce.c.
17663         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17664         with its member functions to tree-ssa-coalesce.c.
17665         (var_map_base_init): Likewise.  Renamed to
17666         compute_samebase_partition_bases.
17667         (partition_view_normal): Drop want_bases parameter.
17668         (partition_view_bitmap): Likewise.
17669         * tree-ssa-live.h: Adjust declarations.
17670         * tree-ssa-coalesce.c: Include explow.h.
17671         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17672         default defs at the entry point.
17673         (dump_part_var_map): New.
17674         (compute_optimized_partition_bases): New, called by...
17675         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17676         of compute_samebase_partition_bases.  Adjust.
17677         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17678         * cfgexpand.c (leader_merge): New.
17679         (get_rtl_for_parm_ssa_default_def): New.
17680         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17681         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17682         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17683         redundant MEM attr setting.
17684         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17685         from...
17686         (expand_one_stack_var): ... this.  New wrapper to check and
17687         skip already expanded SSA partitions.
17688         (record_alignment_for_reg_var): New, factored out of...
17689         (expand_one_var): ... this.
17690         (expand_one_ssa_partition): New.
17691         (adjust_one_expanded_partition_var): New.
17692         (expand_one_register_var): Check and skip already expanded SSA
17693         partitions.
17694         (expand_used_vars): Don't create DECLs for anonymous SSA
17695         names.  Expand all SSA partitions, then adjust all SSA names.
17696         (pass::execute): Replace the loops that set
17697         SA.partition_to_pseudo from partition leaders and cleared
17698         DECL_RTL for multi-location variables, and that which used to
17699         rename vars and set attrs, with one that clears DECL_RTL and
17700         checks that PARMs and RESULTs default_defs match DECL_RTL.
17701         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17702         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17703         * explow.c (promote_ssa_mode): New.
17704         * explow.h (promote_ssa_mode): Declare.
17705         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17706         * function.c: Include cfgexpand.h.
17707         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17708         (use_register_for_parm_decl): Wrapper for the above to
17709         special-case the result_ptr.
17710         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17711         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17712         multiple locations.
17713         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17714         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17715         (assign_parm_setup_block): Prefer SSA-assigned location.
17716         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17717         if stack_parm is NULL.
17718         (assign_parm_setup_stack): Prefer SSA-assigned location.
17719         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17720         rtl before testing for pointer bounds.  Special-case result_ptr.
17721         (expand_function_start): Maybe reset DECL_RTL of result.
17722         Prefer SSA-assigned location for result and static chain.
17723         Factor out DECL_RESULT and SET_DECL_RTL.
17724         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17725         anonymous SSA names.  Use promote_ssa_mode.
17726         (get_temp_reg): Likewise.
17727         (remove_ssa_form): Adjust.
17728         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17729         and get its reg_usage for reg invalidation.
17730         (compute_bb_dataflow): Pass it insn.
17731         (emit_notes_in_bb): Likewise.
17732         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17733         fail assert on conversion between unsigned types.
17735 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17737         PR tree-optimization/65460
17738         * omp-low.c (expand_omp_target): Set parallelized_function on
17739         cgraph_node for child_fn.
17741 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17743         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
17744         parallelized_function before add_new_function.
17746 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
17748         * gcc-plugin.h: Move decls to plugin.h and include it.
17749         * plugin.h: Relocate decls from gcc-plugin.h
17750         * ggc-page.c: Include required header files.
17751         * passes.c: Likewise.
17752         * cgraphunit.c: Likewise.
17754 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17756         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
17758 2015-06-09  Jason Merrill  <jason@redhat.com>
17760         PR bootstrap/66448
17761         * toplev.c (check_global_declaration): Don't warn about a clone.
17763 2015-06-09  Marek Polacek  <polacek@redhat.com>
17765         PR tree-optimization/66299
17766         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
17767         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
17768         patterns.
17770 2015-06-09  Richard Biener  <rguenther@suse.de>
17772         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
17773         (vect_analyze_slp_instance): Instead do not falsely drop
17774         load permutations.
17776 2015-06-09  Richard Biener  <rguenther@suse.de>
17778         PR middle-end/66423
17779         * match.pd: Handle A % (unsigned)(1 << B).
17781 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
17783         * varasm.c (output_object_block_htab): Remove.
17784         (output_object_block_compare): New.
17785         (output_object_blocks): Sort named object_blocks before outputting
17786         them.
17788 2015-06-09  Richard Biener  <rguenther@suse.de>
17790         PR tree-optimization/66419
17791         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
17792         consider GROUP_GAP when detecting a perfect subchain.
17794 2015-06-09  Nick Clifton  <nickc@redhat.com>
17796         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
17797         place read only data in the .frodata section.
17799 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
17801         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
17802         (atomic_store<mode>): Likewise.
17804 2015-06-09  Richard Biener  <rguenther@suse.de>
17806         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
17808 2015-06-09  Richard Biener  <rguenther@suse.de>
17810         PR middle-end/66413
17811         * tree-inline.c (insert_init_debug_bind): Unshare value.
17813 2015-06-09  Richard Biener  <rguenther@suse.de>
17815         PR tree-optimization/66396
17816         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
17817         Rename virtual operands.
17819 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17821         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
17822         always return false.
17824 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17826         PR rtl-optimization/64164
17827         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17828         * tree-ssa-copyrename.c: Removed.
17829         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17830         -ftree-coalesce-vars.
17831         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17832         * common.opt (ftree-copyrename): Ignore.
17833         (ftree-coalesce-inlined-vars): Likewise.
17834         * doc/invoke.texi: Remove the ignored options above.
17835         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17836         * tree-ssa-coalesce.h: ... here.
17837         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17838         headers required by it.
17839         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17840         across variables when flag_tree_coalesce_vars.  Check register
17841         use and promoted modes to allow coalescing.  Moved to
17842         tree-ssa-coalesce.c.
17843         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17844         with its member functions to tree-ssa-coalesce.c.
17845         (var_map_base_init): Likewise.  Renamed to
17846         compute_samebase_partition_bases.
17847         (partition_view_normal): Drop want_bases parameter.
17848         (partition_view_bitmap): Likewise.
17849         * tree-ssa-live.h: Adjust declarations.
17850         * tree-ssa-coalesce.c: Include explow.h.
17851         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17852         default defs at the entry point.
17853         (dump_part_var_map): New.
17854         (compute_optimized_partition_bases): New, called by...
17855         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17856         of compute_samebase_partition_bases.  Adjust.
17857         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17858         * cfgexpand.c (leader_merge): New.
17859         (get_rtl_for_parm_ssa_default_def): New.
17860         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17861         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17862         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17863         redundant MEM attr setting.
17864         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17865         from...
17866         (expand_one_stack_var): ... this.  New wrapper to check and
17867         skip already expanded SSA partitions.
17868         (record_alignment_for_reg_var): New, factored out of...
17869         (expand_one_var): ... this.
17870         (expand_one_ssa_partition): New.
17871         (adjust_one_expanded_partition_var): New.
17872         (expand_one_register_var): Check and skip already expanded SSA
17873         partitions.
17874         (expand_used_vars): Don't create DECLs for anonymous SSA
17875         names.  Expand all SSA partitions, then adjust all SSA names.
17876         (pass::execute): Replace the loops that set
17877         SA.partition_to_pseudo from partition leaders and cleared
17878         DECL_RTL for multi-location variables, and that which used to
17879         rename vars and set attrs, with one that clears DECL_RTL and
17880         checks that PARMs and RESULTs default_defs match DECL_RTL.
17881         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17882         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17883         * explow.c (promote_ssa_mode): New.
17884         * explow.h (promote_ssa_mode): Declare.
17885         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17886         * function.c: Include cfgexpand.h.
17887         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17888         (use_register_for_parm_decl): Wrapper for the above to
17889         special-case the result_ptr.
17890         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17891         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17892         multiple locations.
17893         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17894         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17895         (assign_parm_setup_block): Prefer SSA-assigned location.
17896         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17897         if stack_parm is NULL.
17898         (assign_parm_setup_stack): Prefer SSA-assigned location.
17899         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17900         rtl before testing for pointer bounds.  Special-case result_ptr.
17901         (expand_function_start): Maybe reset DECL_RTL of result.
17902         Prefer SSA-assigned location for result and static chain.
17903         Factor out DECL_RESULT and SET_DECL_RTL.
17904         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17905         anonymous SSA names.  Use promote_ssa_mode.
17906         (get_temp_reg): Likewise.
17907         (remove_ssa_form): Adjust.
17908         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17909         and get its reg_usage for reg invalidation.
17910         (compute_bb_dataflow): Pass it insn.
17911         (emit_notes_in_bb): Likewise.
17912         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17913         fail assert on conversion between unsigned types.
17915 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17917         PR debug/58315
17918         * tree-inline.c (reset_debug_binding): New.
17919         (reset_debug_bindings): Likewise.
17920         (expand_call_inline): Call it.
17922 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17924         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
17925         TYPE_STRING_FLAG.
17927 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17929         * lto-streamer-out.c (lto_output_location): Stream
17930         reserved locations correctly.
17931         * lto-streamer-in.c (lto_output_location): Likewise.
17933 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
17935         * coretypes.h: Include hash-table.h and hash-set.h for host files.
17936         * ggc.h: Don't include statistics.h>
17937         * hash-map.h: Remove all includes.
17938         * hash-set.h: Likewise.
17939         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
17940         the include list. Remove <new>.
17941         * inchash.h: Remove all includes.
17942         * mem-stats.h: Likewise.
17943         * vec.h: No special processing for generators or ggc.
17944         * alias.c : Adjust include files.
17945         * alloc-pool.c : Likewise.
17946         * alloc-pool.h : Likewise.
17947         * asan.c : Likewise.
17948         * attribs.c : Likewise.
17949         * auto-inc-dec.c : Likewise.
17950         * auto-profile.c : Likewise.
17951         * bb-reorder.c : Likewise.
17952         * bitmap.c : Likewise.
17953         * bitmap.h : Likewise.
17954         * bt-load.c : Likewise.
17955         * builtins.c : Likewise.
17956         * caller-save.c : Likewise.
17957         * calls.c : Likewise.
17958         * ccmp.c : Likewise.
17959         * cfg.c : Likewise.
17960         * cfganal.c : Likewise.
17961         * cfgbuild.c : Likewise.
17962         * cfgcleanup.c : Likewise.
17963         * cfgexpand.c : Likewise.
17964         * cfghooks.c : Likewise.
17965         * cfgloop.c : Likewise.
17966         * cfgloop.h : Likewise.
17967         * cfgloopanal.c : Likewise.
17968         * cfgloopmanip.c : Likewise.
17969         * cfgrtl.c : Likewise.
17970         * cgraph.c : Likewise.
17971         * cgraphbuild.c : Likewise.
17972         * cgraphclones.c : Likewise.
17973         * cgraphunit.c : Likewise.
17974         * cilk-common.c : Likewise.
17975         * combine-stack-adj.c : Likewise.
17976         * combine.c : Likewise.
17977         * compare-elim.c : Likewise.
17978         * context.c : Likewise.
17979         * convert.c : Likewise.
17980         * coverage.c : Likewise.
17981         * cppbuiltin.c : Likewise.
17982         * cprop.c : Likewise.
17983         * cse.c : Likewise.
17984         * cselib.c : Likewise.
17985         * data-streamer-in.c : Likewise.
17986         * data-streamer-out.c : Likewise.
17987         * data-streamer.c : Likewise.
17988         * data-streamer.h : Likewise.
17989         * dbxout.c : Likewise.
17990         * dce.c : Likewise.
17991         * ddg.c : Likewise.
17992         * debug.c : Likewise.
17993         * df-core.c : Likewise.
17994         * df-problems.c : Likewise.
17995         * df-scan.c : Likewise.
17996         * df.h : Likewise.
17997         * dfp.c : Likewise.
17998         * dojump.c : Likewise.
17999         * dominance.c : Likewise.
18000         * domwalk.c : Likewise.
18001         * double-int.c : Likewise.
18002         * dse.c : Likewise.
18003         * dumpfile.c : Likewise.
18004         * dwarf2asm.c : Likewise.
18005         * dwarf2cfi.c : Likewise.
18006         * dwarf2out.c : Likewise.
18007         * emit-rtl.c : Likewise.
18008         * et-forest.c : Likewise.
18009         * except.c : Likewise.
18010         * except.h : Likewise.
18011         * explow.c : Likewise.
18012         * expmed.c : Likewise.
18013         * expr.c : Likewise.
18014         * final.c : Likewise.
18015         * fixed-value.c : Likewise.
18016         * fold-const.c : Likewise.
18017         * function.c : Likewise.
18018         * fwprop.c : Likewise.
18019         * gcc-plugin.h : Likewise.
18020         * gcc.c : Likewise.
18021         * gcse-common.c : Likewise.
18022         * gcse.c : Likewise.
18023         * genattrtab.c : Likewise.
18024         * genautomata.c : Likewise.
18025         * genconditions.c : Likewise.
18026         * genemit.c : Likewise.
18027         * generic-match-head.c : Likewise.
18028         * genextract.c : Likewise.
18029         * gengtype-state.c : Likewise.
18030         * gengtype.c : Likewise.
18031         * genhooks.c : Likewise.
18032         * genmatch.c : Likewise.
18033         * genmodes.c : Likewise.
18034         * genrecog.c : Likewise.
18035         * gensupport.c : Likewise.
18036         * ggc-common.c : Likewise.
18037         * ggc-internal.h : Likewise.
18038         * ggc-none.c : Likewise.
18039         * ggc-page.c : Likewise.
18040         * gimple-builder.c : Likewise.
18041         * gimple-expr.c : Likewise.
18042         * gimple-fold.c : Likewise.
18043         * gimple-iterator.c : Likewise.
18044         * gimple-low.c : Likewise.
18045         * gimple-match-head.c : Likewise.
18046         * gimple-pretty-print.c : Likewise.
18047         * gimple-ssa-isolate-paths.c : Likewise.
18048         * gimple-ssa-strength-reduction.c : Likewise.
18049         * gimple-ssa.h : Likewise.
18050         * gimple-streamer-in.c : Likewise.
18051         * gimple-streamer-out.c : Likewise.
18052         * gimple-streamer.h : Likewise.
18053         * gimple-walk.c : Likewise.
18054         * gimple.c : Likewise.
18055         * gimplify-me.c : Likewise.
18056         * gimplify.c : Likewise.
18057         * godump.c : Likewise.
18058         * graph.c : Likewise.
18059         * graphds.c : Likewise.
18060         * graphite-blocking.c : Likewise.
18061         * graphite-dependences.c : Likewise.
18062         * graphite-interchange.c : Likewise.
18063         * graphite-isl-ast-to-gimple.c : Likewise.
18064         * graphite-optimize-isl.c : Likewise.
18065         * graphite-poly.c : Likewise.
18066         * graphite-scop-detection.c : Likewise.
18067         * graphite-sese-to-poly.c : Likewise.
18068         * graphite.c : Likewise.
18069         * haifa-sched.c : Likewise.
18070         * hard-reg-set.h : Likewise.
18071         * hw-doloop.c : Likewise.
18072         * ifcvt.c : Likewise.
18073         * inchash.c : Likewise.
18074         * incpath.c : Likewise.
18075         * init-regs.c : Likewise.
18076         * input.c : Likewise.
18077         * internal-fn.c : Likewise.
18078         * ipa-chkp.c : Likewise.
18079         * ipa-comdats.c : Likewise.
18080         * ipa-cp.c : Likewise.
18081         * ipa-devirt.c : Likewise.
18082         * ipa-icf-gimple.c : Likewise.
18083         * ipa-icf.c : Likewise.
18084         * ipa-inline-analysis.c : Likewise.
18085         * ipa-inline-transform.c : Likewise.
18086         * ipa-inline.c : Likewise.
18087         * ipa-polymorphic-call.c : Likewise.
18088         * ipa-profile.c : Likewise.
18089         * ipa-prop.c : Likewise.
18090         * ipa-pure-const.c : Likewise.
18091         * ipa-ref.c : Likewise.
18092         * ipa-reference.c : Likewise.
18093         * ipa-split.c : Likewise.
18094         * ipa-utils.c : Likewise.
18095         * ipa-visibility.c : Likewise.
18096         * ipa.c : Likewise.
18097         * ira-build.c : Likewise.
18098         * ira-color.c : Likewise.
18099         * ira-conflicts.c : Likewise.
18100         * ira-costs.c : Likewise.
18101         * ira-emit.c : Likewise.
18102         * ira-lives.c : Likewise.
18103         * ira.c : Likewise.
18104         * jump.c : Likewise.
18105         * langhooks.c : Likewise.
18106         * lcm.c : Likewise.
18107         * libfuncs.h : Likewise.
18108         * lists.c : Likewise.
18109         * loop-doloop.c : Likewise.
18110         * loop-init.c : Likewise.
18111         * loop-invariant.c : Likewise.
18112         * loop-iv.c : Likewise.
18113         * loop-unroll.c : Likewise.
18114         * lower-subreg.c : Likewise.
18115         * lra-assigns.c : Likewise.
18116         * lra-coalesce.c : Likewise.
18117         * lra-constraints.c : Likewise.
18118         * lra-eliminations.c : Likewise.
18119         * lra-lives.c : Likewise.
18120         * lra-remat.c : Likewise.
18121         * lra-spills.c : Likewise.
18122         * lra.c : Likewise.
18123         * lto-cgraph.c : Likewise.
18124         * lto-compress.c : Likewise.
18125         * lto-opts.c : Likewise.
18126         * lto-section-in.c : Likewise.
18127         * lto-section-out.c : Likewise.
18128         * lto-streamer-in.c : Likewise.
18129         * lto-streamer-out.c : Likewise.
18130         * lto-streamer.c : Likewise.
18131         * lto-streamer.h : Likewise.
18132         * mcf.c : Likewise.
18133         * mode-switching.c : Likewise.
18134         * modulo-sched.c : Likewise.
18135         * omega.c : Likewise.
18136         * omp-low.c : Likewise.
18137         * optabs.c : Likewise.
18138         * opts-global.c : Likewise.
18139         * opts.h : Likewise.
18140         * passes.c : Likewise.
18141         * plugin.c : Likewise.
18142         * postreload-gcse.c : Likewise.
18143         * postreload.c : Likewise.
18144         * predict.c : Likewise.
18145         * print-rtl.c : Likewise.
18146         * print-tree.c : Likewise.
18147         * profile.c : Likewise.
18148         * read-md.c : Likewise.
18149         * read-md.h : Likewise.
18150         * read-rtl.c : Likewise.
18151         * real.c : Likewise.
18152         * realmpfr.c : Likewise.
18153         * recog.c : Likewise.
18154         * ree.c : Likewise.
18155         * reg-stack.c : Likewise.
18156         * regcprop.c : Likewise.
18157         * reginfo.c : Likewise.
18158         * regrename.c : Likewise.
18159         * regstat.c : Likewise.
18160         * reload.c : Likewise.
18161         * reload1.c : Likewise.
18162         * reorg.c : Likewise.
18163         * resource.c : Likewise.
18164         * rtl-chkp.c : Likewise.
18165         * rtl.c : Likewise.
18166         * rtl.h : Likewise.
18167         * rtlanal.c : Likewise.
18168         * rtlhash.c : Likewise.
18169         * rtlhash.h : Likewise.
18170         * rtlhooks.c : Likewise.
18171         * sanopt.c : Likewise.
18172         * sched-deps.c : Likewise.
18173         * sched-ebb.c : Likewise.
18174         * sched-rgn.c : Likewise.
18175         * sched-vis.c : Likewise.
18176         * sdbout.c : Likewise.
18177         * sel-sched-dump.c : Likewise.
18178         * sel-sched-ir.c : Likewise.
18179         * sel-sched-ir.h : Likewise.
18180         * sel-sched.c : Likewise.
18181         * sese.c : Likewise.
18182         * shrink-wrap.c : Likewise.
18183         * shrink-wrap.h : Likewise.
18184         * simplify-rtx.c : Likewise.
18185         * stack-ptr-mod.c : Likewise.
18186         * statistics.c : Likewise.
18187         * stmt.c : Likewise.
18188         * stor-layout.c : Likewise.
18189         * store-motion.c : Likewise.
18190         * stringpool.c : Likewise.
18191         * symtab.c : Likewise.
18192         * target-globals.c : Likewise.
18193         * targhooks.c : Likewise.
18194         * tlink.c : Likewise.
18195         * toplev.c : Likewise.
18196         * tracer.c : Likewise.
18197         * trans-mem.c : Likewise.
18198         * tree-affine.c : Likewise.
18199         * tree-affine.h : Likewise.
18200         * tree-browser.c : Likewise.
18201         * tree-call-cdce.c : Likewise.
18202         * tree-cfg.c : Likewise.
18203         * tree-cfgcleanup.c : Likewise.
18204         * tree-chkp-opt.c : Likewise.
18205         * tree-chkp.c : Likewise.
18206         * tree-chrec.c : Likewise.
18207         * tree-complex.c : Likewise.
18208         * tree-data-ref.c : Likewise.
18209         * tree-dfa.c : Likewise.
18210         * tree-diagnostic.c : Likewise.
18211         * tree-dump.c : Likewise.
18212         * tree-eh.c : Likewise.
18213         * tree-eh.h : Likewise.
18214         * tree-emutls.c : Likewise.
18215         * tree-hasher.h : Likewise.
18216         * tree-if-conv.c : Likewise.
18217         * tree-inline.c : Likewise.
18218         * tree-inline.h : Likewise.
18219         * tree-into-ssa.c : Likewise.
18220         * tree-iterator.c : Likewise.
18221         * tree-loop-distribution.c : Likewise.
18222         * tree-nested.c : Likewise.
18223         * tree-nrv.c : Likewise.
18224         * tree-object-size.c : Likewise.
18225         * tree-outof-ssa.c : Likewise.
18226         * tree-parloops.c : Likewise.
18227         * tree-phinodes.c : Likewise.
18228         * tree-predcom.c : Likewise.
18229         * tree-pretty-print.c : Likewise.
18230         * tree-profile.c : Likewise.
18231         * tree-scalar-evolution.c : Likewise.
18232         * tree-sra.c : Likewise.
18233         * tree-ssa-address.c : Likewise.
18234         * tree-ssa-alias.c : Likewise.
18235         * tree-ssa-ccp.c : Likewise.
18236         * tree-ssa-coalesce.c : Likewise.
18237         * tree-ssa-copy.c : Likewise.
18238         * tree-ssa-copyrename.c : Likewise.
18239         * tree-ssa-dce.c : Likewise.
18240         * tree-ssa-dom.c : Likewise.
18241         * tree-ssa-dse.c : Likewise.
18242         * tree-ssa-forwprop.c : Likewise.
18243         * tree-ssa-ifcombine.c : Likewise.
18244         * tree-ssa-live.c : Likewise.
18245         * tree-ssa-loop-ch.c : Likewise.
18246         * tree-ssa-loop-im.c : Likewise.
18247         * tree-ssa-loop-ivcanon.c : Likewise.
18248         * tree-ssa-loop-ivopts.c : Likewise.
18249         * tree-ssa-loop-manip.c : Likewise.
18250         * tree-ssa-loop-niter.c : Likewise.
18251         * tree-ssa-loop-prefetch.c : Likewise.
18252         * tree-ssa-loop-unswitch.c : Likewise.
18253         * tree-ssa-loop.c : Likewise.
18254         * tree-ssa-math-opts.c : Likewise.
18255         * tree-ssa-operands.c : Likewise.
18256         * tree-ssa-phiopt.c : Likewise.
18257         * tree-ssa-phiprop.c : Likewise.
18258         * tree-ssa-pre.c : Likewise.
18259         * tree-ssa-propagate.c : Likewise.
18260         * tree-ssa-reassoc.c : Likewise.
18261         * tree-ssa-sccvn.c : Likewise.
18262         * tree-ssa-scopedtables.c : Likewise.
18263         * tree-ssa-sink.c : Likewise.
18264         * tree-ssa-strlen.c : Likewise.
18265         * tree-ssa-structalias.c : Likewise.
18266         * tree-ssa-tail-merge.c : Likewise.
18267         * tree-ssa-ter.c : Likewise.
18268         * tree-ssa-threadedge.c : Likewise.
18269         * tree-ssa-threadupdate.c : Likewise.
18270         * tree-ssa-uncprop.c : Likewise.
18271         * tree-ssa-uninit.c : Likewise.
18272         * tree-ssa.c : Likewise.
18273         * tree-ssanames.c : Likewise.
18274         * tree-stdarg.c : Likewise.
18275         * tree-streamer-in.c : Likewise.
18276         * tree-streamer-out.c : Likewise.
18277         * tree-streamer.c : Likewise.
18278         * tree-streamer.h : Likewise.
18279         * tree-switch-conversion.c : Likewise.
18280         * tree-tailcall.c : Likewise.
18281         * tree-vect-data-refs.c : Likewise.
18282         * tree-vect-generic.c : Likewise.
18283         * tree-vect-loop-manip.c : Likewise.
18284         * tree-vect-loop.c : Likewise.
18285         * tree-vect-patterns.c : Likewise.
18286         * tree-vect-slp.c : Likewise.
18287         * tree-vect-stmts.c : Likewise.
18288         * tree-vectorizer.c : Likewise.
18289         * tree-vectorizer.h : Likewise.
18290         * tree-vrp.c : Likewise.
18291         * tree.c : Likewise.
18292         * tsan.c : Likewise.
18293         * ubsan.c : Likewise.
18294         * valtrack.c : Likewise.
18295         * valtrack.h : Likewise.
18296         * value-prof.c : Likewise.
18297         * var-tracking.c : Likewise.
18298         * varasm.c : Likewise.
18299         * varpool.c : Likewise.
18300         * vec.c: Likewise.
18301         * vmsdbgout.c : Likewise.
18302         * vtable-verify.c : Likewise.
18303         * vtable-verify.h : Likewise.
18304         * web.c : Likewise.
18305         * wide-int.cc : Likewise.
18306         * xcoffout.c : Likewise.
18307         * config/aarch64/aarch64-builtins.c : Likewise.
18308         * config/aarch64/aarch64.c : Likewise.
18309         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
18310         * config/alpha/alpha.c : Likewise.
18311         * config/arc/arc.c : Likewise.
18312         * config/arm/aarch-common.c : Likewise.
18313         * config/arm/arm-builtins.c : Likewise.
18314         * config/arm/arm-c.c : Likewise.
18315         * config/arm/arm.c : Likewise.
18316         * config/avr/avr-c.c : Likewise.
18317         * config/avr/avr-log.c : Likewise.
18318         * config/avr/avr.c : Likewise.
18319         * config/bfin/bfin.c : Likewise.
18320         * config/c6x/c6x.c : Likewise.
18321         * config/cr16/cr16.c : Likewise.
18322         * config/cris/cris.c : Likewise.
18323         * config/darwin-c.c : Likewise.
18324         * config/darwin.c : Likewise.
18325         * config/default-c.c : Likewise.
18326         * config/epiphany/epiphany.c : Likewise.
18327         * config/epiphany/mode-switch-use.c : Likewise.
18328         * config/epiphany/resolve-sw-modes.c : Likewise.
18329         * config/fr30/fr30.c : Likewise.
18330         * config/frv/frv.c : Likewise.
18331         * config/ft32/ft32.c : Likewise.
18332         * config/glibc-c.c : Likewise.
18333         * config/h8300/h8300.c : Likewise.
18334         * config/i386/i386-c.c : Likewise.
18335         * config/i386/i386.c : Likewise.
18336         * config/i386/msformat-c.c : Likewise.
18337         * config/i386/winnt-cxx.c : Likewise.
18338         * config/i386/winnt-stubs.c : Likewise.
18339         * config/i386/winnt.c : Likewise.
18340         * config/ia64/ia64-c.c : Likewise.
18341         * config/ia64/ia64.c : Likewise.
18342         * config/iq2000/iq2000.c : Likewise.
18343         * config/lm32/lm32.c : Likewise.
18344         * config/m32c/m32c-pragma.c : Likewise.
18345         * config/m32c/m32c.c : Likewise.
18346         * config/m32r/m32r.c : Likewise.
18347         * config/m68k/m68k.c : Likewise.
18348         * config/mcore/mcore.c : Likewise.
18349         * config/mep/mep-pragma.c : Likewise.
18350         * config/mep/mep.c : Likewise.
18351         * config/microblaze/microblaze-c.c : Likewise.
18352         * config/microblaze/microblaze.c : Likewise.
18353         * config/mips/mips.c : Likewise.
18354         * config/mmix/mmix.c : Likewise.
18355         * config/mn10300/mn10300.c : Likewise.
18356         * config/moxie/moxie.c : Likewise.
18357         * config/msp430/msp430-c.c : Likewise.
18358         * config/msp430/msp430.c : Likewise.
18359         * config/nds32/nds32-cost.c : Likewise.
18360         * config/nds32/nds32-fp-as-gp.c : Likewise.
18361         * config/nds32/nds32-intrinsic.c : Likewise.
18362         * config/nds32/nds32-isr.c : Likewise.
18363         * config/nds32/nds32-md-auxiliary.c : Likewise.
18364         * config/nds32/nds32-memory-manipulation.c : Likewise.
18365         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
18366         * config/nds32/nds32-predicates.c : Likewise.
18367         * config/nds32/nds32.c : Likewise.
18368         * config/nios2/nios2.c : Likewise.
18369         * config/nvptx/nvptx.c : Likewise.
18370         * config/pa/pa.c : Likewise.
18371         * config/pdp11/pdp11.c : Likewise.
18372         * config/rl78/rl78-c.c : Likewise.
18373         * config/rl78/rl78.c : Likewise.
18374         * config/rs6000/rs6000-c.c : Likewise.
18375         * config/rs6000/rs6000.c : Likewise.
18376         * config/rx/rx.c : Likewise.
18377         * config/s390/s390-c.c : Likewise.
18378         * config/s390/s390.c : Likewise.
18379         * config/sh/sh-c.c : Likewise.
18380         * config/sh/sh-mem.cc : Likewise.
18381         * config/sh/sh.c : Likewise.
18382         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
18383         * config/sh/sh_treg_combine.cc : Likewise.
18384         * config/sol2-c.c : Likewise.
18385         * config/sol2-cxx.c : Likewise.
18386         * config/sol2-stubs.c : Likewise.
18387         * config/sol2.c : Likewise.
18388         * config/sparc/sparc-c.c : Likewise.
18389         * config/sparc/sparc.c : Likewise.
18390         * config/spu/spu-c.c : Likewise.
18391         * config/spu/spu.c : Likewise.
18392         * config/stormy16/stormy16.c : Likewise.
18393         * config/tilegx/mul-tables.c : Likewise.
18394         * config/tilegx/tilegx-c.c : Likewise.
18395         * config/tilegx/tilegx.c : Likewise.
18396         * config/tilepro/mul-tables.c : Likewise.
18397         * config/tilepro/tilepro-c.c : Likewise.
18398         * config/tilepro/tilepro.c : Likewise.
18399         * config/v850/v850-c.c : Likewise.
18400         * config/v850/v850.c : Likewise.
18401         * config/vax/vax.c : Likewise.
18402         * config/visium/visium.c : Likewise.
18403         * config/vms/vms-c.c : Likewise.
18404         * config/vms/vms.c : Likewise.
18405         * config/vxworks.c : Likewise.
18406         * config/winnt-c.c : Likewise.
18407         * config/xtensa/xtensa.c : Likewise.
18409 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
18411         PR lto/65378
18412         * ipa-utils.h (warn_types_mismatch): Update prototype.
18413         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
18414         parameters.
18415         (type_mismatch_p): New function.
18416         (warn_types_mismatch): Reorg to work better on non-C++ types.
18417         (odr_types_equivalent_p): Add loc1/loc2 parameters.
18418         (add_type_duplicate): Update.
18420 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18422         PR rtl-optimization/66444
18423         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
18424         call_used_regs.
18426 2015-06-08  Richard Biener  <rguenther@suse.de>
18428         PR tree-optimization/66422
18429         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
18430         block after inserted gcc_unreachable.
18432 2015-06-08  Nick Clifton  <nickc@redhat.com>
18434         * config/rx/rx.c (rx_function_value): Do not promote vector types.
18435         (rx_promote_function_mode): Likewise.
18436         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
18438 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
18440         * genattrtab.c (insn_alternatives): Change type from int *
18441         to uint64_t *.
18442         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
18443         (get_attr_value): Change type of num_alt to uint64_t.
18444         (compute_alternative_mask): Change return type from
18445         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
18446         (make_alternative_compare, mk_attr_alt): Change argument type
18447         from int to uint64_t.
18448         (simplify_test_exp): Change type of i from int to uint64_t.
18449         Shift ((uint64_t) 1) instead of 1 up.
18450         (main): Adjust oballocvec first argument from int to uint64_t.
18451         Shift ((uint64_t) 1) instead of 1 up.
18453 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
18455         PR other/65366
18456         * gdbhooks.py: Import sys.
18457         (intptr): New function.  Replace int(...) by intptr(...).
18459 2015-06-08  Richard Biener  <rguenther@suse.de>
18461         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
18462         adjustment for gaps at the end of a SLP load group properly.
18463         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
18464         all permutations we can generate.
18465         (vect_transform_slp_perm_load): Use the correct group-size.
18467 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
18469         * genmatch.c (expr::gen_transform): For conditions, guess the type
18470         from the second operand.
18472 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18474         PR tree-optimization/66442
18475         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
18476         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
18477         if the loop latch is not a singleton.  Use
18478         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
18480 2015-06-08  Marek Polacek  <polacek@redhat.com>
18482         PR sanitizer/66452
18483         * toplev.c (check_global_declaration): Don't warn about artificial
18484         decls.
18486 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18488         PR tree-optimization/66436
18489         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
18490         dump file.
18491         * gimplify.c: Add tree-dump.h include.
18492         (gimplify_function_tree): Dump function to gimple dump file.
18493         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
18494         dump file.
18496 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18498         PR tree-optimization/66435
18499         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
18500         function.
18502 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
18504         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
18505         of ptr_type_node to not be ptr_to_node.
18506         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
18507         TREE_TYPE of pointers.
18508         * gimple-expr.c (useless_type_conversion): Reorder the check for
18509         function pointers and TYPE_CANONICAL.
18511 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
18513         PR bootstrap/66319
18514         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
18515         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
18516         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
18517         later.
18518         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
18519         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
18520         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
18521         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
18522         and non iso if unix2003.
18524 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
18526         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
18528 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
18530         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
18531         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
18532         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
18533         except.c, final.c, function.c, gcse-common.c, genemit.c,
18534         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
18535         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
18536         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
18537         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
18538         more derived ones.
18540 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
18542         * combine.c (combine_split_insns): Remove cast.
18543         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
18544         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
18545         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
18546         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
18547         * genemit.c (gen_split): Change return type of generated functions to
18548         rtx_insn.
18549         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
18550         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
18551         gen_peephole2_* functions.
18552         (print_subroutine, main): Likewise.
18553         * recog.c (peephole2_optimize): Remove cast.
18554         (peep2_next_insn): Promote return type to rtx_insn.
18555         * recog.h (peep2_next_insn): Fix prototype.
18556         * rtl.h (try_split, split_insns): Likewise.
18558 2015-06-06  DJ Delorie  <dj@redhat.com>
18560         * config/msp430/msp430.c (msp430_asm_integer): Support addition
18561         and subtraction too.
18563 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
18565         PR target/66410
18566         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
18567         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
18568         instead of Snd.  Disparage Sid/z alternative with '^'.
18570 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
18572         * dwarf2out.c: Remove deferred_locations*.
18573         (dwarf2_debug_hooks): Add early_finish hook.
18574         Remove global_decl hook.
18575         Add early_global_decl and late_global_decl hook.
18576         New global early_dwarf.
18577         New structure set_early_dwarf.
18578         (output_die): Indicate whether a DIE was generated early
18579         when generating assembly with -dA.
18580         (struct limbo_die_struct): Document created_for field.
18581         Remove file_table_last_lookup.
18582         (remove_AT): Return TRUE if successful.
18583         (remove_child_TAG): Clear die_parent.
18584         (reparent_child): New function abstracted from...
18585         (splice_child_die): ...here.
18586         (new_die): ICE if a DIE ends up in limbo too late.
18587         (check_die): New.
18588         (defer_location): Remove.
18589         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
18590         (fill_variable_array_bounds): New.
18591         (decl_start_label): Call fill_variable_array_bounds.
18592         (gen_formal_parameter_die): Rewrite to reuse previously generated
18593         DIEs.
18594         (gen_subprogram_die): Same.
18595         (gen_variable_die): Same.
18596         (gen_const_die): Same.
18597         (gen_label_die): Same.
18598         (gen_lexical_block_die): Same.
18599         (decl_will_get_specification_p): New.
18600         (local_function_static): New.
18601         (gen_struct_or_union_type_die): Fill in variable-length fields.
18602         (gen_typedef_die): Fill in variable-length typedefs.
18603         (gen_tagged_type_die): Gracefully return on error_mark_node.
18604         Handle re-entrancy.
18605         (gen_type_die_with_usage): Handle variable-length types.
18606         Remove duplicate code for ARRAY_TYPE case.
18607         (process_scope_var): Only process imported modules during early
18608         dwarf.
18609         (dwarf2out_early_global_decl): New.
18610         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
18611         (dwarf2out_type_decl): Set early_dwarf while calling
18612         dwarf2out_decl.
18613         (dwarf2out_decl): Verify that we did not recreate a previously
18614         generated DIE.
18615         Do not return on DECL_EXTERNALs in VAR_DECLs.
18616         Abstract some code to local_function_static.
18617         (lookup_filename): Remove use of file_table_last_lookup.
18618         Gracefully exit on missing file_name.
18619         (dwarf2out_finish): Verify limbo list.
18620         Remove deferred_locations_list use.
18621         Move deferred_asm_name and limbo flushing to...
18622         (dwarf2out_early_finish): ...here.  New.
18623         (dwarf2out_c_finalize): Remove set of deferred_location_list,
18624         deferred_asm_name, and file_table_last_lookup.
18625         * cgraph.h (referred_to_p): Add default argument.
18626         * cgraphunit.c (referred_to_p): Add and handle include_self
18627         argument.
18628         (analyze_functions): Add first_time argument.
18629         Call check_global_declaration for all symbols.
18630         Call late_global_decl for nodes for moribund nodes.
18631         (finalize_compilation_unit): Add new argument to
18632         analyze_functions.
18633         Call early_global_decl for functions.
18634         Call early_finish debug hook.
18635         * dbxout.c (dbxout_early_global_decl): New.
18636         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
18637         (dbx_debug_hooks): Add new hooks.
18638         (xcoff_debug_hooks): Same.
18639         * debug.c (do_nothing_debug_hooks): Add early_finish field.
18640         Add early and late debug hooks.
18641         Remove global_decl hook.
18642         * debug.h (struct gcc_debug_hooks): Add early_finish,
18643         early_global_decl, and late_global_decl fields.
18644         Remove global_decl field.
18645         Document gcc_debug_hooks.
18646         * gengtype.c (output_typename): Remove.
18647         * godump.c (go_early_global_decl): New.
18648         (go_late_global_decl): New.
18649         (go_global_decl): Remove.
18650         (dump_go_spec_init): Remove global_decl.  Add
18651         {early,late}_global_decl.
18652         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
18653         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
18654         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
18655         (write_global_declarations): Remove.
18656         (global_decl_processing): New.
18657         * langhooks.h (struct lang_hooks_for_decls): Remove
18658         final_write_globals field.
18659         Add post_compilation_parsing_cleanups field.
18660         * passes.c (rest_of_decl_compilation): Call early_global_decl.
18661         * sdbout.c: Add early and late_global_decl hooks.  Remove
18662         sdbout_global_decl hook.
18663         Add early_finish field for sdb_debug_hooks.
18664         (sdbout_global_decl): Remove.
18665         (sdbout_early_global_decl): New.
18666         (sdbout_late_global_decl): New.
18667         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
18668         * toplev.c (check_global_declaration): Rename from
18669         check_global_declaration_1.
18670         Adapt to use symtab infrastructure.
18671         (check_global_declarations): Remove.
18672         (emit_debug_global_declarations): Remove.
18673         (compile_file): Remove call to final_write_globals langhook.
18674         Run the actual compilation process.
18675         Perform any post compilation parser cleanups.
18676         Generate late debug info.
18677         * toplev.h (check_global_declaration): New.
18678         (check_global_declaration_1): Remove.
18679         (check_global_declarations): Remove.
18680         (write_global_declarations): Remove.
18681         (emit_debug_global_declarations): Remove.
18682         (global_decl_processing): New.
18683         * tree-core.h (struct tree_block): Add DIE field.
18684         * tree.h (BLOCK_DIE): New.
18685         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
18686         throughout.
18687         (vmsdbgout_early_global_decl): New.
18688         (vmsdbgout_late_global_decl): New.
18689         Add early_finish debug hook field to vmsdbg_debug_hooks.
18690         Remove vmsdbgout_decl to vmsdbgout_function_decl.
18691         Add early and late_global_decl debug hooks.
18693 2015-06-05  Julian Brown  <julian@codesourcery.com>
18694             Sandra Loosemore  <sandra@codesourcery.com>
18696         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
18697         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
18698         to print-sysroot-suffix.sh script.
18700 2015-06-05  Tom de Vries  <tom@codesourcery.com>
18702         merge from gomp4 branch:
18703         2015-05-28  Tom de Vries  <tom@codesourcery.com>
18705         PR tree-optimization/65443
18706         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
18707         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
18708         (try_transform_to_exit_first_loop_alt): New function.
18709         (transform_to_exit_first_loop): Use
18710         try_transform_to_exit_first_loop_alt.
18712 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
18714         * builtins.c (expand_builtin_atomic_compare_exchange): Call
18715         emit_cmp_and_jump_insns with the mode of target.
18717 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18719         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
18721 2015-06-04  DJ Delorie  <dj@redhat.com>
18723         * config/msp430/msp430.md (movsi_s): New.  Special case for
18724         storing a 20-bit symbol into a 32-bit register.
18725         * config/msp430/msp430.c (msp430_subreg): Add support for it.
18726         * config/msp430/predicates.md (msp430_symbol_operand): New.
18728 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
18730         * c-family/c-common.c (noplt): New attribute.
18731         (handle_noplt_attribute): New handler.
18732         * calls.c (prepare_call_address): Check for noplt
18733         attribute.
18734         * config/i386/i386.c (ix86_expand_call): Check
18735         for noplt attribute.
18736         (ix86_nopic_noplt_attribute_p): New function.
18737         (ix86_output_call_insn): Output indirect call for non-pic
18738         no plt calls.
18739         * doc/extend.texi (noplt): Document new attribute.
18740         * doc/invoke.texi: Document new attribute.
18742 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
18744         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
18745         real.h, and fixed-value.h when included in host source files.
18746         * double-int.h: Remove redundant #includes listed above.
18747         * fixed-value.h: Likewise.
18748         * real.h: Likewise.
18749         * wide-int.h: Likewise.
18750         * inchash.h: Likewise.
18751         * rtl.h: Add some include files When included from a generator file.
18752         * target.h: Remove wide-int.h and insn-modes.h from the include list.
18753         * internal-fn.h: Don't include coretypes.h.
18754         * alias.c: Adjust includes for restructured coretypes.h.
18755         * asan.c: Likewise.
18756         * attribs.c: Likewise.
18757         * auto-inc-dec.c: Likewise.
18758         * auto-profile.c: Likewise.
18759         * bb-reorder.c: Likewise.
18760         * bt-load.c: Likewise.
18761         * builtins.c: Likewise.
18762         * caller-save.c: Likewise.
18763         * calls.c: Likewise.
18764         * ccmp.c: Likewise.
18765         * cfg.c: Likewise.
18766         * cfganal.c: Likewise.
18767         * cfgbuild.c: Likewise.
18768         * cfgcleanup.c: Likewise.
18769         * cfgexpand.c: Likewise.
18770         * cfghooks.c: Likewise.
18771         * cfgloop.c: Likewise.
18772         * cfgloop.h: Likewise.
18773         * cfgloopanal.c: Likewise.
18774         * cfgloopmanip.c: Likewise.
18775         * cfgrtl.c: Likewise.
18776         * cgraph.c: Likewise.
18777         * cgraphbuild.c: Likewise.
18778         * cgraphclones.c: Likewise.
18779         * cgraphunit.c: Likewise.
18780         * cilk-common.c: Likewise.
18781         * combine-stack-adj.c: Likewise.
18782         * combine.c: Likewise.
18783         * compare-elim.c: Likewise.
18784         * convert.c: Likewise.
18785         * coverage.c: Likewise.
18786         * cppbuiltin.c: Likewise.
18787         * cprop.c: Likewise.
18788         * cse.c: Likewise.
18789         * cselib.c: Likewise.
18790         * data-streamer-in.c: Likewise.
18791         * data-streamer-out.c: Likewise.
18792         * data-streamer.c: Likewise.
18793         * dbxout.c: Likewise.
18794         * dce.c: Likewise.
18795         * ddg.c: Likewise.
18796         * debug.c: Likewise.
18797         * df-core.c: Likewise.
18798         * df-problems.c: Likewise.
18799         * df-scan.c: Likewise.
18800         * df.h: Likewise.
18801         * dfp.c: Likewise.
18802         * dojump.c: Likewise.
18803         * dominance.c: Likewise.
18804         * domwalk.c: Likewise.
18805         * double-int.c: Likewise.
18806         * dse.c: Likewise.
18807         * dumpfile.c: Likewise.
18808         * dwarf2asm.c: Likewise.
18809         * dwarf2cfi.c: Likewise.
18810         * dwarf2out.c: Likewise.
18811         * dwarf2out.h: Likewise.
18812         * emit-rtl.c: Likewise.
18813         * et-forest.c: Likewise.
18814         * except.c: Likewise.
18815         * explow.c: Likewise.
18816         * expmed.c: Likewise.
18817         * expr.c: Likewise.
18818         * final.c: Likewise.
18819         * fixed-value.c: Likewise.
18820         * fold-const.c: Likewise.
18821         * function.c: Likewise.
18822         * fwprop.c: Likewise.
18823         * gcc-plugin.h: Likewise.
18824         * gcse.c: Likewise.
18825         * generic-match-head.c: Likewise.
18826         * ggc-page.c: Likewise.
18827         * gimple-builder.c: Likewise.
18828         * gimple-expr.c: Likewise.
18829         * gimple-fold.c: Likewise.
18830         * gimple-iterator.c: Likewise.
18831         * gimple-low.c: Likewise.
18832         * gimple-match-head.c: Likewise.
18833         * gimple-pretty-print.c: Likewise.
18834         * gimple-ssa-isolate-paths.c: Likewise.
18835         * gimple-ssa-strength-reduction.c: Likewise.
18836         * gimple-streamer-in.c: Likewise.
18837         * gimple-streamer-out.c: Likewise.
18838         * gimple-streamer.h: Likewise.
18839         * gimple-walk.c: Likewise.
18840         * gimple.c: Likewise.
18841         * gimplify-me.c: Likewise.
18842         * gimplify.c: Likewise.
18843         * godump.c: Likewise.
18844         * graph.c: Likewise.
18845         * graphite-blocking.c: Likewise.
18846         * graphite-dependences.c: Likewise.
18847         * graphite-interchange.c: Likewise.
18848         * graphite-isl-ast-to-gimple.c: Likewise.
18849         * graphite-optimize-isl.c: Likewise.
18850         * graphite-poly.c: Likewise.
18851         * graphite-scop-detection.c: Likewise.
18852         * graphite-sese-to-poly.c: Likewise.
18853         * graphite.c: Likewise.
18854         * haifa-sched.c: Likewise.
18855         * hooks.h: Likewise.
18856         * hw-doloop.c: Likewise.
18857         * ifcvt.c: Likewise.
18858         * incpath.c: Likewise.
18859         * init-regs.c: Likewise.
18860         * internal-fn.c: Likewise.
18861         * ipa-chkp.c: Likewise.
18862         * ipa-comdats.c: Likewise.
18863         * ipa-cp.c: Likewise.
18864         * ipa-devirt.c: Likewise.
18865         * ipa-icf-gimple.c: Likewise.
18866         * ipa-icf.c: Likewise.
18867         * ipa-inline-analysis.c: Likewise.
18868         * ipa-inline-transform.c: Likewise.
18869         * ipa-inline.c: Likewise.
18870         * ipa-polymorphic-call.c: Likewise.
18871         * ipa-profile.c: Likewise.
18872         * ipa-prop.c: Likewise.
18873         * ipa-pure-const.c: Likewise.
18874         * ipa-ref.c: Likewise.
18875         * ipa-reference.c: Likewise.
18876         * ipa-split.c: Likewise.
18877         * ipa-utils.c: Likewise.
18878         * ipa-visibility.c: Likewise.
18879         * ipa.c: Likewise.
18880         * ira-build.c: Likewise.
18881         * ira-color.c: Likewise.
18882         * ira-conflicts.c: Likewise.
18883         * ira-costs.c: Likewise.
18884         * ira-emit.c: Likewise.
18885         * ira-lives.c: Likewise.
18886         * ira.c: Likewise.
18887         * jump.c: Likewise.
18888         * langhooks.c: Likewise.
18889         * lcm.c: Likewise.
18890         * loop-doloop.c: Likewise.
18891         * loop-init.c: Likewise.
18892         * loop-invariant.c: Likewise.
18893         * loop-iv.c: Likewise.
18894         * loop-unroll.c: Likewise.
18895         * lower-subreg.c: Likewise.
18896         * lra-assigns.c: Likewise.
18897         * lra-coalesce.c: Likewise.
18898         * lra-constraints.c: Likewise.
18899         * lra-eliminations.c: Likewise.
18900         * lra-lives.c: Likewise.
18901         * lra-remat.c: Likewise.
18902         * lra-spills.c: Likewise.
18903         * lra.c: Likewise.
18904         * lto-cgraph.c: Likewise.
18905         * lto-compress.c: Likewise.
18906         * lto-opts.c: Likewise.
18907         * lto-section-in.c: Likewise.
18908         * lto-section-out.c: Likewise.
18909         * lto-streamer-in.c: Likewise.
18910         * lto-streamer-out.c: Likewise.
18911         * lto-streamer.c: Likewise.
18912         * mcf.c: Likewise.
18913         * mode-switching.c: Likewise.
18914         * modulo-sched.c: Likewise.
18915         * omega.c: Likewise.
18916         * omp-low.c: Likewise.
18917         * optabs.c: Likewise.
18918         * opts-global.c: Likewise.
18919         * passes.c: Likewise.
18920         * plugin.c: Likewise.
18921         * postreload-gcse.c: Likewise.
18922         * postreload.c: Likewise.
18923         * predict.c: Likewise.
18924         * print-rtl.c: Likewise.
18925         * print-tree.c: Likewise.
18926         * profile.c: Likewise.
18927         * real.c: Likewise.
18928         * realmpfr.c: Likewise.
18929         * realmpfr.h: Likewise.
18930         * recog.c: Likewise.
18931         * ree.c: Likewise.
18932         * reg-stack.c: Likewise.
18933         * regcprop.c: Likewise.
18934         * reginfo.c: Likewise.
18935         * regrename.c: Likewise.
18936         * regs.h: Likewise.
18937         * regstat.c: Likewise.
18938         * reload.c: Likewise.
18939         * reload1.c: Likewise.
18940         * reorg.c: Likewise.
18941         * resource.c: Likewise.
18942         * rtl-chkp.c: Likewise.
18943         * rtlanal.c: Likewise.
18944         * rtlhooks.c: Likewise.
18945         * sanopt.c: Likewise.
18946         * sched-deps.c: Likewise.
18947         * sched-ebb.c: Likewise.
18948         * sched-rgn.c: Likewise.
18949         * sched-vis.c: Likewise.
18950         * sdbout.c: Likewise.
18951         * sel-sched-dump.c: Likewise.
18952         * sel-sched-ir.c: Likewise.
18953         * sel-sched.c: Likewise.
18954         * sese.c: Likewise.
18955         * shrink-wrap.c: Likewise.
18956         * shrink-wrap.h: Likewise.
18957         * simplify-rtx.c: Likewise.
18958         * stack-ptr-mod.c: Likewise.
18959         * statistics.c: Likewise.
18960         * stmt.c: Likewise.
18961         * stor-layout.c: Likewise.
18962         * store-motion.c: Likewise.
18963         * stringpool.c: Likewise.
18964         * symtab.c: Likewise.
18965         * target-globals.c: Likewise.
18966         * targhooks.c: Likewise.
18967         * toplev.c: Likewise.
18968         * tracer.c: Likewise.
18969         * trans-mem.c: Likewise.
18970         * tree-affine.c: Likewise.
18971         * tree-affine.h: Likewise.
18972         * tree-browser.c: Likewise.
18973         * tree-call-cdce.c: Likewise.
18974         * tree-cfg.c: Likewise.
18975         * tree-cfgcleanup.c: Likewise.
18976         * tree-chkp-opt.c: Likewise.
18977         * tree-chkp.c: Likewise.
18978         * tree-chrec.c: Likewise.
18979         * tree-complex.c: Likewise.
18980         * tree-data-ref.c: Likewise.
18981         * tree-dfa.c: Likewise.
18982         * tree-diagnostic.c: Likewise.
18983         * tree-dump.c: Likewise.
18984         * tree-eh.c: Likewise.
18985         * tree-emutls.c: Likewise.
18986         * tree-if-conv.c: Likewise.
18987         * tree-inline.c: Likewise.
18988         * tree-into-ssa.c: Likewise.
18989         * tree-iterator.c: Likewise.
18990         * tree-loop-distribution.c: Likewise.
18991         * tree-nested.c: Likewise.
18992         * tree-nrv.c: Likewise.
18993         * tree-object-size.c: Likewise.
18994         * tree-outof-ssa.c: Likewise.
18995         * tree-parloops.c: Likewise.
18996         * tree-phinodes.c: Likewise.
18997         * tree-predcom.c: Likewise.
18998         * tree-pretty-print.c: Likewise.
18999         * tree-pretty-print.h: Likewise.
19000         * tree-profile.c: Likewise.
19001         * tree-scalar-evolution.c: Likewise.
19002         * tree-sra.c: Likewise.
19003         * tree-ssa-address.c: Likewise.
19004         * tree-ssa-alias.c: Likewise.
19005         * tree-ssa-ccp.c: Likewise.
19006         * tree-ssa-coalesce.c: Likewise.
19007         * tree-ssa-copy.c: Likewise.
19008         * tree-ssa-copyrename.c: Likewise.
19009         * tree-ssa-dce.c: Likewise.
19010         * tree-ssa-dom.c: Likewise.
19011         * tree-ssa-dse.c: Likewise.
19012         * tree-ssa-forwprop.c: Likewise.
19013         * tree-ssa-ifcombine.c: Likewise.
19014         * tree-ssa-live.c: Likewise.
19015         * tree-ssa-loop-ch.c: Likewise.
19016         * tree-ssa-loop-im.c: Likewise.
19017         * tree-ssa-loop-ivcanon.c: Likewise.
19018         * tree-ssa-loop-ivopts.c: Likewise.
19019         * tree-ssa-loop-manip.c: Likewise.
19020         * tree-ssa-loop-niter.c: Likewise.
19021         * tree-ssa-loop-prefetch.c: Likewise.
19022         * tree-ssa-loop-unswitch.c: Likewise.
19023         * tree-ssa-loop.c: Likewise.
19024         * tree-ssa-loop.h: Likewise.
19025         * tree-ssa-math-opts.c: Likewise.
19026         * tree-ssa-operands.c: Likewise.
19027         * tree-ssa-phiopt.c: Likewise.
19028         * tree-ssa-phiprop.c: Likewise.
19029         * tree-ssa-pre.c: Likewise.
19030         * tree-ssa-propagate.c: Likewise.
19031         * tree-ssa-reassoc.c: Likewise.
19032         * tree-ssa-sccvn.c: Likewise.
19033         * tree-ssa-scopedtables.c: Likewise.
19034         * tree-ssa-sink.c: Likewise.
19035         * tree-ssa-strlen.c: Likewise.
19036         * tree-ssa-structalias.c: Likewise.
19037         * tree-ssa-tail-merge.c: Likewise.
19038         * tree-ssa-ter.c: Likewise.
19039         * tree-ssa-threadedge.c: Likewise.
19040         * tree-ssa-threadupdate.c: Likewise.
19041         * tree-ssa-uncprop.c: Likewise.
19042         * tree-ssa-uninit.c: Likewise.
19043         * tree-ssa.c: Likewise.
19044         * tree-ssanames.c: Likewise.
19045         * tree-stdarg.c: Likewise.
19046         * tree-streamer-in.c: Likewise.
19047         * tree-streamer-out.c: Likewise.
19048         * tree-streamer.c: Likewise.
19049         * tree-switch-conversion.c: Likewise.
19050         * tree-tailcall.c: Likewise.
19051         * tree-vect-data-refs.c: Likewise.
19052         * tree-vect-generic.c: Likewise.
19053         * tree-vect-loop-manip.c: Likewise.
19054         * tree-vect-loop.c: Likewise.
19055         * tree-vect-patterns.c: Likewise.
19056         * tree-vect-slp.c: Likewise.
19057         * tree-vect-stmts.c: Likewise.
19058         * tree-vectorizer.c: Likewise.
19059         * tree-vrp.c: Likewise.
19060         * tree.c: Likewise.
19061         * tsan.c: Likewise.
19062         * ubsan.c: Likewise.
19063         * valtrack.c: Likewise.
19064         * value-prof.c: Likewise.
19065         * var-tracking.c: Likewise.
19066         * varasm.c: Likewise.
19067         * varpool.c: Likewise.
19068         * vmsdbgout.c: Likewise.
19069         * vtable-verify.c: Likewise.
19070         * web.c: Likewise.
19071         * wide-int-print.cc: Likewise.
19072         * wide-int-print.h: Likewise.
19073         * wide-int.cc: Likewise.
19074         * xcoffout.c: Likewise.
19075         * config/aarch64/aarch64-builtins.c: Likewise.
19076         * config/aarch64/aarch64.c: Likewise.
19077         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19078         * config/alpha/alpha.c: Likewise.
19079         * config/arc/arc.c: Likewise.
19080         * config/arm/aarch-common.c: Likewise.
19081         * config/arm/arm-builtins.c: Likewise.
19082         * config/arm/arm-c.c: Likewise.
19083         * config/arm/arm.c: Likewise.
19084         * config/avr/avr-c.c: Likewise.
19085         * config/avr/avr-log.c: Likewise.
19086         * config/avr/avr.c: Likewise.
19087         * config/bfin/bfin.c: Likewise.
19088         * config/c6x/c6x.c: Likewise.
19089         * config/cr16/cr16.c: Likewise.
19090         * config/cris/cris.c: Likewise.
19091         * config/darwin-c.c: Likewise.
19092         * config/darwin.c: Likewise.
19093         * config/default-c.c: Likewise.
19094         * config/epiphany/epiphany.c: Likewise.
19095         * config/epiphany/mode-switch-use.c: Likewise.
19096         * config/epiphany/resolve-sw-modes.c: Likewise.
19097         * config/fr30/fr30.c: Likewise.
19098         * config/frv/frv.c: Likewise.
19099         * config/ft32/ft32.c: Likewise.
19100         * config/glibc-c.c: Likewise.
19101         * config/h8300/h8300.c: Likewise.
19102         * config/i386/i386-c.c: Likewise.
19103         * config/i386/i386.c: Likewise.
19104         * config/i386/msformat-c.c: Likewise.
19105         * config/i386/winnt-cxx.c: Likewise.
19106         * config/i386/winnt-stubs.c: Likewise.
19107         * config/i386/winnt.c: Likewise.
19108         * config/ia64/ia64-c.c: Likewise.
19109         * config/ia64/ia64.c: Likewise.
19110         * config/iq2000/iq2000.c: Likewise.
19111         * config/lm32/lm32.c: Likewise.
19112         * config/m32c/m32c-pragma.c: Likewise.
19113         * config/m32c/m32c.c: Likewise.
19114         * config/m32r/m32r.c: Likewise.
19115         * config/m68k/m68k.c: Likewise.
19116         * config/mcore/mcore.c: Likewise.
19117         * config/mep/mep-pragma.c: Likewise.
19118         * config/mep/mep.c: Likewise.
19119         * config/microblaze/microblaze-c.c: Likewise.
19120         * config/microblaze/microblaze.c: Likewise.
19121         * config/mips/mips.c: Likewise.
19122         * config/mmix/mmix.c: Likewise.
19123         * config/mn10300/mn10300.c: Likewise.
19124         * config/moxie/moxie.c: Likewise.
19125         * config/msp430/msp430-c.c: Likewise.
19126         * config/msp430/msp430.c: Likewise.
19127         * config/nds32/nds32-cost.c: Likewise.
19128         * config/nds32/nds32-fp-as-gp.c: Likewise.
19129         * config/nds32/nds32-intrinsic.c: Likewise.
19130         * config/nds32/nds32-isr.c: Likewise.
19131         * config/nds32/nds32-md-auxiliary.c: Likewise.
19132         * config/nds32/nds32-memory-manipulation.c: Likewise.
19133         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19134         * config/nds32/nds32-predicates.c: Likewise.
19135         * config/nds32/nds32.c: Likewise.
19136         * config/nios2/nios2.c: Likewise.
19137         * config/nvptx/nvptx.c: Likewise.
19138         * config/pa/pa.c: Likewise.
19139         * config/pdp11/pdp11.c: Likewise.
19140         * config/rl78/rl78-c.c: Likewise.
19141         * config/rl78/rl78.c: Likewise.
19142         * config/rs6000/rs6000-c.c: Likewise.
19143         * config/rs6000/rs6000.c: Likewise.
19144         * config/rx/rx.c: Likewise.
19145         * config/s390/s390-c.c: Likewise.
19146         * config/s390/s390.c: Likewise.
19147         * config/sh/sh-c.c: Likewise.
19148         * config/sh/sh-mem.cc: Likewise.
19149         * config/sh/sh.c: Likewise.
19150         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19151         * config/sh/sh_treg_combine.cc: Likewise.
19152         * config/sol2-c.c: Likewise.
19153         * config/sol2-cxx.c: Likewise.
19154         * config/sol2-stubs.c: Likewise.
19155         * config/sol2.c: Likewise.
19156         * config/sparc/sparc-c.c: Likewise.
19157         * config/sparc/sparc.c: Likewise.
19158         * config/spu/spu-c.c: Likewise.
19159         * config/spu/spu.c: Likewise.
19160         * config/stormy16/stormy16.c: Likewise.
19161         * config/tilegx/mul-tables.c: Likewise.
19162         * config/tilegx/tilegx-c.c: Likewise.
19163         * config/tilegx/tilegx.c: Likewise.
19164         * config/tilepro/mul-tables.c: Likewise.
19165         * config/tilepro/tilepro-c.c: Likewise.
19166         * config/tilepro/tilepro.c: Likewise.
19167         * config/v850/v850-c.c: Likewise.
19168         * config/v850/v850.c: Likewise.
19169         * config/vax/vax.c: Likewise.
19170         * config/visium/visium.c: Likewise.
19171         * config/vms/vms-c.c: Likewise.
19172         * config/vms/vms.c: Likewise.
19173         * config/vxworks.c: Likewise.
19174         * config/winnt-c.c: Likewise.
19175         * config/xtensa/xtensa.c: Likewise.
19176         * common/config/bfin/bfin-common.c: Likewise.
19178 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
19180         * tree.h (tree_code_for_canonical_type_merging): New function.
19181         * tree.c (gimple_canonical_types_compatible_p): Use
19182         tree_code_for_canonical_type_merging..
19184 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19186         PR c++/66192
19187         PR target/66200
19188         * doc/tm.texi: Regenerate.
19189         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
19190         * target.def (TARGET_RELAXED_ORDERING): Likewise.
19191         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
19192         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
19193         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
19194         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
19195         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
19196         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
19197         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
19199 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19201         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
19202         register fma steering pass.
19203         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
19204         AARCH64_TUNE_FMA_STEERING.
19206 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
19208         * tree.c (verify_type_variant): Verify that type and variant is
19209         compatible.
19210         (gimple_canonical_types_compatible_p): Look for main variants.
19212 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
19214         * config.gcc (powerpc*-*-*): Add support for a new configure
19215         option --with-advance-toolchain=<xxx> which overrides using the
19216         default header files, libraries and dynamic linker.
19218         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
19219         specs to support the configure --with-advance-toolchain=<xxx>
19220         option.
19221         (INCLUDE_EXTRA_SPEC): Likewise.
19222         (LINK_OS_EXTRA_SPEC32): Likewise.
19223         (LINK_OK_EXTRA_SPEC64): Likewise.
19224         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
19225         (DYNAMIC_LINKER_PREFIX): Likewise.
19226         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
19227         toolchain support.
19228         (GLIBC_DYNAMIC_LINKER32): Likewise.
19229         (GLIBC_DYNAMIC_LINKER64): Likewise.
19230         (LINK_OS_LINUX_SPEC32): Likewise.
19231         (LINK_OS_LINUX_SPEC64): Likewise.
19233         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
19234         configuration option.
19236 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
19238         PR target/66275
19239         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
19240         to determine current function ABI.
19241         (ix86_function_value_regno_p): Ditto.
19243 2015-06-03  Martin Liska  <mliska@suse.cz>
19245         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
19246         * bitmap.h (struct bitmap_usage): Likewise.
19247         * ggc-common.c (struct ggc_usage): Likewise.
19248         * mem-stats.h (struct mem_location): Likewise.
19249         (struct mem_usage): Likewise.
19250         * vec.c (struct vec_usage): Likewise.
19252 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
19254         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
19255         -Bsymbolic.
19257 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
19259         * doc/plugins.texi (enum plugin_event): New event.
19260         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
19261         and PLUGIN_FINISH_FUNCTION.
19262         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
19263         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
19265 2015-06-03  Richard Biener  <rguenther@suse.de>
19267         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19268         compute GROUP_GAP for the first element.
19269         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
19270         on in-group gaps.
19272 2015-06-03  Nick Clifton  <nickc@redhat.com>
19274         * config/rl78/rl78-real.md: Add peepholes to avoid a register
19275         copy when calling a function.
19276         * config/rl78/rl78.c (need_to_save): Do not push the frame
19277         pointer in an interrupt handler prologue if it is never used.
19279 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19281         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
19283 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
19285         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
19286         reference when cloning alias node.
19288 2015-06-03  Martin Liska  <mliska@suse.cz>
19290         * alloc-pool.h (struct pool_usage): Correct space padding.
19291         * ggc-page.c (ggc_print_statistics): Align columns in a report.
19292         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
19293         * tree.c (dump_tree_statistics): Align columns in a report.
19295 2015-06-03  Martin Liska  <mliska@suse.cz>
19297         * alloc-pool.c (allocate_pool_descriptor): Remove.
19298         (struct pool_output_info): Likewise.
19299         (print_alloc_pool_statistics): Likewise.
19300         (dump_alloc_pool_statistics): Likewise.
19301         * alloc-pool.h (struct pool_usage): New struct.
19302         (pool_allocator::initialize): Change usage of memory statistics
19303         to a new interface.
19304         (pool_allocator::release): Likewise.
19305         (pool_allocator::allocate): Likewise.
19306         (pool_allocator::remove): Likewise.
19307         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
19308         for a pool allocator.
19309         * mem-stats.h (struct mem_location): Add new ctor.
19310         (struct mem_usage): Add counter for number of
19311         instances.
19312         (mem_alloc_description::register_descriptor): New overload of
19313         * mem-stats.h (mem_location::to_string): New function.
19314         * bitmap.h (struct bitmap_usage): Use this new function.
19315         * ggc-common.c (struct ggc_usage): Likewise.
19316         the function.
19318 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
19320         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
19321         of GCC_INSN_FLAGS_H block.
19323 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
19325         * explow.c (plus_constant): Update check after force_const_mem call
19326         to see if the value returned is not a NULL_RTX.
19328 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
19330         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
19331         remove instumentation thunks calling reachable functions.
19332         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
19333         * lto/lto-partition.c (privatize_symbol_name_1): New.
19334         (privatize_symbol_name): Privatize both decl and orig_decl
19335         names for instrumented functions.
19336         * cgraph.c (cgraph_node::verify_node): Add transparent
19337         alias chain check for instrumented node.
19339 2015-06-03  Marek Polacek  <polacek@redhat.com>
19341         PR c/64223
19342         PR c/29358
19343         * tree.c (attribute_value_equal): Handle attribute format.
19344         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
19346 2015-06-03  Richard Biener  <rguenther@suse.de>
19348         PR tree-optimization/63916
19349         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19350         Forward-propagate non-invariant addresses by splicing their
19351         reference ops if the result isn't going to be used by PRE.
19352         (vn_reference_lookup_3): Remove pointless assert.
19354 2015-06-03  Richard Biener  <rguenther@suse.de>
19356         PR tree-optimization/66375
19357         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
19358         add to the evolution before following SSA edges.
19360 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
19362         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
19363         (dump_use, dump_cand, find_induction_variables): Pass new argument
19364         to dump_iv.
19365         (record_use): Preserve the ssa name information in IV.
19367 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
19369         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
19370         NO_MODE_TEST.
19371         (add_mode_tests): Don't add mode tests if the predicate only
19372         accepts scalar constant integers.  Otherwise, allow the mode
19373         of "op" to be VOIDmode if the predicate does accept such integers.
19375 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
19377         PR target/66258
19378         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
19379         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
19380         (aarch64_secondary_reload): Likewise
19381         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
19382         to !TARGET_FLOAT.
19383         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
19384         Likewise.
19386 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
19387             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19389         PR target/65768
19390         * cprop.c (try_replace_reg): Check cost of constants before propagating.
19392 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
19394         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
19395         provide access to the IBM extended double floating point mode if
19396         long double is IEEE 128-bit floating point.
19397         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
19398         point if long double is the IBM extended double type.
19400         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
19401         enable adding IEEE 128-bit floating point support.
19402         (-mfloat128-software): Likewise.
19403         (-mfloat128-sw): Likewise.
19405         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
19406         128-bit floating point types to occupy any register if
19407         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
19408         -mfloat128-software is enabled.
19409         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
19410         support.
19411         (rs6000_option_override_internal): Add -mfloat128-* support.
19412         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
19414         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
19415         and float128 type nodes.
19416         (ieee128_float_type_node): Likewise.
19417         (ibm128_float_type_node): Likewise.
19419 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19421         PR target/66136
19422         * config/aarch64/geniterators.sh: Rewrite in awk.
19424 2015-06-02  Martin Liska  <mliska@suse.cz>
19426         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
19427         values to avoid -Wmaybe-uninitialized errors.
19429 2015-06-02  Richard Biener  <rguenther@suse.de>
19431         PR debug/65549
19432         * dwarf2out.c (lookup_context_die): New function.
19433         (resolve_addr): Avoid forcing a full DIE for the
19434         target of a DW_TAG_GNU_call_site during late compilation.
19435         Instead create a stub DIE without a type if we have a
19436         context DIE present.
19438 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
19440         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
19442 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
19444         PR tree-optimization/48052
19445         * cfgloop.h (struct control_iv): New.
19446         (struct loop): New field control_ivs.
19447         * tree-ssa-loop-niter.c : Include "stor-layout.h".
19448         (number_of_iterations_lt): Set no_overflow information.
19449         (number_of_iterations_exit): Init control iv in niter struct.
19450         (record_control_iv): New.
19451         (estimate_numbers_of_iterations_loop): Call record_control_iv.
19452         (loop_exits_before_overflow): New.  Interface factored out of
19453         scev_probably_wraps_p.
19454         (scev_probably_wraps_p): Factor loop niter related code into
19455         loop_exits_before_overflow.
19456         (free_numbers_of_iterations_estimates_loop): Free control ivs.
19457         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
19459 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
19461         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
19462         the target doesn't belong to the current function.
19464 2015-06-02  Marek Polacek  <polacek@redhat.com>
19466         PR middle-end/66345
19467         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
19468         get_maxval_strlen does not produce an INTEGER_CST.
19470 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
19472         * config/arc/constraints.md: Use lower-case names in match_code.
19473         * config/mmix/constraints.md: Likewise.
19475 2015-06-02  Richard Biener  <rguenther@suse.de>
19477         PR tree-optimization/65961
19478         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
19479         check and clarify dump message.
19480         (vect_build_slp_tree): If all children are built up from scalars
19481         build up the parent from scalars instead.
19482         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
19484 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
19486         PR other/65366
19487         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
19488         instead of print ... .
19490 2015-06-02  Alan Modra  <amodra@gmail.com>
19492         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
19493         2014-08-11 change.
19495 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
19497         PR tree-optimization/52563
19498         PR tree-optimization/62173
19499         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
19500         (alloc_iv, set_iv): New parameter.
19501         (determine_biv_step): Delete.
19502         (find_bivs): Inline original determine_biv_step.  Pass new
19503         argument to set_iv.
19504         (idx_find_step): Use no_overflow information for conversion.
19505         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
19506         resolve_mixers handle folded_casts.
19507         (instantiate_scev_name): Change bool parameter to bool pointer.
19508         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
19509         (instantiate_array_ref, instantiate_scev_not): Ditto.
19510         (instantiate_scev_3, instantiate_scev_2): Ditto.
19511         (instantiate_scev_1, instantiate_scev_r): Ditto.
19512         (instantiate_scev_convert, ): Change parameter.  Pass argument
19513         to chrec_convert_aggressive.
19514         (instantiate_scev): Change argument.
19515         (resolve_mixers): New parameter and set it.
19516         (scev_const_prop): New argument.
19517         * tree-scalar-evolution.h (resolve_mixers): New parameter.
19518         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
19519         of chrec_conert_1.
19520         (chrec_convert): New parameter.  Move definition below.
19521         (chrec_convert_aggressive): New parameter and set it.  Call
19522         convert_affine_scev.
19523         * tree-chrec.h (chrec_convert): New parameter.
19524         (chrec_convert_aggressive): Ditto.
19526 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
19528         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
19529         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
19530         the LHS of a no-return call if its type has variable size.
19531         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19532         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
19534 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
19536         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
19537         * config.in: Regenerate.
19539 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
19541         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
19542         consecutive accesses within outer-loop with force_vectorize
19543         for references with zero step in inner-loop.
19545 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
19547         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
19548         rather than from gcc/build directory.
19550 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
19552         PR target/65697
19553         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
19554         for __sync memory models, emit initial loads and final barriers as
19555         appropriate.
19557 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
19559         PR target/65697
19560         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
19561         (aarch64_split_atomic_op): Check for __sync memory models, emit
19562         appropriate initial loads and final barriers.
19564 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
19566         * Makefile.in: Fix gcov dependencies that should
19567         not point to a build folder.
19569 2015-06-01  Richard Biener  <rguenther@suse.de>
19571         Revert
19572         2015-05-29  Richard Biener  <rguenther@suse.de>
19574         PR tree-optimization/66314
19575         * tree-ssa-threadupdate.c (create_block_for_threading): Add
19576         parameter that says which loop the new block belongs to.
19577         (ssa_create_duplicates): Blocks duplicated for the threaded
19578         path belong to the loop of the thread destination.
19580 2015-06-01  Martin Liska  <mliska@suse.cz>
19582         * sched-deps.c: Include pool-alloc.h before
19583         cselib.h header file is included.
19585 2015-06-01  Richard Biener  <rguenther@suse.de>
19587         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
19588         functions.
19590 2015-06-01  Martin Liska  <mliska@suse.cz>
19592         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
19593         a function local variable.
19595 2015-06-01  Martin Liska  <mliska@suse.cz>
19597         * alloc-pool.c (create_alloc_pool): Remove.
19598         (empty_alloc_pool): Likewise.
19599         (free_alloc_pool): Likewise.
19600         (free_alloc_pool_if_empty): Likewise.
19601         (pool_alloc): Likewise.
19602         (pool_free): Likewise.
19603         * alloc-pool.h: Remove old declarations.
19605 2015-06-01  Martin Liska  <mliska@suse.cz>
19607         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
19608         (ira_create_object): Likewise.
19609         (ira_create_allocno): Likewise.
19610         (ira_create_live_range): Likewise.
19611         (copy_live_range): Likewise.
19612         (ira_finish_live_range): Likewise.
19613         (ira_free_allocno_costs): Likewise.
19614         (finish_allocno): Likewise.
19615         (finish_allocnos): Likewise.
19616         (initiate_prefs): Likewise.
19617         (ira_create_pref): Likewise.
19618         (finish_pref): Likewise.
19619         (finish_prefs): Likewise.
19620         (initiate_copies): Likewise.
19621         (ira_create_copy): Likewise.
19622         (finish_copy): Likewise.
19623         (finish_copies): Likewise.
19624         (finish_prefs): Likewise.
19626 2015-06-01  Martin Liska  <mliska@suse.cz>
19628         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
19629         (allocate_and_init_ipcp_value): Likewise.
19630         (ipcp_lattice::add_value): Likewise.
19631         (merge_agg_lats_step): Likewise.
19632         (ipcp_driver): Likewise.
19633         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
19634         (ipa_free_all_structures_after_iinln): Likewise.
19635         * ipa-prop.h: Likewise.
19637 2015-06-01  Martin Liska  <mliska@suse.cz>
19639         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
19640         pool allocator.
19641         (set_hint_predicate): Likewise.
19642         (inline_summary_alloc): Likewise.
19643         (reset_inline_edge_summary): Likewise.
19644         (reset_inline_summary): Likewise.
19645         (set_cond_stmt_execution_predicate): Likewise.
19646         (set_switch_stmt_execution_predicate): Likewise.
19647         (compute_bb_predicates): Likewise.
19648         (estimate_function_body_sizes): Likewise.
19649         (inline_free_summary): Likewise.
19651 2015-06-01  Martin Liska  <mliska@suse.cz>
19653         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
19654         (ipa_edge_duplication_hook): Likewise.
19655         (ipa_free_all_structures_after_ipa_cp): Likewise.
19656         (ipa_free_all_structures_after_iinln): Likewise.
19658 2015-06-01  Martin Liska  <mliska@suse.cz>
19660         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
19661         (ipa_profile_generate_summary): Likewise.
19662         (ipa_profile_read_summary): Likewise.
19663         (ipa_profile): Likewise.
19665 2015-06-01  Martin Liska  <mliska@suse.cz>
19667         * tree-ssa-structalias.c (new_var_info): Use new type-based
19668         pool allocator.
19669         (new_constraint): Likewise.
19670         (init_alias_vars): Likewise.
19671         (delete_points_to_sets): Likewise.
19673 2015-06-01  Martin Liska  <mliska@suse.cz>
19675         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
19676         (free_strinfo): Likewise.
19677         (pass_strlen::execute): Likewise.
19679 2015-06-01  Martin Liska  <mliska@suse.cz>
19681         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
19682         pool allocator.
19683         (vn_reference_insert_pieces): Likewise.
19684         (vn_phi_insert): Likewise.
19685         (visit_reference_op_call): Likewise.
19686         (copy_phi): Likewise.
19687         (copy_reference): Likewise.
19688         (process_scc): Likewise.
19689         (allocate_vn_table): Likewise.
19690         (free_vn_table): Likewise.
19692 2015-06-01  Martin Liska  <mliska@suse.cz>
19694         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
19695         pool allocator.
19696         (add_repeat_to_ops_vec): Likewise.
19697         (get_ops): Likewise.
19698         (maybe_optimize_range_tests): Likewise.
19699         (init_reassoc): Likewise.
19700         (fini_reassoc): Likewise.
19702 2015-06-01  Martin Liska  <mliska@suse.cz>
19704         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
19705         pool allocator.
19706         (bitmap_set_new): Likewise.
19707         (get_or_alloc_expr_for_constant): Likewise.
19708         (get_or_alloc_expr_for): Likewise.
19709         (phi_translate_1): Likewise.
19710         (compute_avail): Likewise.
19711         (init_pre): Likewise.
19712         (fini_pre): Likewise.
19714 2015-06-01  Martin Liska  <mliska@suse.cz>
19716         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
19717         (delete_dep_node): Likewise.
19718         (create_deps_list): Likewise.
19719         (free_deps_list): Likewise.
19720         (sched_deps_init): Likewise.
19721         (sched_deps_finish): Likewise.
19723 2015-06-01  Martin Liska  <mliska@suse.cz>
19725         * regcprop.c (free_debug_insn_changes): Use new type-based
19726         pool allocator.
19727         (replace_oldest_value_reg): Likewise.
19728         (pass_cprop_hardreg::execute): Likewise.
19730 2015-06-01  Martin Liska  <mliska@suse.cz>
19732         * ira-build.c (initiate_cost_vectors): Use new type-based
19733         pool allocator.
19734         (ira_allocate_cost_vector): Likewise.
19735         (ira_free_cost_vector): Likewise.
19736         (finish_cost_vectors): Likewise.
19738 2015-06-01  Martin Liska  <mliska@suse.cz>
19740         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
19741         pool allocator.
19742         (free_sched_pools): Likewise.
19743         * sel-sched-ir.h (_list_alloc): Likewise.
19744         (_list_remove): Likewise.
19746 2015-06-01  Martin Liska  <mliska@suse.cz>
19748         * stmt.c (add_case_node): Use new type-based pool allocator.
19749         (expand_case): Likewise.
19750         (expand_sjlj_dispatch_table): Likewise.
19752 2015-06-01  Martin Liska  <mliska@suse.cz>
19754         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
19755         (free_bb): Likewise.
19756         (pass_cse_reciprocals::execute): Likewise.
19758 2015-06-01  Martin Liska  <mliska@suse.cz>
19760         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
19761         (sra_deinitialize) Likewise.
19762         (create_access_1) Likewise.
19763         (build_accesses_from_assign) Likewise.
19764         (create_artificial_child_access) Likewise.
19766 2015-06-01  Martin Liska  <mliska@suse.cz>
19768         * dse.c (get_group_info):Use new type-based pool allocator.
19769         (dse_step0) Likewise.
19770         (free_store_info) Likewise.
19771         (delete_dead_store_insn) Likewise.
19772         (free_read_records) Likewise.
19773         (record_store) Likewise.
19774         (replace_read) Likewise.
19775         (check_mem_read_rtx) Likewise.
19776         (scan_insn) Likewise.
19777         (dse_step1) Likewise.
19778         (dse_step7) Likewise.
19780 2015-06-01  Martin Liska  <mliska@suse.cz>
19782         * df-scan.c (struct df_scan_problem_data):Use new type-based
19783         pool allocator.
19784         (df_scan_free_internal) Likewise.
19785         (df_scan_alloc) Likewise.
19786         (df_grow_reg_info) Likewise.
19787         (df_free_ref) Likewise.
19788         (df_insn_create_insn_record) Likewise.
19789         (df_mw_hardreg_chain_delete) Likewise.
19790         (df_insn_info_delete) Likewise.
19791         (df_free_collection_rec) Likewise.
19792         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
19793         (df_sort_and_compress_mws) Likewise.
19794         (df_ref_create_structure) Likewise.
19795         (df_ref_record) Likewise.
19797 2015-06-01  Martin Liska  <mliska@suse.cz>
19799         * df-problems.c (df_chain_create):Use new type-based pool allocator.
19800         (df_chain_unlink_1) Likewise.
19801         (df_chain_unlink) Likewise.
19802         (df_chain_remove_problem) Likewise.
19803         (df_chain_alloc) Likewise.
19804         (df_chain_free) Likewise.
19805         * df.h (struct dataflow) Likewise.
19807 2015-06-01  Martin Liska  <mliska@suse.cz>
19809         * cselib.c (new_elt_list):Use new type-based pool allocator.
19810         (new_elt_loc_list) Likewise.
19811         (unchain_one_elt_list) Likewise.
19812         (unchain_one_elt_loc_list) Likewise.
19813         (unchain_one_value) Likewise.
19814         (new_cselib_val) Likewise.
19815         (cselib_init) Likewise.
19816         (cselib_finish) Likewise.
19818 2015-06-01  Martin Liska  <mliska@suse.cz>
19820         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
19821         (sh_reorg) Likewise.
19823 2015-06-01  Martin Liska  <mliska@suse.cz>
19825         * cfg.c (initialize_original_copy_tables):Use new type-based
19826         pool allocator.
19827         (free_original_copy_tables) Likewise.
19828         (copy_original_table_clear) Likewise.
19829         (copy_original_table_set) Likewise.
19831 2015-06-01  Martin Liska  <mliska@suse.cz>
19833         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
19834         pool allocator.
19835         (asan_mem_ref_new) Likewise.
19836         (free_mem_ref_resources) Likewise.
19838 2015-06-01  Martin Liska  <mliska@suse.cz>
19840         * var-tracking.c (variable_htab_free):Use new type-based
19841         pool allocator.
19842         (attrs_list_clear) Likewise.
19843         (attrs_list_insert) Likewise.
19844         (attrs_list_copy) Likewise.
19845         (shared_hash_unshare) Likewise.
19846         (shared_hash_destroy) Likewise.
19847         (unshare_variable) Likewise.
19848         (var_reg_delete_and_set) Likewise.
19849         (var_reg_delete) Likewise.
19850         (var_regno_delete) Likewise.
19851         (drop_overlapping_mem_locs) Likewise.
19852         (variable_union) Likewise.
19853         (insert_into_intersection) Likewise.
19854         (canonicalize_values_star) Likewise.
19855         (variable_merge_over_cur) Likewise.
19856         (dataflow_set_merge) Likewise.
19857         (remove_duplicate_values) Likewise.
19858         (variable_post_merge_new_vals) Likewise.
19859         (dataflow_set_preserve_mem_locs) Likewise.
19860         (dataflow_set_remove_mem_locs) Likewise.
19861         (variable_from_dropped) Likewise.
19862         (variable_was_changed) Likewise.
19863         (set_slot_part) Likewise.
19864         (clobber_slot_part) Likewise.
19865         (delete_slot_part) Likewise.
19866         (loc_exp_insert_dep) Likewise.
19867         (notify_dependents_of_changed_value) Likewise.
19868         (emit_notes_for_differences_1) Likewise.
19869         (vt_emit_notes) Likewise.
19870         (vt_initialize) Likewise.
19871         (vt_finalize) Likewise.
19873 2015-06-01  Martin Liska  <mliska@suse.cz>
19875         * ira-color.c (init_update_cost_records):Use new type-based
19876         pool allocator.
19877         (get_update_cost_record) Likewise.
19878         (free_update_cost_record_list) Likewise.
19879         (finish_update_cost_records) Likewise.
19880         (initiate_cost_update) Likewise.
19882 2015-06-01  Martin Liska  <mliska@suse.cz>
19884         * lra.c (init_insn_regs): Use new type-based pool allocator.
19885         (new_insn_reg) Likewise.
19886         (free_insn_reg) Likewise.
19887         (free_insn_regs) Likewise.
19888         (finish_insn_regs) Likewise.
19889         (init_insn_recog_data) Likewise.
19890         (init_reg_info) Likewise.
19891         (finish_reg_info) Likewise.
19892         (lra_free_copies) Likewise.
19893         (lra_create_copy) Likewise.
19894         (invalidate_insn_data_regno_info) Likewise.
19896 2015-06-01  Martin Liska  <mliska@suse.cz>
19898         * lra-lives.c (free_live_range): Use new type-based pool allocator.
19899         (free_live_range_list) Likewise.
19900         (create_live_range) Likewise.
19901         (copy_live_range) Likewise.
19902         (lra_merge_live_ranges) Likewise.
19903         (remove_some_program_points_and_update_live_ranges) Likewise.
19904         (lra_live_ranges_init) Likewise.
19905         (lra_live_ranges_finish) Likewise.
19907 2015-06-01  Martin Liska  <mliska@suse.cz>
19909         * et-forest.c (et_new_occ): Use new type-based pool allocator.
19910         (et_new_tree): Likewise.
19911         (et_free_tree): Likewise.
19912         (et_free_tree_force): Likewise.
19913         (et_free_pools): Likewise.
19914         (et_split): Likewise.
19916 2015-06-01  Martin Liska  <mliska@suse.cz>
19918         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
19919         to header file.
19920         * alloc-pool.h (pool_allocator::pool_allocator): New function.
19921         (pool_allocator::release): Likewise.
19922         (inline pool_allocator::release_if_empty): Likewise.
19923         (inline pool_allocator::~pool_allocator): Likewise.
19924         (pool_allocator::allocate): Likewise.
19925         (pool_allocator::remove): Likewise.
19927 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19929         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
19930         in comment.
19932 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19934         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
19935         to fusible_ops.
19936         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
19937         (arm_macro_fusion_p): Likewise.
19938         (arm_macro_fusion_pair_p): Likewise.
19940 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19942         * config/aarch64/aarch64-protos.h (tune_params): Rename
19943         fuseable_ops to fusible_ops.
19944         * config/aarch64/aarch64.c (generic_tunings): Rename
19945         fuseable_ops to fusible_ops.
19946         (cortexa53_tunings): Likewise.
19947         (cortexa57_tunings): Likewise.
19948         (thunderx_tunings): Likewise.
19949         (xgene1_tunings): Likewise.
19950         (aarch64_macro_fusion_p): Likewise.
19951         (aarch64_macro_fusion_pair_p): Likewise.
19953 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19955         * config/s390/driver-native.c: New file.
19956         * config/s390/x-native: New file.
19957         * config.host: Add new files for s390.
19958         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
19959         and -march=native
19960         * config.gcc: Likewise.
19961         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
19962         * config/s390/s390-opts.h (enum processor_type): Ditto.
19963         * config/s390/s390.c (s390_option_override): Catch unhandled
19964         PROCESSOR_NATIVE
19966 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
19968         PR target/65527
19969         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
19970         redirection for instrumented calls.
19971         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
19972         (append_compiler_options): Append -fcheck-pointer-bounds.
19973         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
19974         (chkp_redirect_edge): New.
19975         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
19976         (chkp_redirect_edge): New.
19978 2015-06-01  Richard Biener  <rguenther@suse.de>
19980         PR tree-optimization/66280
19981         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
19982         def-use walking.
19984 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19986         * config/aarch64/aarch64.md
19987         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
19988         logic_shift_imm.
19990 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
19992         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
19993         Remove obsolete kludge.
19995 2015-06-01  Richard Biener  <rguenther@suse.de>
19997         * tree-ssa-reassoc.c (get_rank): Simplify.
19999 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
20001         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
20002         * configure: Regenerated.
20004 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
20006         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
20007         issue (add space between string literal and macro).
20008         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
20010 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
20012         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
20013         implict or explicit -fPIE or -fpie.
20015 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
20017         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
20019 2015-05-28  DJ Delorie  <dj@redhat.com>
20021         * expmed.c (extract_bit_field_1): Avoid clobbering a
20022         yet-to-be-used base/index register.
20024 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
20026         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
20027         (alias_stats): Add num_universal.
20028         (alias_set_subset_of): Special case pointers; be ready for NULL
20029         children.
20030         (alias_sets_conflict_p): Special case pointers; be ready for NULL
20031         children.
20032         (init_alias_set_entry): Break out from ...
20033         (record_alias_subset): ... here; propagate new fields;
20034         allocate children only when really needed.
20035         (get_alias_set): Do less generous pointer globbing.
20036         (dump_alias_stats_in_alias_c): Update statistics.
20038 2015-05-30  Alan Modra  <amodra@gmail.com>
20040         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
20041         correct block for use of r12.
20042         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
20044 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20046         PR target/66215
20047         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
20048         with -mhotpatch=.
20050 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
20052         PR tree-optimization/66142
20053         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
20054         virtual phis that feed themselves.
20056 2015-05-29  Richard Biener  <rguenther@suse.de>
20058         PR tree-optimization/66314
20059         * tree-ssa-threadupdate.c (create_block_for_threading): Add
20060         parameter that says which loop the new block belongs to.
20061         (ssa_create_duplicates): Blocks duplicated for the threaded
20062         path belong to the loop of the thread destination.
20064 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20066         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
20067         to cleanup-saved-temps.
20068         * doc/sourcebuild.texi (Clean up generated test files): Expand
20069         introduction.
20070         (dg-keep-saved-temps): Document new proc.
20071         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
20072         cleanup-saved-temps): Remove.
20074 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
20076         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
20077         gcc_AC_CHECK_DECLS.
20078         * configure: Regenerate.
20080 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
20082         * config/nios2/linux.h (CPP_SPEC): Define.
20084 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
20086         * config/microblaze/linux.h (CPP_SPEC): Define.
20088 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
20090         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
20091         -pthread is specified.
20093 2015-05-28  Richard Biener  <rguenther@suse.de>
20095         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
20096         (vect_fixup_scalar_cycles_with_patterns): Likewise.
20097         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
20098         after pattern recog.
20099         (vect_create_epilog_for_reduction): Properly handle reductions
20100         with patterns.
20101         (vectorizable_reduction): Likewise.
20102         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
20103         reduction chains.
20104         (vect_get_constant_vectors): Create the correct number of
20105         initial values for reductions.
20106         (vect_schedule_slp_instance): Handle reduction chains that are
20107         type changing properly.
20108         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
20110 2015-05-28  Richard Biener  <rguenther@suse.de>
20112         PR tree-optimization/66142
20113         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
20114         values better in memcpy destination handling.  Handle non-aliasing
20115         we discover here.
20117 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
20119         PR target/63810
20120         * config/darwin-c.c (version_components): New global enum.
20121         (parse_version, version_as_legacy_macro)
20122         (version_as_modern_macro, macosx_version_as_macro): New functions.
20123         (version_as_macro): Remove.
20124         (darwin_cpp_builtins): Use new function.
20126 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
20128         * builtins.c (expand_builtin_acc_on_device): Mark parameters
20129         with ATTRIBUTE_UNUSED.
20131 2015-05-28  Julian Brown  <julian@codesourcery.com>
20133         PR libgomp/65742
20135         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
20136         sequence for !ACCEL_COMPILER.
20138 2015-05-28  Nick Clifton  <nickc@redhat.com>
20140         * config/rx/rx.c (push_regs): New function.  Extracts code from...
20141         (rx_expand_prologue): ... here.  Use push_regs to push even small
20142         spans of registers.
20143         (pop_regs): New function.
20144         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
20145         registers.
20147 2015-05-28  Richard Biener  <rguenther@suse.de>
20149         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
20150         member.
20151         (SLP_INSTANCE_BODY_COST_VEC): Remove.
20152         (vect_update_slp_costs_according_to_vf): Likewise.
20153         (vect_slp_analyze_operations): Update prototype.
20154         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
20155         vect_update_slp_costs_according_to_vf, adjust.
20156         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
20157         (vect_analyze_slp_cost_1): Likewise.
20158         (vect_analyze_slp_cost): Likewise.  Properly deal with
20159         widening reduction ops.  Commit body costs.
20160         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
20161         cost for loops from here.
20162         (vect_slp_analyze_operations): But do it from here when
20163         the vectorization factor is known and stmts are analyzed.
20164         (vect_bb_vectorization_profitable_p): Simplify.
20165         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
20166         (vect_update_slp_costs_according_to_vf): Remove.
20168 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
20169             H.J. Lu  <hongjiu.lu@intel.com>
20171         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
20172         (BUILD_CFLAGS): Likewise.
20173         (BUILD_CXXFLAGS): Likewise.
20174         (LINKER): Add @NO_PIE_FLAG@.
20175         (BUILD_LDFLAGS): Likewise.
20176         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
20177         --enable-default-pie.
20178         * common.opt (fPIE): Initialize to -1.
20179         (fpie): Likewise.
20180         (no-pie): New option.
20181         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
20182         * configure.ac: Add --enable-default-pie.
20183         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
20184         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
20185         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
20186         * gcc.c (NO_PIE_SPEC): New.
20187         (PIE_SPEC): Likewise.
20188         (NO_FPIE1_SPEC): Likewise.
20189         (FPIE1_SPEC): Likewise.
20190         (NO_FPIE2_SPEC): Likewise.
20191         (FPIE2_SPEC): Likewise.
20192         (NO_FPIE2_SPEC): Likewise.
20193         (FPIE_SPEC): Likewise.
20194         (NO_FPIE_SPEC): Likewise.
20195         (NO_FPIC1_SPEC): Likewise.
20196         (FPIC1_SPEC): Likewise.
20197         (NO_FPIC2_SPEC): Likewise.
20198         (FPIC2_SPEC): Likewise.
20199         (NO_FPIC2_SPEC): Likewise.
20200         (FPIC_SPEC): Likewise.
20201         (NO_FPIC_SPEC): Likewise.
20202         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
20203         (FPIE1_OR_FPIC1_SPEC): Likewise.
20204         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
20205         (FPIE2_OR_FPIC2_SPEC): Likewise.
20206         (NO_FPIE_AND_FPIC_SPEC): Likewise.
20207         (FPIE_OR_FPIC_SPEC): Likewise.
20208         (LD_PIE_SPEC): Likewise.
20209         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
20210         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
20211         * config/darwin.h (PIE_SPEC): Renamed to ...
20212         (DARWIN_PIE_SPEC): This.
20213         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
20214         * config/darwin9.h (PIE_SPEC): Renamed to ...
20215         (DARWIN_PIE_SPEC): This.
20216         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
20217         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
20218         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
20219         FPIE2_OR_FPIC2_SPEC.
20220         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
20221         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
20222         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
20223         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20224         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20225         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20226         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
20227         * config/m32r/m32r.h (ASM_SPEC): Likewise.
20228         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
20229         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20230         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
20231         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
20232         * config/sparc/linux.h (ASM_SPEC): Likewise.
20233         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20234         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
20235         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
20236         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20237         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20238         * config/sparc/sparc.h (ASM_SPEC): Likewise.
20239         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
20240         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
20241         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
20242         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
20243         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
20244         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
20245         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
20246         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
20247         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
20248         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
20249         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
20250         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
20251         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20252         * config/vax/linux.h (ASM_SPEC): Likewise.
20253         * doc/install.texi: Document --enable-default-pie.
20254         * doc/invoke.texi: Document -no-pie.
20255         * config.in: Regenerated.
20256         * configure: Likewise.
20258 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20260         PR rtl-optimization/66168
20261         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
20262         can_move_invariant_reg.
20264 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
20266         PR target/66148
20267         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
20268         REG_EQUAL note when doing insert.
20270         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
20271         instead of "%d" for 'o' operand.
20273 2015-05-27  Nathan Sidwell  <nathan@acm.org>
20275         PR c++/66270
20276         * tree.c (build_pointer_type_for_mode): Canonical type does not
20277         inherit can_alias_all.
20278         (build_reference_type_for_mode): Likewise.
20280 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20282         * expr.h (array_at_struct_end_p): Move to...
20283         (array_ref_element_size): Likewise.
20284         (component_ref_field_offset): Likewise.
20285         * tree.h (array_ref_element_size): ...here.
20286         (array_at_struct_end_p): Likewise.
20287         (component_ref_field_offset): Likewise.
20288         * expr.c (array_ref_element_size): Move to...
20289         (array_ref_low_bound): Likewise.
20290         (array_at_struct_end_p): Likewise.
20291         (array_ref_up_bound): Likewise.
20292         (component_ref_field_offset): Likewise.
20293         * tree.c (array_ref_element_size): ...here.
20294         (array_ref_low_bound): Likewise.
20295         (array_ref_up_bound): Likewise.
20296         (array_at_struct_end_p): Likewise.
20297         (component_ref_field_offset): Likewise.
20299 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
20300             Szabolcs Nagy  <szabolcs.nagy@arm.com>
20302         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
20304 2015-05-27  Jason Merrill  <jason@redhat.com>
20306         PR bootstrap/66304
20307         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
20308         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
20309         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
20311 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
20313         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
20314         is true.
20316         * statistics.c (statistics_fini_pass): Print pass name.
20318 2015-05-27  Richard Biener  <rguenther@suse.de>
20320         PR tree-optimization/66272
20321         Revert parts of
20322         2014-08-15  Richard Biener  <rguenther@suse.de>
20324         PR tree-optimization/62031
20325         * tree-data-ref.c (dr_analyze_indices): Do not set
20326         DR_UNCONSTRAINED_BASE.
20327         (dr_may_alias_p): All indirect accesses have to go the
20328         formerly DR_UNCONSTRAINED_BASE path.
20329         * tree-data-ref.h (struct indices): Remove
20330         unconstrained_base member.
20331         (DR_UNCONSTRAINED_BASE): Remove.
20333 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
20335         * dwarf2out.c: Remove block_map.
20336         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
20337         (gen_lexical_block_die): Same.
20338         (dwarf2out_function_decl): Remove block_map use.
20339         (dwarf2out_c_finalize): Same.
20340         * tree-core.h (struct tree_block): Add die field.
20341         * tree.h (BLOCK_DIE): New.
20343 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20345         PR target/65358
20346         * expr.c (memory_load_overlap): New function.
20347         (emit_push_insn): When pushing partial args to the stack would
20348         clobber the register part load the overlapping part into a pseudo
20349         and put it into the hard reg after pushing.  Change return type
20350         to bool.  Add bool argument.
20351         * expr.h (emit_push_insn): Change return type to bool.
20352         Add bool argument.
20353         * calls.c (expand_call): Cancel sibcall optimization when encountering
20354         partial argument on targets with ARGS_GROW_DOWNWARD and
20355         !STACK_GROWS_DOWNWARD.
20356         (emit_library_call_value_1): Update callsite of emit_push_insn.
20357         (store_one_arg): Likewise.
20359 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
20361         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
20363 2015-05-27  Martin Liska  <mliska@suse.cz>
20365         * Makefile.in: Add additional dependencies related to memory report
20366         enhancement.
20367         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
20368         * bitmap.c (struct bitmap_descriptor_d): Remove.
20369         (struct loc): Likewise.
20370         (struct bitmap_desc_hasher): Likewise.
20371         (bitmap_desc_hasher::hash): Likewise.
20372         (bitmap_desc_hasher::equal): Likewise.
20373         (get_bitmap_descriptor): Likewise.
20374         (bitmap_register): User new memory descriptor API.
20375         (register_overhead): Likewise.
20376         (bitmap_find_bit): Register nsearches and search_iter statistics.
20377         (struct bitmap_output_info): Remove.
20378         (print_statistics): Likewise.
20379         (dump_bitmap_statistics): Use new memory descriptor.
20380         * bitmap.h (struct bitmap_usage): New class.
20381         * genmatch.c: Extend header file inclusion.
20382         * genpreds.c: Likewise.
20383         * ggc-common.c (struct ggc_usage): New class.
20384         (struct ggc_loc_desc_hasher): Remove.
20385         (ggc_loc_desc_hasher::hash): Likewise.
20386         (ggc_loc_desc_hasher::equal): Likewise.
20387         (struct ggc_ptr_hash_entry): Likewise.
20388         (struct ptr_hash_hasher): Likewise.
20389         (ptr_hash_hasher::hash): Likewise.
20390         (ptr_hash_hasher::equal): Likewise.
20391         (make_loc_descriptor): Likewise.
20392         (ggc_prune_ptr): Likewise.
20393         (dump_ggc_loc_statistics): Use new memory descriptor.
20394         (ggc_record_overhead): Likewise.
20395         (ggc_free_overhead): Likewise.
20396         (final_cmp_statistic): Remove.
20397         (cmp_statistic): Likewise.
20398         (ggc_add_statistics): Liekwise.
20399         (ggc_prune_overhead_list): Likewise.
20400         * hash-map-traits.h: New file.
20401         * hash-map.h (struct default_hashmap_traits): Move the traits to a
20402         separate header file.
20403         * hash-set.h: Pass memory statistics info to ctor.
20404         * hash-table.c (void dump_hash_table_loc_statistics): New function.
20405         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
20406         (hash_table::~hash_table): Register memory release operation.
20407         (hash_table::alloc_entries): Handle memory allocation operation.
20408         (hash_table::expand): Likewise.
20409         * inchash.c (iterative_hash_hashval_t): Move implementation to header
20410         file.
20411         (iterative_hash_host_wide_int): Likewise.
20412         * inchash.h (class hash): Likewise.
20413         * mem-stats-traits.h: New file.
20414         * mem-stats.h: New file.
20415         (mem_location): Add new class.
20416         (mem_usage): Likewise.
20417         (mem_alloc_description): Likewise.
20418         * sese.c: Add new header file inclusision.
20419         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
20420         and hash_set.
20421         * tree-sra.c: Add new header file inclusision.
20422         * vec.c (struct vec_descriptor): Remove.
20423         (hash_descriptor): Likewise.
20424         (struct vec_usage): Likewise.
20425         (struct ptr_hash_entry): Likewise.
20426         (hash_ptr): Likewise.
20427         (eq_ptr): Likewise.
20428         (vec_prefix::register_overhead): Use new memory descriptor API.
20429         (vec_prefix::release_overhead): Likewise.
20430         (add_statistics): Remove.
20431         (dump_vec_loc_statistics): Use new memory descriptor API.
20432         * vec.h (struct vec_prefix): Likewise.
20433         (va_heap::reserve): Likewise.
20434         (va_heap::release): Likewise.
20435         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
20437 2015-05-27  Richard Biener  <rguenther@suse.de>
20439         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
20440         earlier and remove ??? comment.
20441         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
20442         and got called from loop analysis bail out.  Always pass the SLP
20443         node to the vectorizable_* functions.
20444         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
20445         the premature SLP check here.
20446         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
20447         detected SLP stmts.
20448         (vect_detect_hybrid_slp_1): Likewise.
20450 2015-05-26  Jeff Law  <law@redhat.com>
20452         * combine.c (find_split_point): Verify that the shift count is a
20453         constant when choosing (plus (ashift ...)) as a split point.
20455         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
20456         No functional changes.
20458 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
20460         * ipa-polymorphic-call.c
20461         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
20462         case when call target is already known.
20464 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
20466         PR target/65979
20467         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
20468         take into account the case that operands[1] and operands[2]
20469         are the same register.
20471 2015-05-26  Michael Matz  <matz@suse.de>
20473         PR middle-end/66251
20475         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
20476         stores.
20477         (vect_create_vectorized_demotion_stmts): Always set
20478         STMT_VINFO_VEC_STMT, also with SLP.
20479         (vectorizable_store): Handle strided group stores.
20481 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20483         PR target/66049
20484         * config/aarch64/aarch64.md
20485         (*adds_shift_imm_<mode>):  New pattern.
20486         (*subs_shift_imm_<mode>):  Likewise.
20487         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
20488         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
20489         (*add_uxt<mode>_shift2): Likewise.
20490         (*add_uxtsi_shift2_uxtw): Likewise.
20491         (*sub_uxt<mode>_shift2): Likewise.
20492         (*sub_uxtsi_shift2_uxtw): Likewise.
20494 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
20496         * config/rs6000/constraints.md (Y, U): Use match_test.
20498 2015-05-26  Christian Bruel  <christian.bruel@st.com>
20500         PR target/52144
20501         * config/arm/arm.c (arm_option_check_internal)
20502         (arm_option_params_internal): Check opts->target_flags to set macros.
20503         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20504         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
20505         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20506         (builtin_define): Replaced with def_or_undef_macro.
20507         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20508         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
20509         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20510         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
20511         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
20512         (TARGET_ARM_FEATURE_LDREX_P)
20513         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
20514         * config/arm/arm-c.c (def_or_undef_macro): New function.
20515         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
20517 2015-05-26  Christian Bruel  <christian.bruel@st.com>
20519         * c-common.h (builtin_define_with_int_value)
20520         (builtin_define_type_sizeof): Declare.
20521         * c-cppbuiltin.c (builtin_define_with_int_value)
20522         (builtin_define_type_sizeof): Externalize.
20523         (builtin_define_std): Cleanup declaration.
20524         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
20525         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
20526         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
20527         (builtin_define, builtin_assert): New macros.
20529 2015-05-26  Richard Biener  <rguenther@suse.de>
20531         PR tree-optimization/66142
20532         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
20533         MEM_REFs for the same base address.
20535 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20537         PR ipa/66181
20538         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
20540 2015-05-26  Jason Merrill  <jason@redhat.com>
20542         * configure.ac: Set CXXFLAGS for ISL test.
20543         * configure: Regenerate.
20545         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
20546         strstr and basename.
20547         * configure: Regenerate.
20549 2015-05-26  Richard Biener  <rguenther@suse.de>
20551         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
20552         X % C -> X & (C - 1) for C being a power-of two to ...
20553         * match.pd: ... patterns.
20555 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
20557         * match.pd (swapped_tcc_comparison): New operator list.
20558         (-A CMP -B): New simplification.
20559         * fold-const.c (fold_comparison): Remove corresponding code.
20561 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
20563         * caller-save.c (init_caller_save): Base temporary register numbers
20564         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
20565         * cfgloopanal.c (init_set_costs): Likewise.
20566         * dojump.c (prefer_and_bit_test): Likewise.
20567         * expr.c (init_expr_target): Likewise.
20568         * ira.c (setup_prohibited_mode_move_regs): Likewise.
20569         * lower-subreg.c (init_lower_subreg): Likewise.
20570         * postreload.c (reload_cse_regs_1): Likewise.
20572 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
20574         * gensupport.h (compute_test_codes): Declare.
20575         * gensupport.c (compute_predicate_codes): Rename to...
20576         (compute_test_codes): ...this.  Generalize error message.
20577         (process_define_predicate): Update accordingly.
20578         * genpreds.c (compute_maybe_allows): Delete.
20579         (add_constraint): Use compute_test_codes to determine whether
20580         something can accept a SUBREG, REG or MEM.
20582 2015-05-26  Torvald Riegel  <triegel@redhat.com>
20584         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
20585         'memory model' to align with C++11; fix description of memory orders;
20586         fix a few typos.
20588 2015-05-26  Richard Biener  <rguenther@suse.de>
20590         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
20591         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
20592         detect whether we apply SLP.  Remove call to
20593         vect_update_slp_costs_according_to_vf.
20594         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
20595         vect_update_slp_costs_according_to_vf from here.  Dispatch
20596         to vect_slp_analyze_operations to analyze SLP stmts.
20597         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
20598         unused bb_vec_info parameter, adjust assert.
20599         (vect_slp_analyze_operations): Pass in the slp instance tree
20600         instead of bb_vec_info.
20601         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
20602         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
20604 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
20606         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
20607         Q_REGS.  Expand comment.
20608         (REG_CLASS_NAMES): Ditto.
20609         (REG_CLASS_CONTENTS): Ditto.
20611 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
20613         PR target/66274
20614         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
20615         when LEGACY_INT_REGNO_P is processed.
20617 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
20619         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
20621 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
20623         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
20624         register if not marked dead/unused, before return.
20626 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20628         PR lto/66180
20629         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
20630         is set; check for assembler name at LTO time.
20631         (type_in_anonymous_namespace): Remove hacks, check that all
20632         anonymous types are called "<anon>"
20633         (odr_type_p): Simplify; add check for "<anon>"
20634         (odr_subtypes_equivalent): Add odr_type_p check.
20635         * tree.c (need_assembler_name_p): Even anonymous namespace needs
20636         assembler name.
20638 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20640         * ipa-utils.h (method_class_type): Remove.
20641         * cgraphunit.c (walk_polymorphic_call_targets): Use
20642         TYPE_METHOD_BASETYPE.
20643         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
20644         on main variants only.
20645         (method_class_type): Remove.
20646         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
20647         (build_type_inheritance_graph): Likewise.
20648         * ipa-icf.c (sem_function::equals_wpa): Likewise.
20649         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
20650         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
20652 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20654         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
20655         is_typedef_decl, typedef_variant_p): Constify.
20656         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
20657         is_typedef_decl, typedef_variant_p): Constify.
20659 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20661         * defaults.h (gen_tablejump): New function.
20662         (HAVE_tablejump): Add default value.
20663         * expr.c: Adjust.
20664         * stmt.c: Likewise.
20666 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20668         * defaults.h (gen_store_multiple): New function.
20669         (HAVE_store_multiple): Add default value.
20670         * expr.c (move_block_from_reg): Adjust.
20672 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20674         * defaults.h (gen_load_multiple): New function.
20675         (HAVE_load_multiple): Add default value.
20676         * expr.c (move_block_to_reg): Adjust.
20678 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20680         * defaults.h (gen_mem_signal_fence): New function.
20681         (HAVE_mem_signal_fence): Add default value.
20682         * optabs.c: Adjust.
20684 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20686         * defaults.h (gen_memory_barrier): New function.
20687         (HAVE_memory_barrier): Add default value.
20688         * optabs.c: Adjust.
20690 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20692         * defaults.h (gen_mem_thread_fence): New function.
20693         (HAVE_mem_thread_fence): Add default definition.
20694         * optabs.c: Adjust.
20696 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20698         * combine.c (find_split_point): Check the value of HAVE_lo_sum
20699         instead of if it is defined.
20700         (combine_simplify_rtx): Likewise.
20701         * lra-constraints.c (process_address_1): Likewise.
20702         * config/darwin.c: Adjust.
20703         * genconfig.c (main): Always define HAVE_lo_sum.
20705 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20707         * genmatch.c (parser::parse_operation): Reject expanding
20708         operator-list inside 'for'.
20710 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20712         * genmatch.c (parser::parse_for): Reject iterator if used as
20713         operator-list.
20715 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20717         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
20718         after end of id-list.
20720 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
20722         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
20723         we do not try to compute canonical type for type that does not need
20724         alias set.
20725         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
20726         FUNCITON_TYPE.
20727         * tree.h (type_with_alias_set_p): New.
20729 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
20731         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
20732         function attributes.
20733         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
20735 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
20737         * Makefile.in (check_gcc_parallelize): Delete.
20738         (lang_checks_parallelized): Update comment.
20740 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
20742         PR rtl-optimization/66237
20743         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
20744         location of an "as_a" cast.
20746 2015-05-22  Jeff Law  <law@redhat.com>
20748         * config/pa/pa.md (non-canonical shift-add insns): Remove.
20749         (peepholes with non-canonical RTL sources): Remove.
20750         (peepholes for indexed stores of FP regs in integer modes): Match and
20751         generate canonical RTL.
20753 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20755         PR tree-optimization/63387
20756         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
20757         ((x ord x) & (y ord y) -> (x ord y),
20758         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
20759         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
20760         vectors like scalars.
20762 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20764         * convert.c (convert_to_integer, convert_to_vector): Include the
20765         types in the error message.
20767 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20769         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
20770         simplifications.
20772 2015-05-22  Jeff Law  <law@redhat.com>
20774         * config/pa/pa.md (integer_indexed_store splitters): Use
20775         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
20776         insns -- adjusting the constant 2nd operand accordingly.
20778         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
20779         (plus (ashift X log2) Y) if it is a split point.
20781         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
20782         out of hppa_legitimize_address to handle both forms of a multiply
20783         by 2, 4 or 8.
20784         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
20785         Always generate the ASHIFT variant as the result is not directly
20786         used in a MEM.  Update comments and refactor slightly to improve
20787         readability.
20789 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20791         PR target/65491
20792         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
20793         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
20794         (aarch64_composite_type_p): Return false if given type and mode are
20795         for a short vector.
20797 2015-05-22  Richard Biener  <rguenther@suse.de>
20799         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
20800         member.
20801         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
20802         patterns when determining whether SLP is pure.
20803         (vect_is_slp_reduction): Remove check for pattern stmts.
20804         (vect_is_simple_reduction_1): Remove dead code.
20805         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
20806         (vect_get_and_check_slp_defs): Pass in the stmt number.
20807         Allow the first def in a reduction to be not a pattern stmt when
20808         the rest of the stmts def are patterns.
20809         (vect_build_slp_tree_1): Allow tcc_expression codes like
20810         SAD_EXPR and DOT_PROD_EXPR.
20811         (vect_build_slp_tree): Adjust.
20812         (vect_analyze_slp): Refactor and move BB vect error message ...
20813         (vect_slp_analyze_bb_1): ... here.
20815 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
20817         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
20818         for CSWTCH temporary.
20820 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20822         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
20823         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
20824         unknown unspecs.
20826 2015-05-22  Richard Biener  <rguenther@suse.de>
20828         PR tree-optimization/66251
20829         * tree-vect-stmts.c (vectorizable_conversion): Properly
20830         set STMT_VINFO_VEC_STMT even for the SLP case.
20832 2015-05-22  Marek Polacek  <polacek@redhat.com>
20834         * doc/extend.texi: Use @pxref instead of @xref.
20836 2015-05-22  hiraditya  <hiraditya@msn.com>
20838         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
20839         redundant if.
20841 2015-05-22  Richard Biener  <rguenther@suse.de>
20843         PR tree-optimization/65701
20844         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20845         Move peeling cost models into one place.  Peel for alignment
20846         for single loads only if an aligned load is cheaper than
20847         an unaligned load.
20849 2015-05-22  Marek Polacek  <polacek@redhat.com>
20851         PR c/47043
20852         * doc/extend.texi (Enumerator Attributes): New section.
20853         Document syntax of enumerator attributes.
20855 2015-05-22  Richard Biener  <rguenther@suse.de>
20857         * tree-vect-loop.c (get_reduction_op): New function.
20858         (vect_model_reduction_cost): Use it, add reduc_index parameter.
20859         Make ready for BB reductions.
20860         (vect_create_epilog_for_reduction): Use get_reduction_op.
20861         (vectorizable_reduction): Init reduc_index to a valid value.
20862         Adjust vect_model_reduction_cost call.
20863         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
20864         operand for reduction defaults.  Add SAD_EXPR support.
20865         Assert we have a neutral op for SLP reductions.
20866         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
20867         walking pattern stmt ops only recurse to SSA names.
20869 2015-05-22  Richard Biener  <rguenther@suse.de>
20871         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
20872         assert with guard, remove check on detected reduction.
20873         (vect_recog_sad_pattern): Likewise.
20874         (vect_recog_widen_sum_pattern): Likewise.
20876 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20878         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
20879         __always_inline__ attribute.
20880         (vaesdq_u8): Likewise.
20881         (vaesmcq_u8): Likewise.
20882         (vaesimcq_u8): Likewise.
20883         (vsha1cq_u32): Likewise.
20884         (vsha1mq_u32): Likewise.
20885         (vsha1pq_u32): Likewise.
20886         (vsha1h_u32): Likewise.
20887         (vsha1su0q_u32): Likewise.
20888         (vsha1su1q_u32): Likewise.
20889         (vsha256hq_u32): Likewise.
20890         (vsha256h2q_u32): Likewise.
20891         (vsha256su0q_u32): Likewise.
20892         (vsha256su1q_u32): Likewise.
20893         (vmull_p64): Likewise.
20894         (vmull_high_p64): Likewise.
20896 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20898         * final.c (final_scan_insn): Don't check HAVE_peephole with the
20899         preprocessor.
20900         * output.h: Likewise.
20901         * genconfig.c (main): Alwways define HAVE_peephole.
20902         * genpeep.c: Don't emit checks of HAVE_peephole.
20904 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20906         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
20907         check HAVE_conditional_move with the preprocessor.
20909 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20911         * genconfig.c (main): Always define HAVE_conditional_move.
20912         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
20913         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
20914         is defined.
20916 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20918         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
20919         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
20920         and FRAME_POINTER_REGNUM with the preprocessor.
20922 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20924         * defaults.h: Add default for STACK_PUSH_CODE.
20925         * expr.c: Don't redefine STACK_PUSH_CODE.
20926         * recog.c: Likewise.
20928 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20930         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
20931         sched-deps.c: Use if instead of preprocessor checks with
20932         STACK_GROWS_DOWNWARD.
20934 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20936         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
20937         is defined.
20938         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
20939         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
20940         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
20941         * doc/tm.texi: Regenerate.
20943 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
20945         PR target/66232
20946         * config/i386/constraints.md (Bg): New constraint for GOT memory
20947         operand.
20948         * config/i386/i386.md (*call_got_x32): New pattern.
20949         (*call_value_got_x32): Likewise.
20950         * config/i386/predicates.md (GOT_memory_operand): New predicate.
20952 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
20954         PR tree-optimization/66233
20955         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
20956         Simplify.
20958 2015-05-21  Jeff Law  <law@redhat.com>
20960         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
20961         than MULT for shadd sequences.
20963 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
20965         * alias.c (alias_stats): New static var.
20966         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
20967         (dump_alias_stats_in_alias_c): New function.
20968         * alias.h (dump_alias_stats_in_alias_c): Declare.
20969         * tree-ssa-alias.c (dump_alias_stats): Call it.
20971 2015-05-08  Michael Matz  <matz@suse.de>
20973         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
20974         to strided_p.
20975         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
20976         (STMT_VINFO_STRIDED_P): ... this.
20977         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
20978         (vect_verify_datarefs_alignment): Likewise.
20979         (vect_enhance_data_refs_alignment): Likewise.
20980         (vect_analyze_data_ref_access): Likewise.
20981         (vect_analyze_data_refs): Accept strided stores.
20982         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
20983         (vect_model_load_cost): Adjust for macro rename.
20984         (vectorizable_mask_load_store): Likewise.
20985         (vectorizable_load): Likewise.
20986         (vectorizable_store): Open code strided stores.
20988 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20990         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
20991         Document sqrt_insn.
20993 2015-05-21  Richard Biener  <rguenther@suse.de>
20995         PR c++/66211
20996         * match.pd: Guard pattern optimzing (int)(float)int
20997         conversions to apply only on GIMPLE.
20999 2015-05-21  Jeff Law  <law@redhat.com>
21001         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
21002         multiply-accumulate/shift-add insn generation.
21004 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
21006         PR target/54236
21007         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
21008         operands[1] are the same.
21010 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
21012         PR middle-end/66221
21013         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
21014         build_distinct_type_copy to copy bounds.
21016 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
21018         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
21019         Change to unsigned int.
21021 2015-05-20  Jeff Law  <law@redhat.com>
21023         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
21024         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
21025         (pa_shadd_constant_p): Allow constants for shadd insns rather
21026         than valid scaling constants for memory addresses.
21027         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
21028         * config/pa/predicates.md (mem_shadd_operand): New predicate.
21029         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
21030         (shift-add insns using ASHIFT): New patterns.
21032 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
21034         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
21035         feasible.
21036         (fix_up_fall_thru_edges): Likewise.
21037         (fix_crossing_conditional_branches): Likewise. Promote jump targets
21038         from to rtx_insn to rtx_code_label where feasible.
21039         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
21040         gen_move_insn (returned type changed to rtx_insn).
21041         * builtins.c (expand_errno_check): Fix arguments of
21042         do_compare_rtx_and_jump (now expects rtx_code_label).
21043         (expand_builtin_acc_on_device): Likewise.
21044         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
21045         invert_jump (now exprects rtx_jump_insn).
21046         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
21047         (construct_init_block): Use rtx_code_label.
21048         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
21049         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
21050         calling redirect_jump.
21051         (patch_jump_insn): Likewise.
21052         (redirect_branch_edge): Likewise.
21053         (force_nonfallthru_and_redirect): Likewise.
21054         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
21055         when suitable.
21056         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
21057         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
21058         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
21059         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
21060         to store the value retured by gen_label_rtx.
21061         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
21062         rtx_jump_insn.
21063         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
21064         (split_branches): Fix calls of redirect_jump.
21065         * dojump.c (jumpifnot): Promote argument type from rtx to
21066         rtx_code_label.
21067         (jumpifnot_1): Likewise.
21068         (jumpif): Likewise.
21069         (jumpif_1): Likewise.
21070         (do_jump_1): Likewise.
21071         (do_jump): Likewise. Use rtx_code_label when feasible.
21072         (do_jump_by_parts_greater_rtx): Likewise.
21073         (do_jump_by_parts_zero_rtx): Likewise.
21074         (do_jump_by_parts_equality_rtx): Likewise.
21075         (do_compare_rtx_and_jump): Likewise.
21076         * dojump.h: Update function prototypes.
21077         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
21078         returns rtx_insn).
21079         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
21080         rtx_jump_insn.
21081         (emit_label_before): Likewise.
21082         (emit_jump_insn_after_noloc): Likewise.
21083         (emit_jump_insn_after_setloc): Likewise.
21084         (emit_jump_insn_after): Likewise
21085         (emit_jump_insn_before_setloc): Likewise.
21086         (emit_jump_insn_before): Likewise.
21087         (emit_label_before): Promote return type to rtx_code_label.
21088         (emit_label): Likewise.
21089         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
21090         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
21091         gen_move_insn.
21092         (emit_stack_restore): Likewise.
21093         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
21094         (do_cmp_and_jump): Likewise.
21095         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
21096         from rtx to rtx_code_label.
21097         (gen_move_insn_uncast): New function.
21098         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
21099         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
21100         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
21101         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
21102         invert_jump_1 and redirect_jump_1.
21103         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
21104         do_compare_rtx_and_jump.
21105         (expand_addsub_overflow): Likewise.
21106         (expand_neg_overflow): Likewise.
21107         (expand_mul_overflow): Likewise.
21108         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
21109         return value of gen_move_insn.
21110         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
21111         * loop-doloop.c (add_test): Use rtx_code_label.
21112         (doloop_modify): Likewise.
21113         (doloop_optimize): Likewise.
21114         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
21115         * lra-constraints.c (emit_spill_move): Remove cast of value returned
21116         by gen_move_insn.
21117         (inherit_reload_reg): Add cast when calling dump_insn_slim.
21118         (split_reg): Likewise.
21119         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
21120         gen_move_insn.
21121         * optabs.c (expand_binop_directly): Remove casts of values returned by
21122         maybe_gen_insn.
21123         (expand_unop_direct): Likewise.
21124         (expand_abs): Likewise.
21125         (maybe_emit_unop_insn): Likewise.
21126         (maybe_gen_insn): Promote return type to rtx_insn.
21127         * optabs.h: Update prototype of maybe_gen_insn.
21128         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
21129         redundant cast.
21130         * recog.c (struct peep2_insn_data): Promote type of insn field to
21131         rtx_insn.
21132         (peep2_reinit_state): Use NULL instead of NULL_RTX.
21133         (peep2_attempt): Remove casts of insn in peep2_insn_data.
21134         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
21135         * recog.h (struct insn_gen_fn): Promote return types of function
21136         pointers and operator ().from rtx to rtx_insn.
21137         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
21138         (fill_eager_delay_slots): Likewise.
21139         (relax_delay_slots): Likewise.
21140         (make_return_insns): Likewise.
21141         (dbr_schedule): Likewise.
21142         (optimize_skips): Likewise.
21143         (reorg_redirect_jump): Likewise.
21144         (fill_slots_from_thread): Likewise.
21145         * reorg.h: Update prototypes.
21146         * resource.c (find_dead_or_set_registers): Use dyn_cast to
21147         rtx_jump_insn instead of check.  Use it's jump_target method.
21148         * rtl.h (rtx_jump_insn::jump_label): Define new method.
21149         (rtx_jump_insn::jump_target): Define new method.
21150         (rtx_jump_insn::set_jump_target): Define new method.
21151         * rtlanal.c (tablejump_p): Promote type of one local variable.
21152         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
21153         (sched_analyze_insn): Likewise.
21154         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
21155         (print_insn): Likewise.
21156         * stmt.c (label_rtx): Promote return type to rtx_insn.
21157         (force_label_rtx): Likewise.
21158         (jump_target_rtx): Define new function.
21159         (expand_label): Use it, get rid of one cast.
21160         (expand_naked_return): Promote rtx to rtx_code_label.
21161         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
21162         (expand_case): Use rtx_code_label instread of rtx where feasible.
21163         (expand_sjlj_dispatch_table): Likewise.
21164         (emit_case_nodes): Likewise.
21165         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
21166         * store-motion.c (insert_store): Make use of new return type of
21167         gen_move_insn and remove a cast.
21168         (replace_store_insn): Likewise.
21170 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
21172         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
21173         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
21175 2015-05-20  Jeff Law  <law@redhat.com>
21177         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
21178         dispose of the jump thread path when the jump threading
21179         opportunity is cancelled.
21181 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21183         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
21184         when printing the caret character.
21186 2015-05-20  Marek Polacek  <polacek@redhat.com>
21188         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
21190 2015-05-20  Marek Polacek  <polacek@redhat.com>
21192         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
21193         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
21194         * gimple-fold.c (canonicalize_bool): Likewise.
21195         (same_bool_result_p): Likewise.
21196         * tree-if-conv.c (parse_predicate): Likewise.
21198 2015-05-20  Marek Polacek  <polacek@redhat.com>
21200         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
21201         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
21203 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21205         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
21206         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
21207         values.
21209 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
21211         * config/mips/mips.h (micromips_globals): Declare.
21213 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
21215         * timevar.def (TV_INITIALIZE_RTL): New.
21216         * toplev.c (initialize_rtl): Use an auto_timevar to account this
21217         function's time to TV_INITIALIZE_RTL.
21219 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
21221         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
21222         gimple_build_nop calls.
21223         (chkp_find_bounds_for_elem): Likewise.
21224         (chkp_get_zero_bounds): Likewise.
21225         (chkp_get_none_bounds): Likewise.
21226         (chkp_get_bounds_by_definition): Likewise.
21227         (chkp_generate_extern_var_bounds): Likewise.
21228         (chkp_get_bounds_for_decl_addr): Likewise.
21229         (chkp_get_bounds_for_string_cst): Likewise.
21231 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
21233         PR tree-optimization/65447
21234         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
21235         (dump_use, dump_uses): Support to dump sub use.
21236         (record_use): New parameters to support sub use.  Remove call to
21237         dump_use.
21238         (record_sub_use, record_group_use): New functions.
21239         (compute_max_addr_offset, split_all_small_groups): New functions.
21240         (group_address_uses, rewrite_use_address): New functions.
21241         (strip_offset): New declaration.
21242         (find_interesting_uses_address): Call record_group_use.
21243         (add_candidate): New assertion.
21244         (infinite_cost_p): Move definition forward.
21245         (add_costs): Check INFTY cost and return immediately.
21246         (get_computation_cost_at): Clear setup cost and dependent bitmap
21247         for sub uses.
21248         (determine_use_iv_cost_address): Compute cost for sub uses.
21249         (rewrite_use_address_1): Rename from old rewrite_use_address.
21250         (free_loop_data): Free sub uses.
21251         (tree_ssa_iv_optimize_loop): Call group_address_uses.
21253 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
21254             Jim Wilson  <jim.wilson@linaro.org>
21256         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
21257         new  fields loadv and storev.
21258         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
21259         Initialize loadv and storev.
21260         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
21261         (cortexa53_extra_costs): Likewise.
21262         (cortexa57_extra_costs): Likewise.
21263         (xgene1_extra_costs): Likewise.
21264         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
21265         rtx_costs.
21267 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
21269         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
21270          storev.
21271         (cortexa8_extra_costs): Likewise.
21272         (cortexa5_extra_costs): Likewise.
21273         (cortexa7_extra_costs): Likewise.
21274         (cortexa12_extra_costs): Likewise.
21275         (cortexa15_extra_costs): Likewise.
21276         (v7m_extra_costs): Likewise.
21278 2015-05-20  Jeff Law  <law@redhat.com>
21280         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
21281         instead of open-coded version.  Also delete the jump thread created
21282         within this function.
21284 2015-05-20  Alan Modra  <amodra@gmail.com>
21286         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
21287         stack adjusting insn.  Formatting.
21288         (rs6000_emit_prologue): Track stack adjusting insn, and use of
21289         r12.  If possible, emit first -fsplit-stack arg pointer insn
21290         before stack adjust.  Don't use r12 to save cr if split-stack.
21292 2015-05-20  Alan Modra  <amodra@gmail.com>
21294         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
21295         Define.
21296         (rs6000_supports_split_stack): New function.
21297         * gcc/config/rs6000/rs6000.c (machine_function): Add
21298         split_stack_arg_pointer.
21299         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
21300         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
21301         rather than virtual_incoming_args_rtx.
21302         (rs6000_va_start): Likewise.
21303         (split_stack_arg_pointer_used_p): New function.
21304         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
21305         (morestack_ref): New var.
21306         (gen_add3_const, rs6000_expand_split_stack_prologue,
21307         rs6000_internal_arg_pointer, rs6000_live_on_entry,
21308         rs6000_split_stack_space_check): New functions.
21309         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
21310         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
21311         (UNSPECV_SPLIT_STACK_RETURN): Define.
21312         (split_stack_prologue, load_split_stack_limit,
21313         load_split_stack_limit_di, load_split_stack_limit_si,
21314         split_stack_return, split_stack_space_check): New expands and insns.
21315         * gcc/config/rs6000/rs6000-protos.h
21316         (rs6000_expand_split_stack_prologue): Declare.
21317         (rs6000_split_stack_space_check): Declare.
21319 2015-05-20  Alan Modra  <amodra@gmail.com>
21321         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
21322         (direct_return): Test vrsave_size rather than vrsave_mask.
21323         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
21324         (rs6000_emit_epilogue): Likewise.
21326 2015-05-20  Alan Modra  <amodra@gmail.com>
21328         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
21329         when not saving registers.
21330         (debug_stack_info): Adjust to omit printing unused offsets,
21331         as before.
21332         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
21333         expression.
21335 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21337         PR c++/65835
21338         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
21339         value_type to const char *.
21341 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
21343         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
21344         to build a biarch toolchain again.
21346 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
21348         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
21349         or implicit declarations.
21350         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
21351         into it.
21352         (get_odr_type): Check type has linkage before adding bases.
21353         (register_odr_type): Check that type has linkage before adding it.
21354         (type_known_to_have_no_deriavations_p): Rename to ..
21355         (type_known_to_have_no_derivations_p): This one.
21356         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
21357         (type_known_to_have_no_derivations_p): This one.
21358         * ipa-polymorphic-call.c
21359         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
21360         type has linkage.
21362 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21364         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
21365         (layout_type): Use RECORD_OR_UNION_TYPE_P.
21367 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21369         * config/s390/s390.c (s390_vector_bool_type_p): New function.
21370         (s390_invalid_binary_op): New function.
21371         (TARGET_INVALID_BINARY_OP): Define macro.
21373 2015-05-19  David Sherwood  <david.sherwood@arm.com>
21375         * loop-invariant.c (create_new_invariant): Don't calculate address cost
21376         if mode is not a scalar integer.
21377         (get_inv_cost): Increase computational cost for unused invariants.
21379 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21381         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
21382         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
21383         * config/s390/s390-builtin-types.def: New file.
21384         * config/s390/s390-builtins.def: New file.
21385         * config/s390/s390-builtins.h: New file.
21386         * config/s390/s390-c.c: New file.
21387         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
21388         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
21389         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
21390         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
21391         prototypes.
21392         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
21393         Include.
21394         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
21395         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
21396         variable definitions.
21397         (s390_const_operand_ok): New function.
21398         (s390_expand_builtin): Rewrite.
21399         (s390_init_builtins): New function.
21400         (s390_handle_vectorbool_attribute): New function.
21401         (s390_attribute_table): Add s390_vector_bool attribute.
21402         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
21403         (s390_branch_condition_mask): Generate masks for new modes.
21404         (s390_expand_vec_compare_cc): New function.
21405         (s390_mangle_type): Add mangling for vector bool types.
21406         (enum s390_builtin): Remove.
21407         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
21408         efpc builtins.
21409         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
21410         s390_cpu_cpp_builtins.
21411         (REGISTER_TARGET_PRAGMAS): New macro.
21412         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
21413         (insn_cmp mode attribute): Add new CC modes.
21414         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
21415         (lcbb): New pattern definition.
21416         * config/s390/s390intrin.h: Include vecintrin.h.
21417         * config/s390/t-s390: New file.
21418         * config/s390/vecintrin.h: New file.
21419         * config/s390/vector.md: Include vx-builtins.md.
21420         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
21421         support.
21423 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21425         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
21426         CCVFHE.
21427         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
21428         (s390_select_ccmode): Likewise.
21429         (s390_canonicalize_comparison): Swap operands if necessary.
21430         (s390_expand_vec_compare_scalar): Expand DFmode compare using
21431         single element vector instructions.
21432         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
21433         (s390_branch_condition_mask): Generate CC masks for the new modes.
21434         * config/s390/s390.md (v0, vf, vd): New mode attributes.
21435         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
21436         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
21437         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
21438         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
21439         (*extend<DSF:mode><BFP:mode>2): New insn definition.
21440         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
21441         (extend<DSF:mode><BFP:mode>2): Turn into expander.
21442         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
21443         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
21444         (sqrt<mode>2): Add vector instruction.
21446 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21448         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
21449         constraints.
21450         * config/s390/predicates.md (const0_operand, constm1_operand)
21451         (constable_operand): Accept vector operands.
21452         * config/s390/s390-modes.def: Add supported vector modes.
21453         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
21454         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
21455         (s390_bytemask_vector_p, s390_expand_vec_strlen)
21456         (s390_expand_vec_compare, s390_expand_vcond)
21457         (s390_expand_vec_init): Add prototypes.
21458         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
21459         (s390_vector_mode_supported_p): New function.
21460         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
21461         (s390_contiguous_bitmask_vector_p): New function.
21462         (s390_bytemask_vector_p): New function.
21463         (s390_split_ok_p): Vector regs don't work either.
21464         (regclass_map): Add VEC_REGS.
21465         (s390_legitimate_constant_p): Handle vector constants.
21466         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
21467         (legitimate_reload_vector_constant_p): New function.
21468         (s390_preferred_reload_class): Handle CONST_VECTOR.
21469         (s390_reload_symref_address):  Likewise.
21470         (s390_secondary_reload): Vector memory instructions only support
21471         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
21472         (s390_emit_ccraw_jump): New function.
21473         (s390_expand_vec_strlen): New function.
21474         (s390_expand_vec_compare): New function.
21475         (s390_expand_vcond): New function.
21476         (s390_expand_vec_init): New function.
21477         (s390_dwarf_frame_reg_mode): New function.
21478         (print_operand): Handle addresses with 'O' and 'R' constraints.
21479         (NR_C_MODES, constant_modes): Add vector modes.
21480         (s390_output_pool_entry): Handle vector constants.
21481         (s390_hard_regno_mode_ok): Handle vector registers.
21482         (s390_class_max_nregs): Likewise.
21483         (s390_cannot_change_mode_class): New function.
21484         (s390_invalid_arg_for_unprototyped_fn): New function.
21485         (s390_function_arg_vector): New function.
21486         (s390_function_arg_float): Remove size variable.
21487         (s390_pass_by_reference): Handle vector arguments.
21488         (s390_function_arg_advance): Likewise.
21489         (s390_function_arg): Likewise.
21490         (s390_return_in_memory): Vector values are returned in a VR if
21491         possible.
21492         (s390_function_and_libcall_value): Handle vector arguments.
21493         (s390_gimplify_va_arg): Likewise.
21494         (s390_call_saved_register_used): Consider the arguments named.
21495         (s390_conditional_register_usage): Disable v16-v31 for non-vec
21496         targets.
21497         (s390_preferred_simd_mode): New function.
21498         (s390_support_vector_misalignment): New function.
21499         (s390_vector_alignment): New function.
21500         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
21501         (TARGET_VECTOR_MODE_SUPPORTED_P)
21502         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
21503         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
21504         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
21505         (TARGET_VECTOR_ALIGNMENT): Define target macro.
21506         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
21507         (FIRST_PSEUDO_REGISTER): Increase value.
21508         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
21509         (VECTOR_REG_P): Define macros.
21510         (FIXED_REGISTERS, CALL_USED_REGISTERS)
21511         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
21512         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
21513         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
21514         Add vector registers.
21515         (CANNOT_CHANGE_MODE_CLASS): Call C function.
21516         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
21517         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
21518         memory.
21519         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
21520         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
21521         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
21522         (VR*_REGNUM): New constants.
21523         (ALL): New mode iterator.
21524         (INTALL): Remove mode iterator.
21525         Include vector.md.
21526         (movti): Implement TImode moves for VRs.
21527         Disable TImode splitter for VR targets.
21528         Implement splitting TImode GPR<->VR moves.
21529         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
21530         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
21531         reload<mode>_la_in, reload<mode>_la_out.
21532         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
21533         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
21534         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
21535         (mov<mode> SF SD): Prefer lder, lde for loading.
21536         Add lrl and strl instructions.
21537         Add vector instructions.
21538         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
21539         Call s390_expand_vec_strlen on z13.
21540         (*cc_to_int): Change predicate to nonimmediate_operand.
21541         (addti3): Rename to *addti3.  New expander.
21542         (subti3): Rename to *subti3.  New expander.
21543         * config/s390/vector.md: New file.
21545 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21547         * common/config/s390/s390-common.c (processor_flags_table): Add
21548         z13.
21549         * config.gcc: Add z13.
21550         * config/s390/s390-opts.h (enum processor_type): Add
21551         PROCESSOR_2964_Z13.
21552         * config/s390/s390.c (s390_adjust_priority): Check for
21553         PROCESSOR_2964_Z13.
21554         (s390_reorg): Likewise.
21555         (s390_sched_reorder): Likewise.
21556         (s390_sched_variable_issue): Likewise.
21557         (s390_loop_unroll_adjust): Likewise.
21558         (s390_option_override): Likewise. Default to -mvx when available.
21559         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
21560         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
21561         (TARGET_VX_ABI): Define macros.
21562         macros.
21563         (TARGET_DEFAULT): Add MASK_OPT_VX.
21564         * config/s390/s390.md ("cpu" attribute): Add z13.
21565         ("cpu_facility" attribute): Add vec.
21566         * config/s390/s390.opt (processor_type): Add z13.
21567         (mvx): New options.
21568         * doc/invoke.texi: Add z13 option for -march.
21570 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21572         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
21573         mode check to make sure that only scalar integer values are
21574         accepted.
21576 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
21578         * tree.c (verify_type_variant): Fix #undef.
21579         (gimple_canonical_types_compatible_p): Move here from lto.c
21580         (verify_type): Verify TYPE_CANONICAL compatibility.
21581         * tree.h (gimple_canonical_types_compatible_p): Declare.
21583 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
21585         PR middle-end/66199
21586         * tree.h (OMP_TEAMS_COMBINED): Define.
21587         * gimplify.c (enum gimplify_omp_var_data): Add
21588         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
21589         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
21590         (omp_notice_variable): Accept both ORT_TEAMS
21591         and ORT_COMBINED_TEAMS.  Don't recurse if
21592         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
21593         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
21594         GOVD_FIRSTPRIVATE.
21595         (omp_no_lastprivate): New function.
21596         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
21597         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
21598         notice_outer and set appropriate bits, otherwise make
21599         sure default(none) combined constructs won't complain.
21600         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
21601         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
21602         omp_no_lastprivate either remove the clause or turn it
21603         into OMP_CLAUSE_PRIVATE.
21604         (gimplify_omp_for): Fix up handling of implicit
21605         lastprivate or linear iterators.
21606         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
21607         ORT_COMBINED_TEAMS.
21608         * omp-low.c (lower_omp_for_lastprivate): For combined
21609         for simd use fd.loop.n2 from the for rather than simd.
21611 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21613         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
21614         instead of gen_rtx_raw_REG.
21615         (cris_expand_epilogue): Likewise.
21616         * config/microblaze/microblaze.c (microblaze_classify_address):
21617         Likewise.
21618         * config/sparc/sparc.md: Likewise.
21620 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
21622         * config/alpha/alpha.c (alpha_legitimize_reload_address)
21623         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
21624         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
21625         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
21626         Use CASE_CONST_SCALAR_INT.
21627         (print_operand) <case 'M'>: Use mode_width_operand to check the
21628         value of the constant.
21629         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
21630         * config/alpha/predicates.md (input_operand): Use general_operand
21631         instead of match_code as operand check.
21632         (symbolic_operand): Use match_code with subexpression digits.
21633         * config/alpha/constraints.md (Q): Ditto.
21635 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21637         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
21639 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21641         * config/s390/s390.c (s390_secondary_reload): Fix check for
21642         load/store relative.
21644 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21646         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
21647         alternative_mask to uint64_t.
21649 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
21651         PR tree-optimization/66187
21652         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
21653         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
21654         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
21656 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
21658         * diagnostic.c (diagnostic_report_current_module): Strengthen
21659         local "new_map" from const line_map * to
21660         const line_map_ordinary *.
21661         * genmatch.c (error_cb): Likewise for local "map".
21662         (output_line_directive): Likewise for local "map".
21663         * input.c (expand_location_1): Likewise for local "map".
21664         Pass NULL rather than &map to
21665         linemap_unwind_to_first_non_reserved_loc, since the value is never
21666         read from there, and the value written back not read from here.
21667         (is_location_from_builtin_token): Strengthen local "map" from
21668         const line_map * to const line_map_ordinary *.
21669         (dump_location_info): Strengthen locals "map" from
21670         line_map *, one to const line_map_ordinary *, the other
21671         to const line_map_macro *.
21672         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
21673         const line_map * to const line_map_macro *.
21674         (maybe_unwind_expanded_macro_loc): Add a call to
21675         linemap_check_macro when writing to the "map" field of the
21676         loc_map_pair.
21677         Introduce local const line_map_ordinary * "ord_map", using it in
21678         place of "map" in the part of the function where we know we have
21679         an ordinary map.  Strengthen local "m" from const line_map * to
21680         const line_map_ordinary *.
21682 2015-05-19  Nick Clifton  <nickc@redhat.com>
21684         PR target/66156
21685         * config/msp430/msp430.md (zero_extendhisi2): Add support for
21686         separate source and destination registers.
21688 2015-05-19  Richard Biener  <rguenther@suse.de>
21690         PR tree-optimization/66165
21691         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
21692         for no load permutation.
21694         PR tree-optimization/66185
21695         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
21696         when building the SLP node from scalars.
21698 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21699             Tristan Gingold  <gingold@adacore.com>
21701         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
21702         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
21703         (expand_stack_restore): Call record_new_stack_level.
21704         (expand_stack_save): Do not call do_pending_stack_adjust.
21705         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
21706         * calls.c (expand_call): Call record_new_stack_level for alloca.
21707         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
21708         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
21709         (update_sjlj_context): New global function.
21710         * except.h (update_sjlj_context): Declare.
21711         * explow.c (record_new_stack_level): New global function.
21712         (allocate_dynamic_stack_space): Call record_new_stack_level.
21713         * explow.h (record_new_stack_level): Declare.
21714         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
21715         * cfgrtl.c (duplicate_insn_chain): Likewise.
21717 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21719         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
21720         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
21721         STACK_GROWS_DOWNWARD as normal if.
21722         (expand_call): Likewise.
21724 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
21726         PR target/54236
21727         * config/sh/sh.md (*round_int_even): New insn_and_split and
21728         accompanying new unnamed split.
21730 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21732         * bitmap.c (bitmap_set_range): Handle count==1 specially.
21733         (bitmap_clear_range): Likewise.
21734         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
21735         bitmap_set_range unconditionally.
21736         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21737         * df-scan.c (df_mark_reg): Likewise.
21738         * haifa-sched.c (setup_ref_regs): Likewise.
21739         * sched-rgn.c (update_live_1): Likewise.
21741 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21743         * regs.h (END_HARD_REGNO): Delete.
21744         (END_REGNO): Move to...
21745         * rtl.h: ...here.
21746         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
21747         * caller-save.c (mark_set_regs): Likewise.
21748         * combine.c (move_deaths, distribute_notes): Likewise.
21749         * cse.c (invalidate, invalidate_for_call): Likewise.
21750         * df-scan.c (df_ref_record): Likewise.
21751         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
21752         (record_last_reg_set_info): Likewise.
21753         * reg-stack.c (convert_regs_exit): Likewise.
21754         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
21755         * resource.c (update_live_status): Likewise.
21756         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
21758 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21760         * rtl.h (reg_info): Add an nregs field.
21761         (REG_NREGS): Use it.
21762         (SET_REGNO_RAW): Delete.
21763         (set_regno_raw): New function.
21764         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
21765         (END_REGNO): Redefine in terms of REG_NREGS.
21766         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
21767         SET_REGNO_RAW.
21768         * emit-rtl.c (set_mode_and_regno): Likewise.
21769         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
21770         instead of SET_REGNO_RAW.
21772 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21774         * rtl.h (PUT_MODE_RAW): New macro.
21775         (PUT_REG_NOTE_KIND): Use it.
21776         (set_mode_and_regno): Declare.
21777         (gen_raw_REG): Change regno to "unsigned int".
21778         (gen_rtx_REG): Change "unsigned" to "unsigned int".
21779         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
21780         use set_mode_and_regno to change the mode of registers.
21781         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
21782         * emit-rtl.c (set_mode_and_regno): New function.
21783         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
21784         * caller-save.c (reg_save_code): Use set_mode_and_regno.
21785         * expr.c (init_expr_target): Likewise.
21786         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21787         * postreload.c (reload_cse_simplify_operands): Likewise.
21789 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21791         * caller-save.c (init_caller_save): Use word_mode and
21792         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
21793         * expr.c (init_expr_target): Likewise.
21794         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21795         * postreload.c (reload_cse_regs_1): Likewise.
21797 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21799         * rtl.def (REG): Change format to "r".
21800         * rtl.h (rtunion): Remove rt_reg.
21801         (reg_info): New structure.
21802         (rtx_def): Add reg field to main union.
21803         (X0REGATTR): Delete.
21804         (REG_CHECK): New macro.
21805         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
21806         * rtl.c (rtx_format): Document "r".
21807         (rtx_code_size): Handle REG specially.
21808         * gengenrtl.c (special_format): Return true for formats
21809         that include 'r'.
21810         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
21811         Deal with REG_ATTRS after the field loop.
21812         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
21813         * expmed.c (init_expmed): Call gen_raw_REG instead of
21814         gen_rtx_raw_REG.
21815         * expr.c (init_expr_target): Likewise.
21816         * regcprop.c (maybe_mode_change): Likewise.
21817         * varasm.c (make_decl_rtl): Likewise.
21818         * final.c (leaf_renumber_regs_insn): Return early after
21819         handling REGs.
21820         * genemit.c (gen_exp): Handle 'r' fields.
21821         * genpeep.c (match_rtx): Likewise.
21822         * gensupport.c (subst_pattern_match): Likewise.
21823         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
21824         (alter_constraints, subst_dup): Likewise.
21825         * read-rtl.c (read_rtx_code): Likewise.
21826         * print-rtl.c (print_rtx): Likewise.
21827         * genrecog.c (find_operand, find_matching_operand): Likewise.
21828         (validate_pattern, match_pattern_2): Likewise.
21829         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
21830         (rtx_test::regno_field): New function.
21831         (operator ==, safe_to_hoist_p, transition_parameter_type)
21832         (parameter_type_string, print_parameter_value)
21833         (print_nonbool_test, print_test): Handle new enum values.
21834         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
21835         * lra-constraints.c (operands_match_p): Likewise.
21837 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21839         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
21840         Change type of new_regno to unsigned int.
21841         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
21842         new_regno to unsigned int.
21843         (df_ref_change_reg_with_loc): Remove old_regno parameter.
21844         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
21845         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
21846         (SET_REGNO_RAW): Add space after ",".
21848 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21850         * rtl.h (REG_NREGS): New macro
21851         * alias.c (record_set): Use it.
21852         * cfgcleanup.c (mark_effect): Likewise.
21853         * combine.c (likely_spilled_retval_1): Likewise.
21854         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
21855         (move_deaths, distribute_notes): Likewise.
21856         * cselib.c (cselib_record_set): Likewise.
21857         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21858         * df-scan.c (df_mark_reg): Likewise.
21859         * dse.c (look_for_hardregs): Likewise.
21860         * dwarf2out.c (reg_loc_descriptor): Likewise.
21861         (multiple_reg_loc_descriptor): Likewise.
21862         * expr.c (write_complex_part, read_complex_part): Likewise.
21863         (emit_move_complex): Likewise.
21864         * haifa-sched.c (setup_ref_regs): Likewise.
21865         * ira-lives.c (mark_hard_reg_live): Likewise.
21866         * lra.c (lra_set_insn_recog_data): Likewise.
21867         * mode-switching.c (create_pre_exit): Likewise.
21868         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
21869         (reload_combine_recognize_pattern): Likewise.
21870         (reload_combine_note_use, move2add_record_mode): Likewise.
21871         (reload_cse_move2add): Likewise.
21872         * reg-stack.c (subst_stack_regs_pat): Likewise.
21873         * regcprop.c (kill_value, copy_value): Likewise.
21874         (copyprop_hardreg_forward_1): Likewise.
21875         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
21876         (build_def_use): Likewise.
21877         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
21878         (deps_analyze_insn): Likewise.
21879         * sched-rgn.c (check_live_1, update_live_1): Likewise.
21880         * sel-sched.c (count_occurrences_equiv): Likewise.
21881         * valtrack.c (dead_debug_insert_temp): Likewise.
21883 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21885         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
21886         * dse.c (note_add_store): Likewise.
21887         * ira-lives.c (mark_hard_reg_dead): Likewise.
21888         * loop-invariant.c (mark_reg_store): Likewise.
21889         (mark_reg_death): Likewise.
21890         * postreload.c (reload_combine): Likewise.
21891         (reload_combine_note_store): Likewise.
21892         (reload_combine_note_use): Likewise.
21893         * recog.c (peep2_reg_dead_p): Likewise.
21895 2015-05-19  Alan Modra  <amodra@gmail.com>
21897         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
21898         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
21899         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
21900         unused predicates.
21901         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
21902         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
21903         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
21904         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
21906 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
21908         * config/mips/mips.md (JOIN_MODE): New mode iterator.
21909         (join2_load_Store<JOIN_MODE:mode>): New pattern.
21910         (join2_loadhi): Likewise.
21911         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
21912         load-load and store-stores.
21913         * config/mips/mips.opt (mload-store-pairs): New option.
21914         (TARGET_LOAD_STORE_PAIRS): New macro.
21915         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
21916         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
21917         * config/mips/mips.c (mips_load_store_bonding_p): New function.
21919 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
21921         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
21922         explicit swaps.
21923         * dojump.c (do_compare_rtx_and_jump): Likewise.
21924         * expmed.c (emit_store_flag_1): Likewise.
21925         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
21926         * final.c (sprint_ul): Use std::reverse for reversing a string.
21927         * fold-const.c (extract_muldiv_1): Use std::swap.
21928         * genmodes.c (emit_mode_int_n): Likewise.
21929         * ifcvt.c (dead_or_predicable): Likewise.
21930         * ira-build.c (ira_merge_live_ranges): Likewise.
21931         (swap_allocno_copy_ends_if_necessary): Likewise.
21932         * ira.c (ira_setup_alts): Likewise.
21933         * loop-iv.c (iv_analyze_expr): Likewise.
21934         (implies_p): Likewise.
21935         (canon_condition): Likewise.
21936         * lra-constraints.c (swap_operands): Likewise.
21937         * lra-lives.c (lra_merge_live_ranges): Likewise.
21938         * omega.c (swap): Remove.
21939         (bswap): Remove.
21940         (omega_unprotect_1): Use std::swap.
21941         (omega_solve_geq): Likewise.
21942         * optabs.c (expand_binop_directly): Likewise.
21943         (expand_binop): Likewise.
21944         (emit_conditional_move): Likewise.
21945         (emit_conditional_add): Likewise.
21946         * postreload.c (reload_cse_simplify_operands): Likewise.
21947         * reg-stack.c (emit_swap_insn): Likewise.
21948         (swap_to_top): Likewise.
21949         (compare_for_stack_reg): Likewise.
21950         (subst_asm_stack_regs): Likewise.
21951         * reload.c (find_reloads): Likewise.
21952         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
21953         * sel-sched.c (invoke_reorder_hooks): Likewise.
21954         (create_block_for_bookkeeping): Likewise.
21955         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
21956         (lambda_matrix_right_hermite): Use std::swap.
21957         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
21958         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
21959         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
21960         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
21961         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
21962         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
21963         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
21964         * tree-vrp.c (compare_ranges): Likewise.
21965         * var-tracking.c (add_with_sets): Likewise.
21966         (vt_find_locations): Likewise.
21968 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
21970         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
21971         pie executables.
21972         (FBSD_ENDFILE_SPEC): Likewise.
21973         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
21974         config/freebsd-spec.h.
21975         (ENDFILE_SPEC): Likewise.
21977 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
21978             Richard Henderson  <rth@redhat.com>
21980         PR target/57032
21981         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
21982         Check for a memory location that is not a reference (using an AND)
21983         to an unaligned location here.
21984         * config/alpha/predicates.md (normal_memory_operand): Remove.
21986 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
21988         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
21989         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
21991 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21993         * config/mips/mips.c (micromips_globals): New variable.
21994         (mips_set_compression_mode): Save and reinitialize target-dependent
21995         state for microMIPS.
21997 2015-05-18  Martin Liska  <mliska@suse.cz>
21999         * dbgcnt.def: Add new counter.
22000         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
22002 2015-05-18  Martin Liska  <mliska@suse.cz>
22004         * dbgcnt.def: Sort counters.
22005         * opts.c (common_handle_option): Do not compile if
22006         -fdbg-cnt-list is enabled.
22008 2015-05-18  Tom de Vries  <tom@codesourcery.com>
22010         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
22011         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
22012         address operator to va_list operand.
22013         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
22014         unconditionally.
22015         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
22016         operand.
22017         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
22018         * config/s390/s390.c (s390_gimplify_va_arg): Same.
22019         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
22021 2015-05-18  Tom de Vries  <tom@codesourcery.com>
22023         * tree-ssa-tail-merge.c: Fix whitespace.
22025 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
22027         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
22028         cortex-a17, and cortex-a17.cortex-a7.
22030 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
22032         PR target/54236
22033         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
22035 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
22037         PR target/66174
22038         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
22039         QImode inner modes for TARGET_AVX512BW.  Force mask operand
22040         to a register for AVX512F modes.
22042 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
22044         * toplev.c (emit_debug_global_declarations): Do not output debug info
22045         when doing slim LTO objects.
22047 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
22049         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
22050         odr_types_equivalent_p): Declare.
22051         (odr_type_p): Use gcc_checking_assert.
22052         (type_in_anonymous_namespace_p) Declare.
22053         (type_with_linkage_p): Declare.
22054         * common.opt (Wlto-type-mismatch): New warning.
22055         * ipa-devirt.c (compound_type_base): New function.
22056         (odr_or_derived_type_p): New function.
22057         (odr_types_equivalent_p): New function.
22058         (add_type_duplicate): Simplify.
22059         (type_with_linkage_p): Add hack to prevent false positives on C types
22060         (type_in_anonymous_namespace_p): Likewise.
22061         * tree.c (need_assembler_name_p): Use type_with_linkage.
22062         * tree.h (type_in_anonymous_namespace_p): Remove.
22063         * doc/invoke.texi (-Wlto-type-mismatch): Document
22065 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
22067         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
22068         (verify_type): Verify STRING_FLAG.
22070 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22072         PR fortran/44054
22073         * tree-pretty-print.c (percent_K_format): Replace locus pointer
22074         with accessor function.
22075         * tree-diagnostic.c (diagnostic_report_current_function): Use
22076         diagnostic_location function.
22077         (maybe_unwind_expanded_macro_loc): Likewise.
22078         (virt_loc_aware_diagnostic_finalizer): Likewise.
22079         (default_tree_printer): Replace locus pointer with accessor function.
22080         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
22081         (diagnostic_set_info_translated): Initialize second location.
22082         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
22083         (diagnostic_show_locus): Handle two locations. Call
22084         diagnostic_print_caret_line.
22085         (diagnostic_print_caret_line): New.
22086         (default_diagnostic_starter): Use diagnostic_location function.
22087         (diagnostic_report_diagnostic): Use diagnostic_location function.
22088         (verbatim): Do not set text.locus.
22089         * diagnostic.h (struct diagnostic_info): Remove location field.
22090         (struct diagnostic_context): Make caret_chars an array of two.
22091         (diagnostic_location): New inline.
22092         (diagnostic_expand_location): Handle two locations.
22093         (diagnostic_same_line): New inline.
22094         (diagnostic_print_caret_line): Declare.
22095         (CARET_LINE_MARGIN): New constant.
22096         * pretty-print.c (pp_printf): Do not set text.locus.
22097         (pp_verbatim): Do not set text.locus.
22098         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
22099         (struct text_info): Replace locus pointer with locations
22100         array. Add accessor functions.
22102 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
22103             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22105         PR target/65768
22106         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
22107         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
22108          large constants in register instead of splitting them.
22110 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
22112         PR target/66140
22113         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
22114         replacements in memory addresses.
22115         (get_unaligned_address): Ditto.
22117 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
22119         * config/ft32/*: New files for FT32 port.
22120         * doc/install.texi: Add FT32 information.
22121         * doc/invoke.texi: Add FT32 information.
22122         * doc/md.texi: Add FT32 information.
22123         * doc/contrib.texi: Self added.
22125 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
22127         PR tree-optimization/64454
22128         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
22129         (-1 - A -> ~A): Remove unnecessary condition.
22131 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
22133         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
22134         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
22135         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
22137 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
22139         * ipa-chkp.h (chkp_wrap_function): New.
22140         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
22141         (chkp_wrap_function_name): New.
22142         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
22143         to get wrapper name.
22144         * lto-cgraph.c: Include ipa-chkp.h.
22145         (input_cgraph_1): Avoid alias chain for wrappers.
22147 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
22149         PR middle-end/66134
22150         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
22151         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
22153 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22155         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
22156         (AARCH64_FL_SLOWMUL): Delete.
22157         (AARCH64_FL_CRC): Redefine to 1<<3.
22158         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
22160 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22162         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
22163         casting.
22165 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
22167         * config/alpha/alpha.md (extendqidi2): Use general_operand
22168         instead of some_operand for operand[1] predicate.
22169         (extendhidi2): Ditto.
22170         (cbranchdi4): Use general_operand instead of some_operand
22171         for operand[1] and operands[2] predicates.
22172         (cstoredi4): Ditto.
22173         * config/alpha/predicates.md (some_operand): Remove unused predicate.
22174         (some_ni_operand): Ditto.
22176 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
22178         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
22179         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
22180         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
22181         low part of the constant using alpha_emit_set_const_1.
22182         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
22184 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
22186         * varasm.c (output_constant_pool_1): Pass down alignment from
22187         constant pool entry's descriptor to output_constant_pool_2.
22188         (output_object_block): Add comment prior to call to
22189         output_constant_pool_1.
22191 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
22193         PR rtl-optimization/65862
22194         * target.def (ira_change_pseudo_allocno_class): New hook.
22195         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
22196         value of the hook.
22197         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
22198         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
22199         hook.
22200         * ira-costs.c (find_costs_and_classes): Call the hook and change
22201         classes when it is necessary.
22202         * doc/tm.texi: Update.
22204 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
22206         * config/i386/i386.md (sibcall_memory): Check that register with
22207         callee address is not also used as one of the arguments, instead
22208         of checking that it is not live after the sibcall.
22209         (sibcall_pop_memory): Ditto.
22210         (sibcall_value_memory): Ditto.
22211         (sibcall_value_pop_memory): Ditto.
22213 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
22215         * generic-match-head.c (types_match): Handle non-types.
22216         * gimple-match-head.c (types_match): Likewise.
22217         * match.pd: Remove unnecessary TREE_TYPE for types_match.
22219 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
22221         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
22222         (csneg3<mode>_insn): Enable expansion of pattern.
22224 2015-05-14  Nick Clifton  <nickc@redhat.com>
22226         * config/rl78/rl78.c (rl78_select_section): Select the correct
22227         default section based upon the category of the decl.
22229 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
22231         PR rtl-optimization/30967
22232         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
22233         destination mode for the cost of scc patterns.
22235 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
22237         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
22238         using SWIM248 mode iterator.
22239         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
22240         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
22241         for operand[2] constraint.
22242         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
22244 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
22246         PR middle-end/66133
22247         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
22248         make sure it is never noreturn, even when the task body does not
22249         return.
22250         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
22251         right before GIMPLE_OMP_RETURN.
22252         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
22253         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
22254         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
22256 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22258         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
22259         * tree-ssa-math-opts.c: Include params.h
22260         (pow_synth_sqrt_info): New struct.
22261         (representable_as_half_series_p): New function.
22262         (get_fn_chain): Likewise.
22263         (print_nested_fn): Likewise.
22264         (dump_fractional_sqrt_sequence): Likewise.
22265         (dump_integer_part): Likewise.
22266         (expand_pow_as_sqrts): Likewise.
22267         (gimple_expand_builtin_pow): Use above to attempt to expand
22268         pow as series of square roots.  Removed now unused variables.
22270 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
22272         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
22273         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
22274         Remove *p0 and *p1 arguments.  Rewrite function.
22275         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
22276         (alpha_split_const_mov): Update calls to alpha_extract_integer and
22277         alpha_emit_set_long_const.
22278         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
22279         (alpha_output_mi_thunk_osf): Ditto.
22280         * config/alpha/alpha.md (movti): Do not check operands[1]
22281         for CONST_DOUBLE.
22283 2015-05-13  Richard Biener  <rguenther@suse.de>
22285         PR tree-optimization/66129
22286         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
22287         commutative.
22288         (vect_schedule_slp_instance): Fix typo.
22290 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
22292         * common.opt (fdump-internal-locations): New option.
22293         * input.c: Include diagnostic-core.h.
22294         (get_end_location): New function.
22295         (write_digit): New function.
22296         (write_digit_row): New function.
22297         (dump_location_range): New function.
22298         (dump_labelled_location_range): New function.
22299         (dump_location_info): New function.
22300         * input.h (dump_location_info): New prototype.
22301         * toplev.c (compile_file): Handle flag_dump_locations.
22303 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
22305         * gimple-expr.h (is_gimple_constant): Reorder.
22306         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
22308 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
22310         * combine.c (simplify_set): When generating a CC set, if the
22311         source already is in the correct mode, do not wrap it in a
22312         compare.  Simplify the rest of that code.
22314 2015-05-13  Richard Biener  <rguenther@suse.de>
22316         PR tree-optimization/66123
22317         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
22318         a taken edge.
22320 2015-05-13  Richard Biener  <rguenther@suse.de>
22322         PR middle-end/66110
22323         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
22324         specially.
22325         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
22327 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
22329         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
22330         * aclocal.m4: Regenerated with automake-1.11.6.
22332 2015-05-13  Tom de Vries  <tom@codesourcery.com>
22334         PR tree-optimization/66010
22335         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
22336         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
22337         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
22338         and rval based on do_deref.
22340 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22342         PR target/65103
22343         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
22344         link time constants into adress expressions and therefore set
22345         their cost to 0.
22347 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
22349         PR target/66112
22350         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
22351         Use SWI248 iterator instead of SWI.
22352         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
22353         Use eq_attr "alternative" "0" instead of match_test in
22354         length_immediate attribute computation.
22355         (*mulvhi4, *mulvhi4_1): New define_insns.
22357         PR target/66112
22358         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
22359         SIGNED to get precision of non-negative value.
22361 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22363         PR target/66048
22364         * function.c (diddle_return_value_1): Process bounds first.
22365         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
22366         register.
22368 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22370         PR rtl-optimization/64616
22371         * loop-invariant.c (can_move_invariant_reg): New.
22372         (move_invariant_reg): Call above new function to decide whether
22373         instruction can just be moved, skipping creation of temporary
22374         register.
22376 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22378         PR target/pr66047.c
22379         * i386.c (ix86_function_sseregparm): Only return -1 if local function
22380         with implied regparm is called from -mno-sse function.
22381         (init_cumulative_args): Output error if ix86_function_sseregparm
22382         return -1 and SSE register would be needed.
22383         (function_arg_advance_32): Likewise.
22384         (function_arg_32): Likewise.
22385         * i386.h (ix86_args): Add decl field.
22387 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22389         PR ipa/65873
22390         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
22391         inlines across optimization boundary.
22393 2015-05-12  Jason Merrill  <jason@redhat.com>
22395         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
22396         string literal and macro name.
22398 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
22400         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
22401         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
22402         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
22404 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
22406         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
22407         (-Wmisleading-indentation): New option.
22408         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
22410 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
22412         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
22413         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
22414         (alpha_extract_integer): Ditto.
22415         (alpha_legitimate_constant_p): Ditto.
22416         (alpha_split_tmode_pair): Ditto.
22417         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
22418         (alpha_expand_mov): Ditto.
22419         (print_operand): Remove handling of 'H' modifier.
22420         <case 'm'>: Remove CONST_DOUBLE handling.
22421         (summarize_insn): Handle CONST_WIDE_INT.
22422         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
22423         (anddi3): Ditto.
22424         (movti): Handle CONST_WIDE_INT.
22425         * config/alpha/constraints.md ('H'): Remove constraint definition.
22426         ('G'): Do not match MODE_FLOAT class.
22427         * config/alpha/predicates.md (const0_operand): Also match
22428         const_wide_int.
22429         (non_add_const_operand): Ditto.
22430         (non_zero_const_operand): Ditto.
22431         (some_operand): Ditto.
22432         (input_operand): Ditto.  Handle CONST_WIDE_INT.
22433         (and_operand): Do not match const_double.
22434         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
22436 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
22438         PR target/65697
22439         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
22440         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
22441         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
22442         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
22443         is_mm_seq_cst, is_mm_sync): New accessor functions.
22444         * builtins.c (expand_builtin_sync_operation,
22445         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
22446         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
22447         (get_memmodel,  expand_builtin_atomic_compare_exchange,
22448         expand_builtin_atomic_load, expand_builtin_atomic_store,
22449         expand_builtin_atomic_clear): Use new accessor routines.
22450         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
22451         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
22452         (maybe_emit_sync_lock_test_and_set): Use new accessors and
22453         MEMMODEL_SYNC_ACQUIRE.
22454         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
22455         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
22456         expand_atomic_store): Use new accessors.
22457         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
22458         * tsan.c (instrument_builtin_call): Update check for memory model beyond
22459         final enum to use MEMMODEL_LAST.
22460         * c-family/c-common.c: Use new accessor for memmodel_base.
22461         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
22462         accessors.
22463         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
22464         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
22465         mem_thread_fence, *dmb): Likewise.
22466         * config/alpha/alpha.c (alpha_split_compare_and_swap,
22467         alpha_split_compare_and_swap_12): Likewise.
22468         * config/arm/arm.c (arm_expand_compare_and_swap,
22469         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
22470         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
22471         atomic_loaddi): Likewise.
22472         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
22473         Likewise.
22474         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
22475         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
22476         use new accessors.
22477         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
22478         atomic_store<mode>, atomic_compare_and_swap<mode>,
22479         atomic_exchange<mode>): Use new accessors.
22480         * config/mips/mips.c (mips_process_sync_loop): Likewise.
22481         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
22482         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
22483         rs6000_post_atomic_barrier): Add new cases.
22484         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
22485         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
22486         (atomic_load<mode>): Add new cases and use new accessors.
22487         (store_quadpti): Add new cases.
22488         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
22489         accessors.
22490         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
22491         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
22492         model, not 8.
22494 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22496         * ipa-devirt.c (type_with_linkage_p): New function.
22497         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
22498         type has linkage.
22499         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
22500         (can_be_name_hashed_p): Simplify.
22501         (hash_odr_name): Check that type has linkage before checking if it is
22502         anonymous.
22503         (types_same_for_odr): Likewise.
22504         (odr_name_hasher::equal): Likewise.
22505         (odr_subtypes_equivalent_p): Likewise.
22506         (warn_types_mismatch): Likewise.
22507         (get_odr_type): Likewise.
22508         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
22509         * ipa-utils.h (odr_type_p): Move offline.
22510         * tree.c (need_assembler_name_p): Fix handling of types
22511         without linkages.
22512         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
22514 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
22516         * timevar.c (timevar_enable): Delete in favor of...
22517         (g_timer): New global.
22518         (struct timevar_def): Move to timevar.h inside class timer.
22519         (struct timevar_stack_def): Likewise.
22520         (timevars): Delete global in favor of field "m_timevars" within
22521         class timer in timevar.h
22522         (stack): Likewise, in favor of field "m_stack".
22523         (unused_stack_instances): Likewise, in favor of field
22524         "m_unused_stack_instances".
22525         (start_time): Likewise, in favor of field "m_start_time".
22526         (get_time): Eliminate check for timevar_enable.
22527         (timer::timer): New function, built from part of timevar_init.
22528         (timevar_init): Rewrite idempotency test from using
22529         "timevar_enable" bool to using dynamic allocation of "g_timer".
22530         Move rest of implementation into timer's constructor.
22531         (timevar_push_1): Rename to...
22532         (timer::push): ...this, adding "m_" prefixes to variables that
22533         are now fields of timer.
22534         (timevar_pop_1): Likewise, rename to...
22535         (timer::pop): ...this, and add "m_" prefixes.
22536         (timevar_start): Replace test for "timevar_enable" with one for
22537         "g_timer", and move bulk of implementation to...
22538         (timer::start): ...here, adding "m_" prefixes.
22539         (timevar_stop): Likewise, from here...
22540         (timer::stop): ...to here.
22541         (timevar_cond_start): Likewise, from here...
22542         (timer::cond_start): ...to here.
22543         (timevar_cond_stop): Likewise, from here...
22544         (timer::cond_stop): ...to here.
22545         (validate_phases): Rename to...
22546         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
22547         locals "total" and "tv" const.
22548         (timevar_print): Rename to...
22549         (timer::print): ...this, and add "m_" prefixes.  Make locals
22550         "total" and "tv" const.  Eliminate test for timevar_enable.
22551         * timevar.h (timevar_enable): Eliminate.
22552         (g_timer): New declaration.
22553         (timevar_push_1): Eliminate.
22554         (timevar_pop_1): Eliminate.
22555         (timevar_print): Eliminate.
22556         (class timer): New class.
22557         (timevar_push): Rewrite to use g_timer.
22558         (timevar_pop): Likewise.
22559         * toplev.c (toplev::~toplev): Likewise.
22561 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
22563         * arm-protos.h (arm_sched_autopref): Delete.
22564         (tune_params): Re-organize, use enums for flag values.
22565         (FUSE_OPS): New macro.
22566         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
22567         (ARM_PREFETCH_BENEFICIAL): Likewise.
22568         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
22569         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
22570         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
22571         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
22572         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
22573         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
22574         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
22575         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
22576         format.
22577         (arm_option_override, thumb2_reorg, arm_print_tune_info)
22578         (aarch_macro_fusion_pair_p): Update uses of current_tune.
22579         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
22581 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
22583         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
22584         "break".
22586 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
22587             Sandra Loosemore <sandra@codesourcery.com>
22589         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
22590         value.
22591         (REG_CLASS_NAMES): Add "IJMP_REGS".
22592         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
22593         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
22594         use new "c" register constraint.
22595         * config/nios2/constraint.md (c): New register constraint
22596         corresponding to IJMP_REGS.
22598 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22600         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
22601         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
22602         define_splits): Delete, revamp, transmogrify into ...
22603         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
22604         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
22605         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
22606         New.
22608 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22610         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
22611         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
22613 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22615         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
22616         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
22617         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
22618         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
22619         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
22620         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
22621         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
22622         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
22623         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
22624         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
22625         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
22626         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
22627         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
22628         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
22629         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
22630         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
22631         and 30 corresponding splitters): Delete.
22633 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22635         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
22636         zero_extract.
22638 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22640         * combine.c (recog_for_combine_1): New function, factored out
22641         from recog_for_combine.
22642         (change_zero_ext): New function.
22643         (recog_for_combine): If recog fails, try again with the pattern
22644         modified by change_zero_ext; if that still fails, restore the
22645         pattern.
22647 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22649         * combine.c (get_undo_marker): New function.
22650         (undo_to_marker): New function, largely factored out from ...
22651         (undo_all): ... this.  Adjust.
22653 2015-05-12  Richard Biener  <rguenther@suse.de>
22655         PR tree-optimization/66101
22656         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
22657         fixup if we turn a loop exit edge to a fallthru edge.
22659 2015-05-12  Richard Biener  <rguenther@suse.de>
22661         PR tree-optimization/37021
22662         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
22663         (SLP_TREE_TWO_OPERATORS): New define.
22664         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
22665         SLP_TREE_TWO_OPERATORS.
22666         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
22667         SLP node.
22668         (vect_build_slp_tree): Adjust.
22669         (vect_analyze_slp_cost_1): Likewise.
22670         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
22671         emitting two vector stmts and mixing the results.
22673 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22675         * call.c (print_z_candidates): Remove dead code.
22677 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22679         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
22680         and zEC12_simple_fp.
22681         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
22682         to 1.
22684 2015-05-12  Tom de Vries  <tom@codesourcery.com>
22686         PR tree-optimization/66010
22687         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
22688         ifn_va_arg.
22689         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
22690         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
22691         va_lists are passed, and remove corresponding handling.
22692         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
22693         do_deref argument to ifn_va_arg.
22694         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
22695         ifn_va_arg.
22697 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22699         PR target/65955
22700         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
22701         REG before taking its REGNO.
22703 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22705         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
22706         rsp->sign_bit_copies and rsp->nonzero_bits into ...
22707         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
22708         present to get more accurate information about the number of sign bit
22709         copies and non zero bits.
22711 2015-05-12  Richard Biener  <rguenther@suse.de>
22713         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
22714         do not allow unrolling.
22716 2015-05-11  Richard Henderson  <rth@redhat.com>
22718         * config/i386/i386-modes.def (CCP): New.
22719         * config/i386/i386.c (put_condition_code): Handle it.
22720         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
22722 2015-05-11  Richard Henderson  <rth@redhat.com>
22724         * target.def (md_asm_clobbers): Replace with...
22725         (md_asm_adjust): this.
22726         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
22727         (TARGET_MD_ASM_ADJUST): New.
22728         * tm.texi: Rebuild.
22729         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
22730         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
22731         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
22733         * cfgexpand.c (check_operand_nalternatives): Accept vector of
22734         constraints instead of lists of outputs and inputs.
22735         (expand_asm_stmt): Save and restore input_location around the
22736         body of the function.  Move asm data into vectors instead of
22737         building tree lists.  Generate cleanup sequences as needed,
22738         rather than waiting til the end.  Use new md_asm_adjust hook.
22740         * config/vxworks.c: Include vec.h before target.h.
22741         * gimple.c: Likewise.
22742         * incpath.c: Likewise.
22743         * mode-switching.c: Likewise.
22745         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
22746         (cris_md_asm_adjust): this.
22747         (TARGET_MD_ASM_CLOBBERS): Remove.
22748         (TARGET_MD_ASM_ADJUST): New.
22749         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
22750         (ix86_md_asm_adjust): this.
22751         (TARGET_MD_ASM_CLOBBERS): Remove.
22752         (TARGET_MD_ASM_ADJUST): New.
22753         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
22754         (mn10300_md_asm_adjust): this.
22755         (TARGET_MD_ASM_CLOBBERS): Remove.
22756         (TARGET_MD_ASM_ADJUST): New.
22757         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
22758         (rs6000_md_asm_adjust): this.
22759         (TARGET_MD_ASM_CLOBBERS): Remove.
22760         (TARGET_MD_ASM_ADJUST): New.
22761         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
22762         (visium_md_asm_adjust): this.
22763         (TARGET_MD_ASM_CLOBBERS): Remove.
22764         (TARGET_MD_ASM_ADJUST): New.
22766 2015-05-11  Richard Henderson  <rth@redhat.com>
22768         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
22769         if noutputs is zero.
22770         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
22772         * cfgexpand.c (expand_asm_operands): Merge into...
22773         (expand_asm_stmt): ... here.
22775         * cfgexpand.c (expand_asm_operands): Don't call
22776         resolve_asm_operand_names.
22777         * stmt.c (resolve_asm_operand_names): Clarify block comment.
22779 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
22781         * dwarf2out.c (gen_member_die): Sanity check that we access
22782         TYPE_MAIN_VARIANT for TYPE_METHODS.
22783         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
22784         checking TYPE_METHODS.
22785         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
22786         if non-null.
22787         (build_distinct_type_copy): Clear TYPE_METHODS.
22788         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
22789         (verify_type): Allow TYPE_METHODS to be error_mark_node.
22790         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
22792 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
22794         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
22795         (emit_pattern_before_setloc): Likewise.
22797 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22799         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
22800         for define_peephole2s.
22801         (get_peephole2_pattern): New function.
22802         (main): Use it.  Call validate_pattern.
22804 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
22806         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
22807         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
22808         (Last callee saved reg is different for AVR_TINY architecture)
22810 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
22812         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
22813         when looking for memory references.
22815 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
22817         PR target/65753
22818         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
22819         via function pointers.
22821 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
22823         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
22824         indirect call by forcing address into a pseudo with -fno-plt.
22825         * common.opt (flag_plt): New option.
22826         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
22827         ([-fno-plt]): Document.
22829 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
22831         PR bootstrap/66105
22832         * config/rs6000/option-defaults.h: Add space between string literal
22833         and macro name.
22835 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22837         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
22838         accross ARM targets.
22840 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22842         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
22843         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
22845 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22847         PR rtl-optimization/66076
22848         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
22849         Don't grow the heap array if it is already big enough from a
22850         previous iteration.
22852 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22854         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
22855         (is_called_in_ARM_mode): Remove.
22856         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
22857         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
22858         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
22859          arm_declare_function_name.
22861 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22863         * config/arm/arm.c (arm_option_override): Reoganized and split into :
22864         (arm_option_params_internal); New function.
22865         (arm_option_check_internal): New function.
22866         (arm_option_override_internal): New function.
22867         (thumb_code, thumb1_code): Remove.
22868         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
22869         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
22870         (thumb_code, thumb1_code): Remove.
22871         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
22873 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
22875         * config/alpha/alpha.c (alpha_emit_set_const_1)
22876         (alpha_emit_set_long_const, alpha_extract_integer)
22877         (alpha_legitimate_constant_p, alpha_split_const_mov)
22878         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
22879         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22880         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
22881         HOST_WIDE_INT_1U.
22882         * config/alpha/predicates.md (mode_mask_operand): Do not match
22883         const_double RTX.
22884         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22885         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
22886         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
22887         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22888         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
22890 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
22892         PR target/65780
22893         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
22894         default_binds_local_p_2.
22895         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
22896         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
22898 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22900         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
22902 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22904         Patch by Richard Biener
22905         * coverage.c (coverage_obj_init): Delay building of type variant
22906         until the type is finished.
22908 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22910         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
22911         mismatch between C and C++ type; compoare correctly ARG_TYPES
22912         for non-prototypes and output correctly parameter index for METHOD_TYPE.
22913         (odr_types_equivalent_p): Fix wording of warning about attributes;
22914         it is OK to match prototype and non-prototype.
22916 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22918         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
22919         TYPE_ARG_TYPES list.
22920         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
22921         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
22923 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22925         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
22926         * tree.h (is_lang_specific): Constify.
22928 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
22930         PR tree-optimization/64454
22931         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
22932         Rewrite.
22934 2015-05-08  Jason Merrill  <jason@redhat.com>
22936         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
22937         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
22938         config/darwin.h, config/darwin9.h, config/elfos.h,
22939         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
22940         config/microblaze/microblaze.h, config/mips/mips.h,
22941         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
22942         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
22943         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
22944         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
22945         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
22946         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
22947         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
22948         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
22949         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
22950         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
22951         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
22952         between string literal and macro name.
22954 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22956         * jump.c: Change argument types to rtx_insn *.
22957         * rtl.h: Adjust.
22959 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22961         * lra-constraints.c: Change argument type to rtx_insn *.
22963 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22965         * df-problems.c: Change argument type to rtx_insn *.
22967 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22969         * combine.c: Change argument type to rtx_insn *.
22971 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22973         * rtl.h: Adjust.
22974         * rtlanal.c: Change argument type to rtx_insn *.
22976 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22978         * sched-deps.c: Change argument types to rtx_insn *.
22979         * sched-int.h: Adjust.
22981 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22983         * dwarf2cfi.c: Change argument type to rtx_insn *.
22985 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22987         * ira.c (decrease_live_ranges_number): Changetype of local
22988         variable to rtx_insn *.
22989         * recog.c: Change argument types to rtx_insn *.
22990         * recog.h: Adjust.
22992 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22994         * reorg.c: Change argument types to rtx_insn *.
22996 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22998         * ira-color.c: Change argument types to rtx_insn *.
22999         * lra-eliminations.c: Likewise.
23000         * ira.h: Adjust.
23002 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23004         * gcse.c: Change argument types to rtx_insn *.
23006 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23008         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
23010 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23012         * emit-rtl.c (emit_debug_insn_before): Change argument type to
23013         rtx_insn *.
23014         * rtl.h: Adjust.
23016 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23018         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
23019         * rtl.h: Adjust.
23021 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23023         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
23024         * rtl.h: Adjust.
23026 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23028         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
23029         * rtl.h: Adjust.
23031 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23033         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
23034         * rtl.h: Adjust.
23036 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23038         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
23039         to rtx_insn *.
23040         * rtl.h: Adjust.
23042 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23044         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
23045         to rtx_insn *.
23046         * rtl.h: Likewise.
23048 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23050         * except.c (can_nonlocal_goto): Change type of argument to
23051         rtx_insn *.
23052         * rtl.h: Adjust.
23054 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23056         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
23057         * rtl.h: Adjust.
23059 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23061         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
23062         * cfgrtl.c (can_delete_label_p): Adjust.
23063         * rtl.h: likewise.
23065 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23067         * reorg.c (stop_search_p): Change argument to rtx_insn *.
23069 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23071         * except.c (make_reg_eh_region_note): Change argument to
23072         rtx_insn *.
23073         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
23074         * except.h: Adjust.
23076 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23078         * mode-switching.c (commit_mode_sets): Change type of local
23079         variable from rtx to rtx_insn *.
23081 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
23083         * doc/install.texi (--enable-languages): Add missing jit and lto info.
23084         Add ^ to grep command.
23085         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
23086         arg to last gimple_simplify declaration.  Add missing gimple_build
23087         declaration for built-in function case with four tree args.
23089 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
23090             Szabolcs Nagy  <szabolcs.nagy@arm.com>
23092         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
23093         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
23094         (GNU_USER_DYNAMIC_LINKERN32): Update.
23096 2015-05-08  Richard Biener  <rguenther@suse.de>
23098         PR tree-optimization/66036
23099         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
23100         Handle strided group loads.
23101         (vect_verify_datarefs_alignment): Likewise.
23102         (vect_enhance_data_refs_alignment): Likewise.
23103         (vect_analyze_group_access): Likewise.
23104         (vect_analyze_data_ref_access): Likewise.
23105         (vect_analyze_data_ref_accesses): Likewise.
23106         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
23107         (vectorizable_load): Likewise.
23109 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
23111         * config/rs6000/rs6000.md: Require operand inequality in one
23112         of the peepholes.
23114 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
23115             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
23117         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
23118         from (set ...).
23119         * config/rx/rx.md (movdi, movdf): Likewise.
23120         Likewise for define_peephole2s.
23122 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
23124         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
23125         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
23126         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
23127         vtst_u64): Rewrite using gcc vector extensions.
23129 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
23131         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
23132         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
23134 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
23136         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
23138 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23140         * config/glibc-stdint.h (OPTION_MUSL): Define.
23141         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
23142         Change the definition based on OPTION_MUSL for 64 bit targets.
23143         * config/linux.h (OPTION_MUSL): Redefine.
23144         * config/alpha/linux.h (OPTION_MUSL): Redefine.
23145         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
23146         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
23148 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
23149             Szabolcs Nagy  <szabolcs.nagy@arm.com>
23151         * config.gcc (LIBC_MUSL): New tm_defines macro.
23152         * config/linux.h (OPTION_MUSL): Define.
23153         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
23154         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
23155         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23156         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23157         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23158         * config/linux.opt (mmusl): New option.
23159         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
23160         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23161         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23162         * configure: Regenerate.
23164 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
23165             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23167         PR target/48904
23168         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
23169         * config/i386/knetbsd-gnu64.h: New file.
23171 2015-05-08  Marek Polacek  <polacek@redhat.com>
23173         PR c/64918
23174         * doc/invoke.texi: Document -Woverride-init-side-effects.
23176 2015-05-07  Marek Polacek  <polacek@redhat.com>
23178         PR c/65179
23179         * doc/invoke.texi: Document -Wshift-negative-value.
23181 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
23183         * gcov-tool.c (do_merge): Refactore to remove int ret.
23184         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
23185         !type == FUNC to type != FUNC.
23186         * reload.h (struct target_reload): Changee to type of
23187         x_spill_indirect_levels from bool to unsigned char.
23189 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
23191         * rtl.h (always_void_p): New function.
23192         * gengenrtl.c (always_void_p): Likewise.
23193         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
23194         with code foo are always VOIDmode.
23195         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
23196         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
23197         compare-elim.c, config/aarch64/aarch64.c,
23198         config/aarch64/aarch64.md, config/alpha/alpha.c,
23199         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
23200         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
23201         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
23202         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23203         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
23204         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
23205         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
23206         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
23207         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
23208         config/ia64/vect.md, config/iq2000/iq2000.c,
23209         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
23210         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
23211         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
23212         config/mep/mep.c, config/microblaze/microblaze.c,
23213         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
23214         config/mn10300/mn10300.c, config/msp430/msp430.c,
23215         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
23216         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
23217         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
23218         config/rs6000/altivec.md, config/rs6000/rs6000.c,
23219         config/rs6000/rs6000.md, config/rs6000/vector.md,
23220         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
23221         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
23222         config/sh/sh.md, config/sh/sh_treg_combine.cc,
23223         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
23224         config/spu/spu.md, config/stormy16/stormy16.c,
23225         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
23226         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
23227         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
23228         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
23229         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
23230         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
23231         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
23232         var-tracking.c: Update calls accordingly.
23234 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
23236         PR middle-end/192
23237         PR middle-end/54303
23238         * varasm.c (function_mergeable_rodata_prefix): New function.
23239         (mergeable_string_section): Use it.
23240         (mergeable_constant_section): Use it.
23242 2015-05-07  Jeff Law  <law@redhat.com>
23244         PR target/39726
23245         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23246         simplifier to narrow arithmetic.
23247         * generic-match-head.c: (types_match, single_use): New functions.
23248         * gimple-match-head.c: (types_match, single_use): New functions.
23250 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23252         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
23253         rtx type.
23255 2015-05-07  Richard Biener  <rguenther@suse.de>
23257         PR tree-optimization/66002
23258         * passes.def: Schedule another pass_merge_phi after ifcombine, right
23259         before phiopt.
23261 2015-05-07  Marek Polacek  <polacek@redhat.com>
23262             Martin Uecker  <uecker@eecs.berkeley.edu>
23264         * doc/invoke.texi: Document -fsanitize=bounds-strict.
23265         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
23266         into SANITIZE_NONDEFAULT.
23267         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
23269 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
23271         PR target/66015
23272         * config/alpha/alpha.c (alpha_override_options_after_change): New.
23273         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
23274         (alpha_override_options): Move align_loops, align_jumps and
23275         align_functions handling into alpha_override_options_after_change.
23277 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
23278             Chris Jones  <chrisj@nvidia.com>
23279             Joshua Conner  <jconner@nvidia.com>
23281         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
23282         linking of crtfastmath.o.
23283         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
23285 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
23287         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
23288         (cstore<mode>4_unsigned_imm): New expander.
23289         (cstore<mode>4): Remove empty constraint strings.  Use the new
23290         expanders.
23292 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
23294         PR target/64208
23295         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
23296         alternatives.
23298 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23300         * config/aarch64/geniterators.sh: Use standard BRE in sed.
23302 2015-05-06  Alan Modra  <amodra@gmail.com>
23304         PR target/66033
23305         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
23306         (UNSPEC_NOP): Define.
23307         (reload_vsx_from_gpr<mode>): Add missing DONE.
23308         (reload_gpr_from_vsx<mode>): Likewise.
23309         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
23310         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
23312 2015-05-06  Christian Bruel  <christian.bruel@st.com>
23314         PR target/66015
23315         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
23316         align_jumps, align_functions into aarch64_override_options_after_change.
23318 2015-05-06  Richard Biener  <rguenther@suse.de>
23320         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
23321         vect_transform_slp_perm_load to check if we support a permutation
23322         for basic-block vectorization.
23324 2015-05-06  Nick Clifton  <nickc@redhat.com>
23326         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
23327         used, even if it is not being used as a frame pointer.
23329 2015-05-05  Jason Merrill  <jason@redhat.com>
23331         * dwarf2out.c (gen_member_die): Don't emit anything for an
23332         anonymous class constructor.
23334 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
23336         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
23337         that it reflects the block structure.
23338         (afdo_propagate_edge): Likewise.
23339         (afdo_calculate_branch_prob): Likewise.
23340         (afdo_annotate_cfg): Likewise.
23341         * cfgcleanup.c (equal_different_set_p): Likewise.
23342         (try_crossjump_to_edge): Likewise.
23343         * cgraph.c (cgraph_node::verify_node): Likewise.
23344         * cgraphunit.c (expand_all_functions): Likewise.
23345         * config/i386/i386.c (ix86_expand_copysign): Likewise.
23346         (exact_dependency_1): Likewise.
23347         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
23348         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
23349         * gensupport.c (process_define_subst): Likewise.
23350         * lto-wrapper.c (merge_and_complain): Likewise.
23351         * tree-if-conv.c (if_convertible_bb_p): Likewise.
23352         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
23353         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
23354         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
23355         * tree-vect-loop.c (vectorizable_reduction): Likewise.
23356         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
23357         * tree-vect-stmts.c (vectorizable_shift): Likewise.
23358         * tree-vrp.c (vrp_finalize): Likewise.
23359         * tree.c (variably_modified_type_p): Likewise.
23361 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
23363         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
23364         on darwin12 and later.
23365         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
23366         file to pass -rdynamic on darwin12 and later.
23367         * config/darwin.opt (rdynamic): Add.
23369 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23371         * doc/extend.texi (C Extensions): Update menu for moved Variable
23372         Attributes and Type Attributes sections.
23374 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23376         PR target/65990
23377         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
23378         if rep_8byte stringop strategy was specified for 32-bit target.
23380 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
23382         PR target/65915
23383         * config/i386/i386.md (vector convert to float spltiter): Check for
23384         xmm16+, when splitting scalar float conversion.
23385         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
23387 2015-05-05  Nick Clifton  <nickc@redhat.com>
23389         * config/msp430/msp430-opts.h (enum msp430_regions): New.
23390         * config/msp430/msp430.c (msp430_override_options): Complain if
23391         -mcode-region or -mdata-region is used on a non MSP430X.
23392         (msp430_section_attr): New function.  Checks lower, upper and
23393         either attributes.
23394         (msp430_attribute_table): Add lower, upper and either.
23395         (gen_prefix): New function.  Generates a prefix for a section
23396         name.
23397         (msp430_select_section): New function - handles the choice of
23398         section for an object.  Takes into account memory region
23399         attributes and options.
23400         (msp430_function_section): Use gen_prefix.
23401         (TARGET_SECTION_TYPE_FLAGS): Define.
23402         (msp430_section_type_flags): New function.
23403         (TARGET_ASM_UNIQUE_SECTION): Define.
23404         (msp430_unique_section): New function.
23405         (msp430_output_aligned_decl_common): New function.
23406         (msp430_do_not_relax_short_jumps): New function.
23407         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
23408         Define.
23409         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
23410         * config/msp430/msp430-protos.h
23411         (msp430_do_not_relax_short_jumps): New prototype.
23412         (msp430_output_aligned_decl_common): New prototype.
23413         * config/msp430/msp430.md (length): New attribute.
23414         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
23415         then use a long code sequence for short jumps.
23416         * config/msp430/msp430.opt (mcode-region): New.
23417         (mdata-region): New.
23418         * doc/invoke.texi: Document new options.
23419         * doc/extend.texi: Document new attributes.
23421 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
23423         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
23424         (tune_params): Add field branch_costs.
23425         (aarch64_branch_cost): Declare.
23426         * gcc/config/aarch64.c (generic_branch_cost): New.
23427         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
23428         (cortexa53_tunings): Likewise.
23429         (cortexa57_tunings): Likewise.
23430         (thunderx_tunings): Likewise.
23431         (xgene1_tunings): Likewise.
23432         (aarch64_branch_cost): Define.
23433         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
23435 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23437         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
23438         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
23439         * config/i386/i386.md: Ditto.
23440         * config/i386/winnt.c: Ditto.
23442 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
23444         * doc/extend.texi (__atomic Builtins): Move implementation details
23445         to the end of the description, rewrite opening paragraphs, state
23446         difference with __sync builtins, state C11/C++11 assumptions,
23447         weaken itemized descriptions, add explanation of memory model
23448         behaviour, expand description of compare-exchange, simplify text.
23450 2015-05-05  Renlin Li  <renlin.li@arm.com>
23452         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
23454 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
23456         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
23457         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23458         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
23459         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23460         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
23461         * configure: Regenerate.
23462         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
23463         * doc/install.texi (aarch64*-*-*): Document new
23464         --enable-fix-cortex-a53-843419 option.
23465         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
23466         and -mno-fix-cortex-a53-843419 options.
23468 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23470         PR target/65871
23471         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
23473 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
23475         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
23476         fix overactive TYPE_MIN_VALUE check and add FIXME for type
23477         compatibility problems.
23479 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
23481         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
23482         constraints.
23483         (cbranchsi4_reg): New.
23484         * config/microblaze/microblaze.c
23485         (microblaze_expand_conditional_branch_reg): New.
23486         * config/microblaze/microblaze-protos.h
23487         (microblaze_expand_conditional_branch_reg): New prototype.
23489 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
23491         * config/microblaze/microblaze.md (peephole2): New.
23493 2015-05-04  Jeff Law  <law@redhat.com>
23495         Revert:
23496         2015-05-04  Jeff Law  <law@redhat.com>
23498         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23499         simplifier to narrow arithmetic.
23500         * generic-match-head.c: (types_match, single_use): New functions.
23501         * gimple-match-head.c: (types_match, single_use): New functions.
23503 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
23505         PR target/65987
23506         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
23507         (split_branches): Likewise.
23509 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
23511         * common.opt (fdelete-null-pointer-checks): Init to -1.
23512         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
23513         override flag_delete_null_pointer_checks default.
23514         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
23515         behavior re address zero.  Better document target-specific behavior.
23516         (-fisolate-errneous-paths-dereference): Mention relationship to
23517         -fdelete-null-pointer-checks.
23519 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
23521         PR tree-optimization/65984
23522         * ubsan.c: Include tree-cfg.h.
23523         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
23524         stmt_could_throw_p test, rename can_throw variable to ends_bb.
23526 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
23528         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
23529         to CONST_DOUBLE_P predicate.
23530         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
23531         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
23532         allow only operands that satisfy standard_sse_constant_p predicate.
23533         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
23534         to CONST_DOUBLE_P predicate.
23536 2015-05-04  Jeff Law  <law@redhat.com>
23538         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23539         simplifier to narrow arithmetic.
23540         * generic-match-head.c: (types_match, single_use): New functions.
23541         * gimple-match-head.c: (types_match, single_use): New functions.
23543 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
23545         * config/arm/arm.c: Restore bootstrap.
23547 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
23549         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
23550         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
23551         as CONST_WIDE_INT, not CONST_DOUBLE.
23552         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
23553         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
23554         (ix86_find_base_term): Do not check for CONST_DOUBLE.
23555         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
23556         (ix86_build_signbit_mask): Rewrite using wide ints.
23557         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
23558         (ix86_rtx_costs): Handle CONST_WIDE_INT.
23559         (find_constant): Ditto.
23560         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
23561         using gen_int_mode.
23562         * config/i386/predicates.md (x86_64_immediate_operand)
23563         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23564         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
23565         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23566         (const0_operand): Also match const_wide_int.
23567         (constm1_operand): Ditto.
23568         (const1_operand): Ditto.
23570 2015-05-04  Richard Biener  <rguenther@suse.de>
23572         PR tree-optimization/65965
23573         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
23574         store groups at gaps.
23576 2015-05-04  Richard Biener  <rguenther@suse.de>
23578         PR tree-optimization/65935
23579         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
23580         then make sure to apply that swapping to the IL.
23582 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
23584         * Makefile.in (PATCHLEVEL_c): New variable.
23585         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
23586         expand the same way as if DEVPHASE_c was non-empty.
23588 2015-05-04  Kai Tietz  <ktietz@redhat.com>
23590         PR target/65559
23591         * lto-wrapper.c (run_gcc): Open filename
23592         in binary-mode.
23594 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
23596         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
23597         sections up in file, to immediately after the Function Attributes
23598         section.
23600 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
23602         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
23604 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23606         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
23607         (insert_partition_copy_on_edge): Adjust.
23608         (insert_rtx_to_part_on_edge): Likewise.
23609         (insert_part_to_rtx_on_edge): Likewise.
23611 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23613         * function.c (set_return_jump_label): Change type of argument to
23614         rtx_insn *.
23615         * function.h (set_return_jump_label): Adjust.
23617 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23619         * reload.h (struct reg_equivs_t): Change type of init to
23620         rtx_insn *.
23621         * ira.c (fix_reg_equiv_init): Adjust.
23622         * reload1.c (eliminate_regs_1): Likewise.
23623         (init_eliminable_invariants): Likewise.
23625 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23627         * cselib.c (fp_setter_insn): Take a rtx_insn *.
23628         * cselib.h (fp_setter_insn): Adjust.
23630 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23632         * recog.c (struct validate_replace_src_data): Change type of
23633         insn field to rtx_insn *.
23634         (validate_replace_src_group): Change type of argument to rtx_insn *.
23635         * recog.h (validate_replace_src_group): Adjust.
23637 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23639         * haifa-sched.c: Change the type of some variables to rtx_insn *.
23640         * sched-deps.c: Likewise.
23641         * sched-int.h: Likewise.
23642         * sched-rgn.c: Likewise.
23643         * sel-sched.c: Likewise.
23645 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23647         to rtx_insn *.
23648         * config/i386/i386.c: Change the type of some arguments to
23649         rtx_insn *.
23650         * config/arm/arm.c: Likewise.
23652 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23654         * lra-constraints.c: Change type of some arguments to rtx_insn *.
23656 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23658         * regcprop.c (kill_autoinc_value): Change type of argument to
23659         rtx_insn *.
23661 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23663         * genrecog.c (print_subroutine): Adjust.
23664         * recog.c (get_bool_attr_mask_uncached): Likewise.
23665         * recog.h (struct recog_data_d): Change the type of insn to
23666         rtx_insn *.
23668 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23670         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
23672 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23674         * df-problems.c (df_set_note): Change type of argument to
23675         rtx_insn *.
23677 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23679         * builtins.c (expand_builtin_trap): Change type of local
23680         variable to rtx_insn *.
23681         (add_sched_insns_for_speculation): Likewise.
23682         (ix86_emit_save_regs): Likewise.
23683         (get_scratch_register_on_entry): Likewise.
23684         (ix86_emit_restore_reg_using_pop): Likewise.
23685         (ix86_emit_leave): Likewise.
23686         (ix86_emit_restore_regs_using_mov): Likewise.
23687         (ix86_expand_epilogue): Likewise.
23688         Likewise.
23689         (rl78_alloc_physical_registers_umul): Likewise.
23690         * cselib.c (discard_useless_locs): Likewise.
23691         (cselib_invalidate_regno): Likewise.
23692         (cselib_invalidate_mem): Likewise.
23693         * function.c (expand_function_start): Likewise.
23694         (emit_use_return_register_into_block): Likewise.
23695         * gcse.c: Likewise.
23696         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
23697         * ifcvt.c (noce_get_alt_condition): Likewise.
23698         * loop-doloop.c (doloop_condition_get): Likewise.
23699         * lra-constraints.c (inherit_in_ebb): Likewise.
23700         * modulo-sched.c (sms_schedule_by_order): Likewise.
23701         * recog.c (next_insn_tests_no_inequality): Likewise.
23702         * reorg.c (emit_delay_sequence): Likewise.
23703         (update_reg_dead_notes): Likewise.
23704         (fix_reg_dead_note): Likewise.
23705         (fill_slots_from_thread): Likewise.
23706         (delete_computation): Likewise.
23708 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
23710         * doc/extend.texi (Variable Attributes): Add menu and proper
23711         @nodes to subsections.  Move Microsoft Windows attributes to
23712         their own subsection.
23713         (Type Attributes): Reorganize introduction to remove duplicate
23714         list of attributes.  Add menu and proper @nodes to subsections.
23715         Alphabetize the main table of common attributes.
23717 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
23719         * match.pd: New simplification patterns.
23720         (x + (x & 1))  -> ((x + 1) & ~1)
23721         (x & ~(x & y)) -> ((x & ~y))
23722         (x | ~(x | y)) -> ((x | ~y))
23724 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23726         * target.def (attribute_table): Mention that struct attribute_spec
23727         is defined in tree-core.h rather than tree.h
23728         * doc/tm.texi: Regenerate.
23730 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
23732         * genrecog.c (test): Rename to rtx_test.  Update rest of file
23733         accordingly.
23735 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
23737         PR translation/65959
23738         * params.h (DEFPARAM): Rename msgid to nocmsgid.
23740 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23742         * gcc/config/aarch64/aarch64-protos.h (tune_params):
23743         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
23744         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
23745         Return value depending on target.
23746         (generic_tunings): Initialize new target settings.
23747         (cortexa53_tunings): Likewise.
23748         (cortexa57_tunings): Likewise.
23749         (thunderx_tunings): Likewise.
23750         (xgene1_tunings): Likewise.
23752 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23754         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
23755         Make Cortex-A53 shift costs more accurate.
23757 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23759         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
23760         UNSIGNED_FLOAT.
23762 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23764         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
23765         Calculate cost of op0 and op1 in PLUS and MINUS cases.
23767 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23769         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23770         Add cost of op0 in the compare-with-fpzero case.
23772 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
23774         * builtins.c (fold_builtin_1): Remove spurious second
23775         semicolon.
23776         * cgraph.h (symtab_node::get_availability): Likewise.
23777         * opts.c (common_handle_option): Remove spurious second semicolon.
23778         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23779         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
23781 2015-04-30  Caroline Tice  <cmtice@google.com>
23783         PR gcov-profile/65929
23784         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
23785         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
23786         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
23787         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
23788         * doc/tm.texi: Regenerate.
23789         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
23790         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
23791         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
23792         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
23794 2015-04-30  Marek Polacek  <polacek@redhat.com>
23796         * varasm.c (handle_cache_entry): Fix logic.
23798 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23800         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
23801         (*extrsi5_insn_uxtw_alt): Likewise.
23802         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
23803         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
23804         operations.
23806 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23808         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
23809         fabd in ABS case.
23811 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23813         * config/aarch64/aarch64.md
23814         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
23815         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
23816         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
23817         appropriately.  Handle alternative EON form.
23819 2015-04-30  Renlin Li  <renlin.li@arm.com>
23821         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
23822         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
23824 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
23826         PR ipa/65873
23827         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
23828         -fstrict-aliasing boundaries.
23830 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23832         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
23833         and [SU]MNEGL patterns.
23835 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23837         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
23838         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
23839         combined arithmetic-shift ops.  Properly handle all shift and extend
23840         operations that can occur in combination with PLUS/MINUS.
23841         Rename maybe_fma to compound_p.
23842         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
23843         arithmetic and shift operations.
23845 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23847         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
23848         rather than arith_shift cost when costing ADD/MINUS of an
23849         extended value.
23851 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
23853         PR lto/65948
23854         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
23855         to itself.
23857 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
23859         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
23860         are for the same position.
23862 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
23864         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
23865         vectorize_loops.
23866         (vectorize_loops): Use it.
23868 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23870         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
23871         for aggregate types.
23872         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
23873         type to be non_ODR.
23874         * tree.c (need_assembler_name_p): Compute mangled name for
23875         non-fundamental types and integer types.
23877 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
23879         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
23880         manual swaps.
23881         * expr.c (expand_expr_real_2): Likewise.
23883 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23885         * tree.c (build_common_builtin_nodes): Do not build
23886         __builtin_alloca_with_align as equivalent of library alloca.
23888 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23890         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
23891         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
23892         bugus variants.
23893         * tree.c: Include print-tree.h and ipa-utils.h
23894         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
23895         (free_lang_data_in_cgraph): Call verify_type.
23896         (verify_type_variant): New function.
23897         (verify_type): New function.
23898         * tree.h (verify_type): Declare.
23900 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
23902         * config/mips/mips-cpus.def: (mips4): Change default processor
23903         from PROCESSOR_R8000 to PROCESSOR_R10000.
23905 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23907         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
23908         la/jalr instead of jal.
23910 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
23912         PR target/65871
23913         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
23914         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
23915         (setcc+movzbl peephole2): Check also clobbered reg.
23916         (setcc+andl peephole2): Ditto.
23918 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
23920         PR libgomp/65099
23921         * config/nvptx/mkoffload.c (target_ilp32): New variable.
23922         (main): Set it depending on "-foffload-abi=[...]".
23923         (compile_native, main): Use it to pass "-m32" or "-m64" to the
23924         compiler.
23926 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23928         PR target/65770
23929         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
23930         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
23931         Flip lane index back at assembly time for bigendian.
23933 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
23935         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
23936         * gimplify.c (gimplify_omp_workshare): Use it.
23938 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23940         * Makefile.in (build/genrecog.o): Depend on inchash.h.
23941         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
23942         build/inchash.o
23943         * genrecog.c: Rewrite most of the code except for the third page.
23945 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23947         * inchash.h, inchash.c: Include bconfig.h for build objects.
23948         * Makefile.in (build/inchash.o): New rule.
23950 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
23952         PR target/65924
23953         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
23954         number in type attribute expression.
23956 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23958         * loop-iv.c (canon_condition): Generalize to all types of integer
23959         constant.
23961 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
23963         * gimple-walk.c: Prune duplicate or unneeded includes.
23964         (walk_gimple_asm): Only call parse_input_constraint or
23965         parse_output_constraint if their findings are used.
23966         Honour parse_input_constraint and parse_output_constraint
23967         result.
23969 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23971         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
23973 2015-04-29  Tom de Vries  <tom@codesourcery.com>
23975         PR tree-optimization/65893
23976         * passes.def (pass_all_optimizations): Move pass_stdarg to after
23977         pass_dce.
23979 2015-04-29  Richard Biener  <rguenther@suse.de>
23981         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23982         compute GROUP_SIZE for basic-block SLP.
23983         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
23984         take into account gaps.
23985         (vect_get_mask_element): Properly reject references to previous
23986         vectors.
23987         (vect_transform_slp_perm_load): Likewise.
23989 2015-04-29  Christian Bruel  <christian.bruel@st.com>
23991         PR target/64835
23992         * config/i386/i386.c (ix86_default_align): New function.
23993         (ix86_override_options_after_change): Call ix86_default_align.
23994         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
23995         (ix86_override_options_after_change): New function.
23997 2015-04-28  Jeff Law  <law@redhat.com>
23999         * tree-ssa-dom.c (record_equality); Fix comment typos.
24001 2015-04-28  Tom de Vries  <tom@codesourcery.com>
24003         PR tree-optimization/65887
24004         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
24006 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
24008         * doc/extend.texi (Declaring Attributes of Functions): Split into
24009         subsections by target.  Alphabetize the table of common attributes.
24010         Rewrite some of the introductory text to reflect the new structure.
24011         Update some cross-references to point to the new subsections.
24012         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
24013         duplicate copies in the discussion of function, label, and type
24014         attributes.
24016 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
24018         PR bootstrap/65910
24019         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
24021 2015-04-28  Jason Merrill  <jason@redhat.com>
24023         PR c++/65734
24024         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
24025         (finalize_type_size): Respect TYPE_USER_ALIGN.
24026         (layout_type) [ARRAY_TYPE]: Likewise.
24028 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
24030         * config/arm/arm.md (*arm_movt): Fix type attribute.
24031         (*cmpsi_shiftsi): Likewise.
24032         (*cmpsi_shiftsi_swp): Likewise.
24033         (*movsicc_insn): Likewise.
24034         (*cond_move): Likewise.
24035         (*if_plus_move): Likewise.
24036         (*if_move_plus): Likewise.
24037         (*if_arith_move): Likewise.
24038         (*if_move_arith): Likewise.
24039         (*if_shift_move): Likewise.
24040         (*if_move_shift): Likewise.
24041         (*arm_movtas_ze): Likewise.
24042         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
24043         redundancy and type attribute.
24044         (*thumb2_movsi_insn): Fix type attribute.
24045         (*thumb2_addsi_short): Likewise.
24046         (thumb2_addsi3_compare0): Likewise.
24047         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
24048         attributes accordingly.
24050 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
24052         PR other/65911
24053         * function.c (pad_to_arg_alignment): Add parentheses.
24055 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
24057         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
24058         libgcc/config/frv/elf-lib.h.
24060 2015-04-28  Tom de Vries  <tom@codesourcery.com>
24062         * tree-call-cdce.c: Fix example in header comment.
24064 2015-04-28  Richard Biener  <rguenther@suse.de>
24066         PR tree-optimization/62283
24067         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
24068         fails fatally and we are vectorizing a basic-block simply
24069         cause the child to be constructed piecewise.
24070         (vect_analyze_slp_cost_1): Adjust.
24071         (vect_detect_hybrid_slp_stmts): Likewise.
24072         (vect_bb_slp_scalar_cost): Likewise.
24073         (vect_get_constant_vectors): For piecewise constructed
24074         constants place them after the last def.
24075         (vect_get_slp_defs): Adjust.
24076         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
24077         externals for basic-block vectorization.
24079 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24081         PR target/63503
24082         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
24083         aarch64-*-*.
24084         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
24085         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
24086         (AARCH64_TUNE_FMA_STEERING): Likewise.
24087         * config/aarch64/aarch64-cores.def: Set
24088         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
24089         FMUL/FMADD instructions.
24090         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
24091         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
24092         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
24093         * config/aarch64/cortex-a57-fma-steering.h: New file.
24094         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24096 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
24098         * gensupport.c (std_preds): Add missing codes to address_operand entry.
24100 2015-04-28  Richard Biener  <rguenther@suse.de>
24102         PR tree-optimization/65851
24103         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
24104         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
24105         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
24106         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
24107         (ccp_visit_phi_node): Adjust.
24108         (evaluate_stmt): For simplifications to SSA names return its
24109         lattice value if that isn't VARYING.  Return immediately when
24110         simplified to a constant.
24111         (visit_assignment): Adjust.
24112         (ccp_visit_stmt): Likewise.
24114 2015-04-28  Tom de Vries  <tom@codesourcery.com>
24116         PR tree-optimization/65818
24117         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
24118         evaluated.
24120 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24122         * calls.c (save_fixed_argument_area): Don't check
24123         ARGS_GROW_DOWNWARD with the preprocessor.
24124         (restore_fixed_argument_area): Likewise.
24125         (mem_overlaps_already_clobbered_arg_p): Likewise.
24126         (check_sibcall_argument_overlap): Likewise.
24127         (expand_call): Likewise.
24128         (emit_library_call_value_1): Likewise.
24129         (store_one_arg): Likewise.
24130         * function.c (assign_parms): Likewise.
24131         (locate_and_pad_parm): Likewise.
24132         (pad_to_arg_alignment): Likewise.
24133         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
24135 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24137         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
24138         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
24139         * calls.c (save_fixed_argument_area): Don't chekc if
24140         ARGS_GROW_DOWNWARD is defined.
24141         (restore_fixed_argument_area): Likewise.
24142         (mem_overlaps_already_clobbered_arg_p): Likewise.
24143         (check_sibcall_argument_overlap): Likewise.
24144         (expand_call): Likewise.
24145         (emit_library_call_value_1): Likewise.
24146         (store_one_arg): Likewise.
24147         * function.c (assign_parms): Likewise.
24148         (locate_and_pad_parm): Likewise.
24149         (pad_to_arg_alignment): Likewise.
24150         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
24152 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24154         * defaults.h (gen_epilogue): New function.
24155         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
24156         defined.
24157         * cfgrtl.c (cfg_layout_finalize): Likewise.
24158         * df-scan.c: Likewise.
24159         * function.c (thread_prologue_and_epilogue_insns): Likewise.
24160         (reposition_prologue_and_epilogue_notes): Likewise.
24161         * reorg.c (find_end_label): Likewise.
24162         * toplev.c: Likewise.
24164 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24166         * bb-reorder.c (HAVE_return): Don't check if its undefined.
24167         * defaults.h (gen_simple_return): New function.
24168         (gen_simple_return): Likewise.
24169         (HAVE_return): Add default definition to false.
24170         (HAVE_simple_return): Likewise.
24171         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
24172         HAVE_return and HAVE_simple_return are defined.
24173         * function.c (gen_return_pattern): Likewise.
24174         (convert_jumps_to_returns): Likewise.
24175         (thread_prologue_and_epilogue_insns): Likewise.
24176         * reorg.c (find_end_label): Likewise.
24177         (dbr_schedule): Likewise.
24178         * shrink-wrap.c: Likewise.
24179         * shrink-wrap.h: Likewise.
24181 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24183         * defaults.h (EPILOGUE_USES): Add default definition of false.
24184         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
24185         * resource.c (init_resource_info): Likewise.
24187 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24189         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
24190         to false.
24191         * dwarf2out.c (field_byte_offset): REmove check if
24192         PCC_BITFIELD_TYPE_MATTERS is defined.
24193         * stor-layout.c (layout_decl): Likewise.
24194         (update_alignment_for_field): Likewise.
24195         (place_field): Likewise.
24197 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24199         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
24200         true.
24201         * regrename.c (check_new_reg_p): Remove check if
24202         HARD_REGNO_RENAME_OK is defined.
24203         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
24205 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24207         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
24208         * cse.c (fold_rtx): Likewise.
24209         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
24210         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
24211         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
24212         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
24213         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
24214         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
24215         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
24216         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
24217         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
24218         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
24219         * Likewise.
24220         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
24221         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
24222         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
24223         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
24224         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
24225         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
24226         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
24227         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
24228         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
24229         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
24230         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
24231         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
24232         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
24233         * doc/tm.texi: Regenerate.
24234         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
24235         either true or false.
24237 2015-04-27  Jeff Law  <law@redhat.com>
24239         PR tree-optimization/65217
24240         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
24241         of them has a single use, make sure it is the LHS of the implied
24242         copy.
24244 2015-04-28  Alan Modra  <amodra@gmail.com>
24246         PR target/65810
24247         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
24248         (offsettable_ok_by_alignment): Use minimum of decl and toc
24249         pointer alignment.  Replace dead code with assertion.
24250         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
24251         case if size exceeds toc pointer alignment.
24252         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
24253         (rs6000_emit_move): Likewise.
24254         * configure.ac: Add linker toc pointer alignment check.
24255         * configure: Regenerate.
24256         * config.in: Regenerate.
24258 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
24260         * config.gcc: Add h8300-*-linux.
24261         * config/h8300/linux.h: New.
24262         * config/h8300/t-linux: New.
24263         * config/h8300/h8300.c (h8300_option_override): Normal mode
24264         is not supported for h8300-*-linux.
24265         (h8300_file_start): Target priority change.
24266         (get_shift_alg): Likewise.
24267         (h8300_shift_need_scratch_p): Likewise.
24268         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
24269         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
24271 2015-04-27  Caroline Tice  <cmtice@google.com>
24273         * final.c (final_scan_insn):  Output cold_function_name as function
24274         type.
24275         * varasm.c (cold_function_name):  Make global.
24276         (assemble_start_function):  Re-set cold_function_name.
24277         (assemble_end_function): Output cold partition size.
24278         * varasm.h (cold_function_name):  Declare global.
24280 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
24282         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
24283         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
24284         constraint.
24285         (*movxi_internal_avx512f): Ditto.
24286         (define_split): Check for xmm16+, when splitting scalar float_extend.
24287         (*extendsfdf2_mixed): Use "v" constraint.
24288         (define_split): Check for xmm16+, when splitting scalar float_truncate.
24289         (*truncdfsf_fast_sse): Use "v" constraint.
24290         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
24291         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
24292         (define_peephole2): Check for xmm16+, when converting scalar
24293         float_truncate.
24294         (define_peephole2): Check for xmm16+, when converting scalar
24295         float_extend.
24296         (*fop_<mode>_comm_mixed): Use "v" constraint.
24297         (*fop_<mode>_comm_sse): Ditto.
24298         (*fop_<mode>_1_mixed): Ditto.
24299         (*sqrt<mode>2_sse): Ditto.
24300         (*ieee_s<ieee_maxmin><mode>3): Ditto.
24302 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24304         * combine.c (simplify_if_then_else): Use std::swap instead
24305         of manually swapping.
24306         (known_cond): Likewise.
24307         (simplify_comparison): Likewise.
24309 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
24311         PR target/64579
24312         * config/rs6000/htm.md: Remove all define_expands.
24313         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
24314         UNSPECV_HTM_TABORTWCI): Remove.
24315         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
24316         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
24317         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
24318         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
24319         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
24320         tabortwci_internal): Remove define_insns.
24321         (tabort<wd>c, tabort<wd>ci): New define_insns.
24322         (tabort): Use gpc_reg_operand.
24323         (tcheck): Remove operand.
24324         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
24325         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
24326         expected value.
24327         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
24328         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
24329         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
24330         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
24331         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
24332         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
24333         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
24334         (tcheck): Remove builtin argument.
24335         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
24336         not TARGET_64BIT.
24337         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
24338         tabortdc and tabortdci builtins when not in 64-bit mode.
24339         Modify code to handle the loss of the HTM define_expands.
24340         Emit code to copy the CR register to TARGET.
24341         (htm_init_builtins): Modify code to handle the loss of the HTM
24342         define_expands.
24343         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
24344         (RS6000_BTC_64BIT): Likewise.
24345         (RS6000_BTC_CR): New macro.
24346         * doc/extend.texi: Update documentation for htm builtins.
24348 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24350         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
24351         of manually swapping.
24352         (simplify_associative_operation): Likewise.
24353         (simplify_binary_operation): Likewise.
24354         (simplify_plus_minus): Likewise.
24355         (simplify_relational_operation): Likewise.
24356         (simplify_ternary_operation): Likewise.
24358 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
24360         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
24361         (xs_hi_nonmemory_operand): Remove error.
24362         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
24363         general_operand rather than xs_hi_general_operand.
24365 2015-04-27  Richard Biener  <rguenther@suse.de>
24367         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
24368         (record_equivalences_from_stmt): Valueize rhs.
24369         (record_equality): Canonicalize x and y order via
24370         tree_swap_operands_p.  Do not swap operands for same loop depth.
24372 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
24374         PR target/65296
24375         PR target/65895
24376         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
24377         Add hint how to use own spec file.
24379 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
24381         PR tree-optimization/65875
24382         * tree-vrp.c (update_value_range): If in is_new case setting
24383         old_vr to VR_VARYING, also set new_vr to it.  Remove
24384         old_vr->type == VR_VARYING test.
24385         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
24386         SSA_PROP_INTERESTING if update_value_range returned true,
24387         but new range is VR_VARYING.
24389 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24391         * combine.c (sign_extend_short_imm): New.
24392         (set_nonzero_bits_and_sign_copies): Use above new function for sign
24393         extension of src short immediate.
24394         (reg_nonzero_bits_for_combine): Likewise for tem.
24396 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24398         * stor-layout.c (self_referential_component_ref_p): New predicate.
24399         (copy_self_referential_tree_r): Use it.
24400         (self_referential_size): Punt for simple operations directly involving
24401         self-referential component references.
24402         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
24404 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24406         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
24408 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
24410         * vec.h (vec): Make splice arguments const.  Update definitions
24411         accordingly.
24413 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
24415         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
24416         alternatives.
24418 2015-04-26  Tom de Vries  <tom@codesourcery.com>
24420         PR tree-optimization/65826
24421         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
24423 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
24425         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
24426         (*madd3<mode>): Ditto.
24427         (*msub4<mode>): Ditto.
24428         (*msub3<mode>): Ditto.
24429         (*nmadd4<mode>): Ditto.
24430         (*nmadd3<mode>): Ditto.
24431         (*nmadd4<mode>_fastmath): Ditto.
24432         (*nmadd3<mode>_fastmath): Ditto.
24433         (*nmsub4<mode>): Ditto.
24434         (*nmsub3<mode>): Ditto.
24435         (*nmsub4<mode>_fastmath): Ditto.
24436         (*nmsub3<mode>_fastmath): Ditto.
24438 2015-04-24  Jason Merrill  <jason@redhat.com>
24440         PR c++/50800
24441         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
24442         down when building TYPE_CANONICAL.
24443         (build_pointer_type_for_mode): Likewise.
24445 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
24447         * genrecog.c (validate_pattern): Check matching constraint refers
24448         to a lower numbered operand.
24450 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
24452         PR target/65849
24453         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
24454         save to independent variables use the Save attribute.  This will
24455         allow these options to be modified with the #pragma/attribute
24456         target support.
24457         (-mallow-movmisalign): Likewise.
24458         (-mallow-df-permute): Likewise.
24459         (-msched-groups): Likewise.
24460         (-malways-hint): Likewise.
24461         (-malign-branch-targets): Likewise.
24462         (-mvectorize-builtins): Likewise.
24463         (-msave-toc-indirect): Likewise.
24465         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
24466         can be set via the #pragma/attribute target support.
24467         (rs6000_opt_vars): Likewise.
24468         (rs6000_inner_target_options): If VSX was set, also set
24469         -mno-avoid-indexed-addresses.
24471 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24473         * config/arm/iterators.md (shiftable_ops): Rename to...
24474         (SHIFTABLE_OPS): ... This.  Update use in comments.
24475         (ior_xor): Rename to...
24476         (IOR_XOR): ... This.
24477         (vqh_ops): Rename to...
24478         (VQH_OPS): ... This.
24479         (vqhs_ops): Rename to...
24480         (VQHS_OPS): ... This.
24481         (rshifts): Rename to...
24482         (RSHIFTS): ... This.
24483         (returns): Rename to...
24484         (RETURNS): ... This.
24485         * config/arm/arm.md: Update uses of the above.
24486         * config/arm/neon.md: Likewise.
24488 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24490         * config.host (case ${host}): Add aarch64*-*-linux case.
24491         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
24492         fields to all the cores.
24493         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
24494         Add MCPU_MTUNE_NATIVE_SPECS.
24495         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
24496         field to all extensions.
24497         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
24498         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
24499         Adjust definition of AARCH64_OPT_EXTENSION.
24500         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
24501         (MCPU_MTUNE_NATIVE_SPECS): Define.
24502         * config/aarch64/driver-aarch64.c: New file.
24503         * config/aarch64/x-arch64: New file.
24504         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
24505         -mtune and -march.
24507 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24508             Wei Mi  <wmi@google.com>
24510         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
24511         * config/i386/i386.c (extract_base_offset_in_addr): New function.
24512         (ix86_operands_ok_for_move_multiple): Ditto.
24513         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
24514         (movlpd/movhpd to movupd peephole2): Ditto.
24516 2015-04-24  Marek Polacek  <polacek@redhat.com>
24518         PR c/61534
24519         * input.h (from_macro_expansion_at): Define.
24521         PR c/63357
24522         * doc/invoke.texi: Update description of -Wlogical-op.
24524 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24526         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
24527         ternary operator in fprintf and harmonize spacing.
24529 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24531         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
24532         Mark operand1 commutative.
24534 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24536         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
24537         input operands in memory.
24538         (*vec_concatv2si_sse4_1): Ditto.
24539         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
24540         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
24541         register_operand.
24542         (vec_extract_hi_v32hi): Ditto.
24543         (vec_extract_hi_v64hi): Ditto.
24544         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
24546 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24547             Steven Bosscher <steven@gcc.gnu.org>
24549         PR rtl-optimization/34503
24550         * cprop.c (cprop_reg_p): New.
24551         (hash_scan_set): Use above function to check if register can be
24552         propagated.
24553         (find_avail_set): Return up to two sets, one whose source is a
24554         register and one whose source is a constant.  Sets are returned in an
24555         array passed as parameter rather than as a return value.
24556         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
24557         sets returned by find_avail_set, starting with the one whose source is
24558         a constant. Use cprop_reg_p to check if register can be propagated.
24559         (do_local_cprop): Use cprop_reg_p to check if register can be
24560         propagated.
24561         (implicit_set_cond_p): Likewise.
24563 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24565         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
24566         (sem_function::equals): IGNORED_NODES parameter is now unused;
24567         update call of equals_private.
24568         (sem_function::equals_private): Do not call equals_wpa; skip
24569         gimple body matching if there is no body.
24570         (sem_function::init): Add logic to hash tthunk info.
24571         (sem_function::parse): Also parse thunks.
24572         * ipa-icf.h (equals_private): Update declaration.
24574 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24576         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
24577         asterisk from name so this can be generated directly.
24578         (*altivec_stvx_<mode>_internal): Likewise.
24579         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
24580         that this is never called during or after reload/lra.
24581         (rs6000_frame_related): Remove split_reg
24582         argument and logic that references it.
24583         (emit_frame_save): Remove last parameter from call to
24584         rs6000_frame_related.
24585         (rs6000_emit_prologue): Remove last parameter from eight calls to
24586         rs6000_frame_related.  Force generation of stvx instruction for
24587         Altivec register saves.  Remove split_reg handling, which is no
24588         longer needed.
24589         (rs6000_emit_epilogue):  Force generation of lvx instruction for
24590         Altivec register restores.
24592 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24594         * config/rs6000/rs6000.opt (mcrypto): Change option description to
24595         match category changes in ISA 2.07B.
24597 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24599         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
24600         iterators.
24601         (cmp_op, cmp_type): New code attributes.
24602         (NEON_VCMP, NEON_VACMP): New int iterators.
24603         (cmp_op_unsp): New int attribute.
24604         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
24605         (neon_vceq<mode>): Delete.
24606         (neon_vc<cmp_op><mode>_insn): New pattern.
24607         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
24608         (neon_vcgeu<mode>): Delete.
24609         (neon_vcle<mode>): Likewise.
24610         (neon_vclt<mode>: Likewise.
24611         (neon_vcage<mode>): Likewise.
24612         (neon_vcagt<mode>): Likewise.
24613         (neon_vca<cmp_op><mode>): New define_expand.
24614         (neon_vca<cmp_op><mode>_insn): New pattern.
24615         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
24617 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24619         * tree.h (attribute_value_equal): Declare.
24620         * tree.c (attribute_value_equal): Export.
24622 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24624         * ipa-icf.c (sem_item::compare_attributes): New function.
24625         (sem_item::compare_referenced_symbol_properties): Compare variable
24626         attributes.
24627         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
24628         (sem_function::param_used_p): New function.
24629         (sem_function::equals_wpa): Fix attribute comparsion; match
24630         parameter type codes; do not compare paremter flags when
24631         they are not used; compare edge flags; compare indirect calls.
24632         (sem_item::update_hash_by_addr_refs): Hash reference type.
24633         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
24634         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
24635         reference use type.
24636         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
24637         * ipa-icf.h (compare_attributes, param_used_p): Declare.
24639 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24641         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
24642         cleanup.
24643         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
24644         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
24645         (sem_item::compare_referenced_symbol_properties): New.
24646         (sem_item::hash_referenced_symbol_properties): New.
24647         (sem_item::compare_cgraph_references): Rename to ...
24648         (sem_item::compare_symbol_references): ... this one; use
24649         compare_referenced_symbol_properties.
24650         (sem_function::equals_wpa): Do not compare
24651         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
24652         DECL_IS_OPERATOR_NEW; compare pointer sizes.
24653         (sem_item::update_hash_by_addr_refs): Call
24654         hash_referenced_symbol_properties.
24655         (sem_item::update_hash_by_local_refs): Cleanup.
24656         (sem_function::merge): Do not mix up symbol properties.
24657         (sem_variable::equals_wpa): Use compare_symbol_references.
24658         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
24659         (sem_item::hash_referenced_symbol_properties): New.
24660         (sem_item::compare_symbol_references): New.
24661         (sem_item::compare_cgraph_references): Remove.
24663 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
24665         PR target/26702
24666         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
24667         Emit size of local.
24669 2015-04-23  Nick Clifton  <nickc@redhat.com>
24671         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
24672         ATTRIBUTE_UNUSED to x parameter.
24673         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
24675 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24677         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
24678         TARGET_CRYPTO to TARGET_P8_VECTOR>
24679         (crypto_vpermxor_<mode>): Likewise.
24680         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
24681         (BU_CRYPTO_3A): Likewise.
24682         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
24683         (BU_CRYPTO_OVERLOAD_3A): New #define.
24684         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
24685         (VPMSUMH): Likewise.
24686         (VPMSUMW): Likewise.
24687         (VPMSUMD): Likewise.
24688         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
24689         (VPERMXOR_V4SI): Likewise.
24690         (VPERMXOR_V8HI): Likewise.
24691         (VPERMXOR_V16QI): Likewise.
24692         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
24693         BU_CRYPTO_OVERLOAD_2A.
24694         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
24695         BU_CRYPTO_OVERLOAD_3A.
24696         * config/rs6000/rs6000.opt (mcrypto): Change description of
24697         option.
24699 2015-04-23  Richard Biener  <rguenther@suse.de>
24701         * passes.def: Remove copy propagation passes run directly after CCP.
24702         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
24703         SSA names.
24704         (ccp_visit_phi_node): Rework to handle first executable edge
24705         specially.
24707 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
24709         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24710         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24711         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24712         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
24713         (thumb_legimitimize_reload_address): Remove.
24714         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
24715         Remove.
24716         (thumb_legimitimize_reload_address): Remove.
24718 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24720         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
24722 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24724         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
24725         MAX_LDM_STM_OPS.
24726         (store_multiple): Likewise.
24728 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24730         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
24731         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
24732         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
24733         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
24734         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
24735         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
24736         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
24737         Specify issue_rate value.
24738         (arm_issue_rate): Look up issue rate from tuning structs. Remove
24739         large switch statement.
24740         (arm_marvell_pj4_tune): New struct.
24741         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
24742         struct.
24744 2015-04-23  Richard Biener  <rguenther@suse.de>
24746         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
24747         (vect_find_last_store_in_slp_instance): Rename to ...
24748         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
24749         (vect_analyze_slp_cost_1): Use vector_load for constant defs
24750         and vec_construct for external defs when estimating prologue cost.
24751         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
24752         Compute costs here only when vectorizing loops.
24753         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
24754         have been determined.
24755         (vect_schedule_slp_instance): Simplify vectorized code placement
24756         and prepare for in-BB external defs.
24757         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
24758         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
24759         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
24760         guard.
24761         (vect_model_load_cost): Likewise.
24762         (vectorizable_store): Instead add it here.
24763         (vectorizable_load): Likewise.
24764         (vect_is_simple_use): Dump def type textually.
24766 2015-04-23  Richard Biener  <rguenther@suse.de>
24768         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
24769         * cfgloop.c (verify_loop_structure): Verify the root loop node.
24770         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
24771         instead of get_eh_region_from_lp_number.
24772         * loop-init.c (fix_loop_structure): If we removed a loop, reset
24773         the SCEV cache.
24775 2015-04-23  Anton Blanchard  <anton@samba.org>
24777         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
24778         need for -mprofile-kernel to save LR to stack.
24780 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24782         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
24783         adjustments.
24784         (insn_is_swappable_p): Return 1 for a convert from double to
24785         single precision when all of its uses are splats of BE element
24786         zero.
24788 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
24790         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
24792 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24794         PR target/65456
24795         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
24796         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
24797         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
24798         option.
24799         (rs6000_builtin_mask_for_load): Return 0 for targets with
24800         efficient unaligned VSX accesses so that the vectorizer will use
24801         direct unaligned loads.
24802         (rs6000_builtin_support_vector_misalignment): Always return true
24803         for targets with efficient unaligned VSX accesses.
24804         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
24805         stores on targets with efficient unaligned VSX accesses is almost
24806         always the same as the cost of an aligned load or store, so model
24807         it that way.
24808         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
24809         unaligned vectors if we have efficient unaligned VSX accesses.
24810         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
24811         undocumented option.
24813 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24815         Revert:
24816         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
24818         * config.gcc (LIBC_MUSL): New tm_defines macro.
24819         * config/linux.h (OPTION_MUSL): Define.
24820         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24821         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24822         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24824         * config/linux.opt (mmusl): New option.
24825         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24826         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24828         * configure: Regenerate.
24830 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
24832         * config.gcc (LIBC_MUSL): New tm_defines macro.
24833         * config/linux.h (OPTION_MUSL): Define.
24834         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24835         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24836         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24838         * config/linux.opt (mmusl): New option.
24839         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24840         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24842         * configure: Regenerate.
24844 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
24846         * doc/invoke.texi (-fsanitize-sections): Update description.
24847         * asan.c (set_sanitized_sections): Parse incoming arg.
24848         (section_sanitized_p): Support wildcards.
24850 2015-04-22  Tom de Vries  <tom@codesourcery.com>
24852         PR tree-optimization/65823
24853         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
24854         equality between ap_copy and ap.
24856 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24858         PR target/47098
24859         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
24861 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24863         PR target/47122
24864         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
24866 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24868         PR target/55144
24869         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
24870         remove already contained t-files.
24872 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24874         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
24875         Remove unneeded forward declarations.
24876         (suitable_for_tail_call_opt_p): Commentary typo fix.
24878 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24880         * varasm.c (emit_bss): Remove redundant guard.
24882 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24884         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
24886 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24888         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
24890 2015-04-22  Hale Wang  <hale.wang@arm.com>
24891             Terry Guo  <terry.guo@arm.com>
24893         PR rtl-optimization/64818
24894         * combine.c (can_combine_p): Don't combine user-specified
24895         register if it is in an asm input.
24897 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
24899         PR ipa/65076
24900         * passes.def (early_optimizations): Add pass_dse.
24902 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24904         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
24905         * reorg.c (redundant_insn): Remove ifdef
24906         INSN_REFERENCES_ARE_DELAYED.
24907         * resource.c (mark_referenced_resources): Likewise.
24909 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24911         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
24912         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
24913         * resource.c (mark_set_resources): Likewise.
24915 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24917         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
24918         * cfgcleanup.c (flow_find_cross_jump): Likewise.
24919         (flow_find_head_matching_sequence): Likewise.
24920         (try_head_merge_bb): Likewise.
24921         * combine.c (can_combine_p): Likewise.
24922         (try_combine): Likewise.
24923         (distribute_notes): Likewise.
24924         * df-problems.c (can_move_insns_across): Likewise.
24925         * final.c (final): Likewise.
24926         * gcse.c (insert_insn_end_basic_block): Likewise.
24927         * ira.c (find_moveable_pseudos): Likewise.
24928         * reorg.c (try_merge_delay_insns): Likewise.
24929         (fill_simple_delay_slots): Likewise.
24930         (fill_slots_from_thread): Likewise.
24931         * sched-deps.c (sched_analyze_2): Likewise.
24933 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24935         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
24936         PIC_OFFSET_TABLE_REGNUM.
24938 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24940         * alias.c (init_alias_target): Remove ifdef
24941         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
24942         * df-scan.c (df_insn_refs_collect): Likewise.
24943         (df_get_regular_block_artificial_uses): Likewise.
24944         (df_get_eh_block_artificial_uses): Likewise.
24945         (df_get_entry_block_def_set): Likewise.
24946         (df_get_exit_block_use_set): Likewise.
24947         * emit-rtl.c (gen_rtx_REG): Likewise.
24948         * ira.c (ira_setup_eliminable_regset): Likewise.
24949         * reginfo.c (init_reg_sets_1): Likewise.
24950         * regrename.c (rename_chains): Likewise.
24951         * reload1.c (reload): Likewise.
24952         (eliminate_regs_in_insn): Likewise.
24953         * resource.c (mark_referenced_resources): Likewise.
24954         (init_resource_info): Likewise.
24956 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24958         * defaults.h (MASK_RETURN_ADDR): New definition.
24959         * except.c (expand_builtin_extract_return_addr): Remove ifdef
24960         MASK_RETURN_ADDR.
24962 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24964         * defaults.h (RETURN_ADDR_OFFSET): New definition.
24965         * except.c (expand_builtin_extract_return_addr): Remove ifdef
24966         RETURN_ADDR_OFFSET.
24967         (expand_builtin_frob_return_addr): Likewise.
24969 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24971         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
24972         (try_redirect_by_replacing_jump): Likewise.
24973         (rtl_tidy_fallthru_edge): Likewise.
24974         * combine.c (insn_a_feeds_b): Likewise.
24975         (find_split_point): Likewise.
24976         (simplify_set): Likewise.
24977         * cprop.c (cprop_jump): Likewise.
24978         * cse.c (cse_extended_basic_block): Likewise.
24979         * df-problems.c (can_move_insns_across): Likewise.
24980         * function.c (emit_use_return_register_into_block): Likewise.
24981         * haifa-sched.c (sched_init): Likewise.
24982         * ira.c (find_moveable_pseudos): Likewise.
24983         * loop-invariant.c (find_invariant_insn): Likewise.
24984         * lra-constraints.c (curr_insn_transform): Likewise.
24985         * postreload.c (reload_combine_recognize_const_pattern):
24986         * Likewise.
24987         * reload.c (find_reloads): Likewise.
24988         * reorg.c (delete_scheduled_jump): Likewise.
24989         (steal_delay_list_from_target): Likewise.
24990         (steal_delay_list_from_fallthrough): Likewise.
24991         (redundant_insn): Likewise.
24992         (fill_simple_delay_slots): Likewise.
24993         (fill_slots_from_thread): Likewise.
24994         (delete_computation): Likewise.
24995         * sched-rgn.c (add_branch_dependences): Likewise.
24997 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24999         * genconfig.c (main): Always define HAVE_cc0.
25000         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
25001         HAVE_cc0.
25002         * cfgcleanup.c (flow_find_cross_jump): Likewise.
25003         (flow_find_head_matching_sequence): Likewise.
25004         (try_head_merge_bb): Likewise.
25005         * cfgrtl.c (rtl_merge_blocks): Likewise.
25006         (try_redirect_by_replacing_jump): Likewise.
25007         (rtl_tidy_fallthru_edge): Likewise.
25008         * combine.c (do_SUBST_MODE): Likewise.
25009         (insn_a_feeds_b): Likewise.
25010         (combine_instructions): Likewise.
25011         (can_combine_p): Likewise.
25012         (try_combine): Likewise.
25013         (find_split_point): Likewise.
25014         (subst): Likewise.
25015         (simplify_set): Likewise.
25016         (distribute_notes): Likewise.
25017         * cprop.c (cprop_jump): Likewise.
25018         * cse.c (cse_extended_basic_block): Likewise.
25019         * df-problems.c (can_move_insns_across): Likewise.
25020         * final.c (final): Likewise.
25021         (final_scan_insn): Likewise.
25022         * function.c (emit_use_return_register_into_block): Likewise.
25023         * gcse.c (insert_insn_end_basic_block): Likewise.
25024         * haifa-sched.c (sched_init): Likewise.
25025         * ira.c (find_moveable_pseudos): Likewise.
25026         * loop-invariant.c (find_invariant_insn): Likewise.
25027         * lra-constraints.c (curr_insn_transform): Likewise.
25028         * optabs.c (prepare_cmp_insn): Likewise.
25029         * postreload.c (reload_combine_recognize_const_pattern):
25030         * Likewise.
25031         * reload.c (find_reloads): Likewise.
25032         (find_reloads_address_1): Likewise.
25033         * reorg.c (delete_scheduled_jump): Likewise.
25034         (steal_delay_list_from_target): Likewise.
25035         (steal_delay_list_from_fallthrough): Likewise.
25036         (try_merge_delay_insns): Likewise.
25037         (redundant_insn): Likewise.
25038         (fill_simple_delay_slots): Likewise.
25039         (fill_slots_from_thread): Likewise.
25040         (delete_computation): Likewise.
25041         (relax_delay_slots): Likewise.
25042         * sched-deps.c (sched_analyze_2): Likewise.
25043         * sched-rgn.c (add_branch_dependences): Likewise.
25045 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25047         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
25048         that is trivially ded on non cc0 targets.
25049         (simplify_set): Likewise.
25050         (mark_used_regs_combine): Likewise.
25051         * cse.c (new_basic_block): Likewise.
25052         (fold_rtx): Likewise.
25053         (cse_insn): Likewise.
25054         (cse_extended_basic_block): Likewise.
25055         (set_live_p): Likewise.
25056         * rtlanal.c (canonicalize_condition): Likewise.
25057         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
25059 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25061         * conditions.h: Define macros even if HAVE_cc0 is undefined.
25062         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
25063         * final.c: Likewise.
25064         * jump.c: Likewise.
25065         * recog.c: Likewise.
25066         * recog.h: Declare functions even when HAVE_cc0 is undefined.
25067         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
25069 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25071         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
25072         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
25073         * builtins.c (expand_builtin): Remove check if
25074         EH_RETURN_DATA_REGNO is defined.
25075         * df-scan.c (df_bb_refs_collect): Likewise.
25076         (df_get_exit_block_use_set): Likewise.
25077         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
25078         * ira-lives.c (process_bb_node_lives): Likewise.
25079         * lra-lives.c (process_bb_lives): Likewise.
25081 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
25083         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
25084         FIRST_PSEUDO_REG): New.
25085         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
25086         (ARG_POINTER_REGNUM): Define to ARGP_REG.
25087         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
25088         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
25089         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
25090         (FIRST_INT_REG): New.
25091         (LAST_INT_REG): New.
25092         (FIRST_*_REG): Define using *_REG.
25093         (LAST_*_REG): Ditto.
25094         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
25095         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
25096         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
25098 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25100         * expmed.c: (synth_mult): Only assume overlapping
25101         shift with previous steps in alg_sub_t_m2 case.
25103 2015-04-21  Richard Biener  <rguenther@suse.de>
25105         PR tree-optimization/65650
25106         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
25107         transitions involving copies.
25108         (set_lattice_value): Adjust for copy lattice state.
25109         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
25110         if that doesn't dominate the merge point.
25111         (bit_value_unop): Adjust what we treat as varying mask.
25112         (bit_value_binop): Likewise.
25113         (bit_value_assume_aligned): Likewise.
25114         (evaluate_stmt): When we simplified to a SSA name record a copy
25115         instead of dropping to varying.
25116         (visit_assignment): Simplify.
25118         * gimple-match.h (gimple_simplify): Add another callback.
25119         * gimple-fold.c (fold_stmt_1): Adjust caller.
25120         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
25121         for the 2nd callback.
25122         * gimple-match-head.c (gimple_simplify): Add a callback that is
25123         used to valueize the stmt operands and use it that way.
25125 2015-04-21  Richard Biener  <rguenther@suse.de>
25127         PR tree-optimization/65788
25128         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
25130 2015-04-21  Richard Biener  <rguenther@suse.de>
25132         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
25133         vec_construct cost by vec_stmt_cost.
25135 2015-04-21  Richard Biener  <rguenther@suse.de>
25137         * cfghooks.h (create_basic_block): Replace with two overloads
25138         for RTL and GIMPLE.
25139         (split_block): Likewise.
25140         * cfghooks.c (split_block): Rename to ...
25141         (split_block_1): ... this.
25142         (split_block): Add two type-safe overloads for RTL and GIMPLE.
25143         (split_block_after_labels): Call split_block_1.
25144         (create_basic_block): Rename to ...
25145         (create_basic_block_1): ... this.
25146         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
25147         (create_empty_bb): Call create_basic_block_1.
25148         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
25149         split_block_after_labels.
25150         * omp-low.c (expand_parallel_call): Likewise.
25151         (expand_omp_target): Likewise.
25152         (simd_clone_adjust): Likewise.
25153         * tree-chkp.c (chkp_get_entry_block): Likewise.
25154         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
25155         create_basic_block overload.
25156         (cgraph_node::expand_thunk): Likewise.
25157         * tree-cfg.c (make_blocks): Likewise.
25158         (handle_abnormal_edges): Likewise.
25159         * tree-inline.c (copy_bb): Likewise.
25161 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25163         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
25164         New pattern.
25165         (*xor_one_cmplsidi3_ze): Likewise.
25167 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25169         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
25170         use df_remove_problem rather than manually removing problems, leaving
25171         holes in df->problems_in_order[].
25173 2015-04-21  Tom de Vries  <tom@codesourcery.com>
25175         PR tree-optimization/65802
25176         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
25178 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25180         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
25181         Increase to 128.
25182         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
25183         at '.'.  Assert that there's enough space for everything.
25185 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
25187         PR tree-optimization/64950
25188         Revert:
25189         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
25191         PR target/41089
25192         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
25193         as volatile.
25195 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
25197         PR rtl-optimization/64916
25198         * cfgcleanup.c (values_equal_p): New function.
25199         (can_replace_by): Use it.
25201 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
25203         PR c++/65801
25204         * doc/invoke.texi ([-Wnarrowing]): Update.
25206 2015-04-20  Jeff Law  <law@redhat.com>
25208         PR tree-optimization/65658
25209         * tree-ssa-threadupdate.c (redirection_block_p): Remove
25210         redundant test for GIMPLE_ASSIGN in last change.
25212 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
25214         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
25215         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
25216         (legitimize_tls_address): Ditto.
25217         (ix86_expand_move): Ditto.
25218         (ix86_expand_binary_operator): Remove reload_in_progress checks.
25219         (ix86_expand_unary_operator): Ditto.
25220         * config/i386/predicates.md (index_register_operand): Ditto.
25222 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
25224         * reorg.c (try_merge_delay_insns): Improve correctness checking
25225         for targets with multiple delay slots.
25227 2015-04-20  Jeff Law  <law@redhat.com>
25229         PR tree-optimization/65658
25230         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
25231         statements too.
25233 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
25235         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
25236         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
25237         Delete.
25239 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
25241         PR debug/65807
25242         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
25244 2015-04-20  Richard Biener  <rguenther@suse.de>
25246         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
25247         * gimple-fold.c (gimple_build_valueize): New function.
25248         (gimple_build): Always use gimple_build_valueize as valueize hook.
25250 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
25252         PR target/64134
25253         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
25254         and overwrite variable parts if <= 1/2 the elements are variable.
25256 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
25258         PR rtl-optimization/65805
25259         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
25260         Don't use difference of offset and previous offset if
25261         update_sp_offset is non-zero.
25262         (eliminate_regs_in_insn): Ditto.
25263         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
25264         lra_eliminate_regs_1 call.
25265         * lra-constraints.c (get_equiv_with_elimination): Ditto.
25267 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
25269         * hash-table.h: Remove version of hash_table that stored value_type *.
25270         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
25271         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
25272         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
25273         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
25274         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
25275         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
25276         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
25277         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
25278         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
25279         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
25280         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
25281         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
25282         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
25283         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
25284         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
25285         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
25287 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25288             Jakub Jelinek  <jakub@redhat.com>
25290         PR target/65787
25291         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
25292         subsequent SH_NONE operand does not overwrite an existing *special
25293         value.
25294         (adjust_extract): Handle case where a vec_extract operation is
25295         wrapped in a PARALLEL.
25297 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
25299         PR target/65780
25300         * config/i386/i386.c (ix86_binds_local_p): Define only if
25301         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
25303 2015-04-17  Jeff Law  <law@redhat.com>
25305         PR tree-optimization/47679
25306         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
25307         * tree-ssa-scopedtables.c: New file.
25308         * tree-ssa-scopedtables.h: New file.
25309         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
25310         (const_and_copies): Change name/type.
25311         (record_const_or_copy): Move into tree-ssa-scopedtables.c
25312         (record_const_or_copy_1): Similarly.
25313         (restore_vars_to_original_value): Similarly.
25314         (pass_dominator::execute): Create and destroy const_and_copies table.
25315         (thread_across_edge): Update passing of const_and_copies.
25316         (record_temporary_equivalence): Use method calls rather than
25317         manipulating const_and_copies directly.
25318         (record_equality, cprop_into_successor_phis): Similarly.
25319         (dom_opt_dom_walker::before_dom_children): Similarly.
25320         (dom_opt_dom_walker::after_dom_children): Similarly.
25321         (eliminate_redundant_computations): Similarly.
25322         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
25323         (record_temporary_equivalence): Likewise.
25324         (invalidate_equivalences): Likewise.
25325         (record_temporary_equivalences_from_phis): Update due to type
25326         change of const_and_copies.  Use method calls rather than
25327         manipulating the stack directly.
25328         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
25329         (thread_through_normal_block, thread_across_edge): Likewise.
25330         (thread_across_edge): Likewise.
25331         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
25332         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
25333         of equiv_stack.
25334         (identify_jump_threads): Update due to type change of equiv_stack.
25335         (finalize_jump_threads): Delete the equiv_stack when complete.
25337 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
25339         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25340         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
25341         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
25343 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
25345         PR target/65535
25346         * config.gcc: Exit with a comment when we do not have a major version
25347         number for the FreeBSD target.
25349 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25351         PR target/65689
25352         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
25353         maybe_allows_mem bitfields.
25354         (maybe_allows_none_start, maybe_allows_none_end,
25355         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
25356         maybe_allows_mem_end): New variables.
25357         (compute_maybe_allows): New function.
25358         (add_constraint): Use it to initialize maybe_allows_reg and
25359         maybe_allows_mem fields.
25360         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
25361         is_address constraints such that those that allow neither mem nor
25362         reg come first, then those that only allow reg but not mem, then
25363         those that only allow mem but not reg, then the rest.
25364         (write_allows_reg_mem_function): New function.
25365         (write_tm_preds_h): Call it.
25366         * stmt.c (parse_output_constraint, parse_input_constraint): Use
25367         the generated insn_extra_constraint_allows_reg_mem function
25368         instead of always setting *allows_reg = true; *allows_mem = true;
25369         for unknown extra constraints.
25371 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
25373         PR target/65780
25374         * output.h (default_binds_local_p_3): New.
25375         * varasm.c (default_binds_local_p_3): Make it public.  Take an
25376         argument to indicate if common symbol may be local.  If common
25377         symbol may be local, treat non-external variable as defined
25378         locally.
25379         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
25380         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
25381         * config/i386/i386.c (ix86_binds_local_p): New.
25382         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
25383         ix86_binds_local_p.
25385 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25387         PR debug/65771
25388         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
25389         trying mem_loc_descriptor on XEXP (rtl, 0).
25391 2015-04-17  Martin Liska  <mliska@suse.cz>
25393         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25394         Release symbol_compare_collection.
25395         * ipa-reference.c: Add TODO that a vector should be released.
25397 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
25399         PR target/65296
25400         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
25401         to new AVR-LibC file layout (bug #44574).
25402         (*avrlibc_devicelib): Same.
25403         * config/avr/avr-mcus.def: Adjust comments.
25404         * config/avr/avr.opt (nodevicelib): Adjust help.
25406 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
25408         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
25410 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
25412         PR c++/64527
25413         * gimplify.c (gimplify_init_constructor): Always emit a
25414         side-effecting constructor.
25416 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25418         PR tree-optimization/64950
25419         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
25420         in cfun->curr_properties.
25421         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
25422         if we generate an IFN_VA_ARG.
25423         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
25424         function if PROP_gimple_lva is not set in src function.
25426 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25427             Michael Matz  <matz@suse.de>
25429         PR tree-optimization/64950
25430         * gimple-iterator.c (update_modified_stmts): Remove static.
25431         * gimple-iterator.h (update_modified_stmts): Declare.
25432         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
25433         (gimplify_va_arg_internal): New function.
25434         (gimplify_va_arg_expr): Use IFN_VA_ARG.
25435         * gimplify.h (gimplify_va_arg_internal): Declare.
25436         * internal-fn.c (expand_VA_ARG): New unreachable function.
25437         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
25438         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
25439         (expand_ifn_va_arg): New function.
25440         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
25441         (pass_stdarg::execute): Call expand_ifn_va_arg.
25442         (pass_data_lower_vaarg): New pass_data.
25443         (pass_lower_vaarg): New gimple_opt_pass.
25444         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
25445         (make_pass_lower_vaarg): New function.
25446         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
25447         properties_required field.
25448         * passes.def (all_passes): Add pass_lower_vaarg.
25449         * tree-pass.h (PROP_gimple_lva): Add define.
25450         (make_pass_lower_vaarg): Declare.
25452 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25454         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
25455         * calls.c (call_expr_flags): Same.
25457 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25459         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
25460         (pass_stdarg::execute): ... here.
25462 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25463             Michael Matz  <matz@suse.de>
25465         * tree-cfg.c (make_blocks_1): Factor out of ...
25466         (make_blocks): ... here.
25467         (make_edges_bb): Factor out of ...
25468         (make_edges): ... here.
25469         (gimple_find_sub_bbs): New function.
25470         * tree-cfg.h (gimple_find_sub_bbs): Declare.
25472 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25474         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
25476 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
25478         * asan.c (set_sanitized_sections): New function.
25479         (section_sanitized_p): Ditto.
25480         (asan_protect_global): Optionally sanitize user-defined
25481         sections.
25482         * asan.h (set_sanitized_sections): Declare new function.
25483         * common.opt (fsanitize-sections): New option.
25484         * doc/invoke.texi (-fsanitize-sections): Document new option.
25485         * opts-global.c (handle_common_deferred_options): Handle new
25486         option.
25488 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25490         PR debug/65771
25491         * dwarf2out.c (loc_list_from_tree): Return NULL
25492         for DEBUG_EXPR_DECL.
25494 2015-04-17  Christian Bruel  <christian.bruel@st.com>
25496         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
25497         same attributes.
25499 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
25501         * ira-color.c (setup_left_conflict_sizes_p): Do not process
25502         node itself when computing left conflict subnode size.
25504 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
25506         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
25507         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
25508         *fop_<mode>_1_sse using enabled attribute.  Use
25509         register_mixssei387nonimm_operand operand 1 predicate. Change
25510         alternative 3 constraints from "x" to "v".
25512 2015-04-16  Richard Biener  <rguenther@suse.de>
25514         PR tree-optimization/65774
25515         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
25516         bit-value tracking on.
25518 2015-04-16  Richard Biener  <rguenther@suse.de>
25520         PR tree-optimization/64277
25521         * tree-vrp.c (check_array_ref): Fix anti-range handling,
25522         simplify upper bound handling.
25523         (search_for_addr_array): Simplify.
25524         (check_array_bounds): Handle ADDR_EXPRs here.
25525         (check_all_array_refs): Simplify.
25527 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
25529         * config/i386/i386.c (print_reg): Rewrite function.
25531 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25533         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
25534         Invert the condition.
25536 2015-04-16  Renlin Li  <renlin.li@arm.com>
25538         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
25539         simplifications for UNSIGNED_FLOAT.
25541 2015-04-16  Nick Clifton  <nickc@redhat.com>
25543         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
25544         MUL_UNINIT.
25545         (enum rl78_cpu_type): New.
25546         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
25547         (umulhi3_shift_virt): Remove m constraint from operand 1.
25548         (umulqihi3_virt): Likewise.
25549         * config/rl78/rl78.c (rl78_option_override): Add code to process
25550         -mcpu and -mmul options.
25551         (rl78_alloc_physical_registers): Add code to handle divhi and
25552         divsi valloc attributes.
25553         (set_origin): Likewise.
25554         * config/rl78/rl78.h (RL78_MUL_G14): Define.
25555         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
25556         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
25557         __RL78_Gxx__.
25558         (ASM_SPEC): Pass -mcpu on to assembler.
25559         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
25560         (mulqi3_rl78): Likewise.
25561         (mulhi3_g13): Likewise.
25562         (mulhi3): Generate the G13 or G14 versions of the insn directly.
25563         (mulsi3): Likewise.
25564         (mulhi3_g14): Add clobbers of AX and BC.
25565         (mulsi3_g14): Likewise.
25566         (mulsi3_g13): Likewise.
25567         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
25568         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
25569         * config/rl78/rl78.opt (mmul): Initialise value to
25570         RL78_MUL_UNINIT.
25571         (mcpu): New option.
25572         (m13, m14, mrl78): New option aliases.
25573         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
25574         (MULTILIB_DIRNAMES): Add g13 and g14.
25575         * doc/invoke.texi: Document -mcpu and -mmul options.
25577 2015-04-16  Richard Biener  <rguenther@suse.de>
25579         * tree-ssa-ccp.c (likely_value): See if we have operands that
25580         are marked as never simulate again and return CONSTANT in this
25581         case.
25582         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
25583         not have any operands that will be simulated again as
25584         not being simulated again.
25586 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
25588         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
25589         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
25590         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
25591         attribute.
25592         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
25593         enabled attribute.
25594         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
25595         *float<SWI48:mode><MODEF:mode>2_sse.
25596         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
25597         enabled attribute.
25598         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
25599         enabled attribute.
25601 2015-04-15  Tom de Vries  <tom@codesourcery.com>
25603         PR other/65487
25604         * function.c (push_dummy_function): New function.
25605         (init_dummy_function_start): Use push_dummy_function.
25606         (pop_dummy_function): New function.  Factored out of ...
25607         (expand_dummy_function_end): ... here.
25608         * function.h (push_dummy_function, pop_dummy_function): Declare.
25609         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
25610         pop_dummy_function.
25611         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
25613 2015-04-15  Jeff Law  <law@redhat.com>
25615         PR tree-optimization/47679
25616         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
25617         need for forward declaration in upcoming changes.
25618         (record_conditions, record_edge_info): Likewise.
25620         PR rtl-optimization/42522
25621         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
25622         SIGN_EXTRACT as a whole object rather than simplifying
25623         its operand.
25625 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
25627         PR ipa/65765
25628         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
25629         and GIMPLE_PREDICT use break instead of return true. For
25630         GIMPLE_EH_DISPATCH, compare dispatch region.
25632 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
25634         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
25635         details about the implementation.  Make clear preference for
25636         __atomic builtins.  Reduce possibility of future change.
25638 2015-04-15  Nick Clifton  <nickc@redhat.com>
25640         * config/rx/rx.opt (mallow-string-insns): New option.
25641         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
25642         builtin if string instructions are denied.
25643         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
25644         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
25645         appropriate.
25646         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
25647         * config/rx/rx.md (movstr): Enable pattern only if string
25648         instructions are allowed.
25649         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
25650         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
25651         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
25652         (MULTILIB_DIRNAMES): Add no-strings.
25653         * doc/invoke.texi: Document -mno-allow-string-insns.
25655 2015-04-15  Alan Modra  <amodra@gmail.com>
25657         PR target/65408
25658         PR target/58744
25659         PR middle-end/36043
25660         * calls.c (load_register_parameters): Don't load past end of
25661         mem unless suitably aligned.
25663 2015-04-15  Nick Clifton  <nickc@redhat.com>
25665         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
25666         decrement instruction as being frame related.
25667         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
25668         based addresses.
25669         If zero extending a function address enclose the operation in
25670         %code(...).
25671         (rl78_preferred_reload_class): New function.
25672         (TARGET_PREFERRED_RELOAD_CLASS): Define.
25673         * config/rl78/rl78.md: Remove useless constraints in expanders.
25674         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
25675         (mulhi3_rl78): Likewise.
25676         (mulhi3_g13): Likewise.
25677         (mulsi3_rl78): Likewise.
25678         (es_addr): Move to before the multiply patterns.
25680 2015-04-15  Alan Modra  <amodra@gmail.com>
25682         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
25683         and sequence_stack.  Add seq.
25684         (seq_stack): Delete.
25685         * function.c (prepare_function_start): Don't access x_last_insn.
25686         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
25687         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
25688         * emit_rtl.c (start_sequence, push_topmost_sequence,
25689         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
25690         sequence accessors.
25691         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
25692         remove_insn): Likewise.  Simplify.
25693         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
25694         and pop_topmost_sequence.
25695         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
25696         debug insns.
25697         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
25699 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
25701         PR target/65729
25702         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
25703         the assertiion.
25705 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
25707         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
25708         (LEGACY_INT_REGNO_P): Ditto.
25709         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
25710         (ANY_MASK_REG_P): Remove.
25711         (BND_REG_P): Rename from ANY_BND_REG_P.
25712         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
25713         legacy integer registers.  Do not handle MMX_REG_P in a special way.
25714         Merge 64byte and 32byte SSE handling.
25716 2015-04-14  Nick Clifton  <nickc@redhat.com>
25718         * expr.c (expand_assignment): Force an address offset computation
25719         into a register before changing its mode.
25720         (expand_expr_real_1): Likewise.
25722 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
25724         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
25725         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
25726         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
25727         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
25728         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
25729         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
25730         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
25731         and __aarch64_vget_lane_any.
25733 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
25735         PR rtl-optimization/65761
25736         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
25737         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
25739 2015-04-14  Richard Biener  <rguenther@suse.de>
25741         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
25742         (graphite_can_represent_scev): Use POINTER_TYPE_P.
25744 2015-04-14  Richard Biener  <rguenther@suse.de>
25746         PR tree-optimization/65758
25747         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
25748         against -1.
25749         (ccp_lattice_meet): Likewise.
25750         (bit_value_unop): Likewise.
25751         (bit_value_binop): Likewise.
25752         (bit_value_assume_aligned): Likewise.
25754 2015-04-14  Christian Bruel  <christian.bruel@st.com>
25756         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
25757         function.
25759 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
25761         PR tree-optimization/63387
25762         * match.pd ((x unord x) | (y unord y) -> (x unord y),
25763         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
25765 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
25767         * config/i386/predicates.md (any_QIreg_operand): Rename from
25768         q_regs_operand.  Do not process subregs.
25769         (QIreg_operand): Use QI_REGNO_P predicate.
25770         (ext_QIreg_operand): Ditto.
25771         (ext_register_operand): Ditto.
25772         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
25773         (AND splitters): Ditto.
25774         (AND with -65536 splitter): Add SWI48 mode for operand 0.
25775         (AND with -256 splitter): Use any_QIreg_operand predicate and
25776         SWI248 mode for operand 0.
25777         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
25778         mode for operand 0.
25779         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
25781 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
25783         * doc/plugins.texi: Rewrite first introductory paragraph.
25785 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25787         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
25788         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
25790 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25792         * ipa-profie.c (ipa_profile): Check number of parameters
25793         and possible polymorphic call targets before
25794         devirtualizing.
25796 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
25798         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
25799         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
25801 2015-04-13  Richard Biener  <rguenther@suse.de>
25803         PR tree-optimization/65204
25804         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
25805         takens for bit-CCP.
25807 2015-04-13  Richard Biener  <rguenther@suse.de>
25809         PR target/65660
25810         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
25811         and cond_not_taken_branch_cost to 4 and 2.
25812         (bdver2_cost): Likewise.
25813         (bdver3_cost): Likewise.
25814         (bdver4_cost): Likewise.
25816 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25818         * hash-table.h (hash_table constructor): Add mem stats.
25819         (alloc_entries): Likewise.
25821 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25823         * ipa-cp.c (ipcp_driver): Relase prev_edge.
25824         * passes.c (execute_one_pass): Only add transform if pass has one.
25826 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
25828         * config/i386/i386.c (ix86_option_override_internal): Don't set
25829         -fprefetch-loop-arrays if optimizing for size.
25831 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25832             Gerald Pfeifer  <gerald@pfeifer.com>
25834         * doc/contrib.texi (Contributors): Add Martin Jambor and
25835         Michael Matz.
25837 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
25839         * BASE-VER: Set to 6.0.0.
25841         PR tree-optimization/65747
25842         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
25843         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
25845 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
25847         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
25848         sentence.  Improve grammar.
25850 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
25852         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
25854 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
25856         PR ipa/65743
25857         * ipa-inline-transform.c (speculation_removed): Remove static var.
25858         (check_speculations): New function.
25859         (clone_inlined_nodes): Do not check spculations.
25860         (inline_call): Call check_speculations.
25861         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
25862         consider non-invariants.
25864 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
25865             Martin Liska  <mliska@suse.cz>
25867         PR ipa/65722
25868         * ipa-icf.c (sem_item::compare_cgraph_references): function and
25869         variable can not match.
25870         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
25871         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
25873 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
25875         PR tree-optimization/65735
25876         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
25877         Remove visited_phis argument, add visited_bbs, avoid recursing into the
25878         same bb rather than just into the same phi node.
25879         (thread_through_normal_block): Adjust caller.
25881 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
25883         * doc/contrib.texi (Contributors): Add Ira Rosen.
25885 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
25887         * gcov.c (find_source): Fix miswording in error message.
25888         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
25889         (ix86_expand_sse_comi_round): Fix typo in error message.
25891 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
25893         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
25895 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
25897         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
25899 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
25901         PR target/65710
25902         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
25903         Print bad_spills_num and insn_pseudos_num.
25905 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25907         PR target/65694
25908         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
25909         when creating +1 values for SImode.
25911 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
25913         PR target/65729
25914         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
25915         assert.
25917 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
25918             Iain Sandoe  <iain@codesourcery.com>
25920         PR target/65351
25921         * configure: Regenerate.
25923 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
25925         PR target/65671
25926         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
25928 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
25930         * doc/contrib.texi (Contributors): Add John Marino.
25932 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
25934         PR tree-optimization/65709
25935         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
25936         TREE_TYPE (TREE_TYPE (t)).
25938 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
25940         PR target/65710
25941         * lra-int.h (lra_bad_spill_regno_start): New.
25942         * lra.c (lra_bad_spill_regno_start): New.
25943         (lra): Set up lra_bad_spill_regno_start.  Set up
25944         lra_constraint_new_regno_start unconditionally.
25945         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
25946         spill preferences.
25948 2015-04-09  Marek Polacek  <polacek@redhat.com>
25949             Jakub Jelinek  <jakub@redhat.com>
25951         PR middle-end/65554
25952         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
25953         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
25954         of STRIP_NOPS.
25956 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
25958         PR rtl-optimization/65693
25959         * combine.c (is_parallel_of_n_reg_sets): Move outside of
25960         #ifndef HAVE_cc0.
25962 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
25964         PR target/65296
25965         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
25966         device specs file if "device-specs%s" didn't resolve to a path.
25968 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
25970         PR target/65676
25971         * config/i386/i386.c (fixup_modeless_constant): New.
25972         (ix86_expand_args_builtin): Fixup modeless constant operand.
25973         (ix86_expand_round_builtin): Ditto.
25974         (ix86_expand_special_args_builtin): Ditto.
25975         (ix86_expand_builtin): Ditto.
25977 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
25979         PR target/65693
25980         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
25981         any pow2 integer in between 2 and 0x80000000U inclusive.
25983 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
25985         PR rtl-optimization/65693
25986         * combine.c (is_parallel_of_n_reg_sets): Change first argument
25987         from an rtx_insn * to an rtx.
25988         (try_combine): Adjust both callers.  Use it once more.
25990 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25992         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
25993         (chkp_make_static_const_bounds): Search existing
25994         symbol by assembler name.  Use make_decl_one_only.
25995         (chkp_get_zero_bounds_var): Remove node search which
25996         is now performed in chkp_make_static_const_bounds.
25997         (chkp_get_none_bounds_var): Likewise.
25999 2015-04-08  Michael Witten  <mfwitten@gmail.com>
26001         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
26002         to an example.
26004 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26006         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
26008 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
26010         * doc/extend.texi (__sync Builtins): Fix grammar.
26012 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26014         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
26016 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26018         * varasm.c (emit_local): Move definition of align.
26020 2015-04-08  Julian Brown  <julian@codesourcery.com>
26022         * config/nvptx/mkoffload.c (process): Support variable mapping.
26024 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
26026         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
26027         alpha_links **.
26028         (alpha_write_one_linkage): Correct typo.
26030 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
26032         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
26034 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
26036         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
26038 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
26040         * tree-chkp.h (chkp_insert_retbnd_call): New.
26041         * tree-chkp.c (chkp_insert_retbnd_call): New.
26042         * ipa-split.c (insert_bndret_call_after): Remove.
26043         (split_function): Use chkp_insert_retbnd_call.
26044         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
26045         bounds for instrumented functions.
26047 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
26049         PR ipa/65540
26050         * calls.c (initialize_argument_information): When producing tail
26051         call also turn SSA_NAMES passed by references to original PARM_DECLs
26053 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
26055         PR target/65648
26056         * lra-remat.c (do_remat): Process input and non-input insn
26057         registers separately.
26059 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
26061         PR debug/65678
26062         * valtrack.c (debug_lowpart_subreg): New function.
26063         (dead_debug_insert_temp): Use it.
26065         PR middle-end/65680
26066         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
26067         into signed HOST_WIDE_INT the same as negative bit_offset.
26069 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
26071         * ipa-comdats.c (ipa_comdats): Visit all thunks
26072         to set proper comdat group.
26074 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26076         PR target/65489
26077         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
26078         on constants for NEON VSTRUCT modes.
26080 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
26081             Iain Sandoe  <iain@codesourcery.com>
26083         PR target/65351
26084         * configure: Regenerate.
26086 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
26088         PR target/65614
26089         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
26090         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
26091         that LFD is used to load double constants instead of LFS.  Add
26092         defaults for all costs structures.  Add comments for missing
26093         initialization fields.
26094         (size32_cost): Likewise.
26095         (size64_cost): Likewise.
26096         (rs64a_cost): Likewise.
26097         (mpccore_cost): Likewise.
26098         (ppc403_cost): Likewise.
26099         (ppc405_cost): Likewise.
26100         (ppc440_cost): Likewise.
26101         (ppc476_cost): Likewise.
26102         (ppc601_cost): Likewise.
26103         (ppc603_cost): Likewise.
26104         (ppc604_cost): Likewise.
26105         (ppc604e_cost): Likewise.
26106         (ppc620_cost): Likewise.
26107         (ppc630_cost): Likewise.
26108         (ppccell_cost): Likewise.
26109         (ppc750_cost): Likewise.
26110         (ppc7450_cost): Likewise.
26111         (ppc8540_cost): Likewise.
26112         (ppce300c2c3_cost): Likewise.
26113         (ppce500mc_cost): Likewise.
26114         (ppce500mc64_cost): Likewise.
26115         (ppce5500_cost): Likewise.
26116         (ppce6500_cost): Likewise.
26117         (titan_cost): Likewise.
26118         (power4_cost): Likewise.
26119         (power6_cost): Likewise.
26120         (power7_cost): Likewise.
26121         (power8_cost): Likewise.
26122         (ppca2_cost): Likewise.
26123         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
26125         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
26126         instead of XXLOR to copy SFmode to clear out dirty bits created
26127         when SFmode denormals are generated.
26128         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
26129         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
26131 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
26133         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
26134         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
26135         * config/aarch64/aarch64-tune.md: Regenerate.
26137 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
26139         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
26140         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
26141         * config/arm/arm-cores.def (exynos-m1): New core.
26142         * config/arm/arm-tune.md: Regenerate.
26143         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
26144         * config/arm/bpabi.h: Likewise.
26146 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
26148         * ipa-cp (set_single_call_flag): Remove too
26149         restrictive assert.
26151 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
26153         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
26154         GOMP_offload_unregister from the destructor.
26156 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
26158         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
26159         flags for instrumentation thunk.
26160         (chkp_produce_thunks): Likewise.
26162 2015-04-05  Martin Liska  <mliska@suse.cz>
26164         PR ipa/65665
26165         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
26166         has computed data structure.
26167         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26169 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
26171         * invoke.texi (inline-unit-growth): Increase growth to 20%
26172         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
26174 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
26176         PR target/65647
26177         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
26178         value checking.
26179         (lra_rematerialization_iter): New.
26180         * lra.c (lra): Initialize lra_rematerialization_iter.
26181         Stop updating lra_constraint_new_regno_start after switching of
26182         inheritance and rematerialization.
26183         * lra-remat.c (lra_rematerialization_iter): New.
26184         (lra_remat): Add printing pass iteration.  Do rematerialization
26185         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
26187 2015-04-04  Richard Biener  <rguenther@suse.de>
26189         PR tree-optimization/64909
26190         PR tree-optimization/65660
26191         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
26192         to take a cost vector for scalar iteration cost.
26193         (vect_get_single_scalar_iteration_cost): Likewise.
26194         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
26195         Compute the scalar iteration cost into a cost vector.
26196         (vect_get_known_peeling_cost): Use the scalar cost vector to
26197         account for the cost of the peeled iterations.
26198         (vect_estimate_min_profitable_iters): Likewise.
26199         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26200         Likewise.
26202 2015-04-04  Alan Modra  <amodra@gmail.com>
26204         PR target/65576
26205         PR target/65240
26206         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
26207         0.0 constant unless TARGET_VSX.
26208         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
26209         alternative.
26211 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
26213         PR ipa/65654
26214         * ipa-inline-transform.c (inline_call): Skip sanity check to work
26215         around the ICE
26217 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
26219         PR ipa/65655
26220         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
26221         speculative indirect edges to avoid ordering issue.
26223 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
26225         PR ipa/65076
26226         * ipa-inline.c (edge_badness): Add combined size to the denominator.
26228 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
26230         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
26231         TYPE_ARTIFICIAL on the .omp_data* types.
26233 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26235         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
26236         instrumentation thunks.
26238 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26240         * config/i386/i386.c (ix86_expand_call): Avoid nested
26241         PARALLEL in returned call value.
26243 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26245         * lto-cgraph.c (input_cgraph_1): Always link instrumented
26246         assembler name with original one.
26248 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
26250         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
26252 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
26254         Revert parts of r216820.
26255         * config/i386/i386.md (movqi_internal): Correct type calculation
26256         for alternatives 3 and 5.
26258 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
26260         PR preprocessor/61977
26261         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
26262         predefine __vector/__bool/__pixel macros nor context sensitive
26263         macros for CLK_ASM.
26264         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
26266 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
26268         * config/pa/pa.c (pa_output_move_double): Directly handle register
26269         indexed memory operand.  Simplify handling of scaled register indexed
26270         memory operands.
26272 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26274         PR driver/65444
26275         * config/i386/linux-common.h (MPX_SPEC): New.
26276         (CHKP_SPEC): Add MPX_SPEC.
26277         * doc/invoke.texi (-fcheck-pointer-boudns): Document
26278         possible issues with '-z bndplt' support in linker.
26280 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
26282         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
26283         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
26284         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
26285         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
26286         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
26288 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
26290         * config/i386/sync.md (UNSPEC_MOVA): Remove.
26291         (atomic_load<mode>): Change operand 0 predicate to
26292         nonimmediate_operand and fix up the destination when needed.
26293         Use UNSPEC_LDA.
26294         (atomic_loaddi_fpu): Use UNSPEC_LDA.
26295         (atomic_store<mode>): Change operand 1 predicate to
26296         nonimmendate_operand and move the source to register when needed.
26297         Use UNSPEC_STA.
26298         (atomic_store<mode>_1): Use UNSPEC_STA.
26299         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
26300         Fix moves from memory operand.  Use UNSPEC_STA.
26302 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26304         * expmed.c (strict_volatile_bitfield_p): Check that the access will
26305         not cross a MODESIZE boundary.
26306         (store_bit_field, extract_bit_field): Added assertions in the
26307         strict volatile bitfields code path.
26309 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
26311         PR target/65624
26312         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
26313         Increase args array size by one to avoid buffer overflow.
26315 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
26317         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
26318         split_part.
26319         * ipa-inline.c (edge_badness): Add wrapper penalty.
26320         (sum_callers): Move up.
26321         (inline_small_functions): Set single_caller.
26322         * ipa-inline.h (inline_summary): Add single_caller.
26323         * ipa-split.c (split_function): Set split_part.
26324         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
26325         * cgraph.h (cgraph_node): Add split_part.
26327 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
26329         PR target/58945
26330         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
26331         Do not split operands 0 and operands 2 to halfmode.
26332         (atomic_compare_and_swap<mode>): Update for
26333         atomic_compare_and_swap<dwi>_doubleword changes.
26335 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
26337         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
26338         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
26339         no caching is done.
26341 2015-03-31  Martin Liska  <mliska@suse.cz>
26343         PR ipa/65557
26344         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
26345         has already filled up function summary.
26346         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26348 2015-03-31  Richard Biener  <rguenther@suse.de>
26350         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
26351         of types.
26353 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26355         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
26356         nested functions.
26357         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
26358         (s390_asm_output_function_label): Adapt to new signature of
26359         s390_function_num_hotpatch_hw
26360         Optimise the code generating assembler output.
26361         Add comments to assembler file.
26363 2015-03-31  Richard Biener  <rguenther@suse.de>
26365         PR middle-end/65626
26366         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
26367         of the noreturn call so it is last and cleanup_control_flow_bb
26368         can do the CFG part.
26370 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
26372         PR target/65531
26373         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
26374         same_comdat_group for external symbols.
26375         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
26376         infinite same_comdat_group traversal loop.
26378 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
26380         PR plugins/61176
26381         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
26382         automatically to $headers.
26384 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
26386         PR ipa/65610
26387         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
26388         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
26389         function.
26390         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
26391         Use it.
26392         * ipa-prop.c (param_type_may_change_p): Likewise.
26393         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
26394         (remove_unused_scope_block_p): Add in_ctor_dtor_block
26395         argument.  Before inlining, preserve
26396         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
26397         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
26398         recursive calls.
26399         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
26401 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26403         PR ipa/65076
26404         * ipa-inline.c (edge_badness): Base denominator on callee's
26405         grwoth squared.
26407 2015-03-27  Martin Jambor  <mjambor@suse.cz>
26409         PR ipa/65478
26410         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
26411         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
26412         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
26413         node_calling_single_call.
26414         * ipa-cp.c (count_callers): New function.
26415         (set_single_call_flag): Likewise.
26416         (initialize_node_lattices): Count callers and set single_flag_call if
26417         necessary.
26418         (incorporate_penalties): New function.
26419         (good_cloning_opportunity_p): Use it, dump new flags.
26420         (propagate_constants_topo): Set node_within_scc flag if appropriate.
26421         * doc/invoke.texi (ipa-cp-recursion-penalty,
26422         ipa-cp-single-call-pentalty): Document.
26424 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26426         PR ipa/65588
26427         * symtab.c (symtab_node::get_partitioning_class): Register vars
26428         are duplicated.
26429         * varpool.c (symbol_table::output_variables) Do not assemble unefined
26430         decls for non-symbols.
26432 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
26434         PR target/65248
26435         * output.h (default_binds_local_p_2): New.
26436         * varasm.c (default_binds_local_p_2): Renamed to ...
26437         (default_binds_local_p_3): This.  Don't return true on protected
26438         data symbol if protected data may be external.
26439         (default_binds_local_p): Use default_binds_local_p_3.
26440         (default_binds_local_p_1): Likewise.
26441         (default_binds_local_p_2): New.
26442         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
26443         default_binds_local_p_2 if TARGET_MACHO is undefined.
26445 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
26447         PR target/65593
26448         * config/i386/i386.c (legitimize_pic_address): If base
26449         is SYMBOL_REF or LABEL_REF using %rip addressing, force
26450         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
26452 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26454         PR target/65531
26455         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
26456         comdat groups.
26458 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26460         PR ipa/65600
26461         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
26462         of optimized out indirect call.
26463         (redirect_to_unreachable): Always build symbol table node for
26464         BUILT_IN_UNREACHABLE
26466 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
26468         PR target/65407
26469         * ira-costs.c (record_reg_classes): Process all constraint string
26470         containing 0-9.
26472 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
26474         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
26475         memory_operand.
26477         PR target/65052
26478         * config/c6x/constraints.md (S3): New constraint.
26479         * config/c6x/c6x.md (real_jump): Use it.
26481 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26483         PR middle-end/65595
26484         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
26485         do redirection if the call is not optimized out.
26487 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
26489         PR target/65495
26490         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
26491         (fchkp-check-incomplete-type): Add LTO.
26492         (fchkp-zero-input-bounds-for-main): Likewise.
26493         (fchkp-first-field-has-own-bounds): Likewise.
26494         (fchkp-narrow-bounds): Likewise.
26495         (fchkp-narrow-to-innermost-array): Likewise.
26496         (fchkp-use-static-bounds): Likewise.
26497         (fchkp-use-static-const-bounds): Likewise.
26498         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26500 2015-03-27  Marek Polacek  <polacek@redhat.com>
26502         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
26504 2015-03-27  Marek Polacek  <polacek@redhat.com>
26506         PR sanitizer/65583
26507         * ubsan.c (ubsan_create_edge): New function.
26508         (instrument_bool_enum_load): Call it.
26509         (instrument_nonnull_arg): Likewise.
26510         (instrument_nonnull_return): Likewise.
26511         (instrument_object_size): Likewise.
26513 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26515         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
26516         auto_vec.
26518 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26520         PR lto/65536
26521         * lto-streamer.h (class lto_location_cache): New.
26522         (struct data_in): Add location_cache.
26523         (lto_input_location): Update prototype.
26524         (stream_input_location_now): New.
26525         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
26526         pointer to location.
26527         (stream_input_location): Update.
26528         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
26529         (warn_odr): Apply location cache before warning.
26530         (lto_input_location): Update prototype.
26531         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
26532         Use stream_input_location_now.
26533         * lto-streamer-in.c (lto_location_cache::current_cache): New static
26534         variable.
26535         (lto_location_cache::cmp_loc): New function.
26536         (lto_location_cache::apply_location_cache): New function.
26537         (lto_location_cache::accept_location_cache): New function.
26538         (lto_location_cache::revert_location_cache): New function.
26539         (lto_location_cache::input_location): New function.
26540         (lto_input_location): Do location caching.
26541         (stream_input_location_now): New function.
26542         (input_eh_region, input_struct_function_base): Use
26543         stream_input_location_now.
26544         (lto_data_in_create): use new.
26545         (lto_data_in_delete): Use delete.
26546         * tree-streamer-in.c (unpack_ts_block_value_fields,
26547         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
26548         lto_input_ts_exp_tree_pointers): Update for cached location api.
26550 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26552         PR ipa/65076
26553         * passes.def: Add pass_nothrow.
26554         * ipa-pure-const.c: (pass_data_nothrow): New.
26555         (pass_nothrow): New.
26556         (pass_nothrow::execute): New.
26557         (make_pass_nothrow): New.
26558         * tree-pass.h (make_pass_nothrow): Declare.
26560 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26562         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
26563         edge to change by speculation resolution or redirection.
26564         (edge_set_predicate): Likewise.
26565         (inline_summary_t::duplicate): Likewise.
26566         (remap_edge_summaries): Likewise.
26568 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26570         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
26571         New macros.
26572         (can_inline_edge_p): Relax option matching for always inline functions.
26574 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
26576         PR target/65561
26577         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
26578         Check operand 4 and operand 0 for equality.
26579         (avx512f_vextract<shuffletype>32x4_1_maskm):
26580         Check operand 6 and operand 0 for equality.
26581         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
26582         for equality.
26583         (vec_extract_hi_<mode>_maskm): Ditto.
26585 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26587         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
26588         dead calls back to live.
26589         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
26590         cross check to ...
26591         (cgraph_node::verify_node): ... here; verify only callee edges,
26592         not caller.
26593         * cif-code.def (CILK_SPAWN): New code.
26595 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26597         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
26598         (edge_set_predicate): Use it to mark unreachable edges.
26599         (inline_summary_t::duplicate): Remove unnecesary code.
26600         (remap_edge_summaries): Likewise.
26601         (dump_inline_summary): Report contains_cilk_spawn.
26602         (compute_inline_parameters): Compute contains_cilk_spawn.
26603         (inline_read_section, inline_write_summary): Stream
26604         contains_cilk_spawn.
26605         * ipa-inline.c (can_inline_edge_p): Do not touch
26606         DECL_STRUCT_FUNCTION that may not be available;
26607         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
26608         remove check for callee_fun->can_throw_non_call_exceptions and
26609         replace it by optimization attribute check; check for flag_exceptions.
26610         * ipa-inline-transform.c (inline_call): Maintain
26611         DECL_FUNCTION_PERSONALITY
26612         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
26614 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
26616         PR tree-optimization/65551
26617         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
26618         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
26620 2015-03-26  Richard Biener  <rguenther@suse.de>
26622         PR middle-end/65555
26623         * tree-cfg.c (verify_gimple_call): Do not require a call to
26624         have no LHS if it wasn't recognized as control altering yet.
26626 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
26628         PR tree-optimization/64715
26629         * passes.def: Add another instance of pass_object_sizes before ccp1.
26630         * tree-object-size.c (pass_object_sizes::execute): In
26631         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
26632         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
26633         __bos result and the computed constant.  Remove redundant
26634         checks, obsoleted by gimple_call_builtin_p test.
26636         * var-tracking.c (variable_tracking_main_1): Don't track
26637         variables for targetm.no_register_allocation targets.
26639 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
26641         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
26642         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
26644 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
26646         PR target/65569
26647         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
26648         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
26649         0.0 is correctly setup.
26650         (extenddftf2_internal): Likewise.
26652 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
26654         PR tree-optimization/65177
26655         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
26656         (bb_in_bbs): New.
26657         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
26658         edges not adjacent on the path to the original code.
26660 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
26662         PR bootstrap/65537
26663         * doc/install.texi (Building a native compiler): Document new
26664         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
26665         configuration assumes that the host supports the linker plugin.
26667 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
26669         PR target/65508
26670         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
26671         chain for generated call.
26673 2015-03-25  Richard Biener  <rguenther@suse.de>
26675         * passes.c (pass_manager::execute_early_local_passes): Guard
26676         execution of pass_chkp_instrumentation_passes with
26677         flag_check_pointer_bounds.
26678         (pass_chkp_instrumentation_passes::gate): Likewise.
26680 2015-03-25  Martin Liska  <mliska@suse.cz>
26682         PR tree-optimization/65538
26683         * symbol-summary.h (function_summary::~function_summary):
26684         Relese memory for allocated summaries.
26685         (function_summary::release): New function.
26687 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
26689         PR lto/65515
26690         * lto-streamer-out.c (DFS::worklist): New struct.
26691         (DFS::worklist_vec): New data member.
26692         (DFS::next_dfs_num): Remove.
26693         (DFS::DFS): Rewritten using worklist instead of recursion,
26694         using most of code from DFS::DFS_write_tree.
26695         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
26696         pass it to DFS_write_tree calls.
26697         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
26698         quick initial checks push it into worklist_vec and return.
26700 2015-03-25  Richard Biener  <rguenther@suse.de>
26702         PR middle-end/65519
26703         * genmatch.c (expr::gen_transform): Re-write to avoid
26704         using gimple_build.
26706 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
26708         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
26710 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
26712         * config/arm/arm.opt (print_tune_info): New option.
26713         * config/arm/arm.c (arm_print_tune_info): New function.
26714         (arm_file_start): Call arm_print_tune_info.
26715         * config/arm/arm-protos.h (struct tune_params): Add comment.
26716         * doc/invoke.texi (@item -mprint-tune-info): New item.
26717         (-mtune): mention it in ARM Option Summary.
26719 2015-03-25  DJ Delorie  <dj@redhat.com>
26721         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
26722         correct clause.
26724 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
26725             Martin Liska  <mliska@suse.cz>
26727         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
26728         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
26729         (sem_item::add_type): New function.
26730         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
26731         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
26732         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
26733         (sem_function::equals_wpa): Fix typo.
26734         * ipa-icf.h (sem_item::add_type): New function.
26735         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
26736         order.
26738 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
26740         PR tree-optimization/65533
26741         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
26742         with swapped operands, call vect_free_slp_tree on
26743         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
26744         vector.
26746 2015-03-24  Richard Biener  <rguenther@suse.de>
26748         PR middle-end/65517
26749         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
26750         for fixup if necessary.
26752 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
26754         * doc/extend.texi (Function Attributes): Add @cindex entries
26755         for all attributes and regularize their format.  Delete text
26756         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
26757         information about "eightbit_data", "tiny_data", and "model"
26758         variable attributes to the Variable Attributes section.  Fix
26759         some obvious typos and copy-editing issues.
26760         (Variable Attributes, Type Attributes): Likewise add/fix
26761         @cindex entries for all attributes.
26763 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
26765         PR target/65523
26766         * tree-chkp.c (chkp_build_returned_bound): Ignore
26767         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
26769 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
26771         PR target/65505
26772         * config/sh/predicates.md (simple_mem_operand,
26773         displacement_mem_operand): Add test for reg.
26774         (short_displacement_mem_operand): Test for displacement_mem_operand
26775         before invoking sh_disp_addr_displacement.
26776         * config/sh/constraints.md (Sdd, Sra): Simplify.
26777         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
26778         Remove redundant displacement_mem_operand tests.
26780 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
26782         PR target/65296
26783         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
26784         the same -mmcu=MCU more than once.
26786 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
26788         PR bootstrap/65522
26789         * ipa-devirt.c: Remove duplicate demangle.h include.
26791         PR target/65504
26792         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
26793         on the pseudo.
26794         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
26795         REG_POINTER on *destptr after adjusting it for prologue size.
26797         PR ipa/65521
26798         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
26799         ultimate_alias_target ()->order ints instead of
26800         ultimate_alias_target () pointers.
26802 2015-03-23  Richard Biener  <rguenther@suse.de>
26804         PR tree-optimization/65518
26805         * tree-vect-stmts.c (vectorizable_load): Reject single-element
26806         interleaving cases we generate absymal code for.
26808 2015-03-23  Richard Biener  <rguenther@suse.de>
26810         PR tree-optimization/65494
26811         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
26812         matches here.
26813         (vect_analyze_slp_instance): But do that here, always and once.
26815 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26817         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
26818         adding T or multiplying by T+1 and subracting T.
26820 2015-03-22  Jeff Law  <law@redhat.com>
26822         PR rtl-optimization/64317
26823         * Makefile.in (OBJS): Add gcse-common.c
26824         * gcse.c: Include gcse-common.h
26825         (struct modify_pair_s): Move structure definition to gcse-common.h
26826         (compute_transp): Move function to gcse-common.c.
26827         (canon_list_insert): Similarly.
26828         (record_last_mem_set_info): Break out some code and put it into
26829         gcse-common.c.  Call into the new common code.
26830         (compute_local_properties): Pass additional arguments to compute_transp.
26831         * postreload-gcse.c: Include gcse-common.h and df.h
26832         (modify_mem_list_set, blocks_with_calls): New variables.
26833         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
26834         (get_bb_avail_insn): Pass in the expression index too.
26835         (alloc_mem): Allocate memory for the new bitmaps and lists.
26836         (free_mem): Free memory for the new bitmaps and lists.
26837         (insert_expr_in_table): Record a bitmap index for each entry we
26838         add to the table.
26839         (record_last_mem_set_info): Call into common code in gcse-common.c.
26840         (get_bb_avail_insn): If no available insn was found in the requested
26841         BB.  If BB has a single predecessor, see if the expression is
26842         transparent in BB and available in that single predecessor.
26843         (compute_expr_transp): New wrapper for compute_transp.
26844         (eliminate_partially_redundant_load): Pass expression's bitmap_index
26845         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
26846         (gcse_after_reload_main): If there are elements in the hash table,
26847         then compute transparency for all the elements in the hash table.
26848         * gcse-common.h: New file.
26849         * gcse-common.c: New file.
26851 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
26853         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
26854         as an adjective.
26855         (System Headers): Likewise.
26856         (Ifdef): Likewise.
26857         (Traditional macros): Likewise.
26858         (Invocation): Likewise.
26859         (Option Index): Likewise.
26860         * doc/cppopts.texi (-M): Likewise.
26861         (-finput-charset): Likewise.
26862         (--help): Likewise.
26863         * doc.invoke.texi (AVR Options): Likewise.
26864         (V850 Options): Likewise.
26866 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
26868         PR ipa/65475
26869         * ipa-devirt.c: Include demangle.h
26870         (odr_type_d): Add field rtti_broken.
26871         (odr_subtypes_equivalent_p): Do not require name to match.
26872         (compare_virtual_tables): Fix typo; if type already has ODR violation,
26873         bypass the tests; be ready for function referneces in vtables that are
26874         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
26875         (warn_odr): Give up for nameless types.
26876         (warn_types_mismatch): Report mismatch in mangled names;
26877         report mismatch in anonymous namespaces; look into component types to
26878         give useful error; report when mismatch is dragged in from other ODR
26879         type.
26880         (odr_types_equivalent_p): Match types for being polymorphic; avoid
26881         duplicated diagnostics.
26882         (add_type_duplicate): Reorder checks so more informative ones come
26883         first; fix typo; do not output "the extra base is defined here" when
26884         we did not warn.
26885         (BINFO_N_BASE_BINFOS): Relax sanity check.
26887 2015-03-22  Martin Liska  <mliska@suse.cz>
26888             Jakub Jelinek  <jakub@redhat.com>
26890         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
26891         masks that can potentially include a builtin.
26892         (ix86_add_new_builtins): Introduce fast filter for isa values
26893         that cannot trigger builtin inclusion.
26895 2015-03-22  Martin Liska  <mliska@suse.cz>
26897         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
26898         (sem_item::update_hash_by_local_refs): Likewise.
26899         (sem_variable::get_hash): Empty line is fixed.
26900         (sem_item_optimizer::execute): Include adding of hash references.
26901         (sem_item_optimizer::update_hash_by_addr_refs): New function.
26902         (sem_item_optimizer::build_hash_based_classes): Use local hash.
26903         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
26904         (sem_item::update_hash_by_local_refs): Likewise.
26906 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26908         PR ipa/65502
26909         * ipa-comdats.c (enqueue_references): Walk through thunks.
26910         (ipa_comdats): Likewise.
26911         (set_comdat_group_1): New function.
26913 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26915         PR ipa/65475
26916         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
26917         non-polymorphic
26919 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
26920             Gerald Pfeifer  <gerald@pfeifer.com>
26922         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
26924 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
26925             Sandra Loosemore  <sandra@codesourcery.com>
26927         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
26928         function parameter declaration.
26929         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
26930         Update arguments to nios2_adjust_call_address().
26931         (sibcall_internal): Rename from *sibcall.
26932         (sibcall_value_internal): Rename from *sibcall_value.
26933         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
26934         (nios2_large_got_address): Add target temp reg parameter.
26935         (nios2_got_address): Adjust call to nios2_large_got_address, add
26936         force_reg around it.
26937         (nios2_load_pic_address): Add target temp reg parameter, replace call
26938         to nios2_got_address with corresponding code.
26939         (nios2_legitimize_constant_address): Update call to
26940         nios2_load_pic_address.
26941         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
26942         to use temp reg for PIC loading purposes.
26943         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
26944         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
26945         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
26947 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26949         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
26950         usage of "the @option{...}".
26951         (-Wopenmp-simd): Likewise.
26952         (-fsanitize-recover): Likewise.
26953         (-fsanitize-undefined-trap-on-error): Likewise.
26954         (-flto): Likewise.
26955         (tracer-dynamic-coverage-feedback): Likewise.
26956         (reorder-block-duplicate-feedback): Likewise.
26957         (loop-unroll-jam-size): Likewise.
26958         (-B): Likewise.
26959         (-I-): Likewise.
26960         (-mabs=legacy): Likewise.
26961         (-mupper-regs-df): Likewise.
26962         (-mupper-regs-sf): Likewise.
26963         (-mpointers-to-nested-functions): Likewise.
26965 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26967         * doc/extend.texi (Cilk Plus Builtins): Add markup.
26969 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26971         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
26972         additional index entries and cross-references.
26973         (-fchkp-check-incomplete-type): Likewise.
26974         (-fchkp-first-field-has-own-bounds): Likewise.
26975         (-fchkp-narrow-to-innermost-array): Likewise.
26976         (-fchkp-use-fast-string-functions): Likewise.
26977         (-fchkp-use-nochk-string-functions): Likewise.
26978         (-fchkp-use-static-const-bounds): Likewise.
26979         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26980         (-fchkp-instrument-marked-only): Likewise.
26981         (-fchkp-use-wrappers): Likewise.
26982         (-static-libmpx): Likewise.
26983         (-static-libmpxwrappers): Likewise.
26984         * doc/extend.texi (bnd_legacy): Likewise.
26985         (bnd_instrument): Likewise.
26986         (bnd_variable_size): Likewise.
26987         (Pointer Bounds Checker builtins): Likewise.
26989 2015-03-21  Tom de Vries  <tom@codesourcery.com>
26991         PR tree-optimization/65458
26992         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
26993         * cgraph.h (cgraph_node): Add parallelized_function field.
26994         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
26995         (input_overwrite_node): Read parallelized_function field.
26996         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
26997         parallelized_function on cgraph_node for child_fn.
26998         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
26999         Remove include of gt-tree-parloops.h.
27000         (parallelized_functions): Remove static variable.
27001         (parallelized_function_p): Rewrite using parallelized_function field of
27002         cgraph_node.
27003         (create_loop_fn): Remove adding to parallelized_functions.
27004         * Makefile.in (GTFILES): Remove tree-parloops.c
27006 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
27008         PR rtl-optimization/64366
27009         * lra.c (lra_update_insn_regno_info): Consider regs in
27010         CALL_INSN_FUNCTION_USAGE memory.
27012 2015-03-20  Richard Biener  <rguenther@suse.de>
27014         PR middle-end/64715
27015         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
27016         for type comparison and gcc_checking_assert.
27017         (chrec_fold_plus_poly_poly): Likewise.
27018         (chrec_fold_multiply_poly_poly): Likewise.
27019         (chrec_convert_1): Likewise.
27020         * gimplify.c (gimplify_expr): Remove premature folding of
27021         &X + CST to &MEM[&X, CST].
27023 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
27025         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
27026         already is final.
27027         (ipa_inline): Recompute inline_failed codes.
27028         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
27029         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
27030         CIF_FINAL_ERROR.
27032 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
27034         PR rtl-optimization/60851
27035         * recog.c (constrain_operands): Accept a pseudo register before reload
27036         for LRA enabled targets.
27038 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
27040         PR target/65240
27041         * config/rs6000/predicates.md (easy_fp_constant): Remove special
27042         -ffast-math handling that kept non-0 constants live in the RTL
27043         until reload.  Remove logic testing the number of instructions it
27044         took to create a constant in a GPR that was never used, due to a
27045         test for soft-float earlier.
27046         (memory_fp_constant): Delete, no longer used.
27048         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
27049         alternatives for loading non-0 constants into GPRs for hard
27050         floating point that is no longer needed due to changes in
27051         easy_fp_constant.  Add support for loading 0.0 into GPRs.
27052         (mov<mode>_hardfloat32): Likewise.
27053         (mov<mode>_hardfloat64): Likewise.
27054         (mov<mode>_64bit_dm): Likewise.
27055         (movtd_64bit_nodm): Likewise.
27056         (pre-reload move FP constant define_split): Delete define_split,
27057         since it is no longer used.
27058         (extenddftf2_internal): Remove GHF constraints that are not valid
27059         for extenddftf2.
27061 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
27063         PR rtl-optimization/63491
27064         * lra-constraints.c (check_and_process_move): Use src instead of
27065         sreg.  Remove some dead code.
27067 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
27069         PR ipa/65380
27070         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
27071         (sem_variable::merge): Likewise.
27073 2015-03-19  Martin Liska  <mliska@suse.cz>
27075         PR ipa/65465
27076         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
27077         all fields of cgraph_thunk_info.
27079 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
27081         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
27082         clone instrumented thunks.
27084 2015-03-19  Richard Biener  <rguenther@suse.de>
27086         Revert
27087         2015-03-10  Richard Biener  <rguenther@suse.de>
27089         PR middle-end/63155
27090         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27091         * tree-ssa-coalesce.c: Include timevar.h.
27092         (attempt_coalesce): Handle graph being NULL.
27093         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27094         Split out abnormal coalescing to ...
27095         (perform_abnormal_coalescing): ... this function.
27096         (coalesce_ssa_name): Perform abnormal coalescing without computing
27097         live/conflict.
27098         (verify_ssa_coalescing_worker): New function.
27099         (verify_ssa_coalescing): Likewise.
27101 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27102             Jakub Jelinek  <jakub@redhat.com>
27104         PR sanitizer/65400
27105         * tsan.c (instrument_gimple): Clear tail call flag on
27106         calls.
27108 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
27110         PR sanitizer/65400
27111         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
27112         call in the return bb.
27113         (find_split_points): Add RETURN_BB argument, don't call
27114         find_return_bb.
27115         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
27116         if true append TSAN_FUNC_EXIT internal call after the call to
27117         the split off function.
27118         (execute_split_functions): Call find_return_bb here.
27119         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
27120         Adjust find_split_points and split_function calls.
27122 2015-03-18  DJ Delorie  <dj@redhat.com>
27124         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
27125         (iorqi3_virt): Likewise.
27127 2015-03-18  Tom de Vries  <tom@codesourcery.com>
27129         * tree-parloops.c (parallelize_loops): Make static.
27130         * tree-parloops.h (parallelize_loops): Remove extern declaration.
27132 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
27134         PR middle-end/64491
27135         Revert:
27136         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
27138         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
27139         condition would be removed due to undefined behaviour.
27141 2015-03-18  Martin Liska  <mliska@suse.cz>
27143         PR ipa/65432
27144         * cgraph.c (cgraph_node::get_create): Remove unnecessary
27145         xstrdup_for_dump wrapper.
27146         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
27147         sem_item::name.
27148         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
27149         with xstrdup_for_dump.
27150         (sem_variable::equals): Likewise.
27151         (sem_item_optimizer::read_section): Use symtab_node::name instead of
27152         sem_item::name.
27153         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
27154         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
27155         symtab_node::asm_name with xstrdup_for_dump.
27156         (congruence_class::dump): Use symtab_node::name instead of
27157         sem_item::name.
27158         * ipa-icf.h (symtab_node::name): Remove.
27159         (symtab_node::asm_name): Likewise.
27161 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
27163         PR tree-optimization/65450
27164         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
27165         function.
27166         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
27167         it instead of duplicate_ssa_name_ptr_info.
27169         PR target/65222
27170         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
27172 2015-03-18  Richard Biener  <rguenther@suse.de>
27174         * tree-data-ref.h (struct access_matrix): Remove.
27175         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
27176         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
27177         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
27178         (am_vector_index_for_loop): Likewise.
27179         (struct data_reference): Remove access_matrix member.
27180         (DR_ACCESS_MATRIX): Remove.
27181         (lambda_vector_new): Add comment.
27182         (lambda_matrix_new): Use XOBNEWVEC.
27184 2015-03-18  Richard Biener  <rguenther@suse.de>
27186         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
27187         (pass_ch::execute): Cleanup the CFG only if we did sth.
27188         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
27190 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27192         * expmed.c (synth_mult): Use std::swap instead of manually
27193         swapping algorithms.
27195 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
27197         PR target/65078
27198         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
27200 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
27202         PR target/65296
27203         * config/avr/avr.opt (-nodevicelib): New option.
27204         * doc/invoke.texi (AVR Options): Document it.
27205         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
27206         libgcc.a, libc.a, libm.a.
27207         * config/avr/specs.h: Same.
27208         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
27209         which don't (directly) depend on the device.  Print more help.
27210         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
27211         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
27212         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
27213         case of an error.
27214         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
27215         for specs file name.
27216         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
27217         * config/avr/avr-mcus.def: Adjust initializers and comments.
27219 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
27221         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
27222         DECL_ONE_ONLY to check if decl is one only.
27223         * ipa-split.c (consider_split): Limit splitt of one only functions.
27225 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
27227         PR tree-optimization/65427
27228         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
27229         functions.
27230         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
27232 2015-03-16  Marek Polacek  <polacek@redhat.com>
27234         * cgraph.h (add_new_static_var): Remove declaration.
27235         * varpool.c (add_new_static_var): Remove function.
27237 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
27239         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
27240         instead of vec<tree> * with vec_alloc and release for args.
27241         Adjust all users.
27243         PR middle-end/65431
27244         * omp-low.c (delete_omp_context): Only splay_tree_delete
27245         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
27246         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
27248 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
27250         PR sanitizer/64820
27251         * cfgexpand.c (align_base): New function.
27252         (alloc_stack_frame_space): Call it.
27253         (expand_stack_vars): Align prev_frame to be sure
27254         data->asan_vec elements aligned properly.
27256 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
27258         PR middle-end/65409
27259         * expr.c (store_field): Do not do a direct block copy if the source is
27260         a PARALLEL with BLKmode.
27262 2015-03-16  Tom de Vries  <tom@codesourcery.com>
27264         PR middle-end/65414
27265         Revert:
27266         2015-03-12  Tom de Vries  <tom@codesourcery.com>
27268         PR rtl-optimization/64895
27269         * lra-lives.c (check_pseudos_live_through_calls): Use
27270         actual_call_used_reg_set instead of call_used_reg_set, if available.
27272 2015-03-16  Alan Modra  <amodra@gmail.com>
27274         PR target/63150
27275         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
27276         Modify Z->r bswapdi splitter to use dest in place of scratch.
27277         In r->Z and Z->r bswapdi splitter rename word_high, word_low
27278         to word1, word2 and rearrange logic to suit.
27279         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
27280         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
27281         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
27282         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
27283         early clobber.
27285 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
27287         PR tree-optimization/65369
27288         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
27289         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
27290         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
27292         PR tree-optimization/65418
27293         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
27294         are casts in the first PLUS_EXPR operand, ensure tbias and
27295         *totallowp are in the inner type.
27297         PR rtl-optimization/65401
27298         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
27299         argument.  If true, adjust_address_nv of x with big-endian
27300         correction for the mode widening to GET_MODE (y).
27301         (make_field_assignment): Don't do MEM mode widening here.
27302         Use MEM_P instead of GET_CODE == MEM.
27304 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
27306         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
27307         the external decls.
27309 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27311         PR target/64600
27312         * config/arm/arm.c (arm_gen_constant, AND case): Use
27313         ARM_SIGN_EXTEND when constructing AND mask.
27315 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27317         * graph.c (print_graph_cfg): Make function names visible and append
27318         parenthesis to it.  Also make groups of basic blocks belonging to the
27319         same function visible.
27321 2015-03-12  Richard Biener  <rguenther@suse.de>
27323         PR middle-end/44563
27324         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
27325         to avoid quadratic behavior with inline expansion splitting blocks.
27326         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
27327         with the successor if the predecessor will be merged with it.
27328         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
27329         entry block with its successor.
27331 2015-03-13  Richard Biener  <rguenther@suse.de>
27333         PR middle-end/44563
27334         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
27335         (cleanup_tree_cfg_1): Do not call it.
27336         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
27337         (fixup_noreturn_call): Mark the stmt as control altering.
27338         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
27339         here.
27340         (pass_data_fixup_cfg): Produce a dump file.
27341         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
27342         (need_noreturn_fixup): New global.
27343         (pass_dominator::execute): Fixup queued noreturn calls.
27344         (optimize_stmt): Queue calls that became noreturn for fixup.
27345         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
27346         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
27347         (el_to_fixup): New global.
27348         (eliminate_dom_walker::before_dom_childre): Queue calls that
27349         became noreturn for fixup.
27350         (eliminate): Fixup queued noreturn calls.
27351         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
27352         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
27353         (substitute_and_fold_dom_walker::before_dom_children): Queue
27354         alls that became noreturn for fixup.
27355         (substitute_and_fold): Fixup queued noreturn calls.
27357 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
27359         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
27360         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
27361         are building; for methods check ODR type of class they belong to if
27362         they may lead to a polymorphic call.
27363         (sem_function::compare_polymorphic_p): Be bit smarter about testing
27364         when function may lead to a polymorphic call.
27365         (sem_function::compare_type_list): Remove.
27366         (sem_variable::equals): Update use of compatible_types_p.
27367         (sem_variable::parse_tree_refs): Remove.
27368         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
27369         cdtor.
27370         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
27371         matching here.
27372         (func_checker::compatible_polymorphic_types_p): Break out from ...
27373         (unc_checker::compatible_types_p): ... here.
27374         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
27375         Declare.
27376         (unc_checker::compatible_types_p): Update.
27377         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
27378         Remove.
27380 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27382         PR rtl-optimization/65235
27383         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
27384         When first element of vec_concat is const_int, calculate its size
27385         using second element.
27387 2015-03-12  Richard Biener  <rguenther@suse.de>
27389         PR middle-end/65270
27390         * fold-const.c (operand_equal_p): Fix ordering of resetting
27391         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
27393 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27395         * config/s390/s390.c (s390_reorg): Move code to output nops after label
27396         to s390_reorg ().
27397         (s390_asm_output_function_label): Likewise.
27398         * config/s390/s390.c (s390_asm_output_function_label):
27399         Fix function label alignment with -mhtopatch.
27400         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
27401         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
27402         ("nop_2_byte"): New define_insn.
27403         ("nop_4_byte"): Likewise.
27404         ("nop_6_byte"): Likewise.
27405         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
27406         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
27408 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
27410         PR target/65103
27411         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
27412         register.
27414 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
27416         PR target/65044
27417         * toplev.c (process_options): Restrict Pointer Bounds Checker
27418         usage with Address Sanitizer.
27420 2015-03-12  Richard Biener  <rguenther@suse.de>
27422         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
27423         to split on.
27424         * omp-low.c (expand_omp_taskreg): Split block before removing
27425         the stmt.
27426         (expand_omp_target): Likewise.
27427         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
27428         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
27429         stmt to split_block.
27431 2015-03-12  Tom de Vries  <tom@codesourcery.com>
27433         PR rtl-optimization/64895
27434         * lra-lives.c (check_pseudos_live_through_calls): Use
27435         actual_call_used_reg_set instead of call_used_reg_set, if available.
27437 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27439         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
27440         (cgraph_node::remove): Likewise.
27441         (cgraph_node::get_untransformed_body): Likewise.
27442         * varpool.c (varpool_node::remove): Likewise.
27443         (varpool_node::get_constructor): Add sanity check.
27445 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
27447         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
27448         old GCC versions.
27449         (-fabi-compat-version): Likewise.
27450         (-ffriend-injection): Likewise.
27451         (-Wdeclaration-after-statement): Likewise.
27452         (-fomit-frame-pointer): Likewise.
27453         (-ftree-coalesce-inlined-vars): Likewise.
27454         (-fvisibility=): Likewise.
27455         * doc/extend.texi (Typeof): Likewise.
27456         (Zero Length): Likewise.
27457         (Escaped Newlines): Likewise.
27458         (Compound Literals): Likewise.
27459         (Function Attributes): Likewise.
27460         (Label Attributes): Likewise.
27461         (Type Attributes): Likewise.
27462         (Function Names): Likewise.
27463         (Other Builtins): Likewise.
27464         (Function Specific Option Pragmas): Likewise.
27465         (C++ Interface): Likewise.
27467 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
27469         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
27471 2015-03-11  Marek Polacek  <polacek@redhat.com>
27473         PR tree-optimization/65388
27474         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
27476 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
27478         PR target/65296
27479         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
27480         * configure: Regenerate.
27481         * config.in: Regenerate.
27482         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
27483         [-mn-flash]: Document it.
27484         [__AVR_ARCH__]: Document avrtiny.
27486         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
27487         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
27488         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
27490 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27492         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
27494 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
27496         PR target/65242
27497         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
27498         allow reloads of PLUS in floating point/VSX registers.
27500 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
27502         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
27503         crypto_sha256_fast.
27504         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
27506 2015-03-11  Richard Biener  <rguenther@suse.de>
27508         PR tree-optimization/65310
27509         * tree-sra.c (build_ref_for_offset): Also preserve larger
27510         alignment.
27512 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
27514         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
27516 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27518         PR target/65368
27519         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
27520         new define_expand.
27521         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
27523 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27525         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
27526         (sem_function::equals_wpa): ... here.
27528 2015-03-10  Marek Polacek  <polacek@redhat.com>
27529             Jakub Jelinek  <jakub@redhat.com>
27531         PR sanitizer/65367
27532         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
27533         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
27534         separately.
27536 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27538         PR target/65286
27539         * config/rs6000/t-linux: For powerpc64* target set
27540         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
27542 2015-03-10  Richard Biener  <rguenther@suse.de>
27544         PR middle-end/44563
27545         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
27546         for redirect_all_calls.
27548 2015-03-10  Marek Polacek  <polacek@redhat.com>
27550         * gdbinit.in (pcfun): Define and document.
27552 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
27554         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
27555         of libgomp-plugin.h.
27556         (find_target_compiler): Support a case when the path to gcc is
27557         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
27558         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
27559         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
27560         libgomp-plugin.h.
27561         (main): Use GCC_INSTALL_NAME as target_driver_name.
27562         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
27563         define.
27564         (mkoffload.o): Remove obsolete include path and defines.
27565         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
27567 2015-03-10  Richard Biener  <rguenther@suse.de>
27569         PR middle-end/63155
27570         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27571         * tree-ssa-coalesce.c: Include timevar.h.
27572         (attempt_coalesce): Handle graph being NULL.
27573         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27574         Split out abnormal coalescing to ...
27575         (perform_abnormal_coalescing): ... this function.
27576         (coalesce_ssa_name): Perform abnormal coalescing without computing
27577         live/conflict.
27578         (verify_ssa_coalescing_worker): New function.
27579         (verify_ssa_coalescing): Likewise.
27581 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
27583         PR target/65296
27584         * config.gcc (extra_options) [avr]: Remove.
27585         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
27586         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
27587         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
27589         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
27590         (-mmcu=): Add Var and MissingArgError properties.
27591         (-march=): Remove.
27592         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
27593         * config/avr/t-multilib: Regenerate.
27594         * config/avr/specs.h: New file.
27595         * config/avr/driver-avr.c: New file.
27596         * config/avr/genopt.sh: Remove file.
27597         * config/avr/avr-tables.opt: Remove file.
27598         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
27599         * config/avr/avr-c.c: Same.
27600         * avr-arch.h: Same.
27601         (avr_current_device): Remove proto.
27602         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
27603         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
27604         (EXTRA_SPEC_FUNCTIONS): Define.
27605         (avr_devicespecs_file): New specs function proto.
27606         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
27607         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
27608         (avr_current_device): Remove definition and usage.
27609         (avr_set_core_architecture): New static function.
27610         (avr_option_override): Use it.
27611         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
27612         (mcu_name): New static array.
27613         (comparator, avr_archs_str, avr_mcus_str): New static functions.
27614         (avr_inform_devices, avr_inform_core_architectures): New functions.
27615         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
27616         (avrlibc.h) [WITH_AVRLIBC]: Include.
27617         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
27618         (print_mcu): Rewrite from scratch.
27619         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
27620         Forward to avr-specific specs defined in device-specs file.
27621         * config/avr/t-avr (driver-avr.o): New rule.
27622         (avr-devices.o): Depend on avr-arch.h.
27623         (avr-mcus): No more depend on avr-tables.opt.
27624         (avr-tables.opt): Remove rule.
27625         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
27627 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27629         * c-family/c.opt (fchkp-use-wrappers): New.
27630         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
27631         (chkp_wrap_function): New.
27632         (chkp_build_instrumented_fndecl): Support wrapped
27633         functions.
27634         * doc/invoke.texi (-fcheck-pointer-bounds): New.
27635         (-fchkp-check-incomplete-type): New.
27636         (-fchkp-first-field-has-own-bounds): New.
27637         (-fchkp-narrow-bounds): New.
27638         (-fchkp-narrow-to-innermost-array): New.
27639         (-fchkp-optimize): New.
27640         (-fchkp-use-fast-string-functions): New.
27641         (-fchkp-use-nochk-string-functions): New.
27642         (-fchkp-use-static-bounds): New.
27643         (-fchkp-use-static-const-bounds): New.
27644         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
27645         (-fchkp-check-read): New.
27646         (-fchkp-check-write): New.
27647         (-fchkp-store-bounds): New.
27648         (-fchkp-instrument-calls): New.
27649         (-fchkp-instrument-marked-only): New.
27650         (-fchkp-use-wrappers): New.
27651         (-static-libmpx): New.
27652         (-static-libmpxwrappers): New.
27654 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27656         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
27657         (CHKP_SPEC): Add wrappers library.
27658         * c-family/c.opt (static-libmpxwrappers): New.
27660 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27662         * config/i386/linux-common.h (LIBMPX_LIBS): New.
27663         (LIBMPX_SPEC): New.
27664         (CHKP_SPEC): New.
27665         * gcc.c (CHKP_SPEC): New.
27666         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
27667         * c-family/c.opt (static-libmpx): New.
27669 2015-03-10  Richard Biener  <rguenther@suse.de>
27671         PR middle-end/44563
27672         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
27673         for compare_type.
27674         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
27675         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
27676         (cgraph_add_edge_to_call_site_hash): Likewise.
27677         (cgraph_node::get_edge): Likewise.
27678         (cgraph_edge::set_call_stmt): Likewise.
27679         (cgraph_edge::remove_caller): Likewise.
27681 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
27683         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
27684         (callee_saved_gpr_regs_size): ... this.
27685         (callee_saved_regs_first_regno): Rename to ...
27686         (callee_saved_first_gpr_regno): ... this.
27687         (callee_saved_regs_last_regno) Rename to ...
27688         (callee_saved_last_gpr_regno): ... this.
27689         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
27690         variables.
27691         (nds32_initial_elimination_offset): Likewise.
27692         (nds32_expand_prologue): Likewise.
27693         (nds32_expand_epilogue): Likewise.
27694         (nds32_expand_prologue_v3push): Likewise.
27695         (nds32_expand_epilogue_v3pop): Likewise.
27696         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
27697         Adjust renamed variables.
27698         (nds32_output_stack_pop): Likewise.
27700 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27702         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
27703         code in comment.
27705 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27707         PR rtl-optimization/65321
27708         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
27709         than shift mode.
27710         * var-tracking.c (use_narrower_mode): Likewise.
27712 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27714         PR tree-optimization/65355
27715         * varasm.c (notice_global_symbol): Do not produce RTL.
27716         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
27717         anchor.
27718         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
27719         check for section anchors.
27721 2015-03-10  Alan Modra  <amodra@gmail.com>
27723         PR target/65286
27724         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
27725         to be single-arch by default.  Set cpu_is_64bit for powerpc64
27726         given --with-cpu=native.
27727         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
27728         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
27729         and powerpc64le.
27730         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
27731         rs6000_isa_flags rather than TARGET_64BIT.
27733 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
27734             Kaz Kojima  <kkojima@gcc.gnu.org>
27736         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
27738 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
27740         PR lto/65361
27741         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
27742         on a TREE_BINFO, instead use BINFO_TYPE.
27744 2015-03-09  Richard Biener  <rguenther@suse.de>
27746         PR middle-end/65270
27747         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
27748         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
27749         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
27750         of that.  When comparing dereferences compare alignment.
27751         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
27753 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
27755         * ipa-inline-analysis.c (check_callers): Check
27756         node->can_remove_if_no_direct_calls_and_refs_p.
27757         (growth_likely_positive): Reorganize to call
27758         can_remove_if_no_direct_calls_p later.
27759         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
27760         will_be_removed_from_program_if_no_direct_calls_p): Add
27761         will_inline parameter.
27762         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
27763         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27764         Handle inliner case correctly.
27766 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27768         PR tree-optimization/63743
27769         * cfgexpand.c (reorder_operands): Also reorder if only second operand
27770         had its definition forwarded by TER.
27772 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
27774         PR lto/65316
27775         * ipa-utils.h (types_odr_comparable): Add strict argument.
27776         * ipa-devirt.c: Fix whitespace;
27777         (odr_hasher): Remove.
27778         (odr_name_hasher, odr_vtable_hasher): New hashers.
27779         (can_be_name_hashed_p): New predicate.
27780         (hash_type_name): remove.
27781         (hash_odr_name): New.
27782         (odr_name_hasher::hash): new.
27783         (can_be_vtable_hashed_p): New.
27784         (hash_odr_vtable): New.
27785         (odr_vtable_hasher::hash): New.
27786         (types_same_for_odr): Add strict parameter.
27787         (types_odr_comparable): Likewise.
27788         (odr_name_hasher::equal): New.
27789         (odr_vtable_hasher::equal): New.
27790         (odr_name_hasher::remove): New.
27791         (odr_hash_type): Change to hash_table<odr_name_hasher>.
27792         (odr_vtable_hash_type): New.
27793         (odr_vtable_hash): New.
27794         (odr_subtypes_equivalent_p): Do strict comparsion.
27795         (add_type_duplicate): Merge type names; cleanup; avoid type
27796         duplicates.
27797         (register_odr_type): Initialize vtable hash.
27798         (build_type_inheritance_graph): Likewise
27799         (get_odr_type): Reorg to use two hashes.
27800         (dump_possible_polymorphic_call_targets): Move sanity check after debug
27801         output.
27802         (ipa_devirt): Dump type_inheritance_graph.
27803         (types_same_for_odr): Add strict mode.
27805 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27807         PR ipa/65334
27808         * cgraph.h (symtab_node): Add definition_alignment,
27809         can_increase_alignment_p and increase_alignment.
27810         * symtab.c (symtab_node::can_increase_alignment_p,
27811         increase_alignment_1, symtab_node::increase_alignment,
27812         symtab_node::definition_alignment): New.
27813         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
27814         can_increase_alignment_p.
27815         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
27816         * tree-vect-stmts.c (ensure_base_align): Likewise.
27817         * varasm.c (function_section_1): Use definition_alignment.
27818         (assemble_start_function): Likewise.
27819         (emit_local): likewise.
27820         (build_constant_desc): Likewsie.
27821         (output_constant_def_contents): Likewise.
27822         (place_block_symbol): Likewise.
27823         (output_object_block): Likewise.
27825 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27827         PR ipa/65316
27828         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
27829         when outputting debug.
27831 2015-03-07  Marek Polacek  <polacek@redhat.com>
27832             Martin Uecker  <uecker@eecs.berkeley.edu>
27834         PR sanitizer/65280
27835         * doc/invoke.texi: Update description of -fsanitize=bounds.
27837 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
27839         * tree-ssa-phiopt.c (neg_replacement): Remove.
27840         (tree_ssa_phiopt_worker): Remove negate optimization.
27842 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27844         PR ipa/65302
27845         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
27847 2015-03-06  Richard Biener  <rguenther@suse.de>
27849         PR middle-end/64928
27850         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
27851         and liveout_obstack members.
27852         (calculate_live_on_exit): Remove.
27853         (calculate_live_ranges): Change declaration.
27854         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
27855         (new_tree_live_info): Adjust.
27856         (calculate_live_ranges): Delete livein when not wanted.
27857         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
27858         Deal with partly deleted live info.
27859         (loe_visit_block): Remove temporary bitmap by using
27860         bitmap_ior_and_compl_into.
27861         (live_worklist): Adjust accordingly.
27862         (calculate_live_on_exit): Make static.
27863         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
27864         we do not need livein.
27866 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
27868         * real.c (real_from_string): Fix typo in assertion.
27870 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
27872         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
27873         the patch.
27875 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27877         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
27879 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
27881         PR target/64342
27882         * lra-assigns.c (find_hard_regno_for): Rename to
27883         find_hard_regno_for_1.  Add a new parameter.
27884         (find_hard_regno_for): New function using find_hard_regno_for_1.
27886 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27888         PR rtl-optimization/65067
27889         * expmed.c (store_bit_field, extract_bit_field): Reworked the
27890         strict volatile bitfield handling.
27892 2015-03-05  Martin Liska  <mliska@suse.cz>
27894         PR ipa/65318
27895         * ipa-icf.c (sem_variable::equals): Compare variables types.
27897 2015-03-05  Richard Henderson  <rth@redhat.com>
27899         PR target/65121
27900         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
27901         correctly check weak symbol binding.
27903 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
27905         PR middle-end/65315
27906         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
27907         needed alignment.
27909 2015-03-05  Martin Liska  <mliska@suse.cz>
27911         * ipa-inline.c (inline_small_functions): Set default value to
27912         prevent warning during bootstrap.
27913         * tree.h: Add pragma guard that ignores false positives during
27914         bootstrap.
27916 2015-03-05  Richard Biener  <rguenther@suse.de>
27918         PR tree-optimization/65310
27919         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27920         Properly preserve alignment of the base of the access.
27922 2015-03-05  Richard Biener  <rguenther@suse.de>
27924         PR ipa/65270
27925         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
27926         Compare dependence info.
27928 2015-03-05  Richard Biener  <rguenther@suse.de>
27930         PR middle-end/65233
27931         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
27932         tree-into-ssa.h.
27933         (walk_ssa_copies): Revert last chage.  Instead do not walk
27934         SSA names registered for SSA update.
27936 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27938         PR ipa/65270
27939         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
27940         vtable references for their containing type.
27941         (sem_function::equals_wpa): Compare TYPE_RESTRICT
27942         and type attributes.
27944 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
27946         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
27947         before negating it.
27948         * stor-layout.c (finalize_record_size): Revert latest change.
27950 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
27952         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
27954 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27956         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
27957         for correct comdat handling.
27958         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27959         Likewise.
27960         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
27961         (used_from_object_file_p_worker): Remove.
27962         (cgraph_node::only_called_directly_or_alised): Add
27963         used_from_object_file_p.
27964         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
27965         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
27966         can_remove_if_no_direct_calls_and_refs_p.
27968 2015-03-04  Nick Clifton  <nickc@redhat.com>
27970         * config/rl78/rl78.h (enum reg_class): Remove real registers from
27971         General register class.
27972         * config/rl78/rl78-real.md: Replace general register constraints
27973         with real+virtual register constraints.
27975 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27977         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
27978         from checking for -mhtm option.
27980 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27982         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
27983         (struct ipa_sra_check_caller_data): Add has_thunk field.
27984         (ipa_sra_check_caller): Check for thunk.
27985         (ipa_sra_preliminary_function_checks): Give up on function with
27986         thunks.
27987         (ipa_early_sra): Use call_for_symbol_and_aliases.
27989 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
27991         PR target/65249
27992         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
27993         called for __stack_chk_guard symbol.
27995 2015-03-03  DJ Delorie  <dj@redhat.com>
27997         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
27998         inc/dec.
27999         (*addhi3_real): Likewise.
28000         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
28001         pattern to match incrementing memory.
28002         * config/rl78/predicates.md (rl78_1_2_operand): New.
28003         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
28004         it's the same and only mem.
28005         (rl78_alloc_physical_registers_op2): If there's effectively only
28006         one MEM, transcode it into HL.
28007         (rl78_far_p): Reject addresses that aren't legitimate.
28009 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
28011         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
28012         negating it.
28014         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
28016 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
28018         Implement call0 ABI for xtensa
28019         * config/xtensa/constraints.md ("a" constraint): Include stack
28020         pointer in case of call0 ABI.
28021         ("q" constraint): Make empty in case of call0 ABI.
28022         ("D" constraint): Include stack pointer in case of call0 ABI.
28023         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
28024         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
28025         prototypes.
28026         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
28027         variable.
28028         (xtensa_regno_to_class): Make it a local variable in the
28029         function xtensa_regno_to_class.
28030         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
28031         macro, function prototype and implementation.
28032         (reg_nonleaf_alloc_order): Make it a local variable in the
28033         function order_regs_for_local_alloc.
28034         (xtensa_conditional_register_usage): New function.
28035         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
28036         (xtensa_valid_move): Allow direct moves to stack pointer
28037         register in call0 ABI.
28038         (xtensa_setup_frame_addresses): Only spill register windows in
28039         windowed ABI.
28040         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
28041         call0 ABI respectively.
28042         (xtensa_function_arg_1): Only mark a7 register for copying in
28043         windowed ABI.
28044         (xtensa_call_save_reg): New function.
28045         (compute_frame_size): Add space for callee saved register
28046         storage to the frame size in call0 ABI.
28047         (xtensa_expand_prologue): Generate code to set up stack frame
28048         and save callee-saved registers in call0 ABI.
28049         (xtensa_expand_epilogue): New function.
28050         (xtensa_set_return_address): New function.
28051         (xtensa_return_addr): Calculate return address in call0 ABI.
28052         (xtensa_builtin_saveregs): Only mark a7 register for copying and
28053         emit copying code in windowed ABI.
28054         (order_regs_for_local_alloc): Add preferred register allocation
28055         order for non-leaf function in call0 ABI.
28056         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
28057         (xtensa_asm_trampoline_template): Add trampoline generation for
28058         call0 ABI.
28059         (xtensa_trampoline_init): Add trampoline initialization for
28060         call0 ABI.
28061         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
28062         functions.
28063         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
28064         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
28065         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
28066         ABI call-used registers.
28067         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
28068         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
28069         call0 ABI.
28070         (REG_CLASS_CONTENTS): Include all registers into the preferred
28071         reload registers set, adjust the set in the
28072         xtensa_conditional_register_usage.
28073         (xtensa_regno_to_class): Drop variable declaration.
28074         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
28075         function.
28076         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
28077         respectively.
28078         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
28079         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
28080         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
28081         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
28082         location in call0 ABI.
28083         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
28084         stack adjustment size when handling exception.
28085         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
28086         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
28087         definitions.
28088         ("return" pattern): Generate ret.n/ret in call0 ABI.
28089         ("epilogue" pattern): Expand epilogue.
28090         ("nonlocal_goto" pattern): Use default in call0 ABI.
28091         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
28092         emit eh_set_a0_* depending on ABI.
28093         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
28094         ("eh_set_a0_call0", "blockage"): New patterns.
28096 2015-03-03  Martin Liska  <mliska@suse.cz>
28098         PR ipa/65287
28099         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
28101 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
28103         PR 65138/target
28104         * config/rs6000/rs6000-tables.opt: Regenerate table.
28106 2015-03-03  Renlin Li  <renlin.li@arm.com>
28108         * doc/md.texi (@item ^): Change ? into ^.
28110 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
28112         * doc/tm.texi: Regenerated.
28114 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
28116         * builtins.c (expand_builtin_return_addr): Add
28117         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
28118         surrounding #ifdef.
28119         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
28120         definition to 1.
28121         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
28122         Likewise.
28123         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
28124         undefined.
28125         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
28126         paragraph.
28128 2015-03-03  Martin Jambor  <mjambor@suse.cz>
28129             Eric Botcazou  <ebotcazou@adacore.com>
28131         * tree-sra.c (ipa_sra_check_caller_data): New type.
28132         (has_caller_p): Removed.
28133         (ipa_sra_check_caller): New function.
28134         (ipa_sra_preliminary_function_checks): Use it.
28136 2015-03-03  Martin Liska  <mliska@suse.cz>
28138         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
28139         instead of if branch.
28141 2015-03-03  Martin Liska  <mliska@suse.cz>
28143         PR ipa/65282
28144         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
28146 2015-03-23  Jeff Law  <law@redhat.com>
28148         PR tree-optimization/65241
28149         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
28150         hash table if INSERT is true.
28152 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
28154         PR target/65296
28155         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
28157 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
28159         PR target/64331
28160         * config/avr/avr.c (context.h, tree-pass.h): Include them.
28161         (avr_pass_data_recompute_notes): New static variable.
28162         (avr_pass_recompute_notes): New class.
28163         (avr_register_passes): New static function.
28164         (avr_option_override): Call it.
28166 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
28168         Fix various problems with specs file generation.
28170         PR target/65296
28171         * config.gcc (extra_gcc_objs) [avr]: Remove.
28172         * config/avr/driver-avr.c: Remove file.
28173         * config/avr/t-avr (driver-avr.o): Remove rule.
28174         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
28175         INCLUDES to build.  Depend on TM_H.
28176         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
28177         build warnings.  Fix non-matching types and non-existing %-codes.
28178         (tm.h): Include.
28179         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
28180         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
28181         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
28182         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
28183         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
28184         (LIBGCC_SPEC): Remove definitions.
28186 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
28188         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
28189         to create a register in testing mode.
28191 2015-03-03  Martin Liska  <mliska@suse.cz>
28192             Jan Hubicka  <hubicka@ucw.cz>
28194         PR ipa/65263
28195         * cgraph.c (cgraph_node::has_thunk_p): New function.
28196         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
28197         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
28198         (sem_function::merge): Assert is changed.
28200 2015-03-03  Martin Liska  <mliska@suse.cz>
28201             Martin Jambor  <mjambor@suse.cz>
28203         PR ipa/65087
28204         * ipa-icf.c (sem_item_optimizer::execute): Change function
28205         return value to boolean.
28206         (sem_item_optimizer::merge_classes): Likewise.
28207         (ipa_icf_driver): Return TODO_remove_functions in case there's
28208         a merge operation processed.
28209         * ipa-icf.h: Change function return value to boolean.
28211 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28213         PR 65138/target
28214         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
28215         processor type for 64-bit little endian PowerPC.
28217         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28218         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
28219         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
28220         printing built-in mask so it does not pass NULL pointers.
28222         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
28223         -mcpu=powerpc64le.
28225 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
28227         PR target/58158
28228         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
28229         !ISA_HAS_FP_CONDMOVE.
28231 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
28233         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
28234         reload_completed.
28236 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
28238         * doc/invoke.texi (Options for Code Generation Conventions):
28239         Fix URL of DSO paper.
28241 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
28243         PR ipa/65130
28244         * ipa-inline.c (check_callers): Looks for recursion.
28245         (inline_to_all_callers): Give up on uninlinable or recursive edges.
28246         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
28247         summary of inline clones.
28248         (do_estimate_growth_1): Fix recursion check.
28250 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
28252         PR ipa/64988
28253         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
28254         comdat groups.
28256 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
28257             Aldy Hernandez  <aldyh@redhat.com>
28259         PR lto/65276
28260         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
28261         when checking TYPE_BINFO.
28263 2015-03-02  Richard Biener  <rguenther@suse.de>
28265         PR ipa/65270
28266         * ipa-icf-gimple.c: Include builtins.h.
28267         (func_checker::compare_memory_operand): Compare base alignment.
28269 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28271         PR target/65184
28272         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
28273         are never passed by reference.
28275 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28277         PR target/65183
28278         * tree-chkp.c (chkp_check_lower): Don't check against
28279         zero bounds for already instrumented functions.
28280         (chkp_check_upper): Likewise.
28281         (chkp_fini): Clean pass local data to avoid wrong reusage.
28283 2015-02-28  Martin Liska  <mliska@suse.cz>
28284             Jan Hubicka  <hubicka@ucw.cz>
28286         * ipa-icf.c (sem_variable::equals): Improve debug output;
28287         get variable constructor.
28288         (sem_variable::parse): Do not filter out too early; give up on
28289         volatile and register vars.
28290         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
28291         variables.
28292         * ipa-icf.h (sem_variable::init): Do not set ctor.
28293         (sem_variable::ctor): Remove.
28295 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
28297         PR middle-end/65233
28298         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
28300 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28302         * ipa-icf.c: Include stor-layout.h
28303         (sem_function::compare_cgraph_references): Rename to ...
28304         (sem_item::compare_cgraph_references): ... this one.
28305         (sem_variable::equals_wpa): New function
28306         (sem_variable::equals): Do not check stuff already verified by
28307         equals_wpa.
28308         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
28309         * ipa-icf.h (sem_item): Add compare_cgraph_references.
28310         (sem_function): Remove compare_cgraph_references.
28311         (sem_variable): Turns equals_wpa into non-inline.
28313 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28315         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
28316         (sem_item::add_expr): New function.
28317         (sem_function::hash_stmt): Handle operands of most statements.
28318         (sem_variable::get_hash): Hash the actual constructor.
28319         * ipa-icf.h (sem_item): Add add_expr.
28320         (sem_function): Update prototype of hash_stmt
28322 2015-02-28  Martin Liska  <mliska@suse.cz>
28323             Jan Hubicka  <hubicka@ucw.cz>
28325         PR ipa/65245
28326         * ipa-icf-gimple.c (func_checker::compare_function_decl):
28327         Remove.
28328         (func_checker::compare_variable_decl): Skip symtab vars.
28329         (func_checker::compare_cst_or_decl): Update.
28330         * ipa-icf.c (sem_function::parse): Do not consider aliases.
28331         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
28332         use correct symtab predicates.
28333         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
28334         (sem_variable::parse):  Update comment.
28335         (sem_item_optimizer::build_graph): Consider ultimate aliases
28336         for references.
28338 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28340         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
28341         of OBJ_TYPE_REF.
28343 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28345         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
28346         (sem_variable::merge) Likewise.
28348 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28350         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
28351         target; also match flag_ipa_devirt.
28353 2015-03-01  Martin Liska  <mliska@suse.cz>
28354             Jan Hubicka  <hubicka@ucw.cz>
28356         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
28357         Validate variable alignment.
28358         * ipa-icf.c (sem_function::equals_private): Be more precise
28359         about non-common function attributes.
28360         (sem_variable::equals): Likewise.
28362 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28364         PR ipa/65237
28365         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
28366         across COMDAT group boundary.
28368 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28370         PR ipa/65232
28371         * ipa-icf.c (clear_decl_rtl): New function.
28372         (sem_function::merge): Clear RTL before forming alias.
28373         (sem_variable::merge): Clear RTL before forming alias.
28375 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28377         PR ipa/65236
28378         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
28380 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
28382         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
28383         to neon_to_gp<q>.
28385 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28387         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
28388         a typo in the description.
28390 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28392         PR target/64317
28393         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28394         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28395         * lra-constraints.c: Include "params.h".
28396         (EBB_PROBABILITY_CUTOFF): Use
28397         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
28398         (lra_inheritance): Use '<' instead of '<=' for
28399         EBB_PROBABILITY_CUTOFF.
28400         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
28401         Document change.
28403 2015-02-27  Martin Liska  <mliska@suse.cz>
28405         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
28406         vector length condition.
28408 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
28410         * doc/extend.texi (x86 transactional memory intrinsics):
28411         Reorganize discussion of _xbegin.  Clarify that the return
28412         value is a bit mask.  Expand example and move to end of section.
28414 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28415             Aldy Hernandez  <aldyh@redhat.com>
28417         PR rtl-optimization/65220
28418         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
28420 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28422         PR target/65032
28423         * lra-remat.c (update_scratch_ops): New.
28424         (do_remat): Call it.
28425         * lra.c (lra_register_new_scratch_op): New. Take code from ...
28426         (remove_scratches): ... here.
28427         * lra-int.h (lra_register_new_scratch_op): New prototype.
28429 2015-02-27  Marek Polacek  <polacek@redhat.com>
28431         PR c/65040
28432         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
28433         -Wformat-signedness anymore.
28435 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28437         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
28438         function.
28439         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
28441 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28443         * config/s390/s390.c (enum s390_builtin):
28444         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
28445         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
28446         (s390_init_builtins): Generate new builtin functions.
28447         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
28448         (s390_sfpc, s390_efpc): New pattern definitions.
28450 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28452         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
28453         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
28454         (s390_builtin_decls): New array.
28455         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
28456         (s390_builtin_decl): New function.
28457         (TARGET_BUILTIN_DECL): Define macro.
28459 2015-02-27  Richard Biener  <rguenther@suse.de>
28461         PR middle-end/63175
28462         * builtins.c (get_object_alignment_2): Make sure to re-apply
28463         the ANDed mask after recursing to its operand gets us a new
28464         misalignment bit position.
28466 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
28467             Martin Liska  <mliska@suse.cz>
28469         PR bootstrap/65150
28470         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
28471         Use address_matters_p.
28472         (redirect_all_callers, set_addressable): New functions.
28473         (sem_function::merge): Reorganize and fix merging issues.
28474         (sem_variable::merge): Likewise.
28475         (sem_variable::compare_sections): Remove.
28476         * common.opt (fmerge-all-constants, fmerge-constants): Remove
28477         Optimization flag.
28478         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
28479         redirect them.
28480         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
28481         decl is used.
28482         (address_matters_1): New function.
28483         (symtab_node::address_matters_p): New function.
28484         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
28485         check for merged flag.
28486         * cgraph.h (address_matters_p): Declare.
28487         (symtab_node::address_taken_from_non_vtable_p): Remove.
28488         (symtab_node::address_can_be_compared_p): New method.
28489         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
28490         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
28491         Remove.
28492         (comdat_can_be_unshared_p_1) Use address_matters_p.
28493         (update_vtable_references): Fix formating.
28494         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
28495         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
28496         * cgraphclones.c: Preserve merged and icf_merged flags.
28498 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
28500         * doc/extend.texi (Function Attributes): Fix spelling and typos.
28501         (Label Attributes): Likewise.
28502         (Cilk Plus Builtins): Likewise.
28503         (ARC SIMD Built-in Functions): Likewise.
28504         (ARM C Language Extensions (ACLE)): Likewise.
28505         (PowerPC Built-in Functions): Likewise.
28506         (PowerPC Hardware Transactional Memory Built-in Functions):
28507         Likewise.
28509 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28511         PR tree-optimization/65216
28512         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
28513         new stmt and new SSA_NAME for lhs whenever the arguments have
28514         changed and weren't just swapped.  Fix comment typo.
28516         PR tree-optimization/65215
28517         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
28518         for PDP endian targets.
28519         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
28520         Fix up formatting issues.
28521         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
28522         size is smaller than the original, adjust MEM_REF offset by the
28523         difference of sizes.  Use is_gimple_mem_ref_addr instead of
28524         is_gimple_min_invariant test to avoid adding address temporaries.
28526 2015-02-26  Martin Liska  <mliska@suse.cz>
28527             Jan Hubicka  <hubicka@ucw.cz>
28529         PR ipa/64693
28530         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
28531         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
28532         (sem_item_optimizer::process_cong_reduction): Include division by
28533         sensitive references.
28534         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
28535         * ipa-ref.c (ipa_ref::address_matters_p): New function.
28536         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
28538 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
28540         PR target/65192
28541         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
28542         Remove.
28543         * config/avr/avr.c: Same.
28544         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
28545         Refuse any constant address not in 0..0xbf.
28546         * config/avr/avr.md (*mov<mode>, *movsf): Remove
28547         tiny_valid_direct_memory_access_range from insn conditions.
28548         (mov<mode>): Don't special-case expansion of avrtiny addresses.
28550 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
28552         PR target/61142
28553         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
28554         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
28555         * config/sh/predicates.md (const_logical_operand): New predicate.
28556         * config/sh/sh.md: Add new peephole2 patterns.
28558 2015-02-26  Marek Polacek  <polacek@redhat.com>
28560         PR ipa/65008
28561         * ipa-inline.c (early_inliner): Recompute inline parameters.
28563 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28565         PR target/65171
28566         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
28567         instructions with TImode operands are included in the analysis.
28569 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
28571         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
28572         of an EDGE_FSM_THREAD.
28574 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28576         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
28578 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
28580         PR debug/46102
28581         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
28583 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
28585         PR tree-optimization/65048
28586         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
28587         (thread_through_all_blocks): Call valid_jump_thread_path.
28588         Remove invalid FSM jump-thread paths.
28590 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28592         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
28593         (ipa_write_optimization_summaries): Likewise.
28594         * tree-streamer.h: Include data-streamer.h.
28595         (streamer_mode_table): Declare extern variable.
28596         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
28597         * lto-streamer-out.c (lto_output_init_mode_table,
28598         lto_write_mode_table): New functions.
28599         (produce_asm_for_decls): Call lto_write_mode_table when streaming
28600         offloading LTO.
28601         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
28602         (lto_create_simple_input_block): Add mode_table argument to the
28603         lto_input_block constructors.
28604         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
28605         Likewise.
28606         * data-streamer-in.c (string_for_index): Likewise.
28607         * ipa-inline-analysis.c (inline_read_section): Likewise.
28608         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
28609         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
28610         * lto-streamer-in.c (lto_read_body_or_constructor,
28611         lto_input_toplevel_asms): Likewise.
28612         (lto_input_mode_table): New function.
28613         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
28614         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
28615         Use bp_pack_machine_mode.
28616         * real.h (struct real_format): Add name field.
28617         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
28618         (class lto_input_block): Add mode_table member.
28619         (lto_input_block::lto_input_block): Add mode_table_ argument,
28620         initialize mode_table.
28621         (struct lto_file_decl_data): Add mode_table field.
28622         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
28623         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
28624         unpack_ts_decl_common_value_fields,
28625         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
28626         * tree-streamer.c (streamer_mode_table): New variable.
28627         * real.c (ieee_single_format, mips_single_format,
28628         motorola_single_format, spu_single_format, ieee_double_format,
28629         mips_double_format, motorola_double_format,
28630         ieee_extended_motorola_format, ieee_extended_intel_96_format,
28631         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
28632         ibm_extended_format, mips_extended_format, ieee_quad_format,
28633         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
28634         decimal_single_format, decimal_double_format, decimal_quad_format,
28635         ieee_half_format, arm_half_format, real_internal_format): Add name
28636         field.
28637         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
28639 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
28641         PR target/65161
28642         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
28643         reordering for selective scheduling.
28645 2015-02-26  Terry Guo  <terry.guo@arm.com>
28647         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
28648         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
28649         (arm_arch_no_volatile_ce): Declare new global variable.
28650         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
28651         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
28652         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
28653         (TARGET_NO_VOLATILE_CE): New macro.
28654         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
28655         volatile memory access in IT block
28657 2015-02-25  Kai Tietz  <ktietz@redhat.com>
28659         PR tree-optimization/61917
28660         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
28661         that reduc_def_stmt is null.
28663 2015-02-25  Martin Liska  <mliska@suse.cz>
28665         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
28666         hard register variables.
28668 2015-02-25  Kai Tietz  <ktietz@redhat.com>
28670         PR target/64212
28671         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
28672         (symtab::noninterposable_alias): Likewise.
28674 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
28676         PR target/65167
28677         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
28678         bounds registers.
28679         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
28681 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
28683         PR target/64997
28684         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
28685         as split condition; force split via '#' in output pattern.
28687 2015-02-25  Richard Biener  <rguenther@suse.de>
28688             Kai Tietz  <ktietz@redhat.com>
28690         PR tree-optimization/61917
28691         * tree-vect-loop.c (vectorizable_reduction): Allow
28692         vect_internal_def without reduction to exit graceful.
28694 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
28696         PR target/65196
28697         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
28698         only with NONDEBUG_INSN_P.
28700 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
28702         Use variadic macros with avr-log.c.
28704         * config/avr/avr-protos.h (avr_vdump): New prototype.
28705         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
28706         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
28707         * config/avr/avr-log.c: Adjust comments.
28708         (avr_vdump): New function.
28709         (avr_vadump): Pass caller as 2nd argument instead of format string.
28710         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
28711         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
28713 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
28715         PR lto/64374
28716         * target.def (target_option_stream_in): New target hook.
28717         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
28718         targetm.target_option.post_stream_in if non-NULL.
28719         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
28720         * doc/tm.texi: Updated.
28721         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
28722         function.
28723         (TARGET_OPTION_POST_STREAM_IN): Redefine.
28725 2015-02-24  Jeff Law  <law@redhat.com>
28727         PR target/65117
28728         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
28729         of operand 0 and operand 2.
28730         (zero_cost_loop_end, loop_end): Similarly.
28732 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
28734         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
28735         CXX_MEM_STAT_INFO.
28737 2015-02-24  DJ Delorie  <dj@redhat.com>
28739         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
28740         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
28741         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
28742         instead of hardcoding SImode.
28744 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
28746         * omp-low.c (create_omp_child_function): Tag entrypoint
28747         functions with a special attribute.
28749 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28751         PR target/65058
28752         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
28754 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
28756         PR rtl-optimization/65123
28757         * lra-remat.c (operand_to_remat): Check hard regs in insn
28758         definition too.
28760 2015-02-24  Nick Clifton  <nickc@redhat.com>
28762         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
28763         to the assembler.
28765 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
28767         PR libgomp/64625
28768         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
28769         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
28770         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
28771         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
28772         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
28773         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
28774         (BUILT_IN_GOACC_PARALLEL): Specify as
28775         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
28776         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
28777         * builtin-types.def
28778         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28779         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28780         Remove function types.
28781         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
28782         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28783         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28784         New function types.
28786 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
28788         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
28790 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
28792         PR tree-optimization/65170
28793         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
28794         if val[1] < 0, clear also val[2] and return 3.
28796 2015-02-24  Alan Modra  <amodra@gmail.com>
28798         PR target/65172
28799         * config/rs6000/rs6000.c (get_memref_parts): Only return true
28800         when *base is a reg.  Handle nested plus addresses.  Simplify
28801         pre_modify test.
28803 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
28805         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
28806         use natural alignment when optimizing for size.
28808 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
28810         PR target/65153
28811         * config/sh/sh.md (movsicc_true+3): Remove peephole.
28812         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
28813         * config/sh/sh.c (replace_n_hard_rtx): Remove.
28815 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
28817         PR fortran/63427
28818         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
28819         too big for a wide_int.  Implement missing wrapping operation.
28821 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
28823         PR target/65163
28824         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
28825         instead of const_int 4294901760.
28827 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
28829         * config/avr/t-avr: Fix typo in comment.
28831 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
28833         * doc/rtl.texi (fma): Clarify documentation.
28835 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
28837         PR debug/58123
28838         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
28839         over input_location.
28841 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28843         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
28844         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
28845         restrict alignments to absolute_biggest_alignment.
28846         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
28847         Define.
28848         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
28849         * doc/tm.texi: Regenerate.
28850         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
28852 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
28854         PR target/64172
28855         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
28857 2015-02-20  Richard Biener  <rguenther@suse.de>
28859         PR tree-optimization/65136
28860         * tree-ssa-propagate.c: Include cfgloop.h.
28861         (replace_phi_args_in): Avoid replacing loop latch edge PHI
28862         arguments with constants.
28864 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
28865             Martin Liska  <mliska@suse.cz>
28867         PR target/63892
28868         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
28869         don't try to create_thunk if stdarg_p.  If
28870         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
28871         redirect_callers if possible.
28872         (sem_item_optimizer::execute): Call unregister_hooks here...
28873         (ipa_icf_driver): ... instead of here.
28875 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28877         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
28878         Mark operand 0 as earlyclobber in 2nd alternative.
28879         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
28880         Write negated shift amount into QI lowpart operand 0 and use it
28881         in the shift step.
28882         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
28884 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28886         * cgraph.h (clone_function_name_1): Declare.
28887         * cgraphclones.c (clone_function_name_1): New function.
28888         (clone_function_name): Use it.
28889         * lto-partition.c: Include "stringpool.h".
28890         (must_not_rename, maybe_rewrite_identifier)
28891         (validize_symbol_for_target): New static functions.
28892         (privatize_symbol_name): Use must_not_rename.
28893         (promote_symbol): Call validize_symbol_for_target.
28894         (lto_promote_cross_file_statics): Likewise.
28895         (lto_promote_statics_nonwpa): Likewise.
28897 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
28899         PR target/64452
28900         * config/avr/avr.md (pushhi_insn): New insn.
28901         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
28903 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28904             Jakub Jelinek  <jakub@redhat.com>
28906         * tree-streamer.c (preload_common_nodes): Don't preload
28907         TI_VA_LIST* for offloading.
28908         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
28909         in_lto_p.
28911 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
28913         * config/pa/pa.c (pa_emit_move_sequence): Always force
28914         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
28915         note on insn.
28917         * config/pa/pa.c (pa_reloc_rw_mask): New function.
28918         (TARGET_ASM_RELOC_RW_MASK): Define.
28919         (pa_cannot_force_const_mem): Revert previous change.
28921 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
28922             Jan Hubicka  <hubicka@ucw.cz>
28924         PR ipa/65028
28925         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
28926         across jump functions.
28928 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
28930         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
28932 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
28934         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
28936 2015-02-19  Richard Henderson  <rth@redhat.com>
28938         PR middle-end/65074
28939         * varasm.c (default_binds_local_p_2): Don't test node->definition;
28940         test DECL_EXTERNAL independent of symtab_node.
28942 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
28944         PR lto/65012
28945         * varpool.c (varpool_node::get_constructor): Return early
28946         if this->lto_file_data is NULL.
28948 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28950         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
28951         (rank_for_schedule_debug): Update.
28952         (ready_sort): Make static.  Move sorting logic to ...
28953         (ready_sort_debug, ready_sort_real): New static functions.
28954         (schedule_block): Sort both debug insns and real insns in preparation
28955         for ready list trimming.  Improve debug output.
28956         * sched-int.h (ready_sort): Remove global declaration.
28958 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
28960         * ipa-icf.c (sem_function::equals_private): Adjust.
28961         (sem_function::bb_dict_test): Take a vec<int> * instead of
28962         auto_vec<int>.
28963         * ipa-icf.h (bb_dict_test): Likewise.
28965 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28967         PR gcov-profile/64634
28968         * tree-eh.c (frob_into_branch_around): Fix up typos
28969         in function comment.
28970         (lower_catch): Put eh_seq resulting from EH lowering of
28971         the cleanup sequence after the cleanup rather than before it.
28973 2015-02-18  Tom de Vries  <tom@codesourcery.com>
28975         * common.opt (fstdarg-opt): New option.
28976         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
28977         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
28978         (@item -fstdarg-opt): New item.
28980 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
28982         PR target/65064
28983         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
28984         for common symbols.
28986 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28988         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
28989         insn-modes.h.
28990         (ALL_HOST_OBJS): Add mkoffload.o.
28991         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
28993 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
28995         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
28996         (compare_virtual_tables): Be smarter about skipping typeinfos;
28997         do sane output on virtual table table mismatch.
28998         (warn_odr): Be ready for forward declarations of enums;
28999         output sane info on base mismatch and virtual table mismatch.
29000         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
29001         when only one type is polymorphic.
29002         (get_odr_type): Fix hashtable corruption.
29003         (dump_odr_type): Dump mangled names.
29005 2015-02-18  Richard Biener  <rguenther@suse.de>
29007         PR tree-optimization/65063
29008         * tree-predcom.c (determine_unroll_factor): Return 1 if we
29009         have replaced looparound PHIs.
29011 2015-02-18  Martin Liska  <mliska@suse.cz>
29013         * lto-streamer.c (lto_streamer_init): Encapsulate
29014         streamer_check_handled_ts_structures with checking macro.
29016 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
29018         PR ipa/65087
29019         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
29020         section if !implicit_section.
29021         (cgraph_node::create_version_clone_with_body): Likewise.
29022         * trans-mem.c (ipa_tm_create_version): Likewise.
29024 2015-02-18  Richard Biener  <rguenther@suse.de>
29026         PR tree-optimization/62217
29027         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
29028         into BIVs.
29030 2015-02-18  Marek Polacek  <polacek@redhat.com>
29032         PR sanitizer/65081
29033         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
29034         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
29035         is in range [-16K, -1].  Don't issue run-time error if
29036         (ptr > ptr + offset).
29038 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
29040         * doc/install.texi (nvptx-*-none): New section.
29041         * doc/invoke.texi (Nvidia PTX Options): Likewise.
29042         * config/nvptx/nvptx.opt: Update.
29044         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
29045         (access_check): New functions, copied from
29046         config/i386/intelmic-mkoffload.c.
29047         (main): For non-installed testing, look in all COMPILER_PATHs for
29048         GCC_INSTALL_NAME.
29050         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
29052 2015-02-18  Andrew Pinski  <apinski@cavium.com>
29053             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29055         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
29056         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
29058 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
29060         * ipa-visibility.c (function_and_variable_visibility): Only
29061         check locality if node is not already local.
29062         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
29063         call_for_symbol_and_aliases instead of
29064         call_for_symbol_thunks_and_aliases.
29065         (ipa_inline): Likewise.
29066         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
29067         first walk aliases.
29068         * ipa.c (symbol_table::remove_unreachable_nodes): Use
29069         call_for_symbol_and_aliases.
29070         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
29071         (ipa_propagate_frequency_1): Use it; use opt_for_fn
29072         (ipa_propagate_frequency): Update.
29073         (ipa_profile): Add opt_for_fn gueards.
29075 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
29077         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
29078         * doc/invoke.texi (SH options): Document it.
29079         * config/sh/sh.c (sh_insn_length_adjustment): Check
29080         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
29082 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
29084         * common.opt (fipa-cp-alignment): New.
29085         * ipa-cp.c (ipcp_store_alignment_results): Check
29086         flag_ipa_cp_alignment.
29087         * opts.c (default_options_table): Enable -fipa-cp-alignment for
29088         -O2.
29089         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
29090         * doc/invoke.texi: Document -fipa-cp-alignment.
29092 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
29094         PR target/64793
29095         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
29096         to nil.  Adjust comments.
29098 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
29100         * ipa-visibility.c (function_and_variable_visibility): Only
29101         check locality if node is not already local.
29102         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
29103         call_for_symbol_and_aliases instead of
29104         call_for_symbol_thunks_and_aliases.
29105         (ipa_inline): Likewise.
29106         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
29107         first walk aliases.
29108         * ipa.c (symbol_table::remove_unreachable_nodes): Use
29109         call_for_symbol_and_aliases.
29110         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
29111         (ipa_propagate_frequency_1): Use it; use opt_for_fn
29112         (ipa_propagate_frequency): Update.
29113         (ipa_profile): Add opt_for_fn guards.
29115 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
29117         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
29118         skipping of "strange" tokens.
29120 2015-02-17  Jeff Law  <law@redhat.com>
29122         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
29123         obsolete comment.
29125 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
29127         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
29128         as forcing a HARD_DEP between instructions, thereby
29129         disallowing rewriting to break dependencies.
29131 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
29133         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
29134         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
29135         variables in boundary that have no inlitalizer encoded and are
29136         not aliases.
29137         * varasm.c (default_binds_local_p_2): External definitions do not
29138         count as definitions here.
29140 2015-02-16  Jeff Law  <law@redhat.com>
29142         PR tree-optimization/64823
29143         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
29144         statements.
29145         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29146         threading through blocks with PHIs, but no statements.
29147         (thread_through_normal_block): Distinguish between blocks where
29148         we did not process all the statements and blocks with no statements.
29150 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
29151             James Greenhalgh  <james.greenhalgh@arm.com>
29153         PR ipa/64963
29154         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
29155         section if not linkonce.  Fix up formatting.
29156         (cgraph_node::create_version_clone_with_body): Copy section.
29157         * trans-mem.c (ipa_tm_create_version): Likewise.
29159 2015-02-16  Richard Biener  <rguenther@suse.de>
29161         PR tree-optimization/65077
29162         * tree-ssa-structalias.c (get_constraint_for_1): Handle
29163         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
29164         (find_func_aliases): Allow float values to carry pointers again.
29166 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
29168         * doc/install.texi (Specific): Reorder targets list to put
29169         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
29170         from the top menu.
29172 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
29173             David Edelsohn  <dje.gcc@gmail.com>
29175         PR target/65058
29176         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
29177         mapping class to external variable or function reference.
29178         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
29179         mapping class.
29181 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
29183         PR target/53348
29184         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
29185         ASM_WEAKEN_DECL if defined.
29187 2015-02-16  Richard Biener  <rguenther@suse.de>
29189         PR lto/65015
29190         * varasm.c (default_file_start): For LTO produced units
29191         emit <artificial> as file directive.
29193 2015-02-16  Richard Biener  <rguenther@suse.de>
29195         PR tree-optimization/63593
29196         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
29197         stmts and releasing SSA names until...
29198         (execute_pred_commoning): ... after processing all chains.
29200 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
29202         PR ipa/65059
29203         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
29204         external functions.
29206 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
29208         * doc/bugreport.texi: Adjust section titles throughout the file
29209         to use "Title Case".
29210         * doc/extend.texi: Likewise.
29211         * doc/gcov.texi: Likewise.
29212         * doc/implement-c.texi: Likewise.
29213         * doc/implement-cxx.texi: Likewise.
29214         * doc/invoke.texi: Likewise.
29215         * doc/objc.texi: Likewise.
29216         * doc/standards.texi: Likewise.
29217         * doc/trouble.texi: Likewise.
29219 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
29221         * cgraph.h (symtab_node::has_aliases_p): Simplify.
29222         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
29223         * tree.c (lookup_binfo_at_offset): Make static.
29224         (get_binfo_at_offset): Do not shadow offset; add explanatory
29225         comment.
29227 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
29229         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
29230         for all floading point loads and stores except those using a register
29231         index address.
29232         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
29233         to a register.
29235 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
29237         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
29238         (do_estimate_growth_1): Record if any uninlinable edge was seen.
29239         (estimate_growth): Handle uninlinable edges correctly.
29240         (check_callers): New.
29241         (growth_likely_positive): Handle aliases correctly.
29243 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
29245         * ipa-chkp.c: Use iterate_direct_aliases.
29246         * symtab.c (resolution_used_from_other_file_p): Move inline.
29247         (symtab_node::create_reference): Fix formating.
29248         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29249         (symtab_node::iterate_reference): Move inline.
29250         (symtab_node::iterate_referring): Move inline.
29251         (symtab_node::iterate_direct_aliases): Move inline.
29252         (symtab_node::used_from_object_file_p_worker): Inline into ...
29253         (symtab_node::used_from_object_file_p): ... this one; move inline.
29254         (symtab_node::call_for_symbol_and_aliases): Move inline;
29255         use iterate_direct_aliases.
29256         (symtab_node::call_for_symbol_and_aliases_1): New method.
29257         (cgraph_node::call_for_symbol_and_aliases): Move inline;
29258         use iterate_direct_aliases.
29259         (cgraph_node::call_for_symbol_and_aliases_1): New method.
29260         (varpool_node::call_for_node_and_aliases): Rename to ...
29261         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
29262         use iterate_direct_aliases.
29263         (varpool_node::call_for_symbol_and_aliases_1): New method.
29264         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
29265         (ipa_discover_readonly_nonaddressable_var): Update.
29266         * ipa-devirt.c: Fix formating.
29267         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
29268         Move inline.
29269         (cgraph_node::call_for_symbol_and_aliases): Move inline.
29270         (cgraph_node::call_for_symbol_and_aliases_1): New function..
29271         * cgraph.h (used_from_object_file_p_worker): Remove.
29272         (resolution_used_from_other_file_p): Move inline.
29273         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29274         (symtab_node::iterate_reference): Move inline.
29275         (symtab_node::iterate_referring): Move inline.
29276         (symtab_node::iterate_direct_aliases): Move inline.
29277         (symtab_node::used_from_object_file_p_worker): Inline into ...
29278         (symtab_node::used_from_object_file_p): Move inline.
29279         * tree-emutls.c (ipa_lower_emutls): Update.
29280         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
29281         (varpool_node::call_for_node_and_aliases): Remove.
29283 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
29285         PR tree-optimization/62209
29286         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
29287         op == range->exp, insert seq and gimplified code after labels
29288         instead of after the phi.
29290 2015-02-13  Jeff Law  <law@redhat.com>
29292         PR bootstrap/65060
29293         Revert my change for tree-optimization/64823.
29295 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
29297         PR tree-optimization/65053
29298         * tree-ssa-phiopt.c (value_replacement): When moving assign before
29299         cond, either reset VR on lhs or set it to phi result VR.
29301 2015-02-13  Jeff Law  <law@redhat.com>
29303         PR tree-optimization/64823
29304         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
29305         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29306         threading through blocks with PHIs, but no statements.
29307         (thread_through_normal_block): Distinguish between blocks where
29308         we did not process all the statements and blocks with no statements.
29310         PR rtl-optimization/47477
29311         * match.pd (convert (plus/minus (convert @0) (convert @1): New
29312         simplifier to narrow arithmetic.
29314 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
29316         PR ipa/65028
29317         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
29318         polymorphic call info when type is not known to be preserved.
29320 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
29322         PR ipa/65028
29323         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
29324         (inline_call): Use it.
29326 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
29328         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
29329         GOMP_DEVICE_NVIDIA_PTX.
29331 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
29333         PR ipa/65034
29334         * stmt.c (emit_case_nodes): Use void_type_node instead of
29335         NULL_TREE as LABEL_DECL type.
29337 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
29339         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
29340         constraints.
29341         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
29342         symbolic references to data to be forced to constant memory on the
29343         SOM target.
29345 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
29347         PR tree-optimization/65002
29348         * tree-cfg.c (pass_data_fixup_cfg): Don't update
29349         SSA on start.
29350         * tree-sra.c (some_callers_have_no_vuse_p): New.
29351         (ipa_early_sra): Reject functions whose callers
29352         assume function is read only.
29354 2015-02-13  Richard Biener  <rguenther@suse.de>
29356         PR lto/65015
29357         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
29358         for LTO produced CUs.
29360 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
29362         PR tree-optimization/64705
29363         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
29364         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
29365         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
29366         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
29367         expand_simple_operations.
29369 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
29370             Richard Henderson  <rth@redhat.com>
29372         PR rtl/32219
29373         * cgraphunit.c (cgraph_node::finalize_function): Set definition
29374         before notice_global_symbol.
29375         (varpool_node::finalize_decl): Likewise.
29376         * varasm.c (default_binds_local_p_2): Rename from
29377         default_binds_local_p_1, add weak_dominate argument.  Use direct
29378         returns instead of assigning to local variable.  Unify varpool and
29379         cgraph paths via symtab_node.  Reject undef weak variables before
29380         testing visibility.  Reorder tests for simplicity.
29381         (default_binds_local_p): Use default_binds_local_p_2.
29382         (default_binds_local_p_1): Likewise.
29383         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
29384         via symtab_node.
29385         (default_elf_asm_output_external): Emit visibility when specified.
29387 2015-02-13  Alan Modra  <amodra@gmail.com>
29389         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
29390         code setting up r11 for out-of-line fp restore.
29392 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
29394         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
29395         (muser-mode): Likewise.
29397 2015-02-13  Alan Modra  <amodra@gmail.com>
29399         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
29400         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
29402 2015-02-12  David Howells  <dhowells@redhat.com>
29404         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
29405         warning.
29406         * tree-ssa-uninit.c (dump_predicates): Likewise.
29407         * opts.c (print_filtered_help): Likewise.
29409 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
29411         * dwarf2out.c (output_die): Use "%s", name instead of name to
29412         avoid -Wformat-security warning.
29414         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
29415         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29416         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
29417         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29419 2015-02-12  Jason Merrill  <jason@redhat.com>
29421         * common.opt (-flifetime-dse): New.
29423 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
29425         PR sanitizer/65019
29426         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
29428         PR tree-optimization/65014
29429         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
29430         use original second operand of arg0 or arg1 instead of
29431         that adjusted by STRIP_NOPS.
29433 2015-02-11  Jeff Law  <law@redhat.com>
29435         PR target/63347
29436         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
29437         that needs to be queued, just queue it for a single cycle.
29439 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
29441         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
29442         bodies of thunks; comment on why.
29443         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
29444         symbols are extern.
29446 2015-02-11  Richard Henderson  <rth@redhat.com>
29448         PR sanitize/65000
29449         * tree-eh.c (mark_reachable_handlers): Mark source and destination
29450         regions of __builtin_eh_copy_values.
29452 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
29454         PR middle-end/65003
29455         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
29456         ultimate alias is MEM with SYMBOL_REF satisfying
29457         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
29458         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
29460 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
29462         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
29463         "diagnostic-core.h".
29464         (main): Initialize progname, and call diagnostic_initialize.
29466         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
29467         instead of __OPENMP_TARGET__.
29469         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
29470         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
29471         hard-coding PTX_ID.
29473 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
29475         * doc/sourcebuild.texi (pie_enabled): Document.
29477 2015-02-11  Martin Liska  <mliska@suse.cz>
29479         PR ipa/64813
29480         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
29481         a return value for call to a function that is noreturn.
29483 2015-02-11  Richard Biener  <rguenther@suse.de>
29485         PR lto/65015
29486         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
29487         and -fresolution.
29489 2015-02-11  Andrew Pinski  <apinski@cavium.com>
29491         PR target/64893
29492         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
29493         Change the first argument type to size_type_node and add another
29494         size_type_node.
29495         (aarch64_simd_expand_builtin): Handle the new argument to
29496         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
29497         print an out when the first two arguments are not
29498         nonzero integer constants.
29499         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
29500         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
29502 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
29504         PR target/61925
29505         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
29506         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
29507         (ix86_set_current_function): Rewritten.
29508         (ix86_add_new_builtins): Temporarily clear current_target_pragma
29509         when creating builtin fndecls.
29511 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29513         PR ipa/65005
29514         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
29515         function.
29516         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
29517         have no comdat group.
29518         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
29519         (lto_output_varpool_node): Always output alias info.
29520         (output_refs): Output refs of boundary aliases, too.
29521         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
29522         (output_symtab): Output call eges in thunks in boundary.
29523         (get_alias_symbol): Remove.
29524         (input_node, input_varpool_node): Do not special case weakrefs.
29525         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
29526         alias and thunks targets in the boundary; do not take removed symbols
29527         from their comdat groups.
29528         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
29529         (cgraph_node::global_info): Remove.
29530         (cgraph_node::rtl_info): Look through aliases and thunks.
29531         * cgrpah.h (global_info): Remove.
29532         (non_local_p): Remove.
29534 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29535             Sandra Loosemore  <sandra@codesourcery.com>
29537         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
29538         to inline asm.  List dialects in proper order.
29540 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29541             Sandra Loosemore  <sandra@codesourcery.com>
29543         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
29545 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29547         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
29548         modified) reference to Solaris.
29550 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
29552         * doc/extend.texi (Extended Asm): Fix typos.
29554 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
29556         PR sanitizer/65004
29557         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
29559 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
29561         PR target/64661
29562         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
29563         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
29564         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
29565         * config/sh/constraints.md (Ara, Add): New constraints.
29566         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
29567         predicates.
29568         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
29569         atomic_mem_operand_0.  Don't use force_reg on the memory address.
29570         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
29571         Sra constraint.  Convert to insn_and_split.  Add workaround for
29572         PR 64974.
29573         (atomic_compare_and_swap<mode>_hard): Copy to
29574         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
29575         Use atomic_mem_operand_0 predicate.
29576         (atomic_compare_and_swap<mode>_soft_gusa,
29577         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
29578         AraAdd constraints.
29579         (atomic_compare_and_swap<mode>_soft_tcb,
29580         atomic_compare_and_swap<mode>_soft_imask,
29581         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
29582         atomic_mem_operand_0 predicate and SraSdd constraints.
29583         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
29584         constraint.
29585         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
29586         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
29587         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
29588         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
29589         force_reg on the memory address.
29590         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
29591         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
29592         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
29593         atomic_mem_operand_1 predicate and Sra constraint.
29594         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
29595         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
29596         Use atomic_mem_operand_1 predicate.
29597         (atomic_<fetchop_name><mode>_hard): Copy to
29598         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
29599         Use atomic_mem_operand_1 predicate.
29600         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
29601         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
29602         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
29603         insn_and_split.  Use atomic_mem_operand_1 predicate.
29604         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
29605         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
29606         Use atomic_mem_operand_1 predicate.
29607         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
29608         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
29609         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
29610         in generated insn with original mem operand before emitting the insn.
29611         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
29612         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
29613         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
29614         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
29615         Use atomic_mem_operand_1 predicate and AraAdd constraints.
29616         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
29617         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
29618         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
29619         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
29620         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
29621         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
29622         atomic_not_fetch<mode>_soft_tcb,
29623         atomic_<fetchop_name>_fetch<mode>_soft_imask,
29624         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
29625         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
29626         Use atomic_mem_operand_1 predicate and SraSdd constraints.
29628 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
29630         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
29631         and 3 earlyclobber operands.
29633 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29635         * common.opt (fstack-reuse): Mark as optimization.
29637 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29639         PR ipa/64982
29640         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
29642 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
29644         PR tree-optimization/64326
29645         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
29647 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
29649         PR gcov-profile/61889
29650         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
29652 2015-02-10  Richard Biener  <rguenther@suse.de>
29654         PR tree-optimization/64995
29655         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
29656         value we use is final.
29657         (visit_reference_op_store): Always valueize op.
29658         (visit_use): Properly valueize vuses.
29660 2015-02-10  Richard Biener  <rguenther@suse.de>
29662         PR tree-optimization/64909
29663         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
29664         pass a scalar-stmt count estimate to the cost model.
29665         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
29667 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
29669         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
29670         enabled by default together with var-tracking.
29672 2015-02-10  Nick Clifton  <nickc@redhat.com>
29674         * config/rl78/rl78.c: Remove DIV attribute code accidentally
29675         included in previous rl78 commit.
29677 2015-02-10  Richard Biener  <rguenther@suse.de>
29679         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
29680         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
29681         return the bitpack.
29683 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
29685         PR gcov-profile/61889
29686         * config.in: regenerate.
29687         * configure.in: Likewise.
29688         * configure.ac: Check for ftw.h.
29689         * gcov-tool.c: Check for ftw.h before using nftw.
29691 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
29693         PR lto/64076
29694         * ipa-visibility.c (update_visibility_by_resolution_info): Only
29695         assert when not in lto mode.
29697 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29699         * ira-color.c (setup_left_conflict_sizes_p): Simplify
29700         initialization/assignment of conflict_size.
29702 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
29704         PR ipa/64978
29705         * ipa-cp.c (gather_caller_stats): Skip thunks.
29706         (propagate_constants_topo): Skip aliases.
29708 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
29710         PR target/64761
29711         * config/sh/sh.c (sh_option_override): Don't change
29712         -freorder-blocks-and-partition to -freorder-blocks even when
29713         unwinding is enabled.
29714         (sh_can_follow_jump): Return false if the followee jump is
29715         a crossing jump when -freorder-blocks-and-partition is specified.
29716         * config/sh/sh.md (*jump_compact_crossing): New insn.
29718 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
29719             Kaz Kojima  <kkojima@gcc.gnu.org>
29721         PR target/64761
29722         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
29723         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
29724         (sh_can_redirect_branch): Rename to ...
29725         (sh_can_follow_jump): ... this.  Constify argument types.
29726         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
29727         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
29728         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
29729         * doc/tm.texi: Regenerate.
29731 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
29733         PR sanitizer/64981
29734         * builtins.c (expand_builtin): Call targetm.expand_builtin
29735         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
29737 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29739         PR ipa/61548
29740         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
29742 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29744         PR ipa/63566
29745         * ipa-icf.c (set_local): New function.
29746         (sem_function::merge): Use it.
29748 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29750         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
29751         (add_type_duplicate): Fix comparison of BINFOs.
29753 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29755         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
29756         on getting VOID pointer.
29758 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
29760         PR target/64979
29761         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
29762         va_list escapes.
29764 2015-02-09  Richard Biener  <rguenther@suse.de>
29766         * genmatch.c (replace_id): Copy expr_type.
29768 2015-02-09  Richard Biener  <rguenther@suse.de>
29770         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
29771         (streamer_write_tree_bitfields): Declare.
29772         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
29773         properly unpack padding.
29774         (unpack_value_fields): Inline ...
29775         (streamer_read_tree_bitfields): ... here.
29776         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
29777         and properly add padding bits.
29778         (streamer_pack_tree_bitfields): Fold into ...
29779         (streamer_write_tree_bitfields): ... this new function,
29780         exposing the bitpack object.
29781         * lto-streamer-out.c (lto_write_tree_1): Call
29782         streamer_write_tree_bitfields.
29784 2015-02-09  Richard Biener  <rguenther@suse.de>
29786         PR tree-optimization/54000
29787         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
29788         (struct ivopts_data): Add loop_loc member.
29789         (tree_ssa_iv_optimize_loop): Dump loop location.
29790         (create_new_ivs): Likewise, also dump number of IVs generated.
29792 2015-02-09  Martin Liska  <mliska@suse.cz>
29794         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
29795         just if not yet registered.
29796         (ipa_icf_generate_summary): Register callgraph hooks.
29798 2015-02-08  Andrew Pinski  <apinski@cavium.com>
29800         * config/aarch64/aarch64.c (gty_dummy): Delete.
29802 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29804         PR ipa/63566
29805         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
29806         (cgraph_node::local_p): Remove thunk related FIXME.
29808 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29810         PR ipa/63566
29811         * i386.c (ix86_function_regparm): Look through aliases to see if callee
29812         is local and optimized.
29813         (ix86_function_sseregparm): Likewise; also use target's SSE math
29814         settings; error out instead of silently generating wrong code
29815         on mismatches.
29816         (init_cumulative_args): Look through aliases.
29818 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29820         PR ipa/63566
29821         * ipa-split.c (execute_split_functions): Split if function has aliases.
29823 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29825         PR ipa/63566
29826         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
29827         aliases before trying to expand it.
29828         (cgraph_node::expand_thunk): Fix formating.
29830 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
29832         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
29833         (Using Assembly Language with C): Expand introduction.
29834         (Basic Asm): Copy-edit.  Add more information about uses of
29835         basic asm.
29836         (Extended Asm): Copy-edit.  Document new escape syntax and
29837         %l[label] syntax.
29838         (Global Reg Vars): Copy-edit.
29839         (Local Reg Vars): Likewise.
29841 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
29843         PR debug/2714
29844         PR bootstrap/64256
29845         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
29846         (DBX_CONTIN_CHAR): Define.
29848 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
29849             Brian Rzycki  <b.rzycki@samsung.com>
29851         PR tree-optimization/64878
29852         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
29853         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
29854         Stop recursion at loop phi nodes after having visited a loop phi node.
29856 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29858         * toplev.c (process_options): Change flag_ipa_ra before creating
29859         optimization_{default,current}_node.
29861         PR ipa/64896
29862         * cgraphunit.c (cgraph_node::expand_thunk): If
29863         restype is not is_gimple_reg_type nor the thunk_fndecl
29864         returns aggregate_value_p, set restmp to a temporary variable
29865         instead of resdecl.
29867 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
29869         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
29871 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
29873         PR target/64205
29874         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
29875         add a general secondary reload handler for SDmode, unless we have
29876         both read/write support for SDmode.
29878 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29880         PR middle-end/64937
29881         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
29882         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
29883         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
29884         1 before, push it to abstract_vec.
29885         (dwarf2out_abstract_function): Adjust caller.  Don't call
29886         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
29887         DECL_ABSTRACT_P flags for all abstract_vec elts.
29889 2015-02-06  Renlin Li  <renlin.li@arm.com>
29891         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
29892         complex gimple.
29893         * tree-ssa.c (execute_update_addresses_taken): Likewise.
29895 2015-02-06  Jeff Law  <law@redhat.com>
29897         PR target/64889
29898         * config/h8300/h8300.c (push): New argument "in_prologue".
29899         Pass "in_prologue" along to "F".
29900         (h8300_push_pop): Corresponding changes.
29901         (h8300_expand_prologue): Likewise.
29902         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
29904 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29906         PR rtl-optimization/64957
29907         PR debug/64817
29908         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
29909         IOR rather than for AND.
29911 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
29913         PR target/62631
29914         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
29915         of shift-add and (add + shift) operations.  Rename local variable.
29917 2015-02-05  Jeff Law  <law@redhat.com>
29919         PR target/17306
29920         * config/h8300/constraints.md (U): Correctly dectect
29921         "eightbit_data" memory addresses.
29922         * config/h8300/h8300.c (eightbit_constant_address_p): Also
29923         handle (const (plus (symbol_ref (x)))) where x is declared
29924         as an 8-bit data memory address.
29925         * config/h8300/h8300.md (call, call_value): Correctly detect
29926         "funcvec" functions.
29928         PR target/43264
29929         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
29930         24 to 28 bits for the H8/300.
29932 2015-02-06  Alan Modra  <amodra@gmail.com>
29934         PR target/64876
29935         * config/rs6000/rs6000.c (chain_already_loaded): New function.
29936         (rs6000_call_aix): Use it.
29938 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
29940         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
29941         check.
29943 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
29945         * config/h8300/constraints.md ("U" constraint): Use strict
29946         variant of REG_OK_FOR_BASE_P after reload has started.
29948 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
29950         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
29951         define to zero if !TARGET_NEON.
29952         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
29954 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29955             Trevor Saunders  <tsaunders@mozilla.com>
29957         PR ipa/61548
29958         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
29960 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29962         PR ipa/61548
29963         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
29964         when removing varpool nodes.
29966 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29968         PR ipa/61548
29969         * varpool.c (varpool_node::remove): Fix order of variables.
29971 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29973         PR ipa/64686
29974         * ipa-inline.c (inline_small_functions): Fix ordering issue between
29975         speculation resolution and key updates.
29977 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29979         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
29980         about not letting any speculative edges unupdated.
29982 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29984         PR gcov/64123
29985         * gcov-io.c (gcov_var): Export.
29987 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29989         PR middle-end/64922
29990         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
29991         edges that become speculative.
29993 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
29995         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
29996         or DW_LANG_Fortran08.
29997         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
29998         DW_LANG_Fortran08.
29999         (gen_compile_unit_die): Handle "GNU Fortran2003" and
30000         "GNU Fortran2008" language strings.
30001         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
30002         * langhooks.h (lang_GNU_Fortran): New prototype.
30003         * langhooks.c (lang_GNU_Fortran): New function.
30004         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
30005         lang_GNU_Fortran.
30007 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
30009         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
30010         (RTX_OK_FOR_OLO10_P): Likewise.
30012 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
30014         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
30016 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
30018         PR middle-end/64922
30019         * gimple.c: Include gimple-ssa.h.
30020         (maybe_remove_unused_call_args): New function.
30021         * gimple.h (maybe_remove_unused_call_args): Declare.
30022         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
30023         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
30024         * gimple-fold.c (gimple_fold_call): Likewise.
30026 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
30028         PR rtl-optimization/64905
30029         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
30030         pointer alignment if it isn't needed.
30032 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
30034         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
30035         cortex-a72.cortex-a53.
30036         * config/aarch64/aarch64-tune.md: Regenerate.
30037         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
30039 2015-02-04  Nick Clifton  <nickc@redhat.com>
30041         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
30042         inside a MEM.
30044 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
30046         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
30047         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
30048         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
30049         of DEF_BUILTIN.
30050         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
30051         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
30052         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
30053         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
30054         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
30055         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
30056         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
30057         * tree-core.h (enum built_in_function): In between
30058         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
30059         for builtins that use DEF_BUILTIN_CHKP macro.
30061 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
30063         PR debug/64817
30064         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
30065         operands for tcc_comparison exprs.  Fix typos.
30067         PR debug/64817
30068         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
30069         of two XORs that have an intervening AND or IOR.
30071         PR debug/64817
30072         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
30073         simplification of XOR of AND to not allocate new rtx before
30074         committing to a simplification.
30076 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30078         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
30079         manual swaps in all peepholes.
30081 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30083         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
30084         of manual swapping implementation.
30085         (aarch64_expand_vec_perm_const_1): Likewise.
30087 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
30089         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
30090         (generic_addrcost_table): Remove NAMED_PARAM.
30091         (cortexa57_addrcost_table): Likewise.
30092         (xgene1_addrcost_table): Likewise.
30093         (generic_regmove_table): Likewise.
30094         (cortexa53_regmove_table): Likewise.
30095         (xgene1_regmove_table): Likewise.
30096         (generic_vector_table): Likewise.
30097         (cortexa57_vector_table): Likewise.
30098         (xgene1_vector_table): Likewise.
30099         (generic_tunings): Likewise.
30100         (cortexa53_tunings): Likewise.
30101         (cortexa57_tunings): Likewise.
30102         (xgene1_tunings): Likewise.
30104 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
30106         * config/arm/arm-cores.def: Add cortex-a72 and
30107         cortex-a72.cortex-a53.
30108         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
30109         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
30110         * config/arm/arm-tune.md: Regenerate.
30111         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
30112         "cortex-a72.cortex-a53".
30113         * doc/invoke.texi (ARM Options/-mtune): Likewise.
30115 2015-02-04  Nick Clifton  <nickc@redhat.com>
30117         PR target/64408
30118         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
30119         of accepted codes.
30120         (nonimmediate_di_operand): Likewise.
30122         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
30123         prefixes of known F5 using MSP430 MCUs.
30125 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30127         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
30128         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
30129         instead of __builtin_sqrt.
30131 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
30133         * varasm.c (do_assemble_alias): Follow transparent alias
30134         chain for target.
30135         (default_assemble_visibility): Follow transparent alias
30136         chain for decl name.
30138 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30140         PR middle-end/62103
30141         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
30142         to compute size of referenced value in the constant case.
30144 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
30146         PR rtl-optimization/64756
30147         * cse.c (invalidate_dest): New function.
30148         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
30149         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
30150         invalidate and do not record it.
30152 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
30154         PR target/64660
30155         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
30156         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
30157         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
30158         atomic_nand<mode>_soft_tcb): New insns.
30159         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
30160         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
30161         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
30162         Split into atomic_not_fetchsi_hard if operands[0] is unused.
30163         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
30164         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30165         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
30166         atomic_not<mode>_hard if operands[0] is unused.
30167         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
30168         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
30169         if operands[0] is unused.
30170         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
30171         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
30172         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
30173         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30174         unused.
30175         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
30176         into atomic_not<mode>_soft_tcb if operands[0] is unused.
30177         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
30178         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
30179         if operands[0] is unused.
30180         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
30181         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
30182         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
30183         atomic_nand_fetchsi_hard if operands[0] is unused.
30184         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
30185         atomic_nand<mode>_hard if operands[0] is unused.
30186         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
30187         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
30188         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
30189         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30190         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
30191         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
30192         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
30193         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30194         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
30195         atomic_not<mode>_hard if operands[0] is unused.
30196         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
30197         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30198         unused.
30199         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
30200         into atomic_not<mode>_soft_tcb if operands[0] is unused.
30201         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
30202         atomic_nand<mode>_hard if operands[0] is unused.
30203         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
30204         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30206 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
30208         PR jit/64810
30209         * Makefile.in (GCC_OBJS): Add gcc-main.o.
30210         * gcc-main.c: New file, containing "main" taken from gcc.c.
30211         * gcc.c (do_self_spec): Free decoded_options.
30212         (class driver): Move declaration to gcc.h.
30213         (main): Move declaration and implementation to new file
30214         gcc-main.c.
30215         (driver_get_configure_time_options): New function.
30216         * gcc.h (class driver): Move this declaration here, from
30217         gcc.c.
30218         (driver_get_configure_time_options): New declaration.
30220 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
30222         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
30223         cross-module inlining.
30224         * cgraph.h (cgraph_node): Add flag merged.
30225         * ipa-icf.c (sem_function::merge): Maintain it.
30227 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
30229         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
30230         instead of OBJECT_P.
30232 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
30234         PR target/62631
30235         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
30236         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
30237         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
30238         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
30240 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
30242         PR other/63504
30243         * combine.c (reg_n_sets_max): New variable.
30244         (can_change_dest_mode, reg_nonzero_bits_for_combine,
30245         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
30246         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
30247         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
30248         (rest_of_handle_combine): Initialize reg_n_sets_max.
30250 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
30252         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
30253         if some always_inline was inlined, apply changes before inlining
30254         heuristically.
30256 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
30258         PR jit/64810
30259         * config/arm/arm.c (arm_option_override): Set
30260         arm_selected_arch/cpu/tune to NULL on entry.
30262 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
30263             Andrew Pinski  <pinskia@gcc.gnu.org>
30264             Jakub Jelinek  <jakub@gcc.gnu.org>
30266         PR target/64231
30267         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
30268         integer typing for small model. Use IN_RANGE.
30270 2015-02-02  Richard Biener  <rguenther@suse.de>
30272         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
30273         * tree-vrp.c (vrp_valueize_1): Likewise.
30275 2015-02-02  Alan Modra  <amodra@gmail.com>
30277         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
30278         than mem for toc_restore.
30279         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
30280         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
30281         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
30283 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
30285         PR target/64047
30286         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
30287         explicit default options.
30289 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
30291         PR ipa/64872
30292         * ipa-utils.c (ipa_merge_profiles): Add release argument.
30293         * ipa-icf.c (sem_function::merge): Do not release body when merging.
30294         * ipa-utils.h (ipa_merge_profiles): Update prototype.
30296 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
30298         PR debug/64817
30299         * cfgexpand.c (deep_ter_debug_map): New variable.
30300         (avoid_deep_ter_for_debug): New function.
30301         (expand_debug_expr): If TERed SSA_NAME is in
30302         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
30303         instead of trying to expand SSA_NAME's def stmt.
30304         (expand_debug_locations): When expanding debug bind
30305         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
30306         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
30307         value.
30308         (pass_expand::execute): Call avoid_deep_ter_for_debug on
30309         all debug bind stmts.  Delete deep_ter_debug_map after
30310         expand_debug_location if non-NULL and clear it.
30312 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
30314         PR target/64851
30315         * config/sh/sync.md (atomic_fetch_notsi_hard,
30316         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
30317         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
30318         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
30319         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
30320         atomic_not_fetch<mode>_soft_imask): New insns.
30322 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30324         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
30325         (rank_for_schedule_debug): Split from ...
30326         (rank_for_schedule): ... this.
30327         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
30328         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
30330 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
30332         * doc/md.texi (Machine Constraints): Alphabetize table by target.
30333         * doc/extend.texi (x86 Variable Attributes): Move section to
30334         correct alphabetization after renaming.
30335         (x86 Type Attributes): Likewise.
30336         (Target Builtins): Re-alphabetize menu.
30337         (x86 Built-in Functions): Move section to correct alphabetization
30338         after renaming.
30339         (x86 transactional memory intrinsics): Likewise.
30340         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
30341         and x86 Windows Options in table and menu.
30342         (x86 Options): Move section to correct alphabetization after
30343         renaming.
30344         (x86 Windows Options): Likewise.
30346 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
30348         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
30349         preferred names of the architecture and its 32- and 64-bit
30350         variants.
30351         * doc/invoke.texi: Likewise.
30352         * doc/md.texi: Likewise.
30354 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
30356         PR target/64882
30357         * config/i386/predicates.md (address_no_seg_operand): Reject
30358         non-CONST_INT_P operands in invalid mode.
30360 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
30362         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
30363         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
30364         * config/i386/predicates.md (address_no_seg_operand): Call
30365         address_operand with VOIDmode.
30366         (vsib_address_operand): Ditto.
30367         (address_mpx_no_base_operand): Ditto.
30368         (address_mpx_no_index_operand): Ditto.
30370 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
30372         PR target/64688
30373         * lra-constraints.c (original_subreg_reg_mode): New.
30374         (simplify_operand_subreg): Try to simplify subreg of const.  Use
30375         original_subreg_reg_mode for it.
30376         (swap_operands): Update original_subreg_reg_mode.
30377         (curr_insn_transform): Set up original_subreg_reg_mode.
30379 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
30381         PR target/64617
30382         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
30383         function.
30384         (process_alt_operands): Use it.
30385         (curr_insn_transform): Check the optional reload pseudo class is
30386         ok for the mode.
30388 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
30390         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
30391         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
30392         prototype.
30393         * toplev.h (init_asm_output): Update comment on use of
30394         UNKNOWN_LOCATION with fatal_error.
30395         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
30396         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
30397         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
30398         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
30399         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
30400         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
30401         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
30402         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
30403         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
30404         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
30405         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
30406         fatal_error changed to pass input_location as first argument.
30408 2015-01-30  Martin Liska  <mliska@suse.cz>
30410         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
30411         in #pragma GCC diagnostic guards.
30413 2015-01-30  Richard Biener  <rguenther@suse.de>
30415         PR tree-optimization/64829
30416         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
30417         not add a widening conversion pattern but hand off extra
30418         widenings to callers.
30419         (vect_recog_widen_mult_pattern): Handle extra widening produced
30420         by vect_handle_widen_op_by_const.
30421         (vect_recog_widen_shift_pattern): Likewise.
30422         (vect_pattern_recog_1): Remove excess vertical space in dumping.
30423         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
30424         (vect_init_vector_1): Likewise.
30425         (vect_get_vec_def_for_operand): Likewise.
30426         (vect_finish_stmt_generation): Likewise.
30427         (vectorizable_load): Likewise.
30428         (vect_analyze_stmt): Likewise.
30429         (vect_is_simple_use): Likewise.
30431 2015-01-29  Jeff Law  <law@redhat.com>
30433         * combine.c (try_combine): Fix typo in comment.
30435 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
30437         PR target/64580
30438         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
30439         (rs6000_stack_info): Add assert.
30440         (rs6000_output_savres_externs): New function, split off from...
30441         (rs6000_output_function_prologue): ... here.  Do not call it for
30442         thunks.
30444 2015-01-29  Jeff Law  <law@redhat.com>
30446         PR target/15184
30447         * combine.c (try_combine): If I0 is a memory load and I3 a store
30448         to a related address, increase the "goodness" of doing a 4-insn
30449         combination with I0-I3.
30450         (make_field_assignment): Handle SUBREGs in the ior+and case.
30452 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
30454         PR tree-optimization/64746
30455         * tree-if-conv.c (mask_exists): New function.
30456         (predicate_mem_writes): Save created mask with given size for further
30457         use.
30458         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
30459         (ifcvt_repair_bool_pattern): Collect all statements that are root
30460         of bool pattern and use iterative algorithm to remove multiple uses
30461         of predicates, display number of required iterations.
30463 2015-01-29  Richard Biener  <rguenther@suse.de>
30465         PR tree-optimization/64853
30466         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
30467         stmt will get simulated again.
30468         * tree-ssa-ccp.c (valueize_op_1): Likewise.
30470 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30472         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
30473         return_in_pc.  Remove redundant assignments.
30474         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
30475         (arm_expand_epilogue): Don't compare boolean with true in if condition.
30477 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
30479         * config/i386/i386.c (ix86_mode_after): Make static.
30481 2015-01-29  Richard Biener  <rguenther@suse.de>
30483         PR tree-optimization/64844
30484         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
30485         dump cost model analysis.
30486         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30487         Do not register adjusted load/store costs here.
30489 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
30490             Uros Bizjak  <ubizjak@gmail.com>
30492         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
30493         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
30494         using x86_use_pseudo_pic_reg.
30495         * config/i386/i386.c (ix86_conditional_register_usage): Remove
30496         support for fixed PIC register.
30497         (ix86_use_pseudo_pic_reg): Not static any more.
30499 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
30501         PR middle-end/64805
30502         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
30503         to avoid error in cgraph node verification.
30505 2015-01-29  Marek Polacek  <polacek@redhat.com>
30507         * doc/standards.texi: Reflect that the default for C is gnu11.
30509 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
30511         PR target/64761
30512         * reorg.c (switch_text_sections_between_p): New function.
30513         (relax_delay_slots): Call it when testing if the jump insn
30514         is removable.  Use targetm.can_follow_jump when testing if
30515         the conditional branch can follow an unconditional jump.
30517 2015-01-27  Caroline Tice  <cmtice@google.com>
30519         Committing VTV Cywin/Ming patch for Patrick Wollgast
30520         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
30521         if -fvtable-verify=preinit/std is used.
30522         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
30523         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
30524         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
30525         if -fvtable-verify=preinit/std is used.
30526         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
30527         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
30528         if -fvtable-verify=preinit/std is used.
30529         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
30530         * config/i386/mingw32.h (LIB_SPEC): Likewise.
30531         * varasm.c (assemble_variable): Add code to properly set the comdat
30532         section and name for the .vtable_map_vars section in case the
30533         target is PE or COFF.
30535 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
30537         PR ipa/64801
30538         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
30539         make sane BB profile.
30540         (cgraph_node::expand_thunk): Make sane BB profile.
30541         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
30542         * cgraph.h (init_lowered_empty_function): Update prototype.
30543         * config/i386/i386.c (make_resolver_func): Update call.
30544         * predict.c (gate): Disable branch prediction pass if
30545         profile is already there.
30547 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
30549         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
30550         * opth-gen.awk: Likewise.
30551         * common.opt: Mark flag_fp_contract_mode as Optimization.
30553 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30555         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
30556         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
30558 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
30560         PR target/64659
30561         * config/sh/predicates.md (atomic_arith_operand,
30562         atomic_logical_operand): Remove.
30563         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
30564         (atomic_arith_operand_0): New predicate.
30565         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
30566         Use atomic_arith_operand_0 for input values.
30567         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
30568         atomic_compare_and_swap<mode>_soft_gusa,
30569         atomic_compare_and_swap<mode>_soft_tcb,
30570         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
30571         arith_reg_operand instead of register_operand.
30572         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
30573         atomic_arith_operand_0 for newval input.
30574         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
30575         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
30576         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
30577         arith_reg_operand instead of register_operand.
30578         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
30579         fetchop_predicate_1, fetchop_constraint_1_llcs,
30580         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
30581         fetchop_constraint_1_imask): New code iterator attributes.
30582         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
30583         register_operand.  Use fetchop_predicate_1.
30584         (atomic_fetch_<fetchop_name>si_hard,
30585         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
30586         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
30587         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
30588         and arith_reg_operand instead of register_operand.  Use
30589         fetchop_predicate_1, fetchop_constraint_1_gusa.
30590         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
30591         and arith_reg_operand instead of register_operand.  Use
30592         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
30593         to allow R0 usage.
30594         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
30595         and arith_reg_operand instead of register_operand.  Use
30596         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
30597         to allow R0 usage.
30598         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
30599         register_operand.  Use atomic_logical_operand_1.
30600         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
30601         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
30602         arith_reg_operand instead of register_operand.
30603         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
30604         Use arith_reg_dest and arith_reg_operand instead of register_operand.
30605         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
30606         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
30607         register_operand.  Use fetchop_predicate_1.
30608         (atomic_<fetchop_name>_fetchsi_hard,
30609         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
30610         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30611         fetchop_constraint_1_llcs.
30612         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
30613         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30614         fetchop_constraint_1_gusa.
30615         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
30616         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30617         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
30618         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
30619         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30620         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
30621         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
30622         register_operand.  Use atomic_logical_operand_1.
30623         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
30624         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
30625         arith_reg_operand instead of register_operand.
30626         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
30627         arith_reg_operand instead of register_operand.  Use logical_operand
30628         and K08.  Adjust asm sequence to allow R0 usage.
30629         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
30630         arith_reg_operand instead of register_operand.  Use logical_operand
30631         and K08.
30633 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
30635         PR other/63504
30636         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
30637         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
30638         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
30639         only get_full_len HOST_WIDE_INTs from get_val () array rather than
30640         all bits in *val_wide.
30642 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
30644         * varpool.c (tls_model_names): Fix names.
30645         (varpool_node::dump): Dump tls- prefix for tls models.
30647 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
30648             Bernd Schmidt  <bernds@codesourcery.com>
30649             Nathan Sidwell  <nathan@codesourcery.com>
30651         * config/nvptx/mkoffload.c: New file.
30652         * config/nvptx/t-nvptx: Add build rules for it.
30653         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
30654         (extra_programs): Add mkoffload.
30655         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
30656         function.
30657         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
30659 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
30661         PR middle-end/64809
30662         * cfgexpand.c (reorder_operands): Skip debug gimples.
30664 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
30666         PR tree-optimization/64277
30667         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
30668         range info when possible to refine estimation.
30670 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30672         PR tree-optimization/64718
30673         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
30674         be a 16bit unsigned integer when n->range is 16.
30675         (bswap_replace): Convert src to that type if necessary for all bswap
30676         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
30677         set in pass_optimize_bswap::execute ().
30679 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
30681         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
30682         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
30683         integer and floating point variants.
30684         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
30686 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
30688         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
30689         for all vector modes.
30691 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
30693         PR bootstrap/64612
30694         * doc/sourcebuild.texi (comdat_group): Document.
30696 2015-01-28  Terry Guo  <terry.guo@arm.com>
30698         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
30700 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
30702         * toplev.c (print_version): Add param "show_global_state", and
30703         only print GGC and plugin information if it is true.
30704         (init_asm_output): Pass in "true" for the new param when calling
30705         print_version.
30706         (process_options): Likewise.
30707         (toplev::main): Likewise.
30708         * toplev.h (print_version): Add new param to decl.
30710 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
30712         PR ipa/60871
30713         PR ipa/64139
30714         * tree.c (lookup_binfo_at_offset): New function.
30715         (get_binfo_at_offset): Use it.
30717 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
30719         PR ipa/64282
30720         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
30721         on vtable being vtable.
30723 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30725         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
30726         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
30727         -mhotpatch= option.
30728         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
30729         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
30730         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
30731         Renamed.
30732         (s390_hotpatch_trampoline_halfwords_max): Renamed.
30733         (s390_hotpatch_hw_max): New name.
30734         (s390_hotpatch_trampoline_halfwords): Renamed.
30735         (s390_hotpatch_hw_before_label): New name.
30736         (get_hotpatch_attribute): Removed.
30737         (s390_hotpatch_hw_after_label): New name.
30738         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
30739         attribute.
30740         (s390_attribute_table): Ditto.
30741         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
30742         (s390_function_num_hotpatch_hw): New name.
30743         Remove special handling of inline functions and hotpatching.
30744         Return number of nops before and after the function label.
30745         (s390_can_inline_p): Removed.
30746         (s390_asm_output_function_label): Emit a configurable number of nops
30747         after the function label.
30748         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
30749         (TARGET_CAN_INLINE_P) Removed.
30750         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
30752 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30753             Jiong Wang  <jiong.wang@arm.com>
30755         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
30756         of scratch reg.
30757         (cb<optab><mode>1): Likewise.
30758         * config/aarch64/iterators.md (bcond): New define_code_attr.
30760 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30762         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
30763         memory accesses.
30765 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30767         * config/s390/s390.c (s390_register_move_cost): Increase costs for
30768         FPR->GPR moves.
30770 2015-01-27  Richard Biener  <rguenther@suse.de>
30772         * tree-vrp.c (update_value_range): Intersect the range with
30773         old recorded SSA name range information.
30775 2015-01-27  Nick Clifton  <nickc@redhat.com>
30777         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
30778         BC, DE and HL registers directly, not via AX.
30779         When decrementing the stack pointer by a large amount, transfer SP
30780         into AX and perform the subtraction there.
30781         (rl78_expand_epilogue): Perform the inverse of the above
30782         enhancements.
30784 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30786         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
30788 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30789             Yury Gribov  <y.gribov@samsung.com>
30791         PR ubsan/64741
30792         * ubsan.c (ubsan_source_location): Refactor code.
30793         (ubsan_type_descriptor): Update type size. Refactor code.
30795 2015-01-27  Richard Biener  <rguenther@suse.de>
30797         PR tree-optimization/56273
30798         PR tree-optimization/59124
30799         PR tree-optimization/64277
30800         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
30801         from the first VRP pass.
30803 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30805         PR ipa/64776
30806         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
30807         handle the first argument in the same loop as all the other arguments.
30809         PR rtl-optimization/61058
30810         * jump.c (cleanup_barriers): Update basic block boundaries
30811         if BLOCK_FOR_INSN is non-NULL on PREV.
30813 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
30815         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
30816         bounds narrowing, already instrumented calls and calls to
30817         not instrumentable functions.
30819 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30821         PR tree-optimization/64807
30822         * wide-int.cc (wi::divmod_internal): Clear
30823         b_dividend[dividend_blocks_needed].
30825 2015-01-26  DJ Delorie  <dj@redhat.com>
30827         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
30828         volatile memory references.
30830 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
30832         PR target/49263
30833         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
30834         remove_insn.
30835         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
30836         shifts if it already fits into K08.
30838 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
30840         PR ipa/64730
30841         * ipa-inline.c (inline_small_functions): Print "unknown" even
30842         if edge->call_stmt is non-NULL, but has builtins or unknown
30843         location.
30845         PR middle-end/64421
30846         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
30847         with asterisk, skip the first character.
30849 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30851         PR target/64806
30852         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
30853         order change.
30855 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
30857         PR target/64795
30858         * config/i386/i386.md (*movdi_internal): Also check operand 0
30859         to determine TYPE_LEA operand.
30860         (*movsi_internal): Ditto.
30862 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
30864         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
30865         OPTION_MASK_QUAD_MEMORY_ATOMIC.
30867 2015-01-26  Renlin Li  <renlin.li@arm.com>
30869         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
30870         the comment.
30871         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
30872         for higher part.
30874 2015-01-26  Richard Biener  <rguenther@suse.de>
30876         PR middle-end/64764
30877         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
30878         combining two BIT_AND_EXPR predicates.
30880 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30882         PR bootstrap/64754
30883         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
30885 2015-01-26  Terry Guo  <terry.guo@arm.com>
30887         * config/arm/arm.c (arm_file_start): Update the assignment of
30888         Tag_ABI_HardFP_use.
30890 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
30892         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
30893         pipeline model.
30894         config/arm/arm.md: Include the new Cortex-A57 model.
30895         (generic_sched): Don't use generic_sched when tuning for
30896         Cortex-A57.
30898 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
30899             Uros Bizjak  <ubizjak@gmail.com>
30901         * config/i386/i386.c (get_builtin_code_for_version): Add
30902         support for BMI and BMI2 multiversion functions.
30904 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30906         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
30907         (extract_bit_field): Likewise.
30908         (extract_low_bits): Likewise.
30909         (expand_mult): Likewise.
30910         (expand_mult_highpart_adjust): Likewise.
30912 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30914         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
30915         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
30916         * config/i386/i386.c (processor_model): Add
30917         M_INTEL_COREI7_BROADWELL.
30918         (arch_names_table): Add "broadwell".
30920 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
30922         PR target/49263
30923         PR target/53987
30924         PR target/64345
30925         PR target/59533
30926         PR target/52933
30927         PR target/54236
30928         PR target/51244
30929         * config/sh/sh-protos.h
30930         (sh_extending_set_of_reg::can_use_as_unextended_reg,
30931         sh_extending_set_of_reg::use_as_unextended_reg,
30932         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
30933         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
30934         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
30935         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
30936         (sh_treg_insns): New class.
30937         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
30938         (scope_counter): New class.
30939         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
30940         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
30941         sh_extending_set_of_reg::can_use_as_unextended_reg,
30942         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
30943         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
30944         sh_split_treg_set_expr): New functions.
30945         (addsubcosts): Handle treg_set_expr.
30946         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
30947         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
30948         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
30949         (sh_insn_operands_modified_between_p): Make non-static.
30950         * config/sh/predicates.md (zero_extend_movu_operand): Allow
30951         simple_mem_operand in addition to displacement_mem_operand.
30952         (zero_extend_operand): Don't allow zero_extend_movu_operand.
30953         (treg_set_expr, treg_set_expr_not_const01,
30954         arith_reg_or_treg_set_expr): New predicates.
30955         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
30956         arith_or_int_operand instead of logical_operand.  Convert to
30957         insn_and_split.  Try to optimize constant operand in splitter.
30958         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
30959         (*tstqi_t_zero): Delete.
30960         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
30961         (tstsi_t_and_not): Delete.
30962         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
30963         Convert to insn_and_split.
30964         (unnamed split, tstsi_t_zero_extract_xor,
30965         tstsi_t_zero_extract_subreg_xor_little,
30966         tstsi_t_zero_extract_subreg_xor_big): Delete.
30967         (*tstsi_t_shift_mask): New insn_and_split.
30968         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
30969         to recombine with surrounding insns when splitting.
30970         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
30971         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
30972         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
30973         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
30974         (*cbranch_div0s: Delete.
30975         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
30976         Try to recombine with surrounding insns when splitting.  Add operand
30977         order variants.
30978         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
30979         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
30980         *addc_r_r_msb, *addc_2r_msb): Delete.
30981         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
30982         order variant.
30983         (*addc_negreg_t): New insn_and_split.
30984         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
30985         Try to recombine with surrounding insns when splitting.
30986         Add operand order variants.
30987         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
30988         insn_and_split patterns.
30989         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
30990         surrounding insns when splitting.
30991         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
30992         (*rotcl): Likewise.  Add zero_extract variant.
30993         (*ashrsi2_31): New insn_and_split.
30994         (*negc): Convert to insn_and_split.  Use treg_set_expr.
30995         (*zero_extend<mode>si2_disp_mem): Update comment.
30996         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
30997         condition.
30998         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
30999         with surrounding insns when splitting.
31000         (any_treg_expr_to_reg): New insn_and_split.
31001         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
31002         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
31003         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
31004         *zero_extract_2): New single bit zero extract patterns.
31005         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
31006         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
31007         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
31008         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
31009         set destination.
31010         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
31011         register_operand for set source.
31013 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
31015         * i386.opt (prefetch_sse): New targetsave.
31016         * i386.c (ix86_function_specific_save): Save prefetch_sse.
31017         (ix86_function_specific_restore): Restore prefetch_sse and initialize
31018         ix86_cost/ix86_tune_cost.
31020 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
31022         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
31023         Support the JIT by using 0 as the language type.
31025 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
31027         PR target/64317
31028         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
31029         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
31030         (mark_regno_live, process_bb_lives): Pass new parameter value to
31031         make_hard_regno_born.
31033 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
31035         PR rtl-optimization/63637
31036         PR rtl-optimization/60663
31037         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
31038         if elt->cost is MAX_COST for ASM_OPERANDS.
31039         (find_sets_in_insn): Fix up comment typo.
31040         (cse_insn): Don't set src_volatile for all non-volatile
31041         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
31042         or with "memory" clobber.  Set elt->cost to MAX_COST
31043         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
31044         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
31046 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
31048         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
31049         alternative 1.
31051 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
31053         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
31054         libgcc/config/i386/elf-lib.h.
31056 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
31058         PR driver/64737
31059         * gcc.c (print_configuration): Don't print a blank line at the end
31060         here...
31061         (run_attempt): ... but here unstead.
31063         PR middle-end/64734
31064         * omp-low.c (scan_sharing_clauses): Don't ignore
31065         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
31066         on target data/update constructs.
31068 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31070         PR target/50928
31071         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
31072         (DEBUG_RELOAD): Removed define.
31073         (m32c_limit_reload_class): Enable traces with if DEBUG0.
31074         (m32c_function_arg): Added a type cast.
31075         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
31076         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
31077         * config/m32c/bitops.md (andqi3_16): Likewise.
31078         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
31079         (push_a01_l): Likewise.
31081 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
31083         PR jit/64721
31084         * main.c (main): Construct toplev instances with init_signals=true.
31085         * toplev.c (general_init): Add param "init_signals", and use it to
31086         conditionalize the calls to signal and host_hooks.extra_signals.
31087         (toplev::toplev): Add param "init_signals".
31088         (toplev::main): When invoking general_init, pass m_init_signals
31089         to control whether signal-handlers are installed.
31090         * toplev.h (toplev::toplev): Add param "init_signals".
31091         (toplev::m_init_signals): New field.
31093 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
31095         PR jit/64722
31096         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
31097         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
31098         latter may be affected by the former (e.g. on i686).
31100 2015-01-23  Martin Liska  <mliska@suse.cz>
31102         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
31103         false positive during profiledbootstrap.
31105 2015-01-23  Tom de Vries  <tom@codesourcery.com>
31107         PR libgomp/64672
31108         * lto-opts.c (lto_write_options): Output non-explicit conservative
31109         -fno-openacc.
31110         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
31111         (append_compiler_options): Pass -fopenacc through.
31113 2015-01-23  Tom de Vries  <tom@codesourcery.com>
31115         PR libgomp/64707
31116         * lto-opts.c (lto_write_options): Output non-explicit conservative
31117         -fno-openmp.
31118         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
31119         (append_compiler_options): Pass -fopenmp through.
31121 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
31123         PR debug/64511
31124         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
31125         GTY markup.
31127         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
31128         * diagnostic.def (DK_ICE_NOBT): New kind.
31129         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
31130         like DK_ICE, but never print backtrace.
31131         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
31132         (internal_error_no_backtrace): New function.
31133         * gcc.c (execute): Use internal_error_no_backtrace instead of
31134         internal_error.
31136 2015-01-22  Jeff Law  <law@redhat.com>
31138         PR target/52076
31139         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
31140         improve code density for small immediate to memory case.
31141         (insv): Better handle bitfield assignments when the field is
31142         being set to all ones.
31143         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
31144         operand predicate.
31146 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31147             Jakub Jelinek  <jakub@redhat.com>
31149         PR middle-end/64729
31150         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
31151         for !TARGET_LIBC_PROVIDES_SSP version and
31152         -fstack-protector-{all,strong,explicit} otherwise.
31153         * config/freebsd.h (LINK_SSP_SPEC): Handle
31154         -fstack-protector-{strong,explicit}.
31156 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
31157             H.J. Lu  <hongjiu.lu@intel.com>
31159         PR ipa/64694
31160         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
31161         heap.
31163 2015-01-22  Wei Mi  <wmi@google.com>
31165         PR rtl-optimization/64557
31166         * dse.c (record_store): Call get_addr for mem_addr.
31167         (check_mem_read_rtx): Likewise.
31169 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
31171         * fold-const.c (const_binop): Add early return for non-tcc_binary.
31173 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
31175         * toplev.c (init_local_tick): Process the failure when read
31176         fails for random_seed.
31178         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
31179         'pretty_name' to avoid memory overflow.
31181 2015-01-22  Richard Biener  <rguenther@suse.de>
31183         PR middle-end/64728
31184         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
31185         abnormal coalescing on undefined SSA names.
31187 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
31189         PR target/64688
31190         PR target/64477
31191         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
31192         for alternative 3.
31193         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
31195 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
31197         PR middle-end/63325
31198         * fold-const.c (fold_checksum_tree): Don't include value of
31199         expr->decl_with_vis.symtab_node in the checksum.
31201 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31203         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
31205 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
31207         PR driver/64690
31208         * gcc.c (insert_comments): New function.
31209         (try_generate_repro): Call it.
31210         (append_text): Removed.
31212 2015-01-22  Richard Biener  <rguenther@suse.de>
31214         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
31215         with IL incompatible options.  Properly honor user optimize
31216         attributes.
31218 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
31220         PR rtl-optimization/64682
31221         * combine.c (distribute_notes): When moving a death note for
31222         a register that is set in the new I2, make sure to put it
31223         before that new I2.
31225 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
31227         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
31228         not TARGET_DEFAULT.
31230 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
31232         PR debug/64511
31233         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
31234         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
31235         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
31237         PR sanitizer/64706
31238         * doc/invoke.texi (-fsanitize=vptr): Document.
31240         PR rtl-optimization/62078
31241         * dse.c: Include cfgcleanup.h.
31242         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
31243         anything call purge_all_dead_edges and cleanup_cfg at the end
31244         of the pass.
31246 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
31248         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
31249         edges.
31251 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31253         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
31254         decl attribute.
31256 2015-01-21  David Sherwood  <david.sherwood@arm.com>
31257             Tejas Belagod <Tejas.Belagod@arm.com>
31259         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
31260         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
31261         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
31262         Removed.
31264 2015-01-21  David Sherwood  <david.sherwood@arm.com>
31265             Tejas Belagod <Tejas.Belagod@arm.com>
31267         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
31268         (aarch64_reverse_mask): New decls.
31269         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
31270         (insn_count): New mode_attr.
31271         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
31272         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
31273         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
31274         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
31275         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
31276         (aarch64_simd_st4): New patterns.
31277         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
31278         (aarch64_reverse_mask): New functions.
31280 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
31282         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
31283         Declare.
31284         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
31285         addressing modes for BE.
31286         (aarch64_print_operand): Add 'R' specifier.
31287         (aarch64_simd_disambiguate_copy): Delete.
31288         (aarch64_simd_emit_reg_reg_move): New function.
31289         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
31290         in define_splits for structural moves.
31291         (mov<mode>): Use less restrictive predicates.
31292         (*aarch64_mov<mode>): Simplify and only allow for LE.
31293         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
31295 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
31297         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
31299 2015-01-21  Richard Henderson  <rth@redhat.com>
31301         PR target/64669
31302         * ccmp.c (used_in_cond_stmt_p): Remove.
31303         (expand_ccmp_expr): Don't use it.
31305 2015-01-21  Nick Clifton  <nickc@redhat.com>
31307         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
31308         PARALLELs.
31310 2015-01-21  Richard Biener  <rguenther@suse.de>
31312         PR middle-end/64313
31313         * tree-core.h (builtin_info, builtin_info_type): Turn from
31314         an object with two arrays into an array of an object with
31315         decl and two flags, implicit_p and declared_p.
31316         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
31317         set_builtin_decl, set_builtin_decl_implicit_p,
31318         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
31319         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
31320         * builtins.c (builtin_info): Adjust.
31321         * gimplify.c (gimplify_addr_expr): References to builtins
31322         that have been declared by the user makes them eligible for
31323         use by the compiler.  Call set_builtin_decl_implicit_p on them.
31325 2015-01-20  Jeff Law  <law@redhat.com>
31327         PR target/59946
31328         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
31329         allow pc-relative addresses in operand predicates or constraints.
31331 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
31333         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
31334         neon on aarch32 processors for stringops.
31336 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31338         PR ipa/63576
31339         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
31341 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31343         PR lto/45375
31344         * ipa-inline.c: Include lto-streamer.h
31345         (report_inline_failed_reason): Output source file differences and
31346         flags on optimization/target node mismatch.
31347         (can_inline_edge_p): Consider caller to be the outer inline function;
31348         be less restrictive about matching opimize and optimize_size attributes.
31349         (inline_account_function_p): Break out from ...
31350         (inline_small_functions): ... here.
31351         * ipa-inline-transform.c (clone_inlined_nodes): Use
31352         inline_account_function_p.
31353         (inline_call): Use optimize attribution; use inline_account_function_p.
31354         (inline_transform): Use opt_for_fn.
31355         * ipa-inline.h (inline_account_function_p): Declare.
31357 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
31359         PR debug/64663
31360         * dwarf2out.c (decl_piece_node): Don't put bitsize into
31361         mode if bitsize <= 0.
31362         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
31363         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
31364         sizes and positions.
31366 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
31368         * config/nios2/nios2.c (nios2_asm_file_end): Implement
31369         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
31370         needed.
31371         (TARGET_ASM_FILE_END): Define.
31373 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31375         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
31376         (struct tune_params): Use the enum.
31377         * arm.c (arm_*_tune): Update.
31378         (arm_option_override): Update.
31380 2015-01-20  Richard Biener  <rguenther@suse.de>
31382         PR ipa/64684
31383         * ipa-reference.c (add_static_var): Inline ...
31384         (analyze_function): ... here after splitting out from ...
31385         (is_proper_for_analysis): ... this.
31387 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
31389         PR target/64149
31390         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
31391         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
31392         replace the conditional with it's true branch.
31393         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
31394         (arm_lra_p): Remove.
31396 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
31398         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
31400 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31402         * config/tilegx/mul-tables.c: Move symtab.h include after
31403         coretypes.h include.
31404         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
31405         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
31406         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
31407         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
31408         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31410 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
31412         PR bootstrap/64676
31413         Revert:
31414         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
31416         PR rtl-optimization/64081
31417         * loop-iv.c (def_pred_latch_p): New function.
31418         (latch_dominating_def): Allow specific cases with non-single
31419         definitions.
31420         (iv_get_reaching_def): Likewise.
31421         (check_complex_exit_p): New function.
31422         (check_simple_exit): Use check_complex_exit_p to allow certain cases
31423         with exits not executing on any iteration.
31425 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31427         PR lto/45375
31428         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
31429         to set branch cost.
31431 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31433         PR lto/45375
31434         * i386.c (gate): Check flag_expensive_optimizations and
31435         optimize_size.
31436         (ix86_option_override_internal): Drop optimize_size condition
31437         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
31438         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
31439         MASK_PREFER_AVX128.
31440         (ix86_avx256_split_vector_move_misalign,
31441         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
31442         * sse.md (all uses of TARGET_PREFER_AVX128): Add
31443         optimize_insn_for_speed_p check.
31445 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
31447         * config/mips/mips.h (FP_ASM_SPEC): New define.
31448         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
31449         instead.
31451 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
31453         PR target/53988
31454         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
31455         nullptr for insn when reaching the first insn.
31456         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
31457         (sh_insn_operands_modified_between_p): Add nullptr check.
31458         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
31459         sign extending mem load if the insn contains any UNSPEC or
31460         UNSPEC_VOLATILE.
31462 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31464         * params.def (inline-unit-growth): Drop to 15%.
31465         * invoke.texi (inline-unit-growth): Document change.
31467 2015-01-19  Martin Liska  <mliska@suse.cz>
31469         PR ipa/64668
31470         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
31471         function for second argument of OBJ_TYPE_REF.
31473 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31475         PR ipa/64218
31476         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
31477         whether function is an alias.
31479 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31481         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
31482         cases.
31484 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
31486         PR rtl-optimization/64671
31487         * lra-remat.c (operand_to_remat): Don't consider jump and call
31488         insns.
31490 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
31492         PR target/59828
31493         * config/rs6000/default64.h: Include rs6000-cpus.def.
31494         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
31495         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
31496         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
31497         and POWER8.
31498         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
31499         POWER8.
31500         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
31501         pseudo-op to specify assembler dialect.
31503 2015-01-19  Martin Liska  <mliska@suse.cz>
31505         PR ipa/64664
31506         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
31507         Handle safe potentially removed nodes during filtering.
31509 2015-01-19  Martin Liska  <mliska@suse.cz>
31511         * doc/extend.texi (no_icf): Add new attribute description.
31512         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
31513         where the pass attempts to merge a function with no_icf attribute.
31515 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31517         PR target/64532
31518         * doc/md.texi (ARM Options): Document register constraints.
31520 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
31521             Andrew Pinski  <apinski@cavium.com>
31523         PR target/64304
31524         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
31525         (ashl<mode>3): Don't expand if operands[2] is not constant.
31527 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31529         PR target/64448
31530         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
31531         Match xor-and-xor RTL pattern.
31533 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
31535         PR rtl-optimization/64081
31536         * loop-iv.c (def_pred_latch_p): New function.
31537         (latch_dominating_def): Allow specific cases with non-single
31538         definitions.
31539         (iv_get_reaching_def): Likewise.
31540         (check_complex_exit_p): New function.
31541         (check_simple_exit): Use check_complex_exit_p to allow certain cases
31542         with exits not executing on any iteration.
31544 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
31546         * common.opt (fgraphite): Fix a typo.
31548 2015-01-19  Felix Yang  <felix.yang@huawei.com>
31550         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
31551         pattern.
31552         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
31553         uminp, smax_nanp, smin_nanp): New builtins.
31554         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
31555         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
31556         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
31557         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
31558         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
31559         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
31560         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
31561         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
31562         vpminnms_f32): Rewrite using builtin functions.
31564 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
31566         PR libgomp/64625
31567         * omp-low.c (offload_symbol_decl): Remove variable.
31568         (get_offload_symbol_decl): Remove function.
31569         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
31570         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
31571         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
31572         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
31573         BUILT_IN_GOACC_UPDATE don't pass it at all.
31575 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31577         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
31578         callers.
31580 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31582         * ipa-chkp.c (chkp_produce_thunks): Add early param
31583         to split thunks production into two passes.  Keep
31584         'always_inline' function bodies after the first pass.
31585         (pass_data_ipa_chkp_early_produce_thunks): New.
31586         (pass_ipa_chkp_early_produce_thunks): New.
31587         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
31588         chkp_produce_thunks signature.
31589         (make_pass_ipa_chkp_early_produce_thunks): New.
31590         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
31591         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
31592         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
31594 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31596         * cgraph.c (cgraph_node::dump): Dump profile flags.
31598 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
31600         PR target/64652
31601         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
31602         reg appear first in the parallel.
31604 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31606         * ipa-reference.c (set_reference_optimization_summary,
31607         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
31608         disabled.
31609         (ignore_module_statics): New static var.
31610         (propagate_bits): If ipa-reference is disabled, do not look into local
31611         properties.
31612         (analyze_function): Disable analysis when ipa_reference is disabled.
31613         (generate_summary): Do not dump when reference is disabled;
31614         collect vars accessed from functions with ipa-reference disabled.
31615         (get_read_write_all_from_node): When ipa-reference is disabled, use the
31616         node flags.
31617         (gate): Enable for LTO.
31618         (ignore_edge_p): New function.
31619         (propagate): Skip functions w/o ipa-reference analysis.
31620         * optc-save-gen.awk: Handle optimize_debug correctly.
31621         * opth-gen.awk: Likewise.
31622         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
31623         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
31624         fira-share-save-slots, fira-share-spill-slots,
31625         fmodulo-sched-allow-regmoves, fpartial-inlining,
31626         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
31627         ftracer, ftree-parallelize-loops, fassociative-math,
31628         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
31629         Optimization
31630         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
31631         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
31632         Optimization.
31633         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
31634         Fix for IPA.
31636 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31638         PR ipa/64378
31639         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
31640         flag correctly.
31641         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
31643 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
31645         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
31646         Remove duplicate option listings.
31648 2015-01-18  Felix Yang  <felix.yang@huawei.com>
31650         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
31651         (autofdo_source_profile::get_callsite_total_count,
31652         function_instance::get_function_instance_by_decl,
31653         string_table::get_index, string_table::get_index_by_decl,
31654         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
31655         Fix comment typos. Reformatting and minor code rearrangement.
31657 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31659         * config/rs6000/rs6000.md (probe_stack): Delete.
31660         (probe_stack_address): New.
31662 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31664         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
31665         to test for 32-bit ABIs, not !TARGET_POWERPC64.
31667 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31669         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
31670         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
31671         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
31672         snafu.
31673         (rs6000_libcall_value): Use the new function.
31675 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
31677         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
31679 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
31681         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
31682         implement a more precise life analysis for it during backward scan.
31684 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
31686         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
31688 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
31690         PR rtl-optimization/52773
31691         * calls.c (emit_library_call_value): When pushing arguments use
31692         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
31693         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
31694         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
31696 2015-01-17  Jeff Law  <law@redhat.com>
31698         PR rtl-optimization/32790
31699         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
31700         not ZERO_EXTEND in SET_DESTs.
31702 2015-01-17  Alan Modra  <amodra@gmail.com>
31704         * cprop.c (do_local_cprop): Revert last change.
31706 2015-01-16  DJ Delorie  <dj@redhat.com>
31707             Nick Clifton  <nickc@redhat.com>
31709         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
31710         (addhi3_real): Likewise.  Fix [HL+0] syntax.
31711         (subqi3_real): Likewise.
31712         (subhi3_real): Likewise.
31713         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
31714         (cbranchhi4_real): Likewise.
31715         (cbranchhi4_real_inverted): Likewise.
31716         (cbranchsi4_real_lt): Likewise.
31717         (cbranchsi4_real_ge): Likewise.
31718         (cbranchsi4_real_ge): Likewise.
31719         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
31720         (sub<mode>3_virt): Likewise.
31721         (cbranchqi4_virt): Likewise.
31722         (cbranchhi4_virt): Likewise.
31723         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
31724         always use '[reg+imm]' even when imm is zero.
31725         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
31726         (rl78_general_operand): New.
31727         (rl78_nonimmediate_operand): New.
31728         (rl78_nonfar_operand): Use them.
31729         (rl78_nonfar_nonimm_operand): Likewise.
31730         (rl78_stack_based_mem): Fix.
31731         * config/rl78/constraints.md (Ibqi): New.
31732         (IBqi): New.
31733         (Wsa): New.
31734         (Wsf): New.
31735         (Cs1): Fix.
31736         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
31737         (iorqi3): Likewise.
31738         (xorqi3): Likewise.
31739         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
31741         * config/rl78/constrains (Qs8): New constraint.
31742         * config/rl78/rl78.c (rl78_flags_already_set): New function.
31743         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
31744         * config/rl78/rl78-real.md (update_Z): New attribute.
31745         Update patterns to set it.
31746         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
31747         shorter compare and branch sequence can be used.
31748         (cbranchhi4_real): Likewise.
31749         (cbranchhi4_real_inverted): Likewise.
31751         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
31752         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
31753         address space.
31754         * config/rl78/rl78.c (rl78_get_name_encoding): New.
31755         (rl78_option_override): Allow -mes0 only if C.
31756         (characterize_address): Support subregs of symbol_refs.
31757         (rl78_addr_space_address_mode): Move.  Add __near.
31758         (rl78_far_p): Likewise.
31759         (rl78_addr_space_pointer_mode): Likewise.
31760         (rl78_as_legitimate_address): Likewise.
31761         (rl78_addr_space_subset_p): Likewise.
31762         (rl78_addr_space_convert): Likewise.
31763         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
31764         symbols with -mes0.
31765         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
31766         addressing.
31767         (rl78_alloc_physical_registers_op1): Change logic to prefer
31768         symbol[BC] addressing.
31769         (frodata_section): New.
31770         (rl78_asm_init_sections): Initialize it.
31771         (rl78_select_section): Put __far readonly symbols in .frodata.
31772         (rl78_make_type_far): New.
31773         (rl78_insert_attributes): Force all readonly symbols to be
31774         __far when -mes0.
31775         (rl78_asm_out_integer): New.
31776         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
31777         * config/rl78/rl78.opt (-mes0): New.
31779         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
31780         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
31781         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
31782         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
31783         (rl78_saddr_p): New.
31784         (rl78_output_aligned_common): New.
31785         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
31786         (rl78_handle_saddr_attribute): New.
31787         (rl78_handle_naked_attribute): New.
31788         (rl78_attribute_table): Add saddr.
31789         (rl78_print_operand_1): Don't print '!' on saddr operands.
31790         (rl78_print_operand_1): Strip encodings.
31791         (rl78_sfr_p): New.
31792         (rl78_strip_name_encoding): New.
31793         (rl78_attrlist_to_encoding): New.
31794         (rl78_encode_section_info): New.
31795         (rl78_asm_init_sections): New.
31796         (rl78_select_section): New.
31797         (rl78_output_labelref): New.
31798         (rl78_output_aligned_common): New.
31799         (rl78_asm_out_integer): New.
31800         (rl78_asm_ctor_dtor): New.
31801         (rl78_asm_constructor): New.
31802         (rl78_asm_destructor): New.
31804         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
31805         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
31806         (transcode_memory_rtx): Update.
31807         (rl78_expand_epilogue): Use A_REG instead of 0.
31809 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31811         * config/arm/arm-protos.h (struct tune_params): New field
31812         sched_autopref_queue_depth.
31813         * config/arm/arm.c (sched-int.h): Include header.
31814         (arm_first_cycle_multipass_dfa_lookahead_guard,)
31815         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
31816         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
31817         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
31818         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
31819         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
31820         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
31821         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
31822         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
31823         * config/arm/t-arm (arm.o): Update.
31824         * haifa-sched.c (update_insn_after_change): Update.
31825         (rank_for_schedule): Use auto-prefetcher model, if requested.
31826         (autopref_multipass_init): New static function.
31827         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
31828         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
31829         variable for debug dumps.
31830         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
31831         (autopref_multipass_dfa_lookahead_guard): New global function that
31832         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
31833         (init_h_i_d): Update.
31834         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
31835         * sched-int.h (enum autopref_multipass_data_status): New const enum.
31836         (autopref_multipass_data_): Structure for auto-prefetcher data.
31837         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
31838         (struct _haifa_insn_data:autopref_multipass_data): New field.
31839         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
31840         (autopref_multipass_dfa_lookahead_guard): Declare.
31842 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31844         * rtlanal.c (get_base_term): Handle SCRATCH.
31846 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31848         * config/aarch64/aarch64.c
31849         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
31850         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31851         * config/arm/arm.c
31852         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
31853         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31855 2015-01-17  Alan Modra  <amodra@gmail.com>
31857         * cprop.c (do_local_cprop): Disallow replacement of fixed
31858         hard registers.
31860 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31862         PR target/62066
31863         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
31864         early return 0.
31866 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31868         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
31869         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
31871 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31873         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
31874         * config/arm/thumb1.md: ... Here.
31876 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31878         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
31879         TImode for TARGET_32BIT.
31881 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31883         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
31884         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
31885         as ...
31886         (rs6000_abi_word_mode): New function.
31888 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31890         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
31891         instead of UNITS_PER_WORD to describe the size of stack slots.
31893 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31895         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
31896         as rs6000_promote_function_mode.  Move comment to there.
31897         (rs6000_promote_function_mode): New function.
31899 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31901         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
31902         -mpowerpc64 is active.
31904 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31906         PR middle-end/64353
31907         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
31908         virtuals on start.
31910 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
31912         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
31913         introduced in revision 219724.
31915 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31916             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31918         PR target/64263
31919         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
31920         destination is not a GP reg.
31921         (*movdi_aarch64): Likewise.
31923 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
31925         PR target/64623
31926         * config/rs6000/default64.h: Revert ISA change.
31928 2015-01-16  Richard Biener  <rguenther@suse.de>
31930         PR middle-end/64614
31931         * tree-ssa-uninit.c: Include tree-cfg.h.
31932         (MAX_SWITCH_CASES): New define.
31933         (convert_control_dep_chain_into_preds): Handle switch statements.
31934         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
31935         (normalize_one_pred_1): Do not split bit-manipulations.
31936         Record (x & CST).
31938 2015-01-16  Richard Biener  <rguenther@suse.de>
31940         PR tree-optimization/64568
31941         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
31942         complex load rewriting for TARGET_MEM_REFs.
31944 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
31946         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
31948 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
31950         PR target/64149
31951         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
31952         variable.
31953         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
31954         (aarch64_lra_p): Remove.
31956 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31958         PR target/64363
31959         * ipa-chkp.h (chkp_instrumentable_p): New.
31960         * ipa-chkp.c: Include tree-inline.h.
31961         (chkp_instrumentable_p): New.
31962         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
31963         Fix processing of not instrumentable functions.
31964         (chkp_versioning): Use chkp_instrumentable_p. Warn about
31965         not instrumentable functions.
31966         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
31967         chkp_instrumentable_p.
31968         * tree-inline.h (copy_forbidden): New.
31969         * tree-inline.c (copy_forbidden): Not static anymore.
31971 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31973         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
31974         ptr1, ptr2 unused.
31976 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
31978         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
31979         type OP_OUT to OP_INOUT.
31981 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
31983         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
31984         (high x) y) to y if x and y have the same base.
31986 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
31988         * config/arm/cortex-a57.md: New.
31989         * config/aarch64/aarch64.md: Include it.
31990         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
31991         * config/aarch64/aarch64-tune.md: Regenerate.
31993 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
31995         PR target/64015
31996         * ccmp.c (expand_ccmp_next): New function.
31997         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
31998         and compare insn sequence.
31999         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
32000         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
32001         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
32002         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
32003         (*ccmp_ior): Changed to ccmp_ior<mode>.
32004         (cmp<mode>): New pattern.
32005         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
32006         parameters.
32007         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
32009 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
32011         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
32012         _mm256_bsrli_epi128): New.
32013         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
32015 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
32017         * expmed.c (store_bit_field_using_insv): Improve warning message.
32018         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
32020 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
32022         PR rtl-optimization/64011
32023         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
32024         there is partial overflow.
32026 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
32028         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
32029         prototype.
32030         (nds32_expand_epilogue_v3pop): Likewise.
32031         * config/nds32/nds32.md (sibcall): Define this for sibling call
32032         optimization.
32033         (sibcall_register): Likewise.
32034         (sibcall_immediate): Likewise.
32035         (sibcall_value): Likewise.
32036         (sibcall_value_register): Likewise.
32037         (sibcall_value_immediate): Likewise.
32038         (sibcall_epilogue): Likewise.
32039         (epilogue): Pass false to indicate this is not a sibcall epilogue.
32040         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
32041         (nds32_expand_epilogue_v3pop): Likewise.
32043 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
32045         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
32046         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
32047         (return_internal): New.
32048         (return): Define this named pattern.
32049         (simple_return): Define this named pattern.
32050         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
32051         pattern instead of unspec_volatile_func_return.
32052         (nds32_expand_epilogue_v3pop): Likewise.
32053         (nds32_can_use_return_insn): New function.
32055 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
32057         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
32058         * config/nds32/nds32.md (pop25return): New.
32059         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
32060         pop25return pattern.
32062 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
32064         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
32065         -mforbid-fp-as-gp, and -mex9 options.
32067 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
32069         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
32070         remove -mgp-direct option.
32072 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
32074         * doc/invoke.texi (--param early-inlining-insns): Update default value.
32075         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
32077 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
32079         * ipa-inline.c (inline_small_functions): Work around hints
32080         cache issue.
32082 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
32084         PR target/59710
32085         * doc/invoke.texi (Option Summary): Document new Nios II
32086         -mgpopt= syntax.
32087         (Nios II Options): Likewise.
32088         * config/nios2/nios2.opt: Add -mgpopt= option support.
32089         Modify existing -mgpopt and -mno-gpopt options to be aliases.
32090         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
32091         * config/nios2/nios2.c (nios2_option_override): Adjust
32092         -mgpopt defaulting.
32093         (nios2_in_small_data_p): Return true for explicit small data
32094         sections even with -G0.
32095         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
32096         option choices.
32098 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
32100         PR ipa/64612
32101         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
32102         of comdat locals.
32103         (inline_call): Fix removal of aliases.
32105 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
32107         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
32108         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
32109         * opts.c (common_handle_option): Add -fsanitize=vptr.
32110         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
32111         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
32112         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
32113         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
32114         (ubsan_expand_vptr_ifn): New prototype.
32115         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
32116         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
32117         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
32118         expand_LOOP_VECTORIZED): Make argument nameless, remove
32119         ATTRIBUTE_UNUSED.
32120         (expand_UBSAN_VPTR): New function.
32121         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
32122         in fn spec.
32123         (UBSAN_VPTR): New internal function.
32124         * sanopt.c (tree_map_traits): Renamed to ...
32125         (sanopt_tree_map_traits): ... this.
32126         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
32127         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
32128         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
32129         (maybe_optimize_ubsan_vptr_ifn): New function.
32130         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
32131         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
32132         -fsanitize=vptr.
32133         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
32134         internal calls like pure functions for aliasing, even when they
32135         have other side-effects that prevent making them ECF_PURE.
32136         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
32137         (ubsan_expand_vptr_ifn): New function.
32139 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
32141         PR rtl-optimization/64110
32142         * stmt.c (parse_output_constraint): Process '^' and '$'.
32143         (parse_input_constraint): Ditto.
32144         * lra-constraints.c (process_alt_operands): Process the new
32145         constraints.
32146         * ira-costs.c (record_reg_classes): Process the new constraint
32147         '^'.
32148         * genoutput.c (indep_constraints): Add '^' and '$'.
32149         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
32150         * doc/md.texi: Add description of the new constraints.
32152 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
32153             Bernd Schmidt  <bernds@codesourcery.com>
32154             Cesar Philippidis  <cesar@codesourcery.com>
32155             James Norris  <jnorris@codesourcery.com>
32156             Tom de Vries  <tom@codesourcery.com>
32157             Ilmir Usmanov  <i.usmanov@samsung.com>
32158             Dmitry Bocharnikov  <dmitry.b@samsung.com>
32159             Evgeny Gavrin  <e.gavrin@samsung.com>
32160             Jakub Jelinek  <jakub@redhat.com>
32162         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
32163         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32164         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32165         New function types.
32166         * builtins.c: Include "gomp-constants.h".
32167         (expand_builtin_acc_on_device): New function.
32168         (expand_builtin, is_inexpensive_builtin): Handle
32169         BUILT_IN_ACC_ON_DEVICE.
32170         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
32171         New macros.
32172         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
32173         flag_openmp.
32174         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
32175         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
32176         i386/intelmic-offload.h.
32177         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
32178         to libgomp and its dependencies.
32179         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
32180         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
32181         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
32182         * config/ia64/hpux.h (LIB_SPEC): Likewise.
32183         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
32184         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
32185         * doc/generic.texi: Update for OpenACC changes.
32186         * doc/gimple.texi: Likewise.
32187         * doc/invoke.texi: Likewise.
32188         * doc/sourcebuild.texi: Likewise.
32189         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
32190         GF_OMP_FOR_KIND_OACC_LOOP.
32191         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
32192         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
32193         GF_OMP_TARGET_KIND_OACC_UPDATE,
32194         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32195         Dump more data.
32196         * gimple.c: Update comments for OpenACC changes.
32197         * gimple.def: Likewise.
32198         * gimple.h: Likewise.
32199         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
32200         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32201         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
32202         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32203         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
32204         appropriate place.
32205         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
32206         * gimplify.c: Include "gomp-constants.h".
32207         Update comments for OpenACC changes.
32208         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
32209         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
32210         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32211         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
32212         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32213         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32214         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
32215         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32216         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
32217         OMP_CLAUSE_SEQ.
32218         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
32219         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
32220         OMP_CLAUSE_SET_MAP_KIND.
32221         (gimplify_oacc_cache): New function.
32222         (gimplify_omp_for): Handle OACC_LOOP.
32223         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
32224         OACC_DATA.
32225         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
32226         OACC_EXIT_DATA, OACC_UPDATE.
32227         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
32228         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
32229         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
32230         (gimplify_body): Consider flag_openacc next to flag_openmp.
32231         * lto-streamer-out.c: Include "gomp-constants.h".
32232         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
32233         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
32234         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
32235         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
32236         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
32237         (BUILT_IN_ACC_ON_DEVICE): New builtins.
32238         * omp-low.c: Include "gomp-constants.h".
32239         Update comments for OpenACC changes.
32240         (struct omp_context): Add reduction_map, gwv_below, gwv_this
32241         members.
32242         (extract_omp_for_data, use_pointer_for_field, install_var_field)
32243         (new_omp_context, delete_omp_context, scan_sharing_clauses)
32244         (create_omp_child_function, scan_omp_for, scan_omp_target)
32245         (check_omp_nesting_restrictions, lower_reduction_clauses)
32246         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
32247         Update for OpenACC changes.
32248         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
32249         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
32250         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
32251         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32252         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
32253         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
32254         OMP_CLAUSE_MAP_*.
32255         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
32256         Handle GF_OMP_FOR_KIND_OACC_LOOP.
32257         (expand_omp_target, lower_omp_target): Handle
32258         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32259         GF_OMP_TARGET_KIND_OACC_UPDATE,
32260         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
32261         GF_OMP_TARGET_KIND_OACC_DATA.
32262         (pass_expand_omp::execute, execute_lower_omp)
32263         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
32264         flag_openmp.
32265         (offload_symbol_decl): New variable.
32266         (oacc_get_reduction_array_id, oacc_max_threads)
32267         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
32268         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
32269         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
32270         (oacc_gimple_assign, oacc_initialize_reduction_data)
32271         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
32272         functions.
32273         (is_targetreg_ctx): Remove function.
32274         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
32275         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
32276         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32277         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
32278         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
32279         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
32280         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
32281         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
32282         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
32283         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
32284         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
32285         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
32286         * tree-core.h: Update comments for OpenACC changes.
32287         (enum omp_clause_map_kind): Remove.
32288         (struct tree_omp_clause): Change type of map_kind member from enum
32289         omp_clause_map_kind to unsigned char.
32290         * tree-inline.c: Update comments for OpenACC changes.
32291         * tree-nested.c: Likewise.  Include "gomp-constants.h".
32292         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
32293         (convert_tramp_reference_stmt, convert_gimple_call): Update for
32294         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
32295         OMP_CLAUSE_SET_MAP_KIND.
32296         * tree-pretty-print.c: Include "gomp-constants.h".
32297         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
32298         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
32299         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
32300         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
32301         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32302         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
32303         instead of OMP_CLAUSE_MAP_*.
32304         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
32305         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
32306         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32307         * tree-streamer-in.c: Include "gomp-constants.h".
32308         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
32309         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
32310         * tree-streamer-out.c: Include "gomp-constants.h".
32311         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
32312         OMP_CLAUSE_MAP_*.
32313         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
32314         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
32315         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
32316         * tree.c (omp_clause_num_ops): Update accordingly.
32317         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
32318         Likewise.
32319         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
32320         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
32321         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
32322         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
32323         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
32324         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
32325         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
32326         (OMP_CLAUSE_SET_MAP_KIND): New macro.
32327         * varpool.c (varpool_node::get_create): Consider flag_openacc next
32328         to flag_openmp.
32329         * config/i386/intelmic-offload.h: New file.
32330         * config/nvptx/offload.h: Likewise.
32332 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32334         * explow.h: Remove duplicate contents.
32335         * dojump.h: Likewise.
32337 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
32339         * arm.c (arm_xgene_tune): Add default initializer for instruction
32340         fusion.
32342 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
32344         PR ipa/64068
32345         PR ipa/64559
32346         * ipa.c (symbol_table::remove_unreachable_nodes):
32347         Do not put abstract origins into boundary.
32349 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
32351         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
32352         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
32354 2015-01-15  Steve Ellcey  <sellcey@mips.com>
32356         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
32357         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
32358         builtins.def, and chkp-builtins.def.
32360 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
32362         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
32363         ISA 2.7 (POWER8).
32365 2015-01-15  Richard Biener  <rguenther@suse.de>
32367         PR tree-optimization/61743
32368         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
32369         information on PHIs for some simple cases.
32371 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
32373         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
32374         Include xgene1.md.
32375         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
32376         * config/arm/arm-cores.def (xgene1): New entry.
32377         * config/arm/arm-tables.opt: Regenerate.
32378         * config/arm/arm-tune.md: Regenerate.
32379         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
32381 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
32383         * tree-if-conv.c: Include hash-map.h.
32384         (aggressive_if_conv): New variable.
32385         (fold_build_cond_expr): Add simplification of non-zero condition.
32386         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
32387         destination block is not always executed.
32388         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
32389         than two predecessors if AGGRESSIVE_IF_CONV is true.
32390         (if_convertible_stmt_p): Fix commentary.
32391         (all_preds_critical_p): New function.
32392         (has_pred_critical_p): New function.
32393         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
32394         BB can have more than two predecessors and all incoming edges can be
32395         critical.
32396         (predicate_bbs): Skip predication for loop exit block, use build2_loc
32397         to compute predicate for true edge.
32398         (find_phi_replacement_condition): Delete this function.
32399         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
32400         Allow interchange PHI arguments if EXTENDED is false.
32401         Change check that block containing reduction statement candidate
32402         is predecessor of phi-block since phi may have more than two arguments.
32403         (phi_args_hash_traits): New helper structure.
32404         (struct phi_args_hash_traits): New type.
32405         (phi_args_hash_traits::hash): New function.
32406         (phi_args_hash_traits::equal_keys): New function.
32407         (gen_phi_arg_condition): New function.
32408         (predicate_scalar_phi): Add handling of phi nodes with more than two
32409         arguments, delete COND and TRUE_BB arguments, insert body of
32410         find_phi_replacement_condition to predicate ordinary phi nodes.
32411         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
32412         delete call of find_phi_replacement_condition and invoke
32413         predicate_scalar_phi with two arguments.
32414         (insert_gimplified_predicates): Add assert that non-predicated block
32415         don't have statements to insert.
32416         (ifcvt_split_critical_edges): New function.
32417         (ifcvt_split_def_stmt): Likewise.
32418         (ifcvt_walk_pattern_tree): Likewise.
32419         (stmt_is_root_of_bool_pattern): Likewise.
32420         (ifcvt_repair_bool_pattern): Likewise.
32421         (ifcvt_local_dce): Likewise.
32422         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
32423         is copy of inner or outer loop force_vectorize field, invoke
32424         ifcvt_split_critical_edges, ifcvt_local_dce and
32425         ifcvt_repair_bool_pattern for aggressive if-conversion.
32427 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
32429         * config/aarch64/aarch64.md: Include xgene1.md.
32430         * config/aarch64/xgene1.md: New file.
32432 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
32434         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
32435         xgene1 (APM XGene-1) core definition.
32436         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
32437         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
32438         * doc/invoke.texi: Document -mcpu=xgene1.
32440 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32442         * dojump.h: New header file.
32443         * explow.h: Likewise.
32444         * expr.h: Remove includes.
32445         Move expmed.c prototypes to expmed.h.
32446         Move dojump.c prototypes to dojump.h.
32447         Move alias.c prototypes to alias.h.
32448         Move explow.c prototypes to explow.h.
32449         Move calls.c prototypes to calls.h.
32450         Move emit-rtl.c prototypes to emit-rtl.h.
32451         Move varasm.c prototypes to varasm.h.
32452         Move stmt.c prototypes to stmt.h.
32453         (saved_pending_stack_adjust): Move to dojump.h.
32454         (adjust_address): Move to explow.h.
32455         (adjust_address_nv): Move to emit-rtl.h.
32456         (adjust_bitfield_address): Likewise.
32457         (adjust_bitfield_address_size): Likewise.
32458         (adjust_bitfield_address_nv): Likewise.
32459         (adjust_automodify_address_nv): Likewise.
32460         * explow.c (expr_size): Move to expr.c.
32461         (int_expr_size): Likewise.
32462         (tree_expr_size): Likewise.
32463         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32464         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32465         * genemit.c (main): Generate includes statistics.h, real.h,
32466         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
32467         stmt.h.
32468         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
32469         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
32470         explow.h, emit-rtl.h, stmt.h.
32471         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
32472         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
32473         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
32474         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
32475         emit-rtl.h, varasm.h, stmt.h.
32476         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
32477         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
32478         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
32479         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
32480         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
32481         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
32482         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
32483         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
32484         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
32485         tm.h tree.h varasm.h vec.h wide-int.h.
32486         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32487         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32488         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
32489         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
32490         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
32491         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
32492         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
32493         * loop-iv.c: Likewise.
32494         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
32495         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
32496         statistics.h stmt.h tree.h varasm.h wide-int.h.
32497         * lra-constraints.c: Likewise.
32498         * lra-eliminations.c: Likewise.
32499         * lra-lives.c: Likewise.
32500         * lra-remat.c: Likewise.
32501         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32502         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
32503         statistics.h stmt.h tree.h varasm.h wide-int.h.
32504         * hw-doloop.c: Likewise.
32505         * ira-color.c: Likewise.
32506         * ira-emit.c: Likewise.
32507         * loop-doloop.c: Likewise.
32508         * loop-invariant.c: Likewise.
32509         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32510         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
32511         statistics.h stmt.h tree.h varasm.h wide-int.h.
32512         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
32513         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
32514         statistics.h stmt.h tree.h varasm.h wide-int.h.
32515         * combine-stack-adj.c: Likewise.
32516         * cse.c: Likewise.
32517         * ddg.c: Likewise.
32518         * ifcvt.c: Likewise.
32519         * ira-costs.c: Likewise.
32520         * jump.c: Likewise.
32521         * lra-coalesce.c: Likewise.
32522         * lra-spills.c: Likewise.
32523         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32524         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
32525         stmt.h varasm.h wide-int.h.
32526         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32527         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32528         varasm.h.
32529         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
32530         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
32531         statistics.h stmt.h varasm.h wide-int.h.
32532         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
32533         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
32534         varasm.h wide-int.h.
32535         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
32536         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32537         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
32538         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
32539         statistics.h stmt.h.
32540         * config/tilepro/tilepro.c: Likewise.
32541         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
32542         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
32543         * config/pdp11/pdp11.c: Likewise.
32544         * config/xtensa/xtensa.c: Likewise.
32545         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
32546         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32547         varasm.h.
32548         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32549         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32550         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
32551         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32552         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32553         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
32554         * rtl-chkp.c: Likewise.
32555         * tree-chkp-opt.c: Likewise.
32556         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
32557         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32558         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
32559         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32560         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32561         statistics.h stmt.h.
32562         * tree-vect-data-refs.c: Likewise.
32563         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
32564         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32565         rtl.h statistics.h stmt.h varasm.h.
32566         * internal-fn.c: Likewise.
32567         * ipa-icf-gimple.c: Likewise.
32568         * lto-section-out.c: Likewise.
32569         * tree-data-ref.c: Likewise.
32570         * tree-nested.c: Likewise.
32571         * tree-outof-ssa.c: Likewise.
32572         * tree-predcom.c: Likewise.
32573         * tree-pretty-print.c: Likewise.
32574         * tree-scalar-evolution.c: Likewise.
32575         * tree-ssa-strlen.c: Likewise.
32576         * tree-vect-loop.c: Likewise.
32577         * tree-vect-patterns.c: Likewise.
32578         * tree-vect-slp.c: Likewise.
32579         * tree-vect-stmts.c: Likewise.
32580         * tsan.c: Likewise.
32581         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32582         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
32583         stmt.h.
32584         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
32585         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32586         statistics.h stmt.h varasm.h.
32587         * loop-unroll.c: Likewise.
32588         * ubsan.c: Likewise.
32589         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
32590         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
32591         stmt.h varasm.h.
32592         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32593         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
32594         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
32595         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32596         statistics.h stmt.h.
32597         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
32598         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32599         statistics.h stmt.h varasm.h.
32600         * gimple-match-head.c: Likewise.
32601         * lto-cgraph.c: Likewise.
32602         * lto-section-in.c: Likewise.
32603         * lto-streamer-in.c: Likewise.
32604         * lto-streamer-out.c: Likewise.
32605         * tree-affine.c: Likewise.
32606         * tree-cfg.c: Likewise.
32607         * tree-cfgcleanup.c: Likewise.
32608         * tree-if-conv.c: Likewise.
32609         * tree-into-ssa.c: Likewise.
32610         * tree-ssa-alias.c: Likewise.
32611         * tree-ssa-copyrename.c: Likewise.
32612         * tree-ssa-dse.c: Likewise.
32613         * tree-ssa-forwprop.c: Likewise.
32614         * tree-ssa-live.c: Likewise.
32615         * tree-ssa-math-opts.c: Likewise.
32616         * tree-ssa-pre.c: Likewise.
32617         * tree-ssa-sccvn.c: Likewise.
32618         * tree-tailcall.c: Likewise.
32619         * tree-vect-generic.c: Likewise.
32620         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32621         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
32622         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32623         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
32624         * varasm.c: Likewise.
32625         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32626         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
32627         varasm.h.
32628         * init-regs.c: Likewise.
32629         * ira.c: Likewise.
32630         * omp-low.c: Likewise.
32631         * stack-ptr-mod.c: Likewise.
32632         * tree-ssa-reassoc.c: Likewise.
32633         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32634         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
32635         varasm.h.
32636         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32637         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
32638         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32639         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
32640         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32641         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
32642         * tree-ssa-phiopt.c: Likewise.
32643         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32644         fixed-value.h hashtab.h real.h statistics.h stmt.h.
32645         * config/fr30/fr30.c: Likewise.
32646         * config/frv/frv.c: Likewise.
32647         * expr.c: Likewise.
32648         * final.c: Likewise.
32649         * optabs.c: Likewise.
32650         * passes.c: Likewise.
32651         * simplify-rtx.c: Likewise.
32652         * stmt.c: Likewise.
32653         * toplev.c: Likewise.
32654         * var-tracking.c: Likewise.
32655         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32656         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32657         * lower-subreg.c: Likewise.
32658         * postreload-gcse.c: Likewise.
32659         * ree.c: Likewise.
32660         * reginfo.c: Likewise.
32661         * store-motion.c: Likewise.
32662         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32663         fixed-value.h hashtab.h real.h stmt.h varasm.h.
32664         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32665         fixed-value.h hashtab.h statistics.h stmt.h.
32666         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32667         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32668         * except.c: Likewise.
32669         * explow.c: Likewise.
32670         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32671         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
32672         varasm.h.
32673         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32674         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
32675         * tree-ssa-structalias.c: Likewise.
32676         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32677         fixed-value.h insn-config.h real.h statistics.h.
32678         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32679         fixed-value.h insn-config.h real.h statistics.h stmt.h.
32680         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32681         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32682         * cfgbuild.c: Likewise.
32683         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32684         fixed-value.h real.h rtl.h statistics.h stmt.h.
32685         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32686         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32687         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32688         fixed-value.h real.h statistics.h stmt.h.
32689         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32690         fixed-value.h real.h statistics.h stmt.h varasm.h.
32691         * cprop.c: Likewise.
32692         * modulo-sched.c: Likewise.
32693         * postreload.c: Likewise.
32694         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32695         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
32696         statistics.h stmt.h varasm.h.
32697         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
32698         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32699         rtl.h statistics.h stmt.h varasm.h.
32700         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
32701         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
32702         varasm.h.
32703         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32704         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
32705         varasm.h.
32706         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
32707         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
32708         varasm.h.
32709         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
32710         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32711         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32712         function.h real.h statistics.h stmt.h varasm.h.
32713         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32714         insn-config.h real.h statistics.h stmt.h.
32715         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32716         statistics.h stmt.h.
32717         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
32718         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
32719         statistics.h stmt.h varasm.h.
32720         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
32721         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
32722         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32723         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
32724         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
32725         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32726         statistics.h stmt.h varasm.h.
32727         * ipa-polymorphic-call.c: Likewise.
32728         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
32729         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32730         statistics.h stmt.h.
32731         * config/c6x/c6x.c: Likewise.
32732         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
32733         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32734         statistics.h stmt.h varasm.h.
32735         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
32736         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
32737         stmt.h varasm.h.
32738         * ipa-split.c: Likewise.
32739         * tree-eh.c: Likewise.
32740         * tree-ssa-dce.c: Likewise.
32741         * tree-ssa-loop-niter.c: Likewise.
32742         * tree-vrp.c: Likewise.
32743         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
32744         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
32745         stmt.h.
32746         * config/nds32/nds32-fp-as-gp.c: Likewise.
32747         * config/nds32/nds32-intrinsic.c: Likewise.
32748         * config/nds32/nds32-isr.c: Likewise.
32749         * config/nds32/nds32-md-auxiliary.c: Likewise.
32750         * config/nds32/nds32-memory-manipulation.c: Likewise.
32751         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
32752         * config/nds32/nds32-predicates.c: Likewise.
32753         * config/nds32/nds32.c: Likewise.
32754         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
32755         fixed-value.h hashtab.h real.h statistics.h.
32756         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
32757         fixed-value.h hashtab.h real.h statistics.h stmt.h.
32758         * config/arm/arm.c: Likewise.
32759         * config/avr/avr.c: Likewise.
32760         * config/bfin/bfin.c: Likewise.
32761         * config/h8300/h8300.c: Likewise.
32762         * config/i386/i386.c: Likewise.
32763         * config/ia64/ia64.c: Likewise.
32764         * config/iq2000/iq2000.c: Likewise.
32765         * config/m32c/m32c.c: Likewise.
32766         * config/m32r/m32r.c: Likewise.
32767         * config/m68k/m68k.c: Likewise.
32768         * config/mcore/mcore.c: Likewise.
32769         * config/mep/mep.c: Likewise.
32770         * config/mips/mips.c: Likewise.
32771         * config/mn10300/mn10300.c: Likewise.
32772         * config/moxie/moxie.c: Likewise.
32773         * config/pa/pa.c: Likewise.
32774         * config/rl78/rl78.c: Likewise.
32775         * config/rx/rx.c: Likewise.
32776         * config/s390/s390.c: Likewise.
32777         * config/sh/sh.c: Likewise.
32778         * config/sparc/sparc.c: Likewise.
32779         * config/spu/spu.c: Likewise.
32780         * config/stormy16/stormy16.c: Likewise.
32781         * config/v850/v850.c: Likewise.
32782         * config/vax/vax.c: Likewise.
32783         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
32784         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32785         * config/msp430/msp430.c: Likewise.
32786         * predict.c: Likewise.
32787         * value-prof.c: Likewise.
32788         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
32789         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
32790         * config/microblaze/microblaze.c: Likewise.
32791         * config/nios2/nios2.c: Likewise.
32792         * config/rs6000/rs6000.c: Likewise.
32793         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32794         insn-config.h real.h rtl.h statistics.h stmt.h.
32795         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32796         insn-config.h real.h statistics.h stmt.h.
32797         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
32798         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32799         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
32800         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32801         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
32802         fixed-value.h real.h statistics.h stmt.h.
32803         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
32804         fixed-value.h statistics.h stmt.h.
32805         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
32806         stmt.h.
32808 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
32810         * gengtype.c (create_user_defined_type): Workaround
32811         -Wmaybe-uninitialized false positives.
32812         * cse.c (fold_rtx): Likewise.
32813         * loop-invariant.c (gain_for_invariant): Likewise.
32815 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
32817         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
32818         set the memory attributes in all cases but clear MEM_EXPR if need be.
32820 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
32822         PR tree-optimization/64434
32823         * cfgexpand.c (reorder_operands): New function.
32824         (expand_gimple_basic_block): Insert call of reorder_operands if
32825         optimized is true.
32827 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
32829         * config/mips/micromips.md (*swp): Remove explicit parallel.
32830         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
32831         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
32832         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
32833         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
32834         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
32835         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
32836         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
32837         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
32838         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
32839         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
32840         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
32841         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
32842         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
32843         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
32844         (mips_wrdsp): Likewise.
32845         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
32846         parallel.
32847         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
32848         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
32849         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
32850         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
32851         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
32852         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
32853         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
32854         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
32855         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
32857 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32859         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
32860         (mips_print_operand): Support 'y' to print exact log2 in decimal
32861         of a const_int.
32862         * config/mips/mips.h (ISA_HAS_LSA): New define.
32863         (ISA_HAS_DLSA): Likewise.
32864         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
32865         * config/mips/predicates.md (const_immlsa_operand): New predicate.
32867 2015-01-15  Martin Liska  <mliska@suse.cz>
32869         PR target/64377
32870         * optc-save-gen.awk: Add support for array types.
32872 2015-01-15  Richard Biener  <rguenther@suse.de>
32874         PR middle-end/64365
32875         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
32876         for MEM_REF access functions with the same base can never partially
32877         overlap.
32879 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
32881         * common.opt: New option -fstack-protector-explicit.
32882         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
32883         (stack_protect_decl_phase): Handle stack_protect attribute for
32884         explicit stack protection requests.
32885         (expand_used_vars): Similarly.
32886         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
32887         * doc/extend.texi: Add documentation for "stack_protect" attribute.
32888         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
32890 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
32892         PR target/53988
32893         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
32894         reg-reg copies.
32895         (sh_extending_set_of_reg): New struct.
32896         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
32897         sh_remove_reg_dead_or_unused_notes): New Declarations.
32898         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
32899         sh_find_extending_set_of_reg, sh_split_tst_subregs,
32900         sh_extending_set_of_reg::use_as_extended_reg): New functions.
32901         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
32902         convert to insn_and_split and use new function sh_split_tst_subregs.
32904 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
32906         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
32907         option.
32908         (Optimization Options): Move -fuse-ld documentation to...
32909         (Link Options): ...here.
32911 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32913         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
32914         offsets.
32915         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
32916         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
32917         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
32918         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
32919         instead of ZR for the memory operand of LL/SC.
32920         (compare_and_swap_12, sync_add<mode>): Likewise.
32921         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
32922         (sync_new_<optab>_12, sync_nand_12): Likewise.
32923         (sync_old_nand_12, sync_new_nand_12): Likewise.
32924         (sync_sub<mode>, sync_old_add<mode>): Likewise.
32925         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
32926         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
32927         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
32928         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
32929         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
32930         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
32931         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
32932         * doc/md.texi (ZC): Update description.
32934 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
32936         * builtins.c (expand_builtin_atomic_exchange): Remove error when
32937         memory model is CONSUME.
32938         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
32939         expand_builtin_atomic_store): Change invalid memory model errors to
32940         warnings.
32941         (expand_builtin_atomic_clear): Change invalid model errors to warnings
32942         and issue warning for CONSUME.
32944 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
32946         * lto-cgraph: Update function comments for
32947         lto_symtab_encoder_encode_*.
32949 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
32951         * Makefile.in (site.exp): Do not set ENABLE_LTO.
32953 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
32955         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
32956         * lto-cgraph.c (select_what_to_stream): Remove argument, use
32957         lto_stream_offload_p instead.
32958         * lto-streamer.h (select_what_to_stream): Remove argument.
32959         * passes.c (ipa_write_summaries): Likewise.
32960         * tree-pass.h (ipa_write_summaries): Likewise.
32962 2015-01-14  Richard Biener  <rguenther@suse.de>
32964         PR tree-optimization/59354
32965         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
32966         groups larger than the slp group size as having gaps.
32968 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
32970         PR middle-end/59448
32971         * builtins.c (get_memmodel): Promote consume to acquire always.
32973 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32975         PR target/64386
32976         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
32977         V32HImode.
32979 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32981         PR target/64393
32982         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
32983         Enable AVX512BW.
32984         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
32985         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
32986         AVX512VBMI, as it implies AVX512BW.
32988 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32990         PR target/64387
32991         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
32992         (vec_unpacks_hi_v16sf): Ditto.
32994 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32996         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
32997         is not available.
32999 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33001         * doc/invoke.texi (mapcs): Mention deprecation.
33002         (mapcs-frame): Likewise.
33004 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33006         PR target/64453
33007         * config/arm/arm.c (callee_saved_reg_p): Define.
33008         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
33009         register is callee saved instead of !call_used_regs[reg].
33010         (thumb1_compute_save_reg_mask): Likewise.
33012 2015-01-14  Hale Wang  <hale.wang@arm.com>
33014         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
33015         Cortex-M7.
33017 2015-01-14  Richard Biener  <rguenther@suse.de>
33019         PR lto/64415
33020         * tree-inline.c (insert_debug_decl_map): Check destination
33021         function MAY_HAVE_DEBUG_STMTS.
33022         (insert_init_debug_bind): Likewise.
33023         (insert_init_stmt): Remove redundant check.
33024         (remap_gimple_stmt): Drop debug stmts if the destination
33025         function has var-tracking assignments disabled.
33027 2015-01-14  Martin Liska  <mliska@suse.cz>
33029         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
33030         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
33032 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33034         PR target/64460
33035         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
33036         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
33038 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
33040         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
33041         level from an ARCH; do not inject the default.
33042         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
33043         MIPS_ISA_LEVEL_SPEC.
33044         (MIPS_ISA_NAN2008_SPEC): Update comment.
33045         (BASE_DRIVER_SELF_SPECS): Likewise.
33046         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
33047         MIPS_DEFAULT_ISA_LEVEL_SPEC.
33048         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
33049         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
33050         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
33052 2015-01-14  Richard Biener  <rguenther@suse.de>
33054         PR tree-optimization/64493
33055         PR tree-optimization/64495
33056         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
33057         assign the proper vectorized PHI to the inner loop exit PHIs.
33059 2015-01-14  Joey Ye  <joey.ye@arm.com>
33061         * config/arm/arm.c (arm_compute_save_reg_mask):
33062         Do not save lr in case of tail call.
33063         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
33065 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
33067         * tree-vrp.c (check_array_ref): Emit more warnings
33068         for warn_array_bounds >= 2.
33069         * common.opt: New option -Warray-bounds=.
33070         * doc/invoke.texi: Document -Warray-bounds=.
33072 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
33074         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
33075         (mforbid-fp-as-gp): Remove.
33076         (mex9): Remove.
33077         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
33078         (nds32_symbol_load_store_p): Remove.
33079         (nds32_fp_as_gp_check_available): Clean up implementation.
33080         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
33081         cases.
33082         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
33083         fp-as-gp and ex9 cases.
33085 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
33087         * tree-profile.c (init_ic_make_global_vars): Drop workaround
33088         for bintuils bug 14342.
33089         (init_ic_make_global_vars): Likewise.
33090         (gimple_init_edge_profiler): Likewise.
33091         (gimple_gen_ic_func_profiler): Likewise.
33093 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
33095         * ipa-inline.c (inline_small_functions): Swap the operands in
33096         enum.
33098 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
33100         PR ipa/64481
33101         * ipa-inline-analysis.c (node_growth_cache): Remove.
33102         (initialize_growth_caches): Do not initialize it.
33103         (free_growth_caches): Do not free it.
33104         (do_estimate_growth): Rename to ...
33105         (estimate_growth): ... this one; drop growth cache code.
33106         (growth_likely_positive): Always go the heuristics way.
33107         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
33108         (reset_edge_caches): Do not reset node growth.
33109         (heap_edge_removal_hook): Do not maintain cache.
33110         (inline_small_functions): Likewise; strenghten sanity check.
33111         (ipa_inline): Do not maintain caches.
33112         * ipa-inline.h (node_growth_cache): Remove.
33113         (do_estimate_growth): Remove to ...
33114         (estimate_growth): this one; remove inline version.
33115         (reset_node_growth_cache): Remove.
33117 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
33119         PR ipa/64565
33120         * ipa-inline.c (inline_small_functions): Update callee keys after
33121         resolving speculation
33122         (inline_small_functions): Always check monotonicity of the queue.
33124 2015-01-13  Marek Polacek  <polacek@redhat.com>
33126         PR middle-end/64391
33127         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
33129 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
33131         PR rtl-optimization/64286
33132         * ree.c (combine_reaching_defs): Move part of comment earlier,
33133         remove !SCALAR_INT_MODE_P check.
33134         (add_removable_extension): Don't add vector mode
33135         extensions if all uses of the source register aren't the same
33136         vector extensions.
33138 2015-01-13  Renlin Li  <renlin.li@arm.com>
33140         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
33141         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
33143 2015-01-13  Martin Liska  <mliska@suse.cz>
33145         * ipa-icf.c (sem_function::equals_private): Call new functions
33146         cl_target_option_print_diff and cl_optimization_print_diff.
33147         * optc-save-gen.awk (cl_target_option_print_diff): New function.
33148         (cl_optimization_print_diff): Likewise.
33149         * opth-gen.awk: Likewise.
33151 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
33153         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
33154         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
33155         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
33156         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
33157         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
33158         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
33160 2015-01-13  Andrew Pinski  <apinski@cavium.com>
33162         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
33163         instead of src mode.
33165 2015-01-13  Richard Biener  <rguenther@suse.de>
33167         PR lto/64373
33168         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
33169         DECL_CONTEXT.
33171 2015-01-13  Andrew Pinski  <apinski@cavium.com>
33173         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
33174         volatile mems.
33175         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
33177 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
33179         PR middle-end/63974
33180         * cfgexpand.c (expand_computed_goto): Don't call
33181         convert_memory_address here.
33183 2015-01-13  Richard Biener  <rguenther@suse.de>
33185         PR tree-optimization/64406
33186         * tree-loop-distibution.c (pass_loop_distribution::execute):
33187         Reset the SCEV hashtable if we distributed anything.
33189 2015-01-13  Richard Biener  <rguenther@suse.de>
33191         PR tree-optimization/64404
33192         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
33193         SLP types for CSEd loads.
33195 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33197         PR tree-optimization/64436
33198         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
33199         merge of two symbolic numbers for a bitwise OR to ...
33200         (perform_symbolic_merge): This. Also fix computation of the range and
33201         end of the symbolic number corresponding to the result of a bitwise OR.
33203 2015-01-13  Richard Biener  <rguenther@suse.de>
33205         PR tree-optimization/64568
33206         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
33207         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
33209 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33211         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
33212         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
33214 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33216         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
33217         target-specific symbol_ref flag.
33218         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
33219         resides in rodata section.
33220         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
33221         (nds32_encode_section_info): New function.
33223 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33225         * config/nds32/nds32.md (call): Use pseudo instruction bal which
33226         clobbers TA_REGNUM if large code model is specified.
33227         (call_register): Likewise.
33228         (call_immediate): Likewise.
33229         (call_value): Likewise.
33230         (call_value_register): Likewise.
33231         (call_value_immediate): Likewise.
33233 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33235         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
33236         (TARGET_CMODEL_MEDIUM): New macro.
33237         (TARGET_CMODEL_LARGE): New macro.
33238         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
33239         code model setting in assembly code.
33241 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33243         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33244         Remove MASK_GP_DIRECT flag.
33245         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
33246         one of the multilib default options.
33247         * config/nds32/nds32.opt (mgp-direct): Remove.
33248         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
33249         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
33251 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33253         * config/nds32/nds32.opt (mcmodel): Add new option.
33254         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
33255         to describe code model.
33257 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
33259         PR target/64479
33260         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
33262 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
33264         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
33265         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33266         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
33267         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
33268         __builtin_sh_set_fpscr.
33270 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
33272         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
33273         after a funtion name just to indicate it is a function.
33274         ([-fsanitize-undefined-trap-on-error]): Likewise.
33275         ([-fdbg-cnt=]): Likewise.
33276         ([-mmemcpy]): Likewise.
33277         ([-mflush-func]): Likewise.
33278         ([-msynci]): Likewise.
33280 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
33282         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
33283         example.
33285 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
33287         PR tree-optimization/64563
33288         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
33289         instead of != VR_VARYING.
33291         PR target/64513
33292         * config/i386/i386.c (ix86_expand_prologue): Add
33293         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
33295         PR tree-optimization/64454
33296         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
33297         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
33298         for signed or [0, op1 - 1] for unsigned modulo.
33299         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
33300         even if op1 does not satisfy integer_pow2p.
33302         PR other/64370
33303         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
33305 2015-01-12  Jeff Law  <law@redhat.com>
33307         PR target/64461
33308         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
33309         (trunchiqi2, truncsihi2): Similarly.
33311         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
33312         rather than calling F.
33314 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33316         * tsan.c (instrument_expr): Use force_gimple_operand.
33317         Use may_be_nonaddressable_p instead of is_gimple_addressable.
33319 2015-01-12  Richard Biener  <rguenther@suse.de>
33321         PR tree-optimization/64530
33322         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
33323         back dr1.
33325 2015-01-12  Richard Biener  <rguenther@suse.de>
33327         PR middle-end/64357
33328         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
33329         latches properly.
33331 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33333         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
33334         Cortex-A17 tuning parameters.
33335         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
33337 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33339         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
33340         * config/arm/arm.c (arm_macro_fusion_p): New function.
33341         (arm_macro_fusion_pair_p): Likewise.
33342         (TARGET_SCHED_MACRO_FUSION_P): Define.
33343         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
33344         (ARM_FUSE_NOTHING): Likewise.
33345         (ARM_FUSE_MOVW_MOVT): Likewise.
33346         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
33347         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
33348         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
33349         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
33350         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
33351         arm_cortex_a5_tune): Specify fuseable_ops value.
33353 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
33355         PR bootstrap/64561
33356         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
33357         test for PIE with copy reloc.
33358         * configure: Regenerated.
33360 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33362         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
33363         in gen_rtx_REG.
33364         (arm_tls_descseq_addr): Likewise.
33365         (arm_gen_movmemqi): Likewise.
33366         (arm_expand_epilogue_apcs_frame): Likewise.
33367         (arm_expand_epilogue): Likewise.
33368         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
33369         in gen_rtx_REG.
33371 2015-01-12  Martin Liska  <mliska@suse.cz>
33373         PR ipa/64550
33374         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
33375         volatility for correct operands.
33377 2015-01-12  Martin Liska  <mliska@suse.cz>
33379         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
33380         indication that a function is not leaf.
33381         (sem_function::compare_polymorphic_p): Likewise.
33383 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
33385         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
33386         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
33387         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
33388         fold-const.h, tree-check.h.
33390 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
33392         PR ipa/63967
33393         PR ipa/64425
33394         * ipa-inline.c (compute_uninlined_call_time,
33395         compute_inlined_call_time): Use counts for extra precision when
33396         needed possible.
33397         (big_speedup_p): Fix formating.
33398         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
33399         (relative_time_benefit): Remove.
33400         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
33401         merge guessed and read profile paths.
33402         (inline_small_functions): Count only !optimize_size functions into
33403         initial size; be more lax about sanity check when profile is used;
33404         be sure to update inlined function profile when profile is read.
33406 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
33408         PR ipa/63470
33409         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
33410         cost when edge becomes direct.
33411         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
33412         is resolved or when introducing new speculation.
33414 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
33416         PR ipa/64551
33417         PR ipa/64552
33418         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
33419         '||' to fix typo issue.
33421         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
33422         accept and return NULL.
33424 2015-01-12  Martin Liska  <mliska@suse.cz>
33426         * cgraph.c (cgraph_edge::remove_callee): Move function to header
33427         file for being inlined.
33428         (cgraph_set_edge_callee): Delete.
33429         (cgraph_edge::redirect_callee): Move function to header file
33430         for being inlined.
33431         (cgraph_edge::make_direct): Use new function.
33432         (cgraph_edge::dump_edge_flags): New function created from
33433         static dump_edge_flags function.
33434         (cgraph_node::dump): Use new function.
33435         (cgraph_edge::verify_count_and_frequency): New function created
33436         from verify_edge_count_and_frequency.
33437         (cgraph_edge::verify_corresponds_to_fndecl): New function created
33438         from verify_edge_corresponds_to_fndecl.
33439         (verify_edge_corresponds_to_fndecl): Delete.
33440         (cgraph_node::verify_node): Use new function.
33441         * cgraph.h (cgraph_edge::set_callee): New function.
33442         (cgraph_edge::dump_edge_flags): Likewise.
33443         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
33445 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
33447         * ipa-utils.c (estimate_function_body_sizes): Do not
33448         free node params when called late with early=true.
33450 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
33452         * doc/md.texi (Instruction Patterns): Rewrite text for
33453         clarity.
33454         (Example): Likewise.
33456 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
33458         * doc/invoke.texi (Option Summary): Break long lines.
33459         [(-fdiagnostics-color)]: Put long literal in @smallexample
33460         instead of inline.
33461         [(-fsanitize-recover)]: Likewise.
33462         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
33463         [(-ffast-math)]: Likewise.
33464         [(--param max-inline-insns-recursive)]: Likewise.
33465         [(--param max-inline-recursive-depth)]: Likewise.
33466         [(-mno-text-section-literals)]: Likewise.
33468 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
33470         * doc/install.texi: Update for libgomp being renamed from "GNU
33471         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
33472         Runtime Library".
33473         * doc/sourcebuild.texi: Likewise.
33475 2015-01-10  Anthony Green  <green@moxielogic.com>
33477         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
33478         mul.x availability for moxiebox configuration.
33480 2015-01-09  Anthony Green  <green@moxielogic.com>
33482         * config/moxie/moxie.md: Tabify assembly output.
33484 2015-01-09  Anthony Green  <green@moxielogic.com>
33486         * config/moxie/moxie.md (CC_REG): Correct register definition.
33488 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
33490         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
33491         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
33492         of log files.
33494 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33496         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
33498 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
33499             Jakub Jelinek  <jakub@redhat.com>
33501         PR middle-end/64412
33502         * lto-streamer.h (lto_stream_offload_p): New declaration.
33503         * lto-streamer.c (lto_stream_offload_p): New variable.
33504         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
33505         at the same time as section_name_prefix.
33506         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
33507         if lto_stream_offload_p.
33508         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
33509         stream TREE_TARGET_OPTION if lto_stream_offload_p.
33510         (write_ts_function_decl_tree_pointers): Don't
33511         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
33512         * tree-streamer-in.c (unpack_value_fields): Don't stream
33513         TREE_TARGET_OPTION in if ACCEL_COMPILER.
33514         (lto_input_ts_function_decl_tree_pointers): Don't stream
33515         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
33516         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
33517         instead of section_name_prefix string comparisons.
33519 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
33521         PR rtl-optimization/64536
33522         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
33523         tablejumps.
33525 2015-01-09  Michael Collison  <michael.collison@linaro.org>
33527         PR tree-optimization/64322
33528         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
33529         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
33531 2015-01-09  Tom de Vries  <tom@codesourcery.com>
33533         PR rtl-optimization/64539
33534         * regcprop.c (kill_clobbered_values): Factor out of ...
33535         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
33536         instead of note_stores with kill_clobbered_value.
33538 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33540          * ginclude/unwind-arm-common.h: Revert previous commit.
33542 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33544         * config.gcc (arm*-*-freebsd*): New configuration.
33545         * config/arm/freebsd.h: New file.
33546         * config.host: Add extra components for arm*-*-freebsd*.
33547         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
33548         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
33550 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33552         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
33553         for -mcpu=e6500.
33554         * config/rs6000/t-rtems: Add e6500 multilibs.
33556 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33558         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
33559         MPC8540.
33561 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33563         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
33564         MULTILIB_EXCEPTIONS.
33566 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33568         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
33569         MULTILIB_EXCEPTIONS.
33571 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33573         * config/arm/t-rtems-eabi: Rename to...
33574         * config/arm/t-rtems: ...this.
33575         * config/arm/rtems-eabi.h: Rename to...
33576         * config/arm/rtems.h: ...this.
33577         * config.gcc (arm*-*-rtems*): Reflect changes above.
33579 2015-01-09  Richard Biener  <rguenther@suse.de>
33581         PR tree-optimization/64410
33582         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
33583         on the LHS.
33584         (execute_update_addresses_taken): Deal with that.
33585         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
33586         loads/stores for complex variables.
33588 2015-01-09  Martin Liska  <mliska@suse.cz>
33590         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
33591         name comparison.
33592         (func_checker::compare_memory_operand): New function.
33593         (func_checker::compare_operand): Split case to newly
33594         added functions.
33595         (func_checker::compare_cst_or_decl): New function.
33596         (func_checker::compare_gimple_call): Identify
33597         memory operands.
33598         (func_checker::compare_gimple_assign): Likewise.
33599         * ipa-icf-gimple.h: New function.
33601 2015-01-09  Martin Liska  <mliska@suse.cz>
33603         PR ipa/64503
33604         * sreal.c (sreal::dump): Change unsigned format to signed for
33605         m_exp value.
33606         (sreal::to_double): Replace exp2 with scalbln.
33608 2015-01-09  Martin Liska  <mliska@suse.cz>
33610         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
33611         * ipa-icf.c (sem_function::equals_private): Add support for target and
33612         (sem_item_optimizer::merge_classes): Remove redundant function
33613         optimization flags comparison.
33614         * tree.h (target_opts_for_fn): New function.
33616 2015-01-09  Tom de Vries  <tom@codesourcery.com>
33618         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
33620 2015-01-09  Kito Cheng  <kito@0xlab.org>
33622         PR rtl-optimization/64348
33623         * lra-constraints.c (split_reg): Fix caller-save store/restore
33624         instruction generation.
33626 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
33628         PR gcov-profile/61790
33629         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
33630         long long.  Fallback to int64_t if host doesn't have long long and
33631         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
33633 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33635         PR tree-optimization/63989
33636         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
33637         from 1000 to 10000.
33638         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
33639         (get_stridx): If we don't have a record for certain SSA_NAME,
33640         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
33641         constant offset, call get_stridx_plus_constant.
33642         (get_stridx_plus_constant): New function.
33643         (zero_length_string): Don't use get_stridx here.
33645         PR target/55023
33646         PR middle-end/64388
33647         * dse.c (struct insn_info): Mention frame_read set also
33648         before reload for tail calls on some targets.
33649         (scan_insn): Revert 2014-12-22 change.  Set frame_read
33650         also before reload for tail calls if
33651         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
33652         instead of add_non_frame_wild_read for non-const/memset
33653         tail calls after reload.
33655 2015-01-08  Jason Merrill  <jason@redhat.com>
33657         * ubsan.c (do_ubsan_in_current_function): New.
33658         (pass_ubsan::gate): Use it.
33659         * ubsan.h: Declare it.
33660         * convert.c (convert_to_integer): Use it.
33662 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33664         PR target/64338
33665         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
33666         compare_code when it is unconditionally overwritten afterwards.
33667         Use ix86_reverse_condition instead of reverse_condition.  Don't
33668         change code if *reverse_condition* returned UNKNOWN and don't
33669         swap ct/cf and negate diff in that case.
33671 2015-01-08  Mike Stump  <mikestump@comcast.net>
33673         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
33674         (pass_tsan_O0::gate): Likewise.
33675         * extend.texi (Function Attributes): Add no_sanitize_thread
33676         documentation.
33678 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
33680         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
33681         for registering builtins.
33682         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
33683         add -fopenmp to the argv_obstack used when invoking
33684         compile_for_target.
33686         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
33687         add "-m32" or "-m64" to argv_obstack.
33688         (generate_host_descr_file): Likewise, when invoking host_compiler.
33689         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
33690         ld.
33692 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
33694         * config/sh/sh-mem.cc: Use constant as second operand when emitting
33695         tstsi_t insns.
33697 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
33699         PR target/55212
33700         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
33701         constant load if constant operand fits into I08.
33703 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33705         PR sanitizer/64336
33706         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
33707         and TREE_THIS_VOLATILE for MEM_REFs.
33708         (build5_stat): Fix up initialization of TREE_READONLY and
33709         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
33711 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
33713         PR target/64533
33714         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
33715         of r for the second alternative of the destination operand.
33717 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
33719         PR target/36557
33720         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
33722 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33724         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
33725         keywords.
33726         ([-fivar-visibility], [-fvisibility]): Likewise.
33728 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33730         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
33731         the file where @code, @command, etc is more appropriate.
33733 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
33735         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
33736         of -mrecip= documentation.
33738 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33740         PR target/64505
33741         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
33742         correct reload handler if -m32 -mpowerpc64 is used.
33744 2015-01-06  Tom de Vries  <tom@codesourcery.com>
33746         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
33748 2015-01-08  Christian Bruel  <christian.bruel@st.com>
33750         PR target/64507
33751         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
33753 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33755         PR tree-optimization/63259
33756         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
33757         if optab exists for 16bit byteswap.
33759 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
33761         * opts.c (common_handle_option): Add support for
33762         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
33763         * doc/invoke.texi: Document -fno-sanitize=all,
33764         -f{,no-}sanitize-recover=all.  Document that
33765         -fsanitize=float-cast-overflow is not enabled
33766         by -fsanitize=undefined.  Fix up documentation
33767         of -f{,no-}sanitize-recover.
33769 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
33771         * config.gcc: Add Visium support.
33772         * configure.ac: Likewise.
33773         * configure: Regenerate.
33774         * doc/extend.texi (interrupt attribute): Add Visium.
33775         * doc/invoke.texi: Document Visium options.
33776         * doc/install.texi: Document Visium target.
33777         * doc/md.texi: Document Visium constraints.
33778         * common/config/visium: New directory.
33779         * config/visium: Likewise.
33781 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
33783         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
33784         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
33786 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
33788         * combine.c (combine_validate_cost): Do not count the cost of a
33789         split I2 twice.  Do not display it twice in the dump, either.
33791 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33793         Revert parts of r219199.
33794         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
33795         <inttypes.h>.
33796         ([-Wtraditional]): Restore markup on <limits.h>.
33798 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
33800         PR c++/31397
33801         * doc/invoke.texi: Document -Wsuggest-override.
33803 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
33805         PR rtl-optimization/64287
33806         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
33807         (process_options): Disable flag_ipa_ra if profiling.
33809 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
33811         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
33813 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
33815         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
33816         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
33817         put under #if TARGET_LOOPS guard.
33819 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
33821         * config/i386/i386.c (output_387_binary_op): Use std::swap.
33823 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
33825         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
33826         * rtl.h (refers_to_regno_p): Add overload.
33827         * cse.c: Use it.
33828         * bt-load.c: Likewise.
33829         * combine.c: Likewise.
33830         * df-scan.c: Likewise.
33831         * sched-deps.c: Likewise.
33832         * config/s390/s390.c: Likewise.
33833         * config/m32r/m32r.c: Likewise.
33834         * config/rs6000/spe.md: Likewise.
33835         * config/rs6000/rs6000.c: Likewise.
33836         * config/pa/pa.c: Likewise.
33837         * config/stormy16/stormy16.c: Likewise.
33838         * config/cris/cris.c: Likewise.
33839         * config/arc/arc.md: Likewise.
33840         * config/arc/arc.c: Likewise.
33841         * config/sh/sh.md: Likewise.
33842         * config/sh/sh.c: Likewise.
33843         * config/frv/frv.c: Likewise.
33845 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33847         PR sanitizer/64265
33848         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
33849         call as cleanup of the whole body.
33850         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
33851         * tsan.c (replace_func_exit): New function.
33852         (instrument_func_exit): Moved earlier.
33853         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
33854         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
33855         been found.
33856         (tsan_pass): Don't call instrument_func_exit.
33857         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
33858         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
33859         inlining.
33861         PR sanitizer/64344
33862         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
33863         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
33864         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
33865         if the result is integer_zerop, return NULL_TREE.
33866         * convert.c (convert_to_integer): Pass expr as ARG.
33868         PR tree-optimization/64465
33869         * tree-inline.c (redirect_all_calls): During inlining
33870         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
33871         changed the stmt to a non-throwing call.
33873 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33875         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
33876         etc markup throughout the file.
33878 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33880         Enable experimental TSAN support for Ada.
33881         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
33883 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33885         PR tree-optimization/64494
33886         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
33887         clear SSA_NAME_ANTI_RANGE_P flag.
33889 2015-01-05  Marek Polacek  <polacek@redhat.com>
33891         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
33893 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33895         Update copyright years.
33897         * gcc.c (process_command): Update copyright notice dates.
33898         * gcov-dump.c: Ditto.
33899         * gcov.c: Ditto.
33900         * doc/cpp.texi: Bump @copying's copyright year.
33901         * doc/cppinternals.texi: Ditto.
33902         * doc/gcc.texi: Ditto.
33903         * doc/gccint.texi: Ditto.
33904         * doc/gcov.texi: Ditto.
33905         * doc/install.texi: Ditto.
33906         * doc/invoke.texi: Ditto.
33908         * auto-profile.c, auto-profile.h: Fix up Copyright line.
33910 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
33912         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
33913         verb tense, etc.
33914         ([-fvtable-verify], [-fvtv-debug]): Likewise.
33915         ([-Wabi]): Likewise.
33916         ([-fmessage-length]): Likewise.
33917         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
33918         ([-Wno-discarded-qualifiers]): Likewise.
33919         ([-Wnodiscarded-array-qualifiers]): Likewise.
33920         ([-Wno-virtual-move-assign]): Likewise.
33921         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
33922         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
33923         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
33924         ([-fsanitize-undefined-trap-on-error]): Likewise.
33925         ([-floop-interchange]): Likewise.
33926         ([-ftree-coalesce-inlined-vars]): Likewise.
33927         ([-fvect-cost-model]): Likewise.
33928         ([-flto]): Likewise.
33929         ([--param]): Likewise.
33930         (Spec Files): Likewise.
33931         ([-mstrict-align]): Likewise.
33932         ([-mfix-cortex-a53-835769]): Likewise.
33933         ([-march], [-mtune]): Likewise.
33934         ([-mpic-register]): Likewise.
33935         ([-munaligned-access]): Likewise.
33936         ([-msp8]): Likewise.
33937         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
33938         (AVR Built-in Macros): Likewise.
33939         ([-mpreferred-stack-boundary]): Likewise.
33940         ([-mtune-crtl]): Likewise.
33941         ([-mashf]): Likewise.
33942         ([-mmcu=]): Likewise.
33943         ([-minrt]): Likewise.
33944         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
33945         ([-mupper-regs]): Likewise.
33946         ([-matomic-model]): Likewise.
33947         ([-mdiv]): Likewise.
33948         ([-mzdcbranch]): Likewise.
33949         ([-mdisable-callt]): Likewise.
33950         ([-msoft-float]): Likewise.
33951         ([-m8byte-align]): Likewise.
33952         ([-fstack-reuse]): Likewise.
33954 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33956         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
33957         Fix markup, light copy-editing.
33958         ([-fauto-profile]): Rewrite to fix formatting and content
33959         problems.
33961 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33963         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
33964         Copy-edit description.
33965         ([-fisolate-erroneous-paths-attribute]): Likewise.
33966         * common.opt (fisolate-erroneous-paths-dereference):
33967         Copy-edit description.
33968         (fisolate-erroneous-paths-attribute): Likewise.
33970 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33972         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
33973         tidy grammar.
33975 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33977         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
33978         ([-fvtv-debug]): Likewise.
33979         ([-Wc++-compat]): Likewise.
33980         ([-Wc++11-compat]): Likewise.
33981         ([-Wc++14-compat]): Likewise.
33982         ([-Wno-sized-deallocation]): Likewise.
33983         ([-femit-class-debug-always]): Likewise.
33984         ([-femit-struct-debug-detailed]): Likewise.
33985         ([-fno-keep-inline-dllexport]): Likewise.
33986         ([-fira-algorithm]): Likewise.
33987         ([-fira-region]): Likewise.
33988         ([-flra-remat]): Likewise.
33989         ([-fipa-ra]): Likewise.
33990         ([-fhoist-adjacent-loads]): Likewise.
33991         ([-fisolate-erroneous-paths-dereference]): Likewise.
33992         ([-fisolate-erroneous-paths-attribute]): Likewise.
33993         ([-ftree-switch-conversion]): Likewise.
33994         ([-ftree-tail-merge]): Likewise.
33995         ([-ftree-loop-if-convert]): Likewise.
33996         ([-ftree-loop-if-convert-stores]): Likewise.
33997         ([-ftree-loop-distribution]): Likewise.
33998         ([-ftree-loop-distribute-patterns]): Likewise.
33999         ([-flto-compression-level]): Likewise.
34000         ([-flto-report]): Likewise.
34001         ([-flto-report-wpa]): Likewise.
34002         ([-fuse-linker-plugin]): Likewise.
34003         ([-mfix-cortex-a53-835769]): Likewise.
34004         ([-mno-fix-cortex-a53-835769]): Likewise.
34005         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
34006         explicit listing; add a note to the discussion indicating they
34007         exist.  Reorder table to group similar options.  Add missing
34008         @opindex entries.  Add @need commands throughout the table to
34009         allow it to be split across multiple pages.
34010         ([-m8bit-idiv]): Fix @opindex.
34011         ([-mavx256-split-unaligned-load]): Likewise.
34012         ([-mavx256-split-unaligned-store]): Likewise.
34013         ([-mstack-protector-guard]): Likewise.
34014         ([-mcpu=]): Likewise.
34015         ([-mcpu]): Likewise.
34016         ([-mpointer-size=]): Likewise.
34018 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
34020         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
34021         instead of `m' constraint.  Likewise for unnamed movb comparison
34022         patterns using reg_before_reload_operand predicate.
34023         * config/pa/predicates.md (reg_before_reload_operand): Tighten
34024         predicate to reject register index and LO_SUM DLT memory forms
34025         after reload.
34027 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
34029         * doc/invoke.texi (Option Summary): Fix spelling of
34030         -fdevirtualize-at-ltrans.
34031         ([-fdevirtualize]): Fix markup.
34032         ([-fdevirtualize-speculatively]): Fix typo.
34033         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
34034         implementor-speaky.
34035         * common.opt (fdevirtualize-at-ltrans): Likewise.
34036         * ipa-devirt.c: Fix typos in comments throughout the file.
34037         (ipa_devirt): Fix typos in format strings for dump output.
34039 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
34041         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
34042         discussion of defaults, light copy-editing.
34044 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34046         * tsan.c (instrument_expr): corrected previous checkin.
34048 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34050         Instrument bit field and unaligned accesses for TSAN.
34051         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
34052         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
34053         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
34054         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
34055         unaligned memory regions.
34057 2015-01-01  Anthony Green  <green@moxielogic.com>
34059         * config/moxie/predicates.md (moxie_general_movsrc_operand):
34060         Restrict move source register offsets to 16 bits.
34062 Copyright (C) 2015 Free Software Foundation, Inc.
34064 Copying and distribution of this file, with or without modification,
34065 are permitted in any medium without royalty provided the copyright
34066 notice and this notice are preserved.