ipa-icf.c: Fix typo in dump message
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2
3         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
4         in dump message.
5
6 2015-07-10  Richard Biener  <rguenther@suse.de>
7
8         PR tree-optimization/66823
9         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
10         inverted predicate.
11
12 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
13
14         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
15         to handle mips[32|64]r3 and mips[32|64]r5.
16
17 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
18
19         PR middle-end/66633
20         * tree-nested.c (get_static_chain): Or in a flag into
21         info->static_chain_added.
22         (get_frame_field, get_nonlocal_debug_decl): Likewise.
23         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
24         2015-07-01 changes.
25         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
26         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
27         add it to clauses.
28
29         PR tree-optimization/66718
30         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
31         field.
32         (vect_simd_lane_linear): New function.
33         (vectorizable_simd_clone_call): Support using linear arguments for
34         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
35
36 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
37
38         PR target/66821
39         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
40
41 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
42
43         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
44         Use machine mode, not enum machine_mode in the prototype.
45
46         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
47         classify 128-bit floating point support.
48         (FLOAT128_IBM_P): Likewise.
49         (FLOAT128_VECTOR_P): Likewise.
50         (FLOAT128_2REG_P): Likewise.
51         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
52         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
53         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
54         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
55
56         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
57         tests against TFmode/TDmode, since those modes do not use VSX
58         addresses.
59         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
60         support.
61         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
62         tests against TFmode, etc.
63         (invalid_e500_subreg): Add tests against IFmode/KFmode.
64         (reg_offset_addressing_ok_p): Likewise.
65         (rs6000_legitimate_offset_address_p): Likewise.
66         (rs6000_legitimize_address): Likewise.
67         (rs6000_legitimize_reload_address): Likewise.
68         (rs6000_legitimate_address_p): Clean up tests against TFmode and
69         TDmode to use the new helper macros, which will include IFmode and
70         KFmode.
71         (rs6000_emit_move): Likewise.
72         (rs6000_darwin64_record_arg_recurse): Likewise.
73         (print_operand): Likewise.
74         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
75         that uses a single vector register as a vector and not as a
76         floating point register in terms of the calling sequence.
77         (rs6000_discover_homogeneous_aggregate): Likewise.
78         (rs6000_return_in_memory): Likewise.
79         (init_cumulative_args): Likewise.
80         (rs6000_function_arg_boundary): Likewise.
81         (rs6000_function_arg_advance_1): Likewise.
82         (rs6000_function_arg): Likewise.
83         (rs6000_pass_by_reference): Likewise.
84         (rs6000_gimplify_va_arg): Likewise.
85         (rs6000_secondary_reload_memory): Use machine_mode not enum
86         machine mode.
87         (rs6000_split_multireg_move): Use new helper macros.
88         (spe_func_has_64bit_regs_p): Likewise.
89         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
90         (output_toc): Use new helper macros.
91         (rs6000_register_move_cost): Likewise.
92         (rs6000_function_value): Add IEEE 128-bit floating point calling
93         sequence support.
94         (rs6000_libcall_value): Likewise.
95         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
96         floating point support.
97         (rs6000_vector_mode_supported_p): Likewise.
98
99 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
100
101         PR rtl-optimization/66782
102         * lra-int.h (struct lra_insn_recog_data): Add comment about
103         clobbered hard regs for arg_hard_regs.
104         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
105         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
106         Add condition for processing used hard regs.
107         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
108         Process clobbered hard regs.
109
110 2015-07-09  Michael Matz  <matz@suse.de>
111
112         * genmatch.c (fprintf_indent): New function.
113         (operand::gen_transform): Add indent parameter.
114         (expr::gen_transform, c_expr::gen_transform,
115         capture::gen_transform): Ditto and use fprintf_indent.
116         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
117         (dt_operand::gen, dt_operand::gen_predicate,
118         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
119         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
120         (decision_tree::gen_gimple): Adjust calls and indent generated
121         code.
122         (decision_tree::gen_generic): Ditto.
123         (write_predicate): Ditto.
124
125 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
126
127         PR target/66814
128         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
129         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
130         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
131         {GENERAL_SSE_MMX}_REG_P where appropriate.
132
133 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
134
135         * lto-streamer.h: Don't include target.h and alloc-pool.h.
136         * builtins.c: Adjust includes.
137         * gimple.c: Likewise.
138         * ipa-icf.c: Likewise.
139         * lto-opts.c: Likewise.
140         * ipa-reference.c: Likewise.
141         * lto-section-out.c: Likewise.
142         * lto-streamer-in.c: Likewise.
143         * lto-streamer-out.c: Likewise.
144         * opts-global.c: Likewise.
145         * symtab.c: Likewise.
146         * tree-chkp.c: Likewise.
147         * tree-ssa-live.c: Likewise.
148         * tree-streamer-in.c: Likewise.
149         * tree-streamer-out.c: Likewise.
150         * config/darwin.c: Likewise.
151         * config/i386/winnt.c: Likewise.
152
153 2015-07-09  Richard Biener  <rguenther@suse.de>
154
155         * genmatch.c (struct expr): Add force_single_use flag.
156         (expr::expr): Add copy constructor.
157         (capture_info::walk_match): Gather force_single_use captures.
158         (expr::gen_transform): Use possibly NULLified sequence.
159         (dt_simplify::gen): Apply single-use restrictions by NULLifying
160         seq if any constrained expr is not single-use.
161         (parser::parse_expr): Refactor to allow multiple flags.  Handle
162         's' flag to force an expression have a single-use if the pattern
163         simplifies to more than one statement.
164         * match.pd: Convert most single_use conditionals to :s flags.
165
166 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
167
168         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
169         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
170         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
171
172 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
173
174         * flags.h: Don't include flag-types.h or options.h.
175         * opts-common.c: Adjust includes.
176         * opts-global.c: Likewise.
177         * common/config/epiphany/epiphany-common.c: Likewise.
178
179 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
180
181         PR target/66818
182         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
183         for IA MCU.
184
185 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
186
187         PR target/66817
188         * config/i386/i386.c (ix86_return_in_memory): Return true
189         if int_size_in_bytes returns negative for IA MCU.
190
191 2015-07-09  Marek Polacek  <polacek@redhat.com>
192
193         PR tree-optimization/66718
194         * Makefile.in (OBJS): Add gimple-laddress.o.
195         * passes.def: Schedule pass_laddress.
196         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
197         * tree-pass.h (make_pass_laddress): Declare.
198         * gimple-laddress.c: New file.
199
200 2015-07-09  Richard Biener  <rguenther@suse.de>
201
202         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
203
204 2015-07-09  Richard Biener  <rguenther@suse.de>
205
206         PR tree-optimization/66807
207         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
208
209 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
210
211         * function.c (stack_protect_epilogue): Use if rather than switch for
212         check targetm.have_stack_protect_test.
213
214 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
215
216         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
217         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
218         * config/arc/arc.h: Likewise.
219         * config/arm/arm.h: Likewise.
220         * config/bfin/bfin.h: Likewise.
221         * config/epiphany/epiphany.h: Likewise.
222         * config/frv/frv.h: Likewise.
223         * config/ia64/ia64.h: Likewise.
224         * config/iq2000/iq2000.h: Likewise.
225         * config/lm32/lm32.h: Likewise.
226         * config/m32r/m32r.h: Likewise.
227         * config/mcore/mcore.h: Likewise.
228         * config/mep/mep.h: Likewise.
229         * config/microblaze/microblaze.h: Likewise.
230         * config/mips/mips.h: Likewise.
231         * config/mmix/mmix.h: Likewise.
232         * config/mn10300/mn10300.h: Likewise.
233         * config/nds32/nds32.h: Likewise.
234         * config/nios2/nios2.h: Likewise.
235         * config/pa/pa.h: Likewise.
236         * config/rl78/rl78.h: Likewise.
237         * config/sh/sh.h: Likewise.
238         * config/sparc/sparc.h: Likewise.
239         * config/stormy16/stormy16.h: Likewise.
240         * config/tilegx/tilegx.h: Likewise.
241         * config/tilepro/tilepro.h: Likewise.
242         * config/v850/v850.h: Likewise.
243         * config/xtensa/xtensa.h: Likewise.
244         * doc/tm.texi: Regenerate.
245         * doc/tm.texi.in: Adjust.
246         * combine.c (simplify_set): Likewise.
247         (simplify_comparison): Likewise.
248         * expr.c (store_constructor): Likewise.
249         * internal-fn.c (expand_arith_overflow): Likewise.
250         * reload.c (push_reload): Likewise.
251         (find_reloads): Likewise.
252         (find_reloads_subreg_address): Likewise.
253         * reload1.c (eliminate_regs_1): Likewise.
254         * rtlanal.c (nonzero_bits1): Likewise.
255         (num_sign_bit_copies1): Likewise.
256         * simplify-rtx.c (simplify_truncation): Likewise.
257
258 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
259
260         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
261         of AUTO_INC_DEC with the preprocessor.
262         * combine.c (combine_instructions): Likewise.
263         (can_combine_p): Likewise.
264         (try_combine): Likewise.
265         * emit-rtl.c (try_split): Likewise.
266         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
267         * lower-subreg.c (resolve_simple_move): Likewise.
268         * lra.c (update_inc_notes): Likewise.
269         * recog.c (asm_operand_ok): Likewise.
270         (constrain_operands): Likewise.
271         * regrename.c (scan_rtx_address): Likewise.
272         * reload.c (update_auto_inc_notes): Likewise.
273         (reg_inc_found_and_valid_p): Likewise.
274         * reload1.c (reload): Likewise.
275         (emit_input_reload_insns): Likewise.
276         (delete_output_reload): Likewise.
277         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
278         * valtrack.c (cleanup_auto_inc_dec): Likewise.
279
280 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
281
282         * rtl.h: Always define AUTO_INC_DEC.
283         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
284         * combine.c (combine_instructions): Likewise.
285         (can_combine_p): Likewise.
286         (try_combine): Likewise.
287         * emit-rtl.c (try_split): Likewise.
288         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
289         * lower-subreg.c (resolve_simple_move): Likewise.
290         * lra.c (update_inc_notes): Likewise.
291         * recog.c (asm_operand_ok): Likewise.
292         (constrain_operands): Likewise.
293         * regrename.c (scan_rtx_address): Likewise.
294         * reload.c (update_auto_inc_notes): Likewise.
295         (find_equiv_reg): Likewise.
296         * reload1.c (reload): Likewise.
297         (reload_as_needed): Likewise.
298         (choose_reload_regs): Likewise.
299         (emit_input_reload_insns): Likewise.
300         (delete_output_reload): Likewise.
301         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
302         * valtrack.c (cleanup_auto_inc_dec): Likewise.
303
304 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
305
306         * combine.c (can_combine_def_p): Don't check the value of
307         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
308         (combinable_i3pat): Likewise.
309         (mark_used_regs_combine): Likewise.
310         * regrename.c (rename_chains): Likewise.
311         * reload.c (find_reloads_address): Likewise.
312         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
313
314 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
315
316         * combine.c (update_rsp_from_reg_equal): Don't check if
317         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
318         (reg_nonzero_bits_for_combine): Likewise.
319         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
320         1.
321         * config/frv/frv.h: Likewise.
322         * config/lm32/lm32.h: Likewise.
323         * config/mep/mep.h: Likewise.
324         * config/mips/mips.h: Likewise.
325         * config/rs6000/rs6000.h: Likewise.
326         * config/sh/sh.h: Likewise.
327         * config/tilegx/tilegx.h (enum reg_class): Likewise.
328         * config/tilepro/tilepro.h: Likewise.
329         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
330         * doc/tm.texi: Regenerate.
331         * doc/tm.texi.in: Adjust.
332         * rtlanal.c (nonzero_bits1): Likewise.
333
334 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
335
336         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
337         with the preprocessor.
338         (combine_instructions): Likewise.
339         (try_combine): Likewise.
340         (subst): Likewise.
341         (distribute_notes): Likewise.
342
343 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
344
345         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
346         defined.
347         (simplify_set): Likewise.
348         * cse.c (cse_insn): Likewise.
349         * fold-const.c (fold_single_bit_test): Likewise.
350         (fold_unary_loc): Likewise.
351         * postreload.c (reload_cse_simplify_set): Likewise.
352         (reload_cse_simplify_operands): Likewise.
353
354 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
355
356         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
357         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
358
359 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
360
361         PR target/66746
362         * config/i386/x86intrin.h: Include <adxintrin.h> even if
363         __iamcu__ is defined.
364
365 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
366
367         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
368
369 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
370
371         PR target/66523
372         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
373         names from preservation.
374
375 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
376
377         PR middle-end/66334
378         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
379         hard regno live at the start of BB with incoming abnormal edges.
380         * lra-lives.c (process_bb_lives): Ditto.
381
382 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
383
384         PR libgomp/65099
385         * config/nvptx/mkoffload.c (main): Create an offload image only in
386         64-bit configurations.
387
388 2015-07-08  Martin Liska  <mliska@suse.cz>
389
390         PR bootstrap/66744
391         * tree-sra.c (create_access_1): Call ctor without brackets.
392         (create_artificial_child_access): Likewise.
393
394 2015-07-08  Richard Biener  <rguenther@suse.de>
395
396         PR tree-optimization/66793
397         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
398         Properly split the block after stmts ending it.
399
400 2015-07-08  Richard Biener  <rguenther@suse.de>
401
402         PR tree-optimization/66794
403         * passes.c (execute_function_todo): Assert that post-dominators
404         are not computed.
405         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
406         Free post-dominators.
407
408 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
409
410         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
411         with early exit.
412
413 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
414
415         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
416         more than or equal 8 and less than 32 when optimizing for size.
417
418 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
419
420         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
421         COSTS_N_INSNS (1) and increment it appropriately throughout the
422         function.
423
424 2015-07-08  Richard Biener  <rguenther@suse.de>
425
426         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
427
428 2015-07-08  Alan Modra  <amodra@gmail.com>
429
430         * target.def (rtx_costs): Remove "code" param, add "mode".
431         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
432         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
433         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
434         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
435         call.  Track mode when given in rtx.
436         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
437         (default_address_cost): Pass Pmode to rtx_cost.
438         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
439         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
440         with NULL set.
441         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
442         (notreg_cost): Add mode param.  Use it.
443         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
444         mode param and pass to set_src_cost.  Update all calls.
445         (hash_scan_set): Formatting.
446         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
447         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
448         * hooks.h: Ditto.
449         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
450         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
451         emit_store_flag): Update set_src_cost and rtx_cost calls.
452         * auto-inc-dec.c (attempt_change): Likewise.
453         * calls.c (precompute_register_parameters): Likewise.
454         * combine.c (expand_compound_operation, make_extraction,
455         force_to_mode, distribute_and_simplify_rtx): Likewise.
456         * dojump.c (prefer_and_bit_test): Likewise.
457         * dse.c (find_shift_sequence): Likewise.
458         * expr.c (compress_float_constant): Likewise.
459         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
460         * ifcvt.c (noce_try_sign_mask): Likewise.
461         * loop-doloop.c (doloop_optimize): Likewise.
462         * loop-invariant.c (create_new_invariant): Likewise.
463         * lower-subreg.c (shift_cost, compute_costs): Likewise.
464         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
465         lshift_cheap_p): Likewise.
466         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
467         try_replace_in_use, reload_cse_move2add): Likewise.
468         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
469         Likewise.
470         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
471         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
472         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
473         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
474         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
475         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
476         to rtx_cost calls.
477         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
478         * config/arc/arc.c (arc_rtx_costs): Likewise.
479         * config/arm/arm.c (arm_rtx_costs): Likewise.
480         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
481         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
482         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
483         * config/cris/cris.c (cris_rtx_costs): Likewise.
484         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
485         * config/frv/frv.c (frv_rtx_costs): Likewise.
486         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
487         * config/i386/i386.c (ix86_rtx_costs): Likewise.
488         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
489         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
490         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
491         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
492         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
493         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
494         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
495         * config/mep/mep.c (mep_rtx_cost): Likewise.
496         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
497         * config/mips/mips.c (mips_rtx_costs): Likewise.
498         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
499         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
500         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
501         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
502         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
503         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
504         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
505         * config/pa/pa.c (hppa_rtx_costs): Likewise.
506         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
507         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
508         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
509         * config/s390/s390.c (s390_rtx_costs): Likewise.
510         * config/sh/sh.c (sh_rtx_costs): Likewise.
511         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
512         * config/spu/spu.c (spu_rtx_costs): Likewise.
513         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
514         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
515         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
516         * config/v850/v850.c (v850_rtx_costs): Likewise.
517         * config/vax/vax.c (vax_rtx_costs): Likewise.
518         * config/visium/visium.c (visium_rtx_costs): Likewise.
519         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
520         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
521         "code" param, and pass as outer_code to first rtx_cost call.  Pass
522         mode to rtx_cost calls.
523         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
524         calls.
525         (aarch64_rtx_costs_wrapper): Update.
526         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
527         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
528         rtx_cost calls.
529         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
530         and rtx_cost calls.
531         (avr_operand_rtx_cost): Similarly.
532         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
533         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
534         * config/mips/mips.c (mips_stack_address_p): Comment typo.
535         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
536         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
537         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
538         rtx_cost.
539         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
540         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
541         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
542         * doc/tm.texi: Regenerate.
543
544 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
545
546         * tree-core.h: Include symtab.h.
547         * rtl.h: Include hard-reg-set.h but not flags.h.
548         (HARD_CONST): Remove condition compilation involving HARD_CONST since
549         hard-reg-set.h is always included.
550         * regs.h: Don't include hard-reg-set.h or rtl.h.
551         * cfg.h: Include dominance.h.
552         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
553         * backend.h: New.  Aggregate commonly used backend header files.
554         * gimple-ssa.h: Don't include tree-hasher.h.
555         * ssa.h: New.  Aggregate commonly used SSA header files.
556         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
557         * sel-sched-ir.h: Flatten includes.
558         * lra-int.h: Flatten completely.
559         * sel-sched-dump.h: Flatten includes.
560         * ira-int.h: Flatten includes.
561         * gimple-streamer.h: Remove all includes.
562         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
563         * resource.h: Flatten hard-reg-set.h and df.h.
564         * sched-int.h: Flatten insn-arrt.h and df.h.
565         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
566         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
567         * genattrtab.c (write_header): Adjust generated includes.
568         * genautomata.c (main): Likewise.
569         * genconditions.c (write-header): Likewise.
570         * genemit.c (main): Likewise.
571         * gengtype.c (open_base_files): Likewise.
572         * genopinit.c (main): Likewise.
573         * genoutput.c (output_prologue): Likewise.
574         * genpeep.c (main): Likewise.
575         * genpreds.c (write_insn_preds_c): Likewise.
576         * genrecog.c (write_header): Likewise.
577         * alias.c: Adjust includes.
578         * asan.c: Likewise.
579         * attribs.c: Likewise.
580         * auto-inc-dec.c: Likewise.
581         * auto-profile.c: Likewise.
582         * bb-reorder.c: Likewise.
583         * bt-load.c: Likewise.
584         * builtins.c: Likewise.
585         * caller-save.c: Likewise.
586         * calls.c: Likewise.
587         * ccmp.c: Likewise.
588         * cfg.c: Likewise.
589         * cfganal.c: Likewise.
590         * cfgbuild.c: Likewise.
591         * cfgcleanup.c: Likewise.
592         * cfgexpand.c: Likewise.
593         * cfghooks.c: Likewise.
594         * cfgloop.c: Likewise.
595         * cfgloopanal.c: Likewise.
596         * cfgloopmanip.c: Likewise.
597         * cfgrtl.c: Likewise.
598         * cgraph.c: Likewise.
599         * cgraphbuild.c: Likewise.
600         * cgraphclones.c: Likewise.
601         * cgraphunit.c: Likewise.
602         * cilk-common.c: Likewise.
603         * combine-stack-adj.c: Likewise.
604         * combine.c: Likewise.
605         * compare-elim.c: Likewise.
606         * convert.c: Likewise.
607         * coverage.c: Likewise.
608         * cppbuiltin.c: Likewise.
609         * cprop.c: Likewise.
610         * cse.c: Likewise.
611         * cselib.c: Likewise.
612         * data-streamer-in.c: Likewise.
613         * data-streamer-out.c: Likewise.
614         * data-streamer.c: Likewise.
615         * dbxout.c: Likewise.
616         * dce.c: Likewise.
617         * ddg.c: Likewise.
618         * debug.c: Likewise.
619         * df-core.c: Likewise.
620         * df-problems.c: Likewise.
621         * df-scan.c: Likewise.
622         * dfp.c: Likewise.
623         * dojump.c: Likewise.
624         * dominance.c: Likewise.
625         * domwalk.c: Likewise.
626         * double-int.c: Likewise.
627         * dse.c: Likewise.
628         * dumpfile.c: Likewise.
629         * dwarf2asm.c: Likewise.
630         * dwarf2cfi.c: Likewise.
631         * dwarf2out.c: Likewise.
632         * emit-rtl.c: Likewise.
633         * et-forest.c: Likewise.
634         * except.c: Likewise.
635         * explow.c: Likewise.
636         * expmed.c: Likewise.
637         * expr.c: Likewise.
638         * final.c: Likewise.
639         * fixed-value.c: Likewise.
640         * fold-const.c: Likewise.
641         * function.c: Likewise.
642         * fwprop.c: Likewise.
643         * gcc-plugin.h: Likewise.
644         * gcse-common.c: Likewise.
645         * gcse.c: Likewise.
646         * generic-match-head.c: Likewise.
647         * ggc-page.c: Likewise.
648         * gimple-builder.c: Likewise.
649         * gimple-expr.c: Likewise.
650         * gimple-fold.c: Likewise.
651         * gimple-iterator.c: Likewise.
652         * gimple-low.c: Likewise.
653         * gimple-match-head.c: Likewise.
654         * gimple-pretty-print.c: Likewise.
655         * gimple-ssa-isolate-paths.c: Likewise.
656         * gimple-ssa-strength-reduction.c: Likewise.
657         * gimple-streamer-in.c: Likewise.
658         * gimple-streamer-out.c: Likewise.
659         * gimple-walk.c: Likewise.
660         * gimple.c: Likewise.
661         * gimplify-me.c: Likewise.
662         * gimplify.c: Likewise.
663         * godump.c: Likewise.
664         * graph.c: Likewise.
665         * graphite-blocking.c: Likewise.
666         * graphite-dependences.c: Likewise.
667         * graphite-interchange.c: Likewise.
668         * graphite-isl-ast-to-gimple.c: Likewise.
669         * graphite-optimize-isl.c: Likewise.
670         * graphite-poly.c: Likewise.
671         * graphite-scop-detection.c: Likewise.
672         * graphite-sese-to-poly.c: Likewise.
673         * graphite.c: Likewise.
674         * haifa-sched.c: Likewise.
675         * hw-doloop.c: Likewise.
676         * ifcvt.c: Likewise.
677         * init-regs.c: Likewise.
678         * internal-fn.c: Likewise.
679         * ipa-chkp.c: Likewise.
680         * ipa-comdats.c: Likewise.
681         * ipa-cp.c: Likewise.
682         * ipa-devirt.c: Likewise.
683         * ipa-icf-gimple.c: Likewise.
684         * ipa-icf.c: Likewise.
685         * ipa-inline-analysis.c: Likewise.
686         * ipa-inline-transform.c: Likewise.
687         * ipa-inline.c: Likewise.
688         * ipa-polymorphic-call.c: Likewise.
689         * ipa-profile.c: Likewise.
690         * ipa-prop.c: Likewise.
691         * ipa-pure-const.c: Likewise.
692         * ipa-ref.c: Likewise.
693         * ipa-reference.c: Likewise.
694         * ipa-split.c: Likewise.
695         * ipa-utils.c: Likewise.
696         * ipa-visibility.c: Likewise.
697         * ipa.c: Likewise.
698         * ira-build.c: Likewise.
699         * ira-color.c: Likewise.
700         * ira-conflicts.c: Likewise.
701         * ira-costs.c: Likewise.
702         * ira-emit.c: Likewise.
703         * ira-lives.c: Likewise.
704         * ira.c: Likewise.
705         * jump.c: Likewise.
706         * langhooks.c: Likewise.
707         * lcm.c: Likewise.
708         * loop-doloop.c: Likewise.
709         * loop-init.c: Likewise.
710         * loop-invariant.c: Likewise.
711         * loop-iv.c: Likewise.
712         * loop-unroll.c: Likewise.
713         * lower-subreg.c: Likewise.
714         * lra-assigns.c: Likewise.
715         * lra-coalesce.c: Likewise.
716         * lra-constraints.c: Likewise.
717         * lra-eliminations.c: Likewise.
718         * lra-lives.c: Likewise.
719         * lra-remat.c: Likewise.
720         * lra-spills.c: Likewise.
721         * lra.c: Likewise.
722         * lto-cgraph.c: Likewise.
723         * lto-compress.c: Likewise.
724         * lto-opts.c: Likewise.
725         * lto-section-in.c: Likewise.
726         * lto-section-out.c: Likewise.
727         * lto-streamer-in.c: Likewise.
728         * lto-streamer-out.c: Likewise.
729         * lto-streamer.c: Likewise.
730         * mcf.c: Likewise.
731         * mode-switching.c: Likewise.
732         * modulo-sched.c: Likewise.
733         * omega.c: Likewise.
734         * omp-low.c: Likewise.
735         * optabs.c: Likewise.
736         * opts-global.c: Likewise.
737         * passes.c: Likewise.
738         * plugin.c: Likewise.
739         * postreload-gcse.c: Likewise.
740         * postreload.c: Likewise.
741         * predict.c: Likewise.
742         * print-rtl.c: Likewise.
743         * print-tree.c: Likewise.
744         * profile.c: Likewise.
745         * real.c: Likewise.
746         * realmpfr.c: Likewise.
747         * recog.c: Likewise.
748         * ree.c: Likewise.
749         * reg-stack.c: Likewise.
750         * regcprop.c: Likewise.
751         * reginfo.c: Likewise.
752         * regrename.c: Likewise.
753         * regstat.c: Likewise.
754         * reload.c: Likewise.
755         * reload1.c: Likewise.
756         * reorg.c: Likewise.
757         * resource.c: Likewise.
758         * rtl-chkp.c: Likewise.
759         * rtlanal.c: Likewise.
760         * rtlhooks.c: Likewise.
761         * sanopt.c: Likewise.
762         * sched-deps.c: Likewise.
763         * sched-ebb.c: Likewise.
764         * sched-rgn.c: Likewise.
765         * sched-vis.c: Likewise.
766         * sdbout.c: Likewise.
767         * sel-sched-dump.c: Likewise.
768         * sel-sched-ir.c: Likewise.
769         * sel-sched.c: Likewise.
770         * sese.c: Likewise.
771         * shrink-wrap.c: Likewise.
772         * simplify-rtx.c: Likewise.
773         * stack-ptr-mod.c: Likewise.
774         * stmt.c: Likewise.
775         * stor-layout.c: Likewise.
776         * store-motion.c: Likewise.
777         * stringpool.c: Likewise.
778         * symtab.c: Likewise.
779         * target-globals.c: Likewise.
780         * targhooks.c: Likewise.
781         * toplev.c: Likewise.
782         * tracer.c: Likewise.
783         * trans-mem.c: Likewise.
784         * tree-affine.c: Likewise.
785         * tree-browser.c: Likewise.
786         * tree-call-cdce.c: Likewise.
787         * tree-cfg.c: Likewise.
788         * tree-cfgcleanup.c: Likewise.
789         * tree-chkp-opt.c: Likewise.
790         * tree-chkp.c: Likewise.
791         * tree-chrec.c: Likewise.
792         * tree-complex.c: Likewise.
793         * tree-data-ref.c: Likewise.
794         * tree-dfa.c: Likewise.
795         * tree-diagnostic.c: Likewise.
796         * tree-dump.c: Likewise.
797         * tree-eh.c: Likewise.
798         * tree-emutls.c: Likewise.
799         * tree-if-conv.c: Likewise.
800         * tree-inline.c: Likewise.
801         * tree-into-ssa.c: Likewise.
802         * tree-iterator.c: Likewise.
803         * tree-loop-distribution.c: Likewise.
804         * tree-nested.c: Likewise.
805         * tree-nrv.c: Likewise.
806         * tree-object-size.c: Likewise.
807         * tree-outof-ssa.c: Likewise.
808         * tree-parloops.c: Likewise.
809         * tree-phinodes.c: Likewise.
810         * tree-predcom.c: Likewise.
811         * tree-pretty-print.c: Likewise.
812         * tree-profile.c: Likewise.
813         * tree-scalar-evolution.c: Likewise.
814         * tree-sra.c: Likewise.
815         * tree-ssa-address.c: Likewise.
816         * tree-ssa-alias.c: Likewise.
817         * tree-ssa-ccp.c: Likewise.
818         * tree-ssa-coalesce.c: Likewise.
819         * tree-ssa-copy.c: Likewise.
820         * tree-ssa-copyrename.c: Likewise.
821         * tree-ssa-dce.c: Likewise.
822         * tree-ssa-dom.c: Likewise.
823         * tree-ssa-dse.c: Likewise.
824         * tree-ssa-forwprop.c: Likewise.
825         * tree-ssa-ifcombine.c: Likewise.
826         * tree-ssa-live.c: Likewise.
827         * tree-ssa-loop-ch.c: Likewise.
828         * tree-ssa-loop-im.c: Likewise.
829         * tree-ssa-loop-ivcanon.c: Likewise.
830         * tree-ssa-loop-ivopts.c: Likewise.
831         * tree-ssa-loop-manip.c: Likewise.
832         * tree-ssa-loop-niter.c: Likewise.
833         * tree-ssa-loop-prefetch.c: Likewise.
834         * tree-ssa-loop-unswitch.c: Likewise.
835         * tree-ssa-loop.c: Likewise.
836         * tree-ssa-math-opts.c: Likewise.
837         * tree-ssa-operands.c: Likewise.
838         * tree-ssa-phiopt.c: Likewise.
839         * tree-ssa-phiprop.c: Likewise.
840         * tree-ssa-pre.c: Likewise.
841         * tree-ssa-propagate.c: Likewise.
842         * tree-ssa-reassoc.c: Likewise.
843         * tree-ssa-sccvn.c: Likewise.
844         * tree-ssa-scopedtables.c: Likewise.
845         * tree-ssa-sink.c: Likewise.
846         * tree-ssa-strlen.c: Likewise.
847         * tree-ssa-structalias.c: Likewise.
848         * tree-ssa-tail-merge.c: Likewise.
849         * tree-ssa-ter.c: Likewise.
850         * tree-ssa-threadedge.c: Likewise.
851         * tree-ssa-threadupdate.c: Likewise.
852         * tree-ssa-uncprop.c: Likewise.
853         * tree-ssa-uninit.c: Likewise.
854         * tree-ssa.c: Likewise.
855         * tree-ssanames.c: Likewise.
856         * tree-stdarg.c: Likewise.
857         * tree-streamer-in.c: Likewise.
858         * tree-streamer-out.c: Likewise.
859         * tree-streamer.c: Likewise.
860         * tree-switch-conversion.c: Likewise.
861         * tree-tailcall.c: Likewise.
862         * tree-vect-data-refs.c: Likewise.
863         * tree-vect-generic.c: Likewise.
864         * tree-vect-loop-manip.c: Likewise.
865         * tree-vect-loop.c: Likewise.
866         * tree-vect-patterns.c: Likewise.
867         * tree-vect-slp.c: Likewise.
868         * tree-vect-stmts.c: Likewise.
869         * tree-vectorizer.c: Likewise.
870         * tree-vrp.c: Likewise.
871         * tree.c: Likewise.
872         * tsan.c: Likewise.
873         * ubsan.c: Likewise.
874         * valtrack.c: Likewise.
875         * value-prof.c: Likewise.
876         * var-tracking.c: Likewise.
877         * varasm.c: Likewise.
878         * varpool.c: Likewise.
879         * vmsdbgout.c: Likewise.
880         * vtable-verify.c: Likewise.
881         * web.c: Likewise.
882         * wide-int.cc: Likewise.
883         * xcoffout.c: Likewise.
884         * config/aarch64/aarch64-builtins.c: Likewise.
885         * config/aarch64/aarch64.c: Likewise.
886         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
887         * config/alpha/alpha.c: Likewise.
888         * config/arc/arc.c: Likewise.
889         * config/arm/aarch-common.c: Likewise.
890         * config/arm/arm-builtins.c: Likewise.
891         * config/arm/arm-c.c: Likewise.
892         * config/arm/arm.c: Likewise.
893         * config/avr/avr-c.c: Likewise.
894         * config/avr/avr-log.c: Likewise.
895         * config/avr/avr.c: Likewise.
896         * config/bfin/bfin.c: Likewise.
897         * config/c6x/c6x.c: Likewise.
898         * config/cr16/cr16.c: Likewise.
899         * config/cris/cris.c: Likewise.
900         * config/darwin-c.c: Likewise.
901         * config/darwin.c: Likewise.
902         * config/epiphany/epiphany.c: Likewise.
903         * config/epiphany/mode-switch-use.c: Likewise.
904         * config/epiphany/resolve-sw-modes.c: Likewise.
905         * config/fr30/fr30.c: Likewise.
906         * config/frv/frv.c: Likewise.
907         * config/ft32/ft32.c: Likewise.
908         * config/h8300/h8300.c: Likewise.
909         * config/i386/i386-c.c: Likewise.
910         * config/i386/i386.c: Likewise.
911         * config/i386/msformat-c.c: Likewise.
912         * config/i386/winnt-cxx.c: Likewise.
913         * config/i386/winnt-stubs.c: Likewise.
914         * config/i386/winnt.c: Likewise.
915         * config/ia64/ia64-c.c: Likewise.
916         * config/ia64/ia64.c: Likewise.
917         * config/iq2000/iq2000.c: Likewise.
918         * config/lm32/lm32.c: Likewise.
919         * config/m32c/m32c-pragma.c: Likewise.
920         * config/m32c/m32c.c: Likewise.
921         * config/m32r/m32r.c: Likewise.
922         * config/m68k/m68k.c: Likewise.
923         * config/mcore/mcore.c: Likewise.
924         * config/mep/mep-pragma.c: Likewise.
925         * config/mep/mep.c: Likewise.
926         * config/microblaze/microblaze-c.c: Likewise.
927         * config/microblaze/microblaze.c: Likewise.
928         * config/mips/mips.c: Likewise.
929         * config/mmix/mmix.c: Likewise.
930         * config/mn10300/mn10300.c: Likewise.
931         * config/moxie/moxie.c: Likewise.
932         * config/msp430/msp430-c.c: Likewise.
933         * config/msp430/msp430.c: Likewise.
934         * config/nds32/nds32-cost.c: Likewise.
935         * config/nds32/nds32-fp-as-gp.c: Likewise.
936         * config/nds32/nds32-intrinsic.c: Likewise.
937         * config/nds32/nds32-isr.c: Likewise.
938         * config/nds32/nds32-md-auxiliary.c: Likewise.
939         * config/nds32/nds32-memory-manipulation.c: Likewise.
940         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
941         * config/nds32/nds32-predicates.c: Likewise.
942         * config/nds32/nds32.c: Likewise.
943         * config/nios2/nios2.c: Likewise.
944         * config/nvptx/nvptx.c: Likewise.
945         * config/pa/pa.c: Likewise.
946         * config/pdp11/pdp11.c: Likewise.
947         * config/rl78/rl78-c.c: Likewise.
948         * config/rl78/rl78.c: Likewise.
949         * config/rs6000/rs6000-c.c: Likewise.
950         * config/rs6000/rs6000.c: Likewise.
951         * config/rx/rx.c: Likewise.
952         * config/s390/s390-c.c: Likewise.
953         * config/s390/s390.c: Likewise.
954         * config/sh/sh-c.c: Likewise.
955         * config/sh/sh-mem.cc: Likewise.
956         * config/sh/sh.c: Likewise.
957         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
958         * config/sh/sh_treg_combine.cc: Likewise.
959         * config/sol2-c.c: Likewise.
960         * config/sol2-cxx.c: Likewise.
961         * config/sol2-stubs.c: Likewise.
962         * config/sol2.c: Likewise.
963         * config/sparc/sparc-c.c: Likewise.
964         * config/sparc/sparc.c: Likewise.
965         * config/spu/spu-c.c: Likewise.
966         * config/spu/spu.c: Likewise.
967         * config/stormy16/stormy16.c: Likewise.
968         * config/tilegx/mul-tables.c: Likewise.
969         * config/tilegx/tilegx-c.c: Likewise.
970         * config/tilegx/tilegx.c: Likewise.
971         * config/tilepro/mul-tables.c: Likewise.
972         * config/tilepro/tilepro-c.c: Likewise.
973         * config/tilepro/tilepro.c: Likewise.
974         * config/v850/v850-c.c: Likewise.
975         * config/v850/v850.c: Likewise.
976         * config/vax/vax.c: Likewise.
977         * config/visium/visium.c: Likewise.
978         * config/vms/vms-c.c: Likewise.
979         * config/vms/vms.c: Likewise.
980         * config/vxworks.c: Likewise.
981         * config/xtensa/xtensa.c: Likewise.
982
983 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
984
985         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
986         Remove operand constraints.  Change operand 2 predicate to
987         nonmemory operand.  Limit const_int values to mode bitsize.  Only
988         allow const_int values less than 32 when optimizing for size.
989         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
990         Remove operand constraints.
991         (*bt<mode>): Use SImode for const_int values less than 32.
992         (regmode): Remove mode attribute.
993
994 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
995
996         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
997         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
998           moxie_legitimate_address_p): New functions.
999           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1000
1001 2015-07-07  Tom de Vries  <tom@codesourcery.com>
1002
1003         PR tree-optimization/66642
1004         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
1005         header comment.  Rename split_edge variable to edge_at_split.  Split
1006         exit edge to create new loop exit bb.  Insert loop exit phis in new
1007         loop exit bb.
1008
1009 2015-07-07  Tom de Vries  <tom@codesourcery.com>
1010
1011         * tree-cfg.c (get_virtual_phi): New function.
1012         * tree-cfg.h (get_virtual_phi): Declare.
1013         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
1014         (rewrite_virtuals_into_loop_closed_ssa): New function.
1015         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
1016         Declare.
1017         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
1018         (transform_to_exit_first_loop_alt): Use
1019         rewrite_virtuals_into_loop_closed_ssa.
1020
1021 2015-07-07  Richard Biener  <rguenther@suse.de>
1022
1023         * fold-const.c (fold_binary_loc): Move
1024         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
1025         * match.pd: ... here.
1026         Add (X * C1) % C2 -> 0 simplification pattern derived from
1027         extract_muldiv_1.
1028
1029 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
1030
1031         PR target/66780
1032         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
1033         change for target/65249.
1034
1035 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
1036
1037         * symtab.c (address_matters_1): Fix typo in comment above.
1038         (can_increase_alignment_p): Likewise.
1039
1040 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1041
1042         * function.c (free_after_compilation): Clear PROP_cfg in
1043         f->curr_properties.
1044
1045 2015-07-07  Richard Biener  <rguenther@suse.de>
1046
1047         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
1048         add which use to.
1049         (add_control_edge): Remove excessive vertical space in dumping.
1050         (process_ssa_edge_worklist): Simulate at most one statement and
1051         return whether we did.  Do not simulate PHIs if they are in a
1052         BB not yet simulated.
1053         (ssa_propagate): Adjust to always drain the BB worklist whenever
1054         a BB is available there, likewise the VARYING edges list before
1055         the interesting edge list.
1056
1057 2015-07-07  Christian Bruel  <christian.bruel@st.com>
1058
1059         PR target/52144
1060         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
1061
1062 2015-07-07  Richard Biener  <rguenther@suse.de>
1063
1064         PR middle-end/66739
1065         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
1066         A - B.
1067
1068 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
1069
1070         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
1071         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
1072         Copy operand 0 to a temporary if !ext_register_operand.  Remove
1073         ancient extract_bit_field workaround.
1074         (insv<mode>_1): Rename from mov<mode>_insv_1.
1075         (*insvqi): Rename from *movqi_insv_2.
1076         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
1077         for renamed insvsi_1.
1078         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
1079
1080 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
1081
1082         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
1083         call to nvptx_reorg_subreg.
1084
1085 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
1086
1087         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
1088         * graphite-dependencies.c, graphite-interchange.c,
1089         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
1090         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
1091         Likewise.
1092
1093 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
1094
1095         * match.pd: Remove element_mode inside HONOR_*.
1096         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
1097         (~X | X -> -1, ~X ^ X -> -1): Merge.
1098         * tree.c (build_each_one_cst): New function.
1099         * tree.h (build_each_one_cst): Likewise.
1100
1101 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
1102
1103         * config.gcc <mips*-*-*>: Add fused-madd.opt.
1104         * config/mips/mips.opt (mfused-madd): Remove.
1105         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
1106         * config/mips/mips.h (TARGET_MIPS8000): New.
1107         (ISA_HAS_FP_MADD4_MSUB4): Remove.
1108         (ISA_HAS_FP_MADDF_MSUBF): Remove.
1109         (ISA_HAS_FP_MADD3_MSUB3): Remove.
1110         (ISA_HAS_NMADD4_NMSUB4): Remove.
1111         (ISA_HAS_NMADD3_NMSUB3): Remove.
1112         (ISA_HAS_FUSED_MADD4): New.
1113         (ISA_HAS_UNFUSED_MADD4): New.
1114         (ISA_HAS_FUSED_MADDF): New.
1115         (ISA_HAS_FUSED_MADD3): New.
1116         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
1117         (*fma<mode>4_madd3) New.
1118         (*fma<mode>4_madd4) New.
1119         (*fma<mode>4_maddf) New.
1120         (fms<mode>4) New.
1121         (*fms<mode>4_msub3) New.
1122         (*fms<mode>4_msub4) New.
1123         (fnma<mode>4) New.
1124         (*fnma<mode>4_nmadd3) New.
1125         (*fnma<mode>4_nmadd4) New.
1126         (fnms<mode>4) New.
1127         (*fnms<mode>4_nmsub3) New.
1128         (*fnms<mode>4_nmsub4) New.
1129         (*madd4<mode>) Modify to be unfused only.
1130         (*msub4<mode>) Modify to be unfused only.
1131         (*nmadd4<mode>) Modify to be unfused only.
1132         (*nmsub4<mode>) Modify to be unfused only.
1133         (*madd3<mode>) Remove.
1134         (*msub3<mode>) Remove.
1135         (*nmadd3<mode>) Remove.
1136         (*nmsub3<mode>) Remove.
1137         (*nmadd3<mode>_fastmath) Remove.
1138         (*nmsub3<mode>_fastmath) Remove.
1139         (*nmadd4<mode>_fastmath) Update condition.
1140         (*nmsub4<mode>_fastmath) Update condition.
1141
1142 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
1143
1144         PR target/65956
1145         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
1146         alignment attribute, exploring one level down for records and arrays.
1147
1148 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
1149
1150         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
1151         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
1152         Copy operand 1 to a temporary if !ext_register_operand.  Remove
1153         ancient extract_bit_field workaround.
1154         (*extv<mode>): Rename from *mov<mode>_extv_1.
1155         (*extvqi): Rename from *movqi_extv_1.
1156         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
1157         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
1158         to a temporary if !ext_register_operand.  Remove ancient
1159         extract_bit_field workaround.
1160         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
1161         (*extzvqi): Rename from *movqi_extzv_2.
1162         (*testqi_ext_3): Remove modes from const_int_operand predicated
1163         operands.  Add "n" constraint.
1164         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
1165         operand.  Add "J" constraint.
1166         (*btsq, *btrq, *btcq peephole2s): Remove mode from
1167         const_0_to_63 predicated operand.
1168         (regmode): New insn attribute.
1169         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
1170         to nonmemory_operand.  Use regmode insn attribute.
1171         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
1172         (*jcc_bt<mode>_mask): Remove mode from operand 3.
1173         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
1174         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
1175         operands.  Use "N" constraint instead of "n".
1176
1177 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
1178
1179         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
1180
1181 2015-07-06  Richard Biener  <rguenther@suse.de>
1182
1183         PR tree-optimization/66772
1184         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
1185         values are available in the PHI node BB when there are
1186         still unexecutable edges.
1187
1188 2015-07-06  Richard Biener  <rguenther@suse.de>
1189
1190         PR tree-optimization/66767
1191         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
1192         Make sure to build the alignment test on a SSA name without
1193         final alignment info valid only if the alignment test
1194         evaluates to true.
1195
1196 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
1197
1198         PR target/66620
1199         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
1200         loop start when inserting LSETUP.
1201
1202 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
1203
1204         PR target/53383
1205         * config/i386/i386.c (ix86_option_override_internal): Allow
1206         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
1207
1208 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1209
1210         * read-md.c (decimal_string): Rename to ...
1211         (md_decimal_string): ... this.
1212         (handle_enum): Reflect this.
1213
1214 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1215
1216         PR target/66731
1217         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
1218
1219 2015-07-06  Richard Biener  <rguenther@suse.de>
1220
1221         PR middle-end/66759
1222         * match.pd: Add missing constraint of y to REAL_CST in
1223         REAL_CST - x CMP y to y - CST CMP x simplification.
1224
1225 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
1226
1227         PR tree-optimization/66757
1228         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
1229
1230 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
1231             Sandra Loosemore <sandra@codesourcery.com>
1232
1233         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
1234         Delete extern declaration.
1235         (gprel_constant_p): Add extern declaration.
1236         * config/nios2/constraints.md ("S"): Use gprel_constant_p
1237         instead of nios2_symbol_ref_in_small_data_p.
1238         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
1239         (nios2_symbol_ref_in_small_data_p): Make static.
1240         (gprel_constant_p): Make non-static.
1241
1242 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
1243
1244         * doc/fragments.texi (Target Fragment): Convert debian.org
1245         link to use https.
1246         * doc/install.texi (Configuration): Ditto.
1247
1248 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
1249
1250         PR tree-optimization/66718
1251         * tree-vect-stmts.c (vectorizable_call): Replace uses of
1252         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
1253
1254         PR tree-optimization/66718
1255         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
1256         vectorizable_load, vectorizable_condition): Move vectype,
1257         nunits, ncopies computation after checking what kind of statement
1258         stmt is.
1259
1260 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1261
1262         * target-insns.def (extv, extzv, insv): New targetm instruction
1263         patterns.
1264         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
1265         interface.
1266         * recog.c (simplify_while_replacing): Likewise.
1267
1268 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1269
1270         * target-insns.def (doloop_begin, doloop_end): New targetm
1271         instruction patterns.
1272         * loop-init.c: Include target.h.
1273         (pass_loop2::gate): Use the new targetm patterns instead of
1274         HAVE_*/gen_* interface.
1275         (pass_rtl_doloop::gate): Likewise.
1276         (pass_rtl_doloop::execute): Remove preprocessor condition.
1277         * hw-doloop.c: Build unconditionally.
1278         * loop-doloop.c: Likewise.
1279         (doloop_optimize): Use the new targetm patterns instead of
1280         HAVE_*/gen_* interface.
1281         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
1282         * modulo-sched.c (doloop_register_get): Likewise.
1283
1284 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1285
1286         * target-insns.def (clear_cache): New targetm instruction pattern.
1287         * builtins.c (expand_builtin___clear_cache): Use it instead of
1288         HAVE_*/gen_* interface.
1289
1290 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1291
1292         * target-insns.def (allocate_stack, check_stack, probe_stack)
1293         (probe_stack_address, split_stack_prologue, split_stack_space_check):
1294         New targetm instruction patterns.
1295         * explow.c (allocate_dynamic_stack_space): Use them instead of
1296         HAVE_*/gen_* interface.
1297         (emit_stack_probe): Likewise.
1298         (probe_stack_range): Likewise.
1299         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1300
1301 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1302
1303         * target-insns.def (stack_protect_set, stack_protect_test): New
1304         targetm instruction patterns.
1305         * cfgexpand.c (stack_protect_prologue): Use them instead of
1306         HAVE_*/gen_* interface.
1307         * function.c (stack_protect_epilogue): Likewise.
1308
1309 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1310
1311         * expr.h (gen_move_insn_uncast): Delete.
1312         * expr.c (gen_move_insn_uncast): Delete.
1313
1314 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1315
1316         * target-insns.def (restore_stack_block, restore_stack_function)
1317         (restore_stack_nonlocal, save_stack_block, save_stack_function)
1318         (save_stack_nonlocal): New targetm instruction patterns.
1319         * builtins.c (expand_builtin_apply): Use them instead of
1320         HAVE_*/gen_* interface.
1321         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
1322
1323 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1324
1325         * target-insns.def (trap): New targetm instruction pattern.
1326         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
1327         interface.
1328         * explow.c (allocate_dynamic_stack_space): Likewise.
1329         * ifcvt.c (find_if_header): Likewise.
1330
1331 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1332
1333         * target-insns.def (prefetch): New targetm instruction pattern.
1334         * tree-ssa-loop-prefetch.c: Include targeth.
1335         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
1336         of HAVE_*/gen_* interface.
1337         * builtins.c (expand_builtin_prefetch): Likewise.
1338         * toplev.c (process_options): Likewise.
1339
1340 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1341
1342         * target-insns.def (untyped_call, untyped_return): New targetm
1343         instruction patterns.
1344         * builtins.c (expand_builtin_apply): Use them instead of
1345         HAVE_*/gen_* interface.
1346         (result_vector): Define unconditionally.
1347
1348 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1349
1350         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
1351         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
1352         (nonlocal_goto_receiver): New targetm instruction patterns.
1353         * builtins.c (expand_builtin_setjmp_setup): Use them instead
1354         of HAVE_*/gen_* interface.
1355         (expand_builtin_setjmp_receiver): Likewise.
1356         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
1357         * except.c (expand_dw2_landing_pad_for_region): Likewise.
1358
1359 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1360
1361         * target.def: Add code_for_* hooks.
1362         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
1363         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
1364         * target-insns.def (casesi, tablejump): New targetm instruction
1365         patterns.
1366         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
1367         (do_tablejump): Likewise.
1368         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
1369         (expand_sjlj_dispatch_table): Likewise.
1370         * targhooks.c (default_case_values_threshold): Likewise.
1371
1372 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
1373
1374         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
1375         Use rtx_insn * instead of rtx.
1376         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
1377         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
1378         (nios2_call_tls_get_addr): Likewise.
1379         (nios2_emit_expensive_div): Likewise.
1380         (nios2_emit_move_sequence): Change return type to bool.
1381         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
1382         Change return type to bool.
1383
1384 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1385
1386         PR target/66747
1387         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
1388
1389 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
1390
1391         PR target/66114
1392         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
1393         of register_operand.  Remove constraint.
1394
1395 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
1396
1397         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
1398         the first argument.
1399
1400 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
1401
1402         * attribs.c (decl_attributes): Guard inform with the return value
1403         of the preceding warning.
1404
1405 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
1406
1407         * doc/invoke.texi (moverride): Move to correct section.
1408
1409 2015-07-03  Richard Biener  <rguenther@suse.de>
1410
1411         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
1412         Copy from tree.c
1413         (dt_operand::gen_gimple_expr): After valueizing operands
1414         re-canonicalize operand order for commutative tree codes.
1415
1416 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
1417
1418         PR target/66746.
1419         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
1420         is defined.
1421         (__crc32w): Likewise.
1422         (__crc32d): Likewise.
1423         (__rdpmc): Likewise.
1424         (__rdtscp): Likewise.
1425         (_rdpmc): Likewise.
1426         (_rdtscp): Likewise.
1427         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
1428         is defined.
1429
1430 2015-07-03  Richard Biener  <rguenther@suse.de>
1431
1432         * fold-const.c (fold_mathfn_compare): Remove.
1433         (fold_inf_compare): Likewise.
1434         (fold_comparison): Move floating point comparison simplifications...
1435         * match.pd: ... to patterns here.  Introduce simple_comparisons
1436         operator list and use it for patterns formerly in fold_comparison.
1437
1438 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
1439
1440         PR tree-optimization/66119
1441         * toplev.c (process_options): Don't set up default values for
1442         the sra_max_scalarization_size_{speed,size} parameters.
1443         * tree-sra (analyze_all_variable_accesses): If no values
1444         have been set for the sra_max_scalarization_size_{speed,size}
1445         parameters, call get_move_ratio to get target defaults.
1446
1447 2015-07-03  Richard Biener  <rguenther@suse.de>
1448
1449         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
1450         * match.pd: ... here.
1451
1452 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
1453
1454         PR target/37072
1455         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
1456         is not actually the default on FreeBSD.
1457
1458 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1459
1460         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
1461         definition.
1462         (CMPGE_8HI): Likewise.
1463         (CMPGE_4SI): Likewise.
1464         (CMPGE_2DI): Likewise.
1465         (CMPGE_U16QI): Likewise.
1466         (CMPGE_U8HI): Likewise.
1467         (CMPGE_U4SI): Likewise.
1468         (CMPGE_U2DI): Likewise.
1469         (CMPLE_16QI): Likewise.
1470         (CMPLE_8HI): Likewise.
1471         (CMPLE_4SI): Likewise.
1472         (CMPLE_2DI): Likewise.
1473         (CMPLE_U16QI): Likewise.
1474         (CMPLE_U8HI): Likewise.
1475         (CMPLE_U4SI): Likewise.
1476         (CMPLE_U2DI): Likewise.
1477         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1478         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
1479         ALTIVEC_BUILTIN_VEC_CMPLE.
1480         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
1481         floating-point vector modes.
1482         (vector_nlt<mode>): New define_expand.
1483         (vector_nltu<mode>): Likewise.
1484         (vector_ngt<mode>): Likewise.
1485         (vector_ngtu<mode>): Likewise.
1486
1487 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
1488
1489         PR rtl-optimization/66706
1490         * combine.c (make_compound_operation): If an AND of SUBREG of
1491         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
1492
1493 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
1494
1495         * tree-pass.h (make_pass_ch_vect): New.
1496         * passes.def: Add pass_ch_vect just before pass_if_conversion.
1497
1498         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
1499         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
1500         make_pass_ch_vect): New.
1501         (pass_ch): Extend ch_base.
1502
1503         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
1504         (ch_base::copy_headers): ...here.
1505
1506 2015-07-02  Richard Biener  <rguenther@suse.de>
1507
1508         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
1509         * fold-const.c (get_pointer_modulus_and_residue): Remove.
1510         (fold_binary_loc): Implement (T)ptr & CST in terms of
1511         get_pointer_alignment_1.
1512         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1513         Make sure to build the alignment test on a SSA name without
1514         final alignment info valid only after the prologue.
1515
1516 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
1517
1518         * config/cris/cris.md ("epilogue"): Remove condition.
1519         ("prologue"): Ditto.
1520
1521 2015-07-02  Richard Biener  <rguenther@suse.de>
1522
1523         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
1524         parameter to record a condition that is false.
1525         (record_conditions): When recording an extra NE_EXPR that is
1526         true also record a EQ_EXPR that is false.
1527
1528 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
1529
1530         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
1531         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
1532         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
1533         (set_iv, find_interesting_uses_address, add_candidate_1): New
1534         argument to alloc_iv.
1535         (find_interesting_uses_op, find_interesting_uses_cond): Don't
1536         duplicate struct iv.
1537         (free_loop_data): Don't free struct iv explicitly.
1538         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
1539
1540 2015-07-01  DJ Delorie  <dj@redhat.com>
1541
1542         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
1543         (LIB_SPEC): Add.
1544         (SUPPORTS_DISCRIMINATOR): Define.
1545
1546 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
1547
1548         PR bootstrap/66685
1549         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
1550         there are no CALLs in the same pattern.
1551
1552 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1553
1554         PR rtl-optimization/61047
1555         * rtlanal.c (get_initial_register_offset): New function.
1556         (rtx_addr_can_trap_p_1): Check offsets of stack references.
1557
1558 2015-07-01  Richard Biener  <rguenther@suse.de>
1559
1560         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
1561         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
1562         ~X CMP C -> X CMP' ~C to ...
1563         * match.pd: ... patterns here.
1564
1565 2015-07-01  Nick Clifton  <nickc@redhat.com>
1566
1567         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
1568         a 16-bit value into a 20-bit memory slot.
1569
1570 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
1571
1572         * doc/sourcebuild.texi (AArch64-specific attributes): Document
1573         "aarch64_tiny", "aarch64_small", "aarch64_large",
1574         "aarch64_little_endian", "aarch64_big_endian".
1575
1576 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
1577
1578         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
1579         Document "aarch64_small_fpic".
1580
1581 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
1582
1583         * configure.ac: Add check for aarch64 assembler -fpic relocation
1584         modifier support.
1585         * configure: Regenerate.
1586         * config.in: Regenerate.
1587         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
1588         to -fPIC if not support of -fpic relocation modifier in assembler.
1589
1590 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
1591
1592         PR bootstrap/66685
1593         * rtl.c (classify_insn): Handle returns in PARALLELs.
1594
1595 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
1596
1597         PR middle-end/66633
1598         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
1599         to true if the function is nested and if not optimizing.
1600         (convert_local_omp_clauses): Initialize need_frame to true if the
1601         function contains nested functions and if not optimizing.
1602
1603 2015-07-01  Richard Biener  <rguenther@suse.de>
1604
1605         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
1606         (X & Y) ^ Y -> ~X & Y transforms to ...
1607         * match.pd: ... here.
1608
1609 2015-07-01  Richard Biener <rguenther@suse.de>
1610
1611         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
1612         of converts to avoid uninteresting noise from the conversion
1613         simplifying patterns.
1614
1615 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
1616
1617         * config/c6x/c6x.c (try_rename_operands): Do not depend on
1618         gcc_assert evaluating its argument for side-effect.
1619
1620 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
1621
1622         PR target/64833
1623         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
1624         flag_pic is set.
1625
1626 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
1627
1628         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
1629         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
1630         (hash_scc): Add this_ref_p and ref_p parameters and pass them
1631         to the inner DFS walk.
1632
1633 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
1634
1635         * target-insns.def (jump): New targetm instruction pattern.
1636         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
1637         instead of gen_jump.
1638         (fix_up_crossing_landing_pad): Likewise.
1639         (add_labels_and_missing_jumps): Likewise.
1640         (fix_crossing_conditional_branches): Likewise.
1641         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1642         (force_nonfallthru_and_redirect): Likewise.
1643         * cse.c (cse_insn): Likewise.
1644         * expmed.c (expand_divmod): Likewise.
1645         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
1646         * haifa-sched.c (init_before_recovery): Likewise.
1647         (sched_create_recovery_edges): Likewise.
1648         * ifcvt.c (find_cond_trap): Likewise.
1649         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
1650         (expand_float, expand_fix): Likewise.
1651         * stmt.c (emit_jump): Likewise.
1652
1653 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
1654
1655         * defaults.h (HAVE_load_multiple, gen_load_multiple)
1656         (HAVE_store_multiple, gen_store_multiple): Delete.
1657         * target-insns.def (load_multiple, store_multiple): New targetm
1658         instruction patterns.
1659         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
1660         of HAVE_*/gen_* interface.
1661
1662 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
1663
1664         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
1665         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
1666         (gen_mem_signal_fence): Delete.
1667         * target-insns.def (mem_signal_fence, mem_thread_fence)
1668         (memory_barrier): New targetm instruction patterns.
1669         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
1670         interface.
1671         (expand_mem_signal_fence): Likewise.
1672
1673 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
1674
1675         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
1676         * target-insns.def (epilogue, prologue, sibcall_prologue): New
1677         targetm instruction patterns.
1678         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
1679         interface.
1680         * calls.c (expand_call): Likewise.
1681         * cfgrtl.c (cfg_layout_finalize): Likewise.
1682         * df-scan.c (df_get_entry_block_def_set): Likewise.
1683         (df_get_exit_block_use_set): Likewise.
1684         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
1685         * final.c (final_start_function): Likewise.
1686         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1687         (reposition_prologue_and_epilogue_notes): Likewise.
1688         * reorg.c (find_end_label): Likewise.
1689         * toplev.c (process_options): Likewise.
1690
1691 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
1692
1693         * typed-splay-tree.h: New file.
1694
1695 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
1696
1697         PR debug/66691
1698         * lra-int.h (lra_substitute_pseudo): Add a parameter.
1699         (lra_substitute_pseudo_within_insn): Ditto.
1700         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
1701         of constant.
1702         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
1703         to lra_substitute_pseudo.
1704         * lra-lives.c (process_bb_lives): Add an argument to
1705         lra_substitute_pseudo_within_insn call.
1706         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
1707         argument to lra_substitute_pseudo and
1708         lra_substitute_pseudo_within_insn calls.
1709         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
1710
1711 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1712
1713         * configure: Regenerated.
1714
1715 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1716
1717         * config.gcc: Support i[34567]86-*-elfiamcu target.
1718         * config/i386/iamcu.h: New.
1719         * config/i386/i386.opt: Add -miamcu.
1720         * doc/invoke.texi: Document -miamcu.
1721         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
1722         off x87/MMX/SSE/AVX codegen for -miamcu.
1723         * config/i386/i386-c.c (ix86_target_macros_internal): Define
1724         __iamcu/__iamcu__ for -miamcu.
1725         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
1726         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
1727         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
1728         * config/i386/i386.c (ix86_option_override_internal): Ignore and
1729         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
1730         MCU by default.  Default long double to 64-bit for Intel MCU.
1731         Turn on -freg-struct-return for Intel MCU.  Issue an error when
1732         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
1733         AVX is turned on.
1734         (function_arg_advance_32): Pass value whose size is no larger
1735         than 8 bytes in registers for Intel MCU.
1736         (function_arg_32): Likewise.
1737         (ix86_return_in_memory): Return value whose size is no larger
1738         than 8 bytes in registers for Intel MCU.
1739         (iamcu_alignment): New function.
1740         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
1741         true.
1742         (ix86_local_alignment): Don't increase alignment for Intel MCU.
1743         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
1744         true.
1745
1746 2015-06-30  Marek Polacek  <polacek@redhat.com>
1747
1748         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
1749         both operands of the resulting expression.
1750
1751         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
1752         the final expression with the operand's type and then convert
1753         it to the type of the expression.
1754
1755 2015-06-30  Richard Biener  <rguenther@suse.de>
1756
1757         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
1758         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
1759         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
1760         * match.pd: ... to patterns here.
1761
1762 2015-06-30  Richard Biener  <rguenther@suse.de>
1763
1764         PR tree-optimization/66704
1765         * tree-vect-data-refs.c (vect_setup_realignment): Use
1766         make_ssa_name for non-SSA name source.
1767
1768 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
1769
1770         PR middle-end/66702
1771         * omp-low.c (simd_clone_adjust): Handle addressable linear
1772         or uniform parameters or non-gimple type uniform parameters.
1773
1774 2015-06-30  Richard Biener  <rguenther@suse.de>
1775
1776         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
1777         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
1778         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
1779         * match.pd: ... here.
1780         Add a few cases of A - B -> A + (-B) when B "easily" negates.
1781         Move (x & y) | x -> x and friends before
1782         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
1783
1784 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
1785
1786         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
1787         -mfix-ut699 is not specified.
1788         (leon3_load): Rename into...
1789         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
1790         is specified.
1791
1792 2015-06-30  Marek Polacek  <polacek@redhat.com>
1793
1794         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
1795         * match.pd: ... here.
1796
1797 2015-06-30  Richard Biener  <rguenther@suse.de>
1798
1799         * target-insns.def (canonicalize_funcptr_for_compare): Add.
1800         * fold-const.c (build_range_check): Replace uses of
1801         HAVE_canonicalize_funcptr_for_compare.
1802         (fold_widened_comparison): Likewise.
1803         (fold_sign_changed_comparison): Likewise.
1804         * dojump.c: Include "target.h".
1805         (do_compare_and_jump): Replace uses of
1806         HAVE_canonicalize_funcptr_for_compare and
1807         gen_canonicalize_funcptr_for_compare.
1808         * expr.c (do_store_flag): Likewise.
1809
1810 2015-06-30  Tom de Vries  <tom@codesourcery.com>
1811
1812         PR tree-optimization/66652
1813         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
1814         max_loop_iterations to determine if nit + 1 overflows.
1815
1816 2015-06-30  Richard Biener  <rguenther@suse.de>
1817
1818         * tree-vrp.c (register_edge_assert_for_2): Also register
1819         asserts for dominating conversion results.
1820
1821 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
1822
1823         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
1824         field in struct iv.
1825
1826 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
1827
1828         PR target/66509
1829         * configure.ac: Fix filds and fildq test for 64-bit.
1830         * configure: Regenerated.
1831
1832 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
1833
1834         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
1835         (nvptx_reorg): Here.  Keep the non-subreg pieces.
1836
1837 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
1838
1839         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
1840         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
1841
1842 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
1843
1844         * config/i386/i386.md (*jcc_1): Use %! in asm template.
1845         Set attribute "length_nobnd" instead of "length".
1846         (*jcc_2): Ditto.
1847         (jump): Ditto.
1848         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
1849
1850 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
1851
1852         * config/nios2/nios2.c (nios2_delegitimize_address): Make
1853         assert less restrictive.
1854
1855 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1856
1857         PR fortran/66605
1858         * cgraphunit.c (cgraph_node::finalize_function): Do not call
1859         do_warn_unused_parameter.
1860         * function.c (do_warn_unused_parameter): Move from here.
1861         * function.h (do_warn_unused_parameter): Do not declare.
1862
1863 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
1864
1865         PR target/65697
1866         * gcc.target/arm/armv-sync-comp-swap.c: New.
1867         * gcc.target/arm/armv-sync-op-acquire.c: New.
1868         * gcc.target/arm/armv-sync-op-full.c: New.
1869         * gcc.target/arm/armv-sync-op-release.c: New.
1870
1871 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
1872
1873         PR target/65697
1874         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
1875         initial acquire barrier with final barrier.
1876
1877 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
1878
1879         PR target/65697
1880         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
1881         initial acquire barrier with final barrier.
1882
1883 2015-06-29  Richard Henderson  <rth@redhat.com>
1884
1885         * config/i386/constraints.md (Bf): New constraint.
1886         * config/i386/i386-c.c (ix86_target_macros): Define
1887         __GCC_ASM_FLAG_OUTPUTS__.
1888         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
1889         as flags outputs.
1890         * doc/extend.texi (FlagOutputOperands): Document them.
1891
1892 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
1893
1894         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
1895         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
1896         unspec name.
1897         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
1898         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
1899         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
1900         (aarch64_symbol_context): Ditto.
1901         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
1902         and use new pattern name.
1903         (aarch64_expand_mov_immediate): Ditto.
1904         (aarch64_print_operand): Ditto.
1905         (aarch64_classify_tls_symbol): Ditto.
1906
1907 2015-06-29  Marek Polacek  <polacek@redhat.com>
1908             Marc Glisse  <marc.glisse@inria.fr>
1909
1910         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
1911         * match.pd: ... pattern here.
1912
1913 2015-06-29  Tom de Vries  <tom@codesourcery.com>
1914
1915         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
1916         function structure.
1917
1918 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
1919
1920         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
1921         feature description, split out the native option, add a link to
1922         the feature documentation, rearrange and slightly rewrite text.
1923         (Aarch64 options, -mcpu): Likewise.
1924         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
1925         +rdma implies Adv. SIMD.
1926
1927 2015-06-29  Marek Polacek  <polacek@redhat.com>
1928
1929         PR c/66322
1930         * function.c (stack_protect_epilogue): Remove a cast to int.
1931         * doc/invoke.texi: Update -Wswitch-bool description.
1932
1933 2015-06-29  Richard Biener  <rguenther@suse.de>
1934
1935         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
1936         * fold-const.c (fold_binary_loc): Move &A - &B simplification
1937         via ptr_difference_const ...
1938         * match.pd: ... here.
1939         When matching (X ^ Y) == Y also match with swapped operands.
1940
1941 2015-06-29  Richard Biener  <rguenther@suse.de>
1942
1943         * lto-streamer.h (LTO_major_version): Bump to 5.
1944
1945 2015-06-29  Richard Biener  <rguenther@suse.de>
1946
1947         PR tree-optimization/66677
1948         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
1949         STMT_VINFO_VEC_STMT clobbering less strict.
1950
1951 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
1952
1953         PR middle-end/64130
1954         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
1955         division, compute max and min when value ranges for dividend and
1956         divisor are available.
1957
1958 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
1959             Sandra Loosemore <sandra@codesourcery.com>
1960
1961         * regrename.h (regrename_do_replace): Change to return bool.
1962         * regrename.c (rename_chains): Check return value of
1963         regname_do_replace.
1964         (regrename_do_replace): Re-validate the modified insns and
1965         return bool status.
1966         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
1967         Update to match rename_chains changes.
1968         * config/c6x/c6x.c (try_rename_operands): Assert that
1969         regrename_do_replace returns true.
1970
1971 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
1972
1973         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
1974         operand 2 here.  Use copy_addr_to_reg to copy non-index
1975         register operand 2 to a temporary.
1976         (<mode>_stx): Ditto for operand 1.
1977         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
1978         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
1979         (ix86_store_bounds): Ditto.
1980
1981 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
1982
1983         * print-tree.c (print_node) [TREE_VEC]: Print its length.
1984
1985 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
1986
1987         * gimple.c (gimple_call_set_fndecl): Remove.
1988         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
1989         build1_loc directly instead of build_fold_addr_expr_loc.
1990
1991 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
1992
1993         * hash-map.h (hash_map::traverse): Use the definition of the
1994         Key typedef rather than the typedef itself.
1995
1996 2015-06-26  Martin Jambor  <mjambor@suse.cz>
1997
1998         PR debug/66301
1999         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
2000         NULL instead of calling dump_enabled_p.
2001
2002 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
2003
2004         * config/aarch64/aarch64.opt: (override): New.
2005         * doc/invoke.texi (override): Document.
2006         * config/aarch64/aarch64.c (aarch64_flag_desc): New
2007         (aarch64_fusible_pairs): Likewise.
2008         (aarch64_tuning_flags): Likewise.
2009         (aarch64_tuning_override_function): Likewise.
2010         (aarch64_tuning_override_functions): Likewise.
2011         (aarch64_parse_one_option_token): Likewise.
2012         (aarch64_parse_boolean_options): Likewise.
2013         (aarch64_parse_fuse_string): Likewise.
2014         (aarch64_parse_tune_string): Likewise.
2015         (aarch64_parse_one_override_token): Likewise.
2016         (aarch64_parse_override_string): Likewise.
2017         (aarch64_override_options): Parse the -override string if it
2018         is present.
2019
2020 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
2021
2022         * config/aarch64/aarch64-protos.h (tune_params): Remove
2023         const from members.
2024         (aarch64_tune_params): Remove const, change to no longer be
2025         a pointer.
2026         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
2027         change to no longer be a pointer, initialize to generic_tunings.
2028         (aarch64_min_divisions_for_recip_mul): Change dereference of
2029         aarch64_tune_params to member access.
2030         (aarch64_reassociation_width): Likewise.
2031         (aarch64_rtx_mult_cost): Likewise.
2032         (aarch64_address_cost): Likewise.
2033         (aarch64_branch_cost): Likewise.
2034         (aarch64_rtx_costs): Likewise.
2035         (aarch64_register_move_cost): Likewise.
2036         (aarch64_memory_move_cost): Likewise.
2037         (aarch64_sched_issue_rate): Likewise.
2038         (aarch64_builtin_vectorization_cost): Likewise.
2039         (aarch64_override_options): Take a copy of the selected tuning
2040         struct in to aarch64_tune_params, rather than just setting
2041         a pointer, change dereferences of aarch64_tune_params to member
2042         accesses.
2043         (aarch64_override_options_after_change): Change dereferences of
2044         aarch64_tune_params to member access.
2045         (aarch64_macro_fusion_p): Likewise.
2046         (aarch_macro_fusion_pair_p): Likewise.
2047         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
2048
2049 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
2050
2051         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
2052         (aarch64_tune_flags): Likewise.
2053         (AARCH64_TUNE_FMA_STEERING): Likewise.
2054         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
2055         to AARCH64_FL_USE_FMA_STEERING_PASS.
2056         (cortex-a57.cortex-a53): Likewise.
2057         (cortex-a72): Use cortexa72_tunings.
2058         (cortex-a72.cortex-a53): Likewise.
2059         (exynos-m1): Likewise.
2060         * config/aarch64/aarch64-protos.h (tune_params): Add
2061         a field: extra_tuning_flags.
2062         * config/aarch64/aarch64-tuning-flags.def: New.
2063         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
2064         (aarch64_extra_tuning_flags): Likewise.
2065         (aarch64_tune_params): Declare here.
2066         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
2067         (cortexa53_tunings): Likewise.
2068         (cortexa57_tunings): Likewise.
2069         (thunderx_tunings): Likewise.
2070         (xgene1_tunings): Likewise.
2071         (cortexa72_tunings): New.
2072         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
2073          (gate): Check against aarch64_tune_params.
2074         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
2075         aarch64-protos.h.
2076
2077 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
2078
2079         * config/aarch64/aarch64-fusion-pairs.def: New.
2080         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
2081         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
2082         aarch64_fusion_pairs.
2083         (AARCH64_FUSE_MOV_MOVK): Likewise.
2084         (AARCH64_FUSE_ADRP_ADD): Likewise.
2085         (AARCH64_FUSE_MOVK_MOVK): Likewise.
2086         (AARCH64_FUSE_ADRP_LDR): Likewise.
2087         (AARCH64_FUSE_CMP_BRANCH): Likewise.
2088
2089 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
2090
2091         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
2092         SYMBOL_SMALL_GOT_28K.
2093         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
2094         relocation modifiers.
2095         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
2096         (ldr_got_small_28k_<mode>): New.
2097         (ldr_got_small_28k_sidi): New.
2098         * config/aarch64/iterators.md (got_modifier): New mode iterator.
2099         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
2100         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
2101         SYMBOL_SMALL_GOT_28K.
2102         (aarch64_rtx_costs): Add costs for new instruction sequences.
2103         (initialize_aarch64_code_model): Initialize new model.
2104         (aarch64_classify_symbol): Recognize new model and new symbol classification.
2105         (aarch64_asm_preferred_eh_data_format): Support new model.
2106         (aarch64_load_symref_appropriately): Generate new instruction
2107         sequences for -fpic.
2108         (TARGET_USE_PSEUDO_PIC_REG): New definition.
2109         (aarch64_use_pseudo_pic_reg): New function.
2110
2111 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
2112
2113         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
2114         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
2115         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
2116         (aarch64_expand_mov_immediate): Ditto.
2117         (aarch64_print_operand): Ditto.
2118         (aarch64_classify_symbol): Ditto.
2119
2120 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
2121
2122         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
2123
2124 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
2125
2126         PR bootstrap/66638
2127         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
2128         assertion failed.  Remove assertion itself.
2129
2130 2015-06-26  Richard Biener  <rguenther@suse.de>
2131
2132         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
2133         and -A CMP CST -> A CMP -CST which is redundant with a pattern
2134         in match.pd.
2135         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
2136         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
2137         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
2138         * match.pd: ... patterns here.
2139
2140 2015-06-26  Marek Polacek  <polacek@redhat.com>
2141
2142         * match.pd ((x | y) & ~(x & y) -> x ^ y,
2143         (x | y) & (~x ^ y) -> x & y): New patterns.
2144
2145 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
2146
2147         * rtl.h (emit): Add an optional boolean parameter to control
2148         whether barriers are emitted.
2149         * emit-rtl.c (emit): Likewise.
2150         * gensupport.c (get_emit_function): Return null rather than "emit".
2151         * genemit.c (gen_emit_seq): Handle the null return value.
2152         Don't emit barriers after the final instruction in the sequence.
2153         * gentarget-def.c (main): Don't emit barriers after the instruction.
2154
2155 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2156
2157         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
2158         TARGET_UNIFIED_ASM.
2159
2160 2015-06-26  Richard Biener  <rguenther@suse.de>
2161
2162         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
2163
2164 2015-06-26  Richard Biener  <rguenther@suse.de>
2165
2166         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
2167         irrespective on whether the inner operation has a single use
2168         of both off are constant.
2169
2170 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
2171             Segher Boessenkool  <segher@kernel.crashing.org>
2172
2173         PR target/66412
2174         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
2175         before doing PUT_MODE or PUT_CODE on operands to avoid
2176         in-place RTX modification.
2177
2178 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
2179
2180         * gentarget-def.c (def_target_insn): Cast return of strtol to
2181         unsigned int.
2182
2183 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
2184
2185         * gimple.h (gimple_call_set_fn): Move inline function.
2186         * gimple.c (gimple_call_set_fn): Relocate here.
2187
2188 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
2189
2190         PR target/65979
2191         PR target/66611
2192         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
2193         the replacement insn will work.
2194
2195 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
2196
2197         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
2198         by default.
2199
2200 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
2201
2202         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
2203         * cgraph.h: Include ipa-ref.h and plugin-api.h.
2204         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
2205         (symtab_node::address_can_be_compared_p): Move function.
2206         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
2207         definition here.
2208         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
2209         * auto-profile.c: Likewise.
2210         * bb-reorder.c: Likewise.
2211         * builtins.c: Likewise.
2212         * calls.c: Likewise.
2213         * cfgexpand.c: Likewise.
2214         * cgraphbuild.c: Likewise.
2215         * cgraphclones.c: Likewise.
2216         * cgraphunit.c: Likewise.
2217         * combine.c: Likewise.
2218         * coverage.c: Likewise.
2219         * data-streamer-in.c: Likewise.
2220         * data-streamer-out.c: Likewise.
2221         * data-streamer.c: Likewise.
2222         * dbxout.c: Likewise.
2223         * dwarf2out.c: Likewise.
2224         * except.c: Likewise.
2225         * expr.c: Likewise.
2226         * final.c: Likewise.
2227         * fold-const.c: Likewise.
2228         * ggc-page.c: Likewise.
2229         * gimple-fold.c: Likewise.
2230         * gimple-iterator.c: Likewise.
2231         * gimple-pretty-print.c: Likewise.
2232         * gimple-streamer-in.c: Likewise.
2233         * gimple-streamer-out.c: Likewise.
2234         * gimple.c: Likewise.
2235         * gimplify.c: Likewise.
2236         * ipa-chkp.c: Likewise.
2237         * ipa-comdats.c: Likewise.
2238         * ipa-cp.c: Likewise.
2239         * ipa-devirt.c: Likewise.
2240         * ipa-icf-gimple.c: Likewise.
2241         * ipa-icf.c: Likewise.
2242         * ipa-inline-analysis.c: Likewise.
2243         * ipa-inline-transform.c: Likewise.
2244         * ipa-inline.c: Likewise.
2245         * ipa-polymorphic-call.c: Likewise.
2246         * ipa-profile.c: Likewise.
2247         * ipa-prop.c: Likewise.
2248         * ipa-pure-const.c: Likewise.
2249         * ipa-ref.c: Likewise.
2250         * ipa-reference.c: Likewise.
2251         * ipa-split.c: Likewise.
2252         * ipa-utils.c: Likewise.
2253         * ipa-visibility.c: Likewise.
2254         * ipa.c: Likewise.
2255         * langhooks.c: Likewise.
2256         * lto-cgraph.c: Likewise.
2257         * lto-compress.c: Likewise.
2258         * lto-opts.c: Likewise.
2259         * lto-section-in.c: Likewise.
2260         * lto-section-out.c: Likewise.
2261         * lto-streamer-in.c: Likewise.
2262         * lto-streamer-out.c: Likewise.
2263         * lto-streamer.c: Likewise.
2264         * omp-low.c: Likewise.
2265         * opts-global.c: Likewise.
2266         * passes.c: Likewise.
2267         * predict.c: Likewise.
2268         * print-tree.c: Likewise.
2269         * profile.c: Likewise.
2270         * ree.c: Likewise.
2271         * sanopt.c: Likewise.
2272         * stor-layout.c: Likewise.
2273         * symtab.c: Likewise.
2274         * toplev.c: Likewise.
2275         * trans-mem.c: Likewise.
2276         * tree-cfg.c: Likewise.
2277         * tree-chkp.c: Likewise.
2278         * tree-eh.c: Likewise.
2279         * tree-emutls.c: Likewise.
2280         * tree-inline.c: Likewise.
2281         * tree-nested.c: Likewise.
2282         * tree-parloops.c: Likewise.
2283         * tree-pretty-print.c: Likewise.
2284         * tree-profile.c: Likewise.
2285         * tree-sra.c: Likewise.
2286         * tree-ssa-alias.c: Likewise.
2287         * tree-ssa-live.c: Likewise.
2288         * tree-ssa-loop-ivcanon.c: Likewise.
2289         * tree-ssa-loop-ivopts.c: Likewise.
2290         * tree-ssa-pre.c: Likewise.
2291         * tree-ssa-sccvn.c: Likewise.
2292         * tree-ssa-strlen.c: Likewise.
2293         * tree-ssa-structalias.c: Likewise.
2294         * tree-streamer-in.c: Likewise.
2295         * tree-streamer-out.c: Likewise.
2296         * tree-streamer.c: Likewise.
2297         * tree-switch-conversion.c: Likewise.
2298         * tree-tailcall.c: Likewise.
2299         * tree-vect-data-refs.c: Likewise.
2300         * tree-vect-stmts.c: Likewise.
2301         * tree-vectorizer.c: Likewise.
2302         * tree.c: Likewise.
2303         * tsan.c: Likewise.
2304         * ubsan.c: Likewise.
2305         * value-prof.c: Likewise.
2306         * varasm.c: Likewise.
2307         * varpool.c: Likewise.
2308         * config/arm/arm.c: Likewise.
2309         * config/bfin/bfin.c: Likewise.
2310         * config/c6x/c6x.c: Likewise.
2311         * config/cris/cris.c: Likewise.
2312         * config/darwin-c.c: Likewise.
2313         * config/darwin.c: Likewise.
2314         * config/i386/i386.c: Likewise.
2315         * config/i386/winnt.c: Likewise.
2316         * config/microblaze/microblaze.c: Likewise.
2317         * config/mips/mips.c: Likewise.
2318         * config/rs6000/rs6000.c: Likewise.
2319         * config/rx/rx.c: Likewise.
2320         * config/s390/s390.c: Likewise.
2321         * config/tilegx/mul-tables.c: Likewise.
2322
2323 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2324
2325         * config/aarch64/aarch64.c, config/alpha/alpha.c,
2326         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
2327         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
2328         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
2329         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
2330         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
2331         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
2332         config/microblaze/microblaze.c, config/mips/mips.c,
2333         config/mmix/mmix.c, config/mn10300/mn10300.c,
2334         config/moxie/moxie.c, config/msp430/msp430.c,
2335         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
2336         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
2337         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
2338         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
2339         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2340         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
2341         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
2342         target-def.h include.
2343         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
2344
2345 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2346
2347         * Makefile.in (TARGET_DEF): Add target-insns.def.
2348         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
2349         (build/gentarget-def.o): New rule.
2350         (genprogrtl): Add target-def.
2351         * target-insns.def, gentarget-def.c: New files.
2352         * target.def: Add targetm.have_* and targetm.gen_* hooks,
2353         based on the contents of target-insns.def.
2354         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
2355         (HAVE_return, gen_return): Delete.
2356         * target-def.h: Include insn-target-def.h.
2357         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
2358         instead of direct calls.  Rely on them to do the appropriate assertions.
2359         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
2360         (convert_jumps_to_returns): Use targetm interface instead of
2361         direct calls.
2362         (thread_prologue_and_epilogue_insns): Likewise.
2363         * reorg.c (find_end_label, dbr_schedule): Likewise.
2364         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
2365         * shrink-wrap.c (convert_to_simple_return): Likewise.
2366         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
2367
2368 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2369
2370         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
2371         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2372         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
2373         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
2374         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
2375         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
2376         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
2377         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
2378         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
2379         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
2380         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
2381         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
2382         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
2383         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2384         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
2385         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
2386         includes to end.
2387
2388 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2389
2390         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
2391         (unbounded_int_hashmap_traits::key_type): Likewise.
2392         * hash-map.h (hash_map): Get the key type from the traits.
2393         * hash-traits.h (default_hash_traits): By default, inherit from the
2394         template parameter.
2395         * alias.c (alias_set_traits): Delete.
2396         (alias_set_entry_d::children): Use alias_set_hash as the first
2397         template parameter.
2398         (record_alias_subset): Update accordingly.
2399         * except.c (tree_hash_traits): Delete.
2400         (type_to_runtime_map): Use tree_hash as the first template parameter.
2401         (init_eh): Update accordingly.
2402         * genmatch.c (capture_id_map_hasher): Delete.
2403         (cid_map_t): Use nofree_string_hash as first template parameter.
2404         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
2405         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
2406         Use symbol_compare_hash as the first template parameter in
2407         subdivide_hash_map.
2408         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
2409         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
2410         template parameter.
2411         * passes.c (pass_registry_hasher): Delete.
2412         (name_to_pass_map): Use nofree_string_hash as the first template
2413         parameter.
2414         (register_pass_name): Update accordingly.
2415         * sanopt.c (sanopt_tree_map_traits): Delete.
2416         (sanopt_tree_triplet_map_traits): Delete.
2417         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
2418         template parameter.
2419         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
2420         the first template parameter.
2421         * sese.c (rename_map_hasher): Delete.
2422         (rename_map_type): Use tree_ssa_name_hash as the first template
2423         parameter.
2424         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
2425         (function_summary::m_map): Use map_hash as the first template
2426         parameter.
2427         (function_summary::release): Update accordingly.
2428         * tree-if-conv.c (phi_args_hash_traits): Delete.
2429         (predicate_scalar_phi): Use tree_operand_hash as the first template
2430         parameter to phi_arg_map.
2431         * tree-inline.h (dependence_hasher): Delete.
2432         (copy_body_data::dependence_map): Use dependence_hash as the first
2433         template parameter.
2434         * tree-inline.c (remap_dependence_clique): Update accordingly.
2435         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
2436         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
2437         parameter.
2438         (addr_stridxptr): Update accordingly.
2439         * value-prof.c (profile_id_traits): Delete.
2440         (cgraph_node_map): Use profile_id_hash as the first template
2441         parameter.
2442         (init_node_map): Update accordingly.
2443         * config/alpha/alpha.c (string_traits): Delete.
2444         (machine_function::links): Use nofree_string_hash as the first
2445         template parameter.
2446         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
2447         * config/m32c/m32c.c (pragma_traits): Delete.
2448         (pragma_htab): Use nofree_string_hash as the first template parameter.
2449         (m32c_note_pragma_address): Update accordingly.
2450         * config/mep/mep.c (pragma_traits): Delete.
2451         (pragma_htab): Use nofree_string_hash as the first template parameter.
2452         (mep_note_pragma_flag): Update accordingly.
2453         * config/mips/mips.c (mips16_flip_traits): Delete.
2454         (mflip_mips16_htab): Use nofree_string_hash as the first template
2455         parameter.
2456         (mflip_mips16_use_mips16_p): Update accordingly.
2457         (local_alias_traits): Delete.
2458         (mips16_local_aliases): Use nofree_string_hash as the first template
2459         parameter.
2460         (mips16_local_alias): Update accordingly.
2461
2462 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2463
2464         * hash-map-traits.h (default_hashmap_traits): Delete.
2465
2466 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2467
2468         * hash-map-traits.h (unbounded_hashmap_traits): New class.
2469         (unbounded_int_hashmap_traits): Likewise.
2470         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
2471
2472 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2473
2474         * ipa-icf.h (symbol_compare_hash): New class.
2475         (symbol_compare_hashmap_traits): Use it.
2476         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
2477         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
2478         (mem_alloc_description::reverse_mem_map_t): Remove redundant
2479         default_hashmap_traits.
2480         * sanopt.c (sanopt_tree_triplet_hash): New class.
2481         (sanopt_tree_triplet_map_traits): Use it.
2482
2483 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2484
2485         * gengtype-parse.c (require_template_declaration): Allow '+' in
2486         template parameters.  Consolidate cases.
2487         * hash-traits.h (int_hash): New class.
2488         * alias.c (alias_set_hash): New structure.
2489         (alias_set_traits): Use it.
2490         * symbol-summary.h (function_summary::map_hash): New class.
2491         (function_summary::summary_hashmap_traits): Use it.
2492         * tree-inline.h (dependence_hash): New class.
2493         (dependence_hasher): Use it.
2494         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
2495         * value-prof.c (profile_id_hash): New class.
2496         (profile_id_traits): Use it.
2497
2498 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2499
2500         * config/mips/mips.c (mips16_flip_traits): Use it.
2501         (local_alias_traits, mips16_local_aliases): Convert from a map of
2502         rtxes to a map of symbol names.
2503         (mips16_local_alias): Update accordingly.
2504
2505 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2506
2507         * hash-traits.h (string_hash, nofree_string_hash): New classes.
2508         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
2509         * passes.c (pass_registry_hasher): Likewise.
2510         * config/alpha/alpha.c (string_traits): Likewise.
2511         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
2512         * config/m32c/m32c.c (pragma_traits): Likewise.
2513         * config/mep/mep.c (pragma_traits): Likewise.
2514
2515 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2516
2517         * tree-hash-traits.h (tree_hash): New class.
2518         * except.c: Include tree-hash-traits.h.
2519         (tree_hash_traits): Use tree_hash.
2520
2521 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2522
2523         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
2524         * sese.c: Include tree-hash-traits.h.
2525         (rename_map_hasher): Use tree_ssa_name_hasher.
2526
2527 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2528
2529         * tree-hash-traits.h (tree_decl_hash): New class.
2530         * tree-ssa-strlen.c: Include tree-hash-traits.h.
2531         (stridxlist_hash_traits): Use tree_decl_hash.
2532
2533 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2534
2535         * tree-hash-traits.h: New file.
2536         (tree_operand_hash): New class.
2537         * sanopt.c: Include tree-hash-traits.h.
2538         (sanopt_tree_map_traits): Use tree_operand_hash.
2539         * tree-if-conv.c: Include tree-hash-traits.h.
2540         (phi_args_hash_traits): Use tree_operand_hash.
2541         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
2542         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
2543
2544 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2545
2546         * hash-map-traits.h: Include hash-traits.h.
2547         (simple_hashmap_traits): New class.
2548         * mem-stats.h (hash_map): Change the default traits to
2549         simple_hashmap_traits<default_hash_traits<Key> >.
2550
2551 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2552
2553         * hash-table.h: Update comments.
2554
2555 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2556
2557         * hash-traits.h (default_hash_traits): New structure.
2558         * hash-set.h (default_hashset_traits): Delete.
2559         (hash_set): Use default_hash_traits<Key> instead of
2560         default_hashset_traits.  Delete hash_entry type and use Key directly.
2561         * ipa-devirt.c (pair_traits): Delete.
2562         (default_hash_traits <type_pair>): Override.
2563         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
2564         (odr_types_equivalent_p, add_type_duplicate): Likewise.
2565
2566 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2567
2568         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
2569
2570 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2571
2572         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
2573         (has_is_empty, is_empty_helper): Delete.
2574         (has_mark_deleted, mark_deleted_helper): Delete.
2575         (has_mark_empty, mark_empty_helper): Delete.
2576         (hash_table::is_deleted): Call the Descriptor unconditionally.
2577         (hash_table::is_empty): Likewise.
2578         (hash_table::mark_deleted): Likewise.
2579         (hash_table::mark_empty): Likewise.
2580
2581 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2582
2583         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
2584         redundant typedefs and members.
2585         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
2586         redundant typedefs.
2587         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
2588         * ipa-devirt.c (odr_name_hasher): Likewise.
2589         (polymorphic_call_target_hasher): Likewise.
2590         * ira-costs.c (cost_classes_hasher): Likewise.
2591         * statistics.c (stats_counter_hasher): Likewise.
2592         * trans-mem.c (log_entry_hasher): Likewise.
2593         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
2594         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
2595         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
2596         * var-tracking.c (variable_hasher): Likewise.
2597         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
2598         Remove redundant typedefs and members.
2599
2600 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2601
2602         * hash-traits.h (ggc_cache_hasher): Rename to...
2603         (ggc_cache_remove): ...this and remove typedefs.
2604         (ggc_cache_ptr_hash): New class.
2605         * hash-table.h: Update commentary.
2606         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
2607         rather than ggc_cache_hasher.
2608         (const_wide_int_hasher, reg_attr_hasher): Likewise.
2609         (const_double_hasher, const_fixed_hasher): Likewise.
2610         * function.c (insn_cache_hasher): Likewise.
2611         * trans-mem.c (tm_wrapper_hasher): Likewise.
2612         * tree.h (tree_decl_map_cache_hasher): Likewise.
2613         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
2614         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
2615         * ubsan.c (tree_type_map_cache_hasher): Likewise.
2616         * varasm.c (tm_clone_hasher): Likewise.
2617         * config/i386/i386.c (dllimport_hasher): Likewise.
2618         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
2619         (tree_hasher): Likewise.
2620
2621 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2622
2623         * hash-traits.h (ggc_hasher): Rename to...
2624         (ggc_remover): ...this and remove typedefs.
2625         (ggc_cache_hasher): Update accordingly.  Add typedefs.
2626         (ggc_ptr_hash): New class.
2627         * hash-table.h: Update comment.
2628         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
2629         ggc_hasher.
2630         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
2631         (tree_descriptor_hasher): Likewise.
2632         * cgraph.c (function_version_hasher): Likewise.
2633         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
2634         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
2635         (dw_loc_list_hasher, addr_hasher): Likewise.
2636         * function.h (used_type_hasher): Likewise.
2637         * function.c (temp_address_hasher): Likewise.
2638         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
2639         * libfuncs.h (libfunc_hasher): Likewise.
2640         * lto-streamer.h (decl_state_hasher): Likewise.
2641         * optabs.c (libfunc_decl_hasher): Likewise.
2642         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
2643         * varasm.c (section_hasher, object_block_hasher): Likewise.
2644         (const_rtx_desc_hasher): Likewise.
2645         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
2646         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
2647
2648 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2649
2650         * hash-traits.h (free_ptr_hash): New class.
2651         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
2652         rather than typed_free_remove.  Remove redudant typedefs.
2653         (external_ref_hasher): Likewise.
2654         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
2655         (ehspec_hasher): Likewise.
2656         * ggc-common.c (saving_hasher): Likewise.
2657         * gimplify.c (gimplify_hasher): Likewise.
2658         * haifa-sched.c (delay_i2_hasher): Likewise.
2659         * loop-invariant.c (invariant_expr_hasher): Likewise.
2660         * loop-iv.c (biv_entry_hasher): Likewise.
2661         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
2662         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
2663         * tree-cfg.c (locus_discrim_hasher): Likewise.
2664         * tree-eh.c (finally_tree_hasher): Likewise.
2665         * tree-into-ssa.c (var_info_hasher): Likewise.
2666         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
2667         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
2668         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
2669         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
2670         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
2671         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
2672         (shared_bitmap_hasher): Likewise.
2673         * tree-ssa-threadupdate.c (redirection_data): Likewise.
2674         * tree-vectorizer.h (peel_info_hasher): Likewise.
2675         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
2676         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
2677
2678 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2679
2680         * hash-table.h: Update comments.
2681         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
2682         (nofree_ptr_hash): New class.
2683         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
2684         than typed_noop_remove.  Remove redudant typedefs.
2685         * attribs.c (attribute_hasher): Likewise.
2686         * cfg.c (bb_copy_hasher): Likewise.
2687         * cselib.c (cselib_hasher): Likewise.
2688         * dse.c (invariant_group_base_hasher): Likewise.
2689         * dwarf2cfi.c (trace_info_hasher): Likewise.
2690         * dwarf2out.c (macinfo_entry_hasher): Likewise.
2691         (comdat_type_hasher, loc_list_hasher): Likewise.
2692         * gcse.c (pre_ldst_expr_hasher): Likewise.
2693         * genmatch.c (id_base): Likewise.
2694         * genrecog.c (test_pattern_hasher): Likewise.
2695         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
2696         * haifa-sched.c (delay_i1_hasher): Likewise.
2697         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
2698         * ipa-icf.h (congruence_class_group_hash): Likewise.
2699         * ipa-profile.c (histogram_hash): Likewise.
2700         * ira-color.c (allocno_hard_regs_hasher): Likewise.
2701         * lto-streamer.h (string_slot_hasher): Likewise.
2702         * lto-streamer.c (tree_entry_hasher): Likewise.
2703         * plugin.c (event_hasher): Likewise.
2704         * postreload-gcse.c (expr_hasher): Likewise.
2705         * store-motion.c (st_expr_hasher): Likewise.
2706         * tree-sra.c (uid_decl_hasher): Likewise.
2707         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
2708         (ssa_name_var_hash): Likewise.
2709         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
2710         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
2711         * tree-ssa-pre.c (pre_expr_d): Likewise.
2712         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
2713         * vtable-verify.h (registration_hasher): Likewise.
2714         * vtable-verify.c (vtbl_map_hasher): Likewise.
2715         * config/arm/arm.c (libcall_hasher): Likewise.
2716         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
2717         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
2718         * config/sol2.c (comdat_entry_hasher): Likewise.
2719         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
2720         (print_fold_checksum, fold_checksum_tree): Likewise.
2721         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
2722         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
2723         (fold_build_call_array_loc): Likewise.
2724         * tree-ssa-ccp.c (gimple_htab): Likewise.
2725         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
2726         rather than pointer_type.
2727
2728 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2729
2730         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
2731         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
2732
2733 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2734
2735         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
2736         (ggc_hasher::ggc_mx): Likewise.
2737         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
2738         that duplicate ggc_hasher ones.
2739
2740 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2741
2742         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
2743         (gt_cleare_cache): Check here for deleted and empty entries.
2744         Replace handle_cache_entry with a call to keep_cache_entry.
2745         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
2746         (ggc_cache_hasher::keep_cache_entry): New function.
2747         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
2748         (tm_wrapper_hasher::keep_cache_entry): New function.
2749         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
2750         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
2751         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
2752         (type_cache_hasher::keep_cache_entry): New function.
2753         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
2754         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
2755         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
2756         (tree_type_map_cache_hasher::keep_cache_entry): New function.
2757         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
2758         (tm_clone_hasher::keep_cache_entry): New function.
2759         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
2760         (dllimport_hasher::keep_cache_entry): New function.
2761
2762 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2763
2764         * hash-table.h: Include hash-traits.h.
2765         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
2766         (ggc_cache_hasher): Move to...
2767         * hash-traits.h: ...this new file.
2768
2769 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
2770
2771         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
2772         struct cl_optimization.
2773         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
2774         * tree.c (make_node_stat): Allocate cl_optimization struct.
2775         (copy_node_stat): Allocate and copy cl_optimization struct.
2776
2777 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
2778
2779         * function.h (struct incoming_args): Move struct.
2780         (pass_by_reference, reference_callee_copied): Remove prototypes.
2781         * emit-rtl.h (struct incoming_args): Relocate struct here.
2782         * calls.h (pass_by_reference, reference_callee_copied): Relocate
2783         prototypes here.
2784         * function.c (pass_by_reference, reference_callee_copied): Move.
2785         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
2786         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
2787         * ipa-chkp.c: Include calls.h.
2788
2789 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
2790
2791         * alias.h (alias_set_type): Move typedef.
2792         * coretypes.h (alias_set_type): Relocate typedef here.
2793         * rtl.h: Don't include alias.h.
2794
2795 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
2796
2797         * cgraph.h (cgraph_rtl_info): Move to rtl.h
2798         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
2799         and instance.
2800         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
2801         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
2802         doesn't exist.
2803         * calls.c: Include hard-reg-set.h before rtl.h.
2804         * ira.c: Likewise.
2805
2806 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
2807             Vladimir Makarov  <vmakarov@redhat.com>
2808
2809         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
2810         Add assert.
2811
2812 2015-06-25  Richard Biener  <rguenther@suse.de>
2813
2814         * fold-const.c (fold_binary_loc): Move simplification of
2815         (X <<>> C1) & C2 ...
2816         * match.pd: ... here.
2817
2818 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
2819
2820         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
2821
2822 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2823
2824         * match.pd: Add patterns for vec_conds between 1 and 0.
2825
2826 2015-06-25  Richard Biener  <rguenther@suse.de>
2827
2828         * tree-vect-stmts.c (vectorizable_conversion): Do not set
2829         STMT_VINFO_VEC_STMT for SLP.
2830         (vectorizable_store): Likewise.
2831         (vectorizable_load): Likewise.
2832         (vect_transform_stmt): Catch SLP vectorization clobbering
2833         STMT_VINFO_VEC_STMT.
2834
2835 2015-06-25  Richard Biener  <rguenther@suse.de>
2836
2837         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
2838         dumping.
2839         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
2840         cleanup resulting dead code and parameters.
2841         (vect_transform_slp_perm_load): Adjust.
2842
2843 2015-06-25  Nick Clifton  <nickc@redhat.com>
2844
2845         * config/bfin/bfin.c (bfin_expand_prologue): Set
2846         current_function_static_stack_size if flag_stack_usage_info is set.
2847         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
2848         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
2849         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2850         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
2851
2852 2015-06-25  Tom de Vries  <tom@codesourcery.com>
2853
2854         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
2855         comment that the generated IV is unsigned.
2856
2857 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2858
2859         PR target/29693
2860         * config/arm/arm.c (arm_dbx_register_number): Return
2861         DWARF_FRAME_REGISTERS by default.
2862
2863 2015-06-25  Tom de Vries  <tom@codesourcery.com>
2864
2865         * dominance.c (calculate_dominance_info): Fix verify_dominators call
2866         argument.  Call verify_dominator when reusing dominator info.
2867
2868 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
2869
2870         PR target/66563
2871         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
2872         an additional element of the unspec vector.  Modify indices
2873         of operands.
2874         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
2875         * config/sh/sh.c (prepare_move_operands): Pass incremented
2876         const_int to gen_GOTaddr2picreg.
2877         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
2878
2879 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
2880
2881         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
2882         Condition on TARGET_FLOAT.
2883
2884 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
2885
2886         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
2887         and (no)crypto.
2888
2889 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
2890
2891         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
2892
2893         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
2894         aarch64_err_no_fpadvsimd.
2895
2896         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
2897         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
2898         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
2899         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
2900         Turn error into assert, test TARGET_FLOAT.
2901         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
2902         TARGET_FLOAT.
2903
2904 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
2905
2906         PR debug/66482
2907         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
2908
2909 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
2910
2911         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
2912
2913 2015-06-24 Renlin Li <renlin.li@arm.com>
2914
2915         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
2916         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
2917
2918 2015-06-24  Richard Biener  <rguenther@suse.de>
2919
2920         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
2921         (main): Likewise.
2922         (lower_opt_convert): Support lowering of conditional view_convert.
2923         (parser::parse_operation): Likewise.
2924         (parser::parse_for): Likewise.
2925
2926 2015-06-24  Renlin Li  <renlin.li@arm.com>
2927
2928         * varasm.c (emit_local): Use unsigned int for align variable.
2929
2930 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2931
2932         PR target/63408
2933         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
2934         for negative numbers.
2935
2936 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2937
2938         PR rtl-optimization/66306
2939         * reload.c (find_reloads): Swap the match_dup info for
2940         commutative operands.
2941
2942 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2943
2944         * config/s390/vx-builtins.md
2945         ("vec_scatter_element<mode>_<non_vec_int>")
2946         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
2947         attribute with bhfgq.
2948
2949 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2950
2951         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
2952
2953 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2954
2955         * config/s390/s390-builtin-types.def: Add flag to indicate the
2956         options under which the function type is needed.
2957         * config/s390/s390-builtins.def: Add flag to indicate the options
2958         under which the builtin is enabled.
2959         * config/s390/s390-builtins.h: Add flags parameter to macro
2960         definitions.
2961         (bflags_for_builtin): New function.
2962         (flags_for_builtin): Renamed to ...
2963         (opflags_for_builtin): ... this.
2964         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
2965         flags_for_builtin to bflags_for_builtin and
2966         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
2967         * config/s390/s390.c: Add initialization of bflags_builtin and
2968         opflags_builtin arrays.
2969         Remove code for flags_builtin.
2970         (s390_init_builtins): Only create builtin function types if one of
2971         their flags is active.
2972         Only create builtins if all of their flags are active.
2973         (s390_expand_builtin): Rename flags_for_builtin to
2974         opflags_for_builtin.
2975
2976 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2977
2978         * config/s390/vecintrin.h: Remove internal builtins.
2979
2980 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2981
2982         * config/s390/s390.c (s390_secondary_reload): Fix check for
2983         GENERAL_REGS register class.
2984
2985 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2986
2987         * config/s390/s390.c (s390_support_vector_misalignment): Call
2988         default implementation for !TARGET_VX.
2989
2990 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2991
2992         * config/s390/s390.c (s390_legitimate_constant_p): Add
2993         TARGET_VX check.
2994
2995 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2996
2997         * config/s390/s390.c (s390_vector_abi): New variable definition.
2998         (s390_check_type_for_vector_abi): New function.
2999         (TARGET_ASM_FILE_END): New macro definition.
3000         (s390_asm_file_end): New function.
3001         (s390_function_arg): Call s390_check_type_for_vector_abi.
3002         (s390_gimplify_va_arg): Likewise.
3003         * configure: Regenerate.
3004         * configure.ac: Check for .gnu_attribute Binutils feature.
3005
3006 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
3007
3008         PR target/65803
3009         * config/bfin/bfin.c (hwloop_optimize): Initialize
3010         JUMP_LABEL for newly created jump.
3011
3012 2015-06-23  Tristan Gingold  <gingold@adacore.com>
3013
3014         * collect-utils.c (collect_wait): Unlink the response file here
3015         instead of...
3016         (do_wait): ...here.
3017         (utils_cleanup): ...and here.
3018
3019 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
3020
3021         * df-scan.c: Don't include target-def.h.
3022         * targhooks.c: Likewise.
3023         * config/arm/arm-c.c: Likewise.
3024         * config/i386/i386-c.c: Likewise.
3025         * config/nds32/nds32-cost.c: Likewise.
3026         * config/nds32/nds32-fp-as-gp.c: Likewise.
3027         * config/nds32/nds32-intrinsic.c: Likewise.
3028         * config/nds32/nds32-isr.c: Likewise.
3029         * config/nds32/nds32-md-auxiliary.c: Likewise.
3030         * config/nds32/nds32-memory-manipulation.c: Likewise.
3031         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3032         * config/nds32/nds32-predicates.c: Likewise.
3033
3034 2015-06-23  Richard Biener  <rguenther@suse.de>
3035
3036         PR tree-optimization/66636
3037         * tree-vect-stmts.c (vectorizable_store): Properly compute the
3038         def type for further defs for strided stores.
3039
3040 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
3041
3042         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
3043         conditional selects.
3044         (setcc_int<mode>, setcc_float<mode>): Reformat.
3045
3046 2015-06-23  Marek Polacek  <polacek@redhat.com>
3047
3048         * match.pd ((x + y) - (x | y) -> x & y,
3049         (x + y) - (x & y) -> x | y): New patterns.
3050
3051 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
3052
3053         PR 65711
3054         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
3055         '-dynamic-linker' within %{!shared: ...}.
3056
3057 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
3058
3059         PR target/66560
3060         * config/i386/predicates.md (addsub_vm_operator): New predicate.
3061         (addsub_vs_operator): Ditto.
3062         (addsub_vs_parallel): Ditto.
3063         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
3064         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
3065         Put minus RTX before plus and adjust vec_merge selector.
3066         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
3067         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
3068         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
3069         (addsub vec_merge splitters): New combiner splitters.
3070         (addsub vec_select/vec_concat splitters): Ditto.
3071
3072 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
3073
3074         PR tree-optimization/66449
3075         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
3076         POINTER_PLUS_EXPR for pointers.
3077
3078 2015-06-23  Alan Modra  <amodra@gmail.com>
3079
3080         * rtlanal.c (commutative_operand_precedence): Correct comments.
3081         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
3082         declaration.  Return an int.  Distinguish REG,REG return from
3083         others.
3084         (struct simplify_plus_minus_op_data): Make local to function.
3085         (simplify_plus_minus): Don't set canonicalized if merely sorting
3086         registers.  Avoid packing ops if nothing changes.  White space fixes.
3087
3088 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
3089
3090         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
3091         -fdump-ada-spec is passed but not if -fsyntax-only is.
3092
3093 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
3094
3095         PR bootstrap/63740
3096         * lra-lives.c (process_bb_lives): Check insn copying the same
3097         reload pseudo and don't create a copy for it.
3098
3099 2015-06-22  Tom de Vries  <tom@codesourcery.com>
3100
3101         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
3102         for cond_stmt.
3103
3104 2015-06-22  Tom de Vries  <tom@codesourcery.com>
3105
3106         * builtins.def (DEF_GOMP_BUILTIN): Test
3107         'flag_tree_parallelize_loops > 1' instead of
3108         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
3109
3110 2015-06-22  Tom de Vries  <tom@codesourcery.com>
3111
3112         * dominance.c (calculate_dominance_info): Verify dominators if
3113         early-out.
3114
3115 2015-06-22  Marek Polacek  <polacek@redhat.com>
3116
3117         * match.pd ((x ^ y) ^ (x | y) -> x & y,
3118         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
3119         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
3120         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
3121
3122 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
3123
3124         PR target/65871
3125         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
3126         cost of embedded comparison.
3127
3128 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3129
3130         PR target/65914
3131         * config/rs6000/predicates.md (altivec_register_operand): Permit
3132         virtual stack registers.
3133         (vsx_register_operand): Likewise.
3134         (vfloat_operand): Likewise.
3135         (vint_operand): Likewise.
3136         (vlogical_operand): Likewise.
3137
3138 2015-06-22  Richard Biener  <rguenther@suse.de>
3139
3140         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
3141         and single_scalar_iteration_cost members.
3142         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
3143         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
3144         (vect_get_single_scalar_iteration_cost): Remove.
3145         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
3146         Use LOOP_VINFO_SCALAR_ITERATION_COST.
3147         * tree-vect-loop.c (destroy_loop_vec_info): Free
3148         scalar_cost_vec.
3149         (vect_get_single_scalar_iteration_cost): Compute result into
3150         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
3151         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
3152         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
3153         (vect_estimate_min_profitable_iters): Use them.
3154
3155 2015-06-22  Christian Bruel  <christian.bruel@st.com>
3156
3157         PR target/52144
3158         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
3159         (TARGET_INSERT_ATTRIBUTES): Define.
3160         (thumb_flipper): New var.
3161         * config/arm/arm.opt (-mflip-thumb): New switch.
3162
3163 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
3164             Martin Liska  <mliska@suse.cz>
3165
3166         PR ipa/65908
3167         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
3168         construction of arg_types.
3169         (sem_function::sem_function): Likewise.
3170         (sem_function::~sem_function): Remove destruction of arg_types.
3171         (sem_function::compatible_parm_types_p): New function.
3172         (sem_function::equals_wpa): Reorg matching of return values
3173         and parameter types.
3174         (sem_function::equals_private): Reorg mathcing of argument types.
3175         (sem_function::parse_tree_args): Remove.
3176         * ipa-icf.h (init_wpa): Do not call it.
3177         (parse_tree_args): Remove.
3178         (compatible_parm_types_p): Declare.
3179         (result_type): Remove.
3180         (arg_types): Remove.
3181
3182 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
3183
3184         PR ipa/66351
3185         * ipa-polymorphic-call.c
3186         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
3187         initializing alias oracle; fix formating; set base_alias_set if it
3188         is known.
3189
3190 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
3191
3192         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
3193         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
3194         (find_inc): Likewise.
3195         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
3196         swapping.
3197         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3198         * df-scan.c (df_swap_refs): Remove.
3199         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
3200         * dominance.c (link_roots): Use std::swap instead of manually swapping.
3201         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
3202         * fold-const.c (fold_relational_const): Likewise.
3203         * genattrtab.c (simplify_test_exp): Likewise.
3204         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
3205         gimple_simplify): Likewise.
3206         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
3207         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
3208         * ipa-devirt.c (add_type_duplicate): Likewise.
3209         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
3210         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
3211         * lra.c (lra_create_copy): Likewise.
3212         * lto-streamer-out.c (DFS::DFS): Likewise.
3213         * modulo-sched.c (get_sched_window): Likewise.
3214         * omega.c (omega_pretty_print_problem): Likewise.
3215         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
3216         * reload1.c (reloads_unique_chain_p): Likewise.
3217         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
3218         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
3219         use std::swap.
3220         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
3221         manually swapping.
3222         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
3223         predicate_mem_writes): Likewise.
3224         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
3225         * tree-predcom.c (combine_chains): Likewise.
3226         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
3227         refs_may_alias_p_1): Likewise.
3228         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
3229         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
3230         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
3231         number_of_iterations_cond): Likewise.
3232         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3233         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
3234         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
3235         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
3236         * tree-vrp.c (extract_range_from_binary_expr_1,
3237         extract_range_from_unary_expr_1): Likewise.
3238
3239 2015-06-20  Marek Polacek  <polacek@redhat.com>
3240
3241         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
3242
3243 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
3244
3245         PR target/66591
3246         * config/sh/sh.c (prepare_move_operands): Replace subreg
3247         index term with R0 for base and index addressing.
3248
3249 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
3250
3251         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
3252         op1 is an fp zero.
3253         (movsf_aarch64): Change condition from register_operand to
3254         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
3255         load1.  Change type for alternative 7 to store1.
3256         (movdf_aarch64): Likewise.
3257
3258 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
3259
3260         * config/vax/vax.md: Adjust sign/zero extend patterns to
3261         handle SUBREGs in operands[1].
3262
3263 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3264
3265         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
3266         of manually swapping.
3267         (expand_vec_perm_interleave2): Likewise.
3268
3269 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
3270
3271         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
3272         reuse bounds created for abnormal ssa names.
3273
3274 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
3275
3276         * config/nvptx/nvptx.md (allocate_stack): Rename to...
3277         (allocate_stack_<mode>): ... this, and add :P on both
3278         match_operand and unspec.
3279         (allocate_stack): New expander.
3280
3281 2015-06-19  Christian Bruel  <christian.bruel@st.com>
3282
3283         PR target/66541
3284         PR target/52144
3285         * config/arm/arm.c (arm_set_current_function): Handle
3286         explicit default options.
3287
3288 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
3289
3290         * config/i386/i386.md (*movsicc_noc_zext): New insn.
3291         (zero-extended cmove with mem peephole2): New pattern.
3292         (cmove with mem peephole2): Merge patterns.
3293
3294 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
3295
3296         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
3297
3298 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
3299
3300         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
3301         * config/mips/mips.md (*madd4<mode>): Ditto.
3302         (*nmadd3<mode>) Ditto.
3303         (*nmadd4<mode>_fastmath): Ditto.
3304         (*nmadd3<mode>_fastmath): Ditto.
3305         (*nmsub4<mode>): Ditto.
3306         (*nmsub3<mode>): Ditto.
3307         (*nmsub4<mode>_fastmath): Ditto.
3308         (*nmsub3<mode>_fastmath): Ditto.
3309
3310 2015-06-18  Michael Matz  <matz@suse.de>
3311
3312         PR middle-end/66253
3313         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
3314         grouped strided stores.
3315         (vectorizable_load): Don't use the DR from first_stmt in
3316         the non-SLP grouped strided case.
3317
3318 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
3319
3320         PR target/66569
3321         * function.c (assign_bounds): Add arguments assign_regs,
3322         assign_special, assign_bt.
3323         (assign_parms): For vararg functions handle bounds in BT
3324         and special slots after incoming vararg bounds.
3325
3326 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
3327
3328         PR middle-end/66568
3329         * cfgexpand.c (expand_return): Handle missing bounds.
3330         (expand_gimple_stmt_1): Likewise.
3331         * tree-chkp.c (chkp_expand_zero_bounds): New.
3332         * tree-chkp.h (chkp_expand_zero_bounds): New.
3333
3334 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
3335
3336         PR middle-end/66567
3337         * ipa-chkp.c (chkp_maybe_create_clone): Require
3338         functions to be instrumentable.
3339         * tree-chkp.c (chkp_replace_function_pointer): Use
3340         chkp_instrumentable_p instead of attribute check.
3341
3342 2015-06-18  Richard Biener  <rguenther@suse.de>
3343
3344         PR tree-optimization/66510
3345         * tree-vect-stmts.c (vectorizable_load): Properly compute the
3346         number of vector loads for SLP permuted loads.
3347         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
3348         check the stride for loop vectorization.
3349         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
3350         vectorization factor.
3351         (vect_analyze_group_access): If the group size is not a power
3352         of two require a epilogue loop.
3353         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
3354         compute and optimizing and alias test pruning after final
3355         vectorization factor computation.
3356         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
3357         vector alignment.
3358         (vect_transform_slp_perm_load): Properly compute the original
3359         number of vector load stmts.
3360
3361 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
3362
3363         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
3364         "unlikely character , in @var" warning.
3365
3366 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
3367
3368         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
3369         (ix86_function_arg_advance): Ditto.
3370         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
3371
3372 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
3373
3374         * function.h (struct rtl_data): Remove struct and accessor macros.
3375         * emit-rtl.h (struct rtl_data): Relocate to here.
3376         * Makefile.in (GTFILES): Add emit-rtl.h.
3377         * df-core.c: Include emit-rtl.h.
3378         * genattrtab.c: Likewise.
3379         * genconditions.c: Likewise.
3380         * genpreds.c: Likewise.
3381         * genrecog.c: Likewise.
3382         * regcprop.c: Likewise.
3383         * resource.c: Likewise.
3384         * sched-rgn.c: Likewise.
3385         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3386         * config/i386/winnt.c: Likewise.
3387
3388 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
3389
3390         PR middle-end/66429
3391         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
3392         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
3393         and has_force_vectorize_loops flags from cfun into
3394         child_cfun.
3395         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
3396         if simduid is non-NULL.
3397         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
3398         * passes.def (pass_simduid_cleanup): Add new pass after loop
3399         passes.
3400         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
3401         indirection from htab argument's type.
3402         (shrink_simd_arrays): New function.
3403         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
3404         Don't call adjust_simduid_builtins if there are no loops.
3405         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
3406         (pass_simduid_cleanup::execute): New method.
3407         (make_pass_simduid_cleanup): New function.
3408
3409 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
3410
3411         * tree-core.h (tree_target_option): Make opts field a pointer to a
3412         cl_target_option instead of an instance of the struct.
3413         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
3414         the structure.
3415         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
3416         TARGET_OPTION_NODE.
3417         (copy_node_stat): Allocate and copy struct cl_target_option.
3418
3419 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
3420
3421         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
3422         Remove conditional exposure of prototypes.
3423         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
3424         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
3425         definitions in tree.h with functions.
3426         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
3427         anon_aggrname_p.
3428         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
3429
3430 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
3431
3432         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
3433         (*cmp<mode>_signed): ... this.
3434         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
3435         (*cmp<mode>_unsigned): ... this.  Remove %b.
3436
3437 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
3438
3439         * coretypes.h: Include input.h and as-a.h.
3440         * rtl.h: Include input.h and as-a.h for generator files.
3441         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
3442         * vec.c: Don't include diagnostic-core.h.
3443         * alias.c: Do not include input.h, line-map.h or is-a.h.
3444         * asan.c: Likewise.
3445         * attribs.c: Likewise.
3446         * auto-inc-dec.c: Likewise.
3447         * auto-profile.c: Likewise.
3448         * bb-reorder.c: Likewise.
3449         * bt-load.c: Likewise.
3450         * builtins.c: Likewise.
3451         * caller-save.c: Likewise.
3452         * calls.c: Likewise.
3453         * ccmp.c: Likewise.
3454         * cfg.c: Likewise.
3455         * cfganal.c: Likewise.
3456         * cfgbuild.c: Likewise.
3457         * cfgcleanup.c: Likewise.
3458         * cfgexpand.c: Likewise.
3459         * cfghooks.c: Likewise.
3460         * cfgloop.c: Likewise.
3461         * cfgloop.h: Likewise.
3462         * cfgloopanal.c: Likewise.
3463         * cfgloopmanip.c: Likewise.
3464         * cfgrtl.c: Likewise.
3465         * cgraph.c: Likewise.
3466         * cgraphbuild.c: Likewise.
3467         * cgraphclones.c: Likewise.
3468         * cgraphunit.c: Likewise.
3469         * cilk-common.c: Likewise.
3470         * combine-stack-adj.c: Likewise.
3471         * combine.c: Likewise.
3472         * compare-elim.c: Likewise.
3473         * convert.c: Likewise.
3474         * coverage.c: Likewise.
3475         * cppbuiltin.c: Likewise.
3476         * cprop.c: Likewise.
3477         * cse.c: Likewise.
3478         * cselib.c: Likewise.
3479         * data-streamer-in.c: Likewise.
3480         * data-streamer-out.c: Likewise.
3481         * data-streamer.c: Likewise.
3482         * dbxout.c: Likewise.
3483         * dce.c: Likewise.
3484         * ddg.c: Likewise.
3485         * debug.c: Likewise.
3486         * df-core.c: Likewise.
3487         * df-problems.c: Likewise.
3488         * df-scan.c: Likewise.
3489         * df.h: Likewise.
3490         * dfp.c: Likewise.
3491         * diagnostic-core.h: Likewise.
3492         * diagnostic.c: Likewise.
3493         * dojump.c: Likewise.
3494         * dominance.c: Likewise.
3495         * domwalk.c: Likewise.
3496         * double-int.c: Likewise.
3497         * dse.c: Likewise.
3498         * dumpfile.c: Likewise.
3499         * dumpfile.h: Likewise.
3500         * dwarf2asm.c: Likewise.
3501         * dwarf2cfi.c: Likewise.
3502         * dwarf2out.c: Likewise.
3503         * emit-rtl.c: Likewise.
3504         * et-forest.c: Likewise.
3505         * except.c: Likewise.
3506         * explow.c: Likewise.
3507         * expmed.c: Likewise.
3508         * expr.c: Likewise.
3509         * final.c: Likewise.
3510         * fixed-value.c: Likewise.
3511         * fold-const.c: Likewise.
3512         * function.c: Likewise.
3513         * fwprop.c: Likewise.
3514         * gcc-plugin.h: Likewise.
3515         * gcse.c: Likewise.
3516         * generic-match-head.c: Likewise.
3517         * ggc-page.c: Likewise.
3518         * gimple-builder.c: Likewise.
3519         * gimple-expr.c: Likewise.
3520         * gimple-fold.c: Likewise.
3521         * gimple-iterator.c: Likewise.
3522         * gimple-low.c: Likewise.
3523         * gimple-match-head.c: Likewise.
3524         * gimple-pretty-print.c: Likewise.
3525         * gimple-ssa-isolate-paths.c: Likewise.
3526         * gimple-ssa-strength-reduction.c: Likewise.
3527         * gimple-streamer-in.c: Likewise.
3528         * gimple-streamer-out.c: Likewise.
3529         * gimple-streamer.h: Likewise.
3530         * gimple-walk.c: Likewise.
3531         * gimple.c: Likewise.
3532         * gimplify-me.c: Likewise.
3533         * gimplify.c: Likewise.
3534         * godump.c: Likewise.
3535         * graph.c: Likewise.
3536         * graphite-blocking.c: Likewise.
3537         * graphite-dependences.c: Likewise.
3538         * graphite-interchange.c: Likewise.
3539         * graphite-isl-ast-to-gimple.c: Likewise.
3540         * graphite-optimize-isl.c: Likewise.
3541         * graphite-poly.c: Likewise.
3542         * graphite-scop-detection.c: Likewise.
3543         * graphite-sese-to-poly.c: Likewise.
3544         * graphite.c: Likewise.
3545         * haifa-sched.c: Likewise.
3546         * hw-doloop.c: Likewise.
3547         * ifcvt.c: Likewise.
3548         * init-regs.c: Likewise.
3549         * input.c: Likewise.
3550         * internal-fn.c: Likewise.
3551         * ipa-chkp.c: Likewise.
3552         * ipa-comdats.c: Likewise.
3553         * ipa-cp.c: Likewise.
3554         * ipa-devirt.c: Likewise.
3555         * ipa-icf-gimple.c: Likewise.
3556         * ipa-icf.c: Likewise.
3557         * ipa-inline-analysis.c: Likewise.
3558         * ipa-inline-transform.c: Likewise.
3559         * ipa-inline.c: Likewise.
3560         * ipa-polymorphic-call.c: Likewise.
3561         * ipa-profile.c: Likewise.
3562         * ipa-prop.c: Likewise.
3563         * ipa-pure-const.c: Likewise.
3564         * ipa-ref.c: Likewise.
3565         * ipa-reference.c: Likewise.
3566         * ipa-split.c: Likewise.
3567         * ipa-utils.c: Likewise.
3568         * ipa-visibility.c: Likewise.
3569         * ipa.c: Likewise.
3570         * ira-build.c: Likewise.
3571         * ira-color.c: Likewise.
3572         * ira-conflicts.c: Likewise.
3573         * ira-costs.c: Likewise.
3574         * ira-emit.c: Likewise.
3575         * ira-lives.c: Likewise.
3576         * ira.c: Likewise.
3577         * jump.c: Likewise.
3578         * langhooks.c: Likewise.
3579         * lcm.c: Likewise.
3580         * loop-doloop.c: Likewise.
3581         * loop-init.c: Likewise.
3582         * loop-invariant.c: Likewise.
3583         * loop-iv.c: Likewise.
3584         * loop-unroll.c: Likewise.
3585         * lower-subreg.c: Likewise.
3586         * lra-assigns.c: Likewise.
3587         * lra-coalesce.c: Likewise.
3588         * lra-constraints.c: Likewise.
3589         * lra-eliminations.c: Likewise.
3590         * lra-lives.c: Likewise.
3591         * lra-remat.c: Likewise.
3592         * lra-spills.c: Likewise.
3593         * lra.c: Likewise.
3594         * lto-cgraph.c: Likewise.
3595         * lto-compress.c: Likewise.
3596         * lto-opts.c: Likewise.
3597         * lto-section-in.c: Likewise.
3598         * lto-section-out.c: Likewise.
3599         * lto-streamer-in.c: Likewise.
3600         * lto-streamer-out.c: Likewise.
3601         * lto-streamer.c: Likewise.
3602         * mcf.c: Likewise.
3603         * mode-switching.c: Likewise.
3604         * modulo-sched.c: Likewise.
3605         * omega.c: Likewise.
3606         * omp-low.c: Likewise.
3607         * optabs.c: Likewise.
3608         * opts-global.c: Likewise.
3609         * opts.h: Likewise.
3610         * passes.c: Likewise.
3611         * plugin.c: Likewise.
3612         * postreload-gcse.c: Likewise.
3613         * postreload.c: Likewise.
3614         * predict.c: Likewise.
3615         * pretty-print.h: Likewise.
3616         * print-rtl.c: Likewise.
3617         * print-tree.c: Likewise.
3618         * profile.c: Likewise.
3619         * real.c: Likewise.
3620         * realmpfr.c: Likewise.
3621         * recog.c: Likewise.
3622         * ree.c: Likewise.
3623         * reg-stack.c: Likewise.
3624         * regcprop.c: Likewise.
3625         * reginfo.c: Likewise.
3626         * regrename.c: Likewise.
3627         * regstat.c: Likewise.
3628         * reload.c: Likewise.
3629         * reload1.c: Likewise.
3630         * reorg.c: Likewise.
3631         * resource.c: Likewise.
3632         * rtl-chkp.c: Likewise.
3633         * rtl-error.c: Likewise.
3634         * rtlanal.c: Likewise.
3635         * rtlhooks.c: Likewise.
3636         * sanopt.c: Likewise.
3637         * sched-deps.c: Likewise.
3638         * sched-ebb.c: Likewise.
3639         * sched-rgn.c: Likewise.
3640         * sched-vis.c: Likewise.
3641         * sdbout.c: Likewise.
3642         * sel-sched-dump.c: Likewise.
3643         * sel-sched-ir.c: Likewise.
3644         * sel-sched.c: Likewise.
3645         * sese.c: Likewise.
3646         * shrink-wrap.c: Likewise.
3647         * simplify-rtx.c: Likewise.
3648         * stack-ptr-mod.c: Likewise.
3649         * statistics.c: Likewise.
3650         * stmt.c: Likewise.
3651         * stor-layout.c: Likewise.
3652         * store-motion.c: Likewise.
3653         * streamer-hooks.c: Likewise.
3654         * stringpool.c: Likewise.
3655         * symtab.c: Likewise.
3656         * target-globals.c: Likewise.
3657         * targhooks.c: Likewise.
3658         * toplev.c: Likewise.
3659         * tracer.c: Likewise.
3660         * trans-mem.c: Likewise.
3661         * tree-affine.c: Likewise.
3662         * tree-browser.c: Likewise.
3663         * tree-call-cdce.c: Likewise.
3664         * tree-cfg.c: Likewise.
3665         * tree-cfgcleanup.c: Likewise.
3666         * tree-chkp-opt.c: Likewise.
3667         * tree-chkp.c: Likewise.
3668         * tree-chrec.c: Likewise.
3669         * tree-complex.c: Likewise.
3670         * tree-data-ref.c: Likewise.
3671         * tree-dfa.c: Likewise.
3672         * tree-diagnostic.c: Likewise.
3673         * tree-dump.c: Likewise.
3674         * tree-eh.c: Likewise.
3675         * tree-emutls.c: Likewise.
3676         * tree-if-conv.c: Likewise.
3677         * tree-inline.c: Likewise.
3678         * tree-into-ssa.c: Likewise.
3679         * tree-iterator.c: Likewise.
3680         * tree-loop-distribution.c: Likewise.
3681         * tree-nested.c: Likewise.
3682         * tree-nrv.c: Likewise.
3683         * tree-object-size.c: Likewise.
3684         * tree-outof-ssa.c: Likewise.
3685         * tree-parloops.c: Likewise.
3686         * tree-phinodes.c: Likewise.
3687         * tree-predcom.c: Likewise.
3688         * tree-pretty-print.c: Likewise.
3689         * tree-profile.c: Likewise.
3690         * tree-scalar-evolution.c: Likewise.
3691         * tree-sra.c: Likewise.
3692         * tree-ssa-address.c: Likewise.
3693         * tree-ssa-alias.c: Likewise.
3694         * tree-ssa-ccp.c: Likewise.
3695         * tree-ssa-coalesce.c: Likewise.
3696         * tree-ssa-copy.c: Likewise.
3697         * tree-ssa-copyrename.c: Likewise.
3698         * tree-ssa-dce.c: Likewise.
3699         * tree-ssa-dom.c: Likewise.
3700         * tree-ssa-dse.c: Likewise.
3701         * tree-ssa-forwprop.c: Likewise.
3702         * tree-ssa-ifcombine.c: Likewise.
3703         * tree-ssa-live.c: Likewise.
3704         * tree-ssa-loop-ch.c: Likewise.
3705         * tree-ssa-loop-im.c: Likewise.
3706         * tree-ssa-loop-ivcanon.c: Likewise.
3707         * tree-ssa-loop-ivopts.c: Likewise.
3708         * tree-ssa-loop-manip.c: Likewise.
3709         * tree-ssa-loop-niter.c: Likewise.
3710         * tree-ssa-loop-prefetch.c: Likewise.
3711         * tree-ssa-loop-unswitch.c: Likewise.
3712         * tree-ssa-loop.c: Likewise.
3713         * tree-ssa-math-opts.c: Likewise.
3714         * tree-ssa-operands.c: Likewise.
3715         * tree-ssa-phiopt.c: Likewise.
3716         * tree-ssa-phiprop.c: Likewise.
3717         * tree-ssa-pre.c: Likewise.
3718         * tree-ssa-propagate.c: Likewise.
3719         * tree-ssa-reassoc.c: Likewise.
3720         * tree-ssa-sccvn.c: Likewise.
3721         * tree-ssa-scopedtables.c: Likewise.
3722         * tree-ssa-sink.c: Likewise.
3723         * tree-ssa-strlen.c: Likewise.
3724         * tree-ssa-structalias.c: Likewise.
3725         * tree-ssa-tail-merge.c: Likewise.
3726         * tree-ssa-ter.c: Likewise.
3727         * tree-ssa-threadedge.c: Likewise.
3728         * tree-ssa-threadupdate.c: Likewise.
3729         * tree-ssa-uncprop.c: Likewise.
3730         * tree-ssa-uninit.c: Likewise.
3731         * tree-ssa.c: Likewise.
3732         * tree-ssanames.c: Likewise.
3733         * tree-stdarg.c: Likewise.
3734         * tree-streamer-in.c: Likewise.
3735         * tree-streamer-out.c: Likewise.
3736         * tree-streamer.c: Likewise.
3737         * tree-switch-conversion.c: Likewise.
3738         * tree-tailcall.c: Likewise.
3739         * tree-vect-data-refs.c: Likewise.
3740         * tree-vect-generic.c: Likewise.
3741         * tree-vect-loop-manip.c: Likewise.
3742         * tree-vect-loop.c: Likewise.
3743         * tree-vect-patterns.c: Likewise.
3744         * tree-vect-slp.c: Likewise.
3745         * tree-vect-stmts.c: Likewise.
3746         * tree-vectorizer.c: Likewise.
3747         * tree-vrp.c: Likewise.
3748         * tree.c: Likewise.
3749         * tsan.c: Likewise.
3750         * ubsan.c: Likewise.
3751         * valtrack.c: Likewise.
3752         * value-prof.c: Likewise.
3753         * var-tracking.c: Likewise.
3754         * varasm.c: Likewise.
3755         * varpool.c: Likewise.
3756         * vmsdbgout.c: Likewise.
3757         * vtable-verify.c: Likewise.
3758         * web.c: Likewise.
3759         * wide-int.cc: Likewise.
3760         * xcoffout.c: Likewise.
3761         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
3762         * common/common-targhooks.c: Likewise.
3763         * config/aarch64/aarch64-builtins.c: Likewise.
3764         * config/aarch64/aarch64.c: Likewise.
3765         * config/alpha/alpha.c: Likewise.
3766         * config/arc/arc.c: Likewise.
3767         * config/arm/aarch-common.c: Likewise.
3768         * config/arm/arm-builtins.c: Likewise.
3769         * config/arm/arm-c.c: Likewise.
3770         * config/arm/arm.c: Likewise.
3771         * config/avr/avr-c.c: Likewise.
3772         * config/avr/avr-log.c: Likewise.
3773         * config/avr/avr.c: Likewise.
3774         * config/bfin/bfin.c: Likewise.
3775         * config/c6x/c6x.c: Likewise.
3776         * config/cr16/cr16.c: Likewise.
3777         * config/cris/cris.c: Likewise.
3778         * config/darwin-c.c: Likewise.
3779         * config/darwin.c: Likewise.
3780         * config/default-c.c: Likewise.
3781         * config/epiphany/epiphany.c: Likewise.
3782         * config/epiphany/mode-switch-use.c: Likewise.
3783         * config/epiphany/resolve-sw-modes.c: Likewise.
3784         * config/fr30/fr30.c: Likewise.
3785         * config/frv/frv.c: Likewise.
3786         * config/ft32/ft32.c: Likewise.
3787         * config/glibc-c.c: Likewise.
3788         * config/h8300/h8300.c: Likewise.
3789         * config/i386/i386-c.c: Likewise.
3790         * config/i386/i386.c: Likewise.
3791         * config/i386/msformat-c.c: Likewise.
3792         * config/i386/winnt-cxx.c: Likewise.
3793         * config/i386/winnt-stubs.c: Likewise.
3794         * config/i386/winnt.c: Likewise.
3795         * config/ia64/ia64-c.c: Likewise.
3796         * config/ia64/ia64.c: Likewise.
3797         * config/iq2000/iq2000.c: Likewise.
3798         * config/lm32/lm32.c: Likewise.
3799         * config/m32c/m32c-pragma.c: Likewise.
3800         * config/m32c/m32c.c: Likewise.
3801         * config/m32r/m32r.c: Likewise.
3802         * config/m68k/m68k.c: Likewise.
3803         * config/mcore/mcore.c: Likewise.
3804         * config/mep/mep-pragma.c: Likewise.
3805         * config/mep/mep.c: Likewise.
3806         * config/microblaze/microblaze-c.c: Likewise.
3807         * config/microblaze/microblaze.c: Likewise.
3808         * config/mips/mips.c: Likewise.
3809         * config/mmix/mmix.c: Likewise.
3810         * config/mn10300/mn10300.c: Likewise.
3811         * config/moxie/moxie.c: Likewise.
3812         * config/msp430/msp430-c.c: Likewise.
3813         * config/msp430/msp430.c: Likewise.
3814         * config/nds32/nds32-cost.c: Likewise.
3815         * config/nds32/nds32-fp-as-gp.c: Likewise.
3816         * config/nds32/nds32-intrinsic.c: Likewise.
3817         * config/nds32/nds32-isr.c: Likewise.
3818         * config/nds32/nds32-md-auxiliary.c: Likewise.
3819         * config/nds32/nds32-memory-manipulation.c: Likewise.
3820         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3821         * config/nds32/nds32-predicates.c: Likewise.
3822         * config/nds32/nds32.c: Likewise.
3823         * config/nios2/nios2.c: Likewise.
3824         * config/nvptx/nvptx.c: Likewise.
3825         * config/pa/pa.c: Likewise.
3826         * config/pdp11/pdp11.c: Likewise.
3827         * config/rl78/rl78-c.c: Likewise.
3828         * config/rl78/rl78.c: Likewise.
3829         * config/rs6000/rs6000-c.c: Likewise.
3830         * config/rs6000/rs6000.c: Likewise.
3831         * config/rx/rx.c: Likewise.
3832         * config/s390/s390-c.c: Likewise.
3833         * config/s390/s390.c: Likewise.
3834         * config/sh/sh-c.c: Likewise.
3835         * config/sh/sh-mem.cc: Likewise.
3836         * config/sh/sh.c: Likewise.
3837         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3838         * config/sh/sh_treg_combine.cc: Likewise.
3839         * config/sol2-c.c: Likewise.
3840         * config/sol2-cxx.c: Likewise.
3841         * config/sol2-stubs.c: Likewise.
3842         * config/sol2.c: Likewise.
3843         * config/sparc/sparc-c.c: Likewise.
3844         * config/sparc/sparc.c: Likewise.
3845         * config/spu/spu-c.c: Likewise.
3846         * config/spu/spu.c: Likewise.
3847         * config/stormy16/stormy16.c: Likewise.
3848         * config/tilegx/mul-tables.c: Likewise.
3849         * config/tilegx/tilegx-c.c: Likewise.
3850         * config/tilegx/tilegx.c: Likewise.
3851         * config/tilepro/mul-tables.c: Likewise.
3852         * config/tilepro/tilepro-c.c: Likewise.
3853         * config/tilepro/tilepro.c: Likewise.
3854         * config/v850/v850-c.c: Likewise.
3855         * config/v850/v850.c: Likewise.
3856         * config/vax/vax.c: Likewise.
3857         * config/visium/visium.c: Likewise.
3858         * config/vms/vms-c.c: Likewise.
3859         * config/vms/vms.c: Likewise.
3860         * config/vxworks.c: Likewise.
3861         * config/winnt-c.c: Likewise.
3862         * config/xtensa/xtensa.c: Likewise.
3863
3864 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
3865
3866         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
3867         function.
3868         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
3869
3870 2015-06-17  Richard Biener  <rguenther@suse.de>
3871
3872         PR tree-optimization/66251
3873         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
3874         stmts for SLP strided stores.
3875
3876         Revert
3877         2015-05-22  Richard Biener  <rguenther@suse.de>
3878
3879         PR tree-optimization/66251
3880         * tree-vect-stmts.c (vectorizable_conversion): Properly
3881         set STMT_VINFO_VEC_STMT even for the SLP case.
3882
3883         2015-05-26  Michael Matz  <matz@suse.de>
3884
3885         PR middle-end/66251
3886         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
3887         STMT_VINFO_VEC_STMT, also with SLP.
3888
3889 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
3890
3891         PR target/56766
3892         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
3893         (*avx_addsubv4df3_1s): Ditto.
3894         (*sse3_addsubv2df3_1): Ditto.
3895         (*sse3_addsubv2df3_1s): Ditto.
3896         (*avx_addsubv8sf3_1): Ditto.
3897         (*avx_addsubv8sf3_1s): Ditto.
3898         (*sse3_addsubv4sf3_1): Ditto.
3899         (*sse3_addsubv4sf3_1s): Ditto.
3900
3901 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
3902
3903         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
3904         (SYSROOT_SUFFIX_SPEC): Update.
3905         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
3906         (STARTFILE_PREFIX_SPEC): Update.
3907         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
3908         (MULTILIB_REQUIRED): New.
3909         (MULTILIB_OSDIRNAMES): New.
3910         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
3911         (MULTILIB_REQUIRED): New.
3912         (MULTILIB_OSDIRNAMES): New.
3913
3914 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
3915
3916         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
3917         * config/aarch64/aarch64-options-extensions.def: Update "fP",
3918         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
3919         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
3920         (AARCH64_FL_PAN): New.
3921         (AARCH64_FL_LOR): New.
3922         (AARCH64_FL_RDMA): New.
3923         (AARCH64_FL_FOR_ARCH8_1): New.
3924         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
3925         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
3926
3927 2015-06-16  Martin Liska  <mliska@suse.cz>
3928
3929         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
3930         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
3931         guard.
3932
3933 2015-06-16  Richard Biener  <rguenther@suse.de>
3934
3935         * tree-vect-stmts.c (vectorizable_store): Adjust.
3936         (vectorizable_load): Likewise.
3937         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3938         Simplify.
3939         (vect_create_data_ref_ptr): Likewise.
3940         (bump_vector_ptr): Adjust.
3941
3942 2015-06-16  Richard Biener  <rguenther@suse.de>
3943
3944         * tree-vect-stmts.c (vectorizable_load): Properly start loads
3945         with the first element if this is grouped loads.
3946
3947 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
3948
3949         * config/arm/arm-protos.h (struct tune_params): Rename
3950         log_op_non_sc to log_op_non_short_circuit, and rename enum
3951         values to expand SC to SHORT_CIRCUIT.
3952         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
3953         to LOG_OP_NON_SHORT_CIRCUIT.
3954         (arm_fastmul_tune):Likewise
3955         (arm_strongarm_tune): Likewise.
3956         (arm_xscale_tune): Likewise.
3957         (arm_9e_tune): Likewise.
3958         (arm_marvell_pj4_tune): Likewise.
3959         (arm_v6t2_tune): Likewise.
3960         (arm_cortex_tune): Likewise.
3961         (arm_cortex_a8_tune): Likewise.
3962         (arm_cortex_a7_tune): Likewise.
3963         (arm_cortex_a15_tune): Likewise.
3964         (arm_cortex_a53_tune): Likewise.
3965         (arm_cortex_a57_tune): Likewise.
3966         (arm_xgene1_tune): Likewise.
3967         (arm_cortex_a5_tune): Likewise.
3968         (arm_cortex_a9_tune): Likewise.
3969         (arm_cortex_a12_tune): Likewise.
3970         (arm_v7m_tune): Likewise.
3971         (arm_cortex_m7_tune): Likewise.
3972         (arm_v6m_tune): Likewise.
3973         (arm_fa726te_tune): Likewise.
3974
3975 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
3976
3977         * altivec.md: Delete UNSPEC_VMLADDUHM.
3978         (mulv4si3_p8): New pattern.
3979         (mulv4si3): Use it for POWER8.
3980         (mulv8hi3): Use vmladduhm with zero addend.
3981         (altivec_vmladduhm): Descriptive RTL.
3982
3983 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
3984
3985         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
3986         to use neon_move instead of mov_imm.
3987         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
3988         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
3989
3990         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
3991         aarch64_float_const_zero_rtx_p check before TFmode check.
3992         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
3993         an fp zero.
3994         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
3995         code and attributes to match.  Change condition from register_operand
3996         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
3997         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
3998         to store2.
3999
4000 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
4001
4002         PR debug/66535
4003         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
4004         there is no parent.
4005
4006 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
4007
4008         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
4009         HOST_WIDE_INT parameter.
4010
4011 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
4012
4013         PR ipa/66181
4014         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
4015         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
4016         TYPE_NO_FORCE_BLK.
4017         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
4018
4019 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
4020
4021         * rtl.h (classify_insn): Declare.
4022         * emit-rtl.c (classify_insn): Move to...
4023         * rtl.c: ...here and add generator support.
4024         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
4025         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
4026         * genemit.c (gen_emit_seq): New function.
4027         (gen_expand, gen_split): Use it.
4028
4029 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
4030
4031         * tree.c (make_vector_stat): Fix comment to state that the
4032         function returns a VECTOR_CST.
4033
4034 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
4035
4036         * gensupport.h (add_implicit_parallel): Declare.
4037         * genrecog.c (add_implicit_parallel): Move to...
4038         * gensupport.c (add_implicit_parallel): ...here.
4039         (process_one_cond_exec): Use it.
4040         * genemit.c (gen_insn): Likewise.
4041
4042 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
4043
4044         PR bootstrap/66448
4045         * passes.c (rest_of_decl_compilation): Do not register globals for
4046         early debug if they are declared in built-ins.
4047
4048 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
4049
4050         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
4051
4052 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4053
4054         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
4055         manually swapping.
4056         (noce_try_cmove_arith): Likewise.
4057         (noce_get_alt_condition): Likewise.
4058
4059 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4060
4061         * common/config/i386/i386-common.c
4062         (OPTION_MASK_ISA_MWAITX_SET): New.
4063         (ix86_handle_option): Handle mwaitx.
4064         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
4065         (x86_64-*-*): Likewise.
4066         * config/i386/mwaitxintrin.h: New header.
4067         * config/i386/cpuid.h (bit_MWAITX):  Define.
4068         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4069         MWAITX support.
4070         * config/i386/i386.opt (mwaitx): New.
4071         * config/i386/i386-builtin-types.def
4072         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
4073         * config/i386/i386-c.c: Define __MWAITX__ if needed.
4074         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
4075         (PTA_MWAITX): New.
4076         (ix86_option_override_internal): Handle new option.
4077         (processor_alias_table): Added PTA_MWAITX.
4078         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
4079         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
4080         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
4081         IX86_BUILTIN_MONITORX  built-ins.
4082         * config/i386/i386.h (TARGET_MWAITX): New.
4083         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
4084         UNSPEC_MONITORX.
4085         (mwaitx):  New pattern.
4086         (monitorx_<mode>): New pattern.
4087         * config/i386/x86intrin.h: Include mwaitxintrin.h.
4088         * doc/extend.texi: Document monitorx and mwaitx builtins.
4089         * doc/invoke.texi: Document -mmwaitx option.
4090
4091 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
4092
4093         * emit-rtl.c (need_atomic_barrier_p): Mask model with
4094         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
4095
4096 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
4097
4098         * dbxout.c (xcoff_debug_hooks): Provide a function for
4099         register_main_translation_unit hook.
4100
4101 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
4102
4103         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
4104         variants cases from switch.
4105         (rs6000_post_atomic_barrier): Same.
4106         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
4107         (rs6000_expand_atomic_exchange): Same.
4108         (rs6000_expand_atomic_op): Same.
4109         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
4110         SYNC variants cases from switch.
4111         (atomic_load): Same.
4112         (atomic_store): Same.
4113
4114 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
4115
4116         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
4117         CONST_INT for goto.
4118
4119 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
4120
4121         PR bootstrap/66448
4122         * dwarf2out.c (check_die): Check for common duplicate attributes.
4123         (add_location_or_const_value_attribute): Do not add duplicate
4124         attributes.
4125         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
4126         time around.
4127         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
4128         (gen_type_die_with_usage): Call check_die.
4129         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
4130
4131 2015-06-11  Jason Merrill  <jason@redhat.com>
4132
4133         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
4134         dies.
4135
4136 2015-06-11  Marek Polacek  <polacek@redhat.com>
4137
4138         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
4139
4140 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
4141
4142         PR bootstrap/66252
4143         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
4144         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
4145         (*addx_extend_sp32): Fix pasto.
4146         (*subx_extend): Rename into...
4147         (*subx_extend_sp32): ...this.
4148         (*adddi3_extend_sp32): Add earlyclobber.
4149         (*subdi3_insn_sp32): Likewise.
4150         (*subdi3_extend_sp32): Likewise.
4151         (*and_not_di_sp32): Likewise.
4152         (*or_not_di_sp32): Likewise.
4153         (*xor_not_di_sp32): Likewise.
4154         (*negdi2_sp32): Likewise.
4155         (*one_cmpldi2_sp32): Likewise.
4156
4157 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
4158
4159         * debug.h (struct gcc_debug_hooks): Add a
4160         register_main_translation_unit hook.
4161         * debug.c (do_nothing_debug_hooks): Provide a function for this
4162         new hook.
4163         * dbxout.c (dbx_debug_hooks): Likewise.
4164         * sdbout.c (sdb_debug_hooks): Likewise.
4165         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4166         * dwarf2out.c (main_translation_unit): New global variable.
4167         (dwarf2out_register_main_translation_unit): New function
4168         implementing the new hook.
4169         (dwarf2_debug_hooks): Assign
4170         dwarf2out_register_main_translation_unit to this new hook.
4171         (dwarf2out_init): Associate any main translation unit to
4172         comp_unit_die ().
4173
4174 2015-06-11  Marek Polacek  <polacek@redhat.com>
4175
4176         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
4177
4178 2015-06-11  Marek Polacek  <polacek@redhat.com>
4179
4180         * match.pd: Use single_use throughout.
4181
4182 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4183
4184         * config/arm/arm.c (arm_option_params_internal): When optimising
4185         for speed set max_insns_skipped when arm_restrict_it.
4186
4187 2015-06-11  Christian Bruel  <christian.bruel@st.com>
4188
4189         PR target/52144
4190         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
4191          macros in ...
4192         (arm_cpu_builtins): New function.
4193         (arm_pragma_target_parse): Call arm_cpu_builtins.
4194         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
4195         (arm_register_target_pragmas): Likewise.
4196         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
4197          Call arm_register_target_pragmas.
4198         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
4199         (arm_pragma_target_parse): Likewise.
4200
4201 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
4202
4203         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
4204         of the second operand.
4205
4206 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
4207
4208         PR target/66473
4209         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
4210         to prepare mask operand for AVX512 modes.
4211
4212 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
4213
4214         PR target/66474
4215         * doc/md.texi (Machine Constraints): Document that on the PowerPC
4216         if you use a constraint that targets a VSX register, you must use
4217         %x<n> in the template.
4218
4219 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
4220
4221         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
4222         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
4223         (define_insn "trap"): New definition.
4224
4225 2015-06-10  Richard Biener  <rguenther@suse.de>
4226
4227         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
4228         out from ...
4229         (vect_supported_load_permutation_p): ... here.  Handle
4230         supportable permutations in reductions.
4231         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
4232         for vectorizing strided group loads.
4233
4234 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
4235
4236         PR target/66470
4237         * config/i386/i386.c (ix86_split_long_move): For collisions
4238         involving direct tls segment refs, move the UNSPEC_TP possibly
4239         wrapped in ZERO_EXTEND out of the address for lea, to each of
4240         the memory loads.
4241
4242 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4243
4244         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
4245         dmb sy. Adjust tabs.
4246
4247 2015-06-10  Tom de Vries  <tom@codesourcery.com>
4248
4249         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
4250
4251 2015-06-10  Martin Liska  <mliska@suse.cz>
4252
4253         PR bootstrap/66471
4254         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
4255         all enum values in mem_alloc_origin.
4256         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
4257         name.
4258         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
4259         * bitmap.c (bitmap_register): Likewise.
4260         (dump_bitmap_statistics): Likewise.
4261         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
4262         (ggc_record_overhead): Likewise.
4263         * hash-map.h: Likewise.
4264         * hash-set.h: Likewise.
4265         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
4266         * hash-table.h: Likewise.
4267         * vec.c (vec_prefix::register_overhead): Likewise.
4268         (vec_prefix::release_overhead): Likewise.
4269         (dump_vec_loc_statistics): Likewise.
4270
4271 2015-06-09  Christian Bruel  <christian.bruel@st.com>
4272
4273         PR target/52144
4274         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
4275         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
4276         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
4277         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
4278         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
4279         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
4280         (arm_valid_target_attribute_p): Likewise.
4281         (arm_set_current_function, arm_can_inline_p): Likewise.
4282         (arm_valid_target_attribute_rec): Likewise.
4283         (arm_previous_fndecl): New variable.
4284         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
4285         (TARGET_CAN_INLINE_P): Define.
4286         (arm_asm_trampoline_template): Emit mode.
4287         (arm_file_start): Don't set unified syntax.
4288         (arm_declare_function_name): Set unified syntax and mode.
4289         (arm_option_override): Init target_option_default_node.
4290         and target_option_current_node.
4291         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
4292         (*call_symbol): Likewise.
4293         * doc/extend.texi: Document ARM/Thumb target attribute.
4294         * doc/invoke.texi: Likewise.
4295
4296 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
4297
4298         Revert:
4299         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
4300         PR rtl-optimization/64164
4301         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4302         * tree-ssa-copyrename.c: Removed.
4303         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4304         -ftree-coalesce-vars.
4305         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4306         * common.opt (ftree-copyrename): Ignore.
4307         (ftree-coalesce-inlined-vars): Likewise.
4308         * doc/invoke.texi: Remove the ignored options above.
4309         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4310         * tree-ssa-coalesce.h: ... here.
4311         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4312         headers required by it.
4313         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4314         across variables when flag_tree_coalesce_vars.  Check register
4315         use and promoted modes to allow coalescing.  Moved to
4316         tree-ssa-coalesce.c.
4317         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4318         with its member functions to tree-ssa-coalesce.c.
4319         (var_map_base_init): Likewise.  Renamed to
4320         compute_samebase_partition_bases.
4321         (partition_view_normal): Drop want_bases parameter.
4322         (partition_view_bitmap): Likewise.
4323         * tree-ssa-live.h: Adjust declarations.
4324         * tree-ssa-coalesce.c: Include explow.h.
4325         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4326         default defs at the entry point.
4327         (dump_part_var_map): New.
4328         (compute_optimized_partition_bases): New, called by...
4329         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4330         of compute_samebase_partition_bases.  Adjust.
4331         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4332         * cfgexpand.c (leader_merge): New.
4333         (get_rtl_for_parm_ssa_default_def): New.
4334         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4335         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4336         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4337         redundant MEM attr setting.
4338         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4339         from...
4340         (expand_one_stack_var): ... this.  New wrapper to check and
4341         skip already expanded SSA partitions.
4342         (record_alignment_for_reg_var): New, factored out of...
4343         (expand_one_var): ... this.
4344         (expand_one_ssa_partition): New.
4345         (adjust_one_expanded_partition_var): New.
4346         (expand_one_register_var): Check and skip already expanded SSA
4347         partitions.
4348         (expand_used_vars): Don't create DECLs for anonymous SSA
4349         names.  Expand all SSA partitions, then adjust all SSA names.
4350         (pass::execute): Replace the loops that set
4351         SA.partition_to_pseudo from partition leaders and cleared
4352         DECL_RTL for multi-location variables, and that which used to
4353         rename vars and set attrs, with one that clears DECL_RTL and
4354         checks that PARMs and RESULTs default_defs match DECL_RTL.
4355         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4356         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4357         * explow.c (promote_ssa_mode): New.
4358         * explow.h (promote_ssa_mode): Declare.
4359         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4360         * function.c: Include cfgexpand.h.
4361         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4362         (use_register_for_parm_decl): Wrapper for the above to
4363         special-case the result_ptr.
4364         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4365         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4366         multiple locations.
4367         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4368         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4369         (assign_parm_setup_block): Prefer SSA-assigned location.
4370         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
4371         if stack_parm is NULL.
4372         (assign_parm_setup_stack): Prefer SSA-assigned location.
4373         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4374         rtl before testing for pointer bounds.  Special-case result_ptr.
4375         (expand_function_start): Maybe reset DECL_RTL of result.
4376         Prefer SSA-assigned location for result and static chain.
4377         Factor out DECL_RESULT and SET_DECL_RTL.
4378         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4379         anonymous SSA names.  Use promote_ssa_mode.
4380         (get_temp_reg): Likewise.
4381         (remove_ssa_form): Adjust.
4382         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4383         and get its reg_usage for reg invalidation.
4384         (compute_bb_dataflow): Pass it insn.
4385         (emit_notes_in_bb): Likewise.
4386         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
4387         fail assert on conversion between unsigned types.
4388
4389 2015-06-09  Tom de Vries  <tom@codesourcery.com>
4390
4391         PR tree-optimization/65460
4392         * omp-low.c (expand_omp_target): Set parallelized_function on
4393         cgraph_node for child_fn.
4394
4395 2015-06-09  Tom de Vries  <tom@codesourcery.com>
4396
4397         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
4398         parallelized_function before add_new_function.
4399
4400 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
4401
4402         * gcc-plugin.h: Move decls to plugin.h and include it.
4403         * plugin.h: Relocate decls from gcc-plugin.h
4404         * ggc-page.c: Include required header files.
4405         * passes.c: Likewise.
4406         * cgraphunit.c: Likewise.
4407
4408 2015-06-09  Tom de Vries  <tom@codesourcery.com>
4409
4410         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
4411
4412 2015-06-09  Jason Merrill  <jason@redhat.com>
4413
4414         PR bootstrap/66448
4415         * toplev.c (check_global_declaration): Don't warn about a clone.
4416
4417 2015-06-09  Marek Polacek  <polacek@redhat.com>
4418
4419         PR tree-optimization/66299
4420         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
4421         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
4422         patterns.
4423
4424 2015-06-09  Richard Biener  <rguenther@suse.de>
4425
4426         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
4427         (vect_analyze_slp_instance): Instead do not falsely drop
4428         load permutations.
4429
4430 2015-06-09  Richard Biener  <rguenther@suse.de>
4431
4432         PR middle-end/66423
4433         * match.pd: Handle A % (unsigned)(1 << B).
4434
4435 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
4436
4437         * varasm.c (output_object_block_htab): Remove.
4438         (output_object_block_compare): New.
4439         (output_object_blocks): Sort named object_blocks before outputting
4440         them.
4441
4442 2015-06-09  Richard Biener  <rguenther@suse.de>
4443
4444         PR tree-optimization/66419
4445         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
4446         consider GROUP_GAP when detecting a perfect subchain.
4447
4448 2015-06-09  Nick Clifton  <nickc@redhat.com>
4449
4450         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
4451         place read only data in the .frodata section.
4452
4453 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
4454
4455         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
4456         (atomic_store<mode>): Likewise.
4457
4458 2015-06-09  Richard Biener  <rguenther@suse.de>
4459
4460         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
4461
4462 2015-06-09  Richard Biener  <rguenther@suse.de>
4463
4464         PR middle-end/66413
4465         * tree-inline.c (insert_init_debug_bind): Unshare value.
4466
4467 2015-06-09  Richard Biener  <rguenther@suse.de>
4468
4469         PR tree-optimization/66396
4470         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
4471         Rename virtual operands.
4472
4473 2015-06-09  Tom de Vries  <tom@codesourcery.com>
4474
4475         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
4476         always return false.
4477
4478 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
4479
4480         PR rtl-optimization/64164
4481         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4482         * tree-ssa-copyrename.c: Removed.
4483         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4484         -ftree-coalesce-vars.
4485         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4486         * common.opt (ftree-copyrename): Ignore.
4487         (ftree-coalesce-inlined-vars): Likewise.
4488         * doc/invoke.texi: Remove the ignored options above.
4489         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4490         * tree-ssa-coalesce.h: ... here.
4491         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4492         headers required by it.
4493         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4494         across variables when flag_tree_coalesce_vars.  Check register
4495         use and promoted modes to allow coalescing.  Moved to
4496         tree-ssa-coalesce.c.
4497         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4498         with its member functions to tree-ssa-coalesce.c.
4499         (var_map_base_init): Likewise.  Renamed to
4500         compute_samebase_partition_bases.
4501         (partition_view_normal): Drop want_bases parameter.
4502         (partition_view_bitmap): Likewise.
4503         * tree-ssa-live.h: Adjust declarations.
4504         * tree-ssa-coalesce.c: Include explow.h.
4505         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4506         default defs at the entry point.
4507         (dump_part_var_map): New.
4508         (compute_optimized_partition_bases): New, called by...
4509         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4510         of compute_samebase_partition_bases.  Adjust.
4511         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4512         * cfgexpand.c (leader_merge): New.
4513         (get_rtl_for_parm_ssa_default_def): New.
4514         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4515         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4516         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4517         redundant MEM attr setting.
4518         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4519         from...
4520         (expand_one_stack_var): ... this.  New wrapper to check and
4521         skip already expanded SSA partitions.
4522         (record_alignment_for_reg_var): New, factored out of...
4523         (expand_one_var): ... this.
4524         (expand_one_ssa_partition): New.
4525         (adjust_one_expanded_partition_var): New.
4526         (expand_one_register_var): Check and skip already expanded SSA
4527         partitions.
4528         (expand_used_vars): Don't create DECLs for anonymous SSA
4529         names.  Expand all SSA partitions, then adjust all SSA names.
4530         (pass::execute): Replace the loops that set
4531         SA.partition_to_pseudo from partition leaders and cleared
4532         DECL_RTL for multi-location variables, and that which used to
4533         rename vars and set attrs, with one that clears DECL_RTL and
4534         checks that PARMs and RESULTs default_defs match DECL_RTL.
4535         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4536         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4537         * explow.c (promote_ssa_mode): New.
4538         * explow.h (promote_ssa_mode): Declare.
4539         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4540         * function.c: Include cfgexpand.h.
4541         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4542         (use_register_for_parm_decl): Wrapper for the above to
4543         special-case the result_ptr.
4544         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4545         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4546         multiple locations.
4547         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4548         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4549         (assign_parm_setup_block): Prefer SSA-assigned location.
4550         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
4551         if stack_parm is NULL.
4552         (assign_parm_setup_stack): Prefer SSA-assigned location.
4553         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4554         rtl before testing for pointer bounds.  Special-case result_ptr.
4555         (expand_function_start): Maybe reset DECL_RTL of result.
4556         Prefer SSA-assigned location for result and static chain.
4557         Factor out DECL_RESULT and SET_DECL_RTL.
4558         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4559         anonymous SSA names.  Use promote_ssa_mode.
4560         (get_temp_reg): Likewise.
4561         (remove_ssa_form): Adjust.
4562         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4563         and get its reg_usage for reg invalidation.
4564         (compute_bb_dataflow): Pass it insn.
4565         (emit_notes_in_bb): Likewise.
4566         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
4567         fail assert on conversion between unsigned types.
4568
4569 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
4570
4571         PR debug/58315
4572         * tree-inline.c (reset_debug_binding): New.
4573         (reset_debug_bindings): Likewise.
4574         (expand_call_inline): Call it.
4575
4576 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
4577
4578         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
4579         TYPE_STRING_FLAG.
4580
4581 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
4582
4583         * lto-streamer-out.c (lto_output_location): Stream
4584         reserved locations correctly.
4585         * lto-streamer-in.c (lto_output_location): Likewise.
4586
4587 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
4588
4589         * coretypes.h: Include hash-table.h and hash-set.h for host files.
4590         * ggc.h: Don't include statistics.h>
4591         * hash-map.h: Remove all includes.
4592         * hash-set.h: Likewise.
4593         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
4594         the include list. Remove <new>.
4595         * inchash.h: Remove all includes.
4596         * mem-stats.h: Likewise.
4597         * vec.h: No special processing for generators or ggc.
4598         * alias.c : Adjust include files.
4599         * alloc-pool.c : Likewise.
4600         * alloc-pool.h : Likewise.
4601         * asan.c : Likewise.
4602         * attribs.c : Likewise.
4603         * auto-inc-dec.c : Likewise.
4604         * auto-profile.c : Likewise.
4605         * bb-reorder.c : Likewise.
4606         * bitmap.c : Likewise.
4607         * bitmap.h : Likewise.
4608         * bt-load.c : Likewise.
4609         * builtins.c : Likewise.
4610         * caller-save.c : Likewise.
4611         * calls.c : Likewise.
4612         * ccmp.c : Likewise.
4613         * cfg.c : Likewise.
4614         * cfganal.c : Likewise.
4615         * cfgbuild.c : Likewise.
4616         * cfgcleanup.c : Likewise.
4617         * cfgexpand.c : Likewise.
4618         * cfghooks.c : Likewise.
4619         * cfgloop.c : Likewise.
4620         * cfgloop.h : Likewise.
4621         * cfgloopanal.c : Likewise.
4622         * cfgloopmanip.c : Likewise.
4623         * cfgrtl.c : Likewise.
4624         * cgraph.c : Likewise.
4625         * cgraphbuild.c : Likewise.
4626         * cgraphclones.c : Likewise.
4627         * cgraphunit.c : Likewise.
4628         * cilk-common.c : Likewise.
4629         * combine-stack-adj.c : Likewise.
4630         * combine.c : Likewise.
4631         * compare-elim.c : Likewise.
4632         * context.c : Likewise.
4633         * convert.c : Likewise.
4634         * coverage.c : Likewise.
4635         * cppbuiltin.c : Likewise.
4636         * cprop.c : Likewise.
4637         * cse.c : Likewise.
4638         * cselib.c : Likewise.
4639         * data-streamer-in.c : Likewise.
4640         * data-streamer-out.c : Likewise.
4641         * data-streamer.c : Likewise.
4642         * data-streamer.h : Likewise.
4643         * dbxout.c : Likewise.
4644         * dce.c : Likewise.
4645         * ddg.c : Likewise.
4646         * debug.c : Likewise.
4647         * df-core.c : Likewise.
4648         * df-problems.c : Likewise.
4649         * df-scan.c : Likewise.
4650         * df.h : Likewise.
4651         * dfp.c : Likewise.
4652         * dojump.c : Likewise.
4653         * dominance.c : Likewise.
4654         * domwalk.c : Likewise.
4655         * double-int.c : Likewise.
4656         * dse.c : Likewise.
4657         * dumpfile.c : Likewise.
4658         * dwarf2asm.c : Likewise.
4659         * dwarf2cfi.c : Likewise.
4660         * dwarf2out.c : Likewise.
4661         * emit-rtl.c : Likewise.
4662         * et-forest.c : Likewise.
4663         * except.c : Likewise.
4664         * except.h : Likewise.
4665         * explow.c : Likewise.
4666         * expmed.c : Likewise.
4667         * expr.c : Likewise.
4668         * final.c : Likewise.
4669         * fixed-value.c : Likewise.
4670         * fold-const.c : Likewise.
4671         * function.c : Likewise.
4672         * fwprop.c : Likewise.
4673         * gcc-plugin.h : Likewise.
4674         * gcc.c : Likewise.
4675         * gcse-common.c : Likewise.
4676         * gcse.c : Likewise.
4677         * genattrtab.c : Likewise.
4678         * genautomata.c : Likewise.
4679         * genconditions.c : Likewise.
4680         * genemit.c : Likewise.
4681         * generic-match-head.c : Likewise.
4682         * genextract.c : Likewise.
4683         * gengtype-state.c : Likewise.
4684         * gengtype.c : Likewise.
4685         * genhooks.c : Likewise.
4686         * genmatch.c : Likewise.
4687         * genmodes.c : Likewise.
4688         * genrecog.c : Likewise.
4689         * gensupport.c : Likewise.
4690         * ggc-common.c : Likewise.
4691         * ggc-internal.h : Likewise.
4692         * ggc-none.c : Likewise.
4693         * ggc-page.c : Likewise.
4694         * gimple-builder.c : Likewise.
4695         * gimple-expr.c : Likewise.
4696         * gimple-fold.c : Likewise.
4697         * gimple-iterator.c : Likewise.
4698         * gimple-low.c : Likewise.
4699         * gimple-match-head.c : Likewise.
4700         * gimple-pretty-print.c : Likewise.
4701         * gimple-ssa-isolate-paths.c : Likewise.
4702         * gimple-ssa-strength-reduction.c : Likewise.
4703         * gimple-ssa.h : Likewise.
4704         * gimple-streamer-in.c : Likewise.
4705         * gimple-streamer-out.c : Likewise.
4706         * gimple-streamer.h : Likewise.
4707         * gimple-walk.c : Likewise.
4708         * gimple.c : Likewise.
4709         * gimplify-me.c : Likewise.
4710         * gimplify.c : Likewise.
4711         * godump.c : Likewise.
4712         * graph.c : Likewise.
4713         * graphds.c : Likewise.
4714         * graphite-blocking.c : Likewise.
4715         * graphite-dependences.c : Likewise.
4716         * graphite-interchange.c : Likewise.
4717         * graphite-isl-ast-to-gimple.c : Likewise.
4718         * graphite-optimize-isl.c : Likewise.
4719         * graphite-poly.c : Likewise.
4720         * graphite-scop-detection.c : Likewise.
4721         * graphite-sese-to-poly.c : Likewise.
4722         * graphite.c : Likewise.
4723         * haifa-sched.c : Likewise.
4724         * hard-reg-set.h : Likewise.
4725         * hw-doloop.c : Likewise.
4726         * ifcvt.c : Likewise.
4727         * inchash.c : Likewise.
4728         * incpath.c : Likewise.
4729         * init-regs.c : Likewise.
4730         * input.c : Likewise.
4731         * internal-fn.c : Likewise.
4732         * ipa-chkp.c : Likewise.
4733         * ipa-comdats.c : Likewise.
4734         * ipa-cp.c : Likewise.
4735         * ipa-devirt.c : Likewise.
4736         * ipa-icf-gimple.c : Likewise.
4737         * ipa-icf.c : Likewise.
4738         * ipa-inline-analysis.c : Likewise.
4739         * ipa-inline-transform.c : Likewise.
4740         * ipa-inline.c : Likewise.
4741         * ipa-polymorphic-call.c : Likewise.
4742         * ipa-profile.c : Likewise.
4743         * ipa-prop.c : Likewise.
4744         * ipa-pure-const.c : Likewise.
4745         * ipa-ref.c : Likewise.
4746         * ipa-reference.c : Likewise.
4747         * ipa-split.c : Likewise.
4748         * ipa-utils.c : Likewise.
4749         * ipa-visibility.c : Likewise.
4750         * ipa.c : Likewise.
4751         * ira-build.c : Likewise.
4752         * ira-color.c : Likewise.
4753         * ira-conflicts.c : Likewise.
4754         * ira-costs.c : Likewise.
4755         * ira-emit.c : Likewise.
4756         * ira-lives.c : Likewise.
4757         * ira.c : Likewise.
4758         * jump.c : Likewise.
4759         * langhooks.c : Likewise.
4760         * lcm.c : Likewise.
4761         * libfuncs.h : Likewise.
4762         * lists.c : Likewise.
4763         * loop-doloop.c : Likewise.
4764         * loop-init.c : Likewise.
4765         * loop-invariant.c : Likewise.
4766         * loop-iv.c : Likewise.
4767         * loop-unroll.c : Likewise.
4768         * lower-subreg.c : Likewise.
4769         * lra-assigns.c : Likewise.
4770         * lra-coalesce.c : Likewise.
4771         * lra-constraints.c : Likewise.
4772         * lra-eliminations.c : Likewise.
4773         * lra-lives.c : Likewise.
4774         * lra-remat.c : Likewise.
4775         * lra-spills.c : Likewise.
4776         * lra.c : Likewise.
4777         * lto-cgraph.c : Likewise.
4778         * lto-compress.c : Likewise.
4779         * lto-opts.c : Likewise.
4780         * lto-section-in.c : Likewise.
4781         * lto-section-out.c : Likewise.
4782         * lto-streamer-in.c : Likewise.
4783         * lto-streamer-out.c : Likewise.
4784         * lto-streamer.c : Likewise.
4785         * lto-streamer.h : Likewise.
4786         * mcf.c : Likewise.
4787         * mode-switching.c : Likewise.
4788         * modulo-sched.c : Likewise.
4789         * omega.c : Likewise.
4790         * omp-low.c : Likewise.
4791         * optabs.c : Likewise.
4792         * opts-global.c : Likewise.
4793         * opts.h : Likewise.
4794         * passes.c : Likewise.
4795         * plugin.c : Likewise.
4796         * postreload-gcse.c : Likewise.
4797         * postreload.c : Likewise.
4798         * predict.c : Likewise.
4799         * print-rtl.c : Likewise.
4800         * print-tree.c : Likewise.
4801         * profile.c : Likewise.
4802         * read-md.c : Likewise.
4803         * read-md.h : Likewise.
4804         * read-rtl.c : Likewise.
4805         * real.c : Likewise.
4806         * realmpfr.c : Likewise.
4807         * recog.c : Likewise.
4808         * ree.c : Likewise.
4809         * reg-stack.c : Likewise.
4810         * regcprop.c : Likewise.
4811         * reginfo.c : Likewise.
4812         * regrename.c : Likewise.
4813         * regstat.c : Likewise.
4814         * reload.c : Likewise.
4815         * reload1.c : Likewise.
4816         * reorg.c : Likewise.
4817         * resource.c : Likewise.
4818         * rtl-chkp.c : Likewise.
4819         * rtl.c : Likewise.
4820         * rtl.h : Likewise.
4821         * rtlanal.c : Likewise.
4822         * rtlhash.c : Likewise.
4823         * rtlhash.h : Likewise.
4824         * rtlhooks.c : Likewise.
4825         * sanopt.c : Likewise.
4826         * sched-deps.c : Likewise.
4827         * sched-ebb.c : Likewise.
4828         * sched-rgn.c : Likewise.
4829         * sched-vis.c : Likewise.
4830         * sdbout.c : Likewise.
4831         * sel-sched-dump.c : Likewise.
4832         * sel-sched-ir.c : Likewise.
4833         * sel-sched-ir.h : Likewise.
4834         * sel-sched.c : Likewise.
4835         * sese.c : Likewise.
4836         * shrink-wrap.c : Likewise.
4837         * shrink-wrap.h : Likewise.
4838         * simplify-rtx.c : Likewise.
4839         * stack-ptr-mod.c : Likewise.
4840         * statistics.c : Likewise.
4841         * stmt.c : Likewise.
4842         * stor-layout.c : Likewise.
4843         * store-motion.c : Likewise.
4844         * stringpool.c : Likewise.
4845         * symtab.c : Likewise.
4846         * target-globals.c : Likewise.
4847         * targhooks.c : Likewise.
4848         * tlink.c : Likewise.
4849         * toplev.c : Likewise.
4850         * tracer.c : Likewise.
4851         * trans-mem.c : Likewise.
4852         * tree-affine.c : Likewise.
4853         * tree-affine.h : Likewise.
4854         * tree-browser.c : Likewise.
4855         * tree-call-cdce.c : Likewise.
4856         * tree-cfg.c : Likewise.
4857         * tree-cfgcleanup.c : Likewise.
4858         * tree-chkp-opt.c : Likewise.
4859         * tree-chkp.c : Likewise.
4860         * tree-chrec.c : Likewise.
4861         * tree-complex.c : Likewise.
4862         * tree-data-ref.c : Likewise.
4863         * tree-dfa.c : Likewise.
4864         * tree-diagnostic.c : Likewise.
4865         * tree-dump.c : Likewise.
4866         * tree-eh.c : Likewise.
4867         * tree-eh.h : Likewise.
4868         * tree-emutls.c : Likewise.
4869         * tree-hasher.h : Likewise.
4870         * tree-if-conv.c : Likewise.
4871         * tree-inline.c : Likewise.
4872         * tree-inline.h : Likewise.
4873         * tree-into-ssa.c : Likewise.
4874         * tree-iterator.c : Likewise.
4875         * tree-loop-distribution.c : Likewise.
4876         * tree-nested.c : Likewise.
4877         * tree-nrv.c : Likewise.
4878         * tree-object-size.c : Likewise.
4879         * tree-outof-ssa.c : Likewise.
4880         * tree-parloops.c : Likewise.
4881         * tree-phinodes.c : Likewise.
4882         * tree-predcom.c : Likewise.
4883         * tree-pretty-print.c : Likewise.
4884         * tree-profile.c : Likewise.
4885         * tree-scalar-evolution.c : Likewise.
4886         * tree-sra.c : Likewise.
4887         * tree-ssa-address.c : Likewise.
4888         * tree-ssa-alias.c : Likewise.
4889         * tree-ssa-ccp.c : Likewise.
4890         * tree-ssa-coalesce.c : Likewise.
4891         * tree-ssa-copy.c : Likewise.
4892         * tree-ssa-copyrename.c : Likewise.
4893         * tree-ssa-dce.c : Likewise.
4894         * tree-ssa-dom.c : Likewise.
4895         * tree-ssa-dse.c : Likewise.
4896         * tree-ssa-forwprop.c : Likewise.
4897         * tree-ssa-ifcombine.c : Likewise.
4898         * tree-ssa-live.c : Likewise.
4899         * tree-ssa-loop-ch.c : Likewise.
4900         * tree-ssa-loop-im.c : Likewise.
4901         * tree-ssa-loop-ivcanon.c : Likewise.
4902         * tree-ssa-loop-ivopts.c : Likewise.
4903         * tree-ssa-loop-manip.c : Likewise.
4904         * tree-ssa-loop-niter.c : Likewise.
4905         * tree-ssa-loop-prefetch.c : Likewise.
4906         * tree-ssa-loop-unswitch.c : Likewise.
4907         * tree-ssa-loop.c : Likewise.
4908         * tree-ssa-math-opts.c : Likewise.
4909         * tree-ssa-operands.c : Likewise.
4910         * tree-ssa-phiopt.c : Likewise.
4911         * tree-ssa-phiprop.c : Likewise.
4912         * tree-ssa-pre.c : Likewise.
4913         * tree-ssa-propagate.c : Likewise.
4914         * tree-ssa-reassoc.c : Likewise.
4915         * tree-ssa-sccvn.c : Likewise.
4916         * tree-ssa-scopedtables.c : Likewise.
4917         * tree-ssa-sink.c : Likewise.
4918         * tree-ssa-strlen.c : Likewise.
4919         * tree-ssa-structalias.c : Likewise.
4920         * tree-ssa-tail-merge.c : Likewise.
4921         * tree-ssa-ter.c : Likewise.
4922         * tree-ssa-threadedge.c : Likewise.
4923         * tree-ssa-threadupdate.c : Likewise.
4924         * tree-ssa-uncprop.c : Likewise.
4925         * tree-ssa-uninit.c : Likewise.
4926         * tree-ssa.c : Likewise.
4927         * tree-ssanames.c : Likewise.
4928         * tree-stdarg.c : Likewise.
4929         * tree-streamer-in.c : Likewise.
4930         * tree-streamer-out.c : Likewise.
4931         * tree-streamer.c : Likewise.
4932         * tree-streamer.h : Likewise.
4933         * tree-switch-conversion.c : Likewise.
4934         * tree-tailcall.c : Likewise.
4935         * tree-vect-data-refs.c : Likewise.
4936         * tree-vect-generic.c : Likewise.
4937         * tree-vect-loop-manip.c : Likewise.
4938         * tree-vect-loop.c : Likewise.
4939         * tree-vect-patterns.c : Likewise.
4940         * tree-vect-slp.c : Likewise.
4941         * tree-vect-stmts.c : Likewise.
4942         * tree-vectorizer.c : Likewise.
4943         * tree-vectorizer.h : Likewise.
4944         * tree-vrp.c : Likewise.
4945         * tree.c : Likewise.
4946         * tsan.c : Likewise.
4947         * ubsan.c : Likewise.
4948         * valtrack.c : Likewise.
4949         * valtrack.h : Likewise.
4950         * value-prof.c : Likewise.
4951         * var-tracking.c : Likewise.
4952         * varasm.c : Likewise.
4953         * varpool.c : Likewise.
4954         * vec.c: Likewise.
4955         * vmsdbgout.c : Likewise.
4956         * vtable-verify.c : Likewise.
4957         * vtable-verify.h : Likewise.
4958         * web.c : Likewise.
4959         * wide-int.cc : Likewise.
4960         * xcoffout.c : Likewise.
4961         * config/aarch64/aarch64-builtins.c : Likewise.
4962         * config/aarch64/aarch64.c : Likewise.
4963         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
4964         * config/alpha/alpha.c : Likewise.
4965         * config/arc/arc.c : Likewise.
4966         * config/arm/aarch-common.c : Likewise.
4967         * config/arm/arm-builtins.c : Likewise.
4968         * config/arm/arm-c.c : Likewise.
4969         * config/arm/arm.c : Likewise.
4970         * config/avr/avr-c.c : Likewise.
4971         * config/avr/avr-log.c : Likewise.
4972         * config/avr/avr.c : Likewise.
4973         * config/bfin/bfin.c : Likewise.
4974         * config/c6x/c6x.c : Likewise.
4975         * config/cr16/cr16.c : Likewise.
4976         * config/cris/cris.c : Likewise.
4977         * config/darwin-c.c : Likewise.
4978         * config/darwin.c : Likewise.
4979         * config/default-c.c : Likewise.
4980         * config/epiphany/epiphany.c : Likewise.
4981         * config/epiphany/mode-switch-use.c : Likewise.
4982         * config/epiphany/resolve-sw-modes.c : Likewise.
4983         * config/fr30/fr30.c : Likewise.
4984         * config/frv/frv.c : Likewise.
4985         * config/ft32/ft32.c : Likewise.
4986         * config/glibc-c.c : Likewise.
4987         * config/h8300/h8300.c : Likewise.
4988         * config/i386/i386-c.c : Likewise.
4989         * config/i386/i386.c : Likewise.
4990         * config/i386/msformat-c.c : Likewise.
4991         * config/i386/winnt-cxx.c : Likewise.
4992         * config/i386/winnt-stubs.c : Likewise.
4993         * config/i386/winnt.c : Likewise.
4994         * config/ia64/ia64-c.c : Likewise.
4995         * config/ia64/ia64.c : Likewise.
4996         * config/iq2000/iq2000.c : Likewise.
4997         * config/lm32/lm32.c : Likewise.
4998         * config/m32c/m32c-pragma.c : Likewise.
4999         * config/m32c/m32c.c : Likewise.
5000         * config/m32r/m32r.c : Likewise.
5001         * config/m68k/m68k.c : Likewise.
5002         * config/mcore/mcore.c : Likewise.
5003         * config/mep/mep-pragma.c : Likewise.
5004         * config/mep/mep.c : Likewise.
5005         * config/microblaze/microblaze-c.c : Likewise.
5006         * config/microblaze/microblaze.c : Likewise.
5007         * config/mips/mips.c : Likewise.
5008         * config/mmix/mmix.c : Likewise.
5009         * config/mn10300/mn10300.c : Likewise.
5010         * config/moxie/moxie.c : Likewise.
5011         * config/msp430/msp430-c.c : Likewise.
5012         * config/msp430/msp430.c : Likewise.
5013         * config/nds32/nds32-cost.c : Likewise.
5014         * config/nds32/nds32-fp-as-gp.c : Likewise.
5015         * config/nds32/nds32-intrinsic.c : Likewise.
5016         * config/nds32/nds32-isr.c : Likewise.
5017         * config/nds32/nds32-md-auxiliary.c : Likewise.
5018         * config/nds32/nds32-memory-manipulation.c : Likewise.
5019         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
5020         * config/nds32/nds32-predicates.c : Likewise.
5021         * config/nds32/nds32.c : Likewise.
5022         * config/nios2/nios2.c : Likewise.
5023         * config/nvptx/nvptx.c : Likewise.
5024         * config/pa/pa.c : Likewise.
5025         * config/pdp11/pdp11.c : Likewise.
5026         * config/rl78/rl78-c.c : Likewise.
5027         * config/rl78/rl78.c : Likewise.
5028         * config/rs6000/rs6000-c.c : Likewise.
5029         * config/rs6000/rs6000.c : Likewise.
5030         * config/rx/rx.c : Likewise.
5031         * config/s390/s390-c.c : Likewise.
5032         * config/s390/s390.c : Likewise.
5033         * config/sh/sh-c.c : Likewise.
5034         * config/sh/sh-mem.cc : Likewise.
5035         * config/sh/sh.c : Likewise.
5036         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
5037         * config/sh/sh_treg_combine.cc : Likewise.
5038         * config/sol2-c.c : Likewise.
5039         * config/sol2-cxx.c : Likewise.
5040         * config/sol2-stubs.c : Likewise.
5041         * config/sol2.c : Likewise.
5042         * config/sparc/sparc-c.c : Likewise.
5043         * config/sparc/sparc.c : Likewise.
5044         * config/spu/spu-c.c : Likewise.
5045         * config/spu/spu.c : Likewise.
5046         * config/stormy16/stormy16.c : Likewise.
5047         * config/tilegx/mul-tables.c : Likewise.
5048         * config/tilegx/tilegx-c.c : Likewise.
5049         * config/tilegx/tilegx.c : Likewise.
5050         * config/tilepro/mul-tables.c : Likewise.
5051         * config/tilepro/tilepro-c.c : Likewise.
5052         * config/tilepro/tilepro.c : Likewise.
5053         * config/v850/v850-c.c : Likewise.
5054         * config/v850/v850.c : Likewise.
5055         * config/vax/vax.c : Likewise.
5056         * config/visium/visium.c : Likewise.
5057         * config/vms/vms-c.c : Likewise.
5058         * config/vms/vms.c : Likewise.
5059         * config/vxworks.c : Likewise.
5060         * config/winnt-c.c : Likewise.
5061         * config/xtensa/xtensa.c : Likewise.
5062
5063 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
5064
5065         PR lto/65378
5066         * ipa-utils.h (warn_types_mismatch): Update prototype.
5067         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
5068         parameters.
5069         (type_mismatch_p): New function.
5070         (warn_types_mismatch): Reorg to work better on non-C++ types.
5071         (odr_types_equivalent_p): Add loc1/loc2 parameters.
5072         (add_type_duplicate): Update.
5073
5074 2015-06-08  Tom de Vries  <tom@codesourcery.com>
5075
5076         PR rtl-optimization/66444
5077         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
5078         call_used_regs.
5079
5080 2015-06-08  Richard Biener  <rguenther@suse.de>
5081
5082         PR tree-optimization/66422
5083         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
5084         block after inserted gcc_unreachable.
5085
5086 2015-06-08  Nick Clifton  <nickc@redhat.com>
5087
5088         * config/rx/rx.c (rx_function_value): Do not promote vector types.
5089         (rx_promote_function_mode): Likewise.
5090         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
5091
5092 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
5093
5094         * genattrtab.c (insn_alternatives): Change type from int *
5095         to uint64_t *.
5096         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
5097         (get_attr_value): Change type of num_alt to uint64_t.
5098         (compute_alternative_mask): Change return type from
5099         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
5100         (make_alternative_compare, mk_attr_alt): Change argument type
5101         from int to uint64_t.
5102         (simplify_test_exp): Change type of i from int to uint64_t.
5103         Shift ((uint64_t) 1) instead of 1 up.
5104         (main): Adjust oballocvec first argument from int to uint64_t.
5105         Shift ((uint64_t) 1) instead of 1 up.
5106
5107 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5108
5109         PR other/65366
5110         * gdbhooks.py: Import sys.
5111         (intptr): New function.  Replace int(...) by intptr(...).
5112
5113 2015-06-08  Richard Biener  <rguenther@suse.de>
5114
5115         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
5116         adjustment for gaps at the end of a SLP load group properly.
5117         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
5118         all permutations we can generate.
5119         (vect_transform_slp_perm_load): Use the correct group-size.
5120
5121 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
5122
5123         * genmatch.c (expr::gen_transform): For conditions, guess the type
5124         from the second operand.
5125
5126 2015-06-08  Tom de Vries  <tom@codesourcery.com>
5127
5128         PR tree-optimization/66442
5129         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
5130         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
5131         if the loop latch is not a singleton.  Use
5132         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
5133
5134 2015-06-08  Marek Polacek  <polacek@redhat.com>
5135
5136         PR sanitizer/66452
5137         * toplev.c (check_global_declaration): Don't warn about artificial
5138         decls.
5139
5140 2015-06-08  Tom de Vries  <tom@codesourcery.com>
5141
5142         PR tree-optimization/66436
5143         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
5144         dump file.
5145         * gimplify.c: Add tree-dump.h include.
5146         (gimplify_function_tree): Dump function to gimple dump file.
5147         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
5148         dump file.
5149
5150 2015-06-08  Tom de Vries  <tom@codesourcery.com>
5151
5152         PR tree-optimization/66435
5153         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
5154         function.
5155
5156 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
5157
5158         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
5159         of ptr_type_node to not be ptr_to_node.
5160         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
5161         TREE_TYPE of pointers.
5162         * gimple-expr.c (useless_type_conversion): Reorder the check for
5163         function pointers and TYPE_CANONICAL.
5164
5165 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
5166
5167         PR bootstrap/66319
5168         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
5169         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
5170         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
5171         later.
5172         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
5173         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
5174         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
5175         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
5176         and non iso if unix2003.
5177
5178 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
5179
5180         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
5181
5182 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
5183
5184         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
5185         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
5186         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
5187         except.c, final.c, function.c, gcse-common.c, genemit.c,
5188         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
5189         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
5190         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
5191         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
5192         more derived ones.
5193
5194 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
5195
5196         * combine.c (combine_split_insns): Remove cast.
5197         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
5198         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
5199         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
5200         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
5201         * genemit.c (gen_split): Change return type of generated functions to
5202         rtx_insn.
5203         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
5204         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
5205         gen_peephole2_* functions.
5206         (print_subroutine, main): Likewise.
5207         * recog.c (peephole2_optimize): Remove cast.
5208         (peep2_next_insn): Promote return type to rtx_insn.
5209         * recog.h (peep2_next_insn): Fix prototype.
5210         * rtl.h (try_split, split_insns): Likewise.
5211
5212 2015-06-06  DJ Delorie  <dj@redhat.com>
5213
5214         * config/msp430/msp430.c (msp430_asm_integer): Support addition
5215         and subtraction too.
5216
5217 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
5218
5219         PR target/66410
5220         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
5221         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
5222         instead of Snd.  Disparage Sid/z alternative with '^'.
5223
5224 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
5225
5226         * dwarf2out.c: Remove deferred_locations*.
5227         (dwarf2_debug_hooks): Add early_finish hook.
5228         Remove global_decl hook.
5229         Add early_global_decl and late_global_decl hook.
5230         New global early_dwarf.
5231         New structure set_early_dwarf.
5232         (output_die): Indicate whether a DIE was generated early
5233         when generating assembly with -dA.
5234         (struct limbo_die_struct): Document created_for field.
5235         Remove file_table_last_lookup.
5236         (remove_AT): Return TRUE if successful.
5237         (remove_child_TAG): Clear die_parent.
5238         (reparent_child): New function abstracted from...
5239         (splice_child_die): ...here.
5240         (new_die): ICE if a DIE ends up in limbo too late.
5241         (check_die): New.
5242         (defer_location): Remove.
5243         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
5244         (fill_variable_array_bounds): New.
5245         (decl_start_label): Call fill_variable_array_bounds.
5246         (gen_formal_parameter_die): Rewrite to reuse previously generated
5247         DIEs.
5248         (gen_subprogram_die): Same.
5249         (gen_variable_die): Same.
5250         (gen_const_die): Same.
5251         (gen_label_die): Same.
5252         (gen_lexical_block_die): Same.
5253         (decl_will_get_specification_p): New.
5254         (local_function_static): New.
5255         (gen_struct_or_union_type_die): Fill in variable-length fields.
5256         (gen_typedef_die): Fill in variable-length typedefs.
5257         (gen_tagged_type_die): Gracefully return on error_mark_node.
5258         Handle re-entrancy.
5259         (gen_type_die_with_usage): Handle variable-length types.
5260         Remove duplicate code for ARRAY_TYPE case.
5261         (process_scope_var): Only process imported modules during early
5262         dwarf.
5263         (dwarf2out_early_global_decl): New.
5264         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
5265         (dwarf2out_type_decl): Set early_dwarf while calling
5266         dwarf2out_decl.
5267         (dwarf2out_decl): Verify that we did not recreate a previously
5268         generated DIE.
5269         Do not return on DECL_EXTERNALs in VAR_DECLs.
5270         Abstract some code to local_function_static.
5271         (lookup_filename): Remove use of file_table_last_lookup.
5272         Gracefully exit on missing file_name.
5273         (dwarf2out_finish): Verify limbo list.
5274         Remove deferred_locations_list use.
5275         Move deferred_asm_name and limbo flushing to...
5276         (dwarf2out_early_finish): ...here.  New.
5277         (dwarf2out_c_finalize): Remove set of deferred_location_list,
5278         deferred_asm_name, and file_table_last_lookup.
5279         * cgraph.h (referred_to_p): Add default argument.
5280         * cgraphunit.c (referred_to_p): Add and handle include_self
5281         argument.
5282         (analyze_functions): Add first_time argument.
5283         Call check_global_declaration for all symbols.
5284         Call late_global_decl for nodes for moribund nodes.
5285         (finalize_compilation_unit): Add new argument to
5286         analyze_functions.
5287         Call early_global_decl for functions.
5288         Call early_finish debug hook.
5289         * dbxout.c (dbxout_early_global_decl): New.
5290         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
5291         (dbx_debug_hooks): Add new hooks.
5292         (xcoff_debug_hooks): Same.
5293         * debug.c (do_nothing_debug_hooks): Add early_finish field.
5294         Add early and late debug hooks.
5295         Remove global_decl hook.
5296         * debug.h (struct gcc_debug_hooks): Add early_finish,
5297         early_global_decl, and late_global_decl fields.
5298         Remove global_decl field.
5299         Document gcc_debug_hooks.
5300         * gengtype.c (output_typename): Remove.
5301         * godump.c (go_early_global_decl): New.
5302         (go_late_global_decl): New.
5303         (go_global_decl): Remove.
5304         (dump_go_spec_init): Remove global_decl.  Add
5305         {early,late}_global_decl.
5306         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
5307         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
5308         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
5309         (write_global_declarations): Remove.
5310         (global_decl_processing): New.
5311         * langhooks.h (struct lang_hooks_for_decls): Remove
5312         final_write_globals field.
5313         Add post_compilation_parsing_cleanups field.
5314         * passes.c (rest_of_decl_compilation): Call early_global_decl.
5315         * sdbout.c: Add early and late_global_decl hooks.  Remove
5316         sdbout_global_decl hook.
5317         Add early_finish field for sdb_debug_hooks.
5318         (sdbout_global_decl): Remove.
5319         (sdbout_early_global_decl): New.
5320         (sdbout_late_global_decl): New.
5321         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
5322         * toplev.c (check_global_declaration): Rename from
5323         check_global_declaration_1.
5324         Adapt to use symtab infrastructure.
5325         (check_global_declarations): Remove.
5326         (emit_debug_global_declarations): Remove.
5327         (compile_file): Remove call to final_write_globals langhook.
5328         Run the actual compilation process.
5329         Perform any post compilation parser cleanups.
5330         Generate late debug info.
5331         * toplev.h (check_global_declaration): New.
5332         (check_global_declaration_1): Remove.
5333         (check_global_declarations): Remove.
5334         (write_global_declarations): Remove.
5335         (emit_debug_global_declarations): Remove.
5336         (global_decl_processing): New.
5337         * tree-core.h (struct tree_block): Add DIE field.
5338         * tree.h (BLOCK_DIE): New.
5339         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
5340         throughout.
5341         (vmsdbgout_early_global_decl): New.
5342         (vmsdbgout_late_global_decl): New.
5343         Add early_finish debug hook field to vmsdbg_debug_hooks.
5344         Remove vmsdbgout_decl to vmsdbgout_function_decl.
5345         Add early and late_global_decl debug hooks.
5346
5347 2015-06-05  Julian Brown  <julian@codesourcery.com>
5348             Sandra Loosemore  <sandra@codesourcery.com>
5349
5350         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
5351         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
5352         to print-sysroot-suffix.sh script.
5353
5354 2015-06-05  Tom de Vries  <tom@codesourcery.com>
5355
5356         merge from gomp4 branch:
5357         2015-05-28  Tom de Vries  <tom@codesourcery.com>
5358
5359         PR tree-optimization/65443
5360         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
5361         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
5362         (try_transform_to_exit_first_loop_alt): New function.
5363         (transform_to_exit_first_loop): Use
5364         try_transform_to_exit_first_loop_alt.
5365
5366 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
5367
5368         * builtins.c (expand_builtin_atomic_compare_exchange): Call
5369         emit_cmp_and_jump_insns with the mode of target.
5370
5371 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5372
5373         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
5374
5375 2015-06-04  DJ Delorie  <dj@redhat.com>
5376
5377         * config/msp430/msp430.md (movsi_s): New.  Special case for
5378         storing a 20-bit symbol into a 32-bit register.
5379         * config/msp430/msp430.c (msp430_subreg): Add support for it.
5380         * config/msp430/predicates.md (msp430_symbol_operand): New.
5381
5382 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
5383
5384         * c-family/c-common.c (noplt): New attribute.
5385         (handle_noplt_attribute): New handler.
5386         * calls.c (prepare_call_address): Check for noplt
5387         attribute.
5388         * config/i386/i386.c (ix86_expand_call): Check
5389         for noplt attribute.
5390         (ix86_nopic_noplt_attribute_p): New function.
5391         (ix86_output_call_insn): Output indirect call for non-pic
5392         no plt calls.
5393         * doc/extend.texi (noplt): Document new attribute.
5394         * doc/invoke.texi: Document new attribute.
5395
5396 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
5397
5398         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
5399         real.h, and fixed-value.h when included in host source files.
5400         * double-int.h: Remove redundant #includes listed above.
5401         * fixed-value.h: Likewise.
5402         * real.h: Likewise.
5403         * wide-int.h: Likewise.
5404         * inchash.h: Likewise.
5405         * rtl.h: Add some include files When included from a generator file.
5406         * target.h: Remove wide-int.h and insn-modes.h from the include list.
5407         * internal-fn.h: Don't include coretypes.h.
5408         * alias.c: Adjust includes for restructured coretypes.h.
5409         * asan.c: Likewise.
5410         * attribs.c: Likewise.
5411         * auto-inc-dec.c: Likewise.
5412         * auto-profile.c: Likewise.
5413         * bb-reorder.c: Likewise.
5414         * bt-load.c: Likewise.
5415         * builtins.c: Likewise.
5416         * caller-save.c: Likewise.
5417         * calls.c: Likewise.
5418         * ccmp.c: Likewise.
5419         * cfg.c: Likewise.
5420         * cfganal.c: Likewise.
5421         * cfgbuild.c: Likewise.
5422         * cfgcleanup.c: Likewise.
5423         * cfgexpand.c: Likewise.
5424         * cfghooks.c: Likewise.
5425         * cfgloop.c: Likewise.
5426         * cfgloop.h: Likewise.
5427         * cfgloopanal.c: Likewise.
5428         * cfgloopmanip.c: Likewise.
5429         * cfgrtl.c: Likewise.
5430         * cgraph.c: Likewise.
5431         * cgraphbuild.c: Likewise.
5432         * cgraphclones.c: Likewise.
5433         * cgraphunit.c: Likewise.
5434         * cilk-common.c: Likewise.
5435         * combine-stack-adj.c: Likewise.
5436         * combine.c: Likewise.
5437         * compare-elim.c: Likewise.
5438         * convert.c: Likewise.
5439         * coverage.c: Likewise.
5440         * cppbuiltin.c: Likewise.
5441         * cprop.c: Likewise.
5442         * cse.c: Likewise.
5443         * cselib.c: Likewise.
5444         * data-streamer-in.c: Likewise.
5445         * data-streamer-out.c: Likewise.
5446         * data-streamer.c: Likewise.
5447         * dbxout.c: Likewise.
5448         * dce.c: Likewise.
5449         * ddg.c: Likewise.
5450         * debug.c: Likewise.
5451         * df-core.c: Likewise.
5452         * df-problems.c: Likewise.
5453         * df-scan.c: Likewise.
5454         * df.h: Likewise.
5455         * dfp.c: Likewise.
5456         * dojump.c: Likewise.
5457         * dominance.c: Likewise.
5458         * domwalk.c: Likewise.
5459         * double-int.c: Likewise.
5460         * dse.c: Likewise.
5461         * dumpfile.c: Likewise.
5462         * dwarf2asm.c: Likewise.
5463         * dwarf2cfi.c: Likewise.
5464         * dwarf2out.c: Likewise.
5465         * dwarf2out.h: Likewise.
5466         * emit-rtl.c: Likewise.
5467         * et-forest.c: Likewise.
5468         * except.c: Likewise.
5469         * explow.c: Likewise.
5470         * expmed.c: Likewise.
5471         * expr.c: Likewise.
5472         * final.c: Likewise.
5473         * fixed-value.c: Likewise.
5474         * fold-const.c: Likewise.
5475         * function.c: Likewise.
5476         * fwprop.c: Likewise.
5477         * gcc-plugin.h: Likewise.
5478         * gcse.c: Likewise.
5479         * generic-match-head.c: Likewise.
5480         * ggc-page.c: Likewise.
5481         * gimple-builder.c: Likewise.
5482         * gimple-expr.c: Likewise.
5483         * gimple-fold.c: Likewise.
5484         * gimple-iterator.c: Likewise.
5485         * gimple-low.c: Likewise.
5486         * gimple-match-head.c: Likewise.
5487         * gimple-pretty-print.c: Likewise.
5488         * gimple-ssa-isolate-paths.c: Likewise.
5489         * gimple-ssa-strength-reduction.c: Likewise.
5490         * gimple-streamer-in.c: Likewise.
5491         * gimple-streamer-out.c: Likewise.
5492         * gimple-streamer.h: Likewise.
5493         * gimple-walk.c: Likewise.
5494         * gimple.c: Likewise.
5495         * gimplify-me.c: Likewise.
5496         * gimplify.c: Likewise.
5497         * godump.c: Likewise.
5498         * graph.c: Likewise.
5499         * graphite-blocking.c: Likewise.
5500         * graphite-dependences.c: Likewise.
5501         * graphite-interchange.c: Likewise.
5502         * graphite-isl-ast-to-gimple.c: Likewise.
5503         * graphite-optimize-isl.c: Likewise.
5504         * graphite-poly.c: Likewise.
5505         * graphite-scop-detection.c: Likewise.
5506         * graphite-sese-to-poly.c: Likewise.
5507         * graphite.c: Likewise.
5508         * haifa-sched.c: Likewise.
5509         * hooks.h: Likewise.
5510         * hw-doloop.c: Likewise.
5511         * ifcvt.c: Likewise.
5512         * incpath.c: Likewise.
5513         * init-regs.c: Likewise.
5514         * internal-fn.c: Likewise.
5515         * ipa-chkp.c: Likewise.
5516         * ipa-comdats.c: Likewise.
5517         * ipa-cp.c: Likewise.
5518         * ipa-devirt.c: Likewise.
5519         * ipa-icf-gimple.c: Likewise.
5520         * ipa-icf.c: Likewise.
5521         * ipa-inline-analysis.c: Likewise.
5522         * ipa-inline-transform.c: Likewise.
5523         * ipa-inline.c: Likewise.
5524         * ipa-polymorphic-call.c: Likewise.
5525         * ipa-profile.c: Likewise.
5526         * ipa-prop.c: Likewise.
5527         * ipa-pure-const.c: Likewise.
5528         * ipa-ref.c: Likewise.
5529         * ipa-reference.c: Likewise.
5530         * ipa-split.c: Likewise.
5531         * ipa-utils.c: Likewise.
5532         * ipa-visibility.c: Likewise.
5533         * ipa.c: Likewise.
5534         * ira-build.c: Likewise.
5535         * ira-color.c: Likewise.
5536         * ira-conflicts.c: Likewise.
5537         * ira-costs.c: Likewise.
5538         * ira-emit.c: Likewise.
5539         * ira-lives.c: Likewise.
5540         * ira.c: Likewise.
5541         * jump.c: Likewise.
5542         * langhooks.c: Likewise.
5543         * lcm.c: Likewise.
5544         * loop-doloop.c: Likewise.
5545         * loop-init.c: Likewise.
5546         * loop-invariant.c: Likewise.
5547         * loop-iv.c: Likewise.
5548         * loop-unroll.c: Likewise.
5549         * lower-subreg.c: Likewise.
5550         * lra-assigns.c: Likewise.
5551         * lra-coalesce.c: Likewise.
5552         * lra-constraints.c: Likewise.
5553         * lra-eliminations.c: Likewise.
5554         * lra-lives.c: Likewise.
5555         * lra-remat.c: Likewise.
5556         * lra-spills.c: Likewise.
5557         * lra.c: Likewise.
5558         * lto-cgraph.c: Likewise.
5559         * lto-compress.c: Likewise.
5560         * lto-opts.c: Likewise.
5561         * lto-section-in.c: Likewise.
5562         * lto-section-out.c: Likewise.
5563         * lto-streamer-in.c: Likewise.
5564         * lto-streamer-out.c: Likewise.
5565         * lto-streamer.c: Likewise.
5566         * mcf.c: Likewise.
5567         * mode-switching.c: Likewise.
5568         * modulo-sched.c: Likewise.
5569         * omega.c: Likewise.
5570         * omp-low.c: Likewise.
5571         * optabs.c: Likewise.
5572         * opts-global.c: Likewise.
5573         * passes.c: Likewise.
5574         * plugin.c: Likewise.
5575         * postreload-gcse.c: Likewise.
5576         * postreload.c: Likewise.
5577         * predict.c: Likewise.
5578         * print-rtl.c: Likewise.
5579         * print-tree.c: Likewise.
5580         * profile.c: Likewise.
5581         * real.c: Likewise.
5582         * realmpfr.c: Likewise.
5583         * realmpfr.h: Likewise.
5584         * recog.c: Likewise.
5585         * ree.c: Likewise.
5586         * reg-stack.c: Likewise.
5587         * regcprop.c: Likewise.
5588         * reginfo.c: Likewise.
5589         * regrename.c: Likewise.
5590         * regs.h: Likewise.
5591         * regstat.c: Likewise.
5592         * reload.c: Likewise.
5593         * reload1.c: Likewise.
5594         * reorg.c: Likewise.
5595         * resource.c: Likewise.
5596         * rtl-chkp.c: Likewise.
5597         * rtlanal.c: Likewise.
5598         * rtlhooks.c: Likewise.
5599         * sanopt.c: Likewise.
5600         * sched-deps.c: Likewise.
5601         * sched-ebb.c: Likewise.
5602         * sched-rgn.c: Likewise.
5603         * sched-vis.c: Likewise.
5604         * sdbout.c: Likewise.
5605         * sel-sched-dump.c: Likewise.
5606         * sel-sched-ir.c: Likewise.
5607         * sel-sched.c: Likewise.
5608         * sese.c: Likewise.
5609         * shrink-wrap.c: Likewise.
5610         * shrink-wrap.h: Likewise.
5611         * simplify-rtx.c: Likewise.
5612         * stack-ptr-mod.c: Likewise.
5613         * statistics.c: Likewise.
5614         * stmt.c: Likewise.
5615         * stor-layout.c: Likewise.
5616         * store-motion.c: Likewise.
5617         * stringpool.c: Likewise.
5618         * symtab.c: Likewise.
5619         * target-globals.c: Likewise.
5620         * targhooks.c: Likewise.
5621         * toplev.c: Likewise.
5622         * tracer.c: Likewise.
5623         * trans-mem.c: Likewise.
5624         * tree-affine.c: Likewise.
5625         * tree-affine.h: Likewise.
5626         * tree-browser.c: Likewise.
5627         * tree-call-cdce.c: Likewise.
5628         * tree-cfg.c: Likewise.
5629         * tree-cfgcleanup.c: Likewise.
5630         * tree-chkp-opt.c: Likewise.
5631         * tree-chkp.c: Likewise.
5632         * tree-chrec.c: Likewise.
5633         * tree-complex.c: Likewise.
5634         * tree-data-ref.c: Likewise.
5635         * tree-dfa.c: Likewise.
5636         * tree-diagnostic.c: Likewise.
5637         * tree-dump.c: Likewise.
5638         * tree-eh.c: Likewise.
5639         * tree-emutls.c: Likewise.
5640         * tree-if-conv.c: Likewise.
5641         * tree-inline.c: Likewise.
5642         * tree-into-ssa.c: Likewise.
5643         * tree-iterator.c: Likewise.
5644         * tree-loop-distribution.c: Likewise.
5645         * tree-nested.c: Likewise.
5646         * tree-nrv.c: Likewise.
5647         * tree-object-size.c: Likewise.
5648         * tree-outof-ssa.c: Likewise.
5649         * tree-parloops.c: Likewise.
5650         * tree-phinodes.c: Likewise.
5651         * tree-predcom.c: Likewise.
5652         * tree-pretty-print.c: Likewise.
5653         * tree-pretty-print.h: Likewise.
5654         * tree-profile.c: Likewise.
5655         * tree-scalar-evolution.c: Likewise.
5656         * tree-sra.c: Likewise.
5657         * tree-ssa-address.c: Likewise.
5658         * tree-ssa-alias.c: Likewise.
5659         * tree-ssa-ccp.c: Likewise.
5660         * tree-ssa-coalesce.c: Likewise.
5661         * tree-ssa-copy.c: Likewise.
5662         * tree-ssa-copyrename.c: Likewise.
5663         * tree-ssa-dce.c: Likewise.
5664         * tree-ssa-dom.c: Likewise.
5665         * tree-ssa-dse.c: Likewise.
5666         * tree-ssa-forwprop.c: Likewise.
5667         * tree-ssa-ifcombine.c: Likewise.
5668         * tree-ssa-live.c: Likewise.
5669         * tree-ssa-loop-ch.c: Likewise.
5670         * tree-ssa-loop-im.c: Likewise.
5671         * tree-ssa-loop-ivcanon.c: Likewise.
5672         * tree-ssa-loop-ivopts.c: Likewise.
5673         * tree-ssa-loop-manip.c: Likewise.
5674         * tree-ssa-loop-niter.c: Likewise.
5675         * tree-ssa-loop-prefetch.c: Likewise.
5676         * tree-ssa-loop-unswitch.c: Likewise.
5677         * tree-ssa-loop.c: Likewise.
5678         * tree-ssa-loop.h: Likewise.
5679         * tree-ssa-math-opts.c: Likewise.
5680         * tree-ssa-operands.c: Likewise.
5681         * tree-ssa-phiopt.c: Likewise.
5682         * tree-ssa-phiprop.c: Likewise.
5683         * tree-ssa-pre.c: Likewise.
5684         * tree-ssa-propagate.c: Likewise.
5685         * tree-ssa-reassoc.c: Likewise.
5686         * tree-ssa-sccvn.c: Likewise.
5687         * tree-ssa-scopedtables.c: Likewise.
5688         * tree-ssa-sink.c: Likewise.
5689         * tree-ssa-strlen.c: Likewise.
5690         * tree-ssa-structalias.c: Likewise.
5691         * tree-ssa-tail-merge.c: Likewise.
5692         * tree-ssa-ter.c: Likewise.
5693         * tree-ssa-threadedge.c: Likewise.
5694         * tree-ssa-threadupdate.c: Likewise.
5695         * tree-ssa-uncprop.c: Likewise.
5696         * tree-ssa-uninit.c: Likewise.
5697         * tree-ssa.c: Likewise.
5698         * tree-ssanames.c: Likewise.
5699         * tree-stdarg.c: Likewise.
5700         * tree-streamer-in.c: Likewise.
5701         * tree-streamer-out.c: Likewise.
5702         * tree-streamer.c: Likewise.
5703         * tree-switch-conversion.c: Likewise.
5704         * tree-tailcall.c: Likewise.
5705         * tree-vect-data-refs.c: Likewise.
5706         * tree-vect-generic.c: Likewise.
5707         * tree-vect-loop-manip.c: Likewise.
5708         * tree-vect-loop.c: Likewise.
5709         * tree-vect-patterns.c: Likewise.
5710         * tree-vect-slp.c: Likewise.
5711         * tree-vect-stmts.c: Likewise.
5712         * tree-vectorizer.c: Likewise.
5713         * tree-vrp.c: Likewise.
5714         * tree.c: Likewise.
5715         * tsan.c: Likewise.
5716         * ubsan.c: Likewise.
5717         * valtrack.c: Likewise.
5718         * value-prof.c: Likewise.
5719         * var-tracking.c: Likewise.
5720         * varasm.c: Likewise.
5721         * varpool.c: Likewise.
5722         * vmsdbgout.c: Likewise.
5723         * vtable-verify.c: Likewise.
5724         * web.c: Likewise.
5725         * wide-int-print.cc: Likewise.
5726         * wide-int-print.h: Likewise.
5727         * wide-int.cc: Likewise.
5728         * xcoffout.c: Likewise.
5729         * config/aarch64/aarch64-builtins.c: Likewise.
5730         * config/aarch64/aarch64.c: Likewise.
5731         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5732         * config/alpha/alpha.c: Likewise.
5733         * config/arc/arc.c: Likewise.
5734         * config/arm/aarch-common.c: Likewise.
5735         * config/arm/arm-builtins.c: Likewise.
5736         * config/arm/arm-c.c: Likewise.
5737         * config/arm/arm.c: Likewise.
5738         * config/avr/avr-c.c: Likewise.
5739         * config/avr/avr-log.c: Likewise.
5740         * config/avr/avr.c: Likewise.
5741         * config/bfin/bfin.c: Likewise.
5742         * config/c6x/c6x.c: Likewise.
5743         * config/cr16/cr16.c: Likewise.
5744         * config/cris/cris.c: Likewise.
5745         * config/darwin-c.c: Likewise.
5746         * config/darwin.c: Likewise.
5747         * config/default-c.c: Likewise.
5748         * config/epiphany/epiphany.c: Likewise.
5749         * config/epiphany/mode-switch-use.c: Likewise.
5750         * config/epiphany/resolve-sw-modes.c: Likewise.
5751         * config/fr30/fr30.c: Likewise.
5752         * config/frv/frv.c: Likewise.
5753         * config/ft32/ft32.c: Likewise.
5754         * config/glibc-c.c: Likewise.
5755         * config/h8300/h8300.c: Likewise.
5756         * config/i386/i386-c.c: Likewise.
5757         * config/i386/i386.c: Likewise.
5758         * config/i386/msformat-c.c: Likewise.
5759         * config/i386/winnt-cxx.c: Likewise.
5760         * config/i386/winnt-stubs.c: Likewise.
5761         * config/i386/winnt.c: Likewise.
5762         * config/ia64/ia64-c.c: Likewise.
5763         * config/ia64/ia64.c: Likewise.
5764         * config/iq2000/iq2000.c: Likewise.
5765         * config/lm32/lm32.c: Likewise.
5766         * config/m32c/m32c-pragma.c: Likewise.
5767         * config/m32c/m32c.c: Likewise.
5768         * config/m32r/m32r.c: Likewise.
5769         * config/m68k/m68k.c: Likewise.
5770         * config/mcore/mcore.c: Likewise.
5771         * config/mep/mep-pragma.c: Likewise.
5772         * config/mep/mep.c: Likewise.
5773         * config/microblaze/microblaze-c.c: Likewise.
5774         * config/microblaze/microblaze.c: Likewise.
5775         * config/mips/mips.c: Likewise.
5776         * config/mmix/mmix.c: Likewise.
5777         * config/mn10300/mn10300.c: Likewise.
5778         * config/moxie/moxie.c: Likewise.
5779         * config/msp430/msp430-c.c: Likewise.
5780         * config/msp430/msp430.c: Likewise.
5781         * config/nds32/nds32-cost.c: Likewise.
5782         * config/nds32/nds32-fp-as-gp.c: Likewise.
5783         * config/nds32/nds32-intrinsic.c: Likewise.
5784         * config/nds32/nds32-isr.c: Likewise.
5785         * config/nds32/nds32-md-auxiliary.c: Likewise.
5786         * config/nds32/nds32-memory-manipulation.c: Likewise.
5787         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5788         * config/nds32/nds32-predicates.c: Likewise.
5789         * config/nds32/nds32.c: Likewise.
5790         * config/nios2/nios2.c: Likewise.
5791         * config/nvptx/nvptx.c: Likewise.
5792         * config/pa/pa.c: Likewise.
5793         * config/pdp11/pdp11.c: Likewise.
5794         * config/rl78/rl78-c.c: Likewise.
5795         * config/rl78/rl78.c: Likewise.
5796         * config/rs6000/rs6000-c.c: Likewise.
5797         * config/rs6000/rs6000.c: Likewise.
5798         * config/rx/rx.c: Likewise.
5799         * config/s390/s390-c.c: Likewise.
5800         * config/s390/s390.c: Likewise.
5801         * config/sh/sh-c.c: Likewise.
5802         * config/sh/sh-mem.cc: Likewise.
5803         * config/sh/sh.c: Likewise.
5804         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5805         * config/sh/sh_treg_combine.cc: Likewise.
5806         * config/sol2-c.c: Likewise.
5807         * config/sol2-cxx.c: Likewise.
5808         * config/sol2-stubs.c: Likewise.
5809         * config/sol2.c: Likewise.
5810         * config/sparc/sparc-c.c: Likewise.
5811         * config/sparc/sparc.c: Likewise.
5812         * config/spu/spu-c.c: Likewise.
5813         * config/spu/spu.c: Likewise.
5814         * config/stormy16/stormy16.c: Likewise.
5815         * config/tilegx/mul-tables.c: Likewise.
5816         * config/tilegx/tilegx-c.c: Likewise.
5817         * config/tilegx/tilegx.c: Likewise.
5818         * config/tilepro/mul-tables.c: Likewise.
5819         * config/tilepro/tilepro-c.c: Likewise.
5820         * config/tilepro/tilepro.c: Likewise.
5821         * config/v850/v850-c.c: Likewise.
5822         * config/v850/v850.c: Likewise.
5823         * config/vax/vax.c: Likewise.
5824         * config/visium/visium.c: Likewise.
5825         * config/vms/vms-c.c: Likewise.
5826         * config/vms/vms.c: Likewise.
5827         * config/vxworks.c: Likewise.
5828         * config/winnt-c.c: Likewise.
5829         * config/xtensa/xtensa.c: Likewise.
5830         * common/config/bfin/bfin-common.c: Likewise.
5831
5832 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
5833
5834         * tree.h (tree_code_for_canonical_type_merging): New function.
5835         * tree.c (gimple_canonical_types_compatible_p): Use
5836         tree_code_for_canonical_type_merging..
5837
5838 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5839
5840         PR c++/66192
5841         PR target/66200
5842         * doc/tm.texi: Regenerate.
5843         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
5844         * target.def (TARGET_RELAXED_ORDERING): Likewise.
5845         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
5846         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
5847         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
5848         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
5849         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
5850         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
5851         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
5852
5853 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5854
5855         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
5856         register fma steering pass.
5857         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
5858         AARCH64_TUNE_FMA_STEERING.
5859
5860 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
5861
5862         * tree.c (verify_type_variant): Verify that type and variant is
5863         compatible.
5864         (gimple_canonical_types_compatible_p): Look for main variants.
5865
5866 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
5867
5868         * config.gcc (powerpc*-*-*): Add support for a new configure
5869         option --with-advance-toolchain=<xxx> which overrides using the
5870         default header files, libraries and dynamic linker.
5871
5872         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
5873         specs to support the configure --with-advance-toolchain=<xxx>
5874         option.
5875         (INCLUDE_EXTRA_SPEC): Likewise.
5876         (LINK_OS_EXTRA_SPEC32): Likewise.
5877         (LINK_OK_EXTRA_SPEC64): Likewise.
5878         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
5879         (DYNAMIC_LINKER_PREFIX): Likewise.
5880         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
5881         toolchain support.
5882         (GLIBC_DYNAMIC_LINKER32): Likewise.
5883         (GLIBC_DYNAMIC_LINKER64): Likewise.
5884         (LINK_OS_LINUX_SPEC32): Likewise.
5885         (LINK_OS_LINUX_SPEC64): Likewise.
5886
5887         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
5888         configuration option.
5889
5890 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
5891
5892         PR target/66275
5893         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
5894         to determine current function ABI.
5895         (ix86_function_value_regno_p): Ditto.
5896
5897 2015-06-03  Martin Liska  <mliska@suse.cz>
5898
5899         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
5900         * bitmap.h (struct bitmap_usage): Likewise.
5901         * ggc-common.c (struct ggc_usage): Likewise.
5902         * mem-stats.h (struct mem_location): Likewise.
5903         (struct mem_usage): Likewise.
5904         * vec.c (struct vec_usage): Likewise.
5905
5906 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
5907
5908         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
5909         -Bsymbolic.
5910
5911 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
5912
5913         * doc/plugins.texi (enum plugin_event): New event.
5914         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
5915         and PLUGIN_FINISH_FUNCTION.
5916         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
5917         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
5918
5919 2015-06-03  Richard Biener  <rguenther@suse.de>
5920
5921         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5922         compute GROUP_GAP for the first element.
5923         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
5924         on in-group gaps.
5925
5926 2015-06-03  Nick Clifton  <nickc@redhat.com>
5927
5928         * config/rl78/rl78-real.md: Add peepholes to avoid a register
5929         copy when calling a function.
5930         * config/rl78/rl78.c (need_to_save): Do not push the frame
5931         pointer in an interrupt handler prologue if it is never used.
5932
5933 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5934
5935         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
5936
5937 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
5938
5939         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
5940         reference when cloning alias node.
5941
5942 2015-06-03  Martin Liska  <mliska@suse.cz>
5943
5944         * alloc-pool.h (struct pool_usage): Correct space padding.
5945         * ggc-page.c (ggc_print_statistics): Align columns in a report.
5946         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
5947         * tree.c (dump_tree_statistics): Align columns in a report.
5948
5949 2015-06-03  Martin Liska  <mliska@suse.cz>
5950
5951         * alloc-pool.c (allocate_pool_descriptor): Remove.
5952         (struct pool_output_info): Likewise.
5953         (print_alloc_pool_statistics): Likewise.
5954         (dump_alloc_pool_statistics): Likewise.
5955         * alloc-pool.h (struct pool_usage): New struct.
5956         (pool_allocator::initialize): Change usage of memory statistics
5957         to a new interface.
5958         (pool_allocator::release): Likewise.
5959         (pool_allocator::allocate): Likewise.
5960         (pool_allocator::remove): Likewise.
5961         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
5962         for a pool allocator.
5963         * mem-stats.h (struct mem_location): Add new ctor.
5964         (struct mem_usage): Add counter for number of
5965         instances.
5966         (mem_alloc_description::register_descriptor): New overload of
5967         * mem-stats.h (mem_location::to_string): New function.
5968         * bitmap.h (struct bitmap_usage): Use this new function.
5969         * ggc-common.c (struct ggc_usage): Likewise.
5970         the function.
5971
5972 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
5973
5974         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
5975         of GCC_INSN_FLAGS_H block.
5976
5977 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
5978
5979         * explow.c (plus_constant): Update check after force_const_mem call
5980         to see if the value returned is not a NULL_RTX.
5981
5982 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
5983
5984         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
5985         remove instumentation thunks calling reachable functions.
5986         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
5987         * lto/lto-partition.c (privatize_symbol_name_1): New.
5988         (privatize_symbol_name): Privatize both decl and orig_decl
5989         names for instrumented functions.
5990         * cgraph.c (cgraph_node::verify_node): Add transparent
5991         alias chain check for instrumented node.
5992
5993 2015-06-03  Marek Polacek  <polacek@redhat.com>
5994
5995         PR c/64223
5996         PR c/29358
5997         * tree.c (attribute_value_equal): Handle attribute format.
5998         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
5999
6000 2015-06-03  Richard Biener  <rguenther@suse.de>
6001
6002         PR tree-optimization/63916
6003         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
6004         Forward-propagate non-invariant addresses by splicing their
6005         reference ops if the result isn't going to be used by PRE.
6006         (vn_reference_lookup_3): Remove pointless assert.
6007
6008 2015-06-03  Richard Biener  <rguenther@suse.de>
6009
6010         PR tree-optimization/66375
6011         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
6012         add to the evolution before following SSA edges.
6013
6014 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
6015
6016         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
6017         (dump_use, dump_cand, find_induction_variables): Pass new argument
6018         to dump_iv.
6019         (record_use): Preserve the ssa name information in IV.
6020
6021 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
6022
6023         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
6024         NO_MODE_TEST.
6025         (add_mode_tests): Don't add mode tests if the predicate only
6026         accepts scalar constant integers.  Otherwise, allow the mode
6027         of "op" to be VOIDmode if the predicate does accept such integers.
6028
6029 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
6030
6031         PR target/66258
6032         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
6033         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
6034         (aarch64_secondary_reload): Likewise
6035         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
6036         to !TARGET_FLOAT.
6037         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
6038         Likewise.
6039
6040 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
6041             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
6042
6043         PR target/65768
6044         * cprop.c (try_replace_reg): Check cost of constants before propagating.
6045
6046 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6047
6048         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
6049         provide access to the IBM extended double floating point mode if
6050         long double is IEEE 128-bit floating point.
6051         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
6052         point if long double is the IBM extended double type.
6053
6054         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
6055         enable adding IEEE 128-bit floating point support.
6056         (-mfloat128-software): Likewise.
6057         (-mfloat128-sw): Likewise.
6058
6059         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
6060         128-bit floating point types to occupy any register if
6061         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
6062         -mfloat128-software is enabled.
6063         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
6064         support.
6065         (rs6000_option_override_internal): Add -mfloat128-* support.
6066         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
6067
6068         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
6069         and float128 type nodes.
6070         (ieee128_float_type_node): Likewise.
6071         (ibm128_float_type_node): Likewise.
6072
6073 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6074
6075         PR target/66136
6076         * config/aarch64/geniterators.sh: Rewrite in awk.
6077
6078 2015-06-02  Martin Liska  <mliska@suse.cz>
6079
6080         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
6081         values to avoid -Wmaybe-uninitialized errors.
6082
6083 2015-06-02  Richard Biener  <rguenther@suse.de>
6084
6085         PR debug/65549
6086         * dwarf2out.c (lookup_context_die): New function.
6087         (resolve_addr): Avoid forcing a full DIE for the
6088         target of a DW_TAG_GNU_call_site during late compilation.
6089         Instead create a stub DIE without a type if we have a
6090         context DIE present.
6091
6092 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
6093
6094         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
6095
6096 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
6097
6098         PR tree-optimization/48052
6099         * cfgloop.h (struct control_iv): New.
6100         (struct loop): New field control_ivs.
6101         * tree-ssa-loop-niter.c : Include "stor-layout.h".
6102         (number_of_iterations_lt): Set no_overflow information.
6103         (number_of_iterations_exit): Init control iv in niter struct.
6104         (record_control_iv): New.
6105         (estimate_numbers_of_iterations_loop): Call record_control_iv.
6106         (loop_exits_before_overflow): New.  Interface factored out of
6107         scev_probably_wraps_p.
6108         (scev_probably_wraps_p): Factor loop niter related code into
6109         loop_exits_before_overflow.
6110         (free_numbers_of_iterations_estimates_loop): Free control ivs.
6111         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
6112
6113 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
6114
6115         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
6116         the target doesn't belong to the current function.
6117
6118 2015-06-02  Marek Polacek  <polacek@redhat.com>
6119
6120         PR middle-end/66345
6121         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
6122         get_maxval_strlen does not produce an INTEGER_CST.
6123
6124 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
6125
6126         * config/arc/constraints.md: Use lower-case names in match_code.
6127         * config/mmix/constraints.md: Likewise.
6128
6129 2015-06-02  Richard Biener  <rguenther@suse.de>
6130
6131         PR tree-optimization/65961
6132         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
6133         check and clarify dump message.
6134         (vect_build_slp_tree): If all children are built up from scalars
6135         build up the parent from scalars instead.
6136         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
6137
6138 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6139
6140         PR other/65366
6141         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
6142         instead of print ... .
6143
6144 2015-06-02  Alan Modra  <amodra@gmail.com>
6145
6146         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
6147         2014-08-11 change.
6148
6149 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
6150
6151         PR tree-optimization/52563
6152         PR tree-optimization/62173
6153         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
6154         (alloc_iv, set_iv): New parameter.
6155         (determine_biv_step): Delete.
6156         (find_bivs): Inline original determine_biv_step.  Pass new
6157         argument to set_iv.
6158         (idx_find_step): Use no_overflow information for conversion.
6159         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
6160         resolve_mixers handle folded_casts.
6161         (instantiate_scev_name): Change bool parameter to bool pointer.
6162         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
6163         (instantiate_array_ref, instantiate_scev_not): Ditto.
6164         (instantiate_scev_3, instantiate_scev_2): Ditto.
6165         (instantiate_scev_1, instantiate_scev_r): Ditto.
6166         (instantiate_scev_convert, ): Change parameter.  Pass argument
6167         to chrec_convert_aggressive.
6168         (instantiate_scev): Change argument.
6169         (resolve_mixers): New parameter and set it.
6170         (scev_const_prop): New argument.
6171         * tree-scalar-evolution.h (resolve_mixers): New parameter.
6172         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
6173         of chrec_conert_1.
6174         (chrec_convert): New parameter.  Move definition below.
6175         (chrec_convert_aggressive): New parameter and set it.  Call
6176         convert_affine_scev.
6177         * tree-chrec.h (chrec_convert): New parameter.
6178         (chrec_convert_aggressive): Ditto.
6179
6180 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
6181
6182         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
6183         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
6184         the LHS of a no-return call if its type has variable size.
6185         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
6186         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
6187
6188 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
6189
6190         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
6191         * config.in: Regenerate.
6192
6193 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
6194
6195         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
6196         consecutive accesses within outer-loop with force_vectorize
6197         for references with zero step in inner-loop.
6198
6199 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
6200
6201         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
6202         rather than from gcc/build directory.
6203
6204 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
6205
6206         PR target/65697
6207         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
6208         for __sync memory models, emit initial loads and final barriers as
6209         appropriate.
6210
6211 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
6212
6213         PR target/65697
6214         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
6215         (aarch64_split_atomic_op): Check for __sync memory models, emit
6216         appropriate initial loads and final barriers.
6217
6218 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
6219
6220         * Makefile.in: Fix gcov dependencies that should
6221         not point to a build folder.
6222
6223 2015-06-01  Richard Biener  <rguenther@suse.de>
6224
6225         Revert
6226         2015-05-29  Richard Biener  <rguenther@suse.de>
6227
6228         PR tree-optimization/66314
6229         * tree-ssa-threadupdate.c (create_block_for_threading): Add
6230         parameter that says which loop the new block belongs to.
6231         (ssa_create_duplicates): Blocks duplicated for the threaded
6232         path belong to the loop of the thread destination.
6233
6234 2015-06-01  Martin Liska  <mliska@suse.cz>
6235
6236         * sched-deps.c: Include pool-alloc.h before
6237         cselib.h header file is included.
6238
6239 2015-06-01  Richard Biener  <rguenther@suse.de>
6240
6241         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
6242         functions.
6243
6244 2015-06-01  Martin Liska  <mliska@suse.cz>
6245
6246         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
6247         a function local variable.
6248
6249 2015-06-01  Martin Liska  <mliska@suse.cz>
6250
6251         * alloc-pool.c (create_alloc_pool): Remove.
6252         (empty_alloc_pool): Likewise.
6253         (free_alloc_pool): Likewise.
6254         (free_alloc_pool_if_empty): Likewise.
6255         (pool_alloc): Likewise.
6256         (pool_free): Likewise.
6257         * alloc-pool.h: Remove old declarations.
6258
6259 2015-06-01  Martin Liska  <mliska@suse.cz>
6260
6261         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
6262         (ira_create_object): Likewise.
6263         (ira_create_allocno): Likewise.
6264         (ira_create_live_range): Likewise.
6265         (copy_live_range): Likewise.
6266         (ira_finish_live_range): Likewise.
6267         (ira_free_allocno_costs): Likewise.
6268         (finish_allocno): Likewise.
6269         (finish_allocnos): Likewise.
6270         (initiate_prefs): Likewise.
6271         (ira_create_pref): Likewise.
6272         (finish_pref): Likewise.
6273         (finish_prefs): Likewise.
6274         (initiate_copies): Likewise.
6275         (ira_create_copy): Likewise.
6276         (finish_copy): Likewise.
6277         (finish_copies): Likewise.
6278         (finish_prefs): Likewise.
6279
6280 2015-06-01  Martin Liska  <mliska@suse.cz>
6281
6282         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
6283         (allocate_and_init_ipcp_value): Likewise.
6284         (ipcp_lattice::add_value): Likewise.
6285         (merge_agg_lats_step): Likewise.
6286         (ipcp_driver): Likewise.
6287         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
6288         (ipa_free_all_structures_after_iinln): Likewise.
6289         * ipa-prop.h: Likewise.
6290
6291 2015-06-01  Martin Liska  <mliska@suse.cz>
6292
6293         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
6294         pool allocator.
6295         (set_hint_predicate): Likewise.
6296         (inline_summary_alloc): Likewise.
6297         (reset_inline_edge_summary): Likewise.
6298         (reset_inline_summary): Likewise.
6299         (set_cond_stmt_execution_predicate): Likewise.
6300         (set_switch_stmt_execution_predicate): Likewise.
6301         (compute_bb_predicates): Likewise.
6302         (estimate_function_body_sizes): Likewise.
6303         (inline_free_summary): Likewise.
6304
6305 2015-06-01  Martin Liska  <mliska@suse.cz>
6306
6307         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
6308         (ipa_edge_duplication_hook): Likewise.
6309         (ipa_free_all_structures_after_ipa_cp): Likewise.
6310         (ipa_free_all_structures_after_iinln): Likewise.
6311
6312 2015-06-01  Martin Liska  <mliska@suse.cz>
6313
6314         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
6315         (ipa_profile_generate_summary): Likewise.
6316         (ipa_profile_read_summary): Likewise.
6317         (ipa_profile): Likewise.
6318
6319 2015-06-01  Martin Liska  <mliska@suse.cz>
6320
6321         * tree-ssa-structalias.c (new_var_info): Use new type-based
6322         pool allocator.
6323         (new_constraint): Likewise.
6324         (init_alias_vars): Likewise.
6325         (delete_points_to_sets): Likewise.
6326
6327 2015-06-01  Martin Liska  <mliska@suse.cz>
6328
6329         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
6330         (free_strinfo): Likewise.
6331         (pass_strlen::execute): Likewise.
6332
6333 2015-06-01  Martin Liska  <mliska@suse.cz>
6334
6335         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
6336         pool allocator.
6337         (vn_reference_insert_pieces): Likewise.
6338         (vn_phi_insert): Likewise.
6339         (visit_reference_op_call): Likewise.
6340         (copy_phi): Likewise.
6341         (copy_reference): Likewise.
6342         (process_scc): Likewise.
6343         (allocate_vn_table): Likewise.
6344         (free_vn_table): Likewise.
6345
6346 2015-06-01  Martin Liska  <mliska@suse.cz>
6347
6348         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
6349         pool allocator.
6350         (add_repeat_to_ops_vec): Likewise.
6351         (get_ops): Likewise.
6352         (maybe_optimize_range_tests): Likewise.
6353         (init_reassoc): Likewise.
6354         (fini_reassoc): Likewise.
6355
6356 2015-06-01  Martin Liska  <mliska@suse.cz>
6357
6358         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
6359         pool allocator.
6360         (bitmap_set_new): Likewise.
6361         (get_or_alloc_expr_for_constant): Likewise.
6362         (get_or_alloc_expr_for): Likewise.
6363         (phi_translate_1): Likewise.
6364         (compute_avail): Likewise.
6365         (init_pre): Likewise.
6366         (fini_pre): Likewise.
6367
6368 2015-06-01  Martin Liska  <mliska@suse.cz>
6369
6370         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
6371         (delete_dep_node): Likewise.
6372         (create_deps_list): Likewise.
6373         (free_deps_list): Likewise.
6374         (sched_deps_init): Likewise.
6375         (sched_deps_finish): Likewise.
6376
6377 2015-06-01  Martin Liska  <mliska@suse.cz>
6378
6379         * regcprop.c (free_debug_insn_changes): Use new type-based
6380         pool allocator.
6381         (replace_oldest_value_reg): Likewise.
6382         (pass_cprop_hardreg::execute): Likewise.
6383
6384 2015-06-01  Martin Liska  <mliska@suse.cz>
6385
6386         * ira-build.c (initiate_cost_vectors): Use new type-based
6387         pool allocator.
6388         (ira_allocate_cost_vector): Likewise.
6389         (ira_free_cost_vector): Likewise.
6390         (finish_cost_vectors): Likewise.
6391
6392 2015-06-01  Martin Liska  <mliska@suse.cz>
6393
6394         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
6395         pool allocator.
6396         (free_sched_pools): Likewise.
6397         * sel-sched-ir.h (_list_alloc): Likewise.
6398         (_list_remove): Likewise.
6399
6400 2015-06-01  Martin Liska  <mliska@suse.cz>
6401
6402         * stmt.c (add_case_node): Use new type-based pool allocator.
6403         (expand_case): Likewise.
6404         (expand_sjlj_dispatch_table): Likewise.
6405
6406 2015-06-01  Martin Liska  <mliska@suse.cz>
6407
6408         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
6409         (free_bb): Likewise.
6410         (pass_cse_reciprocals::execute): Likewise.
6411
6412 2015-06-01  Martin Liska  <mliska@suse.cz>
6413
6414         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
6415         (sra_deinitialize) Likewise.
6416         (create_access_1) Likewise.
6417         (build_accesses_from_assign) Likewise.
6418         (create_artificial_child_access) Likewise.
6419
6420 2015-06-01  Martin Liska  <mliska@suse.cz>
6421
6422         * dse.c (get_group_info):Use new type-based pool allocator.
6423         (dse_step0) Likewise.
6424         (free_store_info) Likewise.
6425         (delete_dead_store_insn) Likewise.
6426         (free_read_records) Likewise.
6427         (record_store) Likewise.
6428         (replace_read) Likewise.
6429         (check_mem_read_rtx) Likewise.
6430         (scan_insn) Likewise.
6431         (dse_step1) Likewise.
6432         (dse_step7) Likewise.
6433
6434 2015-06-01  Martin Liska  <mliska@suse.cz>
6435
6436         * df-scan.c (struct df_scan_problem_data):Use new type-based
6437         pool allocator.
6438         (df_scan_free_internal) Likewise.
6439         (df_scan_alloc) Likewise.
6440         (df_grow_reg_info) Likewise.
6441         (df_free_ref) Likewise.
6442         (df_insn_create_insn_record) Likewise.
6443         (df_mw_hardreg_chain_delete) Likewise.
6444         (df_insn_info_delete) Likewise.
6445         (df_free_collection_rec) Likewise.
6446         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
6447         (df_sort_and_compress_mws) Likewise.
6448         (df_ref_create_structure) Likewise.
6449         (df_ref_record) Likewise.
6450
6451 2015-06-01  Martin Liska  <mliska@suse.cz>
6452
6453         * df-problems.c (df_chain_create):Use new type-based pool allocator.
6454         (df_chain_unlink_1) Likewise.
6455         (df_chain_unlink) Likewise.
6456         (df_chain_remove_problem) Likewise.
6457         (df_chain_alloc) Likewise.
6458         (df_chain_free) Likewise.
6459         * df.h (struct dataflow) Likewise.
6460
6461 2015-06-01  Martin Liska  <mliska@suse.cz>
6462
6463         * cselib.c (new_elt_list):Use new type-based pool allocator.
6464         (new_elt_loc_list) Likewise.
6465         (unchain_one_elt_list) Likewise.
6466         (unchain_one_elt_loc_list) Likewise.
6467         (unchain_one_value) Likewise.
6468         (new_cselib_val) Likewise.
6469         (cselib_init) Likewise.
6470         (cselib_finish) Likewise.
6471
6472 2015-06-01  Martin Liska  <mliska@suse.cz>
6473
6474         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
6475         (sh_reorg) Likewise.
6476
6477 2015-06-01  Martin Liska  <mliska@suse.cz>
6478
6479         * cfg.c (initialize_original_copy_tables):Use new type-based
6480         pool allocator.
6481         (free_original_copy_tables) Likewise.
6482         (copy_original_table_clear) Likewise.
6483         (copy_original_table_set) Likewise.
6484
6485 2015-06-01  Martin Liska  <mliska@suse.cz>
6486
6487         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
6488         pool allocator.
6489         (asan_mem_ref_new) Likewise.
6490         (free_mem_ref_resources) Likewise.
6491
6492 2015-06-01  Martin Liska  <mliska@suse.cz>
6493
6494         * var-tracking.c (variable_htab_free):Use new type-based
6495         pool allocator.
6496         (attrs_list_clear) Likewise.
6497         (attrs_list_insert) Likewise.
6498         (attrs_list_copy) Likewise.
6499         (shared_hash_unshare) Likewise.
6500         (shared_hash_destroy) Likewise.
6501         (unshare_variable) Likewise.
6502         (var_reg_delete_and_set) Likewise.
6503         (var_reg_delete) Likewise.
6504         (var_regno_delete) Likewise.
6505         (drop_overlapping_mem_locs) Likewise.
6506         (variable_union) Likewise.
6507         (insert_into_intersection) Likewise.
6508         (canonicalize_values_star) Likewise.
6509         (variable_merge_over_cur) Likewise.
6510         (dataflow_set_merge) Likewise.
6511         (remove_duplicate_values) Likewise.
6512         (variable_post_merge_new_vals) Likewise.
6513         (dataflow_set_preserve_mem_locs) Likewise.
6514         (dataflow_set_remove_mem_locs) Likewise.
6515         (variable_from_dropped) Likewise.
6516         (variable_was_changed) Likewise.
6517         (set_slot_part) Likewise.
6518         (clobber_slot_part) Likewise.
6519         (delete_slot_part) Likewise.
6520         (loc_exp_insert_dep) Likewise.
6521         (notify_dependents_of_changed_value) Likewise.
6522         (emit_notes_for_differences_1) Likewise.
6523         (vt_emit_notes) Likewise.
6524         (vt_initialize) Likewise.
6525         (vt_finalize) Likewise.
6526
6527 2015-06-01  Martin Liska  <mliska@suse.cz>
6528
6529         * ira-color.c (init_update_cost_records):Use new type-based
6530         pool allocator.
6531         (get_update_cost_record) Likewise.
6532         (free_update_cost_record_list) Likewise.
6533         (finish_update_cost_records) Likewise.
6534         (initiate_cost_update) Likewise.
6535
6536 2015-06-01  Martin Liska  <mliska@suse.cz>
6537
6538         * lra.c (init_insn_regs): Use new type-based pool allocator.
6539         (new_insn_reg) Likewise.
6540         (free_insn_reg) Likewise.
6541         (free_insn_regs) Likewise.
6542         (finish_insn_regs) Likewise.
6543         (init_insn_recog_data) Likewise.
6544         (init_reg_info) Likewise.
6545         (finish_reg_info) Likewise.
6546         (lra_free_copies) Likewise.
6547         (lra_create_copy) Likewise.
6548         (invalidate_insn_data_regno_info) Likewise.
6549
6550 2015-06-01  Martin Liska  <mliska@suse.cz>
6551
6552         * lra-lives.c (free_live_range): Use new type-based pool allocator.
6553         (free_live_range_list) Likewise.
6554         (create_live_range) Likewise.
6555         (copy_live_range) Likewise.
6556         (lra_merge_live_ranges) Likewise.
6557         (remove_some_program_points_and_update_live_ranges) Likewise.
6558         (lra_live_ranges_init) Likewise.
6559         (lra_live_ranges_finish) Likewise.
6560
6561 2015-06-01  Martin Liska  <mliska@suse.cz>
6562
6563         * et-forest.c (et_new_occ): Use new type-based pool allocator.
6564         (et_new_tree): Likewise.
6565         (et_free_tree): Likewise.
6566         (et_free_tree_force): Likewise.
6567         (et_free_pools): Likewise.
6568         (et_split): Likewise.
6569
6570 2015-06-01  Martin Liska  <mliska@suse.cz>
6571
6572         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
6573         to header file.
6574         * alloc-pool.h (pool_allocator::pool_allocator): New function.
6575         (pool_allocator::release): Likewise.
6576         (inline pool_allocator::release_if_empty): Likewise.
6577         (inline pool_allocator::~pool_allocator): Likewise.
6578         (pool_allocator::allocate): Likewise.
6579         (pool_allocator::remove): Likewise.
6580
6581 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
6582
6583         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
6584         in comment.
6585
6586 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
6587
6588         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
6589         to fusible_ops.
6590         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
6591         (arm_macro_fusion_p): Likewise.
6592         (arm_macro_fusion_pair_p): Likewise.
6593
6594 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
6595
6596         * config/aarch64/aarch64-protos.h (tune_params): Rename
6597         fuseable_ops to fusible_ops.
6598         * config/aarch64/aarch64.c (generic_tunings): Rename
6599         fuseable_ops to fusible_ops.
6600         (cortexa53_tunings): Likewise.
6601         (cortexa57_tunings): Likewise.
6602         (thunderx_tunings): Likewise.
6603         (xgene1_tunings): Likewise.
6604         (aarch64_macro_fusion_p): Likewise.
6605         (aarch64_macro_fusion_pair_p): Likewise.
6606
6607 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6608
6609         * config/s390/driver-native.c: New file.
6610         * config/s390/x-native: New file.
6611         * config.host: Add new files for s390.
6612         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
6613         and -march=native
6614         * config.gcc: Likewise.
6615         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
6616         * config/s390/s390-opts.h (enum processor_type): Ditto.
6617         * config/s390/s390.c (s390_option_override): Catch unhandled
6618         PROCESSOR_NATIVE
6619
6620 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
6621
6622         PR target/65527
6623         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
6624         redirection for instrumented calls.
6625         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
6626         (append_compiler_options): Append -fcheck-pointer-bounds.
6627         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
6628         (chkp_redirect_edge): New.
6629         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
6630         (chkp_redirect_edge): New.
6631
6632 2015-06-01  Richard Biener  <rguenther@suse.de>
6633
6634         PR tree-optimization/66280
6635         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
6636         def-use walking.
6637
6638 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6639
6640         * config/aarch64/aarch64.md
6641         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
6642         logic_shift_imm.
6643
6644 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
6645
6646         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
6647         Remove obsolete kludge.
6648
6649 2015-06-01  Richard Biener  <rguenther@suse.de>
6650
6651         * tree-ssa-reassoc.c (get_rank): Simplify.
6652
6653 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6654
6655         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
6656         * configure: Regenerated.
6657
6658 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
6659
6660         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
6661         issue (add space between string literal and macro).
6662         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
6663
6664 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6665
6666         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
6667         implict or explicit -fPIE or -fpie.
6668
6669 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
6670
6671         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
6672
6673 2015-05-28  DJ Delorie  <dj@redhat.com>
6674
6675         * expmed.c (extract_bit_field_1): Avoid clobbering a
6676         yet-to-be-used base/index register.
6677
6678 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
6679
6680         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
6681         (alias_stats): Add num_universal.
6682         (alias_set_subset_of): Special case pointers; be ready for NULL
6683         children.
6684         (alias_sets_conflict_p): Special case pointers; be ready for NULL
6685         children.
6686         (init_alias_set_entry): Break out from ...
6687         (record_alias_subset): ... here; propagate new fields;
6688         allocate children only when really needed.
6689         (get_alias_set): Do less generous pointer globbing.
6690         (dump_alias_stats_in_alias_c): Update statistics.
6691
6692 2015-05-30  Alan Modra  <amodra@gmail.com>
6693
6694         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
6695         correct block for use of r12.
6696         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
6697
6698 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6699
6700         PR target/66215
6701         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
6702         with -mhotpatch=.
6703
6704 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
6705
6706         PR tree-optimization/66142
6707         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
6708         virtual phis that feed themselves.
6709
6710 2015-05-29  Richard Biener  <rguenther@suse.de>
6711
6712         PR tree-optimization/66314
6713         * tree-ssa-threadupdate.c (create_block_for_threading): Add
6714         parameter that says which loop the new block belongs to.
6715         (ssa_create_duplicates): Blocks duplicated for the threaded
6716         path belong to the loop of the thread destination.
6717
6718 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6719
6720         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
6721         to cleanup-saved-temps.
6722         * doc/sourcebuild.texi (Clean up generated test files): Expand
6723         introduction.
6724         (dg-keep-saved-temps): Document new proc.
6725         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
6726         cleanup-saved-temps): Remove.
6727
6728 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
6729
6730         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
6731         gcc_AC_CHECK_DECLS.
6732         * configure: Regenerate.
6733
6734 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
6735
6736         * config/nios2/linux.h (CPP_SPEC): Define.
6737
6738 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
6739
6740         * config/microblaze/linux.h (CPP_SPEC): Define.
6741
6742 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
6743
6744         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
6745         -pthread is specified.
6746
6747 2015-05-28  Richard Biener  <rguenther@suse.de>
6748
6749         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
6750         (vect_fixup_scalar_cycles_with_patterns): Likewise.
6751         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
6752         after pattern recog.
6753         (vect_create_epilog_for_reduction): Properly handle reductions
6754         with patterns.
6755         (vectorizable_reduction): Likewise.
6756         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
6757         reduction chains.
6758         (vect_get_constant_vectors): Create the correct number of
6759         initial values for reductions.
6760         (vect_schedule_slp_instance): Handle reduction chains that are
6761         type changing properly.
6762         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
6763
6764 2015-05-28  Richard Biener  <rguenther@suse.de>
6765
6766         PR tree-optimization/66142
6767         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
6768         values better in memcpy destination handling.  Handle non-aliasing
6769         we discover here.
6770
6771 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
6772
6773         PR target/63810
6774         * config/darwin-c.c (version_components): New global enum.
6775         (parse_version, version_as_legacy_macro)
6776         (version_as_modern_macro, macosx_version_as_macro): New functions.
6777         (version_as_macro): Remove.
6778         (darwin_cpp_builtins): Use new function.
6779
6780 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
6781
6782         * builtins.c (expand_builtin_acc_on_device): Mark parameters
6783         with ATTRIBUTE_UNUSED.
6784
6785 2015-05-28  Julian Brown  <julian@codesourcery.com>
6786
6787         PR libgomp/65742
6788
6789         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
6790         sequence for !ACCEL_COMPILER.
6791
6792 2015-05-28  Nick Clifton  <nickc@redhat.com>
6793
6794         * config/rx/rx.c (push_regs): New function.  Extracts code from...
6795         (rx_expand_prologue): ... here.  Use push_regs to push even small
6796         spans of registers.
6797         (pop_regs): New function.
6798         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
6799         registers.
6800
6801 2015-05-28  Richard Biener  <rguenther@suse.de>
6802
6803         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
6804         member.
6805         (SLP_INSTANCE_BODY_COST_VEC): Remove.
6806         (vect_update_slp_costs_according_to_vf): Likewise.
6807         (vect_slp_analyze_operations): Update prototype.
6808         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
6809         vect_update_slp_costs_according_to_vf, adjust.
6810         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
6811         (vect_analyze_slp_cost_1): Likewise.
6812         (vect_analyze_slp_cost): Likewise.  Properly deal with
6813         widening reduction ops.  Commit body costs.
6814         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
6815         cost for loops from here.
6816         (vect_slp_analyze_operations): But do it from here when
6817         the vectorization factor is known and stmts are analyzed.
6818         (vect_bb_vectorization_profitable_p): Simplify.
6819         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
6820         (vect_update_slp_costs_according_to_vf): Remove.
6821
6822 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
6823             H.J. Lu  <hongjiu.lu@intel.com>
6824
6825         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
6826         (BUILD_CFLAGS): Likewise.
6827         (BUILD_CXXFLAGS): Likewise.
6828         (LINKER): Add @NO_PIE_FLAG@.
6829         (BUILD_LDFLAGS): Likewise.
6830         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
6831         --enable-default-pie.
6832         * common.opt (fPIE): Initialize to -1.
6833         (fpie): Likewise.
6834         (no-pie): New option.
6835         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
6836         * configure.ac: Add --enable-default-pie.
6837         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
6838         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
6839         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
6840         * gcc.c (NO_PIE_SPEC): New.
6841         (PIE_SPEC): Likewise.
6842         (NO_FPIE1_SPEC): Likewise.
6843         (FPIE1_SPEC): Likewise.
6844         (NO_FPIE2_SPEC): Likewise.
6845         (FPIE2_SPEC): Likewise.
6846         (NO_FPIE2_SPEC): Likewise.
6847         (FPIE_SPEC): Likewise.
6848         (NO_FPIE_SPEC): Likewise.
6849         (NO_FPIC1_SPEC): Likewise.
6850         (FPIC1_SPEC): Likewise.
6851         (NO_FPIC2_SPEC): Likewise.
6852         (FPIC2_SPEC): Likewise.
6853         (NO_FPIC2_SPEC): Likewise.
6854         (FPIC_SPEC): Likewise.
6855         (NO_FPIC_SPEC): Likewise.
6856         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
6857         (FPIE1_OR_FPIC1_SPEC): Likewise.
6858         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
6859         (FPIE2_OR_FPIC2_SPEC): Likewise.
6860         (NO_FPIE_AND_FPIC_SPEC): Likewise.
6861         (FPIE_OR_FPIC_SPEC): Likewise.
6862         (LD_PIE_SPEC): Likewise.
6863         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
6864         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
6865         * config/darwin.h (PIE_SPEC): Renamed to ...
6866         (DARWIN_PIE_SPEC): This.
6867         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
6868         * config/darwin9.h (PIE_SPEC): Renamed to ...
6869         (DARWIN_PIE_SPEC): This.
6870         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
6871         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
6872         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
6873         FPIE2_OR_FPIC2_SPEC.
6874         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
6875         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
6876         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
6877         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
6878         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
6879         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
6880         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
6881         * config/m32r/m32r.h (ASM_SPEC): Likewise.
6882         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
6883         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
6884         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
6885         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
6886         * config/sparc/linux.h (ASM_SPEC): Likewise.
6887         * config/sparc/linux64.h (ASM_SPEC): Likewise.
6888         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
6889         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
6890         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6891         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
6892         * config/sparc/sparc.h (ASM_SPEC): Likewise.
6893         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
6894         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
6895         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
6896         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
6897         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
6898         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
6899         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
6900         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
6901         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
6902         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
6903         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
6904         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
6905         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6906         * config/vax/linux.h (ASM_SPEC): Likewise.
6907         * doc/install.texi: Document --enable-default-pie.
6908         * doc/invoke.texi: Document -no-pie.
6909         * config.in: Regenerated.
6910         * configure: Likewise.
6911
6912 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6913
6914         PR rtl-optimization/66168
6915         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
6916         can_move_invariant_reg.
6917
6918 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
6919
6920         PR target/66148
6921         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
6922         REG_EQUAL note when doing insert.
6923
6924         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
6925         instead of "%d" for 'o' operand.
6926
6927 2015-05-27  Nathan Sidwell  <nathan@acm.org>
6928
6929         PR c++/66270
6930         * tree.c (build_pointer_type_for_mode): Canonical type does not
6931         inherit can_alias_all.
6932         (build_reference_type_for_mode): Likewise.
6933
6934 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6935
6936         * expr.h (array_at_struct_end_p): Move to...
6937         (array_ref_element_size): Likewise.
6938         (component_ref_field_offset): Likewise.
6939         * tree.h (array_ref_element_size): ...here.
6940         (array_at_struct_end_p): Likewise.
6941         (component_ref_field_offset): Likewise.
6942         * expr.c (array_ref_element_size): Move to...
6943         (array_ref_low_bound): Likewise.
6944         (array_at_struct_end_p): Likewise.
6945         (array_ref_up_bound): Likewise.
6946         (component_ref_field_offset): Likewise.
6947         * tree.c (array_ref_element_size): ...here.
6948         (array_ref_low_bound): Likewise.
6949         (array_ref_up_bound): Likewise.
6950         (array_at_struct_end_p): Likewise.
6951         (component_ref_field_offset): Likewise.
6952
6953 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
6954             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6955
6956         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
6957
6958 2015-05-27  Jason Merrill  <jason@redhat.com>
6959
6960         PR bootstrap/66304
6961         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
6962         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
6963         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
6964
6965 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
6966
6967         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
6968         is true.
6969
6970         * statistics.c (statistics_fini_pass): Print pass name.
6971
6972 2015-05-27  Richard Biener  <rguenther@suse.de>
6973
6974         PR tree-optimization/66272
6975         Revert parts of
6976         2014-08-15  Richard Biener  <rguenther@suse.de>
6977
6978         PR tree-optimization/62031
6979         * tree-data-ref.c (dr_analyze_indices): Do not set
6980         DR_UNCONSTRAINED_BASE.
6981         (dr_may_alias_p): All indirect accesses have to go the
6982         formerly DR_UNCONSTRAINED_BASE path.
6983         * tree-data-ref.h (struct indices): Remove
6984         unconstrained_base member.
6985         (DR_UNCONSTRAINED_BASE): Remove.
6986
6987 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
6988
6989         * dwarf2out.c: Remove block_map.
6990         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
6991         (gen_lexical_block_die): Same.
6992         (dwarf2out_function_decl): Remove block_map use.
6993         (dwarf2out_c_finalize): Same.
6994         * tree-core.h (struct tree_block): Add die field.
6995         * tree.h (BLOCK_DIE): New.
6996
6997 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6998
6999         PR target/65358
7000         * expr.c (memory_load_overlap): New function.
7001         (emit_push_insn): When pushing partial args to the stack would
7002         clobber the register part load the overlapping part into a pseudo
7003         and put it into the hard reg after pushing.  Change return type
7004         to bool.  Add bool argument.
7005         * expr.h (emit_push_insn): Change return type to bool.
7006         Add bool argument.
7007         * calls.c (expand_call): Cancel sibcall optimization when encountering
7008         partial argument on targets with ARGS_GROW_DOWNWARD and
7009         !STACK_GROWS_DOWNWARD.
7010         (emit_library_call_value_1): Update callsite of emit_push_insn.
7011         (store_one_arg): Likewise.
7012
7013 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
7014
7015         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
7016
7017 2015-05-27  Martin Liska  <mliska@suse.cz>
7018
7019         * Makefile.in: Add additional dependencies related to memory report
7020         enhancement.
7021         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
7022         * bitmap.c (struct bitmap_descriptor_d): Remove.
7023         (struct loc): Likewise.
7024         (struct bitmap_desc_hasher): Likewise.
7025         (bitmap_desc_hasher::hash): Likewise.
7026         (bitmap_desc_hasher::equal): Likewise.
7027         (get_bitmap_descriptor): Likewise.
7028         (bitmap_register): User new memory descriptor API.
7029         (register_overhead): Likewise.
7030         (bitmap_find_bit): Register nsearches and search_iter statistics.
7031         (struct bitmap_output_info): Remove.
7032         (print_statistics): Likewise.
7033         (dump_bitmap_statistics): Use new memory descriptor.
7034         * bitmap.h (struct bitmap_usage): New class.
7035         * genmatch.c: Extend header file inclusion.
7036         * genpreds.c: Likewise.
7037         * ggc-common.c (struct ggc_usage): New class.
7038         (struct ggc_loc_desc_hasher): Remove.
7039         (ggc_loc_desc_hasher::hash): Likewise.
7040         (ggc_loc_desc_hasher::equal): Likewise.
7041         (struct ggc_ptr_hash_entry): Likewise.
7042         (struct ptr_hash_hasher): Likewise.
7043         (ptr_hash_hasher::hash): Likewise.
7044         (ptr_hash_hasher::equal): Likewise.
7045         (make_loc_descriptor): Likewise.
7046         (ggc_prune_ptr): Likewise.
7047         (dump_ggc_loc_statistics): Use new memory descriptor.
7048         (ggc_record_overhead): Likewise.
7049         (ggc_free_overhead): Likewise.
7050         (final_cmp_statistic): Remove.
7051         (cmp_statistic): Likewise.
7052         (ggc_add_statistics): Liekwise.
7053         (ggc_prune_overhead_list): Likewise.
7054         * hash-map-traits.h: New file.
7055         * hash-map.h (struct default_hashmap_traits): Move the traits to a
7056         separate header file.
7057         * hash-set.h: Pass memory statistics info to ctor.
7058         * hash-table.c (void dump_hash_table_loc_statistics): New function.
7059         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
7060         (hash_table::~hash_table): Register memory release operation.
7061         (hash_table::alloc_entries): Handle memory allocation operation.
7062         (hash_table::expand): Likewise.
7063         * inchash.c (iterative_hash_hashval_t): Move implementation to header
7064         file.
7065         (iterative_hash_host_wide_int): Likewise.
7066         * inchash.h (class hash): Likewise.
7067         * mem-stats-traits.h: New file.
7068         * mem-stats.h: New file.
7069         (mem_location): Add new class.
7070         (mem_usage): Likewise.
7071         (mem_alloc_description): Likewise.
7072         * sese.c: Add new header file inclusision.
7073         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
7074         and hash_set.
7075         * tree-sra.c: Add new header file inclusision.
7076         * vec.c (struct vec_descriptor): Remove.
7077         (hash_descriptor): Likewise.
7078         (struct vec_usage): Likewise.
7079         (struct ptr_hash_entry): Likewise.
7080         (hash_ptr): Likewise.
7081         (eq_ptr): Likewise.
7082         (vec_prefix::register_overhead): Use new memory descriptor API.
7083         (vec_prefix::release_overhead): Likewise.
7084         (add_statistics): Remove.
7085         (dump_vec_loc_statistics): Use new memory descriptor API.
7086         * vec.h (struct vec_prefix): Likewise.
7087         (va_heap::reserve): Likewise.
7088         (va_heap::release): Likewise.
7089         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
7090
7091 2015-05-27  Richard Biener  <rguenther@suse.de>
7092
7093         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
7094         earlier and remove ??? comment.
7095         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
7096         and got called from loop analysis bail out.  Always pass the SLP
7097         node to the vectorizable_* functions.
7098         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
7099         the premature SLP check here.
7100         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
7101         detected SLP stmts.
7102         (vect_detect_hybrid_slp_1): Likewise.
7103
7104 2015-05-26  Jeff Law  <law@redhat.com>
7105
7106         * combine.c (find_split_point): Verify that the shift count is a
7107         constant when choosing (plus (ashift ...)) as a split point.
7108
7109         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
7110         No functional changes.
7111
7112 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
7113
7114         * ipa-polymorphic-call.c
7115         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
7116         case when call target is already known.
7117
7118 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
7119
7120         PR target/65979
7121         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
7122         take into account the case that operands[1] and operands[2]
7123         are the same register.
7124
7125 2015-05-26  Michael Matz  <matz@suse.de>
7126
7127         PR middle-end/66251
7128
7129         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
7130         stores.
7131         (vect_create_vectorized_demotion_stmts): Always set
7132         STMT_VINFO_VEC_STMT, also with SLP.
7133         (vectorizable_store): Handle strided group stores.
7134
7135 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7136
7137         PR target/66049
7138         * config/aarch64/aarch64.md
7139         (*adds_shift_imm_<mode>):  New pattern.
7140         (*subs_shift_imm_<mode>):  Likewise.
7141         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
7142         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
7143         (*add_uxt<mode>_shift2): Likewise.
7144         (*add_uxtsi_shift2_uxtw): Likewise.
7145         (*sub_uxt<mode>_shift2): Likewise.
7146         (*sub_uxtsi_shift2_uxtw): Likewise.
7147
7148 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
7149
7150         * config/rs6000/constraints.md (Y, U): Use match_test.
7151
7152 2015-05-26  Christian Bruel  <christian.bruel@st.com>
7153
7154         PR target/52144
7155         * config/arm/arm.c (arm_option_check_internal)
7156         (arm_option_params_internal): Check opts->target_flags to set macros.
7157         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
7158         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
7159         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
7160         (builtin_define): Replaced with def_or_undef_macro.
7161         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
7162         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
7163         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
7164         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
7165         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
7166         (TARGET_ARM_FEATURE_LDREX_P)
7167         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
7168         * config/arm/arm-c.c (def_or_undef_macro): New function.
7169         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
7170
7171 2015-05-26  Christian Bruel  <christian.bruel@st.com>
7172
7173         * c-common.h (builtin_define_with_int_value)
7174         (builtin_define_type_sizeof): Declare.
7175         * c-cppbuiltin.c (builtin_define_with_int_value)
7176         (builtin_define_type_sizeof): Externalize.
7177         (builtin_define_std): Cleanup declaration.
7178         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
7179         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
7180         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
7181         (builtin_define, builtin_assert): New macros.
7182
7183 2015-05-26  Richard Biener  <rguenther@suse.de>
7184
7185         PR tree-optimization/66142
7186         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
7187         MEM_REFs for the same base address.
7188
7189 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7190
7191         PR ipa/66181
7192         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
7193
7194 2015-05-26  Jason Merrill  <jason@redhat.com>
7195
7196         * configure.ac: Set CXXFLAGS for ISL test.
7197         * configure: Regenerate.
7198
7199         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
7200         strstr and basename.
7201         * configure: Regenerate.
7202
7203 2015-05-26  Richard Biener  <rguenther@suse.de>
7204
7205         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
7206         X % C -> X & (C - 1) for C being a power-of two to ...
7207         * match.pd: ... patterns.
7208
7209 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
7210
7211         * match.pd (swapped_tcc_comparison): New operator list.
7212         (-A CMP -B): New simplification.
7213         * fold-const.c (fold_comparison): Remove corresponding code.
7214
7215 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
7216
7217         * caller-save.c (init_caller_save): Base temporary register numbers
7218         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
7219         * cfgloopanal.c (init_set_costs): Likewise.
7220         * dojump.c (prefer_and_bit_test): Likewise.
7221         * expr.c (init_expr_target): Likewise.
7222         * ira.c (setup_prohibited_mode_move_regs): Likewise.
7223         * lower-subreg.c (init_lower_subreg): Likewise.
7224         * postreload.c (reload_cse_regs_1): Likewise.
7225
7226 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
7227
7228         * gensupport.h (compute_test_codes): Declare.
7229         * gensupport.c (compute_predicate_codes): Rename to...
7230         (compute_test_codes): ...this.  Generalize error message.
7231         (process_define_predicate): Update accordingly.
7232         * genpreds.c (compute_maybe_allows): Delete.
7233         (add_constraint): Use compute_test_codes to determine whether
7234         something can accept a SUBREG, REG or MEM.
7235
7236 2015-05-26  Torvald Riegel  <triegel@redhat.com>
7237
7238         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
7239         'memory model' to align with C++11; fix description of memory orders;
7240         fix a few typos.
7241
7242 2015-05-26  Richard Biener  <rguenther@suse.de>
7243
7244         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
7245         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
7246         detect whether we apply SLP.  Remove call to
7247         vect_update_slp_costs_according_to_vf.
7248         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
7249         vect_update_slp_costs_according_to_vf from here.  Dispatch
7250         to vect_slp_analyze_operations to analyze SLP stmts.
7251         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
7252         unused bb_vec_info parameter, adjust assert.
7253         (vect_slp_analyze_operations): Pass in the slp instance tree
7254         instead of bb_vec_info.
7255         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
7256         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
7257
7258 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
7259
7260         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
7261         Q_REGS.  Expand comment.
7262         (REG_CLASS_NAMES): Ditto.
7263         (REG_CLASS_CONTENTS): Ditto.
7264
7265 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
7266
7267         PR target/66274
7268         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
7269         when LEGACY_INT_REGNO_P is processed.
7270
7271 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
7272
7273         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
7274
7275 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
7276
7277         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
7278         register if not marked dead/unused, before return.
7279
7280 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
7281
7282         PR lto/66180
7283         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
7284         is set; check for assembler name at LTO time.
7285         (type_in_anonymous_namespace): Remove hacks, check that all
7286         anonymous types are called "<anon>"
7287         (odr_type_p): Simplify; add check for "<anon>"
7288         (odr_subtypes_equivalent): Add odr_type_p check.
7289         * tree.c (need_assembler_name_p): Even anonymous namespace needs
7290         assembler name.
7291
7292 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
7293
7294         * ipa-utils.h (method_class_type): Remove.
7295         * cgraphunit.c (walk_polymorphic_call_targets): Use
7296         TYPE_METHOD_BASETYPE.
7297         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
7298         on main variants only.
7299         (method_class_type): Remove.
7300         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
7301         (build_type_inheritance_graph): Likewise.
7302         * ipa-icf.c (sem_function::equals_wpa): Likewise.
7303         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
7304         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
7305
7306 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
7307
7308         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
7309         is_typedef_decl, typedef_variant_p): Constify.
7310         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
7311         is_typedef_decl, typedef_variant_p): Constify.
7312
7313 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7314
7315         * defaults.h (gen_tablejump): New function.
7316         (HAVE_tablejump): Add default value.
7317         * expr.c: Adjust.
7318         * stmt.c: Likewise.
7319
7320 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7321
7322         * defaults.h (gen_store_multiple): New function.
7323         (HAVE_store_multiple): Add default value.
7324         * expr.c (move_block_from_reg): Adjust.
7325
7326 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7327
7328         * defaults.h (gen_load_multiple): New function.
7329         (HAVE_load_multiple): Add default value.
7330         * expr.c (move_block_to_reg): Adjust.
7331
7332 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7333
7334         * defaults.h (gen_mem_signal_fence): New function.
7335         (HAVE_mem_signal_fence): Add default value.
7336         * optabs.c: Adjust.
7337
7338 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7339
7340         * defaults.h (gen_memory_barrier): New function.
7341         (HAVE_memory_barrier): Add default value.
7342         * optabs.c: Adjust.
7343
7344 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7345
7346         * defaults.h (gen_mem_thread_fence): New function.
7347         (HAVE_mem_thread_fence): Add default definition.
7348         * optabs.c: Adjust.
7349
7350 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7351
7352         * combine.c (find_split_point): Check the value of HAVE_lo_sum
7353         instead of if it is defined.
7354         (combine_simplify_rtx): Likewise.
7355         * lra-constraints.c (process_address_1): Likewise.
7356         * config/darwin.c: Adjust.
7357         * genconfig.c (main): Always define HAVE_lo_sum.
7358
7359 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7360
7361         * genmatch.c (parser::parse_operation): Reject expanding
7362         operator-list inside 'for'.
7363
7364 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7365
7366         * genmatch.c (parser::parse_for): Reject iterator if used as
7367         operator-list.
7368
7369 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7370
7371         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
7372         after end of id-list.
7373
7374 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
7375
7376         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
7377         we do not try to compute canonical type for type that does not need
7378         alias set.
7379         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
7380         FUNCITON_TYPE.
7381         * tree.h (type_with_alias_set_p): New.
7382
7383 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
7384
7385         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
7386         function attributes.
7387         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
7388
7389 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
7390
7391         * Makefile.in (check_gcc_parallelize): Delete.
7392         (lang_checks_parallelized): Update comment.
7393
7394 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
7395
7396         PR rtl-optimization/66237
7397         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
7398         location of an "as_a" cast.
7399
7400 2015-05-22  Jeff Law  <law@redhat.com>
7401
7402         * config/pa/pa.md (non-canonical shift-add insns): Remove.
7403         (peepholes with non-canonical RTL sources): Remove.
7404         (peepholes for indexed stores of FP regs in integer modes): Match and
7405         generate canonical RTL.
7406
7407 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
7408
7409         PR tree-optimization/63387
7410         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
7411         ((x ord x) & (y ord y) -> (x ord y),
7412         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
7413         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
7414         vectors like scalars.
7415
7416 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
7417
7418         * convert.c (convert_to_integer, convert_to_vector): Include the
7419         types in the error message.
7420
7421 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
7422
7423         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
7424         simplifications.
7425
7426 2015-05-22  Jeff Law  <law@redhat.com>
7427
7428         * config/pa/pa.md (integer_indexed_store splitters): Use
7429         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
7430         insns -- adjusting the constant 2nd operand accordingly.
7431
7432         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
7433         (plus (ashift X log2) Y) if it is a split point.
7434
7435         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
7436         out of hppa_legitimize_address to handle both forms of a multiply
7437         by 2, 4 or 8.
7438         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
7439         Always generate the ASHIFT variant as the result is not directly
7440         used in a MEM.  Update comments and refactor slightly to improve
7441         readability.
7442
7443 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7444
7445         PR target/65491
7446         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
7447         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
7448         (aarch64_composite_type_p): Return false if given type and mode are
7449         for a short vector.
7450
7451 2015-05-22  Richard Biener  <rguenther@suse.de>
7452
7453         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
7454         member.
7455         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
7456         patterns when determining whether SLP is pure.
7457         (vect_is_slp_reduction): Remove check for pattern stmts.
7458         (vect_is_simple_reduction_1): Remove dead code.
7459         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
7460         (vect_get_and_check_slp_defs): Pass in the stmt number.
7461         Allow the first def in a reduction to be not a pattern stmt when
7462         the rest of the stmts def are patterns.
7463         (vect_build_slp_tree_1): Allow tcc_expression codes like
7464         SAD_EXPR and DOT_PROD_EXPR.
7465         (vect_build_slp_tree): Adjust.
7466         (vect_analyze_slp): Refactor and move BB vect error message ...
7467         (vect_slp_analyze_bb_1): ... here.
7468
7469 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
7470
7471         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
7472         for CSWTCH temporary.
7473
7474 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7475
7476         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
7477         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
7478         unknown unspecs.
7479
7480 2015-05-22  Richard Biener  <rguenther@suse.de>
7481
7482         PR tree-optimization/66251
7483         * tree-vect-stmts.c (vectorizable_conversion): Properly
7484         set STMT_VINFO_VEC_STMT even for the SLP case.
7485
7486 2015-05-22  Marek Polacek  <polacek@redhat.com>
7487
7488         * doc/extend.texi: Use @pxref instead of @xref.
7489
7490 2015-05-22  hiraditya  <hiraditya@msn.com>
7491
7492         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
7493         redundant if.
7494
7495 2015-05-22  Richard Biener  <rguenther@suse.de>
7496
7497         PR tree-optimization/65701
7498         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7499         Move peeling cost models into one place.  Peel for alignment
7500         for single loads only if an aligned load is cheaper than
7501         an unaligned load.
7502
7503 2015-05-22  Marek Polacek  <polacek@redhat.com>
7504
7505         PR c/47043
7506         * doc/extend.texi (Enumerator Attributes): New section.
7507         Document syntax of enumerator attributes.
7508
7509 2015-05-22  Richard Biener  <rguenther@suse.de>
7510
7511         * tree-vect-loop.c (get_reduction_op): New function.
7512         (vect_model_reduction_cost): Use it, add reduc_index parameter.
7513         Make ready for BB reductions.
7514         (vect_create_epilog_for_reduction): Use get_reduction_op.
7515         (vectorizable_reduction): Init reduc_index to a valid value.
7516         Adjust vect_model_reduction_cost call.
7517         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
7518         operand for reduction defaults.  Add SAD_EXPR support.
7519         Assert we have a neutral op for SLP reductions.
7520         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
7521         walking pattern stmt ops only recurse to SSA names.
7522
7523 2015-05-22  Richard Biener  <rguenther@suse.de>
7524
7525         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
7526         assert with guard, remove check on detected reduction.
7527         (vect_recog_sad_pattern): Likewise.
7528         (vect_recog_widen_sum_pattern): Likewise.
7529
7530 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7531
7532         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
7533         __always_inline__ attribute.
7534         (vaesdq_u8): Likewise.
7535         (vaesmcq_u8): Likewise.
7536         (vaesimcq_u8): Likewise.
7537         (vsha1cq_u32): Likewise.
7538         (vsha1mq_u32): Likewise.
7539         (vsha1pq_u32): Likewise.
7540         (vsha1h_u32): Likewise.
7541         (vsha1su0q_u32): Likewise.
7542         (vsha1su1q_u32): Likewise.
7543         (vsha256hq_u32): Likewise.
7544         (vsha256h2q_u32): Likewise.
7545         (vsha256su0q_u32): Likewise.
7546         (vsha256su1q_u32): Likewise.
7547         (vmull_p64): Likewise.
7548         (vmull_high_p64): Likewise.
7549
7550 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7551
7552         * final.c (final_scan_insn): Don't check HAVE_peephole with the
7553         preprocessor.
7554         * output.h: Likewise.
7555         * genconfig.c (main): Alwways define HAVE_peephole.
7556         * genpeep.c: Don't emit checks of HAVE_peephole.
7557
7558 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7559
7560         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
7561         check HAVE_conditional_move with the preprocessor.
7562
7563 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7564
7565         * genconfig.c (main): Always define HAVE_conditional_move.
7566         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
7567         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
7568         is defined.
7569
7570 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7571
7572         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
7573         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
7574         and FRAME_POINTER_REGNUM with the preprocessor.
7575
7576 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7577
7578         * defaults.h: Add default for STACK_PUSH_CODE.
7579         * expr.c: Don't redefine STACK_PUSH_CODE.
7580         * recog.c: Likewise.
7581
7582 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7583
7584         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
7585         sched-deps.c: Use if instead of preprocessor checks with
7586         STACK_GROWS_DOWNWARD.
7587
7588 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7589
7590         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
7591         is defined.
7592         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
7593         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
7594         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
7595         * doc/tm.texi: Regenerate.
7596
7597 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7598
7599         PR target/66232
7600         * config/i386/constraints.md (Bg): New constraint for GOT memory
7601         operand.
7602         * config/i386/i386.md (*call_got_x32): New pattern.
7603         (*call_value_got_x32): Likewise.
7604         * config/i386/predicates.md (GOT_memory_operand): New predicate.
7605
7606 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
7607
7608         PR tree-optimization/66233
7609         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
7610         Simplify.
7611
7612 2015-05-21  Jeff Law  <law@redhat.com>
7613
7614         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
7615         than MULT for shadd sequences.
7616
7617 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
7618
7619         * alias.c (alias_stats): New static var.
7620         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
7621         (dump_alias_stats_in_alias_c): New function.
7622         * alias.h (dump_alias_stats_in_alias_c): Declare.
7623         * tree-ssa-alias.c (dump_alias_stats): Call it.
7624
7625 2015-05-08  Michael Matz  <matz@suse.de>
7626
7627         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
7628         to strided_p.
7629         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
7630         (STMT_VINFO_STRIDED_P): ... this.
7631         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
7632         (vect_verify_datarefs_alignment): Likewise.
7633         (vect_enhance_data_refs_alignment): Likewise.
7634         (vect_analyze_data_ref_access): Likewise.
7635         (vect_analyze_data_refs): Accept strided stores.
7636         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
7637         (vect_model_load_cost): Adjust for macro rename.
7638         (vectorizable_mask_load_store): Likewise.
7639         (vectorizable_load): Likewise.
7640         (vectorizable_store): Open code strided stores.
7641
7642 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7643
7644         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
7645         Document sqrt_insn.
7646
7647 2015-05-21  Richard Biener  <rguenther@suse.de>
7648
7649         PR c++/66211
7650         * match.pd: Guard pattern optimzing (int)(float)int
7651         conversions to apply only on GIMPLE.
7652
7653 2015-05-21  Jeff Law  <law@redhat.com>
7654
7655         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
7656         multiply-accumulate/shift-add insn generation.
7657
7658 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
7659
7660         PR target/54236
7661         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
7662         operands[1] are the same.
7663
7664 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
7665
7666         PR middle-end/66221
7667         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
7668         build_distinct_type_copy to copy bounds.
7669
7670 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
7671
7672         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
7673         Change to unsigned int.
7674
7675 2015-05-20  Jeff Law  <law@redhat.com>
7676
7677         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
7678         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
7679         (pa_shadd_constant_p): Allow constants for shadd insns rather
7680         than valid scaling constants for memory addresses.
7681         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
7682         * config/pa/predicates.md (mem_shadd_operand): New predicate.
7683         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
7684         (shift-add insns using ASHIFT): New patterns.
7685
7686 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
7687
7688         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
7689         feasible.
7690         (fix_up_fall_thru_edges): Likewise.
7691         (fix_crossing_conditional_branches): Likewise. Promote jump targets
7692         from to rtx_insn to rtx_code_label where feasible.
7693         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
7694         gen_move_insn (returned type changed to rtx_insn).
7695         * builtins.c (expand_errno_check): Fix arguments of
7696         do_compare_rtx_and_jump (now expects rtx_code_label).
7697         (expand_builtin_acc_on_device): Likewise.
7698         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
7699         invert_jump (now exprects rtx_jump_insn).
7700         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
7701         (construct_init_block): Use rtx_code_label.
7702         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
7703         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
7704         calling redirect_jump.
7705         (patch_jump_insn): Likewise.
7706         (redirect_branch_edge): Likewise.
7707         (force_nonfallthru_and_redirect): Likewise.
7708         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
7709         when suitable.
7710         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
7711         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
7712         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
7713         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
7714         to store the value retured by gen_label_rtx.
7715         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
7716         rtx_jump_insn.
7717         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
7718         (split_branches): Fix calls of redirect_jump.
7719         * dojump.c (jumpifnot): Promote argument type from rtx to
7720         rtx_code_label.
7721         (jumpifnot_1): Likewise.
7722         (jumpif): Likewise.
7723         (jumpif_1): Likewise.
7724         (do_jump_1): Likewise.
7725         (do_jump): Likewise. Use rtx_code_label when feasible.
7726         (do_jump_by_parts_greater_rtx): Likewise.
7727         (do_jump_by_parts_zero_rtx): Likewise.
7728         (do_jump_by_parts_equality_rtx): Likewise.
7729         (do_compare_rtx_and_jump): Likewise.
7730         * dojump.h: Update function prototypes.
7731         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
7732         returns rtx_insn).
7733         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
7734         rtx_jump_insn.
7735         (emit_label_before): Likewise.
7736         (emit_jump_insn_after_noloc): Likewise.
7737         (emit_jump_insn_after_setloc): Likewise.
7738         (emit_jump_insn_after): Likewise
7739         (emit_jump_insn_before_setloc): Likewise.
7740         (emit_jump_insn_before): Likewise.
7741         (emit_label_before): Promote return type to rtx_code_label.
7742         (emit_label): Likewise.
7743         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
7744         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
7745         gen_move_insn.
7746         (emit_stack_restore): Likewise.
7747         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
7748         (do_cmp_and_jump): Likewise.
7749         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
7750         from rtx to rtx_code_label.
7751         (gen_move_insn_uncast): New function.
7752         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
7753         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
7754         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
7755         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
7756         invert_jump_1 and redirect_jump_1.
7757         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
7758         do_compare_rtx_and_jump.
7759         (expand_addsub_overflow): Likewise.
7760         (expand_neg_overflow): Likewise.
7761         (expand_mul_overflow): Likewise.
7762         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
7763         return value of gen_move_insn.
7764         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
7765         * loop-doloop.c (add_test): Use rtx_code_label.
7766         (doloop_modify): Likewise.
7767         (doloop_optimize): Likewise.
7768         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
7769         * lra-constraints.c (emit_spill_move): Remove cast of value returned
7770         by gen_move_insn.
7771         (inherit_reload_reg): Add cast when calling dump_insn_slim.
7772         (split_reg): Likewise.
7773         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
7774         gen_move_insn.
7775         * optabs.c (expand_binop_directly): Remove casts of values returned by
7776         maybe_gen_insn.
7777         (expand_unop_direct): Likewise.
7778         (expand_abs): Likewise.
7779         (maybe_emit_unop_insn): Likewise.
7780         (maybe_gen_insn): Promote return type to rtx_insn.
7781         * optabs.h: Update prototype of maybe_gen_insn.
7782         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
7783         redundant cast.
7784         * recog.c (struct peep2_insn_data): Promote type of insn field to
7785         rtx_insn.
7786         (peep2_reinit_state): Use NULL instead of NULL_RTX.
7787         (peep2_attempt): Remove casts of insn in peep2_insn_data.
7788         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
7789         * recog.h (struct insn_gen_fn): Promote return types of function
7790         pointers and operator ().from rtx to rtx_insn.
7791         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
7792         (fill_eager_delay_slots): Likewise.
7793         (relax_delay_slots): Likewise.
7794         (make_return_insns): Likewise.
7795         (dbr_schedule): Likewise.
7796         (optimize_skips): Likewise.
7797         (reorg_redirect_jump): Likewise.
7798         (fill_slots_from_thread): Likewise.
7799         * reorg.h: Update prototypes.
7800         * resource.c (find_dead_or_set_registers): Use dyn_cast to
7801         rtx_jump_insn instead of check.  Use it's jump_target method.
7802         * rtl.h (rtx_jump_insn::jump_label): Define new method.
7803         (rtx_jump_insn::jump_target): Define new method.
7804         (rtx_jump_insn::set_jump_target): Define new method.
7805         * rtlanal.c (tablejump_p): Promote type of one local variable.
7806         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
7807         (sched_analyze_insn): Likewise.
7808         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
7809         (print_insn): Likewise.
7810         * stmt.c (label_rtx): Promote return type to rtx_insn.
7811         (force_label_rtx): Likewise.
7812         (jump_target_rtx): Define new function.
7813         (expand_label): Use it, get rid of one cast.
7814         (expand_naked_return): Promote rtx to rtx_code_label.
7815         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
7816         (expand_case): Use rtx_code_label instread of rtx where feasible.
7817         (expand_sjlj_dispatch_table): Likewise.
7818         (emit_case_nodes): Likewise.
7819         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
7820         * store-motion.c (insert_store): Make use of new return type of
7821         gen_move_insn and remove a cast.
7822         (replace_store_insn): Likewise.
7823
7824 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
7825
7826         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
7827         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
7828
7829 2015-05-20  Jeff Law  <law@redhat.com>
7830
7831         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
7832         dispose of the jump thread path when the jump threading
7833         opportunity is cancelled.
7834
7835 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7836
7837         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
7838         when printing the caret character.
7839
7840 2015-05-20  Marek Polacek  <polacek@redhat.com>
7841
7842         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
7843
7844 2015-05-20  Marek Polacek  <polacek@redhat.com>
7845
7846         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
7847         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
7848         * gimple-fold.c (canonicalize_bool): Likewise.
7849         (same_bool_result_p): Likewise.
7850         * tree-if-conv.c (parse_predicate): Likewise.
7851
7852 2015-05-20  Marek Polacek  <polacek@redhat.com>
7853
7854         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
7855         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
7856
7857 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7858
7859         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
7860         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
7861         values.
7862
7863 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
7864
7865         * config/mips/mips.h (micromips_globals): Declare.
7866
7867 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
7868
7869         * timevar.def (TV_INITIALIZE_RTL): New.
7870         * toplev.c (initialize_rtl): Use an auto_timevar to account this
7871         function's time to TV_INITIALIZE_RTL.
7872
7873 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
7874
7875         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
7876         gimple_build_nop calls.
7877         (chkp_find_bounds_for_elem): Likewise.
7878         (chkp_get_zero_bounds): Likewise.
7879         (chkp_get_none_bounds): Likewise.
7880         (chkp_get_bounds_by_definition): Likewise.
7881         (chkp_generate_extern_var_bounds): Likewise.
7882         (chkp_get_bounds_for_decl_addr): Likewise.
7883         (chkp_get_bounds_for_string_cst): Likewise.
7884
7885 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
7886
7887         PR tree-optimization/65447
7888         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
7889         (dump_use, dump_uses): Support to dump sub use.
7890         (record_use): New parameters to support sub use.  Remove call to
7891         dump_use.
7892         (record_sub_use, record_group_use): New functions.
7893         (compute_max_addr_offset, split_all_small_groups): New functions.
7894         (group_address_uses, rewrite_use_address): New functions.
7895         (strip_offset): New declaration.
7896         (find_interesting_uses_address): Call record_group_use.
7897         (add_candidate): New assertion.
7898         (infinite_cost_p): Move definition forward.
7899         (add_costs): Check INFTY cost and return immediately.
7900         (get_computation_cost_at): Clear setup cost and dependent bitmap
7901         for sub uses.
7902         (determine_use_iv_cost_address): Compute cost for sub uses.
7903         (rewrite_use_address_1): Rename from old rewrite_use_address.
7904         (free_loop_data): Free sub uses.
7905         (tree_ssa_iv_optimize_loop): Call group_address_uses.
7906
7907 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
7908             Jim Wilson  <jim.wilson@linaro.org>
7909
7910         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
7911         new  fields loadv and storev.
7912         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
7913         Initialize loadv and storev.
7914         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
7915         (cortexa53_extra_costs): Likewise.
7916         (cortexa57_extra_costs): Likewise.
7917         (xgene1_extra_costs): Likewise.
7918         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
7919         rtx_costs.
7920
7921 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
7922
7923         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
7924          storev.
7925         (cortexa8_extra_costs): Likewise.
7926         (cortexa5_extra_costs): Likewise.
7927         (cortexa7_extra_costs): Likewise.
7928         (cortexa12_extra_costs): Likewise.
7929         (cortexa15_extra_costs): Likewise.
7930         (v7m_extra_costs): Likewise.
7931
7932 2015-05-20  Jeff Law  <law@redhat.com>
7933
7934         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
7935         instead of open-coded version.  Also delete the jump thread created
7936         within this function.
7937
7938 2015-05-20  Alan Modra  <amodra@gmail.com>
7939
7940         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
7941         stack adjusting insn.  Formatting.
7942         (rs6000_emit_prologue): Track stack adjusting insn, and use of
7943         r12.  If possible, emit first -fsplit-stack arg pointer insn
7944         before stack adjust.  Don't use r12 to save cr if split-stack.
7945
7946 2015-05-20  Alan Modra  <amodra@gmail.com>
7947
7948         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
7949         Define.
7950         (rs6000_supports_split_stack): New function.
7951         * gcc/config/rs6000/rs6000.c (machine_function): Add
7952         split_stack_arg_pointer.
7953         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
7954         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
7955         rather than virtual_incoming_args_rtx.
7956         (rs6000_va_start): Likewise.
7957         (split_stack_arg_pointer_used_p): New function.
7958         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
7959         (morestack_ref): New var.
7960         (gen_add3_const, rs6000_expand_split_stack_prologue,
7961         rs6000_internal_arg_pointer, rs6000_live_on_entry,
7962         rs6000_split_stack_space_check): New functions.
7963         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
7964         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
7965         (UNSPECV_SPLIT_STACK_RETURN): Define.
7966         (split_stack_prologue, load_split_stack_limit,
7967         load_split_stack_limit_di, load_split_stack_limit_si,
7968         split_stack_return, split_stack_space_check): New expands and insns.
7969         * gcc/config/rs6000/rs6000-protos.h
7970         (rs6000_expand_split_stack_prologue): Declare.
7971         (rs6000_split_stack_space_check): Declare.
7972
7973 2015-05-20  Alan Modra  <amodra@gmail.com>
7974
7975         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
7976         (direct_return): Test vrsave_size rather than vrsave_mask.
7977         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
7978         (rs6000_emit_epilogue): Likewise.
7979
7980 2015-05-20  Alan Modra  <amodra@gmail.com>
7981
7982         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
7983         when not saving registers.
7984         (debug_stack_info): Adjust to omit printing unused offsets,
7985         as before.
7986         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
7987         expression.
7988
7989 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7990
7991         PR c++/65835
7992         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
7993         value_type to const char *.
7994
7995 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
7996
7997         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
7998         to build a biarch toolchain again.
7999
8000 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
8001
8002         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
8003         or implicit declarations.
8004         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
8005         into it.
8006         (get_odr_type): Check type has linkage before adding bases.
8007         (register_odr_type): Check that type has linkage before adding it.
8008         (type_known_to_have_no_deriavations_p): Rename to ..
8009         (type_known_to_have_no_derivations_p): This one.
8010         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
8011         (type_known_to_have_no_derivations_p): This one.
8012         * ipa-polymorphic-call.c
8013         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
8014         type has linkage.
8015
8016 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
8017
8018         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
8019         (layout_type): Use RECORD_OR_UNION_TYPE_P.
8020
8021 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8022
8023         * config/s390/s390.c (s390_vector_bool_type_p): New function.
8024         (s390_invalid_binary_op): New function.
8025         (TARGET_INVALID_BINARY_OP): Define macro.
8026
8027 2015-05-19  David Sherwood  <david.sherwood@arm.com>
8028
8029         * loop-invariant.c (create_new_invariant): Don't calculate address cost
8030         if mode is not a scalar integer.
8031         (get_inv_cost): Increase computational cost for unused invariants.
8032
8033 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8034
8035         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
8036         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
8037         * config/s390/s390-builtin-types.def: New file.
8038         * config/s390/s390-builtins.def: New file.
8039         * config/s390/s390-builtins.h: New file.
8040         * config/s390/s390-c.c: New file.
8041         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
8042         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
8043         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
8044         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
8045         prototypes.
8046         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
8047         Include.
8048         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
8049         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
8050         variable definitions.
8051         (s390_const_operand_ok): New function.
8052         (s390_expand_builtin): Rewrite.
8053         (s390_init_builtins): New function.
8054         (s390_handle_vectorbool_attribute): New function.
8055         (s390_attribute_table): Add s390_vector_bool attribute.
8056         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
8057         (s390_branch_condition_mask): Generate masks for new modes.
8058         (s390_expand_vec_compare_cc): New function.
8059         (s390_mangle_type): Add mangling for vector bool types.
8060         (enum s390_builtin): Remove.
8061         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
8062         efpc builtins.
8063         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
8064         s390_cpu_cpp_builtins.
8065         (REGISTER_TARGET_PRAGMAS): New macro.
8066         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
8067         (insn_cmp mode attribute): Add new CC modes.
8068         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
8069         (lcbb): New pattern definition.
8070         * config/s390/s390intrin.h: Include vecintrin.h.
8071         * config/s390/t-s390: New file.
8072         * config/s390/vecintrin.h: New file.
8073         * config/s390/vector.md: Include vx-builtins.md.
8074         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
8075         support.
8076
8077 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8078
8079         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
8080         CCVFHE.
8081         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
8082         (s390_select_ccmode): Likewise.
8083         (s390_canonicalize_comparison): Swap operands if necessary.
8084         (s390_expand_vec_compare_scalar): Expand DFmode compare using
8085         single element vector instructions.
8086         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
8087         (s390_branch_condition_mask): Generate CC masks for the new modes.
8088         * config/s390/s390.md (v0, vf, vd): New mode attributes.
8089         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
8090         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
8091         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
8092         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
8093         (*extend<DSF:mode><BFP:mode>2): New insn definition.
8094         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
8095         (extend<DSF:mode><BFP:mode>2): Turn into expander.
8096         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
8097         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
8098         (sqrt<mode>2): Add vector instruction.
8099
8100 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8101
8102         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
8103         constraints.
8104         * config/s390/predicates.md (const0_operand, constm1_operand)
8105         (constable_operand): Accept vector operands.
8106         * config/s390/s390-modes.def: Add supported vector modes.
8107         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
8108         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
8109         (s390_bytemask_vector_p, s390_expand_vec_strlen)
8110         (s390_expand_vec_compare, s390_expand_vcond)
8111         (s390_expand_vec_init): Add prototypes.
8112         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
8113         (s390_vector_mode_supported_p): New function.
8114         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
8115         (s390_contiguous_bitmask_vector_p): New function.
8116         (s390_bytemask_vector_p): New function.
8117         (s390_split_ok_p): Vector regs don't work either.
8118         (regclass_map): Add VEC_REGS.
8119         (s390_legitimate_constant_p): Handle vector constants.
8120         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
8121         (legitimate_reload_vector_constant_p): New function.
8122         (s390_preferred_reload_class): Handle CONST_VECTOR.
8123         (s390_reload_symref_address):  Likewise.
8124         (s390_secondary_reload): Vector memory instructions only support
8125         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
8126         (s390_emit_ccraw_jump): New function.
8127         (s390_expand_vec_strlen): New function.
8128         (s390_expand_vec_compare): New function.
8129         (s390_expand_vcond): New function.
8130         (s390_expand_vec_init): New function.
8131         (s390_dwarf_frame_reg_mode): New function.
8132         (print_operand): Handle addresses with 'O' and 'R' constraints.
8133         (NR_C_MODES, constant_modes): Add vector modes.
8134         (s390_output_pool_entry): Handle vector constants.
8135         (s390_hard_regno_mode_ok): Handle vector registers.
8136         (s390_class_max_nregs): Likewise.
8137         (s390_cannot_change_mode_class): New function.
8138         (s390_invalid_arg_for_unprototyped_fn): New function.
8139         (s390_function_arg_vector): New function.
8140         (s390_function_arg_float): Remove size variable.
8141         (s390_pass_by_reference): Handle vector arguments.
8142         (s390_function_arg_advance): Likewise.
8143         (s390_function_arg): Likewise.
8144         (s390_return_in_memory): Vector values are returned in a VR if
8145         possible.
8146         (s390_function_and_libcall_value): Handle vector arguments.
8147         (s390_gimplify_va_arg): Likewise.
8148         (s390_call_saved_register_used): Consider the arguments named.
8149         (s390_conditional_register_usage): Disable v16-v31 for non-vec
8150         targets.
8151         (s390_preferred_simd_mode): New function.
8152         (s390_support_vector_misalignment): New function.
8153         (s390_vector_alignment): New function.
8154         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
8155         (TARGET_VECTOR_MODE_SUPPORTED_P)
8156         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
8157         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
8158         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
8159         (TARGET_VECTOR_ALIGNMENT): Define target macro.
8160         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
8161         (FIRST_PSEUDO_REGISTER): Increase value.
8162         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
8163         (VECTOR_REG_P): Define macros.
8164         (FIXED_REGISTERS, CALL_USED_REGISTERS)
8165         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
8166         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
8167         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
8168         Add vector registers.
8169         (CANNOT_CHANGE_MODE_CLASS): Call C function.
8170         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
8171         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
8172         memory.
8173         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
8174         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
8175         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
8176         (VR*_REGNUM): New constants.
8177         (ALL): New mode iterator.
8178         (INTALL): Remove mode iterator.
8179         Include vector.md.
8180         (movti): Implement TImode moves for VRs.
8181         Disable TImode splitter for VR targets.
8182         Implement splitting TImode GPR<->VR moves.
8183         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
8184         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
8185         reload<mode>_la_in, reload<mode>_la_out.
8186         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
8187         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
8188         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
8189         (mov<mode> SF SD): Prefer lder, lde for loading.
8190         Add lrl and strl instructions.
8191         Add vector instructions.
8192         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
8193         Call s390_expand_vec_strlen on z13.
8194         (*cc_to_int): Change predicate to nonimmediate_operand.
8195         (addti3): Rename to *addti3.  New expander.
8196         (subti3): Rename to *subti3.  New expander.
8197         * config/s390/vector.md: New file.
8198
8199 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8200
8201         * common/config/s390/s390-common.c (processor_flags_table): Add
8202         z13.
8203         * config.gcc: Add z13.
8204         * config/s390/s390-opts.h (enum processor_type): Add
8205         PROCESSOR_2964_Z13.
8206         * config/s390/s390.c (s390_adjust_priority): Check for
8207         PROCESSOR_2964_Z13.
8208         (s390_reorg): Likewise.
8209         (s390_sched_reorder): Likewise.
8210         (s390_sched_variable_issue): Likewise.
8211         (s390_loop_unroll_adjust): Likewise.
8212         (s390_option_override): Likewise. Default to -mvx when available.
8213         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
8214         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
8215         (TARGET_VX_ABI): Define macros.
8216         macros.
8217         (TARGET_DEFAULT): Add MASK_OPT_VX.
8218         * config/s390/s390.md ("cpu" attribute): Add z13.
8219         ("cpu_facility" attribute): Add vec.
8220         * config/s390/s390.opt (processor_type): Add z13.
8221         (mvx): New options.
8222         * doc/invoke.texi: Add z13 option for -march.
8223
8224 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8225
8226         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
8227         mode check to make sure that only scalar integer values are
8228         accepted.
8229
8230 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
8231
8232         * tree.c (verify_type_variant): Fix #undef.
8233         (gimple_canonical_types_compatible_p): Move here from lto.c
8234         (verify_type): Verify TYPE_CANONICAL compatibility.
8235         * tree.h (gimple_canonical_types_compatible_p): Declare.
8236
8237 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
8238
8239         PR middle-end/66199
8240         * tree.h (OMP_TEAMS_COMBINED): Define.
8241         * gimplify.c (enum gimplify_omp_var_data): Add
8242         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
8243         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
8244         (omp_notice_variable): Accept both ORT_TEAMS
8245         and ORT_COMBINED_TEAMS.  Don't recurse if
8246         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
8247         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
8248         GOVD_FIRSTPRIVATE.
8249         (omp_no_lastprivate): New function.
8250         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
8251         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
8252         notice_outer and set appropriate bits, otherwise make
8253         sure default(none) combined constructs won't complain.
8254         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
8255         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
8256         omp_no_lastprivate either remove the clause or turn it
8257         into OMP_CLAUSE_PRIVATE.
8258         (gimplify_omp_for): Fix up handling of implicit
8259         lastprivate or linear iterators.
8260         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
8261         ORT_COMBINED_TEAMS.
8262         * omp-low.c (lower_omp_for_lastprivate): For combined
8263         for simd use fd.loop.n2 from the for rather than simd.
8264
8265 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8266
8267         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
8268         instead of gen_rtx_raw_REG.
8269         (cris_expand_epilogue): Likewise.
8270         * config/microblaze/microblaze.c (microblaze_classify_address):
8271         Likewise.
8272         * config/sparc/sparc.md: Likewise.
8273
8274 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
8275
8276         * config/alpha/alpha.c (alpha_legitimize_reload_address)
8277         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
8278         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
8279         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
8280         Use CASE_CONST_SCALAR_INT.
8281         (print_operand) <case 'M'>: Use mode_width_operand to check the
8282         value of the constant.
8283         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
8284         * config/alpha/predicates.md (input_operand): Use general_operand
8285         instead of match_code as operand check.
8286         (symbolic_operand): Use match_code with subexpression digits.
8287         * config/alpha/constraints.md (Q): Ditto.
8288
8289 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8290
8291         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
8292
8293 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8294
8295         * config/s390/s390.c (s390_secondary_reload): Fix check for
8296         load/store relative.
8297
8298 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8299
8300         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
8301         alternative_mask to uint64_t.
8302
8303 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
8304
8305         PR tree-optimization/66187
8306         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
8307         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
8308         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
8309
8310 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
8311
8312         * diagnostic.c (diagnostic_report_current_module): Strengthen
8313         local "new_map" from const line_map * to
8314         const line_map_ordinary *.
8315         * genmatch.c (error_cb): Likewise for local "map".
8316         (output_line_directive): Likewise for local "map".
8317         * input.c (expand_location_1): Likewise for local "map".
8318         Pass NULL rather than &map to
8319         linemap_unwind_to_first_non_reserved_loc, since the value is never
8320         read from there, and the value written back not read from here.
8321         (is_location_from_builtin_token): Strengthen local "map" from
8322         const line_map * to const line_map_ordinary *.
8323         (dump_location_info): Strengthen locals "map" from
8324         line_map *, one to const line_map_ordinary *, the other
8325         to const line_map_macro *.
8326         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
8327         const line_map * to const line_map_macro *.
8328         (maybe_unwind_expanded_macro_loc): Add a call to
8329         linemap_check_macro when writing to the "map" field of the
8330         loc_map_pair.
8331         Introduce local const line_map_ordinary * "ord_map", using it in
8332         place of "map" in the part of the function where we know we have
8333         an ordinary map.  Strengthen local "m" from const line_map * to
8334         const line_map_ordinary *.
8335
8336 2015-05-19  Nick Clifton  <nickc@redhat.com>
8337
8338         PR target/66156
8339         * config/msp430/msp430.md (zero_extendhisi2): Add support for
8340         separate source and destination registers.
8341
8342 2015-05-19  Richard Biener  <rguenther@suse.de>
8343
8344         PR tree-optimization/66165
8345         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
8346         for no load permutation.
8347
8348         PR tree-optimization/66185
8349         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
8350         when building the SLP node from scalars.
8351
8352 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
8353             Tristan Gingold  <gingold@adacore.com>
8354
8355         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
8356         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
8357         (expand_stack_restore): Call record_new_stack_level.
8358         (expand_stack_save): Do not call do_pending_stack_adjust.
8359         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
8360         * calls.c (expand_call): Call record_new_stack_level for alloca.
8361         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
8362         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
8363         (update_sjlj_context): New global function.
8364         * except.h (update_sjlj_context): Declare.
8365         * explow.c (record_new_stack_level): New global function.
8366         (allocate_dynamic_stack_space): Call record_new_stack_level.
8367         * explow.h (record_new_stack_level): Declare.
8368         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
8369         * cfgrtl.c (duplicate_insn_chain): Likewise.
8370
8371 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8372
8373         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
8374         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
8375         STACK_GROWS_DOWNWARD as normal if.
8376         (expand_call): Likewise.
8377
8378 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
8379
8380         PR target/54236
8381         * config/sh/sh.md (*round_int_even): New insn_and_split and
8382         accompanying new unnamed split.
8383
8384 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8385
8386         * bitmap.c (bitmap_set_range): Handle count==1 specially.
8387         (bitmap_clear_range): Likewise.
8388         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
8389         bitmap_set_range unconditionally.
8390         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
8391         * df-scan.c (df_mark_reg): Likewise.
8392         * haifa-sched.c (setup_ref_regs): Likewise.
8393         * sched-rgn.c (update_live_1): Likewise.
8394
8395 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8396
8397         * regs.h (END_HARD_REGNO): Delete.
8398         (END_REGNO): Move to...
8399         * rtl.h: ...here.
8400         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
8401         * caller-save.c (mark_set_regs): Likewise.
8402         * combine.c (move_deaths, distribute_notes): Likewise.
8403         * cse.c (invalidate, invalidate_for_call): Likewise.
8404         * df-scan.c (df_ref_record): Likewise.
8405         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
8406         (record_last_reg_set_info): Likewise.
8407         * reg-stack.c (convert_regs_exit): Likewise.
8408         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
8409         * resource.c (update_live_status): Likewise.
8410         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
8411
8412 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8413
8414         * rtl.h (reg_info): Add an nregs field.
8415         (REG_NREGS): Use it.
8416         (SET_REGNO_RAW): Delete.
8417         (set_regno_raw): New function.
8418         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
8419         (END_REGNO): Redefine in terms of REG_NREGS.
8420         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
8421         SET_REGNO_RAW.
8422         * emit-rtl.c (set_mode_and_regno): Likewise.
8423         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
8424         instead of SET_REGNO_RAW.
8425
8426 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8427
8428         * rtl.h (PUT_MODE_RAW): New macro.
8429         (PUT_REG_NOTE_KIND): Use it.
8430         (set_mode_and_regno): Declare.
8431         (gen_raw_REG): Change regno to "unsigned int".
8432         (gen_rtx_REG): Change "unsigned" to "unsigned int".
8433         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
8434         use set_mode_and_regno to change the mode of registers.
8435         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
8436         * emit-rtl.c (set_mode_and_regno): New function.
8437         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
8438         * caller-save.c (reg_save_code): Use set_mode_and_regno.
8439         * expr.c (init_expr_target): Likewise.
8440         * ira.c (setup_prohibited_mode_move_regs): Likewise.
8441         * postreload.c (reload_cse_simplify_operands): Likewise.
8442
8443 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8444
8445         * caller-save.c (init_caller_save): Use word_mode and
8446         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
8447         * expr.c (init_expr_target): Likewise.
8448         * ira.c (setup_prohibited_mode_move_regs): Likewise.
8449         * postreload.c (reload_cse_regs_1): Likewise.
8450
8451 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8452
8453         * rtl.def (REG): Change format to "r".
8454         * rtl.h (rtunion): Remove rt_reg.
8455         (reg_info): New structure.
8456         (rtx_def): Add reg field to main union.
8457         (X0REGATTR): Delete.
8458         (REG_CHECK): New macro.
8459         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
8460         * rtl.c (rtx_format): Document "r".
8461         (rtx_code_size): Handle REG specially.
8462         * gengenrtl.c (special_format): Return true for formats
8463         that include 'r'.
8464         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
8465         Deal with REG_ATTRS after the field loop.
8466         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
8467         * expmed.c (init_expmed): Call gen_raw_REG instead of
8468         gen_rtx_raw_REG.
8469         * expr.c (init_expr_target): Likewise.
8470         * regcprop.c (maybe_mode_change): Likewise.
8471         * varasm.c (make_decl_rtl): Likewise.
8472         * final.c (leaf_renumber_regs_insn): Return early after
8473         handling REGs.
8474         * genemit.c (gen_exp): Handle 'r' fields.
8475         * genpeep.c (match_rtx): Likewise.
8476         * gensupport.c (subst_pattern_match): Likewise.
8477         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
8478         (alter_constraints, subst_dup): Likewise.
8479         * read-rtl.c (read_rtx_code): Likewise.
8480         * print-rtl.c (print_rtx): Likewise.
8481         * genrecog.c (find_operand, find_matching_operand): Likewise.
8482         (validate_pattern, match_pattern_2): Likewise.
8483         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
8484         (rtx_test::regno_field): New function.
8485         (operator ==, safe_to_hoist_p, transition_parameter_type)
8486         (parameter_type_string, print_parameter_value)
8487         (print_nonbool_test, print_test): Handle new enum values.
8488         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
8489         * lra-constraints.c (operands_match_p): Likewise.
8490
8491 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8492
8493         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
8494         Change type of new_regno to unsigned int.
8495         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
8496         new_regno to unsigned int.
8497         (df_ref_change_reg_with_loc): Remove old_regno parameter.
8498         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
8499         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
8500         (SET_REGNO_RAW): Add space after ",".
8501
8502 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8503
8504         * rtl.h (REG_NREGS): New macro
8505         * alias.c (record_set): Use it.
8506         * cfgcleanup.c (mark_effect): Likewise.
8507         * combine.c (likely_spilled_retval_1): Likewise.
8508         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
8509         (move_deaths, distribute_notes): Likewise.
8510         * cselib.c (cselib_record_set): Likewise.
8511         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
8512         * df-scan.c (df_mark_reg): Likewise.
8513         * dse.c (look_for_hardregs): Likewise.
8514         * dwarf2out.c (reg_loc_descriptor): Likewise.
8515         (multiple_reg_loc_descriptor): Likewise.
8516         * expr.c (write_complex_part, read_complex_part): Likewise.
8517         (emit_move_complex): Likewise.
8518         * haifa-sched.c (setup_ref_regs): Likewise.
8519         * ira-lives.c (mark_hard_reg_live): Likewise.
8520         * lra.c (lra_set_insn_recog_data): Likewise.
8521         * mode-switching.c (create_pre_exit): Likewise.
8522         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
8523         (reload_combine_recognize_pattern): Likewise.
8524         (reload_combine_note_use, move2add_record_mode): Likewise.
8525         (reload_cse_move2add): Likewise.
8526         * reg-stack.c (subst_stack_regs_pat): Likewise.
8527         * regcprop.c (kill_value, copy_value): Likewise.
8528         (copyprop_hardreg_forward_1): Likewise.
8529         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
8530         (build_def_use): Likewise.
8531         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
8532         (deps_analyze_insn): Likewise.
8533         * sched-rgn.c (check_live_1, update_live_1): Likewise.
8534         * sel-sched.c (count_occurrences_equiv): Likewise.
8535         * valtrack.c (dead_debug_insert_temp): Likewise.
8536
8537 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8538
8539         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
8540         * dse.c (note_add_store): Likewise.
8541         * ira-lives.c (mark_hard_reg_dead): Likewise.
8542         * loop-invariant.c (mark_reg_store): Likewise.
8543         (mark_reg_death): Likewise.
8544         * postreload.c (reload_combine): Likewise.
8545         (reload_combine_note_store): Likewise.
8546         (reload_combine_note_use): Likewise.
8547         * recog.c (peep2_reg_dead_p): Likewise.
8548
8549 2015-05-19  Alan Modra  <amodra@gmail.com>
8550
8551         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
8552         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
8553         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
8554         unused predicates.
8555         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
8556         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
8557         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
8558         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
8559
8560 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
8561
8562         * config/mips/mips.md (JOIN_MODE): New mode iterator.
8563         (join2_load_Store<JOIN_MODE:mode>): New pattern.
8564         (join2_loadhi): Likewise.
8565         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
8566         load-load and store-stores.
8567         * config/mips/mips.opt (mload-store-pairs): New option.
8568         (TARGET_LOAD_STORE_PAIRS): New macro.
8569         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
8570         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
8571         * config/mips/mips.c (mips_load_store_bonding_p): New function.
8572
8573 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
8574
8575         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
8576         explicit swaps.
8577         * dojump.c (do_compare_rtx_and_jump): Likewise.
8578         * expmed.c (emit_store_flag_1): Likewise.
8579         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
8580         * final.c (sprint_ul): Use std::reverse for reversing a string.
8581         * fold-const.c (extract_muldiv_1): Use std::swap.
8582         * genmodes.c (emit_mode_int_n): Likewise.
8583         * ifcvt.c (dead_or_predicable): Likewise.
8584         * ira-build.c (ira_merge_live_ranges): Likewise.
8585         (swap_allocno_copy_ends_if_necessary): Likewise.
8586         * ira.c (ira_setup_alts): Likewise.
8587         * loop-iv.c (iv_analyze_expr): Likewise.
8588         (implies_p): Likewise.
8589         (canon_condition): Likewise.
8590         * lra-constraints.c (swap_operands): Likewise.
8591         * lra-lives.c (lra_merge_live_ranges): Likewise.
8592         * omega.c (swap): Remove.
8593         (bswap): Remove.
8594         (omega_unprotect_1): Use std::swap.
8595         (omega_solve_geq): Likewise.
8596         * optabs.c (expand_binop_directly): Likewise.
8597         (expand_binop): Likewise.
8598         (emit_conditional_move): Likewise.
8599         (emit_conditional_add): Likewise.
8600         * postreload.c (reload_cse_simplify_operands): Likewise.
8601         * reg-stack.c (emit_swap_insn): Likewise.
8602         (swap_to_top): Likewise.
8603         (compare_for_stack_reg): Likewise.
8604         (subst_asm_stack_regs): Likewise.
8605         * reload.c (find_reloads): Likewise.
8606         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
8607         * sel-sched.c (invoke_reorder_hooks): Likewise.
8608         (create_block_for_bookkeeping): Likewise.
8609         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
8610         (lambda_matrix_right_hermite): Use std::swap.
8611         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
8612         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
8613         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
8614         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
8615         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
8616         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
8617         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8618         * tree-vrp.c (compare_ranges): Likewise.
8619         * var-tracking.c (add_with_sets): Likewise.
8620         (vt_find_locations): Likewise.
8621
8622 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
8623
8624         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
8625         pie executables.
8626         (FBSD_ENDFILE_SPEC): Likewise.
8627         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
8628         config/freebsd-spec.h.
8629         (ENDFILE_SPEC): Likewise.
8630
8631 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
8632             Richard Henderson  <rth@redhat.com>
8633
8634         PR target/57032
8635         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
8636         Check for a memory location that is not a reference (using an AND)
8637         to an unaligned location here.
8638         * config/alpha/predicates.md (normal_memory_operand): Remove.
8639
8640 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
8641
8642         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
8643         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
8644
8645 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
8646
8647         * config/mips/mips.c (micromips_globals): New variable.
8648         (mips_set_compression_mode): Save and reinitialize target-dependent
8649         state for microMIPS.
8650
8651 2015-05-18  Martin Liska  <mliska@suse.cz>
8652
8653         * dbgcnt.def: Add new counter.
8654         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
8655
8656 2015-05-18  Martin Liska  <mliska@suse.cz>
8657
8658         * dbgcnt.def: Sort counters.
8659         * opts.c (common_handle_option): Do not compile if
8660         -fdbg-cnt-list is enabled.
8661
8662 2015-05-18  Tom de Vries  <tom@codesourcery.com>
8663
8664         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
8665         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
8666         address operator to va_list operand.
8667         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
8668         unconditionally.
8669         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
8670         operand.
8671         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
8672         * config/s390/s390.c (s390_gimplify_va_arg): Same.
8673         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
8674
8675 2015-05-18  Tom de Vries  <tom@codesourcery.com>
8676
8677         * tree-ssa-tail-merge.c: Fix whitespace.
8678
8679 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
8680
8681         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
8682         cortex-a17, and cortex-a17.cortex-a7.
8683
8684 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
8685
8686         PR target/54236
8687         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
8688
8689 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
8690
8691         PR target/66174
8692         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
8693         QImode inner modes for TARGET_AVX512BW.  Force mask operand
8694         to a register for AVX512F modes.
8695
8696 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
8697
8698         * toplev.c (emit_debug_global_declarations): Do not output debug info
8699         when doing slim LTO objects.
8700
8701 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
8702
8703         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
8704         odr_types_equivalent_p): Declare.
8705         (odr_type_p): Use gcc_checking_assert.
8706         (type_in_anonymous_namespace_p) Declare.
8707         (type_with_linkage_p): Declare.
8708         * common.opt (Wlto-type-mismatch): New warning.
8709         * ipa-devirt.c (compound_type_base): New function.
8710         (odr_or_derived_type_p): New function.
8711         (odr_types_equivalent_p): New function.
8712         (add_type_duplicate): Simplify.
8713         (type_with_linkage_p): Add hack to prevent false positives on C types
8714         (type_in_anonymous_namespace_p): Likewise.
8715         * tree.c (need_assembler_name_p): Use type_with_linkage.
8716         * tree.h (type_in_anonymous_namespace_p): Remove.
8717         * doc/invoke.texi (-Wlto-type-mismatch): Document
8718
8719 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
8720
8721         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
8722         (verify_type): Verify STRING_FLAG.
8723
8724 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8725
8726         PR fortran/44054
8727         * tree-pretty-print.c (percent_K_format): Replace locus pointer
8728         with accessor function.
8729         * tree-diagnostic.c (diagnostic_report_current_function): Use
8730         diagnostic_location function.
8731         (maybe_unwind_expanded_macro_loc): Likewise.
8732         (virt_loc_aware_diagnostic_finalizer): Likewise.
8733         (default_tree_printer): Replace locus pointer with accessor function.
8734         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
8735         (diagnostic_set_info_translated): Initialize second location.
8736         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
8737         (diagnostic_show_locus): Handle two locations. Call
8738         diagnostic_print_caret_line.
8739         (diagnostic_print_caret_line): New.
8740         (default_diagnostic_starter): Use diagnostic_location function.
8741         (diagnostic_report_diagnostic): Use diagnostic_location function.
8742         (verbatim): Do not set text.locus.
8743         * diagnostic.h (struct diagnostic_info): Remove location field.
8744         (struct diagnostic_context): Make caret_chars an array of two.
8745         (diagnostic_location): New inline.
8746         (diagnostic_expand_location): Handle two locations.
8747         (diagnostic_same_line): New inline.
8748         (diagnostic_print_caret_line): Declare.
8749         (CARET_LINE_MARGIN): New constant.
8750         * pretty-print.c (pp_printf): Do not set text.locus.
8751         (pp_verbatim): Do not set text.locus.
8752         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
8753         (struct text_info): Replace locus pointer with locations
8754         array. Add accessor functions.
8755
8756 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
8757             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
8758
8759         PR target/65768
8760         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
8761         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
8762          large constants in register instead of splitting them.
8763
8764 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
8765
8766         PR target/66140
8767         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
8768         replacements in memory addresses.
8769         (get_unaligned_address): Ditto.
8770
8771 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
8772
8773         * config/ft32/*: New files for FT32 port.
8774         * doc/install.texi: Add FT32 information.
8775         * doc/invoke.texi: Add FT32 information.
8776         * doc/md.texi: Add FT32 information.
8777         * doc/contrib.texi: Self added.
8778
8779 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
8780
8781         PR tree-optimization/64454
8782         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
8783         (-1 - A -> ~A): Remove unnecessary condition.
8784
8785 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
8786
8787         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
8788         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
8789         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
8790
8791 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
8792
8793         * ipa-chkp.h (chkp_wrap_function): New.
8794         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
8795         (chkp_wrap_function_name): New.
8796         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
8797         to get wrapper name.
8798         * lto-cgraph.c: Include ipa-chkp.h.
8799         (input_cgraph_1): Avoid alias chain for wrappers.
8800
8801 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
8802
8803         PR middle-end/66134
8804         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
8805         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
8806
8807 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8808
8809         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
8810         (AARCH64_FL_SLOWMUL): Delete.
8811         (AARCH64_FL_CRC): Redefine to 1<<3.
8812         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
8813
8814 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8815
8816         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
8817         casting.
8818
8819 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
8820
8821         * config/alpha/alpha.md (extendqidi2): Use general_operand
8822         instead of some_operand for operand[1] predicate.
8823         (extendhidi2): Ditto.
8824         (cbranchdi4): Use general_operand instead of some_operand
8825         for operand[1] and operands[2] predicates.
8826         (cstoredi4): Ditto.
8827         * config/alpha/predicates.md (some_operand): Remove unused predicate.
8828         (some_ni_operand): Ditto.
8829
8830 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
8831
8832         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
8833         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
8834         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
8835         low part of the constant using alpha_emit_set_const_1.
8836         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
8837
8838 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
8839
8840         * varasm.c (output_constant_pool_1): Pass down alignment from
8841         constant pool entry's descriptor to output_constant_pool_2.
8842         (output_object_block): Add comment prior to call to
8843         output_constant_pool_1.
8844
8845 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
8846
8847         PR rtl-optimization/65862
8848         * target.def (ira_change_pseudo_allocno_class): New hook.
8849         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
8850         value of the hook.
8851         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
8852         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
8853         hook.
8854         * ira-costs.c (find_costs_and_classes): Call the hook and change
8855         classes when it is necessary.
8856         * doc/tm.texi: Update.
8857
8858 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
8859
8860         * config/i386/i386.md (sibcall_memory): Check that register with
8861         callee address is not also used as one of the arguments, instead
8862         of checking that it is not live after the sibcall.
8863         (sibcall_pop_memory): Ditto.
8864         (sibcall_value_memory): Ditto.
8865         (sibcall_value_pop_memory): Ditto.
8866
8867 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
8868
8869         * generic-match-head.c (types_match): Handle non-types.
8870         * gimple-match-head.c (types_match): Likewise.
8871         * match.pd: Remove unnecessary TREE_TYPE for types_match.
8872
8873 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
8874
8875         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
8876         (csneg3<mode>_insn): Enable expansion of pattern.
8877
8878 2015-05-14  Nick Clifton  <nickc@redhat.com>
8879
8880         * config/rl78/rl78.c (rl78_select_section): Select the correct
8881         default section based upon the category of the decl.
8882
8883 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
8884
8885         PR rtl-optimization/30967
8886         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
8887         destination mode for the cost of scc patterns.
8888
8889 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
8890
8891         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
8892         using SWIM248 mode iterator.
8893         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
8894         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
8895         for operand[2] constraint.
8896         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
8897
8898 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
8899
8900         PR middle-end/66133
8901         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
8902         make sure it is never noreturn, even when the task body does not
8903         return.
8904         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
8905         right before GIMPLE_OMP_RETURN.
8906         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
8907         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
8908         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
8909
8910 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8911
8912         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
8913         * tree-ssa-math-opts.c: Include params.h
8914         (pow_synth_sqrt_info): New struct.
8915         (representable_as_half_series_p): New function.
8916         (get_fn_chain): Likewise.
8917         (print_nested_fn): Likewise.
8918         (dump_fractional_sqrt_sequence): Likewise.
8919         (dump_integer_part): Likewise.
8920         (expand_pow_as_sqrts): Likewise.
8921         (gimple_expand_builtin_pow): Use above to attempt to expand
8922         pow as series of square roots.  Removed now unused variables.
8923
8924 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
8925
8926         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
8927         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
8928         Remove *p0 and *p1 arguments.  Rewrite function.
8929         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
8930         (alpha_split_const_mov): Update calls to alpha_extract_integer and
8931         alpha_emit_set_long_const.
8932         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
8933         (alpha_output_mi_thunk_osf): Ditto.
8934         * config/alpha/alpha.md (movti): Do not check operands[1]
8935         for CONST_DOUBLE.
8936
8937 2015-05-13  Richard Biener  <rguenther@suse.de>
8938
8939         PR tree-optimization/66129
8940         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
8941         commutative.
8942         (vect_schedule_slp_instance): Fix typo.
8943
8944 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
8945
8946         * common.opt (fdump-internal-locations): New option.
8947         * input.c: Include diagnostic-core.h.
8948         (get_end_location): New function.
8949         (write_digit): New function.
8950         (write_digit_row): New function.
8951         (dump_location_range): New function.
8952         (dump_labelled_location_range): New function.
8953         (dump_location_info): New function.
8954         * input.h (dump_location_info): New prototype.
8955         * toplev.c (compile_file): Handle flag_dump_locations.
8956
8957 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
8958
8959         * gimple-expr.h (is_gimple_constant): Reorder.
8960         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
8961
8962 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
8963
8964         * combine.c (simplify_set): When generating a CC set, if the
8965         source already is in the correct mode, do not wrap it in a
8966         compare.  Simplify the rest of that code.
8967
8968 2015-05-13  Richard Biener  <rguenther@suse.de>
8969
8970         PR tree-optimization/66123
8971         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
8972         a taken edge.
8973
8974 2015-05-13  Richard Biener  <rguenther@suse.de>
8975
8976         PR middle-end/66110
8977         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
8978         specially.
8979         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
8980
8981 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
8982
8983         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
8984         * aclocal.m4: Regenerated with automake-1.11.6.
8985
8986 2015-05-13  Tom de Vries  <tom@codesourcery.com>
8987
8988         PR tree-optimization/66010
8989         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
8990         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
8991         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
8992         and rval based on do_deref.
8993
8994 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8995
8996         PR target/65103
8997         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
8998         link time constants into adress expressions and therefore set
8999         their cost to 0.
9000
9001 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
9002
9003         PR target/66112
9004         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
9005         Use SWI248 iterator instead of SWI.
9006         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
9007         Use eq_attr "alternative" "0" instead of match_test in
9008         length_immediate attribute computation.
9009         (*mulvhi4, *mulvhi4_1): New define_insns.
9010
9011         PR target/66112
9012         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
9013         SIGNED to get precision of non-negative value.
9014
9015 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
9016
9017         PR target/66048
9018         * function.c (diddle_return_value_1): Process bounds first.
9019         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
9020         register.
9021
9022 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9023
9024         PR rtl-optimization/64616
9025         * loop-invariant.c (can_move_invariant_reg): New.
9026         (move_invariant_reg): Call above new function to decide whether
9027         instruction can just be moved, skipping creation of temporary
9028         register.
9029
9030 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
9031
9032         PR target/pr66047.c
9033         * i386.c (ix86_function_sseregparm): Only return -1 if local function
9034         with implied regparm is called from -mno-sse function.
9035         (init_cumulative_args): Output error if ix86_function_sseregparm
9036         return -1 and SSE register would be needed.
9037         (function_arg_advance_32): Likewise.
9038         (function_arg_32): Likewise.
9039         * i386.h (ix86_args): Add decl field.
9040
9041 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
9042
9043         PR ipa/65873
9044         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
9045         inlines across optimization boundary.
9046
9047 2015-05-12  Jason Merrill  <jason@redhat.com>
9048
9049         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
9050         string literal and macro name.
9051
9052 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
9053
9054         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
9055         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
9056         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
9057
9058 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
9059
9060         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
9061         (-Wmisleading-indentation): New option.
9062         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
9063
9064 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
9065
9066         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
9067         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
9068         (alpha_extract_integer): Ditto.
9069         (alpha_legitimate_constant_p): Ditto.
9070         (alpha_split_tmode_pair): Ditto.
9071         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
9072         (alpha_expand_mov): Ditto.
9073         (print_operand): Remove handling of 'H' modifier.
9074         <case 'm'>: Remove CONST_DOUBLE handling.
9075         (summarize_insn): Handle CONST_WIDE_INT.
9076         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
9077         (anddi3): Ditto.
9078         (movti): Handle CONST_WIDE_INT.
9079         * config/alpha/constraints.md ('H'): Remove constraint definition.
9080         ('G'): Do not match MODE_FLOAT class.
9081         * config/alpha/predicates.md (const0_operand): Also match
9082         const_wide_int.
9083         (non_add_const_operand): Ditto.
9084         (non_zero_const_operand): Ditto.
9085         (some_operand): Ditto.
9086         (input_operand): Ditto.  Handle CONST_WIDE_INT.
9087         (and_operand): Do not match const_double.
9088         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
9089
9090 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
9091
9092         PR target/65697
9093         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
9094         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
9095         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
9096         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
9097         is_mm_seq_cst, is_mm_sync): New accessor functions.
9098         * builtins.c (expand_builtin_sync_operation,
9099         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
9100         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
9101         (get_memmodel,  expand_builtin_atomic_compare_exchange,
9102         expand_builtin_atomic_load, expand_builtin_atomic_store,
9103         expand_builtin_atomic_clear): Use new accessor routines.
9104         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
9105         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
9106         (maybe_emit_sync_lock_test_and_set): Use new accessors and
9107         MEMMODEL_SYNC_ACQUIRE.
9108         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
9109         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
9110         expand_atomic_store): Use new accessors.
9111         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
9112         * tsan.c (instrument_builtin_call): Update check for memory model beyond
9113         final enum to use MEMMODEL_LAST.
9114         * c-family/c-common.c: Use new accessor for memmodel_base.
9115         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
9116         accessors.
9117         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
9118         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
9119         mem_thread_fence, *dmb): Likewise.
9120         * config/alpha/alpha.c (alpha_split_compare_and_swap,
9121         alpha_split_compare_and_swap_12): Likewise.
9122         * config/arm/arm.c (arm_expand_compare_and_swap,
9123         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
9124         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
9125         atomic_loaddi): Likewise.
9126         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
9127         Likewise.
9128         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
9129         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
9130         use new accessors.
9131         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
9132         atomic_store<mode>, atomic_compare_and_swap<mode>,
9133         atomic_exchange<mode>): Use new accessors.
9134         * config/mips/mips.c (mips_process_sync_loop): Likewise.
9135         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
9136         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
9137         rs6000_post_atomic_barrier): Add new cases.
9138         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
9139         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
9140         (atomic_load<mode>): Add new cases and use new accessors.
9141         (store_quadpti): Add new cases.
9142         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
9143         accessors.
9144         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
9145         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
9146         model, not 8.
9147
9148 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
9149
9150         * ipa-devirt.c (type_with_linkage_p): New function.
9151         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
9152         type has linkage.
9153         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
9154         (can_be_name_hashed_p): Simplify.
9155         (hash_odr_name): Check that type has linkage before checking if it is
9156         anonymous.
9157         (types_same_for_odr): Likewise.
9158         (odr_name_hasher::equal): Likewise.
9159         (odr_subtypes_equivalent_p): Likewise.
9160         (warn_types_mismatch): Likewise.
9161         (get_odr_type): Likewise.
9162         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
9163         * ipa-utils.h (odr_type_p): Move offline.
9164         * tree.c (need_assembler_name_p): Fix handling of types
9165         without linkages.
9166         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
9167
9168 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
9169
9170         * timevar.c (timevar_enable): Delete in favor of...
9171         (g_timer): New global.
9172         (struct timevar_def): Move to timevar.h inside class timer.
9173         (struct timevar_stack_def): Likewise.
9174         (timevars): Delete global in favor of field "m_timevars" within
9175         class timer in timevar.h
9176         (stack): Likewise, in favor of field "m_stack".
9177         (unused_stack_instances): Likewise, in favor of field
9178         "m_unused_stack_instances".
9179         (start_time): Likewise, in favor of field "m_start_time".
9180         (get_time): Eliminate check for timevar_enable.
9181         (timer::timer): New function, built from part of timevar_init.
9182         (timevar_init): Rewrite idempotency test from using
9183         "timevar_enable" bool to using dynamic allocation of "g_timer".
9184         Move rest of implementation into timer's constructor.
9185         (timevar_push_1): Rename to...
9186         (timer::push): ...this, adding "m_" prefixes to variables that
9187         are now fields of timer.
9188         (timevar_pop_1): Likewise, rename to...
9189         (timer::pop): ...this, and add "m_" prefixes.
9190         (timevar_start): Replace test for "timevar_enable" with one for
9191         "g_timer", and move bulk of implementation to...
9192         (timer::start): ...here, adding "m_" prefixes.
9193         (timevar_stop): Likewise, from here...
9194         (timer::stop): ...to here.
9195         (timevar_cond_start): Likewise, from here...
9196         (timer::cond_start): ...to here.
9197         (timevar_cond_stop): Likewise, from here...
9198         (timer::cond_stop): ...to here.
9199         (validate_phases): Rename to...
9200         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
9201         locals "total" and "tv" const.
9202         (timevar_print): Rename to...
9203         (timer::print): ...this, and add "m_" prefixes.  Make locals
9204         "total" and "tv" const.  Eliminate test for timevar_enable.
9205         * timevar.h (timevar_enable): Eliminate.
9206         (g_timer): New declaration.
9207         (timevar_push_1): Eliminate.
9208         (timevar_pop_1): Eliminate.
9209         (timevar_print): Eliminate.
9210         (class timer): New class.
9211         (timevar_push): Rewrite to use g_timer.
9212         (timevar_pop): Likewise.
9213         * toplev.c (toplev::~toplev): Likewise.
9214
9215 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
9216
9217         * arm-protos.h (arm_sched_autopref): Delete.
9218         (tune_params): Re-organize, use enums for flag values.
9219         (FUSE_OPS): New macro.
9220         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
9221         (ARM_PREFETCH_BENEFICIAL): Likewise.
9222         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
9223         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9224         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
9225         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
9226         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
9227         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
9228         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
9229         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
9230         format.
9231         (arm_option_override, thumb2_reorg, arm_print_tune_info)
9232         (aarch_macro_fusion_pair_p): Update uses of current_tune.
9233         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
9234
9235 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
9236
9237         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
9238         "break".
9239
9240 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
9241             Sandra Loosemore <sandra@codesourcery.com>
9242
9243         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
9244         value.
9245         (REG_CLASS_NAMES): Add "IJMP_REGS".
9246         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
9247         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
9248         use new "c" register constraint.
9249         * config/nios2/constraint.md (c): New register constraint
9250         corresponding to IJMP_REGS.
9251
9252 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
9253
9254         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
9255         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
9256         define_splits): Delete, revamp, transmogrify into ...
9257         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
9258         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
9259         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
9260         New.
9261
9262 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
9263
9264         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
9265         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
9266
9267 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
9268
9269         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
9270         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
9271         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
9272         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
9273         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
9274         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
9275         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
9276         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
9277         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
9278         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
9279         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
9280         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
9281         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
9282         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
9283         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
9284         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
9285         and 30 corresponding splitters): Delete.
9286
9287 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
9288
9289         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
9290         zero_extract.
9291
9292 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
9293
9294         * combine.c (recog_for_combine_1): New function, factored out
9295         from recog_for_combine.
9296         (change_zero_ext): New function.
9297         (recog_for_combine): If recog fails, try again with the pattern
9298         modified by change_zero_ext; if that still fails, restore the
9299         pattern.
9300
9301 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
9302
9303         * combine.c (get_undo_marker): New function.
9304         (undo_to_marker): New function, largely factored out from ...
9305         (undo_all): ... this.  Adjust.
9306
9307 2015-05-12  Richard Biener  <rguenther@suse.de>
9308
9309         PR tree-optimization/66101
9310         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
9311         fixup if we turn a loop exit edge to a fallthru edge.
9312
9313 2015-05-12  Richard Biener  <rguenther@suse.de>
9314
9315         PR tree-optimization/37021
9316         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
9317         (SLP_TREE_TWO_OPERATORS): New define.
9318         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
9319         SLP_TREE_TWO_OPERATORS.
9320         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
9321         SLP node.
9322         (vect_build_slp_tree): Adjust.
9323         (vect_analyze_slp_cost_1): Likewise.
9324         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
9325         emitting two vector stmts and mixing the results.
9326
9327 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9328
9329         * call.c (print_z_candidates): Remove dead code.
9330
9331 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9332
9333         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
9334         and zEC12_simple_fp.
9335         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
9336         to 1.
9337
9338 2015-05-12  Tom de Vries  <tom@codesourcery.com>
9339
9340         PR tree-optimization/66010
9341         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
9342         ifn_va_arg.
9343         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
9344         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
9345         va_lists are passed, and remove corresponding handling.
9346         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
9347         do_deref argument to ifn_va_arg.
9348         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
9349         ifn_va_arg.
9350
9351 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9352
9353         PR target/65955
9354         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
9355         REG before taking its REGNO.
9356
9357 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9358
9359         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
9360         rsp->sign_bit_copies and rsp->nonzero_bits into ...
9361         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
9362         present to get more accurate information about the number of sign bit
9363         copies and non zero bits.
9364
9365 2015-05-12  Richard Biener  <rguenther@suse.de>
9366
9367         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
9368         do not allow unrolling.
9369
9370 2015-05-11  Richard Henderson  <rth@redhat.com>
9371
9372         * config/i386/i386-modes.def (CCP): New.
9373         * config/i386/i386.c (put_condition_code): Handle it.
9374         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
9375
9376 2015-05-11  Richard Henderson  <rth@redhat.com>
9377
9378         * target.def (md_asm_clobbers): Replace with...
9379         (md_asm_adjust): this.
9380         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
9381         (TARGET_MD_ASM_ADJUST): New.
9382         * tm.texi: Rebuild.
9383         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
9384         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
9385         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
9386
9387         * cfgexpand.c (check_operand_nalternatives): Accept vector of
9388         constraints instead of lists of outputs and inputs.
9389         (expand_asm_stmt): Save and restore input_location around the
9390         body of the function.  Move asm data into vectors instead of
9391         building tree lists.  Generate cleanup sequences as needed,
9392         rather than waiting til the end.  Use new md_asm_adjust hook.
9393
9394         * config/vxworks.c: Include vec.h before target.h.
9395         * gimple.c: Likewise.
9396         * incpath.c: Likewise.
9397         * mode-switching.c: Likewise.
9398
9399         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
9400         (cris_md_asm_adjust): this.
9401         (TARGET_MD_ASM_CLOBBERS): Remove.
9402         (TARGET_MD_ASM_ADJUST): New.
9403         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
9404         (ix86_md_asm_adjust): this.
9405         (TARGET_MD_ASM_CLOBBERS): Remove.
9406         (TARGET_MD_ASM_ADJUST): New.
9407         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
9408         (mn10300_md_asm_adjust): this.
9409         (TARGET_MD_ASM_CLOBBERS): Remove.
9410         (TARGET_MD_ASM_ADJUST): New.
9411         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
9412         (rs6000_md_asm_adjust): this.
9413         (TARGET_MD_ASM_CLOBBERS): Remove.
9414         (TARGET_MD_ASM_ADJUST): New.
9415         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
9416         (visium_md_asm_adjust): this.
9417         (TARGET_MD_ASM_CLOBBERS): Remove.
9418         (TARGET_MD_ASM_ADJUST): New.
9419
9420 2015-05-11  Richard Henderson  <rth@redhat.com>
9421
9422         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
9423         if noutputs is zero.
9424         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
9425
9426         * cfgexpand.c (expand_asm_operands): Merge into...
9427         (expand_asm_stmt): ... here.
9428
9429         * cfgexpand.c (expand_asm_operands): Don't call
9430         resolve_asm_operand_names.
9431         * stmt.c (resolve_asm_operand_names): Clarify block comment.
9432
9433 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
9434
9435         * dwarf2out.c (gen_member_die): Sanity check that we access
9436         TYPE_MAIN_VARIANT for TYPE_METHODS.
9437         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
9438         checking TYPE_METHODS.
9439         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
9440         if non-null.
9441         (build_distinct_type_copy): Clear TYPE_METHODS.
9442         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
9443         (verify_type): Allow TYPE_METHODS to be error_mark_node.
9444         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
9445
9446 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
9447
9448         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
9449         (emit_pattern_before_setloc): Likewise.
9450
9451 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
9452
9453         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
9454         for define_peephole2s.
9455         (get_peephole2_pattern): New function.
9456         (main): Use it.  Call validate_pattern.
9457
9458 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9459
9460         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
9461         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
9462         (Last callee saved reg is different for AVR_TINY architecture)
9463
9464 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
9465
9466         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
9467         when looking for memory references.
9468
9469 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
9470
9471         PR target/65753
9472         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
9473         via function pointers.
9474
9475 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
9476
9477         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
9478         indirect call by forcing address into a pseudo with -fno-plt.
9479         * common.opt (flag_plt): New option.
9480         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
9481         ([-fno-plt]): Document.
9482
9483 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
9484
9485         PR bootstrap/66105
9486         * config/rs6000/option-defaults.h: Add space between string literal
9487         and macro name.
9488
9489 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9490
9491         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
9492         accross ARM targets.
9493
9494 2015-05-11  Christian Bruel  <christian.bruel@st.com>
9495
9496         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
9497         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
9498
9499 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
9500
9501         PR rtl-optimization/66076
9502         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
9503         Don't grow the heap array if it is already big enough from a
9504         previous iteration.
9505
9506 2015-05-11  Christian Bruel  <christian.bruel@st.com>
9507
9508         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
9509         (is_called_in_ARM_mode): Remove.
9510         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
9511         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
9512         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
9513          arm_declare_function_name.
9514
9515 2015-05-11  Christian Bruel  <christian.bruel@st.com>
9516
9517         * config/arm/arm.c (arm_option_override): Reoganized and split into :
9518         (arm_option_params_internal); New function.
9519         (arm_option_check_internal): New function.
9520         (arm_option_override_internal): New function.
9521         (thumb_code, thumb1_code): Remove.
9522         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
9523         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
9524         (thumb_code, thumb1_code): Remove.
9525         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
9526
9527 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
9528
9529         * config/alpha/alpha.c (alpha_emit_set_const_1)
9530         (alpha_emit_set_long_const, alpha_extract_integer)
9531         (alpha_legitimate_constant_p, alpha_split_const_mov)
9532         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
9533         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
9534         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
9535         HOST_WIDE_INT_1U.
9536         * config/alpha/predicates.md (mode_mask_operand): Do not match
9537         const_double RTX.
9538         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
9539         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
9540         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
9541         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
9542         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
9543
9544 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
9545
9546         PR target/65780
9547         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
9548         default_binds_local_p_2.
9549         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
9550         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
9551
9552 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
9553
9554         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
9555
9556 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
9557
9558         Patch by Richard Biener
9559         * coverage.c (coverage_obj_init): Delay building of type variant
9560         until the type is finished.
9561
9562 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
9563
9564         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
9565         mismatch between C and C++ type; compoare correctly ARG_TYPES
9566         for non-prototypes and output correctly parameter index for METHOD_TYPE.
9567         (odr_types_equivalent_p): Fix wording of warning about attributes;
9568         it is OK to match prototype and non-prototype.
9569
9570 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
9571
9572         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
9573         TYPE_ARG_TYPES list.
9574         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
9575         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
9576
9577 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
9578
9579         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
9580         * tree.h (is_lang_specific): Constify.
9581
9582 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
9583
9584         PR tree-optimization/64454
9585         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
9586         Rewrite.
9587
9588 2015-05-08  Jason Merrill  <jason@redhat.com>
9589
9590         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
9591         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
9592         config/darwin.h, config/darwin9.h, config/elfos.h,
9593         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
9594         config/microblaze/microblaze.h, config/mips/mips.h,
9595         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
9596         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
9597         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
9598         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
9599         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
9600         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
9601         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
9602         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
9603         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
9604         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
9605         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
9606         between string literal and macro name.
9607
9608 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9609
9610         * jump.c: Change argument types to rtx_insn *.
9611         * rtl.h: Adjust.
9612
9613 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9614
9615         * lra-constraints.c: Change argument type to rtx_insn *.
9616
9617 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9618
9619         * df-problems.c: Change argument type to rtx_insn *.
9620
9621 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9622
9623         * combine.c: Change argument type to rtx_insn *.
9624
9625 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9626
9627         * rtl.h: Adjust.
9628         * rtlanal.c: Change argument type to rtx_insn *.
9629
9630 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9631
9632         * sched-deps.c: Change argument types to rtx_insn *.
9633         * sched-int.h: Adjust.
9634
9635 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9636
9637         * dwarf2cfi.c: Change argument type to rtx_insn *.
9638
9639 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9640
9641         * ira.c (decrease_live_ranges_number): Changetype of local
9642         variable to rtx_insn *.
9643         * recog.c: Change argument types to rtx_insn *.
9644         * recog.h: Adjust.
9645
9646 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9647
9648         * reorg.c: Change argument types to rtx_insn *.
9649
9650 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9651
9652         * ira-color.c: Change argument types to rtx_insn *.
9653         * lra-eliminations.c: Likewise.
9654         * ira.h: Adjust.
9655
9656 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9657
9658         * gcse.c: Change argument types to rtx_insn *.
9659
9660 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9661
9662         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
9663
9664 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9665
9666         * emit-rtl.c (emit_debug_insn_before): Change argument type to
9667         rtx_insn *.
9668         * rtl.h: Adjust.
9669
9670 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9671
9672         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
9673         * rtl.h: Adjust.
9674
9675 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9676
9677         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
9678         * rtl.h: Adjust.
9679
9680 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9681
9682         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
9683         * rtl.h: Adjust.
9684
9685 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9686
9687         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
9688         * rtl.h: Adjust.
9689
9690 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9691
9692         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
9693         to rtx_insn *.
9694         * rtl.h: Adjust.
9695
9696 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9697
9698         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
9699         to rtx_insn *.
9700         * rtl.h: Likewise.
9701
9702 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9703
9704         * except.c (can_nonlocal_goto): Change type of argument to
9705         rtx_insn *.
9706         * rtl.h: Adjust.
9707
9708 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9709
9710         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
9711         * rtl.h: Adjust.
9712
9713 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9714
9715         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
9716         * cfgrtl.c (can_delete_label_p): Adjust.
9717         * rtl.h: likewise.
9718
9719 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9720
9721         * reorg.c (stop_search_p): Change argument to rtx_insn *.
9722
9723 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9724
9725         * except.c (make_reg_eh_region_note): Change argument to
9726         rtx_insn *.
9727         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
9728         * except.h: Adjust.
9729
9730 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9731
9732         * mode-switching.c (commit_mode_sets): Change type of local
9733         variable from rtx to rtx_insn *.
9734
9735 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
9736
9737         * doc/install.texi (--enable-languages): Add missing jit and lto info.
9738         Add ^ to grep command.
9739         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
9740         arg to last gimple_simplify declaration.  Add missing gimple_build
9741         declaration for built-in function case with four tree args.
9742
9743 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
9744             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9745
9746         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
9747         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
9748         (GNU_USER_DYNAMIC_LINKERN32): Update.
9749
9750 2015-05-08  Richard Biener  <rguenther@suse.de>
9751
9752         PR tree-optimization/66036
9753         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9754         Handle strided group loads.
9755         (vect_verify_datarefs_alignment): Likewise.
9756         (vect_enhance_data_refs_alignment): Likewise.
9757         (vect_analyze_group_access): Likewise.
9758         (vect_analyze_data_ref_access): Likewise.
9759         (vect_analyze_data_ref_accesses): Likewise.
9760         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
9761         (vectorizable_load): Likewise.
9762
9763 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
9764
9765         * config/rs6000/rs6000.md: Require operand inequality in one
9766         of the peepholes.
9767
9768 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
9769             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9770
9771         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
9772         from (set ...).
9773         * config/rx/rx.md (movdi, movdf): Likewise.
9774         Likewise for define_peephole2s.
9775
9776 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
9777
9778         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
9779         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
9780         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
9781         vtst_u64): Rewrite using gcc vector extensions.
9782
9783 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
9784
9785         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
9786         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
9787
9788 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
9789
9790         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
9791
9792 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9793
9794         * config/glibc-stdint.h (OPTION_MUSL): Define.
9795         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
9796         Change the definition based on OPTION_MUSL for 64 bit targets.
9797         * config/linux.h (OPTION_MUSL): Redefine.
9798         * config/alpha/linux.h (OPTION_MUSL): Redefine.
9799         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
9800         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
9801
9802 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
9803             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9804
9805         * config.gcc (LIBC_MUSL): New tm_defines macro.
9806         * config/linux.h (OPTION_MUSL): Define.
9807         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
9808         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
9809         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9810         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9811         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9812         * config/linux.opt (mmusl): New option.
9813         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
9814         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9815         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9816         * configure: Regenerate.
9817
9818 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9819             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9820
9821         PR target/48904
9822         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
9823         * config/i386/knetbsd-gnu64.h: New file.
9824
9825 2015-05-08  Marek Polacek  <polacek@redhat.com>
9826
9827         PR c/64918
9828         * doc/invoke.texi: Document -Woverride-init-side-effects.
9829
9830 2015-05-07  Marek Polacek  <polacek@redhat.com>
9831
9832         PR c/65179
9833         * doc/invoke.texi: Document -Wshift-negative-value.
9834
9835 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
9836
9837         * gcov-tool.c (do_merge): Refactore to remove int ret.
9838         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
9839         !type == FUNC to type != FUNC.
9840         * reload.h (struct target_reload): Changee to type of
9841         x_spill_indirect_levels from bool to unsigned char.
9842
9843 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
9844
9845         * rtl.h (always_void_p): New function.
9846         * gengenrtl.c (always_void_p): Likewise.
9847         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
9848         with code foo are always VOIDmode.
9849         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
9850         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
9851         compare-elim.c, config/aarch64/aarch64.c,
9852         config/aarch64/aarch64.md, config/alpha/alpha.c,
9853         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
9854         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
9855         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
9856         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9857         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
9858         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
9859         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
9860         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
9861         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
9862         config/ia64/vect.md, config/iq2000/iq2000.c,
9863         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
9864         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
9865         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
9866         config/mep/mep.c, config/microblaze/microblaze.c,
9867         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
9868         config/mn10300/mn10300.c, config/msp430/msp430.c,
9869         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
9870         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
9871         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
9872         config/rs6000/altivec.md, config/rs6000/rs6000.c,
9873         config/rs6000/rs6000.md, config/rs6000/vector.md,
9874         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
9875         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
9876         config/sh/sh.md, config/sh/sh_treg_combine.cc,
9877         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
9878         config/spu/spu.md, config/stormy16/stormy16.c,
9879         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
9880         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
9881         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
9882         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
9883         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
9884         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
9885         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
9886         var-tracking.c: Update calls accordingly.
9887
9888 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
9889
9890         PR middle-end/192
9891         PR middle-end/54303
9892         * varasm.c (function_mergeable_rodata_prefix): New function.
9893         (mergeable_string_section): Use it.
9894         (mergeable_constant_section): Use it.
9895
9896 2015-05-07  Jeff Law  <law@redhat.com>
9897
9898         PR target/39726
9899         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
9900         simplifier to narrow arithmetic.
9901         * generic-match-head.c: (types_match, single_use): New functions.
9902         * gimple-match-head.c: (types_match, single_use): New functions.
9903
9904 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9905
9906         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
9907         rtx type.
9908
9909 2015-05-07  Richard Biener  <rguenther@suse.de>
9910
9911         PR tree-optimization/66002
9912         * passes.def: Schedule another pass_merge_phi after ifcombine, right
9913         before phiopt.
9914
9915 2015-05-07  Marek Polacek  <polacek@redhat.com>
9916             Martin Uecker  <uecker@eecs.berkeley.edu>
9917
9918         * doc/invoke.texi: Document -fsanitize=bounds-strict.
9919         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
9920         into SANITIZE_NONDEFAULT.
9921         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
9922
9923 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
9924
9925         PR target/66015
9926         * config/alpha/alpha.c (alpha_override_options_after_change): New.
9927         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
9928         (alpha_override_options): Move align_loops, align_jumps and
9929         align_functions handling into alpha_override_options_after_change.
9930
9931 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
9932             Chris Jones  <chrisj@nvidia.com>
9933             Joshua Conner  <jconner@nvidia.com>
9934
9935         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
9936         linking of crtfastmath.o.
9937         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
9938
9939 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
9940
9941         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
9942         (cstore<mode>4_unsigned_imm): New expander.
9943         (cstore<mode>4): Remove empty constraint strings.  Use the new
9944         expanders.
9945
9946 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
9947
9948         PR target/64208
9949         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
9950         alternatives.
9951
9952 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9953
9954         * config/aarch64/geniterators.sh: Use standard BRE in sed.
9955
9956 2015-05-06  Alan Modra  <amodra@gmail.com>
9957
9958         PR target/66033
9959         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
9960         (UNSPEC_NOP): Define.
9961         (reload_vsx_from_gpr<mode>): Add missing DONE.
9962         (reload_gpr_from_vsx<mode>): Likewise.
9963         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
9964         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
9965
9966 2015-05-06  Christian Bruel  <christian.bruel@st.com>
9967
9968         PR target/66015
9969         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
9970         align_jumps, align_functions into aarch64_override_options_after_change.
9971
9972 2015-05-06  Richard Biener  <rguenther@suse.de>
9973
9974         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
9975         vect_transform_slp_perm_load to check if we support a permutation
9976         for basic-block vectorization.
9977
9978 2015-05-06  Nick Clifton  <nickc@redhat.com>
9979
9980         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
9981         used, even if it is not being used as a frame pointer.
9982
9983 2015-05-05  Jason Merrill  <jason@redhat.com>
9984
9985         * dwarf2out.c (gen_member_die): Don't emit anything for an
9986         anonymous class constructor.
9987
9988 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
9989
9990         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
9991         that it reflects the block structure.
9992         (afdo_propagate_edge): Likewise.
9993         (afdo_calculate_branch_prob): Likewise.
9994         (afdo_annotate_cfg): Likewise.
9995         * cfgcleanup.c (equal_different_set_p): Likewise.
9996         (try_crossjump_to_edge): Likewise.
9997         * cgraph.c (cgraph_node::verify_node): Likewise.
9998         * cgraphunit.c (expand_all_functions): Likewise.
9999         * config/i386/i386.c (ix86_expand_copysign): Likewise.
10000         (exact_dependency_1): Likewise.
10001         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
10002         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
10003         * gensupport.c (process_define_subst): Likewise.
10004         * lto-wrapper.c (merge_and_complain): Likewise.
10005         * tree-if-conv.c (if_convertible_bb_p): Likewise.
10006         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
10007         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
10008         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
10009         * tree-vect-loop.c (vectorizable_reduction): Likewise.
10010         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
10011         * tree-vect-stmts.c (vectorizable_shift): Likewise.
10012         * tree-vrp.c (vrp_finalize): Likewise.
10013         * tree.c (variably_modified_type_p): Likewise.
10014
10015 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
10016
10017         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
10018         on darwin12 and later.
10019         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
10020         file to pass -rdynamic on darwin12 and later.
10021         * config/darwin.opt (rdynamic): Add.
10022
10023 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
10024
10025         * doc/extend.texi (C Extensions): Update menu for moved Variable
10026         Attributes and Type Attributes sections.
10027
10028 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
10029
10030         PR target/65990
10031         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
10032         if rep_8byte stringop strategy was specified for 32-bit target.
10033
10034 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
10035
10036         PR target/65915
10037         * config/i386/i386.md (vector convert to float spltiter): Check for
10038         xmm16+, when splitting scalar float conversion.
10039         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
10040
10041 2015-05-05  Nick Clifton  <nickc@redhat.com>
10042
10043         * config/msp430/msp430-opts.h (enum msp430_regions): New.
10044         * config/msp430/msp430.c (msp430_override_options): Complain if
10045         -mcode-region or -mdata-region is used on a non MSP430X.
10046         (msp430_section_attr): New function.  Checks lower, upper and
10047         either attributes.
10048         (msp430_attribute_table): Add lower, upper and either.
10049         (gen_prefix): New function.  Generates a prefix for a section
10050         name.
10051         (msp430_select_section): New function - handles the choice of
10052         section for an object.  Takes into account memory region
10053         attributes and options.
10054         (msp430_function_section): Use gen_prefix.
10055         (TARGET_SECTION_TYPE_FLAGS): Define.
10056         (msp430_section_type_flags): New function.
10057         (TARGET_ASM_UNIQUE_SECTION): Define.
10058         (msp430_unique_section): New function.
10059         (msp430_output_aligned_decl_common): New function.
10060         (msp430_do_not_relax_short_jumps): New function.
10061         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
10062         Define.
10063         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
10064         * config/msp430/msp430-protos.h
10065         (msp430_do_not_relax_short_jumps): New prototype.
10066         (msp430_output_aligned_decl_common): New prototype.
10067         * config/msp430/msp430.md (length): New attribute.
10068         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
10069         then use a long code sequence for short jumps.
10070         * config/msp430/msp430.opt (mcode-region): New.
10071         (mdata-region): New.
10072         * doc/invoke.texi: Document new options.
10073         * doc/extend.texi: Document new attributes.
10074
10075 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
10076
10077         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
10078         (tune_params): Add field branch_costs.
10079         (aarch64_branch_cost): Declare.
10080         * gcc/config/aarch64.c (generic_branch_cost): New.
10081         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
10082         (cortexa53_tunings): Likewise.
10083         (cortexa57_tunings): Likewise.
10084         (thunderx_tunings): Likewise.
10085         (xgene1_tunings): Likewise.
10086         (aarch64_branch_cost): Define.
10087         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
10088
10089 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
10090
10091         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
10092         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
10093         * config/i386/i386.md: Ditto.
10094         * config/i386/winnt.c: Ditto.
10095
10096 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
10097
10098         * doc/extend.texi (__atomic Builtins): Move implementation details
10099         to the end of the description, rewrite opening paragraphs, state
10100         difference with __sync builtins, state C11/C++11 assumptions,
10101         weaken itemized descriptions, add explanation of memory model
10102         behaviour, expand description of compare-exchange, simplify text.
10103
10104 2015-05-05  Renlin Li  <renlin.li@arm.com>
10105
10106         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
10107
10108 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
10109
10110         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
10111         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
10112         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
10113         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
10114         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
10115         * configure: Regenerate.
10116         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
10117         * doc/install.texi (aarch64*-*-*): Document new
10118         --enable-fix-cortex-a53-843419 option.
10119         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
10120         and -mno-fix-cortex-a53-843419 options.
10121
10122 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
10123
10124         PR target/65871
10125         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
10126
10127 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
10128
10129         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
10130         fix overactive TYPE_MIN_VALUE check and add FIXME for type
10131         compatibility problems.
10132
10133 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
10134
10135         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
10136         constraints.
10137         (cbranchsi4_reg): New.
10138         * config/microblaze/microblaze.c
10139         (microblaze_expand_conditional_branch_reg): New.
10140         * config/microblaze/microblaze-protos.h
10141         (microblaze_expand_conditional_branch_reg): New prototype.
10142
10143 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
10144
10145         * config/microblaze/microblaze.md (peephole2): New.
10146
10147 2015-05-04  Jeff Law  <law@redhat.com>
10148
10149         Revert:
10150         2015-05-04  Jeff Law  <law@redhat.com>
10151
10152         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
10153         simplifier to narrow arithmetic.
10154         * generic-match-head.c: (types_match, single_use): New functions.
10155         * gimple-match-head.c: (types_match, single_use): New functions.
10156
10157 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
10158
10159         PR target/65987
10160         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
10161         (split_branches): Likewise.
10162
10163 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
10164
10165         * common.opt (fdelete-null-pointer-checks): Init to -1.
10166         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
10167         override flag_delete_null_pointer_checks default.
10168         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
10169         behavior re address zero.  Better document target-specific behavior.
10170         (-fisolate-errneous-paths-dereference): Mention relationship to
10171         -fdelete-null-pointer-checks.
10172
10173 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
10174
10175         PR tree-optimization/65984
10176         * ubsan.c: Include tree-cfg.h.
10177         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
10178         stmt_could_throw_p test, rename can_throw variable to ends_bb.
10179
10180 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
10181
10182         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
10183         to CONST_DOUBLE_P predicate.
10184         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
10185         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
10186         allow only operands that satisfy standard_sse_constant_p predicate.
10187         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
10188         to CONST_DOUBLE_P predicate.
10189
10190 2015-05-04  Jeff Law  <law@redhat.com>
10191
10192         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
10193         simplifier to narrow arithmetic.
10194         * generic-match-head.c: (types_match, single_use): New functions.
10195         * gimple-match-head.c: (types_match, single_use): New functions.
10196
10197 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
10198
10199         * config/arm/arm.c: Restore bootstrap.
10200
10201 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
10202
10203         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
10204         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
10205         as CONST_WIDE_INT, not CONST_DOUBLE.
10206         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
10207         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
10208         (ix86_find_base_term): Do not check for CONST_DOUBLE.
10209         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
10210         (ix86_build_signbit_mask): Rewrite using wide ints.
10211         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
10212         (ix86_rtx_costs): Handle CONST_WIDE_INT.
10213         (find_constant): Ditto.
10214         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
10215         using gen_int_mode.
10216         * config/i386/predicates.md (x86_64_immediate_operand)
10217         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
10218         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
10219         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
10220         (const0_operand): Also match const_wide_int.
10221         (constm1_operand): Ditto.
10222         (const1_operand): Ditto.
10223
10224 2015-05-04  Richard Biener  <rguenther@suse.de>
10225
10226         PR tree-optimization/65965
10227         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
10228         store groups at gaps.
10229
10230 2015-05-04  Richard Biener  <rguenther@suse.de>
10231
10232         PR tree-optimization/65935
10233         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
10234         then make sure to apply that swapping to the IL.
10235
10236 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
10237
10238         * Makefile.in (PATCHLEVEL_c): New variable.
10239         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
10240         expand the same way as if DEVPHASE_c was non-empty.
10241
10242 2015-05-04  Kai Tietz  <ktietz@redhat.com>
10243
10244         PR target/65559
10245         * lto-wrapper.c (run_gcc): Open filename
10246         in binary-mode.
10247
10248 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
10249
10250         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
10251         sections up in file, to immediately after the Function Attributes
10252         section.
10253
10254 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
10255
10256         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
10257
10258 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10259
10260         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
10261         (insert_partition_copy_on_edge): Adjust.
10262         (insert_rtx_to_part_on_edge): Likewise.
10263         (insert_part_to_rtx_on_edge): Likewise.
10264
10265 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10266
10267         * function.c (set_return_jump_label): Change type of argument to
10268         rtx_insn *.
10269         * function.h (set_return_jump_label): Adjust.
10270
10271 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10272
10273         * reload.h (struct reg_equivs_t): Change type of init to
10274         rtx_insn *.
10275         * ira.c (fix_reg_equiv_init): Adjust.
10276         * reload1.c (eliminate_regs_1): Likewise.
10277         (init_eliminable_invariants): Likewise.
10278
10279 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10280
10281         * cselib.c (fp_setter_insn): Take a rtx_insn *.
10282         * cselib.h (fp_setter_insn): Adjust.
10283
10284 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10285
10286         * recog.c (struct validate_replace_src_data): Change type of
10287         insn field to rtx_insn *.
10288         (validate_replace_src_group): Change type of argument to rtx_insn *.
10289         * recog.h (validate_replace_src_group): Adjust.
10290
10291 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10292
10293         * haifa-sched.c: Change the type of some variables to rtx_insn *.
10294         * sched-deps.c: Likewise.
10295         * sched-int.h: Likewise.
10296         * sched-rgn.c: Likewise.
10297         * sel-sched.c: Likewise.
10298
10299 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10300
10301         to rtx_insn *.
10302         * config/i386/i386.c: Change the type of some arguments to
10303         rtx_insn *.
10304         * config/arm/arm.c: Likewise.
10305
10306 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10307
10308         * lra-constraints.c: Change type of some arguments to rtx_insn *.
10309
10310 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10311
10312         * regcprop.c (kill_autoinc_value): Change type of argument to
10313         rtx_insn *.
10314
10315 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10316
10317         * genrecog.c (print_subroutine): Adjust.
10318         * recog.c (get_bool_attr_mask_uncached): Likewise.
10319         * recog.h (struct recog_data_d): Change the type of insn to
10320         rtx_insn *.
10321
10322 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10323
10324         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
10325
10326 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10327
10328         * df-problems.c (df_set_note): Change type of argument to
10329         rtx_insn *.
10330
10331 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10332
10333         * builtins.c (expand_builtin_trap): Change type of local
10334         variable to rtx_insn *.
10335         (add_sched_insns_for_speculation): Likewise.
10336         (ix86_emit_save_regs): Likewise.
10337         (get_scratch_register_on_entry): Likewise.
10338         (ix86_emit_restore_reg_using_pop): Likewise.
10339         (ix86_emit_leave): Likewise.
10340         (ix86_emit_restore_regs_using_mov): Likewise.
10341         (ix86_expand_epilogue): Likewise.
10342         Likewise.
10343         (rl78_alloc_physical_registers_umul): Likewise.
10344         * cselib.c (discard_useless_locs): Likewise.
10345         (cselib_invalidate_regno): Likewise.
10346         (cselib_invalidate_mem): Likewise.
10347         * function.c (expand_function_start): Likewise.
10348         (emit_use_return_register_into_block): Likewise.
10349         * gcse.c: Likewise.
10350         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
10351         * ifcvt.c (noce_get_alt_condition): Likewise.
10352         * loop-doloop.c (doloop_condition_get): Likewise.
10353         * lra-constraints.c (inherit_in_ebb): Likewise.
10354         * modulo-sched.c (sms_schedule_by_order): Likewise.
10355         * recog.c (next_insn_tests_no_inequality): Likewise.
10356         * reorg.c (emit_delay_sequence): Likewise.
10357         (update_reg_dead_notes): Likewise.
10358         (fix_reg_dead_note): Likewise.
10359         (fill_slots_from_thread): Likewise.
10360         (delete_computation): Likewise.
10361
10362 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
10363
10364         * doc/extend.texi (Variable Attributes): Add menu and proper
10365         @nodes to subsections.  Move Microsoft Windows attributes to
10366         their own subsection.
10367         (Type Attributes): Reorganize introduction to remove duplicate
10368         list of attributes.  Add menu and proper @nodes to subsections.
10369         Alphabetize the main table of common attributes.
10370
10371 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
10372
10373         * match.pd: New simplification patterns.
10374         (x + (x & 1))  -> ((x + 1) & ~1)
10375         (x & ~(x & y)) -> ((x & ~y))
10376         (x | ~(x | y)) -> ((x | ~y))
10377
10378 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10379
10380         * target.def (attribute_table): Mention that struct attribute_spec
10381         is defined in tree-core.h rather than tree.h
10382         * doc/tm.texi: Regenerate.
10383
10384 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
10385
10386         * genrecog.c (test): Rename to rtx_test.  Update rest of file
10387         accordingly.
10388
10389 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10390
10391         PR translation/65959
10392         * params.h (DEFPARAM): Rename msgid to nocmsgid.
10393
10394 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
10395
10396         * gcc/config/aarch64/aarch64-protos.h (tune_params):
10397         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
10398         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
10399         Return value depending on target.
10400         (generic_tunings): Initialize new target settings.
10401         (cortexa53_tunings): Likewise.
10402         (cortexa57_tunings): Likewise.
10403         (thunderx_tunings): Likewise.
10404         (xgene1_tunings): Likewise.
10405
10406 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
10407
10408         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
10409         Make Cortex-A53 shift costs more accurate.
10410
10411 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10412
10413         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
10414         UNSIGNED_FLOAT.
10415
10416 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
10417
10418         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
10419         Calculate cost of op0 and op1 in PLUS and MINUS cases.
10420
10421 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10422
10423         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
10424         Add cost of op0 in the compare-with-fpzero case.
10425
10426 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
10427
10428         * builtins.c (fold_builtin_1): Remove spurious second
10429         semicolon.
10430         * cgraph.h (symtab_node::get_availability): Likewise.
10431         * opts.c (common_handle_option): Remove spurious second semicolon.
10432         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
10433         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
10434
10435 2015-04-30  Caroline Tice  <cmtice@google.com>
10436
10437         PR gcov-profile/65929
10438         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
10439         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
10440         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
10441         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
10442         * doc/tm.texi: Regenerate.
10443         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
10444         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
10445         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
10446         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
10447
10448 2015-04-30  Marek Polacek  <polacek@redhat.com>
10449
10450         * varasm.c (handle_cache_entry): Fix logic.
10451
10452 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10453
10454         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
10455         (*extrsi5_insn_uxtw_alt): Likewise.
10456         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
10457         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
10458         operations.
10459
10460 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10461
10462         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
10463         fabd in ABS case.
10464
10465 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10466
10467         * config/aarch64/aarch64.md
10468         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
10469         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
10470         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
10471         appropriately.  Handle alternative EON form.
10472
10473 2015-04-30  Renlin Li  <renlin.li@arm.com>
10474
10475         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
10476         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
10477
10478 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
10479
10480         PR ipa/65873
10481         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
10482         -fstrict-aliasing boundaries.
10483
10484 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10485
10486         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
10487         and [SU]MNEGL patterns.
10488
10489 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10490
10491         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
10492         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
10493         combined arithmetic-shift ops.  Properly handle all shift and extend
10494         operations that can occur in combination with PLUS/MINUS.
10495         Rename maybe_fma to compound_p.
10496         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
10497         arithmetic and shift operations.
10498
10499 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10500
10501         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
10502         rather than arith_shift cost when costing ADD/MINUS of an
10503         extended value.
10504
10505 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
10506
10507         PR lto/65948
10508         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
10509         to itself.
10510
10511 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
10512
10513         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
10514         are for the same position.
10515
10516 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
10517
10518         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
10519         vectorize_loops.
10520         (vectorize_loops): Use it.
10521
10522 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
10523
10524         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
10525         for aggregate types.
10526         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
10527         type to be non_ODR.
10528         * tree.c (need_assembler_name_p): Compute mangled name for
10529         non-fundamental types and integer types.
10530
10531 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
10532
10533         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
10534         manual swaps.
10535         * expr.c (expand_expr_real_2): Likewise.
10536
10537 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
10538
10539         * tree.c (build_common_builtin_nodes): Do not build
10540         __builtin_alloca_with_align as equivalent of library alloca.
10541
10542 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
10543
10544         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
10545         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
10546         bugus variants.
10547         * tree.c: Include print-tree.h and ipa-utils.h
10548         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
10549         (free_lang_data_in_cgraph): Call verify_type.
10550         (verify_type_variant): New function.
10551         (verify_type): New function.
10552         * tree.h (verify_type): Declare.
10553
10554 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
10555
10556         * config/mips/mips-cpus.def: (mips4): Change default processor
10557         from PROCESSOR_R8000 to PROCESSOR_R10000.
10558
10559 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
10560
10561         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
10562         la/jalr instead of jal.
10563
10564 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
10565
10566         PR target/65871
10567         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
10568         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
10569         (setcc+movzbl peephole2): Check also clobbered reg.
10570         (setcc+andl peephole2): Ditto.
10571
10572 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
10573
10574         PR libgomp/65099
10575         * config/nvptx/mkoffload.c (target_ilp32): New variable.
10576         (main): Set it depending on "-foffload-abi=[...]".
10577         (compile_native, main): Use it to pass "-m32" or "-m64" to the
10578         compiler.
10579
10580 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
10581
10582         PR target/65770
10583         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
10584         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
10585         Flip lane index back at assembly time for bigendian.
10586
10587 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
10588
10589         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
10590         * gimplify.c (gimplify_omp_workshare): Use it.
10591
10592 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
10593
10594         * Makefile.in (build/genrecog.o): Depend on inchash.h.
10595         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
10596         build/inchash.o
10597         * genrecog.c: Rewrite most of the code except for the third page.
10598
10599 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
10600
10601         * inchash.h, inchash.c: Include bconfig.h for build objects.
10602         * Makefile.in (build/inchash.o): New rule.
10603
10604 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
10605
10606         PR target/65924
10607         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
10608         number in type attribute expression.
10609
10610 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
10611
10612         * loop-iv.c (canon_condition): Generalize to all types of integer
10613         constant.
10614
10615 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
10616
10617         * gimple-walk.c: Prune duplicate or unneeded includes.
10618         (walk_gimple_asm): Only call parse_input_constraint or
10619         parse_output_constraint if their findings are used.
10620         Honour parse_input_constraint and parse_output_constraint
10621         result.
10622
10623 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
10624
10625         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
10626
10627 2015-04-29  Tom de Vries  <tom@codesourcery.com>
10628
10629         PR tree-optimization/65893
10630         * passes.def (pass_all_optimizations): Move pass_stdarg to after
10631         pass_dce.
10632
10633 2015-04-29  Richard Biener  <rguenther@suse.de>
10634
10635         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
10636         compute GROUP_SIZE for basic-block SLP.
10637         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
10638         take into account gaps.
10639         (vect_get_mask_element): Properly reject references to previous
10640         vectors.
10641         (vect_transform_slp_perm_load): Likewise.
10642
10643 2015-04-29  Christian Bruel  <christian.bruel@st.com>
10644
10645         PR target/64835
10646         * config/i386/i386.c (ix86_default_align): New function.
10647         (ix86_override_options_after_change): Call ix86_default_align.
10648         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
10649         (ix86_override_options_after_change): New function.
10650
10651 2015-04-28  Jeff Law  <law@redhat.com>
10652
10653         * tree-ssa-dom.c (record_equality); Fix comment typos.
10654
10655 2015-04-28  Tom de Vries  <tom@codesourcery.com>
10656
10657         PR tree-optimization/65887
10658         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
10659
10660 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
10661
10662         * doc/extend.texi (Declaring Attributes of Functions): Split into
10663         subsections by target.  Alphabetize the table of common attributes.
10664         Rewrite some of the introductory text to reflect the new structure.
10665         Update some cross-references to point to the new subsections.
10666         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
10667         duplicate copies in the discussion of function, label, and type
10668         attributes.
10669
10670 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
10671
10672         PR bootstrap/65910
10673         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
10674
10675 2015-04-28  Jason Merrill  <jason@redhat.com>
10676
10677         PR c++/65734
10678         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
10679         (finalize_type_size): Respect TYPE_USER_ALIGN.
10680         (layout_type) [ARRAY_TYPE]: Likewise.
10681
10682 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
10683
10684         * config/arm/arm.md (*arm_movt): Fix type attribute.
10685         (*cmpsi_shiftsi): Likewise.
10686         (*cmpsi_shiftsi_swp): Likewise.
10687         (*movsicc_insn): Likewise.
10688         (*cond_move): Likewise.
10689         (*if_plus_move): Likewise.
10690         (*if_move_plus): Likewise.
10691         (*if_arith_move): Likewise.
10692         (*if_move_arith): Likewise.
10693         (*if_shift_move): Likewise.
10694         (*if_move_shift): Likewise.
10695         (*arm_movtas_ze): Likewise.
10696         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
10697         redundancy and type attribute.
10698         (*thumb2_movsi_insn): Fix type attribute.
10699         (*thumb2_addsi_short): Likewise.
10700         (thumb2_addsi3_compare0): Likewise.
10701         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
10702         attributes accordingly.
10703
10704 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
10705
10706         PR other/65911
10707         * function.c (pad_to_arg_alignment): Add parentheses.
10708
10709 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
10710
10711         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
10712         libgcc/config/frv/elf-lib.h.
10713
10714 2015-04-28  Tom de Vries  <tom@codesourcery.com>
10715
10716         * tree-call-cdce.c: Fix example in header comment.
10717
10718 2015-04-28  Richard Biener  <rguenther@suse.de>
10719
10720         PR tree-optimization/62283
10721         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
10722         fails fatally and we are vectorizing a basic-block simply
10723         cause the child to be constructed piecewise.
10724         (vect_analyze_slp_cost_1): Adjust.
10725         (vect_detect_hybrid_slp_stmts): Likewise.
10726         (vect_bb_slp_scalar_cost): Likewise.
10727         (vect_get_constant_vectors): For piecewise constructed
10728         constants place them after the last def.
10729         (vect_get_slp_defs): Adjust.
10730         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
10731         externals for basic-block vectorization.
10732
10733 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10734
10735         PR target/63503
10736         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
10737         aarch64-*-*.
10738         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
10739         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
10740         (AARCH64_TUNE_FMA_STEERING): Likewise.
10741         * config/aarch64/aarch64-cores.def: Set
10742         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
10743         FMUL/FMADD instructions.
10744         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
10745         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
10746         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
10747         * config/aarch64/cortex-a57-fma-steering.h: New file.
10748         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10749
10750 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
10751
10752         * gensupport.c (std_preds): Add missing codes to address_operand entry.
10753
10754 2015-04-28  Richard Biener  <rguenther@suse.de>
10755
10756         PR tree-optimization/65851
10757         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
10758         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
10759         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
10760         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
10761         (ccp_visit_phi_node): Adjust.
10762         (evaluate_stmt): For simplifications to SSA names return its
10763         lattice value if that isn't VARYING.  Return immediately when
10764         simplified to a constant.
10765         (visit_assignment): Adjust.
10766         (ccp_visit_stmt): Likewise.
10767
10768 2015-04-28  Tom de Vries  <tom@codesourcery.com>
10769
10770         PR tree-optimization/65818
10771         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
10772         evaluated.
10773
10774 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10775
10776         * calls.c (save_fixed_argument_area): Don't check
10777         ARGS_GROW_DOWNWARD with the preprocessor.
10778         (restore_fixed_argument_area): Likewise.
10779         (mem_overlaps_already_clobbered_arg_p): Likewise.
10780         (check_sibcall_argument_overlap): Likewise.
10781         (expand_call): Likewise.
10782         (emit_library_call_value_1): Likewise.
10783         (store_one_arg): Likewise.
10784         * function.c (assign_parms): Likewise.
10785         (locate_and_pad_parm): Likewise.
10786         (pad_to_arg_alignment): Likewise.
10787         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
10788
10789 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10790
10791         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
10792         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
10793         * calls.c (save_fixed_argument_area): Don't chekc if
10794         ARGS_GROW_DOWNWARD is defined.
10795         (restore_fixed_argument_area): Likewise.
10796         (mem_overlaps_already_clobbered_arg_p): Likewise.
10797         (check_sibcall_argument_overlap): Likewise.
10798         (expand_call): Likewise.
10799         (emit_library_call_value_1): Likewise.
10800         (store_one_arg): Likewise.
10801         * function.c (assign_parms): Likewise.
10802         (locate_and_pad_parm): Likewise.
10803         (pad_to_arg_alignment): Likewise.
10804         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
10805
10806 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10807
10808         * defaults.h (gen_epilogue): New function.
10809         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
10810         defined.
10811         * cfgrtl.c (cfg_layout_finalize): Likewise.
10812         * df-scan.c: Likewise.
10813         * function.c (thread_prologue_and_epilogue_insns): Likewise.
10814         (reposition_prologue_and_epilogue_notes): Likewise.
10815         * reorg.c (find_end_label): Likewise.
10816         * toplev.c: Likewise.
10817
10818 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10819
10820         * bb-reorder.c (HAVE_return): Don't check if its undefined.
10821         * defaults.h (gen_simple_return): New function.
10822         (gen_simple_return): Likewise.
10823         (HAVE_return): Add default definition to false.
10824         (HAVE_simple_return): Likewise.
10825         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
10826         HAVE_return and HAVE_simple_return are defined.
10827         * function.c (gen_return_pattern): Likewise.
10828         (convert_jumps_to_returns): Likewise.
10829         (thread_prologue_and_epilogue_insns): Likewise.
10830         * reorg.c (find_end_label): Likewise.
10831         (dbr_schedule): Likewise.
10832         * shrink-wrap.c: Likewise.
10833         * shrink-wrap.h: Likewise.
10834
10835 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10836
10837         * defaults.h (EPILOGUE_USES): Add default definition of false.
10838         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
10839         * resource.c (init_resource_info): Likewise.
10840
10841 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10842
10843         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
10844         to false.
10845         * dwarf2out.c (field_byte_offset): REmove check if
10846         PCC_BITFIELD_TYPE_MATTERS is defined.
10847         * stor-layout.c (layout_decl): Likewise.
10848         (update_alignment_for_field): Likewise.
10849         (place_field): Likewise.
10850
10851 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10852
10853         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
10854         true.
10855         * regrename.c (check_new_reg_p): Remove check if
10856         HARD_REGNO_RENAME_OK is defined.
10857         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
10858
10859 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10860
10861         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
10862         * cse.c (fold_rtx): Likewise.
10863         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
10864         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
10865         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
10866         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
10867         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
10868         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
10869         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
10870         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
10871         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
10872         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
10873         * Likewise.
10874         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
10875         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
10876         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
10877         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
10878         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
10879         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
10880         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
10881         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
10882         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
10883         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
10884         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
10885         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
10886         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
10887         * doc/tm.texi: Regenerate.
10888         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
10889         either true or false.
10890
10891 2015-04-27  Jeff Law  <law@redhat.com>
10892
10893         PR tree-optimization/65217
10894         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
10895         of them has a single use, make sure it is the LHS of the implied
10896         copy.
10897
10898 2015-04-28  Alan Modra  <amodra@gmail.com>
10899
10900         PR target/65810
10901         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
10902         (offsettable_ok_by_alignment): Use minimum of decl and toc
10903         pointer alignment.  Replace dead code with assertion.
10904         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
10905         case if size exceeds toc pointer alignment.
10906         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
10907         (rs6000_emit_move): Likewise.
10908         * configure.ac: Add linker toc pointer alignment check.
10909         * configure: Regenerate.
10910         * config.in: Regenerate.
10911
10912 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
10913
10914         * config.gcc: Add h8300-*-linux.
10915         * config/h8300/linux.h: New.
10916         * config/h8300/t-linux: New.
10917         * config/h8300/h8300.c (h8300_option_override): Normal mode
10918         is not supported for h8300-*-linux.
10919         (h8300_file_start): Target priority change.
10920         (get_shift_alg): Likewise.
10921         (h8300_shift_need_scratch_p): Likewise.
10922         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
10923         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
10924
10925 2015-04-27  Caroline Tice  <cmtice@google.com>
10926
10927         * final.c (final_scan_insn):  Output cold_function_name as function
10928         type.
10929         * varasm.c (cold_function_name):  Make global.
10930         (assemble_start_function):  Re-set cold_function_name.
10931         (assemble_end_function): Output cold partition size.
10932         * varasm.h (cold_function_name):  Declare global.
10933
10934 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
10935
10936         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
10937         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
10938         constraint.
10939         (*movxi_internal_avx512f): Ditto.
10940         (define_split): Check for xmm16+, when splitting scalar float_extend.
10941         (*extendsfdf2_mixed): Use "v" constraint.
10942         (define_split): Check for xmm16+, when splitting scalar float_truncate.
10943         (*truncdfsf_fast_sse): Use "v" constraint.
10944         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
10945         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
10946         (define_peephole2): Check for xmm16+, when converting scalar
10947         float_truncate.
10948         (define_peephole2): Check for xmm16+, when converting scalar
10949         float_extend.
10950         (*fop_<mode>_comm_mixed): Use "v" constraint.
10951         (*fop_<mode>_comm_sse): Ditto.
10952         (*fop_<mode>_1_mixed): Ditto.
10953         (*sqrt<mode>2_sse): Ditto.
10954         (*ieee_s<ieee_maxmin><mode>3): Ditto.
10955
10956 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10957
10958         * combine.c (simplify_if_then_else): Use std::swap instead
10959         of manually swapping.
10960         (known_cond): Likewise.
10961         (simplify_comparison): Likewise.
10962
10963 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
10964
10965         PR target/64579
10966         * config/rs6000/htm.md: Remove all define_expands.
10967         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
10968         UNSPECV_HTM_TABORTWCI): Remove.
10969         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
10970         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
10971         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
10972         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
10973         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
10974         tabortwci_internal): Remove define_insns.
10975         (tabort<wd>c, tabort<wd>ci): New define_insns.
10976         (tabort): Use gpc_reg_operand.
10977         (tcheck): Remove operand.
10978         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
10979         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
10980         expected value.
10981         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
10982         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
10983         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
10984         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
10985         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
10986         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
10987         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
10988         (tcheck): Remove builtin argument.
10989         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
10990         not TARGET_64BIT.
10991         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
10992         tabortdc and tabortdci builtins when not in 64-bit mode.
10993         Modify code to handle the loss of the HTM define_expands.
10994         Emit code to copy the CR register to TARGET.
10995         (htm_init_builtins): Modify code to handle the loss of the HTM
10996         define_expands.
10997         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
10998         (RS6000_BTC_64BIT): Likewise.
10999         (RS6000_BTC_CR): New macro.
11000         * doc/extend.texi: Update documentation for htm builtins.
11001
11002 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11003
11004         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
11005         of manually swapping.
11006         (simplify_associative_operation): Likewise.
11007         (simplify_binary_operation): Likewise.
11008         (simplify_plus_minus): Likewise.
11009         (simplify_relational_operation): Likewise.
11010         (simplify_ternary_operation): Likewise.
11011
11012 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
11013
11014         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
11015         (xs_hi_nonmemory_operand): Remove error.
11016         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
11017         general_operand rather than xs_hi_general_operand.
11018
11019 2015-04-27  Richard Biener  <rguenther@suse.de>
11020
11021         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
11022         (record_equivalences_from_stmt): Valueize rhs.
11023         (record_equality): Canonicalize x and y order via
11024         tree_swap_operands_p.  Do not swap operands for same loop depth.
11025
11026 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
11027
11028         PR target/65296
11029         PR target/65895
11030         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
11031         Add hint how to use own spec file.
11032
11033 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
11034
11035         PR tree-optimization/65875
11036         * tree-vrp.c (update_value_range): If in is_new case setting
11037         old_vr to VR_VARYING, also set new_vr to it.  Remove
11038         old_vr->type == VR_VARYING test.
11039         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
11040         SSA_PROP_INTERESTING if update_value_range returned true,
11041         but new range is VR_VARYING.
11042
11043 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11044
11045         * combine.c (sign_extend_short_imm): New.
11046         (set_nonzero_bits_and_sign_copies): Use above new function for sign
11047         extension of src short immediate.
11048         (reg_nonzero_bits_for_combine): Likewise for tem.
11049
11050 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
11051
11052         * stor-layout.c (self_referential_component_ref_p): New predicate.
11053         (copy_self_referential_tree_r): Use it.
11054         (self_referential_size): Punt for simple operations directly involving
11055         self-referential component references.
11056         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
11057
11058 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
11059
11060         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
11061
11062 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
11063
11064         * vec.h (vec): Make splice arguments const.  Update definitions
11065         accordingly.
11066
11067 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
11068
11069         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
11070         alternatives.
11071
11072 2015-04-26  Tom de Vries  <tom@codesourcery.com>
11073
11074         PR tree-optimization/65826
11075         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
11076
11077 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
11078
11079         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
11080         (*madd3<mode>): Ditto.
11081         (*msub4<mode>): Ditto.
11082         (*msub3<mode>): Ditto.
11083         (*nmadd4<mode>): Ditto.
11084         (*nmadd3<mode>): Ditto.
11085         (*nmadd4<mode>_fastmath): Ditto.
11086         (*nmadd3<mode>_fastmath): Ditto.
11087         (*nmsub4<mode>): Ditto.
11088         (*nmsub3<mode>): Ditto.
11089         (*nmsub4<mode>_fastmath): Ditto.
11090         (*nmsub3<mode>_fastmath): Ditto.
11091
11092 2015-04-24  Jason Merrill  <jason@redhat.com>
11093
11094         PR c++/50800
11095         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
11096         down when building TYPE_CANONICAL.
11097         (build_pointer_type_for_mode): Likewise.
11098
11099 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
11100
11101         * genrecog.c (validate_pattern): Check matching constraint refers
11102         to a lower numbered operand.
11103
11104 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11105
11106         PR target/65849
11107         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
11108         save to independent variables use the Save attribute.  This will
11109         allow these options to be modified with the #pragma/attribute
11110         target support.
11111         (-mallow-movmisalign): Likewise.
11112         (-mallow-df-permute): Likewise.
11113         (-msched-groups): Likewise.
11114         (-malways-hint): Likewise.
11115         (-malign-branch-targets): Likewise.
11116         (-mvectorize-builtins): Likewise.
11117         (-msave-toc-indirect): Likewise.
11118
11119         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
11120         can be set via the #pragma/attribute target support.
11121         (rs6000_opt_vars): Likewise.
11122         (rs6000_inner_target_options): If VSX was set, also set
11123         -mno-avoid-indexed-addresses.
11124
11125 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11126
11127         * config/arm/iterators.md (shiftable_ops): Rename to...
11128         (SHIFTABLE_OPS): ... This.  Update use in comments.
11129         (ior_xor): Rename to...
11130         (IOR_XOR): ... This.
11131         (vqh_ops): Rename to...
11132         (VQH_OPS): ... This.
11133         (vqhs_ops): Rename to...
11134         (VQHS_OPS): ... This.
11135         (rshifts): Rename to...
11136         (RSHIFTS): ... This.
11137         (returns): Rename to...
11138         (RETURNS): ... This.
11139         * config/arm/arm.md: Update uses of the above.
11140         * config/arm/neon.md: Likewise.
11141
11142 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11143
11144         * config.host (case ${host}): Add aarch64*-*-linux case.
11145         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
11146         fields to all the cores.
11147         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
11148         Add MCPU_MTUNE_NATIVE_SPECS.
11149         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
11150         field to all extensions.
11151         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
11152         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
11153         Adjust definition of AARCH64_OPT_EXTENSION.
11154         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
11155         (MCPU_MTUNE_NATIVE_SPECS): Define.
11156         * config/aarch64/driver-aarch64.c: New file.
11157         * config/aarch64/x-arch64: New file.
11158         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
11159         -mtune and -march.
11160
11161 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
11162             Wei Mi  <wmi@google.com>
11163
11164         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
11165         * config/i386/i386.c (extract_base_offset_in_addr): New function.
11166         (ix86_operands_ok_for_move_multiple): Ditto.
11167         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
11168         (movlpd/movhpd to movupd peephole2): Ditto.
11169
11170 2015-04-24  Marek Polacek  <polacek@redhat.com>
11171
11172         PR c/61534
11173         * input.h (from_macro_expansion_at): Define.
11174
11175         PR c/63357
11176         * doc/invoke.texi: Update description of -Wlogical-op.
11177
11178 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11179
11180         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
11181         ternary operator in fprintf and harmonize spacing.
11182
11183 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
11184
11185         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
11186         Mark operand1 commutative.
11187
11188 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
11189
11190         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
11191         input operands in memory.
11192         (*vec_concatv2si_sse4_1): Ditto.
11193         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
11194         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
11195         register_operand.
11196         (vec_extract_hi_v32hi): Ditto.
11197         (vec_extract_hi_v64hi): Ditto.
11198         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
11199
11200 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11201             Steven Bosscher <steven@gcc.gnu.org>
11202
11203         PR rtl-optimization/34503
11204         * cprop.c (cprop_reg_p): New.
11205         (hash_scan_set): Use above function to check if register can be
11206         propagated.
11207         (find_avail_set): Return up to two sets, one whose source is a
11208         register and one whose source is a constant.  Sets are returned in an
11209         array passed as parameter rather than as a return value.
11210         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
11211         sets returned by find_avail_set, starting with the one whose source is
11212         a constant. Use cprop_reg_p to check if register can be propagated.
11213         (do_local_cprop): Use cprop_reg_p to check if register can be
11214         propagated.
11215         (implicit_set_cond_p): Likewise.
11216
11217 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
11218
11219         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
11220         (sem_function::equals): IGNORED_NODES parameter is now unused;
11221         update call of equals_private.
11222         (sem_function::equals_private): Do not call equals_wpa; skip
11223         gimple body matching if there is no body.
11224         (sem_function::init): Add logic to hash tthunk info.
11225         (sem_function::parse): Also parse thunks.
11226         * ipa-icf.h (equals_private): Update declaration.
11227
11228 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11229
11230         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
11231         asterisk from name so this can be generated directly.
11232         (*altivec_stvx_<mode>_internal): Likewise.
11233         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
11234         that this is never called during or after reload/lra.
11235         (rs6000_frame_related): Remove split_reg
11236         argument and logic that references it.
11237         (emit_frame_save): Remove last parameter from call to
11238         rs6000_frame_related.
11239         (rs6000_emit_prologue): Remove last parameter from eight calls to
11240         rs6000_frame_related.  Force generation of stvx instruction for
11241         Altivec register saves.  Remove split_reg handling, which is no
11242         longer needed.
11243         (rs6000_emit_epilogue):  Force generation of lvx instruction for
11244         Altivec register restores.
11245
11246 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11247
11248         * config/rs6000/rs6000.opt (mcrypto): Change option description to
11249         match category changes in ISA 2.07B.
11250
11251 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11252
11253         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
11254         iterators.
11255         (cmp_op, cmp_type): New code attributes.
11256         (NEON_VCMP, NEON_VACMP): New int iterators.
11257         (cmp_op_unsp): New int attribute.
11258         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
11259         (neon_vceq<mode>): Delete.
11260         (neon_vc<cmp_op><mode>_insn): New pattern.
11261         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
11262         (neon_vcgeu<mode>): Delete.
11263         (neon_vcle<mode>): Likewise.
11264         (neon_vclt<mode>: Likewise.
11265         (neon_vcage<mode>): Likewise.
11266         (neon_vcagt<mode>): Likewise.
11267         (neon_vca<cmp_op><mode>): New define_expand.
11268         (neon_vca<cmp_op><mode>_insn): New pattern.
11269         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
11270
11271 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
11272
11273         * tree.h (attribute_value_equal): Declare.
11274         * tree.c (attribute_value_equal): Export.
11275
11276 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
11277
11278         * ipa-icf.c (sem_item::compare_attributes): New function.
11279         (sem_item::compare_referenced_symbol_properties): Compare variable
11280         attributes.
11281         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
11282         (sem_function::param_used_p): New function.
11283         (sem_function::equals_wpa): Fix attribute comparsion; match
11284         parameter type codes; do not compare paremter flags when
11285         they are not used; compare edge flags; compare indirect calls.
11286         (sem_item::update_hash_by_addr_refs): Hash reference type.
11287         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
11288         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
11289         reference use type.
11290         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
11291         * ipa-icf.h (compare_attributes, param_used_p): Declare.
11292
11293 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
11294
11295         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
11296         cleanup.
11297         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
11298         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
11299         (sem_item::compare_referenced_symbol_properties): New.
11300         (sem_item::hash_referenced_symbol_properties): New.
11301         (sem_item::compare_cgraph_references): Rename to ...
11302         (sem_item::compare_symbol_references): ... this one; use
11303         compare_referenced_symbol_properties.
11304         (sem_function::equals_wpa): Do not compare
11305         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
11306         DECL_IS_OPERATOR_NEW; compare pointer sizes.
11307         (sem_item::update_hash_by_addr_refs): Call
11308         hash_referenced_symbol_properties.
11309         (sem_item::update_hash_by_local_refs): Cleanup.
11310         (sem_function::merge): Do not mix up symbol properties.
11311         (sem_variable::equals_wpa): Use compare_symbol_references.
11312         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
11313         (sem_item::hash_referenced_symbol_properties): New.
11314         (sem_item::compare_symbol_references): New.
11315         (sem_item::compare_cgraph_references): Remove.
11316
11317 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
11318
11319         PR target/26702
11320         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
11321         Emit size of local.
11322
11323 2015-04-23  Nick Clifton  <nickc@redhat.com>
11324
11325         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
11326         ATTRIBUTE_UNUSED to x parameter.
11327         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
11328
11329 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11330
11331         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
11332         TARGET_CRYPTO to TARGET_P8_VECTOR>
11333         (crypto_vpermxor_<mode>): Likewise.
11334         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
11335         (BU_CRYPTO_3A): Likewise.
11336         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
11337         (BU_CRYPTO_OVERLOAD_3A): New #define.
11338         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
11339         (VPMSUMH): Likewise.
11340         (VPMSUMW): Likewise.
11341         (VPMSUMD): Likewise.
11342         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
11343         (VPERMXOR_V4SI): Likewise.
11344         (VPERMXOR_V8HI): Likewise.
11345         (VPERMXOR_V16QI): Likewise.
11346         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
11347         BU_CRYPTO_OVERLOAD_2A.
11348         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
11349         BU_CRYPTO_OVERLOAD_3A.
11350         * config/rs6000/rs6000.opt (mcrypto): Change description of
11351         option.
11352
11353 2015-04-23  Richard Biener  <rguenther@suse.de>
11354
11355         * passes.def: Remove copy propagation passes run directly after CCP.
11356         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
11357         SSA names.
11358         (ccp_visit_phi_node): Rework to handle first executable edge
11359         specially.
11360
11361 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
11362
11363         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
11364         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
11365         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
11366         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
11367         (thumb_legimitimize_reload_address): Remove.
11368         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
11369         Remove.
11370         (thumb_legimitimize_reload_address): Remove.
11371
11372 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11373
11374         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
11375
11376 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11377
11378         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
11379         MAX_LDM_STM_OPS.
11380         (store_multiple): Likewise.
11381
11382 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11383
11384         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
11385         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
11386         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
11387         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
11388         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
11389         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
11390         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
11391         Specify issue_rate value.
11392         (arm_issue_rate): Look up issue rate from tuning structs. Remove
11393         large switch statement.
11394         (arm_marvell_pj4_tune): New struct.
11395         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
11396         struct.
11397
11398 2015-04-23  Richard Biener  <rguenther@suse.de>
11399
11400         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
11401         (vect_find_last_store_in_slp_instance): Rename to ...
11402         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
11403         (vect_analyze_slp_cost_1): Use vector_load for constant defs
11404         and vec_construct for external defs when estimating prologue cost.
11405         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
11406         Compute costs here only when vectorizing loops.
11407         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
11408         have been determined.
11409         (vect_schedule_slp_instance): Simplify vectorized code placement
11410         and prepare for in-BB external defs.
11411         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
11412         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
11413         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
11414         guard.
11415         (vect_model_load_cost): Likewise.
11416         (vectorizable_store): Instead add it here.
11417         (vectorizable_load): Likewise.
11418         (vect_is_simple_use): Dump def type textually.
11419
11420 2015-04-23  Richard Biener  <rguenther@suse.de>
11421
11422         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
11423         * cfgloop.c (verify_loop_structure): Verify the root loop node.
11424         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
11425         instead of get_eh_region_from_lp_number.
11426         * loop-init.c (fix_loop_structure): If we removed a loop, reset
11427         the SCEV cache.
11428
11429 2015-04-23  Anton Blanchard  <anton@samba.org>
11430
11431         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
11432         need for -mprofile-kernel to save LR to stack.
11433
11434 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11435
11436         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
11437         adjustments.
11438         (insn_is_swappable_p): Return 1 for a convert from double to
11439         single precision when all of its uses are splats of BE element
11440         zero.
11441
11442 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
11443
11444         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
11445
11446 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11447
11448         PR target/65456
11449         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
11450         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
11451         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
11452         option.
11453         (rs6000_builtin_mask_for_load): Return 0 for targets with
11454         efficient unaligned VSX accesses so that the vectorizer will use
11455         direct unaligned loads.
11456         (rs6000_builtin_support_vector_misalignment): Always return true
11457         for targets with efficient unaligned VSX accesses.
11458         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
11459         stores on targets with efficient unaligned VSX accesses is almost
11460         always the same as the cost of an aligned load or store, so model
11461         it that way.
11462         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
11463         unaligned vectors if we have efficient unaligned VSX accesses.
11464         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
11465         undocumented option.
11466
11467 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11468
11469         Revert:
11470         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
11471
11472         * config.gcc (LIBC_MUSL): New tm_defines macro.
11473         * config/linux.h (OPTION_MUSL): Define.
11474         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
11475         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
11476         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
11477
11478         * config/linux.opt (mmusl): New option.
11479         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
11480         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
11481
11482         * configure: Regenerate.
11483
11484 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
11485
11486         * config.gcc (LIBC_MUSL): New tm_defines macro.
11487         * config/linux.h (OPTION_MUSL): Define.
11488         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
11489         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
11490         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
11491
11492         * config/linux.opt (mmusl): New option.
11493         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
11494         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
11495
11496         * configure: Regenerate.
11497
11498 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
11499
11500         * doc/invoke.texi (-fsanitize-sections): Update description.
11501         * asan.c (set_sanitized_sections): Parse incoming arg.
11502         (section_sanitized_p): Support wildcards.
11503
11504 2015-04-22  Tom de Vries  <tom@codesourcery.com>
11505
11506         PR tree-optimization/65823
11507         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
11508         equality between ap_copy and ap.
11509
11510 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11511
11512         PR target/47098
11513         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
11514
11515 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11516
11517         PR target/47122
11518         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
11519
11520 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11521
11522         PR target/55144
11523         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
11524         remove already contained t-files.
11525
11526 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11527
11528         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
11529         Remove unneeded forward declarations.
11530         (suitable_for_tail_call_opt_p): Commentary typo fix.
11531
11532 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11533
11534         * varasm.c (emit_bss): Remove redundant guard.
11535
11536 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11537
11538         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
11539
11540 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11541
11542         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
11543
11544 2015-04-22  Hale Wang  <hale.wang@arm.com>
11545             Terry Guo  <terry.guo@arm.com>
11546
11547         PR rtl-optimization/64818
11548         * combine.c (can_combine_p): Don't combine user-specified
11549         register if it is in an asm input.
11550
11551 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
11552
11553         PR ipa/65076
11554         * passes.def (early_optimizations): Add pass_dse.
11555
11556 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11557
11558         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
11559         * reorg.c (redundant_insn): Remove ifdef
11560         INSN_REFERENCES_ARE_DELAYED.
11561         * resource.c (mark_referenced_resources): Likewise.
11562
11563 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11564
11565         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
11566         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
11567         * resource.c (mark_set_resources): Likewise.
11568
11569 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11570
11571         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
11572         * cfgcleanup.c (flow_find_cross_jump): Likewise.
11573         (flow_find_head_matching_sequence): Likewise.
11574         (try_head_merge_bb): Likewise.
11575         * combine.c (can_combine_p): Likewise.
11576         (try_combine): Likewise.
11577         (distribute_notes): Likewise.
11578         * df-problems.c (can_move_insns_across): Likewise.
11579         * final.c (final): Likewise.
11580         * gcse.c (insert_insn_end_basic_block): Likewise.
11581         * ira.c (find_moveable_pseudos): Likewise.
11582         * reorg.c (try_merge_delay_insns): Likewise.
11583         (fill_simple_delay_slots): Likewise.
11584         (fill_slots_from_thread): Likewise.
11585         * sched-deps.c (sched_analyze_2): Likewise.
11586
11587 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11588
11589         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
11590         PIC_OFFSET_TABLE_REGNUM.
11591
11592 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11593
11594         * alias.c (init_alias_target): Remove ifdef
11595         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
11596         * df-scan.c (df_insn_refs_collect): Likewise.
11597         (df_get_regular_block_artificial_uses): Likewise.
11598         (df_get_eh_block_artificial_uses): Likewise.
11599         (df_get_entry_block_def_set): Likewise.
11600         (df_get_exit_block_use_set): Likewise.
11601         * emit-rtl.c (gen_rtx_REG): Likewise.
11602         * ira.c (ira_setup_eliminable_regset): Likewise.
11603         * reginfo.c (init_reg_sets_1): Likewise.
11604         * regrename.c (rename_chains): Likewise.
11605         * reload1.c (reload): Likewise.
11606         (eliminate_regs_in_insn): Likewise.
11607         * resource.c (mark_referenced_resources): Likewise.
11608         (init_resource_info): Likewise.
11609
11610 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11611
11612         * defaults.h (MASK_RETURN_ADDR): New definition.
11613         * except.c (expand_builtin_extract_return_addr): Remove ifdef
11614         MASK_RETURN_ADDR.
11615
11616 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11617
11618         * defaults.h (RETURN_ADDR_OFFSET): New definition.
11619         * except.c (expand_builtin_extract_return_addr): Remove ifdef
11620         RETURN_ADDR_OFFSET.
11621         (expand_builtin_frob_return_addr): Likewise.
11622
11623 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11624
11625         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
11626         (try_redirect_by_replacing_jump): Likewise.
11627         (rtl_tidy_fallthru_edge): Likewise.
11628         * combine.c (insn_a_feeds_b): Likewise.
11629         (find_split_point): Likewise.
11630         (simplify_set): Likewise.
11631         * cprop.c (cprop_jump): Likewise.
11632         * cse.c (cse_extended_basic_block): Likewise.
11633         * df-problems.c (can_move_insns_across): Likewise.
11634         * function.c (emit_use_return_register_into_block): Likewise.
11635         * haifa-sched.c (sched_init): Likewise.
11636         * ira.c (find_moveable_pseudos): Likewise.
11637         * loop-invariant.c (find_invariant_insn): Likewise.
11638         * lra-constraints.c (curr_insn_transform): Likewise.
11639         * postreload.c (reload_combine_recognize_const_pattern):
11640         * Likewise.
11641         * reload.c (find_reloads): Likewise.
11642         * reorg.c (delete_scheduled_jump): Likewise.
11643         (steal_delay_list_from_target): Likewise.
11644         (steal_delay_list_from_fallthrough): Likewise.
11645         (redundant_insn): Likewise.
11646         (fill_simple_delay_slots): Likewise.
11647         (fill_slots_from_thread): Likewise.
11648         (delete_computation): Likewise.
11649         * sched-rgn.c (add_branch_dependences): Likewise.
11650
11651 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11652
11653         * genconfig.c (main): Always define HAVE_cc0.
11654         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
11655         HAVE_cc0.
11656         * cfgcleanup.c (flow_find_cross_jump): Likewise.
11657         (flow_find_head_matching_sequence): Likewise.
11658         (try_head_merge_bb): Likewise.
11659         * cfgrtl.c (rtl_merge_blocks): Likewise.
11660         (try_redirect_by_replacing_jump): Likewise.
11661         (rtl_tidy_fallthru_edge): Likewise.
11662         * combine.c (do_SUBST_MODE): Likewise.
11663         (insn_a_feeds_b): Likewise.
11664         (combine_instructions): Likewise.
11665         (can_combine_p): Likewise.
11666         (try_combine): Likewise.
11667         (find_split_point): Likewise.
11668         (subst): Likewise.
11669         (simplify_set): Likewise.
11670         (distribute_notes): Likewise.
11671         * cprop.c (cprop_jump): Likewise.
11672         * cse.c (cse_extended_basic_block): Likewise.
11673         * df-problems.c (can_move_insns_across): Likewise.
11674         * final.c (final): Likewise.
11675         (final_scan_insn): Likewise.
11676         * function.c (emit_use_return_register_into_block): Likewise.
11677         * gcse.c (insert_insn_end_basic_block): Likewise.
11678         * haifa-sched.c (sched_init): Likewise.
11679         * ira.c (find_moveable_pseudos): Likewise.
11680         * loop-invariant.c (find_invariant_insn): Likewise.
11681         * lra-constraints.c (curr_insn_transform): Likewise.
11682         * optabs.c (prepare_cmp_insn): Likewise.
11683         * postreload.c (reload_combine_recognize_const_pattern):
11684         * Likewise.
11685         * reload.c (find_reloads): Likewise.
11686         (find_reloads_address_1): Likewise.
11687         * reorg.c (delete_scheduled_jump): Likewise.
11688         (steal_delay_list_from_target): Likewise.
11689         (steal_delay_list_from_fallthrough): Likewise.
11690         (try_merge_delay_insns): Likewise.
11691         (redundant_insn): Likewise.
11692         (fill_simple_delay_slots): Likewise.
11693         (fill_slots_from_thread): Likewise.
11694         (delete_computation): Likewise.
11695         (relax_delay_slots): Likewise.
11696         * sched-deps.c (sched_analyze_2): Likewise.
11697         * sched-rgn.c (add_branch_dependences): Likewise.
11698
11699 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11700
11701         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
11702         that is trivially ded on non cc0 targets.
11703         (simplify_set): Likewise.
11704         (mark_used_regs_combine): Likewise.
11705         * cse.c (new_basic_block): Likewise.
11706         (fold_rtx): Likewise.
11707         (cse_insn): Likewise.
11708         (cse_extended_basic_block): Likewise.
11709         (set_live_p): Likewise.
11710         * rtlanal.c (canonicalize_condition): Likewise.
11711         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11712
11713 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11714
11715         * conditions.h: Define macros even if HAVE_cc0 is undefined.
11716         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
11717         * final.c: Likewise.
11718         * jump.c: Likewise.
11719         * recog.c: Likewise.
11720         * recog.h: Declare functions even when HAVE_cc0 is undefined.
11721         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
11722
11723 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11724
11725         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
11726         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
11727         * builtins.c (expand_builtin): Remove check if
11728         EH_RETURN_DATA_REGNO is defined.
11729         * df-scan.c (df_bb_refs_collect): Likewise.
11730         (df_get_exit_block_use_set): Likewise.
11731         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
11732         * ira-lives.c (process_bb_node_lives): Likewise.
11733         * lra-lives.c (process_bb_lives): Likewise.
11734
11735 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
11736
11737         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
11738         FIRST_PSEUDO_REG): New.
11739         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
11740         (ARG_POINTER_REGNUM): Define to ARGP_REG.
11741         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
11742         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
11743         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
11744         (FIRST_INT_REG): New.
11745         (LAST_INT_REG): New.
11746         (FIRST_*_REG): Define using *_REG.
11747         (LAST_*_REG): Ditto.
11748         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
11749         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
11750         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
11751
11752 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11753
11754         * expmed.c: (synth_mult): Only assume overlapping
11755         shift with previous steps in alg_sub_t_m2 case.
11756
11757 2015-04-21  Richard Biener  <rguenther@suse.de>
11758
11759         PR tree-optimization/65650
11760         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
11761         transitions involving copies.
11762         (set_lattice_value): Adjust for copy lattice state.
11763         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
11764         if that doesn't dominate the merge point.
11765         (bit_value_unop): Adjust what we treat as varying mask.
11766         (bit_value_binop): Likewise.
11767         (bit_value_assume_aligned): Likewise.
11768         (evaluate_stmt): When we simplified to a SSA name record a copy
11769         instead of dropping to varying.
11770         (visit_assignment): Simplify.
11771
11772         * gimple-match.h (gimple_simplify): Add another callback.
11773         * gimple-fold.c (fold_stmt_1): Adjust caller.
11774         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
11775         for the 2nd callback.
11776         * gimple-match-head.c (gimple_simplify): Add a callback that is
11777         used to valueize the stmt operands and use it that way.
11778
11779 2015-04-21  Richard Biener  <rguenther@suse.de>
11780
11781         PR tree-optimization/65788
11782         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
11783
11784 2015-04-21  Richard Biener  <rguenther@suse.de>
11785
11786         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
11787         vec_construct cost by vec_stmt_cost.
11788
11789 2015-04-21  Richard Biener  <rguenther@suse.de>
11790
11791         * cfghooks.h (create_basic_block): Replace with two overloads
11792         for RTL and GIMPLE.
11793         (split_block): Likewise.
11794         * cfghooks.c (split_block): Rename to ...
11795         (split_block_1): ... this.
11796         (split_block): Add two type-safe overloads for RTL and GIMPLE.
11797         (split_block_after_labels): Call split_block_1.
11798         (create_basic_block): Rename to ...
11799         (create_basic_block_1): ... this.
11800         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
11801         (create_empty_bb): Call create_basic_block_1.
11802         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
11803         split_block_after_labels.
11804         * omp-low.c (expand_parallel_call): Likewise.
11805         (expand_omp_target): Likewise.
11806         (simd_clone_adjust): Likewise.
11807         * tree-chkp.c (chkp_get_entry_block): Likewise.
11808         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
11809         create_basic_block overload.
11810         (cgraph_node::expand_thunk): Likewise.
11811         * tree-cfg.c (make_blocks): Likewise.
11812         (handle_abnormal_edges): Likewise.
11813         * tree-inline.c (copy_bb): Likewise.
11814
11815 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11816
11817         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
11818         New pattern.
11819         (*xor_one_cmplsidi3_ze): Likewise.
11820
11821 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11822
11823         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
11824         use df_remove_problem rather than manually removing problems, leaving
11825         holes in df->problems_in_order[].
11826
11827 2015-04-21  Tom de Vries  <tom@codesourcery.com>
11828
11829         PR tree-optimization/65802
11830         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
11831
11832 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11833
11834         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
11835         Increase to 128.
11836         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
11837         at '.'.  Assert that there's enough space for everything.
11838
11839 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
11840
11841         PR tree-optimization/64950
11842         Revert:
11843         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
11844
11845         PR target/41089
11846         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
11847         as volatile.
11848
11849 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
11850
11851         PR rtl-optimization/64916
11852         * cfgcleanup.c (values_equal_p): New function.
11853         (can_replace_by): Use it.
11854
11855 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
11856
11857         PR c++/65801
11858         * doc/invoke.texi ([-Wnarrowing]): Update.
11859
11860 2015-04-20  Jeff Law  <law@redhat.com>
11861
11862         PR tree-optimization/65658
11863         * tree-ssa-threadupdate.c (redirection_block_p): Remove
11864         redundant test for GIMPLE_ASSIGN in last change.
11865
11866 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
11867
11868         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
11869         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
11870         (legitimize_tls_address): Ditto.
11871         (ix86_expand_move): Ditto.
11872         (ix86_expand_binary_operator): Remove reload_in_progress checks.
11873         (ix86_expand_unary_operator): Ditto.
11874         * config/i386/predicates.md (index_register_operand): Ditto.
11875
11876 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
11877
11878         * reorg.c (try_merge_delay_insns): Improve correctness checking
11879         for targets with multiple delay slots.
11880
11881 2015-04-20  Jeff Law  <law@redhat.com>
11882
11883         PR tree-optimization/65658
11884         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
11885         statements too.
11886
11887 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
11888
11889         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
11890         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
11891         Delete.
11892
11893 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
11894
11895         PR debug/65807
11896         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
11897
11898 2015-04-20  Richard Biener  <rguenther@suse.de>
11899
11900         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
11901         * gimple-fold.c (gimple_build_valueize): New function.
11902         (gimple_build): Always use gimple_build_valueize as valueize hook.
11903
11904 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
11905
11906         PR target/64134
11907         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
11908         and overwrite variable parts if <= 1/2 the elements are variable.
11909
11910 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
11911
11912         PR rtl-optimization/65805
11913         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
11914         Don't use difference of offset and previous offset if
11915         update_sp_offset is non-zero.
11916         (eliminate_regs_in_insn): Ditto.
11917         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
11918         lra_eliminate_regs_1 call.
11919         * lra-constraints.c (get_equiv_with_elimination): Ditto.
11920
11921 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
11922
11923         * hash-table.h: Remove version of hash_table that stored value_type *.
11924         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
11925         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
11926         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
11927         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
11928         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
11929         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
11930         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11931         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
11932         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
11933         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
11934         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
11935         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
11936         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
11937         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11938         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
11939         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
11940
11941 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11942             Jakub Jelinek  <jakub@redhat.com>
11943
11944         PR target/65787
11945         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
11946         subsequent SH_NONE operand does not overwrite an existing *special
11947         value.
11948         (adjust_extract): Handle case where a vec_extract operation is
11949         wrapped in a PARALLEL.
11950
11951 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
11952
11953         PR target/65780
11954         * config/i386/i386.c (ix86_binds_local_p): Define only if
11955         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
11956
11957 2015-04-17  Jeff Law  <law@redhat.com>
11958
11959         PR tree-optimization/47679
11960         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
11961         * tree-ssa-scopedtables.c: New file.
11962         * tree-ssa-scopedtables.h: New file.
11963         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
11964         (const_and_copies): Change name/type.
11965         (record_const_or_copy): Move into tree-ssa-scopedtables.c
11966         (record_const_or_copy_1): Similarly.
11967         (restore_vars_to_original_value): Similarly.
11968         (pass_dominator::execute): Create and destroy const_and_copies table.
11969         (thread_across_edge): Update passing of const_and_copies.
11970         (record_temporary_equivalence): Use method calls rather than
11971         manipulating const_and_copies directly.
11972         (record_equality, cprop_into_successor_phis): Similarly.
11973         (dom_opt_dom_walker::before_dom_children): Similarly.
11974         (dom_opt_dom_walker::after_dom_children): Similarly.
11975         (eliminate_redundant_computations): Similarly.
11976         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
11977         (record_temporary_equivalence): Likewise.
11978         (invalidate_equivalences): Likewise.
11979         (record_temporary_equivalences_from_phis): Update due to type
11980         change of const_and_copies.  Use method calls rather than
11981         manipulating the stack directly.
11982         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
11983         (thread_through_normal_block, thread_across_edge): Likewise.
11984         (thread_across_edge): Likewise.
11985         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11986         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
11987         of equiv_stack.
11988         (identify_jump_threads): Update due to type change of equiv_stack.
11989         (finalize_jump_threads): Delete the equiv_stack when complete.
11990
11991 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
11992
11993         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
11994         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
11995         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
11996
11997 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
11998
11999         PR target/65535
12000         * config.gcc: Exit with a comment when we do not have a major version
12001         number for the FreeBSD target.
12002
12003 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
12004
12005         PR target/65689
12006         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
12007         maybe_allows_mem bitfields.
12008         (maybe_allows_none_start, maybe_allows_none_end,
12009         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
12010         maybe_allows_mem_end): New variables.
12011         (compute_maybe_allows): New function.
12012         (add_constraint): Use it to initialize maybe_allows_reg and
12013         maybe_allows_mem fields.
12014         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
12015         is_address constraints such that those that allow neither mem nor
12016         reg come first, then those that only allow reg but not mem, then
12017         those that only allow mem but not reg, then the rest.
12018         (write_allows_reg_mem_function): New function.
12019         (write_tm_preds_h): Call it.
12020         * stmt.c (parse_output_constraint, parse_input_constraint): Use
12021         the generated insn_extra_constraint_allows_reg_mem function
12022         instead of always setting *allows_reg = true; *allows_mem = true;
12023         for unknown extra constraints.
12024
12025 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
12026
12027         PR target/65780
12028         * output.h (default_binds_local_p_3): New.
12029         * varasm.c (default_binds_local_p_3): Make it public.  Take an
12030         argument to indicate if common symbol may be local.  If common
12031         symbol may be local, treat non-external variable as defined
12032         locally.
12033         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
12034         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
12035         * config/i386/i386.c (ix86_binds_local_p): New.
12036         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
12037         ix86_binds_local_p.
12038
12039 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
12040
12041         PR debug/65771
12042         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
12043         trying mem_loc_descriptor on XEXP (rtl, 0).
12044
12045 2015-04-17  Martin Liska  <mliska@suse.cz>
12046
12047         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
12048         Release symbol_compare_collection.
12049         * ipa-reference.c: Add TODO that a vector should be released.
12050
12051 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
12052
12053         PR target/65296
12054         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
12055         to new AVR-LibC file layout (bug #44574).
12056         (*avrlibc_devicelib): Same.
12057         * config/avr/avr-mcus.def: Adjust comments.
12058         * config/avr/avr.opt (nodevicelib): Adjust help.
12059
12060 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
12061
12062         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
12063
12064 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
12065
12066         PR c++/64527
12067         * gimplify.c (gimplify_init_constructor): Always emit a
12068         side-effecting constructor.
12069
12070 2015-04-17  Tom de Vries  <tom@codesourcery.com>
12071
12072         PR tree-optimization/64950
12073         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
12074         in cfun->curr_properties.
12075         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
12076         if we generate an IFN_VA_ARG.
12077         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
12078         function if PROP_gimple_lva is not set in src function.
12079
12080 2015-04-17  Tom de Vries  <tom@codesourcery.com>
12081             Michael Matz  <matz@suse.de>
12082
12083         PR tree-optimization/64950
12084         * gimple-iterator.c (update_modified_stmts): Remove static.
12085         * gimple-iterator.h (update_modified_stmts): Declare.
12086         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
12087         (gimplify_va_arg_internal): New function.
12088         (gimplify_va_arg_expr): Use IFN_VA_ARG.
12089         * gimplify.h (gimplify_va_arg_internal): Declare.
12090         * internal-fn.c (expand_VA_ARG): New unreachable function.
12091         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
12092         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
12093         (expand_ifn_va_arg): New function.
12094         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
12095         (pass_stdarg::execute): Call expand_ifn_va_arg.
12096         (pass_data_lower_vaarg): New pass_data.
12097         (pass_lower_vaarg): New gimple_opt_pass.
12098         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
12099         (make_pass_lower_vaarg): New function.
12100         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
12101         properties_required field.
12102         * passes.def (all_passes): Add pass_lower_vaarg.
12103         * tree-pass.h (PROP_gimple_lva): Add define.
12104         (make_pass_lower_vaarg): Declare.
12105
12106 2015-04-17  Tom de Vries  <tom@codesourcery.com>
12107
12108         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
12109         * calls.c (call_expr_flags): Same.
12110
12111 2015-04-17  Tom de Vries  <tom@codesourcery.com>
12112
12113         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
12114         (pass_stdarg::execute): ... here.
12115
12116 2015-04-17  Tom de Vries  <tom@codesourcery.com>
12117             Michael Matz  <matz@suse.de>
12118
12119         * tree-cfg.c (make_blocks_1): Factor out of ...
12120         (make_blocks): ... here.
12121         (make_edges_bb): Factor out of ...
12122         (make_edges): ... here.
12123         (gimple_find_sub_bbs): New function.
12124         * tree-cfg.h (gimple_find_sub_bbs): Declare.
12125
12126 2015-04-17  Tom de Vries  <tom@codesourcery.com>
12127
12128         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
12129
12130 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
12131
12132         * asan.c (set_sanitized_sections): New function.
12133         (section_sanitized_p): Ditto.
12134         (asan_protect_global): Optionally sanitize user-defined
12135         sections.
12136         * asan.h (set_sanitized_sections): Declare new function.
12137         * common.opt (fsanitize-sections): New option.
12138         * doc/invoke.texi (-fsanitize-sections): Document new option.
12139         * opts-global.c (handle_common_deferred_options): Handle new
12140         option.
12141
12142 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
12143
12144         PR debug/65771
12145         * dwarf2out.c (loc_list_from_tree): Return NULL
12146         for DEBUG_EXPR_DECL.
12147
12148 2015-04-17  Christian Bruel  <christian.bruel@st.com>
12149
12150         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
12151         same attributes.
12152
12153 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
12154
12155         * ira-color.c (setup_left_conflict_sizes_p): Do not process
12156         node itself when computing left conflict subnode size.
12157
12158 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
12159
12160         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
12161         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
12162         *fop_<mode>_1_sse using enabled attribute.  Use
12163         register_mixssei387nonimm_operand operand 1 predicate. Change
12164         alternative 3 constraints from "x" to "v".
12165
12166 2015-04-16  Richard Biener  <rguenther@suse.de>
12167
12168         PR tree-optimization/65774
12169         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
12170         bit-value tracking on.
12171
12172 2015-04-16  Richard Biener  <rguenther@suse.de>
12173
12174         PR tree-optimization/64277
12175         * tree-vrp.c (check_array_ref): Fix anti-range handling,
12176         simplify upper bound handling.
12177         (search_for_addr_array): Simplify.
12178         (check_array_bounds): Handle ADDR_EXPRs here.
12179         (check_all_array_refs): Simplify.
12180
12181 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
12182
12183         * config/i386/i386.c (print_reg): Rewrite function.
12184
12185 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12186
12187         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
12188         Invert the condition.
12189
12190 2015-04-16  Renlin Li  <renlin.li@arm.com>
12191
12192         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
12193         simplifications for UNSIGNED_FLOAT.
12194
12195 2015-04-16  Nick Clifton  <nickc@redhat.com>
12196
12197         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
12198         MUL_UNINIT.
12199         (enum rl78_cpu_type): New.
12200         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
12201         (umulhi3_shift_virt): Remove m constraint from operand 1.
12202         (umulqihi3_virt): Likewise.
12203         * config/rl78/rl78.c (rl78_option_override): Add code to process
12204         -mcpu and -mmul options.
12205         (rl78_alloc_physical_registers): Add code to handle divhi and
12206         divsi valloc attributes.
12207         (set_origin): Likewise.
12208         * config/rl78/rl78.h (RL78_MUL_G14): Define.
12209         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
12210         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
12211         __RL78_Gxx__.
12212         (ASM_SPEC): Pass -mcpu on to assembler.
12213         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
12214         (mulqi3_rl78): Likewise.
12215         (mulhi3_g13): Likewise.
12216         (mulhi3): Generate the G13 or G14 versions of the insn directly.
12217         (mulsi3): Likewise.
12218         (mulhi3_g14): Add clobbers of AX and BC.
12219         (mulsi3_g14): Likewise.
12220         (mulsi3_g13): Likewise.
12221         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
12222         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
12223         * config/rl78/rl78.opt (mmul): Initialise value to
12224         RL78_MUL_UNINIT.
12225         (mcpu): New option.
12226         (m13, m14, mrl78): New option aliases.
12227         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
12228         (MULTILIB_DIRNAMES): Add g13 and g14.
12229         * doc/invoke.texi: Document -mcpu and -mmul options.
12230
12231 2015-04-16  Richard Biener  <rguenther@suse.de>
12232
12233         * tree-ssa-ccp.c (likely_value): See if we have operands that
12234         are marked as never simulate again and return CONSTANT in this
12235         case.
12236         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
12237         not have any operands that will be simulated again as
12238         not being simulated again.
12239
12240 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
12241
12242         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
12243         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
12244         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
12245         attribute.
12246         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
12247         enabled attribute.
12248         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
12249         *float<SWI48:mode><MODEF:mode>2_sse.
12250         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
12251         enabled attribute.
12252         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
12253         enabled attribute.
12254
12255 2015-04-15  Tom de Vries  <tom@codesourcery.com>
12256
12257         PR other/65487
12258         * function.c (push_dummy_function): New function.
12259         (init_dummy_function_start): Use push_dummy_function.
12260         (pop_dummy_function): New function.  Factored out of ...
12261         (expand_dummy_function_end): ... here.
12262         * function.h (push_dummy_function, pop_dummy_function): Declare.
12263         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
12264         pop_dummy_function.
12265         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
12266
12267 2015-04-15  Jeff Law  <law@redhat.com>
12268
12269         PR tree-optimization/47679
12270         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
12271         need for forward declaration in upcoming changes.
12272         (record_conditions, record_edge_info): Likewise.
12273
12274         PR rtl-optimization/42522
12275         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
12276         SIGN_EXTRACT as a whole object rather than simplifying
12277         its operand.
12278
12279 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
12280
12281         PR ipa/65765
12282         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
12283         and GIMPLE_PREDICT use break instead of return true. For
12284         GIMPLE_EH_DISPATCH, compare dispatch region.
12285
12286 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
12287
12288         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
12289         details about the implementation.  Make clear preference for
12290         __atomic builtins.  Reduce possibility of future change.
12291
12292 2015-04-15  Nick Clifton  <nickc@redhat.com>
12293
12294         * config/rx/rx.opt (mallow-string-insns): New option.
12295         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
12296         builtin if string instructions are denied.
12297         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
12298         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
12299         appropriate.
12300         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
12301         * config/rx/rx.md (movstr): Enable pattern only if string
12302         instructions are allowed.
12303         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
12304         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
12305         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
12306         (MULTILIB_DIRNAMES): Add no-strings.
12307         * doc/invoke.texi: Document -mno-allow-string-insns.
12308
12309 2015-04-15  Alan Modra  <amodra@gmail.com>
12310
12311         PR target/65408
12312         PR target/58744
12313         PR middle-end/36043
12314         * calls.c (load_register_parameters): Don't load past end of
12315         mem unless suitably aligned.
12316
12317 2015-04-15  Nick Clifton  <nickc@redhat.com>
12318
12319         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
12320         decrement instruction as being frame related.
12321         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
12322         based addresses.
12323         If zero extending a function address enclose the operation in
12324         %code(...).
12325         (rl78_preferred_reload_class): New function.
12326         (TARGET_PREFERRED_RELOAD_CLASS): Define.
12327         * config/rl78/rl78.md: Remove useless constraints in expanders.
12328         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
12329         (mulhi3_rl78): Likewise.
12330         (mulhi3_g13): Likewise.
12331         (mulsi3_rl78): Likewise.
12332         (es_addr): Move to before the multiply patterns.
12333
12334 2015-04-15  Alan Modra  <amodra@gmail.com>
12335
12336         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
12337         and sequence_stack.  Add seq.
12338         (seq_stack): Delete.
12339         * function.c (prepare_function_start): Don't access x_last_insn.
12340         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
12341         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
12342         * emit_rtl.c (start_sequence, push_topmost_sequence,
12343         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
12344         sequence accessors.
12345         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
12346         remove_insn): Likewise.  Simplify.
12347         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
12348         and pop_topmost_sequence.
12349         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
12350         debug insns.
12351         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
12352
12353 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
12354
12355         PR target/65729
12356         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
12357         the assertiion.
12358
12359 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
12360
12361         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
12362         (LEGACY_INT_REGNO_P): Ditto.
12363         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
12364         (ANY_MASK_REG_P): Remove.
12365         (BND_REG_P): Rename from ANY_BND_REG_P.
12366         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
12367         legacy integer registers.  Do not handle MMX_REG_P in a special way.
12368         Merge 64byte and 32byte SSE handling.
12369
12370 2015-04-14  Nick Clifton  <nickc@redhat.com>
12371
12372         * expr.c (expand_assignment): Force an address offset computation
12373         into a register before changing its mode.
12374         (expand_expr_real_1): Likewise.
12375
12376 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
12377
12378         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
12379         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
12380         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
12381         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
12382         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
12383         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
12384         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
12385         and __aarch64_vget_lane_any.
12386
12387 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
12388
12389         PR rtl-optimization/65761
12390         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
12391         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
12392
12393 2015-04-14  Richard Biener  <rguenther@suse.de>
12394
12395         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
12396         (graphite_can_represent_scev): Use POINTER_TYPE_P.
12397
12398 2015-04-14  Richard Biener  <rguenther@suse.de>
12399
12400         PR tree-optimization/65758
12401         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
12402         against -1.
12403         (ccp_lattice_meet): Likewise.
12404         (bit_value_unop): Likewise.
12405         (bit_value_binop): Likewise.
12406         (bit_value_assume_aligned): Likewise.
12407
12408 2015-04-14  Christian Bruel  <christian.bruel@st.com>
12409
12410         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
12411         function.
12412
12413 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
12414
12415         PR tree-optimization/63387
12416         * match.pd ((x unord x) | (y unord y) -> (x unord y),
12417         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
12418
12419 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
12420
12421         * config/i386/predicates.md (any_QIreg_operand): Rename from
12422         q_regs_operand.  Do not process subregs.
12423         (QIreg_operand): Use QI_REGNO_P predicate.
12424         (ext_QIreg_operand): Ditto.
12425         (ext_register_operand): Ditto.
12426         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
12427         (AND splitters): Ditto.
12428         (AND with -65536 splitter): Add SWI48 mode for operand 0.
12429         (AND with -256 splitter): Use any_QIreg_operand predicate and
12430         SWI248 mode for operand 0.
12431         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
12432         mode for operand 0.
12433         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
12434
12435 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
12436
12437         * doc/plugins.texi: Rewrite first introductory paragraph.
12438
12439 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
12440
12441         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
12442         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
12443
12444 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
12445
12446         * ipa-profie.c (ipa_profile): Check number of parameters
12447         and possible polymorphic call targets before
12448         devirtualizing.
12449
12450 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
12451
12452         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
12453         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
12454
12455 2015-04-13  Richard Biener  <rguenther@suse.de>
12456
12457         PR tree-optimization/65204
12458         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
12459         takens for bit-CCP.
12460
12461 2015-04-13  Richard Biener  <rguenther@suse.de>
12462
12463         PR target/65660
12464         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
12465         and cond_not_taken_branch_cost to 4 and 2.
12466         (bdver2_cost): Likewise.
12467         (bdver3_cost): Likewise.
12468         (bdver4_cost): Likewise.
12469
12470 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
12471
12472         * hash-table.h (hash_table constructor): Add mem stats.
12473         (alloc_entries): Likewise.
12474
12475 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
12476
12477         * ipa-cp.c (ipcp_driver): Relase prev_edge.
12478         * passes.c (execute_one_pass): Only add transform if pass has one.
12479
12480 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
12481
12482         * config/i386/i386.c (ix86_option_override_internal): Don't set
12483         -fprefetch-loop-arrays if optimizing for size.
12484
12485 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
12486             Gerald Pfeifer  <gerald@pfeifer.com>
12487
12488         * doc/contrib.texi (Contributors): Add Martin Jambor and
12489         Michael Matz.
12490
12491 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
12492
12493         * BASE-VER: Set to 6.0.0.
12494
12495         PR tree-optimization/65747
12496         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
12497         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
12498
12499 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
12500
12501         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
12502         sentence.  Improve grammar.
12503
12504 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
12505
12506         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
12507
12508 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
12509
12510         PR ipa/65743
12511         * ipa-inline-transform.c (speculation_removed): Remove static var.
12512         (check_speculations): New function.
12513         (clone_inlined_nodes): Do not check spculations.
12514         (inline_call): Call check_speculations.
12515         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
12516         consider non-invariants.
12517
12518 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
12519             Martin Liska  <mliska@suse.cz>
12520
12521         PR ipa/65722
12522         * ipa-icf.c (sem_item::compare_cgraph_references): function and
12523         variable can not match.
12524         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
12525         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
12526
12527 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
12528
12529         PR tree-optimization/65735
12530         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
12531         Remove visited_phis argument, add visited_bbs, avoid recursing into the
12532         same bb rather than just into the same phi node.
12533         (thread_through_normal_block): Adjust caller.
12534
12535 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
12536
12537         * doc/contrib.texi (Contributors): Add Ira Rosen.
12538
12539 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
12540
12541         * gcov.c (find_source): Fix miswording in error message.
12542         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
12543         (ix86_expand_sse_comi_round): Fix typo in error message.
12544
12545 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
12546
12547         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
12548
12549 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
12550
12551         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
12552
12553 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
12554
12555         PR target/65710
12556         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
12557         Print bad_spills_num and insn_pseudos_num.
12558
12559 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12560
12561         PR target/65694
12562         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
12563         when creating +1 values for SImode.
12564
12565 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
12566
12567         PR target/65729
12568         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
12569         assert.
12570
12571 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
12572             Iain Sandoe  <iain@codesourcery.com>
12573
12574         PR target/65351
12575         * configure: Regenerate.
12576
12577 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
12578
12579         PR target/65671
12580         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
12581
12582 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
12583
12584         * doc/contrib.texi (Contributors): Add John Marino.
12585
12586 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
12587
12588         PR tree-optimization/65709
12589         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
12590         TREE_TYPE (TREE_TYPE (t)).
12591
12592 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
12593
12594         PR target/65710
12595         * lra-int.h (lra_bad_spill_regno_start): New.
12596         * lra.c (lra_bad_spill_regno_start): New.
12597         (lra): Set up lra_bad_spill_regno_start.  Set up
12598         lra_constraint_new_regno_start unconditionally.
12599         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
12600         spill preferences.
12601
12602 2015-04-09  Marek Polacek  <polacek@redhat.com>
12603             Jakub Jelinek  <jakub@redhat.com>
12604
12605         PR middle-end/65554
12606         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
12607         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
12608         of STRIP_NOPS.
12609
12610 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
12611
12612         PR rtl-optimization/65693
12613         * combine.c (is_parallel_of_n_reg_sets): Move outside of
12614         #ifndef HAVE_cc0.
12615
12616 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
12617
12618         PR target/65296
12619         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
12620         device specs file if "device-specs%s" didn't resolve to a path.
12621
12622 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
12623
12624         PR target/65676
12625         * config/i386/i386.c (fixup_modeless_constant): New.
12626         (ix86_expand_args_builtin): Fixup modeless constant operand.
12627         (ix86_expand_round_builtin): Ditto.
12628         (ix86_expand_special_args_builtin): Ditto.
12629         (ix86_expand_builtin): Ditto.
12630
12631 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
12632
12633         PR target/65693
12634         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
12635         any pow2 integer in between 2 and 0x80000000U inclusive.
12636
12637 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
12638
12639         PR rtl-optimization/65693
12640         * combine.c (is_parallel_of_n_reg_sets): Change first argument
12641         from an rtx_insn * to an rtx.
12642         (try_combine): Adjust both callers.  Use it once more.
12643
12644 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
12645
12646         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
12647         (chkp_make_static_const_bounds): Search existing
12648         symbol by assembler name.  Use make_decl_one_only.
12649         (chkp_get_zero_bounds_var): Remove node search which
12650         is now performed in chkp_make_static_const_bounds.
12651         (chkp_get_none_bounds_var): Likewise.
12652
12653 2015-04-08  Michael Witten  <mfwitten@gmail.com>
12654
12655         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
12656         to an example.
12657
12658 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12659
12660         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
12661
12662 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
12663
12664         * doc/extend.texi (__sync Builtins): Fix grammar.
12665
12666 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12667
12668         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
12669
12670 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12671
12672         * varasm.c (emit_local): Move definition of align.
12673
12674 2015-04-08  Julian Brown  <julian@codesourcery.com>
12675
12676         * config/nvptx/mkoffload.c (process): Support variable mapping.
12677
12678 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
12679
12680         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
12681         alpha_links **.
12682         (alpha_write_one_linkage): Correct typo.
12683
12684 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
12685
12686         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
12687
12688 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
12689
12690         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
12691
12692 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
12693
12694         * tree-chkp.h (chkp_insert_retbnd_call): New.
12695         * tree-chkp.c (chkp_insert_retbnd_call): New.
12696         * ipa-split.c (insert_bndret_call_after): Remove.
12697         (split_function): Use chkp_insert_retbnd_call.
12698         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
12699         bounds for instrumented functions.
12700
12701 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
12702
12703         PR ipa/65540
12704         * calls.c (initialize_argument_information): When producing tail
12705         call also turn SSA_NAMES passed by references to original PARM_DECLs
12706
12707 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
12708
12709         PR target/65648
12710         * lra-remat.c (do_remat): Process input and non-input insn
12711         registers separately.
12712
12713 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
12714
12715         PR debug/65678
12716         * valtrack.c (debug_lowpart_subreg): New function.
12717         (dead_debug_insert_temp): Use it.
12718
12719         PR middle-end/65680
12720         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
12721         into signed HOST_WIDE_INT the same as negative bit_offset.
12722
12723 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
12724
12725         * ipa-comdats.c (ipa_comdats): Visit all thunks
12726         to set proper comdat group.
12727
12728 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12729
12730         PR target/65489
12731         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
12732         on constants for NEON VSTRUCT modes.
12733
12734 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
12735             Iain Sandoe  <iain@codesourcery.com>
12736
12737         PR target/65351
12738         * configure: Regenerate.
12739
12740 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
12741
12742         PR target/65614
12743         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
12744         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
12745         that LFD is used to load double constants instead of LFS.  Add
12746         defaults for all costs structures.  Add comments for missing
12747         initialization fields.
12748         (size32_cost): Likewise.
12749         (size64_cost): Likewise.
12750         (rs64a_cost): Likewise.
12751         (mpccore_cost): Likewise.
12752         (ppc403_cost): Likewise.
12753         (ppc405_cost): Likewise.
12754         (ppc440_cost): Likewise.
12755         (ppc476_cost): Likewise.
12756         (ppc601_cost): Likewise.
12757         (ppc603_cost): Likewise.
12758         (ppc604_cost): Likewise.
12759         (ppc604e_cost): Likewise.
12760         (ppc620_cost): Likewise.
12761         (ppc630_cost): Likewise.
12762         (ppccell_cost): Likewise.
12763         (ppc750_cost): Likewise.
12764         (ppc7450_cost): Likewise.
12765         (ppc8540_cost): Likewise.
12766         (ppce300c2c3_cost): Likewise.
12767         (ppce500mc_cost): Likewise.
12768         (ppce500mc64_cost): Likewise.
12769         (ppce5500_cost): Likewise.
12770         (ppce6500_cost): Likewise.
12771         (titan_cost): Likewise.
12772         (power4_cost): Likewise.
12773         (power6_cost): Likewise.
12774         (power7_cost): Likewise.
12775         (power8_cost): Likewise.
12776         (ppca2_cost): Likewise.
12777         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
12778
12779         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
12780         instead of XXLOR to copy SFmode to clear out dirty bits created
12781         when SFmode denormals are generated.
12782         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
12783         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
12784
12785 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
12786
12787         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
12788         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
12789         * config/aarch64/aarch64-tune.md: Regenerate.
12790
12791 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
12792
12793         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
12794         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
12795         * config/arm/arm-cores.def (exynos-m1): New core.
12796         * config/arm/arm-tune.md: Regenerate.
12797         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
12798         * config/arm/bpabi.h: Likewise.
12799
12800 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
12801
12802         * ipa-cp (set_single_call_flag): Remove too
12803         restrictive assert.
12804
12805 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
12806
12807         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
12808         GOMP_offload_unregister from the destructor.
12809
12810 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
12811
12812         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
12813         flags for instrumentation thunk.
12814         (chkp_produce_thunks): Likewise.
12815
12816 2015-04-05  Martin Liska  <mliska@suse.cz>
12817
12818         PR ipa/65665
12819         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
12820         has computed data structure.
12821         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
12822
12823 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
12824
12825         * invoke.texi (inline-unit-growth): Increase growth to 20%
12826         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
12827
12828 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
12829
12830         PR target/65647
12831         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
12832         value checking.
12833         (lra_rematerialization_iter): New.
12834         * lra.c (lra): Initialize lra_rematerialization_iter.
12835         Stop updating lra_constraint_new_regno_start after switching of
12836         inheritance and rematerialization.
12837         * lra-remat.c (lra_rematerialization_iter): New.
12838         (lra_remat): Add printing pass iteration.  Do rematerialization
12839         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
12840
12841 2015-04-04  Richard Biener  <rguenther@suse.de>
12842
12843         PR tree-optimization/64909
12844         PR tree-optimization/65660
12845         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
12846         to take a cost vector for scalar iteration cost.
12847         (vect_get_single_scalar_iteration_cost): Likewise.
12848         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
12849         Compute the scalar iteration cost into a cost vector.
12850         (vect_get_known_peeling_cost): Use the scalar cost vector to
12851         account for the cost of the peeled iterations.
12852         (vect_estimate_min_profitable_iters): Likewise.
12853         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12854         Likewise.
12855
12856 2015-04-04  Alan Modra  <amodra@gmail.com>
12857
12858         PR target/65576
12859         PR target/65240
12860         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
12861         0.0 constant unless TARGET_VSX.
12862         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
12863         alternative.
12864
12865 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
12866
12867         PR ipa/65654
12868         * ipa-inline-transform.c (inline_call): Skip sanity check to work
12869         around the ICE
12870
12871 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
12872
12873         PR ipa/65655
12874         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
12875         speculative indirect edges to avoid ordering issue.
12876
12877 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
12878
12879         PR ipa/65076
12880         * ipa-inline.c (edge_badness): Add combined size to the denominator.
12881
12882 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
12883
12884         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
12885         TYPE_ARTIFICIAL on the .omp_data* types.
12886
12887 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12888
12889         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
12890         instrumentation thunks.
12891
12892 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12893
12894         * config/i386/i386.c (ix86_expand_call): Avoid nested
12895         PARALLEL in returned call value.
12896
12897 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12898
12899         * lto-cgraph.c (input_cgraph_1): Always link instrumented
12900         assembler name with original one.
12901
12902 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
12903
12904         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
12905
12906 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
12907
12908         Revert parts of r216820.
12909         * config/i386/i386.md (movqi_internal): Correct type calculation
12910         for alternatives 3 and 5.
12911
12912 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
12913
12914         PR preprocessor/61977
12915         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
12916         predefine __vector/__bool/__pixel macros nor context sensitive
12917         macros for CLK_ASM.
12918         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
12919
12920 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
12921
12922         * config/pa/pa.c (pa_output_move_double): Directly handle register
12923         indexed memory operand.  Simplify handling of scaled register indexed
12924         memory operands.
12925
12926 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12927
12928         PR driver/65444
12929         * config/i386/linux-common.h (MPX_SPEC): New.
12930         (CHKP_SPEC): Add MPX_SPEC.
12931         * doc/invoke.texi (-fcheck-pointer-boudns): Document
12932         possible issues with '-z bndplt' support in linker.
12933
12934 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
12935
12936         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
12937         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
12938         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
12939         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
12940         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
12941
12942 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
12943
12944         * config/i386/sync.md (UNSPEC_MOVA): Remove.
12945         (atomic_load<mode>): Change operand 0 predicate to
12946         nonimmediate_operand and fix up the destination when needed.
12947         Use UNSPEC_LDA.
12948         (atomic_loaddi_fpu): Use UNSPEC_LDA.
12949         (atomic_store<mode>): Change operand 1 predicate to
12950         nonimmendate_operand and move the source to register when needed.
12951         Use UNSPEC_STA.
12952         (atomic_store<mode>_1): Use UNSPEC_STA.
12953         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
12954         Fix moves from memory operand.  Use UNSPEC_STA.
12955
12956 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12957
12958         * expmed.c (strict_volatile_bitfield_p): Check that the access will
12959         not cross a MODESIZE boundary.
12960         (store_bit_field, extract_bit_field): Added assertions in the
12961         strict volatile bitfields code path.
12962
12963 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
12964
12965         PR target/65624
12966         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
12967         Increase args array size by one to avoid buffer overflow.
12968
12969 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
12970
12971         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
12972         split_part.
12973         * ipa-inline.c (edge_badness): Add wrapper penalty.
12974         (sum_callers): Move up.
12975         (inline_small_functions): Set single_caller.
12976         * ipa-inline.h (inline_summary): Add single_caller.
12977         * ipa-split.c (split_function): Set split_part.
12978         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
12979         * cgraph.h (cgraph_node): Add split_part.
12980
12981 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
12982
12983         PR target/58945
12984         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
12985         Do not split operands 0 and operands 2 to halfmode.
12986         (atomic_compare_and_swap<mode>): Update for
12987         atomic_compare_and_swap<dwi>_doubleword changes.
12988
12989 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
12990
12991         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
12992         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
12993         no caching is done.
12994
12995 2015-03-31  Martin Liska  <mliska@suse.cz>
12996
12997         PR ipa/65557
12998         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
12999         has already filled up function summary.
13000         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
13001
13002 2015-03-31  Richard Biener  <rguenther@suse.de>
13003
13004         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
13005         of types.
13006
13007 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13008
13009         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
13010         nested functions.
13011         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
13012         (s390_asm_output_function_label): Adapt to new signature of
13013         s390_function_num_hotpatch_hw
13014         Optimise the code generating assembler output.
13015         Add comments to assembler file.
13016
13017 2015-03-31  Richard Biener  <rguenther@suse.de>
13018
13019         PR middle-end/65626
13020         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
13021         of the noreturn call so it is last and cleanup_control_flow_bb
13022         can do the CFG part.
13023
13024 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
13025
13026         PR target/65531
13027         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
13028         same_comdat_group for external symbols.
13029         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
13030         infinite same_comdat_group traversal loop.
13031
13032 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
13033
13034         PR plugins/61176
13035         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
13036         automatically to $headers.
13037
13038 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
13039
13040         PR ipa/65610
13041         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
13042         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
13043         function.
13044         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
13045         Use it.
13046         * ipa-prop.c (param_type_may_change_p): Likewise.
13047         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
13048         (remove_unused_scope_block_p): Add in_ctor_dtor_block
13049         argument.  Before inlining, preserve
13050         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
13051         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
13052         recursive calls.
13053         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
13054
13055 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
13056
13057         PR ipa/65076
13058         * ipa-inline.c (edge_badness): Base denominator on callee's
13059         grwoth squared.
13060
13061 2015-03-27  Martin Jambor  <mjambor@suse.cz>
13062
13063         PR ipa/65478
13064         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
13065         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
13066         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
13067         node_calling_single_call.
13068         * ipa-cp.c (count_callers): New function.
13069         (set_single_call_flag): Likewise.
13070         (initialize_node_lattices): Count callers and set single_flag_call if
13071         necessary.
13072         (incorporate_penalties): New function.
13073         (good_cloning_opportunity_p): Use it, dump new flags.
13074         (propagate_constants_topo): Set node_within_scc flag if appropriate.
13075         * doc/invoke.texi (ipa-cp-recursion-penalty,
13076         ipa-cp-single-call-pentalty): Document.
13077
13078 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
13079
13080         PR ipa/65588
13081         * symtab.c (symtab_node::get_partitioning_class): Register vars
13082         are duplicated.
13083         * varpool.c (symbol_table::output_variables) Do not assemble unefined
13084         decls for non-symbols.
13085
13086 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
13087
13088         PR target/65248
13089         * output.h (default_binds_local_p_2): New.
13090         * varasm.c (default_binds_local_p_2): Renamed to ...
13091         (default_binds_local_p_3): This.  Don't return true on protected
13092         data symbol if protected data may be external.
13093         (default_binds_local_p): Use default_binds_local_p_3.
13094         (default_binds_local_p_1): Likewise.
13095         (default_binds_local_p_2): New.
13096         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
13097         default_binds_local_p_2 if TARGET_MACHO is undefined.
13098
13099 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
13100
13101         PR target/65593
13102         * config/i386/i386.c (legitimize_pic_address): If base
13103         is SYMBOL_REF or LABEL_REF using %rip addressing, force
13104         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
13105
13106 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
13107
13108         PR target/65531
13109         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
13110         comdat groups.
13111
13112 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
13113
13114         PR ipa/65600
13115         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
13116         of optimized out indirect call.
13117         (redirect_to_unreachable): Always build symbol table node for
13118         BUILT_IN_UNREACHABLE
13119
13120 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
13121
13122         PR target/65407
13123         * ira-costs.c (record_reg_classes): Process all constraint string
13124         containing 0-9.
13125
13126 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
13127
13128         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
13129         memory_operand.
13130
13131         PR target/65052
13132         * config/c6x/constraints.md (S3): New constraint.
13133         * config/c6x/c6x.md (real_jump): Use it.
13134
13135 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
13136
13137         PR middle-end/65595
13138         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
13139         do redirection if the call is not optimized out.
13140
13141 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
13142
13143         PR target/65495
13144         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
13145         (fchkp-check-incomplete-type): Add LTO.
13146         (fchkp-zero-input-bounds-for-main): Likewise.
13147         (fchkp-first-field-has-own-bounds): Likewise.
13148         (fchkp-narrow-bounds): Likewise.
13149         (fchkp-narrow-to-innermost-array): Likewise.
13150         (fchkp-use-static-bounds): Likewise.
13151         (fchkp-use-static-const-bounds): Likewise.
13152         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
13153
13154 2015-03-27  Marek Polacek  <polacek@redhat.com>
13155
13156         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
13157
13158 2015-03-27  Marek Polacek  <polacek@redhat.com>
13159
13160         PR sanitizer/65583
13161         * ubsan.c (ubsan_create_edge): New function.
13162         (instrument_bool_enum_load): Call it.
13163         (instrument_nonnull_arg): Likewise.
13164         (instrument_nonnull_return): Likewise.
13165         (instrument_object_size): Likewise.
13166
13167 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
13168
13169         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
13170         auto_vec.
13171
13172 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
13173
13174         PR lto/65536
13175         * lto-streamer.h (class lto_location_cache): New.
13176         (struct data_in): Add location_cache.
13177         (lto_input_location): Update prototype.
13178         (stream_input_location_now): New.
13179         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
13180         pointer to location.
13181         (stream_input_location): Update.
13182         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
13183         (warn_odr): Apply location cache before warning.
13184         (lto_input_location): Update prototype.
13185         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
13186         Use stream_input_location_now.
13187         * lto-streamer-in.c (lto_location_cache::current_cache): New static
13188         variable.
13189         (lto_location_cache::cmp_loc): New function.
13190         (lto_location_cache::apply_location_cache): New function.
13191         (lto_location_cache::accept_location_cache): New function.
13192         (lto_location_cache::revert_location_cache): New function.
13193         (lto_location_cache::input_location): New function.
13194         (lto_input_location): Do location caching.
13195         (stream_input_location_now): New function.
13196         (input_eh_region, input_struct_function_base): Use
13197         stream_input_location_now.
13198         (lto_data_in_create): use new.
13199         (lto_data_in_delete): Use delete.
13200         * tree-streamer-in.c (unpack_ts_block_value_fields,
13201         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
13202         lto_input_ts_exp_tree_pointers): Update for cached location api.
13203
13204 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
13205
13206         PR ipa/65076
13207         * passes.def: Add pass_nothrow.
13208         * ipa-pure-const.c: (pass_data_nothrow): New.
13209         (pass_nothrow): New.
13210         (pass_nothrow::execute): New.
13211         (make_pass_nothrow): New.
13212         * tree-pass.h (make_pass_nothrow): Declare.
13213
13214 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
13215
13216         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
13217         edge to change by speculation resolution or redirection.
13218         (edge_set_predicate): Likewise.
13219         (inline_summary_t::duplicate): Likewise.
13220         (remap_edge_summaries): Likewise.
13221
13222 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
13223
13224         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
13225         New macros.
13226         (can_inline_edge_p): Relax option matching for always inline functions.
13227
13228 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
13229
13230         PR target/65561
13231         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
13232         Check operand 4 and operand 0 for equality.
13233         (avx512f_vextract<shuffletype>32x4_1_maskm):
13234         Check operand 6 and operand 0 for equality.
13235         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
13236         for equality.
13237         (vec_extract_hi_<mode>_maskm): Ditto.
13238
13239 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
13240
13241         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
13242         dead calls back to live.
13243         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
13244         cross check to ...
13245         (cgraph_node::verify_node): ... here; verify only callee edges,
13246         not caller.
13247         * cif-code.def (CILK_SPAWN): New code.
13248
13249 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
13250
13251         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
13252         (edge_set_predicate): Use it to mark unreachable edges.
13253         (inline_summary_t::duplicate): Remove unnecesary code.
13254         (remap_edge_summaries): Likewise.
13255         (dump_inline_summary): Report contains_cilk_spawn.
13256         (compute_inline_parameters): Compute contains_cilk_spawn.
13257         (inline_read_section, inline_write_summary): Stream
13258         contains_cilk_spawn.
13259         * ipa-inline.c (can_inline_edge_p): Do not touch
13260         DECL_STRUCT_FUNCTION that may not be available;
13261         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
13262         remove check for callee_fun->can_throw_non_call_exceptions and
13263         replace it by optimization attribute check; check for flag_exceptions.
13264         * ipa-inline-transform.c (inline_call): Maintain
13265         DECL_FUNCTION_PERSONALITY
13266         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
13267
13268 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
13269
13270         PR tree-optimization/65551
13271         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
13272         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
13273
13274 2015-03-26  Richard Biener  <rguenther@suse.de>
13275
13276         PR middle-end/65555
13277         * tree-cfg.c (verify_gimple_call): Do not require a call to
13278         have no LHS if it wasn't recognized as control altering yet.
13279
13280 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
13281
13282         PR tree-optimization/64715
13283         * passes.def: Add another instance of pass_object_sizes before ccp1.
13284         * tree-object-size.c (pass_object_sizes::execute): In
13285         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
13286         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
13287         __bos result and the computed constant.  Remove redundant
13288         checks, obsoleted by gimple_call_builtin_p test.
13289
13290         * var-tracking.c (variable_tracking_main_1): Don't track
13291         variables for targetm.no_register_allocation targets.
13292
13293 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
13294
13295         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
13296         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
13297
13298 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
13299
13300         PR target/65569
13301         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
13302         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
13303         0.0 is correctly setup.
13304         (extenddftf2_internal): Likewise.
13305
13306 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
13307
13308         PR tree-optimization/65177
13309         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
13310         (bb_in_bbs): New.
13311         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
13312         edges not adjacent on the path to the original code.
13313
13314 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
13315
13316         PR bootstrap/65537
13317         * doc/install.texi (Building a native compiler): Document new
13318         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
13319         configuration assumes that the host supports the linker plugin.
13320
13321 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
13322
13323         PR target/65508
13324         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
13325         chain for generated call.
13326
13327 2015-03-25  Richard Biener  <rguenther@suse.de>
13328
13329         * passes.c (pass_manager::execute_early_local_passes): Guard
13330         execution of pass_chkp_instrumentation_passes with
13331         flag_check_pointer_bounds.
13332         (pass_chkp_instrumentation_passes::gate): Likewise.
13333
13334 2015-03-25  Martin Liska  <mliska@suse.cz>
13335
13336         PR tree-optimization/65538
13337         * symbol-summary.h (function_summary::~function_summary):
13338         Relese memory for allocated summaries.
13339         (function_summary::release): New function.
13340
13341 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
13342
13343         PR lto/65515
13344         * lto-streamer-out.c (DFS::worklist): New struct.
13345         (DFS::worklist_vec): New data member.
13346         (DFS::next_dfs_num): Remove.
13347         (DFS::DFS): Rewritten using worklist instead of recursion,
13348         using most of code from DFS::DFS_write_tree.
13349         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
13350         pass it to DFS_write_tree calls.
13351         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
13352         quick initial checks push it into worklist_vec and return.
13353
13354 2015-03-25  Richard Biener  <rguenther@suse.de>
13355
13356         PR middle-end/65519
13357         * genmatch.c (expr::gen_transform): Re-write to avoid
13358         using gimple_build.
13359
13360 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
13361
13362         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
13363
13364 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
13365
13366         * config/arm/arm.opt (print_tune_info): New option.
13367         * config/arm/arm.c (arm_print_tune_info): New function.
13368         (arm_file_start): Call arm_print_tune_info.
13369         * config/arm/arm-protos.h (struct tune_params): Add comment.
13370         * doc/invoke.texi (@item -mprint-tune-info): New item.
13371         (-mtune): mention it in ARM Option Summary.
13372
13373 2015-03-25  DJ Delorie  <dj@redhat.com>
13374
13375         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
13376         correct clause.
13377
13378 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
13379             Martin Liska  <mliska@suse.cz>
13380
13381         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
13382         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
13383         (sem_item::add_type): New function.
13384         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
13385         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
13386         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
13387         (sem_function::equals_wpa): Fix typo.
13388         * ipa-icf.h (sem_item::add_type): New function.
13389         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
13390         order.
13391
13392 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
13393
13394         PR tree-optimization/65533
13395         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
13396         with swapped operands, call vect_free_slp_tree on
13397         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
13398         vector.
13399
13400 2015-03-24  Richard Biener  <rguenther@suse.de>
13401
13402         PR middle-end/65517
13403         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
13404         for fixup if necessary.
13405
13406 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
13407
13408         * doc/extend.texi (Function Attributes): Add @cindex entries
13409         for all attributes and regularize their format.  Delete text
13410         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
13411         information about "eightbit_data", "tiny_data", and "model"
13412         variable attributes to the Variable Attributes section.  Fix
13413         some obvious typos and copy-editing issues.
13414         (Variable Attributes, Type Attributes): Likewise add/fix
13415         @cindex entries for all attributes.
13416
13417 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
13418
13419         PR target/65523
13420         * tree-chkp.c (chkp_build_returned_bound): Ignore
13421         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
13422
13423 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
13424
13425         PR target/65505
13426         * config/sh/predicates.md (simple_mem_operand,
13427         displacement_mem_operand): Add test for reg.
13428         (short_displacement_mem_operand): Test for displacement_mem_operand
13429         before invoking sh_disp_addr_displacement.
13430         * config/sh/constraints.md (Sdd, Sra): Simplify.
13431         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
13432         Remove redundant displacement_mem_operand tests.
13433
13434 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
13435
13436         PR target/65296
13437         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
13438         the same -mmcu=MCU more than once.
13439
13440 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
13441
13442         PR bootstrap/65522
13443         * ipa-devirt.c: Remove duplicate demangle.h include.
13444
13445         PR target/65504
13446         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
13447         on the pseudo.
13448         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
13449         REG_POINTER on *destptr after adjusting it for prologue size.
13450
13451         PR ipa/65521
13452         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
13453         ultimate_alias_target ()->order ints instead of
13454         ultimate_alias_target () pointers.
13455
13456 2015-03-23  Richard Biener  <rguenther@suse.de>
13457
13458         PR tree-optimization/65518
13459         * tree-vect-stmts.c (vectorizable_load): Reject single-element
13460         interleaving cases we generate absymal code for.
13461
13462 2015-03-23  Richard Biener  <rguenther@suse.de>
13463
13464         PR tree-optimization/65494
13465         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
13466         matches here.
13467         (vect_analyze_slp_instance): But do that here, always and once.
13468
13469 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13470
13471         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
13472         adding T or multiplying by T+1 and subracting T.
13473
13474 2015-03-22  Jeff Law  <law@redhat.com>
13475
13476         PR rtl-optimization/64317
13477         * Makefile.in (OBJS): Add gcse-common.c
13478         * gcse.c: Include gcse-common.h
13479         (struct modify_pair_s): Move structure definition to gcse-common.h
13480         (compute_transp): Move function to gcse-common.c.
13481         (canon_list_insert): Similarly.
13482         (record_last_mem_set_info): Break out some code and put it into
13483         gcse-common.c.  Call into the new common code.
13484         (compute_local_properties): Pass additional arguments to compute_transp.
13485         * postreload-gcse.c: Include gcse-common.h and df.h
13486         (modify_mem_list_set, blocks_with_calls): New variables.
13487         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
13488         (get_bb_avail_insn): Pass in the expression index too.
13489         (alloc_mem): Allocate memory for the new bitmaps and lists.
13490         (free_mem): Free memory for the new bitmaps and lists.
13491         (insert_expr_in_table): Record a bitmap index for each entry we
13492         add to the table.
13493         (record_last_mem_set_info): Call into common code in gcse-common.c.
13494         (get_bb_avail_insn): If no available insn was found in the requested
13495         BB.  If BB has a single predecessor, see if the expression is
13496         transparent in BB and available in that single predecessor.
13497         (compute_expr_transp): New wrapper for compute_transp.
13498         (eliminate_partially_redundant_load): Pass expression's bitmap_index
13499         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
13500         (gcse_after_reload_main): If there are elements in the hash table,
13501         then compute transparency for all the elements in the hash table.
13502         * gcse-common.h: New file.
13503         * gcse-common.c: New file.
13504
13505 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
13506
13507         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
13508         as an adjective.
13509         (System Headers): Likewise.
13510         (Ifdef): Likewise.
13511         (Traditional macros): Likewise.
13512         (Invocation): Likewise.
13513         (Option Index): Likewise.
13514         * doc/cppopts.texi (-M): Likewise.
13515         (-finput-charset): Likewise.
13516         (--help): Likewise.
13517         * doc.invoke.texi (AVR Options): Likewise.
13518         (V850 Options): Likewise.
13519
13520 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
13521
13522         PR ipa/65475
13523         * ipa-devirt.c: Include demangle.h
13524         (odr_type_d): Add field rtti_broken.
13525         (odr_subtypes_equivalent_p): Do not require name to match.
13526         (compare_virtual_tables): Fix typo; if type already has ODR violation,
13527         bypass the tests; be ready for function referneces in vtables that are
13528         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
13529         (warn_odr): Give up for nameless types.
13530         (warn_types_mismatch): Report mismatch in mangled names;
13531         report mismatch in anonymous namespaces; look into component types to
13532         give useful error; report when mismatch is dragged in from other ODR
13533         type.
13534         (odr_types_equivalent_p): Match types for being polymorphic; avoid
13535         duplicated diagnostics.
13536         (add_type_duplicate): Reorder checks so more informative ones come
13537         first; fix typo; do not output "the extra base is defined here" when
13538         we did not warn.
13539         (BINFO_N_BASE_BINFOS): Relax sanity check.
13540
13541 2015-03-22  Martin Liska  <mliska@suse.cz>
13542             Jakub Jelinek  <jakub@redhat.com>
13543
13544         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
13545         masks that can potentially include a builtin.
13546         (ix86_add_new_builtins): Introduce fast filter for isa values
13547         that cannot trigger builtin inclusion.
13548
13549 2015-03-22  Martin Liska  <mliska@suse.cz>
13550
13551         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
13552         (sem_item::update_hash_by_local_refs): Likewise.
13553         (sem_variable::get_hash): Empty line is fixed.
13554         (sem_item_optimizer::execute): Include adding of hash references.
13555         (sem_item_optimizer::update_hash_by_addr_refs): New function.
13556         (sem_item_optimizer::build_hash_based_classes): Use local hash.
13557         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
13558         (sem_item::update_hash_by_local_refs): Likewise.
13559
13560 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
13561
13562         PR ipa/65502
13563         * ipa-comdats.c (enqueue_references): Walk through thunks.
13564         (ipa_comdats): Likewise.
13565         (set_comdat_group_1): New function.
13566
13567 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
13568
13569         PR ipa/65475
13570         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
13571         non-polymorphic
13572
13573 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
13574             Gerald Pfeifer  <gerald@pfeifer.com>
13575
13576         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
13577
13578 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
13579             Sandra Loosemore  <sandra@codesourcery.com>
13580
13581         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
13582         function parameter declaration.
13583         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
13584         Update arguments to nios2_adjust_call_address().
13585         (sibcall_internal): Rename from *sibcall.
13586         (sibcall_value_internal): Rename from *sibcall_value.
13587         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
13588         (nios2_large_got_address): Add target temp reg parameter.
13589         (nios2_got_address): Adjust call to nios2_large_got_address, add
13590         force_reg around it.
13591         (nios2_load_pic_address): Add target temp reg parameter, replace call
13592         to nios2_got_address with corresponding code.
13593         (nios2_legitimize_constant_address): Update call to
13594         nios2_load_pic_address.
13595         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
13596         to use temp reg for PIC loading purposes.
13597         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
13598         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
13599         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
13600
13601 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
13602
13603         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
13604         usage of "the @option{...}".
13605         (-Wopenmp-simd): Likewise.
13606         (-fsanitize-recover): Likewise.
13607         (-fsanitize-undefined-trap-on-error): Likewise.
13608         (-flto): Likewise.
13609         (tracer-dynamic-coverage-feedback): Likewise.
13610         (reorder-block-duplicate-feedback): Likewise.
13611         (loop-unroll-jam-size): Likewise.
13612         (-B): Likewise.
13613         (-I-): Likewise.
13614         (-mabs=legacy): Likewise.
13615         (-mupper-regs-df): Likewise.
13616         (-mupper-regs-sf): Likewise.
13617         (-mpointers-to-nested-functions): Likewise.
13618
13619 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
13620
13621         * doc/extend.texi (Cilk Plus Builtins): Add markup.
13622
13623 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
13624
13625         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
13626         additional index entries and cross-references.
13627         (-fchkp-check-incomplete-type): Likewise.
13628         (-fchkp-first-field-has-own-bounds): Likewise.
13629         (-fchkp-narrow-to-innermost-array): Likewise.
13630         (-fchkp-use-fast-string-functions): Likewise.
13631         (-fchkp-use-nochk-string-functions): Likewise.
13632         (-fchkp-use-static-const-bounds): Likewise.
13633         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
13634         (-fchkp-instrument-marked-only): Likewise.
13635         (-fchkp-use-wrappers): Likewise.
13636         (-static-libmpx): Likewise.
13637         (-static-libmpxwrappers): Likewise.
13638         * doc/extend.texi (bnd_legacy): Likewise.
13639         (bnd_instrument): Likewise.
13640         (bnd_variable_size): Likewise.
13641         (Pointer Bounds Checker builtins): Likewise.
13642
13643 2015-03-21  Tom de Vries  <tom@codesourcery.com>
13644
13645         PR tree-optimization/65458
13646         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
13647         * cgraph.h (cgraph_node): Add parallelized_function field.
13648         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
13649         (input_overwrite_node): Read parallelized_function field.
13650         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
13651         parallelized_function on cgraph_node for child_fn.
13652         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
13653         Remove include of gt-tree-parloops.h.
13654         (parallelized_functions): Remove static variable.
13655         (parallelized_function_p): Rewrite using parallelized_function field of
13656         cgraph_node.
13657         (create_loop_fn): Remove adding to parallelized_functions.
13658         * Makefile.in (GTFILES): Remove tree-parloops.c
13659
13660 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
13661
13662         PR rtl-optimization/64366
13663         * lra.c (lra_update_insn_regno_info): Consider regs in
13664         CALL_INSN_FUNCTION_USAGE memory.
13665
13666 2015-03-20  Richard Biener  <rguenther@suse.de>
13667
13668         PR middle-end/64715
13669         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
13670         for type comparison and gcc_checking_assert.
13671         (chrec_fold_plus_poly_poly): Likewise.
13672         (chrec_fold_multiply_poly_poly): Likewise.
13673         (chrec_convert_1): Likewise.
13674         * gimplify.c (gimplify_expr): Remove premature folding of
13675         &X + CST to &MEM[&X, CST].
13676
13677 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
13678
13679         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
13680         already is final.
13681         (ipa_inline): Recompute inline_failed codes.
13682         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
13683         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
13684         CIF_FINAL_ERROR.
13685
13686 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
13687
13688         PR rtl-optimization/60851
13689         * recog.c (constrain_operands): Accept a pseudo register before reload
13690         for LRA enabled targets.
13691
13692 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
13693
13694         PR target/65240
13695         * config/rs6000/predicates.md (easy_fp_constant): Remove special
13696         -ffast-math handling that kept non-0 constants live in the RTL
13697         until reload.  Remove logic testing the number of instructions it
13698         took to create a constant in a GPR that was never used, due to a
13699         test for soft-float earlier.
13700         (memory_fp_constant): Delete, no longer used.
13701
13702         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
13703         alternatives for loading non-0 constants into GPRs for hard
13704         floating point that is no longer needed due to changes in
13705         easy_fp_constant.  Add support for loading 0.0 into GPRs.
13706         (mov<mode>_hardfloat32): Likewise.
13707         (mov<mode>_hardfloat64): Likewise.
13708         (mov<mode>_64bit_dm): Likewise.
13709         (movtd_64bit_nodm): Likewise.
13710         (pre-reload move FP constant define_split): Delete define_split,
13711         since it is no longer used.
13712         (extenddftf2_internal): Remove GHF constraints that are not valid
13713         for extenddftf2.
13714
13715 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
13716
13717         PR rtl-optimization/63491
13718         * lra-constraints.c (check_and_process_move): Use src instead of
13719         sreg.  Remove some dead code.
13720
13721 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
13722
13723         PR ipa/65380
13724         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
13725         (sem_variable::merge): Likewise.
13726
13727 2015-03-19  Martin Liska  <mliska@suse.cz>
13728
13729         PR ipa/65465
13730         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
13731         all fields of cgraph_thunk_info.
13732
13733 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
13734
13735         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
13736         clone instrumented thunks.
13737
13738 2015-03-19  Richard Biener  <rguenther@suse.de>
13739
13740         Revert
13741         2015-03-10  Richard Biener  <rguenther@suse.de>
13742
13743         PR middle-end/63155
13744         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
13745         * tree-ssa-coalesce.c: Include timevar.h.
13746         (attempt_coalesce): Handle graph being NULL.
13747         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
13748         Split out abnormal coalescing to ...
13749         (perform_abnormal_coalescing): ... this function.
13750         (coalesce_ssa_name): Perform abnormal coalescing without computing
13751         live/conflict.
13752         (verify_ssa_coalescing_worker): New function.
13753         (verify_ssa_coalescing): Likewise.
13754
13755 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13756             Jakub Jelinek  <jakub@redhat.com>
13757
13758         PR sanitizer/65400
13759         * tsan.c (instrument_gimple): Clear tail call flag on
13760         calls.
13761
13762 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
13763
13764         PR sanitizer/65400
13765         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
13766         call in the return bb.
13767         (find_split_points): Add RETURN_BB argument, don't call
13768         find_return_bb.
13769         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
13770         if true append TSAN_FUNC_EXIT internal call after the call to
13771         the split off function.
13772         (execute_split_functions): Call find_return_bb here.
13773         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
13774         Adjust find_split_points and split_function calls.
13775
13776 2015-03-18  DJ Delorie  <dj@redhat.com>
13777
13778         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
13779         (iorqi3_virt): Likewise.
13780
13781 2015-03-18  Tom de Vries  <tom@codesourcery.com>
13782
13783         * tree-parloops.c (parallelize_loops): Make static.
13784         * tree-parloops.h (parallelize_loops): Remove extern declaration.
13785
13786 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
13787
13788         PR middle-end/64491
13789         Revert:
13790         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
13791
13792         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
13793         condition would be removed due to undefined behaviour.
13794
13795 2015-03-18  Martin Liska  <mliska@suse.cz>
13796
13797         PR ipa/65432
13798         * cgraph.c (cgraph_node::get_create): Remove unnecessary
13799         xstrdup_for_dump wrapper.
13800         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
13801         sem_item::name.
13802         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
13803         with xstrdup_for_dump.
13804         (sem_variable::equals): Likewise.
13805         (sem_item_optimizer::read_section): Use symtab_node::name instead of
13806         sem_item::name.
13807         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
13808         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
13809         symtab_node::asm_name with xstrdup_for_dump.
13810         (congruence_class::dump): Use symtab_node::name instead of
13811         sem_item::name.
13812         * ipa-icf.h (symtab_node::name): Remove.
13813         (symtab_node::asm_name): Likewise.
13814
13815 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
13816
13817         PR tree-optimization/65450
13818         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
13819         function.
13820         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
13821         it instead of duplicate_ssa_name_ptr_info.
13822
13823         PR target/65222
13824         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
13825
13826 2015-03-18  Richard Biener  <rguenther@suse.de>
13827
13828         * tree-data-ref.h (struct access_matrix): Remove.
13829         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
13830         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
13831         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
13832         (am_vector_index_for_loop): Likewise.
13833         (struct data_reference): Remove access_matrix member.
13834         (DR_ACCESS_MATRIX): Remove.
13835         (lambda_vector_new): Add comment.
13836         (lambda_matrix_new): Use XOBNEWVEC.
13837
13838 2015-03-18  Richard Biener  <rguenther@suse.de>
13839
13840         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
13841         (pass_ch::execute): Cleanup the CFG only if we did sth.
13842         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
13843
13844 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13845
13846         * expmed.c (synth_mult): Use std::swap instead of manually
13847         swapping algorithms.
13848
13849 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
13850
13851         PR target/65078
13852         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
13853
13854 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
13855
13856         PR target/65296
13857         * config/avr/avr.opt (-nodevicelib): New option.
13858         * doc/invoke.texi (AVR Options): Document it.
13859         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
13860         libgcc.a, libc.a, libm.a.
13861         * config/avr/specs.h: Same.
13862         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
13863         which don't (directly) depend on the device.  Print more help.
13864         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
13865         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
13866         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
13867         case of an error.
13868         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
13869         for specs file name.
13870         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
13871         * config/avr/avr-mcus.def: Adjust initializers and comments.
13872
13873 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
13874
13875         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
13876         DECL_ONE_ONLY to check if decl is one only.
13877         * ipa-split.c (consider_split): Limit splitt of one only functions.
13878
13879 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
13880
13881         PR tree-optimization/65427
13882         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
13883         functions.
13884         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
13885
13886 2015-03-16  Marek Polacek  <polacek@redhat.com>
13887
13888         * cgraph.h (add_new_static_var): Remove declaration.
13889         * varpool.c (add_new_static_var): Remove function.
13890
13891 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
13892
13893         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
13894         instead of vec<tree> * with vec_alloc and release for args.
13895         Adjust all users.
13896
13897         PR middle-end/65431
13898         * omp-low.c (delete_omp_context): Only splay_tree_delete
13899         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
13900         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
13901
13902 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
13903
13904         PR sanitizer/64820
13905         * cfgexpand.c (align_base): New function.
13906         (alloc_stack_frame_space): Call it.
13907         (expand_stack_vars): Align prev_frame to be sure
13908         data->asan_vec elements aligned properly.
13909
13910 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
13911
13912         PR middle-end/65409
13913         * expr.c (store_field): Do not do a direct block copy if the source is
13914         a PARALLEL with BLKmode.
13915
13916 2015-03-16  Tom de Vries  <tom@codesourcery.com>
13917
13918         PR middle-end/65414
13919         Revert:
13920         2015-03-12  Tom de Vries  <tom@codesourcery.com>
13921
13922         PR rtl-optimization/64895
13923         * lra-lives.c (check_pseudos_live_through_calls): Use
13924         actual_call_used_reg_set instead of call_used_reg_set, if available.
13925
13926 2015-03-16  Alan Modra  <amodra@gmail.com>
13927
13928         PR target/63150
13929         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
13930         Modify Z->r bswapdi splitter to use dest in place of scratch.
13931         In r->Z and Z->r bswapdi splitter rename word_high, word_low
13932         to word1, word2 and rearrange logic to suit.
13933         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
13934         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
13935         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
13936         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
13937         early clobber.
13938
13939 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
13940
13941         PR tree-optimization/65369
13942         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
13943         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
13944         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
13945
13946         PR tree-optimization/65418
13947         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
13948         are casts in the first PLUS_EXPR operand, ensure tbias and
13949         *totallowp are in the inner type.
13950
13951         PR rtl-optimization/65401
13952         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
13953         argument.  If true, adjust_address_nv of x with big-endian
13954         correction for the mode widening to GET_MODE (y).
13955         (make_field_assignment): Don't do MEM mode widening here.
13956         Use MEM_P instead of GET_CODE == MEM.
13957
13958 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
13959
13960         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
13961         the external decls.
13962
13963 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13964
13965         PR target/64600
13966         * config/arm/arm.c (arm_gen_constant, AND case): Use
13967         ARM_SIGN_EXTEND when constructing AND mask.
13968
13969 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13970
13971         * graph.c (print_graph_cfg): Make function names visible and append
13972         parenthesis to it.  Also make groups of basic blocks belonging to the
13973         same function visible.
13974
13975 2015-03-12  Richard Biener  <rguenther@suse.de>
13976
13977         PR middle-end/44563
13978         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
13979         to avoid quadratic behavior with inline expansion splitting blocks.
13980         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
13981         with the successor if the predecessor will be merged with it.
13982         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
13983         entry block with its successor.
13984
13985 2015-03-13  Richard Biener  <rguenther@suse.de>
13986
13987         PR middle-end/44563
13988         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
13989         (cleanup_tree_cfg_1): Do not call it.
13990         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
13991         (fixup_noreturn_call): Mark the stmt as control altering.
13992         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
13993         here.
13994         (pass_data_fixup_cfg): Produce a dump file.
13995         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
13996         (need_noreturn_fixup): New global.
13997         (pass_dominator::execute): Fixup queued noreturn calls.
13998         (optimize_stmt): Queue calls that became noreturn for fixup.
13999         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
14000         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
14001         (el_to_fixup): New global.
14002         (eliminate_dom_walker::before_dom_childre): Queue calls that
14003         became noreturn for fixup.
14004         (eliminate): Fixup queued noreturn calls.
14005         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
14006         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
14007         (substitute_and_fold_dom_walker::before_dom_children): Queue
14008         alls that became noreturn for fixup.
14009         (substitute_and_fold): Fixup queued noreturn calls.
14010
14011 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
14012
14013         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
14014         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
14015         are building; for methods check ODR type of class they belong to if
14016         they may lead to a polymorphic call.
14017         (sem_function::compare_polymorphic_p): Be bit smarter about testing
14018         when function may lead to a polymorphic call.
14019         (sem_function::compare_type_list): Remove.
14020         (sem_variable::equals): Update use of compatible_types_p.
14021         (sem_variable::parse_tree_refs): Remove.
14022         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
14023         cdtor.
14024         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
14025         matching here.
14026         (func_checker::compatible_polymorphic_types_p): Break out from ...
14027         (unc_checker::compatible_types_p): ... here.
14028         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
14029         Declare.
14030         (unc_checker::compatible_types_p): Update.
14031         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
14032         Remove.
14033
14034 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14035
14036         PR rtl-optimization/65235
14037         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
14038         When first element of vec_concat is const_int, calculate its size
14039         using second element.
14040
14041 2015-03-12  Richard Biener  <rguenther@suse.de>
14042
14043         PR middle-end/65270
14044         * fold-const.c (operand_equal_p): Fix ordering of resetting
14045         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
14046
14047 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14048
14049         * config/s390/s390.c (s390_reorg): Move code to output nops after label
14050         to s390_reorg ().
14051         (s390_asm_output_function_label): Likewise.
14052         * config/s390/s390.c (s390_asm_output_function_label):
14053         Fix function label alignment with -mhtopatch.
14054         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
14055         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
14056         ("nop_2_byte"): New define_insn.
14057         ("nop_4_byte"): Likewise.
14058         ("nop_6_byte"): Likewise.
14059         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
14060         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
14061
14062 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
14063
14064         PR target/65103
14065         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
14066         register.
14067
14068 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
14069
14070         PR target/65044
14071         * toplev.c (process_options): Restrict Pointer Bounds Checker
14072         usage with Address Sanitizer.
14073
14074 2015-03-12  Richard Biener  <rguenther@suse.de>
14075
14076         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
14077         to split on.
14078         * omp-low.c (expand_omp_taskreg): Split block before removing
14079         the stmt.
14080         (expand_omp_target): Likewise.
14081         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
14082         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
14083         stmt to split_block.
14084
14085 2015-03-12  Tom de Vries  <tom@codesourcery.com>
14086
14087         PR rtl-optimization/64895
14088         * lra-lives.c (check_pseudos_live_through_calls): Use
14089         actual_call_used_reg_set instead of call_used_reg_set, if available.
14090
14091 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
14092
14093         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
14094         (cgraph_node::remove): Likewise.
14095         (cgraph_node::get_untransformed_body): Likewise.
14096         * varpool.c (varpool_node::remove): Likewise.
14097         (varpool_node::get_constructor): Add sanity check.
14098
14099 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
14100
14101         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
14102         old GCC versions.
14103         (-fabi-compat-version): Likewise.
14104         (-ffriend-injection): Likewise.
14105         (-Wdeclaration-after-statement): Likewise.
14106         (-fomit-frame-pointer): Likewise.
14107         (-ftree-coalesce-inlined-vars): Likewise.
14108         (-fvisibility=): Likewise.
14109         * doc/extend.texi (Typeof): Likewise.
14110         (Zero Length): Likewise.
14111         (Escaped Newlines): Likewise.
14112         (Compound Literals): Likewise.
14113         (Function Attributes): Likewise.
14114         (Label Attributes): Likewise.
14115         (Type Attributes): Likewise.
14116         (Function Names): Likewise.
14117         (Other Builtins): Likewise.
14118         (Function Specific Option Pragmas): Likewise.
14119         (C++ Interface): Likewise.
14120
14121 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
14122
14123         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
14124
14125 2015-03-11  Marek Polacek  <polacek@redhat.com>
14126
14127         PR tree-optimization/65388
14128         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
14129
14130 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
14131
14132         PR target/65296
14133         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
14134         * configure: Regenerate.
14135         * config.in: Regenerate.
14136         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
14137         [-mn-flash]: Document it.
14138         [__AVR_ARCH__]: Document avrtiny.
14139
14140         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
14141         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
14142         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
14143
14144 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14145
14146         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
14147
14148 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
14149
14150         PR target/65242
14151         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
14152         allow reloads of PLUS in floating point/VSX registers.
14153
14154 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
14155
14156         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
14157         crypto_sha256_fast.
14158         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
14159
14160 2015-03-11  Richard Biener  <rguenther@suse.de>
14161
14162         PR tree-optimization/65310
14163         * tree-sra.c (build_ref_for_offset): Also preserve larger
14164         alignment.
14165
14166 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
14167
14168         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
14169
14170 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
14171
14172         PR target/65368
14173         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
14174         new define_expand.
14175         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
14176
14177 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
14178
14179         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
14180         (sem_function::equals_wpa): ... here.
14181
14182 2015-03-10  Marek Polacek  <polacek@redhat.com>
14183             Jakub Jelinek  <jakub@redhat.com>
14184
14185         PR sanitizer/65367
14186         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
14187         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
14188         separately.
14189
14190 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
14191
14192         PR target/65286
14193         * config/rs6000/t-linux: For powerpc64* target set
14194         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
14195
14196 2015-03-10  Richard Biener  <rguenther@suse.de>
14197
14198         PR middle-end/44563
14199         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
14200         for redirect_all_calls.
14201
14202 2015-03-10  Marek Polacek  <polacek@redhat.com>
14203
14204         * gdbinit.in (pcfun): Define and document.
14205
14206 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
14207
14208         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
14209         of libgomp-plugin.h.
14210         (find_target_compiler): Support a case when the path to gcc is
14211         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
14212         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
14213         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
14214         libgomp-plugin.h.
14215         (main): Use GCC_INSTALL_NAME as target_driver_name.
14216         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
14217         define.
14218         (mkoffload.o): Remove obsolete include path and defines.
14219         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
14220
14221 2015-03-10  Richard Biener  <rguenther@suse.de>
14222
14223         PR middle-end/63155
14224         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
14225         * tree-ssa-coalesce.c: Include timevar.h.
14226         (attempt_coalesce): Handle graph being NULL.
14227         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
14228         Split out abnormal coalescing to ...
14229         (perform_abnormal_coalescing): ... this function.
14230         (coalesce_ssa_name): Perform abnormal coalescing without computing
14231         live/conflict.
14232         (verify_ssa_coalescing_worker): New function.
14233         (verify_ssa_coalescing): Likewise.
14234
14235 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
14236
14237         PR target/65296
14238         * config.gcc (extra_options) [avr]: Remove.
14239         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
14240         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
14241         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
14242
14243         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
14244         (-mmcu=): Add Var and MissingArgError properties.
14245         (-march=): Remove.
14246         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
14247         * config/avr/t-multilib: Regenerate.
14248         * config/avr/specs.h: New file.
14249         * config/avr/driver-avr.c: New file.
14250         * config/avr/genopt.sh: Remove file.
14251         * config/avr/avr-tables.opt: Remove file.
14252         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
14253         * config/avr/avr-c.c: Same.
14254         * avr-arch.h: Same.
14255         (avr_current_device): Remove proto.
14256         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
14257         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
14258         (EXTRA_SPEC_FUNCTIONS): Define.
14259         (avr_devicespecs_file): New specs function proto.
14260         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
14261         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
14262         (avr_current_device): Remove definition and usage.
14263         (avr_set_core_architecture): New static function.
14264         (avr_option_override): Use it.
14265         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
14266         (mcu_name): New static array.
14267         (comparator, avr_archs_str, avr_mcus_str): New static functions.
14268         (avr_inform_devices, avr_inform_core_architectures): New functions.
14269         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
14270         (avrlibc.h) [WITH_AVRLIBC]: Include.
14271         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
14272         (print_mcu): Rewrite from scratch.
14273         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
14274         Forward to avr-specific specs defined in device-specs file.
14275         * config/avr/t-avr (driver-avr.o): New rule.
14276         (avr-devices.o): Depend on avr-arch.h.
14277         (avr-mcus): No more depend on avr-tables.opt.
14278         (avr-tables.opt): Remove rule.
14279         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
14280
14281 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
14282
14283         * c-family/c.opt (fchkp-use-wrappers): New.
14284         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
14285         (chkp_wrap_function): New.
14286         (chkp_build_instrumented_fndecl): Support wrapped
14287         functions.
14288         * doc/invoke.texi (-fcheck-pointer-bounds): New.
14289         (-fchkp-check-incomplete-type): New.
14290         (-fchkp-first-field-has-own-bounds): New.
14291         (-fchkp-narrow-bounds): New.
14292         (-fchkp-narrow-to-innermost-array): New.
14293         (-fchkp-optimize): New.
14294         (-fchkp-use-fast-string-functions): New.
14295         (-fchkp-use-nochk-string-functions): New.
14296         (-fchkp-use-static-bounds): New.
14297         (-fchkp-use-static-const-bounds): New.
14298         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
14299         (-fchkp-check-read): New.
14300         (-fchkp-check-write): New.
14301         (-fchkp-store-bounds): New.
14302         (-fchkp-instrument-calls): New.
14303         (-fchkp-instrument-marked-only): New.
14304         (-fchkp-use-wrappers): New.
14305         (-static-libmpx): New.
14306         (-static-libmpxwrappers): New.
14307
14308 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
14309
14310         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
14311         (CHKP_SPEC): Add wrappers library.
14312         * c-family/c.opt (static-libmpxwrappers): New.
14313
14314 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
14315
14316         * config/i386/linux-common.h (LIBMPX_LIBS): New.
14317         (LIBMPX_SPEC): New.
14318         (CHKP_SPEC): New.
14319         * gcc.c (CHKP_SPEC): New.
14320         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
14321         * c-family/c.opt (static-libmpx): New.
14322
14323 2015-03-10  Richard Biener  <rguenther@suse.de>
14324
14325         PR middle-end/44563
14326         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
14327         for compare_type.
14328         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
14329         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
14330         (cgraph_add_edge_to_call_site_hash): Likewise.
14331         (cgraph_node::get_edge): Likewise.
14332         (cgraph_edge::set_call_stmt): Likewise.
14333         (cgraph_edge::remove_caller): Likewise.
14334
14335 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
14336
14337         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
14338         (callee_saved_gpr_regs_size): ... this.
14339         (callee_saved_regs_first_regno): Rename to ...
14340         (callee_saved_first_gpr_regno): ... this.
14341         (callee_saved_regs_last_regno) Rename to ...
14342         (callee_saved_last_gpr_regno): ... this.
14343         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
14344         variables.
14345         (nds32_initial_elimination_offset): Likewise.
14346         (nds32_expand_prologue): Likewise.
14347         (nds32_expand_epilogue): Likewise.
14348         (nds32_expand_prologue_v3push): Likewise.
14349         (nds32_expand_epilogue_v3pop): Likewise.
14350         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
14351         Adjust renamed variables.
14352         (nds32_output_stack_pop): Likewise.
14353
14354 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14355
14356         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
14357         code in comment.
14358
14359 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
14360
14361         PR rtl-optimization/65321
14362         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
14363         than shift mode.
14364         * var-tracking.c (use_narrower_mode): Likewise.
14365
14366 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
14367
14368         PR tree-optimization/65355
14369         * varasm.c (notice_global_symbol): Do not produce RTL.
14370         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
14371         anchor.
14372         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
14373         check for section anchors.
14374
14375 2015-03-10  Alan Modra  <amodra@gmail.com>
14376
14377         PR target/65286
14378         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
14379         to be single-arch by default.  Set cpu_is_64bit for powerpc64
14380         given --with-cpu=native.
14381         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
14382         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
14383         and powerpc64le.
14384         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
14385         rs6000_isa_flags rather than TARGET_64BIT.
14386
14387 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
14388             Kaz Kojima  <kkojima@gcc.gnu.org>
14389
14390         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
14391
14392 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
14393
14394         PR lto/65361
14395         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
14396         on a TREE_BINFO, instead use BINFO_TYPE.
14397
14398 2015-03-09  Richard Biener  <rguenther@suse.de>
14399
14400         PR middle-end/65270
14401         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
14402         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
14403         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
14404         of that.  When comparing dereferences compare alignment.
14405         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
14406
14407 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
14408
14409         * ipa-inline-analysis.c (check_callers): Check
14410         node->can_remove_if_no_direct_calls_and_refs_p.
14411         (growth_likely_positive): Reorganize to call
14412         can_remove_if_no_direct_calls_p later.
14413         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
14414         will_be_removed_from_program_if_no_direct_calls_p): Add
14415         will_inline parameter.
14416         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
14417         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
14418         Handle inliner case correctly.
14419
14420 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14421
14422         PR tree-optimization/63743
14423         * cfgexpand.c (reorder_operands): Also reorder if only second operand
14424         had its definition forwarded by TER.
14425
14426 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
14427
14428         PR lto/65316
14429         * ipa-utils.h (types_odr_comparable): Add strict argument.
14430         * ipa-devirt.c: Fix whitespace;
14431         (odr_hasher): Remove.
14432         (odr_name_hasher, odr_vtable_hasher): New hashers.
14433         (can_be_name_hashed_p): New predicate.
14434         (hash_type_name): remove.
14435         (hash_odr_name): New.
14436         (odr_name_hasher::hash): new.
14437         (can_be_vtable_hashed_p): New.
14438         (hash_odr_vtable): New.
14439         (odr_vtable_hasher::hash): New.
14440         (types_same_for_odr): Add strict parameter.
14441         (types_odr_comparable): Likewise.
14442         (odr_name_hasher::equal): New.
14443         (odr_vtable_hasher::equal): New.
14444         (odr_name_hasher::remove): New.
14445         (odr_hash_type): Change to hash_table<odr_name_hasher>.
14446         (odr_vtable_hash_type): New.
14447         (odr_vtable_hash): New.
14448         (odr_subtypes_equivalent_p): Do strict comparsion.
14449         (add_type_duplicate): Merge type names; cleanup; avoid type
14450         duplicates.
14451         (register_odr_type): Initialize vtable hash.
14452         (build_type_inheritance_graph): Likewise
14453         (get_odr_type): Reorg to use two hashes.
14454         (dump_possible_polymorphic_call_targets): Move sanity check after debug
14455         output.
14456         (ipa_devirt): Dump type_inheritance_graph.
14457         (types_same_for_odr): Add strict mode.
14458
14459 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
14460
14461         PR ipa/65334
14462         * cgraph.h (symtab_node): Add definition_alignment,
14463         can_increase_alignment_p and increase_alignment.
14464         * symtab.c (symtab_node::can_increase_alignment_p,
14465         increase_alignment_1, symtab_node::increase_alignment,
14466         symtab_node::definition_alignment): New.
14467         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
14468         can_increase_alignment_p.
14469         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
14470         * tree-vect-stmts.c (ensure_base_align): Likewise.
14471         * varasm.c (function_section_1): Use definition_alignment.
14472         (assemble_start_function): Likewise.
14473         (emit_local): likewise.
14474         (build_constant_desc): Likewsie.
14475         (output_constant_def_contents): Likewise.
14476         (place_block_symbol): Likewise.
14477         (output_object_block): Likewise.
14478
14479 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
14480
14481         PR ipa/65316
14482         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
14483         when outputting debug.
14484
14485 2015-03-07  Marek Polacek  <polacek@redhat.com>
14486             Martin Uecker  <uecker@eecs.berkeley.edu>
14487
14488         PR sanitizer/65280
14489         * doc/invoke.texi: Update description of -fsanitize=bounds.
14490
14491 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
14492
14493         * tree-ssa-phiopt.c (neg_replacement): Remove.
14494         (tree_ssa_phiopt_worker): Remove negate optimization.
14495
14496 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
14497
14498         PR ipa/65302
14499         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
14500
14501 2015-03-06  Richard Biener  <rguenther@suse.de>
14502
14503         PR middle-end/64928
14504         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
14505         and liveout_obstack members.
14506         (calculate_live_on_exit): Remove.
14507         (calculate_live_ranges): Change declaration.
14508         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
14509         (new_tree_live_info): Adjust.
14510         (calculate_live_ranges): Delete livein when not wanted.
14511         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
14512         Deal with partly deleted live info.
14513         (loe_visit_block): Remove temporary bitmap by using
14514         bitmap_ior_and_compl_into.
14515         (live_worklist): Adjust accordingly.
14516         (calculate_live_on_exit): Make static.
14517         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
14518         we do not need livein.
14519
14520 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
14521
14522         * real.c (real_from_string): Fix typo in assertion.
14523
14524 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
14525
14526         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
14527         the patch.
14528
14529 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
14530
14531         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
14532
14533 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
14534
14535         PR target/64342
14536         * lra-assigns.c (find_hard_regno_for): Rename to
14537         find_hard_regno_for_1.  Add a new parameter.
14538         (find_hard_regno_for): New function using find_hard_regno_for_1.
14539
14540 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14541
14542         PR rtl-optimization/65067
14543         * expmed.c (store_bit_field, extract_bit_field): Reworked the
14544         strict volatile bitfield handling.
14545
14546 2015-03-05  Martin Liska  <mliska@suse.cz>
14547
14548         PR ipa/65318
14549         * ipa-icf.c (sem_variable::equals): Compare variables types.
14550
14551 2015-03-05  Richard Henderson  <rth@redhat.com>
14552
14553         PR target/65121
14554         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
14555         correctly check weak symbol binding.
14556
14557 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
14558
14559         PR middle-end/65315
14560         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
14561         needed alignment.
14562
14563 2015-03-05  Martin Liska  <mliska@suse.cz>
14564
14565         * ipa-inline.c (inline_small_functions): Set default value to
14566         prevent warning during bootstrap.
14567         * tree.h: Add pragma guard that ignores false positives during
14568         bootstrap.
14569
14570 2015-03-05  Richard Biener  <rguenther@suse.de>
14571
14572         PR tree-optimization/65310
14573         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14574         Properly preserve alignment of the base of the access.
14575
14576 2015-03-05  Richard Biener  <rguenther@suse.de>
14577
14578         PR ipa/65270
14579         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
14580         Compare dependence info.
14581
14582 2015-03-05  Richard Biener  <rguenther@suse.de>
14583
14584         PR middle-end/65233
14585         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
14586         tree-into-ssa.h.
14587         (walk_ssa_copies): Revert last chage.  Instead do not walk
14588         SSA names registered for SSA update.
14589
14590 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
14591
14592         PR ipa/65270
14593         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
14594         vtable references for their containing type.
14595         (sem_function::equals_wpa): Compare TYPE_RESTRICT
14596         and type attributes.
14597
14598 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
14599
14600         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
14601         before negating it.
14602         * stor-layout.c (finalize_record_size): Revert latest change.
14603
14604 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
14605
14606         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
14607
14608 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
14609
14610         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
14611         for correct comdat handling.
14612         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
14613         Likewise.
14614         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
14615         (used_from_object_file_p_worker): Remove.
14616         (cgraph_node::only_called_directly_or_alised): Add
14617         used_from_object_file_p.
14618         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
14619         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
14620         can_remove_if_no_direct_calls_and_refs_p.
14621
14622 2015-03-04  Nick Clifton  <nickc@redhat.com>
14623
14624         * config/rl78/rl78.h (enum reg_class): Remove real registers from
14625         General register class.
14626         * config/rl78/rl78-real.md: Replace general register constraints
14627         with real+virtual register constraints.
14628
14629 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14630
14631         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
14632         from checking for -mhtm option.
14633
14634 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
14635
14636         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
14637         (struct ipa_sra_check_caller_data): Add has_thunk field.
14638         (ipa_sra_check_caller): Check for thunk.
14639         (ipa_sra_preliminary_function_checks): Give up on function with
14640         thunks.
14641         (ipa_early_sra): Use call_for_symbol_and_aliases.
14642
14643 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
14644
14645         PR target/65249
14646         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
14647         called for __stack_chk_guard symbol.
14648
14649 2015-03-03  DJ Delorie  <dj@redhat.com>
14650
14651         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
14652         inc/dec.
14653         (*addhi3_real): Likewise.
14654         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
14655         pattern to match incrementing memory.
14656         * config/rl78/predicates.md (rl78_1_2_operand): New.
14657         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
14658         it's the same and only mem.
14659         (rl78_alloc_physical_registers_op2): If there's effectively only
14660         one MEM, transcode it into HL.
14661         (rl78_far_p): Reject addresses that aren't legitimate.
14662
14663 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
14664
14665         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
14666         negating it.
14667
14668         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
14669
14670 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
14671
14672         Implement call0 ABI for xtensa
14673         * config/xtensa/constraints.md ("a" constraint): Include stack
14674         pointer in case of call0 ABI.
14675         ("q" constraint): Make empty in case of call0 ABI.
14676         ("D" constraint): Include stack pointer in case of call0 ABI.
14677         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
14678         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
14679         prototypes.
14680         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
14681         variable.
14682         (xtensa_regno_to_class): Make it a local variable in the
14683         function xtensa_regno_to_class.
14684         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
14685         macro, function prototype and implementation.
14686         (reg_nonleaf_alloc_order): Make it a local variable in the
14687         function order_regs_for_local_alloc.
14688         (xtensa_conditional_register_usage): New function.
14689         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
14690         (xtensa_valid_move): Allow direct moves to stack pointer
14691         register in call0 ABI.
14692         (xtensa_setup_frame_addresses): Only spill register windows in
14693         windowed ABI.
14694         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
14695         call0 ABI respectively.
14696         (xtensa_function_arg_1): Only mark a7 register for copying in
14697         windowed ABI.
14698         (xtensa_call_save_reg): New function.
14699         (compute_frame_size): Add space for callee saved register
14700         storage to the frame size in call0 ABI.
14701         (xtensa_expand_prologue): Generate code to set up stack frame
14702         and save callee-saved registers in call0 ABI.
14703         (xtensa_expand_epilogue): New function.
14704         (xtensa_set_return_address): New function.
14705         (xtensa_return_addr): Calculate return address in call0 ABI.
14706         (xtensa_builtin_saveregs): Only mark a7 register for copying and
14707         emit copying code in windowed ABI.
14708         (order_regs_for_local_alloc): Add preferred register allocation
14709         order for non-leaf function in call0 ABI.
14710         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
14711         (xtensa_asm_trampoline_template): Add trampoline generation for
14712         call0 ABI.
14713         (xtensa_trampoline_init): Add trampoline initialization for
14714         call0 ABI.
14715         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
14716         functions.
14717         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
14718         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
14719         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
14720         ABI call-used registers.
14721         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
14722         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
14723         call0 ABI.
14724         (REG_CLASS_CONTENTS): Include all registers into the preferred
14725         reload registers set, adjust the set in the
14726         xtensa_conditional_register_usage.
14727         (xtensa_regno_to_class): Drop variable declaration.
14728         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
14729         function.
14730         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
14731         respectively.
14732         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
14733         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
14734         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
14735         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
14736         location in call0 ABI.
14737         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
14738         stack adjustment size when handling exception.
14739         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
14740         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
14741         definitions.
14742         ("return" pattern): Generate ret.n/ret in call0 ABI.
14743         ("epilogue" pattern): Expand epilogue.
14744         ("nonlocal_goto" pattern): Use default in call0 ABI.
14745         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
14746         emit eh_set_a0_* depending on ABI.
14747         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
14748         ("eh_set_a0_call0", "blockage"): New patterns.
14749
14750 2015-03-03  Martin Liska  <mliska@suse.cz>
14751
14752         PR ipa/65287
14753         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
14754
14755 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
14756
14757         PR 65138/target
14758         * config/rs6000/rs6000-tables.opt: Regenerate table.
14759
14760 2015-03-03  Renlin Li  <renlin.li@arm.com>
14761
14762         * doc/md.texi (@item ^): Change ? into ^.
14763
14764 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
14765
14766         * doc/tm.texi: Regenerated.
14767
14768 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
14769
14770         * builtins.c (expand_builtin_return_addr): Add
14771         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
14772         surrounding #ifdef.
14773         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
14774         definition to 1.
14775         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
14776         Likewise.
14777         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
14778         undefined.
14779         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
14780         paragraph.
14781
14782 2015-03-03  Martin Jambor  <mjambor@suse.cz>
14783             Eric Botcazou  <ebotcazou@adacore.com>
14784
14785         * tree-sra.c (ipa_sra_check_caller_data): New type.
14786         (has_caller_p): Removed.
14787         (ipa_sra_check_caller): New function.
14788         (ipa_sra_preliminary_function_checks): Use it.
14789
14790 2015-03-03  Martin Liska  <mliska@suse.cz>
14791
14792         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
14793         instead of if branch.
14794
14795 2015-03-03  Martin Liska  <mliska@suse.cz>
14796
14797         PR ipa/65282
14798         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
14799
14800 2015-03-23  Jeff Law  <law@redhat.com>
14801
14802         PR tree-optimization/65241
14803         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
14804         hash table if INSERT is true.
14805
14806 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
14807
14808         PR target/65296
14809         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
14810
14811 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
14812
14813         PR target/64331
14814         * config/avr/avr.c (context.h, tree-pass.h): Include them.
14815         (avr_pass_data_recompute_notes): New static variable.
14816         (avr_pass_recompute_notes): New class.
14817         (avr_register_passes): New static function.
14818         (avr_option_override): Call it.
14819
14820 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
14821
14822         Fix various problems with specs file generation.
14823
14824         PR target/65296
14825         * config.gcc (extra_gcc_objs) [avr]: Remove.
14826         * config/avr/driver-avr.c: Remove file.
14827         * config/avr/t-avr (driver-avr.o): Remove rule.
14828         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
14829         INCLUDES to build.  Depend on TM_H.
14830         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
14831         build warnings.  Fix non-matching types and non-existing %-codes.
14832         (tm.h): Include.
14833         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
14834         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
14835         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
14836         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
14837         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
14838         (LIBGCC_SPEC): Remove definitions.
14839
14840 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
14841
14842         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
14843         to create a register in testing mode.
14844
14845 2015-03-03  Martin Liska  <mliska@suse.cz>
14846             Jan Hubicka  <hubicka@ucw.cz>
14847
14848         PR ipa/65263
14849         * cgraph.c (cgraph_node::has_thunk_p): New function.
14850         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
14851         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
14852         (sem_function::merge): Assert is changed.
14853
14854 2015-03-03  Martin Liska  <mliska@suse.cz>
14855             Martin Jambor  <mjambor@suse.cz>
14856
14857         PR ipa/65087
14858         * ipa-icf.c (sem_item_optimizer::execute): Change function
14859         return value to boolean.
14860         (sem_item_optimizer::merge_classes): Likewise.
14861         (ipa_icf_driver): Return TODO_remove_functions in case there's
14862         a merge operation processed.
14863         * ipa-icf.h: Change function return value to boolean.
14864
14865 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14866
14867         PR 65138/target
14868         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
14869         processor type for 64-bit little endian PowerPC.
14870
14871         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14872         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
14873         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
14874         printing built-in mask so it does not pass NULL pointers.
14875
14876         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
14877         -mcpu=powerpc64le.
14878
14879 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
14880
14881         PR target/58158
14882         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
14883         !ISA_HAS_FP_CONDMOVE.
14884
14885 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
14886
14887         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
14888         reload_completed.
14889
14890 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
14891
14892         * doc/invoke.texi (Options for Code Generation Conventions):
14893         Fix URL of DSO paper.
14894
14895 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
14896
14897         PR ipa/65130
14898         * ipa-inline.c (check_callers): Looks for recursion.
14899         (inline_to_all_callers): Give up on uninlinable or recursive edges.
14900         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
14901         summary of inline clones.
14902         (do_estimate_growth_1): Fix recursion check.
14903
14904 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
14905
14906         PR ipa/64988
14907         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
14908         comdat groups.
14909
14910 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
14911             Aldy Hernandez  <aldyh@redhat.com>
14912
14913         PR lto/65276
14914         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
14915         when checking TYPE_BINFO.
14916
14917 2015-03-02  Richard Biener  <rguenther@suse.de>
14918
14919         PR ipa/65270
14920         * ipa-icf-gimple.c: Include builtins.h.
14921         (func_checker::compare_memory_operand): Compare base alignment.
14922
14923 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
14924
14925         PR target/65184
14926         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
14927         are never passed by reference.
14928
14929 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
14930
14931         PR target/65183
14932         * tree-chkp.c (chkp_check_lower): Don't check against
14933         zero bounds for already instrumented functions.
14934         (chkp_check_upper): Likewise.
14935         (chkp_fini): Clean pass local data to avoid wrong reusage.
14936
14937 2015-02-28  Martin Liska  <mliska@suse.cz>
14938             Jan Hubicka  <hubicka@ucw.cz>
14939
14940         * ipa-icf.c (sem_variable::equals): Improve debug output;
14941         get variable constructor.
14942         (sem_variable::parse): Do not filter out too early; give up on
14943         volatile and register vars.
14944         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
14945         variables.
14946         * ipa-icf.h (sem_variable::init): Do not set ctor.
14947         (sem_variable::ctor): Remove.
14948
14949 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
14950
14951         PR middle-end/65233
14952         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
14953
14954 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
14955
14956         * ipa-icf.c: Include stor-layout.h
14957         (sem_function::compare_cgraph_references): Rename to ...
14958         (sem_item::compare_cgraph_references): ... this one.
14959         (sem_variable::equals_wpa): New function
14960         (sem_variable::equals): Do not check stuff already verified by
14961         equals_wpa.
14962         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
14963         * ipa-icf.h (sem_item): Add compare_cgraph_references.
14964         (sem_function): Remove compare_cgraph_references.
14965         (sem_variable): Turns equals_wpa into non-inline.
14966
14967 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
14968
14969         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
14970         (sem_item::add_expr): New function.
14971         (sem_function::hash_stmt): Handle operands of most statements.
14972         (sem_variable::get_hash): Hash the actual constructor.
14973         * ipa-icf.h (sem_item): Add add_expr.
14974         (sem_function): Update prototype of hash_stmt
14975
14976 2015-02-28  Martin Liska  <mliska@suse.cz>
14977             Jan Hubicka  <hubicka@ucw.cz>
14978
14979         PR ipa/65245
14980         * ipa-icf-gimple.c (func_checker::compare_function_decl):
14981         Remove.
14982         (func_checker::compare_variable_decl): Skip symtab vars.
14983         (func_checker::compare_cst_or_decl): Update.
14984         * ipa-icf.c (sem_function::parse): Do not consider aliases.
14985         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
14986         use correct symtab predicates.
14987         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
14988         (sem_variable::parse):  Update comment.
14989         (sem_item_optimizer::build_graph): Consider ultimate aliases
14990         for references.
14991
14992 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
14993
14994         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
14995         of OBJ_TYPE_REF.
14996
14997 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
14998
14999         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
15000         (sem_variable::merge) Likewise.
15001
15002 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
15003
15004         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
15005         target; also match flag_ipa_devirt.
15006
15007 2015-03-01  Martin Liska  <mliska@suse.cz>
15008             Jan Hubicka  <hubicka@ucw.cz>
15009
15010         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
15011         Validate variable alignment.
15012         * ipa-icf.c (sem_function::equals_private): Be more precise
15013         about non-common function attributes.
15014         (sem_variable::equals): Likewise.
15015
15016 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
15017
15018         PR ipa/65237
15019         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
15020         across COMDAT group boundary.
15021
15022 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
15023
15024         PR ipa/65232
15025         * ipa-icf.c (clear_decl_rtl): New function.
15026         (sem_function::merge): Clear RTL before forming alias.
15027         (sem_variable::merge): Clear RTL before forming alias.
15028
15029 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
15030
15031         PR ipa/65236
15032         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
15033
15034 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
15035
15036         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
15037         to neon_to_gp<q>.
15038
15039 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
15040
15041         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
15042         a typo in the description.
15043
15044 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
15045
15046         PR target/64317
15047         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
15048         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
15049         * lra-constraints.c: Include "params.h".
15050         (EBB_PROBABILITY_CUTOFF): Use
15051         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
15052         (lra_inheritance): Use '<' instead of '<=' for
15053         EBB_PROBABILITY_CUTOFF.
15054         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
15055         Document change.
15056
15057 2015-02-27  Martin Liska  <mliska@suse.cz>
15058
15059         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
15060         vector length condition.
15061
15062 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
15063
15064         * doc/extend.texi (x86 transactional memory intrinsics):
15065         Reorganize discussion of _xbegin.  Clarify that the return
15066         value is a bit mask.  Expand example and move to end of section.
15067
15068 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
15069             Aldy Hernandez  <aldyh@redhat.com>
15070
15071         PR rtl-optimization/65220
15072         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
15073
15074 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
15075
15076         PR target/65032
15077         * lra-remat.c (update_scratch_ops): New.
15078         (do_remat): Call it.
15079         * lra.c (lra_register_new_scratch_op): New. Take code from ...
15080         (remove_scratches): ... here.
15081         * lra-int.h (lra_register_new_scratch_op): New prototype.
15082
15083 2015-02-27  Marek Polacek  <polacek@redhat.com>
15084
15085         PR c/65040
15086         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
15087         -Wformat-signedness anymore.
15088
15089 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15090
15091         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
15092         function.
15093         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
15094
15095 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15096
15097         * config/s390/s390.c (enum s390_builtin):
15098         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
15099         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
15100         (s390_init_builtins): Generate new builtin functions.
15101         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
15102         (s390_sfpc, s390_efpc): New pattern definitions.
15103
15104 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15105
15106         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
15107         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
15108         (s390_builtin_decls): New array.
15109         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
15110         (s390_builtin_decl): New function.
15111         (TARGET_BUILTIN_DECL): Define macro.
15112
15113 2015-02-27  Richard Biener  <rguenther@suse.de>
15114
15115         PR middle-end/63175
15116         * builtins.c (get_object_alignment_2): Make sure to re-apply
15117         the ANDed mask after recursing to its operand gets us a new
15118         misalignment bit position.
15119
15120 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
15121             Martin Liska  <mliska@suse.cz>
15122
15123         PR bootstrap/65150
15124         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
15125         Use address_matters_p.
15126         (redirect_all_callers, set_addressable): New functions.
15127         (sem_function::merge): Reorganize and fix merging issues.
15128         (sem_variable::merge): Likewise.
15129         (sem_variable::compare_sections): Remove.
15130         * common.opt (fmerge-all-constants, fmerge-constants): Remove
15131         Optimization flag.
15132         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
15133         redirect them.
15134         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
15135         decl is used.
15136         (address_matters_1): New function.
15137         (symtab_node::address_matters_p): New function.
15138         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
15139         check for merged flag.
15140         * cgraph.h (address_matters_p): Declare.
15141         (symtab_node::address_taken_from_non_vtable_p): Remove.
15142         (symtab_node::address_can_be_compared_p): New method.
15143         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
15144         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
15145         Remove.
15146         (comdat_can_be_unshared_p_1) Use address_matters_p.
15147         (update_vtable_references): Fix formating.
15148         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
15149         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
15150         * cgraphclones.c: Preserve merged and icf_merged flags.
15151
15152 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
15153
15154         * doc/extend.texi (Function Attributes): Fix spelling and typos.
15155         (Label Attributes): Likewise.
15156         (Cilk Plus Builtins): Likewise.
15157         (ARC SIMD Built-in Functions): Likewise.
15158         (ARM C Language Extensions (ACLE)): Likewise.
15159         (PowerPC Built-in Functions): Likewise.
15160         (PowerPC Hardware Transactional Memory Built-in Functions):
15161         Likewise.
15162
15163 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
15164
15165         PR tree-optimization/65216
15166         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
15167         new stmt and new SSA_NAME for lhs whenever the arguments have
15168         changed and weren't just swapped.  Fix comment typo.
15169
15170         PR tree-optimization/65215
15171         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
15172         for PDP endian targets.
15173         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
15174         Fix up formatting issues.
15175         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
15176         size is smaller than the original, adjust MEM_REF offset by the
15177         difference of sizes.  Use is_gimple_mem_ref_addr instead of
15178         is_gimple_min_invariant test to avoid adding address temporaries.
15179
15180 2015-02-26  Martin Liska  <mliska@suse.cz>
15181             Jan Hubicka  <hubicka@ucw.cz>
15182
15183         PR ipa/64693
15184         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
15185         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
15186         (sem_item_optimizer::process_cong_reduction): Include division by
15187         sensitive references.
15188         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
15189         * ipa-ref.c (ipa_ref::address_matters_p): New function.
15190         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
15191
15192 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
15193
15194         PR target/65192
15195         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
15196         Remove.
15197         * config/avr/avr.c: Same.
15198         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
15199         Refuse any constant address not in 0..0xbf.
15200         * config/avr/avr.md (*mov<mode>, *movsf): Remove
15201         tiny_valid_direct_memory_access_range from insn conditions.
15202         (mov<mode>): Don't special-case expansion of avrtiny addresses.
15203
15204 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
15205
15206         PR target/61142
15207         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
15208         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
15209         * config/sh/predicates.md (const_logical_operand): New predicate.
15210         * config/sh/sh.md: Add new peephole2 patterns.
15211
15212 2015-02-26  Marek Polacek  <polacek@redhat.com>
15213
15214         PR ipa/65008
15215         * ipa-inline.c (early_inliner): Recompute inline parameters.
15216
15217 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15218
15219         PR target/65171
15220         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
15221         instructions with TImode operands are included in the analysis.
15222
15223 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
15224
15225         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
15226         of an EDGE_FSM_THREAD.
15227
15228 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15229
15230         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
15231
15232 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
15233
15234         PR debug/46102
15235         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
15236
15237 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
15238
15239         PR tree-optimization/65048
15240         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
15241         (thread_through_all_blocks): Call valid_jump_thread_path.
15242         Remove invalid FSM jump-thread paths.
15243
15244 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
15245
15246         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
15247         (ipa_write_optimization_summaries): Likewise.
15248         * tree-streamer.h: Include data-streamer.h.
15249         (streamer_mode_table): Declare extern variable.
15250         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
15251         * lto-streamer-out.c (lto_output_init_mode_table,
15252         lto_write_mode_table): New functions.
15253         (produce_asm_for_decls): Call lto_write_mode_table when streaming
15254         offloading LTO.
15255         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
15256         (lto_create_simple_input_block): Add mode_table argument to the
15257         lto_input_block constructors.
15258         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
15259         Likewise.
15260         * data-streamer-in.c (string_for_index): Likewise.
15261         * ipa-inline-analysis.c (inline_read_section): Likewise.
15262         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
15263         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
15264         * lto-streamer-in.c (lto_read_body_or_constructor,
15265         lto_input_toplevel_asms): Likewise.
15266         (lto_input_mode_table): New function.
15267         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
15268         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
15269         Use bp_pack_machine_mode.
15270         * real.h (struct real_format): Add name field.
15271         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
15272         (class lto_input_block): Add mode_table member.
15273         (lto_input_block::lto_input_block): Add mode_table_ argument,
15274         initialize mode_table.
15275         (struct lto_file_decl_data): Add mode_table field.
15276         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
15277         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
15278         unpack_ts_decl_common_value_fields,
15279         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
15280         * tree-streamer.c (streamer_mode_table): New variable.
15281         * real.c (ieee_single_format, mips_single_format,
15282         motorola_single_format, spu_single_format, ieee_double_format,
15283         mips_double_format, motorola_double_format,
15284         ieee_extended_motorola_format, ieee_extended_intel_96_format,
15285         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
15286         ibm_extended_format, mips_extended_format, ieee_quad_format,
15287         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
15288         decimal_single_format, decimal_double_format, decimal_quad_format,
15289         ieee_half_format, arm_half_format, real_internal_format): Add name
15290         field.
15291         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
15292
15293 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
15294
15295         PR target/65161
15296         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
15297         reordering for selective scheduling.
15298
15299 2015-02-26  Terry Guo  <terry.guo@arm.com>
15300
15301         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
15302         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
15303         (arm_arch_no_volatile_ce): Declare new global variable.
15304         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
15305         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
15306         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
15307         (TARGET_NO_VOLATILE_CE): New macro.
15308         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
15309         volatile memory access in IT block
15310
15311 2015-02-25  Kai Tietz  <ktietz@redhat.com>
15312
15313         PR tree-optimization/61917
15314         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
15315         that reduc_def_stmt is null.
15316
15317 2015-02-25  Martin Liska  <mliska@suse.cz>
15318
15319         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
15320         hard register variables.
15321
15322 2015-02-25  Kai Tietz  <ktietz@redhat.com>
15323
15324         PR target/64212
15325         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
15326         (symtab::noninterposable_alias): Likewise.
15327
15328 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
15329
15330         PR target/65167
15331         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
15332         bounds registers.
15333         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
15334
15335 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
15336
15337         PR target/64997
15338         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
15339         as split condition; force split via '#' in output pattern.
15340
15341 2015-02-25  Richard Biener  <rguenther@suse.de>
15342             Kai Tietz  <ktietz@redhat.com>
15343
15344         PR tree-optimization/61917
15345         * tree-vect-loop.c (vectorizable_reduction): Allow
15346         vect_internal_def without reduction to exit graceful.
15347
15348 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
15349
15350         PR target/65196
15351         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
15352         only with NONDEBUG_INSN_P.
15353
15354 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
15355
15356         Use variadic macros with avr-log.c.
15357
15358         * config/avr/avr-protos.h (avr_vdump): New prototype.
15359         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
15360         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
15361         * config/avr/avr-log.c: Adjust comments.
15362         (avr_vdump): New function.
15363         (avr_vadump): Pass caller as 2nd argument instead of format string.
15364         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
15365         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
15366
15367 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
15368
15369         PR lto/64374
15370         * target.def (target_option_stream_in): New target hook.
15371         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
15372         targetm.target_option.post_stream_in if non-NULL.
15373         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
15374         * doc/tm.texi: Updated.
15375         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
15376         function.
15377         (TARGET_OPTION_POST_STREAM_IN): Redefine.
15378
15379 2015-02-24  Jeff Law  <law@redhat.com>
15380
15381         PR target/65117
15382         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
15383         of operand 0 and operand 2.
15384         (zero_cost_loop_end, loop_end): Similarly.
15385
15386 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
15387
15388         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
15389         CXX_MEM_STAT_INFO.
15390
15391 2015-02-24  DJ Delorie  <dj@redhat.com>
15392
15393         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
15394         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
15395         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
15396         instead of hardcoding SImode.
15397
15398 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
15399
15400         * omp-low.c (create_omp_child_function): Tag entrypoint
15401         functions with a special attribute.
15402
15403 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15404
15405         PR target/65058
15406         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
15407
15408 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
15409
15410         PR rtl-optimization/65123
15411         * lra-remat.c (operand_to_remat): Check hard regs in insn
15412         definition too.
15413
15414 2015-02-24  Nick Clifton  <nickc@redhat.com>
15415
15416         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
15417         to the assembler.
15418
15419 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
15420
15421         PR libgomp/64625
15422         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
15423         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
15424         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
15425         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
15426         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
15427         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
15428         (BUILT_IN_GOACC_PARALLEL): Specify as
15429         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
15430         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
15431         * builtin-types.def
15432         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
15433         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
15434         Remove function types.
15435         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
15436         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
15437         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
15438         New function types.
15439
15440 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
15441
15442         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
15443
15444 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
15445
15446         PR tree-optimization/65170
15447         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
15448         if val[1] < 0, clear also val[2] and return 3.
15449
15450 2015-02-24  Alan Modra  <amodra@gmail.com>
15451
15452         PR target/65172
15453         * config/rs6000/rs6000.c (get_memref_parts): Only return true
15454         when *base is a reg.  Handle nested plus addresses.  Simplify
15455         pre_modify test.
15456
15457 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
15458
15459         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
15460         use natural alignment when optimizing for size.
15461
15462 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
15463
15464         PR target/65153
15465         * config/sh/sh.md (movsicc_true+3): Remove peephole.
15466         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
15467         * config/sh/sh.c (replace_n_hard_rtx): Remove.
15468
15469 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
15470
15471         PR fortran/63427
15472         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
15473         too big for a wide_int.  Implement missing wrapping operation.
15474
15475 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
15476
15477         PR target/65163
15478         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
15479         instead of const_int 4294901760.
15480
15481 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
15482
15483         * config/avr/t-avr: Fix typo in comment.
15484
15485 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
15486
15487         * doc/rtl.texi (fma): Clarify documentation.
15488
15489 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
15490
15491         PR debug/58123
15492         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
15493         over input_location.
15494
15495 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
15496
15497         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
15498         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
15499         restrict alignments to absolute_biggest_alignment.
15500         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
15501         Define.
15502         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
15503         * doc/tm.texi: Regenerate.
15504         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
15505
15506 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
15507
15508         PR target/64172
15509         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
15510
15511 2015-02-20  Richard Biener  <rguenther@suse.de>
15512
15513         PR tree-optimization/65136
15514         * tree-ssa-propagate.c: Include cfgloop.h.
15515         (replace_phi_args_in): Avoid replacing loop latch edge PHI
15516         arguments with constants.
15517
15518 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
15519             Martin Liska  <mliska@suse.cz>
15520
15521         PR target/63892
15522         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
15523         don't try to create_thunk if stdarg_p.  If
15524         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
15525         redirect_callers if possible.
15526         (sem_item_optimizer::execute): Call unregister_hooks here...
15527         (ipa_icf_driver): ... instead of here.
15528
15529 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15530
15531         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
15532         Mark operand 0 as earlyclobber in 2nd alternative.
15533         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
15534         Write negated shift amount into QI lowpart operand 0 and use it
15535         in the shift step.
15536         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15537
15538 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
15539
15540         * cgraph.h (clone_function_name_1): Declare.
15541         * cgraphclones.c (clone_function_name_1): New function.
15542         (clone_function_name): Use it.
15543         * lto-partition.c: Include "stringpool.h".
15544         (must_not_rename, maybe_rewrite_identifier)
15545         (validize_symbol_for_target): New static functions.
15546         (privatize_symbol_name): Use must_not_rename.
15547         (promote_symbol): Call validize_symbol_for_target.
15548         (lto_promote_cross_file_statics): Likewise.
15549         (lto_promote_statics_nonwpa): Likewise.
15550
15551 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
15552
15553         PR target/64452
15554         * config/avr/avr.md (pushhi_insn): New insn.
15555         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
15556
15557 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
15558             Jakub Jelinek  <jakub@redhat.com>
15559
15560         * tree-streamer.c (preload_common_nodes): Don't preload
15561         TI_VA_LIST* for offloading.
15562         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
15563         in_lto_p.
15564
15565 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
15566
15567         * config/pa/pa.c (pa_emit_move_sequence): Always force
15568         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
15569         note on insn.
15570
15571         * config/pa/pa.c (pa_reloc_rw_mask): New function.
15572         (TARGET_ASM_RELOC_RW_MASK): Define.
15573         (pa_cannot_force_const_mem): Revert previous change.
15574
15575 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
15576             Jan Hubicka  <hubicka@ucw.cz>
15577
15578         PR ipa/65028
15579         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
15580         across jump functions.
15581
15582 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
15583
15584         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
15585
15586 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
15587
15588         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
15589
15590 2015-02-19  Richard Henderson  <rth@redhat.com>
15591
15592         PR middle-end/65074
15593         * varasm.c (default_binds_local_p_2): Don't test node->definition;
15594         test DECL_EXTERNAL independent of symtab_node.
15595
15596 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
15597
15598         PR lto/65012
15599         * varpool.c (varpool_node::get_constructor): Return early
15600         if this->lto_file_data is NULL.
15601
15602 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15603
15604         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
15605         (rank_for_schedule_debug): Update.
15606         (ready_sort): Make static.  Move sorting logic to ...
15607         (ready_sort_debug, ready_sort_real): New static functions.
15608         (schedule_block): Sort both debug insns and real insns in preparation
15609         for ready list trimming.  Improve debug output.
15610         * sched-int.h (ready_sort): Remove global declaration.
15611
15612 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
15613
15614         * ipa-icf.c (sem_function::equals_private): Adjust.
15615         (sem_function::bb_dict_test): Take a vec<int> * instead of
15616         auto_vec<int>.
15617         * ipa-icf.h (bb_dict_test): Likewise.
15618
15619 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
15620
15621         PR gcov-profile/64634
15622         * tree-eh.c (frob_into_branch_around): Fix up typos
15623         in function comment.
15624         (lower_catch): Put eh_seq resulting from EH lowering of
15625         the cleanup sequence after the cleanup rather than before it.
15626
15627 2015-02-18  Tom de Vries  <tom@codesourcery.com>
15628
15629         * common.opt (fstdarg-opt): New option.
15630         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
15631         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
15632         (@item -fstdarg-opt): New item.
15633
15634 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
15635
15636         PR target/65064
15637         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
15638         for common symbols.
15639
15640 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
15641
15642         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
15643         insn-modes.h.
15644         (ALL_HOST_OBJS): Add mkoffload.o.
15645         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
15646
15647 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
15648
15649         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
15650         (compare_virtual_tables): Be smarter about skipping typeinfos;
15651         do sane output on virtual table table mismatch.
15652         (warn_odr): Be ready for forward declarations of enums;
15653         output sane info on base mismatch and virtual table mismatch.
15654         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
15655         when only one type is polymorphic.
15656         (get_odr_type): Fix hashtable corruption.
15657         (dump_odr_type): Dump mangled names.
15658
15659 2015-02-18  Richard Biener  <rguenther@suse.de>
15660
15661         PR tree-optimization/65063
15662         * tree-predcom.c (determine_unroll_factor): Return 1 if we
15663         have replaced looparound PHIs.
15664
15665 2015-02-18  Martin Liska  <mliska@suse.cz>
15666
15667         * lto-streamer.c (lto_streamer_init): Encapsulate
15668         streamer_check_handled_ts_structures with checking macro.
15669
15670 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
15671
15672         PR ipa/65087
15673         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
15674         section if !implicit_section.
15675         (cgraph_node::create_version_clone_with_body): Likewise.
15676         * trans-mem.c (ipa_tm_create_version): Likewise.
15677
15678 2015-02-18  Richard Biener  <rguenther@suse.de>
15679
15680         PR tree-optimization/62217
15681         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
15682         into BIVs.
15683
15684 2015-02-18  Marek Polacek  <polacek@redhat.com>
15685
15686         PR sanitizer/65081
15687         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
15688         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
15689         is in range [-16K, -1].  Don't issue run-time error if
15690         (ptr > ptr + offset).
15691
15692 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
15693
15694         * doc/install.texi (nvptx-*-none): New section.
15695         * doc/invoke.texi (Nvidia PTX Options): Likewise.
15696         * config/nvptx/nvptx.opt: Update.
15697
15698         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
15699         (access_check): New functions, copied from
15700         config/i386/intelmic-mkoffload.c.
15701         (main): For non-installed testing, look in all COMPILER_PATHs for
15702         GCC_INSTALL_NAME.
15703
15704         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
15705
15706 2015-02-18  Andrew Pinski  <apinski@cavium.com>
15707             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15708
15709         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
15710         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
15711
15712 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
15713
15714         * ipa-visibility.c (function_and_variable_visibility): Only
15715         check locality if node is not already local.
15716         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
15717         call_for_symbol_and_aliases instead of
15718         call_for_symbol_thunks_and_aliases.
15719         (ipa_inline): Likewise.
15720         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
15721         first walk aliases.
15722         * ipa.c (symbol_table::remove_unreachable_nodes): Use
15723         call_for_symbol_and_aliases.
15724         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
15725         (ipa_propagate_frequency_1): Use it; use opt_for_fn
15726         (ipa_propagate_frequency): Update.
15727         (ipa_profile): Add opt_for_fn gueards.
15728
15729 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
15730
15731         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
15732         * doc/invoke.texi (SH options): Document it.
15733         * config/sh/sh.c (sh_insn_length_adjustment): Check
15734         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
15735
15736 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
15737
15738         * common.opt (fipa-cp-alignment): New.
15739         * ipa-cp.c (ipcp_store_alignment_results): Check
15740         flag_ipa_cp_alignment.
15741         * opts.c (default_options_table): Enable -fipa-cp-alignment for
15742         -O2.
15743         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
15744         * doc/invoke.texi: Document -fipa-cp-alignment.
15745
15746 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
15747
15748         PR target/64793
15749         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
15750         to nil.  Adjust comments.
15751
15752 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
15753
15754         * ipa-visibility.c (function_and_variable_visibility): Only
15755         check locality if node is not already local.
15756         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
15757         call_for_symbol_and_aliases instead of
15758         call_for_symbol_thunks_and_aliases.
15759         (ipa_inline): Likewise.
15760         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
15761         first walk aliases.
15762         * ipa.c (symbol_table::remove_unreachable_nodes): Use
15763         call_for_symbol_and_aliases.
15764         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
15765         (ipa_propagate_frequency_1): Use it; use opt_for_fn
15766         (ipa_propagate_frequency): Update.
15767         (ipa_profile): Add opt_for_fn guards.
15768
15769 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15770
15771         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
15772         skipping of "strange" tokens.
15773
15774 2015-02-17  Jeff Law  <law@redhat.com>
15775
15776         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
15777         obsolete comment.
15778
15779 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
15780
15781         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
15782         as forcing a HARD_DEP between instructions, thereby
15783         disallowing rewriting to break dependencies.
15784
15785 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
15786
15787         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
15788         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
15789         variables in boundary that have no inlitalizer encoded and are
15790         not aliases.
15791         * varasm.c (default_binds_local_p_2): External definitions do not
15792         count as definitions here.
15793
15794 2015-02-16  Jeff Law  <law@redhat.com>
15795
15796         PR tree-optimization/64823
15797         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
15798         statements.
15799         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
15800         threading through blocks with PHIs, but no statements.
15801         (thread_through_normal_block): Distinguish between blocks where
15802         we did not process all the statements and blocks with no statements.
15803
15804 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
15805             James Greenhalgh  <james.greenhalgh@arm.com>
15806
15807         PR ipa/64963
15808         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
15809         section if not linkonce.  Fix up formatting.
15810         (cgraph_node::create_version_clone_with_body): Copy section.
15811         * trans-mem.c (ipa_tm_create_version): Likewise.
15812
15813 2015-02-16  Richard Biener  <rguenther@suse.de>
15814
15815         PR tree-optimization/65077
15816         * tree-ssa-structalias.c (get_constraint_for_1): Handle
15817         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
15818         (find_func_aliases): Allow float values to carry pointers again.
15819
15820 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
15821
15822         * doc/install.texi (Specific): Reorder targets list to put
15823         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
15824         from the top menu.
15825
15826 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15827             David Edelsohn  <dje.gcc@gmail.com>
15828
15829         PR target/65058
15830         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
15831         mapping class to external variable or function reference.
15832         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
15833         mapping class.
15834
15835 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
15836
15837         PR target/53348
15838         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
15839         ASM_WEAKEN_DECL if defined.
15840
15841 2015-02-16  Richard Biener  <rguenther@suse.de>
15842
15843         PR lto/65015
15844         * varasm.c (default_file_start): For LTO produced units
15845         emit <artificial> as file directive.
15846
15847 2015-02-16  Richard Biener  <rguenther@suse.de>
15848
15849         PR tree-optimization/63593
15850         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
15851         stmts and releasing SSA names until...
15852         (execute_pred_commoning): ... after processing all chains.
15853
15854 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
15855
15856         PR ipa/65059
15857         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
15858         external functions.
15859
15860 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
15861
15862         * doc/bugreport.texi: Adjust section titles throughout the file
15863         to use "Title Case".
15864         * doc/extend.texi: Likewise.
15865         * doc/gcov.texi: Likewise.
15866         * doc/implement-c.texi: Likewise.
15867         * doc/implement-cxx.texi: Likewise.
15868         * doc/invoke.texi: Likewise.
15869         * doc/objc.texi: Likewise.
15870         * doc/standards.texi: Likewise.
15871         * doc/trouble.texi: Likewise.
15872
15873 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
15874
15875         * cgraph.h (symtab_node::has_aliases_p): Simplify.
15876         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
15877         * tree.c (lookup_binfo_at_offset): Make static.
15878         (get_binfo_at_offset): Do not shadow offset; add explanatory
15879         comment.
15880
15881 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
15882
15883         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
15884         for all floading point loads and stores except those using a register
15885         index address.
15886         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
15887         to a register.
15888
15889 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
15890
15891         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
15892         (do_estimate_growth_1): Record if any uninlinable edge was seen.
15893         (estimate_growth): Handle uninlinable edges correctly.
15894         (check_callers): New.
15895         (growth_likely_positive): Handle aliases correctly.
15896
15897 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
15898
15899         * ipa-chkp.c: Use iterate_direct_aliases.
15900         * symtab.c (resolution_used_from_other_file_p): Move inline.
15901         (symtab_node::create_reference): Fix formating.
15902         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
15903         (symtab_node::iterate_reference): Move inline.
15904         (symtab_node::iterate_referring): Move inline.
15905         (symtab_node::iterate_direct_aliases): Move inline.
15906         (symtab_node::used_from_object_file_p_worker): Inline into ...
15907         (symtab_node::used_from_object_file_p): ... this one; move inline.
15908         (symtab_node::call_for_symbol_and_aliases): Move inline;
15909         use iterate_direct_aliases.
15910         (symtab_node::call_for_symbol_and_aliases_1): New method.
15911         (cgraph_node::call_for_symbol_and_aliases): Move inline;
15912         use iterate_direct_aliases.
15913         (cgraph_node::call_for_symbol_and_aliases_1): New method.
15914         (varpool_node::call_for_node_and_aliases): Rename to ...
15915         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
15916         use iterate_direct_aliases.
15917         (varpool_node::call_for_symbol_and_aliases_1): New method.
15918         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
15919         (ipa_discover_readonly_nonaddressable_var): Update.
15920         * ipa-devirt.c: Fix formating.
15921         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
15922         Move inline.
15923         (cgraph_node::call_for_symbol_and_aliases): Move inline.
15924         (cgraph_node::call_for_symbol_and_aliases_1): New function..
15925         * cgraph.h (used_from_object_file_p_worker): Remove.
15926         (resolution_used_from_other_file_p): Move inline.
15927         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
15928         (symtab_node::iterate_reference): Move inline.
15929         (symtab_node::iterate_referring): Move inline.
15930         (symtab_node::iterate_direct_aliases): Move inline.
15931         (symtab_node::used_from_object_file_p_worker): Inline into ...
15932         (symtab_node::used_from_object_file_p): Move inline.
15933         * tree-emutls.c (ipa_lower_emutls): Update.
15934         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
15935         (varpool_node::call_for_node_and_aliases): Remove.
15936
15937 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
15938
15939         PR tree-optimization/62209
15940         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
15941         op == range->exp, insert seq and gimplified code after labels
15942         instead of after the phi.
15943
15944 2015-02-13  Jeff Law  <law@redhat.com>
15945
15946         PR bootstrap/65060
15947         Revert my change for tree-optimization/64823.
15948
15949 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
15950
15951         PR tree-optimization/65053
15952         * tree-ssa-phiopt.c (value_replacement): When moving assign before
15953         cond, either reset VR on lhs or set it to phi result VR.
15954
15955 2015-02-13  Jeff Law  <law@redhat.com>
15956
15957         PR tree-optimization/64823
15958         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
15959         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
15960         threading through blocks with PHIs, but no statements.
15961         (thread_through_normal_block): Distinguish between blocks where
15962         we did not process all the statements and blocks with no statements.
15963
15964         PR rtl-optimization/47477
15965         * match.pd (convert (plus/minus (convert @0) (convert @1): New
15966         simplifier to narrow arithmetic.
15967
15968 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
15969
15970         PR ipa/65028
15971         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
15972         polymorphic call info when type is not known to be preserved.
15973
15974 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
15975
15976         PR ipa/65028
15977         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
15978         (inline_call): Use it.
15979
15980 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
15981
15982         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
15983         GOMP_DEVICE_NVIDIA_PTX.
15984
15985 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
15986
15987         PR ipa/65034
15988         * stmt.c (emit_case_nodes): Use void_type_node instead of
15989         NULL_TREE as LABEL_DECL type.
15990
15991 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
15992
15993         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
15994         constraints.
15995         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
15996         symbolic references to data to be forced to constant memory on the
15997         SOM target.
15998
15999 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
16000
16001         PR tree-optimization/65002
16002         * tree-cfg.c (pass_data_fixup_cfg): Don't update
16003         SSA on start.
16004         * tree-sra.c (some_callers_have_no_vuse_p): New.
16005         (ipa_early_sra): Reject functions whose callers
16006         assume function is read only.
16007
16008 2015-02-13  Richard Biener  <rguenther@suse.de>
16009
16010         PR lto/65015
16011         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
16012         for LTO produced CUs.
16013
16014 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
16015
16016         PR tree-optimization/64705
16017         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
16018         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
16019         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
16020         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
16021         expand_simple_operations.
16022
16023 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
16024             Richard Henderson  <rth@redhat.com>
16025
16026         PR rtl/32219
16027         * cgraphunit.c (cgraph_node::finalize_function): Set definition
16028         before notice_global_symbol.
16029         (varpool_node::finalize_decl): Likewise.
16030         * varasm.c (default_binds_local_p_2): Rename from
16031         default_binds_local_p_1, add weak_dominate argument.  Use direct
16032         returns instead of assigning to local variable.  Unify varpool and
16033         cgraph paths via symtab_node.  Reject undef weak variables before
16034         testing visibility.  Reorder tests for simplicity.
16035         (default_binds_local_p): Use default_binds_local_p_2.
16036         (default_binds_local_p_1): Likewise.
16037         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
16038         via symtab_node.
16039         (default_elf_asm_output_external): Emit visibility when specified.
16040
16041 2015-02-13  Alan Modra  <amodra@gmail.com>
16042
16043         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
16044         code setting up r11 for out-of-line fp restore.
16045
16046 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
16047
16048         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
16049         (muser-mode): Likewise.
16050
16051 2015-02-13  Alan Modra  <amodra@gmail.com>
16052
16053         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
16054         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
16055
16056 2015-02-12  David Howells  <dhowells@redhat.com>
16057
16058         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
16059         warning.
16060         * tree-ssa-uninit.c (dump_predicates): Likewise.
16061         * opts.c (print_filtered_help): Likewise.
16062
16063 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
16064
16065         * dwarf2out.c (output_die): Use "%s", name instead of name to
16066         avoid -Wformat-security warning.
16067
16068         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
16069         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
16070         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
16071         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
16072
16073 2015-02-12  Jason Merrill  <jason@redhat.com>
16074
16075         * common.opt (-flifetime-dse): New.
16076
16077 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
16078
16079         PR sanitizer/65019
16080         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
16081
16082         PR tree-optimization/65014
16083         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
16084         use original second operand of arg0 or arg1 instead of
16085         that adjusted by STRIP_NOPS.
16086
16087 2015-02-11  Jeff Law  <law@redhat.com>
16088
16089         PR target/63347
16090         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
16091         that needs to be queued, just queue it for a single cycle.
16092
16093 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
16094
16095         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
16096         bodies of thunks; comment on why.
16097         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
16098         symbols are extern.
16099
16100 2015-02-11  Richard Henderson  <rth@redhat.com>
16101
16102         PR sanitize/65000
16103         * tree-eh.c (mark_reachable_handlers): Mark source and destination
16104         regions of __builtin_eh_copy_values.
16105
16106 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
16107
16108         PR middle-end/65003
16109         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
16110         ultimate alias is MEM with SYMBOL_REF satisfying
16111         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
16112         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
16113
16114 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
16115
16116         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
16117         "diagnostic-core.h".
16118         (main): Initialize progname, and call diagnostic_initialize.
16119
16120         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
16121         instead of __OPENMP_TARGET__.
16122
16123         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
16124         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
16125         hard-coding PTX_ID.
16126
16127 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
16128
16129         * doc/sourcebuild.texi (pie_enabled): Document.
16130
16131 2015-02-11  Martin Liska  <mliska@suse.cz>
16132
16133         PR ipa/64813
16134         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
16135         a return value for call to a function that is noreturn.
16136
16137 2015-02-11  Richard Biener  <rguenther@suse.de>
16138
16139         PR lto/65015
16140         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
16141         and -fresolution.
16142
16143 2015-02-11  Andrew Pinski  <apinski@cavium.com>
16144
16145         PR target/64893
16146         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
16147         Change the first argument type to size_type_node and add another
16148         size_type_node.
16149         (aarch64_simd_expand_builtin): Handle the new argument to
16150         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
16151         print an out when the first two arguments are not
16152         nonzero integer constants.
16153         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
16154         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
16155
16156 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
16157
16158         PR target/61925
16159         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
16160         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
16161         (ix86_set_current_function): Rewritten.
16162         (ix86_add_new_builtins): Temporarily clear current_target_pragma
16163         when creating builtin fndecls.
16164
16165 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
16166
16167         PR ipa/65005
16168         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
16169         function.
16170         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
16171         have no comdat group.
16172         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
16173         (lto_output_varpool_node): Always output alias info.
16174         (output_refs): Output refs of boundary aliases, too.
16175         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
16176         (output_symtab): Output call eges in thunks in boundary.
16177         (get_alias_symbol): Remove.
16178         (input_node, input_varpool_node): Do not special case weakrefs.
16179         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
16180         alias and thunks targets in the boundary; do not take removed symbols
16181         from their comdat groups.
16182         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
16183         (cgraph_node::global_info): Remove.
16184         (cgraph_node::rtl_info): Look through aliases and thunks.
16185         * cgrpah.h (global_info): Remove.
16186         (non_local_p): Remove.
16187
16188 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
16189             Sandra Loosemore  <sandra@codesourcery.com>
16190
16191         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
16192         to inline asm.  List dialects in proper order.
16193
16194 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
16195             Sandra Loosemore  <sandra@codesourcery.com>
16196
16197         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
16198
16199 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
16200
16201         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
16202         modified) reference to Solaris.
16203
16204 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
16205
16206         * doc/extend.texi (Extended Asm): Fix typos.
16207
16208 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
16209
16210         PR sanitizer/65004
16211         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
16212
16213 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
16214
16215         PR target/64661
16216         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
16217         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
16218         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
16219         * config/sh/constraints.md (Ara, Add): New constraints.
16220         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
16221         predicates.
16222         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
16223         atomic_mem_operand_0.  Don't use force_reg on the memory address.
16224         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
16225         Sra constraint.  Convert to insn_and_split.  Add workaround for
16226         PR 64974.
16227         (atomic_compare_and_swap<mode>_hard): Copy to
16228         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
16229         Use atomic_mem_operand_0 predicate.
16230         (atomic_compare_and_swap<mode>_soft_gusa,
16231         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
16232         AraAdd constraints.
16233         (atomic_compare_and_swap<mode>_soft_tcb,
16234         atomic_compare_and_swap<mode>_soft_imask,
16235         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
16236         atomic_mem_operand_0 predicate and SraSdd constraints.
16237         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
16238         constraint.
16239         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
16240         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
16241         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
16242         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
16243         force_reg on the memory address.
16244         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
16245         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
16246         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
16247         atomic_mem_operand_1 predicate and Sra constraint.
16248         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
16249         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
16250         Use atomic_mem_operand_1 predicate.
16251         (atomic_<fetchop_name><mode>_hard): Copy to
16252         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
16253         Use atomic_mem_operand_1 predicate.
16254         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
16255         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
16256         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
16257         insn_and_split.  Use atomic_mem_operand_1 predicate.
16258         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
16259         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
16260         Use atomic_mem_operand_1 predicate.
16261         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
16262         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
16263         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
16264         in generated insn with original mem operand before emitting the insn.
16265         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
16266         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
16267         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
16268         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
16269         Use atomic_mem_operand_1 predicate and AraAdd constraints.
16270         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
16271         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
16272         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
16273         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
16274         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
16275         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
16276         atomic_not_fetch<mode>_soft_tcb,
16277         atomic_<fetchop_name>_fetch<mode>_soft_imask,
16278         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
16279         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
16280         Use atomic_mem_operand_1 predicate and SraSdd constraints.
16281
16282 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
16283
16284         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
16285         and 3 earlyclobber operands.
16286
16287 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
16288
16289         * common.opt (fstack-reuse): Mark as optimization.
16290
16291 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
16292
16293         PR ipa/64982
16294         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
16295
16296 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
16297
16298         PR tree-optimization/64326
16299         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
16300
16301 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
16302
16303         PR gcov-profile/61889
16304         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
16305
16306 2015-02-10  Richard Biener  <rguenther@suse.de>
16307
16308         PR tree-optimization/64995
16309         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
16310         value we use is final.
16311         (visit_reference_op_store): Always valueize op.
16312         (visit_use): Properly valueize vuses.
16313
16314 2015-02-10  Richard Biener  <rguenther@suse.de>
16315
16316         PR tree-optimization/64909
16317         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
16318         pass a scalar-stmt count estimate to the cost model.
16319         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
16320
16321 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
16322
16323         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
16324         enabled by default together with var-tracking.
16325
16326 2015-02-10  Nick Clifton  <nickc@redhat.com>
16327
16328         * config/rl78/rl78.c: Remove DIV attribute code accidentally
16329         included in previous rl78 commit.
16330
16331 2015-02-10  Richard Biener  <rguenther@suse.de>
16332
16333         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
16334         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
16335         return the bitpack.
16336
16337 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
16338
16339         PR gcov-profile/61889
16340         * config.in: regenerate.
16341         * configure.in: Likewise.
16342         * configure.ac: Check for ftw.h.
16343         * gcov-tool.c: Check for ftw.h before using nftw.
16344
16345 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
16346
16347         PR lto/64076
16348         * ipa-visibility.c (update_visibility_by_resolution_info): Only
16349         assert when not in lto mode.
16350
16351 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16352
16353         * ira-color.c (setup_left_conflict_sizes_p): Simplify
16354         initialization/assignment of conflict_size.
16355
16356 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
16357
16358         PR ipa/64978
16359         * ipa-cp.c (gather_caller_stats): Skip thunks.
16360         (propagate_constants_topo): Skip aliases.
16361
16362 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
16363
16364         PR target/64761
16365         * config/sh/sh.c (sh_option_override): Don't change
16366         -freorder-blocks-and-partition to -freorder-blocks even when
16367         unwinding is enabled.
16368         (sh_can_follow_jump): Return false if the followee jump is
16369         a crossing jump when -freorder-blocks-and-partition is specified.
16370         * config/sh/sh.md (*jump_compact_crossing): New insn.
16371
16372 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
16373             Kaz Kojima  <kkojima@gcc.gnu.org>
16374
16375         PR target/64761
16376         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
16377         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
16378         (sh_can_redirect_branch): Rename to ...
16379         (sh_can_follow_jump): ... this.  Constify argument types.
16380         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
16381         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
16382         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
16383         * doc/tm.texi: Regenerate.
16384
16385 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
16386
16387         PR sanitizer/64981
16388         * builtins.c (expand_builtin): Call targetm.expand_builtin
16389         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
16390
16391 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16392
16393         PR ipa/61548
16394         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
16395
16396 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16397
16398         PR ipa/63566
16399         * ipa-icf.c (set_local): New function.
16400         (sem_function::merge): Use it.
16401
16402 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16403
16404         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
16405         (add_type_duplicate): Fix comparison of BINFOs.
16406
16407 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16408
16409         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
16410         on getting VOID pointer.
16411
16412 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
16413
16414         PR target/64979
16415         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
16416         va_list escapes.
16417
16418 2015-02-09  Richard Biener  <rguenther@suse.de>
16419
16420         * genmatch.c (replace_id): Copy expr_type.
16421
16422 2015-02-09  Richard Biener  <rguenther@suse.de>
16423
16424         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
16425         (streamer_write_tree_bitfields): Declare.
16426         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
16427         properly unpack padding.
16428         (unpack_value_fields): Inline ...
16429         (streamer_read_tree_bitfields): ... here.
16430         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
16431         and properly add padding bits.
16432         (streamer_pack_tree_bitfields): Fold into ...
16433         (streamer_write_tree_bitfields): ... this new function,
16434         exposing the bitpack object.
16435         * lto-streamer-out.c (lto_write_tree_1): Call
16436         streamer_write_tree_bitfields.
16437
16438 2015-02-09  Richard Biener  <rguenther@suse.de>
16439
16440         PR tree-optimization/54000
16441         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
16442         (struct ivopts_data): Add loop_loc member.
16443         (tree_ssa_iv_optimize_loop): Dump loop location.
16444         (create_new_ivs): Likewise, also dump number of IVs generated.
16445
16446 2015-02-09  Martin Liska  <mliska@suse.cz>
16447
16448         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
16449         just if not yet registered.
16450         (ipa_icf_generate_summary): Register callgraph hooks.
16451
16452 2015-02-08  Andrew Pinski  <apinski@cavium.com>
16453
16454         * config/aarch64/aarch64.c (gty_dummy): Delete.
16455
16456 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16457
16458         PR ipa/63566
16459         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
16460         (cgraph_node::local_p): Remove thunk related FIXME.
16461
16462 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16463
16464         PR ipa/63566
16465         * i386.c (ix86_function_regparm): Look through aliases to see if callee
16466         is local and optimized.
16467         (ix86_function_sseregparm): Likewise; also use target's SSE math
16468         settings; error out instead of silently generating wrong code
16469         on mismatches.
16470         (init_cumulative_args): Look through aliases.
16471
16472 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16473
16474         PR ipa/63566
16475         * ipa-split.c (execute_split_functions): Split if function has aliases.
16476
16477 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16478
16479         PR ipa/63566
16480         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
16481         aliases before trying to expand it.
16482         (cgraph_node::expand_thunk): Fix formating.
16483
16484 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
16485
16486         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
16487         (Using Assembly Language with C): Expand introduction.
16488         (Basic Asm): Copy-edit.  Add more information about uses of
16489         basic asm.
16490         (Extended Asm): Copy-edit.  Document new escape syntax and
16491         %l[label] syntax.
16492         (Global Reg Vars): Copy-edit.
16493         (Local Reg Vars): Likewise.
16494
16495 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
16496
16497         PR debug/2714
16498         PR bootstrap/64256
16499         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
16500         (DBX_CONTIN_CHAR): Define.
16501
16502 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
16503             Brian Rzycki  <b.rzycki@samsung.com>
16504
16505         PR tree-optimization/64878
16506         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
16507         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
16508         Stop recursion at loop phi nodes after having visited a loop phi node.
16509
16510 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
16511
16512         * toplev.c (process_options): Change flag_ipa_ra before creating
16513         optimization_{default,current}_node.
16514
16515         PR ipa/64896
16516         * cgraphunit.c (cgraph_node::expand_thunk): If
16517         restype is not is_gimple_reg_type nor the thunk_fndecl
16518         returns aggregate_value_p, set restmp to a temporary variable
16519         instead of resdecl.
16520
16521 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
16522
16523         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
16524
16525 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16526
16527         PR target/64205
16528         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
16529         add a general secondary reload handler for SDmode, unless we have
16530         both read/write support for SDmode.
16531
16532 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
16533
16534         PR middle-end/64937
16535         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
16536         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
16537         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
16538         1 before, push it to abstract_vec.
16539         (dwarf2out_abstract_function): Adjust caller.  Don't call
16540         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
16541         DECL_ABSTRACT_P flags for all abstract_vec elts.
16542
16543 2015-02-06  Renlin Li  <renlin.li@arm.com>
16544
16545         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
16546         complex gimple.
16547         * tree-ssa.c (execute_update_addresses_taken): Likewise.
16548
16549 2015-02-06  Jeff Law  <law@redhat.com>
16550
16551         PR target/64889
16552         * config/h8300/h8300.c (push): New argument "in_prologue".
16553         Pass "in_prologue" along to "F".
16554         (h8300_push_pop): Corresponding changes.
16555         (h8300_expand_prologue): Likewise.
16556         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
16557
16558 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
16559
16560         PR rtl-optimization/64957
16561         PR debug/64817
16562         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
16563         IOR rather than for AND.
16564
16565 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
16566
16567         PR target/62631
16568         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
16569         of shift-add and (add + shift) operations.  Rename local variable.
16570
16571 2015-02-05  Jeff Law  <law@redhat.com>
16572
16573         PR target/17306
16574         * config/h8300/constraints.md (U): Correctly dectect
16575         "eightbit_data" memory addresses.
16576         * config/h8300/h8300.c (eightbit_constant_address_p): Also
16577         handle (const (plus (symbol_ref (x)))) where x is declared
16578         as an 8-bit data memory address.
16579         * config/h8300/h8300.md (call, call_value): Correctly detect
16580         "funcvec" functions.
16581
16582         PR target/43264
16583         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
16584         24 to 28 bits for the H8/300.
16585
16586 2015-02-06  Alan Modra  <amodra@gmail.com>
16587
16588         PR target/64876
16589         * config/rs6000/rs6000.c (chain_already_loaded): New function.
16590         (rs6000_call_aix): Use it.
16591
16592 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
16593
16594         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
16595         check.
16596
16597 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
16598
16599         * config/h8300/constraints.md ("U" constraint): Use strict
16600         variant of REG_OK_FOR_BASE_P after reload has started.
16601
16602 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
16603
16604         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
16605         define to zero if !TARGET_NEON.
16606         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
16607
16608 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16609             Trevor Saunders  <tsaunders@mozilla.com>
16610
16611         PR ipa/61548
16612         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
16613
16614 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16615
16616         PR ipa/61548
16617         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
16618         when removing varpool nodes.
16619
16620 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16621
16622         PR ipa/61548
16623         * varpool.c (varpool_node::remove): Fix order of variables.
16624
16625 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16626
16627         PR ipa/64686
16628         * ipa-inline.c (inline_small_functions): Fix ordering issue between
16629         speculation resolution and key updates.
16630
16631 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16632
16633         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
16634         about not letting any speculative edges unupdated.
16635
16636 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16637
16638         PR gcov/64123
16639         * gcov-io.c (gcov_var): Export.
16640
16641 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16642
16643         PR middle-end/64922
16644         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
16645         edges that become speculative.
16646
16647 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
16648
16649         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
16650         or DW_LANG_Fortran08.
16651         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
16652         DW_LANG_Fortran08.
16653         (gen_compile_unit_die): Handle "GNU Fortran2003" and
16654         "GNU Fortran2008" language strings.
16655         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
16656         * langhooks.h (lang_GNU_Fortran): New prototype.
16657         * langhooks.c (lang_GNU_Fortran): New function.
16658         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
16659         lang_GNU_Fortran.
16660
16661 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
16662
16663         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
16664         (RTX_OK_FOR_OLO10_P): Likewise.
16665
16666 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
16667
16668         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
16669
16670 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16671
16672         PR middle-end/64922
16673         * gimple.c: Include gimple-ssa.h.
16674         (maybe_remove_unused_call_args): New function.
16675         * gimple.h (maybe_remove_unused_call_args): Declare.
16676         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
16677         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
16678         * gimple-fold.c (gimple_fold_call): Likewise.
16679
16680 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
16681
16682         PR rtl-optimization/64905
16683         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
16684         pointer alignment if it isn't needed.
16685
16686 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
16687
16688         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
16689         cortex-a72.cortex-a53.
16690         * config/aarch64/aarch64-tune.md: Regenerate.
16691         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
16692
16693 2015-02-04  Nick Clifton  <nickc@redhat.com>
16694
16695         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
16696         inside a MEM.
16697
16698 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
16699
16700         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
16701         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
16702         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
16703         of DEF_BUILTIN.
16704         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
16705         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
16706         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
16707         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
16708         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
16709         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
16710         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
16711         * tree-core.h (enum built_in_function): In between
16712         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
16713         for builtins that use DEF_BUILTIN_CHKP macro.
16714
16715 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
16716
16717         PR debug/64817
16718         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
16719         operands for tcc_comparison exprs.  Fix typos.
16720
16721         PR debug/64817
16722         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
16723         of two XORs that have an intervening AND or IOR.
16724
16725         PR debug/64817
16726         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
16727         simplification of XOR of AND to not allocate new rtx before
16728         committing to a simplification.
16729
16730 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16731
16732         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
16733         manual swaps in all peepholes.
16734
16735 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16736
16737         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
16738         of manual swapping implementation.
16739         (aarch64_expand_vec_perm_const_1): Likewise.
16740
16741 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
16742
16743         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
16744         (generic_addrcost_table): Remove NAMED_PARAM.
16745         (cortexa57_addrcost_table): Likewise.
16746         (xgene1_addrcost_table): Likewise.
16747         (generic_regmove_table): Likewise.
16748         (cortexa53_regmove_table): Likewise.
16749         (xgene1_regmove_table): Likewise.
16750         (generic_vector_table): Likewise.
16751         (cortexa57_vector_table): Likewise.
16752         (xgene1_vector_table): Likewise.
16753         (generic_tunings): Likewise.
16754         (cortexa53_tunings): Likewise.
16755         (cortexa57_tunings): Likewise.
16756         (xgene1_tunings): Likewise.
16757
16758 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
16759
16760         * config/arm/arm-cores.def: Add cortex-a72 and
16761         cortex-a72.cortex-a53.
16762         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
16763         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
16764         * config/arm/arm-tune.md: Regenerate.
16765         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
16766         "cortex-a72.cortex-a53".
16767         * doc/invoke.texi (ARM Options/-mtune): Likewise.
16768
16769 2015-02-04  Nick Clifton  <nickc@redhat.com>
16770
16771         PR target/64408
16772         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
16773         of accepted codes.
16774         (nonimmediate_di_operand): Likewise.
16775
16776         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
16777         prefixes of known F5 using MSP430 MCUs.
16778
16779 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16780
16781         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
16782         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
16783         instead of __builtin_sqrt.
16784
16785 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
16786
16787         * varasm.c (do_assemble_alias): Follow transparent alias
16788         chain for target.
16789         (default_assemble_visibility): Follow transparent alias
16790         chain for decl name.
16791
16792 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16793
16794         PR middle-end/62103
16795         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
16796         to compute size of referenced value in the constant case.
16797
16798 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
16799
16800         PR rtl-optimization/64756
16801         * cse.c (invalidate_dest): New function.
16802         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
16803         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
16804         invalidate and do not record it.
16805
16806 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
16807
16808         PR target/64660
16809         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
16810         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
16811         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
16812         atomic_nand<mode>_soft_tcb): New insns.
16813         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
16814         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
16815         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
16816         Split into atomic_not_fetchsi_hard if operands[0] is unused.
16817         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
16818         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
16819         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
16820         atomic_not<mode>_hard if operands[0] is unused.
16821         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
16822         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
16823         if operands[0] is unused.
16824         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
16825         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
16826         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
16827         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
16828         unused.
16829         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
16830         into atomic_not<mode>_soft_tcb if operands[0] is unused.
16831         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
16832         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
16833         if operands[0] is unused.
16834         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
16835         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
16836         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
16837         atomic_nand_fetchsi_hard if operands[0] is unused.
16838         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
16839         atomic_nand<mode>_hard if operands[0] is unused.
16840         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
16841         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
16842         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
16843         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
16844         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
16845         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
16846         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
16847         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
16848         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
16849         atomic_not<mode>_hard if operands[0] is unused.
16850         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
16851         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
16852         unused.
16853         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
16854         into atomic_not<mode>_soft_tcb if operands[0] is unused.
16855         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
16856         atomic_nand<mode>_hard if operands[0] is unused.
16857         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
16858         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
16859
16860 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
16861
16862         PR jit/64810
16863         * Makefile.in (GCC_OBJS): Add gcc-main.o.
16864         * gcc-main.c: New file, containing "main" taken from gcc.c.
16865         * gcc.c (do_self_spec): Free decoded_options.
16866         (class driver): Move declaration to gcc.h.
16867         (main): Move declaration and implementation to new file
16868         gcc-main.c.
16869         (driver_get_configure_time_options): New function.
16870         * gcc.h (class driver): Move this declaration here, from
16871         gcc.c.
16872         (driver_get_configure_time_options): New declaration.
16873
16874 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
16875
16876         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
16877         cross-module inlining.
16878         * cgraph.h (cgraph_node): Add flag merged.
16879         * ipa-icf.c (sem_function::merge): Maintain it.
16880
16881 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
16882
16883         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
16884         instead of OBJECT_P.
16885
16886 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
16887
16888         PR target/62631
16889         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
16890         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
16891         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
16892         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
16893
16894 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
16895
16896         PR other/63504
16897         * combine.c (reg_n_sets_max): New variable.
16898         (can_change_dest_mode, reg_nonzero_bits_for_combine,
16899         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
16900         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
16901         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
16902         (rest_of_handle_combine): Initialize reg_n_sets_max.
16903
16904 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
16905
16906         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
16907         if some always_inline was inlined, apply changes before inlining
16908         heuristically.
16909
16910 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
16911
16912         PR jit/64810
16913         * config/arm/arm.c (arm_option_override): Set
16914         arm_selected_arch/cpu/tune to NULL on entry.
16915
16916 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
16917             Andrew Pinski  <pinskia@gcc.gnu.org>
16918             Jakub Jelinek  <jakub@gcc.gnu.org>
16919
16920         PR target/64231
16921         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
16922         integer typing for small model. Use IN_RANGE.
16923
16924 2015-02-02  Richard Biener  <rguenther@suse.de>
16925
16926         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
16927         * tree-vrp.c (vrp_valueize_1): Likewise.
16928
16929 2015-02-02  Alan Modra  <amodra@gmail.com>
16930
16931         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
16932         than mem for toc_restore.
16933         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
16934         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
16935         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
16936
16937 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
16938
16939         PR target/64047
16940         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
16941         explicit default options.
16942
16943 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
16944
16945         PR ipa/64872
16946         * ipa-utils.c (ipa_merge_profiles): Add release argument.
16947         * ipa-icf.c (sem_function::merge): Do not release body when merging.
16948         * ipa-utils.h (ipa_merge_profiles): Update prototype.
16949
16950 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
16951
16952         PR debug/64817
16953         * cfgexpand.c (deep_ter_debug_map): New variable.
16954         (avoid_deep_ter_for_debug): New function.
16955         (expand_debug_expr): If TERed SSA_NAME is in
16956         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
16957         instead of trying to expand SSA_NAME's def stmt.
16958         (expand_debug_locations): When expanding debug bind
16959         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
16960         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
16961         value.
16962         (pass_expand::execute): Call avoid_deep_ter_for_debug on
16963         all debug bind stmts.  Delete deep_ter_debug_map after
16964         expand_debug_location if non-NULL and clear it.
16965
16966 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
16967
16968         PR target/64851
16969         * config/sh/sync.md (atomic_fetch_notsi_hard,
16970         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
16971         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
16972         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
16973         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
16974         atomic_not_fetch<mode>_soft_imask): New insns.
16975
16976 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16977
16978         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
16979         (rank_for_schedule_debug): Split from ...
16980         (rank_for_schedule): ... this.
16981         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
16982         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
16983
16984 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
16985
16986         * doc/md.texi (Machine Constraints): Alphabetize table by target.
16987         * doc/extend.texi (x86 Variable Attributes): Move section to
16988         correct alphabetization after renaming.
16989         (x86 Type Attributes): Likewise.
16990         (Target Builtins): Re-alphabetize menu.
16991         (x86 Built-in Functions): Move section to correct alphabetization
16992         after renaming.
16993         (x86 transactional memory intrinsics): Likewise.
16994         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
16995         and x86 Windows Options in table and menu.
16996         (x86 Options): Move section to correct alphabetization after
16997         renaming.
16998         (x86 Windows Options): Likewise.
16999
17000 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
17001
17002         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
17003         preferred names of the architecture and its 32- and 64-bit
17004         variants.
17005         * doc/invoke.texi: Likewise.
17006         * doc/md.texi: Likewise.
17007
17008 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
17009
17010         PR target/64882
17011         * config/i386/predicates.md (address_no_seg_operand): Reject
17012         non-CONST_INT_P operands in invalid mode.
17013
17014 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
17015
17016         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
17017         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
17018         * config/i386/predicates.md (address_no_seg_operand): Call
17019         address_operand with VOIDmode.
17020         (vsib_address_operand): Ditto.
17021         (address_mpx_no_base_operand): Ditto.
17022         (address_mpx_no_index_operand): Ditto.
17023
17024 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
17025
17026         PR target/64688
17027         * lra-constraints.c (original_subreg_reg_mode): New.
17028         (simplify_operand_subreg): Try to simplify subreg of const.  Use
17029         original_subreg_reg_mode for it.
17030         (swap_operands): Update original_subreg_reg_mode.
17031         (curr_insn_transform): Set up original_subreg_reg_mode.
17032
17033 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
17034
17035         PR target/64617
17036         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
17037         function.
17038         (process_alt_operands): Use it.
17039         (curr_insn_transform): Check the optional reload pseudo class is
17040         ok for the mode.
17041
17042 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
17043
17044         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
17045         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
17046         prototype.
17047         * toplev.h (init_asm_output): Update comment on use of
17048         UNKNOWN_LOCATION with fatal_error.
17049         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
17050         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
17051         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
17052         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
17053         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
17054         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
17055         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
17056         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
17057         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
17058         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
17059         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
17060         fatal_error changed to pass input_location as first argument.
17061
17062 2015-01-30  Martin Liska  <mliska@suse.cz>
17063
17064         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
17065         in #pragma GCC diagnostic guards.
17066
17067 2015-01-30  Richard Biener  <rguenther@suse.de>
17068
17069         PR tree-optimization/64829
17070         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
17071         not add a widening conversion pattern but hand off extra
17072         widenings to callers.
17073         (vect_recog_widen_mult_pattern): Handle extra widening produced
17074         by vect_handle_widen_op_by_const.
17075         (vect_recog_widen_shift_pattern): Likewise.
17076         (vect_pattern_recog_1): Remove excess vertical space in dumping.
17077         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
17078         (vect_init_vector_1): Likewise.
17079         (vect_get_vec_def_for_operand): Likewise.
17080         (vect_finish_stmt_generation): Likewise.
17081         (vectorizable_load): Likewise.
17082         (vect_analyze_stmt): Likewise.
17083         (vect_is_simple_use): Likewise.
17084
17085 2015-01-29  Jeff Law  <law@redhat.com>
17086
17087         * combine.c (try_combine): Fix typo in comment.
17088
17089 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
17090
17091         PR target/64580
17092         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
17093         (rs6000_stack_info): Add assert.
17094         (rs6000_output_savres_externs): New function, split off from...
17095         (rs6000_output_function_prologue): ... here.  Do not call it for
17096         thunks.
17097
17098 2015-01-29  Jeff Law  <law@redhat.com>
17099
17100         PR target/15184
17101         * combine.c (try_combine): If I0 is a memory load and I3 a store
17102         to a related address, increase the "goodness" of doing a 4-insn
17103         combination with I0-I3.
17104         (make_field_assignment): Handle SUBREGs in the ior+and case.
17105
17106 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
17107
17108         PR tree-optimization/64746
17109         * tree-if-conv.c (mask_exists): New function.
17110         (predicate_mem_writes): Save created mask with given size for further
17111         use.
17112         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
17113         (ifcvt_repair_bool_pattern): Collect all statements that are root
17114         of bool pattern and use iterative algorithm to remove multiple uses
17115         of predicates, display number of required iterations.
17116
17117 2015-01-29  Richard Biener  <rguenther@suse.de>
17118
17119         PR tree-optimization/64853
17120         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
17121         stmt will get simulated again.
17122         * tree-ssa-ccp.c (valueize_op_1): Likewise.
17123
17124 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17125
17126         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
17127         return_in_pc.  Remove redundant assignments.
17128         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
17129         (arm_expand_epilogue): Don't compare boolean with true in if condition.
17130
17131 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
17132
17133         * config/i386/i386.c (ix86_mode_after): Make static.
17134
17135 2015-01-29  Richard Biener  <rguenther@suse.de>
17136
17137         PR tree-optimization/64844
17138         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
17139         dump cost model analysis.
17140         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17141         Do not register adjusted load/store costs here.
17142
17143 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
17144             Uros Bizjak  <ubizjak@gmail.com>
17145
17146         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
17147         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
17148         using x86_use_pseudo_pic_reg.
17149         * config/i386/i386.c (ix86_conditional_register_usage): Remove
17150         support for fixed PIC register.
17151         (ix86_use_pseudo_pic_reg): Not static any more.
17152
17153 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
17154
17155         PR middle-end/64805
17156         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
17157         to avoid error in cgraph node verification.
17158
17159 2015-01-29  Marek Polacek  <polacek@redhat.com>
17160
17161         * doc/standards.texi: Reflect that the default for C is gnu11.
17162
17163 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
17164
17165         PR target/64761
17166         * reorg.c (switch_text_sections_between_p): New function.
17167         (relax_delay_slots): Call it when testing if the jump insn
17168         is removable.  Use targetm.can_follow_jump when testing if
17169         the conditional branch can follow an unconditional jump.
17170
17171 2015-01-27  Caroline Tice  <cmtice@google.com>
17172
17173         Committing VTV Cywin/Ming patch for Patrick Wollgast
17174         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
17175         if -fvtable-verify=preinit/std is used.
17176         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
17177         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
17178         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
17179         if -fvtable-verify=preinit/std is used.
17180         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
17181         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
17182         if -fvtable-verify=preinit/std is used.
17183         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
17184         * config/i386/mingw32.h (LIB_SPEC): Likewise.
17185         * varasm.c (assemble_variable): Add code to properly set the comdat
17186         section and name for the .vtable_map_vars section in case the
17187         target is PE or COFF.
17188
17189 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
17190
17191         PR ipa/64801
17192         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
17193         make sane BB profile.
17194         (cgraph_node::expand_thunk): Make sane BB profile.
17195         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
17196         * cgraph.h (init_lowered_empty_function): Update prototype.
17197         * config/i386/i386.c (make_resolver_func): Update call.
17198         * predict.c (gate): Disable branch prediction pass if
17199         profile is already there.
17200
17201 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
17202
17203         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
17204         * opth-gen.awk: Likewise.
17205         * common.opt: Mark flag_fp_contract_mode as Optimization.
17206
17207 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17208
17209         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
17210         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
17211
17212 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
17213
17214         PR target/64659
17215         * config/sh/predicates.md (atomic_arith_operand,
17216         atomic_logical_operand): Remove.
17217         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
17218         (atomic_arith_operand_0): New predicate.
17219         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
17220         Use atomic_arith_operand_0 for input values.
17221         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
17222         atomic_compare_and_swap<mode>_soft_gusa,
17223         atomic_compare_and_swap<mode>_soft_tcb,
17224         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
17225         arith_reg_operand instead of register_operand.
17226         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
17227         atomic_arith_operand_0 for newval input.
17228         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
17229         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
17230         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
17231         arith_reg_operand instead of register_operand.
17232         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
17233         fetchop_predicate_1, fetchop_constraint_1_llcs,
17234         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
17235         fetchop_constraint_1_imask): New code iterator attributes.
17236         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
17237         register_operand.  Use fetchop_predicate_1.
17238         (atomic_fetch_<fetchop_name>si_hard,
17239         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
17240         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
17241         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
17242         and arith_reg_operand instead of register_operand.  Use
17243         fetchop_predicate_1, fetchop_constraint_1_gusa.
17244         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
17245         and arith_reg_operand instead of register_operand.  Use
17246         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
17247         to allow R0 usage.
17248         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
17249         and arith_reg_operand instead of register_operand.  Use
17250         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
17251         to allow R0 usage.
17252         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
17253         register_operand.  Use atomic_logical_operand_1.
17254         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
17255         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
17256         arith_reg_operand instead of register_operand.
17257         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
17258         Use arith_reg_dest and arith_reg_operand instead of register_operand.
17259         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
17260         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
17261         register_operand.  Use fetchop_predicate_1.
17262         (atomic_<fetchop_name>_fetchsi_hard,
17263         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
17264         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
17265         fetchop_constraint_1_llcs.
17266         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
17267         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
17268         fetchop_constraint_1_gusa.
17269         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
17270         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
17271         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
17272         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
17273         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
17274         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
17275         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
17276         register_operand.  Use atomic_logical_operand_1.
17277         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
17278         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
17279         arith_reg_operand instead of register_operand.
17280         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
17281         arith_reg_operand instead of register_operand.  Use logical_operand
17282         and K08.  Adjust asm sequence to allow R0 usage.
17283         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
17284         arith_reg_operand instead of register_operand.  Use logical_operand
17285         and K08.
17286
17287 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
17288
17289         PR other/63504
17290         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
17291         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
17292         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
17293         only get_full_len HOST_WIDE_INTs from get_val () array rather than
17294         all bits in *val_wide.
17295
17296 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
17297
17298         * varpool.c (tls_model_names): Fix names.
17299         (varpool_node::dump): Dump tls- prefix for tls models.
17300
17301 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
17302             Bernd Schmidt  <bernds@codesourcery.com>
17303             Nathan Sidwell  <nathan@codesourcery.com>
17304
17305         * config/nvptx/mkoffload.c: New file.
17306         * config/nvptx/t-nvptx: Add build rules for it.
17307         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
17308         (extra_programs): Add mkoffload.
17309         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
17310         function.
17311         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
17312
17313 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
17314
17315         PR middle-end/64809
17316         * cfgexpand.c (reorder_operands): Skip debug gimples.
17317
17318 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
17319
17320         PR tree-optimization/64277
17321         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
17322         range info when possible to refine estimation.
17323
17324 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17325
17326         PR tree-optimization/64718
17327         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
17328         be a 16bit unsigned integer when n->range is 16.
17329         (bswap_replace): Convert src to that type if necessary for all bswap
17330         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
17331         set in pass_optimize_bswap::execute ().
17332
17333 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
17334
17335         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
17336         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
17337         integer and floating point variants.
17338         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
17339
17340 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
17341
17342         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
17343         for all vector modes.
17344
17345 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
17346
17347         PR bootstrap/64612
17348         * doc/sourcebuild.texi (comdat_group): Document.
17349
17350 2015-01-28  Terry Guo  <terry.guo@arm.com>
17351
17352         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
17353
17354 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
17355
17356         * toplev.c (print_version): Add param "show_global_state", and
17357         only print GGC and plugin information if it is true.
17358         (init_asm_output): Pass in "true" for the new param when calling
17359         print_version.
17360         (process_options): Likewise.
17361         (toplev::main): Likewise.
17362         * toplev.h (print_version): Add new param to decl.
17363
17364 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
17365
17366         PR ipa/60871
17367         PR ipa/64139
17368         * tree.c (lookup_binfo_at_offset): New function.
17369         (get_binfo_at_offset): Use it.
17370
17371 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
17372
17373         PR ipa/64282
17374         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
17375         on vtable being vtable.
17376
17377 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17378
17379         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
17380         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
17381         -mhotpatch= option.
17382         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
17383         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
17384         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
17385         Renamed.
17386         (s390_hotpatch_trampoline_halfwords_max): Renamed.
17387         (s390_hotpatch_hw_max): New name.
17388         (s390_hotpatch_trampoline_halfwords): Renamed.
17389         (s390_hotpatch_hw_before_label): New name.
17390         (get_hotpatch_attribute): Removed.
17391         (s390_hotpatch_hw_after_label): New name.
17392         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
17393         attribute.
17394         (s390_attribute_table): Ditto.
17395         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
17396         (s390_function_num_hotpatch_hw): New name.
17397         Remove special handling of inline functions and hotpatching.
17398         Return number of nops before and after the function label.
17399         (s390_can_inline_p): Removed.
17400         (s390_asm_output_function_label): Emit a configurable number of nops
17401         after the function label.
17402         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
17403         (TARGET_CAN_INLINE_P) Removed.
17404         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
17405
17406 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17407             Jiong Wang  <jiong.wang@arm.com>
17408
17409         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
17410         of scratch reg.
17411         (cb<optab><mode>1): Likewise.
17412         * config/aarch64/iterators.md (bcond): New define_code_attr.
17413
17414 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17415
17416         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
17417         memory accesses.
17418
17419 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17420
17421         * config/s390/s390.c (s390_register_move_cost): Increase costs for
17422         FPR->GPR moves.
17423
17424 2015-01-27  Richard Biener  <rguenther@suse.de>
17425
17426         * tree-vrp.c (update_value_range): Intersect the range with
17427         old recorded SSA name range information.
17428
17429 2015-01-27  Nick Clifton  <nickc@redhat.com>
17430
17431         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
17432         BC, DE and HL registers directly, not via AX.
17433         When decrementing the stack pointer by a large amount, transfer SP
17434         into AX and perform the subtraction there.
17435         (rl78_expand_epilogue): Perform the inverse of the above
17436         enhancements.
17437
17438 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17439
17440         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
17441
17442 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
17443             Yury Gribov  <y.gribov@samsung.com>
17444
17445         PR ubsan/64741
17446         * ubsan.c (ubsan_source_location): Refactor code.
17447         (ubsan_type_descriptor): Update type size. Refactor code.
17448
17449 2015-01-27  Richard Biener  <rguenther@suse.de>
17450
17451         PR tree-optimization/56273
17452         PR tree-optimization/59124
17453         PR tree-optimization/64277
17454         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
17455         from the first VRP pass.
17456
17457 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
17458
17459         PR ipa/64776
17460         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
17461         handle the first argument in the same loop as all the other arguments.
17462
17463         PR rtl-optimization/61058
17464         * jump.c (cleanup_barriers): Update basic block boundaries
17465         if BLOCK_FOR_INSN is non-NULL on PREV.
17466
17467 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
17468
17469         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
17470         bounds narrowing, already instrumented calls and calls to
17471         not instrumentable functions.
17472
17473 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
17474
17475         PR tree-optimization/64807
17476         * wide-int.cc (wi::divmod_internal): Clear
17477         b_dividend[dividend_blocks_needed].
17478
17479 2015-01-26  DJ Delorie  <dj@redhat.com>
17480
17481         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
17482         volatile memory references.
17483
17484 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
17485
17486         PR target/49263
17487         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
17488         remove_insn.
17489         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
17490         shifts if it already fits into K08.
17491
17492 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
17493
17494         PR ipa/64730
17495         * ipa-inline.c (inline_small_functions): Print "unknown" even
17496         if edge->call_stmt is non-NULL, but has builtins or unknown
17497         location.
17498
17499         PR middle-end/64421
17500         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
17501         with asterisk, skip the first character.
17502
17503 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
17504
17505         PR target/64806
17506         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
17507         order change.
17508
17509 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
17510
17511         PR target/64795
17512         * config/i386/i386.md (*movdi_internal): Also check operand 0
17513         to determine TYPE_LEA operand.
17514         (*movsi_internal): Ditto.
17515
17516 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
17517
17518         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
17519         OPTION_MASK_QUAD_MEMORY_ATOMIC.
17520
17521 2015-01-26  Renlin Li  <renlin.li@arm.com>
17522
17523         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
17524         the comment.
17525         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
17526         for higher part.
17527
17528 2015-01-26  Richard Biener  <rguenther@suse.de>
17529
17530         PR middle-end/64764
17531         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
17532         combining two BIT_AND_EXPR predicates.
17533
17534 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
17535
17536         PR bootstrap/64754
17537         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
17538
17539 2015-01-26  Terry Guo  <terry.guo@arm.com>
17540
17541         * config/arm/arm.c (arm_file_start): Update the assignment of
17542         Tag_ABI_HardFP_use.
17543
17544 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
17545
17546         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
17547         pipeline model.
17548         config/arm/arm.md: Include the new Cortex-A57 model.
17549         (generic_sched): Don't use generic_sched when tuning for
17550         Cortex-A57.
17551
17552 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
17553             Uros Bizjak  <ubizjak@gmail.com>
17554
17555         * config/i386/i386.c (get_builtin_code_for_version): Add
17556         support for BMI and BMI2 multiversion functions.
17557
17558 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17559
17560         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
17561         (extract_bit_field): Likewise.
17562         (extract_low_bits): Likewise.
17563         (expand_mult): Likewise.
17564         (expand_mult_highpart_adjust): Likewise.
17565
17566 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
17567
17568         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
17569         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
17570         * config/i386/i386.c (processor_model): Add
17571         M_INTEL_COREI7_BROADWELL.
17572         (arch_names_table): Add "broadwell".
17573
17574 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
17575
17576         PR target/49263
17577         PR target/53987
17578         PR target/64345
17579         PR target/59533
17580         PR target/52933
17581         PR target/54236
17582         PR target/51244
17583         * config/sh/sh-protos.h
17584         (sh_extending_set_of_reg::can_use_as_unextended_reg,
17585         sh_extending_set_of_reg::use_as_unextended_reg,
17586         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
17587         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
17588         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
17589         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
17590         (sh_treg_insns): New class.
17591         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
17592         (scope_counter): New class.
17593         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
17594         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
17595         sh_extending_set_of_reg::can_use_as_unextended_reg,
17596         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
17597         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
17598         sh_split_treg_set_expr): New functions.
17599         (addsubcosts): Handle treg_set_expr.
17600         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
17601         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
17602         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
17603         (sh_insn_operands_modified_between_p): Make non-static.
17604         * config/sh/predicates.md (zero_extend_movu_operand): Allow
17605         simple_mem_operand in addition to displacement_mem_operand.
17606         (zero_extend_operand): Don't allow zero_extend_movu_operand.
17607         (treg_set_expr, treg_set_expr_not_const01,
17608         arith_reg_or_treg_set_expr): New predicates.
17609         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
17610         arith_or_int_operand instead of logical_operand.  Convert to
17611         insn_and_split.  Try to optimize constant operand in splitter.
17612         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
17613         (*tstqi_t_zero): Delete.
17614         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
17615         (tstsi_t_and_not): Delete.
17616         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
17617         Convert to insn_and_split.
17618         (unnamed split, tstsi_t_zero_extract_xor,
17619         tstsi_t_zero_extract_subreg_xor_little,
17620         tstsi_t_zero_extract_subreg_xor_big): Delete.
17621         (*tstsi_t_shift_mask): New insn_and_split.
17622         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
17623         to recombine with surrounding insns when splitting.
17624         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
17625         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
17626         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
17627         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
17628         (*cbranch_div0s: Delete.
17629         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
17630         Try to recombine with surrounding insns when splitting.  Add operand
17631         order variants.
17632         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
17633         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
17634         *addc_r_r_msb, *addc_2r_msb): Delete.
17635         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
17636         order variant.
17637         (*addc_negreg_t): New insn_and_split.
17638         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
17639         Try to recombine with surrounding insns when splitting.
17640         Add operand order variants.
17641         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
17642         insn_and_split patterns.
17643         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
17644         surrounding insns when splitting.
17645         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
17646         (*rotcl): Likewise.  Add zero_extract variant.
17647         (*ashrsi2_31): New insn_and_split.
17648         (*negc): Convert to insn_and_split.  Use treg_set_expr.
17649         (*zero_extend<mode>si2_disp_mem): Update comment.
17650         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
17651         condition.
17652         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
17653         with surrounding insns when splitting.
17654         (any_treg_expr_to_reg): New insn_and_split.
17655         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
17656         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
17657         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
17658         *zero_extract_2): New single bit zero extract patterns.
17659         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
17660         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
17661         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
17662         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
17663         set destination.
17664         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
17665         register_operand for set source.
17666
17667 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
17668
17669         * i386.opt (prefetch_sse): New targetsave.
17670         * i386.c (ix86_function_specific_save): Save prefetch_sse.
17671         (ix86_function_specific_restore): Restore prefetch_sse and initialize
17672         ix86_cost/ix86_tune_cost.
17673
17674 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
17675
17676         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
17677         Support the JIT by using 0 as the language type.
17678
17679 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
17680
17681         PR target/64317
17682         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
17683         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
17684         (mark_regno_live, process_bb_lives): Pass new parameter value to
17685         make_hard_regno_born.
17686
17687 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
17688
17689         PR rtl-optimization/63637
17690         PR rtl-optimization/60663
17691         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
17692         if elt->cost is MAX_COST for ASM_OPERANDS.
17693         (find_sets_in_insn): Fix up comment typo.
17694         (cse_insn): Don't set src_volatile for all non-volatile
17695         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
17696         or with "memory" clobber.  Set elt->cost to MAX_COST
17697         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
17698         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
17699
17700 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
17701
17702         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
17703         alternative 1.
17704
17705 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
17706
17707         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
17708         libgcc/config/i386/elf-lib.h.
17709
17710 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
17711
17712         PR driver/64737
17713         * gcc.c (print_configuration): Don't print a blank line at the end
17714         here...
17715         (run_attempt): ... but here unstead.
17716
17717         PR middle-end/64734
17718         * omp-low.c (scan_sharing_clauses): Don't ignore
17719         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
17720         on target data/update constructs.
17721
17722 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17723
17724         PR target/50928
17725         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
17726         (DEBUG_RELOAD): Removed define.
17727         (m32c_limit_reload_class): Enable traces with if DEBUG0.
17728         (m32c_function_arg): Added a type cast.
17729         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
17730         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
17731         * config/m32c/bitops.md (andqi3_16): Likewise.
17732         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
17733         (push_a01_l): Likewise.
17734
17735 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
17736
17737         PR jit/64721
17738         * main.c (main): Construct toplev instances with init_signals=true.
17739         * toplev.c (general_init): Add param "init_signals", and use it to
17740         conditionalize the calls to signal and host_hooks.extra_signals.
17741         (toplev::toplev): Add param "init_signals".
17742         (toplev::main): When invoking general_init, pass m_init_signals
17743         to control whether signal-handlers are installed.
17744         * toplev.h (toplev::toplev): Add param "init_signals".
17745         (toplev::m_init_signals): New field.
17746
17747 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
17748
17749         PR jit/64722
17750         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
17751         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
17752         latter may be affected by the former (e.g. on i686).
17753
17754 2015-01-23  Martin Liska  <mliska@suse.cz>
17755
17756         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
17757         false positive during profiledbootstrap.
17758
17759 2015-01-23  Tom de Vries  <tom@codesourcery.com>
17760
17761         PR libgomp/64672
17762         * lto-opts.c (lto_write_options): Output non-explicit conservative
17763         -fno-openacc.
17764         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
17765         (append_compiler_options): Pass -fopenacc through.
17766
17767 2015-01-23  Tom de Vries  <tom@codesourcery.com>
17768
17769         PR libgomp/64707
17770         * lto-opts.c (lto_write_options): Output non-explicit conservative
17771         -fno-openmp.
17772         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
17773         (append_compiler_options): Pass -fopenmp through.
17774
17775 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
17776
17777         PR debug/64511
17778         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
17779         GTY markup.
17780
17781         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
17782         * diagnostic.def (DK_ICE_NOBT): New kind.
17783         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
17784         like DK_ICE, but never print backtrace.
17785         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
17786         (internal_error_no_backtrace): New function.
17787         * gcc.c (execute): Use internal_error_no_backtrace instead of
17788         internal_error.
17789
17790 2015-01-22  Jeff Law  <law@redhat.com>
17791
17792         PR target/52076
17793         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
17794         improve code density for small immediate to memory case.
17795         (insv): Better handle bitfield assignments when the field is
17796         being set to all ones.
17797         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
17798         operand predicate.
17799
17800 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17801             Jakub Jelinek  <jakub@redhat.com>
17802
17803         PR middle-end/64729
17804         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
17805         for !TARGET_LIBC_PROVIDES_SSP version and
17806         -fstack-protector-{all,strong,explicit} otherwise.
17807         * config/freebsd.h (LINK_SSP_SPEC): Handle
17808         -fstack-protector-{strong,explicit}.
17809
17810 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
17811             H.J. Lu  <hongjiu.lu@intel.com>
17812
17813         PR ipa/64694
17814         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
17815         heap.
17816
17817 2015-01-22  Wei Mi  <wmi@google.com>
17818
17819         PR rtl-optimization/64557
17820         * dse.c (record_store): Call get_addr for mem_addr.
17821         (check_mem_read_rtx): Likewise.
17822
17823 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
17824
17825         * fold-const.c (const_binop): Add early return for non-tcc_binary.
17826
17827 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
17828
17829         * toplev.c (init_local_tick): Process the failure when read
17830         fails for random_seed.
17831
17832         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
17833         'pretty_name' to avoid memory overflow.
17834
17835 2015-01-22  Richard Biener  <rguenther@suse.de>
17836
17837         PR middle-end/64728
17838         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
17839         abnormal coalescing on undefined SSA names.
17840
17841 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
17842
17843         PR target/64688
17844         PR target/64477
17845         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
17846         for alternative 3.
17847         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
17848
17849 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
17850
17851         PR middle-end/63325
17852         * fold-const.c (fold_checksum_tree): Don't include value of
17853         expr->decl_with_vis.symtab_node in the checksum.
17854
17855 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17856
17857         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
17858
17859 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
17860
17861         PR driver/64690
17862         * gcc.c (insert_comments): New function.
17863         (try_generate_repro): Call it.
17864         (append_text): Removed.
17865
17866 2015-01-22  Richard Biener  <rguenther@suse.de>
17867
17868         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
17869         with IL incompatible options.  Properly honor user optimize
17870         attributes.
17871
17872 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
17873
17874         PR rtl-optimization/64682
17875         * combine.c (distribute_notes): When moving a death note for
17876         a register that is set in the new I2, make sure to put it
17877         before that new I2.
17878
17879 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
17880
17881         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
17882         not TARGET_DEFAULT.
17883
17884 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
17885
17886         PR debug/64511
17887         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
17888         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
17889         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
17890
17891         PR sanitizer/64706
17892         * doc/invoke.texi (-fsanitize=vptr): Document.
17893
17894         PR rtl-optimization/62078
17895         * dse.c: Include cfgcleanup.h.
17896         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
17897         anything call purge_all_dead_edges and cleanup_cfg at the end
17898         of the pass.
17899
17900 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
17901
17902         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
17903         edges.
17904
17905 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17906
17907         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
17908         decl attribute.
17909
17910 2015-01-21  David Sherwood  <david.sherwood@arm.com>
17911             Tejas Belagod <Tejas.Belagod@arm.com>
17912
17913         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
17914         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
17915         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
17916         Removed.
17917
17918 2015-01-21  David Sherwood  <david.sherwood@arm.com>
17919             Tejas Belagod <Tejas.Belagod@arm.com>
17920
17921         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
17922         (aarch64_reverse_mask): New decls.
17923         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
17924         (insn_count): New mode_attr.
17925         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
17926         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
17927         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
17928         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
17929         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
17930         (aarch64_simd_st4): New patterns.
17931         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
17932         (aarch64_reverse_mask): New functions.
17933
17934 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
17935
17936         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
17937         Declare.
17938         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
17939         addressing modes for BE.
17940         (aarch64_print_operand): Add 'R' specifier.
17941         (aarch64_simd_disambiguate_copy): Delete.
17942         (aarch64_simd_emit_reg_reg_move): New function.
17943         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
17944         in define_splits for structural moves.
17945         (mov<mode>): Use less restrictive predicates.
17946         (*aarch64_mov<mode>): Simplify and only allow for LE.
17947         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
17948
17949 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
17950
17951         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
17952
17953 2015-01-21  Richard Henderson  <rth@redhat.com>
17954
17955         PR target/64669
17956         * ccmp.c (used_in_cond_stmt_p): Remove.
17957         (expand_ccmp_expr): Don't use it.
17958
17959 2015-01-21  Nick Clifton  <nickc@redhat.com>
17960
17961         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
17962         PARALLELs.
17963
17964 2015-01-21  Richard Biener  <rguenther@suse.de>
17965
17966         PR middle-end/64313
17967         * tree-core.h (builtin_info, builtin_info_type): Turn from
17968         an object with two arrays into an array of an object with
17969         decl and two flags, implicit_p and declared_p.
17970         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
17971         set_builtin_decl, set_builtin_decl_implicit_p,
17972         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
17973         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
17974         * builtins.c (builtin_info): Adjust.
17975         * gimplify.c (gimplify_addr_expr): References to builtins
17976         that have been declared by the user makes them eligible for
17977         use by the compiler.  Call set_builtin_decl_implicit_p on them.
17978
17979 2015-01-20  Jeff Law  <law@redhat.com>
17980
17981         PR target/59946
17982         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
17983         allow pc-relative addresses in operand predicates or constraints.
17984
17985 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
17986
17987         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
17988         neon on aarch32 processors for stringops.
17989
17990 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
17991
17992         PR ipa/63576
17993         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
17994
17995 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
17996
17997         PR lto/45375
17998         * ipa-inline.c: Include lto-streamer.h
17999         (report_inline_failed_reason): Output source file differences and
18000         flags on optimization/target node mismatch.
18001         (can_inline_edge_p): Consider caller to be the outer inline function;
18002         be less restrictive about matching opimize and optimize_size attributes.
18003         (inline_account_function_p): Break out from ...
18004         (inline_small_functions): ... here.
18005         * ipa-inline-transform.c (clone_inlined_nodes): Use
18006         inline_account_function_p.
18007         (inline_call): Use optimize attribution; use inline_account_function_p.
18008         (inline_transform): Use opt_for_fn.
18009         * ipa-inline.h (inline_account_function_p): Declare.
18010
18011 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
18012
18013         PR debug/64663
18014         * dwarf2out.c (decl_piece_node): Don't put bitsize into
18015         mode if bitsize <= 0.
18016         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
18017         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
18018         sizes and positions.
18019
18020 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
18021
18022         * config/nios2/nios2.c (nios2_asm_file_end): Implement
18023         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
18024         needed.
18025         (TARGET_ASM_FILE_END): Define.
18026
18027 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18028
18029         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
18030         (struct tune_params): Use the enum.
18031         * arm.c (arm_*_tune): Update.
18032         (arm_option_override): Update.
18033
18034 2015-01-20  Richard Biener  <rguenther@suse.de>
18035
18036         PR ipa/64684
18037         * ipa-reference.c (add_static_var): Inline ...
18038         (analyze_function): ... here after splitting out from ...
18039         (is_proper_for_analysis): ... this.
18040
18041 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
18042
18043         PR target/64149
18044         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
18045         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
18046         replace the conditional with it's true branch.
18047         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
18048         (arm_lra_p): Remove.
18049
18050 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
18051
18052         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
18053
18054 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18055
18056         * config/tilegx/mul-tables.c: Move symtab.h include after
18057         coretypes.h include.
18058         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
18059         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
18060         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
18061         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
18062         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
18063
18064 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
18065
18066         PR bootstrap/64676
18067         Revert:
18068         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
18069
18070         PR rtl-optimization/64081
18071         * loop-iv.c (def_pred_latch_p): New function.
18072         (latch_dominating_def): Allow specific cases with non-single
18073         definitions.
18074         (iv_get_reaching_def): Likewise.
18075         (check_complex_exit_p): New function.
18076         (check_simple_exit): Use check_complex_exit_p to allow certain cases
18077         with exits not executing on any iteration.
18078
18079 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
18080
18081         PR lto/45375
18082         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
18083         to set branch cost.
18084
18085 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
18086
18087         PR lto/45375
18088         * i386.c (gate): Check flag_expensive_optimizations and
18089         optimize_size.
18090         (ix86_option_override_internal): Drop optimize_size condition
18091         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
18092         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
18093         MASK_PREFER_AVX128.
18094         (ix86_avx256_split_vector_move_misalign,
18095         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
18096         * sse.md (all uses of TARGET_PREFER_AVX128): Add
18097         optimize_insn_for_speed_p check.
18098
18099 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
18100
18101         * config/mips/mips.h (FP_ASM_SPEC): New define.
18102         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
18103         instead.
18104
18105 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
18106
18107         PR target/53988
18108         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
18109         nullptr for insn when reaching the first insn.
18110         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
18111         (sh_insn_operands_modified_between_p): Add nullptr check.
18112         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
18113         sign extending mem load if the insn contains any UNSPEC or
18114         UNSPEC_VOLATILE.
18115
18116 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
18117
18118         * params.def (inline-unit-growth): Drop to 15%.
18119         * invoke.texi (inline-unit-growth): Document change.
18120
18121 2015-01-19  Martin Liska  <mliska@suse.cz>
18122
18123         PR ipa/64668
18124         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
18125         function for second argument of OBJ_TYPE_REF.
18126
18127 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
18128
18129         PR ipa/64218
18130         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
18131         whether function is an alias.
18132
18133 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
18134
18135         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
18136         cases.
18137
18138 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
18139
18140         PR rtl-optimization/64671
18141         * lra-remat.c (operand_to_remat): Don't consider jump and call
18142         insns.
18143
18144 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
18145
18146         PR target/59828
18147         * config/rs6000/default64.h: Include rs6000-cpus.def.
18148         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
18149         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
18150         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
18151         and POWER8.
18152         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
18153         POWER8.
18154         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
18155         pseudo-op to specify assembler dialect.
18156
18157 2015-01-19  Martin Liska  <mliska@suse.cz>
18158
18159         PR ipa/64664
18160         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
18161         Handle safe potentially removed nodes during filtering.
18162
18163 2015-01-19  Martin Liska  <mliska@suse.cz>
18164
18165         * doc/extend.texi (no_icf): Add new attribute description.
18166         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
18167         where the pass attempts to merge a function with no_icf attribute.
18168
18169 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18170
18171         PR target/64532
18172         * doc/md.texi (ARM Options): Document register constraints.
18173
18174 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
18175             Andrew Pinski  <apinski@cavium.com>
18176
18177         PR target/64304
18178         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
18179         (ashl<mode>3): Don't expand if operands[2] is not constant.
18180
18181 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18182
18183         PR target/64448
18184         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
18185         Match xor-and-xor RTL pattern.
18186
18187 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
18188
18189         PR rtl-optimization/64081
18190         * loop-iv.c (def_pred_latch_p): New function.
18191         (latch_dominating_def): Allow specific cases with non-single
18192         definitions.
18193         (iv_get_reaching_def): Likewise.
18194         (check_complex_exit_p): New function.
18195         (check_simple_exit): Use check_complex_exit_p to allow certain cases
18196         with exits not executing on any iteration.
18197
18198 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
18199
18200         * common.opt (fgraphite): Fix a typo.
18201
18202 2015-01-19  Felix Yang  <felix.yang@huawei.com>
18203
18204         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
18205         pattern.
18206         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
18207         uminp, smax_nanp, smin_nanp): New builtins.
18208         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
18209         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
18210         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
18211         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
18212         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
18213         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
18214         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
18215         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
18216         vpminnms_f32): Rewrite using builtin functions.
18217
18218 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
18219
18220         PR libgomp/64625
18221         * omp-low.c (offload_symbol_decl): Remove variable.
18222         (get_offload_symbol_decl): Remove function.
18223         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
18224         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
18225         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
18226         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
18227         BUILT_IN_GOACC_UPDATE don't pass it at all.
18228
18229 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
18230
18231         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
18232         callers.
18233
18234 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
18235
18236         * ipa-chkp.c (chkp_produce_thunks): Add early param
18237         to split thunks production into two passes.  Keep
18238         'always_inline' function bodies after the first pass.
18239         (pass_data_ipa_chkp_early_produce_thunks): New.
18240         (pass_ipa_chkp_early_produce_thunks): New.
18241         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
18242         chkp_produce_thunks signature.
18243         (make_pass_ipa_chkp_early_produce_thunks): New.
18244         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
18245         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
18246         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
18247
18248 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
18249
18250         * cgraph.c (cgraph_node::dump): Dump profile flags.
18251
18252 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
18253
18254         PR target/64652
18255         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
18256         reg appear first in the parallel.
18257
18258 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
18259
18260         * ipa-reference.c (set_reference_optimization_summary,
18261         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
18262         disabled.
18263         (ignore_module_statics): New static var.
18264         (propagate_bits): If ipa-reference is disabled, do not look into local
18265         properties.
18266         (analyze_function): Disable analysis when ipa_reference is disabled.
18267         (generate_summary): Do not dump when reference is disabled;
18268         collect vars accessed from functions with ipa-reference disabled.
18269         (get_read_write_all_from_node): When ipa-reference is disabled, use the
18270         node flags.
18271         (gate): Enable for LTO.
18272         (ignore_edge_p): New function.
18273         (propagate): Skip functions w/o ipa-reference analysis.
18274         * optc-save-gen.awk: Handle optimize_debug correctly.
18275         * opth-gen.awk: Likewise.
18276         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
18277         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
18278         fira-share-save-slots, fira-share-spill-slots,
18279         fmodulo-sched-allow-regmoves, fpartial-inlining,
18280         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
18281         ftracer, ftree-parallelize-loops, fassociative-math,
18282         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
18283         Optimization
18284         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
18285         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
18286         Optimization.
18287         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
18288         Fix for IPA.
18289
18290 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
18291
18292         PR ipa/64378
18293         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
18294         flag correctly.
18295         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
18296
18297 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
18298
18299         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
18300         Remove duplicate option listings.
18301
18302 2015-01-18  Felix Yang  <felix.yang@huawei.com>
18303
18304         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
18305         (autofdo_source_profile::get_callsite_total_count,
18306         function_instance::get_function_instance_by_decl,
18307         string_table::get_index, string_table::get_index_by_decl,
18308         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
18309         Fix comment typos. Reformatting and minor code rearrangement.
18310
18311 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
18312
18313         * config/rs6000/rs6000.md (probe_stack): Delete.
18314         (probe_stack_address): New.
18315
18316 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
18317
18318         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
18319         to test for 32-bit ABIs, not !TARGET_POWERPC64.
18320
18321 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
18322
18323         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
18324         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
18325         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
18326         snafu.
18327         (rs6000_libcall_value): Use the new function.
18328
18329 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
18330
18331         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
18332
18333 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
18334
18335         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
18336         implement a more precise life analysis for it during backward scan.
18337
18338 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
18339
18340         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
18341
18342 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
18343
18344         PR rtl-optimization/52773
18345         * calls.c (emit_library_call_value): When pushing arguments use
18346         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
18347         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
18348         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
18349
18350 2015-01-17  Jeff Law  <law@redhat.com>
18351
18352         PR rtl-optimization/32790
18353         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
18354         not ZERO_EXTEND in SET_DESTs.
18355
18356 2015-01-17  Alan Modra  <amodra@gmail.com>
18357
18358         * cprop.c (do_local_cprop): Revert last change.
18359
18360 2015-01-16  DJ Delorie  <dj@redhat.com>
18361             Nick Clifton  <nickc@redhat.com>
18362
18363         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
18364         (addhi3_real): Likewise.  Fix [HL+0] syntax.
18365         (subqi3_real): Likewise.
18366         (subhi3_real): Likewise.
18367         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
18368         (cbranchhi4_real): Likewise.
18369         (cbranchhi4_real_inverted): Likewise.
18370         (cbranchsi4_real_lt): Likewise.
18371         (cbranchsi4_real_ge): Likewise.
18372         (cbranchsi4_real_ge): Likewise.
18373         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
18374         (sub<mode>3_virt): Likewise.
18375         (cbranchqi4_virt): Likewise.
18376         (cbranchhi4_virt): Likewise.
18377         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
18378         always use '[reg+imm]' even when imm is zero.
18379         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
18380         (rl78_general_operand): New.
18381         (rl78_nonimmediate_operand): New.
18382         (rl78_nonfar_operand): Use them.
18383         (rl78_nonfar_nonimm_operand): Likewise.
18384         (rl78_stack_based_mem): Fix.
18385         * config/rl78/constraints.md (Ibqi): New.
18386         (IBqi): New.
18387         (Wsa): New.
18388         (Wsf): New.
18389         (Cs1): Fix.
18390         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
18391         (iorqi3): Likewise.
18392         (xorqi3): Likewise.
18393         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
18394
18395         * config/rl78/constrains (Qs8): New constraint.
18396         * config/rl78/rl78.c (rl78_flags_already_set): New function.
18397         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
18398         * config/rl78/rl78-real.md (update_Z): New attribute.
18399         Update patterns to set it.
18400         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
18401         shorter compare and branch sequence can be used.
18402         (cbranchhi4_real): Likewise.
18403         (cbranchhi4_real_inverted): Likewise.
18404
18405         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
18406         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
18407         address space.
18408         * config/rl78/rl78.c (rl78_get_name_encoding): New.
18409         (rl78_option_override): Allow -mes0 only if C.
18410         (characterize_address): Support subregs of symbol_refs.
18411         (rl78_addr_space_address_mode): Move.  Add __near.
18412         (rl78_far_p): Likewise.
18413         (rl78_addr_space_pointer_mode): Likewise.
18414         (rl78_as_legitimate_address): Likewise.
18415         (rl78_addr_space_subset_p): Likewise.
18416         (rl78_addr_space_convert): Likewise.
18417         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
18418         symbols with -mes0.
18419         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
18420         addressing.
18421         (rl78_alloc_physical_registers_op1): Change logic to prefer
18422         symbol[BC] addressing.
18423         (frodata_section): New.
18424         (rl78_asm_init_sections): Initialize it.
18425         (rl78_select_section): Put __far readonly symbols in .frodata.
18426         (rl78_make_type_far): New.
18427         (rl78_insert_attributes): Force all readonly symbols to be
18428         __far when -mes0.
18429         (rl78_asm_out_integer): New.
18430         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
18431         * config/rl78/rl78.opt (-mes0): New.
18432
18433         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
18434         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
18435         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
18436         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
18437         (rl78_saddr_p): New.
18438         (rl78_output_aligned_common): New.
18439         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
18440         (rl78_handle_saddr_attribute): New.
18441         (rl78_handle_naked_attribute): New.
18442         (rl78_attribute_table): Add saddr.
18443         (rl78_print_operand_1): Don't print '!' on saddr operands.
18444         (rl78_print_operand_1): Strip encodings.
18445         (rl78_sfr_p): New.
18446         (rl78_strip_name_encoding): New.
18447         (rl78_attrlist_to_encoding): New.
18448         (rl78_encode_section_info): New.
18449         (rl78_asm_init_sections): New.
18450         (rl78_select_section): New.
18451         (rl78_output_labelref): New.
18452         (rl78_output_aligned_common): New.
18453         (rl78_asm_out_integer): New.
18454         (rl78_asm_ctor_dtor): New.
18455         (rl78_asm_constructor): New.
18456         (rl78_asm_destructor): New.
18457
18458         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
18459         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
18460         (transcode_memory_rtx): Update.
18461         (rl78_expand_epilogue): Use A_REG instead of 0.
18462
18463 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18464
18465         * config/arm/arm-protos.h (struct tune_params): New field
18466         sched_autopref_queue_depth.
18467         * config/arm/arm.c (sched-int.h): Include header.
18468         (arm_first_cycle_multipass_dfa_lookahead_guard,)
18469         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
18470         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
18471         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
18472         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
18473         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
18474         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
18475         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
18476         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
18477         * config/arm/t-arm (arm.o): Update.
18478         * haifa-sched.c (update_insn_after_change): Update.
18479         (rank_for_schedule): Use auto-prefetcher model, if requested.
18480         (autopref_multipass_init): New static function.
18481         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
18482         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
18483         variable for debug dumps.
18484         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
18485         (autopref_multipass_dfa_lookahead_guard): New global function that
18486         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
18487         (init_h_i_d): Update.
18488         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
18489         * sched-int.h (enum autopref_multipass_data_status): New const enum.
18490         (autopref_multipass_data_): Structure for auto-prefetcher data.
18491         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
18492         (struct _haifa_insn_data:autopref_multipass_data): New field.
18493         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
18494         (autopref_multipass_dfa_lookahead_guard): Declare.
18495
18496 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18497
18498         * rtlanal.c (get_base_term): Handle SCRATCH.
18499
18500 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18501
18502         * config/aarch64/aarch64.c
18503         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
18504         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
18505         * config/arm/arm.c
18506         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
18507         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
18508
18509 2015-01-17  Alan Modra  <amodra@gmail.com>
18510
18511         * cprop.c (do_local_cprop): Disallow replacement of fixed
18512         hard registers.
18513
18514 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18515
18516         PR target/62066
18517         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
18518         early return 0.
18519
18520 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18521
18522         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
18523         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
18524
18525 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18526
18527         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
18528         * config/arm/thumb1.md: ... Here.
18529
18530 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
18531
18532         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
18533         TImode for TARGET_32BIT.
18534
18535 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
18536
18537         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
18538         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
18539         as ...
18540         (rs6000_abi_word_mode): New function.
18541
18542 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
18543
18544         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
18545         instead of UNITS_PER_WORD to describe the size of stack slots.
18546
18547 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
18548
18549         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
18550         as rs6000_promote_function_mode.  Move comment to there.
18551         (rs6000_promote_function_mode): New function.
18552
18553 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
18554
18555         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
18556         -mpowerpc64 is active.
18557
18558 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
18559
18560         PR middle-end/64353
18561         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
18562         virtuals on start.
18563
18564 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
18565
18566         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
18567         introduced in revision 219724.
18568
18569 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18570             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18571
18572         PR target/64263
18573         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
18574         destination is not a GP reg.
18575         (*movdi_aarch64): Likewise.
18576
18577 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
18578
18579         PR target/64623
18580         * config/rs6000/default64.h: Revert ISA change.
18581
18582 2015-01-16  Richard Biener  <rguenther@suse.de>
18583
18584         PR middle-end/64614
18585         * tree-ssa-uninit.c: Include tree-cfg.h.
18586         (MAX_SWITCH_CASES): New define.
18587         (convert_control_dep_chain_into_preds): Handle switch statements.
18588         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
18589         (normalize_one_pred_1): Do not split bit-manipulations.
18590         Record (x & CST).
18591
18592 2015-01-16  Richard Biener  <rguenther@suse.de>
18593
18594         PR tree-optimization/64568
18595         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
18596         complex load rewriting for TARGET_MEM_REFs.
18597
18598 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
18599
18600         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
18601
18602 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
18603
18604         PR target/64149
18605         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
18606         variable.
18607         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
18608         (aarch64_lra_p): Remove.
18609
18610 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
18611
18612         PR target/64363
18613         * ipa-chkp.h (chkp_instrumentable_p): New.
18614         * ipa-chkp.c: Include tree-inline.h.
18615         (chkp_instrumentable_p): New.
18616         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
18617         Fix processing of not instrumentable functions.
18618         (chkp_versioning): Use chkp_instrumentable_p. Warn about
18619         not instrumentable functions.
18620         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
18621         chkp_instrumentable_p.
18622         * tree-inline.h (copy_forbidden): New.
18623         * tree-inline.c (copy_forbidden): Not static anymore.
18624
18625 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18626
18627         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
18628         ptr1, ptr2 unused.
18629
18630 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
18631
18632         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
18633         type OP_OUT to OP_INOUT.
18634
18635 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
18636
18637         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
18638         (high x) y) to y if x and y have the same base.
18639
18640 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
18641
18642         * config/arm/cortex-a57.md: New.
18643         * config/aarch64/aarch64.md: Include it.
18644         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
18645         * config/aarch64/aarch64-tune.md: Regenerate.
18646
18647 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
18648
18649         PR target/64015
18650         * ccmp.c (expand_ccmp_next): New function.
18651         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
18652         and compare insn sequence.
18653         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
18654         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
18655         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
18656         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
18657         (*ccmp_ior): Changed to ccmp_ior<mode>.
18658         (cmp<mode>): New pattern.
18659         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
18660         parameters.
18661         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
18662
18663 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
18664
18665         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
18666         _mm256_bsrli_epi128): New.
18667         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
18668
18669 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
18670
18671         * expmed.c (store_bit_field_using_insv): Improve warning message.
18672         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
18673
18674 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
18675
18676         PR rtl-optimization/64011
18677         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
18678         there is partial overflow.
18679
18680 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
18681
18682         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
18683         prototype.
18684         (nds32_expand_epilogue_v3pop): Likewise.
18685         * config/nds32/nds32.md (sibcall): Define this for sibling call
18686         optimization.
18687         (sibcall_register): Likewise.
18688         (sibcall_immediate): Likewise.
18689         (sibcall_value): Likewise.
18690         (sibcall_value_register): Likewise.
18691         (sibcall_value_immediate): Likewise.
18692         (sibcall_epilogue): Likewise.
18693         (epilogue): Pass false to indicate this is not a sibcall epilogue.
18694         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
18695         (nds32_expand_epilogue_v3pop): Likewise.
18696
18697 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
18698
18699         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
18700         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
18701         (return_internal): New.
18702         (return): Define this named pattern.
18703         (simple_return): Define this named pattern.
18704         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
18705         pattern instead of unspec_volatile_func_return.
18706         (nds32_expand_epilogue_v3pop): Likewise.
18707         (nds32_can_use_return_insn): New function.
18708
18709 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
18710
18711         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
18712         * config/nds32/nds32.md (pop25return): New.
18713         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
18714         pop25return pattern.
18715
18716 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
18717
18718         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
18719         -mforbid-fp-as-gp, and -mex9 options.
18720
18721 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
18722
18723         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
18724         remove -mgp-direct option.
18725
18726 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
18727
18728         * doc/invoke.texi (--param early-inlining-insns): Update default value.
18729         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
18730
18731 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
18732
18733         * ipa-inline.c (inline_small_functions): Work around hints
18734         cache issue.
18735
18736 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
18737
18738         PR target/59710
18739         * doc/invoke.texi (Option Summary): Document new Nios II
18740         -mgpopt= syntax.
18741         (Nios II Options): Likewise.
18742         * config/nios2/nios2.opt: Add -mgpopt= option support.
18743         Modify existing -mgpopt and -mno-gpopt options to be aliases.
18744         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
18745         * config/nios2/nios2.c (nios2_option_override): Adjust
18746         -mgpopt defaulting.
18747         (nios2_in_small_data_p): Return true for explicit small data
18748         sections even with -G0.
18749         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
18750         option choices.
18751
18752 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
18753
18754         PR ipa/64612
18755         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
18756         of comdat locals.
18757         (inline_call): Fix removal of aliases.
18758
18759 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
18760
18761         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
18762         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
18763         * opts.c (common_handle_option): Add -fsanitize=vptr.
18764         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
18765         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
18766         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
18767         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
18768         (ubsan_expand_vptr_ifn): New prototype.
18769         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
18770         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
18771         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
18772         expand_LOOP_VECTORIZED): Make argument nameless, remove
18773         ATTRIBUTE_UNUSED.
18774         (expand_UBSAN_VPTR): New function.
18775         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
18776         in fn spec.
18777         (UBSAN_VPTR): New internal function.
18778         * sanopt.c (tree_map_traits): Renamed to ...
18779         (sanopt_tree_map_traits): ... this.
18780         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
18781         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
18782         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
18783         (maybe_optimize_ubsan_vptr_ifn): New function.
18784         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
18785         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
18786         -fsanitize=vptr.
18787         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
18788         internal calls like pure functions for aliasing, even when they
18789         have other side-effects that prevent making them ECF_PURE.
18790         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
18791         (ubsan_expand_vptr_ifn): New function.
18792
18793 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
18794
18795         PR rtl-optimization/64110
18796         * stmt.c (parse_output_constraint): Process '^' and '$'.
18797         (parse_input_constraint): Ditto.
18798         * lra-constraints.c (process_alt_operands): Process the new
18799         constraints.
18800         * ira-costs.c (record_reg_classes): Process the new constraint
18801         '^'.
18802         * genoutput.c (indep_constraints): Add '^' and '$'.
18803         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
18804         * doc/md.texi: Add description of the new constraints.
18805
18806 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
18807             Bernd Schmidt  <bernds@codesourcery.com>
18808             Cesar Philippidis  <cesar@codesourcery.com>
18809             James Norris  <jnorris@codesourcery.com>
18810             Tom de Vries  <tom@codesourcery.com>
18811             Ilmir Usmanov  <i.usmanov@samsung.com>
18812             Dmitry Bocharnikov  <dmitry.b@samsung.com>
18813             Evgeny Gavrin  <e.gavrin@samsung.com>
18814             Jakub Jelinek  <jakub@redhat.com>
18815
18816         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
18817         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
18818         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
18819         New function types.
18820         * builtins.c: Include "gomp-constants.h".
18821         (expand_builtin_acc_on_device): New function.
18822         (expand_builtin, is_inexpensive_builtin): Handle
18823         BUILT_IN_ACC_ON_DEVICE.
18824         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
18825         New macros.
18826         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
18827         flag_openmp.
18828         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
18829         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
18830         i386/intelmic-offload.h.
18831         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
18832         to libgomp and its dependencies.
18833         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
18834         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
18835         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
18836         * config/ia64/hpux.h (LIB_SPEC): Likewise.
18837         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
18838         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
18839         * doc/generic.texi: Update for OpenACC changes.
18840         * doc/gimple.texi: Likewise.
18841         * doc/invoke.texi: Likewise.
18842         * doc/sourcebuild.texi: Likewise.
18843         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
18844         GF_OMP_FOR_KIND_OACC_LOOP.
18845         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
18846         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
18847         GF_OMP_TARGET_KIND_OACC_UPDATE,
18848         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
18849         Dump more data.
18850         * gimple.c: Update comments for OpenACC changes.
18851         * gimple.def: Likewise.
18852         * gimple.h: Likewise.
18853         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
18854         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
18855         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
18856         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
18857         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
18858         appropriate place.
18859         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
18860         * gimplify.c: Include "gomp-constants.h".
18861         Update comments for OpenACC changes.
18862         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
18863         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
18864         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
18865         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
18866         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
18867         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
18868         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
18869         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
18870         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
18871         OMP_CLAUSE_SEQ.
18872         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
18873         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
18874         OMP_CLAUSE_SET_MAP_KIND.
18875         (gimplify_oacc_cache): New function.
18876         (gimplify_omp_for): Handle OACC_LOOP.
18877         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
18878         OACC_DATA.
18879         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
18880         OACC_EXIT_DATA, OACC_UPDATE.
18881         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
18882         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
18883         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
18884         (gimplify_body): Consider flag_openacc next to flag_openmp.
18885         * lto-streamer-out.c: Include "gomp-constants.h".
18886         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
18887         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
18888         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
18889         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
18890         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
18891         (BUILT_IN_ACC_ON_DEVICE): New builtins.
18892         * omp-low.c: Include "gomp-constants.h".
18893         Update comments for OpenACC changes.
18894         (struct omp_context): Add reduction_map, gwv_below, gwv_this
18895         members.
18896         (extract_omp_for_data, use_pointer_for_field, install_var_field)
18897         (new_omp_context, delete_omp_context, scan_sharing_clauses)
18898         (create_omp_child_function, scan_omp_for, scan_omp_target)
18899         (check_omp_nesting_restrictions, lower_reduction_clauses)
18900         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
18901         Update for OpenACC changes.
18902         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
18903         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
18904         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
18905         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
18906         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
18907         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
18908         OMP_CLAUSE_MAP_*.
18909         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
18910         Handle GF_OMP_FOR_KIND_OACC_LOOP.
18911         (expand_omp_target, lower_omp_target): Handle
18912         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
18913         GF_OMP_TARGET_KIND_OACC_UPDATE,
18914         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
18915         GF_OMP_TARGET_KIND_OACC_DATA.
18916         (pass_expand_omp::execute, execute_lower_omp)
18917         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
18918         flag_openmp.
18919         (offload_symbol_decl): New variable.
18920         (oacc_get_reduction_array_id, oacc_max_threads)
18921         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
18922         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
18923         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
18924         (oacc_gimple_assign, oacc_initialize_reduction_data)
18925         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
18926         functions.
18927         (is_targetreg_ctx): Remove function.
18928         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
18929         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
18930         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
18931         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
18932         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
18933         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
18934         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
18935         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
18936         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
18937         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
18938         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
18939         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
18940         * tree-core.h: Update comments for OpenACC changes.
18941         (enum omp_clause_map_kind): Remove.
18942         (struct tree_omp_clause): Change type of map_kind member from enum
18943         omp_clause_map_kind to unsigned char.
18944         * tree-inline.c: Update comments for OpenACC changes.
18945         * tree-nested.c: Likewise.  Include "gomp-constants.h".
18946         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
18947         (convert_tramp_reference_stmt, convert_gimple_call): Update for
18948         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
18949         OMP_CLAUSE_SET_MAP_KIND.
18950         * tree-pretty-print.c: Include "gomp-constants.h".
18951         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
18952         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
18953         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
18954         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
18955         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
18956         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
18957         instead of OMP_CLAUSE_MAP_*.
18958         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
18959         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
18960         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
18961         * tree-streamer-in.c: Include "gomp-constants.h".
18962         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
18963         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
18964         * tree-streamer-out.c: Include "gomp-constants.h".
18965         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
18966         OMP_CLAUSE_MAP_*.
18967         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
18968         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
18969         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
18970         * tree.c (omp_clause_num_ops): Update accordingly.
18971         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
18972         Likewise.
18973         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
18974         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
18975         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
18976         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
18977         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
18978         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
18979         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
18980         (OMP_CLAUSE_SET_MAP_KIND): New macro.
18981         * varpool.c (varpool_node::get_create): Consider flag_openacc next
18982         to flag_openmp.
18983         * config/i386/intelmic-offload.h: New file.
18984         * config/nvptx/offload.h: Likewise.
18985
18986 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18987
18988         * explow.h: Remove duplicate contents.
18989         * dojump.h: Likewise.
18990
18991 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
18992
18993         * arm.c (arm_xgene_tune): Add default initializer for instruction
18994         fusion.
18995
18996 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
18997
18998         PR ipa/64068
18999         PR ipa/64559
19000         * ipa.c (symbol_table::remove_unreachable_nodes):
19001         Do not put abstract origins into boundary.
19002
19003 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
19004
19005         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
19006         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
19007
19008 2015-01-15  Steve Ellcey  <sellcey@mips.com>
19009
19010         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
19011         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
19012         builtins.def, and chkp-builtins.def.
19013
19014 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
19015
19016         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
19017         ISA 2.7 (POWER8).
19018
19019 2015-01-15  Richard Biener  <rguenther@suse.de>
19020
19021         PR tree-optimization/61743
19022         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
19023         information on PHIs for some simple cases.
19024
19025 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19026
19027         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
19028         Include xgene1.md.
19029         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
19030         * config/arm/arm-cores.def (xgene1): New entry.
19031         * config/arm/arm-tables.opt: Regenerate.
19032         * config/arm/arm-tune.md: Regenerate.
19033         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
19034
19035 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
19036
19037         * tree-if-conv.c: Include hash-map.h.
19038         (aggressive_if_conv): New variable.
19039         (fold_build_cond_expr): Add simplification of non-zero condition.
19040         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
19041         destination block is not always executed.
19042         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
19043         than two predecessors if AGGRESSIVE_IF_CONV is true.
19044         (if_convertible_stmt_p): Fix commentary.
19045         (all_preds_critical_p): New function.
19046         (has_pred_critical_p): New function.
19047         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
19048         BB can have more than two predecessors and all incoming edges can be
19049         critical.
19050         (predicate_bbs): Skip predication for loop exit block, use build2_loc
19051         to compute predicate for true edge.
19052         (find_phi_replacement_condition): Delete this function.
19053         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
19054         Allow interchange PHI arguments if EXTENDED is false.
19055         Change check that block containing reduction statement candidate
19056         is predecessor of phi-block since phi may have more than two arguments.
19057         (phi_args_hash_traits): New helper structure.
19058         (struct phi_args_hash_traits): New type.
19059         (phi_args_hash_traits::hash): New function.
19060         (phi_args_hash_traits::equal_keys): New function.
19061         (gen_phi_arg_condition): New function.
19062         (predicate_scalar_phi): Add handling of phi nodes with more than two
19063         arguments, delete COND and TRUE_BB arguments, insert body of
19064         find_phi_replacement_condition to predicate ordinary phi nodes.
19065         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
19066         delete call of find_phi_replacement_condition and invoke
19067         predicate_scalar_phi with two arguments.
19068         (insert_gimplified_predicates): Add assert that non-predicated block
19069         don't have statements to insert.
19070         (ifcvt_split_critical_edges): New function.
19071         (ifcvt_split_def_stmt): Likewise.
19072         (ifcvt_walk_pattern_tree): Likewise.
19073         (stmt_is_root_of_bool_pattern): Likewise.
19074         (ifcvt_repair_bool_pattern): Likewise.
19075         (ifcvt_local_dce): Likewise.
19076         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
19077         is copy of inner or outer loop force_vectorize field, invoke
19078         ifcvt_split_critical_edges, ifcvt_local_dce and
19079         ifcvt_repair_bool_pattern for aggressive if-conversion.
19080
19081 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
19082
19083         * config/aarch64/aarch64.md: Include xgene1.md.
19084         * config/aarch64/xgene1.md: New file.
19085
19086 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19087
19088         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
19089         xgene1 (APM XGene-1) core definition.
19090         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
19091         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
19092         * doc/invoke.texi: Document -mcpu=xgene1.
19093
19094 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19095
19096         * dojump.h: New header file.
19097         * explow.h: Likewise.
19098         * expr.h: Remove includes.
19099         Move expmed.c prototypes to expmed.h.
19100         Move dojump.c prototypes to dojump.h.
19101         Move alias.c prototypes to alias.h.
19102         Move explow.c prototypes to explow.h.
19103         Move calls.c prototypes to calls.h.
19104         Move emit-rtl.c prototypes to emit-rtl.h.
19105         Move varasm.c prototypes to varasm.h.
19106         Move stmt.c prototypes to stmt.h.
19107         (saved_pending_stack_adjust): Move to dojump.h.
19108         (adjust_address): Move to explow.h.
19109         (adjust_address_nv): Move to emit-rtl.h.
19110         (adjust_bitfield_address): Likewise.
19111         (adjust_bitfield_address_size): Likewise.
19112         (adjust_bitfield_address_nv): Likewise.
19113         (adjust_automodify_address_nv): Likewise.
19114         * explow.c (expr_size): Move to expr.c.
19115         (int_expr_size): Likewise.
19116         (tree_expr_size): Likewise.
19117         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19118         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
19119         * genemit.c (main): Generate includes statistics.h, real.h,
19120         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
19121         stmt.h.
19122         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
19123         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
19124         explow.h, emit-rtl.h, stmt.h.
19125         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
19126         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
19127         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
19128         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
19129         emit-rtl.h, varasm.h, stmt.h.
19130         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
19131         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
19132         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
19133         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
19134         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
19135         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
19136         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
19137         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
19138         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
19139         tm.h tree.h varasm.h vec.h wide-int.h.
19140         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
19141         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
19142         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
19143         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
19144         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
19145         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
19146         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
19147         * loop-iv.c: Likewise.
19148         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
19149         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
19150         statistics.h stmt.h tree.h varasm.h wide-int.h.
19151         * lra-constraints.c: Likewise.
19152         * lra-eliminations.c: Likewise.
19153         * lra-lives.c: Likewise.
19154         * lra-remat.c: Likewise.
19155         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
19156         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
19157         statistics.h stmt.h tree.h varasm.h wide-int.h.
19158         * hw-doloop.c: Likewise.
19159         * ira-color.c: Likewise.
19160         * ira-emit.c: Likewise.
19161         * loop-doloop.c: Likewise.
19162         * loop-invariant.c: Likewise.
19163         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
19164         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
19165         statistics.h stmt.h tree.h varasm.h wide-int.h.
19166         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
19167         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
19168         statistics.h stmt.h tree.h varasm.h wide-int.h.
19169         * combine-stack-adj.c: Likewise.
19170         * cse.c: Likewise.
19171         * ddg.c: Likewise.
19172         * ifcvt.c: Likewise.
19173         * ira-costs.c: Likewise.
19174         * jump.c: Likewise.
19175         * lra-coalesce.c: Likewise.
19176         * lra-spills.c: Likewise.
19177         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
19178         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
19179         stmt.h varasm.h wide-int.h.
19180         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
19181         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
19182         varasm.h.
19183         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
19184         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
19185         statistics.h stmt.h varasm.h wide-int.h.
19186         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
19187         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
19188         varasm.h wide-int.h.
19189         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
19190         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
19191         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
19192         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
19193         statistics.h stmt.h.
19194         * config/tilepro/tilepro.c: Likewise.
19195         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
19196         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
19197         * config/pdp11/pdp11.c: Likewise.
19198         * config/xtensa/xtensa.c: Likewise.
19199         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
19200         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
19201         varasm.h.
19202         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19203         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
19204         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
19205         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19206         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
19207         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
19208         * rtl-chkp.c: Likewise.
19209         * tree-chkp-opt.c: Likewise.
19210         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
19211         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
19212         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
19213         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19214         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
19215         statistics.h stmt.h.
19216         * tree-vect-data-refs.c: Likewise.
19217         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
19218         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19219         rtl.h statistics.h stmt.h varasm.h.
19220         * internal-fn.c: Likewise.
19221         * ipa-icf-gimple.c: Likewise.
19222         * lto-section-out.c: Likewise.
19223         * tree-data-ref.c: Likewise.
19224         * tree-nested.c: Likewise.
19225         * tree-outof-ssa.c: Likewise.
19226         * tree-predcom.c: Likewise.
19227         * tree-pretty-print.c: Likewise.
19228         * tree-scalar-evolution.c: Likewise.
19229         * tree-ssa-strlen.c: Likewise.
19230         * tree-vect-loop.c: Likewise.
19231         * tree-vect-patterns.c: Likewise.
19232         * tree-vect-slp.c: Likewise.
19233         * tree-vect-stmts.c: Likewise.
19234         * tsan.c: Likewise.
19235         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19236         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
19237         stmt.h.
19238         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
19239         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19240         statistics.h stmt.h varasm.h.
19241         * loop-unroll.c: Likewise.
19242         * ubsan.c: Likewise.
19243         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
19244         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
19245         stmt.h varasm.h.
19246         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19247         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
19248         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
19249         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
19250         statistics.h stmt.h.
19251         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
19252         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
19253         statistics.h stmt.h varasm.h.
19254         * gimple-match-head.c: Likewise.
19255         * lto-cgraph.c: Likewise.
19256         * lto-section-in.c: Likewise.
19257         * lto-streamer-in.c: Likewise.
19258         * lto-streamer-out.c: Likewise.
19259         * tree-affine.c: Likewise.
19260         * tree-cfg.c: Likewise.
19261         * tree-cfgcleanup.c: Likewise.
19262         * tree-if-conv.c: Likewise.
19263         * tree-into-ssa.c: Likewise.
19264         * tree-ssa-alias.c: Likewise.
19265         * tree-ssa-copyrename.c: Likewise.
19266         * tree-ssa-dse.c: Likewise.
19267         * tree-ssa-forwprop.c: Likewise.
19268         * tree-ssa-live.c: Likewise.
19269         * tree-ssa-math-opts.c: Likewise.
19270         * tree-ssa-pre.c: Likewise.
19271         * tree-ssa-sccvn.c: Likewise.
19272         * tree-tailcall.c: Likewise.
19273         * tree-vect-generic.c: Likewise.
19274         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19275         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
19276         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19277         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
19278         * varasm.c: Likewise.
19279         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19280         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
19281         varasm.h.
19282         * init-regs.c: Likewise.
19283         * ira.c: Likewise.
19284         * omp-low.c: Likewise.
19285         * stack-ptr-mod.c: Likewise.
19286         * tree-ssa-reassoc.c: Likewise.
19287         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19288         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
19289         varasm.h.
19290         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19291         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
19292         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19293         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
19294         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19295         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
19296         * tree-ssa-phiopt.c: Likewise.
19297         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19298         fixed-value.h hashtab.h real.h statistics.h stmt.h.
19299         * config/fr30/fr30.c: Likewise.
19300         * config/frv/frv.c: Likewise.
19301         * expr.c: Likewise.
19302         * final.c: Likewise.
19303         * optabs.c: Likewise.
19304         * passes.c: Likewise.
19305         * simplify-rtx.c: Likewise.
19306         * stmt.c: Likewise.
19307         * toplev.c: Likewise.
19308         * var-tracking.c: Likewise.
19309         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19310         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
19311         * lower-subreg.c: Likewise.
19312         * postreload-gcse.c: Likewise.
19313         * ree.c: Likewise.
19314         * reginfo.c: Likewise.
19315         * store-motion.c: Likewise.
19316         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19317         fixed-value.h hashtab.h real.h stmt.h varasm.h.
19318         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19319         fixed-value.h hashtab.h statistics.h stmt.h.
19320         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19321         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
19322         * except.c: Likewise.
19323         * explow.c: Likewise.
19324         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19325         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
19326         varasm.h.
19327         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19328         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
19329         * tree-ssa-structalias.c: Likewise.
19330         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19331         fixed-value.h insn-config.h real.h statistics.h.
19332         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19333         fixed-value.h insn-config.h real.h statistics.h stmt.h.
19334         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19335         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
19336         * cfgbuild.c: Likewise.
19337         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19338         fixed-value.h real.h rtl.h statistics.h stmt.h.
19339         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19340         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
19341         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19342         fixed-value.h real.h statistics.h stmt.h.
19343         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19344         fixed-value.h real.h statistics.h stmt.h varasm.h.
19345         * cprop.c: Likewise.
19346         * modulo-sched.c: Likewise.
19347         * postreload.c: Likewise.
19348         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
19349         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
19350         statistics.h stmt.h varasm.h.
19351         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
19352         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19353         rtl.h statistics.h stmt.h varasm.h.
19354         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
19355         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
19356         varasm.h.
19357         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
19358         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
19359         varasm.h.
19360         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
19361         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
19362         varasm.h.
19363         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
19364         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
19365         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
19366         function.h real.h statistics.h stmt.h varasm.h.
19367         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
19368         insn-config.h real.h statistics.h stmt.h.
19369         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
19370         statistics.h stmt.h.
19371         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
19372         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
19373         statistics.h stmt.h varasm.h.
19374         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
19375         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
19376         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
19377         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
19378         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
19379         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
19380         statistics.h stmt.h varasm.h.
19381         * ipa-polymorphic-call.c: Likewise.
19382         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
19383         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19384         statistics.h stmt.h.
19385         * config/c6x/c6x.c: Likewise.
19386         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
19387         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19388         statistics.h stmt.h varasm.h.
19389         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
19390         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
19391         stmt.h varasm.h.
19392         * ipa-split.c: Likewise.
19393         * tree-eh.c: Likewise.
19394         * tree-ssa-dce.c: Likewise.
19395         * tree-ssa-loop-niter.c: Likewise.
19396         * tree-vrp.c: Likewise.
19397         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
19398         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
19399         stmt.h.
19400         * config/nds32/nds32-fp-as-gp.c: Likewise.
19401         * config/nds32/nds32-intrinsic.c: Likewise.
19402         * config/nds32/nds32-isr.c: Likewise.
19403         * config/nds32/nds32-md-auxiliary.c: Likewise.
19404         * config/nds32/nds32-memory-manipulation.c: Likewise.
19405         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19406         * config/nds32/nds32-predicates.c: Likewise.
19407         * config/nds32/nds32.c: Likewise.
19408         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
19409         fixed-value.h hashtab.h real.h statistics.h.
19410         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
19411         fixed-value.h hashtab.h real.h statistics.h stmt.h.
19412         * config/arm/arm.c: Likewise.
19413         * config/avr/avr.c: Likewise.
19414         * config/bfin/bfin.c: Likewise.
19415         * config/h8300/h8300.c: Likewise.
19416         * config/i386/i386.c: Likewise.
19417         * config/ia64/ia64.c: Likewise.
19418         * config/iq2000/iq2000.c: Likewise.
19419         * config/m32c/m32c.c: Likewise.
19420         * config/m32r/m32r.c: Likewise.
19421         * config/m68k/m68k.c: Likewise.
19422         * config/mcore/mcore.c: Likewise.
19423         * config/mep/mep.c: Likewise.
19424         * config/mips/mips.c: Likewise.
19425         * config/mn10300/mn10300.c: Likewise.
19426         * config/moxie/moxie.c: Likewise.
19427         * config/pa/pa.c: Likewise.
19428         * config/rl78/rl78.c: Likewise.
19429         * config/rx/rx.c: Likewise.
19430         * config/s390/s390.c: Likewise.
19431         * config/sh/sh.c: Likewise.
19432         * config/sparc/sparc.c: Likewise.
19433         * config/spu/spu.c: Likewise.
19434         * config/stormy16/stormy16.c: Likewise.
19435         * config/v850/v850.c: Likewise.
19436         * config/vax/vax.c: Likewise.
19437         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
19438         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
19439         * config/msp430/msp430.c: Likewise.
19440         * predict.c: Likewise.
19441         * value-prof.c: Likewise.
19442         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
19443         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
19444         * config/microblaze/microblaze.c: Likewise.
19445         * config/nios2/nios2.c: Likewise.
19446         * config/rs6000/rs6000.c: Likewise.
19447         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
19448         insn-config.h real.h rtl.h statistics.h stmt.h.
19449         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
19450         insn-config.h real.h statistics.h stmt.h.
19451         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
19452         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
19453         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
19454         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
19455         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
19456         fixed-value.h real.h statistics.h stmt.h.
19457         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
19458         fixed-value.h statistics.h stmt.h.
19459         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
19460         stmt.h.
19461
19462 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
19463
19464         * gengtype.c (create_user_defined_type): Workaround
19465         -Wmaybe-uninitialized false positives.
19466         * cse.c (fold_rtx): Likewise.
19467         * loop-invariant.c (gain_for_invariant): Likewise.
19468
19469 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
19470
19471         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
19472         set the memory attributes in all cases but clear MEM_EXPR if need be.
19473
19474 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
19475
19476         PR tree-optimization/64434
19477         * cfgexpand.c (reorder_operands): New function.
19478         (expand_gimple_basic_block): Insert call of reorder_operands if
19479         optimized is true.
19480
19481 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
19482
19483         * config/mips/micromips.md (*swp): Remove explicit parallel.
19484         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
19485         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
19486         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
19487         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
19488         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
19489         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
19490         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
19491         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
19492         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
19493         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
19494         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
19495         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
19496         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
19497         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
19498         (mips_wrdsp): Likewise.
19499         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
19500         parallel.
19501         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
19502         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
19503         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
19504         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
19505         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
19506         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
19507         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
19508         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
19509         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
19510
19511 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
19512
19513         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
19514         (mips_print_operand): Support 'y' to print exact log2 in decimal
19515         of a const_int.
19516         * config/mips/mips.h (ISA_HAS_LSA): New define.
19517         (ISA_HAS_DLSA): Likewise.
19518         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
19519         * config/mips/predicates.md (const_immlsa_operand): New predicate.
19520
19521 2015-01-15  Martin Liska  <mliska@suse.cz>
19522
19523         PR target/64377
19524         * optc-save-gen.awk: Add support for array types.
19525
19526 2015-01-15  Richard Biener  <rguenther@suse.de>
19527
19528         PR middle-end/64365
19529         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
19530         for MEM_REF access functions with the same base can never partially
19531         overlap.
19532
19533 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
19534
19535         * common.opt: New option -fstack-protector-explicit.
19536         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
19537         (stack_protect_decl_phase): Handle stack_protect attribute for
19538         explicit stack protection requests.
19539         (expand_used_vars): Similarly.
19540         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
19541         * doc/extend.texi: Add documentation for "stack_protect" attribute.
19542         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
19543
19544 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
19545
19546         PR target/53988
19547         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
19548         reg-reg copies.
19549         (sh_extending_set_of_reg): New struct.
19550         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
19551         sh_remove_reg_dead_or_unused_notes): New Declarations.
19552         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
19553         sh_find_extending_set_of_reg, sh_split_tst_subregs,
19554         sh_extending_set_of_reg::use_as_extended_reg): New functions.
19555         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
19556         convert to insn_and_split and use new function sh_split_tst_subregs.
19557
19558 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
19559
19560         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
19561         option.
19562         (Optimization Options): Move -fuse-ld documentation to...
19563         (Link Options): ...here.
19564
19565 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
19566
19567         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
19568         offsets.
19569         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
19570         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
19571         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
19572         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
19573         instead of ZR for the memory operand of LL/SC.
19574         (compare_and_swap_12, sync_add<mode>): Likewise.
19575         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
19576         (sync_new_<optab>_12, sync_nand_12): Likewise.
19577         (sync_old_nand_12, sync_new_nand_12): Likewise.
19578         (sync_sub<mode>, sync_old_add<mode>): Likewise.
19579         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
19580         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
19581         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
19582         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
19583         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
19584         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
19585         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
19586         * doc/md.texi (ZC): Update description.
19587
19588 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
19589
19590         * builtins.c (expand_builtin_atomic_exchange): Remove error when
19591         memory model is CONSUME.
19592         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
19593         expand_builtin_atomic_store): Change invalid memory model errors to
19594         warnings.
19595         (expand_builtin_atomic_clear): Change invalid model errors to warnings
19596         and issue warning for CONSUME.
19597
19598 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
19599
19600         * lto-cgraph: Update function comments for
19601         lto_symtab_encoder_encode_*.
19602
19603 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
19604
19605         * Makefile.in (site.exp): Do not set ENABLE_LTO.
19606
19607 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
19608
19609         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
19610         * lto-cgraph.c (select_what_to_stream): Remove argument, use
19611         lto_stream_offload_p instead.
19612         * lto-streamer.h (select_what_to_stream): Remove argument.
19613         * passes.c (ipa_write_summaries): Likewise.
19614         * tree-pass.h (ipa_write_summaries): Likewise.
19615
19616 2015-01-14  Richard Biener  <rguenther@suse.de>
19617
19618         PR tree-optimization/59354
19619         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
19620         groups larger than the slp group size as having gaps.
19621
19622 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
19623
19624         PR middle-end/59448
19625         * builtins.c (get_memmodel): Promote consume to acquire always.
19626
19627 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
19628
19629         PR target/64386
19630         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
19631         V32HImode.
19632
19633 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
19634
19635         PR target/64393
19636         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
19637         Enable AVX512BW.
19638         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
19639         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
19640         AVX512VBMI, as it implies AVX512BW.
19641
19642 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
19643
19644         PR target/64387
19645         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
19646         (vec_unpacks_hi_v16sf): Ditto.
19647
19648 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19649
19650         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
19651         is not available.
19652
19653 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19654
19655         * doc/invoke.texi (mapcs): Mention deprecation.
19656         (mapcs-frame): Likewise.
19657
19658 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19659
19660         PR target/64453
19661         * config/arm/arm.c (callee_saved_reg_p): Define.
19662         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
19663         register is callee saved instead of !call_used_regs[reg].
19664         (thumb1_compute_save_reg_mask): Likewise.
19665
19666 2015-01-14  Hale Wang  <hale.wang@arm.com>
19667
19668         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
19669         Cortex-M7.
19670
19671 2015-01-14  Richard Biener  <rguenther@suse.de>
19672
19673         PR lto/64415
19674         * tree-inline.c (insert_debug_decl_map): Check destination
19675         function MAY_HAVE_DEBUG_STMTS.
19676         (insert_init_debug_bind): Likewise.
19677         (insert_init_stmt): Remove redundant check.
19678         (remap_gimple_stmt): Drop debug stmts if the destination
19679         function has var-tracking assignments disabled.
19680
19681 2015-01-14  Martin Liska  <mliska@suse.cz>
19682
19683         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
19684         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
19685
19686 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19687
19688         PR target/64460
19689         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
19690         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
19691
19692 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
19693
19694         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
19695         level from an ARCH; do not inject the default.
19696         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
19697         MIPS_ISA_LEVEL_SPEC.
19698         (MIPS_ISA_NAN2008_SPEC): Update comment.
19699         (BASE_DRIVER_SELF_SPECS): Likewise.
19700         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
19701         MIPS_DEFAULT_ISA_LEVEL_SPEC.
19702         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
19703         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
19704         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
19705
19706 2015-01-14  Richard Biener  <rguenther@suse.de>
19707
19708         PR tree-optimization/64493
19709         PR tree-optimization/64495
19710         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
19711         assign the proper vectorized PHI to the inner loop exit PHIs.
19712
19713 2015-01-14  Joey Ye  <joey.ye@arm.com>
19714
19715         * config/arm/arm.c (arm_compute_save_reg_mask):
19716         Do not save lr in case of tail call.
19717         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
19718
19719 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
19720
19721         * tree-vrp.c (check_array_ref): Emit more warnings
19722         for warn_array_bounds >= 2.
19723         * common.opt: New option -Warray-bounds=.
19724         * doc/invoke.texi: Document -Warray-bounds=.
19725
19726 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
19727
19728         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
19729         (mforbid-fp-as-gp): Remove.
19730         (mex9): Remove.
19731         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
19732         (nds32_symbol_load_store_p): Remove.
19733         (nds32_fp_as_gp_check_available): Clean up implementation.
19734         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
19735         cases.
19736         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
19737         fp-as-gp and ex9 cases.
19738
19739 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
19740
19741         * tree-profile.c (init_ic_make_global_vars): Drop workaround
19742         for bintuils bug 14342.
19743         (init_ic_make_global_vars): Likewise.
19744         (gimple_init_edge_profiler): Likewise.
19745         (gimple_gen_ic_func_profiler): Likewise.
19746
19747 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
19748
19749         * ipa-inline.c (inline_small_functions): Swap the operands in
19750         enum.
19751
19752 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
19753
19754         PR ipa/64481
19755         * ipa-inline-analysis.c (node_growth_cache): Remove.
19756         (initialize_growth_caches): Do not initialize it.
19757         (free_growth_caches): Do not free it.
19758         (do_estimate_growth): Rename to ...
19759         (estimate_growth): ... this one; drop growth cache code.
19760         (growth_likely_positive): Always go the heuristics way.
19761         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
19762         (reset_edge_caches): Do not reset node growth.
19763         (heap_edge_removal_hook): Do not maintain cache.
19764         (inline_small_functions): Likewise; strenghten sanity check.
19765         (ipa_inline): Do not maintain caches.
19766         * ipa-inline.h (node_growth_cache): Remove.
19767         (do_estimate_growth): Remove to ...
19768         (estimate_growth): this one; remove inline version.
19769         (reset_node_growth_cache): Remove.
19770
19771 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
19772
19773         PR ipa/64565
19774         * ipa-inline.c (inline_small_functions): Update callee keys after
19775         resolving speculation
19776         (inline_small_functions): Always check monotonicity of the queue.
19777
19778 2015-01-13  Marek Polacek  <polacek@redhat.com>
19779
19780         PR middle-end/64391
19781         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
19782
19783 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
19784
19785         PR rtl-optimization/64286
19786         * ree.c (combine_reaching_defs): Move part of comment earlier,
19787         remove !SCALAR_INT_MODE_P check.
19788         (add_removable_extension): Don't add vector mode
19789         extensions if all uses of the source register aren't the same
19790         vector extensions.
19791
19792 2015-01-13  Renlin Li  <renlin.li@arm.com>
19793
19794         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
19795         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
19796
19797 2015-01-13  Martin Liska  <mliska@suse.cz>
19798
19799         * ipa-icf.c (sem_function::equals_private): Call new functions
19800         cl_target_option_print_diff and cl_optimization_print_diff.
19801         * optc-save-gen.awk (cl_target_option_print_diff): New function.
19802         (cl_optimization_print_diff): Likewise.
19803         * opth-gen.awk: Likewise.
19804
19805 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
19806
19807         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
19808         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
19809         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
19810         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
19811         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
19812         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
19813
19814 2015-01-13  Andrew Pinski  <apinski@cavium.com>
19815
19816         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
19817         instead of src mode.
19818
19819 2015-01-13  Richard Biener  <rguenther@suse.de>
19820
19821         PR lto/64373
19822         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
19823         DECL_CONTEXT.
19824
19825 2015-01-13  Andrew Pinski  <apinski@cavium.com>
19826
19827         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
19828         volatile mems.
19829         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
19830
19831 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
19832
19833         PR middle-end/63974
19834         * cfgexpand.c (expand_computed_goto): Don't call
19835         convert_memory_address here.
19836
19837 2015-01-13  Richard Biener  <rguenther@suse.de>
19838
19839         PR tree-optimization/64406
19840         * tree-loop-distibution.c (pass_loop_distribution::execute):
19841         Reset the SCEV hashtable if we distributed anything.
19842
19843 2015-01-13  Richard Biener  <rguenther@suse.de>
19844
19845         PR tree-optimization/64404
19846         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
19847         SLP types for CSEd loads.
19848
19849 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19850
19851         PR tree-optimization/64436
19852         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
19853         merge of two symbolic numbers for a bitwise OR to ...
19854         (perform_symbolic_merge): This. Also fix computation of the range and
19855         end of the symbolic number corresponding to the result of a bitwise OR.
19856
19857 2015-01-13  Richard Biener  <rguenther@suse.de>
19858
19859         PR tree-optimization/64568
19860         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
19861         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
19862
19863 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
19864
19865         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
19866         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
19867
19868 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
19869
19870         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
19871         target-specific symbol_ref flag.
19872         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
19873         resides in rodata section.
19874         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
19875         (nds32_encode_section_info): New function.
19876
19877 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
19878
19879         * config/nds32/nds32.md (call): Use pseudo instruction bal which
19880         clobbers TA_REGNUM if large code model is specified.
19881         (call_register): Likewise.
19882         (call_immediate): Likewise.
19883         (call_value): Likewise.
19884         (call_value_register): Likewise.
19885         (call_value_immediate): Likewise.
19886
19887 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
19888
19889         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
19890         (TARGET_CMODEL_MEDIUM): New macro.
19891         (TARGET_CMODEL_LARGE): New macro.
19892         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
19893         code model setting in assembly code.
19894
19895 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
19896
19897         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
19898         Remove MASK_GP_DIRECT flag.
19899         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
19900         one of the multilib default options.
19901         * config/nds32/nds32.opt (mgp-direct): Remove.
19902         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
19903         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
19904
19905 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
19906
19907         * config/nds32/nds32.opt (mcmodel): Add new option.
19908         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
19909         to describe code model.
19910
19911 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
19912
19913         PR target/64479
19914         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
19915
19916 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19917
19918         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
19919         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19920         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
19921         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
19922         __builtin_sh_set_fpscr.
19923
19924 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
19925
19926         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
19927         after a funtion name just to indicate it is a function.
19928         ([-fsanitize-undefined-trap-on-error]): Likewise.
19929         ([-fdbg-cnt=]): Likewise.
19930         ([-mmemcpy]): Likewise.
19931         ([-mflush-func]): Likewise.
19932         ([-msynci]): Likewise.
19933
19934 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
19935
19936         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
19937         example.
19938
19939 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
19940
19941         PR tree-optimization/64563
19942         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
19943         instead of != VR_VARYING.
19944
19945         PR target/64513
19946         * config/i386/i386.c (ix86_expand_prologue): Add
19947         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
19948
19949         PR tree-optimization/64454
19950         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
19951         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
19952         for signed or [0, op1 - 1] for unsigned modulo.
19953         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
19954         even if op1 does not satisfy integer_pow2p.
19955
19956         PR other/64370
19957         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
19958
19959 2015-01-12  Jeff Law  <law@redhat.com>
19960
19961         PR target/64461
19962         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
19963         (trunchiqi2, truncsihi2): Similarly.
19964
19965         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
19966         rather than calling F.
19967
19968 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19969
19970         * tsan.c (instrument_expr): Use force_gimple_operand.
19971         Use may_be_nonaddressable_p instead of is_gimple_addressable.
19972
19973 2015-01-12  Richard Biener  <rguenther@suse.de>
19974
19975         PR tree-optimization/64530
19976         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
19977         back dr1.
19978
19979 2015-01-12  Richard Biener  <rguenther@suse.de>
19980
19981         PR middle-end/64357
19982         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
19983         latches properly.
19984
19985 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19986
19987         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
19988         Cortex-A17 tuning parameters.
19989         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
19990
19991 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19992
19993         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
19994         * config/arm/arm.c (arm_macro_fusion_p): New function.
19995         (arm_macro_fusion_pair_p): Likewise.
19996         (TARGET_SCHED_MACRO_FUSION_P): Define.
19997         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
19998         (ARM_FUSE_NOTHING): Likewise.
19999         (ARM_FUSE_MOVW_MOVT): Likewise.
20000         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
20001         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
20002         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
20003         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
20004         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
20005         arm_cortex_a5_tune): Specify fuseable_ops value.
20006
20007 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
20008
20009         PR bootstrap/64561
20010         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
20011         test for PIE with copy reloc.
20012         * configure: Regenerated.
20013
20014 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20015
20016         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
20017         in gen_rtx_REG.
20018         (arm_tls_descseq_addr): Likewise.
20019         (arm_gen_movmemqi): Likewise.
20020         (arm_expand_epilogue_apcs_frame): Likewise.
20021         (arm_expand_epilogue): Likewise.
20022         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
20023         in gen_rtx_REG.
20024
20025 2015-01-12  Martin Liska  <mliska@suse.cz>
20026
20027         PR ipa/64550
20028         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
20029         volatility for correct operands.
20030
20031 2015-01-12  Martin Liska  <mliska@suse.cz>
20032
20033         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
20034         indication that a function is not leaf.
20035         (sem_function::compare_polymorphic_p): Likewise.
20036
20037 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20038
20039         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
20040         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
20041         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
20042         fold-const.h, tree-check.h.
20043
20044 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
20045
20046         PR ipa/63967
20047         PR ipa/64425
20048         * ipa-inline.c (compute_uninlined_call_time,
20049         compute_inlined_call_time): Use counts for extra precision when
20050         needed possible.
20051         (big_speedup_p): Fix formating.
20052         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
20053         (relative_time_benefit): Remove.
20054         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
20055         merge guessed and read profile paths.
20056         (inline_small_functions): Count only !optimize_size functions into
20057         initial size; be more lax about sanity check when profile is used;
20058         be sure to update inlined function profile when profile is read.
20059
20060 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
20061
20062         PR ipa/63470
20063         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
20064         cost when edge becomes direct.
20065         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
20066         is resolved or when introducing new speculation.
20067
20068 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
20069
20070         PR ipa/64551
20071         PR ipa/64552
20072         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
20073         '||' to fix typo issue.
20074
20075         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
20076         accept and return NULL.
20077
20078 2015-01-12  Martin Liska  <mliska@suse.cz>
20079
20080         * cgraph.c (cgraph_edge::remove_callee): Move function to header
20081         file for being inlined.
20082         (cgraph_set_edge_callee): Delete.
20083         (cgraph_edge::redirect_callee): Move function to header file
20084         for being inlined.
20085         (cgraph_edge::make_direct): Use new function.
20086         (cgraph_edge::dump_edge_flags): New function created from
20087         static dump_edge_flags function.
20088         (cgraph_node::dump): Use new function.
20089         (cgraph_edge::verify_count_and_frequency): New function created
20090         from verify_edge_count_and_frequency.
20091         (cgraph_edge::verify_corresponds_to_fndecl): New function created
20092         from verify_edge_corresponds_to_fndecl.
20093         (verify_edge_corresponds_to_fndecl): Delete.
20094         (cgraph_node::verify_node): Use new function.
20095         * cgraph.h (cgraph_edge::set_callee): New function.
20096         (cgraph_edge::dump_edge_flags): Likewise.
20097         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
20098
20099 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
20100
20101         * ipa-utils.c (estimate_function_body_sizes): Do not
20102         free node params when called late with early=true.
20103
20104 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
20105
20106         * doc/md.texi (Instruction Patterns): Rewrite text for
20107         clarity.
20108         (Example): Likewise.
20109
20110 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
20111
20112         * doc/invoke.texi (Option Summary): Break long lines.
20113         [(-fdiagnostics-color)]: Put long literal in @smallexample
20114         instead of inline.
20115         [(-fsanitize-recover)]: Likewise.
20116         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
20117         [(-ffast-math)]: Likewise.
20118         [(--param max-inline-insns-recursive)]: Likewise.
20119         [(--param max-inline-recursive-depth)]: Likewise.
20120         [(-mno-text-section-literals)]: Likewise.
20121
20122 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
20123
20124         * doc/install.texi: Update for libgomp being renamed from "GNU
20125         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
20126         Runtime Library".
20127         * doc/sourcebuild.texi: Likewise.
20128
20129 2015-01-10  Anthony Green  <green@moxielogic.com>
20130
20131         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
20132         mul.x availability for moxiebox configuration.
20133
20134 2015-01-09  Anthony Green  <green@moxielogic.com>
20135
20136         * config/moxie/moxie.md: Tabify assembly output.
20137
20138 2015-01-09  Anthony Green  <green@moxielogic.com>
20139
20140         * config/moxie/moxie.md (CC_REG): Correct register definition.
20141
20142 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
20143
20144         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
20145         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
20146         of log files.
20147
20148 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
20149
20150         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
20151
20152 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
20153             Jakub Jelinek  <jakub@redhat.com>
20154
20155         PR middle-end/64412
20156         * lto-streamer.h (lto_stream_offload_p): New declaration.
20157         * lto-streamer.c (lto_stream_offload_p): New variable.
20158         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
20159         at the same time as section_name_prefix.
20160         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
20161         if lto_stream_offload_p.
20162         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
20163         stream TREE_TARGET_OPTION if lto_stream_offload_p.
20164         (write_ts_function_decl_tree_pointers): Don't
20165         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
20166         * tree-streamer-in.c (unpack_value_fields): Don't stream
20167         TREE_TARGET_OPTION in if ACCEL_COMPILER.
20168         (lto_input_ts_function_decl_tree_pointers): Don't stream
20169         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
20170         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
20171         instead of section_name_prefix string comparisons.
20172
20173 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
20174
20175         PR rtl-optimization/64536
20176         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
20177         tablejumps.
20178
20179 2015-01-09  Michael Collison  <michael.collison@linaro.org>
20180
20181         PR tree-optimization/64322
20182         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
20183         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
20184
20185 2015-01-09  Tom de Vries  <tom@codesourcery.com>
20186
20187         PR rtl-optimization/64539
20188         * regcprop.c (kill_clobbered_values): Factor out of ...
20189         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
20190         instead of note_stores with kill_clobbered_value.
20191
20192 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
20193
20194          * ginclude/unwind-arm-common.h: Revert previous commit.
20195
20196 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
20197
20198         * config.gcc (arm*-*-freebsd*): New configuration.
20199         * config/arm/freebsd.h: New file.
20200         * config.host: Add extra components for arm*-*-freebsd*.
20201         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
20202         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
20203
20204 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20205
20206         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
20207         for -mcpu=e6500.
20208         * config/rs6000/t-rtems: Add e6500 multilibs.
20209
20210 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20211
20212         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
20213         MPC8540.
20214
20215 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20216
20217         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
20218         MULTILIB_EXCEPTIONS.
20219
20220 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20221
20222         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
20223         MULTILIB_EXCEPTIONS.
20224
20225 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20226
20227         * config/arm/t-rtems-eabi: Rename to...
20228         * config/arm/t-rtems: ...this.
20229         * config/arm/rtems-eabi.h: Rename to...
20230         * config/arm/rtems.h: ...this.
20231         * config.gcc (arm*-*-rtems*): Reflect changes above.
20232
20233 2015-01-09  Richard Biener  <rguenther@suse.de>
20234
20235         PR tree-optimization/64410
20236         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
20237         on the LHS.
20238         (execute_update_addresses_taken): Deal with that.
20239         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
20240         loads/stores for complex variables.
20241
20242 2015-01-09  Martin Liska  <mliska@suse.cz>
20243
20244         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
20245         name comparison.
20246         (func_checker::compare_memory_operand): New function.
20247         (func_checker::compare_operand): Split case to newly
20248         added functions.
20249         (func_checker::compare_cst_or_decl): New function.
20250         (func_checker::compare_gimple_call): Identify
20251         memory operands.
20252         (func_checker::compare_gimple_assign): Likewise.
20253         * ipa-icf-gimple.h: New function.
20254
20255 2015-01-09  Martin Liska  <mliska@suse.cz>
20256
20257         PR ipa/64503
20258         * sreal.c (sreal::dump): Change unsigned format to signed for
20259         m_exp value.
20260         (sreal::to_double): Replace exp2 with scalbln.
20261
20262 2015-01-09  Martin Liska  <mliska@suse.cz>
20263
20264         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
20265         * ipa-icf.c (sem_function::equals_private): Add support for target and
20266         (sem_item_optimizer::merge_classes): Remove redundant function
20267         optimization flags comparison.
20268         * tree.h (target_opts_for_fn): New function.
20269
20270 2015-01-09  Tom de Vries  <tom@codesourcery.com>
20271
20272         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
20273
20274 2015-01-09  Kito Cheng  <kito@0xlab.org>
20275
20276         PR rtl-optimization/64348
20277         * lra-constraints.c (split_reg): Fix caller-save store/restore
20278         instruction generation.
20279
20280 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
20281
20282         PR gcov-profile/61790
20283         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
20284         long long.  Fallback to int64_t if host doesn't have long long and
20285         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
20286
20287 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
20288
20289         PR tree-optimization/63989
20290         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
20291         from 1000 to 10000.
20292         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
20293         (get_stridx): If we don't have a record for certain SSA_NAME,
20294         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
20295         constant offset, call get_stridx_plus_constant.
20296         (get_stridx_plus_constant): New function.
20297         (zero_length_string): Don't use get_stridx here.
20298
20299         PR target/55023
20300         PR middle-end/64388
20301         * dse.c (struct insn_info): Mention frame_read set also
20302         before reload for tail calls on some targets.
20303         (scan_insn): Revert 2014-12-22 change.  Set frame_read
20304         also before reload for tail calls if
20305         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
20306         instead of add_non_frame_wild_read for non-const/memset
20307         tail calls after reload.
20308
20309 2015-01-08  Jason Merrill  <jason@redhat.com>
20310
20311         * ubsan.c (do_ubsan_in_current_function): New.
20312         (pass_ubsan::gate): Use it.
20313         * ubsan.h: Declare it.
20314         * convert.c (convert_to_integer): Use it.
20315
20316 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
20317
20318         PR target/64338
20319         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
20320         compare_code when it is unconditionally overwritten afterwards.
20321         Use ix86_reverse_condition instead of reverse_condition.  Don't
20322         change code if *reverse_condition* returned UNKNOWN and don't
20323         swap ct/cf and negate diff in that case.
20324
20325 2015-01-08  Mike Stump  <mikestump@comcast.net>
20326
20327         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
20328         (pass_tsan_O0::gate): Likewise.
20329         * extend.texi (Function Attributes): Add no_sanitize_thread
20330         documentation.
20331
20332 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
20333
20334         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
20335         for registering builtins.
20336         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
20337         add -fopenmp to the argv_obstack used when invoking
20338         compile_for_target.
20339
20340         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
20341         add "-m32" or "-m64" to argv_obstack.
20342         (generate_host_descr_file): Likewise, when invoking host_compiler.
20343         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
20344         ld.
20345
20346 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
20347
20348         * config/sh/sh-mem.cc: Use constant as second operand when emitting
20349         tstsi_t insns.
20350
20351 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
20352
20353         PR target/55212
20354         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
20355         constant load if constant operand fits into I08.
20356
20357 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
20358
20359         PR sanitizer/64336
20360         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
20361         and TREE_THIS_VOLATILE for MEM_REFs.
20362         (build5_stat): Fix up initialization of TREE_READONLY and
20363         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
20364
20365 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20366
20367         PR target/64533
20368         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
20369         of r for the second alternative of the destination operand.
20370
20371 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
20372
20373         PR target/36557
20374         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
20375
20376 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
20377
20378         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
20379         keywords.
20380         ([-fivar-visibility], [-fvisibility]): Likewise.
20381
20382 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
20383
20384         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
20385         the file where @code, @command, etc is more appropriate.
20386
20387 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
20388
20389         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
20390         of -mrecip= documentation.
20391
20392 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
20393
20394         PR target/64505
20395         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
20396         correct reload handler if -m32 -mpowerpc64 is used.
20397
20398 2015-01-06  Tom de Vries  <tom@codesourcery.com>
20399
20400         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
20401
20402 2015-01-08  Christian Bruel  <christian.bruel@st.com>
20403
20404         PR target/64507
20405         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
20406
20407 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20408
20409         PR tree-optimization/63259
20410         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
20411         if optab exists for 16bit byteswap.
20412
20413 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
20414
20415         * opts.c (common_handle_option): Add support for
20416         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
20417         * doc/invoke.texi: Document -fno-sanitize=all,
20418         -f{,no-}sanitize-recover=all.  Document that
20419         -fsanitize=float-cast-overflow is not enabled
20420         by -fsanitize=undefined.  Fix up documentation
20421         of -f{,no-}sanitize-recover.
20422
20423 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
20424
20425         * config.gcc: Add Visium support.
20426         * configure.ac: Likewise.
20427         * configure: Regenerate.
20428         * doc/extend.texi (interrupt attribute): Add Visium.
20429         * doc/invoke.texi: Document Visium options.
20430         * doc/install.texi: Document Visium target.
20431         * doc/md.texi: Document Visium constraints.
20432         * common/config/visium: New directory.
20433         * config/visium: Likewise.
20434
20435 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
20436
20437         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
20438         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
20439
20440 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
20441
20442         * combine.c (combine_validate_cost): Do not count the cost of a
20443         split I2 twice.  Do not display it twice in the dump, either.
20444
20445 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
20446
20447         Revert parts of r219199.
20448         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
20449         <inttypes.h>.
20450         ([-Wtraditional]): Restore markup on <limits.h>.
20451
20452 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
20453
20454         PR c++/31397
20455         * doc/invoke.texi: Document -Wsuggest-override.
20456
20457 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
20458
20459         PR rtl-optimization/64287
20460         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
20461         (process_options): Disable flag_ipa_ra if profiling.
20462
20463 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
20464
20465         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
20466
20467 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
20468
20469         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
20470         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
20471         put under #if TARGET_LOOPS guard.
20472
20473 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
20474
20475         * config/i386/i386.c (output_387_binary_op): Use std::swap.
20476
20477 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
20478
20479         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
20480         * rtl.h (refers_to_regno_p): Add overload.
20481         * cse.c: Use it.
20482         * bt-load.c: Likewise.
20483         * combine.c: Likewise.
20484         * df-scan.c: Likewise.
20485         * sched-deps.c: Likewise.
20486         * config/s390/s390.c: Likewise.
20487         * config/m32r/m32r.c: Likewise.
20488         * config/rs6000/spe.md: Likewise.
20489         * config/rs6000/rs6000.c: Likewise.
20490         * config/pa/pa.c: Likewise.
20491         * config/stormy16/stormy16.c: Likewise.
20492         * config/cris/cris.c: Likewise.
20493         * config/arc/arc.md: Likewise.
20494         * config/arc/arc.c: Likewise.
20495         * config/sh/sh.md: Likewise.
20496         * config/sh/sh.c: Likewise.
20497         * config/frv/frv.c: Likewise.
20498
20499 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
20500
20501         PR sanitizer/64265
20502         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
20503         call as cleanup of the whole body.
20504         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
20505         * tsan.c (replace_func_exit): New function.
20506         (instrument_func_exit): Moved earlier.
20507         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
20508         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
20509         been found.
20510         (tsan_pass): Don't call instrument_func_exit.
20511         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
20512         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
20513         inlining.
20514
20515         PR sanitizer/64344
20516         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
20517         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
20518         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
20519         if the result is integer_zerop, return NULL_TREE.
20520         * convert.c (convert_to_integer): Pass expr as ARG.
20521
20522         PR tree-optimization/64465
20523         * tree-inline.c (redirect_all_calls): During inlining
20524         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
20525         changed the stmt to a non-throwing call.
20526
20527 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
20528
20529         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
20530         etc markup throughout the file.
20531
20532 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20533
20534         Enable experimental TSAN support for Ada.
20535         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
20536
20537 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
20538
20539         PR tree-optimization/64494
20540         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
20541         clear SSA_NAME_ANTI_RANGE_P flag.
20542
20543 2015-01-05  Marek Polacek  <polacek@redhat.com>
20544
20545         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
20546
20547 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
20548
20549         Update copyright years.
20550
20551         * gcc.c (process_command): Update copyright notice dates.
20552         * gcov-dump.c: Ditto.
20553         * gcov.c: Ditto.
20554         * doc/cpp.texi: Bump @copying's copyright year.
20555         * doc/cppinternals.texi: Ditto.
20556         * doc/gcc.texi: Ditto.
20557         * doc/gccint.texi: Ditto.
20558         * doc/gcov.texi: Ditto.
20559         * doc/install.texi: Ditto.
20560         * doc/invoke.texi: Ditto.
20561
20562         * auto-profile.c, auto-profile.h: Fix up Copyright line.
20563
20564 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
20565
20566         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
20567         verb tense, etc.
20568         ([-fvtable-verify], [-fvtv-debug]): Likewise.
20569         ([-Wabi]): Likewise.
20570         ([-fmessage-length]): Likewise.
20571         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
20572         ([-Wno-discarded-qualifiers]): Likewise.
20573         ([-Wnodiscarded-array-qualifiers]): Likewise.
20574         ([-Wno-virtual-move-assign]): Likewise.
20575         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
20576         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
20577         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
20578         ([-fsanitize-undefined-trap-on-error]): Likewise.
20579         ([-floop-interchange]): Likewise.
20580         ([-ftree-coalesce-inlined-vars]): Likewise.
20581         ([-fvect-cost-model]): Likewise.
20582         ([-flto]): Likewise.
20583         ([--param]): Likewise.
20584         (Spec Files): Likewise.
20585         ([-mstrict-align]): Likewise.
20586         ([-mfix-cortex-a53-835769]): Likewise.
20587         ([-march], [-mtune]): Likewise.
20588         ([-mpic-register]): Likewise.
20589         ([-munaligned-access]): Likewise.
20590         ([-msp8]): Likewise.
20591         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
20592         (AVR Built-in Macros): Likewise.
20593         ([-mpreferred-stack-boundary]): Likewise.
20594         ([-mtune-crtl]): Likewise.
20595         ([-mashf]): Likewise.
20596         ([-mmcu=]): Likewise.
20597         ([-minrt]): Likewise.
20598         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
20599         ([-mupper-regs]): Likewise.
20600         ([-matomic-model]): Likewise.
20601         ([-mdiv]): Likewise.
20602         ([-mzdcbranch]): Likewise.
20603         ([-mdisable-callt]): Likewise.
20604         ([-msoft-float]): Likewise.
20605         ([-m8byte-align]): Likewise.
20606         ([-fstack-reuse]): Likewise.
20607
20608 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
20609
20610         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
20611         Fix markup, light copy-editing.
20612         ([-fauto-profile]): Rewrite to fix formatting and content
20613         problems.
20614
20615 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
20616
20617         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
20618         Copy-edit description.
20619         ([-fisolate-erroneous-paths-attribute]): Likewise.
20620         * common.opt (fisolate-erroneous-paths-dereference):
20621         Copy-edit description.
20622         (fisolate-erroneous-paths-attribute): Likewise.
20623
20624 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
20625
20626         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
20627         tidy grammar.
20628
20629 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
20630
20631         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
20632         ([-fvtv-debug]): Likewise.
20633         ([-Wc++-compat]): Likewise.
20634         ([-Wc++11-compat]): Likewise.
20635         ([-Wc++14-compat]): Likewise.
20636         ([-Wno-sized-deallocation]): Likewise.
20637         ([-femit-class-debug-always]): Likewise.
20638         ([-femit-struct-debug-detailed]): Likewise.
20639         ([-fno-keep-inline-dllexport]): Likewise.
20640         ([-fira-algorithm]): Likewise.
20641         ([-fira-region]): Likewise.
20642         ([-flra-remat]): Likewise.
20643         ([-fipa-ra]): Likewise.
20644         ([-fhoist-adjacent-loads]): Likewise.
20645         ([-fisolate-erroneous-paths-dereference]): Likewise.
20646         ([-fisolate-erroneous-paths-attribute]): Likewise.
20647         ([-ftree-switch-conversion]): Likewise.
20648         ([-ftree-tail-merge]): Likewise.
20649         ([-ftree-loop-if-convert]): Likewise.
20650         ([-ftree-loop-if-convert-stores]): Likewise.
20651         ([-ftree-loop-distribution]): Likewise.
20652         ([-ftree-loop-distribute-patterns]): Likewise.
20653         ([-flto-compression-level]): Likewise.
20654         ([-flto-report]): Likewise.
20655         ([-flto-report-wpa]): Likewise.
20656         ([-fuse-linker-plugin]): Likewise.
20657         ([-mfix-cortex-a53-835769]): Likewise.
20658         ([-mno-fix-cortex-a53-835769]): Likewise.
20659         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
20660         explicit listing; add a note to the discussion indicating they
20661         exist.  Reorder table to group similar options.  Add missing
20662         @opindex entries.  Add @need commands throughout the table to
20663         allow it to be split across multiple pages.
20664         ([-m8bit-idiv]): Fix @opindex.
20665         ([-mavx256-split-unaligned-load]): Likewise.
20666         ([-mavx256-split-unaligned-store]): Likewise.
20667         ([-mstack-protector-guard]): Likewise.
20668         ([-mcpu=]): Likewise.
20669         ([-mcpu]): Likewise.
20670         ([-mpointer-size=]): Likewise.
20671
20672 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
20673
20674         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
20675         instead of `m' constraint.  Likewise for unnamed movb comparison
20676         patterns using reg_before_reload_operand predicate.
20677         * config/pa/predicates.md (reg_before_reload_operand): Tighten
20678         predicate to reject register index and LO_SUM DLT memory forms
20679         after reload.
20680
20681 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
20682
20683         * doc/invoke.texi (Option Summary): Fix spelling of
20684         -fdevirtualize-at-ltrans.
20685         ([-fdevirtualize]): Fix markup.
20686         ([-fdevirtualize-speculatively]): Fix typo.
20687         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
20688         implementor-speaky.
20689         * common.opt (fdevirtualize-at-ltrans): Likewise.
20690         * ipa-devirt.c: Fix typos in comments throughout the file.
20691         (ipa_devirt): Fix typos in format strings for dump output.
20692
20693 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
20694
20695         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
20696         discussion of defaults, light copy-editing.
20697
20698 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20699
20700         * tsan.c (instrument_expr): corrected previous checkin.
20701
20702 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20703
20704         Instrument bit field and unaligned accesses for TSAN.
20705         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
20706         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
20707         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
20708         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
20709         unaligned memory regions.
20710
20711 2015-01-01  Anthony Green  <green@moxielogic.com>
20712
20713         * config/moxie/predicates.md (moxie_general_movsrc_operand):
20714         Restrict move source register offsets to 16 bits.
20715 \f
20716 Copyright (C) 2015 Free Software Foundation, Inc.
20717
20718 Copying and distribution of this file, with or without modification,
20719 are permitted in any medium without royalty provided the copyright
20720 notice and this notice are preserved.