Define ATTRIBUTE_ALIGNED_VALUE to 32 for IA MCU
[official-gcc.git] / gcc / ChangeLog
blobe7f7dace4b4faa899f2541443994a52494d37cfb
1 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
3         PR target/66818
4         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
5         for IA MCU.
7 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
9         PR target/66817
10         * config/i386/i386.c (ix86_return_in_memory): Return true
11         if int_size_in_bytes returns negative for IA MCU.
13 2015-07-09  Marek Polacek  <polacek@redhat.com>
15         PR tree-optimization/66718
16         * Makefile.in (OBJS): Add gimple-laddress.o. 
17         * passes.def: Schedule pass_laddress.
18         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
19         * tree-pass.h (make_pass_laddress): Declare.
20         * gimple-laddress.c: New file.
22 2015-07-09  Richard Biener  <rguenther@suse.de>
24         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
26 2015-07-09  Richard Biener  <rguenther@suse.de>
28         PR tree-optimization/66807
29         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
31 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
33         * function.c (stack_protect_epilogue): Use if rather than switch for
34         check targetm.have_stack_protect_test.
36 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
38         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
39         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
40         * config/arc/arc.h: Likewise.
41         * config/arm/arm.h: Likewise.
42         * config/bfin/bfin.h: Likewise.
43         * config/epiphany/epiphany.h: Likewise.
44         * config/frv/frv.h: Likewise.
45         * config/ia64/ia64.h: Likewise.
46         * config/iq2000/iq2000.h: Likewise.
47         * config/lm32/lm32.h: Likewise.
48         * config/m32r/m32r.h: Likewise.
49         * config/mcore/mcore.h: Likewise.
50         * config/mep/mep.h: Likewise.
51         * config/microblaze/microblaze.h: Likewise.
52         * config/mips/mips.h: Likewise.
53         * config/mmix/mmix.h: Likewise.
54         * config/mn10300/mn10300.h: Likewise.
55         * config/nds32/nds32.h: Likewise.
56         * config/nios2/nios2.h: Likewise.
57         * config/pa/pa.h: Likewise.
58         * config/rl78/rl78.h: Likewise.
59         * config/sh/sh.h: Likewise.
60         * config/sparc/sparc.h: Likewise.
61         * config/stormy16/stormy16.h: Likewise.
62         * config/tilegx/tilegx.h: Likewise.
63         * config/tilepro/tilepro.h: Likewise.
64         * config/v850/v850.h: Likewise.
65         * config/xtensa/xtensa.h: Likewise.
66         * doc/tm.texi: Regenerate.
67         * doc/tm.texi.in: Adjust.
68         * combine.c (simplify_set): Likewise.
69         (simplify_comparison): Likewise.
70         * expr.c (store_constructor): Likewise.
71         * internal-fn.c (expand_arith_overflow): Likewise.
72         * reload.c (push_reload): Likewise.
73         (find_reloads): Likewise.
74         (find_reloads_subreg_address): Likewise.
75         * reload1.c (eliminate_regs_1): Likewise.
76         * rtlanal.c (nonzero_bits1): Likewise.
77         (num_sign_bit_copies1): Likewise.
78         * simplify-rtx.c (simplify_truncation): Likewise.
80 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
82         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
83         of AUTO_INC_DEC with the preprocessor.
84         * combine.c (combine_instructions): Likewise.
85         (can_combine_p): Likewise.
86         (try_combine): Likewise.
87         * emit-rtl.c (try_split): Likewise.
88         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
89         * lower-subreg.c (resolve_simple_move): Likewise.
90         * lra.c (update_inc_notes): Likewise.
91         * recog.c (asm_operand_ok): Likewise.
92         (constrain_operands): Likewise.
93         * regrename.c (scan_rtx_address): Likewise.
94         * reload.c (update_auto_inc_notes): Likewise.
95         (reg_inc_found_and_valid_p): Likewise.
96         * reload1.c (reload): Likewise.
97         (emit_input_reload_insns): Likewise.
98         (delete_output_reload): Likewise.
99         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
100         * valtrack.c (cleanup_auto_inc_dec): Likewise.
102 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
104         * rtl.h: Always define AUTO_INC_DEC.
105         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
106         * combine.c (combine_instructions): Likewise.
107         (can_combine_p): Likewise.
108         (try_combine): Likewise.
109         * emit-rtl.c (try_split): Likewise.
110         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
111         * lower-subreg.c (resolve_simple_move): Likewise.
112         * lra.c (update_inc_notes): Likewise.
113         * recog.c (asm_operand_ok): Likewise.
114         (constrain_operands): Likewise.
115         * regrename.c (scan_rtx_address): Likewise.
116         * reload.c (update_auto_inc_notes): Likewise.
117         (find_equiv_reg): Likewise.
118         * reload1.c (reload): Likewise.
119         (reload_as_needed): Likewise.
120         (choose_reload_regs): Likewise.
121         (emit_input_reload_insns): Likewise.
122         (delete_output_reload): Likewise.
123         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
124         * valtrack.c (cleanup_auto_inc_dec): Likewise.
126 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
128         * combine.c (can_combine_def_p): Don't check the value of
129         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
130         (combinable_i3pat): Likewise.
131         (mark_used_regs_combine): Likewise.
132         * regrename.c (rename_chains): Likewise.
133         * reload.c (find_reloads_address): Likewise.
134         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
136 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
138         * combine.c (update_rsp_from_reg_equal): Don't check if
139         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
140         (reg_nonzero_bits_for_combine): Likewise.
141         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
142         1.
143         * config/frv/frv.h: Likewise.
144         * config/lm32/lm32.h: Likewise.
145         * config/mep/mep.h: Likewise.
146         * config/mips/mips.h: Likewise.
147         * config/rs6000/rs6000.h: Likewise.
148         * config/sh/sh.h: Likewise.
149         * config/tilegx/tilegx.h (enum reg_class): Likewise.
150         * config/tilepro/tilepro.h: Likewise.
151         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
152         * doc/tm.texi: Regenerate.
153         * doc/tm.texi.in: Adjust.
154         * rtlanal.c (nonzero_bits1): Likewise.
156 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
158         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
159         with the preprocessor.
160         (combine_instructions): Likewise.
161         (try_combine): Likewise.
162         (subst): Likewise.
163         (distribute_notes): Likewise.
165 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
167         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
168         defined.
169         (simplify_set): Likewise.
170         * cse.c (cse_insn): Likewise.
171         * fold-const.c (fold_single_bit_test): Likewise.
172         (fold_unary_loc): Likewise.
173         * postreload.c (reload_cse_simplify_set): Likewise.
174         (reload_cse_simplify_operands): Likewise.
176 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
178         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
179         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
181 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
183         PR target/66746
184         * config/i386/x86intrin.h: Include <adxintrin.h> even if
185         __iamcu__ is defined.
187 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
189         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
191 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
193         PR target/66523
194         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
195         names from preservation.
197 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
199         PR middle-end/66334
200         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
201         hard regno live at the start of BB with incoming abnormal edges.
202         * lra-lives.c (process_bb_lives): Ditto.
204 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
206         PR libgomp/65099
207         * config/nvptx/mkoffload.c (main): Create an offload image only in
208         64-bit configurations.
210 2015-07-08  Martin Liska  <mliska@suse.cz>
212         PR bootstrap/66744
213         * tree-sra.c (create_access_1): Call ctor without brackets.
214         (create_artificial_child_access): Likewise.
216 2015-07-08  Richard Biener  <rguenther@suse.de>
218         PR tree-optimization/66793
219         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
220         Properly split the block after stmts ending it.
222 2015-07-08  Richard Biener  <rguenther@suse.de>
224         PR tree-optimization/66794
225         * passes.c (execute_function_todo): Assert that post-dominators
226         are not computed.
227         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
228         Free post-dominators.
230 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
232         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
233         with early exit.
235 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
237         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
238         more than or equal 8 and less than 32 when optimizing for size.
240 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
242         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
243         COSTS_N_INSNS (1) and increment it appropriately throughout the
244         function.
246 2015-07-08  Richard Biener  <rguenther@suse.de>
248         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
250 2015-07-08  Alan Modra  <amodra@gmail.com>
252         * target.def (rtx_costs): Remove "code" param, add "mode".
253         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
254         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
255         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
256         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
257         call.  Track mode when given in rtx.
258         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
259         (default_address_cost): Pass Pmode to rtx_cost.
260         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
261         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
262         with NULL set.
263         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
264         (notreg_cost): Add mode param.  Use it.
265         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
266         mode param and pass to set_src_cost.  Update all calls.
267         (hash_scan_set): Formatting.
268         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
269         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
270         * hooks.h: Ditto.
271         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
272         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
273         emit_store_flag): Update set_src_cost and rtx_cost calls.
274         * auto-inc-dec.c (attempt_change): Likewise.
275         * calls.c (precompute_register_parameters): Likewise.
276         * combine.c (expand_compound_operation, make_extraction,
277         force_to_mode, distribute_and_simplify_rtx): Likewise.
278         * dojump.c (prefer_and_bit_test): Likewise.
279         * dse.c (find_shift_sequence): Likewise.
280         * expr.c (compress_float_constant): Likewise.
281         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
282         * ifcvt.c (noce_try_sign_mask): Likewise.
283         * loop-doloop.c (doloop_optimize): Likewise.
284         * loop-invariant.c (create_new_invariant): Likewise.
285         * lower-subreg.c (shift_cost, compute_costs): Likewise.
286         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
287         lshift_cheap_p): Likewise.
288         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
289         try_replace_in_use, reload_cse_move2add): Likewise.
290         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
291         Likewise.
292         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
293         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
294         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
295         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
296         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
297         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
298         to rtx_cost calls.
299         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
300         * config/arc/arc.c (arc_rtx_costs): Likewise.
301         * config/arm/arm.c (arm_rtx_costs): Likewise.
302         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
303         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
304         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
305         * config/cris/cris.c (cris_rtx_costs): Likewise.
306         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
307         * config/frv/frv.c (frv_rtx_costs): Likewise.
308         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
309         * config/i386/i386.c (ix86_rtx_costs): Likewise.
310         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
311         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
312         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
313         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
314         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
315         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
316         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
317         * config/mep/mep.c (mep_rtx_cost): Likewise.
318         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
319         * config/mips/mips.c (mips_rtx_costs): Likewise.
320         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
321         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
322         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
323         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
324         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
325         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
326         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
327         * config/pa/pa.c (hppa_rtx_costs): Likewise.
328         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
329         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
330         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
331         * config/s390/s390.c (s390_rtx_costs): Likewise.
332         * config/sh/sh.c (sh_rtx_costs): Likewise.
333         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
334         * config/spu/spu.c (spu_rtx_costs): Likewise.
335         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
336         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
337         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
338         * config/v850/v850.c (v850_rtx_costs): Likewise.
339         * config/vax/vax.c (vax_rtx_costs): Likewise.
340         * config/visium/visium.c (visium_rtx_costs): Likewise.
341         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
342         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
343         "code" param, and pass as outer_code to first rtx_cost call.  Pass
344         mode to rtx_cost calls.
345         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
346         calls.
347         (aarch64_rtx_costs_wrapper): Update.
348         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
349         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
350         rtx_cost calls.
351         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
352         and rtx_cost calls.
353         (avr_operand_rtx_cost): Similarly.
354         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
355         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
356         * config/mips/mips.c (mips_stack_address_p): Comment typo.
357         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
358         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
359         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
360         rtx_cost.
361         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
362         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
363         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
364         * doc/tm.texi: Regenerate.
366 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
368         * tree-core.h: Include symtab.h.
369         * rtl.h: Include hard-reg-set.h but not flags.h.
370         (HARD_CONST): Remove condition compilation involving HARD_CONST since
371         hard-reg-set.h is always included.
372         * regs.h: Don't include hard-reg-set.h or rtl.h.
373         * cfg.h: Include dominance.h.
374         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
375         * backend.h: New.  Aggregate commonly used backend header files.
376         * gimple-ssa.h: Don't include tree-hasher.h.
377         * ssa.h: New.  Aggregate commonly used SSA header files.
378         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
379         * sel-sched-ir.h: Flatten includes.
380         * lra-int.h: Flatten completely.
381         * sel-sched-dump.h: Flatten includes.
382         * ira-int.h: Flatten includes.
383         * gimple-streamer.h: Remove all includes.
384         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
385         * resource.h: Flatten hard-reg-set.h and df.h.
386         * sched-int.h: Flatten insn-arrt.h and df.h.
387         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
388         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
389         * genattrtab.c (write_header): Adjust generated includes.
390         * genautomata.c (main): Likewise.
391         * genconditions.c (write-header): Likewise.
392         * genemit.c (main): Likewise.
393         * gengtype.c (open_base_files): Likewise.
394         * genopinit.c (main): Likewise.
395         * genoutput.c (output_prologue): Likewise.
396         * genpeep.c (main): Likewise.
397         * genpreds.c (write_insn_preds_c): Likewise.
398         * genrecog.c (write_header): Likewise.
399         * alias.c: Adjust includes.
400         * asan.c: Likewise.
401         * attribs.c: Likewise.
402         * auto-inc-dec.c: Likewise.
403         * auto-profile.c: Likewise.
404         * bb-reorder.c: Likewise.
405         * bt-load.c: Likewise.
406         * builtins.c: Likewise.
407         * caller-save.c: Likewise.
408         * calls.c: Likewise.
409         * ccmp.c: Likewise.
410         * cfg.c: Likewise.
411         * cfganal.c: Likewise.
412         * cfgbuild.c: Likewise.
413         * cfgcleanup.c: Likewise.
414         * cfgexpand.c: Likewise.
415         * cfghooks.c: Likewise.
416         * cfgloop.c: Likewise.
417         * cfgloopanal.c: Likewise.
418         * cfgloopmanip.c: Likewise.
419         * cfgrtl.c: Likewise.
420         * cgraph.c: Likewise.
421         * cgraphbuild.c: Likewise.
422         * cgraphclones.c: Likewise.
423         * cgraphunit.c: Likewise.
424         * cilk-common.c: Likewise.
425         * combine-stack-adj.c: Likewise.
426         * combine.c: Likewise.
427         * compare-elim.c: Likewise.
428         * convert.c: Likewise.
429         * coverage.c: Likewise.
430         * cppbuiltin.c: Likewise.
431         * cprop.c: Likewise.
432         * cse.c: Likewise.
433         * cselib.c: Likewise.
434         * data-streamer-in.c: Likewise.
435         * data-streamer-out.c: Likewise.
436         * data-streamer.c: Likewise.
437         * dbxout.c: Likewise.
438         * dce.c: Likewise.
439         * ddg.c: Likewise.
440         * debug.c: Likewise.
441         * df-core.c: Likewise.
442         * df-problems.c: Likewise.
443         * df-scan.c: Likewise.
444         * dfp.c: Likewise.
445         * dojump.c: Likewise.
446         * dominance.c: Likewise.
447         * domwalk.c: Likewise.
448         * double-int.c: Likewise.
449         * dse.c: Likewise.
450         * dumpfile.c: Likewise.
451         * dwarf2asm.c: Likewise.
452         * dwarf2cfi.c: Likewise.
453         * dwarf2out.c: Likewise.
454         * emit-rtl.c: Likewise.
455         * et-forest.c: Likewise.
456         * except.c: Likewise.
457         * explow.c: Likewise.
458         * expmed.c: Likewise.
459         * expr.c: Likewise.
460         * final.c: Likewise.
461         * fixed-value.c: Likewise.
462         * fold-const.c: Likewise.
463         * function.c: Likewise.
464         * fwprop.c: Likewise.
465         * gcc-plugin.h: Likewise.
466         * gcse-common.c: Likewise.
467         * gcse.c: Likewise.
468         * generic-match-head.c: Likewise.
469         * ggc-page.c: Likewise.
470         * gimple-builder.c: Likewise.
471         * gimple-expr.c: Likewise.
472         * gimple-fold.c: Likewise.
473         * gimple-iterator.c: Likewise.
474         * gimple-low.c: Likewise.
475         * gimple-match-head.c: Likewise.
476         * gimple-pretty-print.c: Likewise.
477         * gimple-ssa-isolate-paths.c: Likewise.
478         * gimple-ssa-strength-reduction.c: Likewise.
479         * gimple-streamer-in.c: Likewise.
480         * gimple-streamer-out.c: Likewise.
481         * gimple-walk.c: Likewise.
482         * gimple.c: Likewise.
483         * gimplify-me.c: Likewise.
484         * gimplify.c: Likewise.
485         * godump.c: Likewise.
486         * graph.c: Likewise.
487         * graphite-blocking.c: Likewise.
488         * graphite-dependences.c: Likewise.
489         * graphite-interchange.c: Likewise.
490         * graphite-isl-ast-to-gimple.c: Likewise.
491         * graphite-optimize-isl.c: Likewise.
492         * graphite-poly.c: Likewise.
493         * graphite-scop-detection.c: Likewise.
494         * graphite-sese-to-poly.c: Likewise.
495         * graphite.c: Likewise.
496         * haifa-sched.c: Likewise.
497         * hw-doloop.c: Likewise.
498         * ifcvt.c: Likewise.
499         * init-regs.c: Likewise.
500         * internal-fn.c: Likewise.
501         * ipa-chkp.c: Likewise.
502         * ipa-comdats.c: Likewise.
503         * ipa-cp.c: Likewise.
504         * ipa-devirt.c: Likewise.
505         * ipa-icf-gimple.c: Likewise.
506         * ipa-icf.c: Likewise.
507         * ipa-inline-analysis.c: Likewise.
508         * ipa-inline-transform.c: Likewise.
509         * ipa-inline.c: Likewise.
510         * ipa-polymorphic-call.c: Likewise.
511         * ipa-profile.c: Likewise.
512         * ipa-prop.c: Likewise.
513         * ipa-pure-const.c: Likewise.
514         * ipa-ref.c: Likewise.
515         * ipa-reference.c: Likewise.
516         * ipa-split.c: Likewise.
517         * ipa-utils.c: Likewise.
518         * ipa-visibility.c: Likewise.
519         * ipa.c: Likewise.
520         * ira-build.c: Likewise.
521         * ira-color.c: Likewise.
522         * ira-conflicts.c: Likewise.
523         * ira-costs.c: Likewise.
524         * ira-emit.c: Likewise.
525         * ira-lives.c: Likewise.
526         * ira.c: Likewise.
527         * jump.c: Likewise.
528         * langhooks.c: Likewise.
529         * lcm.c: Likewise.
530         * loop-doloop.c: Likewise.
531         * loop-init.c: Likewise.
532         * loop-invariant.c: Likewise.
533         * loop-iv.c: Likewise.
534         * loop-unroll.c: Likewise.
535         * lower-subreg.c: Likewise.
536         * lra-assigns.c: Likewise.
537         * lra-coalesce.c: Likewise.
538         * lra-constraints.c: Likewise.
539         * lra-eliminations.c: Likewise.
540         * lra-lives.c: Likewise.
541         * lra-remat.c: Likewise.
542         * lra-spills.c: Likewise.
543         * lra.c: Likewise.
544         * lto-cgraph.c: Likewise.
545         * lto-compress.c: Likewise.
546         * lto-opts.c: Likewise.
547         * lto-section-in.c: Likewise.
548         * lto-section-out.c: Likewise.
549         * lto-streamer-in.c: Likewise.
550         * lto-streamer-out.c: Likewise.
551         * lto-streamer.c: Likewise.
552         * mcf.c: Likewise.
553         * mode-switching.c: Likewise.
554         * modulo-sched.c: Likewise.
555         * omega.c: Likewise.
556         * omp-low.c: Likewise.
557         * optabs.c: Likewise.
558         * opts-global.c: Likewise.
559         * passes.c: Likewise.
560         * plugin.c: Likewise.
561         * postreload-gcse.c: Likewise.
562         * postreload.c: Likewise.
563         * predict.c: Likewise.
564         * print-rtl.c: Likewise.
565         * print-tree.c: Likewise.
566         * profile.c: Likewise.
567         * real.c: Likewise.
568         * realmpfr.c: Likewise.
569         * recog.c: Likewise.
570         * ree.c: Likewise.
571         * reg-stack.c: Likewise.
572         * regcprop.c: Likewise.
573         * reginfo.c: Likewise.
574         * regrename.c: Likewise.
575         * regstat.c: Likewise.
576         * reload.c: Likewise.
577         * reload1.c: Likewise.
578         * reorg.c: Likewise.
579         * resource.c: Likewise.
580         * rtl-chkp.c: Likewise.
581         * rtlanal.c: Likewise.
582         * rtlhooks.c: Likewise.
583         * sanopt.c: Likewise.
584         * sched-deps.c: Likewise.
585         * sched-ebb.c: Likewise.
586         * sched-rgn.c: Likewise.
587         * sched-vis.c: Likewise.
588         * sdbout.c: Likewise.
589         * sel-sched-dump.c: Likewise.
590         * sel-sched-ir.c: Likewise.
591         * sel-sched.c: Likewise.
592         * sese.c: Likewise.
593         * shrink-wrap.c: Likewise.
594         * simplify-rtx.c: Likewise.
595         * stack-ptr-mod.c: Likewise.
596         * stmt.c: Likewise.
597         * stor-layout.c: Likewise.
598         * store-motion.c: Likewise.
599         * stringpool.c: Likewise.
600         * symtab.c: Likewise.
601         * target-globals.c: Likewise.
602         * targhooks.c: Likewise.
603         * toplev.c: Likewise.
604         * tracer.c: Likewise.
605         * trans-mem.c: Likewise.
606         * tree-affine.c: Likewise.
607         * tree-browser.c: Likewise.
608         * tree-call-cdce.c: Likewise.
609         * tree-cfg.c: Likewise.
610         * tree-cfgcleanup.c: Likewise.
611         * tree-chkp-opt.c: Likewise.
612         * tree-chkp.c: Likewise.
613         * tree-chrec.c: Likewise.
614         * tree-complex.c: Likewise.
615         * tree-data-ref.c: Likewise.
616         * tree-dfa.c: Likewise.
617         * tree-diagnostic.c: Likewise.
618         * tree-dump.c: Likewise.
619         * tree-eh.c: Likewise.
620         * tree-emutls.c: Likewise.
621         * tree-if-conv.c: Likewise.
622         * tree-inline.c: Likewise.
623         * tree-into-ssa.c: Likewise.
624         * tree-iterator.c: Likewise.
625         * tree-loop-distribution.c: Likewise.
626         * tree-nested.c: Likewise.
627         * tree-nrv.c: Likewise.
628         * tree-object-size.c: Likewise.
629         * tree-outof-ssa.c: Likewise.
630         * tree-parloops.c: Likewise.
631         * tree-phinodes.c: Likewise.
632         * tree-predcom.c: Likewise.
633         * tree-pretty-print.c: Likewise.
634         * tree-profile.c: Likewise.
635         * tree-scalar-evolution.c: Likewise.
636         * tree-sra.c: Likewise.
637         * tree-ssa-address.c: Likewise.
638         * tree-ssa-alias.c: Likewise.
639         * tree-ssa-ccp.c: Likewise.
640         * tree-ssa-coalesce.c: Likewise.
641         * tree-ssa-copy.c: Likewise.
642         * tree-ssa-copyrename.c: Likewise.
643         * tree-ssa-dce.c: Likewise.
644         * tree-ssa-dom.c: Likewise.
645         * tree-ssa-dse.c: Likewise.
646         * tree-ssa-forwprop.c: Likewise.
647         * tree-ssa-ifcombine.c: Likewise.
648         * tree-ssa-live.c: Likewise.
649         * tree-ssa-loop-ch.c: Likewise.
650         * tree-ssa-loop-im.c: Likewise.
651         * tree-ssa-loop-ivcanon.c: Likewise.
652         * tree-ssa-loop-ivopts.c: Likewise.
653         * tree-ssa-loop-manip.c: Likewise.
654         * tree-ssa-loop-niter.c: Likewise.
655         * tree-ssa-loop-prefetch.c: Likewise.
656         * tree-ssa-loop-unswitch.c: Likewise.
657         * tree-ssa-loop.c: Likewise.
658         * tree-ssa-math-opts.c: Likewise.
659         * tree-ssa-operands.c: Likewise.
660         * tree-ssa-phiopt.c: Likewise.
661         * tree-ssa-phiprop.c: Likewise.
662         * tree-ssa-pre.c: Likewise.
663         * tree-ssa-propagate.c: Likewise.
664         * tree-ssa-reassoc.c: Likewise.
665         * tree-ssa-sccvn.c: Likewise.
666         * tree-ssa-scopedtables.c: Likewise.
667         * tree-ssa-sink.c: Likewise.
668         * tree-ssa-strlen.c: Likewise.
669         * tree-ssa-structalias.c: Likewise.
670         * tree-ssa-tail-merge.c: Likewise.
671         * tree-ssa-ter.c: Likewise.
672         * tree-ssa-threadedge.c: Likewise.
673         * tree-ssa-threadupdate.c: Likewise.
674         * tree-ssa-uncprop.c: Likewise.
675         * tree-ssa-uninit.c: Likewise.
676         * tree-ssa.c: Likewise.
677         * tree-ssanames.c: Likewise.
678         * tree-stdarg.c: Likewise.
679         * tree-streamer-in.c: Likewise.
680         * tree-streamer-out.c: Likewise.
681         * tree-streamer.c: Likewise.
682         * tree-switch-conversion.c: Likewise.
683         * tree-tailcall.c: Likewise.
684         * tree-vect-data-refs.c: Likewise.
685         * tree-vect-generic.c: Likewise.
686         * tree-vect-loop-manip.c: Likewise.
687         * tree-vect-loop.c: Likewise.
688         * tree-vect-patterns.c: Likewise.
689         * tree-vect-slp.c: Likewise.
690         * tree-vect-stmts.c: Likewise.
691         * tree-vectorizer.c: Likewise.
692         * tree-vrp.c: Likewise.
693         * tree.c: Likewise.
694         * tsan.c: Likewise.
695         * ubsan.c: Likewise.
696         * valtrack.c: Likewise.
697         * value-prof.c: Likewise.
698         * var-tracking.c: Likewise.
699         * varasm.c: Likewise.
700         * varpool.c: Likewise.
701         * vmsdbgout.c: Likewise.
702         * vtable-verify.c: Likewise.
703         * web.c: Likewise.
704         * wide-int.cc: Likewise.
705         * xcoffout.c: Likewise.
706         * config/aarch64/aarch64-builtins.c: Likewise.
707         * config/aarch64/aarch64.c: Likewise.
708         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
709         * config/alpha/alpha.c: Likewise.
710         * config/arc/arc.c: Likewise.
711         * config/arm/aarch-common.c: Likewise.
712         * config/arm/arm-builtins.c: Likewise.
713         * config/arm/arm-c.c: Likewise.
714         * config/arm/arm.c: Likewise.
715         * config/avr/avr-c.c: Likewise.
716         * config/avr/avr-log.c: Likewise.
717         * config/avr/avr.c: Likewise.
718         * config/bfin/bfin.c: Likewise.
719         * config/c6x/c6x.c: Likewise.
720         * config/cr16/cr16.c: Likewise.
721         * config/cris/cris.c: Likewise.
722         * config/darwin-c.c: Likewise.
723         * config/darwin.c: Likewise.
724         * config/epiphany/epiphany.c: Likewise.
725         * config/epiphany/mode-switch-use.c: Likewise.
726         * config/epiphany/resolve-sw-modes.c: Likewise.
727         * config/fr30/fr30.c: Likewise.
728         * config/frv/frv.c: Likewise.
729         * config/ft32/ft32.c: Likewise.
730         * config/h8300/h8300.c: Likewise.
731         * config/i386/i386-c.c: Likewise.
732         * config/i386/i386.c: Likewise.
733         * config/i386/msformat-c.c: Likewise.
734         * config/i386/winnt-cxx.c: Likewise.
735         * config/i386/winnt-stubs.c: Likewise.
736         * config/i386/winnt.c: Likewise.
737         * config/ia64/ia64-c.c: Likewise.
738         * config/ia64/ia64.c: Likewise.
739         * config/iq2000/iq2000.c: Likewise.
740         * config/lm32/lm32.c: Likewise.
741         * config/m32c/m32c-pragma.c: Likewise.
742         * config/m32c/m32c.c: Likewise.
743         * config/m32r/m32r.c: Likewise.
744         * config/m68k/m68k.c: Likewise.
745         * config/mcore/mcore.c: Likewise.
746         * config/mep/mep-pragma.c: Likewise.
747         * config/mep/mep.c: Likewise.
748         * config/microblaze/microblaze-c.c: Likewise.
749         * config/microblaze/microblaze.c: Likewise.
750         * config/mips/mips.c: Likewise.
751         * config/mmix/mmix.c: Likewise.
752         * config/mn10300/mn10300.c: Likewise.
753         * config/moxie/moxie.c: Likewise.
754         * config/msp430/msp430-c.c: Likewise.
755         * config/msp430/msp430.c: Likewise.
756         * config/nds32/nds32-cost.c: Likewise.
757         * config/nds32/nds32-fp-as-gp.c: Likewise.
758         * config/nds32/nds32-intrinsic.c: Likewise.
759         * config/nds32/nds32-isr.c: Likewise.
760         * config/nds32/nds32-md-auxiliary.c: Likewise.
761         * config/nds32/nds32-memory-manipulation.c: Likewise.
762         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
763         * config/nds32/nds32-predicates.c: Likewise.
764         * config/nds32/nds32.c: Likewise.
765         * config/nios2/nios2.c: Likewise.
766         * config/nvptx/nvptx.c: Likewise.
767         * config/pa/pa.c: Likewise.
768         * config/pdp11/pdp11.c: Likewise.
769         * config/rl78/rl78-c.c: Likewise.
770         * config/rl78/rl78.c: Likewise.
771         * config/rs6000/rs6000-c.c: Likewise.
772         * config/rs6000/rs6000.c: Likewise.
773         * config/rx/rx.c: Likewise.
774         * config/s390/s390-c.c: Likewise.
775         * config/s390/s390.c: Likewise.
776         * config/sh/sh-c.c: Likewise.
777         * config/sh/sh-mem.cc: Likewise.
778         * config/sh/sh.c: Likewise.
779         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
780         * config/sh/sh_treg_combine.cc: Likewise.
781         * config/sol2-c.c: Likewise.
782         * config/sol2-cxx.c: Likewise.
783         * config/sol2-stubs.c: Likewise.
784         * config/sol2.c: Likewise.
785         * config/sparc/sparc-c.c: Likewise.
786         * config/sparc/sparc.c: Likewise.
787         * config/spu/spu-c.c: Likewise.
788         * config/spu/spu.c: Likewise.
789         * config/stormy16/stormy16.c: Likewise.
790         * config/tilegx/mul-tables.c: Likewise.
791         * config/tilegx/tilegx-c.c: Likewise.
792         * config/tilegx/tilegx.c: Likewise.
793         * config/tilepro/mul-tables.c: Likewise.
794         * config/tilepro/tilepro-c.c: Likewise.
795         * config/tilepro/tilepro.c: Likewise.
796         * config/v850/v850-c.c: Likewise.
797         * config/v850/v850.c: Likewise.
798         * config/vax/vax.c: Likewise.
799         * config/visium/visium.c: Likewise.
800         * config/vms/vms-c.c: Likewise.
801         * config/vms/vms.c: Likewise.
802         * config/vxworks.c: Likewise.
803         * config/xtensa/xtensa.c: Likewise.
805 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
807         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
808         Remove operand constraints.  Change operand 2 predicate to
809         nonmemory operand.  Limit const_int values to mode bitsize.  Only
810         allow const_int values less than 32 when optimizing for size.
811         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
812         Remove operand constraints.
813         (*bt<mode>): Use SImode for const_int values less than 32.
814         (regmode): Remove mode attribute.
816 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
818         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
819         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
820           moxie_legitimate_address_p): New functions.
821           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
823 2015-07-07  Tom de Vries  <tom@codesourcery.com>
825         PR tree-optimization/66642
826         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
827         header comment.  Rename split_edge variable to edge_at_split.  Split
828         exit edge to create new loop exit bb.  Insert loop exit phis in new
829         loop exit bb.
831 2015-07-07  Tom de Vries  <tom@codesourcery.com>
833         * tree-cfg.c (get_virtual_phi): New function.
834         * tree-cfg.h (get_virtual_phi): Declare.
835         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
836         (rewrite_virtuals_into_loop_closed_ssa): New function.
837         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
838         Declare.
839         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
840         (transform_to_exit_first_loop_alt): Use
841         rewrite_virtuals_into_loop_closed_ssa.
843 2015-07-07  Richard Biener  <rguenther@suse.de>
845         * fold-const.c (fold_binary_loc): Move
846         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
847         * match.pd: ... here.
848         Add (X * C1) % C2 -> 0 simplification pattern derived from
849         extract_muldiv_1.
851 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
853         PR target/66780
854         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
855         change for target/65249.
857 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
859         * symtab.c (address_matters_1): Fix typo in comment above.
860         (can_increase_alignment_p): Likewise.
862 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
864         * function.c (free_after_compilation): Clear PROP_cfg in
865         f->curr_properties.
867 2015-07-07  Richard Biener  <rguenther@suse.de>
869         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
870         add which use to.
871         (add_control_edge): Remove excessive vertical space in dumping.
872         (process_ssa_edge_worklist): Simulate at most one statement and
873         return whether we did.  Do not simulate PHIs if they are in a
874         BB not yet simulated.
875         (ssa_propagate): Adjust to always drain the BB worklist whenever
876         a BB is available there, likewise the VARYING edges list before
877         the interesting edge list.
879 2015-07-07  Christian Bruel  <christian.bruel@st.com>
881         PR target/52144
882         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
884 2015-07-07  Richard Biener  <rguenther@suse.de>
886         PR middle-end/66739
887         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
888         A - B.
890 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
892         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
893         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
894         Copy operand 0 to a temporary if !ext_register_operand.  Remove
895         ancient extract_bit_field workaround.
896         (insv<mode>_1): Rename from mov<mode>_insv_1.
897         (*insvqi): Rename from *movqi_insv_2.
898         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
899         for renamed insvsi_1.
900         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
902 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
904         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
905         call to nvptx_reorg_subreg.
907 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
909         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
910         * graphite-dependencies.c, graphite-interchange.c,
911         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
912         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
913         Likewise.
915 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
917         * match.pd: Remove element_mode inside HONOR_*.
918         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
919         (~X | X -> -1, ~X ^ X -> -1): Merge.
920         * tree.c (build_each_one_cst): New function.
921         * tree.h (build_each_one_cst): Likewise.
923 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
925         * config.gcc <mips*-*-*>: Add fused-madd.opt.
926         * config/mips/mips.opt (mfused-madd): Remove.
927         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
928         * config/mips/mips.h (TARGET_MIPS8000): New.
929         (ISA_HAS_FP_MADD4_MSUB4): Remove.
930         (ISA_HAS_FP_MADDF_MSUBF): Remove.
931         (ISA_HAS_FP_MADD3_MSUB3): Remove.
932         (ISA_HAS_NMADD4_NMSUB4): Remove.
933         (ISA_HAS_NMADD3_NMSUB3): Remove.
934         (ISA_HAS_FUSED_MADD4): New.
935         (ISA_HAS_UNFUSED_MADD4): New.
936         (ISA_HAS_FUSED_MADDF): New.
937         (ISA_HAS_FUSED_MADD3): New.
938         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
939         (*fma<mode>4_madd3) New.
940         (*fma<mode>4_madd4) New.
941         (*fma<mode>4_maddf) New.
942         (fms<mode>4) New.
943         (*fms<mode>4_msub3) New.
944         (*fms<mode>4_msub4) New.
945         (fnma<mode>4) New.
946         (*fnma<mode>4_nmadd3) New.
947         (*fnma<mode>4_nmadd4) New.
948         (fnms<mode>4) New.
949         (*fnms<mode>4_nmsub3) New.
950         (*fnms<mode>4_nmsub4) New.
951         (*madd4<mode>) Modify to be unfused only.
952         (*msub4<mode>) Modify to be unfused only.
953         (*nmadd4<mode>) Modify to be unfused only.
954         (*nmsub4<mode>) Modify to be unfused only.
955         (*madd3<mode>) Remove.
956         (*msub3<mode>) Remove.
957         (*nmadd3<mode>) Remove.
958         (*nmsub3<mode>) Remove.
959         (*nmadd3<mode>_fastmath) Remove.
960         (*nmsub3<mode>_fastmath) Remove.
961         (*nmadd4<mode>_fastmath) Update condition.
962         (*nmsub4<mode>_fastmath) Update condition.
964 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
966         PR target/65956
967         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
968         alignment attribute, exploring one level down for records and arrays.
970 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
972         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
973         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
974         Copy operand 1 to a temporary if !ext_register_operand.  Remove
975         ancient extract_bit_field workaround.
976         (*extv<mode>): Rename from *mov<mode>_extv_1.
977         (*extvqi): Rename from *movqi_extv_1.
978         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
979         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
980         to a temporary if !ext_register_operand.  Remove ancient
981         extract_bit_field workaround.
982         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
983         (*extzvqi): Rename from *movqi_extzv_2.
984         (*testqi_ext_3): Remove modes from const_int_operand predicated
985         operands.  Add "n" constraint.
986         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
987         operand.  Add "J" constraint.
988         (*btsq, *btrq, *btcq peephole2s): Remove mode from
989         const_0_to_63 predicated operand.
990         (regmode): New insn attribute.
991         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
992         to nonmemory_operand.  Use regmode insn attribute.
993         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
994         (*jcc_bt<mode>_mask): Remove mode from operand 3.
995         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
996         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
997         operands.  Use "N" constraint instead of "n".
999 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
1001         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
1003 2015-07-06  Richard Biener  <rguenther@suse.de>
1005         PR tree-optimization/66772
1006         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
1007         values are available in the PHI node BB when there are
1008         still unexecutable edges.
1010 2015-07-06  Richard Biener  <rguenther@suse.de>
1012         PR tree-optimization/66767
1013         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
1014         Make sure to build the alignment test on a SSA name without
1015         final alignment info valid only if the alignment test
1016         evaluates to true.
1018 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
1020         PR target/66620
1021         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
1022         loop start when inserting LSETUP.
1024 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
1026         PR target/53383
1027         * config/i386/i386.c (ix86_option_override_internal): Allow
1028         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
1030 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1032         * read-md.c (decimal_string): Rename to ...
1033         (md_decimal_string): ... this.
1034         (handle_enum): Reflect this.
1036 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1038         PR target/66731
1039         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
1041 2015-07-06  Richard Biener  <rguenther@suse.de>
1043         PR middle-end/66759
1044         * match.pd: Add missing constraint of y to REAL_CST in
1045         REAL_CST - x CMP y to y - CST CMP x simplification.
1047 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
1049         PR tree-optimization/66757
1050         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
1052 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
1053             Sandra Loosemore <sandra@codesourcery.com>
1055         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
1056         Delete extern declaration.
1057         (gprel_constant_p): Add extern declaration.
1058         * config/nios2/constraints.md ("S"): Use gprel_constant_p
1059         instead of nios2_symbol_ref_in_small_data_p.
1060         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
1061         (nios2_symbol_ref_in_small_data_p): Make static.
1062         (gprel_constant_p): Make non-static.
1064 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
1066         * doc/fragments.texi (Target Fragment): Convert debian.org
1067         link to use https.
1068         * doc/install.texi (Configuration): Ditto.
1070 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
1072         PR tree-optimization/66718
1073         * tree-vect-stmts.c (vectorizable_call): Replace uses of
1074         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
1076         PR tree-optimization/66718
1077         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
1078         vectorizable_load, vectorizable_condition): Move vectype,
1079         nunits, ncopies computation after checking what kind of statement
1080         stmt is.
1082 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1084         * target-insns.def (extv, extzv, insv): New targetm instruction
1085         patterns.
1086         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
1087         interface.
1088         * recog.c (simplify_while_replacing): Likewise.
1090 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1092         * target-insns.def (doloop_begin, doloop_end): New targetm
1093         instruction patterns.
1094         * loop-init.c: Include target.h.
1095         (pass_loop2::gate): Use the new targetm patterns instead of
1096         HAVE_*/gen_* interface.
1097         (pass_rtl_doloop::gate): Likewise.
1098         (pass_rtl_doloop::execute): Remove preprocessor condition.
1099         * hw-doloop.c: Build unconditionally.
1100         * loop-doloop.c: Likewise.
1101         (doloop_optimize): Use the new targetm patterns instead of
1102         HAVE_*/gen_* interface.
1103         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
1104         * modulo-sched.c (doloop_register_get): Likewise.
1106 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1108         * target-insns.def (clear_cache): New targetm instruction pattern.
1109         * builtins.c (expand_builtin___clear_cache): Use it instead of
1110         HAVE_*/gen_* interface.
1112 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1114         * target-insns.def (allocate_stack, check_stack, probe_stack)
1115         (probe_stack_address, split_stack_prologue, split_stack_space_check):
1116         New targetm instruction patterns.
1117         * explow.c (allocate_dynamic_stack_space): Use them instead of
1118         HAVE_*/gen_* interface.
1119         (emit_stack_probe): Likewise.
1120         (probe_stack_range): Likewise.
1121         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1123 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1125         * target-insns.def (stack_protect_set, stack_protect_test): New
1126         targetm instruction patterns.
1127         * cfgexpand.c (stack_protect_prologue): Use them instead of
1128         HAVE_*/gen_* interface.
1129         * function.c (stack_protect_epilogue): Likewise.
1131 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1133         * expr.h (gen_move_insn_uncast): Delete.
1134         * expr.c (gen_move_insn_uncast): Delete.
1136 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1138         * target-insns.def (restore_stack_block, restore_stack_function)
1139         (restore_stack_nonlocal, save_stack_block, save_stack_function)
1140         (save_stack_nonlocal): New targetm instruction patterns.
1141         * builtins.c (expand_builtin_apply): Use them instead of
1142         HAVE_*/gen_* interface.
1143         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
1145 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1147         * target-insns.def (trap): New targetm instruction pattern.
1148         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
1149         interface.
1150         * explow.c (allocate_dynamic_stack_space): Likewise.
1151         * ifcvt.c (find_if_header): Likewise.
1153 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1155         * target-insns.def (prefetch): New targetm instruction pattern.
1156         * tree-ssa-loop-prefetch.c: Include targeth.
1157         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
1158         of HAVE_*/gen_* interface.
1159         * builtins.c (expand_builtin_prefetch): Likewise.
1160         * toplev.c (process_options): Likewise.
1162 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1164         * target-insns.def (untyped_call, untyped_return): New targetm
1165         instruction patterns.
1166         * builtins.c (expand_builtin_apply): Use them instead of
1167         HAVE_*/gen_* interface.
1168         (result_vector): Define unconditionally.
1170 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1172         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
1173         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
1174         (nonlocal_goto_receiver): New targetm instruction patterns.
1175         * builtins.c (expand_builtin_setjmp_setup): Use them instead
1176         of HAVE_*/gen_* interface.
1177         (expand_builtin_setjmp_receiver): Likewise.
1178         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
1179         * except.c (expand_dw2_landing_pad_for_region): Likewise.
1181 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
1183         * target.def: Add code_for_* hooks.
1184         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
1185         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
1186         * target-insns.def (casesi, tablejump): New targetm instruction
1187         patterns.
1188         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
1189         (do_tablejump): Likewise.
1190         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
1191         (expand_sjlj_dispatch_table): Likewise.
1192         * targhooks.c (default_case_values_threshold): Likewise.
1194 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
1196         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
1197         Use rtx_insn * instead of rtx.
1198         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
1199         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
1200         (nios2_call_tls_get_addr): Likewise.
1201         (nios2_emit_expensive_div): Likewise.
1202         (nios2_emit_move_sequence): Change return type to bool.
1203         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
1204         Change return type to bool.
1206 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1208         PR target/66747
1209         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
1211 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
1213         PR target/66114
1214         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
1215         of register_operand.  Remove constraint.
1217 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
1219         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
1220         the first argument.
1222 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
1224         * attribs.c (decl_attributes): Guard inform with the return value
1225         of the preceding warning.
1227 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
1229         * doc/invoke.texi (moverride): Move to correct section.
1231 2015-07-03  Richard Biener  <rguenther@suse.de>
1233         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
1234         Copy from tree.c
1235         (dt_operand::gen_gimple_expr): After valueizing operands
1236         re-canonicalize operand order for commutative tree codes.
1238 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
1240         PR target/66746.
1241         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
1242         is defined.
1243         (__crc32w): Likewise.
1244         (__crc32d): Likewise.
1245         (__rdpmc): Likewise.
1246         (__rdtscp): Likewise.
1247         (_rdpmc): Likewise.
1248         (_rdtscp): Likewise.
1249         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
1250         is defined.
1252 2015-07-03  Richard Biener  <rguenther@suse.de>
1254         * fold-const.c (fold_mathfn_compare): Remove.
1255         (fold_inf_compare): Likewise.
1256         (fold_comparison): Move floating point comparison simplifications...
1257         * match.pd: ... to patterns here.  Introduce simple_comparisons
1258         operator list and use it for patterns formerly in fold_comparison.
1260 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
1262         PR tree-optimization/66119
1263         * toplev.c (process_options): Don't set up default values for
1264         the sra_max_scalarization_size_{speed,size} parameters.
1265         * tree-sra (analyze_all_variable_accesses): If no values
1266         have been set for the sra_max_scalarization_size_{speed,size}
1267         parameters, call get_move_ratio to get target defaults.
1269 2015-07-03  Richard Biener  <rguenther@suse.de>
1271         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
1272         * match.pd: ... here.
1274 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
1276         PR target/37072
1277         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
1278         is not actually the default on FreeBSD.
1280 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1282         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
1283         definition.
1284         (CMPGE_8HI): Likewise.
1285         (CMPGE_4SI): Likewise.
1286         (CMPGE_2DI): Likewise.
1287         (CMPGE_U16QI): Likewise.
1288         (CMPGE_U8HI): Likewise.
1289         (CMPGE_U4SI): Likewise.
1290         (CMPGE_U2DI): Likewise.
1291         (CMPLE_16QI): Likewise.
1292         (CMPLE_8HI): Likewise.
1293         (CMPLE_4SI): Likewise.
1294         (CMPLE_2DI): Likewise.
1295         (CMPLE_U16QI): Likewise.
1296         (CMPLE_U8HI): Likewise.
1297         (CMPLE_U4SI): Likewise.
1298         (CMPLE_U2DI): Likewise.
1299         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1300         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
1301         ALTIVEC_BUILTIN_VEC_CMPLE.
1302         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
1303         floating-point vector modes.
1304         (vector_nlt<mode>): New define_expand.
1305         (vector_nltu<mode>): Likewise.
1306         (vector_ngt<mode>): Likewise.
1307         (vector_ngtu<mode>): Likewise.
1309 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
1311         PR rtl-optimization/66706
1312         * combine.c (make_compound_operation): If an AND of SUBREG of
1313         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
1315 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
1317         * tree-pass.h (make_pass_ch_vect): New.
1318         * passes.def: Add pass_ch_vect just before pass_if_conversion.
1320         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
1321         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
1322         make_pass_ch_vect): New.
1323         (pass_ch): Extend ch_base.
1325         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
1326         (ch_base::copy_headers): ...here.
1328 2015-07-02  Richard Biener  <rguenther@suse.de>
1330         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
1331         * fold-const.c (get_pointer_modulus_and_residue): Remove.
1332         (fold_binary_loc): Implement (T)ptr & CST in terms of
1333         get_pointer_alignment_1.
1334         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1335         Make sure to build the alignment test on a SSA name without
1336         final alignment info valid only after the prologue.
1338 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
1340         * config/cris/cris.md ("epilogue"): Remove condition.
1341         ("prologue"): Ditto.
1343 2015-07-02  Richard Biener  <rguenther@suse.de>
1345         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
1346         parameter to record a condition that is false.
1347         (record_conditions): When recording an extra NE_EXPR that is
1348         true also record a EQ_EXPR that is false.
1350 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
1352         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
1353         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
1354         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
1355         (set_iv, find_interesting_uses_address, add_candidate_1): New
1356         argument to alloc_iv.
1357         (find_interesting_uses_op, find_interesting_uses_cond): Don't
1358         duplicate struct iv.
1359         (free_loop_data): Don't free struct iv explicitly.
1360         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
1362 2015-07-01  DJ Delorie  <dj@redhat.com>
1364         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
1365         (LIB_SPEC): Add.
1366         (SUPPORTS_DISCRIMINATOR): Define.
1368 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
1370         PR bootstrap/66685
1371         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
1372         there are no CALLs in the same pattern.
1374 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1376         PR rtl-optimization/61047
1377         * rtlanal.c (get_initial_register_offset): New function.
1378         (rtx_addr_can_trap_p_1): Check offsets of stack references.
1380 2015-07-01  Richard Biener  <rguenther@suse.de>
1382         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
1383         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
1384         ~X CMP C -> X CMP' ~C to ...
1385         * match.pd: ... patterns here.
1387 2015-07-01  Nick Clifton  <nickc@redhat.com>
1389         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
1390         a 16-bit value into a 20-bit memory slot.
1392 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
1394         * doc/sourcebuild.texi (AArch64-specific attributes): Document
1395         "aarch64_tiny", "aarch64_small", "aarch64_large",
1396         "aarch64_little_endian", "aarch64_big_endian".
1398 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
1400         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
1401         Document "aarch64_small_fpic".
1403 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
1405         * configure.ac: Add check for aarch64 assembler -fpic relocation
1406         modifier support.
1407         * configure: Regenerate.
1408         * config.in: Regenerate.
1409         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
1410         to -fPIC if not support of -fpic relocation modifier in assembler.
1412 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
1414         PR bootstrap/66685
1415         * rtl.c (classify_insn): Handle returns in PARALLELs.
1417 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
1419         PR middle-end/66633
1420         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
1421         to true if the function is nested and if not optimizing.
1422         (convert_local_omp_clauses): Initialize need_frame to true if the
1423         function contains nested functions and if not optimizing.
1425 2015-07-01  Richard Biener  <rguenther@suse.de>
1427         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
1428         (X & Y) ^ Y -> ~X & Y transforms to ...
1429         * match.pd: ... here.
1431 2015-07-01  Richard Biener <rguenther@suse.de>
1433         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
1434         of converts to avoid uninteresting noise from the conversion
1435         simplifying patterns.
1437 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
1439         * config/c6x/c6x.c (try_rename_operands): Do not depend on
1440         gcc_assert evaluating its argument for side-effect.
1442 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
1444         PR target/64833
1445         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
1446         flag_pic is set.
1448 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
1450         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
1451         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
1452         (hash_scc): Add this_ref_p and ref_p parameters and pass them
1453         to the inner DFS walk.
1455 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
1457         * target-insns.def (jump): New targetm instruction pattern.
1458         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
1459         instead of gen_jump.
1460         (fix_up_crossing_landing_pad): Likewise.
1461         (add_labels_and_missing_jumps): Likewise.
1462         (fix_crossing_conditional_branches): Likewise.
1463         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1464         (force_nonfallthru_and_redirect): Likewise.
1465         * cse.c (cse_insn): Likewise.
1466         * expmed.c (expand_divmod): Likewise.
1467         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
1468         * haifa-sched.c (init_before_recovery): Likewise.
1469         (sched_create_recovery_edges): Likewise.
1470         * ifcvt.c (find_cond_trap): Likewise.
1471         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
1472         (expand_float, expand_fix): Likewise.
1473         * stmt.c (emit_jump): Likewise.
1475 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
1477         * defaults.h (HAVE_load_multiple, gen_load_multiple)
1478         (HAVE_store_multiple, gen_store_multiple): Delete.
1479         * target-insns.def (load_multiple, store_multiple): New targetm
1480         instruction patterns.
1481         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
1482         of HAVE_*/gen_* interface.
1484 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
1486         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
1487         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
1488         (gen_mem_signal_fence): Delete.
1489         * target-insns.def (mem_signal_fence, mem_thread_fence)
1490         (memory_barrier): New targetm instruction patterns.
1491         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
1492         interface.
1493         (expand_mem_signal_fence): Likewise.
1495 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
1497         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
1498         * target-insns.def (epilogue, prologue, sibcall_prologue): New
1499         targetm instruction patterns.
1500         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
1501         interface.
1502         * calls.c (expand_call): Likewise.
1503         * cfgrtl.c (cfg_layout_finalize): Likewise.
1504         * df-scan.c (df_get_entry_block_def_set): Likewise.
1505         (df_get_exit_block_use_set): Likewise.
1506         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
1507         * final.c (final_start_function): Likewise.
1508         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1509         (reposition_prologue_and_epilogue_notes): Likewise.
1510         * reorg.c (find_end_label): Likewise.
1511         * toplev.c (process_options): Likewise.
1513 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
1515         * typed-splay-tree.h: New file.
1517 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
1519         PR debug/66691
1520         * lra-int.h (lra_substitute_pseudo): Add a parameter.
1521         (lra_substitute_pseudo_within_insn): Ditto.
1522         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
1523         of constant.
1524         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
1525         to lra_substitute_pseudo.
1526         * lra-lives.c (process_bb_lives): Add an argument to
1527         lra_substitute_pseudo_within_insn call.
1528         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
1529         argument to lra_substitute_pseudo and
1530         lra_substitute_pseudo_within_insn calls.
1531         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
1533 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1535         * configure: Regenerated.
1537 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1539         * config.gcc: Support i[34567]86-*-elfiamcu target.
1540         * config/i386/iamcu.h: New.
1541         * config/i386/i386.opt: Add -miamcu.
1542         * doc/invoke.texi: Document -miamcu.
1543         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
1544         off x87/MMX/SSE/AVX codegen for -miamcu.
1545         * config/i386/i386-c.c (ix86_target_macros_internal): Define
1546         __iamcu/__iamcu__ for -miamcu.
1547         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
1548         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
1549         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
1550         * config/i386/i386.c (ix86_option_override_internal): Ignore and
1551         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
1552         MCU by default.  Default long double to 64-bit for Intel MCU.
1553         Turn on -freg-struct-return for Intel MCU.  Issue an error when
1554         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
1555         AVX is turned on.
1556         (function_arg_advance_32): Pass value whose size is no larger
1557         than 8 bytes in registers for Intel MCU.
1558         (function_arg_32): Likewise.
1559         (ix86_return_in_memory): Return value whose size is no larger
1560         than 8 bytes in registers for Intel MCU.
1561         (iamcu_alignment): New function.
1562         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
1563         true.
1564         (ix86_local_alignment): Don't increase alignment for Intel MCU.
1565         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
1566         true.
1568 2015-06-30  Marek Polacek  <polacek@redhat.com>
1570         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
1571         both operands of the resulting expression.
1573         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
1574         the final expression with the operand's type and then convert
1575         it to the type of the expression.
1577 2015-06-30  Richard Biener  <rguenther@suse.de>
1579         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
1580         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
1581         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
1582         * match.pd: ... to patterns here.
1584 2015-06-30  Richard Biener  <rguenther@suse.de>
1586         PR tree-optimization/66704
1587         * tree-vect-data-refs.c (vect_setup_realignment): Use
1588         make_ssa_name for non-SSA name source.
1590 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
1592         PR middle-end/66702
1593         * omp-low.c (simd_clone_adjust): Handle addressable linear
1594         or uniform parameters or non-gimple type uniform parameters.
1596 2015-06-30  Richard Biener  <rguenther@suse.de>
1598         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
1599         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
1600         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
1601         * match.pd: ... here.
1602         Add a few cases of A - B -> A + (-B) when B "easily" negates.
1603         Move (x & y) | x -> x and friends before
1604         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
1606 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
1608         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
1609         -mfix-ut699 is not specified.
1610         (leon3_load): Rename into...
1611         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
1612         is specified.
1614 2015-06-30  Marek Polacek  <polacek@redhat.com>
1616         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
1617         * match.pd: ... here.
1619 2015-06-30  Richard Biener  <rguenther@suse.de>
1621         * target-insns.def (canonicalize_funcptr_for_compare): Add.
1622         * fold-const.c (build_range_check): Replace uses of
1623         HAVE_canonicalize_funcptr_for_compare.
1624         (fold_widened_comparison): Likewise.
1625         (fold_sign_changed_comparison): Likewise.
1626         * dojump.c: Include "target.h".
1627         (do_compare_and_jump): Replace uses of
1628         HAVE_canonicalize_funcptr_for_compare and
1629         gen_canonicalize_funcptr_for_compare.
1630         * expr.c (do_store_flag): Likewise.
1632 2015-06-30  Tom de Vries  <tom@codesourcery.com>
1634         PR tree-optimization/66652
1635         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
1636         max_loop_iterations to determine if nit + 1 overflows.
1638 2015-06-30  Richard Biener  <rguenther@suse.de>
1640         * tree-vrp.c (register_edge_assert_for_2): Also register
1641         asserts for dominating conversion results.
1643 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
1645         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
1646         field in struct iv.
1648 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
1650         PR target/66509
1651         * configure.ac: Fix filds and fildq test for 64-bit.
1652         * configure: Regenerated.
1654 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
1656         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
1657         (nvptx_reorg): Here.  Keep the non-subreg pieces.
1659 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
1661         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
1662         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
1664 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
1666         * config/i386/i386.md (*jcc_1): Use %! in asm template.
1667         Set attribute "length_nobnd" instead of "length".
1668         (*jcc_2): Ditto.
1669         (jump): Ditto.
1670         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
1672 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
1674         * config/nios2/nios2.c (nios2_delegitimize_address): Make
1675         assert less restrictive.
1677 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1679         PR fortran/66605
1680         * cgraphunit.c (cgraph_node::finalize_function): Do not call
1681         do_warn_unused_parameter.
1682         * function.c (do_warn_unused_parameter): Move from here.
1683         * function.h (do_warn_unused_parameter): Do not declare.
1685 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
1687         PR target/65697
1688         * gcc.target/arm/armv-sync-comp-swap.c: New.
1689         * gcc.target/arm/armv-sync-op-acquire.c: New.
1690         * gcc.target/arm/armv-sync-op-full.c: New.
1691         * gcc.target/arm/armv-sync-op-release.c: New.
1693 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
1695         PR target/65697
1696         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
1697         initial acquire barrier with final barrier.
1699 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
1701         PR target/65697
1702         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
1703         initial acquire barrier with final barrier.
1705 2015-06-29  Richard Henderson  <rth@redhat.com>
1707         * config/i386/constraints.md (Bf): New constraint.
1708         * config/i386/i386-c.c (ix86_target_macros): Define
1709         __GCC_ASM_FLAG_OUTPUTS__.
1710         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
1711         as flags outputs.
1712         * doc/extend.texi (FlagOutputOperands): Document them.
1714 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
1716         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
1717         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
1718         unspec name.
1719         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
1720         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
1721         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
1722         (aarch64_symbol_context): Ditto.
1723         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
1724         and use new pattern name.
1725         (aarch64_expand_mov_immediate): Ditto.
1726         (aarch64_print_operand): Ditto.
1727         (aarch64_classify_tls_symbol): Ditto.
1729 2015-06-29  Marek Polacek  <polacek@redhat.com>
1730             Marc Glisse  <marc.glisse@inria.fr>
1732         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
1733         * match.pd: ... pattern here.
1735 2015-06-29  Tom de Vries  <tom@codesourcery.com>
1737         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
1738         function structure.
1740 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
1742         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
1743         feature description, split out the native option, add a link to
1744         the feature documentation, rearrange and slightly rewrite text.
1745         (Aarch64 options, -mcpu): Likewise.
1746         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
1747         +rdma implies Adv. SIMD.
1749 2015-06-29  Marek Polacek  <polacek@redhat.com>
1751         PR c/66322
1752         * function.c (stack_protect_epilogue): Remove a cast to int.
1753         * doc/invoke.texi: Update -Wswitch-bool description.
1755 2015-06-29  Richard Biener  <rguenther@suse.de>
1757         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
1758         * fold-const.c (fold_binary_loc): Move &A - &B simplification
1759         via ptr_difference_const ...
1760         * match.pd: ... here.
1761         When matching (X ^ Y) == Y also match with swapped operands.
1763 2015-06-29  Richard Biener  <rguenther@suse.de>
1765         * lto-streamer.h (LTO_major_version): Bump to 5.
1767 2015-06-29  Richard Biener  <rguenther@suse.de>
1769         PR tree-optimization/66677
1770         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
1771         STMT_VINFO_VEC_STMT clobbering less strict.
1773 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
1775         PR middle-end/64130
1776         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
1777         division, compute max and min when value ranges for dividend and
1778         divisor are available.
1780 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
1781             Sandra Loosemore <sandra@codesourcery.com>
1783         * regrename.h (regrename_do_replace): Change to return bool.
1784         * regrename.c (rename_chains): Check return value of
1785         regname_do_replace.
1786         (regrename_do_replace): Re-validate the modified insns and
1787         return bool status.
1788         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
1789         Update to match rename_chains changes.
1790         * config/c6x/c6x.c (try_rename_operands): Assert that
1791         regrename_do_replace returns true.
1793 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
1795         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
1796         operand 2 here.  Use copy_addr_to_reg to copy non-index
1797         register operand 2 to a temporary.
1798         (<mode>_stx): Ditto for operand 1.
1799         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
1800         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
1801         (ix86_store_bounds): Ditto.
1803 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
1805         * print-tree.c (print_node) [TREE_VEC]: Print its length.
1807 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
1809         * gimple.c (gimple_call_set_fndecl): Remove.
1810         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
1811         build1_loc directly instead of build_fold_addr_expr_loc.
1813 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
1815         * hash-map.h (hash_map::traverse): Use the definition of the
1816         Key typedef rather than the typedef itself.
1818 2015-06-26  Martin Jambor  <mjambor@suse.cz>
1820         PR debug/66301
1821         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
1822         NULL instead of calling dump_enabled_p.
1824 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
1826         * config/aarch64/aarch64.opt: (override): New.
1827         * doc/invoke.texi (override): Document.
1828         * config/aarch64/aarch64.c (aarch64_flag_desc): New
1829         (aarch64_fusible_pairs): Likewise.
1830         (aarch64_tuning_flags): Likewise.
1831         (aarch64_tuning_override_function): Likewise.
1832         (aarch64_tuning_override_functions): Likewise.
1833         (aarch64_parse_one_option_token): Likewise.
1834         (aarch64_parse_boolean_options): Likewise.
1835         (aarch64_parse_fuse_string): Likewise.
1836         (aarch64_parse_tune_string): Likewise.
1837         (aarch64_parse_one_override_token): Likewise.
1838         (aarch64_parse_override_string): Likewise.
1839         (aarch64_override_options): Parse the -override string if it
1840         is present.
1842 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
1844         * config/aarch64/aarch64-protos.h (tune_params): Remove
1845         const from members.
1846         (aarch64_tune_params): Remove const, change to no longer be
1847         a pointer.
1848         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
1849         change to no longer be a pointer, initialize to generic_tunings.
1850         (aarch64_min_divisions_for_recip_mul): Change dereference of
1851         aarch64_tune_params to member access.
1852         (aarch64_reassociation_width): Likewise.
1853         (aarch64_rtx_mult_cost): Likewise.
1854         (aarch64_address_cost): Likewise.
1855         (aarch64_branch_cost): Likewise.
1856         (aarch64_rtx_costs): Likewise.
1857         (aarch64_register_move_cost): Likewise.
1858         (aarch64_memory_move_cost): Likewise.
1859         (aarch64_sched_issue_rate): Likewise.
1860         (aarch64_builtin_vectorization_cost): Likewise.
1861         (aarch64_override_options): Take a copy of the selected tuning
1862         struct in to aarch64_tune_params, rather than just setting
1863         a pointer, change dereferences of aarch64_tune_params to member
1864         accesses.
1865         (aarch64_override_options_after_change): Change dereferences of
1866         aarch64_tune_params to member access.
1867         (aarch64_macro_fusion_p): Likewise.
1868         (aarch_macro_fusion_pair_p): Likewise.
1869         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
1871 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
1873         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
1874         (aarch64_tune_flags): Likewise.
1875         (AARCH64_TUNE_FMA_STEERING): Likewise.
1876         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
1877         to AARCH64_FL_USE_FMA_STEERING_PASS.
1878         (cortex-a57.cortex-a53): Likewise.
1879         (cortex-a72): Use cortexa72_tunings.
1880         (cortex-a72.cortex-a53): Likewise.
1881         (exynos-m1): Likewise.
1882         * config/aarch64/aarch64-protos.h (tune_params): Add
1883         a field: extra_tuning_flags.
1884         * config/aarch64/aarch64-tuning-flags.def: New.
1885         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
1886         (aarch64_extra_tuning_flags): Likewise.
1887         (aarch64_tune_params): Declare here.
1888         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
1889         (cortexa53_tunings): Likewise.
1890         (cortexa57_tunings): Likewise.
1891         (thunderx_tunings): Likewise.
1892         (xgene1_tunings): Likewise.
1893         (cortexa72_tunings): New.
1894         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
1895          (gate): Check against aarch64_tune_params.
1896         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
1897         aarch64-protos.h.
1899 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
1901         * config/aarch64/aarch64-fusion-pairs.def: New.
1902         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
1903         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
1904         aarch64_fusion_pairs.
1905         (AARCH64_FUSE_MOV_MOVK): Likewise.
1906         (AARCH64_FUSE_ADRP_ADD): Likewise.
1907         (AARCH64_FUSE_MOVK_MOVK): Likewise.
1908         (AARCH64_FUSE_ADRP_LDR): Likewise.
1909         (AARCH64_FUSE_CMP_BRANCH): Likewise.
1911 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
1913         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
1914         SYMBOL_SMALL_GOT_28K.
1915         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
1916         relocation modifiers.
1917         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
1918         (ldr_got_small_28k_<mode>): New.
1919         (ldr_got_small_28k_sidi): New.
1920         * config/aarch64/iterators.md (got_modifier): New mode iterator.
1921         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
1922         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
1923         SYMBOL_SMALL_GOT_28K.
1924         (aarch64_rtx_costs): Add costs for new instruction sequences.
1925         (initialize_aarch64_code_model): Initialize new model.
1926         (aarch64_classify_symbol): Recognize new model and new symbol classification.
1927         (aarch64_asm_preferred_eh_data_format): Support new model.
1928         (aarch64_load_symref_appropriately): Generate new instruction
1929         sequences for -fpic.
1930         (TARGET_USE_PSEUDO_PIC_REG): New definition.
1931         (aarch64_use_pseudo_pic_reg): New function.
1933 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
1935         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
1936         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
1937         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
1938         (aarch64_expand_mov_immediate): Ditto.
1939         (aarch64_print_operand): Ditto.
1940         (aarch64_classify_symbol): Ditto.
1942 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
1944         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
1946 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
1948         PR bootstrap/66638
1949         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
1950         assertion failed.  Remove assertion itself.
1952 2015-06-26  Richard Biener  <rguenther@suse.de>
1954         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
1955         and -A CMP CST -> A CMP -CST which is redundant with a pattern
1956         in match.pd.
1957         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
1958         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
1959         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
1960         * match.pd: ... patterns here.
1962 2015-06-26  Marek Polacek  <polacek@redhat.com>
1964         * match.pd ((x | y) & ~(x & y) -> x ^ y,
1965         (x | y) & (~x ^ y) -> x & y): New patterns.
1967 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
1969         * rtl.h (emit): Add an optional boolean parameter to control
1970         whether barriers are emitted.
1971         * emit-rtl.c (emit): Likewise.
1972         * gensupport.c (get_emit_function): Return null rather than "emit".
1973         * genemit.c (gen_emit_seq): Handle the null return value.
1974         Don't emit barriers after the final instruction in the sequence.
1975         * gentarget-def.c (main): Don't emit barriers after the instruction.
1977 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1979         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
1980         TARGET_UNIFIED_ASM.
1982 2015-06-26  Richard Biener  <rguenther@suse.de>
1984         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
1986 2015-06-26  Richard Biener  <rguenther@suse.de>
1988         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
1989         irrespective on whether the inner operation has a single use
1990         of both off are constant.
1992 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
1993             Segher Boessenkool  <segher@kernel.crashing.org>
1995         PR target/66412
1996         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
1997         before doing PUT_MODE or PUT_CODE on operands to avoid
1998         in-place RTX modification.
2000 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
2002         * gentarget-def.c (def_target_insn): Cast return of strtol to
2003         unsigned int.
2005 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
2007         * gimple.h (gimple_call_set_fn): Move inline function.
2008         * gimple.c (gimple_call_set_fn): Relocate here.
2010 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
2012         PR target/65979
2013         PR target/66611
2014         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
2015         the replacement insn will work.
2017 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
2019         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
2020         by default.
2022 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
2024         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
2025         * cgraph.h: Include ipa-ref.h and plugin-api.h.
2026         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
2027         (symtab_node::address_can_be_compared_p): Move function.
2028         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
2029         definition here.
2030         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
2031         * auto-profile.c: Likewise.
2032         * bb-reorder.c: Likewise.
2033         * builtins.c: Likewise.
2034         * calls.c: Likewise.
2035         * cfgexpand.c: Likewise.
2036         * cgraphbuild.c: Likewise.
2037         * cgraphclones.c: Likewise.
2038         * cgraphunit.c: Likewise.
2039         * combine.c: Likewise.
2040         * coverage.c: Likewise.
2041         * data-streamer-in.c: Likewise.
2042         * data-streamer-out.c: Likewise.
2043         * data-streamer.c: Likewise.
2044         * dbxout.c: Likewise.
2045         * dwarf2out.c: Likewise.
2046         * except.c: Likewise.
2047         * expr.c: Likewise.
2048         * final.c: Likewise.
2049         * fold-const.c: Likewise.
2050         * ggc-page.c: Likewise.
2051         * gimple-fold.c: Likewise.
2052         * gimple-iterator.c: Likewise.
2053         * gimple-pretty-print.c: Likewise.
2054         * gimple-streamer-in.c: Likewise.
2055         * gimple-streamer-out.c: Likewise.
2056         * gimple.c: Likewise.
2057         * gimplify.c: Likewise.
2058         * ipa-chkp.c: Likewise.
2059         * ipa-comdats.c: Likewise.
2060         * ipa-cp.c: Likewise.
2061         * ipa-devirt.c: Likewise.
2062         * ipa-icf-gimple.c: Likewise.
2063         * ipa-icf.c: Likewise.
2064         * ipa-inline-analysis.c: Likewise.
2065         * ipa-inline-transform.c: Likewise.
2066         * ipa-inline.c: Likewise.
2067         * ipa-polymorphic-call.c: Likewise.
2068         * ipa-profile.c: Likewise.
2069         * ipa-prop.c: Likewise.
2070         * ipa-pure-const.c: Likewise.
2071         * ipa-ref.c: Likewise.
2072         * ipa-reference.c: Likewise.
2073         * ipa-split.c: Likewise.
2074         * ipa-utils.c: Likewise.
2075         * ipa-visibility.c: Likewise.
2076         * ipa.c: Likewise.
2077         * langhooks.c: Likewise.
2078         * lto-cgraph.c: Likewise.
2079         * lto-compress.c: Likewise.
2080         * lto-opts.c: Likewise.
2081         * lto-section-in.c: Likewise.
2082         * lto-section-out.c: Likewise.
2083         * lto-streamer-in.c: Likewise.
2084         * lto-streamer-out.c: Likewise.
2085         * lto-streamer.c: Likewise.
2086         * omp-low.c: Likewise.
2087         * opts-global.c: Likewise.
2088         * passes.c: Likewise.
2089         * predict.c: Likewise.
2090         * print-tree.c: Likewise.
2091         * profile.c: Likewise.
2092         * ree.c: Likewise.
2093         * sanopt.c: Likewise.
2094         * stor-layout.c: Likewise.
2095         * symtab.c: Likewise.
2096         * toplev.c: Likewise.
2097         * trans-mem.c: Likewise.
2098         * tree-cfg.c: Likewise.
2099         * tree-chkp.c: Likewise.
2100         * tree-eh.c: Likewise.
2101         * tree-emutls.c: Likewise.
2102         * tree-inline.c: Likewise.
2103         * tree-nested.c: Likewise.
2104         * tree-parloops.c: Likewise.
2105         * tree-pretty-print.c: Likewise.
2106         * tree-profile.c: Likewise.
2107         * tree-sra.c: Likewise.
2108         * tree-ssa-alias.c: Likewise.
2109         * tree-ssa-live.c: Likewise.
2110         * tree-ssa-loop-ivcanon.c: Likewise.
2111         * tree-ssa-loop-ivopts.c: Likewise.
2112         * tree-ssa-pre.c: Likewise.
2113         * tree-ssa-sccvn.c: Likewise.
2114         * tree-ssa-strlen.c: Likewise.
2115         * tree-ssa-structalias.c: Likewise.
2116         * tree-streamer-in.c: Likewise.
2117         * tree-streamer-out.c: Likewise.
2118         * tree-streamer.c: Likewise.
2119         * tree-switch-conversion.c: Likewise.
2120         * tree-tailcall.c: Likewise.
2121         * tree-vect-data-refs.c: Likewise.
2122         * tree-vect-stmts.c: Likewise.
2123         * tree-vectorizer.c: Likewise.
2124         * tree.c: Likewise.
2125         * tsan.c: Likewise.
2126         * ubsan.c: Likewise.
2127         * value-prof.c: Likewise.
2128         * varasm.c: Likewise.
2129         * varpool.c: Likewise.
2130         * config/arm/arm.c: Likewise.
2131         * config/bfin/bfin.c: Likewise.
2132         * config/c6x/c6x.c: Likewise.
2133         * config/cris/cris.c: Likewise.
2134         * config/darwin-c.c: Likewise.
2135         * config/darwin.c: Likewise.
2136         * config/i386/i386.c: Likewise.
2137         * config/i386/winnt.c: Likewise.
2138         * config/microblaze/microblaze.c: Likewise.
2139         * config/mips/mips.c: Likewise.
2140         * config/rs6000/rs6000.c: Likewise.
2141         * config/rx/rx.c: Likewise.
2142         * config/s390/s390.c: Likewise.
2143         * config/tilegx/mul-tables.c: Likewise.
2145 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2147         * config/aarch64/aarch64.c, config/alpha/alpha.c,
2148         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
2149         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
2150         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
2151         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
2152         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
2153         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
2154         config/microblaze/microblaze.c, config/mips/mips.c,
2155         config/mmix/mmix.c, config/mn10300/mn10300.c,
2156         config/moxie/moxie.c, config/msp430/msp430.c,
2157         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
2158         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
2159         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
2160         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
2161         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2162         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
2163         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
2164         target-def.h include.
2165         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
2167 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2169         * Makefile.in (TARGET_DEF): Add target-insns.def.
2170         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
2171         (build/gentarget-def.o): New rule.
2172         (genprogrtl): Add target-def.
2173         * target-insns.def, gentarget-def.c: New files.
2174         * target.def: Add targetm.have_* and targetm.gen_* hooks,
2175         based on the contents of target-insns.def.
2176         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
2177         (HAVE_return, gen_return): Delete.
2178         * target-def.h: Include insn-target-def.h.
2179         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
2180         instead of direct calls.  Rely on them to do the appropriate assertions.
2181         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
2182         (convert_jumps_to_returns): Use targetm interface instead of
2183         direct calls.
2184         (thread_prologue_and_epilogue_insns): Likewise.
2185         * reorg.c (find_end_label, dbr_schedule): Likewise.
2186         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
2187         * shrink-wrap.c (convert_to_simple_return): Likewise.
2188         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
2190 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2192         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
2193         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2194         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
2195         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
2196         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
2197         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
2198         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
2199         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
2200         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
2201         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
2202         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
2203         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
2204         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
2205         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2206         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
2207         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
2208         includes to end.
2210 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2212         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
2213         (unbounded_int_hashmap_traits::key_type): Likewise.
2214         * hash-map.h (hash_map): Get the key type from the traits.
2215         * hash-traits.h (default_hash_traits): By default, inherit from the
2216         template parameter.
2217         * alias.c (alias_set_traits): Delete.
2218         (alias_set_entry_d::children): Use alias_set_hash as the first
2219         template parameter.
2220         (record_alias_subset): Update accordingly.
2221         * except.c (tree_hash_traits): Delete.
2222         (type_to_runtime_map): Use tree_hash as the first template parameter.
2223         (init_eh): Update accordingly.
2224         * genmatch.c (capture_id_map_hasher): Delete.
2225         (cid_map_t): Use nofree_string_hash as first template parameter.
2226         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
2227         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
2228         Use symbol_compare_hash as the first template parameter in
2229         subdivide_hash_map.
2230         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
2231         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
2232         template parameter.
2233         * passes.c (pass_registry_hasher): Delete.
2234         (name_to_pass_map): Use nofree_string_hash as the first template
2235         parameter.
2236         (register_pass_name): Update accordingly.
2237         * sanopt.c (sanopt_tree_map_traits): Delete.
2238         (sanopt_tree_triplet_map_traits): Delete.
2239         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
2240         template parameter.
2241         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
2242         the first template parameter.
2243         * sese.c (rename_map_hasher): Delete.
2244         (rename_map_type): Use tree_ssa_name_hash as the first template
2245         parameter.
2246         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
2247         (function_summary::m_map): Use map_hash as the first template
2248         parameter.
2249         (function_summary::release): Update accordingly.
2250         * tree-if-conv.c (phi_args_hash_traits): Delete.
2251         (predicate_scalar_phi): Use tree_operand_hash as the first template
2252         parameter to phi_arg_map.
2253         * tree-inline.h (dependence_hasher): Delete.
2254         (copy_body_data::dependence_map): Use dependence_hash as the first
2255         template parameter.
2256         * tree-inline.c (remap_dependence_clique): Update accordingly.
2257         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
2258         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
2259         parameter.
2260         (addr_stridxptr): Update accordingly.
2261         * value-prof.c (profile_id_traits): Delete.
2262         (cgraph_node_map): Use profile_id_hash as the first template
2263         parameter.
2264         (init_node_map): Update accordingly.
2265         * config/alpha/alpha.c (string_traits): Delete.
2266         (machine_function::links): Use nofree_string_hash as the first
2267         template parameter.
2268         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
2269         * config/m32c/m32c.c (pragma_traits): Delete.
2270         (pragma_htab): Use nofree_string_hash as the first template parameter.
2271         (m32c_note_pragma_address): Update accordingly.
2272         * config/mep/mep.c (pragma_traits): Delete.
2273         (pragma_htab): Use nofree_string_hash as the first template parameter.
2274         (mep_note_pragma_flag): Update accordingly.
2275         * config/mips/mips.c (mips16_flip_traits): Delete.
2276         (mflip_mips16_htab): Use nofree_string_hash as the first template
2277         parameter.
2278         (mflip_mips16_use_mips16_p): Update accordingly.
2279         (local_alias_traits): Delete.
2280         (mips16_local_aliases): Use nofree_string_hash as the first template
2281         parameter.
2282         (mips16_local_alias): Update accordingly.
2284 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2286         * hash-map-traits.h (default_hashmap_traits): Delete.
2288 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2290         * hash-map-traits.h (unbounded_hashmap_traits): New class.
2291         (unbounded_int_hashmap_traits): Likewise.
2292         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
2294 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2296         * ipa-icf.h (symbol_compare_hash): New class.
2297         (symbol_compare_hashmap_traits): Use it.
2298         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
2299         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
2300         (mem_alloc_description::reverse_mem_map_t): Remove redundant
2301         default_hashmap_traits.
2302         * sanopt.c (sanopt_tree_triplet_hash): New class.
2303         (sanopt_tree_triplet_map_traits): Use it.
2305 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2307         * gengtype-parse.c (require_template_declaration): Allow '+' in
2308         template parameters.  Consolidate cases.
2309         * hash-traits.h (int_hash): New class.
2310         * alias.c (alias_set_hash): New structure.
2311         (alias_set_traits): Use it.
2312         * symbol-summary.h (function_summary::map_hash): New class.
2313         (function_summary::summary_hashmap_traits): Use it.
2314         * tree-inline.h (dependence_hash): New class.
2315         (dependence_hasher): Use it.
2316         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
2317         * value-prof.c (profile_id_hash): New class.
2318         (profile_id_traits): Use it.
2320 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2322         * config/mips/mips.c (mips16_flip_traits): Use it.
2323         (local_alias_traits, mips16_local_aliases): Convert from a map of
2324         rtxes to a map of symbol names.
2325         (mips16_local_alias): Update accordingly.
2327 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2329         * hash-traits.h (string_hash, nofree_string_hash): New classes.
2330         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
2331         * passes.c (pass_registry_hasher): Likewise.
2332         * config/alpha/alpha.c (string_traits): Likewise.
2333         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
2334         * config/m32c/m32c.c (pragma_traits): Likewise.
2335         * config/mep/mep.c (pragma_traits): Likewise.
2337 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2339         * tree-hash-traits.h (tree_hash): New class.
2340         * except.c: Include tree-hash-traits.h.
2341         (tree_hash_traits): Use tree_hash.
2343 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2345         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
2346         * sese.c: Include tree-hash-traits.h.
2347         (rename_map_hasher): Use tree_ssa_name_hasher.
2349 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2351         * tree-hash-traits.h (tree_decl_hash): New class.
2352         * tree-ssa-strlen.c: Include tree-hash-traits.h.
2353         (stridxlist_hash_traits): Use tree_decl_hash.
2355 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2357         * tree-hash-traits.h: New file.
2358         (tree_operand_hash): New class.
2359         * sanopt.c: Include tree-hash-traits.h.
2360         (sanopt_tree_map_traits): Use tree_operand_hash.
2361         * tree-if-conv.c: Include tree-hash-traits.h.
2362         (phi_args_hash_traits): Use tree_operand_hash.
2363         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
2364         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
2366 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2368         * hash-map-traits.h: Include hash-traits.h.
2369         (simple_hashmap_traits): New class.
2370         * mem-stats.h (hash_map): Change the default traits to
2371         simple_hashmap_traits<default_hash_traits<Key> >.
2373 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2375         * hash-table.h: Update comments.
2377 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2379         * hash-traits.h (default_hash_traits): New structure.
2380         * hash-set.h (default_hashset_traits): Delete.
2381         (hash_set): Use default_hash_traits<Key> instead of
2382         default_hashset_traits.  Delete hash_entry type and use Key directly.
2383         * ipa-devirt.c (pair_traits): Delete.
2384         (default_hash_traits <type_pair>): Override.
2385         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
2386         (odr_types_equivalent_p, add_type_duplicate): Likewise.
2388 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2390         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
2392 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2394         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
2395         (has_is_empty, is_empty_helper): Delete.
2396         (has_mark_deleted, mark_deleted_helper): Delete.
2397         (has_mark_empty, mark_empty_helper): Delete.
2398         (hash_table::is_deleted): Call the Descriptor unconditionally.
2399         (hash_table::is_empty): Likewise.
2400         (hash_table::mark_deleted): Likewise.
2401         (hash_table::mark_empty): Likewise.
2403 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2405         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
2406         redundant typedefs and members.
2407         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
2408         redundant typedefs.
2409         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
2410         * ipa-devirt.c (odr_name_hasher): Likewise.
2411         (polymorphic_call_target_hasher): Likewise.
2412         * ira-costs.c (cost_classes_hasher): Likewise.
2413         * statistics.c (stats_counter_hasher): Likewise.
2414         * trans-mem.c (log_entry_hasher): Likewise.
2415         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
2416         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
2417         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
2418         * var-tracking.c (variable_hasher): Likewise.
2419         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
2420         Remove redundant typedefs and members.
2422 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2424         * hash-traits.h (ggc_cache_hasher): Rename to...
2425         (ggc_cache_remove): ...this and remove typedefs.
2426         (ggc_cache_ptr_hash): New class.
2427         * hash-table.h: Update commentary.
2428         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
2429         rather than ggc_cache_hasher.
2430         (const_wide_int_hasher, reg_attr_hasher): Likewise.
2431         (const_double_hasher, const_fixed_hasher): Likewise.
2432         * function.c (insn_cache_hasher): Likewise.
2433         * trans-mem.c (tm_wrapper_hasher): Likewise.
2434         * tree.h (tree_decl_map_cache_hasher): Likewise.
2435         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
2436         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
2437         * ubsan.c (tree_type_map_cache_hasher): Likewise.
2438         * varasm.c (tm_clone_hasher): Likewise.
2439         * config/i386/i386.c (dllimport_hasher): Likewise.
2440         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
2441         (tree_hasher): Likewise.
2443 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2445         * hash-traits.h (ggc_hasher): Rename to...
2446         (ggc_remover): ...this and remove typedefs.
2447         (ggc_cache_hasher): Update accordingly.  Add typedefs.
2448         (ggc_ptr_hash): New class.
2449         * hash-table.h: Update comment.
2450         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
2451         ggc_hasher.
2452         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
2453         (tree_descriptor_hasher): Likewise.
2454         * cgraph.c (function_version_hasher): Likewise.
2455         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
2456         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
2457         (dw_loc_list_hasher, addr_hasher): Likewise.
2458         * function.h (used_type_hasher): Likewise.
2459         * function.c (temp_address_hasher): Likewise.
2460         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
2461         * libfuncs.h (libfunc_hasher): Likewise.
2462         * lto-streamer.h (decl_state_hasher): Likewise.
2463         * optabs.c (libfunc_decl_hasher): Likewise.
2464         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
2465         * varasm.c (section_hasher, object_block_hasher): Likewise.
2466         (const_rtx_desc_hasher): Likewise.
2467         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
2468         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
2470 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2472         * hash-traits.h (free_ptr_hash): New class.
2473         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
2474         rather than typed_free_remove.  Remove redudant typedefs.
2475         (external_ref_hasher): Likewise.
2476         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
2477         (ehspec_hasher): Likewise.
2478         * ggc-common.c (saving_hasher): Likewise.
2479         * gimplify.c (gimplify_hasher): Likewise.
2480         * haifa-sched.c (delay_i2_hasher): Likewise.
2481         * loop-invariant.c (invariant_expr_hasher): Likewise.
2482         * loop-iv.c (biv_entry_hasher): Likewise.
2483         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
2484         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
2485         * tree-cfg.c (locus_discrim_hasher): Likewise.
2486         * tree-eh.c (finally_tree_hasher): Likewise.
2487         * tree-into-ssa.c (var_info_hasher): Likewise.
2488         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
2489         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
2490         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
2491         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
2492         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
2493         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
2494         (shared_bitmap_hasher): Likewise.
2495         * tree-ssa-threadupdate.c (redirection_data): Likewise.
2496         * tree-vectorizer.h (peel_info_hasher): Likewise.
2497         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
2498         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
2500 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2502         * hash-table.h: Update comments.
2503         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
2504         (nofree_ptr_hash): New class.
2505         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
2506         than typed_noop_remove.  Remove redudant typedefs.
2507         * attribs.c (attribute_hasher): Likewise.
2508         * cfg.c (bb_copy_hasher): Likewise.
2509         * cselib.c (cselib_hasher): Likewise.
2510         * dse.c (invariant_group_base_hasher): Likewise.
2511         * dwarf2cfi.c (trace_info_hasher): Likewise.
2512         * dwarf2out.c (macinfo_entry_hasher): Likewise.
2513         (comdat_type_hasher, loc_list_hasher): Likewise.
2514         * gcse.c (pre_ldst_expr_hasher): Likewise.
2515         * genmatch.c (id_base): Likewise.
2516         * genrecog.c (test_pattern_hasher): Likewise.
2517         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
2518         * haifa-sched.c (delay_i1_hasher): Likewise.
2519         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
2520         * ipa-icf.h (congruence_class_group_hash): Likewise.
2521         * ipa-profile.c (histogram_hash): Likewise.
2522         * ira-color.c (allocno_hard_regs_hasher): Likewise.
2523         * lto-streamer.h (string_slot_hasher): Likewise.
2524         * lto-streamer.c (tree_entry_hasher): Likewise.
2525         * plugin.c (event_hasher): Likewise.
2526         * postreload-gcse.c (expr_hasher): Likewise.
2527         * store-motion.c (st_expr_hasher): Likewise.
2528         * tree-sra.c (uid_decl_hasher): Likewise.
2529         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
2530         (ssa_name_var_hash): Likewise.
2531         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
2532         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
2533         * tree-ssa-pre.c (pre_expr_d): Likewise.
2534         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
2535         * vtable-verify.h (registration_hasher): Likewise.
2536         * vtable-verify.c (vtbl_map_hasher): Likewise.
2537         * config/arm/arm.c (libcall_hasher): Likewise.
2538         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
2539         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
2540         * config/sol2.c (comdat_entry_hasher): Likewise.
2541         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
2542         (print_fold_checksum, fold_checksum_tree): Likewise.
2543         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
2544         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
2545         (fold_build_call_array_loc): Likewise.
2546         * tree-ssa-ccp.c (gimple_htab): Likewise.
2547         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
2548         rather than pointer_type.
2550 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2552         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
2553         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
2555 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2557         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
2558         (ggc_hasher::ggc_mx): Likewise.
2559         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
2560         that duplicate ggc_hasher ones.
2562 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2564         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
2565         (gt_cleare_cache): Check here for deleted and empty entries.
2566         Replace handle_cache_entry with a call to keep_cache_entry.
2567         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
2568         (ggc_cache_hasher::keep_cache_entry): New function.
2569         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
2570         (tm_wrapper_hasher::keep_cache_entry): New function.
2571         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
2572         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
2573         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
2574         (type_cache_hasher::keep_cache_entry): New function.
2575         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
2576         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
2577         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
2578         (tree_type_map_cache_hasher::keep_cache_entry): New function.
2579         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
2580         (tm_clone_hasher::keep_cache_entry): New function.
2581         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
2582         (dllimport_hasher::keep_cache_entry): New function.
2584 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2586         * hash-table.h: Include hash-traits.h.
2587         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
2588         (ggc_cache_hasher): Move to...
2589         * hash-traits.h: ...this new file.
2591 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
2593         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
2594         struct cl_optimization.
2595         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
2596         * tree.c (make_node_stat): Allocate cl_optimization struct.
2597         (copy_node_stat): Allocate and copy cl_optimization struct.
2599 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
2601         * function.h (struct incoming_args): Move struct.
2602         (pass_by_reference, reference_callee_copied): Remove prototypes.
2603         * emit-rtl.h (struct incoming_args): Relocate struct here.
2604         * calls.h (pass_by_reference, reference_callee_copied): Relocate
2605         prototypes here.
2606         * function.c (pass_by_reference, reference_callee_copied): Move.
2607         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
2608         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
2609         * ipa-chkp.c: Include calls.h.
2611 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
2613         * alias.h (alias_set_type): Move typedef.
2614         * coretypes.h (alias_set_type): Relocate typedef here.
2615         * rtl.h: Don't include alias.h.
2617 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
2619         * cgraph.h (cgraph_rtl_info): Move to rtl.h
2620         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
2621         and instance.
2622         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
2623         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
2624         doesn't exist.
2625         * calls.c: Include hard-reg-set.h before rtl.h.
2626         * ira.c: Likewise.
2628 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
2629             Vladimir Makarov  <vmakarov@redhat.com>
2631         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
2632         Add assert.
2634 2015-06-25  Richard Biener  <rguenther@suse.de>
2636         * fold-const.c (fold_binary_loc): Move simplification of
2637         (X <<>> C1) & C2 ...
2638         * match.pd: ... here.
2640 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
2642         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
2644 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
2646         * match.pd: Add patterns for vec_conds between 1 and 0.
2648 2015-06-25  Richard Biener  <rguenther@suse.de>
2650         * tree-vect-stmts.c (vectorizable_conversion): Do not set
2651         STMT_VINFO_VEC_STMT for SLP.
2652         (vectorizable_store): Likewise.
2653         (vectorizable_load): Likewise.
2654         (vect_transform_stmt): Catch SLP vectorization clobbering
2655         STMT_VINFO_VEC_STMT.
2657 2015-06-25  Richard Biener  <rguenther@suse.de>
2659         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
2660         dumping.
2661         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
2662         cleanup resulting dead code and parameters.
2663         (vect_transform_slp_perm_load): Adjust.
2665 2015-06-25  Nick Clifton  <nickc@redhat.com>
2667         * config/bfin/bfin.c (bfin_expand_prologue): Set
2668         current_function_static_stack_size if flag_stack_usage_info is set.
2669         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
2670         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
2671         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2672         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
2674 2015-06-25  Tom de Vries  <tom@codesourcery.com>
2676         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
2677         comment that the generated IV is unsigned.
2679 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2681         PR target/29693
2682         * config/arm/arm.c (arm_dbx_register_number): Return
2683         DWARF_FRAME_REGISTERS by default.
2685 2015-06-25  Tom de Vries  <tom@codesourcery.com>
2687         * dominance.c (calculate_dominance_info): Fix verify_dominators call
2688         argument.  Call verify_dominator when reusing dominator info.
2690 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
2692         PR target/66563
2693         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
2694         an additional element of the unspec vector.  Modify indices
2695         of operands.
2696         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
2697         * config/sh/sh.c (prepare_move_operands): Pass incremented
2698         const_int to gen_GOTaddr2picreg.
2699         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
2701 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
2703         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
2704         Condition on TARGET_FLOAT.
2706 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
2708         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
2709         and (no)crypto.
2711 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
2713         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
2715         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
2716         aarch64_err_no_fpadvsimd.
2718         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
2719         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
2720         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
2721         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
2722         Turn error into assert, test TARGET_FLOAT.
2723         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
2724         TARGET_FLOAT.
2726 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
2728         PR debug/66482
2729         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
2731 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
2733         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
2735 2015-06-24 Renlin Li <renlin.li@arm.com>
2737         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
2738         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
2740 2015-06-24  Richard Biener  <rguenther@suse.de>
2742         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
2743         (main): Likewise.
2744         (lower_opt_convert): Support lowering of conditional view_convert.
2745         (parser::parse_operation): Likewise.
2746         (parser::parse_for): Likewise.
2748 2015-06-24  Renlin Li  <renlin.li@arm.com>
2750         * varasm.c (emit_local): Use unsigned int for align variable.
2752 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2754         PR target/63408
2755         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
2756         for negative numbers.
2758 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2760         PR rtl-optimization/66306
2761         * reload.c (find_reloads): Swap the match_dup info for
2762         commutative operands.
2764 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2766         * config/s390/vx-builtins.md
2767         ("vec_scatter_element<mode>_<non_vec_int>")
2768         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
2769         attribute with bhfgq.
2771 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2773         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
2775 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2777         * config/s390/s390-builtin-types.def: Add flag to indicate the
2778         options under which the function type is needed.
2779         * config/s390/s390-builtins.def: Add flag to indicate the options
2780         under which the builtin is enabled.
2781         * config/s390/s390-builtins.h: Add flags parameter to macro
2782         definitions.
2783         (bflags_for_builtin): New function.
2784         (flags_for_builtin): Renamed to ...
2785         (opflags_for_builtin): ... this.
2786         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
2787         flags_for_builtin to bflags_for_builtin and
2788         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
2789         * config/s390/s390.c: Add initialization of bflags_builtin and
2790         opflags_builtin arrays.
2791         Remove code for flags_builtin.
2792         (s390_init_builtins): Only create builtin function types if one of
2793         their flags is active.
2794         Only create builtins if all of their flags are active.
2795         (s390_expand_builtin): Rename flags_for_builtin to
2796         opflags_for_builtin.
2798 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2800         * config/s390/vecintrin.h: Remove internal builtins.
2802 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2804         * config/s390/s390.c (s390_secondary_reload): Fix check for
2805         GENERAL_REGS register class.
2807 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2809         * config/s390/s390.c (s390_support_vector_misalignment): Call
2810         default implementation for !TARGET_VX.
2812 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2814         * config/s390/s390.c (s390_legitimate_constant_p): Add
2815         TARGET_VX check.
2817 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2819         * config/s390/s390.c (s390_vector_abi): New variable definition.
2820         (s390_check_type_for_vector_abi): New function.
2821         (TARGET_ASM_FILE_END): New macro definition.
2822         (s390_asm_file_end): New function.
2823         (s390_function_arg): Call s390_check_type_for_vector_abi.
2824         (s390_gimplify_va_arg): Likewise.
2825         * configure: Regenerate.
2826         * configure.ac: Check for .gnu_attribute Binutils feature.
2828 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
2830         PR target/65803
2831         * config/bfin/bfin.c (hwloop_optimize): Initialize
2832         JUMP_LABEL for newly created jump.
2834 2015-06-23  Tristan Gingold  <gingold@adacore.com>
2836         * collect-utils.c (collect_wait): Unlink the response file here
2837         instead of...
2838         (do_wait): ...here.
2839         (utils_cleanup): ...and here.
2841 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
2843         * df-scan.c: Don't include target-def.h.
2844         * targhooks.c: Likewise.
2845         * config/arm/arm-c.c: Likewise.
2846         * config/i386/i386-c.c: Likewise.
2847         * config/nds32/nds32-cost.c: Likewise.
2848         * config/nds32/nds32-fp-as-gp.c: Likewise.
2849         * config/nds32/nds32-intrinsic.c: Likewise.
2850         * config/nds32/nds32-isr.c: Likewise.
2851         * config/nds32/nds32-md-auxiliary.c: Likewise.
2852         * config/nds32/nds32-memory-manipulation.c: Likewise.
2853         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2854         * config/nds32/nds32-predicates.c: Likewise.
2856 2015-06-23  Richard Biener  <rguenther@suse.de>
2858         PR tree-optimization/66636
2859         * tree-vect-stmts.c (vectorizable_store): Properly compute the
2860         def type for further defs for strided stores.
2862 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
2864         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
2865         conditional selects.
2866         (setcc_int<mode>, setcc_float<mode>): Reformat.
2868 2015-06-23  Marek Polacek  <polacek@redhat.com>
2870         * match.pd ((x + y) - (x | y) -> x & y,
2871         (x + y) - (x & y) -> x | y): New patterns.
2873 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
2875         PR 65711
2876         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
2877         '-dynamic-linker' within %{!shared: ...}.
2879 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
2881         PR target/66560
2882         * config/i386/predicates.md (addsub_vm_operator): New predicate.
2883         (addsub_vs_operator): Ditto.
2884         (addsub_vs_parallel): Ditto.
2885         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
2886         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
2887         Put minus RTX before plus and adjust vec_merge selector.
2888         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
2889         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
2890         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
2891         (addsub vec_merge splitters): New combiner splitters.
2892         (addsub vec_select/vec_concat splitters): Ditto.
2894 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
2896         PR tree-optimization/66449
2897         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
2898         POINTER_PLUS_EXPR for pointers.
2900 2015-06-23  Alan Modra  <amodra@gmail.com>
2902         * rtlanal.c (commutative_operand_precedence): Correct comments.
2903         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
2904         declaration.  Return an int.  Distinguish REG,REG return from
2905         others.
2906         (struct simplify_plus_minus_op_data): Make local to function.
2907         (simplify_plus_minus): Don't set canonicalized if merely sorting
2908         registers.  Avoid packing ops if nothing changes.  White space fixes.
2910 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
2912         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
2913         -fdump-ada-spec is passed but not if -fsyntax-only is.
2915 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
2917         PR bootstrap/63740
2918         * lra-lives.c (process_bb_lives): Check insn copying the same
2919         reload pseudo and don't create a copy for it.
2921 2015-06-22  Tom de Vries  <tom@codesourcery.com>
2923         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
2924         for cond_stmt.
2926 2015-06-22  Tom de Vries  <tom@codesourcery.com>
2928         * builtins.def (DEF_GOMP_BUILTIN): Test
2929         'flag_tree_parallelize_loops > 1' instead of
2930         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
2932 2015-06-22  Tom de Vries  <tom@codesourcery.com>
2934         * dominance.c (calculate_dominance_info): Verify dominators if
2935         early-out.
2937 2015-06-22  Marek Polacek  <polacek@redhat.com>
2939         * match.pd ((x ^ y) ^ (x | y) -> x & y,
2940         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
2941         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
2942         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
2944 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
2946         PR target/65871
2947         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
2948         cost of embedded comparison.
2950 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2952         PR target/65914
2953         * config/rs6000/predicates.md (altivec_register_operand): Permit
2954         virtual stack registers.
2955         (vsx_register_operand): Likewise.
2956         (vfloat_operand): Likewise.
2957         (vint_operand): Likewise.
2958         (vlogical_operand): Likewise.
2960 2015-06-22  Richard Biener  <rguenther@suse.de>
2962         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
2963         and single_scalar_iteration_cost members.
2964         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
2965         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
2966         (vect_get_single_scalar_iteration_cost): Remove.
2967         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
2968         Use LOOP_VINFO_SCALAR_ITERATION_COST.
2969         * tree-vect-loop.c (destroy_loop_vec_info): Free
2970         scalar_cost_vec.
2971         (vect_get_single_scalar_iteration_cost): Compute result into
2972         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
2973         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
2974         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
2975         (vect_estimate_min_profitable_iters): Use them.
2977 2015-06-22  Christian Bruel  <christian.bruel@st.com>
2979         PR target/52144
2980         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
2981         (TARGET_INSERT_ATTRIBUTES): Define.
2982         (thumb_flipper): New var.
2983         * config/arm/arm.opt (-mflip-thumb): New switch.
2985 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
2986             Martin Liska  <mliska@suse.cz>
2988         PR ipa/65908
2989         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
2990         construction of arg_types.
2991         (sem_function::sem_function): Likewise.
2992         (sem_function::~sem_function): Remove destruction of arg_types.
2993         (sem_function::compatible_parm_types_p): New function.
2994         (sem_function::equals_wpa): Reorg matching of return values
2995         and parameter types.
2996         (sem_function::equals_private): Reorg mathcing of argument types.
2997         (sem_function::parse_tree_args): Remove.
2998         * ipa-icf.h (init_wpa): Do not call it.
2999         (parse_tree_args): Remove.
3000         (compatible_parm_types_p): Declare.
3001         (result_type): Remove.
3002         (arg_types): Remove.
3004 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
3006         PR ipa/66351
3007         * ipa-polymorphic-call.c
3008         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
3009         initializing alias oracle; fix formating; set base_alias_set if it
3010         is known.
3012 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
3014         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
3015         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
3016         (find_inc): Likewise.
3017         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
3018         swapping.
3019         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3020         * df-scan.c (df_swap_refs): Remove.
3021         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
3022         * dominance.c (link_roots): Use std::swap instead of manually swapping.
3023         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
3024         * fold-const.c (fold_relational_const): Likewise.
3025         * genattrtab.c (simplify_test_exp): Likewise.
3026         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
3027         gimple_simplify): Likewise.
3028         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
3029         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
3030         * ipa-devirt.c (add_type_duplicate): Likewise.
3031         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
3032         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
3033         * lra.c (lra_create_copy): Likewise.
3034         * lto-streamer-out.c (DFS::DFS): Likewise.
3035         * modulo-sched.c (get_sched_window): Likewise.
3036         * omega.c (omega_pretty_print_problem): Likewise.
3037         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
3038         * reload1.c (reloads_unique_chain_p): Likewise.
3039         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
3040         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
3041         use std::swap.
3042         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
3043         manually swapping.
3044         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
3045         predicate_mem_writes): Likewise.
3046         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
3047         * tree-predcom.c (combine_chains): Likewise.
3048         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
3049         refs_may_alias_p_1): Likewise.
3050         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
3051         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
3052         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
3053         number_of_iterations_cond): Likewise.
3054         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3055         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
3056         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
3057         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
3058         * tree-vrp.c (extract_range_from_binary_expr_1,
3059         extract_range_from_unary_expr_1): Likewise.
3061 2015-06-20  Marek Polacek  <polacek@redhat.com>
3063         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
3065 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
3067         PR target/66591
3068         * config/sh/sh.c (prepare_move_operands): Replace subreg
3069         index term with R0 for base and index addressing.
3071 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
3073         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
3074         op1 is an fp zero.
3075         (movsf_aarch64): Change condition from register_operand to
3076         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
3077         load1.  Change type for alternative 7 to store1.
3078         (movdf_aarch64): Likewise.
3080 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
3082         * config/vax/vax.md: Adjust sign/zero extend patterns to
3083         handle SUBREGs in operands[1].
3085 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3087         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
3088         of manually swapping.
3089         (expand_vec_perm_interleave2): Likewise.
3091 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
3093         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
3094         reuse bounds created for abnormal ssa names.
3096 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
3098         * config/nvptx/nvptx.md (allocate_stack): Rename to...
3099         (allocate_stack_<mode>): ... this, and add :P on both
3100         match_operand and unspec.
3101         (allocate_stack): New expander.
3103 2015-06-19  Christian Bruel  <christian.bruel@st.com>
3105         PR target/66541
3106         PR target/52144
3107         * config/arm/arm.c (arm_set_current_function): Handle
3108         explicit default options.
3110 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
3112         * config/i386/i386.md (*movsicc_noc_zext): New insn.
3113         (zero-extended cmove with mem peephole2): New pattern.
3114         (cmove with mem peephole2): Merge patterns.
3116 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
3118         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
3120 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
3122         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
3123         * config/mips/mips.md (*madd4<mode>): Ditto.
3124         (*nmadd3<mode>) Ditto.
3125         (*nmadd4<mode>_fastmath): Ditto.
3126         (*nmadd3<mode>_fastmath): Ditto.
3127         (*nmsub4<mode>): Ditto.
3128         (*nmsub3<mode>): Ditto.
3129         (*nmsub4<mode>_fastmath): Ditto.
3130         (*nmsub3<mode>_fastmath): Ditto.
3132 2015-06-18  Michael Matz  <matz@suse.de>
3134         PR middle-end/66253
3135         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
3136         grouped strided stores.
3137         (vectorizable_load): Don't use the DR from first_stmt in
3138         the non-SLP grouped strided case.
3140 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
3142         PR target/66569
3143         * function.c (assign_bounds): Add arguments assign_regs,
3144         assign_special, assign_bt.
3145         (assign_parms): For vararg functions handle bounds in BT
3146         and special slots after incoming vararg bounds.
3148 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
3150         PR middle-end/66568
3151         * cfgexpand.c (expand_return): Handle missing bounds.
3152         (expand_gimple_stmt_1): Likewise.
3153         * tree-chkp.c (chkp_expand_zero_bounds): New.
3154         * tree-chkp.h (chkp_expand_zero_bounds): New.
3156 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
3158         PR middle-end/66567
3159         * ipa-chkp.c (chkp_maybe_create_clone): Require
3160         functions to be instrumentable.
3161         * tree-chkp.c (chkp_replace_function_pointer): Use
3162         chkp_instrumentable_p instead of attribute check.
3164 2015-06-18  Richard Biener  <rguenther@suse.de>
3166         PR tree-optimization/66510
3167         * tree-vect-stmts.c (vectorizable_load): Properly compute the
3168         number of vector loads for SLP permuted loads.
3169         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
3170         check the stride for loop vectorization.
3171         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
3172         vectorization factor.
3173         (vect_analyze_group_access): If the group size is not a power
3174         of two require a epilogue loop.
3175         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
3176         compute and optimizing and alias test pruning after final
3177         vectorization factor computation.
3178         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
3179         vector alignment.
3180         (vect_transform_slp_perm_load): Properly compute the original
3181         number of vector load stmts.
3183 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
3185         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
3186         "unlikely character , in @var" warning.
3188 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
3190         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
3191         (ix86_function_arg_advance): Ditto.
3192         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
3194 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
3196         * function.h (struct rtl_data): Remove struct and accessor macros.
3197         * emit-rtl.h (struct rtl_data): Relocate to here.
3198         * Makefile.in (GTFILES): Add emit-rtl.h.
3199         * df-core.c: Include emit-rtl.h.
3200         * genattrtab.c: Likewise.
3201         * genconditions.c: Likewise.
3202         * genpreds.c: Likewise.
3203         * genrecog.c: Likewise.
3204         * regcprop.c: Likewise.
3205         * resource.c: Likewise.
3206         * sched-rgn.c: Likewise.
3207         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3208         * config/i386/winnt.c: Likewise.
3210 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
3212         PR middle-end/66429
3213         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
3214         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
3215         and has_force_vectorize_loops flags from cfun into
3216         child_cfun.
3217         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
3218         if simduid is non-NULL.
3219         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
3220         * passes.def (pass_simduid_cleanup): Add new pass after loop
3221         passes.
3222         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
3223         indirection from htab argument's type.
3224         (shrink_simd_arrays): New function.
3225         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
3226         Don't call adjust_simduid_builtins if there are no loops.
3227         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
3228         (pass_simduid_cleanup::execute): New method.
3229         (make_pass_simduid_cleanup): New function.
3231 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
3233         * tree-core.h (tree_target_option): Make opts field a pointer to a
3234         cl_target_option instead of an instance of the struct.
3235         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
3236         the structure.
3237         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
3238         TARGET_OPTION_NODE.
3239         (copy_node_stat): Allocate and copy struct cl_target_option.
3241 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
3243         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
3244         Remove conditional exposure of prototypes.
3245         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
3246         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
3247         definitions in tree.h with functions.
3248         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
3249         anon_aggrname_p.
3250         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
3252 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
3254         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
3255         (*cmp<mode>_signed): ... this.
3256         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
3257         (*cmp<mode>_unsigned): ... this.  Remove %b.
3259 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
3261         * coretypes.h: Include input.h and as-a.h.
3262         * rtl.h: Include input.h and as-a.h for generator files.
3263         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
3264         * vec.c: Don't include diagnostic-core.h.
3265         * alias.c: Do not include input.h, line-map.h or is-a.h.
3266         * asan.c: Likewise.
3267         * attribs.c: Likewise.
3268         * auto-inc-dec.c: Likewise.
3269         * auto-profile.c: Likewise.
3270         * bb-reorder.c: Likewise.
3271         * bt-load.c: Likewise.
3272         * builtins.c: Likewise.
3273         * caller-save.c: Likewise.
3274         * calls.c: Likewise.
3275         * ccmp.c: Likewise.
3276         * cfg.c: Likewise.
3277         * cfganal.c: Likewise.
3278         * cfgbuild.c: Likewise.
3279         * cfgcleanup.c: Likewise.
3280         * cfgexpand.c: Likewise.
3281         * cfghooks.c: Likewise.
3282         * cfgloop.c: Likewise.
3283         * cfgloop.h: Likewise.
3284         * cfgloopanal.c: Likewise.
3285         * cfgloopmanip.c: Likewise.
3286         * cfgrtl.c: Likewise.
3287         * cgraph.c: Likewise.
3288         * cgraphbuild.c: Likewise.
3289         * cgraphclones.c: Likewise.
3290         * cgraphunit.c: Likewise.
3291         * cilk-common.c: Likewise.
3292         * combine-stack-adj.c: Likewise.
3293         * combine.c: Likewise.
3294         * compare-elim.c: Likewise.
3295         * convert.c: Likewise.
3296         * coverage.c: Likewise.
3297         * cppbuiltin.c: Likewise.
3298         * cprop.c: Likewise.
3299         * cse.c: Likewise.
3300         * cselib.c: Likewise.
3301         * data-streamer-in.c: Likewise.
3302         * data-streamer-out.c: Likewise.
3303         * data-streamer.c: Likewise.
3304         * dbxout.c: Likewise.
3305         * dce.c: Likewise.
3306         * ddg.c: Likewise.
3307         * debug.c: Likewise.
3308         * df-core.c: Likewise.
3309         * df-problems.c: Likewise.
3310         * df-scan.c: Likewise.
3311         * df.h: Likewise.
3312         * dfp.c: Likewise.
3313         * diagnostic-core.h: Likewise.
3314         * diagnostic.c: Likewise.
3315         * dojump.c: Likewise.
3316         * dominance.c: Likewise.
3317         * domwalk.c: Likewise.
3318         * double-int.c: Likewise.
3319         * dse.c: Likewise.
3320         * dumpfile.c: Likewise.
3321         * dumpfile.h: Likewise.
3322         * dwarf2asm.c: Likewise.
3323         * dwarf2cfi.c: Likewise.
3324         * dwarf2out.c: Likewise.
3325         * emit-rtl.c: Likewise.
3326         * et-forest.c: Likewise.
3327         * except.c: Likewise.
3328         * explow.c: Likewise.
3329         * expmed.c: Likewise.
3330         * expr.c: Likewise.
3331         * final.c: Likewise.
3332         * fixed-value.c: Likewise.
3333         * fold-const.c: Likewise.
3334         * function.c: Likewise.
3335         * fwprop.c: Likewise.
3336         * gcc-plugin.h: Likewise.
3337         * gcse.c: Likewise.
3338         * generic-match-head.c: Likewise.
3339         * ggc-page.c: Likewise.
3340         * gimple-builder.c: Likewise.
3341         * gimple-expr.c: Likewise.
3342         * gimple-fold.c: Likewise.
3343         * gimple-iterator.c: Likewise.
3344         * gimple-low.c: Likewise.
3345         * gimple-match-head.c: Likewise.
3346         * gimple-pretty-print.c: Likewise.
3347         * gimple-ssa-isolate-paths.c: Likewise.
3348         * gimple-ssa-strength-reduction.c: Likewise.
3349         * gimple-streamer-in.c: Likewise.
3350         * gimple-streamer-out.c: Likewise.
3351         * gimple-streamer.h: Likewise.
3352         * gimple-walk.c: Likewise.
3353         * gimple.c: Likewise.
3354         * gimplify-me.c: Likewise.
3355         * gimplify.c: Likewise.
3356         * godump.c: Likewise.
3357         * graph.c: Likewise.
3358         * graphite-blocking.c: Likewise.
3359         * graphite-dependences.c: Likewise.
3360         * graphite-interchange.c: Likewise.
3361         * graphite-isl-ast-to-gimple.c: Likewise.
3362         * graphite-optimize-isl.c: Likewise.
3363         * graphite-poly.c: Likewise.
3364         * graphite-scop-detection.c: Likewise.
3365         * graphite-sese-to-poly.c: Likewise.
3366         * graphite.c: Likewise.
3367         * haifa-sched.c: Likewise.
3368         * hw-doloop.c: Likewise.
3369         * ifcvt.c: Likewise.
3370         * init-regs.c: Likewise.
3371         * input.c: Likewise.
3372         * internal-fn.c: Likewise.
3373         * ipa-chkp.c: Likewise.
3374         * ipa-comdats.c: Likewise.
3375         * ipa-cp.c: Likewise.
3376         * ipa-devirt.c: Likewise.
3377         * ipa-icf-gimple.c: Likewise.
3378         * ipa-icf.c: Likewise.
3379         * ipa-inline-analysis.c: Likewise.
3380         * ipa-inline-transform.c: Likewise.
3381         * ipa-inline.c: Likewise.
3382         * ipa-polymorphic-call.c: Likewise.
3383         * ipa-profile.c: Likewise.
3384         * ipa-prop.c: Likewise.
3385         * ipa-pure-const.c: Likewise.
3386         * ipa-ref.c: Likewise.
3387         * ipa-reference.c: Likewise.
3388         * ipa-split.c: Likewise.
3389         * ipa-utils.c: Likewise.
3390         * ipa-visibility.c: Likewise.
3391         * ipa.c: Likewise.
3392         * ira-build.c: Likewise.
3393         * ira-color.c: Likewise.
3394         * ira-conflicts.c: Likewise.
3395         * ira-costs.c: Likewise.
3396         * ira-emit.c: Likewise.
3397         * ira-lives.c: Likewise.
3398         * ira.c: Likewise.
3399         * jump.c: Likewise.
3400         * langhooks.c: Likewise.
3401         * lcm.c: Likewise.
3402         * loop-doloop.c: Likewise.
3403         * loop-init.c: Likewise.
3404         * loop-invariant.c: Likewise.
3405         * loop-iv.c: Likewise.
3406         * loop-unroll.c: Likewise.
3407         * lower-subreg.c: Likewise.
3408         * lra-assigns.c: Likewise.
3409         * lra-coalesce.c: Likewise.
3410         * lra-constraints.c: Likewise.
3411         * lra-eliminations.c: Likewise.
3412         * lra-lives.c: Likewise.
3413         * lra-remat.c: Likewise.
3414         * lra-spills.c: Likewise.
3415         * lra.c: Likewise.
3416         * lto-cgraph.c: Likewise.
3417         * lto-compress.c: Likewise.
3418         * lto-opts.c: Likewise.
3419         * lto-section-in.c: Likewise.
3420         * lto-section-out.c: Likewise.
3421         * lto-streamer-in.c: Likewise.
3422         * lto-streamer-out.c: Likewise.
3423         * lto-streamer.c: Likewise.
3424         * mcf.c: Likewise.
3425         * mode-switching.c: Likewise.
3426         * modulo-sched.c: Likewise.
3427         * omega.c: Likewise.
3428         * omp-low.c: Likewise.
3429         * optabs.c: Likewise.
3430         * opts-global.c: Likewise.
3431         * opts.h: Likewise.
3432         * passes.c: Likewise.
3433         * plugin.c: Likewise.
3434         * postreload-gcse.c: Likewise.
3435         * postreload.c: Likewise.
3436         * predict.c: Likewise.
3437         * pretty-print.h: Likewise.
3438         * print-rtl.c: Likewise.
3439         * print-tree.c: Likewise.
3440         * profile.c: Likewise.
3441         * real.c: Likewise.
3442         * realmpfr.c: Likewise.
3443         * recog.c: Likewise.
3444         * ree.c: Likewise.
3445         * reg-stack.c: Likewise.
3446         * regcprop.c: Likewise.
3447         * reginfo.c: Likewise.
3448         * regrename.c: Likewise.
3449         * regstat.c: Likewise.
3450         * reload.c: Likewise.
3451         * reload1.c: Likewise.
3452         * reorg.c: Likewise.
3453         * resource.c: Likewise.
3454         * rtl-chkp.c: Likewise.
3455         * rtl-error.c: Likewise.
3456         * rtlanal.c: Likewise.
3457         * rtlhooks.c: Likewise.
3458         * sanopt.c: Likewise.
3459         * sched-deps.c: Likewise.
3460         * sched-ebb.c: Likewise.
3461         * sched-rgn.c: Likewise.
3462         * sched-vis.c: Likewise.
3463         * sdbout.c: Likewise.
3464         * sel-sched-dump.c: Likewise.
3465         * sel-sched-ir.c: Likewise.
3466         * sel-sched.c: Likewise.
3467         * sese.c: Likewise.
3468         * shrink-wrap.c: Likewise.
3469         * simplify-rtx.c: Likewise.
3470         * stack-ptr-mod.c: Likewise.
3471         * statistics.c: Likewise.
3472         * stmt.c: Likewise.
3473         * stor-layout.c: Likewise.
3474         * store-motion.c: Likewise.
3475         * streamer-hooks.c: Likewise.
3476         * stringpool.c: Likewise.
3477         * symtab.c: Likewise.
3478         * target-globals.c: Likewise.
3479         * targhooks.c: Likewise.
3480         * toplev.c: Likewise.
3481         * tracer.c: Likewise.
3482         * trans-mem.c: Likewise.
3483         * tree-affine.c: Likewise.
3484         * tree-browser.c: Likewise.
3485         * tree-call-cdce.c: Likewise.
3486         * tree-cfg.c: Likewise.
3487         * tree-cfgcleanup.c: Likewise.
3488         * tree-chkp-opt.c: Likewise.
3489         * tree-chkp.c: Likewise.
3490         * tree-chrec.c: Likewise.
3491         * tree-complex.c: Likewise.
3492         * tree-data-ref.c: Likewise.
3493         * tree-dfa.c: Likewise.
3494         * tree-diagnostic.c: Likewise.
3495         * tree-dump.c: Likewise.
3496         * tree-eh.c: Likewise.
3497         * tree-emutls.c: Likewise.
3498         * tree-if-conv.c: Likewise.
3499         * tree-inline.c: Likewise.
3500         * tree-into-ssa.c: Likewise.
3501         * tree-iterator.c: Likewise.
3502         * tree-loop-distribution.c: Likewise.
3503         * tree-nested.c: Likewise.
3504         * tree-nrv.c: Likewise.
3505         * tree-object-size.c: Likewise.
3506         * tree-outof-ssa.c: Likewise.
3507         * tree-parloops.c: Likewise.
3508         * tree-phinodes.c: Likewise.
3509         * tree-predcom.c: Likewise.
3510         * tree-pretty-print.c: Likewise.
3511         * tree-profile.c: Likewise.
3512         * tree-scalar-evolution.c: Likewise.
3513         * tree-sra.c: Likewise.
3514         * tree-ssa-address.c: Likewise.
3515         * tree-ssa-alias.c: Likewise.
3516         * tree-ssa-ccp.c: Likewise.
3517         * tree-ssa-coalesce.c: Likewise.
3518         * tree-ssa-copy.c: Likewise.
3519         * tree-ssa-copyrename.c: Likewise.
3520         * tree-ssa-dce.c: Likewise.
3521         * tree-ssa-dom.c: Likewise.
3522         * tree-ssa-dse.c: Likewise.
3523         * tree-ssa-forwprop.c: Likewise.
3524         * tree-ssa-ifcombine.c: Likewise.
3525         * tree-ssa-live.c: Likewise.
3526         * tree-ssa-loop-ch.c: Likewise.
3527         * tree-ssa-loop-im.c: Likewise.
3528         * tree-ssa-loop-ivcanon.c: Likewise.
3529         * tree-ssa-loop-ivopts.c: Likewise.
3530         * tree-ssa-loop-manip.c: Likewise.
3531         * tree-ssa-loop-niter.c: Likewise.
3532         * tree-ssa-loop-prefetch.c: Likewise.
3533         * tree-ssa-loop-unswitch.c: Likewise.
3534         * tree-ssa-loop.c: Likewise.
3535         * tree-ssa-math-opts.c: Likewise.
3536         * tree-ssa-operands.c: Likewise.
3537         * tree-ssa-phiopt.c: Likewise.
3538         * tree-ssa-phiprop.c: Likewise.
3539         * tree-ssa-pre.c: Likewise.
3540         * tree-ssa-propagate.c: Likewise.
3541         * tree-ssa-reassoc.c: Likewise.
3542         * tree-ssa-sccvn.c: Likewise.
3543         * tree-ssa-scopedtables.c: Likewise.
3544         * tree-ssa-sink.c: Likewise.
3545         * tree-ssa-strlen.c: Likewise.
3546         * tree-ssa-structalias.c: Likewise.
3547         * tree-ssa-tail-merge.c: Likewise.
3548         * tree-ssa-ter.c: Likewise.
3549         * tree-ssa-threadedge.c: Likewise.
3550         * tree-ssa-threadupdate.c: Likewise.
3551         * tree-ssa-uncprop.c: Likewise.
3552         * tree-ssa-uninit.c: Likewise.
3553         * tree-ssa.c: Likewise.
3554         * tree-ssanames.c: Likewise.
3555         * tree-stdarg.c: Likewise.
3556         * tree-streamer-in.c: Likewise.
3557         * tree-streamer-out.c: Likewise.
3558         * tree-streamer.c: Likewise.
3559         * tree-switch-conversion.c: Likewise.
3560         * tree-tailcall.c: Likewise.
3561         * tree-vect-data-refs.c: Likewise.
3562         * tree-vect-generic.c: Likewise.
3563         * tree-vect-loop-manip.c: Likewise.
3564         * tree-vect-loop.c: Likewise.
3565         * tree-vect-patterns.c: Likewise.
3566         * tree-vect-slp.c: Likewise.
3567         * tree-vect-stmts.c: Likewise.
3568         * tree-vectorizer.c: Likewise.
3569         * tree-vrp.c: Likewise.
3570         * tree.c: Likewise.
3571         * tsan.c: Likewise.
3572         * ubsan.c: Likewise.
3573         * valtrack.c: Likewise.
3574         * value-prof.c: Likewise.
3575         * var-tracking.c: Likewise.
3576         * varasm.c: Likewise.
3577         * varpool.c: Likewise.
3578         * vmsdbgout.c: Likewise.
3579         * vtable-verify.c: Likewise.
3580         * web.c: Likewise.
3581         * wide-int.cc: Likewise.
3582         * xcoffout.c: Likewise.
3583         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
3584         * common/common-targhooks.c: Likewise.
3585         * config/aarch64/aarch64-builtins.c: Likewise.
3586         * config/aarch64/aarch64.c: Likewise.
3587         * config/alpha/alpha.c: Likewise.
3588         * config/arc/arc.c: Likewise.
3589         * config/arm/aarch-common.c: Likewise.
3590         * config/arm/arm-builtins.c: Likewise.
3591         * config/arm/arm-c.c: Likewise.
3592         * config/arm/arm.c: Likewise.
3593         * config/avr/avr-c.c: Likewise.
3594         * config/avr/avr-log.c: Likewise.
3595         * config/avr/avr.c: Likewise.
3596         * config/bfin/bfin.c: Likewise.
3597         * config/c6x/c6x.c: Likewise.
3598         * config/cr16/cr16.c: Likewise.
3599         * config/cris/cris.c: Likewise.
3600         * config/darwin-c.c: Likewise.
3601         * config/darwin.c: Likewise.
3602         * config/default-c.c: Likewise.
3603         * config/epiphany/epiphany.c: Likewise.
3604         * config/epiphany/mode-switch-use.c: Likewise.
3605         * config/epiphany/resolve-sw-modes.c: Likewise.
3606         * config/fr30/fr30.c: Likewise.
3607         * config/frv/frv.c: Likewise.
3608         * config/ft32/ft32.c: Likewise.
3609         * config/glibc-c.c: Likewise.
3610         * config/h8300/h8300.c: Likewise.
3611         * config/i386/i386-c.c: Likewise.
3612         * config/i386/i386.c: Likewise.
3613         * config/i386/msformat-c.c: Likewise.
3614         * config/i386/winnt-cxx.c: Likewise.
3615         * config/i386/winnt-stubs.c: Likewise.
3616         * config/i386/winnt.c: Likewise.
3617         * config/ia64/ia64-c.c: Likewise.
3618         * config/ia64/ia64.c: Likewise.
3619         * config/iq2000/iq2000.c: Likewise.
3620         * config/lm32/lm32.c: Likewise.
3621         * config/m32c/m32c-pragma.c: Likewise.
3622         * config/m32c/m32c.c: Likewise.
3623         * config/m32r/m32r.c: Likewise.
3624         * config/m68k/m68k.c: Likewise.
3625         * config/mcore/mcore.c: Likewise.
3626         * config/mep/mep-pragma.c: Likewise.
3627         * config/mep/mep.c: Likewise.
3628         * config/microblaze/microblaze-c.c: Likewise.
3629         * config/microblaze/microblaze.c: Likewise.
3630         * config/mips/mips.c: Likewise.
3631         * config/mmix/mmix.c: Likewise.
3632         * config/mn10300/mn10300.c: Likewise.
3633         * config/moxie/moxie.c: Likewise.
3634         * config/msp430/msp430-c.c: Likewise.
3635         * config/msp430/msp430.c: Likewise.
3636         * config/nds32/nds32-cost.c: Likewise.
3637         * config/nds32/nds32-fp-as-gp.c: Likewise.
3638         * config/nds32/nds32-intrinsic.c: Likewise.
3639         * config/nds32/nds32-isr.c: Likewise.
3640         * config/nds32/nds32-md-auxiliary.c: Likewise.
3641         * config/nds32/nds32-memory-manipulation.c: Likewise.
3642         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3643         * config/nds32/nds32-predicates.c: Likewise.
3644         * config/nds32/nds32.c: Likewise.
3645         * config/nios2/nios2.c: Likewise.
3646         * config/nvptx/nvptx.c: Likewise.
3647         * config/pa/pa.c: Likewise.
3648         * config/pdp11/pdp11.c: Likewise.
3649         * config/rl78/rl78-c.c: Likewise.
3650         * config/rl78/rl78.c: Likewise.
3651         * config/rs6000/rs6000-c.c: Likewise.
3652         * config/rs6000/rs6000.c: Likewise.
3653         * config/rx/rx.c: Likewise.
3654         * config/s390/s390-c.c: Likewise.
3655         * config/s390/s390.c: Likewise.
3656         * config/sh/sh-c.c: Likewise.
3657         * config/sh/sh-mem.cc: Likewise.
3658         * config/sh/sh.c: Likewise.
3659         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3660         * config/sh/sh_treg_combine.cc: Likewise.
3661         * config/sol2-c.c: Likewise.
3662         * config/sol2-cxx.c: Likewise.
3663         * config/sol2-stubs.c: Likewise.
3664         * config/sol2.c: Likewise.
3665         * config/sparc/sparc-c.c: Likewise.
3666         * config/sparc/sparc.c: Likewise.
3667         * config/spu/spu-c.c: Likewise.
3668         * config/spu/spu.c: Likewise.
3669         * config/stormy16/stormy16.c: Likewise.
3670         * config/tilegx/mul-tables.c: Likewise.
3671         * config/tilegx/tilegx-c.c: Likewise.
3672         * config/tilegx/tilegx.c: Likewise.
3673         * config/tilepro/mul-tables.c: Likewise.
3674         * config/tilepro/tilepro-c.c: Likewise.
3675         * config/tilepro/tilepro.c: Likewise.
3676         * config/v850/v850-c.c: Likewise.
3677         * config/v850/v850.c: Likewise.
3678         * config/vax/vax.c: Likewise.
3679         * config/visium/visium.c: Likewise.
3680         * config/vms/vms-c.c: Likewise.
3681         * config/vms/vms.c: Likewise.
3682         * config/vxworks.c: Likewise.
3683         * config/winnt-c.c: Likewise.
3684         * config/xtensa/xtensa.c: Likewise.
3686 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
3688         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
3689         function.
3690         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
3692 2015-06-17  Richard Biener  <rguenther@suse.de>
3694         PR tree-optimization/66251
3695         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
3696         stmts for SLP strided stores.
3698         Revert
3699         2015-05-22  Richard Biener  <rguenther@suse.de>
3701         PR tree-optimization/66251
3702         * tree-vect-stmts.c (vectorizable_conversion): Properly
3703         set STMT_VINFO_VEC_STMT even for the SLP case.
3705         2015-05-26  Michael Matz  <matz@suse.de>
3707         PR middle-end/66251
3708         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
3709         STMT_VINFO_VEC_STMT, also with SLP.
3711 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
3713         PR target/56766
3714         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
3715         (*avx_addsubv4df3_1s): Ditto.
3716         (*sse3_addsubv2df3_1): Ditto.
3717         (*sse3_addsubv2df3_1s): Ditto.
3718         (*avx_addsubv8sf3_1): Ditto.
3719         (*avx_addsubv8sf3_1s): Ditto.
3720         (*sse3_addsubv4sf3_1): Ditto.
3721         (*sse3_addsubv4sf3_1s): Ditto.
3723 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
3725         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
3726         (SYSROOT_SUFFIX_SPEC): Update.
3727         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
3728         (STARTFILE_PREFIX_SPEC): Update.
3729         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
3730         (MULTILIB_REQUIRED): New.
3731         (MULTILIB_OSDIRNAMES): New.
3732         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
3733         (MULTILIB_REQUIRED): New.
3734         (MULTILIB_OSDIRNAMES): New.
3736 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
3738         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
3739         * config/aarch64/aarch64-options-extensions.def: Update "fP",
3740         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
3741         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
3742         (AARCH64_FL_PAN): New.
3743         (AARCH64_FL_LOR): New.
3744         (AARCH64_FL_RDMA): New.
3745         (AARCH64_FL_FOR_ARCH8_1): New.
3746         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
3747         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
3749 2015-06-16  Martin Liska  <mliska@suse.cz>
3751         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
3752         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
3753         guard.
3755 2015-06-16  Richard Biener  <rguenther@suse.de>
3757         * tree-vect-stmts.c (vectorizable_store): Adjust.
3758         (vectorizable_load): Likewise.
3759         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3760         Simplify.
3761         (vect_create_data_ref_ptr): Likewise.
3762         (bump_vector_ptr): Adjust.
3764 2015-06-16  Richard Biener  <rguenther@suse.de>
3766         * tree-vect-stmts.c (vectorizable_load): Properly start loads
3767         with the first element if this is grouped loads.
3769 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
3771         * config/arm/arm-protos.h (struct tune_params): Rename
3772         log_op_non_sc to log_op_non_short_circuit, and rename enum
3773         values to expand SC to SHORT_CIRCUIT.
3774         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
3775         to LOG_OP_NON_SHORT_CIRCUIT.
3776         (arm_fastmul_tune):Likewise
3777         (arm_strongarm_tune): Likewise.
3778         (arm_xscale_tune): Likewise.
3779         (arm_9e_tune): Likewise.
3780         (arm_marvell_pj4_tune): Likewise.
3781         (arm_v6t2_tune): Likewise.
3782         (arm_cortex_tune): Likewise.
3783         (arm_cortex_a8_tune): Likewise.
3784         (arm_cortex_a7_tune): Likewise.
3785         (arm_cortex_a15_tune): Likewise.
3786         (arm_cortex_a53_tune): Likewise.
3787         (arm_cortex_a57_tune): Likewise.
3788         (arm_xgene1_tune): Likewise.
3789         (arm_cortex_a5_tune): Likewise.
3790         (arm_cortex_a9_tune): Likewise.
3791         (arm_cortex_a12_tune): Likewise.
3792         (arm_v7m_tune): Likewise.
3793         (arm_cortex_m7_tune): Likewise.
3794         (arm_v6m_tune): Likewise.
3795         (arm_fa726te_tune): Likewise.
3797 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
3799         * altivec.md: Delete UNSPEC_VMLADDUHM.
3800         (mulv4si3_p8): New pattern.
3801         (mulv4si3): Use it for POWER8.
3802         (mulv8hi3): Use vmladduhm with zero addend.
3803         (altivec_vmladduhm): Descriptive RTL.
3805 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
3807         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
3808         to use neon_move instead of mov_imm.
3809         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
3810         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
3812         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
3813         aarch64_float_const_zero_rtx_p check before TFmode check.
3814         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
3815         an fp zero.
3816         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
3817         code and attributes to match.  Change condition from register_operand
3818         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
3819         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
3820         to store2.
3822 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
3824         PR debug/66535
3825         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
3826         there is no parent.
3828 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
3830         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
3831         HOST_WIDE_INT parameter.
3833 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
3835         PR ipa/66181
3836         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
3837         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
3838         TYPE_NO_FORCE_BLK.
3839         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
3841 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
3843         * rtl.h (classify_insn): Declare.
3844         * emit-rtl.c (classify_insn): Move to...
3845         * rtl.c: ...here and add generator support.
3846         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
3847         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
3848         * genemit.c (gen_emit_seq): New function.
3849         (gen_expand, gen_split): Use it.
3851 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
3853         * tree.c (make_vector_stat): Fix comment to state that the
3854         function returns a VECTOR_CST.
3856 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
3858         * gensupport.h (add_implicit_parallel): Declare.
3859         * genrecog.c (add_implicit_parallel): Move to...
3860         * gensupport.c (add_implicit_parallel): ...here.
3861         (process_one_cond_exec): Use it.
3862         * genemit.c (gen_insn): Likewise.
3864 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
3866         PR bootstrap/66448
3867         * passes.c (rest_of_decl_compilation): Do not register globals for
3868         early debug if they are declared in built-ins.
3870 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
3872         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
3874 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3876         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
3877         manually swapping.
3878         (noce_try_cmove_arith): Likewise.
3879         (noce_get_alt_condition): Likewise.
3881 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3883         * common/config/i386/i386-common.c
3884         (OPTION_MASK_ISA_MWAITX_SET): New.
3885         (ix86_handle_option): Handle mwaitx.
3886         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
3887         (x86_64-*-*): Likewise.
3888         * config/i386/mwaitxintrin.h: New header.
3889         * config/i386/cpuid.h (bit_MWAITX):  Define.
3890         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3891         MWAITX support.
3892         * config/i386/i386.opt (mwaitx): New.
3893         * config/i386/i386-builtin-types.def
3894         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
3895         * config/i386/i386-c.c: Define __MWAITX__ if needed.
3896         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
3897         (PTA_MWAITX): New.
3898         (ix86_option_override_internal): Handle new option.
3899         (processor_alias_table): Added PTA_MWAITX.
3900         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
3901         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
3902         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
3903         IX86_BUILTIN_MONITORX  built-ins.
3904         * config/i386/i386.h (TARGET_MWAITX): New.
3905         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
3906         UNSPEC_MONITORX.
3907         (mwaitx):  New pattern.
3908         (monitorx_<mode>): New pattern.
3909         * config/i386/x86intrin.h: Include mwaitxintrin.h.
3910         * doc/extend.texi: Document monitorx and mwaitx builtins.
3911         * doc/invoke.texi: Document -mmwaitx option.
3913 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
3915         * emit-rtl.c (need_atomic_barrier_p): Mask model with
3916         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
3918 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
3920         * dbxout.c (xcoff_debug_hooks): Provide a function for
3921         register_main_translation_unit hook.
3923 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
3925         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
3926         variants cases from switch.
3927         (rs6000_post_atomic_barrier): Same.
3928         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
3929         (rs6000_expand_atomic_exchange): Same.
3930         (rs6000_expand_atomic_op): Same.
3931         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
3932         SYNC variants cases from switch.
3933         (atomic_load): Same.
3934         (atomic_store): Same.
3936 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
3938         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
3939         CONST_INT for goto.
3941 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
3943         PR bootstrap/66448
3944         * dwarf2out.c (check_die): Check for common duplicate attributes.
3945         (add_location_or_const_value_attribute): Do not add duplicate
3946         attributes.
3947         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
3948         time around.
3949         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
3950         (gen_type_die_with_usage): Call check_die.
3951         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
3953 2015-06-11  Jason Merrill  <jason@redhat.com>
3955         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
3956         dies.
3958 2015-06-11  Marek Polacek  <polacek@redhat.com>
3960         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
3962 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
3964         PR bootstrap/66252
3965         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
3966         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
3967         (*addx_extend_sp32): Fix pasto.
3968         (*subx_extend): Rename into...
3969         (*subx_extend_sp32): ...this.
3970         (*adddi3_extend_sp32): Add earlyclobber.
3971         (*subdi3_insn_sp32): Likewise.
3972         (*subdi3_extend_sp32): Likewise.
3973         (*and_not_di_sp32): Likewise.
3974         (*or_not_di_sp32): Likewise.
3975         (*xor_not_di_sp32): Likewise.
3976         (*negdi2_sp32): Likewise.
3977         (*one_cmpldi2_sp32): Likewise.
3979 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
3981         * debug.h (struct gcc_debug_hooks): Add a
3982         register_main_translation_unit hook.
3983         * debug.c (do_nothing_debug_hooks): Provide a function for this
3984         new hook.
3985         * dbxout.c (dbx_debug_hooks): Likewise.
3986         * sdbout.c (sdb_debug_hooks): Likewise.
3987         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3988         * dwarf2out.c (main_translation_unit): New global variable.
3989         (dwarf2out_register_main_translation_unit): New function
3990         implementing the new hook.
3991         (dwarf2_debug_hooks): Assign
3992         dwarf2out_register_main_translation_unit to this new hook.
3993         (dwarf2out_init): Associate any main translation unit to
3994         comp_unit_die ().
3996 2015-06-11  Marek Polacek  <polacek@redhat.com>
3998         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
4000 2015-06-11  Marek Polacek  <polacek@redhat.com>
4002         * match.pd: Use single_use throughout.
4004 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4006         * config/arm/arm.c (arm_option_params_internal): When optimising
4007         for speed set max_insns_skipped when arm_restrict_it.
4009 2015-06-11  Christian Bruel  <christian.bruel@st.com>
4011         PR target/52144
4012         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
4013          macros in ...
4014         (arm_cpu_builtins): New function.
4015         (arm_pragma_target_parse): Call arm_cpu_builtins.
4016         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
4017         (arm_register_target_pragmas): Likewise.
4018         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
4019          Call arm_register_target_pragmas.
4020         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
4021         (arm_pragma_target_parse): Likewise.
4023 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
4025         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
4026         of the second operand.
4028 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
4030         PR target/66473
4031         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
4032         to prepare mask operand for AVX512 modes.
4034 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
4036         PR target/66474
4037         * doc/md.texi (Machine Constraints): Document that on the PowerPC
4038         if you use a constraint that targets a VSX register, you must use
4039         %x<n> in the template.
4041 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
4043         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
4044         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
4045         (define_insn "trap"): New definition.
4047 2015-06-10  Richard Biener  <rguenther@suse.de>
4049         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
4050         out from ...
4051         (vect_supported_load_permutation_p): ... here.  Handle
4052         supportable permutations in reductions.
4053         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
4054         for vectorizing strided group loads.
4056 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
4058         PR target/66470
4059         * config/i386/i386.c (ix86_split_long_move): For collisions
4060         involving direct tls segment refs, move the UNSPEC_TP possibly
4061         wrapped in ZERO_EXTEND out of the address for lea, to each of
4062         the memory loads.
4064 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4066         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
4067         dmb sy. Adjust tabs.
4069 2015-06-10  Tom de Vries  <tom@codesourcery.com>
4071         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
4073 2015-06-10  Martin Liska  <mliska@suse.cz>
4075         PR bootstrap/66471
4076         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
4077         all enum values in mem_alloc_origin.
4078         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
4079         name.
4080         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
4081         * bitmap.c (bitmap_register): Likewise.
4082         (dump_bitmap_statistics): Likewise.
4083         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
4084         (ggc_record_overhead): Likewise.
4085         * hash-map.h: Likewise.
4086         * hash-set.h: Likewise.
4087         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
4088         * hash-table.h: Likewise.
4089         * vec.c (vec_prefix::register_overhead): Likewise.
4090         (vec_prefix::release_overhead): Likewise.
4091         (dump_vec_loc_statistics): Likewise.
4093 2015-06-09  Christian Bruel  <christian.bruel@st.com>
4095         PR target/52144
4096         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
4097         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
4098         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
4099         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
4100         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
4101         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
4102         (arm_valid_target_attribute_p): Likewise.
4103         (arm_set_current_function, arm_can_inline_p): Likewise.
4104         (arm_valid_target_attribute_rec): Likewise.
4105         (arm_previous_fndecl): New variable.
4106         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
4107         (TARGET_CAN_INLINE_P): Define.
4108         (arm_asm_trampoline_template): Emit mode.
4109         (arm_file_start): Don't set unified syntax.
4110         (arm_declare_function_name): Set unified syntax and mode.
4111         (arm_option_override): Init target_option_default_node.
4112         and target_option_current_node.
4113         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
4114         (*call_symbol): Likewise.
4115         * doc/extend.texi: Document ARM/Thumb target attribute.
4116         * doc/invoke.texi: Likewise.
4118 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
4120         Revert:
4121         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
4122         PR rtl-optimization/64164
4123         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4124         * tree-ssa-copyrename.c: Removed.
4125         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4126         -ftree-coalesce-vars.
4127         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4128         * common.opt (ftree-copyrename): Ignore.
4129         (ftree-coalesce-inlined-vars): Likewise.
4130         * doc/invoke.texi: Remove the ignored options above.
4131         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4132         * tree-ssa-coalesce.h: ... here.
4133         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4134         headers required by it.
4135         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4136         across variables when flag_tree_coalesce_vars.  Check register
4137         use and promoted modes to allow coalescing.  Moved to
4138         tree-ssa-coalesce.c.
4139         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4140         with its member functions to tree-ssa-coalesce.c.
4141         (var_map_base_init): Likewise.  Renamed to
4142         compute_samebase_partition_bases.
4143         (partition_view_normal): Drop want_bases parameter.
4144         (partition_view_bitmap): Likewise.
4145         * tree-ssa-live.h: Adjust declarations.
4146         * tree-ssa-coalesce.c: Include explow.h.
4147         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4148         default defs at the entry point.
4149         (dump_part_var_map): New.
4150         (compute_optimized_partition_bases): New, called by...
4151         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4152         of compute_samebase_partition_bases.  Adjust.
4153         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4154         * cfgexpand.c (leader_merge): New.
4155         (get_rtl_for_parm_ssa_default_def): New.
4156         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4157         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4158         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4159         redundant MEM attr setting.
4160         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4161         from...
4162         (expand_one_stack_var): ... this.  New wrapper to check and
4163         skip already expanded SSA partitions.
4164         (record_alignment_for_reg_var): New, factored out of...
4165         (expand_one_var): ... this.
4166         (expand_one_ssa_partition): New.
4167         (adjust_one_expanded_partition_var): New.
4168         (expand_one_register_var): Check and skip already expanded SSA
4169         partitions.
4170         (expand_used_vars): Don't create DECLs for anonymous SSA
4171         names.  Expand all SSA partitions, then adjust all SSA names.
4172         (pass::execute): Replace the loops that set
4173         SA.partition_to_pseudo from partition leaders and cleared
4174         DECL_RTL for multi-location variables, and that which used to
4175         rename vars and set attrs, with one that clears DECL_RTL and
4176         checks that PARMs and RESULTs default_defs match DECL_RTL.
4177         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4178         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4179         * explow.c (promote_ssa_mode): New.
4180         * explow.h (promote_ssa_mode): Declare.
4181         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4182         * function.c: Include cfgexpand.h.
4183         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4184         (use_register_for_parm_decl): Wrapper for the above to
4185         special-case the result_ptr.
4186         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4187         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4188         multiple locations.
4189         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4190         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4191         (assign_parm_setup_block): Prefer SSA-assigned location.
4192         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
4193         if stack_parm is NULL.
4194         (assign_parm_setup_stack): Prefer SSA-assigned location.
4195         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4196         rtl before testing for pointer bounds.  Special-case result_ptr.
4197         (expand_function_start): Maybe reset DECL_RTL of result.
4198         Prefer SSA-assigned location for result and static chain.
4199         Factor out DECL_RESULT and SET_DECL_RTL.
4200         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4201         anonymous SSA names.  Use promote_ssa_mode.
4202         (get_temp_reg): Likewise.
4203         (remove_ssa_form): Adjust.
4204         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4205         and get its reg_usage for reg invalidation.
4206         (compute_bb_dataflow): Pass it insn.
4207         (emit_notes_in_bb): Likewise.
4208         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
4209         fail assert on conversion between unsigned types.
4211 2015-06-09  Tom de Vries  <tom@codesourcery.com>
4213         PR tree-optimization/65460
4214         * omp-low.c (expand_omp_target): Set parallelized_function on
4215         cgraph_node for child_fn.
4217 2015-06-09  Tom de Vries  <tom@codesourcery.com>
4219         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
4220         parallelized_function before add_new_function.
4222 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
4224         * gcc-plugin.h: Move decls to plugin.h and include it.
4225         * plugin.h: Relocate decls from gcc-plugin.h
4226         * ggc-page.c: Include required header files.
4227         * passes.c: Likewise.
4228         * cgraphunit.c: Likewise.
4230 2015-06-09  Tom de Vries  <tom@codesourcery.com>
4232         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
4234 2015-06-09  Jason Merrill  <jason@redhat.com>
4236         PR bootstrap/66448
4237         * toplev.c (check_global_declaration): Don't warn about a clone.
4239 2015-06-09  Marek Polacek  <polacek@redhat.com>
4241         PR tree-optimization/66299
4242         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
4243         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
4244         patterns.
4246 2015-06-09  Richard Biener  <rguenther@suse.de>
4248         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
4249         (vect_analyze_slp_instance): Instead do not falsely drop
4250         load permutations.
4252 2015-06-09  Richard Biener  <rguenther@suse.de>
4254         PR middle-end/66423
4255         * match.pd: Handle A % (unsigned)(1 << B).
4257 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
4259         * varasm.c (output_object_block_htab): Remove.
4260         (output_object_block_compare): New.
4261         (output_object_blocks): Sort named object_blocks before outputting
4262         them.
4264 2015-06-09  Richard Biener  <rguenther@suse.de>
4266         PR tree-optimization/66419
4267         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
4268         consider GROUP_GAP when detecting a perfect subchain.
4270 2015-06-09  Nick Clifton  <nickc@redhat.com>
4272         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
4273         place read only data in the .frodata section.
4275 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
4277         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
4278         (atomic_store<mode>): Likewise.
4280 2015-06-09  Richard Biener  <rguenther@suse.de>
4282         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
4284 2015-06-09  Richard Biener  <rguenther@suse.de>
4286         PR middle-end/66413
4287         * tree-inline.c (insert_init_debug_bind): Unshare value.
4289 2015-06-09  Richard Biener  <rguenther@suse.de>
4291         PR tree-optimization/66396
4292         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
4293         Rename virtual operands.
4295 2015-06-09  Tom de Vries  <tom@codesourcery.com>
4297         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
4298         always return false.
4300 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
4302         PR rtl-optimization/64164
4303         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4304         * tree-ssa-copyrename.c: Removed.
4305         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4306         -ftree-coalesce-vars.
4307         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4308         * common.opt (ftree-copyrename): Ignore.
4309         (ftree-coalesce-inlined-vars): Likewise.
4310         * doc/invoke.texi: Remove the ignored options above.
4311         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4312         * tree-ssa-coalesce.h: ... here.
4313         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4314         headers required by it.
4315         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4316         across variables when flag_tree_coalesce_vars.  Check register
4317         use and promoted modes to allow coalescing.  Moved to
4318         tree-ssa-coalesce.c.
4319         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4320         with its member functions to tree-ssa-coalesce.c.
4321         (var_map_base_init): Likewise.  Renamed to
4322         compute_samebase_partition_bases.
4323         (partition_view_normal): Drop want_bases parameter.
4324         (partition_view_bitmap): Likewise.
4325         * tree-ssa-live.h: Adjust declarations.
4326         * tree-ssa-coalesce.c: Include explow.h.
4327         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4328         default defs at the entry point.
4329         (dump_part_var_map): New.
4330         (compute_optimized_partition_bases): New, called by...
4331         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4332         of compute_samebase_partition_bases.  Adjust.
4333         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4334         * cfgexpand.c (leader_merge): New.
4335         (get_rtl_for_parm_ssa_default_def): New.
4336         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4337         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4338         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4339         redundant MEM attr setting.
4340         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4341         from...
4342         (expand_one_stack_var): ... this.  New wrapper to check and
4343         skip already expanded SSA partitions.
4344         (record_alignment_for_reg_var): New, factored out of...
4345         (expand_one_var): ... this.
4346         (expand_one_ssa_partition): New.
4347         (adjust_one_expanded_partition_var): New.
4348         (expand_one_register_var): Check and skip already expanded SSA
4349         partitions.
4350         (expand_used_vars): Don't create DECLs for anonymous SSA
4351         names.  Expand all SSA partitions, then adjust all SSA names.
4352         (pass::execute): Replace the loops that set
4353         SA.partition_to_pseudo from partition leaders and cleared
4354         DECL_RTL for multi-location variables, and that which used to
4355         rename vars and set attrs, with one that clears DECL_RTL and
4356         checks that PARMs and RESULTs default_defs match DECL_RTL.
4357         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4358         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4359         * explow.c (promote_ssa_mode): New.
4360         * explow.h (promote_ssa_mode): Declare.
4361         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4362         * function.c: Include cfgexpand.h.
4363         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4364         (use_register_for_parm_decl): Wrapper for the above to
4365         special-case the result_ptr.
4366         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4367         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4368         multiple locations.
4369         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4370         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4371         (assign_parm_setup_block): Prefer SSA-assigned location.
4372         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
4373         if stack_parm is NULL.
4374         (assign_parm_setup_stack): Prefer SSA-assigned location.
4375         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4376         rtl before testing for pointer bounds.  Special-case result_ptr.
4377         (expand_function_start): Maybe reset DECL_RTL of result.
4378         Prefer SSA-assigned location for result and static chain.
4379         Factor out DECL_RESULT and SET_DECL_RTL.
4380         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4381         anonymous SSA names.  Use promote_ssa_mode.
4382         (get_temp_reg): Likewise.
4383         (remove_ssa_form): Adjust.
4384         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4385         and get its reg_usage for reg invalidation.
4386         (compute_bb_dataflow): Pass it insn.
4387         (emit_notes_in_bb): Likewise.
4388         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
4389         fail assert on conversion between unsigned types.
4391 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
4393         PR debug/58315
4394         * tree-inline.c (reset_debug_binding): New.
4395         (reset_debug_bindings): Likewise.
4396         (expand_call_inline): Call it.
4398 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
4400         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
4401         TYPE_STRING_FLAG.
4403 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
4405         * lto-streamer-out.c (lto_output_location): Stream
4406         reserved locations correctly.
4407         * lto-streamer-in.c (lto_output_location): Likewise.
4409 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
4411         * coretypes.h: Include hash-table.h and hash-set.h for host files.
4412         * ggc.h: Don't include statistics.h>
4413         * hash-map.h: Remove all includes.
4414         * hash-set.h: Likewise.
4415         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
4416         the include list. Remove <new>.
4417         * inchash.h: Remove all includes.
4418         * mem-stats.h: Likewise.
4419         * vec.h: No special processing for generators or ggc.
4420         * alias.c : Adjust include files.
4421         * alloc-pool.c : Likewise.
4422         * alloc-pool.h : Likewise.
4423         * asan.c : Likewise.
4424         * attribs.c : Likewise.
4425         * auto-inc-dec.c : Likewise.
4426         * auto-profile.c : Likewise.
4427         * bb-reorder.c : Likewise.
4428         * bitmap.c : Likewise.
4429         * bitmap.h : Likewise.
4430         * bt-load.c : Likewise.
4431         * builtins.c : Likewise.
4432         * caller-save.c : Likewise.
4433         * calls.c : Likewise.
4434         * ccmp.c : Likewise.
4435         * cfg.c : Likewise.
4436         * cfganal.c : Likewise.
4437         * cfgbuild.c : Likewise.
4438         * cfgcleanup.c : Likewise.
4439         * cfgexpand.c : Likewise.
4440         * cfghooks.c : Likewise.
4441         * cfgloop.c : Likewise.
4442         * cfgloop.h : Likewise.
4443         * cfgloopanal.c : Likewise.
4444         * cfgloopmanip.c : Likewise.
4445         * cfgrtl.c : Likewise.
4446         * cgraph.c : Likewise.
4447         * cgraphbuild.c : Likewise.
4448         * cgraphclones.c : Likewise.
4449         * cgraphunit.c : Likewise.
4450         * cilk-common.c : Likewise.
4451         * combine-stack-adj.c : Likewise.
4452         * combine.c : Likewise.
4453         * compare-elim.c : Likewise.
4454         * context.c : Likewise.
4455         * convert.c : Likewise.
4456         * coverage.c : Likewise.
4457         * cppbuiltin.c : Likewise.
4458         * cprop.c : Likewise.
4459         * cse.c : Likewise.
4460         * cselib.c : Likewise.
4461         * data-streamer-in.c : Likewise.
4462         * data-streamer-out.c : Likewise.
4463         * data-streamer.c : Likewise.
4464         * data-streamer.h : Likewise.
4465         * dbxout.c : Likewise.
4466         * dce.c : Likewise.
4467         * ddg.c : Likewise.
4468         * debug.c : Likewise.
4469         * df-core.c : Likewise.
4470         * df-problems.c : Likewise.
4471         * df-scan.c : Likewise.
4472         * df.h : Likewise.
4473         * dfp.c : Likewise.
4474         * dojump.c : Likewise.
4475         * dominance.c : Likewise.
4476         * domwalk.c : Likewise.
4477         * double-int.c : Likewise.
4478         * dse.c : Likewise.
4479         * dumpfile.c : Likewise.
4480         * dwarf2asm.c : Likewise.
4481         * dwarf2cfi.c : Likewise.
4482         * dwarf2out.c : Likewise.
4483         * emit-rtl.c : Likewise.
4484         * et-forest.c : Likewise.
4485         * except.c : Likewise.
4486         * except.h : Likewise.
4487         * explow.c : Likewise.
4488         * expmed.c : Likewise.
4489         * expr.c : Likewise.
4490         * final.c : Likewise.
4491         * fixed-value.c : Likewise.
4492         * fold-const.c : Likewise.
4493         * function.c : Likewise.
4494         * fwprop.c : Likewise.
4495         * gcc-plugin.h : Likewise.
4496         * gcc.c : Likewise.
4497         * gcse-common.c : Likewise.
4498         * gcse.c : Likewise.
4499         * genattrtab.c : Likewise.
4500         * genautomata.c : Likewise.
4501         * genconditions.c : Likewise.
4502         * genemit.c : Likewise.
4503         * generic-match-head.c : Likewise.
4504         * genextract.c : Likewise.
4505         * gengtype-state.c : Likewise.
4506         * gengtype.c : Likewise.
4507         * genhooks.c : Likewise.
4508         * genmatch.c : Likewise.
4509         * genmodes.c : Likewise.
4510         * genrecog.c : Likewise.
4511         * gensupport.c : Likewise.
4512         * ggc-common.c : Likewise.
4513         * ggc-internal.h : Likewise.
4514         * ggc-none.c : Likewise.
4515         * ggc-page.c : Likewise.
4516         * gimple-builder.c : Likewise.
4517         * gimple-expr.c : Likewise.
4518         * gimple-fold.c : Likewise.
4519         * gimple-iterator.c : Likewise.
4520         * gimple-low.c : Likewise.
4521         * gimple-match-head.c : Likewise.
4522         * gimple-pretty-print.c : Likewise.
4523         * gimple-ssa-isolate-paths.c : Likewise.
4524         * gimple-ssa-strength-reduction.c : Likewise.
4525         * gimple-ssa.h : Likewise.
4526         * gimple-streamer-in.c : Likewise.
4527         * gimple-streamer-out.c : Likewise.
4528         * gimple-streamer.h : Likewise.
4529         * gimple-walk.c : Likewise.
4530         * gimple.c : Likewise.
4531         * gimplify-me.c : Likewise.
4532         * gimplify.c : Likewise.
4533         * godump.c : Likewise.
4534         * graph.c : Likewise.
4535         * graphds.c : Likewise.
4536         * graphite-blocking.c : Likewise.
4537         * graphite-dependences.c : Likewise.
4538         * graphite-interchange.c : Likewise.
4539         * graphite-isl-ast-to-gimple.c : Likewise.
4540         * graphite-optimize-isl.c : Likewise.
4541         * graphite-poly.c : Likewise.
4542         * graphite-scop-detection.c : Likewise.
4543         * graphite-sese-to-poly.c : Likewise.
4544         * graphite.c : Likewise.
4545         * haifa-sched.c : Likewise.
4546         * hard-reg-set.h : Likewise.
4547         * hw-doloop.c : Likewise.
4548         * ifcvt.c : Likewise.
4549         * inchash.c : Likewise.
4550         * incpath.c : Likewise.
4551         * init-regs.c : Likewise.
4552         * input.c : Likewise.
4553         * internal-fn.c : Likewise.
4554         * ipa-chkp.c : Likewise.
4555         * ipa-comdats.c : Likewise.
4556         * ipa-cp.c : Likewise.
4557         * ipa-devirt.c : Likewise.
4558         * ipa-icf-gimple.c : Likewise.
4559         * ipa-icf.c : Likewise.
4560         * ipa-inline-analysis.c : Likewise.
4561         * ipa-inline-transform.c : Likewise.
4562         * ipa-inline.c : Likewise.
4563         * ipa-polymorphic-call.c : Likewise.
4564         * ipa-profile.c : Likewise.
4565         * ipa-prop.c : Likewise.
4566         * ipa-pure-const.c : Likewise.
4567         * ipa-ref.c : Likewise.
4568         * ipa-reference.c : Likewise.
4569         * ipa-split.c : Likewise.
4570         * ipa-utils.c : Likewise.
4571         * ipa-visibility.c : Likewise.
4572         * ipa.c : Likewise.
4573         * ira-build.c : Likewise.
4574         * ira-color.c : Likewise.
4575         * ira-conflicts.c : Likewise.
4576         * ira-costs.c : Likewise.
4577         * ira-emit.c : Likewise.
4578         * ira-lives.c : Likewise.
4579         * ira.c : Likewise.
4580         * jump.c : Likewise.
4581         * langhooks.c : Likewise.
4582         * lcm.c : Likewise.
4583         * libfuncs.h : Likewise.
4584         * lists.c : Likewise.
4585         * loop-doloop.c : Likewise.
4586         * loop-init.c : Likewise.
4587         * loop-invariant.c : Likewise.
4588         * loop-iv.c : Likewise.
4589         * loop-unroll.c : Likewise.
4590         * lower-subreg.c : Likewise.
4591         * lra-assigns.c : Likewise.
4592         * lra-coalesce.c : Likewise.
4593         * lra-constraints.c : Likewise.
4594         * lra-eliminations.c : Likewise.
4595         * lra-lives.c : Likewise.
4596         * lra-remat.c : Likewise.
4597         * lra-spills.c : Likewise.
4598         * lra.c : Likewise.
4599         * lto-cgraph.c : Likewise.
4600         * lto-compress.c : Likewise.
4601         * lto-opts.c : Likewise.
4602         * lto-section-in.c : Likewise.
4603         * lto-section-out.c : Likewise.
4604         * lto-streamer-in.c : Likewise.
4605         * lto-streamer-out.c : Likewise.
4606         * lto-streamer.c : Likewise.
4607         * lto-streamer.h : Likewise.
4608         * mcf.c : Likewise.
4609         * mode-switching.c : Likewise.
4610         * modulo-sched.c : Likewise.
4611         * omega.c : Likewise.
4612         * omp-low.c : Likewise.
4613         * optabs.c : Likewise.
4614         * opts-global.c : Likewise.
4615         * opts.h : Likewise.
4616         * passes.c : Likewise.
4617         * plugin.c : Likewise.
4618         * postreload-gcse.c : Likewise.
4619         * postreload.c : Likewise.
4620         * predict.c : Likewise.
4621         * print-rtl.c : Likewise.
4622         * print-tree.c : Likewise.
4623         * profile.c : Likewise.
4624         * read-md.c : Likewise.
4625         * read-md.h : Likewise.
4626         * read-rtl.c : Likewise.
4627         * real.c : Likewise.
4628         * realmpfr.c : Likewise.
4629         * recog.c : Likewise.
4630         * ree.c : Likewise.
4631         * reg-stack.c : Likewise.
4632         * regcprop.c : Likewise.
4633         * reginfo.c : Likewise.
4634         * regrename.c : Likewise.
4635         * regstat.c : Likewise.
4636         * reload.c : Likewise.
4637         * reload1.c : Likewise.
4638         * reorg.c : Likewise.
4639         * resource.c : Likewise.
4640         * rtl-chkp.c : Likewise.
4641         * rtl.c : Likewise.
4642         * rtl.h : Likewise.
4643         * rtlanal.c : Likewise.
4644         * rtlhash.c : Likewise.
4645         * rtlhash.h : Likewise.
4646         * rtlhooks.c : Likewise.
4647         * sanopt.c : Likewise.
4648         * sched-deps.c : Likewise.
4649         * sched-ebb.c : Likewise.
4650         * sched-rgn.c : Likewise.
4651         * sched-vis.c : Likewise.
4652         * sdbout.c : Likewise.
4653         * sel-sched-dump.c : Likewise.
4654         * sel-sched-ir.c : Likewise.
4655         * sel-sched-ir.h : Likewise.
4656         * sel-sched.c : Likewise.
4657         * sese.c : Likewise.
4658         * shrink-wrap.c : Likewise.
4659         * shrink-wrap.h : Likewise.
4660         * simplify-rtx.c : Likewise.
4661         * stack-ptr-mod.c : Likewise.
4662         * statistics.c : Likewise.
4663         * stmt.c : Likewise.
4664         * stor-layout.c : Likewise.
4665         * store-motion.c : Likewise.
4666         * stringpool.c : Likewise.
4667         * symtab.c : Likewise.
4668         * target-globals.c : Likewise.
4669         * targhooks.c : Likewise.
4670         * tlink.c : Likewise.
4671         * toplev.c : Likewise.
4672         * tracer.c : Likewise.
4673         * trans-mem.c : Likewise.
4674         * tree-affine.c : Likewise.
4675         * tree-affine.h : Likewise.
4676         * tree-browser.c : Likewise.
4677         * tree-call-cdce.c : Likewise.
4678         * tree-cfg.c : Likewise.
4679         * tree-cfgcleanup.c : Likewise.
4680         * tree-chkp-opt.c : Likewise.
4681         * tree-chkp.c : Likewise.
4682         * tree-chrec.c : Likewise.
4683         * tree-complex.c : Likewise.
4684         * tree-data-ref.c : Likewise.
4685         * tree-dfa.c : Likewise.
4686         * tree-diagnostic.c : Likewise.
4687         * tree-dump.c : Likewise.
4688         * tree-eh.c : Likewise.
4689         * tree-eh.h : Likewise.
4690         * tree-emutls.c : Likewise.
4691         * tree-hasher.h : Likewise.
4692         * tree-if-conv.c : Likewise.
4693         * tree-inline.c : Likewise.
4694         * tree-inline.h : Likewise.
4695         * tree-into-ssa.c : Likewise.
4696         * tree-iterator.c : Likewise.
4697         * tree-loop-distribution.c : Likewise.
4698         * tree-nested.c : Likewise.
4699         * tree-nrv.c : Likewise.
4700         * tree-object-size.c : Likewise.
4701         * tree-outof-ssa.c : Likewise.
4702         * tree-parloops.c : Likewise.
4703         * tree-phinodes.c : Likewise.
4704         * tree-predcom.c : Likewise.
4705         * tree-pretty-print.c : Likewise.
4706         * tree-profile.c : Likewise.
4707         * tree-scalar-evolution.c : Likewise.
4708         * tree-sra.c : Likewise.
4709         * tree-ssa-address.c : Likewise.
4710         * tree-ssa-alias.c : Likewise.
4711         * tree-ssa-ccp.c : Likewise.
4712         * tree-ssa-coalesce.c : Likewise.
4713         * tree-ssa-copy.c : Likewise.
4714         * tree-ssa-copyrename.c : Likewise.
4715         * tree-ssa-dce.c : Likewise.
4716         * tree-ssa-dom.c : Likewise.
4717         * tree-ssa-dse.c : Likewise.
4718         * tree-ssa-forwprop.c : Likewise.
4719         * tree-ssa-ifcombine.c : Likewise.
4720         * tree-ssa-live.c : Likewise.
4721         * tree-ssa-loop-ch.c : Likewise.
4722         * tree-ssa-loop-im.c : Likewise.
4723         * tree-ssa-loop-ivcanon.c : Likewise.
4724         * tree-ssa-loop-ivopts.c : Likewise.
4725         * tree-ssa-loop-manip.c : Likewise.
4726         * tree-ssa-loop-niter.c : Likewise.
4727         * tree-ssa-loop-prefetch.c : Likewise.
4728         * tree-ssa-loop-unswitch.c : Likewise.
4729         * tree-ssa-loop.c : Likewise.
4730         * tree-ssa-math-opts.c : Likewise.
4731         * tree-ssa-operands.c : Likewise.
4732         * tree-ssa-phiopt.c : Likewise.
4733         * tree-ssa-phiprop.c : Likewise.
4734         * tree-ssa-pre.c : Likewise.
4735         * tree-ssa-propagate.c : Likewise.
4736         * tree-ssa-reassoc.c : Likewise.
4737         * tree-ssa-sccvn.c : Likewise.
4738         * tree-ssa-scopedtables.c : Likewise.
4739         * tree-ssa-sink.c : Likewise.
4740         * tree-ssa-strlen.c : Likewise.
4741         * tree-ssa-structalias.c : Likewise.
4742         * tree-ssa-tail-merge.c : Likewise.
4743         * tree-ssa-ter.c : Likewise.
4744         * tree-ssa-threadedge.c : Likewise.
4745         * tree-ssa-threadupdate.c : Likewise.
4746         * tree-ssa-uncprop.c : Likewise.
4747         * tree-ssa-uninit.c : Likewise.
4748         * tree-ssa.c : Likewise.
4749         * tree-ssanames.c : Likewise.
4750         * tree-stdarg.c : Likewise.
4751         * tree-streamer-in.c : Likewise.
4752         * tree-streamer-out.c : Likewise.
4753         * tree-streamer.c : Likewise.
4754         * tree-streamer.h : Likewise.
4755         * tree-switch-conversion.c : Likewise.
4756         * tree-tailcall.c : Likewise.
4757         * tree-vect-data-refs.c : Likewise.
4758         * tree-vect-generic.c : Likewise.
4759         * tree-vect-loop-manip.c : Likewise.
4760         * tree-vect-loop.c : Likewise.
4761         * tree-vect-patterns.c : Likewise.
4762         * tree-vect-slp.c : Likewise.
4763         * tree-vect-stmts.c : Likewise.
4764         * tree-vectorizer.c : Likewise.
4765         * tree-vectorizer.h : Likewise.
4766         * tree-vrp.c : Likewise.
4767         * tree.c : Likewise.
4768         * tsan.c : Likewise.
4769         * ubsan.c : Likewise.
4770         * valtrack.c : Likewise.
4771         * valtrack.h : Likewise.
4772         * value-prof.c : Likewise.
4773         * var-tracking.c : Likewise.
4774         * varasm.c : Likewise.
4775         * varpool.c : Likewise.
4776         * vec.c: Likewise.
4777         * vmsdbgout.c : Likewise.
4778         * vtable-verify.c : Likewise.
4779         * vtable-verify.h : Likewise.
4780         * web.c : Likewise.
4781         * wide-int.cc : Likewise.
4782         * xcoffout.c : Likewise.
4783         * config/aarch64/aarch64-builtins.c : Likewise.
4784         * config/aarch64/aarch64.c : Likewise.
4785         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
4786         * config/alpha/alpha.c : Likewise.
4787         * config/arc/arc.c : Likewise.
4788         * config/arm/aarch-common.c : Likewise.
4789         * config/arm/arm-builtins.c : Likewise.
4790         * config/arm/arm-c.c : Likewise.
4791         * config/arm/arm.c : Likewise.
4792         * config/avr/avr-c.c : Likewise.
4793         * config/avr/avr-log.c : Likewise.
4794         * config/avr/avr.c : Likewise.
4795         * config/bfin/bfin.c : Likewise.
4796         * config/c6x/c6x.c : Likewise.
4797         * config/cr16/cr16.c : Likewise.
4798         * config/cris/cris.c : Likewise.
4799         * config/darwin-c.c : Likewise.
4800         * config/darwin.c : Likewise.
4801         * config/default-c.c : Likewise.
4802         * config/epiphany/epiphany.c : Likewise.
4803         * config/epiphany/mode-switch-use.c : Likewise.
4804         * config/epiphany/resolve-sw-modes.c : Likewise.
4805         * config/fr30/fr30.c : Likewise.
4806         * config/frv/frv.c : Likewise.
4807         * config/ft32/ft32.c : Likewise.
4808         * config/glibc-c.c : Likewise.
4809         * config/h8300/h8300.c : Likewise.
4810         * config/i386/i386-c.c : Likewise.
4811         * config/i386/i386.c : Likewise.
4812         * config/i386/msformat-c.c : Likewise.
4813         * config/i386/winnt-cxx.c : Likewise.
4814         * config/i386/winnt-stubs.c : Likewise.
4815         * config/i386/winnt.c : Likewise.
4816         * config/ia64/ia64-c.c : Likewise.
4817         * config/ia64/ia64.c : Likewise.
4818         * config/iq2000/iq2000.c : Likewise.
4819         * config/lm32/lm32.c : Likewise.
4820         * config/m32c/m32c-pragma.c : Likewise.
4821         * config/m32c/m32c.c : Likewise.
4822         * config/m32r/m32r.c : Likewise.
4823         * config/m68k/m68k.c : Likewise.
4824         * config/mcore/mcore.c : Likewise.
4825         * config/mep/mep-pragma.c : Likewise.
4826         * config/mep/mep.c : Likewise.
4827         * config/microblaze/microblaze-c.c : Likewise.
4828         * config/microblaze/microblaze.c : Likewise.
4829         * config/mips/mips.c : Likewise.
4830         * config/mmix/mmix.c : Likewise.
4831         * config/mn10300/mn10300.c : Likewise.
4832         * config/moxie/moxie.c : Likewise.
4833         * config/msp430/msp430-c.c : Likewise.
4834         * config/msp430/msp430.c : Likewise.
4835         * config/nds32/nds32-cost.c : Likewise.
4836         * config/nds32/nds32-fp-as-gp.c : Likewise.
4837         * config/nds32/nds32-intrinsic.c : Likewise.
4838         * config/nds32/nds32-isr.c : Likewise.
4839         * config/nds32/nds32-md-auxiliary.c : Likewise.
4840         * config/nds32/nds32-memory-manipulation.c : Likewise.
4841         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
4842         * config/nds32/nds32-predicates.c : Likewise.
4843         * config/nds32/nds32.c : Likewise.
4844         * config/nios2/nios2.c : Likewise.
4845         * config/nvptx/nvptx.c : Likewise.
4846         * config/pa/pa.c : Likewise.
4847         * config/pdp11/pdp11.c : Likewise.
4848         * config/rl78/rl78-c.c : Likewise.
4849         * config/rl78/rl78.c : Likewise.
4850         * config/rs6000/rs6000-c.c : Likewise.
4851         * config/rs6000/rs6000.c : Likewise.
4852         * config/rx/rx.c : Likewise.
4853         * config/s390/s390-c.c : Likewise.
4854         * config/s390/s390.c : Likewise.
4855         * config/sh/sh-c.c : Likewise.
4856         * config/sh/sh-mem.cc : Likewise.
4857         * config/sh/sh.c : Likewise.
4858         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
4859         * config/sh/sh_treg_combine.cc : Likewise.
4860         * config/sol2-c.c : Likewise.
4861         * config/sol2-cxx.c : Likewise.
4862         * config/sol2-stubs.c : Likewise.
4863         * config/sol2.c : Likewise.
4864         * config/sparc/sparc-c.c : Likewise.
4865         * config/sparc/sparc.c : Likewise.
4866         * config/spu/spu-c.c : Likewise.
4867         * config/spu/spu.c : Likewise.
4868         * config/stormy16/stormy16.c : Likewise.
4869         * config/tilegx/mul-tables.c : Likewise.
4870         * config/tilegx/tilegx-c.c : Likewise.
4871         * config/tilegx/tilegx.c : Likewise.
4872         * config/tilepro/mul-tables.c : Likewise.
4873         * config/tilepro/tilepro-c.c : Likewise.
4874         * config/tilepro/tilepro.c : Likewise.
4875         * config/v850/v850-c.c : Likewise.
4876         * config/v850/v850.c : Likewise.
4877         * config/vax/vax.c : Likewise.
4878         * config/visium/visium.c : Likewise.
4879         * config/vms/vms-c.c : Likewise.
4880         * config/vms/vms.c : Likewise.
4881         * config/vxworks.c : Likewise.
4882         * config/winnt-c.c : Likewise.
4883         * config/xtensa/xtensa.c : Likewise.
4885 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
4887         PR lto/65378
4888         * ipa-utils.h (warn_types_mismatch): Update prototype.
4889         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
4890         parameters.
4891         (type_mismatch_p): New function.
4892         (warn_types_mismatch): Reorg to work better on non-C++ types.
4893         (odr_types_equivalent_p): Add loc1/loc2 parameters.
4894         (add_type_duplicate): Update.
4896 2015-06-08  Tom de Vries  <tom@codesourcery.com>
4898         PR rtl-optimization/66444
4899         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
4900         call_used_regs.
4902 2015-06-08  Richard Biener  <rguenther@suse.de>
4904         PR tree-optimization/66422
4905         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
4906         block after inserted gcc_unreachable.
4908 2015-06-08  Nick Clifton  <nickc@redhat.com>
4910         * config/rx/rx.c (rx_function_value): Do not promote vector types.
4911         (rx_promote_function_mode): Likewise.
4912         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
4914 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
4916         * genattrtab.c (insn_alternatives): Change type from int *
4917         to uint64_t *.
4918         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
4919         (get_attr_value): Change type of num_alt to uint64_t.
4920         (compute_alternative_mask): Change return type from
4921         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
4922         (make_alternative_compare, mk_attr_alt): Change argument type
4923         from int to uint64_t.
4924         (simplify_test_exp): Change type of i from int to uint64_t.
4925         Shift ((uint64_t) 1) instead of 1 up.
4926         (main): Adjust oballocvec first argument from int to uint64_t.
4927         Shift ((uint64_t) 1) instead of 1 up.
4929 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4931         PR other/65366
4932         * gdbhooks.py: Import sys.
4933         (intptr): New function.  Replace int(...) by intptr(...).
4935 2015-06-08  Richard Biener  <rguenther@suse.de>
4937         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
4938         adjustment for gaps at the end of a SLP load group properly.
4939         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
4940         all permutations we can generate.
4941         (vect_transform_slp_perm_load): Use the correct group-size.
4943 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
4945         * genmatch.c (expr::gen_transform): For conditions, guess the type
4946         from the second operand.
4948 2015-06-08  Tom de Vries  <tom@codesourcery.com>
4950         PR tree-optimization/66442
4951         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
4952         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
4953         if the loop latch is not a singleton.  Use
4954         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
4956 2015-06-08  Marek Polacek  <polacek@redhat.com>
4958         PR sanitizer/66452
4959         * toplev.c (check_global_declaration): Don't warn about artificial
4960         decls.
4962 2015-06-08  Tom de Vries  <tom@codesourcery.com>
4964         PR tree-optimization/66436
4965         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
4966         dump file.
4967         * gimplify.c: Add tree-dump.h include.
4968         (gimplify_function_tree): Dump function to gimple dump file.
4969         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
4970         dump file.
4972 2015-06-08  Tom de Vries  <tom@codesourcery.com>
4974         PR tree-optimization/66435
4975         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
4976         function.
4978 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
4980         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
4981         of ptr_type_node to not be ptr_to_node.
4982         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
4983         TREE_TYPE of pointers.
4984         * gimple-expr.c (useless_type_conversion): Reorder the check for
4985         function pointers and TYPE_CANONICAL.
4987 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
4989         PR bootstrap/66319
4990         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
4991         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
4992         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
4993         later.
4994         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
4995         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
4996         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
4997         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
4998         and non iso if unix2003.
5000 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
5002         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
5004 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
5006         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
5007         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
5008         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
5009         except.c, final.c, function.c, gcse-common.c, genemit.c,
5010         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
5011         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
5012         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
5013         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
5014         more derived ones.
5016 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
5018         * combine.c (combine_split_insns): Remove cast.
5019         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
5020         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
5021         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
5022         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
5023         * genemit.c (gen_split): Change return type of generated functions to
5024         rtx_insn.
5025         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
5026         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
5027         gen_peephole2_* functions.
5028         (print_subroutine, main): Likewise.
5029         * recog.c (peephole2_optimize): Remove cast.
5030         (peep2_next_insn): Promote return type to rtx_insn.
5031         * recog.h (peep2_next_insn): Fix prototype.
5032         * rtl.h (try_split, split_insns): Likewise.
5034 2015-06-06  DJ Delorie  <dj@redhat.com>
5036         * config/msp430/msp430.c (msp430_asm_integer): Support addition
5037         and subtraction too.
5039 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
5041         PR target/66410
5042         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
5043         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
5044         instead of Snd.  Disparage Sid/z alternative with '^'.
5046 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
5048         * dwarf2out.c: Remove deferred_locations*.
5049         (dwarf2_debug_hooks): Add early_finish hook.
5050         Remove global_decl hook.
5051         Add early_global_decl and late_global_decl hook.
5052         New global early_dwarf.
5053         New structure set_early_dwarf.
5054         (output_die): Indicate whether a DIE was generated early
5055         when generating assembly with -dA.
5056         (struct limbo_die_struct): Document created_for field.
5057         Remove file_table_last_lookup.
5058         (remove_AT): Return TRUE if successful.
5059         (remove_child_TAG): Clear die_parent.
5060         (reparent_child): New function abstracted from...
5061         (splice_child_die): ...here.
5062         (new_die): ICE if a DIE ends up in limbo too late.
5063         (check_die): New.
5064         (defer_location): Remove.
5065         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
5066         (fill_variable_array_bounds): New.
5067         (decl_start_label): Call fill_variable_array_bounds.
5068         (gen_formal_parameter_die): Rewrite to reuse previously generated
5069         DIEs.
5070         (gen_subprogram_die): Same.
5071         (gen_variable_die): Same.
5072         (gen_const_die): Same.
5073         (gen_label_die): Same.
5074         (gen_lexical_block_die): Same.
5075         (decl_will_get_specification_p): New.
5076         (local_function_static): New.
5077         (gen_struct_or_union_type_die): Fill in variable-length fields.
5078         (gen_typedef_die): Fill in variable-length typedefs.
5079         (gen_tagged_type_die): Gracefully return on error_mark_node.
5080         Handle re-entrancy.
5081         (gen_type_die_with_usage): Handle variable-length types.
5082         Remove duplicate code for ARRAY_TYPE case.
5083         (process_scope_var): Only process imported modules during early
5084         dwarf.
5085         (dwarf2out_early_global_decl): New.
5086         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
5087         (dwarf2out_type_decl): Set early_dwarf while calling
5088         dwarf2out_decl.
5089         (dwarf2out_decl): Verify that we did not recreate a previously
5090         generated DIE.
5091         Do not return on DECL_EXTERNALs in VAR_DECLs.
5092         Abstract some code to local_function_static.
5093         (lookup_filename): Remove use of file_table_last_lookup.
5094         Gracefully exit on missing file_name.
5095         (dwarf2out_finish): Verify limbo list.
5096         Remove deferred_locations_list use.
5097         Move deferred_asm_name and limbo flushing to...
5098         (dwarf2out_early_finish): ...here.  New.
5099         (dwarf2out_c_finalize): Remove set of deferred_location_list,
5100         deferred_asm_name, and file_table_last_lookup.
5101         * cgraph.h (referred_to_p): Add default argument.
5102         * cgraphunit.c (referred_to_p): Add and handle include_self
5103         argument.
5104         (analyze_functions): Add first_time argument.
5105         Call check_global_declaration for all symbols.
5106         Call late_global_decl for nodes for moribund nodes.
5107         (finalize_compilation_unit): Add new argument to
5108         analyze_functions.
5109         Call early_global_decl for functions.
5110         Call early_finish debug hook.
5111         * dbxout.c (dbxout_early_global_decl): New.
5112         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
5113         (dbx_debug_hooks): Add new hooks.
5114         (xcoff_debug_hooks): Same.
5115         * debug.c (do_nothing_debug_hooks): Add early_finish field.
5116         Add early and late debug hooks.
5117         Remove global_decl hook.
5118         * debug.h (struct gcc_debug_hooks): Add early_finish,
5119         early_global_decl, and late_global_decl fields.
5120         Remove global_decl field.
5121         Document gcc_debug_hooks.
5122         * gengtype.c (output_typename): Remove.
5123         * godump.c (go_early_global_decl): New.
5124         (go_late_global_decl): New.
5125         (go_global_decl): Remove.
5126         (dump_go_spec_init): Remove global_decl.  Add
5127         {early,late}_global_decl.
5128         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
5129         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
5130         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
5131         (write_global_declarations): Remove.
5132         (global_decl_processing): New.
5133         * langhooks.h (struct lang_hooks_for_decls): Remove
5134         final_write_globals field.
5135         Add post_compilation_parsing_cleanups field.
5136         * passes.c (rest_of_decl_compilation): Call early_global_decl.
5137         * sdbout.c: Add early and late_global_decl hooks.  Remove
5138         sdbout_global_decl hook.
5139         Add early_finish field for sdb_debug_hooks.
5140         (sdbout_global_decl): Remove.
5141         (sdbout_early_global_decl): New.
5142         (sdbout_late_global_decl): New.
5143         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
5144         * toplev.c (check_global_declaration): Rename from
5145         check_global_declaration_1.
5146         Adapt to use symtab infrastructure.
5147         (check_global_declarations): Remove.
5148         (emit_debug_global_declarations): Remove.
5149         (compile_file): Remove call to final_write_globals langhook.
5150         Run the actual compilation process.
5151         Perform any post compilation parser cleanups.
5152         Generate late debug info.
5153         * toplev.h (check_global_declaration): New.
5154         (check_global_declaration_1): Remove.
5155         (check_global_declarations): Remove.
5156         (write_global_declarations): Remove.
5157         (emit_debug_global_declarations): Remove.
5158         (global_decl_processing): New.
5159         * tree-core.h (struct tree_block): Add DIE field.
5160         * tree.h (BLOCK_DIE): New.
5161         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
5162         throughout.
5163         (vmsdbgout_early_global_decl): New.
5164         (vmsdbgout_late_global_decl): New.
5165         Add early_finish debug hook field to vmsdbg_debug_hooks.
5166         Remove vmsdbgout_decl to vmsdbgout_function_decl.
5167         Add early and late_global_decl debug hooks.
5169 2015-06-05  Julian Brown  <julian@codesourcery.com>
5170             Sandra Loosemore  <sandra@codesourcery.com>
5172         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
5173         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
5174         to print-sysroot-suffix.sh script.
5176 2015-06-05  Tom de Vries  <tom@codesourcery.com>
5178         merge from gomp4 branch:
5179         2015-05-28  Tom de Vries  <tom@codesourcery.com>
5181         PR tree-optimization/65443
5182         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
5183         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
5184         (try_transform_to_exit_first_loop_alt): New function.
5185         (transform_to_exit_first_loop): Use
5186         try_transform_to_exit_first_loop_alt.
5188 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
5190         * builtins.c (expand_builtin_atomic_compare_exchange): Call
5191         emit_cmp_and_jump_insns with the mode of target.
5193 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5195         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
5197 2015-06-04  DJ Delorie  <dj@redhat.com>
5199         * config/msp430/msp430.md (movsi_s): New.  Special case for
5200         storing a 20-bit symbol into a 32-bit register.
5201         * config/msp430/msp430.c (msp430_subreg): Add support for it.
5202         * config/msp430/predicates.md (msp430_symbol_operand): New.
5204 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
5206         * c-family/c-common.c (noplt): New attribute.
5207         (handle_noplt_attribute): New handler.
5208         * calls.c (prepare_call_address): Check for noplt
5209         attribute.
5210         * config/i386/i386.c (ix86_expand_call): Check
5211         for noplt attribute.
5212         (ix86_nopic_noplt_attribute_p): New function.
5213         (ix86_output_call_insn): Output indirect call for non-pic
5214         no plt calls.
5215         * doc/extend.texi (noplt): Document new attribute.
5216         * doc/invoke.texi: Document new attribute.
5218 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
5220         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
5221         real.h, and fixed-value.h when included in host source files.
5222         * double-int.h: Remove redundant #includes listed above.
5223         * fixed-value.h: Likewise.
5224         * real.h: Likewise.
5225         * wide-int.h: Likewise.
5226         * inchash.h: Likewise.
5227         * rtl.h: Add some include files When included from a generator file.
5228         * target.h: Remove wide-int.h and insn-modes.h from the include list.
5229         * internal-fn.h: Don't include coretypes.h.
5230         * alias.c: Adjust includes for restructured coretypes.h.
5231         * asan.c: Likewise.
5232         * attribs.c: Likewise.
5233         * auto-inc-dec.c: Likewise.
5234         * auto-profile.c: Likewise.
5235         * bb-reorder.c: Likewise.
5236         * bt-load.c: Likewise.
5237         * builtins.c: Likewise.
5238         * caller-save.c: Likewise.
5239         * calls.c: Likewise.
5240         * ccmp.c: Likewise.
5241         * cfg.c: Likewise.
5242         * cfganal.c: Likewise.
5243         * cfgbuild.c: Likewise.
5244         * cfgcleanup.c: Likewise.
5245         * cfgexpand.c: Likewise.
5246         * cfghooks.c: Likewise.
5247         * cfgloop.c: Likewise.
5248         * cfgloop.h: Likewise.
5249         * cfgloopanal.c: Likewise.
5250         * cfgloopmanip.c: Likewise.
5251         * cfgrtl.c: Likewise.
5252         * cgraph.c: Likewise.
5253         * cgraphbuild.c: Likewise.
5254         * cgraphclones.c: Likewise.
5255         * cgraphunit.c: Likewise.
5256         * cilk-common.c: Likewise.
5257         * combine-stack-adj.c: Likewise.
5258         * combine.c: Likewise.
5259         * compare-elim.c: Likewise.
5260         * convert.c: Likewise.
5261         * coverage.c: Likewise.
5262         * cppbuiltin.c: Likewise.
5263         * cprop.c: Likewise.
5264         * cse.c: Likewise.
5265         * cselib.c: Likewise.
5266         * data-streamer-in.c: Likewise.
5267         * data-streamer-out.c: Likewise.
5268         * data-streamer.c: Likewise.
5269         * dbxout.c: Likewise.
5270         * dce.c: Likewise.
5271         * ddg.c: Likewise.
5272         * debug.c: Likewise.
5273         * df-core.c: Likewise.
5274         * df-problems.c: Likewise.
5275         * df-scan.c: Likewise.
5276         * df.h: Likewise.
5277         * dfp.c: Likewise.
5278         * dojump.c: Likewise.
5279         * dominance.c: Likewise.
5280         * domwalk.c: Likewise.
5281         * double-int.c: Likewise.
5282         * dse.c: Likewise.
5283         * dumpfile.c: Likewise.
5284         * dwarf2asm.c: Likewise.
5285         * dwarf2cfi.c: Likewise.
5286         * dwarf2out.c: Likewise.
5287         * dwarf2out.h: Likewise.
5288         * emit-rtl.c: Likewise.
5289         * et-forest.c: Likewise.
5290         * except.c: Likewise.
5291         * explow.c: Likewise.
5292         * expmed.c: Likewise.
5293         * expr.c: Likewise.
5294         * final.c: Likewise.
5295         * fixed-value.c: Likewise.
5296         * fold-const.c: Likewise.
5297         * function.c: Likewise.
5298         * fwprop.c: Likewise.
5299         * gcc-plugin.h: Likewise.
5300         * gcse.c: Likewise.
5301         * generic-match-head.c: Likewise.
5302         * ggc-page.c: Likewise.
5303         * gimple-builder.c: Likewise.
5304         * gimple-expr.c: Likewise.
5305         * gimple-fold.c: Likewise.
5306         * gimple-iterator.c: Likewise.
5307         * gimple-low.c: Likewise.
5308         * gimple-match-head.c: Likewise.
5309         * gimple-pretty-print.c: Likewise.
5310         * gimple-ssa-isolate-paths.c: Likewise.
5311         * gimple-ssa-strength-reduction.c: Likewise.
5312         * gimple-streamer-in.c: Likewise.
5313         * gimple-streamer-out.c: Likewise.
5314         * gimple-streamer.h: Likewise.
5315         * gimple-walk.c: Likewise.
5316         * gimple.c: Likewise.
5317         * gimplify-me.c: Likewise.
5318         * gimplify.c: Likewise.
5319         * godump.c: Likewise.
5320         * graph.c: Likewise.
5321         * graphite-blocking.c: Likewise.
5322         * graphite-dependences.c: Likewise.
5323         * graphite-interchange.c: Likewise.
5324         * graphite-isl-ast-to-gimple.c: Likewise.
5325         * graphite-optimize-isl.c: Likewise.
5326         * graphite-poly.c: Likewise.
5327         * graphite-scop-detection.c: Likewise.
5328         * graphite-sese-to-poly.c: Likewise.
5329         * graphite.c: Likewise.
5330         * haifa-sched.c: Likewise.
5331         * hooks.h: Likewise.
5332         * hw-doloop.c: Likewise.
5333         * ifcvt.c: Likewise.
5334         * incpath.c: Likewise.
5335         * init-regs.c: Likewise.
5336         * internal-fn.c: Likewise.
5337         * ipa-chkp.c: Likewise.
5338         * ipa-comdats.c: Likewise.
5339         * ipa-cp.c: Likewise.
5340         * ipa-devirt.c: Likewise.
5341         * ipa-icf-gimple.c: Likewise.
5342         * ipa-icf.c: Likewise.
5343         * ipa-inline-analysis.c: Likewise.
5344         * ipa-inline-transform.c: Likewise.
5345         * ipa-inline.c: Likewise.
5346         * ipa-polymorphic-call.c: Likewise.
5347         * ipa-profile.c: Likewise.
5348         * ipa-prop.c: Likewise.
5349         * ipa-pure-const.c: Likewise.
5350         * ipa-ref.c: Likewise.
5351         * ipa-reference.c: Likewise.
5352         * ipa-split.c: Likewise.
5353         * ipa-utils.c: Likewise.
5354         * ipa-visibility.c: Likewise.
5355         * ipa.c: Likewise.
5356         * ira-build.c: Likewise.
5357         * ira-color.c: Likewise.
5358         * ira-conflicts.c: Likewise.
5359         * ira-costs.c: Likewise.
5360         * ira-emit.c: Likewise.
5361         * ira-lives.c: Likewise.
5362         * ira.c: Likewise.
5363         * jump.c: Likewise.
5364         * langhooks.c: Likewise.
5365         * lcm.c: Likewise.
5366         * loop-doloop.c: Likewise.
5367         * loop-init.c: Likewise.
5368         * loop-invariant.c: Likewise.
5369         * loop-iv.c: Likewise.
5370         * loop-unroll.c: Likewise.
5371         * lower-subreg.c: Likewise.
5372         * lra-assigns.c: Likewise.
5373         * lra-coalesce.c: Likewise.
5374         * lra-constraints.c: Likewise.
5375         * lra-eliminations.c: Likewise.
5376         * lra-lives.c: Likewise.
5377         * lra-remat.c: Likewise.
5378         * lra-spills.c: Likewise.
5379         * lra.c: Likewise.
5380         * lto-cgraph.c: Likewise.
5381         * lto-compress.c: Likewise.
5382         * lto-opts.c: Likewise.
5383         * lto-section-in.c: Likewise.
5384         * lto-section-out.c: Likewise.
5385         * lto-streamer-in.c: Likewise.
5386         * lto-streamer-out.c: Likewise.
5387         * lto-streamer.c: Likewise.
5388         * mcf.c: Likewise.
5389         * mode-switching.c: Likewise.
5390         * modulo-sched.c: Likewise.
5391         * omega.c: Likewise.
5392         * omp-low.c: Likewise.
5393         * optabs.c: Likewise.
5394         * opts-global.c: Likewise.
5395         * passes.c: Likewise.
5396         * plugin.c: Likewise.
5397         * postreload-gcse.c: Likewise.
5398         * postreload.c: Likewise.
5399         * predict.c: Likewise.
5400         * print-rtl.c: Likewise.
5401         * print-tree.c: Likewise.
5402         * profile.c: Likewise.
5403         * real.c: Likewise.
5404         * realmpfr.c: Likewise.
5405         * realmpfr.h: Likewise.
5406         * recog.c: Likewise.
5407         * ree.c: Likewise.
5408         * reg-stack.c: Likewise.
5409         * regcprop.c: Likewise.
5410         * reginfo.c: Likewise.
5411         * regrename.c: Likewise.
5412         * regs.h: Likewise.
5413         * regstat.c: Likewise.
5414         * reload.c: Likewise.
5415         * reload1.c: Likewise.
5416         * reorg.c: Likewise.
5417         * resource.c: Likewise.
5418         * rtl-chkp.c: Likewise.
5419         * rtlanal.c: Likewise.
5420         * rtlhooks.c: Likewise.
5421         * sanopt.c: Likewise.
5422         * sched-deps.c: Likewise.
5423         * sched-ebb.c: Likewise.
5424         * sched-rgn.c: Likewise.
5425         * sched-vis.c: Likewise.
5426         * sdbout.c: Likewise.
5427         * sel-sched-dump.c: Likewise.
5428         * sel-sched-ir.c: Likewise.
5429         * sel-sched.c: Likewise.
5430         * sese.c: Likewise.
5431         * shrink-wrap.c: Likewise.
5432         * shrink-wrap.h: Likewise.
5433         * simplify-rtx.c: Likewise.
5434         * stack-ptr-mod.c: Likewise.
5435         * statistics.c: Likewise.
5436         * stmt.c: Likewise.
5437         * stor-layout.c: Likewise.
5438         * store-motion.c: Likewise.
5439         * stringpool.c: Likewise.
5440         * symtab.c: Likewise.
5441         * target-globals.c: Likewise.
5442         * targhooks.c: Likewise.
5443         * toplev.c: Likewise.
5444         * tracer.c: Likewise.
5445         * trans-mem.c: Likewise.
5446         * tree-affine.c: Likewise.
5447         * tree-affine.h: Likewise.
5448         * tree-browser.c: Likewise.
5449         * tree-call-cdce.c: Likewise.
5450         * tree-cfg.c: Likewise.
5451         * tree-cfgcleanup.c: Likewise.
5452         * tree-chkp-opt.c: Likewise.
5453         * tree-chkp.c: Likewise.
5454         * tree-chrec.c: Likewise.
5455         * tree-complex.c: Likewise.
5456         * tree-data-ref.c: Likewise.
5457         * tree-dfa.c: Likewise.
5458         * tree-diagnostic.c: Likewise.
5459         * tree-dump.c: Likewise.
5460         * tree-eh.c: Likewise.
5461         * tree-emutls.c: Likewise.
5462         * tree-if-conv.c: Likewise.
5463         * tree-inline.c: Likewise.
5464         * tree-into-ssa.c: Likewise.
5465         * tree-iterator.c: Likewise.
5466         * tree-loop-distribution.c: Likewise.
5467         * tree-nested.c: Likewise.
5468         * tree-nrv.c: Likewise.
5469         * tree-object-size.c: Likewise.
5470         * tree-outof-ssa.c: Likewise.
5471         * tree-parloops.c: Likewise.
5472         * tree-phinodes.c: Likewise.
5473         * tree-predcom.c: Likewise.
5474         * tree-pretty-print.c: Likewise.
5475         * tree-pretty-print.h: Likewise.
5476         * tree-profile.c: Likewise.
5477         * tree-scalar-evolution.c: Likewise.
5478         * tree-sra.c: Likewise.
5479         * tree-ssa-address.c: Likewise.
5480         * tree-ssa-alias.c: Likewise.
5481         * tree-ssa-ccp.c: Likewise.
5482         * tree-ssa-coalesce.c: Likewise.
5483         * tree-ssa-copy.c: Likewise.
5484         * tree-ssa-copyrename.c: Likewise.
5485         * tree-ssa-dce.c: Likewise.
5486         * tree-ssa-dom.c: Likewise.
5487         * tree-ssa-dse.c: Likewise.
5488         * tree-ssa-forwprop.c: Likewise.
5489         * tree-ssa-ifcombine.c: Likewise.
5490         * tree-ssa-live.c: Likewise.
5491         * tree-ssa-loop-ch.c: Likewise.
5492         * tree-ssa-loop-im.c: Likewise.
5493         * tree-ssa-loop-ivcanon.c: Likewise.
5494         * tree-ssa-loop-ivopts.c: Likewise.
5495         * tree-ssa-loop-manip.c: Likewise.
5496         * tree-ssa-loop-niter.c: Likewise.
5497         * tree-ssa-loop-prefetch.c: Likewise.
5498         * tree-ssa-loop-unswitch.c: Likewise.
5499         * tree-ssa-loop.c: Likewise.
5500         * tree-ssa-loop.h: Likewise.
5501         * tree-ssa-math-opts.c: Likewise.
5502         * tree-ssa-operands.c: Likewise.
5503         * tree-ssa-phiopt.c: Likewise.
5504         * tree-ssa-phiprop.c: Likewise.
5505         * tree-ssa-pre.c: Likewise.
5506         * tree-ssa-propagate.c: Likewise.
5507         * tree-ssa-reassoc.c: Likewise.
5508         * tree-ssa-sccvn.c: Likewise.
5509         * tree-ssa-scopedtables.c: Likewise.
5510         * tree-ssa-sink.c: Likewise.
5511         * tree-ssa-strlen.c: Likewise.
5512         * tree-ssa-structalias.c: Likewise.
5513         * tree-ssa-tail-merge.c: Likewise.
5514         * tree-ssa-ter.c: Likewise.
5515         * tree-ssa-threadedge.c: Likewise.
5516         * tree-ssa-threadupdate.c: Likewise.
5517         * tree-ssa-uncprop.c: Likewise.
5518         * tree-ssa-uninit.c: Likewise.
5519         * tree-ssa.c: Likewise.
5520         * tree-ssanames.c: Likewise.
5521         * tree-stdarg.c: Likewise.
5522         * tree-streamer-in.c: Likewise.
5523         * tree-streamer-out.c: Likewise.
5524         * tree-streamer.c: Likewise.
5525         * tree-switch-conversion.c: Likewise.
5526         * tree-tailcall.c: Likewise.
5527         * tree-vect-data-refs.c: Likewise.
5528         * tree-vect-generic.c: Likewise.
5529         * tree-vect-loop-manip.c: Likewise.
5530         * tree-vect-loop.c: Likewise.
5531         * tree-vect-patterns.c: Likewise.
5532         * tree-vect-slp.c: Likewise.
5533         * tree-vect-stmts.c: Likewise.
5534         * tree-vectorizer.c: Likewise.
5535         * tree-vrp.c: Likewise.
5536         * tree.c: Likewise.
5537         * tsan.c: Likewise.
5538         * ubsan.c: Likewise.
5539         * valtrack.c: Likewise.
5540         * value-prof.c: Likewise.
5541         * var-tracking.c: Likewise.
5542         * varasm.c: Likewise.
5543         * varpool.c: Likewise.
5544         * vmsdbgout.c: Likewise.
5545         * vtable-verify.c: Likewise.
5546         * web.c: Likewise.
5547         * wide-int-print.cc: Likewise.
5548         * wide-int-print.h: Likewise.
5549         * wide-int.cc: Likewise.
5550         * xcoffout.c: Likewise.
5551         * config/aarch64/aarch64-builtins.c: Likewise.
5552         * config/aarch64/aarch64.c: Likewise.
5553         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5554         * config/alpha/alpha.c: Likewise.
5555         * config/arc/arc.c: Likewise.
5556         * config/arm/aarch-common.c: Likewise.
5557         * config/arm/arm-builtins.c: Likewise.
5558         * config/arm/arm-c.c: Likewise.
5559         * config/arm/arm.c: Likewise.
5560         * config/avr/avr-c.c: Likewise.
5561         * config/avr/avr-log.c: Likewise.
5562         * config/avr/avr.c: Likewise.
5563         * config/bfin/bfin.c: Likewise.
5564         * config/c6x/c6x.c: Likewise.
5565         * config/cr16/cr16.c: Likewise.
5566         * config/cris/cris.c: Likewise.
5567         * config/darwin-c.c: Likewise.
5568         * config/darwin.c: Likewise.
5569         * config/default-c.c: Likewise.
5570         * config/epiphany/epiphany.c: Likewise.
5571         * config/epiphany/mode-switch-use.c: Likewise.
5572         * config/epiphany/resolve-sw-modes.c: Likewise.
5573         * config/fr30/fr30.c: Likewise.
5574         * config/frv/frv.c: Likewise.
5575         * config/ft32/ft32.c: Likewise.
5576         * config/glibc-c.c: Likewise.
5577         * config/h8300/h8300.c: Likewise.
5578         * config/i386/i386-c.c: Likewise.
5579         * config/i386/i386.c: Likewise.
5580         * config/i386/msformat-c.c: Likewise.
5581         * config/i386/winnt-cxx.c: Likewise.
5582         * config/i386/winnt-stubs.c: Likewise.
5583         * config/i386/winnt.c: Likewise.
5584         * config/ia64/ia64-c.c: Likewise.
5585         * config/ia64/ia64.c: Likewise.
5586         * config/iq2000/iq2000.c: Likewise.
5587         * config/lm32/lm32.c: Likewise.
5588         * config/m32c/m32c-pragma.c: Likewise.
5589         * config/m32c/m32c.c: Likewise.
5590         * config/m32r/m32r.c: Likewise.
5591         * config/m68k/m68k.c: Likewise.
5592         * config/mcore/mcore.c: Likewise.
5593         * config/mep/mep-pragma.c: Likewise.
5594         * config/mep/mep.c: Likewise.
5595         * config/microblaze/microblaze-c.c: Likewise.
5596         * config/microblaze/microblaze.c: Likewise.
5597         * config/mips/mips.c: Likewise.
5598         * config/mmix/mmix.c: Likewise.
5599         * config/mn10300/mn10300.c: Likewise.
5600         * config/moxie/moxie.c: Likewise.
5601         * config/msp430/msp430-c.c: Likewise.
5602         * config/msp430/msp430.c: Likewise.
5603         * config/nds32/nds32-cost.c: Likewise.
5604         * config/nds32/nds32-fp-as-gp.c: Likewise.
5605         * config/nds32/nds32-intrinsic.c: Likewise.
5606         * config/nds32/nds32-isr.c: Likewise.
5607         * config/nds32/nds32-md-auxiliary.c: Likewise.
5608         * config/nds32/nds32-memory-manipulation.c: Likewise.
5609         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5610         * config/nds32/nds32-predicates.c: Likewise.
5611         * config/nds32/nds32.c: Likewise.
5612         * config/nios2/nios2.c: Likewise.
5613         * config/nvptx/nvptx.c: Likewise.
5614         * config/pa/pa.c: Likewise.
5615         * config/pdp11/pdp11.c: Likewise.
5616         * config/rl78/rl78-c.c: Likewise.
5617         * config/rl78/rl78.c: Likewise.
5618         * config/rs6000/rs6000-c.c: Likewise.
5619         * config/rs6000/rs6000.c: Likewise.
5620         * config/rx/rx.c: Likewise.
5621         * config/s390/s390-c.c: Likewise.
5622         * config/s390/s390.c: Likewise.
5623         * config/sh/sh-c.c: Likewise.
5624         * config/sh/sh-mem.cc: Likewise.
5625         * config/sh/sh.c: Likewise.
5626         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5627         * config/sh/sh_treg_combine.cc: Likewise.
5628         * config/sol2-c.c: Likewise.
5629         * config/sol2-cxx.c: Likewise.
5630         * config/sol2-stubs.c: Likewise.
5631         * config/sol2.c: Likewise.
5632         * config/sparc/sparc-c.c: Likewise.
5633         * config/sparc/sparc.c: Likewise.
5634         * config/spu/spu-c.c: Likewise.
5635         * config/spu/spu.c: Likewise.
5636         * config/stormy16/stormy16.c: Likewise.
5637         * config/tilegx/mul-tables.c: Likewise.
5638         * config/tilegx/tilegx-c.c: Likewise.
5639         * config/tilegx/tilegx.c: Likewise.
5640         * config/tilepro/mul-tables.c: Likewise.
5641         * config/tilepro/tilepro-c.c: Likewise.
5642         * config/tilepro/tilepro.c: Likewise.
5643         * config/v850/v850-c.c: Likewise.
5644         * config/v850/v850.c: Likewise.
5645         * config/vax/vax.c: Likewise.
5646         * config/visium/visium.c: Likewise.
5647         * config/vms/vms-c.c: Likewise.
5648         * config/vms/vms.c: Likewise.
5649         * config/vxworks.c: Likewise.
5650         * config/winnt-c.c: Likewise.
5651         * config/xtensa/xtensa.c: Likewise.
5652         * common/config/bfin/bfin-common.c: Likewise.
5654 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
5656         * tree.h (tree_code_for_canonical_type_merging): New function.
5657         * tree.c (gimple_canonical_types_compatible_p): Use
5658         tree_code_for_canonical_type_merging..
5660 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5662         PR c++/66192
5663         PR target/66200
5664         * doc/tm.texi: Regenerate.
5665         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
5666         * target.def (TARGET_RELAXED_ORDERING): Likewise.
5667         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
5668         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
5669         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
5670         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
5671         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
5672         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
5673         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
5675 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5677         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
5678         register fma steering pass.
5679         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
5680         AARCH64_TUNE_FMA_STEERING.
5682 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
5684         * tree.c (verify_type_variant): Verify that type and variant is
5685         compatible.
5686         (gimple_canonical_types_compatible_p): Look for main variants.
5688 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
5690         * config.gcc (powerpc*-*-*): Add support for a new configure
5691         option --with-advance-toolchain=<xxx> which overrides using the
5692         default header files, libraries and dynamic linker.
5694         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
5695         specs to support the configure --with-advance-toolchain=<xxx>
5696         option.
5697         (INCLUDE_EXTRA_SPEC): Likewise.
5698         (LINK_OS_EXTRA_SPEC32): Likewise.
5699         (LINK_OK_EXTRA_SPEC64): Likewise.
5700         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
5701         (DYNAMIC_LINKER_PREFIX): Likewise.
5702         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
5703         toolchain support.
5704         (GLIBC_DYNAMIC_LINKER32): Likewise.
5705         (GLIBC_DYNAMIC_LINKER64): Likewise.
5706         (LINK_OS_LINUX_SPEC32): Likewise.
5707         (LINK_OS_LINUX_SPEC64): Likewise.
5709         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
5710         configuration option.
5712 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
5714         PR target/66275
5715         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
5716         to determine current function ABI.
5717         (ix86_function_value_regno_p): Ditto.
5719 2015-06-03  Martin Liska  <mliska@suse.cz>
5721         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
5722         * bitmap.h (struct bitmap_usage): Likewise.
5723         * ggc-common.c (struct ggc_usage): Likewise.
5724         * mem-stats.h (struct mem_location): Likewise.
5725         (struct mem_usage): Likewise.
5726         * vec.c (struct vec_usage): Likewise.
5728 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
5730         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
5731         -Bsymbolic.
5733 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
5735         * doc/plugins.texi (enum plugin_event): New event.
5736         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
5737         and PLUGIN_FINISH_FUNCTION.
5738         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
5739         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
5741 2015-06-03  Richard Biener  <rguenther@suse.de>
5743         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5744         compute GROUP_GAP for the first element.
5745         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
5746         on in-group gaps.
5748 2015-06-03  Nick Clifton  <nickc@redhat.com>
5750         * config/rl78/rl78-real.md: Add peepholes to avoid a register
5751         copy when calling a function.
5752         * config/rl78/rl78.c (need_to_save): Do not push the frame
5753         pointer in an interrupt handler prologue if it is never used.
5755 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5757         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
5759 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
5761         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
5762         reference when cloning alias node.
5764 2015-06-03  Martin Liska  <mliska@suse.cz>
5766         * alloc-pool.h (struct pool_usage): Correct space padding.
5767         * ggc-page.c (ggc_print_statistics): Align columns in a report.
5768         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
5769         * tree.c (dump_tree_statistics): Align columns in a report.
5771 2015-06-03  Martin Liska  <mliska@suse.cz>
5773         * alloc-pool.c (allocate_pool_descriptor): Remove.
5774         (struct pool_output_info): Likewise.
5775         (print_alloc_pool_statistics): Likewise.
5776         (dump_alloc_pool_statistics): Likewise.
5777         * alloc-pool.h (struct pool_usage): New struct.
5778         (pool_allocator::initialize): Change usage of memory statistics
5779         to a new interface.
5780         (pool_allocator::release): Likewise.
5781         (pool_allocator::allocate): Likewise.
5782         (pool_allocator::remove): Likewise.
5783         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
5784         for a pool allocator.
5785         * mem-stats.h (struct mem_location): Add new ctor.
5786         (struct mem_usage): Add counter for number of
5787         instances.
5788         (mem_alloc_description::register_descriptor): New overload of
5789         * mem-stats.h (mem_location::to_string): New function.
5790         * bitmap.h (struct bitmap_usage): Use this new function.
5791         * ggc-common.c (struct ggc_usage): Likewise.
5792         the function.
5794 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
5796         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
5797         of GCC_INSN_FLAGS_H block.
5799 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
5801         * explow.c (plus_constant): Update check after force_const_mem call
5802         to see if the value returned is not a NULL_RTX.
5804 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
5806         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
5807         remove instumentation thunks calling reachable functions.
5808         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
5809         * lto/lto-partition.c (privatize_symbol_name_1): New.
5810         (privatize_symbol_name): Privatize both decl and orig_decl
5811         names for instrumented functions.
5812         * cgraph.c (cgraph_node::verify_node): Add transparent
5813         alias chain check for instrumented node.
5815 2015-06-03  Marek Polacek  <polacek@redhat.com>
5817         PR c/64223
5818         PR c/29358
5819         * tree.c (attribute_value_equal): Handle attribute format.
5820         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
5822 2015-06-03  Richard Biener  <rguenther@suse.de>
5824         PR tree-optimization/63916
5825         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5826         Forward-propagate non-invariant addresses by splicing their
5827         reference ops if the result isn't going to be used by PRE.
5828         (vn_reference_lookup_3): Remove pointless assert.
5830 2015-06-03  Richard Biener  <rguenther@suse.de>
5832         PR tree-optimization/66375
5833         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
5834         add to the evolution before following SSA edges.
5836 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
5838         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
5839         (dump_use, dump_cand, find_induction_variables): Pass new argument
5840         to dump_iv.
5841         (record_use): Preserve the ssa name information in IV.
5843 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
5845         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
5846         NO_MODE_TEST.
5847         (add_mode_tests): Don't add mode tests if the predicate only
5848         accepts scalar constant integers.  Otherwise, allow the mode
5849         of "op" to be VOIDmode if the predicate does accept such integers.
5851 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
5853         PR target/66258
5854         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
5855         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
5856         (aarch64_secondary_reload): Likewise
5857         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
5858         to !TARGET_FLOAT.
5859         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
5860         Likewise.
5862 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
5863             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5865         PR target/65768
5866         * cprop.c (try_replace_reg): Check cost of constants before propagating.
5868 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
5870         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
5871         provide access to the IBM extended double floating point mode if
5872         long double is IEEE 128-bit floating point.
5873         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
5874         point if long double is the IBM extended double type.
5876         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
5877         enable adding IEEE 128-bit floating point support.
5878         (-mfloat128-software): Likewise.
5879         (-mfloat128-sw): Likewise.
5881         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
5882         128-bit floating point types to occupy any register if
5883         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
5884         -mfloat128-software is enabled.
5885         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
5886         support.
5887         (rs6000_option_override_internal): Add -mfloat128-* support.
5888         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
5890         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
5891         and float128 type nodes.
5892         (ieee128_float_type_node): Likewise.
5893         (ibm128_float_type_node): Likewise.
5895 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5897         PR target/66136
5898         * config/aarch64/geniterators.sh: Rewrite in awk.
5900 2015-06-02  Martin Liska  <mliska@suse.cz>
5902         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
5903         values to avoid -Wmaybe-uninitialized errors.
5905 2015-06-02  Richard Biener  <rguenther@suse.de>
5907         PR debug/65549
5908         * dwarf2out.c (lookup_context_die): New function.
5909         (resolve_addr): Avoid forcing a full DIE for the
5910         target of a DW_TAG_GNU_call_site during late compilation.
5911         Instead create a stub DIE without a type if we have a
5912         context DIE present.
5914 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
5916         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
5918 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
5920         PR tree-optimization/48052
5921         * cfgloop.h (struct control_iv): New.
5922         (struct loop): New field control_ivs.
5923         * tree-ssa-loop-niter.c : Include "stor-layout.h".
5924         (number_of_iterations_lt): Set no_overflow information.
5925         (number_of_iterations_exit): Init control iv in niter struct.
5926         (record_control_iv): New.
5927         (estimate_numbers_of_iterations_loop): Call record_control_iv.
5928         (loop_exits_before_overflow): New.  Interface factored out of
5929         scev_probably_wraps_p.
5930         (scev_probably_wraps_p): Factor loop niter related code into
5931         loop_exits_before_overflow.
5932         (free_numbers_of_iterations_estimates_loop): Free control ivs.
5933         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
5935 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
5937         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
5938         the target doesn't belong to the current function.
5940 2015-06-02  Marek Polacek  <polacek@redhat.com>
5942         PR middle-end/66345
5943         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
5944         get_maxval_strlen does not produce an INTEGER_CST.
5946 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
5948         * config/arc/constraints.md: Use lower-case names in match_code.
5949         * config/mmix/constraints.md: Likewise.
5951 2015-06-02  Richard Biener  <rguenther@suse.de>
5953         PR tree-optimization/65961
5954         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
5955         check and clarify dump message.
5956         (vect_build_slp_tree): If all children are built up from scalars
5957         build up the parent from scalars instead.
5958         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
5960 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5962         PR other/65366
5963         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
5964         instead of print ... .
5966 2015-06-02  Alan Modra  <amodra@gmail.com>
5968         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
5969         2014-08-11 change.
5971 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
5973         PR tree-optimization/52563
5974         PR tree-optimization/62173
5975         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
5976         (alloc_iv, set_iv): New parameter.
5977         (determine_biv_step): Delete.
5978         (find_bivs): Inline original determine_biv_step.  Pass new
5979         argument to set_iv.
5980         (idx_find_step): Use no_overflow information for conversion.
5981         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
5982         resolve_mixers handle folded_casts.
5983         (instantiate_scev_name): Change bool parameter to bool pointer.
5984         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
5985         (instantiate_array_ref, instantiate_scev_not): Ditto.
5986         (instantiate_scev_3, instantiate_scev_2): Ditto.
5987         (instantiate_scev_1, instantiate_scev_r): Ditto.
5988         (instantiate_scev_convert, ): Change parameter.  Pass argument
5989         to chrec_convert_aggressive.
5990         (instantiate_scev): Change argument.
5991         (resolve_mixers): New parameter and set it.
5992         (scev_const_prop): New argument.
5993         * tree-scalar-evolution.h (resolve_mixers): New parameter.
5994         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
5995         of chrec_conert_1.
5996         (chrec_convert): New parameter.  Move definition below.
5997         (chrec_convert_aggressive): New parameter and set it.  Call
5998         convert_affine_scev.
5999         * tree-chrec.h (chrec_convert): New parameter.
6000         (chrec_convert_aggressive): Ditto.
6002 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
6004         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
6005         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
6006         the LHS of a no-return call if its type has variable size.
6007         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
6008         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
6010 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
6012         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
6013         * config.in: Regenerate.
6015 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
6017         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
6018         consecutive accesses within outer-loop with force_vectorize
6019         for references with zero step in inner-loop.
6021 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
6023         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
6024         rather than from gcc/build directory.
6026 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
6028         PR target/65697
6029         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
6030         for __sync memory models, emit initial loads and final barriers as
6031         appropriate.
6033 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
6035         PR target/65697
6036         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
6037         (aarch64_split_atomic_op): Check for __sync memory models, emit
6038         appropriate initial loads and final barriers.
6040 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
6042         * Makefile.in: Fix gcov dependencies that should
6043         not point to a build folder.
6045 2015-06-01  Richard Biener  <rguenther@suse.de>
6047         Revert
6048         2015-05-29  Richard Biener  <rguenther@suse.de>
6050         PR tree-optimization/66314
6051         * tree-ssa-threadupdate.c (create_block_for_threading): Add
6052         parameter that says which loop the new block belongs to.
6053         (ssa_create_duplicates): Blocks duplicated for the threaded
6054         path belong to the loop of the thread destination.
6056 2015-06-01  Martin Liska  <mliska@suse.cz>
6058         * sched-deps.c: Include pool-alloc.h before
6059         cselib.h header file is included.
6061 2015-06-01  Richard Biener  <rguenther@suse.de>
6063         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
6064         functions.
6066 2015-06-01  Martin Liska  <mliska@suse.cz>
6068         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
6069         a function local variable.
6071 2015-06-01  Martin Liska  <mliska@suse.cz>
6073         * alloc-pool.c (create_alloc_pool): Remove.
6074         (empty_alloc_pool): Likewise.
6075         (free_alloc_pool): Likewise.
6076         (free_alloc_pool_if_empty): Likewise.
6077         (pool_alloc): Likewise.
6078         (pool_free): Likewise.
6079         * alloc-pool.h: Remove old declarations.
6081 2015-06-01  Martin Liska  <mliska@suse.cz>
6083         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
6084         (ira_create_object): Likewise.
6085         (ira_create_allocno): Likewise.
6086         (ira_create_live_range): Likewise.
6087         (copy_live_range): Likewise.
6088         (ira_finish_live_range): Likewise.
6089         (ira_free_allocno_costs): Likewise.
6090         (finish_allocno): Likewise.
6091         (finish_allocnos): Likewise.
6092         (initiate_prefs): Likewise.
6093         (ira_create_pref): Likewise.
6094         (finish_pref): Likewise.
6095         (finish_prefs): Likewise.
6096         (initiate_copies): Likewise.
6097         (ira_create_copy): Likewise.
6098         (finish_copy): Likewise.
6099         (finish_copies): Likewise.
6100         (finish_prefs): Likewise.
6102 2015-06-01  Martin Liska  <mliska@suse.cz>
6104         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
6105         (allocate_and_init_ipcp_value): Likewise.
6106         (ipcp_lattice::add_value): Likewise.
6107         (merge_agg_lats_step): Likewise.
6108         (ipcp_driver): Likewise.
6109         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
6110         (ipa_free_all_structures_after_iinln): Likewise.
6111         * ipa-prop.h: Likewise.
6113 2015-06-01  Martin Liska  <mliska@suse.cz>
6115         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
6116         pool allocator.
6117         (set_hint_predicate): Likewise.
6118         (inline_summary_alloc): Likewise.
6119         (reset_inline_edge_summary): Likewise.
6120         (reset_inline_summary): Likewise.
6121         (set_cond_stmt_execution_predicate): Likewise.
6122         (set_switch_stmt_execution_predicate): Likewise.
6123         (compute_bb_predicates): Likewise.
6124         (estimate_function_body_sizes): Likewise.
6125         (inline_free_summary): Likewise.
6127 2015-06-01  Martin Liska  <mliska@suse.cz>
6129         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
6130         (ipa_edge_duplication_hook): Likewise.
6131         (ipa_free_all_structures_after_ipa_cp): Likewise.
6132         (ipa_free_all_structures_after_iinln): Likewise.
6134 2015-06-01  Martin Liska  <mliska@suse.cz>
6136         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
6137         (ipa_profile_generate_summary): Likewise.
6138         (ipa_profile_read_summary): Likewise.
6139         (ipa_profile): Likewise.
6141 2015-06-01  Martin Liska  <mliska@suse.cz>
6143         * tree-ssa-structalias.c (new_var_info): Use new type-based
6144         pool allocator.
6145         (new_constraint): Likewise.
6146         (init_alias_vars): Likewise.
6147         (delete_points_to_sets): Likewise.
6149 2015-06-01  Martin Liska  <mliska@suse.cz>
6151         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
6152         (free_strinfo): Likewise.
6153         (pass_strlen::execute): Likewise.
6155 2015-06-01  Martin Liska  <mliska@suse.cz>
6157         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
6158         pool allocator.
6159         (vn_reference_insert_pieces): Likewise.
6160         (vn_phi_insert): Likewise.
6161         (visit_reference_op_call): Likewise.
6162         (copy_phi): Likewise.
6163         (copy_reference): Likewise.
6164         (process_scc): Likewise.
6165         (allocate_vn_table): Likewise.
6166         (free_vn_table): Likewise.
6168 2015-06-01  Martin Liska  <mliska@suse.cz>
6170         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
6171         pool allocator.
6172         (add_repeat_to_ops_vec): Likewise.
6173         (get_ops): Likewise.
6174         (maybe_optimize_range_tests): Likewise.
6175         (init_reassoc): Likewise.
6176         (fini_reassoc): Likewise.
6178 2015-06-01  Martin Liska  <mliska@suse.cz>
6180         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
6181         pool allocator.
6182         (bitmap_set_new): Likewise.
6183         (get_or_alloc_expr_for_constant): Likewise.
6184         (get_or_alloc_expr_for): Likewise.
6185         (phi_translate_1): Likewise.
6186         (compute_avail): Likewise.
6187         (init_pre): Likewise.
6188         (fini_pre): Likewise.
6190 2015-06-01  Martin Liska  <mliska@suse.cz>
6192         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
6193         (delete_dep_node): Likewise.
6194         (create_deps_list): Likewise.
6195         (free_deps_list): Likewise.
6196         (sched_deps_init): Likewise.
6197         (sched_deps_finish): Likewise.
6199 2015-06-01  Martin Liska  <mliska@suse.cz>
6201         * regcprop.c (free_debug_insn_changes): Use new type-based
6202         pool allocator.
6203         (replace_oldest_value_reg): Likewise.
6204         (pass_cprop_hardreg::execute): Likewise.
6206 2015-06-01  Martin Liska  <mliska@suse.cz>
6208         * ira-build.c (initiate_cost_vectors): Use new type-based
6209         pool allocator.
6210         (ira_allocate_cost_vector): Likewise.
6211         (ira_free_cost_vector): Likewise.
6212         (finish_cost_vectors): Likewise.
6214 2015-06-01  Martin Liska  <mliska@suse.cz>
6216         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
6217         pool allocator.
6218         (free_sched_pools): Likewise.
6219         * sel-sched-ir.h (_list_alloc): Likewise.
6220         (_list_remove): Likewise.
6222 2015-06-01  Martin Liska  <mliska@suse.cz>
6224         * stmt.c (add_case_node): Use new type-based pool allocator.
6225         (expand_case): Likewise.
6226         (expand_sjlj_dispatch_table): Likewise.
6228 2015-06-01  Martin Liska  <mliska@suse.cz>
6230         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
6231         (free_bb): Likewise.
6232         (pass_cse_reciprocals::execute): Likewise.
6234 2015-06-01  Martin Liska  <mliska@suse.cz>
6236         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
6237         (sra_deinitialize) Likewise.
6238         (create_access_1) Likewise.
6239         (build_accesses_from_assign) Likewise.
6240         (create_artificial_child_access) Likewise.
6242 2015-06-01  Martin Liska  <mliska@suse.cz>
6244         * dse.c (get_group_info):Use new type-based pool allocator.
6245         (dse_step0) Likewise.
6246         (free_store_info) Likewise.
6247         (delete_dead_store_insn) Likewise.
6248         (free_read_records) Likewise.
6249         (record_store) Likewise.
6250         (replace_read) Likewise.
6251         (check_mem_read_rtx) Likewise.
6252         (scan_insn) Likewise.
6253         (dse_step1) Likewise.
6254         (dse_step7) Likewise.
6256 2015-06-01  Martin Liska  <mliska@suse.cz>
6258         * df-scan.c (struct df_scan_problem_data):Use new type-based
6259         pool allocator.
6260         (df_scan_free_internal) Likewise.
6261         (df_scan_alloc) Likewise.
6262         (df_grow_reg_info) Likewise.
6263         (df_free_ref) Likewise.
6264         (df_insn_create_insn_record) Likewise.
6265         (df_mw_hardreg_chain_delete) Likewise.
6266         (df_insn_info_delete) Likewise.
6267         (df_free_collection_rec) Likewise.
6268         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
6269         (df_sort_and_compress_mws) Likewise.
6270         (df_ref_create_structure) Likewise.
6271         (df_ref_record) Likewise.
6273 2015-06-01  Martin Liska  <mliska@suse.cz>
6275         * df-problems.c (df_chain_create):Use new type-based pool allocator.
6276         (df_chain_unlink_1) Likewise.
6277         (df_chain_unlink) Likewise.
6278         (df_chain_remove_problem) Likewise.
6279         (df_chain_alloc) Likewise.
6280         (df_chain_free) Likewise.
6281         * df.h (struct dataflow) Likewise.
6283 2015-06-01  Martin Liska  <mliska@suse.cz>
6285         * cselib.c (new_elt_list):Use new type-based pool allocator.
6286         (new_elt_loc_list) Likewise.
6287         (unchain_one_elt_list) Likewise.
6288         (unchain_one_elt_loc_list) Likewise.
6289         (unchain_one_value) Likewise.
6290         (new_cselib_val) Likewise.
6291         (cselib_init) Likewise.
6292         (cselib_finish) Likewise.
6294 2015-06-01  Martin Liska  <mliska@suse.cz>
6296         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
6297         (sh_reorg) Likewise.
6299 2015-06-01  Martin Liska  <mliska@suse.cz>
6301         * cfg.c (initialize_original_copy_tables):Use new type-based
6302         pool allocator.
6303         (free_original_copy_tables) Likewise.
6304         (copy_original_table_clear) Likewise.
6305         (copy_original_table_set) Likewise.
6307 2015-06-01  Martin Liska  <mliska@suse.cz>
6309         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
6310         pool allocator.
6311         (asan_mem_ref_new) Likewise.
6312         (free_mem_ref_resources) Likewise.
6314 2015-06-01  Martin Liska  <mliska@suse.cz>
6316         * var-tracking.c (variable_htab_free):Use new type-based
6317         pool allocator.
6318         (attrs_list_clear) Likewise.
6319         (attrs_list_insert) Likewise.
6320         (attrs_list_copy) Likewise.
6321         (shared_hash_unshare) Likewise.
6322         (shared_hash_destroy) Likewise.
6323         (unshare_variable) Likewise.
6324         (var_reg_delete_and_set) Likewise.
6325         (var_reg_delete) Likewise.
6326         (var_regno_delete) Likewise.
6327         (drop_overlapping_mem_locs) Likewise.
6328         (variable_union) Likewise.
6329         (insert_into_intersection) Likewise.
6330         (canonicalize_values_star) Likewise.
6331         (variable_merge_over_cur) Likewise.
6332         (dataflow_set_merge) Likewise.
6333         (remove_duplicate_values) Likewise.
6334         (variable_post_merge_new_vals) Likewise.
6335         (dataflow_set_preserve_mem_locs) Likewise.
6336         (dataflow_set_remove_mem_locs) Likewise.
6337         (variable_from_dropped) Likewise.
6338         (variable_was_changed) Likewise.
6339         (set_slot_part) Likewise.
6340         (clobber_slot_part) Likewise.
6341         (delete_slot_part) Likewise.
6342         (loc_exp_insert_dep) Likewise.
6343         (notify_dependents_of_changed_value) Likewise.
6344         (emit_notes_for_differences_1) Likewise.
6345         (vt_emit_notes) Likewise.
6346         (vt_initialize) Likewise.
6347         (vt_finalize) Likewise.
6349 2015-06-01  Martin Liska  <mliska@suse.cz>
6351         * ira-color.c (init_update_cost_records):Use new type-based
6352         pool allocator.
6353         (get_update_cost_record) Likewise.
6354         (free_update_cost_record_list) Likewise.
6355         (finish_update_cost_records) Likewise.
6356         (initiate_cost_update) Likewise.
6358 2015-06-01  Martin Liska  <mliska@suse.cz>
6360         * lra.c (init_insn_regs): Use new type-based pool allocator.
6361         (new_insn_reg) Likewise.
6362         (free_insn_reg) Likewise.
6363         (free_insn_regs) Likewise.
6364         (finish_insn_regs) Likewise.
6365         (init_insn_recog_data) Likewise.
6366         (init_reg_info) Likewise.
6367         (finish_reg_info) Likewise.
6368         (lra_free_copies) Likewise.
6369         (lra_create_copy) Likewise.
6370         (invalidate_insn_data_regno_info) Likewise.
6372 2015-06-01  Martin Liska  <mliska@suse.cz>
6374         * lra-lives.c (free_live_range): Use new type-based pool allocator.
6375         (free_live_range_list) Likewise.
6376         (create_live_range) Likewise.
6377         (copy_live_range) Likewise.
6378         (lra_merge_live_ranges) Likewise.
6379         (remove_some_program_points_and_update_live_ranges) Likewise.
6380         (lra_live_ranges_init) Likewise.
6381         (lra_live_ranges_finish) Likewise.
6383 2015-06-01  Martin Liska  <mliska@suse.cz>
6385         * et-forest.c (et_new_occ): Use new type-based pool allocator.
6386         (et_new_tree): Likewise.
6387         (et_free_tree): Likewise.
6388         (et_free_tree_force): Likewise.
6389         (et_free_pools): Likewise.
6390         (et_split): Likewise.
6392 2015-06-01  Martin Liska  <mliska@suse.cz>
6394         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
6395         to header file.
6396         * alloc-pool.h (pool_allocator::pool_allocator): New function.
6397         (pool_allocator::release): Likewise.
6398         (inline pool_allocator::release_if_empty): Likewise.
6399         (inline pool_allocator::~pool_allocator): Likewise.
6400         (pool_allocator::allocate): Likewise.
6401         (pool_allocator::remove): Likewise.
6403 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
6405         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
6406         in comment.
6408 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
6410         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
6411         to fusible_ops.
6412         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
6413         (arm_macro_fusion_p): Likewise.
6414         (arm_macro_fusion_pair_p): Likewise.
6416 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
6418         * config/aarch64/aarch64-protos.h (tune_params): Rename
6419         fuseable_ops to fusible_ops.
6420         * config/aarch64/aarch64.c (generic_tunings): Rename
6421         fuseable_ops to fusible_ops.
6422         (cortexa53_tunings): Likewise.
6423         (cortexa57_tunings): Likewise.
6424         (thunderx_tunings): Likewise.
6425         (xgene1_tunings): Likewise.
6426         (aarch64_macro_fusion_p): Likewise.
6427         (aarch64_macro_fusion_pair_p): Likewise.
6429 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6431         * config/s390/driver-native.c: New file.
6432         * config/s390/x-native: New file.
6433         * config.host: Add new files for s390.
6434         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
6435         and -march=native
6436         * config.gcc: Likewise.
6437         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
6438         * config/s390/s390-opts.h (enum processor_type): Ditto.
6439         * config/s390/s390.c (s390_option_override): Catch unhandled
6440         PROCESSOR_NATIVE
6442 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
6444         PR target/65527
6445         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
6446         redirection for instrumented calls.
6447         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
6448         (append_compiler_options): Append -fcheck-pointer-bounds.
6449         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
6450         (chkp_redirect_edge): New.
6451         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
6452         (chkp_redirect_edge): New.
6454 2015-06-01  Richard Biener  <rguenther@suse.de>
6456         PR tree-optimization/66280
6457         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
6458         def-use walking.
6460 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6462         * config/aarch64/aarch64.md
6463         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
6464         logic_shift_imm.
6466 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
6468         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
6469         Remove obsolete kludge.
6471 2015-06-01  Richard Biener  <rguenther@suse.de>
6473         * tree-ssa-reassoc.c (get_rank): Simplify.
6475 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6477         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
6478         * configure: Regenerated.
6480 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
6482         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
6483         issue (add space between string literal and macro).
6484         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
6486 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6488         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
6489         implict or explicit -fPIE or -fpie.
6491 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
6493         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
6495 2015-05-28  DJ Delorie  <dj@redhat.com>
6497         * expmed.c (extract_bit_field_1): Avoid clobbering a
6498         yet-to-be-used base/index register.
6500 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
6502         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
6503         (alias_stats): Add num_universal.
6504         (alias_set_subset_of): Special case pointers; be ready for NULL
6505         children.
6506         (alias_sets_conflict_p): Special case pointers; be ready for NULL
6507         children.
6508         (init_alias_set_entry): Break out from ...
6509         (record_alias_subset): ... here; propagate new fields;
6510         allocate children only when really needed.
6511         (get_alias_set): Do less generous pointer globbing.
6512         (dump_alias_stats_in_alias_c): Update statistics.
6514 2015-05-30  Alan Modra  <amodra@gmail.com>
6516         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
6517         correct block for use of r12.
6518         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
6520 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6522         PR target/66215
6523         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
6524         with -mhotpatch=.
6526 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
6528         PR tree-optimization/66142
6529         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
6530         virtual phis that feed themselves.
6532 2015-05-29  Richard Biener  <rguenther@suse.de>
6534         PR tree-optimization/66314
6535         * tree-ssa-threadupdate.c (create_block_for_threading): Add
6536         parameter that says which loop the new block belongs to.
6537         (ssa_create_duplicates): Blocks duplicated for the threaded
6538         path belong to the loop of the thread destination.
6540 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6542         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
6543         to cleanup-saved-temps.
6544         * doc/sourcebuild.texi (Clean up generated test files): Expand
6545         introduction.
6546         (dg-keep-saved-temps): Document new proc.
6547         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
6548         cleanup-saved-temps): Remove.
6550 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
6552         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
6553         gcc_AC_CHECK_DECLS.
6554         * configure: Regenerate.
6556 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
6558         * config/nios2/linux.h (CPP_SPEC): Define.
6560 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
6562         * config/microblaze/linux.h (CPP_SPEC): Define.
6564 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
6566         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
6567         -pthread is specified.
6569 2015-05-28  Richard Biener  <rguenther@suse.de>
6571         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
6572         (vect_fixup_scalar_cycles_with_patterns): Likewise.
6573         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
6574         after pattern recog.
6575         (vect_create_epilog_for_reduction): Properly handle reductions
6576         with patterns.
6577         (vectorizable_reduction): Likewise.
6578         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
6579         reduction chains.
6580         (vect_get_constant_vectors): Create the correct number of
6581         initial values for reductions.
6582         (vect_schedule_slp_instance): Handle reduction chains that are
6583         type changing properly.
6584         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
6586 2015-05-28  Richard Biener  <rguenther@suse.de>
6588         PR tree-optimization/66142
6589         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
6590         values better in memcpy destination handling.  Handle non-aliasing
6591         we discover here.
6593 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
6595         PR target/63810
6596         * config/darwin-c.c (version_components): New global enum.
6597         (parse_version, version_as_legacy_macro)
6598         (version_as_modern_macro, macosx_version_as_macro): New functions.
6599         (version_as_macro): Remove.
6600         (darwin_cpp_builtins): Use new function.
6602 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
6604         * builtins.c (expand_builtin_acc_on_device): Mark parameters
6605         with ATTRIBUTE_UNUSED.
6607 2015-05-28  Julian Brown  <julian@codesourcery.com>
6609         PR libgomp/65742
6611         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
6612         sequence for !ACCEL_COMPILER.
6614 2015-05-28  Nick Clifton  <nickc@redhat.com>
6616         * config/rx/rx.c (push_regs): New function.  Extracts code from...
6617         (rx_expand_prologue): ... here.  Use push_regs to push even small
6618         spans of registers.
6619         (pop_regs): New function.
6620         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
6621         registers.
6623 2015-05-28  Richard Biener  <rguenther@suse.de>
6625         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
6626         member.
6627         (SLP_INSTANCE_BODY_COST_VEC): Remove.
6628         (vect_update_slp_costs_according_to_vf): Likewise.
6629         (vect_slp_analyze_operations): Update prototype.
6630         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
6631         vect_update_slp_costs_according_to_vf, adjust.
6632         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
6633         (vect_analyze_slp_cost_1): Likewise.
6634         (vect_analyze_slp_cost): Likewise.  Properly deal with
6635         widening reduction ops.  Commit body costs.
6636         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
6637         cost for loops from here.
6638         (vect_slp_analyze_operations): But do it from here when
6639         the vectorization factor is known and stmts are analyzed.
6640         (vect_bb_vectorization_profitable_p): Simplify.
6641         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
6642         (vect_update_slp_costs_according_to_vf): Remove.
6644 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
6645             H.J. Lu  <hongjiu.lu@intel.com>
6647         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
6648         (BUILD_CFLAGS): Likewise.
6649         (BUILD_CXXFLAGS): Likewise.
6650         (LINKER): Add @NO_PIE_FLAG@.
6651         (BUILD_LDFLAGS): Likewise.
6652         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
6653         --enable-default-pie.
6654         * common.opt (fPIE): Initialize to -1.
6655         (fpie): Likewise.
6656         (no-pie): New option.
6657         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
6658         * configure.ac: Add --enable-default-pie.
6659         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
6660         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
6661         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
6662         * gcc.c (NO_PIE_SPEC): New.
6663         (PIE_SPEC): Likewise.
6664         (NO_FPIE1_SPEC): Likewise.
6665         (FPIE1_SPEC): Likewise.
6666         (NO_FPIE2_SPEC): Likewise.
6667         (FPIE2_SPEC): Likewise.
6668         (NO_FPIE2_SPEC): Likewise.
6669         (FPIE_SPEC): Likewise.
6670         (NO_FPIE_SPEC): Likewise.
6671         (NO_FPIC1_SPEC): Likewise.
6672         (FPIC1_SPEC): Likewise.
6673         (NO_FPIC2_SPEC): Likewise.
6674         (FPIC2_SPEC): Likewise.
6675         (NO_FPIC2_SPEC): Likewise.
6676         (FPIC_SPEC): Likewise.
6677         (NO_FPIC_SPEC): Likewise.
6678         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
6679         (FPIE1_OR_FPIC1_SPEC): Likewise.
6680         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
6681         (FPIE2_OR_FPIC2_SPEC): Likewise.
6682         (NO_FPIE_AND_FPIC_SPEC): Likewise.
6683         (FPIE_OR_FPIC_SPEC): Likewise.
6684         (LD_PIE_SPEC): Likewise.
6685         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
6686         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
6687         * config/darwin.h (PIE_SPEC): Renamed to ...
6688         (DARWIN_PIE_SPEC): This.
6689         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
6690         * config/darwin9.h (PIE_SPEC): Renamed to ...
6691         (DARWIN_PIE_SPEC): This.
6692         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
6693         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
6694         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
6695         FPIE2_OR_FPIC2_SPEC.
6696         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
6697         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
6698         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
6699         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
6700         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
6701         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
6702         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
6703         * config/m32r/m32r.h (ASM_SPEC): Likewise.
6704         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
6705         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
6706         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
6707         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
6708         * config/sparc/linux.h (ASM_SPEC): Likewise.
6709         * config/sparc/linux64.h (ASM_SPEC): Likewise.
6710         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
6711         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
6712         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6713         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
6714         * config/sparc/sparc.h (ASM_SPEC): Likewise.
6715         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
6716         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
6717         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
6718         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
6719         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
6720         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
6721         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
6722         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
6723         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
6724         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
6725         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
6726         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
6727         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6728         * config/vax/linux.h (ASM_SPEC): Likewise.
6729         * doc/install.texi: Document --enable-default-pie.
6730         * doc/invoke.texi: Document -no-pie.
6731         * config.in: Regenerated.
6732         * configure: Likewise.
6734 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6736         PR rtl-optimization/66168
6737         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
6738         can_move_invariant_reg.
6740 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
6742         PR target/66148
6743         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
6744         REG_EQUAL note when doing insert.
6746         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
6747         instead of "%d" for 'o' operand.
6749 2015-05-27  Nathan Sidwell  <nathan@acm.org>
6751         PR c++/66270
6752         * tree.c (build_pointer_type_for_mode): Canonical type does not
6753         inherit can_alias_all.
6754         (build_reference_type_for_mode): Likewise.
6756 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6758         * expr.h (array_at_struct_end_p): Move to...
6759         (array_ref_element_size): Likewise.
6760         (component_ref_field_offset): Likewise.
6761         * tree.h (array_ref_element_size): ...here.
6762         (array_at_struct_end_p): Likewise.
6763         (component_ref_field_offset): Likewise.
6764         * expr.c (array_ref_element_size): Move to...
6765         (array_ref_low_bound): Likewise.
6766         (array_at_struct_end_p): Likewise.
6767         (array_ref_up_bound): Likewise.
6768         (component_ref_field_offset): Likewise.
6769         * tree.c (array_ref_element_size): ...here.
6770         (array_ref_low_bound): Likewise.
6771         (array_ref_up_bound): Likewise.
6772         (array_at_struct_end_p): Likewise.
6773         (component_ref_field_offset): Likewise.
6775 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
6776             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6778         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
6780 2015-05-27  Jason Merrill  <jason@redhat.com>
6782         PR bootstrap/66304
6783         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
6784         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
6785         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
6787 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
6789         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
6790         is true.
6792         * statistics.c (statistics_fini_pass): Print pass name.
6794 2015-05-27  Richard Biener  <rguenther@suse.de>
6796         PR tree-optimization/66272
6797         Revert parts of
6798         2014-08-15  Richard Biener  <rguenther@suse.de>
6800         PR tree-optimization/62031
6801         * tree-data-ref.c (dr_analyze_indices): Do not set
6802         DR_UNCONSTRAINED_BASE.
6803         (dr_may_alias_p): All indirect accesses have to go the
6804         formerly DR_UNCONSTRAINED_BASE path.
6805         * tree-data-ref.h (struct indices): Remove
6806         unconstrained_base member.
6807         (DR_UNCONSTRAINED_BASE): Remove.
6809 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
6811         * dwarf2out.c: Remove block_map.
6812         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
6813         (gen_lexical_block_die): Same.
6814         (dwarf2out_function_decl): Remove block_map use.
6815         (dwarf2out_c_finalize): Same.
6816         * tree-core.h (struct tree_block): Add die field.
6817         * tree.h (BLOCK_DIE): New.
6819 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6821         PR target/65358
6822         * expr.c (memory_load_overlap): New function.
6823         (emit_push_insn): When pushing partial args to the stack would
6824         clobber the register part load the overlapping part into a pseudo
6825         and put it into the hard reg after pushing.  Change return type
6826         to bool.  Add bool argument.
6827         * expr.h (emit_push_insn): Change return type to bool.
6828         Add bool argument.
6829         * calls.c (expand_call): Cancel sibcall optimization when encountering
6830         partial argument on targets with ARGS_GROW_DOWNWARD and
6831         !STACK_GROWS_DOWNWARD.
6832         (emit_library_call_value_1): Update callsite of emit_push_insn.
6833         (store_one_arg): Likewise.
6835 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
6837         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
6839 2015-05-27  Martin Liska  <mliska@suse.cz>
6841         * Makefile.in: Add additional dependencies related to memory report
6842         enhancement.
6843         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
6844         * bitmap.c (struct bitmap_descriptor_d): Remove.
6845         (struct loc): Likewise.
6846         (struct bitmap_desc_hasher): Likewise.
6847         (bitmap_desc_hasher::hash): Likewise.
6848         (bitmap_desc_hasher::equal): Likewise.
6849         (get_bitmap_descriptor): Likewise.
6850         (bitmap_register): User new memory descriptor API.
6851         (register_overhead): Likewise.
6852         (bitmap_find_bit): Register nsearches and search_iter statistics.
6853         (struct bitmap_output_info): Remove.
6854         (print_statistics): Likewise.
6855         (dump_bitmap_statistics): Use new memory descriptor.
6856         * bitmap.h (struct bitmap_usage): New class.
6857         * genmatch.c: Extend header file inclusion.
6858         * genpreds.c: Likewise.
6859         * ggc-common.c (struct ggc_usage): New class.
6860         (struct ggc_loc_desc_hasher): Remove.
6861         (ggc_loc_desc_hasher::hash): Likewise.
6862         (ggc_loc_desc_hasher::equal): Likewise.
6863         (struct ggc_ptr_hash_entry): Likewise.
6864         (struct ptr_hash_hasher): Likewise.
6865         (ptr_hash_hasher::hash): Likewise.
6866         (ptr_hash_hasher::equal): Likewise.
6867         (make_loc_descriptor): Likewise.
6868         (ggc_prune_ptr): Likewise.
6869         (dump_ggc_loc_statistics): Use new memory descriptor.
6870         (ggc_record_overhead): Likewise.
6871         (ggc_free_overhead): Likewise.
6872         (final_cmp_statistic): Remove.
6873         (cmp_statistic): Likewise.
6874         (ggc_add_statistics): Liekwise.
6875         (ggc_prune_overhead_list): Likewise.
6876         * hash-map-traits.h: New file.
6877         * hash-map.h (struct default_hashmap_traits): Move the traits to a
6878         separate header file.
6879         * hash-set.h: Pass memory statistics info to ctor.
6880         * hash-table.c (void dump_hash_table_loc_statistics): New function.
6881         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
6882         (hash_table::~hash_table): Register memory release operation.
6883         (hash_table::alloc_entries): Handle memory allocation operation.
6884         (hash_table::expand): Likewise.
6885         * inchash.c (iterative_hash_hashval_t): Move implementation to header
6886         file.
6887         (iterative_hash_host_wide_int): Likewise.
6888         * inchash.h (class hash): Likewise.
6889         * mem-stats-traits.h: New file.
6890         * mem-stats.h: New file.
6891         (mem_location): Add new class.
6892         (mem_usage): Likewise.
6893         (mem_alloc_description): Likewise.
6894         * sese.c: Add new header file inclusision.
6895         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
6896         and hash_set.
6897         * tree-sra.c: Add new header file inclusision.
6898         * vec.c (struct vec_descriptor): Remove.
6899         (hash_descriptor): Likewise.
6900         (struct vec_usage): Likewise.
6901         (struct ptr_hash_entry): Likewise.
6902         (hash_ptr): Likewise.
6903         (eq_ptr): Likewise.
6904         (vec_prefix::register_overhead): Use new memory descriptor API.
6905         (vec_prefix::release_overhead): Likewise.
6906         (add_statistics): Remove.
6907         (dump_vec_loc_statistics): Use new memory descriptor API.
6908         * vec.h (struct vec_prefix): Likewise.
6909         (va_heap::reserve): Likewise.
6910         (va_heap::release): Likewise.
6911         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
6913 2015-05-27  Richard Biener  <rguenther@suse.de>
6915         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
6916         earlier and remove ??? comment.
6917         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
6918         and got called from loop analysis bail out.  Always pass the SLP
6919         node to the vectorizable_* functions.
6920         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
6921         the premature SLP check here.
6922         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
6923         detected SLP stmts.
6924         (vect_detect_hybrid_slp_1): Likewise.
6926 2015-05-26  Jeff Law  <law@redhat.com>
6928         * combine.c (find_split_point): Verify that the shift count is a
6929         constant when choosing (plus (ashift ...)) as a split point.
6931         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
6932         No functional changes.
6934 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
6936         * ipa-polymorphic-call.c
6937         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
6938         case when call target is already known.
6940 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
6942         PR target/65979
6943         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
6944         take into account the case that operands[1] and operands[2]
6945         are the same register.
6947 2015-05-26  Michael Matz  <matz@suse.de>
6949         PR middle-end/66251
6951         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
6952         stores.
6953         (vect_create_vectorized_demotion_stmts): Always set
6954         STMT_VINFO_VEC_STMT, also with SLP.
6955         (vectorizable_store): Handle strided group stores.
6957 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6959         PR target/66049
6960         * config/aarch64/aarch64.md
6961         (*adds_shift_imm_<mode>):  New pattern.
6962         (*subs_shift_imm_<mode>):  Likewise.
6963         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
6964         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
6965         (*add_uxt<mode>_shift2): Likewise.
6966         (*add_uxtsi_shift2_uxtw): Likewise.
6967         (*sub_uxt<mode>_shift2): Likewise.
6968         (*sub_uxtsi_shift2_uxtw): Likewise.
6970 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
6972         * config/rs6000/constraints.md (Y, U): Use match_test.
6974 2015-05-26  Christian Bruel  <christian.bruel@st.com>
6976         PR target/52144
6977         * config/arm/arm.c (arm_option_check_internal)
6978         (arm_option_params_internal): Check opts->target_flags to set macros.
6979         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
6980         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
6981         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
6982         (builtin_define): Replaced with def_or_undef_macro.
6983         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
6984         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
6985         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
6986         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
6987         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
6988         (TARGET_ARM_FEATURE_LDREX_P)
6989         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
6990         * config/arm/arm-c.c (def_or_undef_macro): New function.
6991         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
6993 2015-05-26  Christian Bruel  <christian.bruel@st.com>
6995         * c-common.h (builtin_define_with_int_value)
6996         (builtin_define_type_sizeof): Declare.
6997         * c-cppbuiltin.c (builtin_define_with_int_value)
6998         (builtin_define_type_sizeof): Externalize.
6999         (builtin_define_std): Cleanup declaration.
7000         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
7001         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
7002         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
7003         (builtin_define, builtin_assert): New macros.
7005 2015-05-26  Richard Biener  <rguenther@suse.de>
7007         PR tree-optimization/66142
7008         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
7009         MEM_REFs for the same base address.
7011 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7013         PR ipa/66181
7014         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
7016 2015-05-26  Jason Merrill  <jason@redhat.com>
7018         * configure.ac: Set CXXFLAGS for ISL test.
7019         * configure: Regenerate.
7021         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
7022         strstr and basename.
7023         * configure: Regenerate.
7025 2015-05-26  Richard Biener  <rguenther@suse.de>
7027         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
7028         X % C -> X & (C - 1) for C being a power-of two to ...
7029         * match.pd: ... patterns.
7031 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
7033         * match.pd (swapped_tcc_comparison): New operator list.
7034         (-A CMP -B): New simplification.
7035         * fold-const.c (fold_comparison): Remove corresponding code.
7037 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
7039         * caller-save.c (init_caller_save): Base temporary register numbers
7040         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
7041         * cfgloopanal.c (init_set_costs): Likewise.
7042         * dojump.c (prefer_and_bit_test): Likewise.
7043         * expr.c (init_expr_target): Likewise.
7044         * ira.c (setup_prohibited_mode_move_regs): Likewise.
7045         * lower-subreg.c (init_lower_subreg): Likewise.
7046         * postreload.c (reload_cse_regs_1): Likewise.
7048 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
7050         * gensupport.h (compute_test_codes): Declare.
7051         * gensupport.c (compute_predicate_codes): Rename to...
7052         (compute_test_codes): ...this.  Generalize error message.
7053         (process_define_predicate): Update accordingly.
7054         * genpreds.c (compute_maybe_allows): Delete.
7055         (add_constraint): Use compute_test_codes to determine whether
7056         something can accept a SUBREG, REG or MEM.
7058 2015-05-26  Torvald Riegel  <triegel@redhat.com>
7060         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
7061         'memory model' to align with C++11; fix description of memory orders;
7062         fix a few typos.
7064 2015-05-26  Richard Biener  <rguenther@suse.de>
7066         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
7067         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
7068         detect whether we apply SLP.  Remove call to
7069         vect_update_slp_costs_according_to_vf.
7070         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
7071         vect_update_slp_costs_according_to_vf from here.  Dispatch
7072         to vect_slp_analyze_operations to analyze SLP stmts.
7073         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
7074         unused bb_vec_info parameter, adjust assert.
7075         (vect_slp_analyze_operations): Pass in the slp instance tree
7076         instead of bb_vec_info.
7077         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
7078         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
7080 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
7082         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
7083         Q_REGS.  Expand comment.
7084         (REG_CLASS_NAMES): Ditto.
7085         (REG_CLASS_CONTENTS): Ditto.
7087 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
7089         PR target/66274
7090         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
7091         when LEGACY_INT_REGNO_P is processed.
7093 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
7095         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
7097 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
7099         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
7100         register if not marked dead/unused, before return.
7102 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
7104         PR lto/66180
7105         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
7106         is set; check for assembler name at LTO time.
7107         (type_in_anonymous_namespace): Remove hacks, check that all
7108         anonymous types are called "<anon>"
7109         (odr_type_p): Simplify; add check for "<anon>"
7110         (odr_subtypes_equivalent): Add odr_type_p check.
7111         * tree.c (need_assembler_name_p): Even anonymous namespace needs
7112         assembler name.
7114 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
7116         * ipa-utils.h (method_class_type): Remove.
7117         * cgraphunit.c (walk_polymorphic_call_targets): Use
7118         TYPE_METHOD_BASETYPE.
7119         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
7120         on main variants only.
7121         (method_class_type): Remove.
7122         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
7123         (build_type_inheritance_graph): Likewise.
7124         * ipa-icf.c (sem_function::equals_wpa): Likewise.
7125         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
7126         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
7128 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
7130         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
7131         is_typedef_decl, typedef_variant_p): Constify.
7132         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
7133         is_typedef_decl, typedef_variant_p): Constify.
7135 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7137         * defaults.h (gen_tablejump): New function.
7138         (HAVE_tablejump): Add default value.
7139         * expr.c: Adjust.
7140         * stmt.c: Likewise.
7142 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7144         * defaults.h (gen_store_multiple): New function.
7145         (HAVE_store_multiple): Add default value.
7146         * expr.c (move_block_from_reg): Adjust.
7148 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7150         * defaults.h (gen_load_multiple): New function.
7151         (HAVE_load_multiple): Add default value.
7152         * expr.c (move_block_to_reg): Adjust.
7154 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7156         * defaults.h (gen_mem_signal_fence): New function.
7157         (HAVE_mem_signal_fence): Add default value.
7158         * optabs.c: Adjust.
7160 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7162         * defaults.h (gen_memory_barrier): New function.
7163         (HAVE_memory_barrier): Add default value.
7164         * optabs.c: Adjust.
7166 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7168         * defaults.h (gen_mem_thread_fence): New function.
7169         (HAVE_mem_thread_fence): Add default definition.
7170         * optabs.c: Adjust.
7172 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7174         * combine.c (find_split_point): Check the value of HAVE_lo_sum
7175         instead of if it is defined.
7176         (combine_simplify_rtx): Likewise.
7177         * lra-constraints.c (process_address_1): Likewise.
7178         * config/darwin.c: Adjust.
7179         * genconfig.c (main): Always define HAVE_lo_sum.
7181 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7183         * genmatch.c (parser::parse_operation): Reject expanding
7184         operator-list inside 'for'.
7186 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7188         * genmatch.c (parser::parse_for): Reject iterator if used as
7189         operator-list.
7191 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7193         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
7194         after end of id-list.
7196 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
7198         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
7199         we do not try to compute canonical type for type that does not need
7200         alias set.
7201         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
7202         FUNCITON_TYPE.
7203         * tree.h (type_with_alias_set_p): New.
7205 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
7207         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
7208         function attributes.
7209         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
7211 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
7213         * Makefile.in (check_gcc_parallelize): Delete.
7214         (lang_checks_parallelized): Update comment.
7216 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
7218         PR rtl-optimization/66237
7219         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
7220         location of an "as_a" cast.
7222 2015-05-22  Jeff Law  <law@redhat.com>
7224         * config/pa/pa.md (non-canonical shift-add insns): Remove.
7225         (peepholes with non-canonical RTL sources): Remove.
7226         (peepholes for indexed stores of FP regs in integer modes): Match and
7227         generate canonical RTL.
7229 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
7231         PR tree-optimization/63387
7232         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
7233         ((x ord x) & (y ord y) -> (x ord y),
7234         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
7235         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
7236         vectors like scalars.
7238 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
7240         * convert.c (convert_to_integer, convert_to_vector): Include the
7241         types in the error message.
7243 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
7245         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
7246         simplifications.
7248 2015-05-22  Jeff Law  <law@redhat.com>
7250         * config/pa/pa.md (integer_indexed_store splitters): Use
7251         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
7252         insns -- adjusting the constant 2nd operand accordingly.
7254         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
7255         (plus (ashift X log2) Y) if it is a split point.
7257         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
7258         out of hppa_legitimize_address to handle both forms of a multiply
7259         by 2, 4 or 8.
7260         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
7261         Always generate the ASHIFT variant as the result is not directly
7262         used in a MEM.  Update comments and refactor slightly to improve
7263         readability.
7265 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7267         PR target/65491
7268         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
7269         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
7270         (aarch64_composite_type_p): Return false if given type and mode are
7271         for a short vector.
7273 2015-05-22  Richard Biener  <rguenther@suse.de>
7275         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
7276         member.
7277         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
7278         patterns when determining whether SLP is pure.
7279         (vect_is_slp_reduction): Remove check for pattern stmts.
7280         (vect_is_simple_reduction_1): Remove dead code.
7281         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
7282         (vect_get_and_check_slp_defs): Pass in the stmt number.
7283         Allow the first def in a reduction to be not a pattern stmt when
7284         the rest of the stmts def are patterns.
7285         (vect_build_slp_tree_1): Allow tcc_expression codes like
7286         SAD_EXPR and DOT_PROD_EXPR.
7287         (vect_build_slp_tree): Adjust.
7288         (vect_analyze_slp): Refactor and move BB vect error message ...
7289         (vect_slp_analyze_bb_1): ... here.
7291 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
7293         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
7294         for CSWTCH temporary.
7296 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7298         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
7299         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
7300         unknown unspecs.
7302 2015-05-22  Richard Biener  <rguenther@suse.de>
7304         PR tree-optimization/66251
7305         * tree-vect-stmts.c (vectorizable_conversion): Properly
7306         set STMT_VINFO_VEC_STMT even for the SLP case.
7308 2015-05-22  Marek Polacek  <polacek@redhat.com>
7310         * doc/extend.texi: Use @pxref instead of @xref.
7312 2015-05-22  hiraditya  <hiraditya@msn.com>
7314         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
7315         redundant if.
7317 2015-05-22  Richard Biener  <rguenther@suse.de>
7319         PR tree-optimization/65701
7320         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7321         Move peeling cost models into one place.  Peel for alignment
7322         for single loads only if an aligned load is cheaper than
7323         an unaligned load.
7325 2015-05-22  Marek Polacek  <polacek@redhat.com>
7327         PR c/47043
7328         * doc/extend.texi (Enumerator Attributes): New section.
7329         Document syntax of enumerator attributes.
7331 2015-05-22  Richard Biener  <rguenther@suse.de>
7333         * tree-vect-loop.c (get_reduction_op): New function.
7334         (vect_model_reduction_cost): Use it, add reduc_index parameter.
7335         Make ready for BB reductions.
7336         (vect_create_epilog_for_reduction): Use get_reduction_op.
7337         (vectorizable_reduction): Init reduc_index to a valid value.
7338         Adjust vect_model_reduction_cost call.
7339         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
7340         operand for reduction defaults.  Add SAD_EXPR support.
7341         Assert we have a neutral op for SLP reductions.
7342         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
7343         walking pattern stmt ops only recurse to SSA names.
7345 2015-05-22  Richard Biener  <rguenther@suse.de>
7347         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
7348         assert with guard, remove check on detected reduction.
7349         (vect_recog_sad_pattern): Likewise.
7350         (vect_recog_widen_sum_pattern): Likewise.
7352 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7354         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
7355         __always_inline__ attribute.
7356         (vaesdq_u8): Likewise.
7357         (vaesmcq_u8): Likewise.
7358         (vaesimcq_u8): Likewise.
7359         (vsha1cq_u32): Likewise.
7360         (vsha1mq_u32): Likewise.
7361         (vsha1pq_u32): Likewise.
7362         (vsha1h_u32): Likewise.
7363         (vsha1su0q_u32): Likewise.
7364         (vsha1su1q_u32): Likewise.
7365         (vsha256hq_u32): Likewise.
7366         (vsha256h2q_u32): Likewise.
7367         (vsha256su0q_u32): Likewise.
7368         (vsha256su1q_u32): Likewise.
7369         (vmull_p64): Likewise.
7370         (vmull_high_p64): Likewise.
7372 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7374         * final.c (final_scan_insn): Don't check HAVE_peephole with the
7375         preprocessor.
7376         * output.h: Likewise.
7377         * genconfig.c (main): Alwways define HAVE_peephole.
7378         * genpeep.c: Don't emit checks of HAVE_peephole.
7380 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7382         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
7383         check HAVE_conditional_move with the preprocessor.
7385 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7387         * genconfig.c (main): Always define HAVE_conditional_move.
7388         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
7389         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
7390         is defined.
7392 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7394         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
7395         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
7396         and FRAME_POINTER_REGNUM with the preprocessor.
7398 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7400         * defaults.h: Add default for STACK_PUSH_CODE.
7401         * expr.c: Don't redefine STACK_PUSH_CODE.
7402         * recog.c: Likewise.
7404 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7406         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
7407         sched-deps.c: Use if instead of preprocessor checks with
7408         STACK_GROWS_DOWNWARD.
7410 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7412         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
7413         is defined.
7414         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
7415         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
7416         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
7417         * doc/tm.texi: Regenerate.
7419 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7421         PR target/66232
7422         * config/i386/constraints.md (Bg): New constraint for GOT memory
7423         operand.
7424         * config/i386/i386.md (*call_got_x32): New pattern.
7425         (*call_value_got_x32): Likewise.
7426         * config/i386/predicates.md (GOT_memory_operand): New predicate.
7428 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
7430         PR tree-optimization/66233
7431         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
7432         Simplify.
7434 2015-05-21  Jeff Law  <law@redhat.com>
7436         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
7437         than MULT for shadd sequences.
7439 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
7441         * alias.c (alias_stats): New static var.
7442         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
7443         (dump_alias_stats_in_alias_c): New function.
7444         * alias.h (dump_alias_stats_in_alias_c): Declare.
7445         * tree-ssa-alias.c (dump_alias_stats): Call it.
7447 2015-05-08  Michael Matz  <matz@suse.de>
7449         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
7450         to strided_p.
7451         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
7452         (STMT_VINFO_STRIDED_P): ... this.
7453         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
7454         (vect_verify_datarefs_alignment): Likewise.
7455         (vect_enhance_data_refs_alignment): Likewise.
7456         (vect_analyze_data_ref_access): Likewise.
7457         (vect_analyze_data_refs): Accept strided stores.
7458         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
7459         (vect_model_load_cost): Adjust for macro rename.
7460         (vectorizable_mask_load_store): Likewise.
7461         (vectorizable_load): Likewise.
7462         (vectorizable_store): Open code strided stores.
7464 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7466         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
7467         Document sqrt_insn.
7469 2015-05-21  Richard Biener  <rguenther@suse.de>
7471         PR c++/66211
7472         * match.pd: Guard pattern optimzing (int)(float)int
7473         conversions to apply only on GIMPLE.
7475 2015-05-21  Jeff Law  <law@redhat.com>
7477         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
7478         multiply-accumulate/shift-add insn generation.
7480 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
7482         PR target/54236
7483         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
7484         operands[1] are the same.
7486 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
7488         PR middle-end/66221
7489         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
7490         build_distinct_type_copy to copy bounds.
7492 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
7494         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
7495         Change to unsigned int.
7497 2015-05-20  Jeff Law  <law@redhat.com>
7499         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
7500         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
7501         (pa_shadd_constant_p): Allow constants for shadd insns rather
7502         than valid scaling constants for memory addresses.
7503         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
7504         * config/pa/predicates.md (mem_shadd_operand): New predicate.
7505         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
7506         (shift-add insns using ASHIFT): New patterns.
7508 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
7510         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
7511         feasible.
7512         (fix_up_fall_thru_edges): Likewise.
7513         (fix_crossing_conditional_branches): Likewise. Promote jump targets
7514         from to rtx_insn to rtx_code_label where feasible.
7515         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
7516         gen_move_insn (returned type changed to rtx_insn).
7517         * builtins.c (expand_errno_check): Fix arguments of
7518         do_compare_rtx_and_jump (now expects rtx_code_label).
7519         (expand_builtin_acc_on_device): Likewise.
7520         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
7521         invert_jump (now exprects rtx_jump_insn).
7522         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
7523         (construct_init_block): Use rtx_code_label.
7524         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
7525         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
7526         calling redirect_jump.
7527         (patch_jump_insn): Likewise.
7528         (redirect_branch_edge): Likewise.
7529         (force_nonfallthru_and_redirect): Likewise.
7530         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
7531         when suitable.
7532         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
7533         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
7534         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
7535         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
7536         to store the value retured by gen_label_rtx.
7537         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
7538         rtx_jump_insn.
7539         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
7540         (split_branches): Fix calls of redirect_jump.
7541         * dojump.c (jumpifnot): Promote argument type from rtx to
7542         rtx_code_label.
7543         (jumpifnot_1): Likewise.
7544         (jumpif): Likewise.
7545         (jumpif_1): Likewise.
7546         (do_jump_1): Likewise.
7547         (do_jump): Likewise. Use rtx_code_label when feasible.
7548         (do_jump_by_parts_greater_rtx): Likewise.
7549         (do_jump_by_parts_zero_rtx): Likewise.
7550         (do_jump_by_parts_equality_rtx): Likewise.
7551         (do_compare_rtx_and_jump): Likewise.
7552         * dojump.h: Update function prototypes.
7553         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
7554         returns rtx_insn).
7555         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
7556         rtx_jump_insn.
7557         (emit_label_before): Likewise.
7558         (emit_jump_insn_after_noloc): Likewise.
7559         (emit_jump_insn_after_setloc): Likewise.
7560         (emit_jump_insn_after): Likewise
7561         (emit_jump_insn_before_setloc): Likewise.
7562         (emit_jump_insn_before): Likewise.
7563         (emit_label_before): Promote return type to rtx_code_label.
7564         (emit_label): Likewise.
7565         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
7566         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
7567         gen_move_insn.
7568         (emit_stack_restore): Likewise.
7569         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
7570         (do_cmp_and_jump): Likewise.
7571         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
7572         from rtx to rtx_code_label.
7573         (gen_move_insn_uncast): New function.
7574         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
7575         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
7576         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
7577         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
7578         invert_jump_1 and redirect_jump_1.
7579         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
7580         do_compare_rtx_and_jump.
7581         (expand_addsub_overflow): Likewise.
7582         (expand_neg_overflow): Likewise.
7583         (expand_mul_overflow): Likewise.
7584         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
7585         return value of gen_move_insn.
7586         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
7587         * loop-doloop.c (add_test): Use rtx_code_label.
7588         (doloop_modify): Likewise.
7589         (doloop_optimize): Likewise.
7590         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
7591         * lra-constraints.c (emit_spill_move): Remove cast of value returned
7592         by gen_move_insn.
7593         (inherit_reload_reg): Add cast when calling dump_insn_slim.
7594         (split_reg): Likewise.
7595         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
7596         gen_move_insn.
7597         * optabs.c (expand_binop_directly): Remove casts of values returned by
7598         maybe_gen_insn.
7599         (expand_unop_direct): Likewise.
7600         (expand_abs): Likewise.
7601         (maybe_emit_unop_insn): Likewise.
7602         (maybe_gen_insn): Promote return type to rtx_insn.
7603         * optabs.h: Update prototype of maybe_gen_insn.
7604         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
7605         redundant cast.
7606         * recog.c (struct peep2_insn_data): Promote type of insn field to
7607         rtx_insn.
7608         (peep2_reinit_state): Use NULL instead of NULL_RTX.
7609         (peep2_attempt): Remove casts of insn in peep2_insn_data.
7610         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
7611         * recog.h (struct insn_gen_fn): Promote return types of function
7612         pointers and operator ().from rtx to rtx_insn.
7613         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
7614         (fill_eager_delay_slots): Likewise.
7615         (relax_delay_slots): Likewise.
7616         (make_return_insns): Likewise.
7617         (dbr_schedule): Likewise.
7618         (optimize_skips): Likewise.
7619         (reorg_redirect_jump): Likewise.
7620         (fill_slots_from_thread): Likewise.
7621         * reorg.h: Update prototypes.
7622         * resource.c (find_dead_or_set_registers): Use dyn_cast to
7623         rtx_jump_insn instead of check.  Use it's jump_target method.
7624         * rtl.h (rtx_jump_insn::jump_label): Define new method.
7625         (rtx_jump_insn::jump_target): Define new method.
7626         (rtx_jump_insn::set_jump_target): Define new method.
7627         * rtlanal.c (tablejump_p): Promote type of one local variable.
7628         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
7629         (sched_analyze_insn): Likewise.
7630         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
7631         (print_insn): Likewise.
7632         * stmt.c (label_rtx): Promote return type to rtx_insn.
7633         (force_label_rtx): Likewise.
7634         (jump_target_rtx): Define new function.
7635         (expand_label): Use it, get rid of one cast.
7636         (expand_naked_return): Promote rtx to rtx_code_label.
7637         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
7638         (expand_case): Use rtx_code_label instread of rtx where feasible.
7639         (expand_sjlj_dispatch_table): Likewise.
7640         (emit_case_nodes): Likewise.
7641         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
7642         * store-motion.c (insert_store): Make use of new return type of
7643         gen_move_insn and remove a cast.
7644         (replace_store_insn): Likewise.
7646 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
7648         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
7649         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
7651 2015-05-20  Jeff Law  <law@redhat.com>
7653         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
7654         dispose of the jump thread path when the jump threading
7655         opportunity is cancelled.
7657 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7659         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
7660         when printing the caret character.
7662 2015-05-20  Marek Polacek  <polacek@redhat.com>
7664         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
7666 2015-05-20  Marek Polacek  <polacek@redhat.com>
7668         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
7669         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
7670         * gimple-fold.c (canonicalize_bool): Likewise.
7671         (same_bool_result_p): Likewise.
7672         * tree-if-conv.c (parse_predicate): Likewise.
7674 2015-05-20  Marek Polacek  <polacek@redhat.com>
7676         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
7677         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
7679 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7681         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
7682         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
7683         values.
7685 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
7687         * config/mips/mips.h (micromips_globals): Declare.
7689 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
7691         * timevar.def (TV_INITIALIZE_RTL): New.
7692         * toplev.c (initialize_rtl): Use an auto_timevar to account this
7693         function's time to TV_INITIALIZE_RTL.
7695 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
7697         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
7698         gimple_build_nop calls.
7699         (chkp_find_bounds_for_elem): Likewise.
7700         (chkp_get_zero_bounds): Likewise.
7701         (chkp_get_none_bounds): Likewise.
7702         (chkp_get_bounds_by_definition): Likewise.
7703         (chkp_generate_extern_var_bounds): Likewise.
7704         (chkp_get_bounds_for_decl_addr): Likewise.
7705         (chkp_get_bounds_for_string_cst): Likewise.
7707 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
7709         PR tree-optimization/65447
7710         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
7711         (dump_use, dump_uses): Support to dump sub use.
7712         (record_use): New parameters to support sub use.  Remove call to
7713         dump_use.
7714         (record_sub_use, record_group_use): New functions.
7715         (compute_max_addr_offset, split_all_small_groups): New functions.
7716         (group_address_uses, rewrite_use_address): New functions.
7717         (strip_offset): New declaration.
7718         (find_interesting_uses_address): Call record_group_use.
7719         (add_candidate): New assertion.
7720         (infinite_cost_p): Move definition forward.
7721         (add_costs): Check INFTY cost and return immediately.
7722         (get_computation_cost_at): Clear setup cost and dependent bitmap
7723         for sub uses.
7724         (determine_use_iv_cost_address): Compute cost for sub uses.
7725         (rewrite_use_address_1): Rename from old rewrite_use_address.
7726         (free_loop_data): Free sub uses.
7727         (tree_ssa_iv_optimize_loop): Call group_address_uses.
7729 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
7730             Jim Wilson  <jim.wilson@linaro.org>
7732         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
7733         new  fields loadv and storev.
7734         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
7735         Initialize loadv and storev.
7736         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
7737         (cortexa53_extra_costs): Likewise.
7738         (cortexa57_extra_costs): Likewise.
7739         (xgene1_extra_costs): Likewise.
7740         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
7741         rtx_costs.
7743 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
7745         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
7746          storev.
7747         (cortexa8_extra_costs): Likewise.
7748         (cortexa5_extra_costs): Likewise.
7749         (cortexa7_extra_costs): Likewise.
7750         (cortexa12_extra_costs): Likewise.
7751         (cortexa15_extra_costs): Likewise.
7752         (v7m_extra_costs): Likewise.
7754 2015-05-20  Jeff Law  <law@redhat.com>
7756         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
7757         instead of open-coded version.  Also delete the jump thread created
7758         within this function.
7760 2015-05-20  Alan Modra  <amodra@gmail.com>
7762         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
7763         stack adjusting insn.  Formatting.
7764         (rs6000_emit_prologue): Track stack adjusting insn, and use of
7765         r12.  If possible, emit first -fsplit-stack arg pointer insn
7766         before stack adjust.  Don't use r12 to save cr if split-stack.
7768 2015-05-20  Alan Modra  <amodra@gmail.com>
7770         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
7771         Define.
7772         (rs6000_supports_split_stack): New function.
7773         * gcc/config/rs6000/rs6000.c (machine_function): Add
7774         split_stack_arg_pointer.
7775         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
7776         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
7777         rather than virtual_incoming_args_rtx.
7778         (rs6000_va_start): Likewise.
7779         (split_stack_arg_pointer_used_p): New function.
7780         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
7781         (morestack_ref): New var.
7782         (gen_add3_const, rs6000_expand_split_stack_prologue,
7783         rs6000_internal_arg_pointer, rs6000_live_on_entry,
7784         rs6000_split_stack_space_check): New functions.
7785         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
7786         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
7787         (UNSPECV_SPLIT_STACK_RETURN): Define.
7788         (split_stack_prologue, load_split_stack_limit,
7789         load_split_stack_limit_di, load_split_stack_limit_si,
7790         split_stack_return, split_stack_space_check): New expands and insns.
7791         * gcc/config/rs6000/rs6000-protos.h
7792         (rs6000_expand_split_stack_prologue): Declare.
7793         (rs6000_split_stack_space_check): Declare.
7795 2015-05-20  Alan Modra  <amodra@gmail.com>
7797         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
7798         (direct_return): Test vrsave_size rather than vrsave_mask.
7799         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
7800         (rs6000_emit_epilogue): Likewise.
7802 2015-05-20  Alan Modra  <amodra@gmail.com>
7804         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
7805         when not saving registers.
7806         (debug_stack_info): Adjust to omit printing unused offsets,
7807         as before.
7808         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
7809         expression.
7811 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7813         PR c++/65835
7814         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
7815         value_type to const char *.
7817 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
7819         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
7820         to build a biarch toolchain again.
7822 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
7824         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
7825         or implicit declarations.
7826         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
7827         into it.
7828         (get_odr_type): Check type has linkage before adding bases.
7829         (register_odr_type): Check that type has linkage before adding it.
7830         (type_known_to_have_no_deriavations_p): Rename to ..
7831         (type_known_to_have_no_derivations_p): This one.
7832         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
7833         (type_known_to_have_no_derivations_p): This one.
7834         * ipa-polymorphic-call.c
7835         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
7836         type has linkage.
7838 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
7840         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
7841         (layout_type): Use RECORD_OR_UNION_TYPE_P.
7843 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7845         * config/s390/s390.c (s390_vector_bool_type_p): New function.
7846         (s390_invalid_binary_op): New function.
7847         (TARGET_INVALID_BINARY_OP): Define macro.
7849 2015-05-19  David Sherwood  <david.sherwood@arm.com>
7851         * loop-invariant.c (create_new_invariant): Don't calculate address cost
7852         if mode is not a scalar integer.
7853         (get_inv_cost): Increase computational cost for unused invariants.
7855 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7857         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
7858         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
7859         * config/s390/s390-builtin-types.def: New file.
7860         * config/s390/s390-builtins.def: New file.
7861         * config/s390/s390-builtins.h: New file.
7862         * config/s390/s390-c.c: New file.
7863         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
7864         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
7865         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
7866         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
7867         prototypes.
7868         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
7869         Include.
7870         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
7871         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
7872         variable definitions.
7873         (s390_const_operand_ok): New function.
7874         (s390_expand_builtin): Rewrite.
7875         (s390_init_builtins): New function.
7876         (s390_handle_vectorbool_attribute): New function.
7877         (s390_attribute_table): Add s390_vector_bool attribute.
7878         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
7879         (s390_branch_condition_mask): Generate masks for new modes.
7880         (s390_expand_vec_compare_cc): New function.
7881         (s390_mangle_type): Add mangling for vector bool types.
7882         (enum s390_builtin): Remove.
7883         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
7884         efpc builtins.
7885         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
7886         s390_cpu_cpp_builtins.
7887         (REGISTER_TARGET_PRAGMAS): New macro.
7888         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
7889         (insn_cmp mode attribute): Add new CC modes.
7890         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
7891         (lcbb): New pattern definition.
7892         * config/s390/s390intrin.h: Include vecintrin.h.
7893         * config/s390/t-s390: New file.
7894         * config/s390/vecintrin.h: New file.
7895         * config/s390/vector.md: Include vx-builtins.md.
7896         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
7897         support.
7899 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7901         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
7902         CCVFHE.
7903         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
7904         (s390_select_ccmode): Likewise.
7905         (s390_canonicalize_comparison): Swap operands if necessary.
7906         (s390_expand_vec_compare_scalar): Expand DFmode compare using
7907         single element vector instructions.
7908         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
7909         (s390_branch_condition_mask): Generate CC masks for the new modes.
7910         * config/s390/s390.md (v0, vf, vd): New mode attributes.
7911         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
7912         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
7913         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
7914         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
7915         (*extend<DSF:mode><BFP:mode>2): New insn definition.
7916         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
7917         (extend<DSF:mode><BFP:mode>2): Turn into expander.
7918         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
7919         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
7920         (sqrt<mode>2): Add vector instruction.
7922 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7924         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
7925         constraints.
7926         * config/s390/predicates.md (const0_operand, constm1_operand)
7927         (constable_operand): Accept vector operands.
7928         * config/s390/s390-modes.def: Add supported vector modes.
7929         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
7930         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
7931         (s390_bytemask_vector_p, s390_expand_vec_strlen)
7932         (s390_expand_vec_compare, s390_expand_vcond)
7933         (s390_expand_vec_init): Add prototypes.
7934         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
7935         (s390_vector_mode_supported_p): New function.
7936         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
7937         (s390_contiguous_bitmask_vector_p): New function.
7938         (s390_bytemask_vector_p): New function.
7939         (s390_split_ok_p): Vector regs don't work either.
7940         (regclass_map): Add VEC_REGS.
7941         (s390_legitimate_constant_p): Handle vector constants.
7942         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
7943         (legitimate_reload_vector_constant_p): New function.
7944         (s390_preferred_reload_class): Handle CONST_VECTOR.
7945         (s390_reload_symref_address):  Likewise.
7946         (s390_secondary_reload): Vector memory instructions only support
7947         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
7948         (s390_emit_ccraw_jump): New function.
7949         (s390_expand_vec_strlen): New function.
7950         (s390_expand_vec_compare): New function.
7951         (s390_expand_vcond): New function.
7952         (s390_expand_vec_init): New function.
7953         (s390_dwarf_frame_reg_mode): New function.
7954         (print_operand): Handle addresses with 'O' and 'R' constraints.
7955         (NR_C_MODES, constant_modes): Add vector modes.
7956         (s390_output_pool_entry): Handle vector constants.
7957         (s390_hard_regno_mode_ok): Handle vector registers.
7958         (s390_class_max_nregs): Likewise.
7959         (s390_cannot_change_mode_class): New function.
7960         (s390_invalid_arg_for_unprototyped_fn): New function.
7961         (s390_function_arg_vector): New function.
7962         (s390_function_arg_float): Remove size variable.
7963         (s390_pass_by_reference): Handle vector arguments.
7964         (s390_function_arg_advance): Likewise.
7965         (s390_function_arg): Likewise.
7966         (s390_return_in_memory): Vector values are returned in a VR if
7967         possible.
7968         (s390_function_and_libcall_value): Handle vector arguments.
7969         (s390_gimplify_va_arg): Likewise.
7970         (s390_call_saved_register_used): Consider the arguments named.
7971         (s390_conditional_register_usage): Disable v16-v31 for non-vec
7972         targets.
7973         (s390_preferred_simd_mode): New function.
7974         (s390_support_vector_misalignment): New function.
7975         (s390_vector_alignment): New function.
7976         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
7977         (TARGET_VECTOR_MODE_SUPPORTED_P)
7978         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
7979         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
7980         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
7981         (TARGET_VECTOR_ALIGNMENT): Define target macro.
7982         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
7983         (FIRST_PSEUDO_REGISTER): Increase value.
7984         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
7985         (VECTOR_REG_P): Define macros.
7986         (FIXED_REGISTERS, CALL_USED_REGISTERS)
7987         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
7988         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
7989         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
7990         Add vector registers.
7991         (CANNOT_CHANGE_MODE_CLASS): Call C function.
7992         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
7993         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
7994         memory.
7995         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
7996         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
7997         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
7998         (VR*_REGNUM): New constants.
7999         (ALL): New mode iterator.
8000         (INTALL): Remove mode iterator.
8001         Include vector.md.
8002         (movti): Implement TImode moves for VRs.
8003         Disable TImode splitter for VR targets.
8004         Implement splitting TImode GPR<->VR moves.
8005         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
8006         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
8007         reload<mode>_la_in, reload<mode>_la_out.
8008         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
8009         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
8010         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
8011         (mov<mode> SF SD): Prefer lder, lde for loading.
8012         Add lrl and strl instructions.
8013         Add vector instructions.
8014         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
8015         Call s390_expand_vec_strlen on z13.
8016         (*cc_to_int): Change predicate to nonimmediate_operand.
8017         (addti3): Rename to *addti3.  New expander.
8018         (subti3): Rename to *subti3.  New expander.
8019         * config/s390/vector.md: New file.
8021 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8023         * common/config/s390/s390-common.c (processor_flags_table): Add
8024         z13.
8025         * config.gcc: Add z13.
8026         * config/s390/s390-opts.h (enum processor_type): Add
8027         PROCESSOR_2964_Z13.
8028         * config/s390/s390.c (s390_adjust_priority): Check for
8029         PROCESSOR_2964_Z13.
8030         (s390_reorg): Likewise.
8031         (s390_sched_reorder): Likewise.
8032         (s390_sched_variable_issue): Likewise.
8033         (s390_loop_unroll_adjust): Likewise.
8034         (s390_option_override): Likewise. Default to -mvx when available.
8035         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
8036         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
8037         (TARGET_VX_ABI): Define macros.
8038         macros.
8039         (TARGET_DEFAULT): Add MASK_OPT_VX.
8040         * config/s390/s390.md ("cpu" attribute): Add z13.
8041         ("cpu_facility" attribute): Add vec.
8042         * config/s390/s390.opt (processor_type): Add z13.
8043         (mvx): New options.
8044         * doc/invoke.texi: Add z13 option for -march.
8046 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8048         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
8049         mode check to make sure that only scalar integer values are
8050         accepted.
8052 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
8054         * tree.c (verify_type_variant): Fix #undef.
8055         (gimple_canonical_types_compatible_p): Move here from lto.c
8056         (verify_type): Verify TYPE_CANONICAL compatibility.
8057         * tree.h (gimple_canonical_types_compatible_p): Declare.
8059 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
8061         PR middle-end/66199
8062         * tree.h (OMP_TEAMS_COMBINED): Define.
8063         * gimplify.c (enum gimplify_omp_var_data): Add
8064         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
8065         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
8066         (omp_notice_variable): Accept both ORT_TEAMS
8067         and ORT_COMBINED_TEAMS.  Don't recurse if
8068         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
8069         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
8070         GOVD_FIRSTPRIVATE.
8071         (omp_no_lastprivate): New function.
8072         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
8073         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
8074         notice_outer and set appropriate bits, otherwise make
8075         sure default(none) combined constructs won't complain.
8076         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
8077         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
8078         omp_no_lastprivate either remove the clause or turn it
8079         into OMP_CLAUSE_PRIVATE.
8080         (gimplify_omp_for): Fix up handling of implicit
8081         lastprivate or linear iterators.
8082         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
8083         ORT_COMBINED_TEAMS.
8084         * omp-low.c (lower_omp_for_lastprivate): For combined
8085         for simd use fd.loop.n2 from the for rather than simd.
8087 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8089         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
8090         instead of gen_rtx_raw_REG.
8091         (cris_expand_epilogue): Likewise.
8092         * config/microblaze/microblaze.c (microblaze_classify_address):
8093         Likewise.
8094         * config/sparc/sparc.md: Likewise.
8096 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
8098         * config/alpha/alpha.c (alpha_legitimize_reload_address)
8099         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
8100         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
8101         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
8102         Use CASE_CONST_SCALAR_INT.
8103         (print_operand) <case 'M'>: Use mode_width_operand to check the
8104         value of the constant.
8105         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
8106         * config/alpha/predicates.md (input_operand): Use general_operand
8107         instead of match_code as operand check.
8108         (symbolic_operand): Use match_code with subexpression digits.
8109         * config/alpha/constraints.md (Q): Ditto.
8111 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8113         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
8115 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8117         * config/s390/s390.c (s390_secondary_reload): Fix check for
8118         load/store relative.
8120 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8122         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
8123         alternative_mask to uint64_t.
8125 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
8127         PR tree-optimization/66187
8128         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
8129         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
8130         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
8132 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
8134         * diagnostic.c (diagnostic_report_current_module): Strengthen
8135         local "new_map" from const line_map * to
8136         const line_map_ordinary *.
8137         * genmatch.c (error_cb): Likewise for local "map".
8138         (output_line_directive): Likewise for local "map".
8139         * input.c (expand_location_1): Likewise for local "map".
8140         Pass NULL rather than &map to
8141         linemap_unwind_to_first_non_reserved_loc, since the value is never
8142         read from there, and the value written back not read from here.
8143         (is_location_from_builtin_token): Strengthen local "map" from
8144         const line_map * to const line_map_ordinary *.
8145         (dump_location_info): Strengthen locals "map" from
8146         line_map *, one to const line_map_ordinary *, the other
8147         to const line_map_macro *.
8148         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
8149         const line_map * to const line_map_macro *.
8150         (maybe_unwind_expanded_macro_loc): Add a call to
8151         linemap_check_macro when writing to the "map" field of the
8152         loc_map_pair.
8153         Introduce local const line_map_ordinary * "ord_map", using it in
8154         place of "map" in the part of the function where we know we have
8155         an ordinary map.  Strengthen local "m" from const line_map * to
8156         const line_map_ordinary *.
8158 2015-05-19  Nick Clifton  <nickc@redhat.com>
8160         PR target/66156
8161         * config/msp430/msp430.md (zero_extendhisi2): Add support for
8162         separate source and destination registers.
8164 2015-05-19  Richard Biener  <rguenther@suse.de>
8166         PR tree-optimization/66165
8167         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
8168         for no load permutation.
8170         PR tree-optimization/66185
8171         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
8172         when building the SLP node from scalars.
8174 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
8175             Tristan Gingold  <gingold@adacore.com>
8177         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
8178         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
8179         (expand_stack_restore): Call record_new_stack_level.
8180         (expand_stack_save): Do not call do_pending_stack_adjust.
8181         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
8182         * calls.c (expand_call): Call record_new_stack_level for alloca.
8183         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
8184         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
8185         (update_sjlj_context): New global function.
8186         * except.h (update_sjlj_context): Declare.
8187         * explow.c (record_new_stack_level): New global function.
8188         (allocate_dynamic_stack_space): Call record_new_stack_level.
8189         * explow.h (record_new_stack_level): Declare.
8190         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
8191         * cfgrtl.c (duplicate_insn_chain): Likewise.
8193 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8195         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
8196         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
8197         STACK_GROWS_DOWNWARD as normal if.
8198         (expand_call): Likewise.
8200 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
8202         PR target/54236
8203         * config/sh/sh.md (*round_int_even): New insn_and_split and
8204         accompanying new unnamed split.
8206 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8208         * bitmap.c (bitmap_set_range): Handle count==1 specially.
8209         (bitmap_clear_range): Likewise.
8210         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
8211         bitmap_set_range unconditionally.
8212         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
8213         * df-scan.c (df_mark_reg): Likewise.
8214         * haifa-sched.c (setup_ref_regs): Likewise.
8215         * sched-rgn.c (update_live_1): Likewise.
8217 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8219         * regs.h (END_HARD_REGNO): Delete.
8220         (END_REGNO): Move to...
8221         * rtl.h: ...here.
8222         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
8223         * caller-save.c (mark_set_regs): Likewise.
8224         * combine.c (move_deaths, distribute_notes): Likewise.
8225         * cse.c (invalidate, invalidate_for_call): Likewise.
8226         * df-scan.c (df_ref_record): Likewise.
8227         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
8228         (record_last_reg_set_info): Likewise.
8229         * reg-stack.c (convert_regs_exit): Likewise.
8230         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
8231         * resource.c (update_live_status): Likewise.
8232         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
8234 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8236         * rtl.h (reg_info): Add an nregs field.
8237         (REG_NREGS): Use it.
8238         (SET_REGNO_RAW): Delete.
8239         (set_regno_raw): New function.
8240         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
8241         (END_REGNO): Redefine in terms of REG_NREGS.
8242         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
8243         SET_REGNO_RAW.
8244         * emit-rtl.c (set_mode_and_regno): Likewise.
8245         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
8246         instead of SET_REGNO_RAW.
8248 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8250         * rtl.h (PUT_MODE_RAW): New macro.
8251         (PUT_REG_NOTE_KIND): Use it.
8252         (set_mode_and_regno): Declare.
8253         (gen_raw_REG): Change regno to "unsigned int".
8254         (gen_rtx_REG): Change "unsigned" to "unsigned int".
8255         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
8256         use set_mode_and_regno to change the mode of registers.
8257         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
8258         * emit-rtl.c (set_mode_and_regno): New function.
8259         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
8260         * caller-save.c (reg_save_code): Use set_mode_and_regno.
8261         * expr.c (init_expr_target): Likewise.
8262         * ira.c (setup_prohibited_mode_move_regs): Likewise.
8263         * postreload.c (reload_cse_simplify_operands): Likewise.
8265 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8267         * caller-save.c (init_caller_save): Use word_mode and
8268         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
8269         * expr.c (init_expr_target): Likewise.
8270         * ira.c (setup_prohibited_mode_move_regs): Likewise.
8271         * postreload.c (reload_cse_regs_1): Likewise.
8273 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8275         * rtl.def (REG): Change format to "r".
8276         * rtl.h (rtunion): Remove rt_reg.
8277         (reg_info): New structure.
8278         (rtx_def): Add reg field to main union.
8279         (X0REGATTR): Delete.
8280         (REG_CHECK): New macro.
8281         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
8282         * rtl.c (rtx_format): Document "r".
8283         (rtx_code_size): Handle REG specially.
8284         * gengenrtl.c (special_format): Return true for formats
8285         that include 'r'.
8286         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
8287         Deal with REG_ATTRS after the field loop.
8288         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
8289         * expmed.c (init_expmed): Call gen_raw_REG instead of
8290         gen_rtx_raw_REG.
8291         * expr.c (init_expr_target): Likewise.
8292         * regcprop.c (maybe_mode_change): Likewise.
8293         * varasm.c (make_decl_rtl): Likewise.
8294         * final.c (leaf_renumber_regs_insn): Return early after
8295         handling REGs.
8296         * genemit.c (gen_exp): Handle 'r' fields.
8297         * genpeep.c (match_rtx): Likewise.
8298         * gensupport.c (subst_pattern_match): Likewise.
8299         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
8300         (alter_constraints, subst_dup): Likewise.
8301         * read-rtl.c (read_rtx_code): Likewise.
8302         * print-rtl.c (print_rtx): Likewise.
8303         * genrecog.c (find_operand, find_matching_operand): Likewise.
8304         (validate_pattern, match_pattern_2): Likewise.
8305         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
8306         (rtx_test::regno_field): New function.
8307         (operator ==, safe_to_hoist_p, transition_parameter_type)
8308         (parameter_type_string, print_parameter_value)
8309         (print_nonbool_test, print_test): Handle new enum values.
8310         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
8311         * lra-constraints.c (operands_match_p): Likewise.
8313 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8315         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
8316         Change type of new_regno to unsigned int.
8317         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
8318         new_regno to unsigned int.
8319         (df_ref_change_reg_with_loc): Remove old_regno parameter.
8320         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
8321         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
8322         (SET_REGNO_RAW): Add space after ",".
8324 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8326         * rtl.h (REG_NREGS): New macro
8327         * alias.c (record_set): Use it.
8328         * cfgcleanup.c (mark_effect): Likewise.
8329         * combine.c (likely_spilled_retval_1): Likewise.
8330         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
8331         (move_deaths, distribute_notes): Likewise.
8332         * cselib.c (cselib_record_set): Likewise.
8333         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
8334         * df-scan.c (df_mark_reg): Likewise.
8335         * dse.c (look_for_hardregs): Likewise.
8336         * dwarf2out.c (reg_loc_descriptor): Likewise.
8337         (multiple_reg_loc_descriptor): Likewise.
8338         * expr.c (write_complex_part, read_complex_part): Likewise.
8339         (emit_move_complex): Likewise.
8340         * haifa-sched.c (setup_ref_regs): Likewise.
8341         * ira-lives.c (mark_hard_reg_live): Likewise.
8342         * lra.c (lra_set_insn_recog_data): Likewise.
8343         * mode-switching.c (create_pre_exit): Likewise.
8344         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
8345         (reload_combine_recognize_pattern): Likewise.
8346         (reload_combine_note_use, move2add_record_mode): Likewise.
8347         (reload_cse_move2add): Likewise.
8348         * reg-stack.c (subst_stack_regs_pat): Likewise.
8349         * regcprop.c (kill_value, copy_value): Likewise.
8350         (copyprop_hardreg_forward_1): Likewise.
8351         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
8352         (build_def_use): Likewise.
8353         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
8354         (deps_analyze_insn): Likewise.
8355         * sched-rgn.c (check_live_1, update_live_1): Likewise.
8356         * sel-sched.c (count_occurrences_equiv): Likewise.
8357         * valtrack.c (dead_debug_insert_temp): Likewise.
8359 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
8361         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
8362         * dse.c (note_add_store): Likewise.
8363         * ira-lives.c (mark_hard_reg_dead): Likewise.
8364         * loop-invariant.c (mark_reg_store): Likewise.
8365         (mark_reg_death): Likewise.
8366         * postreload.c (reload_combine): Likewise.
8367         (reload_combine_note_store): Likewise.
8368         (reload_combine_note_use): Likewise.
8369         * recog.c (peep2_reg_dead_p): Likewise.
8371 2015-05-19  Alan Modra  <amodra@gmail.com>
8373         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
8374         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
8375         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
8376         unused predicates.
8377         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
8378         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
8379         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
8380         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
8382 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
8384         * config/mips/mips.md (JOIN_MODE): New mode iterator.
8385         (join2_load_Store<JOIN_MODE:mode>): New pattern.
8386         (join2_loadhi): Likewise.
8387         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
8388         load-load and store-stores.
8389         * config/mips/mips.opt (mload-store-pairs): New option.
8390         (TARGET_LOAD_STORE_PAIRS): New macro.
8391         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
8392         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
8393         * config/mips/mips.c (mips_load_store_bonding_p): New function.
8395 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
8397         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
8398         explicit swaps.
8399         * dojump.c (do_compare_rtx_and_jump): Likewise.
8400         * expmed.c (emit_store_flag_1): Likewise.
8401         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
8402         * final.c (sprint_ul): Use std::reverse for reversing a string.
8403         * fold-const.c (extract_muldiv_1): Use std::swap.
8404         * genmodes.c (emit_mode_int_n): Likewise.
8405         * ifcvt.c (dead_or_predicable): Likewise.
8406         * ira-build.c (ira_merge_live_ranges): Likewise.
8407         (swap_allocno_copy_ends_if_necessary): Likewise.
8408         * ira.c (ira_setup_alts): Likewise.
8409         * loop-iv.c (iv_analyze_expr): Likewise.
8410         (implies_p): Likewise.
8411         (canon_condition): Likewise.
8412         * lra-constraints.c (swap_operands): Likewise.
8413         * lra-lives.c (lra_merge_live_ranges): Likewise.
8414         * omega.c (swap): Remove.
8415         (bswap): Remove.
8416         (omega_unprotect_1): Use std::swap.
8417         (omega_solve_geq): Likewise.
8418         * optabs.c (expand_binop_directly): Likewise.
8419         (expand_binop): Likewise.
8420         (emit_conditional_move): Likewise.
8421         (emit_conditional_add): Likewise.
8422         * postreload.c (reload_cse_simplify_operands): Likewise.
8423         * reg-stack.c (emit_swap_insn): Likewise.
8424         (swap_to_top): Likewise.
8425         (compare_for_stack_reg): Likewise.
8426         (subst_asm_stack_regs): Likewise.
8427         * reload.c (find_reloads): Likewise.
8428         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
8429         * sel-sched.c (invoke_reorder_hooks): Likewise.
8430         (create_block_for_bookkeeping): Likewise.
8431         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
8432         (lambda_matrix_right_hermite): Use std::swap.
8433         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
8434         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
8435         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
8436         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
8437         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
8438         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
8439         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8440         * tree-vrp.c (compare_ranges): Likewise.
8441         * var-tracking.c (add_with_sets): Likewise.
8442         (vt_find_locations): Likewise.
8444 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
8446         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
8447         pie executables.
8448         (FBSD_ENDFILE_SPEC): Likewise.
8449         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
8450         config/freebsd-spec.h.
8451         (ENDFILE_SPEC): Likewise.
8453 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
8454             Richard Henderson  <rth@redhat.com>
8456         PR target/57032
8457         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
8458         Check for a memory location that is not a reference (using an AND)
8459         to an unaligned location here.
8460         * config/alpha/predicates.md (normal_memory_operand): Remove.
8462 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
8464         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
8465         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
8467 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
8469         * config/mips/mips.c (micromips_globals): New variable.
8470         (mips_set_compression_mode): Save and reinitialize target-dependent
8471         state for microMIPS.
8473 2015-05-18  Martin Liska  <mliska@suse.cz>
8475         * dbgcnt.def: Add new counter.
8476         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
8478 2015-05-18  Martin Liska  <mliska@suse.cz>
8480         * dbgcnt.def: Sort counters.
8481         * opts.c (common_handle_option): Do not compile if
8482         -fdbg-cnt-list is enabled.
8484 2015-05-18  Tom de Vries  <tom@codesourcery.com>
8486         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
8487         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
8488         address operator to va_list operand.
8489         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
8490         unconditionally.
8491         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
8492         operand.
8493         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
8494         * config/s390/s390.c (s390_gimplify_va_arg): Same.
8495         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
8497 2015-05-18  Tom de Vries  <tom@codesourcery.com>
8499         * tree-ssa-tail-merge.c: Fix whitespace.
8501 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
8503         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
8504         cortex-a17, and cortex-a17.cortex-a7.
8506 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
8508         PR target/54236
8509         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
8511 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
8513         PR target/66174
8514         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
8515         QImode inner modes for TARGET_AVX512BW.  Force mask operand
8516         to a register for AVX512F modes.
8518 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
8520         * toplev.c (emit_debug_global_declarations): Do not output debug info
8521         when doing slim LTO objects.
8523 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
8525         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
8526         odr_types_equivalent_p): Declare.
8527         (odr_type_p): Use gcc_checking_assert.
8528         (type_in_anonymous_namespace_p) Declare.
8529         (type_with_linkage_p): Declare.
8530         * common.opt (Wlto-type-mismatch): New warning.
8531         * ipa-devirt.c (compound_type_base): New function.
8532         (odr_or_derived_type_p): New function.
8533         (odr_types_equivalent_p): New function.
8534         (add_type_duplicate): Simplify.
8535         (type_with_linkage_p): Add hack to prevent false positives on C types
8536         (type_in_anonymous_namespace_p): Likewise.
8537         * tree.c (need_assembler_name_p): Use type_with_linkage.
8538         * tree.h (type_in_anonymous_namespace_p): Remove.
8539         * doc/invoke.texi (-Wlto-type-mismatch): Document
8541 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
8543         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
8544         (verify_type): Verify STRING_FLAG.
8546 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8548         PR fortran/44054
8549         * tree-pretty-print.c (percent_K_format): Replace locus pointer
8550         with accessor function.
8551         * tree-diagnostic.c (diagnostic_report_current_function): Use
8552         diagnostic_location function.
8553         (maybe_unwind_expanded_macro_loc): Likewise.
8554         (virt_loc_aware_diagnostic_finalizer): Likewise.
8555         (default_tree_printer): Replace locus pointer with accessor function.
8556         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
8557         (diagnostic_set_info_translated): Initialize second location.
8558         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
8559         (diagnostic_show_locus): Handle two locations. Call
8560         diagnostic_print_caret_line.
8561         (diagnostic_print_caret_line): New.
8562         (default_diagnostic_starter): Use diagnostic_location function.
8563         (diagnostic_report_diagnostic): Use diagnostic_location function.
8564         (verbatim): Do not set text.locus.
8565         * diagnostic.h (struct diagnostic_info): Remove location field.
8566         (struct diagnostic_context): Make caret_chars an array of two.
8567         (diagnostic_location): New inline.
8568         (diagnostic_expand_location): Handle two locations.
8569         (diagnostic_same_line): New inline.
8570         (diagnostic_print_caret_line): Declare.
8571         (CARET_LINE_MARGIN): New constant.
8572         * pretty-print.c (pp_printf): Do not set text.locus.
8573         (pp_verbatim): Do not set text.locus.
8574         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
8575         (struct text_info): Replace locus pointer with locations
8576         array. Add accessor functions.
8578 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
8579             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
8581         PR target/65768
8582         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
8583         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
8584          large constants in register instead of splitting them.
8586 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
8588         PR target/66140
8589         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
8590         replacements in memory addresses.
8591         (get_unaligned_address): Ditto.
8593 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
8595         * config/ft32/*: New files for FT32 port.
8596         * doc/install.texi: Add FT32 information.
8597         * doc/invoke.texi: Add FT32 information.
8598         * doc/md.texi: Add FT32 information.
8599         * doc/contrib.texi: Self added.
8601 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
8603         PR tree-optimization/64454
8604         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
8605         (-1 - A -> ~A): Remove unnecessary condition.
8607 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
8609         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
8610         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
8611         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
8613 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
8615         * ipa-chkp.h (chkp_wrap_function): New.
8616         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
8617         (chkp_wrap_function_name): New.
8618         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
8619         to get wrapper name.
8620         * lto-cgraph.c: Include ipa-chkp.h.
8621         (input_cgraph_1): Avoid alias chain for wrappers.
8623 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
8625         PR middle-end/66134
8626         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
8627         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
8629 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8631         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
8632         (AARCH64_FL_SLOWMUL): Delete.
8633         (AARCH64_FL_CRC): Redefine to 1<<3.
8634         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
8636 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8638         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
8639         casting.
8641 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
8643         * config/alpha/alpha.md (extendqidi2): Use general_operand
8644         instead of some_operand for operand[1] predicate.
8645         (extendhidi2): Ditto.
8646         (cbranchdi4): Use general_operand instead of some_operand
8647         for operand[1] and operands[2] predicates.
8648         (cstoredi4): Ditto.
8649         * config/alpha/predicates.md (some_operand): Remove unused predicate.
8650         (some_ni_operand): Ditto.
8652 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
8654         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
8655         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
8656         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
8657         low part of the constant using alpha_emit_set_const_1.
8658         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
8660 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
8662         * varasm.c (output_constant_pool_1): Pass down alignment from
8663         constant pool entry's descriptor to output_constant_pool_2.
8664         (output_object_block): Add comment prior to call to
8665         output_constant_pool_1.
8667 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
8669         PR rtl-optimization/65862
8670         * target.def (ira_change_pseudo_allocno_class): New hook.
8671         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
8672         value of the hook.
8673         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
8674         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
8675         hook.
8676         * ira-costs.c (find_costs_and_classes): Call the hook and change
8677         classes when it is necessary.
8678         * doc/tm.texi: Update.
8680 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
8682         * config/i386/i386.md (sibcall_memory): Check that register with
8683         callee address is not also used as one of the arguments, instead
8684         of checking that it is not live after the sibcall.
8685         (sibcall_pop_memory): Ditto.
8686         (sibcall_value_memory): Ditto.
8687         (sibcall_value_pop_memory): Ditto.
8689 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
8691         * generic-match-head.c (types_match): Handle non-types.
8692         * gimple-match-head.c (types_match): Likewise.
8693         * match.pd: Remove unnecessary TREE_TYPE for types_match.
8695 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
8697         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
8698         (csneg3<mode>_insn): Enable expansion of pattern.
8700 2015-05-14  Nick Clifton  <nickc@redhat.com>
8702         * config/rl78/rl78.c (rl78_select_section): Select the correct
8703         default section based upon the category of the decl.
8705 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
8707         PR rtl-optimization/30967
8708         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
8709         destination mode for the cost of scc patterns.
8711 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
8713         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
8714         using SWIM248 mode iterator.
8715         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
8716         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
8717         for operand[2] constraint.
8718         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
8720 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
8722         PR middle-end/66133
8723         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
8724         make sure it is never noreturn, even when the task body does not
8725         return.
8726         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
8727         right before GIMPLE_OMP_RETURN.
8728         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
8729         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
8730         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
8732 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8734         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
8735         * tree-ssa-math-opts.c: Include params.h
8736         (pow_synth_sqrt_info): New struct.
8737         (representable_as_half_series_p): New function.
8738         (get_fn_chain): Likewise.
8739         (print_nested_fn): Likewise.
8740         (dump_fractional_sqrt_sequence): Likewise.
8741         (dump_integer_part): Likewise.
8742         (expand_pow_as_sqrts): Likewise.
8743         (gimple_expand_builtin_pow): Use above to attempt to expand
8744         pow as series of square roots.  Removed now unused variables.
8746 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
8748         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
8749         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
8750         Remove *p0 and *p1 arguments.  Rewrite function.
8751         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
8752         (alpha_split_const_mov): Update calls to alpha_extract_integer and
8753         alpha_emit_set_long_const.
8754         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
8755         (alpha_output_mi_thunk_osf): Ditto.
8756         * config/alpha/alpha.md (movti): Do not check operands[1]
8757         for CONST_DOUBLE.
8759 2015-05-13  Richard Biener  <rguenther@suse.de>
8761         PR tree-optimization/66129
8762         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
8763         commutative.
8764         (vect_schedule_slp_instance): Fix typo.
8766 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
8768         * common.opt (fdump-internal-locations): New option.
8769         * input.c: Include diagnostic-core.h.
8770         (get_end_location): New function.
8771         (write_digit): New function.
8772         (write_digit_row): New function.
8773         (dump_location_range): New function.
8774         (dump_labelled_location_range): New function.
8775         (dump_location_info): New function.
8776         * input.h (dump_location_info): New prototype.
8777         * toplev.c (compile_file): Handle flag_dump_locations.
8779 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
8781         * gimple-expr.h (is_gimple_constant): Reorder.
8782         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
8784 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
8786         * combine.c (simplify_set): When generating a CC set, if the
8787         source already is in the correct mode, do not wrap it in a
8788         compare.  Simplify the rest of that code.
8790 2015-05-13  Richard Biener  <rguenther@suse.de>
8792         PR tree-optimization/66123
8793         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
8794         a taken edge.
8796 2015-05-13  Richard Biener  <rguenther@suse.de>
8798         PR middle-end/66110
8799         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
8800         specially.
8801         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
8803 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
8805         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
8806         * aclocal.m4: Regenerated with automake-1.11.6.
8808 2015-05-13  Tom de Vries  <tom@codesourcery.com>
8810         PR tree-optimization/66010
8811         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
8812         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
8813         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
8814         and rval based on do_deref.
8816 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8818         PR target/65103
8819         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
8820         link time constants into adress expressions and therefore set
8821         their cost to 0.
8823 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
8825         PR target/66112
8826         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
8827         Use SWI248 iterator instead of SWI.
8828         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
8829         Use eq_attr "alternative" "0" instead of match_test in
8830         length_immediate attribute computation.
8831         (*mulvhi4, *mulvhi4_1): New define_insns.
8833         PR target/66112
8834         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
8835         SIGNED to get precision of non-negative value.
8837 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8839         PR target/66048
8840         * function.c (diddle_return_value_1): Process bounds first.
8841         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
8842         register.
8844 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8846         PR rtl-optimization/64616
8847         * loop-invariant.c (can_move_invariant_reg): New.
8848         (move_invariant_reg): Call above new function to decide whether
8849         instruction can just be moved, skipping creation of temporary
8850         register.
8852 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
8854         PR target/pr66047.c
8855         * i386.c (ix86_function_sseregparm): Only return -1 if local function
8856         with implied regparm is called from -mno-sse function.
8857         (init_cumulative_args): Output error if ix86_function_sseregparm
8858         return -1 and SSE register would be needed.
8859         (function_arg_advance_32): Likewise.
8860         (function_arg_32): Likewise.
8861         * i386.h (ix86_args): Add decl field.
8863 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
8865         PR ipa/65873
8866         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
8867         inlines across optimization boundary.
8869 2015-05-12  Jason Merrill  <jason@redhat.com>
8871         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
8872         string literal and macro name.
8874 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
8876         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
8877         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
8878         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
8880 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
8882         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
8883         (-Wmisleading-indentation): New option.
8884         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
8886 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
8888         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
8889         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
8890         (alpha_extract_integer): Ditto.
8891         (alpha_legitimate_constant_p): Ditto.
8892         (alpha_split_tmode_pair): Ditto.
8893         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
8894         (alpha_expand_mov): Ditto.
8895         (print_operand): Remove handling of 'H' modifier.
8896         <case 'm'>: Remove CONST_DOUBLE handling.
8897         (summarize_insn): Handle CONST_WIDE_INT.
8898         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
8899         (anddi3): Ditto.
8900         (movti): Handle CONST_WIDE_INT.
8901         * config/alpha/constraints.md ('H'): Remove constraint definition.
8902         ('G'): Do not match MODE_FLOAT class.
8903         * config/alpha/predicates.md (const0_operand): Also match
8904         const_wide_int.
8905         (non_add_const_operand): Ditto.
8906         (non_zero_const_operand): Ditto.
8907         (some_operand): Ditto.
8908         (input_operand): Ditto.  Handle CONST_WIDE_INT.
8909         (and_operand): Do not match const_double.
8910         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
8912 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
8914         PR target/65697
8915         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
8916         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
8917         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
8918         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
8919         is_mm_seq_cst, is_mm_sync): New accessor functions.
8920         * builtins.c (expand_builtin_sync_operation,
8921         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
8922         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
8923         (get_memmodel,  expand_builtin_atomic_compare_exchange,
8924         expand_builtin_atomic_load, expand_builtin_atomic_store,
8925         expand_builtin_atomic_clear): Use new accessor routines.
8926         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
8927         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
8928         (maybe_emit_sync_lock_test_and_set): Use new accessors and
8929         MEMMODEL_SYNC_ACQUIRE.
8930         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
8931         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
8932         expand_atomic_store): Use new accessors.
8933         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
8934         * tsan.c (instrument_builtin_call): Update check for memory model beyond
8935         final enum to use MEMMODEL_LAST.
8936         * c-family/c-common.c: Use new accessor for memmodel_base.
8937         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
8938         accessors.
8939         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
8940         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
8941         mem_thread_fence, *dmb): Likewise.
8942         * config/alpha/alpha.c (alpha_split_compare_and_swap,
8943         alpha_split_compare_and_swap_12): Likewise.
8944         * config/arm/arm.c (arm_expand_compare_and_swap,
8945         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
8946         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
8947         atomic_loaddi): Likewise.
8948         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
8949         Likewise.
8950         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
8951         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
8952         use new accessors.
8953         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
8954         atomic_store<mode>, atomic_compare_and_swap<mode>,
8955         atomic_exchange<mode>): Use new accessors.
8956         * config/mips/mips.c (mips_process_sync_loop): Likewise.
8957         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
8958         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
8959         rs6000_post_atomic_barrier): Add new cases.
8960         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
8961         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
8962         (atomic_load<mode>): Add new cases and use new accessors.
8963         (store_quadpti): Add new cases.
8964         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
8965         accessors.
8966         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
8967         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
8968         model, not 8.
8970 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
8972         * ipa-devirt.c (type_with_linkage_p): New function.
8973         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
8974         type has linkage.
8975         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
8976         (can_be_name_hashed_p): Simplify.
8977         (hash_odr_name): Check that type has linkage before checking if it is
8978         anonymous.
8979         (types_same_for_odr): Likewise.
8980         (odr_name_hasher::equal): Likewise.
8981         (odr_subtypes_equivalent_p): Likewise.
8982         (warn_types_mismatch): Likewise.
8983         (get_odr_type): Likewise.
8984         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
8985         * ipa-utils.h (odr_type_p): Move offline.
8986         * tree.c (need_assembler_name_p): Fix handling of types
8987         without linkages.
8988         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
8990 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
8992         * timevar.c (timevar_enable): Delete in favor of...
8993         (g_timer): New global.
8994         (struct timevar_def): Move to timevar.h inside class timer.
8995         (struct timevar_stack_def): Likewise.
8996         (timevars): Delete global in favor of field "m_timevars" within
8997         class timer in timevar.h
8998         (stack): Likewise, in favor of field "m_stack".
8999         (unused_stack_instances): Likewise, in favor of field
9000         "m_unused_stack_instances".
9001         (start_time): Likewise, in favor of field "m_start_time".
9002         (get_time): Eliminate check for timevar_enable.
9003         (timer::timer): New function, built from part of timevar_init.
9004         (timevar_init): Rewrite idempotency test from using
9005         "timevar_enable" bool to using dynamic allocation of "g_timer".
9006         Move rest of implementation into timer's constructor.
9007         (timevar_push_1): Rename to...
9008         (timer::push): ...this, adding "m_" prefixes to variables that
9009         are now fields of timer.
9010         (timevar_pop_1): Likewise, rename to...
9011         (timer::pop): ...this, and add "m_" prefixes.
9012         (timevar_start): Replace test for "timevar_enable" with one for
9013         "g_timer", and move bulk of implementation to...
9014         (timer::start): ...here, adding "m_" prefixes.
9015         (timevar_stop): Likewise, from here...
9016         (timer::stop): ...to here.
9017         (timevar_cond_start): Likewise, from here...
9018         (timer::cond_start): ...to here.
9019         (timevar_cond_stop): Likewise, from here...
9020         (timer::cond_stop): ...to here.
9021         (validate_phases): Rename to...
9022         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
9023         locals "total" and "tv" const.
9024         (timevar_print): Rename to...
9025         (timer::print): ...this, and add "m_" prefixes.  Make locals
9026         "total" and "tv" const.  Eliminate test for timevar_enable.
9027         * timevar.h (timevar_enable): Eliminate.
9028         (g_timer): New declaration.
9029         (timevar_push_1): Eliminate.
9030         (timevar_pop_1): Eliminate.
9031         (timevar_print): Eliminate.
9032         (class timer): New class.
9033         (timevar_push): Rewrite to use g_timer.
9034         (timevar_pop): Likewise.
9035         * toplev.c (toplev::~toplev): Likewise.
9037 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
9039         * arm-protos.h (arm_sched_autopref): Delete.
9040         (tune_params): Re-organize, use enums for flag values.
9041         (FUSE_OPS): New macro.
9042         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
9043         (ARM_PREFETCH_BENEFICIAL): Likewise.
9044         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
9045         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9046         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
9047         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
9048         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
9049         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
9050         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
9051         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
9052         format.
9053         (arm_option_override, thumb2_reorg, arm_print_tune_info)
9054         (aarch_macro_fusion_pair_p): Update uses of current_tune.
9055         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
9057 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
9059         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
9060         "break".
9062 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
9063             Sandra Loosemore <sandra@codesourcery.com>
9065         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
9066         value.
9067         (REG_CLASS_NAMES): Add "IJMP_REGS".
9068         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
9069         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
9070         use new "c" register constraint.
9071         * config/nios2/constraint.md (c): New register constraint
9072         corresponding to IJMP_REGS.
9074 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
9076         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
9077         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
9078         define_splits): Delete, revamp, transmogrify into ...
9079         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
9080         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
9081         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
9082         New.
9084 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
9086         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
9087         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
9089 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
9091         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
9092         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
9093         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
9094         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
9095         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
9096         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
9097         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
9098         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
9099         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
9100         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
9101         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
9102         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
9103         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
9104         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
9105         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
9106         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
9107         and 30 corresponding splitters): Delete.
9109 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
9111         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
9112         zero_extract.
9114 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
9116         * combine.c (recog_for_combine_1): New function, factored out
9117         from recog_for_combine.
9118         (change_zero_ext): New function.
9119         (recog_for_combine): If recog fails, try again with the pattern
9120         modified by change_zero_ext; if that still fails, restore the
9121         pattern.
9123 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
9125         * combine.c (get_undo_marker): New function.
9126         (undo_to_marker): New function, largely factored out from ...
9127         (undo_all): ... this.  Adjust.
9129 2015-05-12  Richard Biener  <rguenther@suse.de>
9131         PR tree-optimization/66101
9132         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
9133         fixup if we turn a loop exit edge to a fallthru edge.
9135 2015-05-12  Richard Biener  <rguenther@suse.de>
9137         PR tree-optimization/37021
9138         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
9139         (SLP_TREE_TWO_OPERATORS): New define.
9140         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
9141         SLP_TREE_TWO_OPERATORS.
9142         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
9143         SLP node.
9144         (vect_build_slp_tree): Adjust.
9145         (vect_analyze_slp_cost_1): Likewise.
9146         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
9147         emitting two vector stmts and mixing the results.
9149 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9151         * call.c (print_z_candidates): Remove dead code.
9153 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9155         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
9156         and zEC12_simple_fp.
9157         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
9158         to 1.
9160 2015-05-12  Tom de Vries  <tom@codesourcery.com>
9162         PR tree-optimization/66010
9163         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
9164         ifn_va_arg.
9165         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
9166         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
9167         va_lists are passed, and remove corresponding handling.
9168         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
9169         do_deref argument to ifn_va_arg.
9170         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
9171         ifn_va_arg.
9173 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9175         PR target/65955
9176         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
9177         REG before taking its REGNO.
9179 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9181         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
9182         rsp->sign_bit_copies and rsp->nonzero_bits into ...
9183         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
9184         present to get more accurate information about the number of sign bit
9185         copies and non zero bits.
9187 2015-05-12  Richard Biener  <rguenther@suse.de>
9189         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
9190         do not allow unrolling.
9192 2015-05-11  Richard Henderson  <rth@redhat.com>
9194         * config/i386/i386-modes.def (CCP): New.
9195         * config/i386/i386.c (put_condition_code): Handle it.
9196         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
9198 2015-05-11  Richard Henderson  <rth@redhat.com>
9200         * target.def (md_asm_clobbers): Replace with...
9201         (md_asm_adjust): this.
9202         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
9203         (TARGET_MD_ASM_ADJUST): New.
9204         * tm.texi: Rebuild.
9205         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
9206         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
9207         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
9209         * cfgexpand.c (check_operand_nalternatives): Accept vector of
9210         constraints instead of lists of outputs and inputs.
9211         (expand_asm_stmt): Save and restore input_location around the
9212         body of the function.  Move asm data into vectors instead of
9213         building tree lists.  Generate cleanup sequences as needed,
9214         rather than waiting til the end.  Use new md_asm_adjust hook.
9216         * config/vxworks.c: Include vec.h before target.h.
9217         * gimple.c: Likewise.
9218         * incpath.c: Likewise.
9219         * mode-switching.c: Likewise.
9221         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
9222         (cris_md_asm_adjust): this.
9223         (TARGET_MD_ASM_CLOBBERS): Remove.
9224         (TARGET_MD_ASM_ADJUST): New.
9225         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
9226         (ix86_md_asm_adjust): this.
9227         (TARGET_MD_ASM_CLOBBERS): Remove.
9228         (TARGET_MD_ASM_ADJUST): New.
9229         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
9230         (mn10300_md_asm_adjust): this.
9231         (TARGET_MD_ASM_CLOBBERS): Remove.
9232         (TARGET_MD_ASM_ADJUST): New.
9233         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
9234         (rs6000_md_asm_adjust): this.
9235         (TARGET_MD_ASM_CLOBBERS): Remove.
9236         (TARGET_MD_ASM_ADJUST): New.
9237         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
9238         (visium_md_asm_adjust): this.
9239         (TARGET_MD_ASM_CLOBBERS): Remove.
9240         (TARGET_MD_ASM_ADJUST): New.
9242 2015-05-11  Richard Henderson  <rth@redhat.com>
9244         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
9245         if noutputs is zero.
9246         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
9248         * cfgexpand.c (expand_asm_operands): Merge into...
9249         (expand_asm_stmt): ... here.
9251         * cfgexpand.c (expand_asm_operands): Don't call
9252         resolve_asm_operand_names.
9253         * stmt.c (resolve_asm_operand_names): Clarify block comment.
9255 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
9257         * dwarf2out.c (gen_member_die): Sanity check that we access
9258         TYPE_MAIN_VARIANT for TYPE_METHODS.
9259         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
9260         checking TYPE_METHODS.
9261         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
9262         if non-null.
9263         (build_distinct_type_copy): Clear TYPE_METHODS.
9264         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
9265         (verify_type): Allow TYPE_METHODS to be error_mark_node.
9266         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
9268 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
9270         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
9271         (emit_pattern_before_setloc): Likewise.
9273 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
9275         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
9276         for define_peephole2s.
9277         (get_peephole2_pattern): New function.
9278         (main): Use it.  Call validate_pattern.
9280 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9282         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
9283         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
9284         (Last callee saved reg is different for AVR_TINY architecture)
9286 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
9288         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
9289         when looking for memory references.
9291 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
9293         PR target/65753
9294         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
9295         via function pointers.
9297 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
9299         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
9300         indirect call by forcing address into a pseudo with -fno-plt.
9301         * common.opt (flag_plt): New option.
9302         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
9303         ([-fno-plt]): Document.
9305 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
9307         PR bootstrap/66105
9308         * config/rs6000/option-defaults.h: Add space between string literal
9309         and macro name.
9311 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9313         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
9314         accross ARM targets.
9316 2015-05-11  Christian Bruel  <christian.bruel@st.com>
9318         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
9319         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
9321 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
9323         PR rtl-optimization/66076
9324         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
9325         Don't grow the heap array if it is already big enough from a
9326         previous iteration.
9328 2015-05-11  Christian Bruel  <christian.bruel@st.com>
9330         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
9331         (is_called_in_ARM_mode): Remove.
9332         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
9333         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
9334         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
9335          arm_declare_function_name.
9337 2015-05-11  Christian Bruel  <christian.bruel@st.com>
9339         * config/arm/arm.c (arm_option_override): Reoganized and split into :
9340         (arm_option_params_internal); New function.
9341         (arm_option_check_internal): New function.
9342         (arm_option_override_internal): New function.
9343         (thumb_code, thumb1_code): Remove.
9344         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
9345         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
9346         (thumb_code, thumb1_code): Remove.
9347         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
9349 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
9351         * config/alpha/alpha.c (alpha_emit_set_const_1)
9352         (alpha_emit_set_long_const, alpha_extract_integer)
9353         (alpha_legitimate_constant_p, alpha_split_const_mov)
9354         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
9355         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
9356         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
9357         HOST_WIDE_INT_1U.
9358         * config/alpha/predicates.md (mode_mask_operand): Do not match
9359         const_double RTX.
9360         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
9361         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
9362         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
9363         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
9364         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
9366 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
9368         PR target/65780
9369         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
9370         default_binds_local_p_2.
9371         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
9372         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
9374 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
9376         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
9378 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
9380         Patch by Richard Biener
9381         * coverage.c (coverage_obj_init): Delay building of type variant
9382         until the type is finished.
9384 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
9386         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
9387         mismatch between C and C++ type; compoare correctly ARG_TYPES
9388         for non-prototypes and output correctly parameter index for METHOD_TYPE.
9389         (odr_types_equivalent_p): Fix wording of warning about attributes;
9390         it is OK to match prototype and non-prototype.
9392 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
9394         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
9395         TYPE_ARG_TYPES list.
9396         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
9397         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
9399 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
9401         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
9402         * tree.h (is_lang_specific): Constify.
9404 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
9406         PR tree-optimization/64454
9407         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
9408         Rewrite.
9410 2015-05-08  Jason Merrill  <jason@redhat.com>
9412         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
9413         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
9414         config/darwin.h, config/darwin9.h, config/elfos.h,
9415         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
9416         config/microblaze/microblaze.h, config/mips/mips.h,
9417         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
9418         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
9419         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
9420         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
9421         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
9422         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
9423         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
9424         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
9425         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
9426         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
9427         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
9428         between string literal and macro name.
9430 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9432         * jump.c: Change argument types to rtx_insn *.
9433         * rtl.h: Adjust.
9435 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9437         * lra-constraints.c: Change argument type to rtx_insn *.
9439 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9441         * df-problems.c: Change argument type to rtx_insn *.
9443 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9445         * combine.c: Change argument type to rtx_insn *.
9447 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9449         * rtl.h: Adjust.
9450         * rtlanal.c: Change argument type to rtx_insn *.
9452 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9454         * sched-deps.c: Change argument types to rtx_insn *.
9455         * sched-int.h: Adjust.
9457 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9459         * dwarf2cfi.c: Change argument type to rtx_insn *.
9461 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9463         * ira.c (decrease_live_ranges_number): Changetype of local
9464         variable to rtx_insn *.
9465         * recog.c: Change argument types to rtx_insn *.
9466         * recog.h: Adjust.
9468 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9470         * reorg.c: Change argument types to rtx_insn *.
9472 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9474         * ira-color.c: Change argument types to rtx_insn *.
9475         * lra-eliminations.c: Likewise.
9476         * ira.h: Adjust.
9478 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9480         * gcse.c: Change argument types to rtx_insn *.
9482 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9484         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
9486 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9488         * emit-rtl.c (emit_debug_insn_before): Change argument type to
9489         rtx_insn *.
9490         * rtl.h: Adjust.
9492 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9494         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
9495         * rtl.h: Adjust.
9497 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9499         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
9500         * rtl.h: Adjust.
9502 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9504         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
9505         * rtl.h: Adjust.
9507 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9509         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
9510         * rtl.h: Adjust.
9512 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9514         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
9515         to rtx_insn *.
9516         * rtl.h: Adjust.
9518 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9520         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
9521         to rtx_insn *.
9522         * rtl.h: Likewise.
9524 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9526         * except.c (can_nonlocal_goto): Change type of argument to
9527         rtx_insn *.
9528         * rtl.h: Adjust.
9530 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9532         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
9533         * rtl.h: Adjust.
9535 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9537         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
9538         * cfgrtl.c (can_delete_label_p): Adjust.
9539         * rtl.h: likewise.
9541 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9543         * reorg.c (stop_search_p): Change argument to rtx_insn *.
9545 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9547         * except.c (make_reg_eh_region_note): Change argument to
9548         rtx_insn *.
9549         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
9550         * except.h: Adjust.
9552 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9554         * mode-switching.c (commit_mode_sets): Change type of local
9555         variable from rtx to rtx_insn *.
9557 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
9559         * doc/install.texi (--enable-languages): Add missing jit and lto info.
9560         Add ^ to grep command.
9561         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
9562         arg to last gimple_simplify declaration.  Add missing gimple_build
9563         declaration for built-in function case with four tree args.
9565 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
9566             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9568         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
9569         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
9570         (GNU_USER_DYNAMIC_LINKERN32): Update.
9572 2015-05-08  Richard Biener  <rguenther@suse.de>
9574         PR tree-optimization/66036
9575         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9576         Handle strided group loads.
9577         (vect_verify_datarefs_alignment): Likewise.
9578         (vect_enhance_data_refs_alignment): Likewise.
9579         (vect_analyze_group_access): Likewise.
9580         (vect_analyze_data_ref_access): Likewise.
9581         (vect_analyze_data_ref_accesses): Likewise.
9582         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
9583         (vectorizable_load): Likewise.
9585 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
9587         * config/rs6000/rs6000.md: Require operand inequality in one
9588         of the peepholes.
9590 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
9591             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9593         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
9594         from (set ...).
9595         * config/rx/rx.md (movdi, movdf): Likewise.
9596         Likewise for define_peephole2s.
9598 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
9600         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
9601         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
9602         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
9603         vtst_u64): Rewrite using gcc vector extensions.
9605 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
9607         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
9608         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
9610 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
9612         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
9614 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9616         * config/glibc-stdint.h (OPTION_MUSL): Define.
9617         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
9618         Change the definition based on OPTION_MUSL for 64 bit targets.
9619         * config/linux.h (OPTION_MUSL): Redefine.
9620         * config/alpha/linux.h (OPTION_MUSL): Redefine.
9621         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
9622         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
9624 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
9625             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9627         * config.gcc (LIBC_MUSL): New tm_defines macro.
9628         * config/linux.h (OPTION_MUSL): Define.
9629         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
9630         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
9631         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9632         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9633         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9634         * config/linux.opt (mmusl): New option.
9635         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
9636         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9637         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9638         * configure: Regenerate.
9640 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9641             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9643         PR target/48904
9644         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
9645         * config/i386/knetbsd-gnu64.h: New file.
9647 2015-05-08  Marek Polacek  <polacek@redhat.com>
9649         PR c/64918
9650         * doc/invoke.texi: Document -Woverride-init-side-effects.
9652 2015-05-07  Marek Polacek  <polacek@redhat.com>
9654         PR c/65179
9655         * doc/invoke.texi: Document -Wshift-negative-value.
9657 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
9659         * gcov-tool.c (do_merge): Refactore to remove int ret.
9660         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
9661         !type == FUNC to type != FUNC.
9662         * reload.h (struct target_reload): Changee to type of
9663         x_spill_indirect_levels from bool to unsigned char.
9665 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
9667         * rtl.h (always_void_p): New function.
9668         * gengenrtl.c (always_void_p): Likewise.
9669         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
9670         with code foo are always VOIDmode.
9671         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
9672         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
9673         compare-elim.c, config/aarch64/aarch64.c,
9674         config/aarch64/aarch64.md, config/alpha/alpha.c,
9675         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
9676         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
9677         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
9678         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9679         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
9680         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
9681         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
9682         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
9683         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
9684         config/ia64/vect.md, config/iq2000/iq2000.c,
9685         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
9686         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
9687         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
9688         config/mep/mep.c, config/microblaze/microblaze.c,
9689         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
9690         config/mn10300/mn10300.c, config/msp430/msp430.c,
9691         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
9692         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
9693         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
9694         config/rs6000/altivec.md, config/rs6000/rs6000.c,
9695         config/rs6000/rs6000.md, config/rs6000/vector.md,
9696         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
9697         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
9698         config/sh/sh.md, config/sh/sh_treg_combine.cc,
9699         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
9700         config/spu/spu.md, config/stormy16/stormy16.c,
9701         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
9702         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
9703         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
9704         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
9705         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
9706         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
9707         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
9708         var-tracking.c: Update calls accordingly.
9710 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
9712         PR middle-end/192
9713         PR middle-end/54303
9714         * varasm.c (function_mergeable_rodata_prefix): New function.
9715         (mergeable_string_section): Use it.
9716         (mergeable_constant_section): Use it.
9718 2015-05-07  Jeff Law  <law@redhat.com>
9720         PR target/39726
9721         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
9722         simplifier to narrow arithmetic.
9723         * generic-match-head.c: (types_match, single_use): New functions.
9724         * gimple-match-head.c: (types_match, single_use): New functions.
9726 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9728         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
9729         rtx type.
9731 2015-05-07  Richard Biener  <rguenther@suse.de>
9733         PR tree-optimization/66002
9734         * passes.def: Schedule another pass_merge_phi after ifcombine, right
9735         before phiopt.
9737 2015-05-07  Marek Polacek  <polacek@redhat.com>
9738             Martin Uecker  <uecker@eecs.berkeley.edu>
9740         * doc/invoke.texi: Document -fsanitize=bounds-strict.
9741         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
9742         into SANITIZE_NONDEFAULT.
9743         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
9745 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
9747         PR target/66015
9748         * config/alpha/alpha.c (alpha_override_options_after_change): New.
9749         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
9750         (alpha_override_options): Move align_loops, align_jumps and
9751         align_functions handling into alpha_override_options_after_change.
9753 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
9754             Chris Jones  <chrisj@nvidia.com>
9755             Joshua Conner  <jconner@nvidia.com>
9757         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
9758         linking of crtfastmath.o.
9759         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
9761 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
9763         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
9764         (cstore<mode>4_unsigned_imm): New expander.
9765         (cstore<mode>4): Remove empty constraint strings.  Use the new
9766         expanders.
9768 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
9770         PR target/64208
9771         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
9772         alternatives.
9774 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9776         * config/aarch64/geniterators.sh: Use standard BRE in sed.
9778 2015-05-06  Alan Modra  <amodra@gmail.com>
9780         PR target/66033
9781         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
9782         (UNSPEC_NOP): Define.
9783         (reload_vsx_from_gpr<mode>): Add missing DONE.
9784         (reload_gpr_from_vsx<mode>): Likewise.
9785         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
9786         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
9788 2015-05-06  Christian Bruel  <christian.bruel@st.com>
9790         PR target/66015
9791         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
9792         align_jumps, align_functions into aarch64_override_options_after_change.
9794 2015-05-06  Richard Biener  <rguenther@suse.de>
9796         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
9797         vect_transform_slp_perm_load to check if we support a permutation
9798         for basic-block vectorization.
9800 2015-05-06  Nick Clifton  <nickc@redhat.com>
9802         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
9803         used, even if it is not being used as a frame pointer.
9805 2015-05-05  Jason Merrill  <jason@redhat.com>
9807         * dwarf2out.c (gen_member_die): Don't emit anything for an
9808         anonymous class constructor.
9810 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
9812         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
9813         that it reflects the block structure.
9814         (afdo_propagate_edge): Likewise.
9815         (afdo_calculate_branch_prob): Likewise.
9816         (afdo_annotate_cfg): Likewise.
9817         * cfgcleanup.c (equal_different_set_p): Likewise.
9818         (try_crossjump_to_edge): Likewise.
9819         * cgraph.c (cgraph_node::verify_node): Likewise.
9820         * cgraphunit.c (expand_all_functions): Likewise.
9821         * config/i386/i386.c (ix86_expand_copysign): Likewise.
9822         (exact_dependency_1): Likewise.
9823         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
9824         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
9825         * gensupport.c (process_define_subst): Likewise.
9826         * lto-wrapper.c (merge_and_complain): Likewise.
9827         * tree-if-conv.c (if_convertible_bb_p): Likewise.
9828         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
9829         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
9830         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
9831         * tree-vect-loop.c (vectorizable_reduction): Likewise.
9832         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
9833         * tree-vect-stmts.c (vectorizable_shift): Likewise.
9834         * tree-vrp.c (vrp_finalize): Likewise.
9835         * tree.c (variably_modified_type_p): Likewise.
9837 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
9839         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
9840         on darwin12 and later.
9841         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
9842         file to pass -rdynamic on darwin12 and later.
9843         * config/darwin.opt (rdynamic): Add.
9845 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
9847         * doc/extend.texi (C Extensions): Update menu for moved Variable
9848         Attributes and Type Attributes sections.
9850 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
9852         PR target/65990
9853         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
9854         if rep_8byte stringop strategy was specified for 32-bit target.
9856 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
9858         PR target/65915
9859         * config/i386/i386.md (vector convert to float spltiter): Check for
9860         xmm16+, when splitting scalar float conversion.
9861         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
9863 2015-05-05  Nick Clifton  <nickc@redhat.com>
9865         * config/msp430/msp430-opts.h (enum msp430_regions): New.
9866         * config/msp430/msp430.c (msp430_override_options): Complain if
9867         -mcode-region or -mdata-region is used on a non MSP430X.
9868         (msp430_section_attr): New function.  Checks lower, upper and
9869         either attributes.
9870         (msp430_attribute_table): Add lower, upper and either.
9871         (gen_prefix): New function.  Generates a prefix for a section
9872         name.
9873         (msp430_select_section): New function - handles the choice of
9874         section for an object.  Takes into account memory region
9875         attributes and options.
9876         (msp430_function_section): Use gen_prefix.
9877         (TARGET_SECTION_TYPE_FLAGS): Define.
9878         (msp430_section_type_flags): New function.
9879         (TARGET_ASM_UNIQUE_SECTION): Define.
9880         (msp430_unique_section): New function.
9881         (msp430_output_aligned_decl_common): New function.
9882         (msp430_do_not_relax_short_jumps): New function.
9883         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
9884         Define.
9885         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
9886         * config/msp430/msp430-protos.h
9887         (msp430_do_not_relax_short_jumps): New prototype.
9888         (msp430_output_aligned_decl_common): New prototype.
9889         * config/msp430/msp430.md (length): New attribute.
9890         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
9891         then use a long code sequence for short jumps.
9892         * config/msp430/msp430.opt (mcode-region): New.
9893         (mdata-region): New.
9894         * doc/invoke.texi: Document new options.
9895         * doc/extend.texi: Document new attributes.
9897 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
9899         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
9900         (tune_params): Add field branch_costs.
9901         (aarch64_branch_cost): Declare.
9902         * gcc/config/aarch64.c (generic_branch_cost): New.
9903         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
9904         (cortexa53_tunings): Likewise.
9905         (cortexa57_tunings): Likewise.
9906         (thunderx_tunings): Likewise.
9907         (xgene1_tunings): Likewise.
9908         (aarch64_branch_cost): Define.
9909         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
9911 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
9913         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
9914         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
9915         * config/i386/i386.md: Ditto.
9916         * config/i386/winnt.c: Ditto.
9918 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
9920         * doc/extend.texi (__atomic Builtins): Move implementation details
9921         to the end of the description, rewrite opening paragraphs, state
9922         difference with __sync builtins, state C11/C++11 assumptions,
9923         weaken itemized descriptions, add explanation of memory model
9924         behaviour, expand description of compare-exchange, simplify text.
9926 2015-05-05  Renlin Li  <renlin.li@arm.com>
9928         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
9930 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
9932         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
9933         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
9934         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
9935         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
9936         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
9937         * configure: Regenerate.
9938         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
9939         * doc/install.texi (aarch64*-*-*): Document new
9940         --enable-fix-cortex-a53-843419 option.
9941         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
9942         and -mno-fix-cortex-a53-843419 options.
9944 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
9946         PR target/65871
9947         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
9949 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
9951         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
9952         fix overactive TYPE_MIN_VALUE check and add FIXME for type
9953         compatibility problems.
9955 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
9957         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
9958         constraints.
9959         (cbranchsi4_reg): New.
9960         * config/microblaze/microblaze.c
9961         (microblaze_expand_conditional_branch_reg): New.
9962         * config/microblaze/microblaze-protos.h
9963         (microblaze_expand_conditional_branch_reg): New prototype.
9965 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
9967         * config/microblaze/microblaze.md (peephole2): New.
9969 2015-05-04  Jeff Law  <law@redhat.com>
9971         Revert:
9972         2015-05-04  Jeff Law  <law@redhat.com>
9974         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
9975         simplifier to narrow arithmetic.
9976         * generic-match-head.c: (types_match, single_use): New functions.
9977         * gimple-match-head.c: (types_match, single_use): New functions.
9979 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
9981         PR target/65987
9982         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
9983         (split_branches): Likewise.
9985 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
9987         * common.opt (fdelete-null-pointer-checks): Init to -1.
9988         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
9989         override flag_delete_null_pointer_checks default.
9990         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
9991         behavior re address zero.  Better document target-specific behavior.
9992         (-fisolate-errneous-paths-dereference): Mention relationship to
9993         -fdelete-null-pointer-checks.
9995 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
9997         PR tree-optimization/65984
9998         * ubsan.c: Include tree-cfg.h.
9999         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
10000         stmt_could_throw_p test, rename can_throw variable to ends_bb.
10002 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
10004         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
10005         to CONST_DOUBLE_P predicate.
10006         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
10007         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
10008         allow only operands that satisfy standard_sse_constant_p predicate.
10009         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
10010         to CONST_DOUBLE_P predicate.
10012 2015-05-04  Jeff Law  <law@redhat.com>
10014         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
10015         simplifier to narrow arithmetic.
10016         * generic-match-head.c: (types_match, single_use): New functions.
10017         * gimple-match-head.c: (types_match, single_use): New functions.
10019 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
10021         * config/arm/arm.c: Restore bootstrap.
10023 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
10025         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
10026         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
10027         as CONST_WIDE_INT, not CONST_DOUBLE.
10028         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
10029         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
10030         (ix86_find_base_term): Do not check for CONST_DOUBLE.
10031         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
10032         (ix86_build_signbit_mask): Rewrite using wide ints.
10033         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
10034         (ix86_rtx_costs): Handle CONST_WIDE_INT.
10035         (find_constant): Ditto.
10036         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
10037         using gen_int_mode.
10038         * config/i386/predicates.md (x86_64_immediate_operand)
10039         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
10040         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
10041         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
10042         (const0_operand): Also match const_wide_int.
10043         (constm1_operand): Ditto.
10044         (const1_operand): Ditto.
10046 2015-05-04  Richard Biener  <rguenther@suse.de>
10048         PR tree-optimization/65965
10049         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
10050         store groups at gaps.
10052 2015-05-04  Richard Biener  <rguenther@suse.de>
10054         PR tree-optimization/65935
10055         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
10056         then make sure to apply that swapping to the IL.
10058 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
10060         * Makefile.in (PATCHLEVEL_c): New variable.
10061         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
10062         expand the same way as if DEVPHASE_c was non-empty.
10064 2015-05-04  Kai Tietz  <ktietz@redhat.com>
10066         PR target/65559
10067         * lto-wrapper.c (run_gcc): Open filename
10068         in binary-mode.
10070 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
10072         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
10073         sections up in file, to immediately after the Function Attributes
10074         section.
10076 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
10078         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
10080 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10082         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
10083         (insert_partition_copy_on_edge): Adjust.
10084         (insert_rtx_to_part_on_edge): Likewise.
10085         (insert_part_to_rtx_on_edge): Likewise.
10087 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10089         * function.c (set_return_jump_label): Change type of argument to
10090         rtx_insn *.
10091         * function.h (set_return_jump_label): Adjust.
10093 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10095         * reload.h (struct reg_equivs_t): Change type of init to
10096         rtx_insn *.
10097         * ira.c (fix_reg_equiv_init): Adjust.
10098         * reload1.c (eliminate_regs_1): Likewise.
10099         (init_eliminable_invariants): Likewise.
10101 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10103         * cselib.c (fp_setter_insn): Take a rtx_insn *.
10104         * cselib.h (fp_setter_insn): Adjust.
10106 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10108         * recog.c (struct validate_replace_src_data): Change type of
10109         insn field to rtx_insn *.
10110         (validate_replace_src_group): Change type of argument to rtx_insn *.
10111         * recog.h (validate_replace_src_group): Adjust.
10113 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10115         * haifa-sched.c: Change the type of some variables to rtx_insn *.
10116         * sched-deps.c: Likewise.
10117         * sched-int.h: Likewise.
10118         * sched-rgn.c: Likewise.
10119         * sel-sched.c: Likewise.
10121 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10123         to rtx_insn *.
10124         * config/i386/i386.c: Change the type of some arguments to
10125         rtx_insn *.
10126         * config/arm/arm.c: Likewise.
10128 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10130         * lra-constraints.c: Change type of some arguments to rtx_insn *.
10132 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10134         * regcprop.c (kill_autoinc_value): Change type of argument to
10135         rtx_insn *.
10137 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10139         * genrecog.c (print_subroutine): Adjust.
10140         * recog.c (get_bool_attr_mask_uncached): Likewise.
10141         * recog.h (struct recog_data_d): Change the type of insn to
10142         rtx_insn *.
10144 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10146         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
10148 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10150         * df-problems.c (df_set_note): Change type of argument to
10151         rtx_insn *.
10153 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10155         * builtins.c (expand_builtin_trap): Change type of local
10156         variable to rtx_insn *.
10157         (add_sched_insns_for_speculation): Likewise.
10158         (ix86_emit_save_regs): Likewise.
10159         (get_scratch_register_on_entry): Likewise.
10160         (ix86_emit_restore_reg_using_pop): Likewise.
10161         (ix86_emit_leave): Likewise.
10162         (ix86_emit_restore_regs_using_mov): Likewise.
10163         (ix86_expand_epilogue): Likewise.
10164         Likewise.
10165         (rl78_alloc_physical_registers_umul): Likewise.
10166         * cselib.c (discard_useless_locs): Likewise.
10167         (cselib_invalidate_regno): Likewise.
10168         (cselib_invalidate_mem): Likewise.
10169         * function.c (expand_function_start): Likewise.
10170         (emit_use_return_register_into_block): Likewise.
10171         * gcse.c: Likewise.
10172         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
10173         * ifcvt.c (noce_get_alt_condition): Likewise.
10174         * loop-doloop.c (doloop_condition_get): Likewise.
10175         * lra-constraints.c (inherit_in_ebb): Likewise.
10176         * modulo-sched.c (sms_schedule_by_order): Likewise.
10177         * recog.c (next_insn_tests_no_inequality): Likewise.
10178         * reorg.c (emit_delay_sequence): Likewise.
10179         (update_reg_dead_notes): Likewise.
10180         (fix_reg_dead_note): Likewise.
10181         (fill_slots_from_thread): Likewise.
10182         (delete_computation): Likewise.
10184 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
10186         * doc/extend.texi (Variable Attributes): Add menu and proper
10187         @nodes to subsections.  Move Microsoft Windows attributes to
10188         their own subsection.
10189         (Type Attributes): Reorganize introduction to remove duplicate
10190         list of attributes.  Add menu and proper @nodes to subsections.
10191         Alphabetize the main table of common attributes.
10193 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
10195         * match.pd: New simplification patterns.
10196         (x + (x & 1))  -> ((x + 1) & ~1)
10197         (x & ~(x & y)) -> ((x & ~y))
10198         (x | ~(x | y)) -> ((x | ~y))
10200 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10202         * target.def (attribute_table): Mention that struct attribute_spec
10203         is defined in tree-core.h rather than tree.h
10204         * doc/tm.texi: Regenerate.
10206 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
10208         * genrecog.c (test): Rename to rtx_test.  Update rest of file
10209         accordingly.
10211 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10213         PR translation/65959
10214         * params.h (DEFPARAM): Rename msgid to nocmsgid.
10216 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
10218         * gcc/config/aarch64/aarch64-protos.h (tune_params):
10219         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
10220         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
10221         Return value depending on target.
10222         (generic_tunings): Initialize new target settings.
10223         (cortexa53_tunings): Likewise.
10224         (cortexa57_tunings): Likewise.
10225         (thunderx_tunings): Likewise.
10226         (xgene1_tunings): Likewise.
10228 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
10230         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
10231         Make Cortex-A53 shift costs more accurate.
10233 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10235         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
10236         UNSIGNED_FLOAT.
10238 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
10240         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
10241         Calculate cost of op0 and op1 in PLUS and MINUS cases.
10243 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10245         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
10246         Add cost of op0 in the compare-with-fpzero case.
10248 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
10250         * builtins.c (fold_builtin_1): Remove spurious second
10251         semicolon.
10252         * cgraph.h (symtab_node::get_availability): Likewise.
10253         * opts.c (common_handle_option): Remove spurious second semicolon.
10254         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
10255         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
10257 2015-04-30  Caroline Tice  <cmtice@google.com>
10259         PR gcov-profile/65929
10260         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
10261         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
10262         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
10263         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
10264         * doc/tm.texi: Regenerate.
10265         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
10266         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
10267         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
10268         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
10270 2015-04-30  Marek Polacek  <polacek@redhat.com>
10272         * varasm.c (handle_cache_entry): Fix logic.
10274 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10276         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
10277         (*extrsi5_insn_uxtw_alt): Likewise.
10278         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
10279         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
10280         operations.
10282 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10284         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
10285         fabd in ABS case.
10287 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10289         * config/aarch64/aarch64.md
10290         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
10291         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
10292         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
10293         appropriately.  Handle alternative EON form.
10295 2015-04-30  Renlin Li  <renlin.li@arm.com>
10297         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
10298         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
10300 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
10302         PR ipa/65873
10303         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
10304         -fstrict-aliasing boundaries.
10306 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10308         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
10309         and [SU]MNEGL patterns.
10311 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10313         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
10314         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
10315         combined arithmetic-shift ops.  Properly handle all shift and extend
10316         operations that can occur in combination with PLUS/MINUS.
10317         Rename maybe_fma to compound_p.
10318         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
10319         arithmetic and shift operations.
10321 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10323         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
10324         rather than arith_shift cost when costing ADD/MINUS of an
10325         extended value.
10327 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
10329         PR lto/65948
10330         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
10331         to itself.
10333 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
10335         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
10336         are for the same position.
10338 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
10340         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
10341         vectorize_loops.
10342         (vectorize_loops): Use it.
10344 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
10346         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
10347         for aggregate types.
10348         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
10349         type to be non_ODR.
10350         * tree.c (need_assembler_name_p): Compute mangled name for
10351         non-fundamental types and integer types.
10353 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
10355         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
10356         manual swaps.
10357         * expr.c (expand_expr_real_2): Likewise.
10359 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
10361         * tree.c (build_common_builtin_nodes): Do not build
10362         __builtin_alloca_with_align as equivalent of library alloca.
10364 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
10366         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
10367         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
10368         bugus variants.
10369         * tree.c: Include print-tree.h and ipa-utils.h
10370         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
10371         (free_lang_data_in_cgraph): Call verify_type.
10372         (verify_type_variant): New function.
10373         (verify_type): New function.
10374         * tree.h (verify_type): Declare.
10376 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
10378         * config/mips/mips-cpus.def: (mips4): Change default processor
10379         from PROCESSOR_R8000 to PROCESSOR_R10000.
10381 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
10383         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
10384         la/jalr instead of jal.
10386 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
10388         PR target/65871
10389         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
10390         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
10391         (setcc+movzbl peephole2): Check also clobbered reg.
10392         (setcc+andl peephole2): Ditto.
10394 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
10396         PR libgomp/65099
10397         * config/nvptx/mkoffload.c (target_ilp32): New variable.
10398         (main): Set it depending on "-foffload-abi=[...]".
10399         (compile_native, main): Use it to pass "-m32" or "-m64" to the
10400         compiler.
10402 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
10404         PR target/65770
10405         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
10406         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
10407         Flip lane index back at assembly time for bigendian.
10409 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
10411         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
10412         * gimplify.c (gimplify_omp_workshare): Use it.
10414 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
10416         * Makefile.in (build/genrecog.o): Depend on inchash.h.
10417         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
10418         build/inchash.o
10419         * genrecog.c: Rewrite most of the code except for the third page.
10421 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
10423         * inchash.h, inchash.c: Include bconfig.h for build objects.
10424         * Makefile.in (build/inchash.o): New rule.
10426 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
10428         PR target/65924
10429         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
10430         number in type attribute expression.
10432 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
10434         * loop-iv.c (canon_condition): Generalize to all types of integer
10435         constant.
10437 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
10439         * gimple-walk.c: Prune duplicate or unneeded includes.
10440         (walk_gimple_asm): Only call parse_input_constraint or
10441         parse_output_constraint if their findings are used.
10442         Honour parse_input_constraint and parse_output_constraint
10443         result.
10445 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
10447         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
10449 2015-04-29  Tom de Vries  <tom@codesourcery.com>
10451         PR tree-optimization/65893
10452         * passes.def (pass_all_optimizations): Move pass_stdarg to after
10453         pass_dce.
10455 2015-04-29  Richard Biener  <rguenther@suse.de>
10457         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
10458         compute GROUP_SIZE for basic-block SLP.
10459         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
10460         take into account gaps.
10461         (vect_get_mask_element): Properly reject references to previous
10462         vectors.
10463         (vect_transform_slp_perm_load): Likewise.
10465 2015-04-29  Christian Bruel  <christian.bruel@st.com>
10467         PR target/64835
10468         * config/i386/i386.c (ix86_default_align): New function.
10469         (ix86_override_options_after_change): Call ix86_default_align.
10470         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
10471         (ix86_override_options_after_change): New function.
10473 2015-04-28  Jeff Law  <law@redhat.com>
10475         * tree-ssa-dom.c (record_equality); Fix comment typos.
10477 2015-04-28  Tom de Vries  <tom@codesourcery.com>
10479         PR tree-optimization/65887
10480         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
10482 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
10484         * doc/extend.texi (Declaring Attributes of Functions): Split into
10485         subsections by target.  Alphabetize the table of common attributes.
10486         Rewrite some of the introductory text to reflect the new structure.
10487         Update some cross-references to point to the new subsections.
10488         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
10489         duplicate copies in the discussion of function, label, and type
10490         attributes.
10492 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
10494         PR bootstrap/65910
10495         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
10497 2015-04-28  Jason Merrill  <jason@redhat.com>
10499         PR c++/65734
10500         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
10501         (finalize_type_size): Respect TYPE_USER_ALIGN.
10502         (layout_type) [ARRAY_TYPE]: Likewise.
10504 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
10506         * config/arm/arm.md (*arm_movt): Fix type attribute.
10507         (*cmpsi_shiftsi): Likewise.
10508         (*cmpsi_shiftsi_swp): Likewise.
10509         (*movsicc_insn): Likewise.
10510         (*cond_move): Likewise.
10511         (*if_plus_move): Likewise.
10512         (*if_move_plus): Likewise.
10513         (*if_arith_move): Likewise.
10514         (*if_move_arith): Likewise.
10515         (*if_shift_move): Likewise.
10516         (*if_move_shift): Likewise.
10517         (*arm_movtas_ze): Likewise.
10518         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
10519         redundancy and type attribute.
10520         (*thumb2_movsi_insn): Fix type attribute.
10521         (*thumb2_addsi_short): Likewise.
10522         (thumb2_addsi3_compare0): Likewise.
10523         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
10524         attributes accordingly.
10526 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
10528         PR other/65911
10529         * function.c (pad_to_arg_alignment): Add parentheses.
10531 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
10533         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
10534         libgcc/config/frv/elf-lib.h.
10536 2015-04-28  Tom de Vries  <tom@codesourcery.com>
10538         * tree-call-cdce.c: Fix example in header comment.
10540 2015-04-28  Richard Biener  <rguenther@suse.de>
10542         PR tree-optimization/62283
10543         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
10544         fails fatally and we are vectorizing a basic-block simply
10545         cause the child to be constructed piecewise.
10546         (vect_analyze_slp_cost_1): Adjust.
10547         (vect_detect_hybrid_slp_stmts): Likewise.
10548         (vect_bb_slp_scalar_cost): Likewise.
10549         (vect_get_constant_vectors): For piecewise constructed
10550         constants place them after the last def.
10551         (vect_get_slp_defs): Adjust.
10552         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
10553         externals for basic-block vectorization.
10555 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10557         PR target/63503
10558         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
10559         aarch64-*-*.
10560         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
10561         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
10562         (AARCH64_TUNE_FMA_STEERING): Likewise.
10563         * config/aarch64/aarch64-cores.def: Set
10564         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
10565         FMUL/FMADD instructions.
10566         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
10567         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
10568         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
10569         * config/aarch64/cortex-a57-fma-steering.h: New file.
10570         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10572 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
10574         * gensupport.c (std_preds): Add missing codes to address_operand entry.
10576 2015-04-28  Richard Biener  <rguenther@suse.de>
10578         PR tree-optimization/65851
10579         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
10580         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
10581         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
10582         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
10583         (ccp_visit_phi_node): Adjust.
10584         (evaluate_stmt): For simplifications to SSA names return its
10585         lattice value if that isn't VARYING.  Return immediately when
10586         simplified to a constant.
10587         (visit_assignment): Adjust.
10588         (ccp_visit_stmt): Likewise.
10590 2015-04-28  Tom de Vries  <tom@codesourcery.com>
10592         PR tree-optimization/65818
10593         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
10594         evaluated.
10596 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10598         * calls.c (save_fixed_argument_area): Don't check
10599         ARGS_GROW_DOWNWARD with the preprocessor.
10600         (restore_fixed_argument_area): Likewise.
10601         (mem_overlaps_already_clobbered_arg_p): Likewise.
10602         (check_sibcall_argument_overlap): Likewise.
10603         (expand_call): Likewise.
10604         (emit_library_call_value_1): Likewise.
10605         (store_one_arg): Likewise.
10606         * function.c (assign_parms): Likewise.
10607         (locate_and_pad_parm): Likewise.
10608         (pad_to_arg_alignment): Likewise.
10609         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
10611 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10613         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
10614         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
10615         * calls.c (save_fixed_argument_area): Don't chekc if
10616         ARGS_GROW_DOWNWARD is defined.
10617         (restore_fixed_argument_area): Likewise.
10618         (mem_overlaps_already_clobbered_arg_p): Likewise.
10619         (check_sibcall_argument_overlap): Likewise.
10620         (expand_call): Likewise.
10621         (emit_library_call_value_1): Likewise.
10622         (store_one_arg): Likewise.
10623         * function.c (assign_parms): Likewise.
10624         (locate_and_pad_parm): Likewise.
10625         (pad_to_arg_alignment): Likewise.
10626         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
10628 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10630         * defaults.h (gen_epilogue): New function.
10631         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
10632         defined.
10633         * cfgrtl.c (cfg_layout_finalize): Likewise.
10634         * df-scan.c: Likewise.
10635         * function.c (thread_prologue_and_epilogue_insns): Likewise.
10636         (reposition_prologue_and_epilogue_notes): Likewise.
10637         * reorg.c (find_end_label): Likewise.
10638         * toplev.c: Likewise.
10640 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10642         * bb-reorder.c (HAVE_return): Don't check if its undefined.
10643         * defaults.h (gen_simple_return): New function.
10644         (gen_simple_return): Likewise.
10645         (HAVE_return): Add default definition to false.
10646         (HAVE_simple_return): Likewise.
10647         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
10648         HAVE_return and HAVE_simple_return are defined.
10649         * function.c (gen_return_pattern): Likewise.
10650         (convert_jumps_to_returns): Likewise.
10651         (thread_prologue_and_epilogue_insns): Likewise.
10652         * reorg.c (find_end_label): Likewise.
10653         (dbr_schedule): Likewise.
10654         * shrink-wrap.c: Likewise.
10655         * shrink-wrap.h: Likewise.
10657 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10659         * defaults.h (EPILOGUE_USES): Add default definition of false.
10660         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
10661         * resource.c (init_resource_info): Likewise.
10663 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10665         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
10666         to false.
10667         * dwarf2out.c (field_byte_offset): REmove check if
10668         PCC_BITFIELD_TYPE_MATTERS is defined.
10669         * stor-layout.c (layout_decl): Likewise.
10670         (update_alignment_for_field): Likewise.
10671         (place_field): Likewise.
10673 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10675         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
10676         true.
10677         * regrename.c (check_new_reg_p): Remove check if
10678         HARD_REGNO_RENAME_OK is defined.
10679         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
10681 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10683         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
10684         * cse.c (fold_rtx): Likewise.
10685         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
10686         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
10687         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
10688         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
10689         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
10690         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
10691         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
10692         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
10693         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
10694         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
10695         * Likewise.
10696         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
10697         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
10698         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
10699         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
10700         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
10701         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
10702         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
10703         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
10704         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
10705         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
10706         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
10707         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
10708         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
10709         * doc/tm.texi: Regenerate.
10710         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
10711         either true or false.
10713 2015-04-27  Jeff Law  <law@redhat.com>
10715         PR tree-optimization/65217
10716         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
10717         of them has a single use, make sure it is the LHS of the implied
10718         copy.
10720 2015-04-28  Alan Modra  <amodra@gmail.com>
10722         PR target/65810
10723         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
10724         (offsettable_ok_by_alignment): Use minimum of decl and toc
10725         pointer alignment.  Replace dead code with assertion.
10726         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
10727         case if size exceeds toc pointer alignment.
10728         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
10729         (rs6000_emit_move): Likewise.
10730         * configure.ac: Add linker toc pointer alignment check.
10731         * configure: Regenerate.
10732         * config.in: Regenerate.
10734 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
10736         * config.gcc: Add h8300-*-linux.
10737         * config/h8300/linux.h: New.
10738         * config/h8300/t-linux: New.
10739         * config/h8300/h8300.c (h8300_option_override): Normal mode
10740         is not supported for h8300-*-linux.
10741         (h8300_file_start): Target priority change.
10742         (get_shift_alg): Likewise.
10743         (h8300_shift_need_scratch_p): Likewise.
10744         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
10745         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
10747 2015-04-27  Caroline Tice  <cmtice@google.com>
10749         * final.c (final_scan_insn):  Output cold_function_name as function
10750         type.
10751         * varasm.c (cold_function_name):  Make global.
10752         (assemble_start_function):  Re-set cold_function_name.
10753         (assemble_end_function): Output cold partition size.
10754         * varasm.h (cold_function_name):  Declare global.
10756 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
10758         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
10759         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
10760         constraint.
10761         (*movxi_internal_avx512f): Ditto.
10762         (define_split): Check for xmm16+, when splitting scalar float_extend.
10763         (*extendsfdf2_mixed): Use "v" constraint.
10764         (define_split): Check for xmm16+, when splitting scalar float_truncate.
10765         (*truncdfsf_fast_sse): Use "v" constraint.
10766         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
10767         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
10768         (define_peephole2): Check for xmm16+, when converting scalar
10769         float_truncate.
10770         (define_peephole2): Check for xmm16+, when converting scalar
10771         float_extend.
10772         (*fop_<mode>_comm_mixed): Use "v" constraint.
10773         (*fop_<mode>_comm_sse): Ditto.
10774         (*fop_<mode>_1_mixed): Ditto.
10775         (*sqrt<mode>2_sse): Ditto.
10776         (*ieee_s<ieee_maxmin><mode>3): Ditto.
10778 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10780         * combine.c (simplify_if_then_else): Use std::swap instead
10781         of manually swapping.
10782         (known_cond): Likewise.
10783         (simplify_comparison): Likewise.
10785 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
10787         PR target/64579
10788         * config/rs6000/htm.md: Remove all define_expands.
10789         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
10790         UNSPECV_HTM_TABORTWCI): Remove.
10791         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
10792         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
10793         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
10794         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
10795         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
10796         tabortwci_internal): Remove define_insns.
10797         (tabort<wd>c, tabort<wd>ci): New define_insns.
10798         (tabort): Use gpc_reg_operand.
10799         (tcheck): Remove operand.
10800         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
10801         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
10802         expected value.
10803         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
10804         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
10805         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
10806         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
10807         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
10808         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
10809         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
10810         (tcheck): Remove builtin argument.
10811         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
10812         not TARGET_64BIT.
10813         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
10814         tabortdc and tabortdci builtins when not in 64-bit mode.
10815         Modify code to handle the loss of the HTM define_expands.
10816         Emit code to copy the CR register to TARGET.
10817         (htm_init_builtins): Modify code to handle the loss of the HTM
10818         define_expands.
10819         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
10820         (RS6000_BTC_64BIT): Likewise.
10821         (RS6000_BTC_CR): New macro.
10822         * doc/extend.texi: Update documentation for htm builtins.
10824 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10826         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
10827         of manually swapping.
10828         (simplify_associative_operation): Likewise.
10829         (simplify_binary_operation): Likewise.
10830         (simplify_plus_minus): Likewise.
10831         (simplify_relational_operation): Likewise.
10832         (simplify_ternary_operation): Likewise.
10834 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
10836         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
10837         (xs_hi_nonmemory_operand): Remove error.
10838         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
10839         general_operand rather than xs_hi_general_operand.
10841 2015-04-27  Richard Biener  <rguenther@suse.de>
10843         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
10844         (record_equivalences_from_stmt): Valueize rhs.
10845         (record_equality): Canonicalize x and y order via
10846         tree_swap_operands_p.  Do not swap operands for same loop depth.
10848 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
10850         PR target/65296
10851         PR target/65895
10852         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
10853         Add hint how to use own spec file.
10855 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
10857         PR tree-optimization/65875
10858         * tree-vrp.c (update_value_range): If in is_new case setting
10859         old_vr to VR_VARYING, also set new_vr to it.  Remove
10860         old_vr->type == VR_VARYING test.
10861         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
10862         SSA_PROP_INTERESTING if update_value_range returned true,
10863         but new range is VR_VARYING.
10865 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10867         * combine.c (sign_extend_short_imm): New.
10868         (set_nonzero_bits_and_sign_copies): Use above new function for sign
10869         extension of src short immediate.
10870         (reg_nonzero_bits_for_combine): Likewise for tem.
10872 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10874         * stor-layout.c (self_referential_component_ref_p): New predicate.
10875         (copy_self_referential_tree_r): Use it.
10876         (self_referential_size): Punt for simple operations directly involving
10877         self-referential component references.
10878         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
10880 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10882         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
10884 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
10886         * vec.h (vec): Make splice arguments const.  Update definitions
10887         accordingly.
10889 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
10891         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
10892         alternatives.
10894 2015-04-26  Tom de Vries  <tom@codesourcery.com>
10896         PR tree-optimization/65826
10897         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
10899 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
10901         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
10902         (*madd3<mode>): Ditto.
10903         (*msub4<mode>): Ditto.
10904         (*msub3<mode>): Ditto.
10905         (*nmadd4<mode>): Ditto.
10906         (*nmadd3<mode>): Ditto.
10907         (*nmadd4<mode>_fastmath): Ditto.
10908         (*nmadd3<mode>_fastmath): Ditto.
10909         (*nmsub4<mode>): Ditto.
10910         (*nmsub3<mode>): Ditto.
10911         (*nmsub4<mode>_fastmath): Ditto.
10912         (*nmsub3<mode>_fastmath): Ditto.
10914 2015-04-24  Jason Merrill  <jason@redhat.com>
10916         PR c++/50800
10917         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
10918         down when building TYPE_CANONICAL.
10919         (build_pointer_type_for_mode): Likewise.
10921 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
10923         * genrecog.c (validate_pattern): Check matching constraint refers
10924         to a lower numbered operand.
10926 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
10928         PR target/65849
10929         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
10930         save to independent variables use the Save attribute.  This will
10931         allow these options to be modified with the #pragma/attribute
10932         target support.
10933         (-mallow-movmisalign): Likewise.
10934         (-mallow-df-permute): Likewise.
10935         (-msched-groups): Likewise.
10936         (-malways-hint): Likewise.
10937         (-malign-branch-targets): Likewise.
10938         (-mvectorize-builtins): Likewise.
10939         (-msave-toc-indirect): Likewise.
10941         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
10942         can be set via the #pragma/attribute target support.
10943         (rs6000_opt_vars): Likewise.
10944         (rs6000_inner_target_options): If VSX was set, also set
10945         -mno-avoid-indexed-addresses.
10947 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10949         * config/arm/iterators.md (shiftable_ops): Rename to...
10950         (SHIFTABLE_OPS): ... This.  Update use in comments.
10951         (ior_xor): Rename to...
10952         (IOR_XOR): ... This.
10953         (vqh_ops): Rename to...
10954         (VQH_OPS): ... This.
10955         (vqhs_ops): Rename to...
10956         (VQHS_OPS): ... This.
10957         (rshifts): Rename to...
10958         (RSHIFTS): ... This.
10959         (returns): Rename to...
10960         (RETURNS): ... This.
10961         * config/arm/arm.md: Update uses of the above.
10962         * config/arm/neon.md: Likewise.
10964 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10966         * config.host (case ${host}): Add aarch64*-*-linux case.
10967         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
10968         fields to all the cores.
10969         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
10970         Add MCPU_MTUNE_NATIVE_SPECS.
10971         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
10972         field to all extensions.
10973         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
10974         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
10975         Adjust definition of AARCH64_OPT_EXTENSION.
10976         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
10977         (MCPU_MTUNE_NATIVE_SPECS): Define.
10978         * config/aarch64/driver-aarch64.c: New file.
10979         * config/aarch64/x-arch64: New file.
10980         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
10981         -mtune and -march.
10983 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
10984             Wei Mi  <wmi@google.com>
10986         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
10987         * config/i386/i386.c (extract_base_offset_in_addr): New function.
10988         (ix86_operands_ok_for_move_multiple): Ditto.
10989         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
10990         (movlpd/movhpd to movupd peephole2): Ditto.
10992 2015-04-24  Marek Polacek  <polacek@redhat.com>
10994         PR c/61534
10995         * input.h (from_macro_expansion_at): Define.
10997         PR c/63357
10998         * doc/invoke.texi: Update description of -Wlogical-op.
11000 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11002         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
11003         ternary operator in fprintf and harmonize spacing.
11005 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
11007         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
11008         Mark operand1 commutative.
11010 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
11012         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
11013         input operands in memory.
11014         (*vec_concatv2si_sse4_1): Ditto.
11015         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
11016         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
11017         register_operand.
11018         (vec_extract_hi_v32hi): Ditto.
11019         (vec_extract_hi_v64hi): Ditto.
11020         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
11022 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11023             Steven Bosscher <steven@gcc.gnu.org>
11025         PR rtl-optimization/34503
11026         * cprop.c (cprop_reg_p): New.
11027         (hash_scan_set): Use above function to check if register can be
11028         propagated.
11029         (find_avail_set): Return up to two sets, one whose source is a
11030         register and one whose source is a constant.  Sets are returned in an
11031         array passed as parameter rather than as a return value.
11032         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
11033         sets returned by find_avail_set, starting with the one whose source is
11034         a constant. Use cprop_reg_p to check if register can be propagated.
11035         (do_local_cprop): Use cprop_reg_p to check if register can be
11036         propagated.
11037         (implicit_set_cond_p): Likewise.
11039 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
11041         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
11042         (sem_function::equals): IGNORED_NODES parameter is now unused;
11043         update call of equals_private.
11044         (sem_function::equals_private): Do not call equals_wpa; skip
11045         gimple body matching if there is no body.
11046         (sem_function::init): Add logic to hash tthunk info.
11047         (sem_function::parse): Also parse thunks.
11048         * ipa-icf.h (equals_private): Update declaration.
11050 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11052         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
11053         asterisk from name so this can be generated directly.
11054         (*altivec_stvx_<mode>_internal): Likewise.
11055         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
11056         that this is never called during or after reload/lra.
11057         (rs6000_frame_related): Remove split_reg
11058         argument and logic that references it.
11059         (emit_frame_save): Remove last parameter from call to
11060         rs6000_frame_related.
11061         (rs6000_emit_prologue): Remove last parameter from eight calls to
11062         rs6000_frame_related.  Force generation of stvx instruction for
11063         Altivec register saves.  Remove split_reg handling, which is no
11064         longer needed.
11065         (rs6000_emit_epilogue):  Force generation of lvx instruction for
11066         Altivec register restores.
11068 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11070         * config/rs6000/rs6000.opt (mcrypto): Change option description to
11071         match category changes in ISA 2.07B.
11073 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11075         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
11076         iterators.
11077         (cmp_op, cmp_type): New code attributes.
11078         (NEON_VCMP, NEON_VACMP): New int iterators.
11079         (cmp_op_unsp): New int attribute.
11080         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
11081         (neon_vceq<mode>): Delete.
11082         (neon_vc<cmp_op><mode>_insn): New pattern.
11083         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
11084         (neon_vcgeu<mode>): Delete.
11085         (neon_vcle<mode>): Likewise.
11086         (neon_vclt<mode>: Likewise.
11087         (neon_vcage<mode>): Likewise.
11088         (neon_vcagt<mode>): Likewise.
11089         (neon_vca<cmp_op><mode>): New define_expand.
11090         (neon_vca<cmp_op><mode>_insn): New pattern.
11091         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
11093 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
11095         * tree.h (attribute_value_equal): Declare.
11096         * tree.c (attribute_value_equal): Export.
11098 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
11100         * ipa-icf.c (sem_item::compare_attributes): New function.
11101         (sem_item::compare_referenced_symbol_properties): Compare variable
11102         attributes.
11103         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
11104         (sem_function::param_used_p): New function.
11105         (sem_function::equals_wpa): Fix attribute comparsion; match
11106         parameter type codes; do not compare paremter flags when
11107         they are not used; compare edge flags; compare indirect calls.
11108         (sem_item::update_hash_by_addr_refs): Hash reference type.
11109         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
11110         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
11111         reference use type.
11112         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
11113         * ipa-icf.h (compare_attributes, param_used_p): Declare.
11115 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
11117         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
11118         cleanup.
11119         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
11120         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
11121         (sem_item::compare_referenced_symbol_properties): New.
11122         (sem_item::hash_referenced_symbol_properties): New.
11123         (sem_item::compare_cgraph_references): Rename to ...
11124         (sem_item::compare_symbol_references): ... this one; use
11125         compare_referenced_symbol_properties.
11126         (sem_function::equals_wpa): Do not compare
11127         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
11128         DECL_IS_OPERATOR_NEW; compare pointer sizes.
11129         (sem_item::update_hash_by_addr_refs): Call
11130         hash_referenced_symbol_properties.
11131         (sem_item::update_hash_by_local_refs): Cleanup.
11132         (sem_function::merge): Do not mix up symbol properties.
11133         (sem_variable::equals_wpa): Use compare_symbol_references.
11134         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
11135         (sem_item::hash_referenced_symbol_properties): New.
11136         (sem_item::compare_symbol_references): New.
11137         (sem_item::compare_cgraph_references): Remove.
11139 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
11141         PR target/26702
11142         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
11143         Emit size of local.
11145 2015-04-23  Nick Clifton  <nickc@redhat.com>
11147         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
11148         ATTRIBUTE_UNUSED to x parameter.
11149         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
11151 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11153         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
11154         TARGET_CRYPTO to TARGET_P8_VECTOR>
11155         (crypto_vpermxor_<mode>): Likewise.
11156         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
11157         (BU_CRYPTO_3A): Likewise.
11158         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
11159         (BU_CRYPTO_OVERLOAD_3A): New #define.
11160         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
11161         (VPMSUMH): Likewise.
11162         (VPMSUMW): Likewise.
11163         (VPMSUMD): Likewise.
11164         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
11165         (VPERMXOR_V4SI): Likewise.
11166         (VPERMXOR_V8HI): Likewise.
11167         (VPERMXOR_V16QI): Likewise.
11168         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
11169         BU_CRYPTO_OVERLOAD_2A.
11170         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
11171         BU_CRYPTO_OVERLOAD_3A.
11172         * config/rs6000/rs6000.opt (mcrypto): Change description of
11173         option.
11175 2015-04-23  Richard Biener  <rguenther@suse.de>
11177         * passes.def: Remove copy propagation passes run directly after CCP.
11178         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
11179         SSA names.
11180         (ccp_visit_phi_node): Rework to handle first executable edge
11181         specially.
11183 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
11185         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
11186         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
11187         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
11188         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
11189         (thumb_legimitimize_reload_address): Remove.
11190         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
11191         Remove.
11192         (thumb_legimitimize_reload_address): Remove.
11194 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11196         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
11198 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11200         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
11201         MAX_LDM_STM_OPS.
11202         (store_multiple): Likewise.
11204 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11206         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
11207         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
11208         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
11209         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
11210         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
11211         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
11212         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
11213         Specify issue_rate value.
11214         (arm_issue_rate): Look up issue rate from tuning structs. Remove
11215         large switch statement.
11216         (arm_marvell_pj4_tune): New struct.
11217         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
11218         struct.
11220 2015-04-23  Richard Biener  <rguenther@suse.de>
11222         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
11223         (vect_find_last_store_in_slp_instance): Rename to ...
11224         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
11225         (vect_analyze_slp_cost_1): Use vector_load for constant defs
11226         and vec_construct for external defs when estimating prologue cost.
11227         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
11228         Compute costs here only when vectorizing loops.
11229         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
11230         have been determined.
11231         (vect_schedule_slp_instance): Simplify vectorized code placement
11232         and prepare for in-BB external defs.
11233         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
11234         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
11235         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
11236         guard.
11237         (vect_model_load_cost): Likewise.
11238         (vectorizable_store): Instead add it here.
11239         (vectorizable_load): Likewise.
11240         (vect_is_simple_use): Dump def type textually.
11242 2015-04-23  Richard Biener  <rguenther@suse.de>
11244         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
11245         * cfgloop.c (verify_loop_structure): Verify the root loop node.
11246         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
11247         instead of get_eh_region_from_lp_number.
11248         * loop-init.c (fix_loop_structure): If we removed a loop, reset
11249         the SCEV cache.
11251 2015-04-23  Anton Blanchard  <anton@samba.org>
11253         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
11254         need for -mprofile-kernel to save LR to stack.
11256 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11258         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
11259         adjustments.
11260         (insn_is_swappable_p): Return 1 for a convert from double to
11261         single precision when all of its uses are splats of BE element
11262         zero.
11264 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
11266         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
11268 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11270         PR target/65456
11271         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
11272         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
11273         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
11274         option.
11275         (rs6000_builtin_mask_for_load): Return 0 for targets with
11276         efficient unaligned VSX accesses so that the vectorizer will use
11277         direct unaligned loads.
11278         (rs6000_builtin_support_vector_misalignment): Always return true
11279         for targets with efficient unaligned VSX accesses.
11280         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
11281         stores on targets with efficient unaligned VSX accesses is almost
11282         always the same as the cost of an aligned load or store, so model
11283         it that way.
11284         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
11285         unaligned vectors if we have efficient unaligned VSX accesses.
11286         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
11287         undocumented option.
11289 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11291         Revert:
11292         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
11294         * config.gcc (LIBC_MUSL): New tm_defines macro.
11295         * config/linux.h (OPTION_MUSL): Define.
11296         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
11297         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
11298         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
11300         * config/linux.opt (mmusl): New option.
11301         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
11302         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
11304         * configure: Regenerate.
11306 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
11308         * config.gcc (LIBC_MUSL): New tm_defines macro.
11309         * config/linux.h (OPTION_MUSL): Define.
11310         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
11311         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
11312         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
11314         * config/linux.opt (mmusl): New option.
11315         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
11316         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
11318         * configure: Regenerate.
11320 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
11322         * doc/invoke.texi (-fsanitize-sections): Update description.
11323         * asan.c (set_sanitized_sections): Parse incoming arg.
11324         (section_sanitized_p): Support wildcards.
11326 2015-04-22  Tom de Vries  <tom@codesourcery.com>
11328         PR tree-optimization/65823
11329         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
11330         equality between ap_copy and ap.
11332 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11334         PR target/47098
11335         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
11337 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11339         PR target/47122
11340         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
11342 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11344         PR target/55144
11345         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
11346         remove already contained t-files.
11348 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11350         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
11351         Remove unneeded forward declarations.
11352         (suitable_for_tail_call_opt_p): Commentary typo fix.
11354 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11356         * varasm.c (emit_bss): Remove redundant guard.
11358 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11360         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
11362 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11364         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
11366 2015-04-22  Hale Wang  <hale.wang@arm.com>
11367             Terry Guo  <terry.guo@arm.com>
11369         PR rtl-optimization/64818
11370         * combine.c (can_combine_p): Don't combine user-specified
11371         register if it is in an asm input.
11373 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
11375         PR ipa/65076
11376         * passes.def (early_optimizations): Add pass_dse.
11378 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11380         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
11381         * reorg.c (redundant_insn): Remove ifdef
11382         INSN_REFERENCES_ARE_DELAYED.
11383         * resource.c (mark_referenced_resources): Likewise.
11385 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11387         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
11388         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
11389         * resource.c (mark_set_resources): Likewise.
11391 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11393         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
11394         * cfgcleanup.c (flow_find_cross_jump): Likewise.
11395         (flow_find_head_matching_sequence): Likewise.
11396         (try_head_merge_bb): Likewise.
11397         * combine.c (can_combine_p): Likewise.
11398         (try_combine): Likewise.
11399         (distribute_notes): Likewise.
11400         * df-problems.c (can_move_insns_across): Likewise.
11401         * final.c (final): Likewise.
11402         * gcse.c (insert_insn_end_basic_block): Likewise.
11403         * ira.c (find_moveable_pseudos): Likewise.
11404         * reorg.c (try_merge_delay_insns): Likewise.
11405         (fill_simple_delay_slots): Likewise.
11406         (fill_slots_from_thread): Likewise.
11407         * sched-deps.c (sched_analyze_2): Likewise.
11409 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11411         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
11412         PIC_OFFSET_TABLE_REGNUM.
11414 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11416         * alias.c (init_alias_target): Remove ifdef
11417         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
11418         * df-scan.c (df_insn_refs_collect): Likewise.
11419         (df_get_regular_block_artificial_uses): Likewise.
11420         (df_get_eh_block_artificial_uses): Likewise.
11421         (df_get_entry_block_def_set): Likewise.
11422         (df_get_exit_block_use_set): Likewise.
11423         * emit-rtl.c (gen_rtx_REG): Likewise.
11424         * ira.c (ira_setup_eliminable_regset): Likewise.
11425         * reginfo.c (init_reg_sets_1): Likewise.
11426         * regrename.c (rename_chains): Likewise.
11427         * reload1.c (reload): Likewise.
11428         (eliminate_regs_in_insn): Likewise.
11429         * resource.c (mark_referenced_resources): Likewise.
11430         (init_resource_info): Likewise.
11432 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11434         * defaults.h (MASK_RETURN_ADDR): New definition.
11435         * except.c (expand_builtin_extract_return_addr): Remove ifdef
11436         MASK_RETURN_ADDR.
11438 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11440         * defaults.h (RETURN_ADDR_OFFSET): New definition.
11441         * except.c (expand_builtin_extract_return_addr): Remove ifdef
11442         RETURN_ADDR_OFFSET.
11443         (expand_builtin_frob_return_addr): Likewise.
11445 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11447         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
11448         (try_redirect_by_replacing_jump): Likewise.
11449         (rtl_tidy_fallthru_edge): Likewise.
11450         * combine.c (insn_a_feeds_b): Likewise.
11451         (find_split_point): Likewise.
11452         (simplify_set): Likewise.
11453         * cprop.c (cprop_jump): Likewise.
11454         * cse.c (cse_extended_basic_block): Likewise.
11455         * df-problems.c (can_move_insns_across): Likewise.
11456         * function.c (emit_use_return_register_into_block): Likewise.
11457         * haifa-sched.c (sched_init): Likewise.
11458         * ira.c (find_moveable_pseudos): Likewise.
11459         * loop-invariant.c (find_invariant_insn): Likewise.
11460         * lra-constraints.c (curr_insn_transform): Likewise.
11461         * postreload.c (reload_combine_recognize_const_pattern):
11462         * Likewise.
11463         * reload.c (find_reloads): Likewise.
11464         * reorg.c (delete_scheduled_jump): Likewise.
11465         (steal_delay_list_from_target): Likewise.
11466         (steal_delay_list_from_fallthrough): Likewise.
11467         (redundant_insn): Likewise.
11468         (fill_simple_delay_slots): Likewise.
11469         (fill_slots_from_thread): Likewise.
11470         (delete_computation): Likewise.
11471         * sched-rgn.c (add_branch_dependences): Likewise.
11473 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11475         * genconfig.c (main): Always define HAVE_cc0.
11476         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
11477         HAVE_cc0.
11478         * cfgcleanup.c (flow_find_cross_jump): Likewise.
11479         (flow_find_head_matching_sequence): Likewise.
11480         (try_head_merge_bb): Likewise.
11481         * cfgrtl.c (rtl_merge_blocks): Likewise.
11482         (try_redirect_by_replacing_jump): Likewise.
11483         (rtl_tidy_fallthru_edge): Likewise.
11484         * combine.c (do_SUBST_MODE): Likewise.
11485         (insn_a_feeds_b): Likewise.
11486         (combine_instructions): Likewise.
11487         (can_combine_p): Likewise.
11488         (try_combine): Likewise.
11489         (find_split_point): Likewise.
11490         (subst): Likewise.
11491         (simplify_set): Likewise.
11492         (distribute_notes): Likewise.
11493         * cprop.c (cprop_jump): Likewise.
11494         * cse.c (cse_extended_basic_block): Likewise.
11495         * df-problems.c (can_move_insns_across): Likewise.
11496         * final.c (final): Likewise.
11497         (final_scan_insn): Likewise.
11498         * function.c (emit_use_return_register_into_block): Likewise.
11499         * gcse.c (insert_insn_end_basic_block): Likewise.
11500         * haifa-sched.c (sched_init): Likewise.
11501         * ira.c (find_moveable_pseudos): Likewise.
11502         * loop-invariant.c (find_invariant_insn): Likewise.
11503         * lra-constraints.c (curr_insn_transform): Likewise.
11504         * optabs.c (prepare_cmp_insn): Likewise.
11505         * postreload.c (reload_combine_recognize_const_pattern):
11506         * Likewise.
11507         * reload.c (find_reloads): Likewise.
11508         (find_reloads_address_1): Likewise.
11509         * reorg.c (delete_scheduled_jump): Likewise.
11510         (steal_delay_list_from_target): Likewise.
11511         (steal_delay_list_from_fallthrough): Likewise.
11512         (try_merge_delay_insns): Likewise.
11513         (redundant_insn): Likewise.
11514         (fill_simple_delay_slots): Likewise.
11515         (fill_slots_from_thread): Likewise.
11516         (delete_computation): Likewise.
11517         (relax_delay_slots): Likewise.
11518         * sched-deps.c (sched_analyze_2): Likewise.
11519         * sched-rgn.c (add_branch_dependences): Likewise.
11521 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11523         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
11524         that is trivially ded on non cc0 targets.
11525         (simplify_set): Likewise.
11526         (mark_used_regs_combine): Likewise.
11527         * cse.c (new_basic_block): Likewise.
11528         (fold_rtx): Likewise.
11529         (cse_insn): Likewise.
11530         (cse_extended_basic_block): Likewise.
11531         (set_live_p): Likewise.
11532         * rtlanal.c (canonicalize_condition): Likewise.
11533         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11535 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11537         * conditions.h: Define macros even if HAVE_cc0 is undefined.
11538         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
11539         * final.c: Likewise.
11540         * jump.c: Likewise.
11541         * recog.c: Likewise.
11542         * recog.h: Declare functions even when HAVE_cc0 is undefined.
11543         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
11545 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11547         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
11548         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
11549         * builtins.c (expand_builtin): Remove check if
11550         EH_RETURN_DATA_REGNO is defined.
11551         * df-scan.c (df_bb_refs_collect): Likewise.
11552         (df_get_exit_block_use_set): Likewise.
11553         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
11554         * ira-lives.c (process_bb_node_lives): Likewise.
11555         * lra-lives.c (process_bb_lives): Likewise.
11557 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
11559         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
11560         FIRST_PSEUDO_REG): New.
11561         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
11562         (ARG_POINTER_REGNUM): Define to ARGP_REG.
11563         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
11564         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
11565         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
11566         (FIRST_INT_REG): New.
11567         (LAST_INT_REG): New.
11568         (FIRST_*_REG): Define using *_REG.
11569         (LAST_*_REG): Ditto.
11570         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
11571         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
11572         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
11574 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11576         * expmed.c: (synth_mult): Only assume overlapping
11577         shift with previous steps in alg_sub_t_m2 case.
11579 2015-04-21  Richard Biener  <rguenther@suse.de>
11581         PR tree-optimization/65650
11582         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
11583         transitions involving copies.
11584         (set_lattice_value): Adjust for copy lattice state.
11585         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
11586         if that doesn't dominate the merge point.
11587         (bit_value_unop): Adjust what we treat as varying mask.
11588         (bit_value_binop): Likewise.
11589         (bit_value_assume_aligned): Likewise.
11590         (evaluate_stmt): When we simplified to a SSA name record a copy
11591         instead of dropping to varying.
11592         (visit_assignment): Simplify.
11594         * gimple-match.h (gimple_simplify): Add another callback.
11595         * gimple-fold.c (fold_stmt_1): Adjust caller.
11596         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
11597         for the 2nd callback.
11598         * gimple-match-head.c (gimple_simplify): Add a callback that is
11599         used to valueize the stmt operands and use it that way.
11601 2015-04-21  Richard Biener  <rguenther@suse.de>
11603         PR tree-optimization/65788
11604         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
11606 2015-04-21  Richard Biener  <rguenther@suse.de>
11608         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
11609         vec_construct cost by vec_stmt_cost.
11611 2015-04-21  Richard Biener  <rguenther@suse.de>
11613         * cfghooks.h (create_basic_block): Replace with two overloads
11614         for RTL and GIMPLE.
11615         (split_block): Likewise.
11616         * cfghooks.c (split_block): Rename to ...
11617         (split_block_1): ... this.
11618         (split_block): Add two type-safe overloads for RTL and GIMPLE.
11619         (split_block_after_labels): Call split_block_1.
11620         (create_basic_block): Rename to ...
11621         (create_basic_block_1): ... this.
11622         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
11623         (create_empty_bb): Call create_basic_block_1.
11624         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
11625         split_block_after_labels.
11626         * omp-low.c (expand_parallel_call): Likewise.
11627         (expand_omp_target): Likewise.
11628         (simd_clone_adjust): Likewise.
11629         * tree-chkp.c (chkp_get_entry_block): Likewise.
11630         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
11631         create_basic_block overload.
11632         (cgraph_node::expand_thunk): Likewise.
11633         * tree-cfg.c (make_blocks): Likewise.
11634         (handle_abnormal_edges): Likewise.
11635         * tree-inline.c (copy_bb): Likewise.
11637 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11639         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
11640         New pattern.
11641         (*xor_one_cmplsidi3_ze): Likewise.
11643 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11645         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
11646         use df_remove_problem rather than manually removing problems, leaving
11647         holes in df->problems_in_order[].
11649 2015-04-21  Tom de Vries  <tom@codesourcery.com>
11651         PR tree-optimization/65802
11652         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
11654 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11656         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
11657         Increase to 128.
11658         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
11659         at '.'.  Assert that there's enough space for everything.
11661 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
11663         PR tree-optimization/64950
11664         Revert:
11665         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
11667         PR target/41089
11668         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
11669         as volatile.
11671 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
11673         PR rtl-optimization/64916
11674         * cfgcleanup.c (values_equal_p): New function.
11675         (can_replace_by): Use it.
11677 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
11679         PR c++/65801
11680         * doc/invoke.texi ([-Wnarrowing]): Update.
11682 2015-04-20  Jeff Law  <law@redhat.com>
11684         PR tree-optimization/65658
11685         * tree-ssa-threadupdate.c (redirection_block_p): Remove
11686         redundant test for GIMPLE_ASSIGN in last change.
11688 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
11690         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
11691         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
11692         (legitimize_tls_address): Ditto.
11693         (ix86_expand_move): Ditto.
11694         (ix86_expand_binary_operator): Remove reload_in_progress checks.
11695         (ix86_expand_unary_operator): Ditto.
11696         * config/i386/predicates.md (index_register_operand): Ditto.
11698 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
11700         * reorg.c (try_merge_delay_insns): Improve correctness checking
11701         for targets with multiple delay slots.
11703 2015-04-20  Jeff Law  <law@redhat.com>
11705         PR tree-optimization/65658
11706         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
11707         statements too.
11709 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
11711         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
11712         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
11713         Delete.
11715 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
11717         PR debug/65807
11718         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
11720 2015-04-20  Richard Biener  <rguenther@suse.de>
11722         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
11723         * gimple-fold.c (gimple_build_valueize): New function.
11724         (gimple_build): Always use gimple_build_valueize as valueize hook.
11726 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
11728         PR target/64134
11729         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
11730         and overwrite variable parts if <= 1/2 the elements are variable.
11732 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
11734         PR rtl-optimization/65805
11735         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
11736         Don't use difference of offset and previous offset if
11737         update_sp_offset is non-zero.
11738         (eliminate_regs_in_insn): Ditto.
11739         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
11740         lra_eliminate_regs_1 call.
11741         * lra-constraints.c (get_equiv_with_elimination): Ditto.
11743 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
11745         * hash-table.h: Remove version of hash_table that stored value_type *.
11746         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
11747         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
11748         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
11749         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
11750         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
11751         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
11752         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11753         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
11754         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
11755         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
11756         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
11757         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
11758         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
11759         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11760         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
11761         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
11763 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11764             Jakub Jelinek  <jakub@redhat.com>
11766         PR target/65787
11767         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
11768         subsequent SH_NONE operand does not overwrite an existing *special
11769         value.
11770         (adjust_extract): Handle case where a vec_extract operation is
11771         wrapped in a PARALLEL.
11773 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
11775         PR target/65780
11776         * config/i386/i386.c (ix86_binds_local_p): Define only if
11777         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
11779 2015-04-17  Jeff Law  <law@redhat.com>
11781         PR tree-optimization/47679
11782         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
11783         * tree-ssa-scopedtables.c: New file.
11784         * tree-ssa-scopedtables.h: New file.
11785         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
11786         (const_and_copies): Change name/type.
11787         (record_const_or_copy): Move into tree-ssa-scopedtables.c
11788         (record_const_or_copy_1): Similarly.
11789         (restore_vars_to_original_value): Similarly.
11790         (pass_dominator::execute): Create and destroy const_and_copies table.
11791         (thread_across_edge): Update passing of const_and_copies.
11792         (record_temporary_equivalence): Use method calls rather than
11793         manipulating const_and_copies directly.
11794         (record_equality, cprop_into_successor_phis): Similarly.
11795         (dom_opt_dom_walker::before_dom_children): Similarly.
11796         (dom_opt_dom_walker::after_dom_children): Similarly.
11797         (eliminate_redundant_computations): Similarly.
11798         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
11799         (record_temporary_equivalence): Likewise.
11800         (invalidate_equivalences): Likewise.
11801         (record_temporary_equivalences_from_phis): Update due to type
11802         change of const_and_copies.  Use method calls rather than
11803         manipulating the stack directly.
11804         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
11805         (thread_through_normal_block, thread_across_edge): Likewise.
11806         (thread_across_edge): Likewise.
11807         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11808         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
11809         of equiv_stack.
11810         (identify_jump_threads): Update due to type change of equiv_stack.
11811         (finalize_jump_threads): Delete the equiv_stack when complete.
11813 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
11815         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
11816         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
11817         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
11819 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
11821         PR target/65535
11822         * config.gcc: Exit with a comment when we do not have a major version
11823         number for the FreeBSD target.
11825 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
11827         PR target/65689
11828         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
11829         maybe_allows_mem bitfields.
11830         (maybe_allows_none_start, maybe_allows_none_end,
11831         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
11832         maybe_allows_mem_end): New variables.
11833         (compute_maybe_allows): New function.
11834         (add_constraint): Use it to initialize maybe_allows_reg and
11835         maybe_allows_mem fields.
11836         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
11837         is_address constraints such that those that allow neither mem nor
11838         reg come first, then those that only allow reg but not mem, then
11839         those that only allow mem but not reg, then the rest.
11840         (write_allows_reg_mem_function): New function.
11841         (write_tm_preds_h): Call it.
11842         * stmt.c (parse_output_constraint, parse_input_constraint): Use
11843         the generated insn_extra_constraint_allows_reg_mem function
11844         instead of always setting *allows_reg = true; *allows_mem = true;
11845         for unknown extra constraints.
11847 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
11849         PR target/65780
11850         * output.h (default_binds_local_p_3): New.
11851         * varasm.c (default_binds_local_p_3): Make it public.  Take an
11852         argument to indicate if common symbol may be local.  If common
11853         symbol may be local, treat non-external variable as defined
11854         locally.
11855         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
11856         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
11857         * config/i386/i386.c (ix86_binds_local_p): New.
11858         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
11859         ix86_binds_local_p.
11861 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
11863         PR debug/65771
11864         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
11865         trying mem_loc_descriptor on XEXP (rtl, 0).
11867 2015-04-17  Martin Liska  <mliska@suse.cz>
11869         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
11870         Release symbol_compare_collection.
11871         * ipa-reference.c: Add TODO that a vector should be released.
11873 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
11875         PR target/65296
11876         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
11877         to new AVR-LibC file layout (bug #44574).
11878         (*avrlibc_devicelib): Same.
11879         * config/avr/avr-mcus.def: Adjust comments.
11880         * config/avr/avr.opt (nodevicelib): Adjust help.
11882 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
11884         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
11886 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
11888         PR c++/64527
11889         * gimplify.c (gimplify_init_constructor): Always emit a
11890         side-effecting constructor.
11892 2015-04-17  Tom de Vries  <tom@codesourcery.com>
11894         PR tree-optimization/64950
11895         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
11896         in cfun->curr_properties.
11897         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
11898         if we generate an IFN_VA_ARG.
11899         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
11900         function if PROP_gimple_lva is not set in src function.
11902 2015-04-17  Tom de Vries  <tom@codesourcery.com>
11903             Michael Matz  <matz@suse.de>
11905         PR tree-optimization/64950
11906         * gimple-iterator.c (update_modified_stmts): Remove static.
11907         * gimple-iterator.h (update_modified_stmts): Declare.
11908         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
11909         (gimplify_va_arg_internal): New function.
11910         (gimplify_va_arg_expr): Use IFN_VA_ARG.
11911         * gimplify.h (gimplify_va_arg_internal): Declare.
11912         * internal-fn.c (expand_VA_ARG): New unreachable function.
11913         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
11914         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
11915         (expand_ifn_va_arg): New function.
11916         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
11917         (pass_stdarg::execute): Call expand_ifn_va_arg.
11918         (pass_data_lower_vaarg): New pass_data.
11919         (pass_lower_vaarg): New gimple_opt_pass.
11920         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
11921         (make_pass_lower_vaarg): New function.
11922         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
11923         properties_required field.
11924         * passes.def (all_passes): Add pass_lower_vaarg.
11925         * tree-pass.h (PROP_gimple_lva): Add define.
11926         (make_pass_lower_vaarg): Declare.
11928 2015-04-17  Tom de Vries  <tom@codesourcery.com>
11930         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
11931         * calls.c (call_expr_flags): Same.
11933 2015-04-17  Tom de Vries  <tom@codesourcery.com>
11935         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
11936         (pass_stdarg::execute): ... here.
11938 2015-04-17  Tom de Vries  <tom@codesourcery.com>
11939             Michael Matz  <matz@suse.de>
11941         * tree-cfg.c (make_blocks_1): Factor out of ...
11942         (make_blocks): ... here.
11943         (make_edges_bb): Factor out of ...
11944         (make_edges): ... here.
11945         (gimple_find_sub_bbs): New function.
11946         * tree-cfg.h (gimple_find_sub_bbs): Declare.
11948 2015-04-17  Tom de Vries  <tom@codesourcery.com>
11950         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
11952 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
11954         * asan.c (set_sanitized_sections): New function.
11955         (section_sanitized_p): Ditto.
11956         (asan_protect_global): Optionally sanitize user-defined
11957         sections.
11958         * asan.h (set_sanitized_sections): Declare new function.
11959         * common.opt (fsanitize-sections): New option.
11960         * doc/invoke.texi (-fsanitize-sections): Document new option.
11961         * opts-global.c (handle_common_deferred_options): Handle new
11962         option.
11964 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
11966         PR debug/65771
11967         * dwarf2out.c (loc_list_from_tree): Return NULL
11968         for DEBUG_EXPR_DECL.
11970 2015-04-17  Christian Bruel  <christian.bruel@st.com>
11972         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
11973         same attributes.
11975 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
11977         * ira-color.c (setup_left_conflict_sizes_p): Do not process
11978         node itself when computing left conflict subnode size.
11980 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
11982         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
11983         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
11984         *fop_<mode>_1_sse using enabled attribute.  Use
11985         register_mixssei387nonimm_operand operand 1 predicate. Change
11986         alternative 3 constraints from "x" to "v".
11988 2015-04-16  Richard Biener  <rguenther@suse.de>
11990         PR tree-optimization/65774
11991         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
11992         bit-value tracking on.
11994 2015-04-16  Richard Biener  <rguenther@suse.de>
11996         PR tree-optimization/64277
11997         * tree-vrp.c (check_array_ref): Fix anti-range handling,
11998         simplify upper bound handling.
11999         (search_for_addr_array): Simplify.
12000         (check_array_bounds): Handle ADDR_EXPRs here.
12001         (check_all_array_refs): Simplify.
12003 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
12005         * config/i386/i386.c (print_reg): Rewrite function.
12007 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12009         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
12010         Invert the condition.
12012 2015-04-16  Renlin Li  <renlin.li@arm.com>
12014         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
12015         simplifications for UNSIGNED_FLOAT.
12017 2015-04-16  Nick Clifton  <nickc@redhat.com>
12019         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
12020         MUL_UNINIT.
12021         (enum rl78_cpu_type): New.
12022         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
12023         (umulhi3_shift_virt): Remove m constraint from operand 1.
12024         (umulqihi3_virt): Likewise.
12025         * config/rl78/rl78.c (rl78_option_override): Add code to process
12026         -mcpu and -mmul options.
12027         (rl78_alloc_physical_registers): Add code to handle divhi and
12028         divsi valloc attributes.
12029         (set_origin): Likewise.
12030         * config/rl78/rl78.h (RL78_MUL_G14): Define.
12031         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
12032         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
12033         __RL78_Gxx__.
12034         (ASM_SPEC): Pass -mcpu on to assembler.
12035         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
12036         (mulqi3_rl78): Likewise.
12037         (mulhi3_g13): Likewise.
12038         (mulhi3): Generate the G13 or G14 versions of the insn directly.
12039         (mulsi3): Likewise.
12040         (mulhi3_g14): Add clobbers of AX and BC.
12041         (mulsi3_g14): Likewise.
12042         (mulsi3_g13): Likewise.
12043         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
12044         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
12045         * config/rl78/rl78.opt (mmul): Initialise value to
12046         RL78_MUL_UNINIT.
12047         (mcpu): New option.
12048         (m13, m14, mrl78): New option aliases.
12049         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
12050         (MULTILIB_DIRNAMES): Add g13 and g14.
12051         * doc/invoke.texi: Document -mcpu and -mmul options.
12053 2015-04-16  Richard Biener  <rguenther@suse.de>
12055         * tree-ssa-ccp.c (likely_value): See if we have operands that
12056         are marked as never simulate again and return CONSTANT in this
12057         case.
12058         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
12059         not have any operands that will be simulated again as
12060         not being simulated again.
12062 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
12064         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
12065         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
12066         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
12067         attribute.
12068         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
12069         enabled attribute.
12070         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
12071         *float<SWI48:mode><MODEF:mode>2_sse.
12072         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
12073         enabled attribute.
12074         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
12075         enabled attribute.
12077 2015-04-15  Tom de Vries  <tom@codesourcery.com>
12079         PR other/65487
12080         * function.c (push_dummy_function): New function.
12081         (init_dummy_function_start): Use push_dummy_function.
12082         (pop_dummy_function): New function.  Factored out of ...
12083         (expand_dummy_function_end): ... here.
12084         * function.h (push_dummy_function, pop_dummy_function): Declare.
12085         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
12086         pop_dummy_function.
12087         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
12089 2015-04-15  Jeff Law  <law@redhat.com>
12091         PR tree-optimization/47679
12092         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
12093         need for forward declaration in upcoming changes.
12094         (record_conditions, record_edge_info): Likewise.
12096         PR rtl-optimization/42522
12097         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
12098         SIGN_EXTRACT as a whole object rather than simplifying
12099         its operand.
12101 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
12103         PR ipa/65765
12104         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
12105         and GIMPLE_PREDICT use break instead of return true. For
12106         GIMPLE_EH_DISPATCH, compare dispatch region.
12108 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
12110         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
12111         details about the implementation.  Make clear preference for
12112         __atomic builtins.  Reduce possibility of future change.
12114 2015-04-15  Nick Clifton  <nickc@redhat.com>
12116         * config/rx/rx.opt (mallow-string-insns): New option.
12117         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
12118         builtin if string instructions are denied.
12119         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
12120         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
12121         appropriate.
12122         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
12123         * config/rx/rx.md (movstr): Enable pattern only if string
12124         instructions are allowed.
12125         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
12126         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
12127         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
12128         (MULTILIB_DIRNAMES): Add no-strings.
12129         * doc/invoke.texi: Document -mno-allow-string-insns.
12131 2015-04-15  Alan Modra  <amodra@gmail.com>
12133         PR target/65408
12134         PR target/58744
12135         PR middle-end/36043
12136         * calls.c (load_register_parameters): Don't load past end of
12137         mem unless suitably aligned.
12139 2015-04-15  Nick Clifton  <nickc@redhat.com>
12141         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
12142         decrement instruction as being frame related.
12143         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
12144         based addresses.
12145         If zero extending a function address enclose the operation in
12146         %code(...).
12147         (rl78_preferred_reload_class): New function.
12148         (TARGET_PREFERRED_RELOAD_CLASS): Define.
12149         * config/rl78/rl78.md: Remove useless constraints in expanders.
12150         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
12151         (mulhi3_rl78): Likewise.
12152         (mulhi3_g13): Likewise.
12153         (mulsi3_rl78): Likewise.
12154         (es_addr): Move to before the multiply patterns.
12156 2015-04-15  Alan Modra  <amodra@gmail.com>
12158         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
12159         and sequence_stack.  Add seq.
12160         (seq_stack): Delete.
12161         * function.c (prepare_function_start): Don't access x_last_insn.
12162         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
12163         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
12164         * emit_rtl.c (start_sequence, push_topmost_sequence,
12165         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
12166         sequence accessors.
12167         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
12168         remove_insn): Likewise.  Simplify.
12169         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
12170         and pop_topmost_sequence.
12171         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
12172         debug insns.
12173         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
12175 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
12177         PR target/65729
12178         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
12179         the assertiion.
12181 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
12183         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
12184         (LEGACY_INT_REGNO_P): Ditto.
12185         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
12186         (ANY_MASK_REG_P): Remove.
12187         (BND_REG_P): Rename from ANY_BND_REG_P.
12188         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
12189         legacy integer registers.  Do not handle MMX_REG_P in a special way.
12190         Merge 64byte and 32byte SSE handling.
12192 2015-04-14  Nick Clifton  <nickc@redhat.com>
12194         * expr.c (expand_assignment): Force an address offset computation
12195         into a register before changing its mode.
12196         (expand_expr_real_1): Likewise.
12198 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
12200         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
12201         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
12202         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
12203         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
12204         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
12205         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
12206         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
12207         and __aarch64_vget_lane_any.
12209 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
12211         PR rtl-optimization/65761
12212         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
12213         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
12215 2015-04-14  Richard Biener  <rguenther@suse.de>
12217         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
12218         (graphite_can_represent_scev): Use POINTER_TYPE_P.
12220 2015-04-14  Richard Biener  <rguenther@suse.de>
12222         PR tree-optimization/65758
12223         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
12224         against -1.
12225         (ccp_lattice_meet): Likewise.
12226         (bit_value_unop): Likewise.
12227         (bit_value_binop): Likewise.
12228         (bit_value_assume_aligned): Likewise.
12230 2015-04-14  Christian Bruel  <christian.bruel@st.com>
12232         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
12233         function.
12235 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
12237         PR tree-optimization/63387
12238         * match.pd ((x unord x) | (y unord y) -> (x unord y),
12239         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
12241 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
12243         * config/i386/predicates.md (any_QIreg_operand): Rename from
12244         q_regs_operand.  Do not process subregs.
12245         (QIreg_operand): Use QI_REGNO_P predicate.
12246         (ext_QIreg_operand): Ditto.
12247         (ext_register_operand): Ditto.
12248         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
12249         (AND splitters): Ditto.
12250         (AND with -65536 splitter): Add SWI48 mode for operand 0.
12251         (AND with -256 splitter): Use any_QIreg_operand predicate and
12252         SWI248 mode for operand 0.
12253         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
12254         mode for operand 0.
12255         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
12257 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
12259         * doc/plugins.texi: Rewrite first introductory paragraph.
12261 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
12263         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
12264         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
12266 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
12268         * ipa-profie.c (ipa_profile): Check number of parameters
12269         and possible polymorphic call targets before
12270         devirtualizing.
12272 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
12274         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
12275         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
12277 2015-04-13  Richard Biener  <rguenther@suse.de>
12279         PR tree-optimization/65204
12280         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
12281         takens for bit-CCP.
12283 2015-04-13  Richard Biener  <rguenther@suse.de>
12285         PR target/65660
12286         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
12287         and cond_not_taken_branch_cost to 4 and 2.
12288         (bdver2_cost): Likewise.
12289         (bdver3_cost): Likewise.
12290         (bdver4_cost): Likewise.
12292 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
12294         * hash-table.h (hash_table constructor): Add mem stats.
12295         (alloc_entries): Likewise.
12297 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
12299         * ipa-cp.c (ipcp_driver): Relase prev_edge.
12300         * passes.c (execute_one_pass): Only add transform if pass has one.
12302 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
12304         * config/i386/i386.c (ix86_option_override_internal): Don't set
12305         -fprefetch-loop-arrays if optimizing for size.
12307 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
12308             Gerald Pfeifer  <gerald@pfeifer.com>
12310         * doc/contrib.texi (Contributors): Add Martin Jambor and
12311         Michael Matz.
12313 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
12315         * BASE-VER: Set to 6.0.0.
12317         PR tree-optimization/65747
12318         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
12319         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
12321 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
12323         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
12324         sentence.  Improve grammar.
12326 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
12328         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
12330 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
12332         PR ipa/65743
12333         * ipa-inline-transform.c (speculation_removed): Remove static var.
12334         (check_speculations): New function.
12335         (clone_inlined_nodes): Do not check spculations.
12336         (inline_call): Call check_speculations.
12337         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
12338         consider non-invariants.
12340 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
12341             Martin Liska  <mliska@suse.cz>
12343         PR ipa/65722
12344         * ipa-icf.c (sem_item::compare_cgraph_references): function and
12345         variable can not match.
12346         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
12347         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
12349 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
12351         PR tree-optimization/65735
12352         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
12353         Remove visited_phis argument, add visited_bbs, avoid recursing into the
12354         same bb rather than just into the same phi node.
12355         (thread_through_normal_block): Adjust caller.
12357 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
12359         * doc/contrib.texi (Contributors): Add Ira Rosen.
12361 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
12363         * gcov.c (find_source): Fix miswording in error message.
12364         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
12365         (ix86_expand_sse_comi_round): Fix typo in error message.
12367 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
12369         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
12371 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
12373         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
12375 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
12377         PR target/65710
12378         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
12379         Print bad_spills_num and insn_pseudos_num.
12381 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12383         PR target/65694
12384         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
12385         when creating +1 values for SImode.
12387 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
12389         PR target/65729
12390         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
12391         assert.
12393 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
12394             Iain Sandoe  <iain@codesourcery.com>
12396         PR target/65351
12397         * configure: Regenerate.
12399 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
12401         PR target/65671
12402         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
12404 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
12406         * doc/contrib.texi (Contributors): Add John Marino.
12408 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
12410         PR tree-optimization/65709
12411         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
12412         TREE_TYPE (TREE_TYPE (t)).
12414 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
12416         PR target/65710
12417         * lra-int.h (lra_bad_spill_regno_start): New.
12418         * lra.c (lra_bad_spill_regno_start): New.
12419         (lra): Set up lra_bad_spill_regno_start.  Set up
12420         lra_constraint_new_regno_start unconditionally.
12421         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
12422         spill preferences.
12424 2015-04-09  Marek Polacek  <polacek@redhat.com>
12425             Jakub Jelinek  <jakub@redhat.com>
12427         PR middle-end/65554
12428         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
12429         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
12430         of STRIP_NOPS.
12432 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
12434         PR rtl-optimization/65693
12435         * combine.c (is_parallel_of_n_reg_sets): Move outside of
12436         #ifndef HAVE_cc0.
12438 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
12440         PR target/65296
12441         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
12442         device specs file if "device-specs%s" didn't resolve to a path.
12444 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
12446         PR target/65676
12447         * config/i386/i386.c (fixup_modeless_constant): New.
12448         (ix86_expand_args_builtin): Fixup modeless constant operand.
12449         (ix86_expand_round_builtin): Ditto.
12450         (ix86_expand_special_args_builtin): Ditto.
12451         (ix86_expand_builtin): Ditto.
12453 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
12455         PR target/65693
12456         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
12457         any pow2 integer in between 2 and 0x80000000U inclusive.
12459 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
12461         PR rtl-optimization/65693
12462         * combine.c (is_parallel_of_n_reg_sets): Change first argument
12463         from an rtx_insn * to an rtx.
12464         (try_combine): Adjust both callers.  Use it once more.
12466 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
12468         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
12469         (chkp_make_static_const_bounds): Search existing
12470         symbol by assembler name.  Use make_decl_one_only.
12471         (chkp_get_zero_bounds_var): Remove node search which
12472         is now performed in chkp_make_static_const_bounds.
12473         (chkp_get_none_bounds_var): Likewise.
12475 2015-04-08  Michael Witten  <mfwitten@gmail.com>
12477         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
12478         to an example.
12480 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12482         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
12484 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
12486         * doc/extend.texi (__sync Builtins): Fix grammar.
12488 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12490         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
12492 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12494         * varasm.c (emit_local): Move definition of align.
12496 2015-04-08  Julian Brown  <julian@codesourcery.com>
12498         * config/nvptx/mkoffload.c (process): Support variable mapping.
12500 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
12502         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
12503         alpha_links **.
12504         (alpha_write_one_linkage): Correct typo.
12506 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
12508         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
12510 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
12512         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
12514 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
12516         * tree-chkp.h (chkp_insert_retbnd_call): New.
12517         * tree-chkp.c (chkp_insert_retbnd_call): New.
12518         * ipa-split.c (insert_bndret_call_after): Remove.
12519         (split_function): Use chkp_insert_retbnd_call.
12520         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
12521         bounds for instrumented functions.
12523 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
12525         PR ipa/65540
12526         * calls.c (initialize_argument_information): When producing tail
12527         call also turn SSA_NAMES passed by references to original PARM_DECLs
12529 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
12531         PR target/65648
12532         * lra-remat.c (do_remat): Process input and non-input insn
12533         registers separately.
12535 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
12537         PR debug/65678
12538         * valtrack.c (debug_lowpart_subreg): New function.
12539         (dead_debug_insert_temp): Use it.
12541         PR middle-end/65680
12542         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
12543         into signed HOST_WIDE_INT the same as negative bit_offset.
12545 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
12547         * ipa-comdats.c (ipa_comdats): Visit all thunks
12548         to set proper comdat group.
12550 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12552         PR target/65489
12553         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
12554         on constants for NEON VSTRUCT modes.
12556 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
12557             Iain Sandoe  <iain@codesourcery.com>
12559         PR target/65351
12560         * configure: Regenerate.
12562 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
12564         PR target/65614
12565         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
12566         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
12567         that LFD is used to load double constants instead of LFS.  Add
12568         defaults for all costs structures.  Add comments for missing
12569         initialization fields.
12570         (size32_cost): Likewise.
12571         (size64_cost): Likewise.
12572         (rs64a_cost): Likewise.
12573         (mpccore_cost): Likewise.
12574         (ppc403_cost): Likewise.
12575         (ppc405_cost): Likewise.
12576         (ppc440_cost): Likewise.
12577         (ppc476_cost): Likewise.
12578         (ppc601_cost): Likewise.
12579         (ppc603_cost): Likewise.
12580         (ppc604_cost): Likewise.
12581         (ppc604e_cost): Likewise.
12582         (ppc620_cost): Likewise.
12583         (ppc630_cost): Likewise.
12584         (ppccell_cost): Likewise.
12585         (ppc750_cost): Likewise.
12586         (ppc7450_cost): Likewise.
12587         (ppc8540_cost): Likewise.
12588         (ppce300c2c3_cost): Likewise.
12589         (ppce500mc_cost): Likewise.
12590         (ppce500mc64_cost): Likewise.
12591         (ppce5500_cost): Likewise.
12592         (ppce6500_cost): Likewise.
12593         (titan_cost): Likewise.
12594         (power4_cost): Likewise.
12595         (power6_cost): Likewise.
12596         (power7_cost): Likewise.
12597         (power8_cost): Likewise.
12598         (ppca2_cost): Likewise.
12599         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
12601         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
12602         instead of XXLOR to copy SFmode to clear out dirty bits created
12603         when SFmode denormals are generated.
12604         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
12605         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
12607 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
12609         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
12610         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
12611         * config/aarch64/aarch64-tune.md: Regenerate.
12613 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
12615         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
12616         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
12617         * config/arm/arm-cores.def (exynos-m1): New core.
12618         * config/arm/arm-tune.md: Regenerate.
12619         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
12620         * config/arm/bpabi.h: Likewise.
12622 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
12624         * ipa-cp (set_single_call_flag): Remove too
12625         restrictive assert.
12627 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
12629         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
12630         GOMP_offload_unregister from the destructor.
12632 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
12634         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
12635         flags for instrumentation thunk.
12636         (chkp_produce_thunks): Likewise.
12638 2015-04-05  Martin Liska  <mliska@suse.cz>
12640         PR ipa/65665
12641         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
12642         has computed data structure.
12643         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
12645 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
12647         * invoke.texi (inline-unit-growth): Increase growth to 20%
12648         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
12650 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
12652         PR target/65647
12653         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
12654         value checking.
12655         (lra_rematerialization_iter): New.
12656         * lra.c (lra): Initialize lra_rematerialization_iter.
12657         Stop updating lra_constraint_new_regno_start after switching of
12658         inheritance and rematerialization.
12659         * lra-remat.c (lra_rematerialization_iter): New.
12660         (lra_remat): Add printing pass iteration.  Do rematerialization
12661         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
12663 2015-04-04  Richard Biener  <rguenther@suse.de>
12665         PR tree-optimization/64909
12666         PR tree-optimization/65660
12667         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
12668         to take a cost vector for scalar iteration cost.
12669         (vect_get_single_scalar_iteration_cost): Likewise.
12670         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
12671         Compute the scalar iteration cost into a cost vector.
12672         (vect_get_known_peeling_cost): Use the scalar cost vector to
12673         account for the cost of the peeled iterations.
12674         (vect_estimate_min_profitable_iters): Likewise.
12675         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12676         Likewise.
12678 2015-04-04  Alan Modra  <amodra@gmail.com>
12680         PR target/65576
12681         PR target/65240
12682         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
12683         0.0 constant unless TARGET_VSX.
12684         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
12685         alternative.
12687 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
12689         PR ipa/65654
12690         * ipa-inline-transform.c (inline_call): Skip sanity check to work
12691         around the ICE
12693 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
12695         PR ipa/65655
12696         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
12697         speculative indirect edges to avoid ordering issue.
12699 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
12701         PR ipa/65076
12702         * ipa-inline.c (edge_badness): Add combined size to the denominator.
12704 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
12706         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
12707         TYPE_ARTIFICIAL on the .omp_data* types.
12709 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12711         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
12712         instrumentation thunks.
12714 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12716         * config/i386/i386.c (ix86_expand_call): Avoid nested
12717         PARALLEL in returned call value.
12719 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12721         * lto-cgraph.c (input_cgraph_1): Always link instrumented
12722         assembler name with original one.
12724 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
12726         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
12728 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
12730         Revert parts of r216820.
12731         * config/i386/i386.md (movqi_internal): Correct type calculation
12732         for alternatives 3 and 5.
12734 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
12736         PR preprocessor/61977
12737         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
12738         predefine __vector/__bool/__pixel macros nor context sensitive
12739         macros for CLK_ASM.
12740         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
12742 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
12744         * config/pa/pa.c (pa_output_move_double): Directly handle register
12745         indexed memory operand.  Simplify handling of scaled register indexed
12746         memory operands.
12748 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12750         PR driver/65444
12751         * config/i386/linux-common.h (MPX_SPEC): New.
12752         (CHKP_SPEC): Add MPX_SPEC.
12753         * doc/invoke.texi (-fcheck-pointer-boudns): Document
12754         possible issues with '-z bndplt' support in linker.
12756 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
12758         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
12759         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
12760         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
12761         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
12762         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
12764 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
12766         * config/i386/sync.md (UNSPEC_MOVA): Remove.
12767         (atomic_load<mode>): Change operand 0 predicate to
12768         nonimmediate_operand and fix up the destination when needed.
12769         Use UNSPEC_LDA.
12770         (atomic_loaddi_fpu): Use UNSPEC_LDA.
12771         (atomic_store<mode>): Change operand 1 predicate to
12772         nonimmendate_operand and move the source to register when needed.
12773         Use UNSPEC_STA.
12774         (atomic_store<mode>_1): Use UNSPEC_STA.
12775         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
12776         Fix moves from memory operand.  Use UNSPEC_STA.
12778 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12780         * expmed.c (strict_volatile_bitfield_p): Check that the access will
12781         not cross a MODESIZE boundary.
12782         (store_bit_field, extract_bit_field): Added assertions in the
12783         strict volatile bitfields code path.
12785 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
12787         PR target/65624
12788         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
12789         Increase args array size by one to avoid buffer overflow.
12791 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
12793         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
12794         split_part.
12795         * ipa-inline.c (edge_badness): Add wrapper penalty.
12796         (sum_callers): Move up.
12797         (inline_small_functions): Set single_caller.
12798         * ipa-inline.h (inline_summary): Add single_caller.
12799         * ipa-split.c (split_function): Set split_part.
12800         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
12801         * cgraph.h (cgraph_node): Add split_part.
12803 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
12805         PR target/58945
12806         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
12807         Do not split operands 0 and operands 2 to halfmode.
12808         (atomic_compare_and_swap<mode>): Update for
12809         atomic_compare_and_swap<dwi>_doubleword changes.
12811 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
12813         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
12814         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
12815         no caching is done.
12817 2015-03-31  Martin Liska  <mliska@suse.cz>
12819         PR ipa/65557
12820         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
12821         has already filled up function summary.
12822         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
12824 2015-03-31  Richard Biener  <rguenther@suse.de>
12826         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
12827         of types.
12829 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12831         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
12832         nested functions.
12833         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
12834         (s390_asm_output_function_label): Adapt to new signature of
12835         s390_function_num_hotpatch_hw
12836         Optimise the code generating assembler output.
12837         Add comments to assembler file.
12839 2015-03-31  Richard Biener  <rguenther@suse.de>
12841         PR middle-end/65626
12842         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
12843         of the noreturn call so it is last and cleanup_control_flow_bb
12844         can do the CFG part.
12846 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
12848         PR target/65531
12849         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
12850         same_comdat_group for external symbols.
12851         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
12852         infinite same_comdat_group traversal loop.
12854 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
12856         PR plugins/61176
12857         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
12858         automatically to $headers.
12860 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
12862         PR ipa/65610
12863         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
12864         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
12865         function.
12866         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
12867         Use it.
12868         * ipa-prop.c (param_type_may_change_p): Likewise.
12869         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
12870         (remove_unused_scope_block_p): Add in_ctor_dtor_block
12871         argument.  Before inlining, preserve
12872         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
12873         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
12874         recursive calls.
12875         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
12877 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
12879         PR ipa/65076
12880         * ipa-inline.c (edge_badness): Base denominator on callee's
12881         grwoth squared.
12883 2015-03-27  Martin Jambor  <mjambor@suse.cz>
12885         PR ipa/65478
12886         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
12887         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
12888         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
12889         node_calling_single_call.
12890         * ipa-cp.c (count_callers): New function.
12891         (set_single_call_flag): Likewise.
12892         (initialize_node_lattices): Count callers and set single_flag_call if
12893         necessary.
12894         (incorporate_penalties): New function.
12895         (good_cloning_opportunity_p): Use it, dump new flags.
12896         (propagate_constants_topo): Set node_within_scc flag if appropriate.
12897         * doc/invoke.texi (ipa-cp-recursion-penalty,
12898         ipa-cp-single-call-pentalty): Document.
12900 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
12902         PR ipa/65588
12903         * symtab.c (symtab_node::get_partitioning_class): Register vars
12904         are duplicated.
12905         * varpool.c (symbol_table::output_variables) Do not assemble unefined
12906         decls for non-symbols.
12908 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12910         PR target/65248
12911         * output.h (default_binds_local_p_2): New.
12912         * varasm.c (default_binds_local_p_2): Renamed to ...
12913         (default_binds_local_p_3): This.  Don't return true on protected
12914         data symbol if protected data may be external.
12915         (default_binds_local_p): Use default_binds_local_p_3.
12916         (default_binds_local_p_1): Likewise.
12917         (default_binds_local_p_2): New.
12918         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
12919         default_binds_local_p_2 if TARGET_MACHO is undefined.
12921 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
12923         PR target/65593
12924         * config/i386/i386.c (legitimize_pic_address): If base
12925         is SYMBOL_REF or LABEL_REF using %rip addressing, force
12926         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
12928 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
12930         PR target/65531
12931         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
12932         comdat groups.
12934 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
12936         PR ipa/65600
12937         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
12938         of optimized out indirect call.
12939         (redirect_to_unreachable): Always build symbol table node for
12940         BUILT_IN_UNREACHABLE
12942 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
12944         PR target/65407
12945         * ira-costs.c (record_reg_classes): Process all constraint string
12946         containing 0-9.
12948 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
12950         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
12951         memory_operand.
12953         PR target/65052
12954         * config/c6x/constraints.md (S3): New constraint.
12955         * config/c6x/c6x.md (real_jump): Use it.
12957 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
12959         PR middle-end/65595
12960         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
12961         do redirection if the call is not optimized out.
12963 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
12965         PR target/65495
12966         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
12967         (fchkp-check-incomplete-type): Add LTO.
12968         (fchkp-zero-input-bounds-for-main): Likewise.
12969         (fchkp-first-field-has-own-bounds): Likewise.
12970         (fchkp-narrow-bounds): Likewise.
12971         (fchkp-narrow-to-innermost-array): Likewise.
12972         (fchkp-use-static-bounds): Likewise.
12973         (fchkp-use-static-const-bounds): Likewise.
12974         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
12976 2015-03-27  Marek Polacek  <polacek@redhat.com>
12978         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
12980 2015-03-27  Marek Polacek  <polacek@redhat.com>
12982         PR sanitizer/65583
12983         * ubsan.c (ubsan_create_edge): New function.
12984         (instrument_bool_enum_load): Call it.
12985         (instrument_nonnull_arg): Likewise.
12986         (instrument_nonnull_return): Likewise.
12987         (instrument_object_size): Likewise.
12989 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
12991         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
12992         auto_vec.
12994 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
12996         PR lto/65536
12997         * lto-streamer.h (class lto_location_cache): New.
12998         (struct data_in): Add location_cache.
12999         (lto_input_location): Update prototype.
13000         (stream_input_location_now): New.
13001         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
13002         pointer to location.
13003         (stream_input_location): Update.
13004         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
13005         (warn_odr): Apply location cache before warning.
13006         (lto_input_location): Update prototype.
13007         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
13008         Use stream_input_location_now.
13009         * lto-streamer-in.c (lto_location_cache::current_cache): New static
13010         variable.
13011         (lto_location_cache::cmp_loc): New function.
13012         (lto_location_cache::apply_location_cache): New function.
13013         (lto_location_cache::accept_location_cache): New function.
13014         (lto_location_cache::revert_location_cache): New function.
13015         (lto_location_cache::input_location): New function.
13016         (lto_input_location): Do location caching.
13017         (stream_input_location_now): New function.
13018         (input_eh_region, input_struct_function_base): Use
13019         stream_input_location_now.
13020         (lto_data_in_create): use new.
13021         (lto_data_in_delete): Use delete.
13022         * tree-streamer-in.c (unpack_ts_block_value_fields,
13023         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
13024         lto_input_ts_exp_tree_pointers): Update for cached location api.
13026 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
13028         PR ipa/65076
13029         * passes.def: Add pass_nothrow.
13030         * ipa-pure-const.c: (pass_data_nothrow): New.
13031         (pass_nothrow): New.
13032         (pass_nothrow::execute): New.
13033         (make_pass_nothrow): New.
13034         * tree-pass.h (make_pass_nothrow): Declare.
13036 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
13038         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
13039         edge to change by speculation resolution or redirection.
13040         (edge_set_predicate): Likewise.
13041         (inline_summary_t::duplicate): Likewise.
13042         (remap_edge_summaries): Likewise.
13044 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
13046         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
13047         New macros.
13048         (can_inline_edge_p): Relax option matching for always inline functions.
13050 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
13052         PR target/65561
13053         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
13054         Check operand 4 and operand 0 for equality.
13055         (avx512f_vextract<shuffletype>32x4_1_maskm):
13056         Check operand 6 and operand 0 for equality.
13057         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
13058         for equality.
13059         (vec_extract_hi_<mode>_maskm): Ditto.
13061 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
13063         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
13064         dead calls back to live.
13065         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
13066         cross check to ...
13067         (cgraph_node::verify_node): ... here; verify only callee edges,
13068         not caller.
13069         * cif-code.def (CILK_SPAWN): New code.
13071 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
13073         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
13074         (edge_set_predicate): Use it to mark unreachable edges.
13075         (inline_summary_t::duplicate): Remove unnecesary code.
13076         (remap_edge_summaries): Likewise.
13077         (dump_inline_summary): Report contains_cilk_spawn.
13078         (compute_inline_parameters): Compute contains_cilk_spawn.
13079         (inline_read_section, inline_write_summary): Stream
13080         contains_cilk_spawn.
13081         * ipa-inline.c (can_inline_edge_p): Do not touch
13082         DECL_STRUCT_FUNCTION that may not be available;
13083         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
13084         remove check for callee_fun->can_throw_non_call_exceptions and
13085         replace it by optimization attribute check; check for flag_exceptions.
13086         * ipa-inline-transform.c (inline_call): Maintain
13087         DECL_FUNCTION_PERSONALITY
13088         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
13090 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
13092         PR tree-optimization/65551
13093         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
13094         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
13096 2015-03-26  Richard Biener  <rguenther@suse.de>
13098         PR middle-end/65555
13099         * tree-cfg.c (verify_gimple_call): Do not require a call to
13100         have no LHS if it wasn't recognized as control altering yet.
13102 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
13104         PR tree-optimization/64715
13105         * passes.def: Add another instance of pass_object_sizes before ccp1.
13106         * tree-object-size.c (pass_object_sizes::execute): In
13107         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
13108         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
13109         __bos result and the computed constant.  Remove redundant
13110         checks, obsoleted by gimple_call_builtin_p test.
13112         * var-tracking.c (variable_tracking_main_1): Don't track
13113         variables for targetm.no_register_allocation targets.
13115 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
13117         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
13118         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
13120 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
13122         PR target/65569
13123         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
13124         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
13125         0.0 is correctly setup.
13126         (extenddftf2_internal): Likewise.
13128 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
13130         PR tree-optimization/65177
13131         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
13132         (bb_in_bbs): New.
13133         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
13134         edges not adjacent on the path to the original code.
13136 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
13138         PR bootstrap/65537
13139         * doc/install.texi (Building a native compiler): Document new
13140         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
13141         configuration assumes that the host supports the linker plugin.
13143 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
13145         PR target/65508
13146         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
13147         chain for generated call.
13149 2015-03-25  Richard Biener  <rguenther@suse.de>
13151         * passes.c (pass_manager::execute_early_local_passes): Guard
13152         execution of pass_chkp_instrumentation_passes with
13153         flag_check_pointer_bounds.
13154         (pass_chkp_instrumentation_passes::gate): Likewise.
13156 2015-03-25  Martin Liska  <mliska@suse.cz>
13158         PR tree-optimization/65538
13159         * symbol-summary.h (function_summary::~function_summary):
13160         Relese memory for allocated summaries.
13161         (function_summary::release): New function.
13163 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
13165         PR lto/65515
13166         * lto-streamer-out.c (DFS::worklist): New struct.
13167         (DFS::worklist_vec): New data member.
13168         (DFS::next_dfs_num): Remove.
13169         (DFS::DFS): Rewritten using worklist instead of recursion,
13170         using most of code from DFS::DFS_write_tree.
13171         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
13172         pass it to DFS_write_tree calls.
13173         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
13174         quick initial checks push it into worklist_vec and return.
13176 2015-03-25  Richard Biener  <rguenther@suse.de>
13178         PR middle-end/65519
13179         * genmatch.c (expr::gen_transform): Re-write to avoid
13180         using gimple_build.
13182 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
13184         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
13186 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
13188         * config/arm/arm.opt (print_tune_info): New option.
13189         * config/arm/arm.c (arm_print_tune_info): New function.
13190         (arm_file_start): Call arm_print_tune_info.
13191         * config/arm/arm-protos.h (struct tune_params): Add comment.
13192         * doc/invoke.texi (@item -mprint-tune-info): New item.
13193         (-mtune): mention it in ARM Option Summary.
13195 2015-03-25  DJ Delorie  <dj@redhat.com>
13197         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
13198         correct clause.
13200 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
13201             Martin Liska  <mliska@suse.cz>
13203         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
13204         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
13205         (sem_item::add_type): New function.
13206         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
13207         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
13208         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
13209         (sem_function::equals_wpa): Fix typo.
13210         * ipa-icf.h (sem_item::add_type): New function.
13211         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
13212         order.
13214 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
13216         PR tree-optimization/65533
13217         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
13218         with swapped operands, call vect_free_slp_tree on
13219         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
13220         vector.
13222 2015-03-24  Richard Biener  <rguenther@suse.de>
13224         PR middle-end/65517
13225         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
13226         for fixup if necessary.
13228 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
13230         * doc/extend.texi (Function Attributes): Add @cindex entries
13231         for all attributes and regularize their format.  Delete text
13232         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
13233         information about "eightbit_data", "tiny_data", and "model"
13234         variable attributes to the Variable Attributes section.  Fix
13235         some obvious typos and copy-editing issues.
13236         (Variable Attributes, Type Attributes): Likewise add/fix
13237         @cindex entries for all attributes.
13239 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
13241         PR target/65523
13242         * tree-chkp.c (chkp_build_returned_bound): Ignore
13243         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
13245 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
13247         PR target/65505
13248         * config/sh/predicates.md (simple_mem_operand,
13249         displacement_mem_operand): Add test for reg.
13250         (short_displacement_mem_operand): Test for displacement_mem_operand
13251         before invoking sh_disp_addr_displacement.
13252         * config/sh/constraints.md (Sdd, Sra): Simplify.
13253         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
13254         Remove redundant displacement_mem_operand tests.
13256 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
13258         PR target/65296
13259         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
13260         the same -mmcu=MCU more than once.
13262 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
13264         PR bootstrap/65522
13265         * ipa-devirt.c: Remove duplicate demangle.h include.
13267         PR target/65504
13268         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
13269         on the pseudo.
13270         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
13271         REG_POINTER on *destptr after adjusting it for prologue size.
13273         PR ipa/65521
13274         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
13275         ultimate_alias_target ()->order ints instead of
13276         ultimate_alias_target () pointers.
13278 2015-03-23  Richard Biener  <rguenther@suse.de>
13280         PR tree-optimization/65518
13281         * tree-vect-stmts.c (vectorizable_load): Reject single-element
13282         interleaving cases we generate absymal code for.
13284 2015-03-23  Richard Biener  <rguenther@suse.de>
13286         PR tree-optimization/65494
13287         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
13288         matches here.
13289         (vect_analyze_slp_instance): But do that here, always and once.
13291 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13293         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
13294         adding T or multiplying by T+1 and subracting T.
13296 2015-03-22  Jeff Law  <law@redhat.com>
13298         PR rtl-optimization/64317
13299         * Makefile.in (OBJS): Add gcse-common.c
13300         * gcse.c: Include gcse-common.h
13301         (struct modify_pair_s): Move structure definition to gcse-common.h
13302         (compute_transp): Move function to gcse-common.c.
13303         (canon_list_insert): Similarly.
13304         (record_last_mem_set_info): Break out some code and put it into
13305         gcse-common.c.  Call into the new common code.
13306         (compute_local_properties): Pass additional arguments to compute_transp.
13307         * postreload-gcse.c: Include gcse-common.h and df.h
13308         (modify_mem_list_set, blocks_with_calls): New variables.
13309         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
13310         (get_bb_avail_insn): Pass in the expression index too.
13311         (alloc_mem): Allocate memory for the new bitmaps and lists.
13312         (free_mem): Free memory for the new bitmaps and lists.
13313         (insert_expr_in_table): Record a bitmap index for each entry we
13314         add to the table.
13315         (record_last_mem_set_info): Call into common code in gcse-common.c.
13316         (get_bb_avail_insn): If no available insn was found in the requested
13317         BB.  If BB has a single predecessor, see if the expression is
13318         transparent in BB and available in that single predecessor.
13319         (compute_expr_transp): New wrapper for compute_transp.
13320         (eliminate_partially_redundant_load): Pass expression's bitmap_index
13321         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
13322         (gcse_after_reload_main): If there are elements in the hash table,
13323         then compute transparency for all the elements in the hash table.
13324         * gcse-common.h: New file.
13325         * gcse-common.c: New file.
13327 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
13329         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
13330         as an adjective.
13331         (System Headers): Likewise.
13332         (Ifdef): Likewise.
13333         (Traditional macros): Likewise.
13334         (Invocation): Likewise.
13335         (Option Index): Likewise.
13336         * doc/cppopts.texi (-M): Likewise.
13337         (-finput-charset): Likewise.
13338         (--help): Likewise.
13339         * doc.invoke.texi (AVR Options): Likewise.
13340         (V850 Options): Likewise.
13342 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
13344         PR ipa/65475
13345         * ipa-devirt.c: Include demangle.h
13346         (odr_type_d): Add field rtti_broken.
13347         (odr_subtypes_equivalent_p): Do not require name to match.
13348         (compare_virtual_tables): Fix typo; if type already has ODR violation,
13349         bypass the tests; be ready for function referneces in vtables that are
13350         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
13351         (warn_odr): Give up for nameless types.
13352         (warn_types_mismatch): Report mismatch in mangled names;
13353         report mismatch in anonymous namespaces; look into component types to
13354         give useful error; report when mismatch is dragged in from other ODR
13355         type.
13356         (odr_types_equivalent_p): Match types for being polymorphic; avoid
13357         duplicated diagnostics.
13358         (add_type_duplicate): Reorder checks so more informative ones come
13359         first; fix typo; do not output "the extra base is defined here" when
13360         we did not warn.
13361         (BINFO_N_BASE_BINFOS): Relax sanity check.
13363 2015-03-22  Martin Liska  <mliska@suse.cz>
13364             Jakub Jelinek  <jakub@redhat.com>
13366         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
13367         masks that can potentially include a builtin.
13368         (ix86_add_new_builtins): Introduce fast filter for isa values
13369         that cannot trigger builtin inclusion.
13371 2015-03-22  Martin Liska  <mliska@suse.cz>
13373         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
13374         (sem_item::update_hash_by_local_refs): Likewise.
13375         (sem_variable::get_hash): Empty line is fixed.
13376         (sem_item_optimizer::execute): Include adding of hash references.
13377         (sem_item_optimizer::update_hash_by_addr_refs): New function.
13378         (sem_item_optimizer::build_hash_based_classes): Use local hash.
13379         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
13380         (sem_item::update_hash_by_local_refs): Likewise.
13382 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
13384         PR ipa/65502
13385         * ipa-comdats.c (enqueue_references): Walk through thunks.
13386         (ipa_comdats): Likewise.
13387         (set_comdat_group_1): New function.
13389 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
13391         PR ipa/65475
13392         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
13393         non-polymorphic
13395 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
13396             Gerald Pfeifer  <gerald@pfeifer.com>
13398         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
13400 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
13401             Sandra Loosemore  <sandra@codesourcery.com>
13403         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
13404         function parameter declaration.
13405         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
13406         Update arguments to nios2_adjust_call_address().
13407         (sibcall_internal): Rename from *sibcall.
13408         (sibcall_value_internal): Rename from *sibcall_value.
13409         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
13410         (nios2_large_got_address): Add target temp reg parameter.
13411         (nios2_got_address): Adjust call to nios2_large_got_address, add
13412         force_reg around it.
13413         (nios2_load_pic_address): Add target temp reg parameter, replace call
13414         to nios2_got_address with corresponding code.
13415         (nios2_legitimize_constant_address): Update call to
13416         nios2_load_pic_address.
13417         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
13418         to use temp reg for PIC loading purposes.
13419         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
13420         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
13421         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
13423 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
13425         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
13426         usage of "the @option{...}".
13427         (-Wopenmp-simd): Likewise.
13428         (-fsanitize-recover): Likewise.
13429         (-fsanitize-undefined-trap-on-error): Likewise.
13430         (-flto): Likewise.
13431         (tracer-dynamic-coverage-feedback): Likewise.
13432         (reorder-block-duplicate-feedback): Likewise.
13433         (loop-unroll-jam-size): Likewise.
13434         (-B): Likewise.
13435         (-I-): Likewise.
13436         (-mabs=legacy): Likewise.
13437         (-mupper-regs-df): Likewise.
13438         (-mupper-regs-sf): Likewise.
13439         (-mpointers-to-nested-functions): Likewise.
13441 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
13443         * doc/extend.texi (Cilk Plus Builtins): Add markup.
13445 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
13447         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
13448         additional index entries and cross-references.
13449         (-fchkp-check-incomplete-type): Likewise.
13450         (-fchkp-first-field-has-own-bounds): Likewise.
13451         (-fchkp-narrow-to-innermost-array): Likewise.
13452         (-fchkp-use-fast-string-functions): Likewise.
13453         (-fchkp-use-nochk-string-functions): Likewise.
13454         (-fchkp-use-static-const-bounds): Likewise.
13455         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
13456         (-fchkp-instrument-marked-only): Likewise.
13457         (-fchkp-use-wrappers): Likewise.
13458         (-static-libmpx): Likewise.
13459         (-static-libmpxwrappers): Likewise.
13460         * doc/extend.texi (bnd_legacy): Likewise.
13461         (bnd_instrument): Likewise.
13462         (bnd_variable_size): Likewise.
13463         (Pointer Bounds Checker builtins): Likewise.
13465 2015-03-21  Tom de Vries  <tom@codesourcery.com>
13467         PR tree-optimization/65458
13468         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
13469         * cgraph.h (cgraph_node): Add parallelized_function field.
13470         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
13471         (input_overwrite_node): Read parallelized_function field.
13472         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
13473         parallelized_function on cgraph_node for child_fn.
13474         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
13475         Remove include of gt-tree-parloops.h.
13476         (parallelized_functions): Remove static variable.
13477         (parallelized_function_p): Rewrite using parallelized_function field of
13478         cgraph_node.
13479         (create_loop_fn): Remove adding to parallelized_functions.
13480         * Makefile.in (GTFILES): Remove tree-parloops.c
13482 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
13484         PR rtl-optimization/64366
13485         * lra.c (lra_update_insn_regno_info): Consider regs in
13486         CALL_INSN_FUNCTION_USAGE memory.
13488 2015-03-20  Richard Biener  <rguenther@suse.de>
13490         PR middle-end/64715
13491         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
13492         for type comparison and gcc_checking_assert.
13493         (chrec_fold_plus_poly_poly): Likewise.
13494         (chrec_fold_multiply_poly_poly): Likewise.
13495         (chrec_convert_1): Likewise.
13496         * gimplify.c (gimplify_expr): Remove premature folding of
13497         &X + CST to &MEM[&X, CST].
13499 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
13501         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
13502         already is final.
13503         (ipa_inline): Recompute inline_failed codes.
13504         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
13505         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
13506         CIF_FINAL_ERROR.
13508 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
13510         PR rtl-optimization/60851
13511         * recog.c (constrain_operands): Accept a pseudo register before reload
13512         for LRA enabled targets.
13514 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
13516         PR target/65240
13517         * config/rs6000/predicates.md (easy_fp_constant): Remove special
13518         -ffast-math handling that kept non-0 constants live in the RTL
13519         until reload.  Remove logic testing the number of instructions it
13520         took to create a constant in a GPR that was never used, due to a
13521         test for soft-float earlier.
13522         (memory_fp_constant): Delete, no longer used.
13524         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
13525         alternatives for loading non-0 constants into GPRs for hard
13526         floating point that is no longer needed due to changes in
13527         easy_fp_constant.  Add support for loading 0.0 into GPRs.
13528         (mov<mode>_hardfloat32): Likewise.
13529         (mov<mode>_hardfloat64): Likewise.
13530         (mov<mode>_64bit_dm): Likewise.
13531         (movtd_64bit_nodm): Likewise.
13532         (pre-reload move FP constant define_split): Delete define_split,
13533         since it is no longer used.
13534         (extenddftf2_internal): Remove GHF constraints that are not valid
13535         for extenddftf2.
13537 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
13539         PR rtl-optimization/63491
13540         * lra-constraints.c (check_and_process_move): Use src instead of
13541         sreg.  Remove some dead code.
13543 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
13545         PR ipa/65380
13546         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
13547         (sem_variable::merge): Likewise.
13549 2015-03-19  Martin Liska  <mliska@suse.cz>
13551         PR ipa/65465
13552         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
13553         all fields of cgraph_thunk_info.
13555 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
13557         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
13558         clone instrumented thunks.
13560 2015-03-19  Richard Biener  <rguenther@suse.de>
13562         Revert
13563         2015-03-10  Richard Biener  <rguenther@suse.de>
13565         PR middle-end/63155
13566         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
13567         * tree-ssa-coalesce.c: Include timevar.h.
13568         (attempt_coalesce): Handle graph being NULL.
13569         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
13570         Split out abnormal coalescing to ...
13571         (perform_abnormal_coalescing): ... this function.
13572         (coalesce_ssa_name): Perform abnormal coalescing without computing
13573         live/conflict.
13574         (verify_ssa_coalescing_worker): New function.
13575         (verify_ssa_coalescing): Likewise.
13577 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13578             Jakub Jelinek  <jakub@redhat.com>
13580         PR sanitizer/65400
13581         * tsan.c (instrument_gimple): Clear tail call flag on
13582         calls.
13584 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
13586         PR sanitizer/65400
13587         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
13588         call in the return bb.
13589         (find_split_points): Add RETURN_BB argument, don't call
13590         find_return_bb.
13591         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
13592         if true append TSAN_FUNC_EXIT internal call after the call to
13593         the split off function.
13594         (execute_split_functions): Call find_return_bb here.
13595         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
13596         Adjust find_split_points and split_function calls.
13598 2015-03-18  DJ Delorie  <dj@redhat.com>
13600         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
13601         (iorqi3_virt): Likewise.
13603 2015-03-18  Tom de Vries  <tom@codesourcery.com>
13605         * tree-parloops.c (parallelize_loops): Make static.
13606         * tree-parloops.h (parallelize_loops): Remove extern declaration.
13608 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
13610         PR middle-end/64491
13611         Revert:
13612         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
13614         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
13615         condition would be removed due to undefined behaviour.
13617 2015-03-18  Martin Liska  <mliska@suse.cz>
13619         PR ipa/65432
13620         * cgraph.c (cgraph_node::get_create): Remove unnecessary
13621         xstrdup_for_dump wrapper.
13622         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
13623         sem_item::name.
13624         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
13625         with xstrdup_for_dump.
13626         (sem_variable::equals): Likewise.
13627         (sem_item_optimizer::read_section): Use symtab_node::name instead of
13628         sem_item::name.
13629         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
13630         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
13631         symtab_node::asm_name with xstrdup_for_dump.
13632         (congruence_class::dump): Use symtab_node::name instead of
13633         sem_item::name.
13634         * ipa-icf.h (symtab_node::name): Remove.
13635         (symtab_node::asm_name): Likewise.
13637 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
13639         PR tree-optimization/65450
13640         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
13641         function.
13642         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
13643         it instead of duplicate_ssa_name_ptr_info.
13645         PR target/65222
13646         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
13648 2015-03-18  Richard Biener  <rguenther@suse.de>
13650         * tree-data-ref.h (struct access_matrix): Remove.
13651         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
13652         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
13653         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
13654         (am_vector_index_for_loop): Likewise.
13655         (struct data_reference): Remove access_matrix member.
13656         (DR_ACCESS_MATRIX): Remove.
13657         (lambda_vector_new): Add comment.
13658         (lambda_matrix_new): Use XOBNEWVEC.
13660 2015-03-18  Richard Biener  <rguenther@suse.de>
13662         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
13663         (pass_ch::execute): Cleanup the CFG only if we did sth.
13664         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
13666 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13668         * expmed.c (synth_mult): Use std::swap instead of manually
13669         swapping algorithms.
13671 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
13673         PR target/65078
13674         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
13676 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
13678         PR target/65296
13679         * config/avr/avr.opt (-nodevicelib): New option.
13680         * doc/invoke.texi (AVR Options): Document it.
13681         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
13682         libgcc.a, libc.a, libm.a.
13683         * config/avr/specs.h: Same.
13684         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
13685         which don't (directly) depend on the device.  Print more help.
13686         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
13687         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
13688         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
13689         case of an error.
13690         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
13691         for specs file name.
13692         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
13693         * config/avr/avr-mcus.def: Adjust initializers and comments.
13695 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
13697         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
13698         DECL_ONE_ONLY to check if decl is one only.
13699         * ipa-split.c (consider_split): Limit splitt of one only functions.
13701 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
13703         PR tree-optimization/65427
13704         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
13705         functions.
13706         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
13708 2015-03-16  Marek Polacek  <polacek@redhat.com>
13710         * cgraph.h (add_new_static_var): Remove declaration.
13711         * varpool.c (add_new_static_var): Remove function.
13713 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
13715         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
13716         instead of vec<tree> * with vec_alloc and release for args.
13717         Adjust all users.
13719         PR middle-end/65431
13720         * omp-low.c (delete_omp_context): Only splay_tree_delete
13721         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
13722         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
13724 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
13726         PR sanitizer/64820
13727         * cfgexpand.c (align_base): New function.
13728         (alloc_stack_frame_space): Call it.
13729         (expand_stack_vars): Align prev_frame to be sure
13730         data->asan_vec elements aligned properly.
13732 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
13734         PR middle-end/65409
13735         * expr.c (store_field): Do not do a direct block copy if the source is
13736         a PARALLEL with BLKmode.
13738 2015-03-16  Tom de Vries  <tom@codesourcery.com>
13740         PR middle-end/65414
13741         Revert:
13742         2015-03-12  Tom de Vries  <tom@codesourcery.com>
13744         PR rtl-optimization/64895
13745         * lra-lives.c (check_pseudos_live_through_calls): Use
13746         actual_call_used_reg_set instead of call_used_reg_set, if available.
13748 2015-03-16  Alan Modra  <amodra@gmail.com>
13750         PR target/63150
13751         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
13752         Modify Z->r bswapdi splitter to use dest in place of scratch.
13753         In r->Z and Z->r bswapdi splitter rename word_high, word_low
13754         to word1, word2 and rearrange logic to suit.
13755         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
13756         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
13757         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
13758         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
13759         early clobber.
13761 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
13763         PR tree-optimization/65369
13764         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
13765         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
13766         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
13768         PR tree-optimization/65418
13769         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
13770         are casts in the first PLUS_EXPR operand, ensure tbias and
13771         *totallowp are in the inner type.
13773         PR rtl-optimization/65401
13774         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
13775         argument.  If true, adjust_address_nv of x with big-endian
13776         correction for the mode widening to GET_MODE (y).
13777         (make_field_assignment): Don't do MEM mode widening here.
13778         Use MEM_P instead of GET_CODE == MEM.
13780 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
13782         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
13783         the external decls.
13785 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13787         PR target/64600
13788         * config/arm/arm.c (arm_gen_constant, AND case): Use
13789         ARM_SIGN_EXTEND when constructing AND mask.
13791 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13793         * graph.c (print_graph_cfg): Make function names visible and append
13794         parenthesis to it.  Also make groups of basic blocks belonging to the
13795         same function visible.
13797 2015-03-12  Richard Biener  <rguenther@suse.de>
13799         PR middle-end/44563
13800         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
13801         to avoid quadratic behavior with inline expansion splitting blocks.
13802         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
13803         with the successor if the predecessor will be merged with it.
13804         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
13805         entry block with its successor.
13807 2015-03-13  Richard Biener  <rguenther@suse.de>
13809         PR middle-end/44563
13810         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
13811         (cleanup_tree_cfg_1): Do not call it.
13812         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
13813         (fixup_noreturn_call): Mark the stmt as control altering.
13814         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
13815         here.
13816         (pass_data_fixup_cfg): Produce a dump file.
13817         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
13818         (need_noreturn_fixup): New global.
13819         (pass_dominator::execute): Fixup queued noreturn calls.
13820         (optimize_stmt): Queue calls that became noreturn for fixup.
13821         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
13822         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
13823         (el_to_fixup): New global.
13824         (eliminate_dom_walker::before_dom_childre): Queue calls that
13825         became noreturn for fixup.
13826         (eliminate): Fixup queued noreturn calls.
13827         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
13828         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
13829         (substitute_and_fold_dom_walker::before_dom_children): Queue
13830         alls that became noreturn for fixup.
13831         (substitute_and_fold): Fixup queued noreturn calls.
13833 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
13835         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
13836         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
13837         are building; for methods check ODR type of class they belong to if
13838         they may lead to a polymorphic call.
13839         (sem_function::compare_polymorphic_p): Be bit smarter about testing
13840         when function may lead to a polymorphic call.
13841         (sem_function::compare_type_list): Remove.
13842         (sem_variable::equals): Update use of compatible_types_p.
13843         (sem_variable::parse_tree_refs): Remove.
13844         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
13845         cdtor.
13846         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
13847         matching here.
13848         (func_checker::compatible_polymorphic_types_p): Break out from ...
13849         (unc_checker::compatible_types_p): ... here.
13850         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
13851         Declare.
13852         (unc_checker::compatible_types_p): Update.
13853         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
13854         Remove.
13856 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13858         PR rtl-optimization/65235
13859         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
13860         When first element of vec_concat is const_int, calculate its size
13861         using second element.
13863 2015-03-12  Richard Biener  <rguenther@suse.de>
13865         PR middle-end/65270
13866         * fold-const.c (operand_equal_p): Fix ordering of resetting
13867         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
13869 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13871         * config/s390/s390.c (s390_reorg): Move code to output nops after label
13872         to s390_reorg ().
13873         (s390_asm_output_function_label): Likewise.
13874         * config/s390/s390.c (s390_asm_output_function_label):
13875         Fix function label alignment with -mhtopatch.
13876         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
13877         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
13878         ("nop_2_byte"): New define_insn.
13879         ("nop_4_byte"): Likewise.
13880         ("nop_6_byte"): Likewise.
13881         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
13882         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
13884 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
13886         PR target/65103
13887         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
13888         register.
13890 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
13892         PR target/65044
13893         * toplev.c (process_options): Restrict Pointer Bounds Checker
13894         usage with Address Sanitizer.
13896 2015-03-12  Richard Biener  <rguenther@suse.de>
13898         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
13899         to split on.
13900         * omp-low.c (expand_omp_taskreg): Split block before removing
13901         the stmt.
13902         (expand_omp_target): Likewise.
13903         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
13904         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
13905         stmt to split_block.
13907 2015-03-12  Tom de Vries  <tom@codesourcery.com>
13909         PR rtl-optimization/64895
13910         * lra-lives.c (check_pseudos_live_through_calls): Use
13911         actual_call_used_reg_set instead of call_used_reg_set, if available.
13913 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
13915         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
13916         (cgraph_node::remove): Likewise.
13917         (cgraph_node::get_untransformed_body): Likewise.
13918         * varpool.c (varpool_node::remove): Likewise.
13919         (varpool_node::get_constructor): Add sanity check.
13921 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
13923         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
13924         old GCC versions.
13925         (-fabi-compat-version): Likewise.
13926         (-ffriend-injection): Likewise.
13927         (-Wdeclaration-after-statement): Likewise.
13928         (-fomit-frame-pointer): Likewise.
13929         (-ftree-coalesce-inlined-vars): Likewise.
13930         (-fvisibility=): Likewise.
13931         * doc/extend.texi (Typeof): Likewise.
13932         (Zero Length): Likewise.
13933         (Escaped Newlines): Likewise.
13934         (Compound Literals): Likewise.
13935         (Function Attributes): Likewise.
13936         (Label Attributes): Likewise.
13937         (Type Attributes): Likewise.
13938         (Function Names): Likewise.
13939         (Other Builtins): Likewise.
13940         (Function Specific Option Pragmas): Likewise.
13941         (C++ Interface): Likewise.
13943 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
13945         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
13947 2015-03-11  Marek Polacek  <polacek@redhat.com>
13949         PR tree-optimization/65388
13950         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
13952 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
13954         PR target/65296
13955         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
13956         * configure: Regenerate.
13957         * config.in: Regenerate.
13958         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
13959         [-mn-flash]: Document it.
13960         [__AVR_ARCH__]: Document avrtiny.
13962         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
13963         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
13964         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
13966 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13968         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
13970 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13972         PR target/65242
13973         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
13974         allow reloads of PLUS in floating point/VSX registers.
13976 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
13978         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
13979         crypto_sha256_fast.
13980         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
13982 2015-03-11  Richard Biener  <rguenther@suse.de>
13984         PR tree-optimization/65310
13985         * tree-sra.c (build_ref_for_offset): Also preserve larger
13986         alignment.
13988 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
13990         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
13992 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
13994         PR target/65368
13995         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
13996         new define_expand.
13997         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
13999 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
14001         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
14002         (sem_function::equals_wpa): ... here.
14004 2015-03-10  Marek Polacek  <polacek@redhat.com>
14005             Jakub Jelinek  <jakub@redhat.com>
14007         PR sanitizer/65367
14008         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
14009         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
14010         separately.
14012 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
14014         PR target/65286
14015         * config/rs6000/t-linux: For powerpc64* target set
14016         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
14018 2015-03-10  Richard Biener  <rguenther@suse.de>
14020         PR middle-end/44563
14021         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
14022         for redirect_all_calls.
14024 2015-03-10  Marek Polacek  <polacek@redhat.com>
14026         * gdbinit.in (pcfun): Define and document.
14028 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
14030         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
14031         of libgomp-plugin.h.
14032         (find_target_compiler): Support a case when the path to gcc is
14033         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
14034         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
14035         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
14036         libgomp-plugin.h.
14037         (main): Use GCC_INSTALL_NAME as target_driver_name.
14038         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
14039         define.
14040         (mkoffload.o): Remove obsolete include path and defines.
14041         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
14043 2015-03-10  Richard Biener  <rguenther@suse.de>
14045         PR middle-end/63155
14046         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
14047         * tree-ssa-coalesce.c: Include timevar.h.
14048         (attempt_coalesce): Handle graph being NULL.
14049         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
14050         Split out abnormal coalescing to ...
14051         (perform_abnormal_coalescing): ... this function.
14052         (coalesce_ssa_name): Perform abnormal coalescing without computing
14053         live/conflict.
14054         (verify_ssa_coalescing_worker): New function.
14055         (verify_ssa_coalescing): Likewise.
14057 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
14059         PR target/65296
14060         * config.gcc (extra_options) [avr]: Remove.
14061         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
14062         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
14063         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
14065         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
14066         (-mmcu=): Add Var and MissingArgError properties.
14067         (-march=): Remove.
14068         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
14069         * config/avr/t-multilib: Regenerate.
14070         * config/avr/specs.h: New file.
14071         * config/avr/driver-avr.c: New file.
14072         * config/avr/genopt.sh: Remove file.
14073         * config/avr/avr-tables.opt: Remove file.
14074         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
14075         * config/avr/avr-c.c: Same.
14076         * avr-arch.h: Same.
14077         (avr_current_device): Remove proto.
14078         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
14079         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
14080         (EXTRA_SPEC_FUNCTIONS): Define.
14081         (avr_devicespecs_file): New specs function proto.
14082         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
14083         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
14084         (avr_current_device): Remove definition and usage.
14085         (avr_set_core_architecture): New static function.
14086         (avr_option_override): Use it.
14087         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
14088         (mcu_name): New static array.
14089         (comparator, avr_archs_str, avr_mcus_str): New static functions.
14090         (avr_inform_devices, avr_inform_core_architectures): New functions.
14091         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
14092         (avrlibc.h) [WITH_AVRLIBC]: Include.
14093         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
14094         (print_mcu): Rewrite from scratch.
14095         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
14096         Forward to avr-specific specs defined in device-specs file.
14097         * config/avr/t-avr (driver-avr.o): New rule.
14098         (avr-devices.o): Depend on avr-arch.h.
14099         (avr-mcus): No more depend on avr-tables.opt.
14100         (avr-tables.opt): Remove rule.
14101         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
14103 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
14105         * c-family/c.opt (fchkp-use-wrappers): New.
14106         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
14107         (chkp_wrap_function): New.
14108         (chkp_build_instrumented_fndecl): Support wrapped
14109         functions.
14110         * doc/invoke.texi (-fcheck-pointer-bounds): New.
14111         (-fchkp-check-incomplete-type): New.
14112         (-fchkp-first-field-has-own-bounds): New.
14113         (-fchkp-narrow-bounds): New.
14114         (-fchkp-narrow-to-innermost-array): New.
14115         (-fchkp-optimize): New.
14116         (-fchkp-use-fast-string-functions): New.
14117         (-fchkp-use-nochk-string-functions): New.
14118         (-fchkp-use-static-bounds): New.
14119         (-fchkp-use-static-const-bounds): New.
14120         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
14121         (-fchkp-check-read): New.
14122         (-fchkp-check-write): New.
14123         (-fchkp-store-bounds): New.
14124         (-fchkp-instrument-calls): New.
14125         (-fchkp-instrument-marked-only): New.
14126         (-fchkp-use-wrappers): New.
14127         (-static-libmpx): New.
14128         (-static-libmpxwrappers): New.
14130 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
14132         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
14133         (CHKP_SPEC): Add wrappers library.
14134         * c-family/c.opt (static-libmpxwrappers): New.
14136 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
14138         * config/i386/linux-common.h (LIBMPX_LIBS): New.
14139         (LIBMPX_SPEC): New.
14140         (CHKP_SPEC): New.
14141         * gcc.c (CHKP_SPEC): New.
14142         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
14143         * c-family/c.opt (static-libmpx): New.
14145 2015-03-10  Richard Biener  <rguenther@suse.de>
14147         PR middle-end/44563
14148         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
14149         for compare_type.
14150         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
14151         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
14152         (cgraph_add_edge_to_call_site_hash): Likewise.
14153         (cgraph_node::get_edge): Likewise.
14154         (cgraph_edge::set_call_stmt): Likewise.
14155         (cgraph_edge::remove_caller): Likewise.
14157 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
14159         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
14160         (callee_saved_gpr_regs_size): ... this.
14161         (callee_saved_regs_first_regno): Rename to ...
14162         (callee_saved_first_gpr_regno): ... this.
14163         (callee_saved_regs_last_regno) Rename to ...
14164         (callee_saved_last_gpr_regno): ... this.
14165         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
14166         variables.
14167         (nds32_initial_elimination_offset): Likewise.
14168         (nds32_expand_prologue): Likewise.
14169         (nds32_expand_epilogue): Likewise.
14170         (nds32_expand_prologue_v3push): Likewise.
14171         (nds32_expand_epilogue_v3pop): Likewise.
14172         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
14173         Adjust renamed variables.
14174         (nds32_output_stack_pop): Likewise.
14176 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14178         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
14179         code in comment.
14181 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
14183         PR rtl-optimization/65321
14184         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
14185         than shift mode.
14186         * var-tracking.c (use_narrower_mode): Likewise.
14188 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
14190         PR tree-optimization/65355
14191         * varasm.c (notice_global_symbol): Do not produce RTL.
14192         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
14193         anchor.
14194         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
14195         check for section anchors.
14197 2015-03-10  Alan Modra  <amodra@gmail.com>
14199         PR target/65286
14200         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
14201         to be single-arch by default.  Set cpu_is_64bit for powerpc64
14202         given --with-cpu=native.
14203         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
14204         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
14205         and powerpc64le.
14206         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
14207         rs6000_isa_flags rather than TARGET_64BIT.
14209 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
14210             Kaz Kojima  <kkojima@gcc.gnu.org>
14212         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
14214 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
14216         PR lto/65361
14217         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
14218         on a TREE_BINFO, instead use BINFO_TYPE.
14220 2015-03-09  Richard Biener  <rguenther@suse.de>
14222         PR middle-end/65270
14223         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
14224         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
14225         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
14226         of that.  When comparing dereferences compare alignment.
14227         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
14229 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
14231         * ipa-inline-analysis.c (check_callers): Check
14232         node->can_remove_if_no_direct_calls_and_refs_p.
14233         (growth_likely_positive): Reorganize to call
14234         can_remove_if_no_direct_calls_p later.
14235         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
14236         will_be_removed_from_program_if_no_direct_calls_p): Add
14237         will_inline parameter.
14238         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
14239         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
14240         Handle inliner case correctly.
14242 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14244         PR tree-optimization/63743
14245         * cfgexpand.c (reorder_operands): Also reorder if only second operand
14246         had its definition forwarded by TER.
14248 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
14250         PR lto/65316
14251         * ipa-utils.h (types_odr_comparable): Add strict argument.
14252         * ipa-devirt.c: Fix whitespace;
14253         (odr_hasher): Remove.
14254         (odr_name_hasher, odr_vtable_hasher): New hashers.
14255         (can_be_name_hashed_p): New predicate.
14256         (hash_type_name): remove.
14257         (hash_odr_name): New.
14258         (odr_name_hasher::hash): new.
14259         (can_be_vtable_hashed_p): New.
14260         (hash_odr_vtable): New.
14261         (odr_vtable_hasher::hash): New.
14262         (types_same_for_odr): Add strict parameter.
14263         (types_odr_comparable): Likewise.
14264         (odr_name_hasher::equal): New.
14265         (odr_vtable_hasher::equal): New.
14266         (odr_name_hasher::remove): New.
14267         (odr_hash_type): Change to hash_table<odr_name_hasher>.
14268         (odr_vtable_hash_type): New.
14269         (odr_vtable_hash): New.
14270         (odr_subtypes_equivalent_p): Do strict comparsion.
14271         (add_type_duplicate): Merge type names; cleanup; avoid type
14272         duplicates.
14273         (register_odr_type): Initialize vtable hash.
14274         (build_type_inheritance_graph): Likewise
14275         (get_odr_type): Reorg to use two hashes.
14276         (dump_possible_polymorphic_call_targets): Move sanity check after debug
14277         output.
14278         (ipa_devirt): Dump type_inheritance_graph.
14279         (types_same_for_odr): Add strict mode.
14281 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
14283         PR ipa/65334
14284         * cgraph.h (symtab_node): Add definition_alignment,
14285         can_increase_alignment_p and increase_alignment.
14286         * symtab.c (symtab_node::can_increase_alignment_p,
14287         increase_alignment_1, symtab_node::increase_alignment,
14288         symtab_node::definition_alignment): New.
14289         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
14290         can_increase_alignment_p.
14291         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
14292         * tree-vect-stmts.c (ensure_base_align): Likewise.
14293         * varasm.c (function_section_1): Use definition_alignment.
14294         (assemble_start_function): Likewise.
14295         (emit_local): likewise.
14296         (build_constant_desc): Likewsie.
14297         (output_constant_def_contents): Likewise.
14298         (place_block_symbol): Likewise.
14299         (output_object_block): Likewise.
14301 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
14303         PR ipa/65316
14304         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
14305         when outputting debug.
14307 2015-03-07  Marek Polacek  <polacek@redhat.com>
14308             Martin Uecker  <uecker@eecs.berkeley.edu>
14310         PR sanitizer/65280
14311         * doc/invoke.texi: Update description of -fsanitize=bounds.
14313 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
14315         * tree-ssa-phiopt.c (neg_replacement): Remove.
14316         (tree_ssa_phiopt_worker): Remove negate optimization.
14318 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
14320         PR ipa/65302
14321         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
14323 2015-03-06  Richard Biener  <rguenther@suse.de>
14325         PR middle-end/64928
14326         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
14327         and liveout_obstack members.
14328         (calculate_live_on_exit): Remove.
14329         (calculate_live_ranges): Change declaration.
14330         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
14331         (new_tree_live_info): Adjust.
14332         (calculate_live_ranges): Delete livein when not wanted.
14333         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
14334         Deal with partly deleted live info.
14335         (loe_visit_block): Remove temporary bitmap by using
14336         bitmap_ior_and_compl_into.
14337         (live_worklist): Adjust accordingly.
14338         (calculate_live_on_exit): Make static.
14339         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
14340         we do not need livein.
14342 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
14344         * real.c (real_from_string): Fix typo in assertion.
14346 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
14348         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
14349         the patch.
14351 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
14353         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
14355 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
14357         PR target/64342
14358         * lra-assigns.c (find_hard_regno_for): Rename to
14359         find_hard_regno_for_1.  Add a new parameter.
14360         (find_hard_regno_for): New function using find_hard_regno_for_1.
14362 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14364         PR rtl-optimization/65067
14365         * expmed.c (store_bit_field, extract_bit_field): Reworked the
14366         strict volatile bitfield handling.
14368 2015-03-05  Martin Liska  <mliska@suse.cz>
14370         PR ipa/65318
14371         * ipa-icf.c (sem_variable::equals): Compare variables types.
14373 2015-03-05  Richard Henderson  <rth@redhat.com>
14375         PR target/65121
14376         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
14377         correctly check weak symbol binding.
14379 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
14381         PR middle-end/65315
14382         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
14383         needed alignment.
14385 2015-03-05  Martin Liska  <mliska@suse.cz>
14387         * ipa-inline.c (inline_small_functions): Set default value to
14388         prevent warning during bootstrap.
14389         * tree.h: Add pragma guard that ignores false positives during
14390         bootstrap.
14392 2015-03-05  Richard Biener  <rguenther@suse.de>
14394         PR tree-optimization/65310
14395         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14396         Properly preserve alignment of the base of the access.
14398 2015-03-05  Richard Biener  <rguenther@suse.de>
14400         PR ipa/65270
14401         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
14402         Compare dependence info.
14404 2015-03-05  Richard Biener  <rguenther@suse.de>
14406         PR middle-end/65233
14407         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
14408         tree-into-ssa.h.
14409         (walk_ssa_copies): Revert last chage.  Instead do not walk
14410         SSA names registered for SSA update.
14412 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
14414         PR ipa/65270
14415         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
14416         vtable references for their containing type.
14417         (sem_function::equals_wpa): Compare TYPE_RESTRICT
14418         and type attributes.
14420 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
14422         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
14423         before negating it.
14424         * stor-layout.c (finalize_record_size): Revert latest change.
14426 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
14428         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
14430 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
14432         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
14433         for correct comdat handling.
14434         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
14435         Likewise.
14436         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
14437         (used_from_object_file_p_worker): Remove.
14438         (cgraph_node::only_called_directly_or_alised): Add
14439         used_from_object_file_p.
14440         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
14441         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
14442         can_remove_if_no_direct_calls_and_refs_p.
14444 2015-03-04  Nick Clifton  <nickc@redhat.com>
14446         * config/rl78/rl78.h (enum reg_class): Remove real registers from
14447         General register class.
14448         * config/rl78/rl78-real.md: Replace general register constraints
14449         with real+virtual register constraints.
14451 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14453         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
14454         from checking for -mhtm option.
14456 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
14458         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
14459         (struct ipa_sra_check_caller_data): Add has_thunk field.
14460         (ipa_sra_check_caller): Check for thunk.
14461         (ipa_sra_preliminary_function_checks): Give up on function with
14462         thunks.
14463         (ipa_early_sra): Use call_for_symbol_and_aliases.
14465 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
14467         PR target/65249
14468         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
14469         called for __stack_chk_guard symbol.
14471 2015-03-03  DJ Delorie  <dj@redhat.com>
14473         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
14474         inc/dec.
14475         (*addhi3_real): Likewise.
14476         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
14477         pattern to match incrementing memory.
14478         * config/rl78/predicates.md (rl78_1_2_operand): New.
14479         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
14480         it's the same and only mem.
14481         (rl78_alloc_physical_registers_op2): If there's effectively only
14482         one MEM, transcode it into HL.
14483         (rl78_far_p): Reject addresses that aren't legitimate.
14485 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
14487         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
14488         negating it.
14490         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
14492 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
14494         Implement call0 ABI for xtensa
14495         * config/xtensa/constraints.md ("a" constraint): Include stack
14496         pointer in case of call0 ABI.
14497         ("q" constraint): Make empty in case of call0 ABI.
14498         ("D" constraint): Include stack pointer in case of call0 ABI.
14499         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
14500         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
14501         prototypes.
14502         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
14503         variable.
14504         (xtensa_regno_to_class): Make it a local variable in the
14505         function xtensa_regno_to_class.
14506         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
14507         macro, function prototype and implementation.
14508         (reg_nonleaf_alloc_order): Make it a local variable in the
14509         function order_regs_for_local_alloc.
14510         (xtensa_conditional_register_usage): New function.
14511         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
14512         (xtensa_valid_move): Allow direct moves to stack pointer
14513         register in call0 ABI.
14514         (xtensa_setup_frame_addresses): Only spill register windows in
14515         windowed ABI.
14516         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
14517         call0 ABI respectively.
14518         (xtensa_function_arg_1): Only mark a7 register for copying in
14519         windowed ABI.
14520         (xtensa_call_save_reg): New function.
14521         (compute_frame_size): Add space for callee saved register
14522         storage to the frame size in call0 ABI.
14523         (xtensa_expand_prologue): Generate code to set up stack frame
14524         and save callee-saved registers in call0 ABI.
14525         (xtensa_expand_epilogue): New function.
14526         (xtensa_set_return_address): New function.
14527         (xtensa_return_addr): Calculate return address in call0 ABI.
14528         (xtensa_builtin_saveregs): Only mark a7 register for copying and
14529         emit copying code in windowed ABI.
14530         (order_regs_for_local_alloc): Add preferred register allocation
14531         order for non-leaf function in call0 ABI.
14532         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
14533         (xtensa_asm_trampoline_template): Add trampoline generation for
14534         call0 ABI.
14535         (xtensa_trampoline_init): Add trampoline initialization for
14536         call0 ABI.
14537         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
14538         functions.
14539         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
14540         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
14541         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
14542         ABI call-used registers.
14543         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
14544         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
14545         call0 ABI.
14546         (REG_CLASS_CONTENTS): Include all registers into the preferred
14547         reload registers set, adjust the set in the
14548         xtensa_conditional_register_usage.
14549         (xtensa_regno_to_class): Drop variable declaration.
14550         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
14551         function.
14552         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
14553         respectively.
14554         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
14555         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
14556         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
14557         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
14558         location in call0 ABI.
14559         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
14560         stack adjustment size when handling exception.
14561         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
14562         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
14563         definitions.
14564         ("return" pattern): Generate ret.n/ret in call0 ABI.
14565         ("epilogue" pattern): Expand epilogue.
14566         ("nonlocal_goto" pattern): Use default in call0 ABI.
14567         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
14568         emit eh_set_a0_* depending on ABI.
14569         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
14570         ("eh_set_a0_call0", "blockage"): New patterns.
14572 2015-03-03  Martin Liska  <mliska@suse.cz>
14574         PR ipa/65287
14575         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
14577 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
14579         PR 65138/target
14580         * config/rs6000/rs6000-tables.opt: Regenerate table.
14582 2015-03-03  Renlin Li  <renlin.li@arm.com>
14584         * doc/md.texi (@item ^): Change ? into ^.
14586 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
14588         * doc/tm.texi: Regenerated.
14590 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
14592         * builtins.c (expand_builtin_return_addr): Add
14593         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
14594         surrounding #ifdef.
14595         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
14596         definition to 1.
14597         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
14598         Likewise.
14599         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
14600         undefined.
14601         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
14602         paragraph.
14604 2015-03-03  Martin Jambor  <mjambor@suse.cz>
14605             Eric Botcazou  <ebotcazou@adacore.com>
14607         * tree-sra.c (ipa_sra_check_caller_data): New type.
14608         (has_caller_p): Removed.
14609         (ipa_sra_check_caller): New function.
14610         (ipa_sra_preliminary_function_checks): Use it.
14612 2015-03-03  Martin Liska  <mliska@suse.cz>
14614         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
14615         instead of if branch.
14617 2015-03-03  Martin Liska  <mliska@suse.cz>
14619         PR ipa/65282
14620         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
14622 2015-03-23  Jeff Law  <law@redhat.com>
14624         PR tree-optimization/65241
14625         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
14626         hash table if INSERT is true.
14628 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
14630         PR target/65296
14631         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
14633 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
14635         PR target/64331
14636         * config/avr/avr.c (context.h, tree-pass.h): Include them.
14637         (avr_pass_data_recompute_notes): New static variable.
14638         (avr_pass_recompute_notes): New class.
14639         (avr_register_passes): New static function.
14640         (avr_option_override): Call it.
14642 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
14644         Fix various problems with specs file generation.
14646         PR target/65296
14647         * config.gcc (extra_gcc_objs) [avr]: Remove.
14648         * config/avr/driver-avr.c: Remove file.
14649         * config/avr/t-avr (driver-avr.o): Remove rule.
14650         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
14651         INCLUDES to build.  Depend on TM_H.
14652         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
14653         build warnings.  Fix non-matching types and non-existing %-codes.
14654         (tm.h): Include.
14655         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
14656         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
14657         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
14658         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
14659         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
14660         (LIBGCC_SPEC): Remove definitions.
14662 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
14664         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
14665         to create a register in testing mode.
14667 2015-03-03  Martin Liska  <mliska@suse.cz>
14668             Jan Hubicka  <hubicka@ucw.cz>
14670         PR ipa/65263
14671         * cgraph.c (cgraph_node::has_thunk_p): New function.
14672         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
14673         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
14674         (sem_function::merge): Assert is changed.
14676 2015-03-03  Martin Liska  <mliska@suse.cz>
14677             Martin Jambor  <mjambor@suse.cz>
14679         PR ipa/65087
14680         * ipa-icf.c (sem_item_optimizer::execute): Change function
14681         return value to boolean.
14682         (sem_item_optimizer::merge_classes): Likewise.
14683         (ipa_icf_driver): Return TODO_remove_functions in case there's
14684         a merge operation processed.
14685         * ipa-icf.h: Change function return value to boolean.
14687 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14689         PR 65138/target
14690         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
14691         processor type for 64-bit little endian PowerPC.
14693         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14694         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
14695         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
14696         printing built-in mask so it does not pass NULL pointers.
14698         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
14699         -mcpu=powerpc64le.
14701 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
14703         PR target/58158
14704         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
14705         !ISA_HAS_FP_CONDMOVE.
14707 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
14709         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
14710         reload_completed.
14712 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
14714         * doc/invoke.texi (Options for Code Generation Conventions):
14715         Fix URL of DSO paper.
14717 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
14719         PR ipa/65130
14720         * ipa-inline.c (check_callers): Looks for recursion.
14721         (inline_to_all_callers): Give up on uninlinable or recursive edges.
14722         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
14723         summary of inline clones.
14724         (do_estimate_growth_1): Fix recursion check.
14726 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
14728         PR ipa/64988
14729         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
14730         comdat groups.
14732 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
14733             Aldy Hernandez  <aldyh@redhat.com>
14735         PR lto/65276
14736         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
14737         when checking TYPE_BINFO.
14739 2015-03-02  Richard Biener  <rguenther@suse.de>
14741         PR ipa/65270
14742         * ipa-icf-gimple.c: Include builtins.h.
14743         (func_checker::compare_memory_operand): Compare base alignment.
14745 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
14747         PR target/65184
14748         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
14749         are never passed by reference.
14751 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
14753         PR target/65183
14754         * tree-chkp.c (chkp_check_lower): Don't check against
14755         zero bounds for already instrumented functions.
14756         (chkp_check_upper): Likewise.
14757         (chkp_fini): Clean pass local data to avoid wrong reusage.
14759 2015-02-28  Martin Liska  <mliska@suse.cz>
14760             Jan Hubicka  <hubicka@ucw.cz>
14762         * ipa-icf.c (sem_variable::equals): Improve debug output;
14763         get variable constructor.
14764         (sem_variable::parse): Do not filter out too early; give up on
14765         volatile and register vars.
14766         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
14767         variables.
14768         * ipa-icf.h (sem_variable::init): Do not set ctor.
14769         (sem_variable::ctor): Remove.
14771 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
14773         PR middle-end/65233
14774         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
14776 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
14778         * ipa-icf.c: Include stor-layout.h
14779         (sem_function::compare_cgraph_references): Rename to ...
14780         (sem_item::compare_cgraph_references): ... this one.
14781         (sem_variable::equals_wpa): New function
14782         (sem_variable::equals): Do not check stuff already verified by
14783         equals_wpa.
14784         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
14785         * ipa-icf.h (sem_item): Add compare_cgraph_references.
14786         (sem_function): Remove compare_cgraph_references.
14787         (sem_variable): Turns equals_wpa into non-inline.
14789 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
14791         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
14792         (sem_item::add_expr): New function.
14793         (sem_function::hash_stmt): Handle operands of most statements.
14794         (sem_variable::get_hash): Hash the actual constructor.
14795         * ipa-icf.h (sem_item): Add add_expr.
14796         (sem_function): Update prototype of hash_stmt
14798 2015-02-28  Martin Liska  <mliska@suse.cz>
14799             Jan Hubicka  <hubicka@ucw.cz>
14801         PR ipa/65245
14802         * ipa-icf-gimple.c (func_checker::compare_function_decl):
14803         Remove.
14804         (func_checker::compare_variable_decl): Skip symtab vars.
14805         (func_checker::compare_cst_or_decl): Update.
14806         * ipa-icf.c (sem_function::parse): Do not consider aliases.
14807         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
14808         use correct symtab predicates.
14809         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
14810         (sem_variable::parse):  Update comment.
14811         (sem_item_optimizer::build_graph): Consider ultimate aliases
14812         for references.
14814 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
14816         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
14817         of OBJ_TYPE_REF.
14819 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
14821         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
14822         (sem_variable::merge) Likewise.
14824 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
14826         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
14827         target; also match flag_ipa_devirt.
14829 2015-03-01  Martin Liska  <mliska@suse.cz>
14830             Jan Hubicka  <hubicka@ucw.cz>
14832         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
14833         Validate variable alignment.
14834         * ipa-icf.c (sem_function::equals_private): Be more precise
14835         about non-common function attributes.
14836         (sem_variable::equals): Likewise.
14838 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
14840         PR ipa/65237
14841         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
14842         across COMDAT group boundary.
14844 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
14846         PR ipa/65232
14847         * ipa-icf.c (clear_decl_rtl): New function.
14848         (sem_function::merge): Clear RTL before forming alias.
14849         (sem_variable::merge): Clear RTL before forming alias.
14851 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
14853         PR ipa/65236
14854         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
14856 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
14858         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
14859         to neon_to_gp<q>.
14861 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
14863         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
14864         a typo in the description.
14866 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
14868         PR target/64317
14869         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
14870         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
14871         * lra-constraints.c: Include "params.h".
14872         (EBB_PROBABILITY_CUTOFF): Use
14873         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
14874         (lra_inheritance): Use '<' instead of '<=' for
14875         EBB_PROBABILITY_CUTOFF.
14876         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
14877         Document change.
14879 2015-02-27  Martin Liska  <mliska@suse.cz>
14881         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
14882         vector length condition.
14884 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
14886         * doc/extend.texi (x86 transactional memory intrinsics):
14887         Reorganize discussion of _xbegin.  Clarify that the return
14888         value is a bit mask.  Expand example and move to end of section.
14890 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
14891             Aldy Hernandez  <aldyh@redhat.com>
14893         PR rtl-optimization/65220
14894         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
14896 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
14898         PR target/65032
14899         * lra-remat.c (update_scratch_ops): New.
14900         (do_remat): Call it.
14901         * lra.c (lra_register_new_scratch_op): New. Take code from ...
14902         (remove_scratches): ... here.
14903         * lra-int.h (lra_register_new_scratch_op): New prototype.
14905 2015-02-27  Marek Polacek  <polacek@redhat.com>
14907         PR c/65040
14908         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
14909         -Wformat-signedness anymore.
14911 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14913         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
14914         function.
14915         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
14917 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14919         * config/s390/s390.c (enum s390_builtin):
14920         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
14921         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
14922         (s390_init_builtins): Generate new builtin functions.
14923         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
14924         (s390_sfpc, s390_efpc): New pattern definitions.
14926 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14928         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
14929         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
14930         (s390_builtin_decls): New array.
14931         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
14932         (s390_builtin_decl): New function.
14933         (TARGET_BUILTIN_DECL): Define macro.
14935 2015-02-27  Richard Biener  <rguenther@suse.de>
14937         PR middle-end/63175
14938         * builtins.c (get_object_alignment_2): Make sure to re-apply
14939         the ANDed mask after recursing to its operand gets us a new
14940         misalignment bit position.
14942 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
14943             Martin Liska  <mliska@suse.cz>
14945         PR bootstrap/65150
14946         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
14947         Use address_matters_p.
14948         (redirect_all_callers, set_addressable): New functions.
14949         (sem_function::merge): Reorganize and fix merging issues.
14950         (sem_variable::merge): Likewise.
14951         (sem_variable::compare_sections): Remove.
14952         * common.opt (fmerge-all-constants, fmerge-constants): Remove
14953         Optimization flag.
14954         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
14955         redirect them.
14956         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
14957         decl is used.
14958         (address_matters_1): New function.
14959         (symtab_node::address_matters_p): New function.
14960         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
14961         check for merged flag.
14962         * cgraph.h (address_matters_p): Declare.
14963         (symtab_node::address_taken_from_non_vtable_p): Remove.
14964         (symtab_node::address_can_be_compared_p): New method.
14965         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
14966         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
14967         Remove.
14968         (comdat_can_be_unshared_p_1) Use address_matters_p.
14969         (update_vtable_references): Fix formating.
14970         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
14971         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
14972         * cgraphclones.c: Preserve merged and icf_merged flags.
14974 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
14976         * doc/extend.texi (Function Attributes): Fix spelling and typos.
14977         (Label Attributes): Likewise.
14978         (Cilk Plus Builtins): Likewise.
14979         (ARC SIMD Built-in Functions): Likewise.
14980         (ARM C Language Extensions (ACLE)): Likewise.
14981         (PowerPC Built-in Functions): Likewise.
14982         (PowerPC Hardware Transactional Memory Built-in Functions):
14983         Likewise.
14985 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
14987         PR tree-optimization/65216
14988         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
14989         new stmt and new SSA_NAME for lhs whenever the arguments have
14990         changed and weren't just swapped.  Fix comment typo.
14992         PR tree-optimization/65215
14993         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
14994         for PDP endian targets.
14995         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
14996         Fix up formatting issues.
14997         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
14998         size is smaller than the original, adjust MEM_REF offset by the
14999         difference of sizes.  Use is_gimple_mem_ref_addr instead of
15000         is_gimple_min_invariant test to avoid adding address temporaries.
15002 2015-02-26  Martin Liska  <mliska@suse.cz>
15003             Jan Hubicka  <hubicka@ucw.cz>
15005         PR ipa/64693
15006         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
15007         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
15008         (sem_item_optimizer::process_cong_reduction): Include division by
15009         sensitive references.
15010         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
15011         * ipa-ref.c (ipa_ref::address_matters_p): New function.
15012         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
15014 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
15016         PR target/65192
15017         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
15018         Remove.
15019         * config/avr/avr.c: Same.
15020         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
15021         Refuse any constant address not in 0..0xbf.
15022         * config/avr/avr.md (*mov<mode>, *movsf): Remove
15023         tiny_valid_direct_memory_access_range from insn conditions.
15024         (mov<mode>): Don't special-case expansion of avrtiny addresses.
15026 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
15028         PR target/61142
15029         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
15030         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
15031         * config/sh/predicates.md (const_logical_operand): New predicate.
15032         * config/sh/sh.md: Add new peephole2 patterns.
15034 2015-02-26  Marek Polacek  <polacek@redhat.com>
15036         PR ipa/65008
15037         * ipa-inline.c (early_inliner): Recompute inline parameters.
15039 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15041         PR target/65171
15042         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
15043         instructions with TImode operands are included in the analysis.
15045 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
15047         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
15048         of an EDGE_FSM_THREAD.
15050 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15052         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
15054 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
15056         PR debug/46102
15057         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
15059 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
15061         PR tree-optimization/65048
15062         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
15063         (thread_through_all_blocks): Call valid_jump_thread_path.
15064         Remove invalid FSM jump-thread paths.
15066 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
15068         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
15069         (ipa_write_optimization_summaries): Likewise.
15070         * tree-streamer.h: Include data-streamer.h.
15071         (streamer_mode_table): Declare extern variable.
15072         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
15073         * lto-streamer-out.c (lto_output_init_mode_table,
15074         lto_write_mode_table): New functions.
15075         (produce_asm_for_decls): Call lto_write_mode_table when streaming
15076         offloading LTO.
15077         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
15078         (lto_create_simple_input_block): Add mode_table argument to the
15079         lto_input_block constructors.
15080         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
15081         Likewise.
15082         * data-streamer-in.c (string_for_index): Likewise.
15083         * ipa-inline-analysis.c (inline_read_section): Likewise.
15084         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
15085         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
15086         * lto-streamer-in.c (lto_read_body_or_constructor,
15087         lto_input_toplevel_asms): Likewise.
15088         (lto_input_mode_table): New function.
15089         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
15090         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
15091         Use bp_pack_machine_mode.
15092         * real.h (struct real_format): Add name field.
15093         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
15094         (class lto_input_block): Add mode_table member.
15095         (lto_input_block::lto_input_block): Add mode_table_ argument,
15096         initialize mode_table.
15097         (struct lto_file_decl_data): Add mode_table field.
15098         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
15099         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
15100         unpack_ts_decl_common_value_fields,
15101         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
15102         * tree-streamer.c (streamer_mode_table): New variable.
15103         * real.c (ieee_single_format, mips_single_format,
15104         motorola_single_format, spu_single_format, ieee_double_format,
15105         mips_double_format, motorola_double_format,
15106         ieee_extended_motorola_format, ieee_extended_intel_96_format,
15107         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
15108         ibm_extended_format, mips_extended_format, ieee_quad_format,
15109         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
15110         decimal_single_format, decimal_double_format, decimal_quad_format,
15111         ieee_half_format, arm_half_format, real_internal_format): Add name
15112         field.
15113         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
15115 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
15117         PR target/65161
15118         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
15119         reordering for selective scheduling.
15121 2015-02-26  Terry Guo  <terry.guo@arm.com>
15123         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
15124         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
15125         (arm_arch_no_volatile_ce): Declare new global variable.
15126         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
15127         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
15128         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
15129         (TARGET_NO_VOLATILE_CE): New macro.
15130         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
15131         volatile memory access in IT block
15133 2015-02-25  Kai Tietz  <ktietz@redhat.com>
15135         PR tree-optimization/61917
15136         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
15137         that reduc_def_stmt is null.
15139 2015-02-25  Martin Liska  <mliska@suse.cz>
15141         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
15142         hard register variables.
15144 2015-02-25  Kai Tietz  <ktietz@redhat.com>
15146         PR target/64212
15147         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
15148         (symtab::noninterposable_alias): Likewise.
15150 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
15152         PR target/65167
15153         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
15154         bounds registers.
15155         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
15157 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
15159         PR target/64997
15160         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
15161         as split condition; force split via '#' in output pattern.
15163 2015-02-25  Richard Biener  <rguenther@suse.de>
15164             Kai Tietz  <ktietz@redhat.com>
15166         PR tree-optimization/61917
15167         * tree-vect-loop.c (vectorizable_reduction): Allow
15168         vect_internal_def without reduction to exit graceful.
15170 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
15172         PR target/65196
15173         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
15174         only with NONDEBUG_INSN_P.
15176 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
15178         Use variadic macros with avr-log.c.
15180         * config/avr/avr-protos.h (avr_vdump): New prototype.
15181         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
15182         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
15183         * config/avr/avr-log.c: Adjust comments.
15184         (avr_vdump): New function.
15185         (avr_vadump): Pass caller as 2nd argument instead of format string.
15186         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
15187         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
15189 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
15191         PR lto/64374
15192         * target.def (target_option_stream_in): New target hook.
15193         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
15194         targetm.target_option.post_stream_in if non-NULL.
15195         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
15196         * doc/tm.texi: Updated.
15197         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
15198         function.
15199         (TARGET_OPTION_POST_STREAM_IN): Redefine.
15201 2015-02-24  Jeff Law  <law@redhat.com>
15203         PR target/65117
15204         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
15205         of operand 0 and operand 2.
15206         (zero_cost_loop_end, loop_end): Similarly.
15208 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
15210         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
15211         CXX_MEM_STAT_INFO.
15213 2015-02-24  DJ Delorie  <dj@redhat.com>
15215         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
15216         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
15217         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
15218         instead of hardcoding SImode.
15220 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
15222         * omp-low.c (create_omp_child_function): Tag entrypoint
15223         functions with a special attribute.
15225 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15227         PR target/65058
15228         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
15230 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
15232         PR rtl-optimization/65123
15233         * lra-remat.c (operand_to_remat): Check hard regs in insn
15234         definition too.
15236 2015-02-24  Nick Clifton  <nickc@redhat.com>
15238         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
15239         to the assembler.
15241 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
15243         PR libgomp/64625
15244         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
15245         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
15246         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
15247         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
15248         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
15249         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
15250         (BUILT_IN_GOACC_PARALLEL): Specify as
15251         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
15252         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
15253         * builtin-types.def
15254         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
15255         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
15256         Remove function types.
15257         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
15258         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
15259         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
15260         New function types.
15262 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
15264         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
15266 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
15268         PR tree-optimization/65170
15269         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
15270         if val[1] < 0, clear also val[2] and return 3.
15272 2015-02-24  Alan Modra  <amodra@gmail.com>
15274         PR target/65172
15275         * config/rs6000/rs6000.c (get_memref_parts): Only return true
15276         when *base is a reg.  Handle nested plus addresses.  Simplify
15277         pre_modify test.
15279 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
15281         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
15282         use natural alignment when optimizing for size.
15284 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
15286         PR target/65153
15287         * config/sh/sh.md (movsicc_true+3): Remove peephole.
15288         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
15289         * config/sh/sh.c (replace_n_hard_rtx): Remove.
15291 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
15293         PR fortran/63427
15294         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
15295         too big for a wide_int.  Implement missing wrapping operation.
15297 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
15299         PR target/65163
15300         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
15301         instead of const_int 4294901760.
15303 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
15305         * config/avr/t-avr: Fix typo in comment.
15307 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
15309         * doc/rtl.texi (fma): Clarify documentation.
15311 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
15313         PR debug/58123
15314         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
15315         over input_location.
15317 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
15319         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
15320         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
15321         restrict alignments to absolute_biggest_alignment.
15322         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
15323         Define.
15324         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
15325         * doc/tm.texi: Regenerate.
15326         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
15328 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
15330         PR target/64172
15331         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
15333 2015-02-20  Richard Biener  <rguenther@suse.de>
15335         PR tree-optimization/65136
15336         * tree-ssa-propagate.c: Include cfgloop.h.
15337         (replace_phi_args_in): Avoid replacing loop latch edge PHI
15338         arguments with constants.
15340 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
15341             Martin Liska  <mliska@suse.cz>
15343         PR target/63892
15344         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
15345         don't try to create_thunk if stdarg_p.  If
15346         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
15347         redirect_callers if possible.
15348         (sem_item_optimizer::execute): Call unregister_hooks here...
15349         (ipa_icf_driver): ... instead of here.
15351 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15353         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
15354         Mark operand 0 as earlyclobber in 2nd alternative.
15355         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
15356         Write negated shift amount into QI lowpart operand 0 and use it
15357         in the shift step.
15358         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15360 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
15362         * cgraph.h (clone_function_name_1): Declare.
15363         * cgraphclones.c (clone_function_name_1): New function.
15364         (clone_function_name): Use it.
15365         * lto-partition.c: Include "stringpool.h".
15366         (must_not_rename, maybe_rewrite_identifier)
15367         (validize_symbol_for_target): New static functions.
15368         (privatize_symbol_name): Use must_not_rename.
15369         (promote_symbol): Call validize_symbol_for_target.
15370         (lto_promote_cross_file_statics): Likewise.
15371         (lto_promote_statics_nonwpa): Likewise.
15373 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
15375         PR target/64452
15376         * config/avr/avr.md (pushhi_insn): New insn.
15377         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
15379 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
15380             Jakub Jelinek  <jakub@redhat.com>
15382         * tree-streamer.c (preload_common_nodes): Don't preload
15383         TI_VA_LIST* for offloading.
15384         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
15385         in_lto_p.
15387 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
15389         * config/pa/pa.c (pa_emit_move_sequence): Always force
15390         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
15391         note on insn.
15393         * config/pa/pa.c (pa_reloc_rw_mask): New function.
15394         (TARGET_ASM_RELOC_RW_MASK): Define.
15395         (pa_cannot_force_const_mem): Revert previous change.
15397 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
15398             Jan Hubicka  <hubicka@ucw.cz>
15400         PR ipa/65028
15401         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
15402         across jump functions.
15404 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
15406         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
15408 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
15410         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
15412 2015-02-19  Richard Henderson  <rth@redhat.com>
15414         PR middle-end/65074
15415         * varasm.c (default_binds_local_p_2): Don't test node->definition;
15416         test DECL_EXTERNAL independent of symtab_node.
15418 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
15420         PR lto/65012
15421         * varpool.c (varpool_node::get_constructor): Return early
15422         if this->lto_file_data is NULL.
15424 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15426         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
15427         (rank_for_schedule_debug): Update.
15428         (ready_sort): Make static.  Move sorting logic to ...
15429         (ready_sort_debug, ready_sort_real): New static functions.
15430         (schedule_block): Sort both debug insns and real insns in preparation
15431         for ready list trimming.  Improve debug output.
15432         * sched-int.h (ready_sort): Remove global declaration.
15434 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
15436         * ipa-icf.c (sem_function::equals_private): Adjust.
15437         (sem_function::bb_dict_test): Take a vec<int> * instead of
15438         auto_vec<int>.
15439         * ipa-icf.h (bb_dict_test): Likewise.
15441 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
15443         PR gcov-profile/64634
15444         * tree-eh.c (frob_into_branch_around): Fix up typos
15445         in function comment.
15446         (lower_catch): Put eh_seq resulting from EH lowering of
15447         the cleanup sequence after the cleanup rather than before it.
15449 2015-02-18  Tom de Vries  <tom@codesourcery.com>
15451         * common.opt (fstdarg-opt): New option.
15452         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
15453         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
15454         (@item -fstdarg-opt): New item.
15456 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
15458         PR target/65064
15459         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
15460         for common symbols.
15462 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
15464         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
15465         insn-modes.h.
15466         (ALL_HOST_OBJS): Add mkoffload.o.
15467         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
15469 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
15471         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
15472         (compare_virtual_tables): Be smarter about skipping typeinfos;
15473         do sane output on virtual table table mismatch.
15474         (warn_odr): Be ready for forward declarations of enums;
15475         output sane info on base mismatch and virtual table mismatch.
15476         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
15477         when only one type is polymorphic.
15478         (get_odr_type): Fix hashtable corruption.
15479         (dump_odr_type): Dump mangled names.
15481 2015-02-18  Richard Biener  <rguenther@suse.de>
15483         PR tree-optimization/65063
15484         * tree-predcom.c (determine_unroll_factor): Return 1 if we
15485         have replaced looparound PHIs.
15487 2015-02-18  Martin Liska  <mliska@suse.cz>
15489         * lto-streamer.c (lto_streamer_init): Encapsulate
15490         streamer_check_handled_ts_structures with checking macro.
15492 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
15494         PR ipa/65087
15495         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
15496         section if !implicit_section.
15497         (cgraph_node::create_version_clone_with_body): Likewise.
15498         * trans-mem.c (ipa_tm_create_version): Likewise.
15500 2015-02-18  Richard Biener  <rguenther@suse.de>
15502         PR tree-optimization/62217
15503         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
15504         into BIVs.
15506 2015-02-18  Marek Polacek  <polacek@redhat.com>
15508         PR sanitizer/65081
15509         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
15510         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
15511         is in range [-16K, -1].  Don't issue run-time error if
15512         (ptr > ptr + offset).
15514 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
15516         * doc/install.texi (nvptx-*-none): New section.
15517         * doc/invoke.texi (Nvidia PTX Options): Likewise.
15518         * config/nvptx/nvptx.opt: Update.
15520         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
15521         (access_check): New functions, copied from
15522         config/i386/intelmic-mkoffload.c.
15523         (main): For non-installed testing, look in all COMPILER_PATHs for
15524         GCC_INSTALL_NAME.
15526         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
15528 2015-02-18  Andrew Pinski  <apinski@cavium.com>
15529             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15531         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
15532         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
15534 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
15536         * ipa-visibility.c (function_and_variable_visibility): Only
15537         check locality if node is not already local.
15538         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
15539         call_for_symbol_and_aliases instead of
15540         call_for_symbol_thunks_and_aliases.
15541         (ipa_inline): Likewise.
15542         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
15543         first walk aliases.
15544         * ipa.c (symbol_table::remove_unreachable_nodes): Use
15545         call_for_symbol_and_aliases.
15546         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
15547         (ipa_propagate_frequency_1): Use it; use opt_for_fn
15548         (ipa_propagate_frequency): Update.
15549         (ipa_profile): Add opt_for_fn gueards.
15551 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
15553         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
15554         * doc/invoke.texi (SH options): Document it.
15555         * config/sh/sh.c (sh_insn_length_adjustment): Check
15556         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
15558 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
15560         * common.opt (fipa-cp-alignment): New.
15561         * ipa-cp.c (ipcp_store_alignment_results): Check
15562         flag_ipa_cp_alignment.
15563         * opts.c (default_options_table): Enable -fipa-cp-alignment for
15564         -O2.
15565         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
15566         * doc/invoke.texi: Document -fipa-cp-alignment.
15568 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
15570         PR target/64793
15571         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
15572         to nil.  Adjust comments.
15574 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
15576         * ipa-visibility.c (function_and_variable_visibility): Only
15577         check locality if node is not already local.
15578         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
15579         call_for_symbol_and_aliases instead of
15580         call_for_symbol_thunks_and_aliases.
15581         (ipa_inline): Likewise.
15582         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
15583         first walk aliases.
15584         * ipa.c (symbol_table::remove_unreachable_nodes): Use
15585         call_for_symbol_and_aliases.
15586         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
15587         (ipa_propagate_frequency_1): Use it; use opt_for_fn
15588         (ipa_propagate_frequency): Update.
15589         (ipa_profile): Add opt_for_fn guards.
15591 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15593         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
15594         skipping of "strange" tokens.
15596 2015-02-17  Jeff Law  <law@redhat.com>
15598         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
15599         obsolete comment.
15601 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
15603         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
15604         as forcing a HARD_DEP between instructions, thereby
15605         disallowing rewriting to break dependencies.
15607 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
15609         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
15610         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
15611         variables in boundary that have no inlitalizer encoded and are
15612         not aliases.
15613         * varasm.c (default_binds_local_p_2): External definitions do not
15614         count as definitions here.
15616 2015-02-16  Jeff Law  <law@redhat.com>
15618         PR tree-optimization/64823
15619         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
15620         statements.
15621         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
15622         threading through blocks with PHIs, but no statements.
15623         (thread_through_normal_block): Distinguish between blocks where
15624         we did not process all the statements and blocks with no statements.
15626 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
15627             James Greenhalgh  <james.greenhalgh@arm.com>
15629         PR ipa/64963
15630         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
15631         section if not linkonce.  Fix up formatting.
15632         (cgraph_node::create_version_clone_with_body): Copy section.
15633         * trans-mem.c (ipa_tm_create_version): Likewise.
15635 2015-02-16  Richard Biener  <rguenther@suse.de>
15637         PR tree-optimization/65077
15638         * tree-ssa-structalias.c (get_constraint_for_1): Handle
15639         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
15640         (find_func_aliases): Allow float values to carry pointers again.
15642 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
15644         * doc/install.texi (Specific): Reorder targets list to put
15645         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
15646         from the top menu.
15648 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15649             David Edelsohn  <dje.gcc@gmail.com>
15651         PR target/65058
15652         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
15653         mapping class to external variable or function reference.
15654         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
15655         mapping class.
15657 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
15659         PR target/53348
15660         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
15661         ASM_WEAKEN_DECL if defined.
15663 2015-02-16  Richard Biener  <rguenther@suse.de>
15665         PR lto/65015
15666         * varasm.c (default_file_start): For LTO produced units
15667         emit <artificial> as file directive.
15669 2015-02-16  Richard Biener  <rguenther@suse.de>
15671         PR tree-optimization/63593
15672         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
15673         stmts and releasing SSA names until...
15674         (execute_pred_commoning): ... after processing all chains.
15676 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
15678         PR ipa/65059
15679         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
15680         external functions.
15682 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
15684         * doc/bugreport.texi: Adjust section titles throughout the file
15685         to use "Title Case".
15686         * doc/extend.texi: Likewise.
15687         * doc/gcov.texi: Likewise.
15688         * doc/implement-c.texi: Likewise.
15689         * doc/implement-cxx.texi: Likewise.
15690         * doc/invoke.texi: Likewise.
15691         * doc/objc.texi: Likewise.
15692         * doc/standards.texi: Likewise.
15693         * doc/trouble.texi: Likewise.
15695 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
15697         * cgraph.h (symtab_node::has_aliases_p): Simplify.
15698         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
15699         * tree.c (lookup_binfo_at_offset): Make static.
15700         (get_binfo_at_offset): Do not shadow offset; add explanatory
15701         comment.
15703 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
15705         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
15706         for all floading point loads and stores except those using a register
15707         index address.
15708         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
15709         to a register.
15711 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
15713         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
15714         (do_estimate_growth_1): Record if any uninlinable edge was seen.
15715         (estimate_growth): Handle uninlinable edges correctly.
15716         (check_callers): New.
15717         (growth_likely_positive): Handle aliases correctly.
15719 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
15721         * ipa-chkp.c: Use iterate_direct_aliases.
15722         * symtab.c (resolution_used_from_other_file_p): Move inline.
15723         (symtab_node::create_reference): Fix formating.
15724         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
15725         (symtab_node::iterate_reference): Move inline.
15726         (symtab_node::iterate_referring): Move inline.
15727         (symtab_node::iterate_direct_aliases): Move inline.
15728         (symtab_node::used_from_object_file_p_worker): Inline into ...
15729         (symtab_node::used_from_object_file_p): ... this one; move inline.
15730         (symtab_node::call_for_symbol_and_aliases): Move inline;
15731         use iterate_direct_aliases.
15732         (symtab_node::call_for_symbol_and_aliases_1): New method.
15733         (cgraph_node::call_for_symbol_and_aliases): Move inline;
15734         use iterate_direct_aliases.
15735         (cgraph_node::call_for_symbol_and_aliases_1): New method.
15736         (varpool_node::call_for_node_and_aliases): Rename to ...
15737         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
15738         use iterate_direct_aliases.
15739         (varpool_node::call_for_symbol_and_aliases_1): New method.
15740         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
15741         (ipa_discover_readonly_nonaddressable_var): Update.
15742         * ipa-devirt.c: Fix formating.
15743         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
15744         Move inline.
15745         (cgraph_node::call_for_symbol_and_aliases): Move inline.
15746         (cgraph_node::call_for_symbol_and_aliases_1): New function..
15747         * cgraph.h (used_from_object_file_p_worker): Remove.
15748         (resolution_used_from_other_file_p): Move inline.
15749         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
15750         (symtab_node::iterate_reference): Move inline.
15751         (symtab_node::iterate_referring): Move inline.
15752         (symtab_node::iterate_direct_aliases): Move inline.
15753         (symtab_node::used_from_object_file_p_worker): Inline into ...
15754         (symtab_node::used_from_object_file_p): Move inline.
15755         * tree-emutls.c (ipa_lower_emutls): Update.
15756         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
15757         (varpool_node::call_for_node_and_aliases): Remove.
15759 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
15761         PR tree-optimization/62209
15762         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
15763         op == range->exp, insert seq and gimplified code after labels
15764         instead of after the phi.
15766 2015-02-13  Jeff Law  <law@redhat.com>
15768         PR bootstrap/65060
15769         Revert my change for tree-optimization/64823.
15771 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
15773         PR tree-optimization/65053
15774         * tree-ssa-phiopt.c (value_replacement): When moving assign before
15775         cond, either reset VR on lhs or set it to phi result VR.
15777 2015-02-13  Jeff Law  <law@redhat.com>
15779         PR tree-optimization/64823
15780         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
15781         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
15782         threading through blocks with PHIs, but no statements.
15783         (thread_through_normal_block): Distinguish between blocks where
15784         we did not process all the statements and blocks with no statements.
15786         PR rtl-optimization/47477
15787         * match.pd (convert (plus/minus (convert @0) (convert @1): New
15788         simplifier to narrow arithmetic.
15790 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
15792         PR ipa/65028
15793         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
15794         polymorphic call info when type is not known to be preserved.
15796 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
15798         PR ipa/65028
15799         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
15800         (inline_call): Use it.
15802 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
15804         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
15805         GOMP_DEVICE_NVIDIA_PTX.
15807 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
15809         PR ipa/65034
15810         * stmt.c (emit_case_nodes): Use void_type_node instead of
15811         NULL_TREE as LABEL_DECL type.
15813 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
15815         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
15816         constraints.
15817         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
15818         symbolic references to data to be forced to constant memory on the
15819         SOM target.
15821 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
15823         PR tree-optimization/65002
15824         * tree-cfg.c (pass_data_fixup_cfg): Don't update
15825         SSA on start.
15826         * tree-sra.c (some_callers_have_no_vuse_p): New.
15827         (ipa_early_sra): Reject functions whose callers
15828         assume function is read only.
15830 2015-02-13  Richard Biener  <rguenther@suse.de>
15832         PR lto/65015
15833         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
15834         for LTO produced CUs.
15836 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
15838         PR tree-optimization/64705
15839         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
15840         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
15841         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
15842         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
15843         expand_simple_operations.
15845 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
15846             Richard Henderson  <rth@redhat.com>
15848         PR rtl/32219
15849         * cgraphunit.c (cgraph_node::finalize_function): Set definition
15850         before notice_global_symbol.
15851         (varpool_node::finalize_decl): Likewise.
15852         * varasm.c (default_binds_local_p_2): Rename from
15853         default_binds_local_p_1, add weak_dominate argument.  Use direct
15854         returns instead of assigning to local variable.  Unify varpool and
15855         cgraph paths via symtab_node.  Reject undef weak variables before
15856         testing visibility.  Reorder tests for simplicity.
15857         (default_binds_local_p): Use default_binds_local_p_2.
15858         (default_binds_local_p_1): Likewise.
15859         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
15860         via symtab_node.
15861         (default_elf_asm_output_external): Emit visibility when specified.
15863 2015-02-13  Alan Modra  <amodra@gmail.com>
15865         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
15866         code setting up r11 for out-of-line fp restore.
15868 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
15870         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
15871         (muser-mode): Likewise.
15873 2015-02-13  Alan Modra  <amodra@gmail.com>
15875         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
15876         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
15878 2015-02-12  David Howells  <dhowells@redhat.com>
15880         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
15881         warning.
15882         * tree-ssa-uninit.c (dump_predicates): Likewise.
15883         * opts.c (print_filtered_help): Likewise.
15885 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
15887         * dwarf2out.c (output_die): Use "%s", name instead of name to
15888         avoid -Wformat-security warning.
15890         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
15891         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
15892         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
15893         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
15895 2015-02-12  Jason Merrill  <jason@redhat.com>
15897         * common.opt (-flifetime-dse): New.
15899 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
15901         PR sanitizer/65019
15902         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
15904         PR tree-optimization/65014
15905         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
15906         use original second operand of arg0 or arg1 instead of
15907         that adjusted by STRIP_NOPS.
15909 2015-02-11  Jeff Law  <law@redhat.com>
15911         PR target/63347
15912         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
15913         that needs to be queued, just queue it for a single cycle.
15915 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
15917         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
15918         bodies of thunks; comment on why.
15919         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
15920         symbols are extern.
15922 2015-02-11  Richard Henderson  <rth@redhat.com>
15924         PR sanitize/65000
15925         * tree-eh.c (mark_reachable_handlers): Mark source and destination
15926         regions of __builtin_eh_copy_values.
15928 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
15930         PR middle-end/65003
15931         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
15932         ultimate alias is MEM with SYMBOL_REF satisfying
15933         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
15934         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
15936 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
15938         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
15939         "diagnostic-core.h".
15940         (main): Initialize progname, and call diagnostic_initialize.
15942         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
15943         instead of __OPENMP_TARGET__.
15945         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
15946         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
15947         hard-coding PTX_ID.
15949 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
15951         * doc/sourcebuild.texi (pie_enabled): Document.
15953 2015-02-11  Martin Liska  <mliska@suse.cz>
15955         PR ipa/64813
15956         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
15957         a return value for call to a function that is noreturn.
15959 2015-02-11  Richard Biener  <rguenther@suse.de>
15961         PR lto/65015
15962         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
15963         and -fresolution.
15965 2015-02-11  Andrew Pinski  <apinski@cavium.com>
15967         PR target/64893
15968         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
15969         Change the first argument type to size_type_node and add another
15970         size_type_node.
15971         (aarch64_simd_expand_builtin): Handle the new argument to
15972         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
15973         print an out when the first two arguments are not
15974         nonzero integer constants.
15975         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
15976         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
15978 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
15980         PR target/61925
15981         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
15982         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
15983         (ix86_set_current_function): Rewritten.
15984         (ix86_add_new_builtins): Temporarily clear current_target_pragma
15985         when creating builtin fndecls.
15987 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
15989         PR ipa/65005
15990         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
15991         function.
15992         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
15993         have no comdat group.
15994         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
15995         (lto_output_varpool_node): Always output alias info.
15996         (output_refs): Output refs of boundary aliases, too.
15997         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
15998         (output_symtab): Output call eges in thunks in boundary.
15999         (get_alias_symbol): Remove.
16000         (input_node, input_varpool_node): Do not special case weakrefs.
16001         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
16002         alias and thunks targets in the boundary; do not take removed symbols
16003         from their comdat groups.
16004         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
16005         (cgraph_node::global_info): Remove.
16006         (cgraph_node::rtl_info): Look through aliases and thunks.
16007         * cgrpah.h (global_info): Remove.
16008         (non_local_p): Remove.
16010 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
16011             Sandra Loosemore  <sandra@codesourcery.com>
16013         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
16014         to inline asm.  List dialects in proper order.
16016 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
16017             Sandra Loosemore  <sandra@codesourcery.com>
16019         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
16021 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
16023         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
16024         modified) reference to Solaris.
16026 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
16028         * doc/extend.texi (Extended Asm): Fix typos.
16030 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
16032         PR sanitizer/65004
16033         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
16035 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
16037         PR target/64661
16038         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
16039         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
16040         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
16041         * config/sh/constraints.md (Ara, Add): New constraints.
16042         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
16043         predicates.
16044         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
16045         atomic_mem_operand_0.  Don't use force_reg on the memory address.
16046         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
16047         Sra constraint.  Convert to insn_and_split.  Add workaround for
16048         PR 64974.
16049         (atomic_compare_and_swap<mode>_hard): Copy to
16050         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
16051         Use atomic_mem_operand_0 predicate.
16052         (atomic_compare_and_swap<mode>_soft_gusa,
16053         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
16054         AraAdd constraints.
16055         (atomic_compare_and_swap<mode>_soft_tcb,
16056         atomic_compare_and_swap<mode>_soft_imask,
16057         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
16058         atomic_mem_operand_0 predicate and SraSdd constraints.
16059         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
16060         constraint.
16061         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
16062         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
16063         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
16064         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
16065         force_reg on the memory address.
16066         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
16067         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
16068         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
16069         atomic_mem_operand_1 predicate and Sra constraint.
16070         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
16071         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
16072         Use atomic_mem_operand_1 predicate.
16073         (atomic_<fetchop_name><mode>_hard): Copy to
16074         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
16075         Use atomic_mem_operand_1 predicate.
16076         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
16077         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
16078         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
16079         insn_and_split.  Use atomic_mem_operand_1 predicate.
16080         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
16081         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
16082         Use atomic_mem_operand_1 predicate.
16083         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
16084         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
16085         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
16086         in generated insn with original mem operand before emitting the insn.
16087         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
16088         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
16089         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
16090         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
16091         Use atomic_mem_operand_1 predicate and AraAdd constraints.
16092         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
16093         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
16094         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
16095         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
16096         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
16097         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
16098         atomic_not_fetch<mode>_soft_tcb,
16099         atomic_<fetchop_name>_fetch<mode>_soft_imask,
16100         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
16101         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
16102         Use atomic_mem_operand_1 predicate and SraSdd constraints.
16104 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
16106         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
16107         and 3 earlyclobber operands.
16109 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
16111         * common.opt (fstack-reuse): Mark as optimization.
16113 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
16115         PR ipa/64982
16116         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
16118 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
16120         PR tree-optimization/64326
16121         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
16123 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
16125         PR gcov-profile/61889
16126         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
16128 2015-02-10  Richard Biener  <rguenther@suse.de>
16130         PR tree-optimization/64995
16131         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
16132         value we use is final.
16133         (visit_reference_op_store): Always valueize op.
16134         (visit_use): Properly valueize vuses.
16136 2015-02-10  Richard Biener  <rguenther@suse.de>
16138         PR tree-optimization/64909
16139         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
16140         pass a scalar-stmt count estimate to the cost model.
16141         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
16143 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
16145         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
16146         enabled by default together with var-tracking.
16148 2015-02-10  Nick Clifton  <nickc@redhat.com>
16150         * config/rl78/rl78.c: Remove DIV attribute code accidentally
16151         included in previous rl78 commit.
16153 2015-02-10  Richard Biener  <rguenther@suse.de>
16155         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
16156         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
16157         return the bitpack.
16159 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
16161         PR gcov-profile/61889
16162         * config.in: regenerate.
16163         * configure.in: Likewise.
16164         * configure.ac: Check for ftw.h.
16165         * gcov-tool.c: Check for ftw.h before using nftw.
16167 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
16169         PR lto/64076
16170         * ipa-visibility.c (update_visibility_by_resolution_info): Only
16171         assert when not in lto mode.
16173 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16175         * ira-color.c (setup_left_conflict_sizes_p): Simplify
16176         initialization/assignment of conflict_size.
16178 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
16180         PR ipa/64978
16181         * ipa-cp.c (gather_caller_stats): Skip thunks.
16182         (propagate_constants_topo): Skip aliases.
16184 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
16186         PR target/64761
16187         * config/sh/sh.c (sh_option_override): Don't change
16188         -freorder-blocks-and-partition to -freorder-blocks even when
16189         unwinding is enabled.
16190         (sh_can_follow_jump): Return false if the followee jump is
16191         a crossing jump when -freorder-blocks-and-partition is specified.
16192         * config/sh/sh.md (*jump_compact_crossing): New insn.
16194 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
16195             Kaz Kojima  <kkojima@gcc.gnu.org>
16197         PR target/64761
16198         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
16199         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
16200         (sh_can_redirect_branch): Rename to ...
16201         (sh_can_follow_jump): ... this.  Constify argument types.
16202         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
16203         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
16204         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
16205         * doc/tm.texi: Regenerate.
16207 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
16209         PR sanitizer/64981
16210         * builtins.c (expand_builtin): Call targetm.expand_builtin
16211         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
16213 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16215         PR ipa/61548
16216         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
16218 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16220         PR ipa/63566
16221         * ipa-icf.c (set_local): New function.
16222         (sem_function::merge): Use it.
16224 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16226         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
16227         (add_type_duplicate): Fix comparison of BINFOs.
16229 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16231         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
16232         on getting VOID pointer.
16234 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
16236         PR target/64979
16237         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
16238         va_list escapes.
16240 2015-02-09  Richard Biener  <rguenther@suse.de>
16242         * genmatch.c (replace_id): Copy expr_type.
16244 2015-02-09  Richard Biener  <rguenther@suse.de>
16246         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
16247         (streamer_write_tree_bitfields): Declare.
16248         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
16249         properly unpack padding.
16250         (unpack_value_fields): Inline ...
16251         (streamer_read_tree_bitfields): ... here.
16252         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
16253         and properly add padding bits.
16254         (streamer_pack_tree_bitfields): Fold into ...
16255         (streamer_write_tree_bitfields): ... this new function,
16256         exposing the bitpack object.
16257         * lto-streamer-out.c (lto_write_tree_1): Call
16258         streamer_write_tree_bitfields.
16260 2015-02-09  Richard Biener  <rguenther@suse.de>
16262         PR tree-optimization/54000
16263         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
16264         (struct ivopts_data): Add loop_loc member.
16265         (tree_ssa_iv_optimize_loop): Dump loop location.
16266         (create_new_ivs): Likewise, also dump number of IVs generated.
16268 2015-02-09  Martin Liska  <mliska@suse.cz>
16270         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
16271         just if not yet registered.
16272         (ipa_icf_generate_summary): Register callgraph hooks.
16274 2015-02-08  Andrew Pinski  <apinski@cavium.com>
16276         * config/aarch64/aarch64.c (gty_dummy): Delete.
16278 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16280         PR ipa/63566
16281         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
16282         (cgraph_node::local_p): Remove thunk related FIXME.
16284 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16286         PR ipa/63566
16287         * i386.c (ix86_function_regparm): Look through aliases to see if callee
16288         is local and optimized.
16289         (ix86_function_sseregparm): Likewise; also use target's SSE math
16290         settings; error out instead of silently generating wrong code
16291         on mismatches.
16292         (init_cumulative_args): Look through aliases.
16294 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16296         PR ipa/63566
16297         * ipa-split.c (execute_split_functions): Split if function has aliases.
16299 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
16301         PR ipa/63566
16302         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
16303         aliases before trying to expand it.
16304         (cgraph_node::expand_thunk): Fix formating.
16306 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
16308         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
16309         (Using Assembly Language with C): Expand introduction.
16310         (Basic Asm): Copy-edit.  Add more information about uses of
16311         basic asm.
16312         (Extended Asm): Copy-edit.  Document new escape syntax and
16313         %l[label] syntax.
16314         (Global Reg Vars): Copy-edit.
16315         (Local Reg Vars): Likewise.
16317 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
16319         PR debug/2714
16320         PR bootstrap/64256
16321         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
16322         (DBX_CONTIN_CHAR): Define.
16324 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
16325             Brian Rzycki  <b.rzycki@samsung.com>
16327         PR tree-optimization/64878
16328         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
16329         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
16330         Stop recursion at loop phi nodes after having visited a loop phi node.
16332 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
16334         * toplev.c (process_options): Change flag_ipa_ra before creating
16335         optimization_{default,current}_node.
16337         PR ipa/64896
16338         * cgraphunit.c (cgraph_node::expand_thunk): If
16339         restype is not is_gimple_reg_type nor the thunk_fndecl
16340         returns aggregate_value_p, set restmp to a temporary variable
16341         instead of resdecl.
16343 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
16345         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
16347 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16349         PR target/64205
16350         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
16351         add a general secondary reload handler for SDmode, unless we have
16352         both read/write support for SDmode.
16354 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
16356         PR middle-end/64937
16357         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
16358         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
16359         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
16360         1 before, push it to abstract_vec.
16361         (dwarf2out_abstract_function): Adjust caller.  Don't call
16362         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
16363         DECL_ABSTRACT_P flags for all abstract_vec elts.
16365 2015-02-06  Renlin Li  <renlin.li@arm.com>
16367         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
16368         complex gimple.
16369         * tree-ssa.c (execute_update_addresses_taken): Likewise.
16371 2015-02-06  Jeff Law  <law@redhat.com>
16373         PR target/64889
16374         * config/h8300/h8300.c (push): New argument "in_prologue".
16375         Pass "in_prologue" along to "F".
16376         (h8300_push_pop): Corresponding changes.
16377         (h8300_expand_prologue): Likewise.
16378         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
16380 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
16382         PR rtl-optimization/64957
16383         PR debug/64817
16384         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
16385         IOR rather than for AND.
16387 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
16389         PR target/62631
16390         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
16391         of shift-add and (add + shift) operations.  Rename local variable.
16393 2015-02-05  Jeff Law  <law@redhat.com>
16395         PR target/17306
16396         * config/h8300/constraints.md (U): Correctly dectect
16397         "eightbit_data" memory addresses.
16398         * config/h8300/h8300.c (eightbit_constant_address_p): Also
16399         handle (const (plus (symbol_ref (x)))) where x is declared
16400         as an 8-bit data memory address.
16401         * config/h8300/h8300.md (call, call_value): Correctly detect
16402         "funcvec" functions.
16404         PR target/43264
16405         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
16406         24 to 28 bits for the H8/300.
16408 2015-02-06  Alan Modra  <amodra@gmail.com>
16410         PR target/64876
16411         * config/rs6000/rs6000.c (chain_already_loaded): New function.
16412         (rs6000_call_aix): Use it.
16414 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
16416         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
16417         check.
16419 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
16421         * config/h8300/constraints.md ("U" constraint): Use strict
16422         variant of REG_OK_FOR_BASE_P after reload has started.
16424 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
16426         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
16427         define to zero if !TARGET_NEON.
16428         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
16430 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16431             Trevor Saunders  <tsaunders@mozilla.com>
16433         PR ipa/61548
16434         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
16436 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16438         PR ipa/61548
16439         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
16440         when removing varpool nodes.
16442 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16444         PR ipa/61548
16445         * varpool.c (varpool_node::remove): Fix order of variables.
16447 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16449         PR ipa/64686
16450         * ipa-inline.c (inline_small_functions): Fix ordering issue between
16451         speculation resolution and key updates.
16453 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16455         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
16456         about not letting any speculative edges unupdated.
16458 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16460         PR gcov/64123
16461         * gcov-io.c (gcov_var): Export.
16463 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16465         PR middle-end/64922
16466         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
16467         edges that become speculative.
16469 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
16471         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
16472         or DW_LANG_Fortran08.
16473         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
16474         DW_LANG_Fortran08.
16475         (gen_compile_unit_die): Handle "GNU Fortran2003" and
16476         "GNU Fortran2008" language strings.
16477         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
16478         * langhooks.h (lang_GNU_Fortran): New prototype.
16479         * langhooks.c (lang_GNU_Fortran): New function.
16480         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
16481         lang_GNU_Fortran.
16483 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
16485         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
16486         (RTX_OK_FOR_OLO10_P): Likewise.
16488 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
16490         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
16492 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
16494         PR middle-end/64922
16495         * gimple.c: Include gimple-ssa.h.
16496         (maybe_remove_unused_call_args): New function.
16497         * gimple.h (maybe_remove_unused_call_args): Declare.
16498         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
16499         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
16500         * gimple-fold.c (gimple_fold_call): Likewise.
16502 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
16504         PR rtl-optimization/64905
16505         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
16506         pointer alignment if it isn't needed.
16508 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
16510         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
16511         cortex-a72.cortex-a53.
16512         * config/aarch64/aarch64-tune.md: Regenerate.
16513         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
16515 2015-02-04  Nick Clifton  <nickc@redhat.com>
16517         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
16518         inside a MEM.
16520 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
16522         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
16523         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
16524         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
16525         of DEF_BUILTIN.
16526         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
16527         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
16528         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
16529         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
16530         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
16531         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
16532         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
16533         * tree-core.h (enum built_in_function): In between
16534         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
16535         for builtins that use DEF_BUILTIN_CHKP macro.
16537 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
16539         PR debug/64817
16540         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
16541         operands for tcc_comparison exprs.  Fix typos.
16543         PR debug/64817
16544         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
16545         of two XORs that have an intervening AND or IOR.
16547         PR debug/64817
16548         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
16549         simplification of XOR of AND to not allocate new rtx before
16550         committing to a simplification.
16552 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16554         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
16555         manual swaps in all peepholes.
16557 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16559         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
16560         of manual swapping implementation.
16561         (aarch64_expand_vec_perm_const_1): Likewise.
16563 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
16565         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
16566         (generic_addrcost_table): Remove NAMED_PARAM.
16567         (cortexa57_addrcost_table): Likewise.
16568         (xgene1_addrcost_table): Likewise.
16569         (generic_regmove_table): Likewise.
16570         (cortexa53_regmove_table): Likewise.
16571         (xgene1_regmove_table): Likewise.
16572         (generic_vector_table): Likewise.
16573         (cortexa57_vector_table): Likewise.
16574         (xgene1_vector_table): Likewise.
16575         (generic_tunings): Likewise.
16576         (cortexa53_tunings): Likewise.
16577         (cortexa57_tunings): Likewise.
16578         (xgene1_tunings): Likewise.
16580 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
16582         * config/arm/arm-cores.def: Add cortex-a72 and
16583         cortex-a72.cortex-a53.
16584         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
16585         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
16586         * config/arm/arm-tune.md: Regenerate.
16587         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
16588         "cortex-a72.cortex-a53".
16589         * doc/invoke.texi (ARM Options/-mtune): Likewise.
16591 2015-02-04  Nick Clifton  <nickc@redhat.com>
16593         PR target/64408
16594         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
16595         of accepted codes.
16596         (nonimmediate_di_operand): Likewise.
16598         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
16599         prefixes of known F5 using MSP430 MCUs.
16601 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16603         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
16604         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
16605         instead of __builtin_sqrt.
16607 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
16609         * varasm.c (do_assemble_alias): Follow transparent alias
16610         chain for target.
16611         (default_assemble_visibility): Follow transparent alias
16612         chain for decl name.
16614 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16616         PR middle-end/62103
16617         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
16618         to compute size of referenced value in the constant case.
16620 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
16622         PR rtl-optimization/64756
16623         * cse.c (invalidate_dest): New function.
16624         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
16625         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
16626         invalidate and do not record it.
16628 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
16630         PR target/64660
16631         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
16632         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
16633         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
16634         atomic_nand<mode>_soft_tcb): New insns.
16635         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
16636         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
16637         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
16638         Split into atomic_not_fetchsi_hard if operands[0] is unused.
16639         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
16640         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
16641         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
16642         atomic_not<mode>_hard if operands[0] is unused.
16643         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
16644         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
16645         if operands[0] is unused.
16646         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
16647         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
16648         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
16649         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
16650         unused.
16651         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
16652         into atomic_not<mode>_soft_tcb if operands[0] is unused.
16653         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
16654         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
16655         if operands[0] is unused.
16656         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
16657         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
16658         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
16659         atomic_nand_fetchsi_hard if operands[0] is unused.
16660         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
16661         atomic_nand<mode>_hard if operands[0] is unused.
16662         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
16663         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
16664         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
16665         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
16666         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
16667         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
16668         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
16669         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
16670         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
16671         atomic_not<mode>_hard if operands[0] is unused.
16672         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
16673         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
16674         unused.
16675         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
16676         into atomic_not<mode>_soft_tcb if operands[0] is unused.
16677         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
16678         atomic_nand<mode>_hard if operands[0] is unused.
16679         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
16680         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
16682 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
16684         PR jit/64810
16685         * Makefile.in (GCC_OBJS): Add gcc-main.o.
16686         * gcc-main.c: New file, containing "main" taken from gcc.c.
16687         * gcc.c (do_self_spec): Free decoded_options.
16688         (class driver): Move declaration to gcc.h.
16689         (main): Move declaration and implementation to new file
16690         gcc-main.c.
16691         (driver_get_configure_time_options): New function.
16692         * gcc.h (class driver): Move this declaration here, from
16693         gcc.c.
16694         (driver_get_configure_time_options): New declaration.
16696 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
16698         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
16699         cross-module inlining.
16700         * cgraph.h (cgraph_node): Add flag merged.
16701         * ipa-icf.c (sem_function::merge): Maintain it.
16703 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
16705         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
16706         instead of OBJECT_P.
16708 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
16710         PR target/62631
16711         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
16712         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
16713         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
16714         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
16716 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
16718         PR other/63504
16719         * combine.c (reg_n_sets_max): New variable.
16720         (can_change_dest_mode, reg_nonzero_bits_for_combine,
16721         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
16722         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
16723         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
16724         (rest_of_handle_combine): Initialize reg_n_sets_max.
16726 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
16728         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
16729         if some always_inline was inlined, apply changes before inlining
16730         heuristically.
16732 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
16734         PR jit/64810
16735         * config/arm/arm.c (arm_option_override): Set
16736         arm_selected_arch/cpu/tune to NULL on entry.
16738 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
16739             Andrew Pinski  <pinskia@gcc.gnu.org>
16740             Jakub Jelinek  <jakub@gcc.gnu.org>
16742         PR target/64231
16743         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
16744         integer typing for small model. Use IN_RANGE.
16746 2015-02-02  Richard Biener  <rguenther@suse.de>
16748         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
16749         * tree-vrp.c (vrp_valueize_1): Likewise.
16751 2015-02-02  Alan Modra  <amodra@gmail.com>
16753         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
16754         than mem for toc_restore.
16755         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
16756         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
16757         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
16759 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
16761         PR target/64047
16762         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
16763         explicit default options.
16765 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
16767         PR ipa/64872
16768         * ipa-utils.c (ipa_merge_profiles): Add release argument.
16769         * ipa-icf.c (sem_function::merge): Do not release body when merging.
16770         * ipa-utils.h (ipa_merge_profiles): Update prototype.
16772 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
16774         PR debug/64817
16775         * cfgexpand.c (deep_ter_debug_map): New variable.
16776         (avoid_deep_ter_for_debug): New function.
16777         (expand_debug_expr): If TERed SSA_NAME is in
16778         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
16779         instead of trying to expand SSA_NAME's def stmt.
16780         (expand_debug_locations): When expanding debug bind
16781         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
16782         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
16783         value.
16784         (pass_expand::execute): Call avoid_deep_ter_for_debug on
16785         all debug bind stmts.  Delete deep_ter_debug_map after
16786         expand_debug_location if non-NULL and clear it.
16788 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
16790         PR target/64851
16791         * config/sh/sync.md (atomic_fetch_notsi_hard,
16792         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
16793         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
16794         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
16795         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
16796         atomic_not_fetch<mode>_soft_imask): New insns.
16798 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16800         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
16801         (rank_for_schedule_debug): Split from ...
16802         (rank_for_schedule): ... this.
16803         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
16804         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
16806 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
16808         * doc/md.texi (Machine Constraints): Alphabetize table by target.
16809         * doc/extend.texi (x86 Variable Attributes): Move section to
16810         correct alphabetization after renaming.
16811         (x86 Type Attributes): Likewise.
16812         (Target Builtins): Re-alphabetize menu.
16813         (x86 Built-in Functions): Move section to correct alphabetization
16814         after renaming.
16815         (x86 transactional memory intrinsics): Likewise.
16816         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
16817         and x86 Windows Options in table and menu.
16818         (x86 Options): Move section to correct alphabetization after
16819         renaming.
16820         (x86 Windows Options): Likewise.
16822 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
16824         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
16825         preferred names of the architecture and its 32- and 64-bit
16826         variants.
16827         * doc/invoke.texi: Likewise.
16828         * doc/md.texi: Likewise.
16830 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
16832         PR target/64882
16833         * config/i386/predicates.md (address_no_seg_operand): Reject
16834         non-CONST_INT_P operands in invalid mode.
16836 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
16838         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
16839         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
16840         * config/i386/predicates.md (address_no_seg_operand): Call
16841         address_operand with VOIDmode.
16842         (vsib_address_operand): Ditto.
16843         (address_mpx_no_base_operand): Ditto.
16844         (address_mpx_no_index_operand): Ditto.
16846 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
16848         PR target/64688
16849         * lra-constraints.c (original_subreg_reg_mode): New.
16850         (simplify_operand_subreg): Try to simplify subreg of const.  Use
16851         original_subreg_reg_mode for it.
16852         (swap_operands): Update original_subreg_reg_mode.
16853         (curr_insn_transform): Set up original_subreg_reg_mode.
16855 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
16857         PR target/64617
16858         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
16859         function.
16860         (process_alt_operands): Use it.
16861         (curr_insn_transform): Check the optional reload pseudo class is
16862         ok for the mode.
16864 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
16866         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
16867         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
16868         prototype.
16869         * toplev.h (init_asm_output): Update comment on use of
16870         UNKNOWN_LOCATION with fatal_error.
16871         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
16872         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
16873         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
16874         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
16875         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
16876         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
16877         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
16878         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
16879         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
16880         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
16881         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
16882         fatal_error changed to pass input_location as first argument.
16884 2015-01-30  Martin Liska  <mliska@suse.cz>
16886         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
16887         in #pragma GCC diagnostic guards.
16889 2015-01-30  Richard Biener  <rguenther@suse.de>
16891         PR tree-optimization/64829
16892         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
16893         not add a widening conversion pattern but hand off extra
16894         widenings to callers.
16895         (vect_recog_widen_mult_pattern): Handle extra widening produced
16896         by vect_handle_widen_op_by_const.
16897         (vect_recog_widen_shift_pattern): Likewise.
16898         (vect_pattern_recog_1): Remove excess vertical space in dumping.
16899         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
16900         (vect_init_vector_1): Likewise.
16901         (vect_get_vec_def_for_operand): Likewise.
16902         (vect_finish_stmt_generation): Likewise.
16903         (vectorizable_load): Likewise.
16904         (vect_analyze_stmt): Likewise.
16905         (vect_is_simple_use): Likewise.
16907 2015-01-29  Jeff Law  <law@redhat.com>
16909         * combine.c (try_combine): Fix typo in comment.
16911 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
16913         PR target/64580
16914         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
16915         (rs6000_stack_info): Add assert.
16916         (rs6000_output_savres_externs): New function, split off from...
16917         (rs6000_output_function_prologue): ... here.  Do not call it for
16918         thunks.
16920 2015-01-29  Jeff Law  <law@redhat.com>
16922         PR target/15184
16923         * combine.c (try_combine): If I0 is a memory load and I3 a store
16924         to a related address, increase the "goodness" of doing a 4-insn
16925         combination with I0-I3.
16926         (make_field_assignment): Handle SUBREGs in the ior+and case.
16928 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
16930         PR tree-optimization/64746
16931         * tree-if-conv.c (mask_exists): New function.
16932         (predicate_mem_writes): Save created mask with given size for further
16933         use.
16934         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
16935         (ifcvt_repair_bool_pattern): Collect all statements that are root
16936         of bool pattern and use iterative algorithm to remove multiple uses
16937         of predicates, display number of required iterations.
16939 2015-01-29  Richard Biener  <rguenther@suse.de>
16941         PR tree-optimization/64853
16942         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
16943         stmt will get simulated again.
16944         * tree-ssa-ccp.c (valueize_op_1): Likewise.
16946 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16948         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
16949         return_in_pc.  Remove redundant assignments.
16950         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
16951         (arm_expand_epilogue): Don't compare boolean with true in if condition.
16953 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
16955         * config/i386/i386.c (ix86_mode_after): Make static.
16957 2015-01-29  Richard Biener  <rguenther@suse.de>
16959         PR tree-optimization/64844
16960         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
16961         dump cost model analysis.
16962         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16963         Do not register adjusted load/store costs here.
16965 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
16966             Uros Bizjak  <ubizjak@gmail.com>
16968         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
16969         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
16970         using x86_use_pseudo_pic_reg.
16971         * config/i386/i386.c (ix86_conditional_register_usage): Remove
16972         support for fixed PIC register.
16973         (ix86_use_pseudo_pic_reg): Not static any more.
16975 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
16977         PR middle-end/64805
16978         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
16979         to avoid error in cgraph node verification.
16981 2015-01-29  Marek Polacek  <polacek@redhat.com>
16983         * doc/standards.texi: Reflect that the default for C is gnu11.
16985 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
16987         PR target/64761
16988         * reorg.c (switch_text_sections_between_p): New function.
16989         (relax_delay_slots): Call it when testing if the jump insn
16990         is removable.  Use targetm.can_follow_jump when testing if
16991         the conditional branch can follow an unconditional jump.
16993 2015-01-27  Caroline Tice  <cmtice@google.com>
16995         Committing VTV Cywin/Ming patch for Patrick Wollgast
16996         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
16997         if -fvtable-verify=preinit/std is used.
16998         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
16999         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
17000         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
17001         if -fvtable-verify=preinit/std is used.
17002         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
17003         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
17004         if -fvtable-verify=preinit/std is used.
17005         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
17006         * config/i386/mingw32.h (LIB_SPEC): Likewise.
17007         * varasm.c (assemble_variable): Add code to properly set the comdat
17008         section and name for the .vtable_map_vars section in case the
17009         target is PE or COFF.
17011 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
17013         PR ipa/64801
17014         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
17015         make sane BB profile.
17016         (cgraph_node::expand_thunk): Make sane BB profile.
17017         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
17018         * cgraph.h (init_lowered_empty_function): Update prototype.
17019         * config/i386/i386.c (make_resolver_func): Update call.
17020         * predict.c (gate): Disable branch prediction pass if
17021         profile is already there.
17023 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
17025         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
17026         * opth-gen.awk: Likewise.
17027         * common.opt: Mark flag_fp_contract_mode as Optimization.
17029 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17031         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
17032         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
17034 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
17036         PR target/64659
17037         * config/sh/predicates.md (atomic_arith_operand,
17038         atomic_logical_operand): Remove.
17039         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
17040         (atomic_arith_operand_0): New predicate.
17041         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
17042         Use atomic_arith_operand_0 for input values.
17043         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
17044         atomic_compare_and_swap<mode>_soft_gusa,
17045         atomic_compare_and_swap<mode>_soft_tcb,
17046         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
17047         arith_reg_operand instead of register_operand.
17048         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
17049         atomic_arith_operand_0 for newval input.
17050         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
17051         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
17052         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
17053         arith_reg_operand instead of register_operand.
17054         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
17055         fetchop_predicate_1, fetchop_constraint_1_llcs,
17056         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
17057         fetchop_constraint_1_imask): New code iterator attributes.
17058         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
17059         register_operand.  Use fetchop_predicate_1.
17060         (atomic_fetch_<fetchop_name>si_hard,
17061         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
17062         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
17063         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
17064         and arith_reg_operand instead of register_operand.  Use
17065         fetchop_predicate_1, fetchop_constraint_1_gusa.
17066         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
17067         and arith_reg_operand instead of register_operand.  Use
17068         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
17069         to allow R0 usage.
17070         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
17071         and arith_reg_operand instead of register_operand.  Use
17072         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
17073         to allow R0 usage.
17074         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
17075         register_operand.  Use atomic_logical_operand_1.
17076         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
17077         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
17078         arith_reg_operand instead of register_operand.
17079         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
17080         Use arith_reg_dest and arith_reg_operand instead of register_operand.
17081         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
17082         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
17083         register_operand.  Use fetchop_predicate_1.
17084         (atomic_<fetchop_name>_fetchsi_hard,
17085         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
17086         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
17087         fetchop_constraint_1_llcs.
17088         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
17089         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
17090         fetchop_constraint_1_gusa.
17091         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
17092         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
17093         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
17094         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
17095         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
17096         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
17097         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
17098         register_operand.  Use atomic_logical_operand_1.
17099         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
17100         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
17101         arith_reg_operand instead of register_operand.
17102         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
17103         arith_reg_operand instead of register_operand.  Use logical_operand
17104         and K08.  Adjust asm sequence to allow R0 usage.
17105         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
17106         arith_reg_operand instead of register_operand.  Use logical_operand
17107         and K08.
17109 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
17111         PR other/63504
17112         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
17113         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
17114         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
17115         only get_full_len HOST_WIDE_INTs from get_val () array rather than
17116         all bits in *val_wide.
17118 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
17120         * varpool.c (tls_model_names): Fix names.
17121         (varpool_node::dump): Dump tls- prefix for tls models.
17123 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
17124             Bernd Schmidt  <bernds@codesourcery.com>
17125             Nathan Sidwell  <nathan@codesourcery.com>
17127         * config/nvptx/mkoffload.c: New file.
17128         * config/nvptx/t-nvptx: Add build rules for it.
17129         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
17130         (extra_programs): Add mkoffload.
17131         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
17132         function.
17133         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
17135 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
17137         PR middle-end/64809
17138         * cfgexpand.c (reorder_operands): Skip debug gimples.
17140 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
17142         PR tree-optimization/64277
17143         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
17144         range info when possible to refine estimation.
17146 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17148         PR tree-optimization/64718
17149         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
17150         be a 16bit unsigned integer when n->range is 16.
17151         (bswap_replace): Convert src to that type if necessary for all bswap
17152         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
17153         set in pass_optimize_bswap::execute ().
17155 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
17157         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
17158         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
17159         integer and floating point variants.
17160         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
17162 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
17164         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
17165         for all vector modes.
17167 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
17169         PR bootstrap/64612
17170         * doc/sourcebuild.texi (comdat_group): Document.
17172 2015-01-28  Terry Guo  <terry.guo@arm.com>
17174         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
17176 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
17178         * toplev.c (print_version): Add param "show_global_state", and
17179         only print GGC and plugin information if it is true.
17180         (init_asm_output): Pass in "true" for the new param when calling
17181         print_version.
17182         (process_options): Likewise.
17183         (toplev::main): Likewise.
17184         * toplev.h (print_version): Add new param to decl.
17186 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
17188         PR ipa/60871
17189         PR ipa/64139
17190         * tree.c (lookup_binfo_at_offset): New function.
17191         (get_binfo_at_offset): Use it.
17193 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
17195         PR ipa/64282
17196         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
17197         on vtable being vtable.
17199 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17201         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
17202         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
17203         -mhotpatch= option.
17204         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
17205         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
17206         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
17207         Renamed.
17208         (s390_hotpatch_trampoline_halfwords_max): Renamed.
17209         (s390_hotpatch_hw_max): New name.
17210         (s390_hotpatch_trampoline_halfwords): Renamed.
17211         (s390_hotpatch_hw_before_label): New name.
17212         (get_hotpatch_attribute): Removed.
17213         (s390_hotpatch_hw_after_label): New name.
17214         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
17215         attribute.
17216         (s390_attribute_table): Ditto.
17217         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
17218         (s390_function_num_hotpatch_hw): New name.
17219         Remove special handling of inline functions and hotpatching.
17220         Return number of nops before and after the function label.
17221         (s390_can_inline_p): Removed.
17222         (s390_asm_output_function_label): Emit a configurable number of nops
17223         after the function label.
17224         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
17225         (TARGET_CAN_INLINE_P) Removed.
17226         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
17228 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17229             Jiong Wang  <jiong.wang@arm.com>
17231         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
17232         of scratch reg.
17233         (cb<optab><mode>1): Likewise.
17234         * config/aarch64/iterators.md (bcond): New define_code_attr.
17236 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17238         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
17239         memory accesses.
17241 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17243         * config/s390/s390.c (s390_register_move_cost): Increase costs for
17244         FPR->GPR moves.
17246 2015-01-27  Richard Biener  <rguenther@suse.de>
17248         * tree-vrp.c (update_value_range): Intersect the range with
17249         old recorded SSA name range information.
17251 2015-01-27  Nick Clifton  <nickc@redhat.com>
17253         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
17254         BC, DE and HL registers directly, not via AX.
17255         When decrementing the stack pointer by a large amount, transfer SP
17256         into AX and perform the subtraction there.
17257         (rl78_expand_epilogue): Perform the inverse of the above
17258         enhancements.
17260 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17262         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
17264 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
17265             Yury Gribov  <y.gribov@samsung.com>
17267         PR ubsan/64741
17268         * ubsan.c (ubsan_source_location): Refactor code.
17269         (ubsan_type_descriptor): Update type size. Refactor code.
17271 2015-01-27  Richard Biener  <rguenther@suse.de>
17273         PR tree-optimization/56273
17274         PR tree-optimization/59124
17275         PR tree-optimization/64277
17276         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
17277         from the first VRP pass.
17279 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
17281         PR ipa/64776
17282         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
17283         handle the first argument in the same loop as all the other arguments.
17285         PR rtl-optimization/61058
17286         * jump.c (cleanup_barriers): Update basic block boundaries
17287         if BLOCK_FOR_INSN is non-NULL on PREV.
17289 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
17291         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
17292         bounds narrowing, already instrumented calls and calls to
17293         not instrumentable functions.
17295 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
17297         PR tree-optimization/64807
17298         * wide-int.cc (wi::divmod_internal): Clear
17299         b_dividend[dividend_blocks_needed].
17301 2015-01-26  DJ Delorie  <dj@redhat.com>
17303         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
17304         volatile memory references.
17306 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
17308         PR target/49263
17309         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
17310         remove_insn.
17311         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
17312         shifts if it already fits into K08.
17314 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
17316         PR ipa/64730
17317         * ipa-inline.c (inline_small_functions): Print "unknown" even
17318         if edge->call_stmt is non-NULL, but has builtins or unknown
17319         location.
17321         PR middle-end/64421
17322         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
17323         with asterisk, skip the first character.
17325 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
17327         PR target/64806
17328         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
17329         order change.
17331 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
17333         PR target/64795
17334         * config/i386/i386.md (*movdi_internal): Also check operand 0
17335         to determine TYPE_LEA operand.
17336         (*movsi_internal): Ditto.
17338 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
17340         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
17341         OPTION_MASK_QUAD_MEMORY_ATOMIC.
17343 2015-01-26  Renlin Li  <renlin.li@arm.com>
17345         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
17346         the comment.
17347         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
17348         for higher part.
17350 2015-01-26  Richard Biener  <rguenther@suse.de>
17352         PR middle-end/64764
17353         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
17354         combining two BIT_AND_EXPR predicates.
17356 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
17358         PR bootstrap/64754
17359         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
17361 2015-01-26  Terry Guo  <terry.guo@arm.com>
17363         * config/arm/arm.c (arm_file_start): Update the assignment of
17364         Tag_ABI_HardFP_use.
17366 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
17368         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
17369         pipeline model.
17370         config/arm/arm.md: Include the new Cortex-A57 model.
17371         (generic_sched): Don't use generic_sched when tuning for
17372         Cortex-A57.
17374 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
17375             Uros Bizjak  <ubizjak@gmail.com>
17377         * config/i386/i386.c (get_builtin_code_for_version): Add
17378         support for BMI and BMI2 multiversion functions.
17380 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17382         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
17383         (extract_bit_field): Likewise.
17384         (extract_low_bits): Likewise.
17385         (expand_mult): Likewise.
17386         (expand_mult_highpart_adjust): Likewise.
17388 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
17390         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
17391         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
17392         * config/i386/i386.c (processor_model): Add
17393         M_INTEL_COREI7_BROADWELL.
17394         (arch_names_table): Add "broadwell".
17396 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
17398         PR target/49263
17399         PR target/53987
17400         PR target/64345
17401         PR target/59533
17402         PR target/52933
17403         PR target/54236
17404         PR target/51244
17405         * config/sh/sh-protos.h
17406         (sh_extending_set_of_reg::can_use_as_unextended_reg,
17407         sh_extending_set_of_reg::use_as_unextended_reg,
17408         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
17409         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
17410         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
17411         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
17412         (sh_treg_insns): New class.
17413         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
17414         (scope_counter): New class.
17415         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
17416         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
17417         sh_extending_set_of_reg::can_use_as_unextended_reg,
17418         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
17419         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
17420         sh_split_treg_set_expr): New functions.
17421         (addsubcosts): Handle treg_set_expr.
17422         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
17423         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
17424         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
17425         (sh_insn_operands_modified_between_p): Make non-static.
17426         * config/sh/predicates.md (zero_extend_movu_operand): Allow
17427         simple_mem_operand in addition to displacement_mem_operand.
17428         (zero_extend_operand): Don't allow zero_extend_movu_operand.
17429         (treg_set_expr, treg_set_expr_not_const01,
17430         arith_reg_or_treg_set_expr): New predicates.
17431         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
17432         arith_or_int_operand instead of logical_operand.  Convert to
17433         insn_and_split.  Try to optimize constant operand in splitter.
17434         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
17435         (*tstqi_t_zero): Delete.
17436         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
17437         (tstsi_t_and_not): Delete.
17438         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
17439         Convert to insn_and_split.
17440         (unnamed split, tstsi_t_zero_extract_xor,
17441         tstsi_t_zero_extract_subreg_xor_little,
17442         tstsi_t_zero_extract_subreg_xor_big): Delete.
17443         (*tstsi_t_shift_mask): New insn_and_split.
17444         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
17445         to recombine with surrounding insns when splitting.
17446         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
17447         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
17448         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
17449         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
17450         (*cbranch_div0s: Delete.
17451         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
17452         Try to recombine with surrounding insns when splitting.  Add operand
17453         order variants.
17454         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
17455         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
17456         *addc_r_r_msb, *addc_2r_msb): Delete.
17457         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
17458         order variant.
17459         (*addc_negreg_t): New insn_and_split.
17460         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
17461         Try to recombine with surrounding insns when splitting.
17462         Add operand order variants.
17463         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
17464         insn_and_split patterns.
17465         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
17466         surrounding insns when splitting.
17467         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
17468         (*rotcl): Likewise.  Add zero_extract variant.
17469         (*ashrsi2_31): New insn_and_split.
17470         (*negc): Convert to insn_and_split.  Use treg_set_expr.
17471         (*zero_extend<mode>si2_disp_mem): Update comment.
17472         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
17473         condition.
17474         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
17475         with surrounding insns when splitting.
17476         (any_treg_expr_to_reg): New insn_and_split.
17477         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
17478         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
17479         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
17480         *zero_extract_2): New single bit zero extract patterns.
17481         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
17482         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
17483         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
17484         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
17485         set destination.
17486         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
17487         register_operand for set source.
17489 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
17491         * i386.opt (prefetch_sse): New targetsave.
17492         * i386.c (ix86_function_specific_save): Save prefetch_sse.
17493         (ix86_function_specific_restore): Restore prefetch_sse and initialize
17494         ix86_cost/ix86_tune_cost.
17496 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
17498         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
17499         Support the JIT by using 0 as the language type.
17501 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
17503         PR target/64317
17504         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
17505         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
17506         (mark_regno_live, process_bb_lives): Pass new parameter value to
17507         make_hard_regno_born.
17509 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
17511         PR rtl-optimization/63637
17512         PR rtl-optimization/60663
17513         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
17514         if elt->cost is MAX_COST for ASM_OPERANDS.
17515         (find_sets_in_insn): Fix up comment typo.
17516         (cse_insn): Don't set src_volatile for all non-volatile
17517         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
17518         or with "memory" clobber.  Set elt->cost to MAX_COST
17519         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
17520         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
17522 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
17524         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
17525         alternative 1.
17527 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
17529         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
17530         libgcc/config/i386/elf-lib.h.
17532 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
17534         PR driver/64737
17535         * gcc.c (print_configuration): Don't print a blank line at the end
17536         here...
17537         (run_attempt): ... but here unstead.
17539         PR middle-end/64734
17540         * omp-low.c (scan_sharing_clauses): Don't ignore
17541         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
17542         on target data/update constructs.
17544 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17546         PR target/50928
17547         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
17548         (DEBUG_RELOAD): Removed define.
17549         (m32c_limit_reload_class): Enable traces with if DEBUG0.
17550         (m32c_function_arg): Added a type cast.
17551         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
17552         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
17553         * config/m32c/bitops.md (andqi3_16): Likewise.
17554         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
17555         (push_a01_l): Likewise.
17557 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
17559         PR jit/64721
17560         * main.c (main): Construct toplev instances with init_signals=true.
17561         * toplev.c (general_init): Add param "init_signals", and use it to
17562         conditionalize the calls to signal and host_hooks.extra_signals.
17563         (toplev::toplev): Add param "init_signals".
17564         (toplev::main): When invoking general_init, pass m_init_signals
17565         to control whether signal-handlers are installed.
17566         * toplev.h (toplev::toplev): Add param "init_signals".
17567         (toplev::m_init_signals): New field.
17569 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
17571         PR jit/64722
17572         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
17573         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
17574         latter may be affected by the former (e.g. on i686).
17576 2015-01-23  Martin Liska  <mliska@suse.cz>
17578         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
17579         false positive during profiledbootstrap.
17581 2015-01-23  Tom de Vries  <tom@codesourcery.com>
17583         PR libgomp/64672
17584         * lto-opts.c (lto_write_options): Output non-explicit conservative
17585         -fno-openacc.
17586         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
17587         (append_compiler_options): Pass -fopenacc through.
17589 2015-01-23  Tom de Vries  <tom@codesourcery.com>
17591         PR libgomp/64707
17592         * lto-opts.c (lto_write_options): Output non-explicit conservative
17593         -fno-openmp.
17594         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
17595         (append_compiler_options): Pass -fopenmp through.
17597 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
17599         PR debug/64511
17600         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
17601         GTY markup.
17603         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
17604         * diagnostic.def (DK_ICE_NOBT): New kind.
17605         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
17606         like DK_ICE, but never print backtrace.
17607         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
17608         (internal_error_no_backtrace): New function.
17609         * gcc.c (execute): Use internal_error_no_backtrace instead of
17610         internal_error.
17612 2015-01-22  Jeff Law  <law@redhat.com>
17614         PR target/52076
17615         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
17616         improve code density for small immediate to memory case.
17617         (insv): Better handle bitfield assignments when the field is
17618         being set to all ones.
17619         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
17620         operand predicate.
17622 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17623             Jakub Jelinek  <jakub@redhat.com>
17625         PR middle-end/64729
17626         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
17627         for !TARGET_LIBC_PROVIDES_SSP version and
17628         -fstack-protector-{all,strong,explicit} otherwise.
17629         * config/freebsd.h (LINK_SSP_SPEC): Handle
17630         -fstack-protector-{strong,explicit}.
17632 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
17633             H.J. Lu  <hongjiu.lu@intel.com>
17635         PR ipa/64694
17636         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
17637         heap.
17639 2015-01-22  Wei Mi  <wmi@google.com>
17641         PR rtl-optimization/64557
17642         * dse.c (record_store): Call get_addr for mem_addr.
17643         (check_mem_read_rtx): Likewise.
17645 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
17647         * fold-const.c (const_binop): Add early return for non-tcc_binary.
17649 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
17651         * toplev.c (init_local_tick): Process the failure when read
17652         fails for random_seed.
17654         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
17655         'pretty_name' to avoid memory overflow.
17657 2015-01-22  Richard Biener  <rguenther@suse.de>
17659         PR middle-end/64728
17660         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
17661         abnormal coalescing on undefined SSA names.
17663 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
17665         PR target/64688
17666         PR target/64477
17667         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
17668         for alternative 3.
17669         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
17671 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
17673         PR middle-end/63325
17674         * fold-const.c (fold_checksum_tree): Don't include value of
17675         expr->decl_with_vis.symtab_node in the checksum.
17677 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17679         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
17681 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
17683         PR driver/64690
17684         * gcc.c (insert_comments): New function.
17685         (try_generate_repro): Call it.
17686         (append_text): Removed.
17688 2015-01-22  Richard Biener  <rguenther@suse.de>
17690         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
17691         with IL incompatible options.  Properly honor user optimize
17692         attributes.
17694 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
17696         PR rtl-optimization/64682
17697         * combine.c (distribute_notes): When moving a death note for
17698         a register that is set in the new I2, make sure to put it
17699         before that new I2.
17701 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
17703         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
17704         not TARGET_DEFAULT.
17706 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
17708         PR debug/64511
17709         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
17710         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
17711         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
17713         PR sanitizer/64706
17714         * doc/invoke.texi (-fsanitize=vptr): Document.
17716         PR rtl-optimization/62078
17717         * dse.c: Include cfgcleanup.h.
17718         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
17719         anything call purge_all_dead_edges and cleanup_cfg at the end
17720         of the pass.
17722 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
17724         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
17725         edges.
17727 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17729         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
17730         decl attribute.
17732 2015-01-21  David Sherwood  <david.sherwood@arm.com>
17733             Tejas Belagod <Tejas.Belagod@arm.com>
17735         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
17736         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
17737         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
17738         Removed.
17740 2015-01-21  David Sherwood  <david.sherwood@arm.com>
17741             Tejas Belagod <Tejas.Belagod@arm.com>
17743         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
17744         (aarch64_reverse_mask): New decls.
17745         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
17746         (insn_count): New mode_attr.
17747         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
17748         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
17749         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
17750         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
17751         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
17752         (aarch64_simd_st4): New patterns.
17753         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
17754         (aarch64_reverse_mask): New functions.
17756 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
17758         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
17759         Declare.
17760         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
17761         addressing modes for BE.
17762         (aarch64_print_operand): Add 'R' specifier.
17763         (aarch64_simd_disambiguate_copy): Delete.
17764         (aarch64_simd_emit_reg_reg_move): New function.
17765         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
17766         in define_splits for structural moves.
17767         (mov<mode>): Use less restrictive predicates.
17768         (*aarch64_mov<mode>): Simplify and only allow for LE.
17769         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
17771 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
17773         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
17775 2015-01-21  Richard Henderson  <rth@redhat.com>
17777         PR target/64669
17778         * ccmp.c (used_in_cond_stmt_p): Remove.
17779         (expand_ccmp_expr): Don't use it.
17781 2015-01-21  Nick Clifton  <nickc@redhat.com>
17783         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
17784         PARALLELs.
17786 2015-01-21  Richard Biener  <rguenther@suse.de>
17788         PR middle-end/64313
17789         * tree-core.h (builtin_info, builtin_info_type): Turn from
17790         an object with two arrays into an array of an object with
17791         decl and two flags, implicit_p and declared_p.
17792         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
17793         set_builtin_decl, set_builtin_decl_implicit_p,
17794         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
17795         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
17796         * builtins.c (builtin_info): Adjust.
17797         * gimplify.c (gimplify_addr_expr): References to builtins
17798         that have been declared by the user makes them eligible for
17799         use by the compiler.  Call set_builtin_decl_implicit_p on them.
17801 2015-01-20  Jeff Law  <law@redhat.com>
17803         PR target/59946
17804         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
17805         allow pc-relative addresses in operand predicates or constraints.
17807 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
17809         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
17810         neon on aarch32 processors for stringops.
17812 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
17814         PR ipa/63576
17815         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
17817 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
17819         PR lto/45375
17820         * ipa-inline.c: Include lto-streamer.h
17821         (report_inline_failed_reason): Output source file differences and
17822         flags on optimization/target node mismatch.
17823         (can_inline_edge_p): Consider caller to be the outer inline function;
17824         be less restrictive about matching opimize and optimize_size attributes.
17825         (inline_account_function_p): Break out from ...
17826         (inline_small_functions): ... here.
17827         * ipa-inline-transform.c (clone_inlined_nodes): Use
17828         inline_account_function_p.
17829         (inline_call): Use optimize attribution; use inline_account_function_p.
17830         (inline_transform): Use opt_for_fn.
17831         * ipa-inline.h (inline_account_function_p): Declare.
17833 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
17835         PR debug/64663
17836         * dwarf2out.c (decl_piece_node): Don't put bitsize into
17837         mode if bitsize <= 0.
17838         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
17839         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
17840         sizes and positions.
17842 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
17844         * config/nios2/nios2.c (nios2_asm_file_end): Implement
17845         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
17846         needed.
17847         (TARGET_ASM_FILE_END): Define.
17849 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17851         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
17852         (struct tune_params): Use the enum.
17853         * arm.c (arm_*_tune): Update.
17854         (arm_option_override): Update.
17856 2015-01-20  Richard Biener  <rguenther@suse.de>
17858         PR ipa/64684
17859         * ipa-reference.c (add_static_var): Inline ...
17860         (analyze_function): ... here after splitting out from ...
17861         (is_proper_for_analysis): ... this.
17863 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
17865         PR target/64149
17866         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
17867         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
17868         replace the conditional with it's true branch.
17869         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
17870         (arm_lra_p): Remove.
17872 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
17874         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
17876 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17878         * config/tilegx/mul-tables.c: Move symtab.h include after
17879         coretypes.h include.
17880         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
17881         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
17882         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
17883         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
17884         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
17886 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
17888         PR bootstrap/64676
17889         Revert:
17890         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
17892         PR rtl-optimization/64081
17893         * loop-iv.c (def_pred_latch_p): New function.
17894         (latch_dominating_def): Allow specific cases with non-single
17895         definitions.
17896         (iv_get_reaching_def): Likewise.
17897         (check_complex_exit_p): New function.
17898         (check_simple_exit): Use check_complex_exit_p to allow certain cases
17899         with exits not executing on any iteration.
17901 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
17903         PR lto/45375
17904         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
17905         to set branch cost.
17907 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
17909         PR lto/45375
17910         * i386.c (gate): Check flag_expensive_optimizations and
17911         optimize_size.
17912         (ix86_option_override_internal): Drop optimize_size condition
17913         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
17914         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
17915         MASK_PREFER_AVX128.
17916         (ix86_avx256_split_vector_move_misalign,
17917         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
17918         * sse.md (all uses of TARGET_PREFER_AVX128): Add
17919         optimize_insn_for_speed_p check.
17921 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
17923         * config/mips/mips.h (FP_ASM_SPEC): New define.
17924         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
17925         instead.
17927 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
17929         PR target/53988
17930         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
17931         nullptr for insn when reaching the first insn.
17932         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
17933         (sh_insn_operands_modified_between_p): Add nullptr check.
17934         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
17935         sign extending mem load if the insn contains any UNSPEC or
17936         UNSPEC_VOLATILE.
17938 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
17940         * params.def (inline-unit-growth): Drop to 15%.
17941         * invoke.texi (inline-unit-growth): Document change.
17943 2015-01-19  Martin Liska  <mliska@suse.cz>
17945         PR ipa/64668
17946         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
17947         function for second argument of OBJ_TYPE_REF.
17949 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
17951         PR ipa/64218
17952         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
17953         whether function is an alias.
17955 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
17957         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
17958         cases.
17960 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
17962         PR rtl-optimization/64671
17963         * lra-remat.c (operand_to_remat): Don't consider jump and call
17964         insns.
17966 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
17968         PR target/59828
17969         * config/rs6000/default64.h: Include rs6000-cpus.def.
17970         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
17971         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
17972         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
17973         and POWER8.
17974         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
17975         POWER8.
17976         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
17977         pseudo-op to specify assembler dialect.
17979 2015-01-19  Martin Liska  <mliska@suse.cz>
17981         PR ipa/64664
17982         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
17983         Handle safe potentially removed nodes during filtering.
17985 2015-01-19  Martin Liska  <mliska@suse.cz>
17987         * doc/extend.texi (no_icf): Add new attribute description.
17988         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
17989         where the pass attempts to merge a function with no_icf attribute.
17991 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17993         PR target/64532
17994         * doc/md.texi (ARM Options): Document register constraints.
17996 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
17997             Andrew Pinski  <apinski@cavium.com>
17999         PR target/64304
18000         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
18001         (ashl<mode>3): Don't expand if operands[2] is not constant.
18003 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18005         PR target/64448
18006         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
18007         Match xor-and-xor RTL pattern.
18009 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
18011         PR rtl-optimization/64081
18012         * loop-iv.c (def_pred_latch_p): New function.
18013         (latch_dominating_def): Allow specific cases with non-single
18014         definitions.
18015         (iv_get_reaching_def): Likewise.
18016         (check_complex_exit_p): New function.
18017         (check_simple_exit): Use check_complex_exit_p to allow certain cases
18018         with exits not executing on any iteration.
18020 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
18022         * common.opt (fgraphite): Fix a typo.
18024 2015-01-19  Felix Yang  <felix.yang@huawei.com>
18026         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
18027         pattern.
18028         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
18029         uminp, smax_nanp, smin_nanp): New builtins.
18030         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
18031         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
18032         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
18033         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
18034         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
18035         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
18036         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
18037         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
18038         vpminnms_f32): Rewrite using builtin functions.
18040 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
18042         PR libgomp/64625
18043         * omp-low.c (offload_symbol_decl): Remove variable.
18044         (get_offload_symbol_decl): Remove function.
18045         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
18046         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
18047         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
18048         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
18049         BUILT_IN_GOACC_UPDATE don't pass it at all.
18051 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
18053         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
18054         callers.
18056 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
18058         * ipa-chkp.c (chkp_produce_thunks): Add early param
18059         to split thunks production into two passes.  Keep
18060         'always_inline' function bodies after the first pass.
18061         (pass_data_ipa_chkp_early_produce_thunks): New.
18062         (pass_ipa_chkp_early_produce_thunks): New.
18063         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
18064         chkp_produce_thunks signature.
18065         (make_pass_ipa_chkp_early_produce_thunks): New.
18066         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
18067         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
18068         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
18070 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
18072         * cgraph.c (cgraph_node::dump): Dump profile flags.
18074 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
18076         PR target/64652
18077         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
18078         reg appear first in the parallel.
18080 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
18082         * ipa-reference.c (set_reference_optimization_summary,
18083         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
18084         disabled.
18085         (ignore_module_statics): New static var.
18086         (propagate_bits): If ipa-reference is disabled, do not look into local
18087         properties.
18088         (analyze_function): Disable analysis when ipa_reference is disabled.
18089         (generate_summary): Do not dump when reference is disabled;
18090         collect vars accessed from functions with ipa-reference disabled.
18091         (get_read_write_all_from_node): When ipa-reference is disabled, use the
18092         node flags.
18093         (gate): Enable for LTO.
18094         (ignore_edge_p): New function.
18095         (propagate): Skip functions w/o ipa-reference analysis.
18096         * optc-save-gen.awk: Handle optimize_debug correctly.
18097         * opth-gen.awk: Likewise.
18098         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
18099         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
18100         fira-share-save-slots, fira-share-spill-slots,
18101         fmodulo-sched-allow-regmoves, fpartial-inlining,
18102         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
18103         ftracer, ftree-parallelize-loops, fassociative-math,
18104         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
18105         Optimization
18106         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
18107         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
18108         Optimization.
18109         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
18110         Fix for IPA.
18112 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
18114         PR ipa/64378
18115         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
18116         flag correctly.
18117         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
18119 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
18121         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
18122         Remove duplicate option listings.
18124 2015-01-18  Felix Yang  <felix.yang@huawei.com>
18126         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
18127         (autofdo_source_profile::get_callsite_total_count,
18128         function_instance::get_function_instance_by_decl,
18129         string_table::get_index, string_table::get_index_by_decl,
18130         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
18131         Fix comment typos. Reformatting and minor code rearrangement.
18133 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
18135         * config/rs6000/rs6000.md (probe_stack): Delete.
18136         (probe_stack_address): New.
18138 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
18140         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
18141         to test for 32-bit ABIs, not !TARGET_POWERPC64.
18143 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
18145         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
18146         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
18147         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
18148         snafu.
18149         (rs6000_libcall_value): Use the new function.
18151 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
18153         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
18155 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
18157         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
18158         implement a more precise life analysis for it during backward scan.
18160 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
18162         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
18164 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
18166         PR rtl-optimization/52773
18167         * calls.c (emit_library_call_value): When pushing arguments use
18168         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
18169         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
18170         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
18172 2015-01-17  Jeff Law  <law@redhat.com>
18174         PR rtl-optimization/32790
18175         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
18176         not ZERO_EXTEND in SET_DESTs.
18178 2015-01-17  Alan Modra  <amodra@gmail.com>
18180         * cprop.c (do_local_cprop): Revert last change.
18182 2015-01-16  DJ Delorie  <dj@redhat.com>
18183             Nick Clifton  <nickc@redhat.com>
18185         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
18186         (addhi3_real): Likewise.  Fix [HL+0] syntax.
18187         (subqi3_real): Likewise.
18188         (subhi3_real): Likewise.
18189         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
18190         (cbranchhi4_real): Likewise.
18191         (cbranchhi4_real_inverted): Likewise.
18192         (cbranchsi4_real_lt): Likewise.
18193         (cbranchsi4_real_ge): Likewise.
18194         (cbranchsi4_real_ge): Likewise.
18195         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
18196         (sub<mode>3_virt): Likewise.
18197         (cbranchqi4_virt): Likewise.
18198         (cbranchhi4_virt): Likewise.
18199         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
18200         always use '[reg+imm]' even when imm is zero.
18201         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
18202         (rl78_general_operand): New.
18203         (rl78_nonimmediate_operand): New.
18204         (rl78_nonfar_operand): Use them.
18205         (rl78_nonfar_nonimm_operand): Likewise.
18206         (rl78_stack_based_mem): Fix.
18207         * config/rl78/constraints.md (Ibqi): New.
18208         (IBqi): New.
18209         (Wsa): New.
18210         (Wsf): New.
18211         (Cs1): Fix.
18212         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
18213         (iorqi3): Likewise.
18214         (xorqi3): Likewise.
18215         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
18217         * config/rl78/constrains (Qs8): New constraint.
18218         * config/rl78/rl78.c (rl78_flags_already_set): New function.
18219         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
18220         * config/rl78/rl78-real.md (update_Z): New attribute.
18221         Update patterns to set it.
18222         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
18223         shorter compare and branch sequence can be used.
18224         (cbranchhi4_real): Likewise.
18225         (cbranchhi4_real_inverted): Likewise.
18227         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
18228         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
18229         address space.
18230         * config/rl78/rl78.c (rl78_get_name_encoding): New.
18231         (rl78_option_override): Allow -mes0 only if C.
18232         (characterize_address): Support subregs of symbol_refs.
18233         (rl78_addr_space_address_mode): Move.  Add __near.
18234         (rl78_far_p): Likewise.
18235         (rl78_addr_space_pointer_mode): Likewise.
18236         (rl78_as_legitimate_address): Likewise.
18237         (rl78_addr_space_subset_p): Likewise.
18238         (rl78_addr_space_convert): Likewise.
18239         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
18240         symbols with -mes0.
18241         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
18242         addressing.
18243         (rl78_alloc_physical_registers_op1): Change logic to prefer
18244         symbol[BC] addressing.
18245         (frodata_section): New.
18246         (rl78_asm_init_sections): Initialize it.
18247         (rl78_select_section): Put __far readonly symbols in .frodata.
18248         (rl78_make_type_far): New.
18249         (rl78_insert_attributes): Force all readonly symbols to be
18250         __far when -mes0.
18251         (rl78_asm_out_integer): New.
18252         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
18253         * config/rl78/rl78.opt (-mes0): New.
18255         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
18256         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
18257         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
18258         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
18259         (rl78_saddr_p): New.
18260         (rl78_output_aligned_common): New.
18261         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
18262         (rl78_handle_saddr_attribute): New.
18263         (rl78_handle_naked_attribute): New.
18264         (rl78_attribute_table): Add saddr.
18265         (rl78_print_operand_1): Don't print '!' on saddr operands.
18266         (rl78_print_operand_1): Strip encodings.
18267         (rl78_sfr_p): New.
18268         (rl78_strip_name_encoding): New.
18269         (rl78_attrlist_to_encoding): New.
18270         (rl78_encode_section_info): New.
18271         (rl78_asm_init_sections): New.
18272         (rl78_select_section): New.
18273         (rl78_output_labelref): New.
18274         (rl78_output_aligned_common): New.
18275         (rl78_asm_out_integer): New.
18276         (rl78_asm_ctor_dtor): New.
18277         (rl78_asm_constructor): New.
18278         (rl78_asm_destructor): New.
18280         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
18281         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
18282         (transcode_memory_rtx): Update.
18283         (rl78_expand_epilogue): Use A_REG instead of 0.
18285 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18287         * config/arm/arm-protos.h (struct tune_params): New field
18288         sched_autopref_queue_depth.
18289         * config/arm/arm.c (sched-int.h): Include header.
18290         (arm_first_cycle_multipass_dfa_lookahead_guard,)
18291         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
18292         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
18293         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
18294         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
18295         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
18296         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
18297         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
18298         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
18299         * config/arm/t-arm (arm.o): Update.
18300         * haifa-sched.c (update_insn_after_change): Update.
18301         (rank_for_schedule): Use auto-prefetcher model, if requested.
18302         (autopref_multipass_init): New static function.
18303         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
18304         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
18305         variable for debug dumps.
18306         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
18307         (autopref_multipass_dfa_lookahead_guard): New global function that
18308         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
18309         (init_h_i_d): Update.
18310         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
18311         * sched-int.h (enum autopref_multipass_data_status): New const enum.
18312         (autopref_multipass_data_): Structure for auto-prefetcher data.
18313         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
18314         (struct _haifa_insn_data:autopref_multipass_data): New field.
18315         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
18316         (autopref_multipass_dfa_lookahead_guard): Declare.
18318 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18320         * rtlanal.c (get_base_term): Handle SCRATCH.
18322 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18324         * config/aarch64/aarch64.c
18325         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
18326         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
18327         * config/arm/arm.c
18328         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
18329         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
18331 2015-01-17  Alan Modra  <amodra@gmail.com>
18333         * cprop.c (do_local_cprop): Disallow replacement of fixed
18334         hard registers.
18336 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18338         PR target/62066
18339         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
18340         early return 0.
18342 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18344         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
18345         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
18347 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18349         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
18350         * config/arm/thumb1.md: ... Here.
18352 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
18354         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
18355         TImode for TARGET_32BIT.
18357 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
18359         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
18360         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
18361         as ...
18362         (rs6000_abi_word_mode): New function.
18364 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
18366         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
18367         instead of UNITS_PER_WORD to describe the size of stack slots.
18369 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
18371         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
18372         as rs6000_promote_function_mode.  Move comment to there.
18373         (rs6000_promote_function_mode): New function.
18375 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
18377         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
18378         -mpowerpc64 is active.
18380 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
18382         PR middle-end/64353
18383         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
18384         virtuals on start.
18386 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
18388         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
18389         introduced in revision 219724.
18391 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18392             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18394         PR target/64263
18395         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
18396         destination is not a GP reg.
18397         (*movdi_aarch64): Likewise.
18399 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
18401         PR target/64623
18402         * config/rs6000/default64.h: Revert ISA change.
18404 2015-01-16  Richard Biener  <rguenther@suse.de>
18406         PR middle-end/64614
18407         * tree-ssa-uninit.c: Include tree-cfg.h.
18408         (MAX_SWITCH_CASES): New define.
18409         (convert_control_dep_chain_into_preds): Handle switch statements.
18410         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
18411         (normalize_one_pred_1): Do not split bit-manipulations.
18412         Record (x & CST).
18414 2015-01-16  Richard Biener  <rguenther@suse.de>
18416         PR tree-optimization/64568
18417         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
18418         complex load rewriting for TARGET_MEM_REFs.
18420 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
18422         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
18424 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
18426         PR target/64149
18427         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
18428         variable.
18429         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
18430         (aarch64_lra_p): Remove.
18432 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
18434         PR target/64363
18435         * ipa-chkp.h (chkp_instrumentable_p): New.
18436         * ipa-chkp.c: Include tree-inline.h.
18437         (chkp_instrumentable_p): New.
18438         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
18439         Fix processing of not instrumentable functions.
18440         (chkp_versioning): Use chkp_instrumentable_p. Warn about
18441         not instrumentable functions.
18442         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
18443         chkp_instrumentable_p.
18444         * tree-inline.h (copy_forbidden): New.
18445         * tree-inline.c (copy_forbidden): Not static anymore.
18447 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18449         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
18450         ptr1, ptr2 unused.
18452 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
18454         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
18455         type OP_OUT to OP_INOUT.
18457 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
18459         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
18460         (high x) y) to y if x and y have the same base.
18462 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
18464         * config/arm/cortex-a57.md: New.
18465         * config/aarch64/aarch64.md: Include it.
18466         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
18467         * config/aarch64/aarch64-tune.md: Regenerate.
18469 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
18471         PR target/64015
18472         * ccmp.c (expand_ccmp_next): New function.
18473         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
18474         and compare insn sequence.
18475         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
18476         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
18477         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
18478         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
18479         (*ccmp_ior): Changed to ccmp_ior<mode>.
18480         (cmp<mode>): New pattern.
18481         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
18482         parameters.
18483         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
18485 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
18487         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
18488         _mm256_bsrli_epi128): New.
18489         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
18491 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
18493         * expmed.c (store_bit_field_using_insv): Improve warning message.
18494         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
18496 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
18498         PR rtl-optimization/64011
18499         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
18500         there is partial overflow.
18502 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
18504         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
18505         prototype.
18506         (nds32_expand_epilogue_v3pop): Likewise.
18507         * config/nds32/nds32.md (sibcall): Define this for sibling call
18508         optimization.
18509         (sibcall_register): Likewise.
18510         (sibcall_immediate): Likewise.
18511         (sibcall_value): Likewise.
18512         (sibcall_value_register): Likewise.
18513         (sibcall_value_immediate): Likewise.
18514         (sibcall_epilogue): Likewise.
18515         (epilogue): Pass false to indicate this is not a sibcall epilogue.
18516         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
18517         (nds32_expand_epilogue_v3pop): Likewise.
18519 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
18521         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
18522         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
18523         (return_internal): New.
18524         (return): Define this named pattern.
18525         (simple_return): Define this named pattern.
18526         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
18527         pattern instead of unspec_volatile_func_return.
18528         (nds32_expand_epilogue_v3pop): Likewise.
18529         (nds32_can_use_return_insn): New function.
18531 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
18533         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
18534         * config/nds32/nds32.md (pop25return): New.
18535         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
18536         pop25return pattern.
18538 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
18540         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
18541         -mforbid-fp-as-gp, and -mex9 options.
18543 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
18545         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
18546         remove -mgp-direct option.
18548 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
18550         * doc/invoke.texi (--param early-inlining-insns): Update default value.
18551         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
18553 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
18555         * ipa-inline.c (inline_small_functions): Work around hints
18556         cache issue.
18558 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
18560         PR target/59710
18561         * doc/invoke.texi (Option Summary): Document new Nios II
18562         -mgpopt= syntax.
18563         (Nios II Options): Likewise.
18564         * config/nios2/nios2.opt: Add -mgpopt= option support.
18565         Modify existing -mgpopt and -mno-gpopt options to be aliases.
18566         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
18567         * config/nios2/nios2.c (nios2_option_override): Adjust
18568         -mgpopt defaulting.
18569         (nios2_in_small_data_p): Return true for explicit small data
18570         sections even with -G0.
18571         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
18572         option choices.
18574 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
18576         PR ipa/64612
18577         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
18578         of comdat locals.
18579         (inline_call): Fix removal of aliases.
18581 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
18583         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
18584         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
18585         * opts.c (common_handle_option): Add -fsanitize=vptr.
18586         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
18587         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
18588         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
18589         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
18590         (ubsan_expand_vptr_ifn): New prototype.
18591         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
18592         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
18593         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
18594         expand_LOOP_VECTORIZED): Make argument nameless, remove
18595         ATTRIBUTE_UNUSED.
18596         (expand_UBSAN_VPTR): New function.
18597         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
18598         in fn spec.
18599         (UBSAN_VPTR): New internal function.
18600         * sanopt.c (tree_map_traits): Renamed to ...
18601         (sanopt_tree_map_traits): ... this.
18602         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
18603         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
18604         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
18605         (maybe_optimize_ubsan_vptr_ifn): New function.
18606         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
18607         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
18608         -fsanitize=vptr.
18609         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
18610         internal calls like pure functions for aliasing, even when they
18611         have other side-effects that prevent making them ECF_PURE.
18612         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
18613         (ubsan_expand_vptr_ifn): New function.
18615 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
18617         PR rtl-optimization/64110
18618         * stmt.c (parse_output_constraint): Process '^' and '$'.
18619         (parse_input_constraint): Ditto.
18620         * lra-constraints.c (process_alt_operands): Process the new
18621         constraints.
18622         * ira-costs.c (record_reg_classes): Process the new constraint
18623         '^'.
18624         * genoutput.c (indep_constraints): Add '^' and '$'.
18625         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
18626         * doc/md.texi: Add description of the new constraints.
18628 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
18629             Bernd Schmidt  <bernds@codesourcery.com>
18630             Cesar Philippidis  <cesar@codesourcery.com>
18631             James Norris  <jnorris@codesourcery.com>
18632             Tom de Vries  <tom@codesourcery.com>
18633             Ilmir Usmanov  <i.usmanov@samsung.com>
18634             Dmitry Bocharnikov  <dmitry.b@samsung.com>
18635             Evgeny Gavrin  <e.gavrin@samsung.com>
18636             Jakub Jelinek  <jakub@redhat.com>
18638         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
18639         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
18640         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
18641         New function types.
18642         * builtins.c: Include "gomp-constants.h".
18643         (expand_builtin_acc_on_device): New function.
18644         (expand_builtin, is_inexpensive_builtin): Handle
18645         BUILT_IN_ACC_ON_DEVICE.
18646         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
18647         New macros.
18648         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
18649         flag_openmp.
18650         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
18651         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
18652         i386/intelmic-offload.h.
18653         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
18654         to libgomp and its dependencies.
18655         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
18656         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
18657         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
18658         * config/ia64/hpux.h (LIB_SPEC): Likewise.
18659         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
18660         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
18661         * doc/generic.texi: Update for OpenACC changes.
18662         * doc/gimple.texi: Likewise.
18663         * doc/invoke.texi: Likewise.
18664         * doc/sourcebuild.texi: Likewise.
18665         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
18666         GF_OMP_FOR_KIND_OACC_LOOP.
18667         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
18668         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
18669         GF_OMP_TARGET_KIND_OACC_UPDATE,
18670         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
18671         Dump more data.
18672         * gimple.c: Update comments for OpenACC changes.
18673         * gimple.def: Likewise.
18674         * gimple.h: Likewise.
18675         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
18676         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
18677         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
18678         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
18679         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
18680         appropriate place.
18681         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
18682         * gimplify.c: Include "gomp-constants.h".
18683         Update comments for OpenACC changes.
18684         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
18685         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
18686         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
18687         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
18688         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
18689         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
18690         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
18691         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
18692         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
18693         OMP_CLAUSE_SEQ.
18694         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
18695         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
18696         OMP_CLAUSE_SET_MAP_KIND.
18697         (gimplify_oacc_cache): New function.
18698         (gimplify_omp_for): Handle OACC_LOOP.
18699         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
18700         OACC_DATA.
18701         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
18702         OACC_EXIT_DATA, OACC_UPDATE.
18703         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
18704         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
18705         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
18706         (gimplify_body): Consider flag_openacc next to flag_openmp.
18707         * lto-streamer-out.c: Include "gomp-constants.h".
18708         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
18709         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
18710         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
18711         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
18712         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
18713         (BUILT_IN_ACC_ON_DEVICE): New builtins.
18714         * omp-low.c: Include "gomp-constants.h".
18715         Update comments for OpenACC changes.
18716         (struct omp_context): Add reduction_map, gwv_below, gwv_this
18717         members.
18718         (extract_omp_for_data, use_pointer_for_field, install_var_field)
18719         (new_omp_context, delete_omp_context, scan_sharing_clauses)
18720         (create_omp_child_function, scan_omp_for, scan_omp_target)
18721         (check_omp_nesting_restrictions, lower_reduction_clauses)
18722         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
18723         Update for OpenACC changes.
18724         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
18725         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
18726         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
18727         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
18728         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
18729         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
18730         OMP_CLAUSE_MAP_*.
18731         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
18732         Handle GF_OMP_FOR_KIND_OACC_LOOP.
18733         (expand_omp_target, lower_omp_target): Handle
18734         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
18735         GF_OMP_TARGET_KIND_OACC_UPDATE,
18736         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
18737         GF_OMP_TARGET_KIND_OACC_DATA.
18738         (pass_expand_omp::execute, execute_lower_omp)
18739         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
18740         flag_openmp.
18741         (offload_symbol_decl): New variable.
18742         (oacc_get_reduction_array_id, oacc_max_threads)
18743         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
18744         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
18745         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
18746         (oacc_gimple_assign, oacc_initialize_reduction_data)
18747         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
18748         functions.
18749         (is_targetreg_ctx): Remove function.
18750         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
18751         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
18752         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
18753         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
18754         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
18755         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
18756         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
18757         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
18758         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
18759         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
18760         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
18761         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
18762         * tree-core.h: Update comments for OpenACC changes.
18763         (enum omp_clause_map_kind): Remove.
18764         (struct tree_omp_clause): Change type of map_kind member from enum
18765         omp_clause_map_kind to unsigned char.
18766         * tree-inline.c: Update comments for OpenACC changes.
18767         * tree-nested.c: Likewise.  Include "gomp-constants.h".
18768         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
18769         (convert_tramp_reference_stmt, convert_gimple_call): Update for
18770         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
18771         OMP_CLAUSE_SET_MAP_KIND.
18772         * tree-pretty-print.c: Include "gomp-constants.h".
18773         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
18774         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
18775         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
18776         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
18777         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
18778         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
18779         instead of OMP_CLAUSE_MAP_*.
18780         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
18781         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
18782         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
18783         * tree-streamer-in.c: Include "gomp-constants.h".
18784         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
18785         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
18786         * tree-streamer-out.c: Include "gomp-constants.h".
18787         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
18788         OMP_CLAUSE_MAP_*.
18789         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
18790         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
18791         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
18792         * tree.c (omp_clause_num_ops): Update accordingly.
18793         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
18794         Likewise.
18795         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
18796         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
18797         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
18798         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
18799         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
18800         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
18801         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
18802         (OMP_CLAUSE_SET_MAP_KIND): New macro.
18803         * varpool.c (varpool_node::get_create): Consider flag_openacc next
18804         to flag_openmp.
18805         * config/i386/intelmic-offload.h: New file.
18806         * config/nvptx/offload.h: Likewise.
18808 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18810         * explow.h: Remove duplicate contents.
18811         * dojump.h: Likewise.
18813 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
18815         * arm.c (arm_xgene_tune): Add default initializer for instruction
18816         fusion.
18818 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
18820         PR ipa/64068
18821         PR ipa/64559
18822         * ipa.c (symbol_table::remove_unreachable_nodes):
18823         Do not put abstract origins into boundary.
18825 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
18827         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
18828         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
18830 2015-01-15  Steve Ellcey  <sellcey@mips.com>
18832         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
18833         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
18834         builtins.def, and chkp-builtins.def.
18836 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
18838         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
18839         ISA 2.7 (POWER8).
18841 2015-01-15  Richard Biener  <rguenther@suse.de>
18843         PR tree-optimization/61743
18844         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
18845         information on PHIs for some simple cases.
18847 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18849         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
18850         Include xgene1.md.
18851         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
18852         * config/arm/arm-cores.def (xgene1): New entry.
18853         * config/arm/arm-tables.opt: Regenerate.
18854         * config/arm/arm-tune.md: Regenerate.
18855         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
18857 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
18859         * tree-if-conv.c: Include hash-map.h.
18860         (aggressive_if_conv): New variable.
18861         (fold_build_cond_expr): Add simplification of non-zero condition.
18862         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
18863         destination block is not always executed.
18864         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
18865         than two predecessors if AGGRESSIVE_IF_CONV is true.
18866         (if_convertible_stmt_p): Fix commentary.
18867         (all_preds_critical_p): New function.
18868         (has_pred_critical_p): New function.
18869         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
18870         BB can have more than two predecessors and all incoming edges can be
18871         critical.
18872         (predicate_bbs): Skip predication for loop exit block, use build2_loc
18873         to compute predicate for true edge.
18874         (find_phi_replacement_condition): Delete this function.
18875         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
18876         Allow interchange PHI arguments if EXTENDED is false.
18877         Change check that block containing reduction statement candidate
18878         is predecessor of phi-block since phi may have more than two arguments.
18879         (phi_args_hash_traits): New helper structure.
18880         (struct phi_args_hash_traits): New type.
18881         (phi_args_hash_traits::hash): New function.
18882         (phi_args_hash_traits::equal_keys): New function.
18883         (gen_phi_arg_condition): New function.
18884         (predicate_scalar_phi): Add handling of phi nodes with more than two
18885         arguments, delete COND and TRUE_BB arguments, insert body of
18886         find_phi_replacement_condition to predicate ordinary phi nodes.
18887         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
18888         delete call of find_phi_replacement_condition and invoke
18889         predicate_scalar_phi with two arguments.
18890         (insert_gimplified_predicates): Add assert that non-predicated block
18891         don't have statements to insert.
18892         (ifcvt_split_critical_edges): New function.
18893         (ifcvt_split_def_stmt): Likewise.
18894         (ifcvt_walk_pattern_tree): Likewise.
18895         (stmt_is_root_of_bool_pattern): Likewise.
18896         (ifcvt_repair_bool_pattern): Likewise.
18897         (ifcvt_local_dce): Likewise.
18898         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
18899         is copy of inner or outer loop force_vectorize field, invoke
18900         ifcvt_split_critical_edges, ifcvt_local_dce and
18901         ifcvt_repair_bool_pattern for aggressive if-conversion.
18903 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
18905         * config/aarch64/aarch64.md: Include xgene1.md.
18906         * config/aarch64/xgene1.md: New file.
18908 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18910         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
18911         xgene1 (APM XGene-1) core definition.
18912         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
18913         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
18914         * doc/invoke.texi: Document -mcpu=xgene1.
18916 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18918         * dojump.h: New header file.
18919         * explow.h: Likewise.
18920         * expr.h: Remove includes.
18921         Move expmed.c prototypes to expmed.h.
18922         Move dojump.c prototypes to dojump.h.
18923         Move alias.c prototypes to alias.h.
18924         Move explow.c prototypes to explow.h.
18925         Move calls.c prototypes to calls.h.
18926         Move emit-rtl.c prototypes to emit-rtl.h.
18927         Move varasm.c prototypes to varasm.h.
18928         Move stmt.c prototypes to stmt.h.
18929         (saved_pending_stack_adjust): Move to dojump.h.
18930         (adjust_address): Move to explow.h.
18931         (adjust_address_nv): Move to emit-rtl.h.
18932         (adjust_bitfield_address): Likewise.
18933         (adjust_bitfield_address_size): Likewise.
18934         (adjust_bitfield_address_nv): Likewise.
18935         (adjust_automodify_address_nv): Likewise.
18936         * explow.c (expr_size): Move to expr.c.
18937         (int_expr_size): Likewise.
18938         (tree_expr_size): Likewise.
18939         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18940         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
18941         * genemit.c (main): Generate includes statistics.h, real.h,
18942         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
18943         stmt.h.
18944         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
18945         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
18946         explow.h, emit-rtl.h, stmt.h.
18947         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
18948         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
18949         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
18950         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
18951         emit-rtl.h, varasm.h, stmt.h.
18952         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
18953         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
18954         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
18955         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
18956         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
18957         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
18958         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
18959         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
18960         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
18961         tm.h tree.h varasm.h vec.h wide-int.h.
18962         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
18963         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
18964         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
18965         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
18966         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
18967         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
18968         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
18969         * loop-iv.c: Likewise.
18970         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
18971         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
18972         statistics.h stmt.h tree.h varasm.h wide-int.h.
18973         * lra-constraints.c: Likewise.
18974         * lra-eliminations.c: Likewise.
18975         * lra-lives.c: Likewise.
18976         * lra-remat.c: Likewise.
18977         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
18978         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
18979         statistics.h stmt.h tree.h varasm.h wide-int.h.
18980         * hw-doloop.c: Likewise.
18981         * ira-color.c: Likewise.
18982         * ira-emit.c: Likewise.
18983         * loop-doloop.c: Likewise.
18984         * loop-invariant.c: Likewise.
18985         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
18986         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
18987         statistics.h stmt.h tree.h varasm.h wide-int.h.
18988         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
18989         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
18990         statistics.h stmt.h tree.h varasm.h wide-int.h.
18991         * combine-stack-adj.c: Likewise.
18992         * cse.c: Likewise.
18993         * ddg.c: Likewise.
18994         * ifcvt.c: Likewise.
18995         * ira-costs.c: Likewise.
18996         * jump.c: Likewise.
18997         * lra-coalesce.c: Likewise.
18998         * lra-spills.c: Likewise.
18999         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
19000         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
19001         stmt.h varasm.h wide-int.h.
19002         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
19003         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
19004         varasm.h.
19005         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
19006         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
19007         statistics.h stmt.h varasm.h wide-int.h.
19008         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
19009         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
19010         varasm.h wide-int.h.
19011         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
19012         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
19013         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
19014         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
19015         statistics.h stmt.h.
19016         * config/tilepro/tilepro.c: Likewise.
19017         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
19018         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
19019         * config/pdp11/pdp11.c: Likewise.
19020         * config/xtensa/xtensa.c: Likewise.
19021         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
19022         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
19023         varasm.h.
19024         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19025         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
19026         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
19027         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19028         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
19029         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
19030         * rtl-chkp.c: Likewise.
19031         * tree-chkp-opt.c: Likewise.
19032         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
19033         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
19034         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
19035         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19036         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
19037         statistics.h stmt.h.
19038         * tree-vect-data-refs.c: Likewise.
19039         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
19040         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19041         rtl.h statistics.h stmt.h varasm.h.
19042         * internal-fn.c: Likewise.
19043         * ipa-icf-gimple.c: Likewise.
19044         * lto-section-out.c: Likewise.
19045         * tree-data-ref.c: Likewise.
19046         * tree-nested.c: Likewise.
19047         * tree-outof-ssa.c: Likewise.
19048         * tree-predcom.c: Likewise.
19049         * tree-pretty-print.c: Likewise.
19050         * tree-scalar-evolution.c: Likewise.
19051         * tree-ssa-strlen.c: Likewise.
19052         * tree-vect-loop.c: Likewise.
19053         * tree-vect-patterns.c: Likewise.
19054         * tree-vect-slp.c: Likewise.
19055         * tree-vect-stmts.c: Likewise.
19056         * tsan.c: Likewise.
19057         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19058         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
19059         stmt.h.
19060         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
19061         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19062         statistics.h stmt.h varasm.h.
19063         * loop-unroll.c: Likewise.
19064         * ubsan.c: Likewise.
19065         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
19066         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
19067         stmt.h varasm.h.
19068         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19069         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
19070         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
19071         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
19072         statistics.h stmt.h.
19073         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
19074         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
19075         statistics.h stmt.h varasm.h.
19076         * gimple-match-head.c: Likewise.
19077         * lto-cgraph.c: Likewise.
19078         * lto-section-in.c: Likewise.
19079         * lto-streamer-in.c: Likewise.
19080         * lto-streamer-out.c: Likewise.
19081         * tree-affine.c: Likewise.
19082         * tree-cfg.c: Likewise.
19083         * tree-cfgcleanup.c: Likewise.
19084         * tree-if-conv.c: Likewise.
19085         * tree-into-ssa.c: Likewise.
19086         * tree-ssa-alias.c: Likewise.
19087         * tree-ssa-copyrename.c: Likewise.
19088         * tree-ssa-dse.c: Likewise.
19089         * tree-ssa-forwprop.c: Likewise.
19090         * tree-ssa-live.c: Likewise.
19091         * tree-ssa-math-opts.c: Likewise.
19092         * tree-ssa-pre.c: Likewise.
19093         * tree-ssa-sccvn.c: Likewise.
19094         * tree-tailcall.c: Likewise.
19095         * tree-vect-generic.c: Likewise.
19096         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19097         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
19098         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19099         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
19100         * varasm.c: Likewise.
19101         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19102         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
19103         varasm.h.
19104         * init-regs.c: Likewise.
19105         * ira.c: Likewise.
19106         * omp-low.c: Likewise.
19107         * stack-ptr-mod.c: Likewise.
19108         * tree-ssa-reassoc.c: Likewise.
19109         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19110         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
19111         varasm.h.
19112         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19113         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
19114         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19115         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
19116         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19117         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
19118         * tree-ssa-phiopt.c: Likewise.
19119         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19120         fixed-value.h hashtab.h real.h statistics.h stmt.h.
19121         * config/fr30/fr30.c: Likewise.
19122         * config/frv/frv.c: Likewise.
19123         * expr.c: Likewise.
19124         * final.c: Likewise.
19125         * optabs.c: Likewise.
19126         * passes.c: Likewise.
19127         * simplify-rtx.c: Likewise.
19128         * stmt.c: Likewise.
19129         * toplev.c: Likewise.
19130         * var-tracking.c: Likewise.
19131         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19132         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
19133         * lower-subreg.c: Likewise.
19134         * postreload-gcse.c: Likewise.
19135         * ree.c: Likewise.
19136         * reginfo.c: Likewise.
19137         * store-motion.c: Likewise.
19138         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19139         fixed-value.h hashtab.h real.h stmt.h varasm.h.
19140         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19141         fixed-value.h hashtab.h statistics.h stmt.h.
19142         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19143         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
19144         * except.c: Likewise.
19145         * explow.c: Likewise.
19146         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19147         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
19148         varasm.h.
19149         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19150         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
19151         * tree-ssa-structalias.c: Likewise.
19152         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19153         fixed-value.h insn-config.h real.h statistics.h.
19154         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19155         fixed-value.h insn-config.h real.h statistics.h stmt.h.
19156         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19157         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
19158         * cfgbuild.c: Likewise.
19159         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19160         fixed-value.h real.h rtl.h statistics.h stmt.h.
19161         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19162         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
19163         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19164         fixed-value.h real.h statistics.h stmt.h.
19165         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19166         fixed-value.h real.h statistics.h stmt.h varasm.h.
19167         * cprop.c: Likewise.
19168         * modulo-sched.c: Likewise.
19169         * postreload.c: Likewise.
19170         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
19171         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
19172         statistics.h stmt.h varasm.h.
19173         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
19174         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19175         rtl.h statistics.h stmt.h varasm.h.
19176         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
19177         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
19178         varasm.h.
19179         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
19180         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
19181         varasm.h.
19182         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
19183         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
19184         varasm.h.
19185         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
19186         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
19187         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
19188         function.h real.h statistics.h stmt.h varasm.h.
19189         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
19190         insn-config.h real.h statistics.h stmt.h.
19191         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
19192         statistics.h stmt.h.
19193         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
19194         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
19195         statistics.h stmt.h varasm.h.
19196         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
19197         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
19198         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
19199         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
19200         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
19201         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
19202         statistics.h stmt.h varasm.h.
19203         * ipa-polymorphic-call.c: Likewise.
19204         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
19205         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19206         statistics.h stmt.h.
19207         * config/c6x/c6x.c: Likewise.
19208         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
19209         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19210         statistics.h stmt.h varasm.h.
19211         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
19212         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
19213         stmt.h varasm.h.
19214         * ipa-split.c: Likewise.
19215         * tree-eh.c: Likewise.
19216         * tree-ssa-dce.c: Likewise.
19217         * tree-ssa-loop-niter.c: Likewise.
19218         * tree-vrp.c: Likewise.
19219         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
19220         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
19221         stmt.h.
19222         * config/nds32/nds32-fp-as-gp.c: Likewise.
19223         * config/nds32/nds32-intrinsic.c: Likewise.
19224         * config/nds32/nds32-isr.c: Likewise.
19225         * config/nds32/nds32-md-auxiliary.c: Likewise.
19226         * config/nds32/nds32-memory-manipulation.c: Likewise.
19227         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19228         * config/nds32/nds32-predicates.c: Likewise.
19229         * config/nds32/nds32.c: Likewise.
19230         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
19231         fixed-value.h hashtab.h real.h statistics.h.
19232         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
19233         fixed-value.h hashtab.h real.h statistics.h stmt.h.
19234         * config/arm/arm.c: Likewise.
19235         * config/avr/avr.c: Likewise.
19236         * config/bfin/bfin.c: Likewise.
19237         * config/h8300/h8300.c: Likewise.
19238         * config/i386/i386.c: Likewise.
19239         * config/ia64/ia64.c: Likewise.
19240         * config/iq2000/iq2000.c: Likewise.
19241         * config/m32c/m32c.c: Likewise.
19242         * config/m32r/m32r.c: Likewise.
19243         * config/m68k/m68k.c: Likewise.
19244         * config/mcore/mcore.c: Likewise.
19245         * config/mep/mep.c: Likewise.
19246         * config/mips/mips.c: Likewise.
19247         * config/mn10300/mn10300.c: Likewise.
19248         * config/moxie/moxie.c: Likewise.
19249         * config/pa/pa.c: Likewise.
19250         * config/rl78/rl78.c: Likewise.
19251         * config/rx/rx.c: Likewise.
19252         * config/s390/s390.c: Likewise.
19253         * config/sh/sh.c: Likewise.
19254         * config/sparc/sparc.c: Likewise.
19255         * config/spu/spu.c: Likewise.
19256         * config/stormy16/stormy16.c: Likewise.
19257         * config/v850/v850.c: Likewise.
19258         * config/vax/vax.c: Likewise.
19259         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
19260         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
19261         * config/msp430/msp430.c: Likewise.
19262         * predict.c: Likewise.
19263         * value-prof.c: Likewise.
19264         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
19265         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
19266         * config/microblaze/microblaze.c: Likewise.
19267         * config/nios2/nios2.c: Likewise.
19268         * config/rs6000/rs6000.c: Likewise.
19269         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
19270         insn-config.h real.h rtl.h statistics.h stmt.h.
19271         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
19272         insn-config.h real.h statistics.h stmt.h.
19273         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
19274         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
19275         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
19276         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
19277         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
19278         fixed-value.h real.h statistics.h stmt.h.
19279         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
19280         fixed-value.h statistics.h stmt.h.
19281         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
19282         stmt.h.
19284 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
19286         * gengtype.c (create_user_defined_type): Workaround
19287         -Wmaybe-uninitialized false positives.
19288         * cse.c (fold_rtx): Likewise.
19289         * loop-invariant.c (gain_for_invariant): Likewise.
19291 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
19293         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
19294         set the memory attributes in all cases but clear MEM_EXPR if need be.
19296 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
19298         PR tree-optimization/64434
19299         * cfgexpand.c (reorder_operands): New function.
19300         (expand_gimple_basic_block): Insert call of reorder_operands if
19301         optimized is true.
19303 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
19305         * config/mips/micromips.md (*swp): Remove explicit parallel.
19306         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
19307         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
19308         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
19309         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
19310         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
19311         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
19312         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
19313         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
19314         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
19315         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
19316         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
19317         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
19318         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
19319         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
19320         (mips_wrdsp): Likewise.
19321         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
19322         parallel.
19323         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
19324         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
19325         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
19326         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
19327         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
19328         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
19329         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
19330         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
19331         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
19333 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
19335         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
19336         (mips_print_operand): Support 'y' to print exact log2 in decimal
19337         of a const_int.
19338         * config/mips/mips.h (ISA_HAS_LSA): New define.
19339         (ISA_HAS_DLSA): Likewise.
19340         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
19341         * config/mips/predicates.md (const_immlsa_operand): New predicate.
19343 2015-01-15  Martin Liska  <mliska@suse.cz>
19345         PR target/64377
19346         * optc-save-gen.awk: Add support for array types.
19348 2015-01-15  Richard Biener  <rguenther@suse.de>
19350         PR middle-end/64365
19351         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
19352         for MEM_REF access functions with the same base can never partially
19353         overlap.
19355 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
19357         * common.opt: New option -fstack-protector-explicit.
19358         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
19359         (stack_protect_decl_phase): Handle stack_protect attribute for
19360         explicit stack protection requests.
19361         (expand_used_vars): Similarly.
19362         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
19363         * doc/extend.texi: Add documentation for "stack_protect" attribute.
19364         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
19366 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
19368         PR target/53988
19369         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
19370         reg-reg copies.
19371         (sh_extending_set_of_reg): New struct.
19372         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
19373         sh_remove_reg_dead_or_unused_notes): New Declarations.
19374         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
19375         sh_find_extending_set_of_reg, sh_split_tst_subregs,
19376         sh_extending_set_of_reg::use_as_extended_reg): New functions.
19377         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
19378         convert to insn_and_split and use new function sh_split_tst_subregs.
19380 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
19382         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
19383         option.
19384         (Optimization Options): Move -fuse-ld documentation to...
19385         (Link Options): ...here.
19387 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
19389         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
19390         offsets.
19391         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
19392         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
19393         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
19394         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
19395         instead of ZR for the memory operand of LL/SC.
19396         (compare_and_swap_12, sync_add<mode>): Likewise.
19397         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
19398         (sync_new_<optab>_12, sync_nand_12): Likewise.
19399         (sync_old_nand_12, sync_new_nand_12): Likewise.
19400         (sync_sub<mode>, sync_old_add<mode>): Likewise.
19401         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
19402         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
19403         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
19404         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
19405         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
19406         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
19407         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
19408         * doc/md.texi (ZC): Update description.
19410 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
19412         * builtins.c (expand_builtin_atomic_exchange): Remove error when
19413         memory model is CONSUME.
19414         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
19415         expand_builtin_atomic_store): Change invalid memory model errors to
19416         warnings.
19417         (expand_builtin_atomic_clear): Change invalid model errors to warnings
19418         and issue warning for CONSUME.
19420 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
19422         * lto-cgraph: Update function comments for
19423         lto_symtab_encoder_encode_*.
19425 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
19427         * Makefile.in (site.exp): Do not set ENABLE_LTO.
19429 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
19431         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
19432         * lto-cgraph.c (select_what_to_stream): Remove argument, use
19433         lto_stream_offload_p instead.
19434         * lto-streamer.h (select_what_to_stream): Remove argument.
19435         * passes.c (ipa_write_summaries): Likewise.
19436         * tree-pass.h (ipa_write_summaries): Likewise.
19438 2015-01-14  Richard Biener  <rguenther@suse.de>
19440         PR tree-optimization/59354
19441         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
19442         groups larger than the slp group size as having gaps.
19444 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
19446         PR middle-end/59448
19447         * builtins.c (get_memmodel): Promote consume to acquire always.
19449 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
19451         PR target/64386
19452         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
19453         V32HImode.
19455 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
19457         PR target/64393
19458         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
19459         Enable AVX512BW.
19460         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
19461         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
19462         AVX512VBMI, as it implies AVX512BW.
19464 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
19466         PR target/64387
19467         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
19468         (vec_unpacks_hi_v16sf): Ditto.
19470 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19472         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
19473         is not available.
19475 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19477         * doc/invoke.texi (mapcs): Mention deprecation.
19478         (mapcs-frame): Likewise.
19480 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19482         PR target/64453
19483         * config/arm/arm.c (callee_saved_reg_p): Define.
19484         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
19485         register is callee saved instead of !call_used_regs[reg].
19486         (thumb1_compute_save_reg_mask): Likewise.
19488 2015-01-14  Hale Wang  <hale.wang@arm.com>
19490         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
19491         Cortex-M7.
19493 2015-01-14  Richard Biener  <rguenther@suse.de>
19495         PR lto/64415
19496         * tree-inline.c (insert_debug_decl_map): Check destination
19497         function MAY_HAVE_DEBUG_STMTS.
19498         (insert_init_debug_bind): Likewise.
19499         (insert_init_stmt): Remove redundant check.
19500         (remap_gimple_stmt): Drop debug stmts if the destination
19501         function has var-tracking assignments disabled.
19503 2015-01-14  Martin Liska  <mliska@suse.cz>
19505         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
19506         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
19508 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19510         PR target/64460
19511         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
19512         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
19514 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
19516         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
19517         level from an ARCH; do not inject the default.
19518         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
19519         MIPS_ISA_LEVEL_SPEC.
19520         (MIPS_ISA_NAN2008_SPEC): Update comment.
19521         (BASE_DRIVER_SELF_SPECS): Likewise.
19522         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
19523         MIPS_DEFAULT_ISA_LEVEL_SPEC.
19524         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
19525         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
19526         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
19528 2015-01-14  Richard Biener  <rguenther@suse.de>
19530         PR tree-optimization/64493
19531         PR tree-optimization/64495
19532         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
19533         assign the proper vectorized PHI to the inner loop exit PHIs.
19535 2015-01-14  Joey Ye  <joey.ye@arm.com>
19537         * config/arm/arm.c (arm_compute_save_reg_mask):
19538         Do not save lr in case of tail call.
19539         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
19541 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
19543         * tree-vrp.c (check_array_ref): Emit more warnings
19544         for warn_array_bounds >= 2.
19545         * common.opt: New option -Warray-bounds=.
19546         * doc/invoke.texi: Document -Warray-bounds=.
19548 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
19550         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
19551         (mforbid-fp-as-gp): Remove.
19552         (mex9): Remove.
19553         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
19554         (nds32_symbol_load_store_p): Remove.
19555         (nds32_fp_as_gp_check_available): Clean up implementation.
19556         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
19557         cases.
19558         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
19559         fp-as-gp and ex9 cases.
19561 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
19563         * tree-profile.c (init_ic_make_global_vars): Drop workaround
19564         for bintuils bug 14342.
19565         (init_ic_make_global_vars): Likewise.
19566         (gimple_init_edge_profiler): Likewise.
19567         (gimple_gen_ic_func_profiler): Likewise.
19569 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
19571         * ipa-inline.c (inline_small_functions): Swap the operands in
19572         enum.
19574 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
19576         PR ipa/64481
19577         * ipa-inline-analysis.c (node_growth_cache): Remove.
19578         (initialize_growth_caches): Do not initialize it.
19579         (free_growth_caches): Do not free it.
19580         (do_estimate_growth): Rename to ...
19581         (estimate_growth): ... this one; drop growth cache code.
19582         (growth_likely_positive): Always go the heuristics way.
19583         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
19584         (reset_edge_caches): Do not reset node growth.
19585         (heap_edge_removal_hook): Do not maintain cache.
19586         (inline_small_functions): Likewise; strenghten sanity check.
19587         (ipa_inline): Do not maintain caches.
19588         * ipa-inline.h (node_growth_cache): Remove.
19589         (do_estimate_growth): Remove to ...
19590         (estimate_growth): this one; remove inline version.
19591         (reset_node_growth_cache): Remove.
19593 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
19595         PR ipa/64565
19596         * ipa-inline.c (inline_small_functions): Update callee keys after
19597         resolving speculation
19598         (inline_small_functions): Always check monotonicity of the queue.
19600 2015-01-13  Marek Polacek  <polacek@redhat.com>
19602         PR middle-end/64391
19603         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
19605 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
19607         PR rtl-optimization/64286
19608         * ree.c (combine_reaching_defs): Move part of comment earlier,
19609         remove !SCALAR_INT_MODE_P check.
19610         (add_removable_extension): Don't add vector mode
19611         extensions if all uses of the source register aren't the same
19612         vector extensions.
19614 2015-01-13  Renlin Li  <renlin.li@arm.com>
19616         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
19617         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
19619 2015-01-13  Martin Liska  <mliska@suse.cz>
19621         * ipa-icf.c (sem_function::equals_private): Call new functions
19622         cl_target_option_print_diff and cl_optimization_print_diff.
19623         * optc-save-gen.awk (cl_target_option_print_diff): New function.
19624         (cl_optimization_print_diff): Likewise.
19625         * opth-gen.awk: Likewise.
19627 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
19629         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
19630         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
19631         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
19632         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
19633         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
19634         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
19636 2015-01-13  Andrew Pinski  <apinski@cavium.com>
19638         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
19639         instead of src mode.
19641 2015-01-13  Richard Biener  <rguenther@suse.de>
19643         PR lto/64373
19644         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
19645         DECL_CONTEXT.
19647 2015-01-13  Andrew Pinski  <apinski@cavium.com>
19649         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
19650         volatile mems.
19651         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
19653 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
19655         PR middle-end/63974
19656         * cfgexpand.c (expand_computed_goto): Don't call
19657         convert_memory_address here.
19659 2015-01-13  Richard Biener  <rguenther@suse.de>
19661         PR tree-optimization/64406
19662         * tree-loop-distibution.c (pass_loop_distribution::execute):
19663         Reset the SCEV hashtable if we distributed anything.
19665 2015-01-13  Richard Biener  <rguenther@suse.de>
19667         PR tree-optimization/64404
19668         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
19669         SLP types for CSEd loads.
19671 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19673         PR tree-optimization/64436
19674         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
19675         merge of two symbolic numbers for a bitwise OR to ...
19676         (perform_symbolic_merge): This. Also fix computation of the range and
19677         end of the symbolic number corresponding to the result of a bitwise OR.
19679 2015-01-13  Richard Biener  <rguenther@suse.de>
19681         PR tree-optimization/64568
19682         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
19683         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
19685 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
19687         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
19688         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
19690 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
19692         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
19693         target-specific symbol_ref flag.
19694         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
19695         resides in rodata section.
19696         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
19697         (nds32_encode_section_info): New function.
19699 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
19701         * config/nds32/nds32.md (call): Use pseudo instruction bal which
19702         clobbers TA_REGNUM if large code model is specified.
19703         (call_register): Likewise.
19704         (call_immediate): Likewise.
19705         (call_value): Likewise.
19706         (call_value_register): Likewise.
19707         (call_value_immediate): Likewise.
19709 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
19711         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
19712         (TARGET_CMODEL_MEDIUM): New macro.
19713         (TARGET_CMODEL_LARGE): New macro.
19714         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
19715         code model setting in assembly code.
19717 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
19719         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
19720         Remove MASK_GP_DIRECT flag.
19721         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
19722         one of the multilib default options.
19723         * config/nds32/nds32.opt (mgp-direct): Remove.
19724         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
19725         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
19727 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
19729         * config/nds32/nds32.opt (mcmodel): Add new option.
19730         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
19731         to describe code model.
19733 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
19735         PR target/64479
19736         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
19738 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19740         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
19741         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19742         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
19743         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
19744         __builtin_sh_set_fpscr.
19746 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
19748         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
19749         after a funtion name just to indicate it is a function.
19750         ([-fsanitize-undefined-trap-on-error]): Likewise.
19751         ([-fdbg-cnt=]): Likewise.
19752         ([-mmemcpy]): Likewise.
19753         ([-mflush-func]): Likewise.
19754         ([-msynci]): Likewise.
19756 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
19758         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
19759         example.
19761 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
19763         PR tree-optimization/64563
19764         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
19765         instead of != VR_VARYING.
19767         PR target/64513
19768         * config/i386/i386.c (ix86_expand_prologue): Add
19769         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
19771         PR tree-optimization/64454
19772         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
19773         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
19774         for signed or [0, op1 - 1] for unsigned modulo.
19775         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
19776         even if op1 does not satisfy integer_pow2p.
19778         PR other/64370
19779         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
19781 2015-01-12  Jeff Law  <law@redhat.com>
19783         PR target/64461
19784         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
19785         (trunchiqi2, truncsihi2): Similarly.
19787         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
19788         rather than calling F.
19790 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19792         * tsan.c (instrument_expr): Use force_gimple_operand.
19793         Use may_be_nonaddressable_p instead of is_gimple_addressable.
19795 2015-01-12  Richard Biener  <rguenther@suse.de>
19797         PR tree-optimization/64530
19798         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
19799         back dr1.
19801 2015-01-12  Richard Biener  <rguenther@suse.de>
19803         PR middle-end/64357
19804         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
19805         latches properly.
19807 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19809         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
19810         Cortex-A17 tuning parameters.
19811         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
19813 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19815         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
19816         * config/arm/arm.c (arm_macro_fusion_p): New function.
19817         (arm_macro_fusion_pair_p): Likewise.
19818         (TARGET_SCHED_MACRO_FUSION_P): Define.
19819         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
19820         (ARM_FUSE_NOTHING): Likewise.
19821         (ARM_FUSE_MOVW_MOVT): Likewise.
19822         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
19823         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
19824         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
19825         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
19826         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
19827         arm_cortex_a5_tune): Specify fuseable_ops value.
19829 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
19831         PR bootstrap/64561
19832         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
19833         test for PIE with copy reloc.
19834         * configure: Regenerated.
19836 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19838         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
19839         in gen_rtx_REG.
19840         (arm_tls_descseq_addr): Likewise.
19841         (arm_gen_movmemqi): Likewise.
19842         (arm_expand_epilogue_apcs_frame): Likewise.
19843         (arm_expand_epilogue): Likewise.
19844         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
19845         in gen_rtx_REG.
19847 2015-01-12  Martin Liska  <mliska@suse.cz>
19849         PR ipa/64550
19850         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
19851         volatility for correct operands.
19853 2015-01-12  Martin Liska  <mliska@suse.cz>
19855         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
19856         indication that a function is not leaf.
19857         (sem_function::compare_polymorphic_p): Likewise.
19859 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19861         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
19862         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
19863         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
19864         fold-const.h, tree-check.h.
19866 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
19868         PR ipa/63967
19869         PR ipa/64425
19870         * ipa-inline.c (compute_uninlined_call_time,
19871         compute_inlined_call_time): Use counts for extra precision when
19872         needed possible.
19873         (big_speedup_p): Fix formating.
19874         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
19875         (relative_time_benefit): Remove.
19876         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
19877         merge guessed and read profile paths.
19878         (inline_small_functions): Count only !optimize_size functions into
19879         initial size; be more lax about sanity check when profile is used;
19880         be sure to update inlined function profile when profile is read.
19882 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
19884         PR ipa/63470
19885         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
19886         cost when edge becomes direct.
19887         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
19888         is resolved or when introducing new speculation.
19890 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
19892         PR ipa/64551
19893         PR ipa/64552
19894         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
19895         '||' to fix typo issue.
19897         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
19898         accept and return NULL.
19900 2015-01-12  Martin Liska  <mliska@suse.cz>
19902         * cgraph.c (cgraph_edge::remove_callee): Move function to header
19903         file for being inlined.
19904         (cgraph_set_edge_callee): Delete.
19905         (cgraph_edge::redirect_callee): Move function to header file
19906         for being inlined.
19907         (cgraph_edge::make_direct): Use new function.
19908         (cgraph_edge::dump_edge_flags): New function created from
19909         static dump_edge_flags function.
19910         (cgraph_node::dump): Use new function.
19911         (cgraph_edge::verify_count_and_frequency): New function created
19912         from verify_edge_count_and_frequency.
19913         (cgraph_edge::verify_corresponds_to_fndecl): New function created
19914         from verify_edge_corresponds_to_fndecl.
19915         (verify_edge_corresponds_to_fndecl): Delete.
19916         (cgraph_node::verify_node): Use new function.
19917         * cgraph.h (cgraph_edge::set_callee): New function.
19918         (cgraph_edge::dump_edge_flags): Likewise.
19919         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
19921 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
19923         * ipa-utils.c (estimate_function_body_sizes): Do not
19924         free node params when called late with early=true.
19926 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
19928         * doc/md.texi (Instruction Patterns): Rewrite text for
19929         clarity.
19930         (Example): Likewise.
19932 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
19934         * doc/invoke.texi (Option Summary): Break long lines.
19935         [(-fdiagnostics-color)]: Put long literal in @smallexample
19936         instead of inline.
19937         [(-fsanitize-recover)]: Likewise.
19938         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
19939         [(-ffast-math)]: Likewise.
19940         [(--param max-inline-insns-recursive)]: Likewise.
19941         [(--param max-inline-recursive-depth)]: Likewise.
19942         [(-mno-text-section-literals)]: Likewise.
19944 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
19946         * doc/install.texi: Update for libgomp being renamed from "GNU
19947         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
19948         Runtime Library".
19949         * doc/sourcebuild.texi: Likewise.
19951 2015-01-10  Anthony Green  <green@moxielogic.com>
19953         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
19954         mul.x availability for moxiebox configuration.
19956 2015-01-09  Anthony Green  <green@moxielogic.com>
19958         * config/moxie/moxie.md: Tabify assembly output.
19960 2015-01-09  Anthony Green  <green@moxielogic.com>
19962         * config/moxie/moxie.md (CC_REG): Correct register definition.
19964 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
19966         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
19967         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
19968         of log files.
19970 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
19972         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
19974 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
19975             Jakub Jelinek  <jakub@redhat.com>
19977         PR middle-end/64412
19978         * lto-streamer.h (lto_stream_offload_p): New declaration.
19979         * lto-streamer.c (lto_stream_offload_p): New variable.
19980         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
19981         at the same time as section_name_prefix.
19982         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
19983         if lto_stream_offload_p.
19984         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
19985         stream TREE_TARGET_OPTION if lto_stream_offload_p.
19986         (write_ts_function_decl_tree_pointers): Don't
19987         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
19988         * tree-streamer-in.c (unpack_value_fields): Don't stream
19989         TREE_TARGET_OPTION in if ACCEL_COMPILER.
19990         (lto_input_ts_function_decl_tree_pointers): Don't stream
19991         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
19992         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
19993         instead of section_name_prefix string comparisons.
19995 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
19997         PR rtl-optimization/64536
19998         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
19999         tablejumps.
20001 2015-01-09  Michael Collison  <michael.collison@linaro.org>
20003         PR tree-optimization/64322
20004         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
20005         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
20007 2015-01-09  Tom de Vries  <tom@codesourcery.com>
20009         PR rtl-optimization/64539
20010         * regcprop.c (kill_clobbered_values): Factor out of ...
20011         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
20012         instead of note_stores with kill_clobbered_value.
20014 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
20016          * ginclude/unwind-arm-common.h: Revert previous commit.
20018 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
20020         * config.gcc (arm*-*-freebsd*): New configuration.
20021         * config/arm/freebsd.h: New file.
20022         * config.host: Add extra components for arm*-*-freebsd*.
20023         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
20024         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
20026 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20028         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
20029         for -mcpu=e6500.
20030         * config/rs6000/t-rtems: Add e6500 multilibs.
20032 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20034         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
20035         MPC8540.
20037 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20039         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
20040         MULTILIB_EXCEPTIONS.
20042 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20044         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
20045         MULTILIB_EXCEPTIONS.
20047 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20049         * config/arm/t-rtems-eabi: Rename to...
20050         * config/arm/t-rtems: ...this.
20051         * config/arm/rtems-eabi.h: Rename to...
20052         * config/arm/rtems.h: ...this.
20053         * config.gcc (arm*-*-rtems*): Reflect changes above.
20055 2015-01-09  Richard Biener  <rguenther@suse.de>
20057         PR tree-optimization/64410
20058         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
20059         on the LHS.
20060         (execute_update_addresses_taken): Deal with that.
20061         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
20062         loads/stores for complex variables.
20064 2015-01-09  Martin Liska  <mliska@suse.cz>
20066         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
20067         name comparison.
20068         (func_checker::compare_memory_operand): New function.
20069         (func_checker::compare_operand): Split case to newly
20070         added functions.
20071         (func_checker::compare_cst_or_decl): New function.
20072         (func_checker::compare_gimple_call): Identify
20073         memory operands.
20074         (func_checker::compare_gimple_assign): Likewise.
20075         * ipa-icf-gimple.h: New function.
20077 2015-01-09  Martin Liska  <mliska@suse.cz>
20079         PR ipa/64503
20080         * sreal.c (sreal::dump): Change unsigned format to signed for
20081         m_exp value.
20082         (sreal::to_double): Replace exp2 with scalbln.
20084 2015-01-09  Martin Liska  <mliska@suse.cz>
20086         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
20087         * ipa-icf.c (sem_function::equals_private): Add support for target and
20088         (sem_item_optimizer::merge_classes): Remove redundant function
20089         optimization flags comparison.
20090         * tree.h (target_opts_for_fn): New function.
20092 2015-01-09  Tom de Vries  <tom@codesourcery.com>
20094         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
20096 2015-01-09  Kito Cheng  <kito@0xlab.org>
20098         PR rtl-optimization/64348
20099         * lra-constraints.c (split_reg): Fix caller-save store/restore
20100         instruction generation.
20102 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
20104         PR gcov-profile/61790
20105         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
20106         long long.  Fallback to int64_t if host doesn't have long long and
20107         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
20109 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
20111         PR tree-optimization/63989
20112         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
20113         from 1000 to 10000.
20114         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
20115         (get_stridx): If we don't have a record for certain SSA_NAME,
20116         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
20117         constant offset, call get_stridx_plus_constant.
20118         (get_stridx_plus_constant): New function.
20119         (zero_length_string): Don't use get_stridx here.
20121         PR target/55023
20122         PR middle-end/64388
20123         * dse.c (struct insn_info): Mention frame_read set also
20124         before reload for tail calls on some targets.
20125         (scan_insn): Revert 2014-12-22 change.  Set frame_read
20126         also before reload for tail calls if
20127         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
20128         instead of add_non_frame_wild_read for non-const/memset
20129         tail calls after reload.
20131 2015-01-08  Jason Merrill  <jason@redhat.com>
20133         * ubsan.c (do_ubsan_in_current_function): New.
20134         (pass_ubsan::gate): Use it.
20135         * ubsan.h: Declare it.
20136         * convert.c (convert_to_integer): Use it.
20138 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
20140         PR target/64338
20141         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
20142         compare_code when it is unconditionally overwritten afterwards.
20143         Use ix86_reverse_condition instead of reverse_condition.  Don't
20144         change code if *reverse_condition* returned UNKNOWN and don't
20145         swap ct/cf and negate diff in that case.
20147 2015-01-08  Mike Stump  <mikestump@comcast.net>
20149         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
20150         (pass_tsan_O0::gate): Likewise.
20151         * extend.texi (Function Attributes): Add no_sanitize_thread
20152         documentation.
20154 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
20156         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
20157         for registering builtins.
20158         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
20159         add -fopenmp to the argv_obstack used when invoking
20160         compile_for_target.
20162         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
20163         add "-m32" or "-m64" to argv_obstack.
20164         (generate_host_descr_file): Likewise, when invoking host_compiler.
20165         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
20166         ld.
20168 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
20170         * config/sh/sh-mem.cc: Use constant as second operand when emitting
20171         tstsi_t insns.
20173 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
20175         PR target/55212
20176         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
20177         constant load if constant operand fits into I08.
20179 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
20181         PR sanitizer/64336
20182         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
20183         and TREE_THIS_VOLATILE for MEM_REFs.
20184         (build5_stat): Fix up initialization of TREE_READONLY and
20185         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
20187 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20189         PR target/64533
20190         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
20191         of r for the second alternative of the destination operand.
20193 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
20195         PR target/36557
20196         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
20198 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
20200         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
20201         keywords.
20202         ([-fivar-visibility], [-fvisibility]): Likewise.
20204 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
20206         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
20207         the file where @code, @command, etc is more appropriate.
20209 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
20211         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
20212         of -mrecip= documentation.
20214 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
20216         PR target/64505
20217         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
20218         correct reload handler if -m32 -mpowerpc64 is used.
20220 2015-01-06  Tom de Vries  <tom@codesourcery.com>
20222         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
20224 2015-01-08  Christian Bruel  <christian.bruel@st.com>
20226         PR target/64507
20227         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
20229 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20231         PR tree-optimization/63259
20232         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
20233         if optab exists for 16bit byteswap.
20235 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
20237         * opts.c (common_handle_option): Add support for
20238         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
20239         * doc/invoke.texi: Document -fno-sanitize=all,
20240         -f{,no-}sanitize-recover=all.  Document that
20241         -fsanitize=float-cast-overflow is not enabled
20242         by -fsanitize=undefined.  Fix up documentation
20243         of -f{,no-}sanitize-recover.
20245 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
20247         * config.gcc: Add Visium support.
20248         * configure.ac: Likewise.
20249         * configure: Regenerate.
20250         * doc/extend.texi (interrupt attribute): Add Visium.
20251         * doc/invoke.texi: Document Visium options.
20252         * doc/install.texi: Document Visium target.
20253         * doc/md.texi: Document Visium constraints.
20254         * common/config/visium: New directory.
20255         * config/visium: Likewise.
20257 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
20259         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
20260         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
20262 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
20264         * combine.c (combine_validate_cost): Do not count the cost of a
20265         split I2 twice.  Do not display it twice in the dump, either.
20267 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
20269         Revert parts of r219199.
20270         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
20271         <inttypes.h>.
20272         ([-Wtraditional]): Restore markup on <limits.h>.
20274 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
20276         PR c++/31397
20277         * doc/invoke.texi: Document -Wsuggest-override.
20279 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
20281         PR rtl-optimization/64287
20282         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
20283         (process_options): Disable flag_ipa_ra if profiling.
20285 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
20287         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
20289 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
20291         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
20292         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
20293         put under #if TARGET_LOOPS guard.
20295 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
20297         * config/i386/i386.c (output_387_binary_op): Use std::swap.
20299 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
20301         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
20302         * rtl.h (refers_to_regno_p): Add overload.
20303         * cse.c: Use it.
20304         * bt-load.c: Likewise.
20305         * combine.c: Likewise.
20306         * df-scan.c: Likewise.
20307         * sched-deps.c: Likewise.
20308         * config/s390/s390.c: Likewise.
20309         * config/m32r/m32r.c: Likewise.
20310         * config/rs6000/spe.md: Likewise.
20311         * config/rs6000/rs6000.c: Likewise.
20312         * config/pa/pa.c: Likewise.
20313         * config/stormy16/stormy16.c: Likewise.
20314         * config/cris/cris.c: Likewise.
20315         * config/arc/arc.md: Likewise.
20316         * config/arc/arc.c: Likewise.
20317         * config/sh/sh.md: Likewise.
20318         * config/sh/sh.c: Likewise.
20319         * config/frv/frv.c: Likewise.
20321 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
20323         PR sanitizer/64265
20324         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
20325         call as cleanup of the whole body.
20326         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
20327         * tsan.c (replace_func_exit): New function.
20328         (instrument_func_exit): Moved earlier.
20329         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
20330         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
20331         been found.
20332         (tsan_pass): Don't call instrument_func_exit.
20333         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
20334         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
20335         inlining.
20337         PR sanitizer/64344
20338         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
20339         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
20340         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
20341         if the result is integer_zerop, return NULL_TREE.
20342         * convert.c (convert_to_integer): Pass expr as ARG.
20344         PR tree-optimization/64465
20345         * tree-inline.c (redirect_all_calls): During inlining
20346         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
20347         changed the stmt to a non-throwing call.
20349 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
20351         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
20352         etc markup throughout the file.
20354 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20356         Enable experimental TSAN support for Ada.
20357         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
20359 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
20361         PR tree-optimization/64494
20362         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
20363         clear SSA_NAME_ANTI_RANGE_P flag.
20365 2015-01-05  Marek Polacek  <polacek@redhat.com>
20367         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
20369 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
20371         Update copyright years.
20373         * gcc.c (process_command): Update copyright notice dates.
20374         * gcov-dump.c: Ditto.
20375         * gcov.c: Ditto.
20376         * doc/cpp.texi: Bump @copying's copyright year.
20377         * doc/cppinternals.texi: Ditto.
20378         * doc/gcc.texi: Ditto.
20379         * doc/gccint.texi: Ditto.
20380         * doc/gcov.texi: Ditto.
20381         * doc/install.texi: Ditto.
20382         * doc/invoke.texi: Ditto.
20384         * auto-profile.c, auto-profile.h: Fix up Copyright line.
20386 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
20388         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
20389         verb tense, etc.
20390         ([-fvtable-verify], [-fvtv-debug]): Likewise.
20391         ([-Wabi]): Likewise.
20392         ([-fmessage-length]): Likewise.
20393         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
20394         ([-Wno-discarded-qualifiers]): Likewise.
20395         ([-Wnodiscarded-array-qualifiers]): Likewise.
20396         ([-Wno-virtual-move-assign]): Likewise.
20397         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
20398         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
20399         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
20400         ([-fsanitize-undefined-trap-on-error]): Likewise.
20401         ([-floop-interchange]): Likewise.
20402         ([-ftree-coalesce-inlined-vars]): Likewise.
20403         ([-fvect-cost-model]): Likewise.
20404         ([-flto]): Likewise.
20405         ([--param]): Likewise.
20406         (Spec Files): Likewise.
20407         ([-mstrict-align]): Likewise.
20408         ([-mfix-cortex-a53-835769]): Likewise.
20409         ([-march], [-mtune]): Likewise.
20410         ([-mpic-register]): Likewise.
20411         ([-munaligned-access]): Likewise.
20412         ([-msp8]): Likewise.
20413         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
20414         (AVR Built-in Macros): Likewise.
20415         ([-mpreferred-stack-boundary]): Likewise.
20416         ([-mtune-crtl]): Likewise.
20417         ([-mashf]): Likewise.
20418         ([-mmcu=]): Likewise.
20419         ([-minrt]): Likewise.
20420         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
20421         ([-mupper-regs]): Likewise.
20422         ([-matomic-model]): Likewise.
20423         ([-mdiv]): Likewise.
20424         ([-mzdcbranch]): Likewise.
20425         ([-mdisable-callt]): Likewise.
20426         ([-msoft-float]): Likewise.
20427         ([-m8byte-align]): Likewise.
20428         ([-fstack-reuse]): Likewise.
20430 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
20432         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
20433         Fix markup, light copy-editing.
20434         ([-fauto-profile]): Rewrite to fix formatting and content
20435         problems.
20437 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
20439         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
20440         Copy-edit description.
20441         ([-fisolate-erroneous-paths-attribute]): Likewise.
20442         * common.opt (fisolate-erroneous-paths-dereference):
20443         Copy-edit description.
20444         (fisolate-erroneous-paths-attribute): Likewise.
20446 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
20448         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
20449         tidy grammar.
20451 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
20453         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
20454         ([-fvtv-debug]): Likewise.
20455         ([-Wc++-compat]): Likewise.
20456         ([-Wc++11-compat]): Likewise.
20457         ([-Wc++14-compat]): Likewise.
20458         ([-Wno-sized-deallocation]): Likewise.
20459         ([-femit-class-debug-always]): Likewise.
20460         ([-femit-struct-debug-detailed]): Likewise.
20461         ([-fno-keep-inline-dllexport]): Likewise.
20462         ([-fira-algorithm]): Likewise.
20463         ([-fira-region]): Likewise.
20464         ([-flra-remat]): Likewise.
20465         ([-fipa-ra]): Likewise.
20466         ([-fhoist-adjacent-loads]): Likewise.
20467         ([-fisolate-erroneous-paths-dereference]): Likewise.
20468         ([-fisolate-erroneous-paths-attribute]): Likewise.
20469         ([-ftree-switch-conversion]): Likewise.
20470         ([-ftree-tail-merge]): Likewise.
20471         ([-ftree-loop-if-convert]): Likewise.
20472         ([-ftree-loop-if-convert-stores]): Likewise.
20473         ([-ftree-loop-distribution]): Likewise.
20474         ([-ftree-loop-distribute-patterns]): Likewise.
20475         ([-flto-compression-level]): Likewise.
20476         ([-flto-report]): Likewise.
20477         ([-flto-report-wpa]): Likewise.
20478         ([-fuse-linker-plugin]): Likewise.
20479         ([-mfix-cortex-a53-835769]): Likewise.
20480         ([-mno-fix-cortex-a53-835769]): Likewise.
20481         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
20482         explicit listing; add a note to the discussion indicating they
20483         exist.  Reorder table to group similar options.  Add missing
20484         @opindex entries.  Add @need commands throughout the table to
20485         allow it to be split across multiple pages.
20486         ([-m8bit-idiv]): Fix @opindex.
20487         ([-mavx256-split-unaligned-load]): Likewise.
20488         ([-mavx256-split-unaligned-store]): Likewise.
20489         ([-mstack-protector-guard]): Likewise.
20490         ([-mcpu=]): Likewise.
20491         ([-mcpu]): Likewise.
20492         ([-mpointer-size=]): Likewise.
20494 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
20496         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
20497         instead of `m' constraint.  Likewise for unnamed movb comparison
20498         patterns using reg_before_reload_operand predicate.
20499         * config/pa/predicates.md (reg_before_reload_operand): Tighten
20500         predicate to reject register index and LO_SUM DLT memory forms
20501         after reload.
20503 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
20505         * doc/invoke.texi (Option Summary): Fix spelling of
20506         -fdevirtualize-at-ltrans.
20507         ([-fdevirtualize]): Fix markup.
20508         ([-fdevirtualize-speculatively]): Fix typo.
20509         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
20510         implementor-speaky.
20511         * common.opt (fdevirtualize-at-ltrans): Likewise.
20512         * ipa-devirt.c: Fix typos in comments throughout the file.
20513         (ipa_devirt): Fix typos in format strings for dump output.
20515 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
20517         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
20518         discussion of defaults, light copy-editing.
20520 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20522         * tsan.c (instrument_expr): corrected previous checkin.
20524 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20526         Instrument bit field and unaligned accesses for TSAN.
20527         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
20528         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
20529         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
20530         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
20531         unaligned memory regions.
20533 2015-01-01  Anthony Green  <green@moxielogic.com>
20535         * config/moxie/predicates.md (moxie_general_movsrc_operand):
20536         Restrict move source register offsets to 16 bits.
20538 Copyright (C) 2015 Free Software Foundation, Inc.
20540 Copying and distribution of this file, with or without modification,
20541 are permitted in any medium without royalty provided the copyright
20542 notice and this notice are preserved.