]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
always define WORD_REGISTER_OPERATIONS
[thirdparty/gcc.git] / gcc / ChangeLog
1 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2
3 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
4 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
5 * config/arc/arc.h: Likewise.
6 * config/arm/arm.h: Likewise.
7 * config/bfin/bfin.h: Likewise.
8 * config/epiphany/epiphany.h: Likewise.
9 * config/frv/frv.h: Likewise.
10 * config/ia64/ia64.h: Likewise.
11 * config/iq2000/iq2000.h: Likewise.
12 * config/lm32/lm32.h: Likewise.
13 * config/m32r/m32r.h: Likewise.
14 * config/mcore/mcore.h: Likewise.
15 * config/mep/mep.h: Likewise.
16 * config/microblaze/microblaze.h: Likewise.
17 * config/mips/mips.h: Likewise.
18 * config/mmix/mmix.h: Likewise.
19 * config/mn10300/mn10300.h: Likewise.
20 * config/nds32/nds32.h: Likewise.
21 * config/nios2/nios2.h: Likewise.
22 * config/pa/pa.h: Likewise.
23 * config/rl78/rl78.h: Likewise.
24 * config/sh/sh.h: Likewise.
25 * config/sparc/sparc.h: Likewise.
26 * config/stormy16/stormy16.h: Likewise.
27 * config/tilegx/tilegx.h: Likewise.
28 * config/tilepro/tilepro.h: Likewise.
29 * config/v850/v850.h: Likewise.
30 * config/xtensa/xtensa.h: Likewise.
31 * doc/tm.texi: Regenerate.
32 * doc/tm.texi.in: Adjust.
33 * combine.c (simplify_set): Likewise.
34 (simplify_comparison): Likewise.
35 * expr.c (store_constructor): Likewise.
36 * internal-fn.c (expand_arith_overflow): Likewise.
37 * reload.c (push_reload): Likewise.
38 (find_reloads): Likewise.
39 (find_reloads_subreg_address): Likewise.
40 * reload1.c (eliminate_regs_1): Likewise.
41 * rtlanal.c (nonzero_bits1): Likewise.
42 (num_sign_bit_copies1): Likewise.
43 * simplify-rtx.c (simplify_truncation): Likewise.
44
45 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
46
47 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
48 of AUTO_INC_DEC with the preprocessor.
49 * combine.c (combine_instructions): Likewise.
50 (can_combine_p): Likewise.
51 (try_combine): Likewise.
52 * emit-rtl.c (try_split): Likewise.
53 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
54 * lower-subreg.c (resolve_simple_move): Likewise.
55 * lra.c (update_inc_notes): Likewise.
56 * recog.c (asm_operand_ok): Likewise.
57 (constrain_operands): Likewise.
58 * regrename.c (scan_rtx_address): Likewise.
59 * reload.c (update_auto_inc_notes): Likewise.
60 (reg_inc_found_and_valid_p): Likewise.
61 * reload1.c (reload): Likewise.
62 (emit_input_reload_insns): Likewise.
63 (delete_output_reload): Likewise.
64 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
65 * valtrack.c (cleanup_auto_inc_dec): Likewise.
66
67 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
68
69 * rtl.h: Always define AUTO_INC_DEC.
70 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
71 * combine.c (combine_instructions): Likewise.
72 (can_combine_p): Likewise.
73 (try_combine): Likewise.
74 * emit-rtl.c (try_split): Likewise.
75 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
76 * lower-subreg.c (resolve_simple_move): Likewise.
77 * lra.c (update_inc_notes): Likewise.
78 * recog.c (asm_operand_ok): Likewise.
79 (constrain_operands): Likewise.
80 * regrename.c (scan_rtx_address): Likewise.
81 * reload.c (update_auto_inc_notes): Likewise.
82 (find_equiv_reg): Likewise.
83 * reload1.c (reload): Likewise.
84 (reload_as_needed): Likewise.
85 (choose_reload_regs): Likewise.
86 (emit_input_reload_insns): Likewise.
87 (delete_output_reload): Likewise.
88 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
89 * valtrack.c (cleanup_auto_inc_dec): Likewise.
90
91 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
92
93 * combine.c (can_combine_def_p): Don't check the value of
94 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
95 (combinable_i3pat): Likewise.
96 (mark_used_regs_combine): Likewise.
97 * regrename.c (rename_chains): Likewise.
98 * reload.c (find_reloads_address): Likewise.
99 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
100
101 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
102
103 * combine.c (update_rsp_from_reg_equal): Don't check if
104 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
105 (reg_nonzero_bits_for_combine): Likewise.
106 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
107 1.
108 * config/frv/frv.h: Likewise.
109 * config/lm32/lm32.h: Likewise.
110 * config/mep/mep.h: Likewise.
111 * config/mips/mips.h: Likewise.
112 * config/rs6000/rs6000.h: Likewise.
113 * config/sh/sh.h: Likewise.
114 * config/tilegx/tilegx.h (enum reg_class): Likewise.
115 * config/tilepro/tilepro.h: Likewise.
116 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
117 * doc/tm.texi: Regenerate.
118 * doc/tm.texi.in: Adjust.
119 * rtlanal.c (nonzero_bits1): Likewise.
120
121 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
122
123 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
124 with the preprocessor.
125 (combine_instructions): Likewise.
126 (try_combine): Likewise.
127 (subst): Likewise.
128 (distribute_notes): Likewise.
129
130 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
131
132 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
133 defined.
134 (simplify_set): Likewise.
135 * cse.c (cse_insn): Likewise.
136 * fold-const.c (fold_single_bit_test): Likewise.
137 (fold_unary_loc): Likewise.
138 * postreload.c (reload_cse_simplify_set): Likewise.
139 (reload_cse_simplify_operands): Likewise.
140
141 2015-07-08 Jiong Wang <jiong.wang@arm.com>
142
143 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
144 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
145
146 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
147
148 PR target/66746
149 * config/i386/x86intrin.h: Include <adxintrin.h> even if
150 __iamcu__ is defined.
151
152 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
153
154 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
155
156 2015-07-08 Iain Sandoe <iain@codesourcery.com>
157
158 PR target/66523
159 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
160 names from preservation.
161
162 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
163
164 PR middle-end/66334
165 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
166 hard regno live at the start of BB with incoming abnormal edges.
167 * lra-lives.c (process_bb_lives): Ditto.
168
169 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
170
171 PR libgomp/65099
172 * config/nvptx/mkoffload.c (main): Create an offload image only in
173 64-bit configurations.
174
175 2015-07-08 Martin Liska <mliska@suse.cz>
176
177 PR bootstrap/66744
178 * tree-sra.c (create_access_1): Call ctor without brackets.
179 (create_artificial_child_access): Likewise.
180
181 2015-07-08 Richard Biener <rguenther@suse.de>
182
183 PR tree-optimization/66793
184 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
185 Properly split the block after stmts ending it.
186
187 2015-07-08 Richard Biener <rguenther@suse.de>
188
189 PR tree-optimization/66794
190 * passes.c (execute_function_todo): Assert that post-dominators
191 are not computed.
192 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
193 Free post-dominators.
194
195 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
196
197 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
198 with early exit.
199
200 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
201
202 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
203 more than or equal 8 and less than 32 when optimizing for size.
204
205 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
206
207 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
208 COSTS_N_INSNS (1) and increment it appropriately throughout the
209 function.
210
211 2015-07-08 Richard Biener <rguenther@suse.de>
212
213 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
214
215 2015-07-08 Alan Modra <amodra@gmail.com>
216
217 * target.def (rtx_costs): Remove "code" param, add "mode".
218 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
219 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
220 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
221 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
222 call. Track mode when given in rtx.
223 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
224 (default_address_cost): Pass Pmode to rtx_cost.
225 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
226 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
227 with NULL set.
228 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
229 (notreg_cost): Add mode param. Use it.
230 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
231 mode param and pass to set_src_cost. Update all calls.
232 (hash_scan_set): Formatting.
233 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
234 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
235 * hooks.h: Ditto.
236 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
237 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
238 emit_store_flag): Update set_src_cost and rtx_cost calls.
239 * auto-inc-dec.c (attempt_change): Likewise.
240 * calls.c (precompute_register_parameters): Likewise.
241 * combine.c (expand_compound_operation, make_extraction,
242 force_to_mode, distribute_and_simplify_rtx): Likewise.
243 * dojump.c (prefer_and_bit_test): Likewise.
244 * dse.c (find_shift_sequence): Likewise.
245 * expr.c (compress_float_constant): Likewise.
246 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
247 * ifcvt.c (noce_try_sign_mask): Likewise.
248 * loop-doloop.c (doloop_optimize): Likewise.
249 * loop-invariant.c (create_new_invariant): Likewise.
250 * lower-subreg.c (shift_cost, compute_costs): Likewise.
251 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
252 lshift_cheap_p): Likewise.
253 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
254 try_replace_in_use, reload_cse_move2add): Likewise.
255 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
256 Likewise.
257 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
258 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
259 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
260 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
261 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
262 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
263 to rtx_cost calls.
264 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
265 * config/arc/arc.c (arc_rtx_costs): Likewise.
266 * config/arm/arm.c (arm_rtx_costs): Likewise.
267 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
268 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
269 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
270 * config/cris/cris.c (cris_rtx_costs): Likewise.
271 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
272 * config/frv/frv.c (frv_rtx_costs): Likewise.
273 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
274 * config/i386/i386.c (ix86_rtx_costs): Likewise.
275 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
276 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
277 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
278 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
279 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
280 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
281 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
282 * config/mep/mep.c (mep_rtx_cost): Likewise.
283 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
284 * config/mips/mips.c (mips_rtx_costs): Likewise.
285 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
286 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
287 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
288 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
289 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
290 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
291 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
292 * config/pa/pa.c (hppa_rtx_costs): Likewise.
293 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
294 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
295 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
296 * config/s390/s390.c (s390_rtx_costs): Likewise.
297 * config/sh/sh.c (sh_rtx_costs): Likewise.
298 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
299 * config/spu/spu.c (spu_rtx_costs): Likewise.
300 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
301 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
302 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
303 * config/v850/v850.c (v850_rtx_costs): Likewise.
304 * config/vax/vax.c (vax_rtx_costs): Likewise.
305 * config/visium/visium.c (visium_rtx_costs): Likewise.
306 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
307 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
308 "code" param, and pass as outer_code to first rtx_cost call. Pass
309 mode to rtx_cost calls.
310 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
311 calls.
312 (aarch64_rtx_costs_wrapper): Update.
313 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
314 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
315 rtx_cost calls.
316 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
317 and rtx_cost calls.
318 (avr_operand_rtx_cost): Similarly.
319 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
320 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
321 * config/mips/mips.c (mips_stack_address_p): Comment typo.
322 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
323 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
324 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
325 rtx_cost.
326 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
327 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
328 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
329 * doc/tm.texi: Regenerate.
330
331 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
332
333 * tree-core.h: Include symtab.h.
334 * rtl.h: Include hard-reg-set.h but not flags.h.
335 (HARD_CONST): Remove condition compilation involving HARD_CONST since
336 hard-reg-set.h is always included.
337 * regs.h: Don't include hard-reg-set.h or rtl.h.
338 * cfg.h: Include dominance.h.
339 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
340 * backend.h: New. Aggregate commonly used backend header files.
341 * gimple-ssa.h: Don't include tree-hasher.h.
342 * ssa.h: New. Aggregate commonly used SSA header files.
343 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
344 * sel-sched-ir.h: Flatten includes.
345 * lra-int.h: Flatten completely.
346 * sel-sched-dump.h: Flatten includes.
347 * ira-int.h: Flatten includes.
348 * gimple-streamer.h: Remove all includes.
349 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
350 * resource.h: Flatten hard-reg-set.h and df.h.
351 * sched-int.h: Flatten insn-arrt.h and df.h.
352 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
353 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
354 * genattrtab.c (write_header): Adjust generated includes.
355 * genautomata.c (main): Likewise.
356 * genconditions.c (write-header): Likewise.
357 * genemit.c (main): Likewise.
358 * gengtype.c (open_base_files): Likewise.
359 * genopinit.c (main): Likewise.
360 * genoutput.c (output_prologue): Likewise.
361 * genpeep.c (main): Likewise.
362 * genpreds.c (write_insn_preds_c): Likewise.
363 * genrecog.c (write_header): Likewise.
364 * alias.c: Adjust includes.
365 * asan.c: Likewise.
366 * attribs.c: Likewise.
367 * auto-inc-dec.c: Likewise.
368 * auto-profile.c: Likewise.
369 * bb-reorder.c: Likewise.
370 * bt-load.c: Likewise.
371 * builtins.c: Likewise.
372 * caller-save.c: Likewise.
373 * calls.c: Likewise.
374 * ccmp.c: Likewise.
375 * cfg.c: Likewise.
376 * cfganal.c: Likewise.
377 * cfgbuild.c: Likewise.
378 * cfgcleanup.c: Likewise.
379 * cfgexpand.c: Likewise.
380 * cfghooks.c: Likewise.
381 * cfgloop.c: Likewise.
382 * cfgloopanal.c: Likewise.
383 * cfgloopmanip.c: Likewise.
384 * cfgrtl.c: Likewise.
385 * cgraph.c: Likewise.
386 * cgraphbuild.c: Likewise.
387 * cgraphclones.c: Likewise.
388 * cgraphunit.c: Likewise.
389 * cilk-common.c: Likewise.
390 * combine-stack-adj.c: Likewise.
391 * combine.c: Likewise.
392 * compare-elim.c: Likewise.
393 * convert.c: Likewise.
394 * coverage.c: Likewise.
395 * cppbuiltin.c: Likewise.
396 * cprop.c: Likewise.
397 * cse.c: Likewise.
398 * cselib.c: Likewise.
399 * data-streamer-in.c: Likewise.
400 * data-streamer-out.c: Likewise.
401 * data-streamer.c: Likewise.
402 * dbxout.c: Likewise.
403 * dce.c: Likewise.
404 * ddg.c: Likewise.
405 * debug.c: Likewise.
406 * df-core.c: Likewise.
407 * df-problems.c: Likewise.
408 * df-scan.c: Likewise.
409 * dfp.c: Likewise.
410 * dojump.c: Likewise.
411 * dominance.c: Likewise.
412 * domwalk.c: Likewise.
413 * double-int.c: Likewise.
414 * dse.c: Likewise.
415 * dumpfile.c: Likewise.
416 * dwarf2asm.c: Likewise.
417 * dwarf2cfi.c: Likewise.
418 * dwarf2out.c: Likewise.
419 * emit-rtl.c: Likewise.
420 * et-forest.c: Likewise.
421 * except.c: Likewise.
422 * explow.c: Likewise.
423 * expmed.c: Likewise.
424 * expr.c: Likewise.
425 * final.c: Likewise.
426 * fixed-value.c: Likewise.
427 * fold-const.c: Likewise.
428 * function.c: Likewise.
429 * fwprop.c: Likewise.
430 * gcc-plugin.h: Likewise.
431 * gcse-common.c: Likewise.
432 * gcse.c: Likewise.
433 * generic-match-head.c: Likewise.
434 * ggc-page.c: Likewise.
435 * gimple-builder.c: Likewise.
436 * gimple-expr.c: Likewise.
437 * gimple-fold.c: Likewise.
438 * gimple-iterator.c: Likewise.
439 * gimple-low.c: Likewise.
440 * gimple-match-head.c: Likewise.
441 * gimple-pretty-print.c: Likewise.
442 * gimple-ssa-isolate-paths.c: Likewise.
443 * gimple-ssa-strength-reduction.c: Likewise.
444 * gimple-streamer-in.c: Likewise.
445 * gimple-streamer-out.c: Likewise.
446 * gimple-walk.c: Likewise.
447 * gimple.c: Likewise.
448 * gimplify-me.c: Likewise.
449 * gimplify.c: Likewise.
450 * godump.c: Likewise.
451 * graph.c: Likewise.
452 * graphite-blocking.c: Likewise.
453 * graphite-dependences.c: Likewise.
454 * graphite-interchange.c: Likewise.
455 * graphite-isl-ast-to-gimple.c: Likewise.
456 * graphite-optimize-isl.c: Likewise.
457 * graphite-poly.c: Likewise.
458 * graphite-scop-detection.c: Likewise.
459 * graphite-sese-to-poly.c: Likewise.
460 * graphite.c: Likewise.
461 * haifa-sched.c: Likewise.
462 * hw-doloop.c: Likewise.
463 * ifcvt.c: Likewise.
464 * init-regs.c: Likewise.
465 * internal-fn.c: Likewise.
466 * ipa-chkp.c: Likewise.
467 * ipa-comdats.c: Likewise.
468 * ipa-cp.c: Likewise.
469 * ipa-devirt.c: Likewise.
470 * ipa-icf-gimple.c: Likewise.
471 * ipa-icf.c: Likewise.
472 * ipa-inline-analysis.c: Likewise.
473 * ipa-inline-transform.c: Likewise.
474 * ipa-inline.c: Likewise.
475 * ipa-polymorphic-call.c: Likewise.
476 * ipa-profile.c: Likewise.
477 * ipa-prop.c: Likewise.
478 * ipa-pure-const.c: Likewise.
479 * ipa-ref.c: Likewise.
480 * ipa-reference.c: Likewise.
481 * ipa-split.c: Likewise.
482 * ipa-utils.c: Likewise.
483 * ipa-visibility.c: Likewise.
484 * ipa.c: Likewise.
485 * ira-build.c: Likewise.
486 * ira-color.c: Likewise.
487 * ira-conflicts.c: Likewise.
488 * ira-costs.c: Likewise.
489 * ira-emit.c: Likewise.
490 * ira-lives.c: Likewise.
491 * ira.c: Likewise.
492 * jump.c: Likewise.
493 * langhooks.c: Likewise.
494 * lcm.c: Likewise.
495 * loop-doloop.c: Likewise.
496 * loop-init.c: Likewise.
497 * loop-invariant.c: Likewise.
498 * loop-iv.c: Likewise.
499 * loop-unroll.c: Likewise.
500 * lower-subreg.c: Likewise.
501 * lra-assigns.c: Likewise.
502 * lra-coalesce.c: Likewise.
503 * lra-constraints.c: Likewise.
504 * lra-eliminations.c: Likewise.
505 * lra-lives.c: Likewise.
506 * lra-remat.c: Likewise.
507 * lra-spills.c: Likewise.
508 * lra.c: Likewise.
509 * lto-cgraph.c: Likewise.
510 * lto-compress.c: Likewise.
511 * lto-opts.c: Likewise.
512 * lto-section-in.c: Likewise.
513 * lto-section-out.c: Likewise.
514 * lto-streamer-in.c: Likewise.
515 * lto-streamer-out.c: Likewise.
516 * lto-streamer.c: Likewise.
517 * mcf.c: Likewise.
518 * mode-switching.c: Likewise.
519 * modulo-sched.c: Likewise.
520 * omega.c: Likewise.
521 * omp-low.c: Likewise.
522 * optabs.c: Likewise.
523 * opts-global.c: Likewise.
524 * passes.c: Likewise.
525 * plugin.c: Likewise.
526 * postreload-gcse.c: Likewise.
527 * postreload.c: Likewise.
528 * predict.c: Likewise.
529 * print-rtl.c: Likewise.
530 * print-tree.c: Likewise.
531 * profile.c: Likewise.
532 * real.c: Likewise.
533 * realmpfr.c: Likewise.
534 * recog.c: Likewise.
535 * ree.c: Likewise.
536 * reg-stack.c: Likewise.
537 * regcprop.c: Likewise.
538 * reginfo.c: Likewise.
539 * regrename.c: Likewise.
540 * regstat.c: Likewise.
541 * reload.c: Likewise.
542 * reload1.c: Likewise.
543 * reorg.c: Likewise.
544 * resource.c: Likewise.
545 * rtl-chkp.c: Likewise.
546 * rtlanal.c: Likewise.
547 * rtlhooks.c: Likewise.
548 * sanopt.c: Likewise.
549 * sched-deps.c: Likewise.
550 * sched-ebb.c: Likewise.
551 * sched-rgn.c: Likewise.
552 * sched-vis.c: Likewise.
553 * sdbout.c: Likewise.
554 * sel-sched-dump.c: Likewise.
555 * sel-sched-ir.c: Likewise.
556 * sel-sched.c: Likewise.
557 * sese.c: Likewise.
558 * shrink-wrap.c: Likewise.
559 * simplify-rtx.c: Likewise.
560 * stack-ptr-mod.c: Likewise.
561 * stmt.c: Likewise.
562 * stor-layout.c: Likewise.
563 * store-motion.c: Likewise.
564 * stringpool.c: Likewise.
565 * symtab.c: Likewise.
566 * target-globals.c: Likewise.
567 * targhooks.c: Likewise.
568 * toplev.c: Likewise.
569 * tracer.c: Likewise.
570 * trans-mem.c: Likewise.
571 * tree-affine.c: Likewise.
572 * tree-browser.c: Likewise.
573 * tree-call-cdce.c: Likewise.
574 * tree-cfg.c: Likewise.
575 * tree-cfgcleanup.c: Likewise.
576 * tree-chkp-opt.c: Likewise.
577 * tree-chkp.c: Likewise.
578 * tree-chrec.c: Likewise.
579 * tree-complex.c: Likewise.
580 * tree-data-ref.c: Likewise.
581 * tree-dfa.c: Likewise.
582 * tree-diagnostic.c: Likewise.
583 * tree-dump.c: Likewise.
584 * tree-eh.c: Likewise.
585 * tree-emutls.c: Likewise.
586 * tree-if-conv.c: Likewise.
587 * tree-inline.c: Likewise.
588 * tree-into-ssa.c: Likewise.
589 * tree-iterator.c: Likewise.
590 * tree-loop-distribution.c: Likewise.
591 * tree-nested.c: Likewise.
592 * tree-nrv.c: Likewise.
593 * tree-object-size.c: Likewise.
594 * tree-outof-ssa.c: Likewise.
595 * tree-parloops.c: Likewise.
596 * tree-phinodes.c: Likewise.
597 * tree-predcom.c: Likewise.
598 * tree-pretty-print.c: Likewise.
599 * tree-profile.c: Likewise.
600 * tree-scalar-evolution.c: Likewise.
601 * tree-sra.c: Likewise.
602 * tree-ssa-address.c: Likewise.
603 * tree-ssa-alias.c: Likewise.
604 * tree-ssa-ccp.c: Likewise.
605 * tree-ssa-coalesce.c: Likewise.
606 * tree-ssa-copy.c: Likewise.
607 * tree-ssa-copyrename.c: Likewise.
608 * tree-ssa-dce.c: Likewise.
609 * tree-ssa-dom.c: Likewise.
610 * tree-ssa-dse.c: Likewise.
611 * tree-ssa-forwprop.c: Likewise.
612 * tree-ssa-ifcombine.c: Likewise.
613 * tree-ssa-live.c: Likewise.
614 * tree-ssa-loop-ch.c: Likewise.
615 * tree-ssa-loop-im.c: Likewise.
616 * tree-ssa-loop-ivcanon.c: Likewise.
617 * tree-ssa-loop-ivopts.c: Likewise.
618 * tree-ssa-loop-manip.c: Likewise.
619 * tree-ssa-loop-niter.c: Likewise.
620 * tree-ssa-loop-prefetch.c: Likewise.
621 * tree-ssa-loop-unswitch.c: Likewise.
622 * tree-ssa-loop.c: Likewise.
623 * tree-ssa-math-opts.c: Likewise.
624 * tree-ssa-operands.c: Likewise.
625 * tree-ssa-phiopt.c: Likewise.
626 * tree-ssa-phiprop.c: Likewise.
627 * tree-ssa-pre.c: Likewise.
628 * tree-ssa-propagate.c: Likewise.
629 * tree-ssa-reassoc.c: Likewise.
630 * tree-ssa-sccvn.c: Likewise.
631 * tree-ssa-scopedtables.c: Likewise.
632 * tree-ssa-sink.c: Likewise.
633 * tree-ssa-strlen.c: Likewise.
634 * tree-ssa-structalias.c: Likewise.
635 * tree-ssa-tail-merge.c: Likewise.
636 * tree-ssa-ter.c: Likewise.
637 * tree-ssa-threadedge.c: Likewise.
638 * tree-ssa-threadupdate.c: Likewise.
639 * tree-ssa-uncprop.c: Likewise.
640 * tree-ssa-uninit.c: Likewise.
641 * tree-ssa.c: Likewise.
642 * tree-ssanames.c: Likewise.
643 * tree-stdarg.c: Likewise.
644 * tree-streamer-in.c: Likewise.
645 * tree-streamer-out.c: Likewise.
646 * tree-streamer.c: Likewise.
647 * tree-switch-conversion.c: Likewise.
648 * tree-tailcall.c: Likewise.
649 * tree-vect-data-refs.c: Likewise.
650 * tree-vect-generic.c: Likewise.
651 * tree-vect-loop-manip.c: Likewise.
652 * tree-vect-loop.c: Likewise.
653 * tree-vect-patterns.c: Likewise.
654 * tree-vect-slp.c: Likewise.
655 * tree-vect-stmts.c: Likewise.
656 * tree-vectorizer.c: Likewise.
657 * tree-vrp.c: Likewise.
658 * tree.c: Likewise.
659 * tsan.c: Likewise.
660 * ubsan.c: Likewise.
661 * valtrack.c: Likewise.
662 * value-prof.c: Likewise.
663 * var-tracking.c: Likewise.
664 * varasm.c: Likewise.
665 * varpool.c: Likewise.
666 * vmsdbgout.c: Likewise.
667 * vtable-verify.c: Likewise.
668 * web.c: Likewise.
669 * wide-int.cc: Likewise.
670 * xcoffout.c: Likewise.
671 * config/aarch64/aarch64-builtins.c: Likewise.
672 * config/aarch64/aarch64.c: Likewise.
673 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
674 * config/alpha/alpha.c: Likewise.
675 * config/arc/arc.c: Likewise.
676 * config/arm/aarch-common.c: Likewise.
677 * config/arm/arm-builtins.c: Likewise.
678 * config/arm/arm-c.c: Likewise.
679 * config/arm/arm.c: Likewise.
680 * config/avr/avr-c.c: Likewise.
681 * config/avr/avr-log.c: Likewise.
682 * config/avr/avr.c: Likewise.
683 * config/bfin/bfin.c: Likewise.
684 * config/c6x/c6x.c: Likewise.
685 * config/cr16/cr16.c: Likewise.
686 * config/cris/cris.c: Likewise.
687 * config/darwin-c.c: Likewise.
688 * config/darwin.c: Likewise.
689 * config/epiphany/epiphany.c: Likewise.
690 * config/epiphany/mode-switch-use.c: Likewise.
691 * config/epiphany/resolve-sw-modes.c: Likewise.
692 * config/fr30/fr30.c: Likewise.
693 * config/frv/frv.c: Likewise.
694 * config/ft32/ft32.c: Likewise.
695 * config/h8300/h8300.c: Likewise.
696 * config/i386/i386-c.c: Likewise.
697 * config/i386/i386.c: Likewise.
698 * config/i386/msformat-c.c: Likewise.
699 * config/i386/winnt-cxx.c: Likewise.
700 * config/i386/winnt-stubs.c: Likewise.
701 * config/i386/winnt.c: Likewise.
702 * config/ia64/ia64-c.c: Likewise.
703 * config/ia64/ia64.c: Likewise.
704 * config/iq2000/iq2000.c: Likewise.
705 * config/lm32/lm32.c: Likewise.
706 * config/m32c/m32c-pragma.c: Likewise.
707 * config/m32c/m32c.c: Likewise.
708 * config/m32r/m32r.c: Likewise.
709 * config/m68k/m68k.c: Likewise.
710 * config/mcore/mcore.c: Likewise.
711 * config/mep/mep-pragma.c: Likewise.
712 * config/mep/mep.c: Likewise.
713 * config/microblaze/microblaze-c.c: Likewise.
714 * config/microblaze/microblaze.c: Likewise.
715 * config/mips/mips.c: Likewise.
716 * config/mmix/mmix.c: Likewise.
717 * config/mn10300/mn10300.c: Likewise.
718 * config/moxie/moxie.c: Likewise.
719 * config/msp430/msp430-c.c: Likewise.
720 * config/msp430/msp430.c: Likewise.
721 * config/nds32/nds32-cost.c: Likewise.
722 * config/nds32/nds32-fp-as-gp.c: Likewise.
723 * config/nds32/nds32-intrinsic.c: Likewise.
724 * config/nds32/nds32-isr.c: Likewise.
725 * config/nds32/nds32-md-auxiliary.c: Likewise.
726 * config/nds32/nds32-memory-manipulation.c: Likewise.
727 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
728 * config/nds32/nds32-predicates.c: Likewise.
729 * config/nds32/nds32.c: Likewise.
730 * config/nios2/nios2.c: Likewise.
731 * config/nvptx/nvptx.c: Likewise.
732 * config/pa/pa.c: Likewise.
733 * config/pdp11/pdp11.c: Likewise.
734 * config/rl78/rl78-c.c: Likewise.
735 * config/rl78/rl78.c: Likewise.
736 * config/rs6000/rs6000-c.c: Likewise.
737 * config/rs6000/rs6000.c: Likewise.
738 * config/rx/rx.c: Likewise.
739 * config/s390/s390-c.c: Likewise.
740 * config/s390/s390.c: Likewise.
741 * config/sh/sh-c.c: Likewise.
742 * config/sh/sh-mem.cc: Likewise.
743 * config/sh/sh.c: Likewise.
744 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
745 * config/sh/sh_treg_combine.cc: Likewise.
746 * config/sol2-c.c: Likewise.
747 * config/sol2-cxx.c: Likewise.
748 * config/sol2-stubs.c: Likewise.
749 * config/sol2.c: Likewise.
750 * config/sparc/sparc-c.c: Likewise.
751 * config/sparc/sparc.c: Likewise.
752 * config/spu/spu-c.c: Likewise.
753 * config/spu/spu.c: Likewise.
754 * config/stormy16/stormy16.c: Likewise.
755 * config/tilegx/mul-tables.c: Likewise.
756 * config/tilegx/tilegx-c.c: Likewise.
757 * config/tilegx/tilegx.c: Likewise.
758 * config/tilepro/mul-tables.c: Likewise.
759 * config/tilepro/tilepro-c.c: Likewise.
760 * config/tilepro/tilepro.c: Likewise.
761 * config/v850/v850-c.c: Likewise.
762 * config/v850/v850.c: Likewise.
763 * config/vax/vax.c: Likewise.
764 * config/visium/visium.c: Likewise.
765 * config/vms/vms-c.c: Likewise.
766 * config/vms/vms.c: Likewise.
767 * config/vxworks.c: Likewise.
768 * config/xtensa/xtensa.c: Likewise.
769
770 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
771
772 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
773 Remove operand constraints. Change operand 2 predicate to
774 nonmemory operand. Limit const_int values to mode bitsize. Only
775 allow const_int values less than 32 when optimizing for size.
776 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
777 Remove operand constraints.
778 (*bt<mode>): Use SImode for const_int values less than 32.
779 (regmode): Remove mode attribute.
780
781 2015-07-07 Anatoly Sokolov <aesok@post.ru>
782
783 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
784 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
785 moxie_legitimate_address_p): New functions.
786 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
787
788 2015-07-07 Tom de Vries <tom@codesourcery.com>
789
790 PR tree-optimization/66642
791 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
792 header comment. Rename split_edge variable to edge_at_split. Split
793 exit edge to create new loop exit bb. Insert loop exit phis in new
794 loop exit bb.
795
796 2015-07-07 Tom de Vries <tom@codesourcery.com>
797
798 * tree-cfg.c (get_virtual_phi): New function.
799 * tree-cfg.h (get_virtual_phi): Declare.
800 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
801 (rewrite_virtuals_into_loop_closed_ssa): New function.
802 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
803 Declare.
804 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
805 (transform_to_exit_first_loop_alt): Use
806 rewrite_virtuals_into_loop_closed_ssa.
807
808 2015-07-07 Richard Biener <rguenther@suse.de>
809
810 * fold-const.c (fold_binary_loc): Move
811 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
812 * match.pd: ... here.
813 Add (X * C1) % C2 -> 0 simplification pattern derived from
814 extract_muldiv_1.
815
816 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
817
818 PR target/66780
819 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
820 change for target/65249.
821
822 2015-07-07 Paulo Matos <pmatos@broadcom.com>
823
824 * symtab.c (address_matters_1): Fix typo in comment above.
825 (can_increase_alignment_p): Likewise.
826
827 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
828
829 * function.c (free_after_compilation): Clear PROP_cfg in
830 f->curr_properties.
831
832 2015-07-07 Richard Biener <rguenther@suse.de>
833
834 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
835 add which use to.
836 (add_control_edge): Remove excessive vertical space in dumping.
837 (process_ssa_edge_worklist): Simulate at most one statement and
838 return whether we did. Do not simulate PHIs if they are in a
839 BB not yet simulated.
840 (ssa_propagate): Adjust to always drain the BB worklist whenever
841 a BB is available there, likewise the VARYING edges list before
842 the interesting edge list.
843
844 2015-07-07 Christian Bruel <christian.bruel@st.com>
845
846 PR target/52144
847 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
848
849 2015-07-07 Richard Biener <rguenther@suse.de>
850
851 PR middle-end/66739
852 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
853 A - B.
854
855 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
856
857 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
858 modes for operands 0 and 3. Use SImode for operands 2 and 3.
859 Copy operand 0 to a temporary if !ext_register_operand. Remove
860 ancient extract_bit_field workaround.
861 (insv<mode>_1): Rename from mov<mode>_insv_1.
862 (*insvqi): Rename from *movqi_insv_2.
863 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
864 for renamed insvsi_1.
865 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
866
867 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
868
869 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
870 call to nvptx_reorg_subreg.
871
872 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
873
874 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
875 * graphite-dependencies.c, graphite-interchange.c,
876 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
877 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
878 Likewise.
879
880 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
881
882 * match.pd: Remove element_mode inside HONOR_*.
883 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
884 (~X | X -> -1, ~X ^ X -> -1): Merge.
885 * tree.c (build_each_one_cst): New function.
886 * tree.h (build_each_one_cst): Likewise.
887
888 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
889
890 * config.gcc <mips*-*-*>: Add fused-madd.opt.
891 * config/mips/mips.opt (mfused-madd): Remove.
892 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
893 * config/mips/mips.h (TARGET_MIPS8000): New.
894 (ISA_HAS_FP_MADD4_MSUB4): Remove.
895 (ISA_HAS_FP_MADDF_MSUBF): Remove.
896 (ISA_HAS_FP_MADD3_MSUB3): Remove.
897 (ISA_HAS_NMADD4_NMSUB4): Remove.
898 (ISA_HAS_NMADD3_NMSUB3): Remove.
899 (ISA_HAS_FUSED_MADD4): New.
900 (ISA_HAS_UNFUSED_MADD4): New.
901 (ISA_HAS_FUSED_MADDF): New.
902 (ISA_HAS_FUSED_MADD3): New.
903 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
904 (*fma<mode>4_madd3) New.
905 (*fma<mode>4_madd4) New.
906 (*fma<mode>4_maddf) New.
907 (fms<mode>4) New.
908 (*fms<mode>4_msub3) New.
909 (*fms<mode>4_msub4) New.
910 (fnma<mode>4) New.
911 (*fnma<mode>4_nmadd3) New.
912 (*fnma<mode>4_nmadd4) New.
913 (fnms<mode>4) New.
914 (*fnms<mode>4_nmsub3) New.
915 (*fnms<mode>4_nmsub4) New.
916 (*madd4<mode>) Modify to be unfused only.
917 (*msub4<mode>) Modify to be unfused only.
918 (*nmadd4<mode>) Modify to be unfused only.
919 (*nmsub4<mode>) Modify to be unfused only.
920 (*madd3<mode>) Remove.
921 (*msub3<mode>) Remove.
922 (*nmadd3<mode>) Remove.
923 (*nmsub3<mode>) Remove.
924 (*nmadd3<mode>_fastmath) Remove.
925 (*nmsub3<mode>_fastmath) Remove.
926 (*nmadd4<mode>_fastmath) Update condition.
927 (*nmsub4<mode>_fastmath) Update condition.
928
929 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
930
931 PR target/65956
932 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
933 alignment attribute, exploring one level down for records and arrays.
934
935 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
936
937 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
938 modes for operands 0 and 1. Use SImode for operands 2 and 3.
939 Copy operand 1 to a temporary if !ext_register_operand. Remove
940 ancient extract_bit_field workaround.
941 (*extv<mode>): Rename from *mov<mode>_extv_1.
942 (*extvqi): Rename from *movqi_extv_1.
943 (extzv<mode>): Rename from extzv. Use SWI248 modes for
944 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
945 to a temporary if !ext_register_operand. Remove ancient
946 extract_bit_field workaround.
947 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
948 (*extzvqi): Rename from *movqi_extzv_2.
949 (*testqi_ext_3): Remove modes from const_int_operand predicated
950 operands. Add "n" constraint.
951 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
952 operand. Add "J" constraint.
953 (*btsq, *btrq, *btcq peephole2s): Remove mode from
954 const_0_to_63 predicated operand.
955 (regmode): New insn attribute.
956 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
957 to nonmemory_operand. Use regmode insn attribute.
958 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
959 (*jcc_bt<mode>_mask): Remove mode from operand 3.
960 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
961 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
962 operands. Use "N" constraint instead of "n".
963
964 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
965
966 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
967
968 2015-07-06 Richard Biener <rguenther@suse.de>
969
970 PR tree-optimization/66772
971 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
972 values are available in the PHI node BB when there are
973 still unexecutable edges.
974
975 2015-07-06 Richard Biener <rguenther@suse.de>
976
977 PR tree-optimization/66767
978 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
979 Make sure to build the alignment test on a SSA name without
980 final alignment info valid only if the alignment test
981 evaluates to true.
982
983 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
984
985 PR target/66620
986 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
987 loop start when inserting LSETUP.
988
989 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
990
991 PR target/53383
992 * config/i386/i386.c (ix86_option_override_internal): Allow
993 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
994
995 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
996
997 * read-md.c (decimal_string): Rename to ...
998 (md_decimal_string): ... this.
999 (handle_enum): Reflect this.
1000
1001 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
1002
1003 PR target/66731
1004 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
1005
1006 2015-07-06 Richard Biener <rguenther@suse.de>
1007
1008 PR middle-end/66759
1009 * match.pd: Add missing constraint of y to REAL_CST in
1010 REAL_CST - x CMP y to y - CST CMP x simplification.
1011
1012 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
1013
1014 PR tree-optimization/66757
1015 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
1016
1017 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
1018 Sandra Loosemore <sandra@codesourcery.com>
1019
1020 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
1021 Delete extern declaration.
1022 (gprel_constant_p): Add extern declaration.
1023 * config/nios2/constraints.md ("S"): Use gprel_constant_p
1024 instead of nios2_symbol_ref_in_small_data_p.
1025 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
1026 (nios2_symbol_ref_in_small_data_p): Make static.
1027 (gprel_constant_p): Make non-static.
1028
1029 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
1030
1031 * doc/fragments.texi (Target Fragment): Convert debian.org
1032 link to use https.
1033 * doc/install.texi (Configuration): Ditto.
1034
1035 2015-07-05 Jakub Jelinek <jakub@redhat.com>
1036
1037 PR tree-optimization/66718
1038 * tree-vect-stmts.c (vectorizable_call): Replace uses of
1039 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
1040
1041 PR tree-optimization/66718
1042 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
1043 vectorizable_load, vectorizable_condition): Move vectype,
1044 nunits, ncopies computation after checking what kind of statement
1045 stmt is.
1046
1047 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1048
1049 * target-insns.def (extv, extzv, insv): New targetm instruction
1050 patterns.
1051 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
1052 interface.
1053 * recog.c (simplify_while_replacing): Likewise.
1054
1055 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1056
1057 * target-insns.def (doloop_begin, doloop_end): New targetm
1058 instruction patterns.
1059 * loop-init.c: Include target.h.
1060 (pass_loop2::gate): Use the new targetm patterns instead of
1061 HAVE_*/gen_* interface.
1062 (pass_rtl_doloop::gate): Likewise.
1063 (pass_rtl_doloop::execute): Remove preprocessor condition.
1064 * hw-doloop.c: Build unconditionally.
1065 * loop-doloop.c: Likewise.
1066 (doloop_optimize): Use the new targetm patterns instead of
1067 HAVE_*/gen_* interface.
1068 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
1069 * modulo-sched.c (doloop_register_get): Likewise.
1070
1071 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1072
1073 * target-insns.def (clear_cache): New targetm instruction pattern.
1074 * builtins.c (expand_builtin___clear_cache): Use it instead of
1075 HAVE_*/gen_* interface.
1076
1077 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1078
1079 * target-insns.def (allocate_stack, check_stack, probe_stack)
1080 (probe_stack_address, split_stack_prologue, split_stack_space_check):
1081 New targetm instruction patterns.
1082 * explow.c (allocate_dynamic_stack_space): Use them instead of
1083 HAVE_*/gen_* interface.
1084 (emit_stack_probe): Likewise.
1085 (probe_stack_range): Likewise.
1086 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1087
1088 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1089
1090 * target-insns.def (stack_protect_set, stack_protect_test): New
1091 targetm instruction patterns.
1092 * cfgexpand.c (stack_protect_prologue): Use them instead of
1093 HAVE_*/gen_* interface.
1094 * function.c (stack_protect_epilogue): Likewise.
1095
1096 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1097
1098 * expr.h (gen_move_insn_uncast): Delete.
1099 * expr.c (gen_move_insn_uncast): Delete.
1100
1101 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1102
1103 * target-insns.def (restore_stack_block, restore_stack_function)
1104 (restore_stack_nonlocal, save_stack_block, save_stack_function)
1105 (save_stack_nonlocal): New targetm instruction patterns.
1106 * builtins.c (expand_builtin_apply): Use them instead of
1107 HAVE_*/gen_* interface.
1108 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
1109
1110 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1111
1112 * target-insns.def (trap): New targetm instruction pattern.
1113 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
1114 interface.
1115 * explow.c (allocate_dynamic_stack_space): Likewise.
1116 * ifcvt.c (find_if_header): Likewise.
1117
1118 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1119
1120 * target-insns.def (prefetch): New targetm instruction pattern.
1121 * tree-ssa-loop-prefetch.c: Include targeth.
1122 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
1123 of HAVE_*/gen_* interface.
1124 * builtins.c (expand_builtin_prefetch): Likewise.
1125 * toplev.c (process_options): Likewise.
1126
1127 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1128
1129 * target-insns.def (untyped_call, untyped_return): New targetm
1130 instruction patterns.
1131 * builtins.c (expand_builtin_apply): Use them instead of
1132 HAVE_*/gen_* interface.
1133 (result_vector): Define unconditionally.
1134
1135 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1136
1137 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
1138 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
1139 (nonlocal_goto_receiver): New targetm instruction patterns.
1140 * builtins.c (expand_builtin_setjmp_setup): Use them instead
1141 of HAVE_*/gen_* interface.
1142 (expand_builtin_setjmp_receiver): Likewise.
1143 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
1144 * except.c (expand_dw2_landing_pad_for_region): Likewise.
1145
1146 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1147
1148 * target.def: Add code_for_* hooks.
1149 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
1150 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
1151 * target-insns.def (casesi, tablejump): New targetm instruction
1152 patterns.
1153 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
1154 (do_tablejump): Likewise.
1155 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
1156 (expand_sjlj_dispatch_table): Likewise.
1157 * targhooks.c (default_case_values_threshold): Likewise.
1158
1159 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
1160
1161 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
1162 Use rtx_insn * instead of rtx.
1163 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
1164 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
1165 (nios2_call_tls_get_addr): Likewise.
1166 (nios2_emit_expensive_div): Likewise.
1167 (nios2_emit_move_sequence): Change return type to bool.
1168 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
1169 Change return type to bool.
1170
1171 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1172
1173 PR target/66747
1174 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
1175
1176 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
1177
1178 PR target/66114
1179 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
1180 of register_operand. Remove constraint.
1181
1182 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
1183
1184 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
1185 the first argument.
1186
1187 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
1188
1189 * attribs.c (decl_attributes): Guard inform with the return value
1190 of the preceding warning.
1191
1192 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1193
1194 * doc/invoke.texi (moverride): Move to correct section.
1195
1196 2015-07-03 Richard Biener <rguenther@suse.de>
1197
1198 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
1199 Copy from tree.c
1200 (dt_operand::gen_gimple_expr): After valueizing operands
1201 re-canonicalize operand order for commutative tree codes.
1202
1203 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
1204
1205 PR target/66746.
1206 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
1207 is defined.
1208 (__crc32w): Likewise.
1209 (__crc32d): Likewise.
1210 (__rdpmc): Likewise.
1211 (__rdtscp): Likewise.
1212 (_rdpmc): Likewise.
1213 (_rdtscp): Likewise.
1214 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
1215 is defined.
1216
1217 2015-07-03 Richard Biener <rguenther@suse.de>
1218
1219 * fold-const.c (fold_mathfn_compare): Remove.
1220 (fold_inf_compare): Likewise.
1221 (fold_comparison): Move floating point comparison simplifications...
1222 * match.pd: ... to patterns here. Introduce simple_comparisons
1223 operator list and use it for patterns formerly in fold_comparison.
1224
1225 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1226
1227 PR tree-optimization/66119
1228 * toplev.c (process_options): Don't set up default values for
1229 the sra_max_scalarization_size_{speed,size} parameters.
1230 * tree-sra (analyze_all_variable_accesses): If no values
1231 have been set for the sra_max_scalarization_size_{speed,size}
1232 parameters, call get_move_ratio to get target defaults.
1233
1234 2015-07-03 Richard Biener <rguenther@suse.de>
1235
1236 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
1237 * match.pd: ... here.
1238
1239 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
1240
1241 PR target/37072
1242 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
1243 is not actually the default on FreeBSD.
1244
1245 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1246
1247 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
1248 definition.
1249 (CMPGE_8HI): Likewise.
1250 (CMPGE_4SI): Likewise.
1251 (CMPGE_2DI): Likewise.
1252 (CMPGE_U16QI): Likewise.
1253 (CMPGE_U8HI): Likewise.
1254 (CMPGE_U4SI): Likewise.
1255 (CMPGE_U2DI): Likewise.
1256 (CMPLE_16QI): Likewise.
1257 (CMPLE_8HI): Likewise.
1258 (CMPLE_4SI): Likewise.
1259 (CMPLE_2DI): Likewise.
1260 (CMPLE_U16QI): Likewise.
1261 (CMPLE_U8HI): Likewise.
1262 (CMPLE_U4SI): Likewise.
1263 (CMPLE_U2DI): Likewise.
1264 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1265 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
1266 ALTIVEC_BUILTIN_VEC_CMPLE.
1267 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
1268 floating-point vector modes.
1269 (vector_nlt<mode>): New define_expand.
1270 (vector_nltu<mode>): Likewise.
1271 (vector_ngt<mode>): Likewise.
1272 (vector_ngtu<mode>): Likewise.
1273
1274 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
1275
1276 PR rtl-optimization/66706
1277 * combine.c (make_compound_operation): If an AND of SUBREG of
1278 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
1279
1280 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
1281
1282 * tree-pass.h (make_pass_ch_vect): New.
1283 * passes.def: Add pass_ch_vect just before pass_if_conversion.
1284
1285 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
1286 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
1287 make_pass_ch_vect): New.
1288 (pass_ch): Extend ch_base.
1289
1290 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
1291 (ch_base::copy_headers): ...here.
1292
1293 2015-07-02 Richard Biener <rguenther@suse.de>
1294
1295 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
1296 * fold-const.c (get_pointer_modulus_and_residue): Remove.
1297 (fold_binary_loc): Implement (T)ptr & CST in terms of
1298 get_pointer_alignment_1.
1299 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1300 Make sure to build the alignment test on a SSA name without
1301 final alignment info valid only after the prologue.
1302
1303 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
1304
1305 * config/cris/cris.md ("epilogue"): Remove condition.
1306 ("prologue"): Ditto.
1307
1308 2015-07-02 Richard Biener <rguenther@suse.de>
1309
1310 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
1311 parameter to record a condition that is false.
1312 (record_conditions): When recording an extra NE_EXPR that is
1313 true also record a EQ_EXPR that is false.
1314
1315 2015-07-02 Bin Cheng <bin.cheng@arm.com>
1316
1317 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
1318 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
1319 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
1320 (set_iv, find_interesting_uses_address, add_candidate_1): New
1321 argument to alloc_iv.
1322 (find_interesting_uses_op, find_interesting_uses_cond): Don't
1323 duplicate struct iv.
1324 (free_loop_data): Don't free struct iv explicitly.
1325 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
1326
1327 2015-07-01 DJ Delorie <dj@redhat.com>
1328
1329 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
1330 (LIB_SPEC): Add.
1331 (SUPPORTS_DISCRIMINATOR): Define.
1332
1333 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
1334
1335 PR bootstrap/66685
1336 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
1337 there are no CALLs in the same pattern.
1338
1339 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1340
1341 PR rtl-optimization/61047
1342 * rtlanal.c (get_initial_register_offset): New function.
1343 (rtx_addr_can_trap_p_1): Check offsets of stack references.
1344
1345 2015-07-01 Richard Biener <rguenther@suse.de>
1346
1347 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
1348 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
1349 ~X CMP C -> X CMP' ~C to ...
1350 * match.pd: ... patterns here.
1351
1352 2015-07-01 Nick Clifton <nickc@redhat.com>
1353
1354 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
1355 a 16-bit value into a 20-bit memory slot.
1356
1357 2015-07-01 Jiong Wang <jiong.wang@arm.com>
1358
1359 * doc/sourcebuild.texi (AArch64-specific attributes): Document
1360 "aarch64_tiny", "aarch64_small", "aarch64_large",
1361 "aarch64_little_endian", "aarch64_big_endian".
1362
1363 2015-07-01 Jiong Wang <jiong.wang@arm.com>
1364
1365 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
1366 Document "aarch64_small_fpic".
1367
1368 2015-07-01 Jiong Wang <jiong.wang@arm.com>
1369
1370 * configure.ac: Add check for aarch64 assembler -fpic relocation
1371 modifier support.
1372 * configure: Regenerate.
1373 * config.in: Regenerate.
1374 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
1375 to -fPIC if not support of -fpic relocation modifier in assembler.
1376
1377 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
1378
1379 PR bootstrap/66685
1380 * rtl.c (classify_insn): Handle returns in PARALLELs.
1381
1382 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
1383
1384 PR middle-end/66633
1385 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
1386 to true if the function is nested and if not optimizing.
1387 (convert_local_omp_clauses): Initialize need_frame to true if the
1388 function contains nested functions and if not optimizing.
1389
1390 2015-07-01 Richard Biener <rguenther@suse.de>
1391
1392 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
1393 (X & Y) ^ Y -> ~X & Y transforms to ...
1394 * match.pd: ... here.
1395
1396 2015-07-01 Richard Biener <rguenther@suse.de>
1397
1398 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
1399 of converts to avoid uninteresting noise from the conversion
1400 simplifying patterns.
1401
1402 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
1403
1404 * config/c6x/c6x.c (try_rename_operands): Do not depend on
1405 gcc_assert evaluating its argument for side-effect.
1406
1407 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
1408
1409 PR target/64833
1410 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
1411 flag_pic is set.
1412
1413 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
1414
1415 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
1416 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
1417 (hash_scc): Add this_ref_p and ref_p parameters and pass them
1418 to the inner DFS walk.
1419
1420 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
1421
1422 * target-insns.def (jump): New targetm instruction pattern.
1423 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
1424 instead of gen_jump.
1425 (fix_up_crossing_landing_pad): Likewise.
1426 (add_labels_and_missing_jumps): Likewise.
1427 (fix_crossing_conditional_branches): Likewise.
1428 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1429 (force_nonfallthru_and_redirect): Likewise.
1430 * cse.c (cse_insn): Likewise.
1431 * expmed.c (expand_divmod): Likewise.
1432 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
1433 * haifa-sched.c (init_before_recovery): Likewise.
1434 (sched_create_recovery_edges): Likewise.
1435 * ifcvt.c (find_cond_trap): Likewise.
1436 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
1437 (expand_float, expand_fix): Likewise.
1438 * stmt.c (emit_jump): Likewise.
1439
1440 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
1441
1442 * defaults.h (HAVE_load_multiple, gen_load_multiple)
1443 (HAVE_store_multiple, gen_store_multiple): Delete.
1444 * target-insns.def (load_multiple, store_multiple): New targetm
1445 instruction patterns.
1446 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
1447 of HAVE_*/gen_* interface.
1448
1449 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
1450
1451 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
1452 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
1453 (gen_mem_signal_fence): Delete.
1454 * target-insns.def (mem_signal_fence, mem_thread_fence)
1455 (memory_barrier): New targetm instruction patterns.
1456 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
1457 interface.
1458 (expand_mem_signal_fence): Likewise.
1459
1460 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
1461
1462 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
1463 * target-insns.def (epilogue, prologue, sibcall_prologue): New
1464 targetm instruction patterns.
1465 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
1466 interface.
1467 * calls.c (expand_call): Likewise.
1468 * cfgrtl.c (cfg_layout_finalize): Likewise.
1469 * df-scan.c (df_get_entry_block_def_set): Likewise.
1470 (df_get_exit_block_use_set): Likewise.
1471 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
1472 * final.c (final_start_function): Likewise.
1473 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1474 (reposition_prologue_and_epilogue_notes): Likewise.
1475 * reorg.c (find_end_label): Likewise.
1476 * toplev.c (process_options): Likewise.
1477
1478 2015-06-30 David Malcolm <dmalcolm@redhat.com>
1479
1480 * typed-splay-tree.h: New file.
1481
1482 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
1483
1484 PR debug/66691
1485 * lra-int.h (lra_substitute_pseudo): Add a parameter.
1486 (lra_substitute_pseudo_within_insn): Ditto.
1487 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
1488 of constant.
1489 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
1490 to lra_substitute_pseudo.
1491 * lra-lives.c (process_bb_lives): Add an argument to
1492 lra_substitute_pseudo_within_insn call.
1493 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
1494 argument to lra_substitute_pseudo and
1495 lra_substitute_pseudo_within_insn calls.
1496 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
1497
1498 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
1499
1500 * configure: Regenerated.
1501
1502 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
1503
1504 * config.gcc: Support i[34567]86-*-elfiamcu target.
1505 * config/i386/iamcu.h: New.
1506 * config/i386/i386.opt: Add -miamcu.
1507 * doc/invoke.texi: Document -miamcu.
1508 * common/config/i386/i386-common.c (ix86_handle_option): Turn
1509 off x87/MMX/SSE/AVX codegen for -miamcu.
1510 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1511 __iamcu/__iamcu__ for -miamcu.
1512 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
1513 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
1514 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
1515 * config/i386/i386.c (ix86_option_override_internal): Ignore and
1516 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
1517 MCU by default. Default long double to 64-bit for Intel MCU.
1518 Turn on -freg-struct-return for Intel MCU. Issue an error when
1519 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
1520 AVX is turned on.
1521 (function_arg_advance_32): Pass value whose size is no larger
1522 than 8 bytes in registers for Intel MCU.
1523 (function_arg_32): Likewise.
1524 (ix86_return_in_memory): Return value whose size is no larger
1525 than 8 bytes in registers for Intel MCU.
1526 (iamcu_alignment): New function.
1527 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
1528 true.
1529 (ix86_local_alignment): Don't increase alignment for Intel MCU.
1530 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
1531 true.
1532
1533 2015-06-30 Marek Polacek <polacek@redhat.com>
1534
1535 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
1536 both operands of the resulting expression.
1537
1538 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
1539 the final expression with the operand's type and then convert
1540 it to the type of the expression.
1541
1542 2015-06-30 Richard Biener <rguenther@suse.de>
1543
1544 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
1545 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
1546 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
1547 * match.pd: ... to patterns here.
1548
1549 2015-06-30 Richard Biener <rguenther@suse.de>
1550
1551 PR tree-optimization/66704
1552 * tree-vect-data-refs.c (vect_setup_realignment): Use
1553 make_ssa_name for non-SSA name source.
1554
1555 2015-06-30 Jakub Jelinek <jakub@redhat.com>
1556
1557 PR middle-end/66702
1558 * omp-low.c (simd_clone_adjust): Handle addressable linear
1559 or uniform parameters or non-gimple type uniform parameters.
1560
1561 2015-06-30 Richard Biener <rguenther@suse.de>
1562
1563 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
1564 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
1565 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
1566 * match.pd: ... here.
1567 Add a few cases of A - B -> A + (-B) when B "easily" negates.
1568 Move (x & y) | x -> x and friends before
1569 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
1570
1571 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
1572
1573 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
1574 -mfix-ut699 is not specified.
1575 (leon3_load): Rename into...
1576 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
1577 is specified.
1578
1579 2015-06-30 Marek Polacek <polacek@redhat.com>
1580
1581 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
1582 * match.pd: ... here.
1583
1584 2015-06-30 Richard Biener <rguenther@suse.de>
1585
1586 * target-insns.def (canonicalize_funcptr_for_compare): Add.
1587 * fold-const.c (build_range_check): Replace uses of
1588 HAVE_canonicalize_funcptr_for_compare.
1589 (fold_widened_comparison): Likewise.
1590 (fold_sign_changed_comparison): Likewise.
1591 * dojump.c: Include "target.h".
1592 (do_compare_and_jump): Replace uses of
1593 HAVE_canonicalize_funcptr_for_compare and
1594 gen_canonicalize_funcptr_for_compare.
1595 * expr.c (do_store_flag): Likewise.
1596
1597 2015-06-30 Tom de Vries <tom@codesourcery.com>
1598
1599 PR tree-optimization/66652
1600 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
1601 max_loop_iterations to determine if nit + 1 overflows.
1602
1603 2015-06-30 Richard Biener <rguenther@suse.de>
1604
1605 * tree-vrp.c (register_edge_assert_for_2): Also register
1606 asserts for dominating conversion results.
1607
1608 2015-06-30 Bin Cheng <bin.cheng@arm.com>
1609
1610 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
1611 field in struct iv.
1612
1613 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
1614
1615 PR target/66509
1616 * configure.ac: Fix filds and fildq test for 64-bit.
1617 * configure: Regenerated.
1618
1619 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
1620
1621 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
1622 (nvptx_reorg): Here. Keep the non-subreg pieces.
1623
1624 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
1625
1626 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
1627 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
1628
1629 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
1630
1631 * config/i386/i386.md (*jcc_1): Use %! in asm template.
1632 Set attribute "length_nobnd" instead of "length".
1633 (*jcc_2): Ditto.
1634 (jump): Ditto.
1635 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
1636
1637 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
1638
1639 * config/nios2/nios2.c (nios2_delegitimize_address): Make
1640 assert less restrictive.
1641
1642 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1643
1644 PR fortran/66605
1645 * cgraphunit.c (cgraph_node::finalize_function): Do not call
1646 do_warn_unused_parameter.
1647 * function.c (do_warn_unused_parameter): Move from here.
1648 * function.h (do_warn_unused_parameter): Do not declare.
1649
1650 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
1651
1652 PR target/65697
1653 * gcc.target/arm/armv-sync-comp-swap.c: New.
1654 * gcc.target/arm/armv-sync-op-acquire.c: New.
1655 * gcc.target/arm/armv-sync-op-full.c: New.
1656 * gcc.target/arm/armv-sync-op-release.c: New.
1657
1658 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
1659
1660 PR target/65697
1661 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
1662 initial acquire barrier with final barrier.
1663
1664 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
1665
1666 PR target/65697
1667 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
1668 initial acquire barrier with final barrier.
1669
1670 2015-06-29 Richard Henderson <rth@redhat.com>
1671
1672 * config/i386/constraints.md (Bf): New constraint.
1673 * config/i386/i386-c.c (ix86_target_macros): Define
1674 __GCC_ASM_FLAG_OUTPUTS__.
1675 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
1676 as flags outputs.
1677 * doc/extend.texi (FlagOutputOperands): Document them.
1678
1679 2015-06-29 Jiong Wang <jiong.wang@arm.com>
1680
1681 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
1682 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
1683 unspec name.
1684 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
1685 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
1686 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
1687 (aarch64_symbol_context): Ditto.
1688 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
1689 and use new pattern name.
1690 (aarch64_expand_mov_immediate): Ditto.
1691 (aarch64_print_operand): Ditto.
1692 (aarch64_classify_tls_symbol): Ditto.
1693
1694 2015-06-29 Marek Polacek <polacek@redhat.com>
1695 Marc Glisse <marc.glisse@inria.fr>
1696
1697 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
1698 * match.pd: ... pattern here.
1699
1700 2015-06-29 Tom de Vries <tom@codesourcery.com>
1701
1702 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
1703 function structure.
1704
1705 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
1706
1707 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
1708 feature description, split out the native option, add a link to
1709 the feature documentation, rearrange and slightly rewrite text.
1710 (Aarch64 options, -mcpu): Likewise.
1711 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
1712 +rdma implies Adv. SIMD.
1713
1714 2015-06-29 Marek Polacek <polacek@redhat.com>
1715
1716 PR c/66322
1717 * function.c (stack_protect_epilogue): Remove a cast to int.
1718 * doc/invoke.texi: Update -Wswitch-bool description.
1719
1720 2015-06-29 Richard Biener <rguenther@suse.de>
1721
1722 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
1723 * fold-const.c (fold_binary_loc): Move &A - &B simplification
1724 via ptr_difference_const ...
1725 * match.pd: ... here.
1726 When matching (X ^ Y) == Y also match with swapped operands.
1727
1728 2015-06-29 Richard Biener <rguenther@suse.de>
1729
1730 * lto-streamer.h (LTO_major_version): Bump to 5.
1731
1732 2015-06-29 Richard Biener <rguenther@suse.de>
1733
1734 PR tree-optimization/66677
1735 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
1736 STMT_VINFO_VEC_STMT clobbering less strict.
1737
1738 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
1739
1740 PR middle-end/64130
1741 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
1742 division, compute max and min when value ranges for dividend and
1743 divisor are available.
1744
1745 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
1746 Sandra Loosemore <sandra@codesourcery.com>
1747
1748 * regrename.h (regrename_do_replace): Change to return bool.
1749 * regrename.c (rename_chains): Check return value of
1750 regname_do_replace.
1751 (regrename_do_replace): Re-validate the modified insns and
1752 return bool status.
1753 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
1754 Update to match rename_chains changes.
1755 * config/c6x/c6x.c (try_rename_operands): Assert that
1756 regrename_do_replace returns true.
1757
1758 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
1759
1760 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
1761 operand 2 here. Use copy_addr_to_reg to copy non-index
1762 register operand 2 to a temporary.
1763 (<mode>_stx): Ditto for operand 1.
1764 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
1765 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
1766 (ix86_store_bounds): Ditto.
1767
1768 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
1769
1770 * print-tree.c (print_node) [TREE_VEC]: Print its length.
1771
1772 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
1773
1774 * gimple.c (gimple_call_set_fndecl): Remove.
1775 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
1776 build1_loc directly instead of build_fold_addr_expr_loc.
1777
1778 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
1779
1780 * hash-map.h (hash_map::traverse): Use the definition of the
1781 Key typedef rather than the typedef itself.
1782
1783 2015-06-26 Martin Jambor <mjambor@suse.cz>
1784
1785 PR debug/66301
1786 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
1787 NULL instead of calling dump_enabled_p.
1788
1789 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
1790
1791 * config/aarch64/aarch64.opt: (override): New.
1792 * doc/invoke.texi (override): Document.
1793 * config/aarch64/aarch64.c (aarch64_flag_desc): New
1794 (aarch64_fusible_pairs): Likewise.
1795 (aarch64_tuning_flags): Likewise.
1796 (aarch64_tuning_override_function): Likewise.
1797 (aarch64_tuning_override_functions): Likewise.
1798 (aarch64_parse_one_option_token): Likewise.
1799 (aarch64_parse_boolean_options): Likewise.
1800 (aarch64_parse_fuse_string): Likewise.
1801 (aarch64_parse_tune_string): Likewise.
1802 (aarch64_parse_one_override_token): Likewise.
1803 (aarch64_parse_override_string): Likewise.
1804 (aarch64_override_options): Parse the -override string if it
1805 is present.
1806
1807 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
1808
1809 * config/aarch64/aarch64-protos.h (tune_params): Remove
1810 const from members.
1811 (aarch64_tune_params): Remove const, change to no longer be
1812 a pointer.
1813 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
1814 change to no longer be a pointer, initialize to generic_tunings.
1815 (aarch64_min_divisions_for_recip_mul): Change dereference of
1816 aarch64_tune_params to member access.
1817 (aarch64_reassociation_width): Likewise.
1818 (aarch64_rtx_mult_cost): Likewise.
1819 (aarch64_address_cost): Likewise.
1820 (aarch64_branch_cost): Likewise.
1821 (aarch64_rtx_costs): Likewise.
1822 (aarch64_register_move_cost): Likewise.
1823 (aarch64_memory_move_cost): Likewise.
1824 (aarch64_sched_issue_rate): Likewise.
1825 (aarch64_builtin_vectorization_cost): Likewise.
1826 (aarch64_override_options): Take a copy of the selected tuning
1827 struct in to aarch64_tune_params, rather than just setting
1828 a pointer, change dereferences of aarch64_tune_params to member
1829 accesses.
1830 (aarch64_override_options_after_change): Change dereferences of
1831 aarch64_tune_params to member access.
1832 (aarch64_macro_fusion_p): Likewise.
1833 (aarch_macro_fusion_pair_p): Likewise.
1834 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
1835
1836 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
1837
1838 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
1839 (aarch64_tune_flags): Likewise.
1840 (AARCH64_TUNE_FMA_STEERING): Likewise.
1841 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
1842 to AARCH64_FL_USE_FMA_STEERING_PASS.
1843 (cortex-a57.cortex-a53): Likewise.
1844 (cortex-a72): Use cortexa72_tunings.
1845 (cortex-a72.cortex-a53): Likewise.
1846 (exynos-m1): Likewise.
1847 * config/aarch64/aarch64-protos.h (tune_params): Add
1848 a field: extra_tuning_flags.
1849 * config/aarch64/aarch64-tuning-flags.def: New.
1850 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
1851 (aarch64_extra_tuning_flags): Likewise.
1852 (aarch64_tune_params): Declare here.
1853 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
1854 (cortexa53_tunings): Likewise.
1855 (cortexa57_tunings): Likewise.
1856 (thunderx_tunings): Likewise.
1857 (xgene1_tunings): Likewise.
1858 (cortexa72_tunings): New.
1859 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
1860 (gate): Check against aarch64_tune_params.
1861 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
1862 aarch64-protos.h.
1863
1864 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
1865
1866 * config/aarch64/aarch64-fusion-pairs.def: New.
1867 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
1868 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
1869 aarch64_fusion_pairs.
1870 (AARCH64_FUSE_MOV_MOVK): Likewise.
1871 (AARCH64_FUSE_ADRP_ADD): Likewise.
1872 (AARCH64_FUSE_MOVK_MOVK): Likewise.
1873 (AARCH64_FUSE_ADRP_LDR): Likewise.
1874 (AARCH64_FUSE_CMP_BRANCH): Likewise.
1875
1876 2015-06-26 Jiong Wang <jiong.wang@arm.com>
1877
1878 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
1879 SYMBOL_SMALL_GOT_28K.
1880 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
1881 relocation modifiers.
1882 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
1883 (ldr_got_small_28k_<mode>): New.
1884 (ldr_got_small_28k_sidi): New.
1885 * config/aarch64/iterators.md (got_modifier): New mode iterator.
1886 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
1887 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
1888 SYMBOL_SMALL_GOT_28K.
1889 (aarch64_rtx_costs): Add costs for new instruction sequences.
1890 (initialize_aarch64_code_model): Initialize new model.
1891 (aarch64_classify_symbol): Recognize new model and new symbol classification.
1892 (aarch64_asm_preferred_eh_data_format): Support new model.
1893 (aarch64_load_symref_appropriately): Generate new instruction
1894 sequences for -fpic.
1895 (TARGET_USE_PSEUDO_PIC_REG): New definition.
1896 (aarch64_use_pseudo_pic_reg): New function.
1897
1898 2015-06-26 Jiong Wang <jiong.wang@arm.com>
1899
1900 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
1901 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
1902 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
1903 (aarch64_expand_mov_immediate): Ditto.
1904 (aarch64_print_operand): Ditto.
1905 (aarch64_classify_symbol): Ditto.
1906
1907 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
1908
1909 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
1910
1911 2015-06-26 Bin Cheng <bin.cheng@arm.com>
1912
1913 PR bootstrap/66638
1914 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
1915 assertion failed. Remove assertion itself.
1916
1917 2015-06-26 Richard Biener <rguenther@suse.de>
1918
1919 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
1920 and -A CMP CST -> A CMP -CST which is redundant with a pattern
1921 in match.pd.
1922 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
1923 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
1924 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
1925 * match.pd: ... patterns here.
1926
1927 2015-06-26 Marek Polacek <polacek@redhat.com>
1928
1929 * match.pd ((x | y) & ~(x & y) -> x ^ y,
1930 (x | y) & (~x ^ y) -> x & y): New patterns.
1931
1932 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
1933
1934 * rtl.h (emit): Add an optional boolean parameter to control
1935 whether barriers are emitted.
1936 * emit-rtl.c (emit): Likewise.
1937 * gensupport.c (get_emit_function): Return null rather than "emit".
1938 * genemit.c (gen_emit_seq): Handle the null return value.
1939 Don't emit barriers after the final instruction in the sequence.
1940 * gentarget-def.c (main): Don't emit barriers after the instruction.
1941
1942 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1943
1944 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
1945 TARGET_UNIFIED_ASM.
1946
1947 2015-06-26 Richard Biener <rguenther@suse.de>
1948
1949 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
1950
1951 2015-06-26 Richard Biener <rguenther@suse.de>
1952
1953 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
1954 irrespective on whether the inner operation has a single use
1955 of both off are constant.
1956
1957 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
1958 Segher Boessenkool <segher@kernel.crashing.org>
1959
1960 PR target/66412
1961 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
1962 before doing PUT_MODE or PUT_CODE on operands to avoid
1963 in-place RTX modification.
1964
1965 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
1966
1967 * gentarget-def.c (def_target_insn): Cast return of strtol to
1968 unsigned int.
1969
1970 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1971
1972 * gimple.h (gimple_call_set_fn): Move inline function.
1973 * gimple.c (gimple_call_set_fn): Relocate here.
1974
1975 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
1976
1977 PR target/65979
1978 PR target/66611
1979 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
1980 the replacement insn will work.
1981
1982 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
1983
1984 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
1985 by default.
1986
1987 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1988
1989 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
1990 * cgraph.h: Include ipa-ref.h and plugin-api.h.
1991 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
1992 (symtab_node::address_can_be_compared_p): Move function.
1993 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
1994 definition here.
1995 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
1996 * auto-profile.c: Likewise.
1997 * bb-reorder.c: Likewise.
1998 * builtins.c: Likewise.
1999 * calls.c: Likewise.
2000 * cfgexpand.c: Likewise.
2001 * cgraphbuild.c: Likewise.
2002 * cgraphclones.c: Likewise.
2003 * cgraphunit.c: Likewise.
2004 * combine.c: Likewise.
2005 * coverage.c: Likewise.
2006 * data-streamer-in.c: Likewise.
2007 * data-streamer-out.c: Likewise.
2008 * data-streamer.c: Likewise.
2009 * dbxout.c: Likewise.
2010 * dwarf2out.c: Likewise.
2011 * except.c: Likewise.
2012 * expr.c: Likewise.
2013 * final.c: Likewise.
2014 * fold-const.c: Likewise.
2015 * ggc-page.c: Likewise.
2016 * gimple-fold.c: Likewise.
2017 * gimple-iterator.c: Likewise.
2018 * gimple-pretty-print.c: Likewise.
2019 * gimple-streamer-in.c: Likewise.
2020 * gimple-streamer-out.c: Likewise.
2021 * gimple.c: Likewise.
2022 * gimplify.c: Likewise.
2023 * ipa-chkp.c: Likewise.
2024 * ipa-comdats.c: Likewise.
2025 * ipa-cp.c: Likewise.
2026 * ipa-devirt.c: Likewise.
2027 * ipa-icf-gimple.c: Likewise.
2028 * ipa-icf.c: Likewise.
2029 * ipa-inline-analysis.c: Likewise.
2030 * ipa-inline-transform.c: Likewise.
2031 * ipa-inline.c: Likewise.
2032 * ipa-polymorphic-call.c: Likewise.
2033 * ipa-profile.c: Likewise.
2034 * ipa-prop.c: Likewise.
2035 * ipa-pure-const.c: Likewise.
2036 * ipa-ref.c: Likewise.
2037 * ipa-reference.c: Likewise.
2038 * ipa-split.c: Likewise.
2039 * ipa-utils.c: Likewise.
2040 * ipa-visibility.c: Likewise.
2041 * ipa.c: Likewise.
2042 * langhooks.c: Likewise.
2043 * lto-cgraph.c: Likewise.
2044 * lto-compress.c: Likewise.
2045 * lto-opts.c: Likewise.
2046 * lto-section-in.c: Likewise.
2047 * lto-section-out.c: Likewise.
2048 * lto-streamer-in.c: Likewise.
2049 * lto-streamer-out.c: Likewise.
2050 * lto-streamer.c: Likewise.
2051 * omp-low.c: Likewise.
2052 * opts-global.c: Likewise.
2053 * passes.c: Likewise.
2054 * predict.c: Likewise.
2055 * print-tree.c: Likewise.
2056 * profile.c: Likewise.
2057 * ree.c: Likewise.
2058 * sanopt.c: Likewise.
2059 * stor-layout.c: Likewise.
2060 * symtab.c: Likewise.
2061 * toplev.c: Likewise.
2062 * trans-mem.c: Likewise.
2063 * tree-cfg.c: Likewise.
2064 * tree-chkp.c: Likewise.
2065 * tree-eh.c: Likewise.
2066 * tree-emutls.c: Likewise.
2067 * tree-inline.c: Likewise.
2068 * tree-nested.c: Likewise.
2069 * tree-parloops.c: Likewise.
2070 * tree-pretty-print.c: Likewise.
2071 * tree-profile.c: Likewise.
2072 * tree-sra.c: Likewise.
2073 * tree-ssa-alias.c: Likewise.
2074 * tree-ssa-live.c: Likewise.
2075 * tree-ssa-loop-ivcanon.c: Likewise.
2076 * tree-ssa-loop-ivopts.c: Likewise.
2077 * tree-ssa-pre.c: Likewise.
2078 * tree-ssa-sccvn.c: Likewise.
2079 * tree-ssa-strlen.c: Likewise.
2080 * tree-ssa-structalias.c: Likewise.
2081 * tree-streamer-in.c: Likewise.
2082 * tree-streamer-out.c: Likewise.
2083 * tree-streamer.c: Likewise.
2084 * tree-switch-conversion.c: Likewise.
2085 * tree-tailcall.c: Likewise.
2086 * tree-vect-data-refs.c: Likewise.
2087 * tree-vect-stmts.c: Likewise.
2088 * tree-vectorizer.c: Likewise.
2089 * tree.c: Likewise.
2090 * tsan.c: Likewise.
2091 * ubsan.c: Likewise.
2092 * value-prof.c: Likewise.
2093 * varasm.c: Likewise.
2094 * varpool.c: Likewise.
2095 * config/arm/arm.c: Likewise.
2096 * config/bfin/bfin.c: Likewise.
2097 * config/c6x/c6x.c: Likewise.
2098 * config/cris/cris.c: Likewise.
2099 * config/darwin-c.c: Likewise.
2100 * config/darwin.c: Likewise.
2101 * config/i386/i386.c: Likewise.
2102 * config/i386/winnt.c: Likewise.
2103 * config/microblaze/microblaze.c: Likewise.
2104 * config/mips/mips.c: Likewise.
2105 * config/rs6000/rs6000.c: Likewise.
2106 * config/rx/rx.c: Likewise.
2107 * config/s390/s390.c: Likewise.
2108 * config/tilegx/mul-tables.c: Likewise.
2109
2110 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2111
2112 * config/aarch64/aarch64.c, config/alpha/alpha.c,
2113 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
2114 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
2115 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
2116 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
2117 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
2118 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
2119 config/microblaze/microblaze.c, config/mips/mips.c,
2120 config/mmix/mmix.c, config/mn10300/mn10300.c,
2121 config/moxie/moxie.c, config/msp430/msp430.c,
2122 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
2123 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
2124 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
2125 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
2126 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2127 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
2128 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
2129 target-def.h include.
2130 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
2131
2132 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2133
2134 * Makefile.in (TARGET_DEF): Add target-insns.def.
2135 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
2136 (build/gentarget-def.o): New rule.
2137 (genprogrtl): Add target-def.
2138 * target-insns.def, gentarget-def.c: New files.
2139 * target.def: Add targetm.have_* and targetm.gen_* hooks,
2140 based on the contents of target-insns.def.
2141 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
2142 (HAVE_return, gen_return): Delete.
2143 * target-def.h: Include insn-target-def.h.
2144 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
2145 instead of direct calls. Rely on them to do the appropriate assertions.
2146 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
2147 (convert_jumps_to_returns): Use targetm interface instead of
2148 direct calls.
2149 (thread_prologue_and_epilogue_insns): Likewise.
2150 * reorg.c (find_end_label, dbr_schedule): Likewise.
2151 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
2152 * shrink-wrap.c (convert_to_simple_return): Likewise.
2153 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
2154
2155 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2156
2157 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
2158 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2159 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
2160 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
2161 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
2162 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
2163 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
2164 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
2165 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
2166 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
2167 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
2168 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
2169 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
2170 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2171 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
2172 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
2173 includes to end.
2174
2175 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2176
2177 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
2178 (unbounded_int_hashmap_traits::key_type): Likewise.
2179 * hash-map.h (hash_map): Get the key type from the traits.
2180 * hash-traits.h (default_hash_traits): By default, inherit from the
2181 template parameter.
2182 * alias.c (alias_set_traits): Delete.
2183 (alias_set_entry_d::children): Use alias_set_hash as the first
2184 template parameter.
2185 (record_alias_subset): Update accordingly.
2186 * except.c (tree_hash_traits): Delete.
2187 (type_to_runtime_map): Use tree_hash as the first template parameter.
2188 (init_eh): Update accordingly.
2189 * genmatch.c (capture_id_map_hasher): Delete.
2190 (cid_map_t): Use nofree_string_hash as first template parameter.
2191 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
2192 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
2193 Use symbol_compare_hash as the first template parameter in
2194 subdivide_hash_map.
2195 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
2196 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
2197 template parameter.
2198 * passes.c (pass_registry_hasher): Delete.
2199 (name_to_pass_map): Use nofree_string_hash as the first template
2200 parameter.
2201 (register_pass_name): Update accordingly.
2202 * sanopt.c (sanopt_tree_map_traits): Delete.
2203 (sanopt_tree_triplet_map_traits): Delete.
2204 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
2205 template parameter.
2206 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
2207 the first template parameter.
2208 * sese.c (rename_map_hasher): Delete.
2209 (rename_map_type): Use tree_ssa_name_hash as the first template
2210 parameter.
2211 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
2212 (function_summary::m_map): Use map_hash as the first template
2213 parameter.
2214 (function_summary::release): Update accordingly.
2215 * tree-if-conv.c (phi_args_hash_traits): Delete.
2216 (predicate_scalar_phi): Use tree_operand_hash as the first template
2217 parameter to phi_arg_map.
2218 * tree-inline.h (dependence_hasher): Delete.
2219 (copy_body_data::dependence_map): Use dependence_hash as the first
2220 template parameter.
2221 * tree-inline.c (remap_dependence_clique): Update accordingly.
2222 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
2223 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
2224 parameter.
2225 (addr_stridxptr): Update accordingly.
2226 * value-prof.c (profile_id_traits): Delete.
2227 (cgraph_node_map): Use profile_id_hash as the first template
2228 parameter.
2229 (init_node_map): Update accordingly.
2230 * config/alpha/alpha.c (string_traits): Delete.
2231 (machine_function::links): Use nofree_string_hash as the first
2232 template parameter.
2233 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
2234 * config/m32c/m32c.c (pragma_traits): Delete.
2235 (pragma_htab): Use nofree_string_hash as the first template parameter.
2236 (m32c_note_pragma_address): Update accordingly.
2237 * config/mep/mep.c (pragma_traits): Delete.
2238 (pragma_htab): Use nofree_string_hash as the first template parameter.
2239 (mep_note_pragma_flag): Update accordingly.
2240 * config/mips/mips.c (mips16_flip_traits): Delete.
2241 (mflip_mips16_htab): Use nofree_string_hash as the first template
2242 parameter.
2243 (mflip_mips16_use_mips16_p): Update accordingly.
2244 (local_alias_traits): Delete.
2245 (mips16_local_aliases): Use nofree_string_hash as the first template
2246 parameter.
2247 (mips16_local_alias): Update accordingly.
2248
2249 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2250
2251 * hash-map-traits.h (default_hashmap_traits): Delete.
2252
2253 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2254
2255 * hash-map-traits.h (unbounded_hashmap_traits): New class.
2256 (unbounded_int_hashmap_traits): Likewise.
2257 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
2258
2259 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2260
2261 * ipa-icf.h (symbol_compare_hash): New class.
2262 (symbol_compare_hashmap_traits): Use it.
2263 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
2264 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
2265 (mem_alloc_description::reverse_mem_map_t): Remove redundant
2266 default_hashmap_traits.
2267 * sanopt.c (sanopt_tree_triplet_hash): New class.
2268 (sanopt_tree_triplet_map_traits): Use it.
2269
2270 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2271
2272 * gengtype-parse.c (require_template_declaration): Allow '+' in
2273 template parameters. Consolidate cases.
2274 * hash-traits.h (int_hash): New class.
2275 * alias.c (alias_set_hash): New structure.
2276 (alias_set_traits): Use it.
2277 * symbol-summary.h (function_summary::map_hash): New class.
2278 (function_summary::summary_hashmap_traits): Use it.
2279 * tree-inline.h (dependence_hash): New class.
2280 (dependence_hasher): Use it.
2281 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
2282 * value-prof.c (profile_id_hash): New class.
2283 (profile_id_traits): Use it.
2284
2285 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2286
2287 * config/mips/mips.c (mips16_flip_traits): Use it.
2288 (local_alias_traits, mips16_local_aliases): Convert from a map of
2289 rtxes to a map of symbol names.
2290 (mips16_local_alias): Update accordingly.
2291
2292 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2293
2294 * hash-traits.h (string_hash, nofree_string_hash): New classes.
2295 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
2296 * passes.c (pass_registry_hasher): Likewise.
2297 * config/alpha/alpha.c (string_traits): Likewise.
2298 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
2299 * config/m32c/m32c.c (pragma_traits): Likewise.
2300 * config/mep/mep.c (pragma_traits): Likewise.
2301
2302 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2303
2304 * tree-hash-traits.h (tree_hash): New class.
2305 * except.c: Include tree-hash-traits.h.
2306 (tree_hash_traits): Use tree_hash.
2307
2308 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2309
2310 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
2311 * sese.c: Include tree-hash-traits.h.
2312 (rename_map_hasher): Use tree_ssa_name_hasher.
2313
2314 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2315
2316 * tree-hash-traits.h (tree_decl_hash): New class.
2317 * tree-ssa-strlen.c: Include tree-hash-traits.h.
2318 (stridxlist_hash_traits): Use tree_decl_hash.
2319
2320 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2321
2322 * tree-hash-traits.h: New file.
2323 (tree_operand_hash): New class.
2324 * sanopt.c: Include tree-hash-traits.h.
2325 (sanopt_tree_map_traits): Use tree_operand_hash.
2326 * tree-if-conv.c: Include tree-hash-traits.h.
2327 (phi_args_hash_traits): Use tree_operand_hash.
2328 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
2329 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
2330
2331 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2332
2333 * hash-map-traits.h: Include hash-traits.h.
2334 (simple_hashmap_traits): New class.
2335 * mem-stats.h (hash_map): Change the default traits to
2336 simple_hashmap_traits<default_hash_traits<Key> >.
2337
2338 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2339
2340 * hash-table.h: Update comments.
2341
2342 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2343
2344 * hash-traits.h (default_hash_traits): New structure.
2345 * hash-set.h (default_hashset_traits): Delete.
2346 (hash_set): Use default_hash_traits<Key> instead of
2347 default_hashset_traits. Delete hash_entry type and use Key directly.
2348 * ipa-devirt.c (pair_traits): Delete.
2349 (default_hash_traits <type_pair>): Override.
2350 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
2351 (odr_types_equivalent_p, add_type_duplicate): Likewise.
2352
2353 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2354
2355 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
2356
2357 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2358
2359 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
2360 (has_is_empty, is_empty_helper): Delete.
2361 (has_mark_deleted, mark_deleted_helper): Delete.
2362 (has_mark_empty, mark_empty_helper): Delete.
2363 (hash_table::is_deleted): Call the Descriptor unconditionally.
2364 (hash_table::is_empty): Likewise.
2365 (hash_table::mark_deleted): Likewise.
2366 (hash_table::mark_empty): Likewise.
2367
2368 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2369
2370 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
2371 redundant typedefs and members.
2372 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
2373 redundant typedefs.
2374 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
2375 * ipa-devirt.c (odr_name_hasher): Likewise.
2376 (polymorphic_call_target_hasher): Likewise.
2377 * ira-costs.c (cost_classes_hasher): Likewise.
2378 * statistics.c (stats_counter_hasher): Likewise.
2379 * trans-mem.c (log_entry_hasher): Likewise.
2380 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
2381 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
2382 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
2383 * var-tracking.c (variable_hasher): Likewise.
2384 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
2385 Remove redundant typedefs and members.
2386
2387 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2388
2389 * hash-traits.h (ggc_cache_hasher): Rename to...
2390 (ggc_cache_remove): ...this and remove typedefs.
2391 (ggc_cache_ptr_hash): New class.
2392 * hash-table.h: Update commentary.
2393 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
2394 rather than ggc_cache_hasher.
2395 (const_wide_int_hasher, reg_attr_hasher): Likewise.
2396 (const_double_hasher, const_fixed_hasher): Likewise.
2397 * function.c (insn_cache_hasher): Likewise.
2398 * trans-mem.c (tm_wrapper_hasher): Likewise.
2399 * tree.h (tree_decl_map_cache_hasher): Likewise.
2400 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
2401 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
2402 * ubsan.c (tree_type_map_cache_hasher): Likewise.
2403 * varasm.c (tm_clone_hasher): Likewise.
2404 * config/i386/i386.c (dllimport_hasher): Likewise.
2405 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
2406 (tree_hasher): Likewise.
2407
2408 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2409
2410 * hash-traits.h (ggc_hasher): Rename to...
2411 (ggc_remover): ...this and remove typedefs.
2412 (ggc_cache_hasher): Update accordingly. Add typedefs.
2413 (ggc_ptr_hash): New class.
2414 * hash-table.h: Update comment.
2415 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
2416 ggc_hasher.
2417 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
2418 (tree_descriptor_hasher): Likewise.
2419 * cgraph.c (function_version_hasher): Likewise.
2420 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
2421 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
2422 (dw_loc_list_hasher, addr_hasher): Likewise.
2423 * function.h (used_type_hasher): Likewise.
2424 * function.c (temp_address_hasher): Likewise.
2425 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
2426 * libfuncs.h (libfunc_hasher): Likewise.
2427 * lto-streamer.h (decl_state_hasher): Likewise.
2428 * optabs.c (libfunc_decl_hasher): Likewise.
2429 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
2430 * varasm.c (section_hasher, object_block_hasher): Likewise.
2431 (const_rtx_desc_hasher): Likewise.
2432 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
2433 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
2434
2435 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2436
2437 * hash-traits.h (free_ptr_hash): New class.
2438 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
2439 rather than typed_free_remove. Remove redudant typedefs.
2440 (external_ref_hasher): Likewise.
2441 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
2442 (ehspec_hasher): Likewise.
2443 * ggc-common.c (saving_hasher): Likewise.
2444 * gimplify.c (gimplify_hasher): Likewise.
2445 * haifa-sched.c (delay_i2_hasher): Likewise.
2446 * loop-invariant.c (invariant_expr_hasher): Likewise.
2447 * loop-iv.c (biv_entry_hasher): Likewise.
2448 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
2449 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
2450 * tree-cfg.c (locus_discrim_hasher): Likewise.
2451 * tree-eh.c (finally_tree_hasher): Likewise.
2452 * tree-into-ssa.c (var_info_hasher): Likewise.
2453 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
2454 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
2455 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
2456 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
2457 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
2458 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
2459 (shared_bitmap_hasher): Likewise.
2460 * tree-ssa-threadupdate.c (redirection_data): Likewise.
2461 * tree-vectorizer.h (peel_info_hasher): Likewise.
2462 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
2463 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
2464
2465 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2466
2467 * hash-table.h: Update comments.
2468 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
2469 (nofree_ptr_hash): New class.
2470 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
2471 than typed_noop_remove. Remove redudant typedefs.
2472 * attribs.c (attribute_hasher): Likewise.
2473 * cfg.c (bb_copy_hasher): Likewise.
2474 * cselib.c (cselib_hasher): Likewise.
2475 * dse.c (invariant_group_base_hasher): Likewise.
2476 * dwarf2cfi.c (trace_info_hasher): Likewise.
2477 * dwarf2out.c (macinfo_entry_hasher): Likewise.
2478 (comdat_type_hasher, loc_list_hasher): Likewise.
2479 * gcse.c (pre_ldst_expr_hasher): Likewise.
2480 * genmatch.c (id_base): Likewise.
2481 * genrecog.c (test_pattern_hasher): Likewise.
2482 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
2483 * haifa-sched.c (delay_i1_hasher): Likewise.
2484 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
2485 * ipa-icf.h (congruence_class_group_hash): Likewise.
2486 * ipa-profile.c (histogram_hash): Likewise.
2487 * ira-color.c (allocno_hard_regs_hasher): Likewise.
2488 * lto-streamer.h (string_slot_hasher): Likewise.
2489 * lto-streamer.c (tree_entry_hasher): Likewise.
2490 * plugin.c (event_hasher): Likewise.
2491 * postreload-gcse.c (expr_hasher): Likewise.
2492 * store-motion.c (st_expr_hasher): Likewise.
2493 * tree-sra.c (uid_decl_hasher): Likewise.
2494 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
2495 (ssa_name_var_hash): Likewise.
2496 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
2497 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
2498 * tree-ssa-pre.c (pre_expr_d): Likewise.
2499 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
2500 * vtable-verify.h (registration_hasher): Likewise.
2501 * vtable-verify.c (vtbl_map_hasher): Likewise.
2502 * config/arm/arm.c (libcall_hasher): Likewise.
2503 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
2504 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
2505 * config/sol2.c (comdat_entry_hasher): Likewise.
2506 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
2507 (print_fold_checksum, fold_checksum_tree): Likewise.
2508 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
2509 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
2510 (fold_build_call_array_loc): Likewise.
2511 * tree-ssa-ccp.c (gimple_htab): Likewise.
2512 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
2513 rather than pointer_type.
2514
2515 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2516
2517 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
2518 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
2519
2520 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2521
2522 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
2523 (ggc_hasher::ggc_mx): Likewise.
2524 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
2525 that duplicate ggc_hasher ones.
2526
2527 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2528
2529 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
2530 (gt_cleare_cache): Check here for deleted and empty entries.
2531 Replace handle_cache_entry with a call to keep_cache_entry.
2532 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
2533 (ggc_cache_hasher::keep_cache_entry): New function.
2534 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
2535 (tm_wrapper_hasher::keep_cache_entry): New function.
2536 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
2537 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
2538 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
2539 (type_cache_hasher::keep_cache_entry): New function.
2540 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
2541 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
2542 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
2543 (tree_type_map_cache_hasher::keep_cache_entry): New function.
2544 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
2545 (tm_clone_hasher::keep_cache_entry): New function.
2546 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
2547 (dllimport_hasher::keep_cache_entry): New function.
2548
2549 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2550
2551 * hash-table.h: Include hash-traits.h.
2552 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
2553 (ggc_cache_hasher): Move to...
2554 * hash-traits.h: ...this new file.
2555
2556 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
2557
2558 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
2559 struct cl_optimization.
2560 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
2561 * tree.c (make_node_stat): Allocate cl_optimization struct.
2562 (copy_node_stat): Allocate and copy cl_optimization struct.
2563
2564 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
2565
2566 * function.h (struct incoming_args): Move struct.
2567 (pass_by_reference, reference_callee_copied): Remove prototypes.
2568 * emit-rtl.h (struct incoming_args): Relocate struct here.
2569 * calls.h (pass_by_reference, reference_callee_copied): Relocate
2570 prototypes here.
2571 * function.c (pass_by_reference, reference_callee_copied): Move.
2572 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
2573 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
2574 * ipa-chkp.c: Include calls.h.
2575
2576 2015-06-25 Andrew Macleod <amacleod@redhat.com>
2577
2578 * alias.h (alias_set_type): Move typedef.
2579 * coretypes.h (alias_set_type): Relocate typedef here.
2580 * rtl.h: Don't include alias.h.
2581
2582 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
2583
2584 * cgraph.h (cgraph_rtl_info): Move to rtl.h
2585 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
2586 and instance.
2587 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
2588 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
2589 doesn't exist.
2590 * calls.c: Include hard-reg-set.h before rtl.h.
2591 * ira.c: Likewise.
2592
2593 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
2594 Vladimir Makarov <vmakarov@redhat.com>
2595
2596 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
2597 Add assert.
2598
2599 2015-06-25 Richard Biener <rguenther@suse.de>
2600
2601 * fold-const.c (fold_binary_loc): Move simplification of
2602 (X <<>> C1) & C2 ...
2603 * match.pd: ... here.
2604
2605 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
2606
2607 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
2608
2609 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2610
2611 * match.pd: Add patterns for vec_conds between 1 and 0.
2612
2613 2015-06-25 Richard Biener <rguenther@suse.de>
2614
2615 * tree-vect-stmts.c (vectorizable_conversion): Do not set
2616 STMT_VINFO_VEC_STMT for SLP.
2617 (vectorizable_store): Likewise.
2618 (vectorizable_load): Likewise.
2619 (vect_transform_stmt): Catch SLP vectorization clobbering
2620 STMT_VINFO_VEC_STMT.
2621
2622 2015-06-25 Richard Biener <rguenther@suse.de>
2623
2624 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
2625 dumping.
2626 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
2627 cleanup resulting dead code and parameters.
2628 (vect_transform_slp_perm_load): Adjust.
2629
2630 2015-06-25 Nick Clifton <nickc@redhat.com>
2631
2632 * config/bfin/bfin.c (bfin_expand_prologue): Set
2633 current_function_static_stack_size if flag_stack_usage_info is set.
2634 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
2635 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
2636 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2637 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
2638
2639 2015-06-25 Tom de Vries <tom@codesourcery.com>
2640
2641 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
2642 comment that the generated IV is unsigned.
2643
2644 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2645
2646 PR target/29693
2647 * config/arm/arm.c (arm_dbx_register_number): Return
2648 DWARF_FRAME_REGISTERS by default.
2649
2650 2015-06-25 Tom de Vries <tom@codesourcery.com>
2651
2652 * dominance.c (calculate_dominance_info): Fix verify_dominators call
2653 argument. Call verify_dominator when reusing dominator info.
2654
2655 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
2656
2657 PR target/66563
2658 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
2659 an additional element of the unspec vector. Modify indices
2660 of operands.
2661 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
2662 * config/sh/sh.c (prepare_move_operands): Pass incremented
2663 const_int to gen_GOTaddr2picreg.
2664 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
2665
2666 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
2667
2668 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
2669 Condition on TARGET_FLOAT.
2670
2671 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
2672
2673 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
2674 and (no)crypto.
2675
2676 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
2677
2678 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
2679
2680 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
2681 aarch64_err_no_fpadvsimd.
2682
2683 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
2684 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
2685 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
2686 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
2687 Turn error into assert, test TARGET_FLOAT.
2688 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
2689 TARGET_FLOAT.
2690
2691 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
2692
2693 PR debug/66482
2694 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
2695
2696 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2697
2698 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
2699
2700 2015-06-24 Renlin Li <renlin.li@arm.com>
2701
2702 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
2703 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
2704
2705 2015-06-24 Richard Biener <rguenther@suse.de>
2706
2707 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
2708 (main): Likewise.
2709 (lower_opt_convert): Support lowering of conditional view_convert.
2710 (parser::parse_operation): Likewise.
2711 (parser::parse_for): Likewise.
2712
2713 2015-06-24 Renlin Li <renlin.li@arm.com>
2714
2715 * varasm.c (emit_local): Use unsigned int for align variable.
2716
2717 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2718
2719 PR target/63408
2720 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
2721 for negative numbers.
2722
2723 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2724
2725 PR rtl-optimization/66306
2726 * reload.c (find_reloads): Swap the match_dup info for
2727 commutative operands.
2728
2729 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2730
2731 * config/s390/vx-builtins.md
2732 ("vec_scatter_element<mode>_<non_vec_int>")
2733 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
2734 attribute with bhfgq.
2735
2736 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2737
2738 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
2739
2740 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2741
2742 * config/s390/s390-builtin-types.def: Add flag to indicate the
2743 options under which the function type is needed.
2744 * config/s390/s390-builtins.def: Add flag to indicate the options
2745 under which the builtin is enabled.
2746 * config/s390/s390-builtins.h: Add flags parameter to macro
2747 definitions.
2748 (bflags_for_builtin): New function.
2749 (flags_for_builtin): Renamed to ...
2750 (opflags_for_builtin): ... this.
2751 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
2752 flags_for_builtin to bflags_for_builtin and
2753 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
2754 * config/s390/s390.c: Add initialization of bflags_builtin and
2755 opflags_builtin arrays.
2756 Remove code for flags_builtin.
2757 (s390_init_builtins): Only create builtin function types if one of
2758 their flags is active.
2759 Only create builtins if all of their flags are active.
2760 (s390_expand_builtin): Rename flags_for_builtin to
2761 opflags_for_builtin.
2762
2763 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2764
2765 * config/s390/vecintrin.h: Remove internal builtins.
2766
2767 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2768
2769 * config/s390/s390.c (s390_secondary_reload): Fix check for
2770 GENERAL_REGS register class.
2771
2772 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2773
2774 * config/s390/s390.c (s390_support_vector_misalignment): Call
2775 default implementation for !TARGET_VX.
2776
2777 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2778
2779 * config/s390/s390.c (s390_legitimate_constant_p): Add
2780 TARGET_VX check.
2781
2782 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2783
2784 * config/s390/s390.c (s390_vector_abi): New variable definition.
2785 (s390_check_type_for_vector_abi): New function.
2786 (TARGET_ASM_FILE_END): New macro definition.
2787 (s390_asm_file_end): New function.
2788 (s390_function_arg): Call s390_check_type_for_vector_abi.
2789 (s390_gimplify_va_arg): Likewise.
2790 * configure: Regenerate.
2791 * configure.ac: Check for .gnu_attribute Binutils feature.
2792
2793 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
2794
2795 PR target/65803
2796 * config/bfin/bfin.c (hwloop_optimize): Initialize
2797 JUMP_LABEL for newly created jump.
2798
2799 2015-06-23 Tristan Gingold <gingold@adacore.com>
2800
2801 * collect-utils.c (collect_wait): Unlink the response file here
2802 instead of...
2803 (do_wait): ...here.
2804 (utils_cleanup): ...and here.
2805
2806 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
2807
2808 * df-scan.c: Don't include target-def.h.
2809 * targhooks.c: Likewise.
2810 * config/arm/arm-c.c: Likewise.
2811 * config/i386/i386-c.c: Likewise.
2812 * config/nds32/nds32-cost.c: Likewise.
2813 * config/nds32/nds32-fp-as-gp.c: Likewise.
2814 * config/nds32/nds32-intrinsic.c: Likewise.
2815 * config/nds32/nds32-isr.c: Likewise.
2816 * config/nds32/nds32-md-auxiliary.c: Likewise.
2817 * config/nds32/nds32-memory-manipulation.c: Likewise.
2818 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2819 * config/nds32/nds32-predicates.c: Likewise.
2820
2821 2015-06-23 Richard Biener <rguenther@suse.de>
2822
2823 PR tree-optimization/66636
2824 * tree-vect-stmts.c (vectorizable_store): Properly compute the
2825 def type for further defs for strided stores.
2826
2827 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
2828
2829 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
2830 conditional selects.
2831 (setcc_int<mode>, setcc_float<mode>): Reformat.
2832
2833 2015-06-23 Marek Polacek <polacek@redhat.com>
2834
2835 * match.pd ((x + y) - (x | y) -> x & y,
2836 (x + y) - (x & y) -> x | y): New patterns.
2837
2838 2015-06-23 Ludovic Courtès <ludo@gnu.org>
2839
2840 PR 65711
2841 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
2842 '-dynamic-linker' within %{!shared: ...}.
2843
2844 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
2845
2846 PR target/66560
2847 * config/i386/predicates.md (addsub_vm_operator): New predicate.
2848 (addsub_vs_operator): Ditto.
2849 (addsub_vs_parallel): Ditto.
2850 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
2851 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
2852 Put minus RTX before plus and adjust vec_merge selector.
2853 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
2854 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
2855 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
2856 (addsub vec_merge splitters): New combiner splitters.
2857 (addsub vec_select/vec_concat splitters): Ditto.
2858
2859 2015-06-23 Bin Cheng <bin.cheng@arm.com>
2860
2861 PR tree-optimization/66449
2862 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
2863 POINTER_PLUS_EXPR for pointers.
2864
2865 2015-06-23 Alan Modra <amodra@gmail.com>
2866
2867 * rtlanal.c (commutative_operand_precedence): Correct comments.
2868 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
2869 declaration. Return an int. Distinguish REG,REG return from
2870 others.
2871 (struct simplify_plus_minus_op_data): Make local to function.
2872 (simplify_plus_minus): Don't set canonicalized if merely sorting
2873 registers. Avoid packing ops if nothing changes. White space fixes.
2874
2875 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
2876
2877 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
2878 -fdump-ada-spec is passed but not if -fsyntax-only is.
2879
2880 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
2881
2882 PR bootstrap/63740
2883 * lra-lives.c (process_bb_lives): Check insn copying the same
2884 reload pseudo and don't create a copy for it.
2885
2886 2015-06-22 Tom de Vries <tom@codesourcery.com>
2887
2888 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
2889 for cond_stmt.
2890
2891 2015-06-22 Tom de Vries <tom@codesourcery.com>
2892
2893 * builtins.def (DEF_GOMP_BUILTIN): Test
2894 'flag_tree_parallelize_loops > 1' instead of
2895 'flag_tree_parallelize_loops'. Test flag_cilkplus.
2896
2897 2015-06-22 Tom de Vries <tom@codesourcery.com>
2898
2899 * dominance.c (calculate_dominance_info): Verify dominators if
2900 early-out.
2901
2902 2015-06-22 Marek Polacek <polacek@redhat.com>
2903
2904 * match.pd ((x ^ y) ^ (x | y) -> x & y,
2905 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
2906 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
2907 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
2908
2909 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
2910
2911 PR target/65871
2912 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
2913 cost of embedded comparison.
2914
2915 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2916
2917 PR target/65914
2918 * config/rs6000/predicates.md (altivec_register_operand): Permit
2919 virtual stack registers.
2920 (vsx_register_operand): Likewise.
2921 (vfloat_operand): Likewise.
2922 (vint_operand): Likewise.
2923 (vlogical_operand): Likewise.
2924
2925 2015-06-22 Richard Biener <rguenther@suse.de>
2926
2927 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
2928 and single_scalar_iteration_cost members.
2929 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
2930 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
2931 (vect_get_single_scalar_iteration_cost): Remove.
2932 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
2933 Use LOOP_VINFO_SCALAR_ITERATION_COST.
2934 * tree-vect-loop.c (destroy_loop_vec_info): Free
2935 scalar_cost_vec.
2936 (vect_get_single_scalar_iteration_cost): Compute result into
2937 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
2938 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
2939 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
2940 (vect_estimate_min_profitable_iters): Use them.
2941
2942 2015-06-22 Christian Bruel <christian.bruel@st.com>
2943
2944 PR target/52144
2945 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
2946 (TARGET_INSERT_ATTRIBUTES): Define.
2947 (thumb_flipper): New var.
2948 * config/arm/arm.opt (-mflip-thumb): New switch.
2949
2950 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
2951 Martin Liska <mliska@suse.cz>
2952
2953 PR ipa/65908
2954 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
2955 construction of arg_types.
2956 (sem_function::sem_function): Likewise.
2957 (sem_function::~sem_function): Remove destruction of arg_types.
2958 (sem_function::compatible_parm_types_p): New function.
2959 (sem_function::equals_wpa): Reorg matching of return values
2960 and parameter types.
2961 (sem_function::equals_private): Reorg mathcing of argument types.
2962 (sem_function::parse_tree_args): Remove.
2963 * ipa-icf.h (init_wpa): Do not call it.
2964 (parse_tree_args): Remove.
2965 (compatible_parm_types_p): Declare.
2966 (result_type): Remove.
2967 (arg_types): Remove.
2968
2969 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
2970
2971 PR ipa/66351
2972 * ipa-polymorphic-call.c
2973 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
2974 initializing alias oracle; fix formating; set base_alias_set if it
2975 is known.
2976
2977 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
2978
2979 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
2980 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
2981 (find_inc): Likewise.
2982 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
2983 swapping.
2984 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2985 * df-scan.c (df_swap_refs): Remove.
2986 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
2987 * dominance.c (link_roots): Use std::swap instead of manually swapping.
2988 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
2989 * fold-const.c (fold_relational_const): Likewise.
2990 * genattrtab.c (simplify_test_exp): Likewise.
2991 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
2992 gimple_simplify): Likewise.
2993 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
2994 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
2995 * ipa-devirt.c (add_type_duplicate): Likewise.
2996 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
2997 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
2998 * lra.c (lra_create_copy): Likewise.
2999 * lto-streamer-out.c (DFS::DFS): Likewise.
3000 * modulo-sched.c (get_sched_window): Likewise.
3001 * omega.c (omega_pretty_print_problem): Likewise.
3002 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
3003 * reload1.c (reloads_unique_chain_p): Likewise.
3004 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
3005 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
3006 use std::swap.
3007 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
3008 manually swapping.
3009 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
3010 predicate_mem_writes): Likewise.
3011 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
3012 * tree-predcom.c (combine_chains): Likewise.
3013 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
3014 refs_may_alias_p_1): Likewise.
3015 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
3016 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
3017 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
3018 number_of_iterations_cond): Likewise.
3019 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3020 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
3021 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
3022 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
3023 * tree-vrp.c (extract_range_from_binary_expr_1,
3024 extract_range_from_unary_expr_1): Likewise.
3025
3026 2015-06-20 Marek Polacek <polacek@redhat.com>
3027
3028 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
3029
3030 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
3031
3032 PR target/66591
3033 * config/sh/sh.c (prepare_move_operands): Replace subreg
3034 index term with R0 for base and index addressing.
3035
3036 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
3037
3038 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
3039 op1 is an fp zero.
3040 (movsf_aarch64): Change condition from register_operand to
3041 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
3042 load1. Change type for alternative 7 to store1.
3043 (movdf_aarch64): Likewise.
3044
3045 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
3046
3047 * config/vax/vax.md: Adjust sign/zero extend patterns to
3048 handle SUBREGs in operands[1].
3049
3050 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3051
3052 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
3053 of manually swapping.
3054 (expand_vec_perm_interleave2): Likewise.
3055
3056 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
3057
3058 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
3059 reuse bounds created for abnormal ssa names.
3060
3061 2015-06-19 Jakub Jelinek <jakub@redhat.com>
3062
3063 * config/nvptx/nvptx.md (allocate_stack): Rename to...
3064 (allocate_stack_<mode>): ... this, and add :P on both
3065 match_operand and unspec.
3066 (allocate_stack): New expander.
3067
3068 2015-06-19 Christian Bruel <christian.bruel@st.com>
3069
3070 PR target/66541
3071 PR target/52144
3072 * config/arm/arm.c (arm_set_current_function): Handle
3073 explicit default options.
3074
3075 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
3076
3077 * config/i386/i386.md (*movsicc_noc_zext): New insn.
3078 (zero-extended cmove with mem peephole2): New pattern.
3079 (cmove with mem peephole2): Merge patterns.
3080
3081 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
3082
3083 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
3084
3085 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
3086
3087 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
3088 * config/mips/mips.md (*madd4<mode>): Ditto.
3089 (*nmadd3<mode>) Ditto.
3090 (*nmadd4<mode>_fastmath): Ditto.
3091 (*nmadd3<mode>_fastmath): Ditto.
3092 (*nmsub4<mode>): Ditto.
3093 (*nmsub3<mode>): Ditto.
3094 (*nmsub4<mode>_fastmath): Ditto.
3095 (*nmsub3<mode>_fastmath): Ditto.
3096
3097 2015-06-18 Michael Matz <matz@suse.de>
3098
3099 PR middle-end/66253
3100 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
3101 grouped strided stores.
3102 (vectorizable_load): Don't use the DR from first_stmt in
3103 the non-SLP grouped strided case.
3104
3105 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3106
3107 PR target/66569
3108 * function.c (assign_bounds): Add arguments assign_regs,
3109 assign_special, assign_bt.
3110 (assign_parms): For vararg functions handle bounds in BT
3111 and special slots after incoming vararg bounds.
3112
3113 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3114
3115 PR middle-end/66568
3116 * cfgexpand.c (expand_return): Handle missing bounds.
3117 (expand_gimple_stmt_1): Likewise.
3118 * tree-chkp.c (chkp_expand_zero_bounds): New.
3119 * tree-chkp.h (chkp_expand_zero_bounds): New.
3120
3121 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3122
3123 PR middle-end/66567
3124 * ipa-chkp.c (chkp_maybe_create_clone): Require
3125 functions to be instrumentable.
3126 * tree-chkp.c (chkp_replace_function_pointer): Use
3127 chkp_instrumentable_p instead of attribute check.
3128
3129 2015-06-18 Richard Biener <rguenther@suse.de>
3130
3131 PR tree-optimization/66510
3132 * tree-vect-stmts.c (vectorizable_load): Properly compute the
3133 number of vector loads for SLP permuted loads.
3134 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
3135 check the stride for loop vectorization.
3136 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
3137 vectorization factor.
3138 (vect_analyze_group_access): If the group size is not a power
3139 of two require a epilogue loop.
3140 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
3141 compute and optimizing and alias test pruning after final
3142 vectorization factor computation.
3143 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
3144 vector alignment.
3145 (vect_transform_slp_perm_load): Properly compute the original
3146 number of vector load stmts.
3147
3148 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
3149
3150 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
3151 "unlikely character , in @var" warning.
3152
3153 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
3154
3155 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
3156 (ix86_function_arg_advance): Ditto.
3157 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
3158
3159 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
3160
3161 * function.h (struct rtl_data): Remove struct and accessor macros.
3162 * emit-rtl.h (struct rtl_data): Relocate to here.
3163 * Makefile.in (GTFILES): Add emit-rtl.h.
3164 * df-core.c: Include emit-rtl.h.
3165 * genattrtab.c: Likewise.
3166 * genconditions.c: Likewise.
3167 * genpreds.c: Likewise.
3168 * genrecog.c: Likewise.
3169 * regcprop.c: Likewise.
3170 * resource.c: Likewise.
3171 * sched-rgn.c: Likewise.
3172 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3173 * config/i386/winnt.c: Likewise.
3174
3175 2015-06-17 Jakub Jelinek <jakub@redhat.com>
3176
3177 PR middle-end/66429
3178 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
3179 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
3180 and has_force_vectorize_loops flags from cfun into
3181 child_cfun.
3182 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
3183 if simduid is non-NULL.
3184 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
3185 * passes.def (pass_simduid_cleanup): Add new pass after loop
3186 passes.
3187 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
3188 indirection from htab argument's type.
3189 (shrink_simd_arrays): New function.
3190 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
3191 Don't call adjust_simduid_builtins if there are no loops.
3192 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
3193 (pass_simduid_cleanup::execute): New method.
3194 (make_pass_simduid_cleanup): New function.
3195
3196 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
3197
3198 * tree-core.h (tree_target_option): Make opts field a pointer to a
3199 cl_target_option instead of an instance of the struct.
3200 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
3201 the structure.
3202 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
3203 TARGET_OPTION_NODE.
3204 (copy_node_stat): Allocate and copy struct cl_target_option.
3205
3206 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
3207
3208 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
3209 Remove conditional exposure of prototypes.
3210 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
3211 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
3212 definitions in tree.h with functions.
3213 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
3214 anon_aggrname_p.
3215 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
3216
3217 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
3218
3219 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
3220 (*cmp<mode>_signed): ... this.
3221 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
3222 (*cmp<mode>_unsigned): ... this. Remove %b.
3223
3224 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
3225
3226 * coretypes.h: Include input.h and as-a.h.
3227 * rtl.h: Include input.h and as-a.h for generator files.
3228 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
3229 * vec.c: Don't include diagnostic-core.h.
3230 * alias.c: Do not include input.h, line-map.h or is-a.h.
3231 * asan.c: Likewise.
3232 * attribs.c: Likewise.
3233 * auto-inc-dec.c: Likewise.
3234 * auto-profile.c: Likewise.
3235 * bb-reorder.c: Likewise.
3236 * bt-load.c: Likewise.
3237 * builtins.c: Likewise.
3238 * caller-save.c: Likewise.
3239 * calls.c: Likewise.
3240 * ccmp.c: Likewise.
3241 * cfg.c: Likewise.
3242 * cfganal.c: Likewise.
3243 * cfgbuild.c: Likewise.
3244 * cfgcleanup.c: Likewise.
3245 * cfgexpand.c: Likewise.
3246 * cfghooks.c: Likewise.
3247 * cfgloop.c: Likewise.
3248 * cfgloop.h: Likewise.
3249 * cfgloopanal.c: Likewise.
3250 * cfgloopmanip.c: Likewise.
3251 * cfgrtl.c: Likewise.
3252 * cgraph.c: Likewise.
3253 * cgraphbuild.c: Likewise.
3254 * cgraphclones.c: Likewise.
3255 * cgraphunit.c: Likewise.
3256 * cilk-common.c: Likewise.
3257 * combine-stack-adj.c: Likewise.
3258 * combine.c: Likewise.
3259 * compare-elim.c: Likewise.
3260 * convert.c: Likewise.
3261 * coverage.c: Likewise.
3262 * cppbuiltin.c: Likewise.
3263 * cprop.c: Likewise.
3264 * cse.c: Likewise.
3265 * cselib.c: Likewise.
3266 * data-streamer-in.c: Likewise.
3267 * data-streamer-out.c: Likewise.
3268 * data-streamer.c: Likewise.
3269 * dbxout.c: Likewise.
3270 * dce.c: Likewise.
3271 * ddg.c: Likewise.
3272 * debug.c: Likewise.
3273 * df-core.c: Likewise.
3274 * df-problems.c: Likewise.
3275 * df-scan.c: Likewise.
3276 * df.h: Likewise.
3277 * dfp.c: Likewise.
3278 * diagnostic-core.h: Likewise.
3279 * diagnostic.c: Likewise.
3280 * dojump.c: Likewise.
3281 * dominance.c: Likewise.
3282 * domwalk.c: Likewise.
3283 * double-int.c: Likewise.
3284 * dse.c: Likewise.
3285 * dumpfile.c: Likewise.
3286 * dumpfile.h: Likewise.
3287 * dwarf2asm.c: Likewise.
3288 * dwarf2cfi.c: Likewise.
3289 * dwarf2out.c: Likewise.
3290 * emit-rtl.c: Likewise.
3291 * et-forest.c: Likewise.
3292 * except.c: Likewise.
3293 * explow.c: Likewise.
3294 * expmed.c: Likewise.
3295 * expr.c: Likewise.
3296 * final.c: Likewise.
3297 * fixed-value.c: Likewise.
3298 * fold-const.c: Likewise.
3299 * function.c: Likewise.
3300 * fwprop.c: Likewise.
3301 * gcc-plugin.h: Likewise.
3302 * gcse.c: Likewise.
3303 * generic-match-head.c: Likewise.
3304 * ggc-page.c: Likewise.
3305 * gimple-builder.c: Likewise.
3306 * gimple-expr.c: Likewise.
3307 * gimple-fold.c: Likewise.
3308 * gimple-iterator.c: Likewise.
3309 * gimple-low.c: Likewise.
3310 * gimple-match-head.c: Likewise.
3311 * gimple-pretty-print.c: Likewise.
3312 * gimple-ssa-isolate-paths.c: Likewise.
3313 * gimple-ssa-strength-reduction.c: Likewise.
3314 * gimple-streamer-in.c: Likewise.
3315 * gimple-streamer-out.c: Likewise.
3316 * gimple-streamer.h: Likewise.
3317 * gimple-walk.c: Likewise.
3318 * gimple.c: Likewise.
3319 * gimplify-me.c: Likewise.
3320 * gimplify.c: Likewise.
3321 * godump.c: Likewise.
3322 * graph.c: Likewise.
3323 * graphite-blocking.c: Likewise.
3324 * graphite-dependences.c: Likewise.
3325 * graphite-interchange.c: Likewise.
3326 * graphite-isl-ast-to-gimple.c: Likewise.
3327 * graphite-optimize-isl.c: Likewise.
3328 * graphite-poly.c: Likewise.
3329 * graphite-scop-detection.c: Likewise.
3330 * graphite-sese-to-poly.c: Likewise.
3331 * graphite.c: Likewise.
3332 * haifa-sched.c: Likewise.
3333 * hw-doloop.c: Likewise.
3334 * ifcvt.c: Likewise.
3335 * init-regs.c: Likewise.
3336 * input.c: Likewise.
3337 * internal-fn.c: Likewise.
3338 * ipa-chkp.c: Likewise.
3339 * ipa-comdats.c: Likewise.
3340 * ipa-cp.c: Likewise.
3341 * ipa-devirt.c: Likewise.
3342 * ipa-icf-gimple.c: Likewise.
3343 * ipa-icf.c: Likewise.
3344 * ipa-inline-analysis.c: Likewise.
3345 * ipa-inline-transform.c: Likewise.
3346 * ipa-inline.c: Likewise.
3347 * ipa-polymorphic-call.c: Likewise.
3348 * ipa-profile.c: Likewise.
3349 * ipa-prop.c: Likewise.
3350 * ipa-pure-const.c: Likewise.
3351 * ipa-ref.c: Likewise.
3352 * ipa-reference.c: Likewise.
3353 * ipa-split.c: Likewise.
3354 * ipa-utils.c: Likewise.
3355 * ipa-visibility.c: Likewise.
3356 * ipa.c: Likewise.
3357 * ira-build.c: Likewise.
3358 * ira-color.c: Likewise.
3359 * ira-conflicts.c: Likewise.
3360 * ira-costs.c: Likewise.
3361 * ira-emit.c: Likewise.
3362 * ira-lives.c: Likewise.
3363 * ira.c: Likewise.
3364 * jump.c: Likewise.
3365 * langhooks.c: Likewise.
3366 * lcm.c: Likewise.
3367 * loop-doloop.c: Likewise.
3368 * loop-init.c: Likewise.
3369 * loop-invariant.c: Likewise.
3370 * loop-iv.c: Likewise.
3371 * loop-unroll.c: Likewise.
3372 * lower-subreg.c: Likewise.
3373 * lra-assigns.c: Likewise.
3374 * lra-coalesce.c: Likewise.
3375 * lra-constraints.c: Likewise.
3376 * lra-eliminations.c: Likewise.
3377 * lra-lives.c: Likewise.
3378 * lra-remat.c: Likewise.
3379 * lra-spills.c: Likewise.
3380 * lra.c: Likewise.
3381 * lto-cgraph.c: Likewise.
3382 * lto-compress.c: Likewise.
3383 * lto-opts.c: Likewise.
3384 * lto-section-in.c: Likewise.
3385 * lto-section-out.c: Likewise.
3386 * lto-streamer-in.c: Likewise.
3387 * lto-streamer-out.c: Likewise.
3388 * lto-streamer.c: Likewise.
3389 * mcf.c: Likewise.
3390 * mode-switching.c: Likewise.
3391 * modulo-sched.c: Likewise.
3392 * omega.c: Likewise.
3393 * omp-low.c: Likewise.
3394 * optabs.c: Likewise.
3395 * opts-global.c: Likewise.
3396 * opts.h: Likewise.
3397 * passes.c: Likewise.
3398 * plugin.c: Likewise.
3399 * postreload-gcse.c: Likewise.
3400 * postreload.c: Likewise.
3401 * predict.c: Likewise.
3402 * pretty-print.h: Likewise.
3403 * print-rtl.c: Likewise.
3404 * print-tree.c: Likewise.
3405 * profile.c: Likewise.
3406 * real.c: Likewise.
3407 * realmpfr.c: Likewise.
3408 * recog.c: Likewise.
3409 * ree.c: Likewise.
3410 * reg-stack.c: Likewise.
3411 * regcprop.c: Likewise.
3412 * reginfo.c: Likewise.
3413 * regrename.c: Likewise.
3414 * regstat.c: Likewise.
3415 * reload.c: Likewise.
3416 * reload1.c: Likewise.
3417 * reorg.c: Likewise.
3418 * resource.c: Likewise.
3419 * rtl-chkp.c: Likewise.
3420 * rtl-error.c: Likewise.
3421 * rtlanal.c: Likewise.
3422 * rtlhooks.c: Likewise.
3423 * sanopt.c: Likewise.
3424 * sched-deps.c: Likewise.
3425 * sched-ebb.c: Likewise.
3426 * sched-rgn.c: Likewise.
3427 * sched-vis.c: Likewise.
3428 * sdbout.c: Likewise.
3429 * sel-sched-dump.c: Likewise.
3430 * sel-sched-ir.c: Likewise.
3431 * sel-sched.c: Likewise.
3432 * sese.c: Likewise.
3433 * shrink-wrap.c: Likewise.
3434 * simplify-rtx.c: Likewise.
3435 * stack-ptr-mod.c: Likewise.
3436 * statistics.c: Likewise.
3437 * stmt.c: Likewise.
3438 * stor-layout.c: Likewise.
3439 * store-motion.c: Likewise.
3440 * streamer-hooks.c: Likewise.
3441 * stringpool.c: Likewise.
3442 * symtab.c: Likewise.
3443 * target-globals.c: Likewise.
3444 * targhooks.c: Likewise.
3445 * toplev.c: Likewise.
3446 * tracer.c: Likewise.
3447 * trans-mem.c: Likewise.
3448 * tree-affine.c: Likewise.
3449 * tree-browser.c: Likewise.
3450 * tree-call-cdce.c: Likewise.
3451 * tree-cfg.c: Likewise.
3452 * tree-cfgcleanup.c: Likewise.
3453 * tree-chkp-opt.c: Likewise.
3454 * tree-chkp.c: Likewise.
3455 * tree-chrec.c: Likewise.
3456 * tree-complex.c: Likewise.
3457 * tree-data-ref.c: Likewise.
3458 * tree-dfa.c: Likewise.
3459 * tree-diagnostic.c: Likewise.
3460 * tree-dump.c: Likewise.
3461 * tree-eh.c: Likewise.
3462 * tree-emutls.c: Likewise.
3463 * tree-if-conv.c: Likewise.
3464 * tree-inline.c: Likewise.
3465 * tree-into-ssa.c: Likewise.
3466 * tree-iterator.c: Likewise.
3467 * tree-loop-distribution.c: Likewise.
3468 * tree-nested.c: Likewise.
3469 * tree-nrv.c: Likewise.
3470 * tree-object-size.c: Likewise.
3471 * tree-outof-ssa.c: Likewise.
3472 * tree-parloops.c: Likewise.
3473 * tree-phinodes.c: Likewise.
3474 * tree-predcom.c: Likewise.
3475 * tree-pretty-print.c: Likewise.
3476 * tree-profile.c: Likewise.
3477 * tree-scalar-evolution.c: Likewise.
3478 * tree-sra.c: Likewise.
3479 * tree-ssa-address.c: Likewise.
3480 * tree-ssa-alias.c: Likewise.
3481 * tree-ssa-ccp.c: Likewise.
3482 * tree-ssa-coalesce.c: Likewise.
3483 * tree-ssa-copy.c: Likewise.
3484 * tree-ssa-copyrename.c: Likewise.
3485 * tree-ssa-dce.c: Likewise.
3486 * tree-ssa-dom.c: Likewise.
3487 * tree-ssa-dse.c: Likewise.
3488 * tree-ssa-forwprop.c: Likewise.
3489 * tree-ssa-ifcombine.c: Likewise.
3490 * tree-ssa-live.c: Likewise.
3491 * tree-ssa-loop-ch.c: Likewise.
3492 * tree-ssa-loop-im.c: Likewise.
3493 * tree-ssa-loop-ivcanon.c: Likewise.
3494 * tree-ssa-loop-ivopts.c: Likewise.
3495 * tree-ssa-loop-manip.c: Likewise.
3496 * tree-ssa-loop-niter.c: Likewise.
3497 * tree-ssa-loop-prefetch.c: Likewise.
3498 * tree-ssa-loop-unswitch.c: Likewise.
3499 * tree-ssa-loop.c: Likewise.
3500 * tree-ssa-math-opts.c: Likewise.
3501 * tree-ssa-operands.c: Likewise.
3502 * tree-ssa-phiopt.c: Likewise.
3503 * tree-ssa-phiprop.c: Likewise.
3504 * tree-ssa-pre.c: Likewise.
3505 * tree-ssa-propagate.c: Likewise.
3506 * tree-ssa-reassoc.c: Likewise.
3507 * tree-ssa-sccvn.c: Likewise.
3508 * tree-ssa-scopedtables.c: Likewise.
3509 * tree-ssa-sink.c: Likewise.
3510 * tree-ssa-strlen.c: Likewise.
3511 * tree-ssa-structalias.c: Likewise.
3512 * tree-ssa-tail-merge.c: Likewise.
3513 * tree-ssa-ter.c: Likewise.
3514 * tree-ssa-threadedge.c: Likewise.
3515 * tree-ssa-threadupdate.c: Likewise.
3516 * tree-ssa-uncprop.c: Likewise.
3517 * tree-ssa-uninit.c: Likewise.
3518 * tree-ssa.c: Likewise.
3519 * tree-ssanames.c: Likewise.
3520 * tree-stdarg.c: Likewise.
3521 * tree-streamer-in.c: Likewise.
3522 * tree-streamer-out.c: Likewise.
3523 * tree-streamer.c: Likewise.
3524 * tree-switch-conversion.c: Likewise.
3525 * tree-tailcall.c: Likewise.
3526 * tree-vect-data-refs.c: Likewise.
3527 * tree-vect-generic.c: Likewise.
3528 * tree-vect-loop-manip.c: Likewise.
3529 * tree-vect-loop.c: Likewise.
3530 * tree-vect-patterns.c: Likewise.
3531 * tree-vect-slp.c: Likewise.
3532 * tree-vect-stmts.c: Likewise.
3533 * tree-vectorizer.c: Likewise.
3534 * tree-vrp.c: Likewise.
3535 * tree.c: Likewise.
3536 * tsan.c: Likewise.
3537 * ubsan.c: Likewise.
3538 * valtrack.c: Likewise.
3539 * value-prof.c: Likewise.
3540 * var-tracking.c: Likewise.
3541 * varasm.c: Likewise.
3542 * varpool.c: Likewise.
3543 * vmsdbgout.c: Likewise.
3544 * vtable-verify.c: Likewise.
3545 * web.c: Likewise.
3546 * wide-int.cc: Likewise.
3547 * xcoffout.c: Likewise.
3548 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
3549 * common/common-targhooks.c: Likewise.
3550 * config/aarch64/aarch64-builtins.c: Likewise.
3551 * config/aarch64/aarch64.c: Likewise.
3552 * config/alpha/alpha.c: Likewise.
3553 * config/arc/arc.c: Likewise.
3554 * config/arm/aarch-common.c: Likewise.
3555 * config/arm/arm-builtins.c: Likewise.
3556 * config/arm/arm-c.c: Likewise.
3557 * config/arm/arm.c: Likewise.
3558 * config/avr/avr-c.c: Likewise.
3559 * config/avr/avr-log.c: Likewise.
3560 * config/avr/avr.c: Likewise.
3561 * config/bfin/bfin.c: Likewise.
3562 * config/c6x/c6x.c: Likewise.
3563 * config/cr16/cr16.c: Likewise.
3564 * config/cris/cris.c: Likewise.
3565 * config/darwin-c.c: Likewise.
3566 * config/darwin.c: Likewise.
3567 * config/default-c.c: Likewise.
3568 * config/epiphany/epiphany.c: Likewise.
3569 * config/epiphany/mode-switch-use.c: Likewise.
3570 * config/epiphany/resolve-sw-modes.c: Likewise.
3571 * config/fr30/fr30.c: Likewise.
3572 * config/frv/frv.c: Likewise.
3573 * config/ft32/ft32.c: Likewise.
3574 * config/glibc-c.c: Likewise.
3575 * config/h8300/h8300.c: Likewise.
3576 * config/i386/i386-c.c: Likewise.
3577 * config/i386/i386.c: Likewise.
3578 * config/i386/msformat-c.c: Likewise.
3579 * config/i386/winnt-cxx.c: Likewise.
3580 * config/i386/winnt-stubs.c: Likewise.
3581 * config/i386/winnt.c: Likewise.
3582 * config/ia64/ia64-c.c: Likewise.
3583 * config/ia64/ia64.c: Likewise.
3584 * config/iq2000/iq2000.c: Likewise.
3585 * config/lm32/lm32.c: Likewise.
3586 * config/m32c/m32c-pragma.c: Likewise.
3587 * config/m32c/m32c.c: Likewise.
3588 * config/m32r/m32r.c: Likewise.
3589 * config/m68k/m68k.c: Likewise.
3590 * config/mcore/mcore.c: Likewise.
3591 * config/mep/mep-pragma.c: Likewise.
3592 * config/mep/mep.c: Likewise.
3593 * config/microblaze/microblaze-c.c: Likewise.
3594 * config/microblaze/microblaze.c: Likewise.
3595 * config/mips/mips.c: Likewise.
3596 * config/mmix/mmix.c: Likewise.
3597 * config/mn10300/mn10300.c: Likewise.
3598 * config/moxie/moxie.c: Likewise.
3599 * config/msp430/msp430-c.c: Likewise.
3600 * config/msp430/msp430.c: Likewise.
3601 * config/nds32/nds32-cost.c: Likewise.
3602 * config/nds32/nds32-fp-as-gp.c: Likewise.
3603 * config/nds32/nds32-intrinsic.c: Likewise.
3604 * config/nds32/nds32-isr.c: Likewise.
3605 * config/nds32/nds32-md-auxiliary.c: Likewise.
3606 * config/nds32/nds32-memory-manipulation.c: Likewise.
3607 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3608 * config/nds32/nds32-predicates.c: Likewise.
3609 * config/nds32/nds32.c: Likewise.
3610 * config/nios2/nios2.c: Likewise.
3611 * config/nvptx/nvptx.c: Likewise.
3612 * config/pa/pa.c: Likewise.
3613 * config/pdp11/pdp11.c: Likewise.
3614 * config/rl78/rl78-c.c: Likewise.
3615 * config/rl78/rl78.c: Likewise.
3616 * config/rs6000/rs6000-c.c: Likewise.
3617 * config/rs6000/rs6000.c: Likewise.
3618 * config/rx/rx.c: Likewise.
3619 * config/s390/s390-c.c: Likewise.
3620 * config/s390/s390.c: Likewise.
3621 * config/sh/sh-c.c: Likewise.
3622 * config/sh/sh-mem.cc: Likewise.
3623 * config/sh/sh.c: Likewise.
3624 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3625 * config/sh/sh_treg_combine.cc: Likewise.
3626 * config/sol2-c.c: Likewise.
3627 * config/sol2-cxx.c: Likewise.
3628 * config/sol2-stubs.c: Likewise.
3629 * config/sol2.c: Likewise.
3630 * config/sparc/sparc-c.c: Likewise.
3631 * config/sparc/sparc.c: Likewise.
3632 * config/spu/spu-c.c: Likewise.
3633 * config/spu/spu.c: Likewise.
3634 * config/stormy16/stormy16.c: Likewise.
3635 * config/tilegx/mul-tables.c: Likewise.
3636 * config/tilegx/tilegx-c.c: Likewise.
3637 * config/tilegx/tilegx.c: Likewise.
3638 * config/tilepro/mul-tables.c: Likewise.
3639 * config/tilepro/tilepro-c.c: Likewise.
3640 * config/tilepro/tilepro.c: Likewise.
3641 * config/v850/v850-c.c: Likewise.
3642 * config/v850/v850.c: Likewise.
3643 * config/vax/vax.c: Likewise.
3644 * config/visium/visium.c: Likewise.
3645 * config/vms/vms-c.c: Likewise.
3646 * config/vms/vms.c: Likewise.
3647 * config/vxworks.c: Likewise.
3648 * config/winnt-c.c: Likewise.
3649 * config/xtensa/xtensa.c: Likewise.
3650
3651 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
3652
3653 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
3654 function.
3655 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
3656
3657 2015-06-17 Richard Biener <rguenther@suse.de>
3658
3659 PR tree-optimization/66251
3660 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
3661 stmts for SLP strided stores.
3662
3663 Revert
3664 2015-05-22 Richard Biener <rguenther@suse.de>
3665
3666 PR tree-optimization/66251
3667 * tree-vect-stmts.c (vectorizable_conversion): Properly
3668 set STMT_VINFO_VEC_STMT even for the SLP case.
3669
3670 2015-05-26 Michael Matz <matz@suse.de>
3671
3672 PR middle-end/66251
3673 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
3674 STMT_VINFO_VEC_STMT, also with SLP.
3675
3676 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
3677
3678 PR target/56766
3679 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
3680 (*avx_addsubv4df3_1s): Ditto.
3681 (*sse3_addsubv2df3_1): Ditto.
3682 (*sse3_addsubv2df3_1s): Ditto.
3683 (*avx_addsubv8sf3_1): Ditto.
3684 (*avx_addsubv8sf3_1s): Ditto.
3685 (*sse3_addsubv4sf3_1): Ditto.
3686 (*sse3_addsubv4sf3_1s): Ditto.
3687
3688 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
3689
3690 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
3691 (SYSROOT_SUFFIX_SPEC): Update.
3692 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
3693 (STARTFILE_PREFIX_SPEC): Update.
3694 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
3695 (MULTILIB_REQUIRED): New.
3696 (MULTILIB_OSDIRNAMES): New.
3697 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
3698 (MULTILIB_REQUIRED): New.
3699 (MULTILIB_OSDIRNAMES): New.
3700
3701 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
3702
3703 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
3704 * config/aarch64/aarch64-options-extensions.def: Update "fP",
3705 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
3706 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
3707 (AARCH64_FL_PAN): New.
3708 (AARCH64_FL_LOR): New.
3709 (AARCH64_FL_RDMA): New.
3710 (AARCH64_FL_FOR_ARCH8_1): New.
3711 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
3712 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
3713
3714 2015-06-16 Martin Liska <mliska@suse.cz>
3715
3716 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
3717 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
3718 guard.
3719
3720 2015-06-16 Richard Biener <rguenther@suse.de>
3721
3722 * tree-vect-stmts.c (vectorizable_store): Adjust.
3723 (vectorizable_load): Likewise.
3724 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3725 Simplify.
3726 (vect_create_data_ref_ptr): Likewise.
3727 (bump_vector_ptr): Adjust.
3728
3729 2015-06-16 Richard Biener <rguenther@suse.de>
3730
3731 * tree-vect-stmts.c (vectorizable_load): Properly start loads
3732 with the first element if this is grouped loads.
3733
3734 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
3735
3736 * config/arm/arm-protos.h (struct tune_params): Rename
3737 log_op_non_sc to log_op_non_short_circuit, and rename enum
3738 values to expand SC to SHORT_CIRCUIT.
3739 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
3740 to LOG_OP_NON_SHORT_CIRCUIT.
3741 (arm_fastmul_tune):Likewise
3742 (arm_strongarm_tune): Likewise.
3743 (arm_xscale_tune): Likewise.
3744 (arm_9e_tune): Likewise.
3745 (arm_marvell_pj4_tune): Likewise.
3746 (arm_v6t2_tune): Likewise.
3747 (arm_cortex_tune): Likewise.
3748 (arm_cortex_a8_tune): Likewise.
3749 (arm_cortex_a7_tune): Likewise.
3750 (arm_cortex_a15_tune): Likewise.
3751 (arm_cortex_a53_tune): Likewise.
3752 (arm_cortex_a57_tune): Likewise.
3753 (arm_xgene1_tune): Likewise.
3754 (arm_cortex_a5_tune): Likewise.
3755 (arm_cortex_a9_tune): Likewise.
3756 (arm_cortex_a12_tune): Likewise.
3757 (arm_v7m_tune): Likewise.
3758 (arm_cortex_m7_tune): Likewise.
3759 (arm_v6m_tune): Likewise.
3760 (arm_fa726te_tune): Likewise.
3761
3762 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
3763
3764 * altivec.md: Delete UNSPEC_VMLADDUHM.
3765 (mulv4si3_p8): New pattern.
3766 (mulv4si3): Use it for POWER8.
3767 (mulv8hi3): Use vmladduhm with zero addend.
3768 (altivec_vmladduhm): Descriptive RTL.
3769
3770 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
3771
3772 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
3773 to use neon_move instead of mov_imm.
3774 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
3775 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
3776
3777 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
3778 aarch64_float_const_zero_rtx_p check before TFmode check.
3779 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
3780 an fp zero.
3781 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
3782 code and attributes to match. Change condition from register_operand
3783 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
3784 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
3785 to store2.
3786
3787 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
3788
3789 PR debug/66535
3790 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
3791 there is no parent.
3792
3793 2015-06-14 Shiva Chen <shiva0217@gmail.com>
3794
3795 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
3796 HOST_WIDE_INT parameter.
3797
3798 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
3799
3800 PR ipa/66181
3801 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
3802 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
3803 TYPE_NO_FORCE_BLK.
3804 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
3805
3806 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
3807
3808 * rtl.h (classify_insn): Declare.
3809 * emit-rtl.c (classify_insn): Move to...
3810 * rtl.c: ...here and add generator support.
3811 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
3812 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
3813 * genemit.c (gen_emit_seq): New function.
3814 (gen_expand, gen_split): Use it.
3815
3816 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
3817
3818 * tree.c (make_vector_stat): Fix comment to state that the
3819 function returns a VECTOR_CST.
3820
3821 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
3822
3823 * gensupport.h (add_implicit_parallel): Declare.
3824 * genrecog.c (add_implicit_parallel): Move to...
3825 * gensupport.c (add_implicit_parallel): ...here.
3826 (process_one_cond_exec): Use it.
3827 * genemit.c (gen_insn): Likewise.
3828
3829 2015-06-13 Iain Sandoe <iain@codesourcery.com>
3830
3831 PR bootstrap/66448
3832 * passes.c (rest_of_decl_compilation): Do not register globals for
3833 early debug if they are declared in built-ins.
3834
3835 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
3836
3837 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
3838
3839 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3840
3841 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
3842 manually swapping.
3843 (noce_try_cmove_arith): Likewise.
3844 (noce_get_alt_condition): Likewise.
3845
3846 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3847
3848 * common/config/i386/i386-common.c
3849 (OPTION_MASK_ISA_MWAITX_SET): New.
3850 (ix86_handle_option): Handle mwaitx.
3851 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
3852 (x86_64-*-*): Likewise.
3853 * config/i386/mwaitxintrin.h: New header.
3854 * config/i386/cpuid.h (bit_MWAITX): Define.
3855 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3856 MWAITX support.
3857 * config/i386/i386.opt (mwaitx): New.
3858 * config/i386/i386-builtin-types.def
3859 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
3860 * config/i386/i386-c.c: Define __MWAITX__ if needed.
3861 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
3862 (PTA_MWAITX): New.
3863 (ix86_option_override_internal): Handle new option.
3864 (processor_alias_table): Added PTA_MWAITX.
3865 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
3866 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
3867 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
3868 IX86_BUILTIN_MONITORX built-ins.
3869 * config/i386/i386.h (TARGET_MWAITX): New.
3870 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
3871 UNSPEC_MONITORX.
3872 (mwaitx): New pattern.
3873 (monitorx_<mode>): New pattern.
3874 * config/i386/x86intrin.h: Include mwaitxintrin.h.
3875 * doc/extend.texi: Document monitorx and mwaitx builtins.
3876 * doc/invoke.texi: Document -mmwaitx option.
3877
3878 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
3879
3880 * emit-rtl.c (need_atomic_barrier_p): Mask model with
3881 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
3882
3883 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
3884
3885 * dbxout.c (xcoff_debug_hooks): Provide a function for
3886 register_main_translation_unit hook.
3887
3888 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
3889
3890 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
3891 variants cases from switch.
3892 (rs6000_post_atomic_barrier): Same.
3893 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
3894 (rs6000_expand_atomic_exchange): Same.
3895 (rs6000_expand_atomic_op): Same.
3896 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
3897 SYNC variants cases from switch.
3898 (atomic_load): Same.
3899 (atomic_store): Same.
3900
3901 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
3902
3903 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
3904 CONST_INT for goto.
3905
3906 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
3907
3908 PR bootstrap/66448
3909 * dwarf2out.c (check_die): Check for common duplicate attributes.
3910 (add_location_or_const_value_attribute): Do not add duplicate
3911 attributes.
3912 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
3913 time around.
3914 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
3915 (gen_type_die_with_usage): Call check_die.
3916 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
3917
3918 2015-06-11 Jason Merrill <jason@redhat.com>
3919
3920 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
3921 dies.
3922
3923 2015-06-11 Marek Polacek <polacek@redhat.com>
3924
3925 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
3926
3927 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
3928
3929 PR bootstrap/66252
3930 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
3931 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
3932 (*addx_extend_sp32): Fix pasto.
3933 (*subx_extend): Rename into...
3934 (*subx_extend_sp32): ...this.
3935 (*adddi3_extend_sp32): Add earlyclobber.
3936 (*subdi3_insn_sp32): Likewise.
3937 (*subdi3_extend_sp32): Likewise.
3938 (*and_not_di_sp32): Likewise.
3939 (*or_not_di_sp32): Likewise.
3940 (*xor_not_di_sp32): Likewise.
3941 (*negdi2_sp32): Likewise.
3942 (*one_cmpldi2_sp32): Likewise.
3943
3944 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
3945
3946 * debug.h (struct gcc_debug_hooks): Add a
3947 register_main_translation_unit hook.
3948 * debug.c (do_nothing_debug_hooks): Provide a function for this
3949 new hook.
3950 * dbxout.c (dbx_debug_hooks): Likewise.
3951 * sdbout.c (sdb_debug_hooks): Likewise.
3952 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3953 * dwarf2out.c (main_translation_unit): New global variable.
3954 (dwarf2out_register_main_translation_unit): New function
3955 implementing the new hook.
3956 (dwarf2_debug_hooks): Assign
3957 dwarf2out_register_main_translation_unit to this new hook.
3958 (dwarf2out_init): Associate any main translation unit to
3959 comp_unit_die ().
3960
3961 2015-06-11 Marek Polacek <polacek@redhat.com>
3962
3963 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
3964
3965 2015-06-11 Marek Polacek <polacek@redhat.com>
3966
3967 * match.pd: Use single_use throughout.
3968
3969 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3970
3971 * config/arm/arm.c (arm_option_params_internal): When optimising
3972 for speed set max_insns_skipped when arm_restrict_it.
3973
3974 2015-06-11 Christian Bruel <christian.bruel@st.com>
3975
3976 PR target/52144
3977 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
3978 macros in ...
3979 (arm_cpu_builtins): New function.
3980 (arm_pragma_target_parse): Call arm_cpu_builtins.
3981 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
3982 (arm_register_target_pragmas): Likewise.
3983 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
3984 Call arm_register_target_pragmas.
3985 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
3986 (arm_pragma_target_parse): Likewise.
3987
3988 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
3989
3990 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
3991 of the second operand.
3992
3993 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
3994
3995 PR target/66473
3996 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
3997 to prepare mask operand for AVX512 modes.
3998
3999 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4000
4001 PR target/66474
4002 * doc/md.texi (Machine Constraints): Document that on the PowerPC
4003 if you use a constraint that targets a VSX register, you must use
4004 %x<n> in the template.
4005
4006 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
4007
4008 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
4009 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
4010 (define_insn "trap"): New definition.
4011
4012 2015-06-10 Richard Biener <rguenther@suse.de>
4013
4014 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
4015 out from ...
4016 (vect_supported_load_permutation_p): ... here. Handle
4017 supportable permutations in reductions.
4018 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
4019 for vectorizing strided group loads.
4020
4021 2015-06-10 Jakub Jelinek <jakub@redhat.com>
4022
4023 PR target/66470
4024 * config/i386/i386.c (ix86_split_long_move): For collisions
4025 involving direct tls segment refs, move the UNSPEC_TP possibly
4026 wrapped in ZERO_EXTEND out of the address for lea, to each of
4027 the memory loads.
4028
4029 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4030
4031 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
4032 dmb sy. Adjust tabs.
4033
4034 2015-06-10 Tom de Vries <tom@codesourcery.com>
4035
4036 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
4037
4038 2015-06-10 Martin Liska <mliska@suse.cz>
4039
4040 PR bootstrap/66471
4041 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
4042 all enum values in mem_alloc_origin.
4043 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
4044 name.
4045 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
4046 * bitmap.c (bitmap_register): Likewise.
4047 (dump_bitmap_statistics): Likewise.
4048 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
4049 (ggc_record_overhead): Likewise.
4050 * hash-map.h: Likewise.
4051 * hash-set.h: Likewise.
4052 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
4053 * hash-table.h: Likewise.
4054 * vec.c (vec_prefix::register_overhead): Likewise.
4055 (vec_prefix::release_overhead): Likewise.
4056 (dump_vec_loc_statistics): Likewise.
4057
4058 2015-06-09 Christian Bruel <christian.bruel@st.com>
4059
4060 PR target/52144
4061 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
4062 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
4063 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
4064 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
4065 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
4066 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
4067 (arm_valid_target_attribute_p): Likewise.
4068 (arm_set_current_function, arm_can_inline_p): Likewise.
4069 (arm_valid_target_attribute_rec): Likewise.
4070 (arm_previous_fndecl): New variable.
4071 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
4072 (TARGET_CAN_INLINE_P): Define.
4073 (arm_asm_trampoline_template): Emit mode.
4074 (arm_file_start): Don't set unified syntax.
4075 (arm_declare_function_name): Set unified syntax and mode.
4076 (arm_option_override): Init target_option_default_node.
4077 and target_option_current_node.
4078 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
4079 (*call_symbol): Likewise.
4080 * doc/extend.texi: Document ARM/Thumb target attribute.
4081 * doc/invoke.texi: Likewise.
4082
4083 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
4084
4085 Revert:
4086 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
4087 PR rtl-optimization/64164
4088 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4089 * tree-ssa-copyrename.c: Removed.
4090 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4091 -ftree-coalesce-vars.
4092 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4093 * common.opt (ftree-copyrename): Ignore.
4094 (ftree-coalesce-inlined-vars): Likewise.
4095 * doc/invoke.texi: Remove the ignored options above.
4096 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4097 * tree-ssa-coalesce.h: ... here.
4098 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4099 headers required by it.
4100 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4101 across variables when flag_tree_coalesce_vars. Check register
4102 use and promoted modes to allow coalescing. Moved to
4103 tree-ssa-coalesce.c.
4104 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4105 with its member functions to tree-ssa-coalesce.c.
4106 (var_map_base_init): Likewise. Renamed to
4107 compute_samebase_partition_bases.
4108 (partition_view_normal): Drop want_bases parameter.
4109 (partition_view_bitmap): Likewise.
4110 * tree-ssa-live.h: Adjust declarations.
4111 * tree-ssa-coalesce.c: Include explow.h.
4112 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4113 default defs at the entry point.
4114 (dump_part_var_map): New.
4115 (compute_optimized_partition_bases): New, called by...
4116 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4117 of compute_samebase_partition_bases. Adjust.
4118 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4119 * cfgexpand.c (leader_merge): New.
4120 (get_rtl_for_parm_ssa_default_def): New.
4121 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4122 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4123 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4124 redundant MEM attr setting.
4125 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4126 from...
4127 (expand_one_stack_var): ... this. New wrapper to check and
4128 skip already expanded SSA partitions.
4129 (record_alignment_for_reg_var): New, factored out of...
4130 (expand_one_var): ... this.
4131 (expand_one_ssa_partition): New.
4132 (adjust_one_expanded_partition_var): New.
4133 (expand_one_register_var): Check and skip already expanded SSA
4134 partitions.
4135 (expand_used_vars): Don't create DECLs for anonymous SSA
4136 names. Expand all SSA partitions, then adjust all SSA names.
4137 (pass::execute): Replace the loops that set
4138 SA.partition_to_pseudo from partition leaders and cleared
4139 DECL_RTL for multi-location variables, and that which used to
4140 rename vars and set attrs, with one that clears DECL_RTL and
4141 checks that PARMs and RESULTs default_defs match DECL_RTL.
4142 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4143 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4144 * explow.c (promote_ssa_mode): New.
4145 * explow.h (promote_ssa_mode): Declare.
4146 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4147 * function.c: Include cfgexpand.h.
4148 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4149 (use_register_for_parm_decl): Wrapper for the above to
4150 special-case the result_ptr.
4151 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4152 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4153 multiple locations.
4154 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4155 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4156 (assign_parm_setup_block): Prefer SSA-assigned location.
4157 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
4158 if stack_parm is NULL.
4159 (assign_parm_setup_stack): Prefer SSA-assigned location.
4160 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4161 rtl before testing for pointer bounds. Special-case result_ptr.
4162 (expand_function_start): Maybe reset DECL_RTL of result.
4163 Prefer SSA-assigned location for result and static chain.
4164 Factor out DECL_RESULT and SET_DECL_RTL.
4165 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4166 anonymous SSA names. Use promote_ssa_mode.
4167 (get_temp_reg): Likewise.
4168 (remove_ssa_form): Adjust.
4169 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4170 and get its reg_usage for reg invalidation.
4171 (compute_bb_dataflow): Pass it insn.
4172 (emit_notes_in_bb): Likewise.
4173 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
4174 fail assert on conversion between unsigned types.
4175
4176 2015-06-09 Tom de Vries <tom@codesourcery.com>
4177
4178 PR tree-optimization/65460
4179 * omp-low.c (expand_omp_target): Set parallelized_function on
4180 cgraph_node for child_fn.
4181
4182 2015-06-09 Tom de Vries <tom@codesourcery.com>
4183
4184 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
4185 parallelized_function before add_new_function.
4186
4187 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
4188
4189 * gcc-plugin.h: Move decls to plugin.h and include it.
4190 * plugin.h: Relocate decls from gcc-plugin.h
4191 * ggc-page.c: Include required header files.
4192 * passes.c: Likewise.
4193 * cgraphunit.c: Likewise.
4194
4195 2015-06-09 Tom de Vries <tom@codesourcery.com>
4196
4197 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
4198
4199 2015-06-09 Jason Merrill <jason@redhat.com>
4200
4201 PR bootstrap/66448
4202 * toplev.c (check_global_declaration): Don't warn about a clone.
4203
4204 2015-06-09 Marek Polacek <polacek@redhat.com>
4205
4206 PR tree-optimization/66299
4207 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
4208 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
4209 patterns.
4210
4211 2015-06-09 Richard Biener <rguenther@suse.de>
4212
4213 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
4214 (vect_analyze_slp_instance): Instead do not falsely drop
4215 load permutations.
4216
4217 2015-06-09 Richard Biener <rguenther@suse.de>
4218
4219 PR middle-end/66423
4220 * match.pd: Handle A % (unsigned)(1 << B).
4221
4222 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
4223
4224 * varasm.c (output_object_block_htab): Remove.
4225 (output_object_block_compare): New.
4226 (output_object_blocks): Sort named object_blocks before outputting
4227 them.
4228
4229 2015-06-09 Richard Biener <rguenther@suse.de>
4230
4231 PR tree-optimization/66419
4232 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
4233 consider GROUP_GAP when detecting a perfect subchain.
4234
4235 2015-06-09 Nick Clifton <nickc@redhat.com>
4236
4237 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
4238 place read only data in the .frodata section.
4239
4240 2015-06-09 Shiva Chen <shiva0217@gmail.com>
4241
4242 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
4243 (atomic_store<mode>): Likewise.
4244
4245 2015-06-09 Richard Biener <rguenther@suse.de>
4246
4247 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
4248
4249 2015-06-09 Richard Biener <rguenther@suse.de>
4250
4251 PR middle-end/66413
4252 * tree-inline.c (insert_init_debug_bind): Unshare value.
4253
4254 2015-06-09 Richard Biener <rguenther@suse.de>
4255
4256 PR tree-optimization/66396
4257 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
4258 Rename virtual operands.
4259
4260 2015-06-09 Tom de Vries <tom@codesourcery.com>
4261
4262 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
4263 always return false.
4264
4265 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
4266
4267 PR rtl-optimization/64164
4268 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4269 * tree-ssa-copyrename.c: Removed.
4270 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4271 -ftree-coalesce-vars.
4272 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4273 * common.opt (ftree-copyrename): Ignore.
4274 (ftree-coalesce-inlined-vars): Likewise.
4275 * doc/invoke.texi: Remove the ignored options above.
4276 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4277 * tree-ssa-coalesce.h: ... here.
4278 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4279 headers required by it.
4280 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4281 across variables when flag_tree_coalesce_vars. Check register
4282 use and promoted modes to allow coalescing. Moved to
4283 tree-ssa-coalesce.c.
4284 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4285 with its member functions to tree-ssa-coalesce.c.
4286 (var_map_base_init): Likewise. Renamed to
4287 compute_samebase_partition_bases.
4288 (partition_view_normal): Drop want_bases parameter.
4289 (partition_view_bitmap): Likewise.
4290 * tree-ssa-live.h: Adjust declarations.
4291 * tree-ssa-coalesce.c: Include explow.h.
4292 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4293 default defs at the entry point.
4294 (dump_part_var_map): New.
4295 (compute_optimized_partition_bases): New, called by...
4296 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4297 of compute_samebase_partition_bases. Adjust.
4298 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4299 * cfgexpand.c (leader_merge): New.
4300 (get_rtl_for_parm_ssa_default_def): New.
4301 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4302 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4303 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4304 redundant MEM attr setting.
4305 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4306 from...
4307 (expand_one_stack_var): ... this. New wrapper to check and
4308 skip already expanded SSA partitions.
4309 (record_alignment_for_reg_var): New, factored out of...
4310 (expand_one_var): ... this.
4311 (expand_one_ssa_partition): New.
4312 (adjust_one_expanded_partition_var): New.
4313 (expand_one_register_var): Check and skip already expanded SSA
4314 partitions.
4315 (expand_used_vars): Don't create DECLs for anonymous SSA
4316 names. Expand all SSA partitions, then adjust all SSA names.
4317 (pass::execute): Replace the loops that set
4318 SA.partition_to_pseudo from partition leaders and cleared
4319 DECL_RTL for multi-location variables, and that which used to
4320 rename vars and set attrs, with one that clears DECL_RTL and
4321 checks that PARMs and RESULTs default_defs match DECL_RTL.
4322 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4323 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4324 * explow.c (promote_ssa_mode): New.
4325 * explow.h (promote_ssa_mode): Declare.
4326 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4327 * function.c: Include cfgexpand.h.
4328 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4329 (use_register_for_parm_decl): Wrapper for the above to
4330 special-case the result_ptr.
4331 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4332 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4333 multiple locations.
4334 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4335 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4336 (assign_parm_setup_block): Prefer SSA-assigned location.
4337 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
4338 if stack_parm is NULL.
4339 (assign_parm_setup_stack): Prefer SSA-assigned location.
4340 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4341 rtl before testing for pointer bounds. Special-case result_ptr.
4342 (expand_function_start): Maybe reset DECL_RTL of result.
4343 Prefer SSA-assigned location for result and static chain.
4344 Factor out DECL_RESULT and SET_DECL_RTL.
4345 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4346 anonymous SSA names. Use promote_ssa_mode.
4347 (get_temp_reg): Likewise.
4348 (remove_ssa_form): Adjust.
4349 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4350 and get its reg_usage for reg invalidation.
4351 (compute_bb_dataflow): Pass it insn.
4352 (emit_notes_in_bb): Likewise.
4353 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
4354 fail assert on conversion between unsigned types.
4355
4356 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
4357
4358 PR debug/58315
4359 * tree-inline.c (reset_debug_binding): New.
4360 (reset_debug_bindings): Likewise.
4361 (expand_call_inline): Call it.
4362
4363 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
4364
4365 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
4366 TYPE_STRING_FLAG.
4367
4368 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
4369
4370 * lto-streamer-out.c (lto_output_location): Stream
4371 reserved locations correctly.
4372 * lto-streamer-in.c (lto_output_location): Likewise.
4373
4374 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
4375
4376 * coretypes.h: Include hash-table.h and hash-set.h for host files.
4377 * ggc.h: Don't include statistics.h>
4378 * hash-map.h: Remove all includes.
4379 * hash-set.h: Likewise.
4380 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
4381 the include list. Remove <new>.
4382 * inchash.h: Remove all includes.
4383 * mem-stats.h: Likewise.
4384 * vec.h: No special processing for generators or ggc.
4385 * alias.c : Adjust include files.
4386 * alloc-pool.c : Likewise.
4387 * alloc-pool.h : Likewise.
4388 * asan.c : Likewise.
4389 * attribs.c : Likewise.
4390 * auto-inc-dec.c : Likewise.
4391 * auto-profile.c : Likewise.
4392 * bb-reorder.c : Likewise.
4393 * bitmap.c : Likewise.
4394 * bitmap.h : Likewise.
4395 * bt-load.c : Likewise.
4396 * builtins.c : Likewise.
4397 * caller-save.c : Likewise.
4398 * calls.c : Likewise.
4399 * ccmp.c : Likewise.
4400 * cfg.c : Likewise.
4401 * cfganal.c : Likewise.
4402 * cfgbuild.c : Likewise.
4403 * cfgcleanup.c : Likewise.
4404 * cfgexpand.c : Likewise.
4405 * cfghooks.c : Likewise.
4406 * cfgloop.c : Likewise.
4407 * cfgloop.h : Likewise.
4408 * cfgloopanal.c : Likewise.
4409 * cfgloopmanip.c : Likewise.
4410 * cfgrtl.c : Likewise.
4411 * cgraph.c : Likewise.
4412 * cgraphbuild.c : Likewise.
4413 * cgraphclones.c : Likewise.
4414 * cgraphunit.c : Likewise.
4415 * cilk-common.c : Likewise.
4416 * combine-stack-adj.c : Likewise.
4417 * combine.c : Likewise.
4418 * compare-elim.c : Likewise.
4419 * context.c : Likewise.
4420 * convert.c : Likewise.
4421 * coverage.c : Likewise.
4422 * cppbuiltin.c : Likewise.
4423 * cprop.c : Likewise.
4424 * cse.c : Likewise.
4425 * cselib.c : Likewise.
4426 * data-streamer-in.c : Likewise.
4427 * data-streamer-out.c : Likewise.
4428 * data-streamer.c : Likewise.
4429 * data-streamer.h : Likewise.
4430 * dbxout.c : Likewise.
4431 * dce.c : Likewise.
4432 * ddg.c : Likewise.
4433 * debug.c : Likewise.
4434 * df-core.c : Likewise.
4435 * df-problems.c : Likewise.
4436 * df-scan.c : Likewise.
4437 * df.h : Likewise.
4438 * dfp.c : Likewise.
4439 * dojump.c : Likewise.
4440 * dominance.c : Likewise.
4441 * domwalk.c : Likewise.
4442 * double-int.c : Likewise.
4443 * dse.c : Likewise.
4444 * dumpfile.c : Likewise.
4445 * dwarf2asm.c : Likewise.
4446 * dwarf2cfi.c : Likewise.
4447 * dwarf2out.c : Likewise.
4448 * emit-rtl.c : Likewise.
4449 * et-forest.c : Likewise.
4450 * except.c : Likewise.
4451 * except.h : Likewise.
4452 * explow.c : Likewise.
4453 * expmed.c : Likewise.
4454 * expr.c : Likewise.
4455 * final.c : Likewise.
4456 * fixed-value.c : Likewise.
4457 * fold-const.c : Likewise.
4458 * function.c : Likewise.
4459 * fwprop.c : Likewise.
4460 * gcc-plugin.h : Likewise.
4461 * gcc.c : Likewise.
4462 * gcse-common.c : Likewise.
4463 * gcse.c : Likewise.
4464 * genattrtab.c : Likewise.
4465 * genautomata.c : Likewise.
4466 * genconditions.c : Likewise.
4467 * genemit.c : Likewise.
4468 * generic-match-head.c : Likewise.
4469 * genextract.c : Likewise.
4470 * gengtype-state.c : Likewise.
4471 * gengtype.c : Likewise.
4472 * genhooks.c : Likewise.
4473 * genmatch.c : Likewise.
4474 * genmodes.c : Likewise.
4475 * genrecog.c : Likewise.
4476 * gensupport.c : Likewise.
4477 * ggc-common.c : Likewise.
4478 * ggc-internal.h : Likewise.
4479 * ggc-none.c : Likewise.
4480 * ggc-page.c : Likewise.
4481 * gimple-builder.c : Likewise.
4482 * gimple-expr.c : Likewise.
4483 * gimple-fold.c : Likewise.
4484 * gimple-iterator.c : Likewise.
4485 * gimple-low.c : Likewise.
4486 * gimple-match-head.c : Likewise.
4487 * gimple-pretty-print.c : Likewise.
4488 * gimple-ssa-isolate-paths.c : Likewise.
4489 * gimple-ssa-strength-reduction.c : Likewise.
4490 * gimple-ssa.h : Likewise.
4491 * gimple-streamer-in.c : Likewise.
4492 * gimple-streamer-out.c : Likewise.
4493 * gimple-streamer.h : Likewise.
4494 * gimple-walk.c : Likewise.
4495 * gimple.c : Likewise.
4496 * gimplify-me.c : Likewise.
4497 * gimplify.c : Likewise.
4498 * godump.c : Likewise.
4499 * graph.c : Likewise.
4500 * graphds.c : Likewise.
4501 * graphite-blocking.c : Likewise.
4502 * graphite-dependences.c : Likewise.
4503 * graphite-interchange.c : Likewise.
4504 * graphite-isl-ast-to-gimple.c : Likewise.
4505 * graphite-optimize-isl.c : Likewise.
4506 * graphite-poly.c : Likewise.
4507 * graphite-scop-detection.c : Likewise.
4508 * graphite-sese-to-poly.c : Likewise.
4509 * graphite.c : Likewise.
4510 * haifa-sched.c : Likewise.
4511 * hard-reg-set.h : Likewise.
4512 * hw-doloop.c : Likewise.
4513 * ifcvt.c : Likewise.
4514 * inchash.c : Likewise.
4515 * incpath.c : Likewise.
4516 * init-regs.c : Likewise.
4517 * input.c : Likewise.
4518 * internal-fn.c : Likewise.
4519 * ipa-chkp.c : Likewise.
4520 * ipa-comdats.c : Likewise.
4521 * ipa-cp.c : Likewise.
4522 * ipa-devirt.c : Likewise.
4523 * ipa-icf-gimple.c : Likewise.
4524 * ipa-icf.c : Likewise.
4525 * ipa-inline-analysis.c : Likewise.
4526 * ipa-inline-transform.c : Likewise.
4527 * ipa-inline.c : Likewise.
4528 * ipa-polymorphic-call.c : Likewise.
4529 * ipa-profile.c : Likewise.
4530 * ipa-prop.c : Likewise.
4531 * ipa-pure-const.c : Likewise.
4532 * ipa-ref.c : Likewise.
4533 * ipa-reference.c : Likewise.
4534 * ipa-split.c : Likewise.
4535 * ipa-utils.c : Likewise.
4536 * ipa-visibility.c : Likewise.
4537 * ipa.c : Likewise.
4538 * ira-build.c : Likewise.
4539 * ira-color.c : Likewise.
4540 * ira-conflicts.c : Likewise.
4541 * ira-costs.c : Likewise.
4542 * ira-emit.c : Likewise.
4543 * ira-lives.c : Likewise.
4544 * ira.c : Likewise.
4545 * jump.c : Likewise.
4546 * langhooks.c : Likewise.
4547 * lcm.c : Likewise.
4548 * libfuncs.h : Likewise.
4549 * lists.c : Likewise.
4550 * loop-doloop.c : Likewise.
4551 * loop-init.c : Likewise.
4552 * loop-invariant.c : Likewise.
4553 * loop-iv.c : Likewise.
4554 * loop-unroll.c : Likewise.
4555 * lower-subreg.c : Likewise.
4556 * lra-assigns.c : Likewise.
4557 * lra-coalesce.c : Likewise.
4558 * lra-constraints.c : Likewise.
4559 * lra-eliminations.c : Likewise.
4560 * lra-lives.c : Likewise.
4561 * lra-remat.c : Likewise.
4562 * lra-spills.c : Likewise.
4563 * lra.c : Likewise.
4564 * lto-cgraph.c : Likewise.
4565 * lto-compress.c : Likewise.
4566 * lto-opts.c : Likewise.
4567 * lto-section-in.c : Likewise.
4568 * lto-section-out.c : Likewise.
4569 * lto-streamer-in.c : Likewise.
4570 * lto-streamer-out.c : Likewise.
4571 * lto-streamer.c : Likewise.
4572 * lto-streamer.h : Likewise.
4573 * mcf.c : Likewise.
4574 * mode-switching.c : Likewise.
4575 * modulo-sched.c : Likewise.
4576 * omega.c : Likewise.
4577 * omp-low.c : Likewise.
4578 * optabs.c : Likewise.
4579 * opts-global.c : Likewise.
4580 * opts.h : Likewise.
4581 * passes.c : Likewise.
4582 * plugin.c : Likewise.
4583 * postreload-gcse.c : Likewise.
4584 * postreload.c : Likewise.
4585 * predict.c : Likewise.
4586 * print-rtl.c : Likewise.
4587 * print-tree.c : Likewise.
4588 * profile.c : Likewise.
4589 * read-md.c : Likewise.
4590 * read-md.h : Likewise.
4591 * read-rtl.c : Likewise.
4592 * real.c : Likewise.
4593 * realmpfr.c : Likewise.
4594 * recog.c : Likewise.
4595 * ree.c : Likewise.
4596 * reg-stack.c : Likewise.
4597 * regcprop.c : Likewise.
4598 * reginfo.c : Likewise.
4599 * regrename.c : Likewise.
4600 * regstat.c : Likewise.
4601 * reload.c : Likewise.
4602 * reload1.c : Likewise.
4603 * reorg.c : Likewise.
4604 * resource.c : Likewise.
4605 * rtl-chkp.c : Likewise.
4606 * rtl.c : Likewise.
4607 * rtl.h : Likewise.
4608 * rtlanal.c : Likewise.
4609 * rtlhash.c : Likewise.
4610 * rtlhash.h : Likewise.
4611 * rtlhooks.c : Likewise.
4612 * sanopt.c : Likewise.
4613 * sched-deps.c : Likewise.
4614 * sched-ebb.c : Likewise.
4615 * sched-rgn.c : Likewise.
4616 * sched-vis.c : Likewise.
4617 * sdbout.c : Likewise.
4618 * sel-sched-dump.c : Likewise.
4619 * sel-sched-ir.c : Likewise.
4620 * sel-sched-ir.h : Likewise.
4621 * sel-sched.c : Likewise.
4622 * sese.c : Likewise.
4623 * shrink-wrap.c : Likewise.
4624 * shrink-wrap.h : Likewise.
4625 * simplify-rtx.c : Likewise.
4626 * stack-ptr-mod.c : Likewise.
4627 * statistics.c : Likewise.
4628 * stmt.c : Likewise.
4629 * stor-layout.c : Likewise.
4630 * store-motion.c : Likewise.
4631 * stringpool.c : Likewise.
4632 * symtab.c : Likewise.
4633 * target-globals.c : Likewise.
4634 * targhooks.c : Likewise.
4635 * tlink.c : Likewise.
4636 * toplev.c : Likewise.
4637 * tracer.c : Likewise.
4638 * trans-mem.c : Likewise.
4639 * tree-affine.c : Likewise.
4640 * tree-affine.h : Likewise.
4641 * tree-browser.c : Likewise.
4642 * tree-call-cdce.c : Likewise.
4643 * tree-cfg.c : Likewise.
4644 * tree-cfgcleanup.c : Likewise.
4645 * tree-chkp-opt.c : Likewise.
4646 * tree-chkp.c : Likewise.
4647 * tree-chrec.c : Likewise.
4648 * tree-complex.c : Likewise.
4649 * tree-data-ref.c : Likewise.
4650 * tree-dfa.c : Likewise.
4651 * tree-diagnostic.c : Likewise.
4652 * tree-dump.c : Likewise.
4653 * tree-eh.c : Likewise.
4654 * tree-eh.h : Likewise.
4655 * tree-emutls.c : Likewise.
4656 * tree-hasher.h : Likewise.
4657 * tree-if-conv.c : Likewise.
4658 * tree-inline.c : Likewise.
4659 * tree-inline.h : Likewise.
4660 * tree-into-ssa.c : Likewise.
4661 * tree-iterator.c : Likewise.
4662 * tree-loop-distribution.c : Likewise.
4663 * tree-nested.c : Likewise.
4664 * tree-nrv.c : Likewise.
4665 * tree-object-size.c : Likewise.
4666 * tree-outof-ssa.c : Likewise.
4667 * tree-parloops.c : Likewise.
4668 * tree-phinodes.c : Likewise.
4669 * tree-predcom.c : Likewise.
4670 * tree-pretty-print.c : Likewise.
4671 * tree-profile.c : Likewise.
4672 * tree-scalar-evolution.c : Likewise.
4673 * tree-sra.c : Likewise.
4674 * tree-ssa-address.c : Likewise.
4675 * tree-ssa-alias.c : Likewise.
4676 * tree-ssa-ccp.c : Likewise.
4677 * tree-ssa-coalesce.c : Likewise.
4678 * tree-ssa-copy.c : Likewise.
4679 * tree-ssa-copyrename.c : Likewise.
4680 * tree-ssa-dce.c : Likewise.
4681 * tree-ssa-dom.c : Likewise.
4682 * tree-ssa-dse.c : Likewise.
4683 * tree-ssa-forwprop.c : Likewise.
4684 * tree-ssa-ifcombine.c : Likewise.
4685 * tree-ssa-live.c : Likewise.
4686 * tree-ssa-loop-ch.c : Likewise.
4687 * tree-ssa-loop-im.c : Likewise.
4688 * tree-ssa-loop-ivcanon.c : Likewise.
4689 * tree-ssa-loop-ivopts.c : Likewise.
4690 * tree-ssa-loop-manip.c : Likewise.
4691 * tree-ssa-loop-niter.c : Likewise.
4692 * tree-ssa-loop-prefetch.c : Likewise.
4693 * tree-ssa-loop-unswitch.c : Likewise.
4694 * tree-ssa-loop.c : Likewise.
4695 * tree-ssa-math-opts.c : Likewise.
4696 * tree-ssa-operands.c : Likewise.
4697 * tree-ssa-phiopt.c : Likewise.
4698 * tree-ssa-phiprop.c : Likewise.
4699 * tree-ssa-pre.c : Likewise.
4700 * tree-ssa-propagate.c : Likewise.
4701 * tree-ssa-reassoc.c : Likewise.
4702 * tree-ssa-sccvn.c : Likewise.
4703 * tree-ssa-scopedtables.c : Likewise.
4704 * tree-ssa-sink.c : Likewise.
4705 * tree-ssa-strlen.c : Likewise.
4706 * tree-ssa-structalias.c : Likewise.
4707 * tree-ssa-tail-merge.c : Likewise.
4708 * tree-ssa-ter.c : Likewise.
4709 * tree-ssa-threadedge.c : Likewise.
4710 * tree-ssa-threadupdate.c : Likewise.
4711 * tree-ssa-uncprop.c : Likewise.
4712 * tree-ssa-uninit.c : Likewise.
4713 * tree-ssa.c : Likewise.
4714 * tree-ssanames.c : Likewise.
4715 * tree-stdarg.c : Likewise.
4716 * tree-streamer-in.c : Likewise.
4717 * tree-streamer-out.c : Likewise.
4718 * tree-streamer.c : Likewise.
4719 * tree-streamer.h : Likewise.
4720 * tree-switch-conversion.c : Likewise.
4721 * tree-tailcall.c : Likewise.
4722 * tree-vect-data-refs.c : Likewise.
4723 * tree-vect-generic.c : Likewise.
4724 * tree-vect-loop-manip.c : Likewise.
4725 * tree-vect-loop.c : Likewise.
4726 * tree-vect-patterns.c : Likewise.
4727 * tree-vect-slp.c : Likewise.
4728 * tree-vect-stmts.c : Likewise.
4729 * tree-vectorizer.c : Likewise.
4730 * tree-vectorizer.h : Likewise.
4731 * tree-vrp.c : Likewise.
4732 * tree.c : Likewise.
4733 * tsan.c : Likewise.
4734 * ubsan.c : Likewise.
4735 * valtrack.c : Likewise.
4736 * valtrack.h : Likewise.
4737 * value-prof.c : Likewise.
4738 * var-tracking.c : Likewise.
4739 * varasm.c : Likewise.
4740 * varpool.c : Likewise.
4741 * vec.c: Likewise.
4742 * vmsdbgout.c : Likewise.
4743 * vtable-verify.c : Likewise.
4744 * vtable-verify.h : Likewise.
4745 * web.c : Likewise.
4746 * wide-int.cc : Likewise.
4747 * xcoffout.c : Likewise.
4748 * config/aarch64/aarch64-builtins.c : Likewise.
4749 * config/aarch64/aarch64.c : Likewise.
4750 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
4751 * config/alpha/alpha.c : Likewise.
4752 * config/arc/arc.c : Likewise.
4753 * config/arm/aarch-common.c : Likewise.
4754 * config/arm/arm-builtins.c : Likewise.
4755 * config/arm/arm-c.c : Likewise.
4756 * config/arm/arm.c : Likewise.
4757 * config/avr/avr-c.c : Likewise.
4758 * config/avr/avr-log.c : Likewise.
4759 * config/avr/avr.c : Likewise.
4760 * config/bfin/bfin.c : Likewise.
4761 * config/c6x/c6x.c : Likewise.
4762 * config/cr16/cr16.c : Likewise.
4763 * config/cris/cris.c : Likewise.
4764 * config/darwin-c.c : Likewise.
4765 * config/darwin.c : Likewise.
4766 * config/default-c.c : Likewise.
4767 * config/epiphany/epiphany.c : Likewise.
4768 * config/epiphany/mode-switch-use.c : Likewise.
4769 * config/epiphany/resolve-sw-modes.c : Likewise.
4770 * config/fr30/fr30.c : Likewise.
4771 * config/frv/frv.c : Likewise.
4772 * config/ft32/ft32.c : Likewise.
4773 * config/glibc-c.c : Likewise.
4774 * config/h8300/h8300.c : Likewise.
4775 * config/i386/i386-c.c : Likewise.
4776 * config/i386/i386.c : Likewise.
4777 * config/i386/msformat-c.c : Likewise.
4778 * config/i386/winnt-cxx.c : Likewise.
4779 * config/i386/winnt-stubs.c : Likewise.
4780 * config/i386/winnt.c : Likewise.
4781 * config/ia64/ia64-c.c : Likewise.
4782 * config/ia64/ia64.c : Likewise.
4783 * config/iq2000/iq2000.c : Likewise.
4784 * config/lm32/lm32.c : Likewise.
4785 * config/m32c/m32c-pragma.c : Likewise.
4786 * config/m32c/m32c.c : Likewise.
4787 * config/m32r/m32r.c : Likewise.
4788 * config/m68k/m68k.c : Likewise.
4789 * config/mcore/mcore.c : Likewise.
4790 * config/mep/mep-pragma.c : Likewise.
4791 * config/mep/mep.c : Likewise.
4792 * config/microblaze/microblaze-c.c : Likewise.
4793 * config/microblaze/microblaze.c : Likewise.
4794 * config/mips/mips.c : Likewise.
4795 * config/mmix/mmix.c : Likewise.
4796 * config/mn10300/mn10300.c : Likewise.
4797 * config/moxie/moxie.c : Likewise.
4798 * config/msp430/msp430-c.c : Likewise.
4799 * config/msp430/msp430.c : Likewise.
4800 * config/nds32/nds32-cost.c : Likewise.
4801 * config/nds32/nds32-fp-as-gp.c : Likewise.
4802 * config/nds32/nds32-intrinsic.c : Likewise.
4803 * config/nds32/nds32-isr.c : Likewise.
4804 * config/nds32/nds32-md-auxiliary.c : Likewise.
4805 * config/nds32/nds32-memory-manipulation.c : Likewise.
4806 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
4807 * config/nds32/nds32-predicates.c : Likewise.
4808 * config/nds32/nds32.c : Likewise.
4809 * config/nios2/nios2.c : Likewise.
4810 * config/nvptx/nvptx.c : Likewise.
4811 * config/pa/pa.c : Likewise.
4812 * config/pdp11/pdp11.c : Likewise.
4813 * config/rl78/rl78-c.c : Likewise.
4814 * config/rl78/rl78.c : Likewise.
4815 * config/rs6000/rs6000-c.c : Likewise.
4816 * config/rs6000/rs6000.c : Likewise.
4817 * config/rx/rx.c : Likewise.
4818 * config/s390/s390-c.c : Likewise.
4819 * config/s390/s390.c : Likewise.
4820 * config/sh/sh-c.c : Likewise.
4821 * config/sh/sh-mem.cc : Likewise.
4822 * config/sh/sh.c : Likewise.
4823 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
4824 * config/sh/sh_treg_combine.cc : Likewise.
4825 * config/sol2-c.c : Likewise.
4826 * config/sol2-cxx.c : Likewise.
4827 * config/sol2-stubs.c : Likewise.
4828 * config/sol2.c : Likewise.
4829 * config/sparc/sparc-c.c : Likewise.
4830 * config/sparc/sparc.c : Likewise.
4831 * config/spu/spu-c.c : Likewise.
4832 * config/spu/spu.c : Likewise.
4833 * config/stormy16/stormy16.c : Likewise.
4834 * config/tilegx/mul-tables.c : Likewise.
4835 * config/tilegx/tilegx-c.c : Likewise.
4836 * config/tilegx/tilegx.c : Likewise.
4837 * config/tilepro/mul-tables.c : Likewise.
4838 * config/tilepro/tilepro-c.c : Likewise.
4839 * config/tilepro/tilepro.c : Likewise.
4840 * config/v850/v850-c.c : Likewise.
4841 * config/v850/v850.c : Likewise.
4842 * config/vax/vax.c : Likewise.
4843 * config/visium/visium.c : Likewise.
4844 * config/vms/vms-c.c : Likewise.
4845 * config/vms/vms.c : Likewise.
4846 * config/vxworks.c : Likewise.
4847 * config/winnt-c.c : Likewise.
4848 * config/xtensa/xtensa.c : Likewise.
4849
4850 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
4851
4852 PR lto/65378
4853 * ipa-utils.h (warn_types_mismatch): Update prototype.
4854 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
4855 parameters.
4856 (type_mismatch_p): New function.
4857 (warn_types_mismatch): Reorg to work better on non-C++ types.
4858 (odr_types_equivalent_p): Add loc1/loc2 parameters.
4859 (add_type_duplicate): Update.
4860
4861 2015-06-08 Tom de Vries <tom@codesourcery.com>
4862
4863 PR rtl-optimization/66444
4864 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
4865 call_used_regs.
4866
4867 2015-06-08 Richard Biener <rguenther@suse.de>
4868
4869 PR tree-optimization/66422
4870 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
4871 block after inserted gcc_unreachable.
4872
4873 2015-06-08 Nick Clifton <nickc@redhat.com>
4874
4875 * config/rx/rx.c (rx_function_value): Do not promote vector types.
4876 (rx_promote_function_mode): Likewise.
4877 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
4878
4879 2015-06-08 Jakub Jelinek <jakub@redhat.com>
4880
4881 * genattrtab.c (insn_alternatives): Change type from int *
4882 to uint64_t *.
4883 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
4884 (get_attr_value): Change type of num_alt to uint64_t.
4885 (compute_alternative_mask): Change return type from
4886 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
4887 (make_alternative_compare, mk_attr_alt): Change argument type
4888 from int to uint64_t.
4889 (simplify_test_exp): Change type of i from int to uint64_t.
4890 Shift ((uint64_t) 1) instead of 1 up.
4891 (main): Adjust oballocvec first argument from int to uint64_t.
4892 Shift ((uint64_t) 1) instead of 1 up.
4893
4894 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4895
4896 PR other/65366
4897 * gdbhooks.py: Import sys.
4898 (intptr): New function. Replace int(...) by intptr(...).
4899
4900 2015-06-08 Richard Biener <rguenther@suse.de>
4901
4902 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
4903 adjustment for gaps at the end of a SLP load group properly.
4904 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
4905 all permutations we can generate.
4906 (vect_transform_slp_perm_load): Use the correct group-size.
4907
4908 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
4909
4910 * genmatch.c (expr::gen_transform): For conditions, guess the type
4911 from the second operand.
4912
4913 2015-06-08 Tom de Vries <tom@codesourcery.com>
4914
4915 PR tree-optimization/66442
4916 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
4917 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
4918 if the loop latch is not a singleton. Use
4919 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
4920
4921 2015-06-08 Marek Polacek <polacek@redhat.com>
4922
4923 PR sanitizer/66452
4924 * toplev.c (check_global_declaration): Don't warn about artificial
4925 decls.
4926
4927 2015-06-08 Tom de Vries <tom@codesourcery.com>
4928
4929 PR tree-optimization/66436
4930 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
4931 dump file.
4932 * gimplify.c: Add tree-dump.h include.
4933 (gimplify_function_tree): Dump function to gimple dump file.
4934 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
4935 dump file.
4936
4937 2015-06-08 Tom de Vries <tom@codesourcery.com>
4938
4939 PR tree-optimization/66435
4940 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
4941 function.
4942
4943 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
4944
4945 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
4946 of ptr_type_node to not be ptr_to_node.
4947 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
4948 TREE_TYPE of pointers.
4949 * gimple-expr.c (useless_type_conversion): Reorder the check for
4950 function pointers and TYPE_CANONICAL.
4951
4952 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
4953
4954 PR bootstrap/66319
4955 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
4956 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
4957 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
4958 later.
4959 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
4960 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
4961 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
4962 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
4963 and non iso if unix2003.
4964
4965 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
4966
4967 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
4968
4969 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
4970
4971 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
4972 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
4973 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
4974 except.c, final.c, function.c, gcse-common.c, genemit.c,
4975 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
4976 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
4977 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
4978 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
4979 more derived ones.
4980
4981 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
4982
4983 * combine.c (combine_split_insns): Remove cast.
4984 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
4985 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
4986 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
4987 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
4988 * genemit.c (gen_split): Change return type of generated functions to
4989 rtx_insn.
4990 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
4991 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
4992 gen_peephole2_* functions.
4993 (print_subroutine, main): Likewise.
4994 * recog.c (peephole2_optimize): Remove cast.
4995 (peep2_next_insn): Promote return type to rtx_insn.
4996 * recog.h (peep2_next_insn): Fix prototype.
4997 * rtl.h (try_split, split_insns): Likewise.
4998
4999 2015-06-06 DJ Delorie <dj@redhat.com>
5000
5001 * config/msp430/msp430.c (msp430_asm_integer): Support addition
5002 and subtraction too.
5003
5004 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
5005
5006 PR target/66410
5007 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
5008 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
5009 instead of Snd. Disparage Sid/z alternative with '^'.
5010
5011 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
5012
5013 * dwarf2out.c: Remove deferred_locations*.
5014 (dwarf2_debug_hooks): Add early_finish hook.
5015 Remove global_decl hook.
5016 Add early_global_decl and late_global_decl hook.
5017 New global early_dwarf.
5018 New structure set_early_dwarf.
5019 (output_die): Indicate whether a DIE was generated early
5020 when generating assembly with -dA.
5021 (struct limbo_die_struct): Document created_for field.
5022 Remove file_table_last_lookup.
5023 (remove_AT): Return TRUE if successful.
5024 (remove_child_TAG): Clear die_parent.
5025 (reparent_child): New function abstracted from...
5026 (splice_child_die): ...here.
5027 (new_die): ICE if a DIE ends up in limbo too late.
5028 (check_die): New.
5029 (defer_location): Remove.
5030 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
5031 (fill_variable_array_bounds): New.
5032 (decl_start_label): Call fill_variable_array_bounds.
5033 (gen_formal_parameter_die): Rewrite to reuse previously generated
5034 DIEs.
5035 (gen_subprogram_die): Same.
5036 (gen_variable_die): Same.
5037 (gen_const_die): Same.
5038 (gen_label_die): Same.
5039 (gen_lexical_block_die): Same.
5040 (decl_will_get_specification_p): New.
5041 (local_function_static): New.
5042 (gen_struct_or_union_type_die): Fill in variable-length fields.
5043 (gen_typedef_die): Fill in variable-length typedefs.
5044 (gen_tagged_type_die): Gracefully return on error_mark_node.
5045 Handle re-entrancy.
5046 (gen_type_die_with_usage): Handle variable-length types.
5047 Remove duplicate code for ARRAY_TYPE case.
5048 (process_scope_var): Only process imported modules during early
5049 dwarf.
5050 (dwarf2out_early_global_decl): New.
5051 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
5052 (dwarf2out_type_decl): Set early_dwarf while calling
5053 dwarf2out_decl.
5054 (dwarf2out_decl): Verify that we did not recreate a previously
5055 generated DIE.
5056 Do not return on DECL_EXTERNALs in VAR_DECLs.
5057 Abstract some code to local_function_static.
5058 (lookup_filename): Remove use of file_table_last_lookup.
5059 Gracefully exit on missing file_name.
5060 (dwarf2out_finish): Verify limbo list.
5061 Remove deferred_locations_list use.
5062 Move deferred_asm_name and limbo flushing to...
5063 (dwarf2out_early_finish): ...here. New.
5064 (dwarf2out_c_finalize): Remove set of deferred_location_list,
5065 deferred_asm_name, and file_table_last_lookup.
5066 * cgraph.h (referred_to_p): Add default argument.
5067 * cgraphunit.c (referred_to_p): Add and handle include_self
5068 argument.
5069 (analyze_functions): Add first_time argument.
5070 Call check_global_declaration for all symbols.
5071 Call late_global_decl for nodes for moribund nodes.
5072 (finalize_compilation_unit): Add new argument to
5073 analyze_functions.
5074 Call early_global_decl for functions.
5075 Call early_finish debug hook.
5076 * dbxout.c (dbxout_early_global_decl): New.
5077 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
5078 (dbx_debug_hooks): Add new hooks.
5079 (xcoff_debug_hooks): Same.
5080 * debug.c (do_nothing_debug_hooks): Add early_finish field.
5081 Add early and late debug hooks.
5082 Remove global_decl hook.
5083 * debug.h (struct gcc_debug_hooks): Add early_finish,
5084 early_global_decl, and late_global_decl fields.
5085 Remove global_decl field.
5086 Document gcc_debug_hooks.
5087 * gengtype.c (output_typename): Remove.
5088 * godump.c (go_early_global_decl): New.
5089 (go_late_global_decl): New.
5090 (go_global_decl): Remove.
5091 (dump_go_spec_init): Remove global_decl. Add
5092 {early,late}_global_decl.
5093 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
5094 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
5095 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
5096 (write_global_declarations): Remove.
5097 (global_decl_processing): New.
5098 * langhooks.h (struct lang_hooks_for_decls): Remove
5099 final_write_globals field.
5100 Add post_compilation_parsing_cleanups field.
5101 * passes.c (rest_of_decl_compilation): Call early_global_decl.
5102 * sdbout.c: Add early and late_global_decl hooks. Remove
5103 sdbout_global_decl hook.
5104 Add early_finish field for sdb_debug_hooks.
5105 (sdbout_global_decl): Remove.
5106 (sdbout_early_global_decl): New.
5107 (sdbout_late_global_decl): New.
5108 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
5109 * toplev.c (check_global_declaration): Rename from
5110 check_global_declaration_1.
5111 Adapt to use symtab infrastructure.
5112 (check_global_declarations): Remove.
5113 (emit_debug_global_declarations): Remove.
5114 (compile_file): Remove call to final_write_globals langhook.
5115 Run the actual compilation process.
5116 Perform any post compilation parser cleanups.
5117 Generate late debug info.
5118 * toplev.h (check_global_declaration): New.
5119 (check_global_declaration_1): Remove.
5120 (check_global_declarations): Remove.
5121 (write_global_declarations): Remove.
5122 (emit_debug_global_declarations): Remove.
5123 (global_decl_processing): New.
5124 * tree-core.h (struct tree_block): Add DIE field.
5125 * tree.h (BLOCK_DIE): New.
5126 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
5127 throughout.
5128 (vmsdbgout_early_global_decl): New.
5129 (vmsdbgout_late_global_decl): New.
5130 Add early_finish debug hook field to vmsdbg_debug_hooks.
5131 Remove vmsdbgout_decl to vmsdbgout_function_decl.
5132 Add early and late_global_decl debug hooks.
5133
5134 2015-06-05 Julian Brown <julian@codesourcery.com>
5135 Sandra Loosemore <sandra@codesourcery.com>
5136
5137 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
5138 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
5139 to print-sysroot-suffix.sh script.
5140
5141 2015-06-05 Tom de Vries <tom@codesourcery.com>
5142
5143 merge from gomp4 branch:
5144 2015-05-28 Tom de Vries <tom@codesourcery.com>
5145
5146 PR tree-optimization/65443
5147 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
5148 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
5149 (try_transform_to_exit_first_loop_alt): New function.
5150 (transform_to_exit_first_loop): Use
5151 try_transform_to_exit_first_loop_alt.
5152
5153 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
5154
5155 * builtins.c (expand_builtin_atomic_compare_exchange): Call
5156 emit_cmp_and_jump_insns with the mode of target.
5157
5158 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5159
5160 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
5161
5162 2015-06-04 DJ Delorie <dj@redhat.com>
5163
5164 * config/msp430/msp430.md (movsi_s): New. Special case for
5165 storing a 20-bit symbol into a 32-bit register.
5166 * config/msp430/msp430.c (msp430_subreg): Add support for it.
5167 * config/msp430/predicates.md (msp430_symbol_operand): New.
5168
5169 2015-06-04 Sriraman Tallam <tmsriram@google.com>
5170
5171 * c-family/c-common.c (noplt): New attribute.
5172 (handle_noplt_attribute): New handler.
5173 * calls.c (prepare_call_address): Check for noplt
5174 attribute.
5175 * config/i386/i386.c (ix86_expand_call): Check
5176 for noplt attribute.
5177 (ix86_nopic_noplt_attribute_p): New function.
5178 (ix86_output_call_insn): Output indirect call for non-pic
5179 no plt calls.
5180 * doc/extend.texi (noplt): Document new attribute.
5181 * doc/invoke.texi: Document new attribute.
5182
5183 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
5184
5185 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
5186 real.h, and fixed-value.h when included in host source files.
5187 * double-int.h: Remove redundant #includes listed above.
5188 * fixed-value.h: Likewise.
5189 * real.h: Likewise.
5190 * wide-int.h: Likewise.
5191 * inchash.h: Likewise.
5192 * rtl.h: Add some include files When included from a generator file.
5193 * target.h: Remove wide-int.h and insn-modes.h from the include list.
5194 * internal-fn.h: Don't include coretypes.h.
5195 * alias.c: Adjust includes for restructured coretypes.h.
5196 * asan.c: Likewise.
5197 * attribs.c: Likewise.
5198 * auto-inc-dec.c: Likewise.
5199 * auto-profile.c: Likewise.
5200 * bb-reorder.c: Likewise.
5201 * bt-load.c: Likewise.
5202 * builtins.c: Likewise.
5203 * caller-save.c: Likewise.
5204 * calls.c: Likewise.
5205 * ccmp.c: Likewise.
5206 * cfg.c: Likewise.
5207 * cfganal.c: Likewise.
5208 * cfgbuild.c: Likewise.
5209 * cfgcleanup.c: Likewise.
5210 * cfgexpand.c: Likewise.
5211 * cfghooks.c: Likewise.
5212 * cfgloop.c: Likewise.
5213 * cfgloop.h: Likewise.
5214 * cfgloopanal.c: Likewise.
5215 * cfgloopmanip.c: Likewise.
5216 * cfgrtl.c: Likewise.
5217 * cgraph.c: Likewise.
5218 * cgraphbuild.c: Likewise.
5219 * cgraphclones.c: Likewise.
5220 * cgraphunit.c: Likewise.
5221 * cilk-common.c: Likewise.
5222 * combine-stack-adj.c: Likewise.
5223 * combine.c: Likewise.
5224 * compare-elim.c: Likewise.
5225 * convert.c: Likewise.
5226 * coverage.c: Likewise.
5227 * cppbuiltin.c: Likewise.
5228 * cprop.c: Likewise.
5229 * cse.c: Likewise.
5230 * cselib.c: Likewise.
5231 * data-streamer-in.c: Likewise.
5232 * data-streamer-out.c: Likewise.
5233 * data-streamer.c: Likewise.
5234 * dbxout.c: Likewise.
5235 * dce.c: Likewise.
5236 * ddg.c: Likewise.
5237 * debug.c: Likewise.
5238 * df-core.c: Likewise.
5239 * df-problems.c: Likewise.
5240 * df-scan.c: Likewise.
5241 * df.h: Likewise.
5242 * dfp.c: Likewise.
5243 * dojump.c: Likewise.
5244 * dominance.c: Likewise.
5245 * domwalk.c: Likewise.
5246 * double-int.c: Likewise.
5247 * dse.c: Likewise.
5248 * dumpfile.c: Likewise.
5249 * dwarf2asm.c: Likewise.
5250 * dwarf2cfi.c: Likewise.
5251 * dwarf2out.c: Likewise.
5252 * dwarf2out.h: Likewise.
5253 * emit-rtl.c: Likewise.
5254 * et-forest.c: Likewise.
5255 * except.c: Likewise.
5256 * explow.c: Likewise.
5257 * expmed.c: Likewise.
5258 * expr.c: Likewise.
5259 * final.c: Likewise.
5260 * fixed-value.c: Likewise.
5261 * fold-const.c: Likewise.
5262 * function.c: Likewise.
5263 * fwprop.c: Likewise.
5264 * gcc-plugin.h: Likewise.
5265 * gcse.c: Likewise.
5266 * generic-match-head.c: Likewise.
5267 * ggc-page.c: Likewise.
5268 * gimple-builder.c: Likewise.
5269 * gimple-expr.c: Likewise.
5270 * gimple-fold.c: Likewise.
5271 * gimple-iterator.c: Likewise.
5272 * gimple-low.c: Likewise.
5273 * gimple-match-head.c: Likewise.
5274 * gimple-pretty-print.c: Likewise.
5275 * gimple-ssa-isolate-paths.c: Likewise.
5276 * gimple-ssa-strength-reduction.c: Likewise.
5277 * gimple-streamer-in.c: Likewise.
5278 * gimple-streamer-out.c: Likewise.
5279 * gimple-streamer.h: Likewise.
5280 * gimple-walk.c: Likewise.
5281 * gimple.c: Likewise.
5282 * gimplify-me.c: Likewise.
5283 * gimplify.c: Likewise.
5284 * godump.c: Likewise.
5285 * graph.c: Likewise.
5286 * graphite-blocking.c: Likewise.
5287 * graphite-dependences.c: Likewise.
5288 * graphite-interchange.c: Likewise.
5289 * graphite-isl-ast-to-gimple.c: Likewise.
5290 * graphite-optimize-isl.c: Likewise.
5291 * graphite-poly.c: Likewise.
5292 * graphite-scop-detection.c: Likewise.
5293 * graphite-sese-to-poly.c: Likewise.
5294 * graphite.c: Likewise.
5295 * haifa-sched.c: Likewise.
5296 * hooks.h: Likewise.
5297 * hw-doloop.c: Likewise.
5298 * ifcvt.c: Likewise.
5299 * incpath.c: Likewise.
5300 * init-regs.c: Likewise.
5301 * internal-fn.c: Likewise.
5302 * ipa-chkp.c: Likewise.
5303 * ipa-comdats.c: Likewise.
5304 * ipa-cp.c: Likewise.
5305 * ipa-devirt.c: Likewise.
5306 * ipa-icf-gimple.c: Likewise.
5307 * ipa-icf.c: Likewise.
5308 * ipa-inline-analysis.c: Likewise.
5309 * ipa-inline-transform.c: Likewise.
5310 * ipa-inline.c: Likewise.
5311 * ipa-polymorphic-call.c: Likewise.
5312 * ipa-profile.c: Likewise.
5313 * ipa-prop.c: Likewise.
5314 * ipa-pure-const.c: Likewise.
5315 * ipa-ref.c: Likewise.
5316 * ipa-reference.c: Likewise.
5317 * ipa-split.c: Likewise.
5318 * ipa-utils.c: Likewise.
5319 * ipa-visibility.c: Likewise.
5320 * ipa.c: Likewise.
5321 * ira-build.c: Likewise.
5322 * ira-color.c: Likewise.
5323 * ira-conflicts.c: Likewise.
5324 * ira-costs.c: Likewise.
5325 * ira-emit.c: Likewise.
5326 * ira-lives.c: Likewise.
5327 * ira.c: Likewise.
5328 * jump.c: Likewise.
5329 * langhooks.c: Likewise.
5330 * lcm.c: Likewise.
5331 * loop-doloop.c: Likewise.
5332 * loop-init.c: Likewise.
5333 * loop-invariant.c: Likewise.
5334 * loop-iv.c: Likewise.
5335 * loop-unroll.c: Likewise.
5336 * lower-subreg.c: Likewise.
5337 * lra-assigns.c: Likewise.
5338 * lra-coalesce.c: Likewise.
5339 * lra-constraints.c: Likewise.
5340 * lra-eliminations.c: Likewise.
5341 * lra-lives.c: Likewise.
5342 * lra-remat.c: Likewise.
5343 * lra-spills.c: Likewise.
5344 * lra.c: Likewise.
5345 * lto-cgraph.c: Likewise.
5346 * lto-compress.c: Likewise.
5347 * lto-opts.c: Likewise.
5348 * lto-section-in.c: Likewise.
5349 * lto-section-out.c: Likewise.
5350 * lto-streamer-in.c: Likewise.
5351 * lto-streamer-out.c: Likewise.
5352 * lto-streamer.c: Likewise.
5353 * mcf.c: Likewise.
5354 * mode-switching.c: Likewise.
5355 * modulo-sched.c: Likewise.
5356 * omega.c: Likewise.
5357 * omp-low.c: Likewise.
5358 * optabs.c: Likewise.
5359 * opts-global.c: Likewise.
5360 * passes.c: Likewise.
5361 * plugin.c: Likewise.
5362 * postreload-gcse.c: Likewise.
5363 * postreload.c: Likewise.
5364 * predict.c: Likewise.
5365 * print-rtl.c: Likewise.
5366 * print-tree.c: Likewise.
5367 * profile.c: Likewise.
5368 * real.c: Likewise.
5369 * realmpfr.c: Likewise.
5370 * realmpfr.h: Likewise.
5371 * recog.c: Likewise.
5372 * ree.c: Likewise.
5373 * reg-stack.c: Likewise.
5374 * regcprop.c: Likewise.
5375 * reginfo.c: Likewise.
5376 * regrename.c: Likewise.
5377 * regs.h: Likewise.
5378 * regstat.c: Likewise.
5379 * reload.c: Likewise.
5380 * reload1.c: Likewise.
5381 * reorg.c: Likewise.
5382 * resource.c: Likewise.
5383 * rtl-chkp.c: Likewise.
5384 * rtlanal.c: Likewise.
5385 * rtlhooks.c: Likewise.
5386 * sanopt.c: Likewise.
5387 * sched-deps.c: Likewise.
5388 * sched-ebb.c: Likewise.
5389 * sched-rgn.c: Likewise.
5390 * sched-vis.c: Likewise.
5391 * sdbout.c: Likewise.
5392 * sel-sched-dump.c: Likewise.
5393 * sel-sched-ir.c: Likewise.
5394 * sel-sched.c: Likewise.
5395 * sese.c: Likewise.
5396 * shrink-wrap.c: Likewise.
5397 * shrink-wrap.h: Likewise.
5398 * simplify-rtx.c: Likewise.
5399 * stack-ptr-mod.c: Likewise.
5400 * statistics.c: Likewise.
5401 * stmt.c: Likewise.
5402 * stor-layout.c: Likewise.
5403 * store-motion.c: Likewise.
5404 * stringpool.c: Likewise.
5405 * symtab.c: Likewise.
5406 * target-globals.c: Likewise.
5407 * targhooks.c: Likewise.
5408 * toplev.c: Likewise.
5409 * tracer.c: Likewise.
5410 * trans-mem.c: Likewise.
5411 * tree-affine.c: Likewise.
5412 * tree-affine.h: Likewise.
5413 * tree-browser.c: Likewise.
5414 * tree-call-cdce.c: Likewise.
5415 * tree-cfg.c: Likewise.
5416 * tree-cfgcleanup.c: Likewise.
5417 * tree-chkp-opt.c: Likewise.
5418 * tree-chkp.c: Likewise.
5419 * tree-chrec.c: Likewise.
5420 * tree-complex.c: Likewise.
5421 * tree-data-ref.c: Likewise.
5422 * tree-dfa.c: Likewise.
5423 * tree-diagnostic.c: Likewise.
5424 * tree-dump.c: Likewise.
5425 * tree-eh.c: Likewise.
5426 * tree-emutls.c: Likewise.
5427 * tree-if-conv.c: Likewise.
5428 * tree-inline.c: Likewise.
5429 * tree-into-ssa.c: Likewise.
5430 * tree-iterator.c: Likewise.
5431 * tree-loop-distribution.c: Likewise.
5432 * tree-nested.c: Likewise.
5433 * tree-nrv.c: Likewise.
5434 * tree-object-size.c: Likewise.
5435 * tree-outof-ssa.c: Likewise.
5436 * tree-parloops.c: Likewise.
5437 * tree-phinodes.c: Likewise.
5438 * tree-predcom.c: Likewise.
5439 * tree-pretty-print.c: Likewise.
5440 * tree-pretty-print.h: Likewise.
5441 * tree-profile.c: Likewise.
5442 * tree-scalar-evolution.c: Likewise.
5443 * tree-sra.c: Likewise.
5444 * tree-ssa-address.c: Likewise.
5445 * tree-ssa-alias.c: Likewise.
5446 * tree-ssa-ccp.c: Likewise.
5447 * tree-ssa-coalesce.c: Likewise.
5448 * tree-ssa-copy.c: Likewise.
5449 * tree-ssa-copyrename.c: Likewise.
5450 * tree-ssa-dce.c: Likewise.
5451 * tree-ssa-dom.c: Likewise.
5452 * tree-ssa-dse.c: Likewise.
5453 * tree-ssa-forwprop.c: Likewise.
5454 * tree-ssa-ifcombine.c: Likewise.
5455 * tree-ssa-live.c: Likewise.
5456 * tree-ssa-loop-ch.c: Likewise.
5457 * tree-ssa-loop-im.c: Likewise.
5458 * tree-ssa-loop-ivcanon.c: Likewise.
5459 * tree-ssa-loop-ivopts.c: Likewise.
5460 * tree-ssa-loop-manip.c: Likewise.
5461 * tree-ssa-loop-niter.c: Likewise.
5462 * tree-ssa-loop-prefetch.c: Likewise.
5463 * tree-ssa-loop-unswitch.c: Likewise.
5464 * tree-ssa-loop.c: Likewise.
5465 * tree-ssa-loop.h: Likewise.
5466 * tree-ssa-math-opts.c: Likewise.
5467 * tree-ssa-operands.c: Likewise.
5468 * tree-ssa-phiopt.c: Likewise.
5469 * tree-ssa-phiprop.c: Likewise.
5470 * tree-ssa-pre.c: Likewise.
5471 * tree-ssa-propagate.c: Likewise.
5472 * tree-ssa-reassoc.c: Likewise.
5473 * tree-ssa-sccvn.c: Likewise.
5474 * tree-ssa-scopedtables.c: Likewise.
5475 * tree-ssa-sink.c: Likewise.
5476 * tree-ssa-strlen.c: Likewise.
5477 * tree-ssa-structalias.c: Likewise.
5478 * tree-ssa-tail-merge.c: Likewise.
5479 * tree-ssa-ter.c: Likewise.
5480 * tree-ssa-threadedge.c: Likewise.
5481 * tree-ssa-threadupdate.c: Likewise.
5482 * tree-ssa-uncprop.c: Likewise.
5483 * tree-ssa-uninit.c: Likewise.
5484 * tree-ssa.c: Likewise.
5485 * tree-ssanames.c: Likewise.
5486 * tree-stdarg.c: Likewise.
5487 * tree-streamer-in.c: Likewise.
5488 * tree-streamer-out.c: Likewise.
5489 * tree-streamer.c: Likewise.
5490 * tree-switch-conversion.c: Likewise.
5491 * tree-tailcall.c: Likewise.
5492 * tree-vect-data-refs.c: Likewise.
5493 * tree-vect-generic.c: Likewise.
5494 * tree-vect-loop-manip.c: Likewise.
5495 * tree-vect-loop.c: Likewise.
5496 * tree-vect-patterns.c: Likewise.
5497 * tree-vect-slp.c: Likewise.
5498 * tree-vect-stmts.c: Likewise.
5499 * tree-vectorizer.c: Likewise.
5500 * tree-vrp.c: Likewise.
5501 * tree.c: Likewise.
5502 * tsan.c: Likewise.
5503 * ubsan.c: Likewise.
5504 * valtrack.c: Likewise.
5505 * value-prof.c: Likewise.
5506 * var-tracking.c: Likewise.
5507 * varasm.c: Likewise.
5508 * varpool.c: Likewise.
5509 * vmsdbgout.c: Likewise.
5510 * vtable-verify.c: Likewise.
5511 * web.c: Likewise.
5512 * wide-int-print.cc: Likewise.
5513 * wide-int-print.h: Likewise.
5514 * wide-int.cc: Likewise.
5515 * xcoffout.c: Likewise.
5516 * config/aarch64/aarch64-builtins.c: Likewise.
5517 * config/aarch64/aarch64.c: Likewise.
5518 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5519 * config/alpha/alpha.c: Likewise.
5520 * config/arc/arc.c: Likewise.
5521 * config/arm/aarch-common.c: Likewise.
5522 * config/arm/arm-builtins.c: Likewise.
5523 * config/arm/arm-c.c: Likewise.
5524 * config/arm/arm.c: Likewise.
5525 * config/avr/avr-c.c: Likewise.
5526 * config/avr/avr-log.c: Likewise.
5527 * config/avr/avr.c: Likewise.
5528 * config/bfin/bfin.c: Likewise.
5529 * config/c6x/c6x.c: Likewise.
5530 * config/cr16/cr16.c: Likewise.
5531 * config/cris/cris.c: Likewise.
5532 * config/darwin-c.c: Likewise.
5533 * config/darwin.c: Likewise.
5534 * config/default-c.c: Likewise.
5535 * config/epiphany/epiphany.c: Likewise.
5536 * config/epiphany/mode-switch-use.c: Likewise.
5537 * config/epiphany/resolve-sw-modes.c: Likewise.
5538 * config/fr30/fr30.c: Likewise.
5539 * config/frv/frv.c: Likewise.
5540 * config/ft32/ft32.c: Likewise.
5541 * config/glibc-c.c: Likewise.
5542 * config/h8300/h8300.c: Likewise.
5543 * config/i386/i386-c.c: Likewise.
5544 * config/i386/i386.c: Likewise.
5545 * config/i386/msformat-c.c: Likewise.
5546 * config/i386/winnt-cxx.c: Likewise.
5547 * config/i386/winnt-stubs.c: Likewise.
5548 * config/i386/winnt.c: Likewise.
5549 * config/ia64/ia64-c.c: Likewise.
5550 * config/ia64/ia64.c: Likewise.
5551 * config/iq2000/iq2000.c: Likewise.
5552 * config/lm32/lm32.c: Likewise.
5553 * config/m32c/m32c-pragma.c: Likewise.
5554 * config/m32c/m32c.c: Likewise.
5555 * config/m32r/m32r.c: Likewise.
5556 * config/m68k/m68k.c: Likewise.
5557 * config/mcore/mcore.c: Likewise.
5558 * config/mep/mep-pragma.c: Likewise.
5559 * config/mep/mep.c: Likewise.
5560 * config/microblaze/microblaze-c.c: Likewise.
5561 * config/microblaze/microblaze.c: Likewise.
5562 * config/mips/mips.c: Likewise.
5563 * config/mmix/mmix.c: Likewise.
5564 * config/mn10300/mn10300.c: Likewise.
5565 * config/moxie/moxie.c: Likewise.
5566 * config/msp430/msp430-c.c: Likewise.
5567 * config/msp430/msp430.c: Likewise.
5568 * config/nds32/nds32-cost.c: Likewise.
5569 * config/nds32/nds32-fp-as-gp.c: Likewise.
5570 * config/nds32/nds32-intrinsic.c: Likewise.
5571 * config/nds32/nds32-isr.c: Likewise.
5572 * config/nds32/nds32-md-auxiliary.c: Likewise.
5573 * config/nds32/nds32-memory-manipulation.c: Likewise.
5574 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5575 * config/nds32/nds32-predicates.c: Likewise.
5576 * config/nds32/nds32.c: Likewise.
5577 * config/nios2/nios2.c: Likewise.
5578 * config/nvptx/nvptx.c: Likewise.
5579 * config/pa/pa.c: Likewise.
5580 * config/pdp11/pdp11.c: Likewise.
5581 * config/rl78/rl78-c.c: Likewise.
5582 * config/rl78/rl78.c: Likewise.
5583 * config/rs6000/rs6000-c.c: Likewise.
5584 * config/rs6000/rs6000.c: Likewise.
5585 * config/rx/rx.c: Likewise.
5586 * config/s390/s390-c.c: Likewise.
5587 * config/s390/s390.c: Likewise.
5588 * config/sh/sh-c.c: Likewise.
5589 * config/sh/sh-mem.cc: Likewise.
5590 * config/sh/sh.c: Likewise.
5591 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5592 * config/sh/sh_treg_combine.cc: Likewise.
5593 * config/sol2-c.c: Likewise.
5594 * config/sol2-cxx.c: Likewise.
5595 * config/sol2-stubs.c: Likewise.
5596 * config/sol2.c: Likewise.
5597 * config/sparc/sparc-c.c: Likewise.
5598 * config/sparc/sparc.c: Likewise.
5599 * config/spu/spu-c.c: Likewise.
5600 * config/spu/spu.c: Likewise.
5601 * config/stormy16/stormy16.c: Likewise.
5602 * config/tilegx/mul-tables.c: Likewise.
5603 * config/tilegx/tilegx-c.c: Likewise.
5604 * config/tilegx/tilegx.c: Likewise.
5605 * config/tilepro/mul-tables.c: Likewise.
5606 * config/tilepro/tilepro-c.c: Likewise.
5607 * config/tilepro/tilepro.c: Likewise.
5608 * config/v850/v850-c.c: Likewise.
5609 * config/v850/v850.c: Likewise.
5610 * config/vax/vax.c: Likewise.
5611 * config/visium/visium.c: Likewise.
5612 * config/vms/vms-c.c: Likewise.
5613 * config/vms/vms.c: Likewise.
5614 * config/vxworks.c: Likewise.
5615 * config/winnt-c.c: Likewise.
5616 * config/xtensa/xtensa.c: Likewise.
5617 * common/config/bfin/bfin-common.c: Likewise.
5618
5619 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
5620
5621 * tree.h (tree_code_for_canonical_type_merging): New function.
5622 * tree.c (gimple_canonical_types_compatible_p): Use
5623 tree_code_for_canonical_type_merging..
5624
5625 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5626
5627 PR c++/66192
5628 PR target/66200
5629 * doc/tm.texi: Regenerate.
5630 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
5631 * target.def (TARGET_RELAXED_ORDERING): Likewise.
5632 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
5633 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
5634 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
5635 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
5636 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
5637 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
5638 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
5639
5640 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5641
5642 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
5643 register fma steering pass.
5644 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
5645 AARCH64_TUNE_FMA_STEERING.
5646
5647 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
5648
5649 * tree.c (verify_type_variant): Verify that type and variant is
5650 compatible.
5651 (gimple_canonical_types_compatible_p): Look for main variants.
5652
5653 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5654
5655 * config.gcc (powerpc*-*-*): Add support for a new configure
5656 option --with-advance-toolchain=<xxx> which overrides using the
5657 default header files, libraries and dynamic linker.
5658
5659 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
5660 specs to support the configure --with-advance-toolchain=<xxx>
5661 option.
5662 (INCLUDE_EXTRA_SPEC): Likewise.
5663 (LINK_OS_EXTRA_SPEC32): Likewise.
5664 (LINK_OK_EXTRA_SPEC64): Likewise.
5665 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
5666 (DYNAMIC_LINKER_PREFIX): Likewise.
5667 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
5668 toolchain support.
5669 (GLIBC_DYNAMIC_LINKER32): Likewise.
5670 (GLIBC_DYNAMIC_LINKER64): Likewise.
5671 (LINK_OS_LINUX_SPEC32): Likewise.
5672 (LINK_OS_LINUX_SPEC64): Likewise.
5673
5674 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
5675 configuration option.
5676
5677 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
5678
5679 PR target/66275
5680 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
5681 to determine current function ABI.
5682 (ix86_function_value_regno_p): Ditto.
5683
5684 2015-06-03 Martin Liska <mliska@suse.cz>
5685
5686 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
5687 * bitmap.h (struct bitmap_usage): Likewise.
5688 * ggc-common.c (struct ggc_usage): Likewise.
5689 * mem-stats.h (struct mem_location): Likewise.
5690 (struct mem_usage): Likewise.
5691 * vec.c (struct vec_usage): Likewise.
5692
5693 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
5694
5695 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
5696 -Bsymbolic.
5697
5698 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
5699
5700 * doc/plugins.texi (enum plugin_event): New event.
5701 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
5702 and PLUGIN_FINISH_FUNCTION.
5703 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
5704 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
5705
5706 2015-06-03 Richard Biener <rguenther@suse.de>
5707
5708 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5709 compute GROUP_GAP for the first element.
5710 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
5711 on in-group gaps.
5712
5713 2015-06-03 Nick Clifton <nickc@redhat.com>
5714
5715 * config/rl78/rl78-real.md: Add peepholes to avoid a register
5716 copy when calling a function.
5717 * config/rl78/rl78.c (need_to_save): Do not push the frame
5718 pointer in an interrupt handler prologue if it is never used.
5719
5720 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5721
5722 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
5723
5724 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
5725
5726 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
5727 reference when cloning alias node.
5728
5729 2015-06-03 Martin Liska <mliska@suse.cz>
5730
5731 * alloc-pool.h (struct pool_usage): Correct space padding.
5732 * ggc-page.c (ggc_print_statistics): Align columns in a report.
5733 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
5734 * tree.c (dump_tree_statistics): Align columns in a report.
5735
5736 2015-06-03 Martin Liska <mliska@suse.cz>
5737
5738 * alloc-pool.c (allocate_pool_descriptor): Remove.
5739 (struct pool_output_info): Likewise.
5740 (print_alloc_pool_statistics): Likewise.
5741 (dump_alloc_pool_statistics): Likewise.
5742 * alloc-pool.h (struct pool_usage): New struct.
5743 (pool_allocator::initialize): Change usage of memory statistics
5744 to a new interface.
5745 (pool_allocator::release): Likewise.
5746 (pool_allocator::allocate): Likewise.
5747 (pool_allocator::remove): Likewise.
5748 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
5749 for a pool allocator.
5750 * mem-stats.h (struct mem_location): Add new ctor.
5751 (struct mem_usage): Add counter for number of
5752 instances.
5753 (mem_alloc_description::register_descriptor): New overload of
5754 * mem-stats.h (mem_location::to_string): New function.
5755 * bitmap.h (struct bitmap_usage): Use this new function.
5756 * ggc-common.c (struct ggc_usage): Likewise.
5757 the function.
5758
5759 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
5760
5761 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
5762 of GCC_INSN_FLAGS_H block.
5763
5764 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
5765
5766 * explow.c (plus_constant): Update check after force_const_mem call
5767 to see if the value returned is not a NULL_RTX.
5768
5769 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
5770
5771 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
5772 remove instumentation thunks calling reachable functions.
5773 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
5774 * lto/lto-partition.c (privatize_symbol_name_1): New.
5775 (privatize_symbol_name): Privatize both decl and orig_decl
5776 names for instrumented functions.
5777 * cgraph.c (cgraph_node::verify_node): Add transparent
5778 alias chain check for instrumented node.
5779
5780 2015-06-03 Marek Polacek <polacek@redhat.com>
5781
5782 PR c/64223
5783 PR c/29358
5784 * tree.c (attribute_value_equal): Handle attribute format.
5785 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
5786
5787 2015-06-03 Richard Biener <rguenther@suse.de>
5788
5789 PR tree-optimization/63916
5790 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5791 Forward-propagate non-invariant addresses by splicing their
5792 reference ops if the result isn't going to be used by PRE.
5793 (vn_reference_lookup_3): Remove pointless assert.
5794
5795 2015-06-03 Richard Biener <rguenther@suse.de>
5796
5797 PR tree-optimization/66375
5798 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
5799 add to the evolution before following SSA edges.
5800
5801 2015-06-03 Bin Cheng <bin.cheng@arm.com>
5802
5803 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
5804 (dump_use, dump_cand, find_induction_variables): Pass new argument
5805 to dump_iv.
5806 (record_use): Preserve the ssa name information in IV.
5807
5808 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
5809
5810 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
5811 NO_MODE_TEST.
5812 (add_mode_tests): Don't add mode tests if the predicate only
5813 accepts scalar constant integers. Otherwise, allow the mode
5814 of "op" to be VOIDmode if the predicate does accept such integers.
5815
5816 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
5817
5818 PR target/66258
5819 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
5820 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
5821 (aarch64_secondary_reload): Likewise
5822 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
5823 to !TARGET_FLOAT.
5824 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
5825 Likewise.
5826
5827 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
5828 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5829
5830 PR target/65768
5831 * cprop.c (try_replace_reg): Check cost of constants before propagating.
5832
5833 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5834
5835 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
5836 provide access to the IBM extended double floating point mode if
5837 long double is IEEE 128-bit floating point.
5838 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
5839 point if long double is the IBM extended double type.
5840
5841 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
5842 enable adding IEEE 128-bit floating point support.
5843 (-mfloat128-software): Likewise.
5844 (-mfloat128-sw): Likewise.
5845
5846 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
5847 128-bit floating point types to occupy any register if
5848 -mlong-double-64. Do not allow use of IFmode/KFmode unless
5849 -mfloat128-software is enabled.
5850 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
5851 support.
5852 (rs6000_option_override_internal): Add -mfloat128-* support.
5853 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
5854
5855 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
5856 and float128 type nodes.
5857 (ieee128_float_type_node): Likewise.
5858 (ibm128_float_type_node): Likewise.
5859
5860 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
5861
5862 PR target/66136
5863 * config/aarch64/geniterators.sh: Rewrite in awk.
5864
5865 2015-06-02 Martin Liska <mliska@suse.cz>
5866
5867 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
5868 values to avoid -Wmaybe-uninitialized errors.
5869
5870 2015-06-02 Richard Biener <rguenther@suse.de>
5871
5872 PR debug/65549
5873 * dwarf2out.c (lookup_context_die): New function.
5874 (resolve_addr): Avoid forcing a full DIE for the
5875 target of a DW_TAG_GNU_call_site during late compilation.
5876 Instead create a stub DIE without a type if we have a
5877 context DIE present.
5878
5879 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
5880
5881 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
5882
5883 2015-06-02 Bin Cheng <bin.cheng@arm.com>
5884
5885 PR tree-optimization/48052
5886 * cfgloop.h (struct control_iv): New.
5887 (struct loop): New field control_ivs.
5888 * tree-ssa-loop-niter.c : Include "stor-layout.h".
5889 (number_of_iterations_lt): Set no_overflow information.
5890 (number_of_iterations_exit): Init control iv in niter struct.
5891 (record_control_iv): New.
5892 (estimate_numbers_of_iterations_loop): Call record_control_iv.
5893 (loop_exits_before_overflow): New. Interface factored out of
5894 scev_probably_wraps_p.
5895 (scev_probably_wraps_p): Factor loop niter related code into
5896 loop_exits_before_overflow.
5897 (free_numbers_of_iterations_estimates_loop): Free control ivs.
5898 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
5899
5900 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
5901
5902 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
5903 the target doesn't belong to the current function.
5904
5905 2015-06-02 Marek Polacek <polacek@redhat.com>
5906
5907 PR middle-end/66345
5908 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
5909 get_maxval_strlen does not produce an INTEGER_CST.
5910
5911 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
5912
5913 * config/arc/constraints.md: Use lower-case names in match_code.
5914 * config/mmix/constraints.md: Likewise.
5915
5916 2015-06-02 Richard Biener <rguenther@suse.de>
5917
5918 PR tree-optimization/65961
5919 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
5920 check and clarify dump message.
5921 (vect_build_slp_tree): If all children are built up from scalars
5922 build up the parent from scalars instead.
5923 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
5924
5925 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5926
5927 PR other/65366
5928 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
5929 instead of print ... .
5930
5931 2015-06-02 Alan Modra <amodra@gmail.com>
5932
5933 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
5934 2014-08-11 change.
5935
5936 2015-06-02 Bin Cheng <bin.cheng@arm.com>
5937
5938 PR tree-optimization/52563
5939 PR tree-optimization/62173
5940 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
5941 (alloc_iv, set_iv): New parameter.
5942 (determine_biv_step): Delete.
5943 (find_bivs): Inline original determine_biv_step. Pass new
5944 argument to set_iv.
5945 (idx_find_step): Use no_overflow information for conversion.
5946 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
5947 resolve_mixers handle folded_casts.
5948 (instantiate_scev_name): Change bool parameter to bool pointer.
5949 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
5950 (instantiate_array_ref, instantiate_scev_not): Ditto.
5951 (instantiate_scev_3, instantiate_scev_2): Ditto.
5952 (instantiate_scev_1, instantiate_scev_r): Ditto.
5953 (instantiate_scev_convert, ): Change parameter. Pass argument
5954 to chrec_convert_aggressive.
5955 (instantiate_scev): Change argument.
5956 (resolve_mixers): New parameter and set it.
5957 (scev_const_prop): New argument.
5958 * tree-scalar-evolution.h (resolve_mixers): New parameter.
5959 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
5960 of chrec_conert_1.
5961 (chrec_convert): New parameter. Move definition below.
5962 (chrec_convert_aggressive): New parameter and set it. Call
5963 convert_affine_scev.
5964 * tree-chrec.h (chrec_convert): New parameter.
5965 (chrec_convert_aggressive): Ditto.
5966
5967 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
5968
5969 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
5970 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
5971 the LHS of a no-return call if its type has variable size.
5972 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
5973 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
5974
5975 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
5976
5977 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
5978 * config.in: Regenerate.
5979
5980 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
5981
5982 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
5983 consecutive accesses within outer-loop with force_vectorize
5984 for references with zero step in inner-loop.
5985
5986 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
5987
5988 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
5989 rather than from gcc/build directory.
5990
5991 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
5992
5993 PR target/65697
5994 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
5995 for __sync memory models, emit initial loads and final barriers as
5996 appropriate.
5997
5998 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
5999
6000 PR target/65697
6001 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
6002 (aarch64_split_atomic_op): Check for __sync memory models, emit
6003 appropriate initial loads and final barriers.
6004
6005 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
6006
6007 * Makefile.in: Fix gcov dependencies that should
6008 not point to a build folder.
6009
6010 2015-06-01 Richard Biener <rguenther@suse.de>
6011
6012 Revert
6013 2015-05-29 Richard Biener <rguenther@suse.de>
6014
6015 PR tree-optimization/66314
6016 * tree-ssa-threadupdate.c (create_block_for_threading): Add
6017 parameter that says which loop the new block belongs to.
6018 (ssa_create_duplicates): Blocks duplicated for the threaded
6019 path belong to the loop of the thread destination.
6020
6021 2015-06-01 Martin Liska <mliska@suse.cz>
6022
6023 * sched-deps.c: Include pool-alloc.h before
6024 cselib.h header file is included.
6025
6026 2015-06-01 Richard Biener <rguenther@suse.de>
6027
6028 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
6029 functions.
6030
6031 2015-06-01 Martin Liska <mliska@suse.cz>
6032
6033 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
6034 a function local variable.
6035
6036 2015-06-01 Martin Liska <mliska@suse.cz>
6037
6038 * alloc-pool.c (create_alloc_pool): Remove.
6039 (empty_alloc_pool): Likewise.
6040 (free_alloc_pool): Likewise.
6041 (free_alloc_pool_if_empty): Likewise.
6042 (pool_alloc): Likewise.
6043 (pool_free): Likewise.
6044 * alloc-pool.h: Remove old declarations.
6045
6046 2015-06-01 Martin Liska <mliska@suse.cz>
6047
6048 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
6049 (ira_create_object): Likewise.
6050 (ira_create_allocno): Likewise.
6051 (ira_create_live_range): Likewise.
6052 (copy_live_range): Likewise.
6053 (ira_finish_live_range): Likewise.
6054 (ira_free_allocno_costs): Likewise.
6055 (finish_allocno): Likewise.
6056 (finish_allocnos): Likewise.
6057 (initiate_prefs): Likewise.
6058 (ira_create_pref): Likewise.
6059 (finish_pref): Likewise.
6060 (finish_prefs): Likewise.
6061 (initiate_copies): Likewise.
6062 (ira_create_copy): Likewise.
6063 (finish_copy): Likewise.
6064 (finish_copies): Likewise.
6065 (finish_prefs): Likewise.
6066
6067 2015-06-01 Martin Liska <mliska@suse.cz>
6068
6069 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
6070 (allocate_and_init_ipcp_value): Likewise.
6071 (ipcp_lattice::add_value): Likewise.
6072 (merge_agg_lats_step): Likewise.
6073 (ipcp_driver): Likewise.
6074 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
6075 (ipa_free_all_structures_after_iinln): Likewise.
6076 * ipa-prop.h: Likewise.
6077
6078 2015-06-01 Martin Liska <mliska@suse.cz>
6079
6080 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
6081 pool allocator.
6082 (set_hint_predicate): Likewise.
6083 (inline_summary_alloc): Likewise.
6084 (reset_inline_edge_summary): Likewise.
6085 (reset_inline_summary): Likewise.
6086 (set_cond_stmt_execution_predicate): Likewise.
6087 (set_switch_stmt_execution_predicate): Likewise.
6088 (compute_bb_predicates): Likewise.
6089 (estimate_function_body_sizes): Likewise.
6090 (inline_free_summary): Likewise.
6091
6092 2015-06-01 Martin Liska <mliska@suse.cz>
6093
6094 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
6095 (ipa_edge_duplication_hook): Likewise.
6096 (ipa_free_all_structures_after_ipa_cp): Likewise.
6097 (ipa_free_all_structures_after_iinln): Likewise.
6098
6099 2015-06-01 Martin Liska <mliska@suse.cz>
6100
6101 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
6102 (ipa_profile_generate_summary): Likewise.
6103 (ipa_profile_read_summary): Likewise.
6104 (ipa_profile): Likewise.
6105
6106 2015-06-01 Martin Liska <mliska@suse.cz>
6107
6108 * tree-ssa-structalias.c (new_var_info): Use new type-based
6109 pool allocator.
6110 (new_constraint): Likewise.
6111 (init_alias_vars): Likewise.
6112 (delete_points_to_sets): Likewise.
6113
6114 2015-06-01 Martin Liska <mliska@suse.cz>
6115
6116 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
6117 (free_strinfo): Likewise.
6118 (pass_strlen::execute): Likewise.
6119
6120 2015-06-01 Martin Liska <mliska@suse.cz>
6121
6122 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
6123 pool allocator.
6124 (vn_reference_insert_pieces): Likewise.
6125 (vn_phi_insert): Likewise.
6126 (visit_reference_op_call): Likewise.
6127 (copy_phi): Likewise.
6128 (copy_reference): Likewise.
6129 (process_scc): Likewise.
6130 (allocate_vn_table): Likewise.
6131 (free_vn_table): Likewise.
6132
6133 2015-06-01 Martin Liska <mliska@suse.cz>
6134
6135 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
6136 pool allocator.
6137 (add_repeat_to_ops_vec): Likewise.
6138 (get_ops): Likewise.
6139 (maybe_optimize_range_tests): Likewise.
6140 (init_reassoc): Likewise.
6141 (fini_reassoc): Likewise.
6142
6143 2015-06-01 Martin Liska <mliska@suse.cz>
6144
6145 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
6146 pool allocator.
6147 (bitmap_set_new): Likewise.
6148 (get_or_alloc_expr_for_constant): Likewise.
6149 (get_or_alloc_expr_for): Likewise.
6150 (phi_translate_1): Likewise.
6151 (compute_avail): Likewise.
6152 (init_pre): Likewise.
6153 (fini_pre): Likewise.
6154
6155 2015-06-01 Martin Liska <mliska@suse.cz>
6156
6157 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
6158 (delete_dep_node): Likewise.
6159 (create_deps_list): Likewise.
6160 (free_deps_list): Likewise.
6161 (sched_deps_init): Likewise.
6162 (sched_deps_finish): Likewise.
6163
6164 2015-06-01 Martin Liska <mliska@suse.cz>
6165
6166 * regcprop.c (free_debug_insn_changes): Use new type-based
6167 pool allocator.
6168 (replace_oldest_value_reg): Likewise.
6169 (pass_cprop_hardreg::execute): Likewise.
6170
6171 2015-06-01 Martin Liska <mliska@suse.cz>
6172
6173 * ira-build.c (initiate_cost_vectors): Use new type-based
6174 pool allocator.
6175 (ira_allocate_cost_vector): Likewise.
6176 (ira_free_cost_vector): Likewise.
6177 (finish_cost_vectors): Likewise.
6178
6179 2015-06-01 Martin Liska <mliska@suse.cz>
6180
6181 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
6182 pool allocator.
6183 (free_sched_pools): Likewise.
6184 * sel-sched-ir.h (_list_alloc): Likewise.
6185 (_list_remove): Likewise.
6186
6187 2015-06-01 Martin Liska <mliska@suse.cz>
6188
6189 * stmt.c (add_case_node): Use new type-based pool allocator.
6190 (expand_case): Likewise.
6191 (expand_sjlj_dispatch_table): Likewise.
6192
6193 2015-06-01 Martin Liska <mliska@suse.cz>
6194
6195 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
6196 (free_bb): Likewise.
6197 (pass_cse_reciprocals::execute): Likewise.
6198
6199 2015-06-01 Martin Liska <mliska@suse.cz>
6200
6201 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
6202 (sra_deinitialize) Likewise.
6203 (create_access_1) Likewise.
6204 (build_accesses_from_assign) Likewise.
6205 (create_artificial_child_access) Likewise.
6206
6207 2015-06-01 Martin Liska <mliska@suse.cz>
6208
6209 * dse.c (get_group_info):Use new type-based pool allocator.
6210 (dse_step0) Likewise.
6211 (free_store_info) Likewise.
6212 (delete_dead_store_insn) Likewise.
6213 (free_read_records) Likewise.
6214 (record_store) Likewise.
6215 (replace_read) Likewise.
6216 (check_mem_read_rtx) Likewise.
6217 (scan_insn) Likewise.
6218 (dse_step1) Likewise.
6219 (dse_step7) Likewise.
6220
6221 2015-06-01 Martin Liska <mliska@suse.cz>
6222
6223 * df-scan.c (struct df_scan_problem_data):Use new type-based
6224 pool allocator.
6225 (df_scan_free_internal) Likewise.
6226 (df_scan_alloc) Likewise.
6227 (df_grow_reg_info) Likewise.
6228 (df_free_ref) Likewise.
6229 (df_insn_create_insn_record) Likewise.
6230 (df_mw_hardreg_chain_delete) Likewise.
6231 (df_insn_info_delete) Likewise.
6232 (df_free_collection_rec) Likewise.
6233 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
6234 (df_sort_and_compress_mws) Likewise.
6235 (df_ref_create_structure) Likewise.
6236 (df_ref_record) Likewise.
6237
6238 2015-06-01 Martin Liska <mliska@suse.cz>
6239
6240 * df-problems.c (df_chain_create):Use new type-based pool allocator.
6241 (df_chain_unlink_1) Likewise.
6242 (df_chain_unlink) Likewise.
6243 (df_chain_remove_problem) Likewise.
6244 (df_chain_alloc) Likewise.
6245 (df_chain_free) Likewise.
6246 * df.h (struct dataflow) Likewise.
6247
6248 2015-06-01 Martin Liska <mliska@suse.cz>
6249
6250 * cselib.c (new_elt_list):Use new type-based pool allocator.
6251 (new_elt_loc_list) Likewise.
6252 (unchain_one_elt_list) Likewise.
6253 (unchain_one_elt_loc_list) Likewise.
6254 (unchain_one_value) Likewise.
6255 (new_cselib_val) Likewise.
6256 (cselib_init) Likewise.
6257 (cselib_finish) Likewise.
6258
6259 2015-06-01 Martin Liska <mliska@suse.cz>
6260
6261 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
6262 (sh_reorg) Likewise.
6263
6264 2015-06-01 Martin Liska <mliska@suse.cz>
6265
6266 * cfg.c (initialize_original_copy_tables):Use new type-based
6267 pool allocator.
6268 (free_original_copy_tables) Likewise.
6269 (copy_original_table_clear) Likewise.
6270 (copy_original_table_set) Likewise.
6271
6272 2015-06-01 Martin Liska <mliska@suse.cz>
6273
6274 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
6275 pool allocator.
6276 (asan_mem_ref_new) Likewise.
6277 (free_mem_ref_resources) Likewise.
6278
6279 2015-06-01 Martin Liska <mliska@suse.cz>
6280
6281 * var-tracking.c (variable_htab_free):Use new type-based
6282 pool allocator.
6283 (attrs_list_clear) Likewise.
6284 (attrs_list_insert) Likewise.
6285 (attrs_list_copy) Likewise.
6286 (shared_hash_unshare) Likewise.
6287 (shared_hash_destroy) Likewise.
6288 (unshare_variable) Likewise.
6289 (var_reg_delete_and_set) Likewise.
6290 (var_reg_delete) Likewise.
6291 (var_regno_delete) Likewise.
6292 (drop_overlapping_mem_locs) Likewise.
6293 (variable_union) Likewise.
6294 (insert_into_intersection) Likewise.
6295 (canonicalize_values_star) Likewise.
6296 (variable_merge_over_cur) Likewise.
6297 (dataflow_set_merge) Likewise.
6298 (remove_duplicate_values) Likewise.
6299 (variable_post_merge_new_vals) Likewise.
6300 (dataflow_set_preserve_mem_locs) Likewise.
6301 (dataflow_set_remove_mem_locs) Likewise.
6302 (variable_from_dropped) Likewise.
6303 (variable_was_changed) Likewise.
6304 (set_slot_part) Likewise.
6305 (clobber_slot_part) Likewise.
6306 (delete_slot_part) Likewise.
6307 (loc_exp_insert_dep) Likewise.
6308 (notify_dependents_of_changed_value) Likewise.
6309 (emit_notes_for_differences_1) Likewise.
6310 (vt_emit_notes) Likewise.
6311 (vt_initialize) Likewise.
6312 (vt_finalize) Likewise.
6313
6314 2015-06-01 Martin Liska <mliska@suse.cz>
6315
6316 * ira-color.c (init_update_cost_records):Use new type-based
6317 pool allocator.
6318 (get_update_cost_record) Likewise.
6319 (free_update_cost_record_list) Likewise.
6320 (finish_update_cost_records) Likewise.
6321 (initiate_cost_update) Likewise.
6322
6323 2015-06-01 Martin Liska <mliska@suse.cz>
6324
6325 * lra.c (init_insn_regs): Use new type-based pool allocator.
6326 (new_insn_reg) Likewise.
6327 (free_insn_reg) Likewise.
6328 (free_insn_regs) Likewise.
6329 (finish_insn_regs) Likewise.
6330 (init_insn_recog_data) Likewise.
6331 (init_reg_info) Likewise.
6332 (finish_reg_info) Likewise.
6333 (lra_free_copies) Likewise.
6334 (lra_create_copy) Likewise.
6335 (invalidate_insn_data_regno_info) Likewise.
6336
6337 2015-06-01 Martin Liska <mliska@suse.cz>
6338
6339 * lra-lives.c (free_live_range): Use new type-based pool allocator.
6340 (free_live_range_list) Likewise.
6341 (create_live_range) Likewise.
6342 (copy_live_range) Likewise.
6343 (lra_merge_live_ranges) Likewise.
6344 (remove_some_program_points_and_update_live_ranges) Likewise.
6345 (lra_live_ranges_init) Likewise.
6346 (lra_live_ranges_finish) Likewise.
6347
6348 2015-06-01 Martin Liska <mliska@suse.cz>
6349
6350 * et-forest.c (et_new_occ): Use new type-based pool allocator.
6351 (et_new_tree): Likewise.
6352 (et_free_tree): Likewise.
6353 (et_free_tree_force): Likewise.
6354 (et_free_pools): Likewise.
6355 (et_split): Likewise.
6356
6357 2015-06-01 Martin Liska <mliska@suse.cz>
6358
6359 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
6360 to header file.
6361 * alloc-pool.h (pool_allocator::pool_allocator): New function.
6362 (pool_allocator::release): Likewise.
6363 (inline pool_allocator::release_if_empty): Likewise.
6364 (inline pool_allocator::~pool_allocator): Likewise.
6365 (pool_allocator::allocate): Likewise.
6366 (pool_allocator::remove): Likewise.
6367
6368 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
6369
6370 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
6371 in comment.
6372
6373 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
6374
6375 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
6376 to fusible_ops.
6377 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
6378 (arm_macro_fusion_p): Likewise.
6379 (arm_macro_fusion_pair_p): Likewise.
6380
6381 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
6382
6383 * config/aarch64/aarch64-protos.h (tune_params): Rename
6384 fuseable_ops to fusible_ops.
6385 * config/aarch64/aarch64.c (generic_tunings): Rename
6386 fuseable_ops to fusible_ops.
6387 (cortexa53_tunings): Likewise.
6388 (cortexa57_tunings): Likewise.
6389 (thunderx_tunings): Likewise.
6390 (xgene1_tunings): Likewise.
6391 (aarch64_macro_fusion_p): Likewise.
6392 (aarch64_macro_fusion_pair_p): Likewise.
6393
6394 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
6395
6396 * config/s390/driver-native.c: New file.
6397 * config/s390/x-native: New file.
6398 * config.host: Add new files for s390.
6399 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
6400 and -march=native
6401 * config.gcc: Likewise.
6402 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
6403 * config/s390/s390-opts.h (enum processor_type): Ditto.
6404 * config/s390/s390.c (s390_option_override): Catch unhandled
6405 PROCESSOR_NATIVE
6406
6407 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
6408
6409 PR target/65527
6410 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
6411 redirection for instrumented calls.
6412 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
6413 (append_compiler_options): Append -fcheck-pointer-bounds.
6414 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
6415 (chkp_redirect_edge): New.
6416 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
6417 (chkp_redirect_edge): New.
6418
6419 2015-06-01 Richard Biener <rguenther@suse.de>
6420
6421 PR tree-optimization/66280
6422 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
6423 def-use walking.
6424
6425 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6426
6427 * config/aarch64/aarch64.md
6428 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
6429 logic_shift_imm.
6430
6431 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
6432
6433 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
6434 Remove obsolete kludge.
6435
6436 2015-06-01 Richard Biener <rguenther@suse.de>
6437
6438 * tree-ssa-reassoc.c (get_rank): Simplify.
6439
6440 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
6441
6442 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
6443 * configure: Regenerated.
6444
6445 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
6446
6447 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
6448 issue (add space between string literal and macro).
6449 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
6450
6451 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
6452
6453 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
6454 implict or explicit -fPIE or -fpie.
6455
6456 2015-05-30 Mike Frysinger <vapier@gentoo.org>
6457
6458 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
6459
6460 2015-05-28 DJ Delorie <dj@redhat.com>
6461
6462 * expmed.c (extract_bit_field_1): Avoid clobbering a
6463 yet-to-be-used base/index register.
6464
6465 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
6466
6467 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
6468 (alias_stats): Add num_universal.
6469 (alias_set_subset_of): Special case pointers; be ready for NULL
6470 children.
6471 (alias_sets_conflict_p): Special case pointers; be ready for NULL
6472 children.
6473 (init_alias_set_entry): Break out from ...
6474 (record_alias_subset): ... here; propagate new fields;
6475 allocate children only when really needed.
6476 (get_alias_set): Do less generous pointer globbing.
6477 (dump_alias_stats_in_alias_c): Update statistics.
6478
6479 2015-05-30 Alan Modra <amodra@gmail.com>
6480
6481 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
6482 correct block for use of r12.
6483 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
6484
6485 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6486
6487 PR target/66215
6488 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
6489 with -mhotpatch=.
6490
6491 2015-05-29 Jakub Jelinek <jakub@redhat.com>
6492
6493 PR tree-optimization/66142
6494 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
6495 virtual phis that feed themselves.
6496
6497 2015-05-29 Richard Biener <rguenther@suse.de>
6498
6499 PR tree-optimization/66314
6500 * tree-ssa-threadupdate.c (create_block_for_threading): Add
6501 parameter that says which loop the new block belongs to.
6502 (ssa_create_duplicates): Blocks duplicated for the threaded
6503 path belong to the loop of the thread destination.
6504
6505 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6506
6507 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
6508 to cleanup-saved-temps.
6509 * doc/sourcebuild.texi (Clean up generated test files): Expand
6510 introduction.
6511 (dg-keep-saved-temps): Document new proc.
6512 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
6513 cleanup-saved-temps): Remove.
6514
6515 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
6516
6517 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
6518 gcc_AC_CHECK_DECLS.
6519 * configure: Regenerate.
6520
6521 2015-05-28 Mike Frysinger <vapier@gentoo.org>
6522
6523 * config/nios2/linux.h (CPP_SPEC): Define.
6524
6525 2015-05-28 Mike Frysinger <vapier@gentoo.org>
6526
6527 * config/microblaze/linux.h (CPP_SPEC): Define.
6528
6529 2015-05-28 Mike Frysinger <vapier@gentoo.org>
6530
6531 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
6532 -pthread is specified.
6533
6534 2015-05-28 Richard Biener <rguenther@suse.de>
6535
6536 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
6537 (vect_fixup_scalar_cycles_with_patterns): Likewise.
6538 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
6539 after pattern recog.
6540 (vect_create_epilog_for_reduction): Properly handle reductions
6541 with patterns.
6542 (vectorizable_reduction): Likewise.
6543 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
6544 reduction chains.
6545 (vect_get_constant_vectors): Create the correct number of
6546 initial values for reductions.
6547 (vect_schedule_slp_instance): Handle reduction chains that are
6548 type changing properly.
6549 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
6550
6551 2015-05-28 Richard Biener <rguenther@suse.de>
6552
6553 PR tree-optimization/66142
6554 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
6555 values better in memcpy destination handling. Handle non-aliasing
6556 we discover here.
6557
6558 2015-05-28 Lawrence Velázquez <vq@larryv.me>
6559
6560 PR target/63810
6561 * config/darwin-c.c (version_components): New global enum.
6562 (parse_version, version_as_legacy_macro)
6563 (version_as_modern_macro, macosx_version_as_macro): New functions.
6564 (version_as_macro): Remove.
6565 (darwin_cpp_builtins): Use new function.
6566
6567 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
6568
6569 * builtins.c (expand_builtin_acc_on_device): Mark parameters
6570 with ATTRIBUTE_UNUSED.
6571
6572 2015-05-28 Julian Brown <julian@codesourcery.com>
6573
6574 PR libgomp/65742
6575
6576 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
6577 sequence for !ACCEL_COMPILER.
6578
6579 2015-05-28 Nick Clifton <nickc@redhat.com>
6580
6581 * config/rx/rx.c (push_regs): New function. Extracts code from...
6582 (rx_expand_prologue): ... here. Use push_regs to push even small
6583 spans of registers.
6584 (pop_regs): New function.
6585 (rx_expand_epilogue): Use pop_regs to pop even small spans of
6586 registers.
6587
6588 2015-05-28 Richard Biener <rguenther@suse.de>
6589
6590 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
6591 member.
6592 (SLP_INSTANCE_BODY_COST_VEC): Remove.
6593 (vect_update_slp_costs_according_to_vf): Likewise.
6594 (vect_slp_analyze_operations): Update prototype.
6595 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
6596 vect_update_slp_costs_according_to_vf, adjust.
6597 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
6598 (vect_analyze_slp_cost_1): Likewise.
6599 (vect_analyze_slp_cost): Likewise. Properly deal with
6600 widening reduction ops. Commit body costs.
6601 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
6602 cost for loops from here.
6603 (vect_slp_analyze_operations): But do it from here when
6604 the vectorization factor is known and stmts are analyzed.
6605 (vect_bb_vectorization_profitable_p): Simplify.
6606 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
6607 (vect_update_slp_costs_according_to_vf): Remove.
6608
6609 2015-05-27 Magnus Granberg <zorry@gentoo.org>
6610 H.J. Lu <hongjiu.lu@intel.com>
6611
6612 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
6613 (BUILD_CFLAGS): Likewise.
6614 (BUILD_CXXFLAGS): Likewise.
6615 (LINKER): Add @NO_PIE_FLAG@.
6616 (BUILD_LDFLAGS): Likewise.
6617 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
6618 --enable-default-pie.
6619 * common.opt (fPIE): Initialize to -1.
6620 (fpie): Likewise.
6621 (no-pie): New option.
6622 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
6623 * configure.ac: Add --enable-default-pie.
6624 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
6625 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
6626 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
6627 * gcc.c (NO_PIE_SPEC): New.
6628 (PIE_SPEC): Likewise.
6629 (NO_FPIE1_SPEC): Likewise.
6630 (FPIE1_SPEC): Likewise.
6631 (NO_FPIE2_SPEC): Likewise.
6632 (FPIE2_SPEC): Likewise.
6633 (NO_FPIE2_SPEC): Likewise.
6634 (FPIE_SPEC): Likewise.
6635 (NO_FPIE_SPEC): Likewise.
6636 (NO_FPIC1_SPEC): Likewise.
6637 (FPIC1_SPEC): Likewise.
6638 (NO_FPIC2_SPEC): Likewise.
6639 (FPIC2_SPEC): Likewise.
6640 (NO_FPIC2_SPEC): Likewise.
6641 (FPIC_SPEC): Likewise.
6642 (NO_FPIC_SPEC): Likewise.
6643 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
6644 (FPIE1_OR_FPIC1_SPEC): Likewise.
6645 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
6646 (FPIE2_OR_FPIC2_SPEC): Likewise.
6647 (NO_FPIE_AND_FPIC_SPEC): Likewise.
6648 (FPIE_OR_FPIC_SPEC): Likewise.
6649 (LD_PIE_SPEC): Likewise.
6650 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
6651 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
6652 * config/darwin.h (PIE_SPEC): Renamed to ...
6653 (DARWIN_PIE_SPEC): This.
6654 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
6655 * config/darwin9.h (PIE_SPEC): Renamed to ...
6656 (DARWIN_PIE_SPEC): This.
6657 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
6658 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
6659 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
6660 FPIE2_OR_FPIC2_SPEC.
6661 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
6662 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
6663 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
6664 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
6665 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
6666 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
6667 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
6668 * config/m32r/m32r.h (ASM_SPEC): Likewise.
6669 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
6670 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
6671 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
6672 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
6673 * config/sparc/linux.h (ASM_SPEC): Likewise.
6674 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6675 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
6676 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
6677 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6678 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
6679 * config/sparc/sparc.h (ASM_SPEC): Likewise.
6680 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
6681 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
6682 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
6683 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
6684 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
6685 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
6686 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
6687 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
6688 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
6689 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
6690 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
6691 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
6692 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6693 * config/vax/linux.h (ASM_SPEC): Likewise.
6694 * doc/install.texi: Document --enable-default-pie.
6695 * doc/invoke.texi: Document -no-pie.
6696 * config.in: Regenerated.
6697 * configure: Likewise.
6698
6699 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6700
6701 PR rtl-optimization/66168
6702 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
6703 can_move_invariant_reg.
6704
6705 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
6706
6707 PR target/66148
6708 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
6709 REG_EQUAL note when doing insert.
6710
6711 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
6712 instead of "%d" for 'o' operand.
6713
6714 2015-05-27 Nathan Sidwell <nathan@acm.org>
6715
6716 PR c++/66270
6717 * tree.c (build_pointer_type_for_mode): Canonical type does not
6718 inherit can_alias_all.
6719 (build_reference_type_for_mode): Likewise.
6720
6721 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
6722
6723 * expr.h (array_at_struct_end_p): Move to...
6724 (array_ref_element_size): Likewise.
6725 (component_ref_field_offset): Likewise.
6726 * tree.h (array_ref_element_size): ...here.
6727 (array_at_struct_end_p): Likewise.
6728 (component_ref_field_offset): Likewise.
6729 * expr.c (array_ref_element_size): Move to...
6730 (array_ref_low_bound): Likewise.
6731 (array_at_struct_end_p): Likewise.
6732 (array_ref_up_bound): Likewise.
6733 (component_ref_field_offset): Likewise.
6734 * tree.c (array_ref_element_size): ...here.
6735 (array_ref_low_bound): Likewise.
6736 (array_ref_up_bound): Likewise.
6737 (array_at_struct_end_p): Likewise.
6738 (component_ref_field_offset): Likewise.
6739
6740 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
6741 Szabolcs Nagy <szabolcs.nagy@arm.com>
6742
6743 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
6744
6745 2015-05-27 Jason Merrill <jason@redhat.com>
6746
6747 PR bootstrap/66304
6748 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
6749 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
6750 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
6751
6752 2015-05-22 Aditya Kumar <hiraditya@msn.com>
6753
6754 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
6755 is true.
6756
6757 * statistics.c (statistics_fini_pass): Print pass name.
6758
6759 2015-05-27 Richard Biener <rguenther@suse.de>
6760
6761 PR tree-optimization/66272
6762 Revert parts of
6763 2014-08-15 Richard Biener <rguenther@suse.de>
6764
6765 PR tree-optimization/62031
6766 * tree-data-ref.c (dr_analyze_indices): Do not set
6767 DR_UNCONSTRAINED_BASE.
6768 (dr_may_alias_p): All indirect accesses have to go the
6769 formerly DR_UNCONSTRAINED_BASE path.
6770 * tree-data-ref.h (struct indices): Remove
6771 unconstrained_base member.
6772 (DR_UNCONSTRAINED_BASE): Remove.
6773
6774 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
6775
6776 * dwarf2out.c: Remove block_map.
6777 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
6778 (gen_lexical_block_die): Same.
6779 (dwarf2out_function_decl): Remove block_map use.
6780 (dwarf2out_c_finalize): Same.
6781 * tree-core.h (struct tree_block): Add die field.
6782 * tree.h (BLOCK_DIE): New.
6783
6784 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6785
6786 PR target/65358
6787 * expr.c (memory_load_overlap): New function.
6788 (emit_push_insn): When pushing partial args to the stack would
6789 clobber the register part load the overlapping part into a pseudo
6790 and put it into the hard reg after pushing. Change return type
6791 to bool. Add bool argument.
6792 * expr.h (emit_push_insn): Change return type to bool.
6793 Add bool argument.
6794 * calls.c (expand_call): Cancel sibcall optimization when encountering
6795 partial argument on targets with ARGS_GROW_DOWNWARD and
6796 !STACK_GROWS_DOWNWARD.
6797 (emit_library_call_value_1): Update callsite of emit_push_insn.
6798 (store_one_arg): Likewise.
6799
6800 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
6801
6802 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
6803
6804 2015-05-27 Martin Liska <mliska@suse.cz>
6805
6806 * Makefile.in: Add additional dependencies related to memory report
6807 enhancement.
6808 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
6809 * bitmap.c (struct bitmap_descriptor_d): Remove.
6810 (struct loc): Likewise.
6811 (struct bitmap_desc_hasher): Likewise.
6812 (bitmap_desc_hasher::hash): Likewise.
6813 (bitmap_desc_hasher::equal): Likewise.
6814 (get_bitmap_descriptor): Likewise.
6815 (bitmap_register): User new memory descriptor API.
6816 (register_overhead): Likewise.
6817 (bitmap_find_bit): Register nsearches and search_iter statistics.
6818 (struct bitmap_output_info): Remove.
6819 (print_statistics): Likewise.
6820 (dump_bitmap_statistics): Use new memory descriptor.
6821 * bitmap.h (struct bitmap_usage): New class.
6822 * genmatch.c: Extend header file inclusion.
6823 * genpreds.c: Likewise.
6824 * ggc-common.c (struct ggc_usage): New class.
6825 (struct ggc_loc_desc_hasher): Remove.
6826 (ggc_loc_desc_hasher::hash): Likewise.
6827 (ggc_loc_desc_hasher::equal): Likewise.
6828 (struct ggc_ptr_hash_entry): Likewise.
6829 (struct ptr_hash_hasher): Likewise.
6830 (ptr_hash_hasher::hash): Likewise.
6831 (ptr_hash_hasher::equal): Likewise.
6832 (make_loc_descriptor): Likewise.
6833 (ggc_prune_ptr): Likewise.
6834 (dump_ggc_loc_statistics): Use new memory descriptor.
6835 (ggc_record_overhead): Likewise.
6836 (ggc_free_overhead): Likewise.
6837 (final_cmp_statistic): Remove.
6838 (cmp_statistic): Likewise.
6839 (ggc_add_statistics): Liekwise.
6840 (ggc_prune_overhead_list): Likewise.
6841 * hash-map-traits.h: New file.
6842 * hash-map.h (struct default_hashmap_traits): Move the traits to a
6843 separate header file.
6844 * hash-set.h: Pass memory statistics info to ctor.
6845 * hash-table.c (void dump_hash_table_loc_statistics): New function.
6846 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
6847 (hash_table::~hash_table): Register memory release operation.
6848 (hash_table::alloc_entries): Handle memory allocation operation.
6849 (hash_table::expand): Likewise.
6850 * inchash.c (iterative_hash_hashval_t): Move implementation to header
6851 file.
6852 (iterative_hash_host_wide_int): Likewise.
6853 * inchash.h (class hash): Likewise.
6854 * mem-stats-traits.h: New file.
6855 * mem-stats.h: New file.
6856 (mem_location): Add new class.
6857 (mem_usage): Likewise.
6858 (mem_alloc_description): Likewise.
6859 * sese.c: Add new header file inclusision.
6860 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
6861 and hash_set.
6862 * tree-sra.c: Add new header file inclusision.
6863 * vec.c (struct vec_descriptor): Remove.
6864 (hash_descriptor): Likewise.
6865 (struct vec_usage): Likewise.
6866 (struct ptr_hash_entry): Likewise.
6867 (hash_ptr): Likewise.
6868 (eq_ptr): Likewise.
6869 (vec_prefix::register_overhead): Use new memory descriptor API.
6870 (vec_prefix::release_overhead): Likewise.
6871 (add_statistics): Remove.
6872 (dump_vec_loc_statistics): Use new memory descriptor API.
6873 * vec.h (struct vec_prefix): Likewise.
6874 (va_heap::reserve): Likewise.
6875 (va_heap::release): Likewise.
6876 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
6877
6878 2015-05-27 Richard Biener <rguenther@suse.de>
6879
6880 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
6881 earlier and remove ??? comment.
6882 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
6883 and got called from loop analysis bail out. Always pass the SLP
6884 node to the vectorizable_* functions.
6885 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
6886 the premature SLP check here.
6887 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
6888 detected SLP stmts.
6889 (vect_detect_hybrid_slp_1): Likewise.
6890
6891 2015-05-26 Jeff Law <law@redhat.com>
6892
6893 * combine.c (find_split_point): Verify that the shift count is a
6894 constant when choosing (plus (ashift ...)) as a split point.
6895
6896 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
6897 No functional changes.
6898
6899 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
6900
6901 * ipa-polymorphic-call.c
6902 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
6903 case when call target is already known.
6904
6905 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
6906
6907 PR target/65979
6908 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
6909 take into account the case that operands[1] and operands[2]
6910 are the same register.
6911
6912 2015-05-26 Michael Matz <matz@suse.de>
6913
6914 PR middle-end/66251
6915
6916 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
6917 stores.
6918 (vect_create_vectorized_demotion_stmts): Always set
6919 STMT_VINFO_VEC_STMT, also with SLP.
6920 (vectorizable_store): Handle strided group stores.
6921
6922 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6923
6924 PR target/66049
6925 * config/aarch64/aarch64.md
6926 (*adds_shift_imm_<mode>): New pattern.
6927 (*subs_shift_imm_<mode>): Likewise.
6928 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
6929 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
6930 (*add_uxt<mode>_shift2): Likewise.
6931 (*add_uxtsi_shift2_uxtw): Likewise.
6932 (*sub_uxt<mode>_shift2): Likewise.
6933 (*sub_uxtsi_shift2_uxtw): Likewise.
6934
6935 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
6936
6937 * config/rs6000/constraints.md (Y, U): Use match_test.
6938
6939 2015-05-26 Christian Bruel <christian.bruel@st.com>
6940
6941 PR target/52144
6942 * config/arm/arm.c (arm_option_check_internal)
6943 (arm_option_params_internal): Check opts->target_flags to set macros.
6944 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
6945 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
6946 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
6947 (builtin_define): Replaced with def_or_undef_macro.
6948 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
6949 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
6950 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
6951 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
6952 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
6953 (TARGET_ARM_FEATURE_LDREX_P)
6954 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
6955 * config/arm/arm-c.c (def_or_undef_macro): New function.
6956 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
6957
6958 2015-05-26 Christian Bruel <christian.bruel@st.com>
6959
6960 * c-common.h (builtin_define_with_int_value)
6961 (builtin_define_type_sizeof): Declare.
6962 * c-cppbuiltin.c (builtin_define_with_int_value)
6963 (builtin_define_type_sizeof): Externalize.
6964 (builtin_define_std): Cleanup declaration.
6965 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
6966 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
6967 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
6968 (builtin_define, builtin_assert): New macros.
6969
6970 2015-05-26 Richard Biener <rguenther@suse.de>
6971
6972 PR tree-optimization/66142
6973 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
6974 MEM_REFs for the same base address.
6975
6976 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6977
6978 PR ipa/66181
6979 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
6980
6981 2015-05-26 Jason Merrill <jason@redhat.com>
6982
6983 * configure.ac: Set CXXFLAGS for ISL test.
6984 * configure: Regenerate.
6985
6986 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
6987 strstr and basename.
6988 * configure: Regenerate.
6989
6990 2015-05-26 Richard Biener <rguenther@suse.de>
6991
6992 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
6993 X % C -> X & (C - 1) for C being a power-of two to ...
6994 * match.pd: ... patterns.
6995
6996 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
6997
6998 * match.pd (swapped_tcc_comparison): New operator list.
6999 (-A CMP -B): New simplification.
7000 * fold-const.c (fold_comparison): Remove corresponding code.
7001
7002 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
7003
7004 * caller-save.c (init_caller_save): Base temporary register numbers
7005 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
7006 * cfgloopanal.c (init_set_costs): Likewise.
7007 * dojump.c (prefer_and_bit_test): Likewise.
7008 * expr.c (init_expr_target): Likewise.
7009 * ira.c (setup_prohibited_mode_move_regs): Likewise.
7010 * lower-subreg.c (init_lower_subreg): Likewise.
7011 * postreload.c (reload_cse_regs_1): Likewise.
7012
7013 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
7014
7015 * gensupport.h (compute_test_codes): Declare.
7016 * gensupport.c (compute_predicate_codes): Rename to...
7017 (compute_test_codes): ...this. Generalize error message.
7018 (process_define_predicate): Update accordingly.
7019 * genpreds.c (compute_maybe_allows): Delete.
7020 (add_constraint): Use compute_test_codes to determine whether
7021 something can accept a SUBREG, REG or MEM.
7022
7023 2015-05-26 Torvald Riegel <triegel@redhat.com>
7024
7025 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
7026 'memory model' to align with C++11; fix description of memory orders;
7027 fix a few typos.
7028
7029 2015-05-26 Richard Biener <rguenther@suse.de>
7030
7031 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
7032 (vect_analyze_loop_operations): ... here. Remove slp parameter,
7033 detect whether we apply SLP. Remove call to
7034 vect_update_slp_costs_according_to_vf.
7035 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
7036 vect_update_slp_costs_according_to_vf from here. Dispatch
7037 to vect_slp_analyze_operations to analyze SLP stmts.
7038 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
7039 unused bb_vec_info parameter, adjust assert.
7040 (vect_slp_analyze_operations): Pass in the slp instance tree
7041 instead of bb_vec_info.
7042 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
7043 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
7044
7045 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
7046
7047 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
7048 Q_REGS. Expand comment.
7049 (REG_CLASS_NAMES): Ditto.
7050 (REG_CLASS_CONTENTS): Ditto.
7051
7052 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
7053
7054 PR target/66274
7055 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
7056 when LEGACY_INT_REGNO_P is processed.
7057
7058 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
7059
7060 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
7061
7062 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7063
7064 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
7065 register if not marked dead/unused, before return.
7066
7067 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
7068
7069 PR lto/66180
7070 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
7071 is set; check for assembler name at LTO time.
7072 (type_in_anonymous_namespace): Remove hacks, check that all
7073 anonymous types are called "<anon>"
7074 (odr_type_p): Simplify; add check for "<anon>"
7075 (odr_subtypes_equivalent): Add odr_type_p check.
7076 * tree.c (need_assembler_name_p): Even anonymous namespace needs
7077 assembler name.
7078
7079 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
7080
7081 * ipa-utils.h (method_class_type): Remove.
7082 * cgraphunit.c (walk_polymorphic_call_targets): Use
7083 TYPE_METHOD_BASETYPE.
7084 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
7085 on main variants only.
7086 (method_class_type): Remove.
7087 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
7088 (build_type_inheritance_graph): Likewise.
7089 * ipa-icf.c (sem_function::equals_wpa): Likewise.
7090 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
7091 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
7092
7093 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
7094
7095 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
7096 is_typedef_decl, typedef_variant_p): Constify.
7097 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
7098 is_typedef_decl, typedef_variant_p): Constify.
7099
7100 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7101
7102 * defaults.h (gen_tablejump): New function.
7103 (HAVE_tablejump): Add default value.
7104 * expr.c: Adjust.
7105 * stmt.c: Likewise.
7106
7107 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7108
7109 * defaults.h (gen_store_multiple): New function.
7110 (HAVE_store_multiple): Add default value.
7111 * expr.c (move_block_from_reg): Adjust.
7112
7113 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7114
7115 * defaults.h (gen_load_multiple): New function.
7116 (HAVE_load_multiple): Add default value.
7117 * expr.c (move_block_to_reg): Adjust.
7118
7119 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7120
7121 * defaults.h (gen_mem_signal_fence): New function.
7122 (HAVE_mem_signal_fence): Add default value.
7123 * optabs.c: Adjust.
7124
7125 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7126
7127 * defaults.h (gen_memory_barrier): New function.
7128 (HAVE_memory_barrier): Add default value.
7129 * optabs.c: Adjust.
7130
7131 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7132
7133 * defaults.h (gen_mem_thread_fence): New function.
7134 (HAVE_mem_thread_fence): Add default definition.
7135 * optabs.c: Adjust.
7136
7137 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7138
7139 * combine.c (find_split_point): Check the value of HAVE_lo_sum
7140 instead of if it is defined.
7141 (combine_simplify_rtx): Likewise.
7142 * lra-constraints.c (process_address_1): Likewise.
7143 * config/darwin.c: Adjust.
7144 * genconfig.c (main): Always define HAVE_lo_sum.
7145
7146 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7147
7148 * genmatch.c (parser::parse_operation): Reject expanding
7149 operator-list inside 'for'.
7150
7151 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7152
7153 * genmatch.c (parser::parse_for): Reject iterator if used as
7154 operator-list.
7155
7156 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7157
7158 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
7159 after end of id-list.
7160
7161 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
7162
7163 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
7164 we do not try to compute canonical type for type that does not need
7165 alias set.
7166 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
7167 FUNCITON_TYPE.
7168 * tree.h (type_with_alias_set_p): New.
7169
7170 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
7171
7172 * tree.c (gimple_canonical_types_compatible_p): Do not compare
7173 function attributes.
7174 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
7175
7176 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
7177
7178 * Makefile.in (check_gcc_parallelize): Delete.
7179 (lang_checks_parallelized): Update comment.
7180
7181 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
7182
7183 PR rtl-optimization/66237
7184 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
7185 location of an "as_a" cast.
7186
7187 2015-05-22 Jeff Law <law@redhat.com>
7188
7189 * config/pa/pa.md (non-canonical shift-add insns): Remove.
7190 (peepholes with non-canonical RTL sources): Remove.
7191 (peepholes for indexed stores of FP regs in integer modes): Match and
7192 generate canonical RTL.
7193
7194 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
7195
7196 PR tree-optimization/63387
7197 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
7198 ((x ord x) & (y ord y) -> (x ord y),
7199 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
7200 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
7201 vectors like scalars.
7202
7203 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
7204
7205 * convert.c (convert_to_integer, convert_to_vector): Include the
7206 types in the error message.
7207
7208 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
7209
7210 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
7211 simplifications.
7212
7213 2015-05-22 Jeff Law <law@redhat.com>
7214
7215 * config/pa/pa.md (integer_indexed_store splitters): Use
7216 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
7217 insns -- adjusting the constant 2nd operand accordingly.
7218
7219 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
7220 (plus (ashift X log2) Y) if it is a split point.
7221
7222 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
7223 out of hppa_legitimize_address to handle both forms of a multiply
7224 by 2, 4 or 8.
7225 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
7226 Always generate the ASHIFT variant as the result is not directly
7227 used in a MEM. Update comments and refactor slightly to improve
7228 readability.
7229
7230 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7231
7232 PR target/65491
7233 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
7234 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
7235 (aarch64_composite_type_p): Return false if given type and mode are
7236 for a short vector.
7237
7238 2015-05-22 Richard Biener <rguenther@suse.de>
7239
7240 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
7241 member.
7242 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
7243 patterns when determining whether SLP is pure.
7244 (vect_is_slp_reduction): Remove check for pattern stmts.
7245 (vect_is_simple_reduction_1): Remove dead code.
7246 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
7247 (vect_get_and_check_slp_defs): Pass in the stmt number.
7248 Allow the first def in a reduction to be not a pattern stmt when
7249 the rest of the stmts def are patterns.
7250 (vect_build_slp_tree_1): Allow tcc_expression codes like
7251 SAD_EXPR and DOT_PROD_EXPR.
7252 (vect_build_slp_tree): Adjust.
7253 (vect_analyze_slp): Refactor and move BB vect error message ...
7254 (vect_slp_analyze_bb_1): ... here.
7255
7256 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
7257
7258 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
7259 for CSWTCH temporary.
7260
7261 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7262
7263 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
7264 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
7265 unknown unspecs.
7266
7267 2015-05-22 Richard Biener <rguenther@suse.de>
7268
7269 PR tree-optimization/66251
7270 * tree-vect-stmts.c (vectorizable_conversion): Properly
7271 set STMT_VINFO_VEC_STMT even for the SLP case.
7272
7273 2015-05-22 Marek Polacek <polacek@redhat.com>
7274
7275 * doc/extend.texi: Use @pxref instead of @xref.
7276
7277 2015-05-22 hiraditya <hiraditya@msn.com>
7278
7279 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
7280 redundant if.
7281
7282 2015-05-22 Richard Biener <rguenther@suse.de>
7283
7284 PR tree-optimization/65701
7285 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7286 Move peeling cost models into one place. Peel for alignment
7287 for single loads only if an aligned load is cheaper than
7288 an unaligned load.
7289
7290 2015-05-22 Marek Polacek <polacek@redhat.com>
7291
7292 PR c/47043
7293 * doc/extend.texi (Enumerator Attributes): New section.
7294 Document syntax of enumerator attributes.
7295
7296 2015-05-22 Richard Biener <rguenther@suse.de>
7297
7298 * tree-vect-loop.c (get_reduction_op): New function.
7299 (vect_model_reduction_cost): Use it, add reduc_index parameter.
7300 Make ready for BB reductions.
7301 (vect_create_epilog_for_reduction): Use get_reduction_op.
7302 (vectorizable_reduction): Init reduc_index to a valid value.
7303 Adjust vect_model_reduction_cost call.
7304 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
7305 operand for reduction defaults. Add SAD_EXPR support.
7306 Assert we have a neutral op for SLP reductions.
7307 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
7308 walking pattern stmt ops only recurse to SSA names.
7309
7310 2015-05-22 Richard Biener <rguenther@suse.de>
7311
7312 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
7313 assert with guard, remove check on detected reduction.
7314 (vect_recog_sad_pattern): Likewise.
7315 (vect_recog_widen_sum_pattern): Likewise.
7316
7317 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7318
7319 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
7320 __always_inline__ attribute.
7321 (vaesdq_u8): Likewise.
7322 (vaesmcq_u8): Likewise.
7323 (vaesimcq_u8): Likewise.
7324 (vsha1cq_u32): Likewise.
7325 (vsha1mq_u32): Likewise.
7326 (vsha1pq_u32): Likewise.
7327 (vsha1h_u32): Likewise.
7328 (vsha1su0q_u32): Likewise.
7329 (vsha1su1q_u32): Likewise.
7330 (vsha256hq_u32): Likewise.
7331 (vsha256h2q_u32): Likewise.
7332 (vsha256su0q_u32): Likewise.
7333 (vsha256su1q_u32): Likewise.
7334 (vmull_p64): Likewise.
7335 (vmull_high_p64): Likewise.
7336
7337 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7338
7339 * final.c (final_scan_insn): Don't check HAVE_peephole with the
7340 preprocessor.
7341 * output.h: Likewise.
7342 * genconfig.c (main): Alwways define HAVE_peephole.
7343 * genpeep.c: Don't emit checks of HAVE_peephole.
7344
7345 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7346
7347 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
7348 check HAVE_conditional_move with the preprocessor.
7349
7350 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7351
7352 * genconfig.c (main): Always define HAVE_conditional_move.
7353 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
7354 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
7355 is defined.
7356
7357 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7358
7359 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
7360 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
7361 and FRAME_POINTER_REGNUM with the preprocessor.
7362
7363 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7364
7365 * defaults.h: Add default for STACK_PUSH_CODE.
7366 * expr.c: Don't redefine STACK_PUSH_CODE.
7367 * recog.c: Likewise.
7368
7369 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7370
7371 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
7372 sched-deps.c: Use if instead of preprocessor checks with
7373 STACK_GROWS_DOWNWARD.
7374
7375 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7376
7377 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
7378 is defined.
7379 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
7380 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
7381 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
7382 * doc/tm.texi: Regenerate.
7383
7384 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
7385
7386 PR target/66232
7387 * config/i386/constraints.md (Bg): New constraint for GOT memory
7388 operand.
7389 * config/i386/i386.md (*call_got_x32): New pattern.
7390 (*call_value_got_x32): Likewise.
7391 * config/i386/predicates.md (GOT_memory_operand): New predicate.
7392
7393 2015-05-21 Jakub Jelinek <jakub@redhat.com>
7394
7395 PR tree-optimization/66233
7396 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
7397 Simplify.
7398
7399 2015-05-21 Jeff Law <law@redhat.com>
7400
7401 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
7402 than MULT for shadd sequences.
7403
7404 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
7405
7406 * alias.c (alias_stats): New static var.
7407 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
7408 (dump_alias_stats_in_alias_c): New function.
7409 * alias.h (dump_alias_stats_in_alias_c): Declare.
7410 * tree-ssa-alias.c (dump_alias_stats): Call it.
7411
7412 2015-05-08 Michael Matz <matz@suse.de>
7413
7414 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
7415 to strided_p.
7416 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
7417 (STMT_VINFO_STRIDED_P): ... this.
7418 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
7419 (vect_verify_datarefs_alignment): Likewise.
7420 (vect_enhance_data_refs_alignment): Likewise.
7421 (vect_analyze_data_ref_access): Likewise.
7422 (vect_analyze_data_refs): Accept strided stores.
7423 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
7424 (vect_model_load_cost): Adjust for macro rename.
7425 (vectorizable_mask_load_store): Likewise.
7426 (vectorizable_load): Likewise.
7427 (vectorizable_store): Open code strided stores.
7428
7429 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7430
7431 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
7432 Document sqrt_insn.
7433
7434 2015-05-21 Richard Biener <rguenther@suse.de>
7435
7436 PR c++/66211
7437 * match.pd: Guard pattern optimzing (int)(float)int
7438 conversions to apply only on GIMPLE.
7439
7440 2015-05-21 Jeff Law <law@redhat.com>
7441
7442 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
7443 multiply-accumulate/shift-add insn generation.
7444
7445 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
7446
7447 PR target/54236
7448 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
7449 operands[1] are the same.
7450
7451 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
7452
7453 PR middle-end/66221
7454 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
7455 build_distinct_type_copy to copy bounds.
7456
7457 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
7458
7459 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
7460 Change to unsigned int.
7461
7462 2015-05-20 Jeff Law <law@redhat.com>
7463
7464 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
7465 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
7466 (pa_shadd_constant_p): Allow constants for shadd insns rather
7467 than valid scaling constants for memory addresses.
7468 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
7469 * config/pa/predicates.md (mem_shadd_operand): New predicate.
7470 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
7471 (shift-add insns using ASHIFT): New patterns.
7472
7473 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
7474
7475 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
7476 feasible.
7477 (fix_up_fall_thru_edges): Likewise.
7478 (fix_crossing_conditional_branches): Likewise. Promote jump targets
7479 from to rtx_insn to rtx_code_label where feasible.
7480 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
7481 gen_move_insn (returned type changed to rtx_insn).
7482 * builtins.c (expand_errno_check): Fix arguments of
7483 do_compare_rtx_and_jump (now expects rtx_code_label).
7484 (expand_builtin_acc_on_device): Likewise.
7485 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
7486 invert_jump (now exprects rtx_jump_insn).
7487 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
7488 (construct_init_block): Use rtx_code_label.
7489 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
7490 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
7491 calling redirect_jump.
7492 (patch_jump_insn): Likewise.
7493 (redirect_branch_edge): Likewise.
7494 (force_nonfallthru_and_redirect): Likewise.
7495 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
7496 when suitable.
7497 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
7498 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
7499 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
7500 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
7501 to store the value retured by gen_label_rtx.
7502 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
7503 rtx_jump_insn.
7504 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
7505 (split_branches): Fix calls of redirect_jump.
7506 * dojump.c (jumpifnot): Promote argument type from rtx to
7507 rtx_code_label.
7508 (jumpifnot_1): Likewise.
7509 (jumpif): Likewise.
7510 (jumpif_1): Likewise.
7511 (do_jump_1): Likewise.
7512 (do_jump): Likewise. Use rtx_code_label when feasible.
7513 (do_jump_by_parts_greater_rtx): Likewise.
7514 (do_jump_by_parts_zero_rtx): Likewise.
7515 (do_jump_by_parts_equality_rtx): Likewise.
7516 (do_compare_rtx_and_jump): Likewise.
7517 * dojump.h: Update function prototypes.
7518 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
7519 returns rtx_insn).
7520 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
7521 rtx_jump_insn.
7522 (emit_label_before): Likewise.
7523 (emit_jump_insn_after_noloc): Likewise.
7524 (emit_jump_insn_after_setloc): Likewise.
7525 (emit_jump_insn_after): Likewise
7526 (emit_jump_insn_before_setloc): Likewise.
7527 (emit_jump_insn_before): Likewise.
7528 (emit_label_before): Promote return type to rtx_code_label.
7529 (emit_label): Likewise.
7530 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
7531 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
7532 gen_move_insn.
7533 (emit_stack_restore): Likewise.
7534 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
7535 (do_cmp_and_jump): Likewise.
7536 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
7537 from rtx to rtx_code_label.
7538 (gen_move_insn_uncast): New function.
7539 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
7540 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
7541 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
7542 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
7543 invert_jump_1 and redirect_jump_1.
7544 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
7545 do_compare_rtx_and_jump.
7546 (expand_addsub_overflow): Likewise.
7547 (expand_neg_overflow): Likewise.
7548 (expand_mul_overflow): Likewise.
7549 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
7550 return value of gen_move_insn.
7551 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
7552 * loop-doloop.c (add_test): Use rtx_code_label.
7553 (doloop_modify): Likewise.
7554 (doloop_optimize): Likewise.
7555 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
7556 * lra-constraints.c (emit_spill_move): Remove cast of value returned
7557 by gen_move_insn.
7558 (inherit_reload_reg): Add cast when calling dump_insn_slim.
7559 (split_reg): Likewise.
7560 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
7561 gen_move_insn.
7562 * optabs.c (expand_binop_directly): Remove casts of values returned by
7563 maybe_gen_insn.
7564 (expand_unop_direct): Likewise.
7565 (expand_abs): Likewise.
7566 (maybe_emit_unop_insn): Likewise.
7567 (maybe_gen_insn): Promote return type to rtx_insn.
7568 * optabs.h: Update prototype of maybe_gen_insn.
7569 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
7570 redundant cast.
7571 * recog.c (struct peep2_insn_data): Promote type of insn field to
7572 rtx_insn.
7573 (peep2_reinit_state): Use NULL instead of NULL_RTX.
7574 (peep2_attempt): Remove casts of insn in peep2_insn_data.
7575 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
7576 * recog.h (struct insn_gen_fn): Promote return types of function
7577 pointers and operator ().from rtx to rtx_insn.
7578 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
7579 (fill_eager_delay_slots): Likewise.
7580 (relax_delay_slots): Likewise.
7581 (make_return_insns): Likewise.
7582 (dbr_schedule): Likewise.
7583 (optimize_skips): Likewise.
7584 (reorg_redirect_jump): Likewise.
7585 (fill_slots_from_thread): Likewise.
7586 * reorg.h: Update prototypes.
7587 * resource.c (find_dead_or_set_registers): Use dyn_cast to
7588 rtx_jump_insn instead of check. Use it's jump_target method.
7589 * rtl.h (rtx_jump_insn::jump_label): Define new method.
7590 (rtx_jump_insn::jump_target): Define new method.
7591 (rtx_jump_insn::set_jump_target): Define new method.
7592 * rtlanal.c (tablejump_p): Promote type of one local variable.
7593 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
7594 (sched_analyze_insn): Likewise.
7595 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
7596 (print_insn): Likewise.
7597 * stmt.c (label_rtx): Promote return type to rtx_insn.
7598 (force_label_rtx): Likewise.
7599 (jump_target_rtx): Define new function.
7600 (expand_label): Use it, get rid of one cast.
7601 (expand_naked_return): Promote rtx to rtx_code_label.
7602 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
7603 (expand_case): Use rtx_code_label instread of rtx where feasible.
7604 (expand_sjlj_dispatch_table): Likewise.
7605 (emit_case_nodes): Likewise.
7606 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
7607 * store-motion.c (insert_store): Make use of new return type of
7608 gen_move_insn and remove a cast.
7609 (replace_store_insn): Likewise.
7610
7611 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
7612
7613 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
7614 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
7615
7616 2015-05-20 Jeff Law <law@redhat.com>
7617
7618 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
7619 dispose of the jump thread path when the jump threading
7620 opportunity is cancelled.
7621
7622 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7623
7624 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
7625 when printing the caret character.
7626
7627 2015-05-20 Marek Polacek <polacek@redhat.com>
7628
7629 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
7630
7631 2015-05-20 Marek Polacek <polacek@redhat.com>
7632
7633 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
7634 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
7635 * gimple-fold.c (canonicalize_bool): Likewise.
7636 (same_bool_result_p): Likewise.
7637 * tree-if-conv.c (parse_predicate): Likewise.
7638
7639 2015-05-20 Marek Polacek <polacek@redhat.com>
7640
7641 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
7642 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
7643
7644 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7645
7646 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
7647 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
7648 values.
7649
7650 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
7651
7652 * config/mips/mips.h (micromips_globals): Declare.
7653
7654 2015-05-20 David Malcolm <dmalcolm@redhat.com>
7655
7656 * timevar.def (TV_INITIALIZE_RTL): New.
7657 * toplev.c (initialize_rtl): Use an auto_timevar to account this
7658 function's time to TV_INITIALIZE_RTL.
7659
7660 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
7661
7662 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
7663 gimple_build_nop calls.
7664 (chkp_find_bounds_for_elem): Likewise.
7665 (chkp_get_zero_bounds): Likewise.
7666 (chkp_get_none_bounds): Likewise.
7667 (chkp_get_bounds_by_definition): Likewise.
7668 (chkp_generate_extern_var_bounds): Likewise.
7669 (chkp_get_bounds_for_decl_addr): Likewise.
7670 (chkp_get_bounds_for_string_cst): Likewise.
7671
7672 2015-05-20 Bin Cheng <bin.cheng@arm.com>
7673
7674 PR tree-optimization/65447
7675 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
7676 (dump_use, dump_uses): Support to dump sub use.
7677 (record_use): New parameters to support sub use. Remove call to
7678 dump_use.
7679 (record_sub_use, record_group_use): New functions.
7680 (compute_max_addr_offset, split_all_small_groups): New functions.
7681 (group_address_uses, rewrite_use_address): New functions.
7682 (strip_offset): New declaration.
7683 (find_interesting_uses_address): Call record_group_use.
7684 (add_candidate): New assertion.
7685 (infinite_cost_p): Move definition forward.
7686 (add_costs): Check INFTY cost and return immediately.
7687 (get_computation_cost_at): Clear setup cost and dependent bitmap
7688 for sub uses.
7689 (determine_use_iv_cost_address): Compute cost for sub uses.
7690 (rewrite_use_address_1): Rename from old rewrite_use_address.
7691 (free_loop_data): Free sub uses.
7692 (tree_ssa_iv_optimize_loop): Call group_address_uses.
7693
7694 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7695 Jim Wilson <jim.wilson@linaro.org>
7696
7697 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
7698 new fields loadv and storev.
7699 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
7700 Initialize loadv and storev.
7701 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
7702 (cortexa53_extra_costs): Likewise.
7703 (cortexa57_extra_costs): Likewise.
7704 (xgene1_extra_costs): Likewise.
7705 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
7706 rtx_costs.
7707
7708 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7709
7710 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
7711 storev.
7712 (cortexa8_extra_costs): Likewise.
7713 (cortexa5_extra_costs): Likewise.
7714 (cortexa7_extra_costs): Likewise.
7715 (cortexa12_extra_costs): Likewise.
7716 (cortexa15_extra_costs): Likewise.
7717 (v7m_extra_costs): Likewise.
7718
7719 2015-05-20 Jeff Law <law@redhat.com>
7720
7721 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
7722 instead of open-coded version. Also delete the jump thread created
7723 within this function.
7724
7725 2015-05-20 Alan Modra <amodra@gmail.com>
7726
7727 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
7728 stack adjusting insn. Formatting.
7729 (rs6000_emit_prologue): Track stack adjusting insn, and use of
7730 r12. If possible, emit first -fsplit-stack arg pointer insn
7731 before stack adjust. Don't use r12 to save cr if split-stack.
7732
7733 2015-05-20 Alan Modra <amodra@gmail.com>
7734
7735 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
7736 Define.
7737 (rs6000_supports_split_stack): New function.
7738 * gcc/config/rs6000/rs6000.c (machine_function): Add
7739 split_stack_arg_pointer.
7740 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
7741 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
7742 rather than virtual_incoming_args_rtx.
7743 (rs6000_va_start): Likewise.
7744 (split_stack_arg_pointer_used_p): New function.
7745 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
7746 (morestack_ref): New var.
7747 (gen_add3_const, rs6000_expand_split_stack_prologue,
7748 rs6000_internal_arg_pointer, rs6000_live_on_entry,
7749 rs6000_split_stack_space_check): New functions.
7750 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
7751 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
7752 (UNSPECV_SPLIT_STACK_RETURN): Define.
7753 (split_stack_prologue, load_split_stack_limit,
7754 load_split_stack_limit_di, load_split_stack_limit_si,
7755 split_stack_return, split_stack_space_check): New expands and insns.
7756 * gcc/config/rs6000/rs6000-protos.h
7757 (rs6000_expand_split_stack_prologue): Declare.
7758 (rs6000_split_stack_space_check): Declare.
7759
7760 2015-05-20 Alan Modra <amodra@gmail.com>
7761
7762 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
7763 (direct_return): Test vrsave_size rather than vrsave_mask.
7764 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
7765 (rs6000_emit_epilogue): Likewise.
7766
7767 2015-05-20 Alan Modra <amodra@gmail.com>
7768
7769 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
7770 when not saving registers.
7771 (debug_stack_info): Adjust to omit printing unused offsets,
7772 as before.
7773 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
7774 expression.
7775
7776 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7777
7778 PR c++/65835
7779 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
7780 value_type to const char *.
7781
7782 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
7783
7784 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
7785 to build a biarch toolchain again.
7786
7787 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
7788
7789 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
7790 or implicit declarations.
7791 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
7792 into it.
7793 (get_odr_type): Check type has linkage before adding bases.
7794 (register_odr_type): Check that type has linkage before adding it.
7795 (type_known_to_have_no_deriavations_p): Rename to ..
7796 (type_known_to_have_no_derivations_p): This one.
7797 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
7798 (type_known_to_have_no_derivations_p): This one.
7799 * ipa-polymorphic-call.c
7800 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
7801 type has linkage.
7802
7803 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
7804
7805 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
7806 (layout_type): Use RECORD_OR_UNION_TYPE_P.
7807
7808 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7809
7810 * config/s390/s390.c (s390_vector_bool_type_p): New function.
7811 (s390_invalid_binary_op): New function.
7812 (TARGET_INVALID_BINARY_OP): Define macro.
7813
7814 2015-05-19 David Sherwood <david.sherwood@arm.com>
7815
7816 * loop-invariant.c (create_new_invariant): Don't calculate address cost
7817 if mode is not a scalar integer.
7818 (get_inv_cost): Increase computational cost for unused invariants.
7819
7820 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7821
7822 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
7823 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
7824 * config/s390/s390-builtin-types.def: New file.
7825 * config/s390/s390-builtins.def: New file.
7826 * config/s390/s390-builtins.h: New file.
7827 * config/s390/s390-c.c: New file.
7828 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
7829 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
7830 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
7831 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
7832 prototypes.
7833 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
7834 Include.
7835 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
7836 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
7837 variable definitions.
7838 (s390_const_operand_ok): New function.
7839 (s390_expand_builtin): Rewrite.
7840 (s390_init_builtins): New function.
7841 (s390_handle_vectorbool_attribute): New function.
7842 (s390_attribute_table): Add s390_vector_bool attribute.
7843 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
7844 (s390_branch_condition_mask): Generate masks for new modes.
7845 (s390_expand_vec_compare_cc): New function.
7846 (s390_mangle_type): Add mangling for vector bool types.
7847 (enum s390_builtin): Remove.
7848 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
7849 efpc builtins.
7850 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
7851 s390_cpu_cpp_builtins.
7852 (REGISTER_TARGET_PRAGMAS): New macro.
7853 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
7854 (insn_cmp mode attribute): Add new CC modes.
7855 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
7856 (lcbb): New pattern definition.
7857 * config/s390/s390intrin.h: Include vecintrin.h.
7858 * config/s390/t-s390: New file.
7859 * config/s390/vecintrin.h: New file.
7860 * config/s390/vector.md: Include vx-builtins.md.
7861 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
7862 support.
7863
7864 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7865
7866 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
7867 CCVFHE.
7868 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
7869 (s390_select_ccmode): Likewise.
7870 (s390_canonicalize_comparison): Swap operands if necessary.
7871 (s390_expand_vec_compare_scalar): Expand DFmode compare using
7872 single element vector instructions.
7873 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
7874 (s390_branch_condition_mask): Generate CC masks for the new modes.
7875 * config/s390/s390.md (v0, vf, vd): New mode attributes.
7876 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
7877 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
7878 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
7879 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
7880 (*extend<DSF:mode><BFP:mode>2): New insn definition.
7881 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
7882 (extend<DSF:mode><BFP:mode>2): Turn into expander.
7883 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
7884 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
7885 (sqrt<mode>2): Add vector instruction.
7886
7887 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7888
7889 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
7890 constraints.
7891 * config/s390/predicates.md (const0_operand, constm1_operand)
7892 (constable_operand): Accept vector operands.
7893 * config/s390/s390-modes.def: Add supported vector modes.
7894 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
7895 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
7896 (s390_bytemask_vector_p, s390_expand_vec_strlen)
7897 (s390_expand_vec_compare, s390_expand_vcond)
7898 (s390_expand_vec_init): Add prototypes.
7899 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
7900 (s390_vector_mode_supported_p): New function.
7901 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
7902 (s390_contiguous_bitmask_vector_p): New function.
7903 (s390_bytemask_vector_p): New function.
7904 (s390_split_ok_p): Vector regs don't work either.
7905 (regclass_map): Add VEC_REGS.
7906 (s390_legitimate_constant_p): Handle vector constants.
7907 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
7908 (legitimate_reload_vector_constant_p): New function.
7909 (s390_preferred_reload_class): Handle CONST_VECTOR.
7910 (s390_reload_symref_address): Likewise.
7911 (s390_secondary_reload): Vector memory instructions only support
7912 short displacements. Rename reload*_nonoffmem* to reload*_la*.
7913 (s390_emit_ccraw_jump): New function.
7914 (s390_expand_vec_strlen): New function.
7915 (s390_expand_vec_compare): New function.
7916 (s390_expand_vcond): New function.
7917 (s390_expand_vec_init): New function.
7918 (s390_dwarf_frame_reg_mode): New function.
7919 (print_operand): Handle addresses with 'O' and 'R' constraints.
7920 (NR_C_MODES, constant_modes): Add vector modes.
7921 (s390_output_pool_entry): Handle vector constants.
7922 (s390_hard_regno_mode_ok): Handle vector registers.
7923 (s390_class_max_nregs): Likewise.
7924 (s390_cannot_change_mode_class): New function.
7925 (s390_invalid_arg_for_unprototyped_fn): New function.
7926 (s390_function_arg_vector): New function.
7927 (s390_function_arg_float): Remove size variable.
7928 (s390_pass_by_reference): Handle vector arguments.
7929 (s390_function_arg_advance): Likewise.
7930 (s390_function_arg): Likewise.
7931 (s390_return_in_memory): Vector values are returned in a VR if
7932 possible.
7933 (s390_function_and_libcall_value): Handle vector arguments.
7934 (s390_gimplify_va_arg): Likewise.
7935 (s390_call_saved_register_used): Consider the arguments named.
7936 (s390_conditional_register_usage): Disable v16-v31 for non-vec
7937 targets.
7938 (s390_preferred_simd_mode): New function.
7939 (s390_support_vector_misalignment): New function.
7940 (s390_vector_alignment): New function.
7941 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
7942 (TARGET_VECTOR_MODE_SUPPORTED_P)
7943 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
7944 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
7945 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
7946 (TARGET_VECTOR_ALIGNMENT): Define target macro.
7947 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
7948 (FIRST_PSEUDO_REGISTER): Increase value.
7949 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
7950 (VECTOR_REG_P): Define macros.
7951 (FIXED_REGISTERS, CALL_USED_REGISTERS)
7952 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
7953 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
7954 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
7955 Add vector registers.
7956 (CANNOT_CHANGE_MODE_CLASS): Call C function.
7957 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
7958 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
7959 memory.
7960 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
7961 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
7962 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
7963 (VR*_REGNUM): New constants.
7964 (ALL): New mode iterator.
7965 (INTALL): Remove mode iterator.
7966 Include vector.md.
7967 (movti): Implement TImode moves for VRs.
7968 Disable TImode splitter for VR targets.
7969 Implement splitting TImode GPR<->VR moves.
7970 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
7971 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
7972 reload<mode>_la_in, reload<mode>_la_out.
7973 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
7974 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
7975 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
7976 (mov<mode> SF SD): Prefer lder, lde for loading.
7977 Add lrl and strl instructions.
7978 Add vector instructions.
7979 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
7980 Call s390_expand_vec_strlen on z13.
7981 (*cc_to_int): Change predicate to nonimmediate_operand.
7982 (addti3): Rename to *addti3. New expander.
7983 (subti3): Rename to *subti3. New expander.
7984 * config/s390/vector.md: New file.
7985
7986 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7987
7988 * common/config/s390/s390-common.c (processor_flags_table): Add
7989 z13.
7990 * config.gcc: Add z13.
7991 * config/s390/s390-opts.h (enum processor_type): Add
7992 PROCESSOR_2964_Z13.
7993 * config/s390/s390.c (s390_adjust_priority): Check for
7994 PROCESSOR_2964_Z13.
7995 (s390_reorg): Likewise.
7996 (s390_sched_reorder): Likewise.
7997 (s390_sched_variable_issue): Likewise.
7998 (s390_loop_unroll_adjust): Likewise.
7999 (s390_option_override): Likewise. Default to -mvx when available.
8000 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
8001 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
8002 (TARGET_VX_ABI): Define macros.
8003 macros.
8004 (TARGET_DEFAULT): Add MASK_OPT_VX.
8005 * config/s390/s390.md ("cpu" attribute): Add z13.
8006 ("cpu_facility" attribute): Add vec.
8007 * config/s390/s390.opt (processor_type): Add z13.
8008 (mvx): New options.
8009 * doc/invoke.texi: Add z13 option for -march.
8010
8011 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8012
8013 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
8014 mode check to make sure that only scalar integer values are
8015 accepted.
8016
8017 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
8018
8019 * tree.c (verify_type_variant): Fix #undef.
8020 (gimple_canonical_types_compatible_p): Move here from lto.c
8021 (verify_type): Verify TYPE_CANONICAL compatibility.
8022 * tree.h (gimple_canonical_types_compatible_p): Declare.
8023
8024 2015-05-19 Jakub Jelinek <jakub@redhat.com>
8025
8026 PR middle-end/66199
8027 * tree.h (OMP_TEAMS_COMBINED): Define.
8028 * gimplify.c (enum gimplify_omp_var_data): Add
8029 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
8030 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
8031 (omp_notice_variable): Accept both ORT_TEAMS
8032 and ORT_COMBINED_TEAMS. Don't recurse if
8033 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
8034 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
8035 GOVD_FIRSTPRIVATE.
8036 (omp_no_lastprivate): New function.
8037 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
8038 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
8039 notice_outer and set appropriate bits, otherwise make
8040 sure default(none) combined constructs won't complain.
8041 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
8042 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
8043 omp_no_lastprivate either remove the clause or turn it
8044 into OMP_CLAUSE_PRIVATE.
8045 (gimplify_omp_for): Fix up handling of implicit
8046 lastprivate or linear iterators.
8047 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
8048 ORT_COMBINED_TEAMS.
8049 * omp-low.c (lower_omp_for_lastprivate): For combined
8050 for simd use fd.loop.n2 from the for rather than simd.
8051
8052 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8053
8054 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
8055 instead of gen_rtx_raw_REG.
8056 (cris_expand_epilogue): Likewise.
8057 * config/microblaze/microblaze.c (microblaze_classify_address):
8058 Likewise.
8059 * config/sparc/sparc.md: Likewise.
8060
8061 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
8062
8063 * config/alpha/alpha.c (alpha_legitimize_reload_address)
8064 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
8065 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
8066 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
8067 Use CASE_CONST_SCALAR_INT.
8068 (print_operand) <case 'M'>: Use mode_width_operand to check the
8069 value of the constant.
8070 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
8071 * config/alpha/predicates.md (input_operand): Use general_operand
8072 instead of match_code as operand check.
8073 (symbolic_operand): Use match_code with subexpression digits.
8074 * config/alpha/constraints.md (Q): Ditto.
8075
8076 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8077
8078 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
8079
8080 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8081
8082 * config/s390/s390.c (s390_secondary_reload): Fix check for
8083 load/store relative.
8084
8085 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8086
8087 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
8088 alternative_mask to uint64_t.
8089
8090 2015-05-19 Jakub Jelinek <jakub@redhat.com>
8091
8092 PR tree-optimization/66187
8093 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
8094 Pass TYPE_SIGN to tree_int_cst_min_precision. If
8095 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
8096
8097 2015-05-19 David Malcolm <dmalcolm@redhat.com>
8098
8099 * diagnostic.c (diagnostic_report_current_module): Strengthen
8100 local "new_map" from const line_map * to
8101 const line_map_ordinary *.
8102 * genmatch.c (error_cb): Likewise for local "map".
8103 (output_line_directive): Likewise for local "map".
8104 * input.c (expand_location_1): Likewise for local "map".
8105 Pass NULL rather than &map to
8106 linemap_unwind_to_first_non_reserved_loc, since the value is never
8107 read from there, and the value written back not read from here.
8108 (is_location_from_builtin_token): Strengthen local "map" from
8109 const line_map * to const line_map_ordinary *.
8110 (dump_location_info): Strengthen locals "map" from
8111 line_map *, one to const line_map_ordinary *, the other
8112 to const line_map_macro *.
8113 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
8114 const line_map * to const line_map_macro *.
8115 (maybe_unwind_expanded_macro_loc): Add a call to
8116 linemap_check_macro when writing to the "map" field of the
8117 loc_map_pair.
8118 Introduce local const line_map_ordinary * "ord_map", using it in
8119 place of "map" in the part of the function where we know we have
8120 an ordinary map. Strengthen local "m" from const line_map * to
8121 const line_map_ordinary *.
8122
8123 2015-05-19 Nick Clifton <nickc@redhat.com>
8124
8125 PR target/66156
8126 * config/msp430/msp430.md (zero_extendhisi2): Add support for
8127 separate source and destination registers.
8128
8129 2015-05-19 Richard Biener <rguenther@suse.de>
8130
8131 PR tree-optimization/66165
8132 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
8133 for no load permutation.
8134
8135 PR tree-optimization/66185
8136 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
8137 when building the SLP node from scalars.
8138
8139 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
8140 Tristan Gingold <gingold@adacore.com>
8141
8142 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
8143 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
8144 (expand_stack_restore): Call record_new_stack_level.
8145 (expand_stack_save): Do not call do_pending_stack_adjust.
8146 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
8147 * calls.c (expand_call): Call record_new_stack_level for alloca.
8148 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
8149 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
8150 (update_sjlj_context): New global function.
8151 * except.h (update_sjlj_context): Declare.
8152 * explow.c (record_new_stack_level): New global function.
8153 (allocate_dynamic_stack_space): Call record_new_stack_level.
8154 * explow.h (record_new_stack_level): Declare.
8155 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
8156 * cfgrtl.c (duplicate_insn_chain): Likewise.
8157
8158 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8159
8160 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
8161 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
8162 STACK_GROWS_DOWNWARD as normal if.
8163 (expand_call): Likewise.
8164
8165 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
8166
8167 PR target/54236
8168 * config/sh/sh.md (*round_int_even): New insn_and_split and
8169 accompanying new unnamed split.
8170
8171 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8172
8173 * bitmap.c (bitmap_set_range): Handle count==1 specially.
8174 (bitmap_clear_range): Likewise.
8175 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
8176 bitmap_set_range unconditionally.
8177 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
8178 * df-scan.c (df_mark_reg): Likewise.
8179 * haifa-sched.c (setup_ref_regs): Likewise.
8180 * sched-rgn.c (update_live_1): Likewise.
8181
8182 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8183
8184 * regs.h (END_HARD_REGNO): Delete.
8185 (END_REGNO): Move to...
8186 * rtl.h: ...here.
8187 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
8188 * caller-save.c (mark_set_regs): Likewise.
8189 * combine.c (move_deaths, distribute_notes): Likewise.
8190 * cse.c (invalidate, invalidate_for_call): Likewise.
8191 * df-scan.c (df_ref_record): Likewise.
8192 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
8193 (record_last_reg_set_info): Likewise.
8194 * reg-stack.c (convert_regs_exit): Likewise.
8195 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
8196 * resource.c (update_live_status): Likewise.
8197 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
8198
8199 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8200
8201 * rtl.h (reg_info): Add an nregs field.
8202 (REG_NREGS): Use it.
8203 (SET_REGNO_RAW): Delete.
8204 (set_regno_raw): New function.
8205 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
8206 (END_REGNO): Redefine in terms of REG_NREGS.
8207 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
8208 SET_REGNO_RAW.
8209 * emit-rtl.c (set_mode_and_regno): Likewise.
8210 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
8211 instead of SET_REGNO_RAW.
8212
8213 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8214
8215 * rtl.h (PUT_MODE_RAW): New macro.
8216 (PUT_REG_NOTE_KIND): Use it.
8217 (set_mode_and_regno): Declare.
8218 (gen_raw_REG): Change regno to "unsigned int".
8219 (gen_rtx_REG): Change "unsigned" to "unsigned int".
8220 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
8221 use set_mode_and_regno to change the mode of registers.
8222 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
8223 * emit-rtl.c (set_mode_and_regno): New function.
8224 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
8225 * caller-save.c (reg_save_code): Use set_mode_and_regno.
8226 * expr.c (init_expr_target): Likewise.
8227 * ira.c (setup_prohibited_mode_move_regs): Likewise.
8228 * postreload.c (reload_cse_simplify_operands): Likewise.
8229
8230 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8231
8232 * caller-save.c (init_caller_save): Use word_mode and
8233 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
8234 * expr.c (init_expr_target): Likewise.
8235 * ira.c (setup_prohibited_mode_move_regs): Likewise.
8236 * postreload.c (reload_cse_regs_1): Likewise.
8237
8238 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8239
8240 * rtl.def (REG): Change format to "r".
8241 * rtl.h (rtunion): Remove rt_reg.
8242 (reg_info): New structure.
8243 (rtx_def): Add reg field to main union.
8244 (X0REGATTR): Delete.
8245 (REG_CHECK): New macro.
8246 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
8247 * rtl.c (rtx_format): Document "r".
8248 (rtx_code_size): Handle REG specially.
8249 * gengenrtl.c (special_format): Return true for formats
8250 that include 'r'.
8251 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
8252 Deal with REG_ATTRS after the field loop.
8253 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
8254 * expmed.c (init_expmed): Call gen_raw_REG instead of
8255 gen_rtx_raw_REG.
8256 * expr.c (init_expr_target): Likewise.
8257 * regcprop.c (maybe_mode_change): Likewise.
8258 * varasm.c (make_decl_rtl): Likewise.
8259 * final.c (leaf_renumber_regs_insn): Return early after
8260 handling REGs.
8261 * genemit.c (gen_exp): Handle 'r' fields.
8262 * genpeep.c (match_rtx): Likewise.
8263 * gensupport.c (subst_pattern_match): Likewise.
8264 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
8265 (alter_constraints, subst_dup): Likewise.
8266 * read-rtl.c (read_rtx_code): Likewise.
8267 * print-rtl.c (print_rtx): Likewise.
8268 * genrecog.c (find_operand, find_matching_operand): Likewise.
8269 (validate_pattern, match_pattern_2): Likewise.
8270 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
8271 (rtx_test::regno_field): New function.
8272 (operator ==, safe_to_hoist_p, transition_parameter_type)
8273 (parameter_type_string, print_parameter_value)
8274 (print_nonbool_test, print_test): Handle new enum values.
8275 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
8276 * lra-constraints.c (operands_match_p): Likewise.
8277
8278 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8279
8280 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
8281 Change type of new_regno to unsigned int.
8282 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
8283 new_regno to unsigned int.
8284 (df_ref_change_reg_with_loc): Remove old_regno parameter.
8285 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
8286 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
8287 (SET_REGNO_RAW): Add space after ",".
8288
8289 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8290
8291 * rtl.h (REG_NREGS): New macro
8292 * alias.c (record_set): Use it.
8293 * cfgcleanup.c (mark_effect): Likewise.
8294 * combine.c (likely_spilled_retval_1): Likewise.
8295 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
8296 (move_deaths, distribute_notes): Likewise.
8297 * cselib.c (cselib_record_set): Likewise.
8298 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
8299 * df-scan.c (df_mark_reg): Likewise.
8300 * dse.c (look_for_hardregs): Likewise.
8301 * dwarf2out.c (reg_loc_descriptor): Likewise.
8302 (multiple_reg_loc_descriptor): Likewise.
8303 * expr.c (write_complex_part, read_complex_part): Likewise.
8304 (emit_move_complex): Likewise.
8305 * haifa-sched.c (setup_ref_regs): Likewise.
8306 * ira-lives.c (mark_hard_reg_live): Likewise.
8307 * lra.c (lra_set_insn_recog_data): Likewise.
8308 * mode-switching.c (create_pre_exit): Likewise.
8309 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
8310 (reload_combine_recognize_pattern): Likewise.
8311 (reload_combine_note_use, move2add_record_mode): Likewise.
8312 (reload_cse_move2add): Likewise.
8313 * reg-stack.c (subst_stack_regs_pat): Likewise.
8314 * regcprop.c (kill_value, copy_value): Likewise.
8315 (copyprop_hardreg_forward_1): Likewise.
8316 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
8317 (build_def_use): Likewise.
8318 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
8319 (deps_analyze_insn): Likewise.
8320 * sched-rgn.c (check_live_1, update_live_1): Likewise.
8321 * sel-sched.c (count_occurrences_equiv): Likewise.
8322 * valtrack.c (dead_debug_insert_temp): Likewise.
8323
8324 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8325
8326 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
8327 * dse.c (note_add_store): Likewise.
8328 * ira-lives.c (mark_hard_reg_dead): Likewise.
8329 * loop-invariant.c (mark_reg_store): Likewise.
8330 (mark_reg_death): Likewise.
8331 * postreload.c (reload_combine): Likewise.
8332 (reload_combine_note_store): Likewise.
8333 (reload_combine_note_use): Likewise.
8334 * recog.c (peep2_reg_dead_p): Likewise.
8335
8336 2015-05-19 Alan Modra <amodra@gmail.com>
8337
8338 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
8339 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
8340 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
8341 unused predicates.
8342 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
8343 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
8344 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
8345 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
8346
8347 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
8348
8349 * config/mips/mips.md (JOIN_MODE): New mode iterator.
8350 (join2_load_Store<JOIN_MODE:mode>): New pattern.
8351 (join2_loadhi): Likewise.
8352 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
8353 load-load and store-stores.
8354 * config/mips/mips.opt (mload-store-pairs): New option.
8355 (TARGET_LOAD_STORE_PAIRS): New macro.
8356 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
8357 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
8358 * config/mips/mips.c (mips_load_store_bonding_p): New function.
8359
8360 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
8361
8362 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
8363 explicit swaps.
8364 * dojump.c (do_compare_rtx_and_jump): Likewise.
8365 * expmed.c (emit_store_flag_1): Likewise.
8366 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
8367 * final.c (sprint_ul): Use std::reverse for reversing a string.
8368 * fold-const.c (extract_muldiv_1): Use std::swap.
8369 * genmodes.c (emit_mode_int_n): Likewise.
8370 * ifcvt.c (dead_or_predicable): Likewise.
8371 * ira-build.c (ira_merge_live_ranges): Likewise.
8372 (swap_allocno_copy_ends_if_necessary): Likewise.
8373 * ira.c (ira_setup_alts): Likewise.
8374 * loop-iv.c (iv_analyze_expr): Likewise.
8375 (implies_p): Likewise.
8376 (canon_condition): Likewise.
8377 * lra-constraints.c (swap_operands): Likewise.
8378 * lra-lives.c (lra_merge_live_ranges): Likewise.
8379 * omega.c (swap): Remove.
8380 (bswap): Remove.
8381 (omega_unprotect_1): Use std::swap.
8382 (omega_solve_geq): Likewise.
8383 * optabs.c (expand_binop_directly): Likewise.
8384 (expand_binop): Likewise.
8385 (emit_conditional_move): Likewise.
8386 (emit_conditional_add): Likewise.
8387 * postreload.c (reload_cse_simplify_operands): Likewise.
8388 * reg-stack.c (emit_swap_insn): Likewise.
8389 (swap_to_top): Likewise.
8390 (compare_for_stack_reg): Likewise.
8391 (subst_asm_stack_regs): Likewise.
8392 * reload.c (find_reloads): Likewise.
8393 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
8394 * sel-sched.c (invoke_reorder_hooks): Likewise.
8395 (create_block_for_bookkeeping): Likewise.
8396 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
8397 (lambda_matrix_right_hermite): Use std::swap.
8398 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
8399 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
8400 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
8401 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
8402 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
8403 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
8404 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8405 * tree-vrp.c (compare_ranges): Likewise.
8406 * var-tracking.c (add_with_sets): Likewise.
8407 (vt_find_locations): Likewise.
8408
8409 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
8410
8411 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
8412 pie executables.
8413 (FBSD_ENDFILE_SPEC): Likewise.
8414 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
8415 config/freebsd-spec.h.
8416 (ENDFILE_SPEC): Likewise.
8417
8418 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
8419 Richard Henderson <rth@redhat.com>
8420
8421 PR target/57032
8422 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
8423 Check for a memory location that is not a reference (using an AND)
8424 to an unaligned location here.
8425 * config/alpha/predicates.md (normal_memory_operand): Remove.
8426
8427 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
8428
8429 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
8430 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
8431
8432 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
8433
8434 * config/mips/mips.c (micromips_globals): New variable.
8435 (mips_set_compression_mode): Save and reinitialize target-dependent
8436 state for microMIPS.
8437
8438 2015-05-18 Martin Liska <mliska@suse.cz>
8439
8440 * dbgcnt.def: Add new counter.
8441 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
8442
8443 2015-05-18 Martin Liska <mliska@suse.cz>
8444
8445 * dbgcnt.def: Sort counters.
8446 * opts.c (common_handle_option): Do not compile if
8447 -fdbg-cnt-list is enabled.
8448
8449 2015-05-18 Tom de Vries <tom@codesourcery.com>
8450
8451 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
8452 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
8453 address operator to va_list operand.
8454 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
8455 unconditionally.
8456 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
8457 operand.
8458 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
8459 * config/s390/s390.c (s390_gimplify_va_arg): Same.
8460 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
8461
8462 2015-05-18 Tom de Vries <tom@codesourcery.com>
8463
8464 * tree-ssa-tail-merge.c: Fix whitespace.
8465
8466 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
8467
8468 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
8469 cortex-a17, and cortex-a17.cortex-a7.
8470
8471 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
8472
8473 PR target/54236
8474 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
8475
8476 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
8477
8478 PR target/66174
8479 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
8480 QImode inner modes for TARGET_AVX512BW. Force mask operand
8481 to a register for AVX512F modes.
8482
8483 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
8484
8485 * toplev.c (emit_debug_global_declarations): Do not output debug info
8486 when doing slim LTO objects.
8487
8488 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
8489
8490 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
8491 odr_types_equivalent_p): Declare.
8492 (odr_type_p): Use gcc_checking_assert.
8493 (type_in_anonymous_namespace_p) Declare.
8494 (type_with_linkage_p): Declare.
8495 * common.opt (Wlto-type-mismatch): New warning.
8496 * ipa-devirt.c (compound_type_base): New function.
8497 (odr_or_derived_type_p): New function.
8498 (odr_types_equivalent_p): New function.
8499 (add_type_duplicate): Simplify.
8500 (type_with_linkage_p): Add hack to prevent false positives on C types
8501 (type_in_anonymous_namespace_p): Likewise.
8502 * tree.c (need_assembler_name_p): Use type_with_linkage.
8503 * tree.h (type_in_anonymous_namespace_p): Remove.
8504 * doc/invoke.texi (-Wlto-type-mismatch): Document
8505
8506 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
8507
8508 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
8509 (verify_type): Verify STRING_FLAG.
8510
8511 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8512
8513 PR fortran/44054
8514 * tree-pretty-print.c (percent_K_format): Replace locus pointer
8515 with accessor function.
8516 * tree-diagnostic.c (diagnostic_report_current_function): Use
8517 diagnostic_location function.
8518 (maybe_unwind_expanded_macro_loc): Likewise.
8519 (virt_loc_aware_diagnostic_finalizer): Likewise.
8520 (default_tree_printer): Replace locus pointer with accessor function.
8521 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
8522 (diagnostic_set_info_translated): Initialize second location.
8523 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
8524 (diagnostic_show_locus): Handle two locations. Call
8525 diagnostic_print_caret_line.
8526 (diagnostic_print_caret_line): New.
8527 (default_diagnostic_starter): Use diagnostic_location function.
8528 (diagnostic_report_diagnostic): Use diagnostic_location function.
8529 (verbatim): Do not set text.locus.
8530 * diagnostic.h (struct diagnostic_info): Remove location field.
8531 (struct diagnostic_context): Make caret_chars an array of two.
8532 (diagnostic_location): New inline.
8533 (diagnostic_expand_location): Handle two locations.
8534 (diagnostic_same_line): New inline.
8535 (diagnostic_print_caret_line): Declare.
8536 (CARET_LINE_MARGIN): New constant.
8537 * pretty-print.c (pp_printf): Do not set text.locus.
8538 (pp_verbatim): Do not set text.locus.
8539 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
8540 (struct text_info): Replace locus pointer with locations
8541 array. Add accessor functions.
8542
8543 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
8544 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8545
8546 PR target/65768
8547 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
8548 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
8549 large constants in register instead of splitting them.
8550
8551 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
8552
8553 PR target/66140
8554 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
8555 replacements in memory addresses.
8556 (get_unaligned_address): Ditto.
8557
8558 2015-05-16 James Bowman <james.bowman@ftdichip.com>
8559
8560 * config/ft32/*: New files for FT32 port.
8561 * doc/install.texi: Add FT32 information.
8562 * doc/invoke.texi: Add FT32 information.
8563 * doc/md.texi: Add FT32 information.
8564 * doc/contrib.texi: Self added.
8565
8566 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
8567
8568 PR tree-optimization/64454
8569 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
8570 (-1 - A -> ~A): Remove unnecessary condition.
8571
8572 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
8573
8574 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
8575 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
8576 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
8577
8578 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
8579
8580 * ipa-chkp.h (chkp_wrap_function): New.
8581 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
8582 (chkp_wrap_function_name): New.
8583 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
8584 to get wrapper name.
8585 * lto-cgraph.c: Include ipa-chkp.h.
8586 (input_cgraph_1): Avoid alias chain for wrappers.
8587
8588 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8589
8590 PR middle-end/66134
8591 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
8592 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
8593
8594 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8595
8596 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
8597 (AARCH64_FL_SLOWMUL): Delete.
8598 (AARCH64_FL_CRC): Redefine to 1<<3.
8599 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
8600
8601 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8602
8603 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
8604 casting.
8605
8606 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
8607
8608 * config/alpha/alpha.md (extendqidi2): Use general_operand
8609 instead of some_operand for operand[1] predicate.
8610 (extendhidi2): Ditto.
8611 (cbranchdi4): Use general_operand instead of some_operand
8612 for operand[1] and operands[2] predicates.
8613 (cstoredi4): Ditto.
8614 * config/alpha/predicates.md (some_operand): Remove unused predicate.
8615 (some_ni_operand): Ditto.
8616
8617 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
8618
8619 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
8620 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
8621 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
8622 low part of the constant using alpha_emit_set_const_1.
8623 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
8624
8625 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
8626
8627 * varasm.c (output_constant_pool_1): Pass down alignment from
8628 constant pool entry's descriptor to output_constant_pool_2.
8629 (output_object_block): Add comment prior to call to
8630 output_constant_pool_1.
8631
8632 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
8633
8634 PR rtl-optimization/65862
8635 * target.def (ira_change_pseudo_allocno_class): New hook.
8636 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
8637 value of the hook.
8638 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
8639 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
8640 hook.
8641 * ira-costs.c (find_costs_and_classes): Call the hook and change
8642 classes when it is necessary.
8643 * doc/tm.texi: Update.
8644
8645 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
8646
8647 * config/i386/i386.md (sibcall_memory): Check that register with
8648 callee address is not also used as one of the arguments, instead
8649 of checking that it is not live after the sibcall.
8650 (sibcall_pop_memory): Ditto.
8651 (sibcall_value_memory): Ditto.
8652 (sibcall_value_pop_memory): Ditto.
8653
8654 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
8655
8656 * generic-match-head.c (types_match): Handle non-types.
8657 * gimple-match-head.c (types_match): Likewise.
8658 * match.pd: Remove unnecessary TREE_TYPE for types_match.
8659
8660 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
8661
8662 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
8663 (csneg3<mode>_insn): Enable expansion of pattern.
8664
8665 2015-05-14 Nick Clifton <nickc@redhat.com>
8666
8667 * config/rl78/rl78.c (rl78_select_section): Select the correct
8668 default section based upon the category of the decl.
8669
8670 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
8671
8672 PR rtl-optimization/30967
8673 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
8674 destination mode for the cost of scc patterns.
8675
8676 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
8677
8678 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
8679 using SWIM248 mode iterator.
8680 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
8681 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
8682 for operand[2] constraint.
8683 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
8684
8685 2015-05-13 Jakub Jelinek <jakub@redhat.com>
8686
8687 PR middle-end/66133
8688 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
8689 make sure it is never noreturn, even when the task body does not
8690 return.
8691 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
8692 right before GIMPLE_OMP_RETURN.
8693 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
8694 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
8695 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
8696
8697 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8698
8699 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
8700 * tree-ssa-math-opts.c: Include params.h
8701 (pow_synth_sqrt_info): New struct.
8702 (representable_as_half_series_p): New function.
8703 (get_fn_chain): Likewise.
8704 (print_nested_fn): Likewise.
8705 (dump_fractional_sqrt_sequence): Likewise.
8706 (dump_integer_part): Likewise.
8707 (expand_pow_as_sqrts): Likewise.
8708 (gimple_expand_builtin_pow): Use above to attempt to expand
8709 pow as series of square roots. Removed now unused variables.
8710
8711 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
8712
8713 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
8714 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
8715 Remove *p0 and *p1 arguments. Rewrite function.
8716 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
8717 (alpha_split_const_mov): Update calls to alpha_extract_integer and
8718 alpha_emit_set_long_const.
8719 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
8720 (alpha_output_mi_thunk_osf): Ditto.
8721 * config/alpha/alpha.md (movti): Do not check operands[1]
8722 for CONST_DOUBLE.
8723
8724 2015-05-13 Richard Biener <rguenther@suse.de>
8725
8726 PR tree-optimization/66129
8727 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
8728 commutative.
8729 (vect_schedule_slp_instance): Fix typo.
8730
8731 2015-05-13 David Malcolm <dmalcolm@redhat.com>
8732
8733 * common.opt (fdump-internal-locations): New option.
8734 * input.c: Include diagnostic-core.h.
8735 (get_end_location): New function.
8736 (write_digit): New function.
8737 (write_digit_row): New function.
8738 (dump_location_range): New function.
8739 (dump_labelled_location_range): New function.
8740 (dump_location_info): New function.
8741 * input.h (dump_location_info): New prototype.
8742 * toplev.c (compile_file): Handle flag_dump_locations.
8743
8744 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
8745
8746 * gimple-expr.h (is_gimple_constant): Reorder.
8747 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
8748
8749 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
8750
8751 * combine.c (simplify_set): When generating a CC set, if the
8752 source already is in the correct mode, do not wrap it in a
8753 compare. Simplify the rest of that code.
8754
8755 2015-05-13 Richard Biener <rguenther@suse.de>
8756
8757 PR tree-optimization/66123
8758 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
8759 a taken edge.
8760
8761 2015-05-13 Richard Biener <rguenther@suse.de>
8762
8763 PR middle-end/66110
8764 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
8765 specially.
8766 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
8767
8768 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8769
8770 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
8771 * aclocal.m4: Regenerated with automake-1.11.6.
8772
8773 2015-05-13 Tom de Vries <tom@codesourcery.com>
8774
8775 PR tree-optimization/66010
8776 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
8777 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
8778 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
8779 and rval based on do_deref.
8780
8781 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
8782
8783 PR target/65103
8784 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
8785 link time constants into adress expressions and therefore set
8786 their cost to 0.
8787
8788 2015-05-13 Jakub Jelinek <jakub@redhat.com>
8789
8790 PR target/66112
8791 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
8792 Use SWI248 iterator instead of SWI.
8793 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
8794 Use eq_attr "alternative" "0" instead of match_test in
8795 length_immediate attribute computation.
8796 (*mulvhi4, *mulvhi4_1): New define_insns.
8797
8798 PR target/66112
8799 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
8800 SIGNED to get precision of non-negative value.
8801
8802 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
8803
8804 PR target/66048
8805 * function.c (diddle_return_value_1): Process bounds first.
8806 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
8807 register.
8808
8809 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8810
8811 PR rtl-optimization/64616
8812 * loop-invariant.c (can_move_invariant_reg): New.
8813 (move_invariant_reg): Call above new function to decide whether
8814 instruction can just be moved, skipping creation of temporary
8815 register.
8816
8817 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
8818
8819 PR target/pr66047.c
8820 * i386.c (ix86_function_sseregparm): Only return -1 if local function
8821 with implied regparm is called from -mno-sse function.
8822 (init_cumulative_args): Output error if ix86_function_sseregparm
8823 return -1 and SSE register would be needed.
8824 (function_arg_advance_32): Likewise.
8825 (function_arg_32): Likewise.
8826 * i386.h (ix86_args): Add decl field.
8827
8828 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
8829
8830 PR ipa/65873
8831 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
8832 inlines across optimization boundary.
8833
8834 2015-05-12 Jason Merrill <jason@redhat.com>
8835
8836 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
8837 string literal and macro name.
8838
8839 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
8840
8841 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
8842 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
8843 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
8844
8845 2015-05-12 David Malcolm <dmalcolm@redhat.com>
8846
8847 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
8848 (-Wmisleading-indentation): New option.
8849 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
8850
8851 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
8852
8853 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
8854 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
8855 (alpha_extract_integer): Ditto.
8856 (alpha_legitimate_constant_p): Ditto.
8857 (alpha_split_tmode_pair): Ditto.
8858 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
8859 (alpha_expand_mov): Ditto.
8860 (print_operand): Remove handling of 'H' modifier.
8861 <case 'm'>: Remove CONST_DOUBLE handling.
8862 (summarize_insn): Handle CONST_WIDE_INT.
8863 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
8864 (anddi3): Ditto.
8865 (movti): Handle CONST_WIDE_INT.
8866 * config/alpha/constraints.md ('H'): Remove constraint definition.
8867 ('G'): Do not match MODE_FLOAT class.
8868 * config/alpha/predicates.md (const0_operand): Also match
8869 const_wide_int.
8870 (non_add_const_operand): Ditto.
8871 (non_zero_const_operand): Ditto.
8872 (some_operand): Ditto.
8873 (input_operand): Ditto. Handle CONST_WIDE_INT.
8874 (and_operand): Do not match const_double.
8875 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
8876
8877 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
8878
8879 PR target/65697
8880 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
8881 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
8882 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
8883 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
8884 is_mm_seq_cst, is_mm_sync): New accessor functions.
8885 * builtins.c (expand_builtin_sync_operation,
8886 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
8887 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
8888 (get_memmodel, expand_builtin_atomic_compare_exchange,
8889 expand_builtin_atomic_load, expand_builtin_atomic_store,
8890 expand_builtin_atomic_clear): Use new accessor routines.
8891 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
8892 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
8893 (maybe_emit_sync_lock_test_and_set): Use new accessors and
8894 MEMMODEL_SYNC_ACQUIRE.
8895 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
8896 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
8897 expand_atomic_store): Use new accessors.
8898 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
8899 * tsan.c (instrument_builtin_call): Update check for memory model beyond
8900 final enum to use MEMMODEL_LAST.
8901 * c-family/c-common.c: Use new accessor for memmodel_base.
8902 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
8903 accessors.
8904 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
8905 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
8906 mem_thread_fence, *dmb): Likewise.
8907 * config/alpha/alpha.c (alpha_split_compare_and_swap,
8908 alpha_split_compare_and_swap_12): Likewise.
8909 * config/arm/arm.c (arm_expand_compare_and_swap,
8910 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
8911 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
8912 atomic_loaddi): Likewise.
8913 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
8914 Likewise.
8915 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
8916 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
8917 use new accessors.
8918 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
8919 atomic_store<mode>, atomic_compare_and_swap<mode>,
8920 atomic_exchange<mode>): Use new accessors.
8921 * config/mips/mips.c (mips_process_sync_loop): Likewise.
8922 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
8923 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
8924 rs6000_post_atomic_barrier): Add new cases.
8925 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
8926 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
8927 (atomic_load<mode>): Add new cases and use new accessors.
8928 (store_quadpti): Add new cases.
8929 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
8930 accessors.
8931 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
8932 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
8933 model, not 8.
8934
8935 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
8936
8937 * ipa-devirt.c (type_with_linkage_p): New function.
8938 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
8939 type has linkage.
8940 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
8941 (can_be_name_hashed_p): Simplify.
8942 (hash_odr_name): Check that type has linkage before checking if it is
8943 anonymous.
8944 (types_same_for_odr): Likewise.
8945 (odr_name_hasher::equal): Likewise.
8946 (odr_subtypes_equivalent_p): Likewise.
8947 (warn_types_mismatch): Likewise.
8948 (get_odr_type): Likewise.
8949 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
8950 * ipa-utils.h (odr_type_p): Move offline.
8951 * tree.c (need_assembler_name_p): Fix handling of types
8952 without linkages.
8953 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
8954
8955 2015-05-12 David Malcolm <dmalcolm@redhat.com>
8956
8957 * timevar.c (timevar_enable): Delete in favor of...
8958 (g_timer): New global.
8959 (struct timevar_def): Move to timevar.h inside class timer.
8960 (struct timevar_stack_def): Likewise.
8961 (timevars): Delete global in favor of field "m_timevars" within
8962 class timer in timevar.h
8963 (stack): Likewise, in favor of field "m_stack".
8964 (unused_stack_instances): Likewise, in favor of field
8965 "m_unused_stack_instances".
8966 (start_time): Likewise, in favor of field "m_start_time".
8967 (get_time): Eliminate check for timevar_enable.
8968 (timer::timer): New function, built from part of timevar_init.
8969 (timevar_init): Rewrite idempotency test from using
8970 "timevar_enable" bool to using dynamic allocation of "g_timer".
8971 Move rest of implementation into timer's constructor.
8972 (timevar_push_1): Rename to...
8973 (timer::push): ...this, adding "m_" prefixes to variables that
8974 are now fields of timer.
8975 (timevar_pop_1): Likewise, rename to...
8976 (timer::pop): ...this, and add "m_" prefixes.
8977 (timevar_start): Replace test for "timevar_enable" with one for
8978 "g_timer", and move bulk of implementation to...
8979 (timer::start): ...here, adding "m_" prefixes.
8980 (timevar_stop): Likewise, from here...
8981 (timer::stop): ...to here.
8982 (timevar_cond_start): Likewise, from here...
8983 (timer::cond_start): ...to here.
8984 (timevar_cond_stop): Likewise, from here...
8985 (timer::cond_stop): ...to here.
8986 (validate_phases): Rename to...
8987 (timer::validate_phases): ...this, and add "m_" prefixes. Make
8988 locals "total" and "tv" const.
8989 (timevar_print): Rename to...
8990 (timer::print): ...this, and add "m_" prefixes. Make locals
8991 "total" and "tv" const. Eliminate test for timevar_enable.
8992 * timevar.h (timevar_enable): Eliminate.
8993 (g_timer): New declaration.
8994 (timevar_push_1): Eliminate.
8995 (timevar_pop_1): Eliminate.
8996 (timevar_print): Eliminate.
8997 (class timer): New class.
8998 (timevar_push): Rewrite to use g_timer.
8999 (timevar_pop): Likewise.
9000 * toplev.c (toplev::~toplev): Likewise.
9001
9002 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
9003
9004 * arm-protos.h (arm_sched_autopref): Delete.
9005 (tune_params): Re-organize, use enums for flag values.
9006 (FUSE_OPS): New macro.
9007 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
9008 (ARM_PREFETCH_BENEFICIAL): Likewise.
9009 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
9010 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9011 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
9012 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
9013 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
9014 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
9015 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
9016 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
9017 format.
9018 (arm_option_override, thumb2_reorg, arm_print_tune_info)
9019 (aarch_macro_fusion_pair_p): Update uses of current_tune.
9020 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
9021
9022 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
9023
9024 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
9025 "break".
9026
9027 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
9028 Sandra Loosemore <sandra@codesourcery.com>
9029
9030 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
9031 value.
9032 (REG_CLASS_NAMES): Add "IJMP_REGS".
9033 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
9034 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
9035 use new "c" register constraint.
9036 * config/nios2/constraint.md (c): New register constraint
9037 corresponding to IJMP_REGS.
9038
9039 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
9040
9041 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
9042 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
9043 define_splits): Delete, revamp, transmogrify into ...
9044 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
9045 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
9046 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
9047 New.
9048
9049 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
9050
9051 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
9052 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
9053
9054 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
9055
9056 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
9057 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
9058 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
9059 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
9060 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
9061 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
9062 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
9063 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
9064 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
9065 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
9066 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
9067 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
9068 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
9069 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
9070 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
9071 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
9072 and 30 corresponding splitters): Delete.
9073
9074 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
9075
9076 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
9077 zero_extract.
9078
9079 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
9080
9081 * combine.c (recog_for_combine_1): New function, factored out
9082 from recog_for_combine.
9083 (change_zero_ext): New function.
9084 (recog_for_combine): If recog fails, try again with the pattern
9085 modified by change_zero_ext; if that still fails, restore the
9086 pattern.
9087
9088 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
9089
9090 * combine.c (get_undo_marker): New function.
9091 (undo_to_marker): New function, largely factored out from ...
9092 (undo_all): ... this. Adjust.
9093
9094 2015-05-12 Richard Biener <rguenther@suse.de>
9095
9096 PR tree-optimization/66101
9097 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
9098 fixup if we turn a loop exit edge to a fallthru edge.
9099
9100 2015-05-12 Richard Biener <rguenther@suse.de>
9101
9102 PR tree-optimization/37021
9103 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
9104 (SLP_TREE_TWO_OPERATORS): New define.
9105 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
9106 SLP_TREE_TWO_OPERATORS.
9107 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
9108 SLP node.
9109 (vect_build_slp_tree): Adjust.
9110 (vect_analyze_slp_cost_1): Likewise.
9111 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
9112 emitting two vector stmts and mixing the results.
9113
9114 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
9115
9116 * call.c (print_z_candidates): Remove dead code.
9117
9118 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9119
9120 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
9121 and zEC12_simple_fp.
9122 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
9123 to 1.
9124
9125 2015-05-12 Tom de Vries <tom@codesourcery.com>
9126
9127 PR tree-optimization/66010
9128 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
9129 ifn_va_arg.
9130 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
9131 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
9132 va_lists are passed, and remove corresponding handling.
9133 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
9134 do_deref argument to ifn_va_arg.
9135 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
9136 ifn_va_arg.
9137
9138 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9139
9140 PR target/65955
9141 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
9142 REG before taking its REGNO.
9143
9144 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
9145
9146 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
9147 rsp->sign_bit_copies and rsp->nonzero_bits into ...
9148 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
9149 present to get more accurate information about the number of sign bit
9150 copies and non zero bits.
9151
9152 2015-05-12 Richard Biener <rguenther@suse.de>
9153
9154 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
9155 do not allow unrolling.
9156
9157 2015-05-11 Richard Henderson <rth@redhat.com>
9158
9159 * config/i386/i386-modes.def (CCP): New.
9160 * config/i386/i386.c (put_condition_code): Handle it.
9161 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
9162
9163 2015-05-11 Richard Henderson <rth@redhat.com>
9164
9165 * target.def (md_asm_clobbers): Replace with...
9166 (md_asm_adjust): this.
9167 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
9168 (TARGET_MD_ASM_ADJUST): New.
9169 * tm.texi: Rebuild.
9170 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
9171 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
9172 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
9173
9174 * cfgexpand.c (check_operand_nalternatives): Accept vector of
9175 constraints instead of lists of outputs and inputs.
9176 (expand_asm_stmt): Save and restore input_location around the
9177 body of the function. Move asm data into vectors instead of
9178 building tree lists. Generate cleanup sequences as needed,
9179 rather than waiting til the end. Use new md_asm_adjust hook.
9180
9181 * config/vxworks.c: Include vec.h before target.h.
9182 * gimple.c: Likewise.
9183 * incpath.c: Likewise.
9184 * mode-switching.c: Likewise.
9185
9186 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
9187 (cris_md_asm_adjust): this.
9188 (TARGET_MD_ASM_CLOBBERS): Remove.
9189 (TARGET_MD_ASM_ADJUST): New.
9190 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
9191 (ix86_md_asm_adjust): this.
9192 (TARGET_MD_ASM_CLOBBERS): Remove.
9193 (TARGET_MD_ASM_ADJUST): New.
9194 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
9195 (mn10300_md_asm_adjust): this.
9196 (TARGET_MD_ASM_CLOBBERS): Remove.
9197 (TARGET_MD_ASM_ADJUST): New.
9198 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
9199 (rs6000_md_asm_adjust): this.
9200 (TARGET_MD_ASM_CLOBBERS): Remove.
9201 (TARGET_MD_ASM_ADJUST): New.
9202 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
9203 (visium_md_asm_adjust): this.
9204 (TARGET_MD_ASM_CLOBBERS): Remove.
9205 (TARGET_MD_ASM_ADJUST): New.
9206
9207 2015-05-11 Richard Henderson <rth@redhat.com>
9208
9209 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
9210 if noutputs is zero.
9211 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
9212
9213 * cfgexpand.c (expand_asm_operands): Merge into...
9214 (expand_asm_stmt): ... here.
9215
9216 * cfgexpand.c (expand_asm_operands): Don't call
9217 resolve_asm_operand_names.
9218 * stmt.c (resolve_asm_operand_names): Clarify block comment.
9219
9220 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
9221
9222 * dwarf2out.c (gen_member_die): Sanity check that we access
9223 TYPE_MAIN_VARIANT for TYPE_METHODS.
9224 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
9225 checking TYPE_METHODS.
9226 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
9227 if non-null.
9228 (build_distinct_type_copy): Clear TYPE_METHODS.
9229 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
9230 (verify_type): Allow TYPE_METHODS to be error_mark_node.
9231 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
9232
9233 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
9234
9235 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
9236 (emit_pattern_before_setloc): Likewise.
9237
9238 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
9239
9240 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
9241 for define_peephole2s.
9242 (get_peephole2_pattern): New function.
9243 (main): Use it. Call validate_pattern.
9244
9245 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9246
9247 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
9248 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
9249 (Last callee saved reg is different for AVR_TINY architecture)
9250
9251 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
9252
9253 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
9254 when looking for memory references.
9255
9256 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
9257
9258 PR target/65753
9259 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
9260 via function pointers.
9261
9262 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
9263
9264 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
9265 indirect call by forcing address into a pseudo with -fno-plt.
9266 * common.opt (flag_plt): New option.
9267 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
9268 ([-fno-plt]): Document.
9269
9270 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
9271
9272 PR bootstrap/66105
9273 * config/rs6000/option-defaults.h: Add space between string literal
9274 and macro name.
9275
9276 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
9277
9278 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
9279 accross ARM targets.
9280
9281 2015-05-11 Christian Bruel <christian.bruel@st.com>
9282
9283 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
9284 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
9285
9286 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
9287
9288 PR rtl-optimization/66076
9289 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
9290 Don't grow the heap array if it is already big enough from a
9291 previous iteration.
9292
9293 2015-05-11 Christian Bruel <christian.bruel@st.com>
9294
9295 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
9296 (is_called_in_ARM_mode): Remove.
9297 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
9298 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
9299 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
9300 arm_declare_function_name.
9301
9302 2015-05-11 Christian Bruel <christian.bruel@st.com>
9303
9304 * config/arm/arm.c (arm_option_override): Reoganized and split into :
9305 (arm_option_params_internal); New function.
9306 (arm_option_check_internal): New function.
9307 (arm_option_override_internal): New function.
9308 (thumb_code, thumb1_code): Remove.
9309 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
9310 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
9311 (thumb_code, thumb1_code): Remove.
9312 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
9313
9314 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
9315
9316 * config/alpha/alpha.c (alpha_emit_set_const_1)
9317 (alpha_emit_set_long_const, alpha_extract_integer)
9318 (alpha_legitimate_constant_p, alpha_split_const_mov)
9319 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
9320 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
9321 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
9322 HOST_WIDE_INT_1U.
9323 * config/alpha/predicates.md (mode_mask_operand): Do not match
9324 const_double RTX.
9325 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
9326 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
9327 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
9328 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
9329 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
9330
9331 2015-05-11 Jakub Jelinek <jakub@redhat.com>
9332
9333 PR target/65780
9334 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
9335 default_binds_local_p_2.
9336 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
9337 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
9338
9339 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
9340
9341 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
9342
9343 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
9344
9345 Patch by Richard Biener
9346 * coverage.c (coverage_obj_init): Delay building of type variant
9347 until the type is finished.
9348
9349 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
9350
9351 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
9352 mismatch between C and C++ type; compoare correctly ARG_TYPES
9353 for non-prototypes and output correctly parameter index for METHOD_TYPE.
9354 (odr_types_equivalent_p): Fix wording of warning about attributes;
9355 it is OK to match prototype and non-prototype.
9356
9357 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
9358
9359 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
9360 TYPE_ARG_TYPES list.
9361 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
9362 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
9363
9364 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
9365
9366 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
9367 * tree.h (is_lang_specific): Constify.
9368
9369 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
9370
9371 PR tree-optimization/64454
9372 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
9373 Rewrite.
9374
9375 2015-05-08 Jason Merrill <jason@redhat.com>
9376
9377 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
9378 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
9379 config/darwin.h, config/darwin9.h, config/elfos.h,
9380 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
9381 config/microblaze/microblaze.h, config/mips/mips.h,
9382 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
9383 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
9384 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
9385 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
9386 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
9387 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
9388 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
9389 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
9390 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
9391 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
9392 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
9393 between string literal and macro name.
9394
9395 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9396
9397 * jump.c: Change argument types to rtx_insn *.
9398 * rtl.h: Adjust.
9399
9400 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9401
9402 * lra-constraints.c: Change argument type to rtx_insn *.
9403
9404 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9405
9406 * df-problems.c: Change argument type to rtx_insn *.
9407
9408 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9409
9410 * combine.c: Change argument type to rtx_insn *.
9411
9412 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9413
9414 * rtl.h: Adjust.
9415 * rtlanal.c: Change argument type to rtx_insn *.
9416
9417 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9418
9419 * sched-deps.c: Change argument types to rtx_insn *.
9420 * sched-int.h: Adjust.
9421
9422 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9423
9424 * dwarf2cfi.c: Change argument type to rtx_insn *.
9425
9426 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9427
9428 * ira.c (decrease_live_ranges_number): Changetype of local
9429 variable to rtx_insn *.
9430 * recog.c: Change argument types to rtx_insn *.
9431 * recog.h: Adjust.
9432
9433 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9434
9435 * reorg.c: Change argument types to rtx_insn *.
9436
9437 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9438
9439 * ira-color.c: Change argument types to rtx_insn *.
9440 * lra-eliminations.c: Likewise.
9441 * ira.h: Adjust.
9442
9443 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9444
9445 * gcse.c: Change argument types to rtx_insn *.
9446
9447 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9448
9449 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
9450
9451 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9452
9453 * emit-rtl.c (emit_debug_insn_before): Change argument type to
9454 rtx_insn *.
9455 * rtl.h: Adjust.
9456
9457 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9458
9459 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
9460 * rtl.h: Adjust.
9461
9462 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9463
9464 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
9465 * rtl.h: Adjust.
9466
9467 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9468
9469 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
9470 * rtl.h: Adjust.
9471
9472 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9473
9474 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
9475 * rtl.h: Adjust.
9476
9477 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9478
9479 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
9480 to rtx_insn *.
9481 * rtl.h: Adjust.
9482
9483 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9484
9485 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
9486 to rtx_insn *.
9487 * rtl.h: Likewise.
9488
9489 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9490
9491 * except.c (can_nonlocal_goto): Change type of argument to
9492 rtx_insn *.
9493 * rtl.h: Adjust.
9494
9495 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9496
9497 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
9498 * rtl.h: Adjust.
9499
9500 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9501
9502 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
9503 * cfgrtl.c (can_delete_label_p): Adjust.
9504 * rtl.h: likewise.
9505
9506 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9507
9508 * reorg.c (stop_search_p): Change argument to rtx_insn *.
9509
9510 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9511
9512 * except.c (make_reg_eh_region_note): Change argument to
9513 rtx_insn *.
9514 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
9515 * except.h: Adjust.
9516
9517 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9518
9519 * mode-switching.c (commit_mode_sets): Change type of local
9520 variable from rtx to rtx_insn *.
9521
9522 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
9523
9524 * doc/install.texi (--enable-languages): Add missing jit and lto info.
9525 Add ^ to grep command.
9526 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
9527 arg to last gimple_simplify declaration. Add missing gimple_build
9528 declaration for built-in function case with four tree args.
9529
9530 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
9531 Szabolcs Nagy <szabolcs.nagy@arm.com>
9532
9533 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
9534 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
9535 (GNU_USER_DYNAMIC_LINKERN32): Update.
9536
9537 2015-05-08 Richard Biener <rguenther@suse.de>
9538
9539 PR tree-optimization/66036
9540 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9541 Handle strided group loads.
9542 (vect_verify_datarefs_alignment): Likewise.
9543 (vect_enhance_data_refs_alignment): Likewise.
9544 (vect_analyze_group_access): Likewise.
9545 (vect_analyze_data_ref_access): Likewise.
9546 (vect_analyze_data_ref_accesses): Likewise.
9547 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
9548 (vectorizable_load): Likewise.
9549
9550 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
9551
9552 * config/rs6000/rs6000.md: Require operand inequality in one
9553 of the peepholes.
9554
9555 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
9556 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9557
9558 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
9559 from (set ...).
9560 * config/rx/rx.md (movdi, movdf): Likewise.
9561 Likewise for define_peephole2s.
9562
9563 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
9564
9565 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
9566 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
9567 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
9568 vtst_u64): Rewrite using gcc vector extensions.
9569
9570 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
9571
9572 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
9573 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
9574
9575 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
9576
9577 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
9578
9579 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
9580
9581 * config/glibc-stdint.h (OPTION_MUSL): Define.
9582 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
9583 Change the definition based on OPTION_MUSL for 64 bit targets.
9584 * config/linux.h (OPTION_MUSL): Redefine.
9585 * config/alpha/linux.h (OPTION_MUSL): Redefine.
9586 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
9587 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
9588
9589 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
9590 Szabolcs Nagy <szabolcs.nagy@arm.com>
9591
9592 * config.gcc (LIBC_MUSL): New tm_defines macro.
9593 * config/linux.h (OPTION_MUSL): Define.
9594 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
9595 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
9596 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9597 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9598 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9599 * config/linux.opt (mmusl): New option.
9600 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
9601 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9602 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9603 * configure: Regenerate.
9604
9605 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
9606 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9607
9608 PR target/48904
9609 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
9610 * config/i386/knetbsd-gnu64.h: New file.
9611
9612 2015-05-08 Marek Polacek <polacek@redhat.com>
9613
9614 PR c/64918
9615 * doc/invoke.texi: Document -Woverride-init-side-effects.
9616
9617 2015-05-07 Marek Polacek <polacek@redhat.com>
9618
9619 PR c/65179
9620 * doc/invoke.texi: Document -Wshift-negative-value.
9621
9622 2015-05-06 Aditya Kumar <hiraditya@msn.com>
9623
9624 * gcov-tool.c (do_merge): Refactore to remove int ret.
9625 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
9626 !type == FUNC to type != FUNC.
9627 * reload.h (struct target_reload): Changee to type of
9628 x_spill_indirect_levels from bool to unsigned char.
9629
9630 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
9631
9632 * rtl.h (always_void_p): New function.
9633 * gengenrtl.c (always_void_p): Likewise.
9634 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
9635 with code foo are always VOIDmode.
9636 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
9637 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
9638 compare-elim.c, config/aarch64/aarch64.c,
9639 config/aarch64/aarch64.md, config/alpha/alpha.c,
9640 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
9641 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
9642 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
9643 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9644 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
9645 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
9646 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
9647 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
9648 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
9649 config/ia64/vect.md, config/iq2000/iq2000.c,
9650 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
9651 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
9652 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
9653 config/mep/mep.c, config/microblaze/microblaze.c,
9654 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
9655 config/mn10300/mn10300.c, config/msp430/msp430.c,
9656 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
9657 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
9658 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
9659 config/rs6000/altivec.md, config/rs6000/rs6000.c,
9660 config/rs6000/rs6000.md, config/rs6000/vector.md,
9661 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
9662 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
9663 config/sh/sh.md, config/sh/sh_treg_combine.cc,
9664 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
9665 config/spu/spu.md, config/stormy16/stormy16.c,
9666 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
9667 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
9668 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
9669 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
9670 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
9671 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
9672 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
9673 var-tracking.c: Update calls accordingly.
9674
9675 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
9676
9677 PR middle-end/192
9678 PR middle-end/54303
9679 * varasm.c (function_mergeable_rodata_prefix): New function.
9680 (mergeable_string_section): Use it.
9681 (mergeable_constant_section): Use it.
9682
9683 2015-05-07 Jeff Law <law@redhat.com>
9684
9685 PR target/39726
9686 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
9687 simplifier to narrow arithmetic.
9688 * generic-match-head.c: (types_match, single_use): New functions.
9689 * gimple-match-head.c: (types_match, single_use): New functions.
9690
9691 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9692
9693 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
9694 rtx type.
9695
9696 2015-05-07 Richard Biener <rguenther@suse.de>
9697
9698 PR tree-optimization/66002
9699 * passes.def: Schedule another pass_merge_phi after ifcombine, right
9700 before phiopt.
9701
9702 2015-05-07 Marek Polacek <polacek@redhat.com>
9703 Martin Uecker <uecker@eecs.berkeley.edu>
9704
9705 * doc/invoke.texi: Document -fsanitize=bounds-strict.
9706 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
9707 into SANITIZE_NONDEFAULT.
9708 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
9709
9710 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
9711
9712 PR target/66015
9713 * config/alpha/alpha.c (alpha_override_options_after_change): New.
9714 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
9715 (alpha_override_options): Move align_loops, align_jumps and
9716 align_functions handling into alpha_override_options_after_change.
9717
9718 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
9719 Chris Jones <chrisj@nvidia.com>
9720 Joshua Conner <jconner@nvidia.com>
9721
9722 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
9723 linking of crtfastmath.o.
9724 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
9725
9726 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9727
9728 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
9729 (cstore<mode>4_unsigned_imm): New expander.
9730 (cstore<mode>4): Remove empty constraint strings. Use the new
9731 expanders.
9732
9733 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
9734
9735 PR target/64208
9736 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
9737 alternatives.
9738
9739 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9740
9741 * config/aarch64/geniterators.sh: Use standard BRE in sed.
9742
9743 2015-05-06 Alan Modra <amodra@gmail.com>
9744
9745 PR target/66033
9746 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
9747 (UNSPEC_NOP): Define.
9748 (reload_vsx_from_gpr<mode>): Add missing DONE.
9749 (reload_gpr_from_vsx<mode>): Likewise.
9750 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
9751 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
9752
9753 2015-05-06 Christian Bruel <christian.bruel@st.com>
9754
9755 PR target/66015
9756 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
9757 align_jumps, align_functions into aarch64_override_options_after_change.
9758
9759 2015-05-06 Richard Biener <rguenther@suse.de>
9760
9761 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
9762 vect_transform_slp_perm_load to check if we support a permutation
9763 for basic-block vectorization.
9764
9765 2015-05-06 Nick Clifton <nickc@redhat.com>
9766
9767 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
9768 used, even if it is not being used as a frame pointer.
9769
9770 2015-05-05 Jason Merrill <jason@redhat.com>
9771
9772 * dwarf2out.c (gen_member_die): Don't emit anything for an
9773 anonymous class constructor.
9774
9775 2015-05-05 David Malcolm <dmalcolm@redhat.com>
9776
9777 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
9778 that it reflects the block structure.
9779 (afdo_propagate_edge): Likewise.
9780 (afdo_calculate_branch_prob): Likewise.
9781 (afdo_annotate_cfg): Likewise.
9782 * cfgcleanup.c (equal_different_set_p): Likewise.
9783 (try_crossjump_to_edge): Likewise.
9784 * cgraph.c (cgraph_node::verify_node): Likewise.
9785 * cgraphunit.c (expand_all_functions): Likewise.
9786 * config/i386/i386.c (ix86_expand_copysign): Likewise.
9787 (exact_dependency_1): Likewise.
9788 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
9789 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
9790 * gensupport.c (process_define_subst): Likewise.
9791 * lto-wrapper.c (merge_and_complain): Likewise.
9792 * tree-if-conv.c (if_convertible_bb_p): Likewise.
9793 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
9794 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
9795 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
9796 * tree-vect-loop.c (vectorizable_reduction): Likewise.
9797 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
9798 * tree-vect-stmts.c (vectorizable_shift): Likewise.
9799 * tree-vrp.c (vrp_finalize): Likewise.
9800 * tree.c (variably_modified_type_p): Likewise.
9801
9802 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
9803
9804 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
9805 on darwin12 and later.
9806 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
9807 file to pass -rdynamic on darwin12 and later.
9808 * config/darwin.opt (rdynamic): Add.
9809
9810 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
9811
9812 * doc/extend.texi (C Extensions): Update menu for moved Variable
9813 Attributes and Type Attributes sections.
9814
9815 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
9816
9817 PR target/65990
9818 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
9819 if rep_8byte stringop strategy was specified for 32-bit target.
9820
9821 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
9822
9823 PR target/65915
9824 * config/i386/i386.md (vector convert to float spltiter): Check for
9825 xmm16+, when splitting scalar float conversion.
9826 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
9827
9828 2015-05-05 Nick Clifton <nickc@redhat.com>
9829
9830 * config/msp430/msp430-opts.h (enum msp430_regions): New.
9831 * config/msp430/msp430.c (msp430_override_options): Complain if
9832 -mcode-region or -mdata-region is used on a non MSP430X.
9833 (msp430_section_attr): New function. Checks lower, upper and
9834 either attributes.
9835 (msp430_attribute_table): Add lower, upper and either.
9836 (gen_prefix): New function. Generates a prefix for a section
9837 name.
9838 (msp430_select_section): New function - handles the choice of
9839 section for an object. Takes into account memory region
9840 attributes and options.
9841 (msp430_function_section): Use gen_prefix.
9842 (TARGET_SECTION_TYPE_FLAGS): Define.
9843 (msp430_section_type_flags): New function.
9844 (TARGET_ASM_UNIQUE_SECTION): Define.
9845 (msp430_unique_section): New function.
9846 (msp430_output_aligned_decl_common): New function.
9847 (msp430_do_not_relax_short_jumps): New function.
9848 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
9849 Define.
9850 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
9851 * config/msp430/msp430-protos.h
9852 (msp430_do_not_relax_short_jumps): New prototype.
9853 (msp430_output_aligned_decl_common): New prototype.
9854 * config/msp430/msp430.md (length): New attribute.
9855 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
9856 then use a long code sequence for short jumps.
9857 * config/msp430/msp430.opt (mcode-region): New.
9858 (mdata-region): New.
9859 * doc/invoke.texi: Document new options.
9860 * doc/extend.texi: Document new attributes.
9861
9862 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
9863
9864 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
9865 (tune_params): Add field branch_costs.
9866 (aarch64_branch_cost): Declare.
9867 * gcc/config/aarch64.c (generic_branch_cost): New.
9868 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
9869 (cortexa53_tunings): Likewise.
9870 (cortexa57_tunings): Likewise.
9871 (thunderx_tunings): Likewise.
9872 (xgene1_tunings): Likewise.
9873 (aarch64_branch_cost): Define.
9874 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
9875
9876 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
9877
9878 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
9879 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
9880 * config/i386/i386.md: Ditto.
9881 * config/i386/winnt.c: Ditto.
9882
9883 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
9884
9885 * doc/extend.texi (__atomic Builtins): Move implementation details
9886 to the end of the description, rewrite opening paragraphs, state
9887 difference with __sync builtins, state C11/C++11 assumptions,
9888 weaken itemized descriptions, add explanation of memory model
9889 behaviour, expand description of compare-exchange, simplify text.
9890
9891 2015-05-05 Renlin Li <renlin.li@arm.com>
9892
9893 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
9894
9895 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
9896
9897 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
9898 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
9899 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
9900 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
9901 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
9902 * configure: Regenerate.
9903 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
9904 * doc/install.texi (aarch64*-*-*): Document new
9905 --enable-fix-cortex-a53-843419 option.
9906 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
9907 and -mno-fix-cortex-a53-843419 options.
9908
9909 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
9910
9911 PR target/65871
9912 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
9913
9914 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
9915
9916 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
9917 fix overactive TYPE_MIN_VALUE check and add FIXME for type
9918 compatibility problems.
9919
9920 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
9921
9922 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
9923 constraints.
9924 (cbranchsi4_reg): New.
9925 * config/microblaze/microblaze.c
9926 (microblaze_expand_conditional_branch_reg): New.
9927 * config/microblaze/microblaze-protos.h
9928 (microblaze_expand_conditional_branch_reg): New prototype.
9929
9930 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
9931
9932 * config/microblaze/microblaze.md (peephole2): New.
9933
9934 2015-05-04 Jeff Law <law@redhat.com>
9935
9936 Revert:
9937 2015-05-04 Jeff Law <law@redhat.com>
9938
9939 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
9940 simplifier to narrow arithmetic.
9941 * generic-match-head.c: (types_match, single_use): New functions.
9942 * gimple-match-head.c: (types_match, single_use): New functions.
9943
9944 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
9945
9946 PR target/65987
9947 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
9948 (split_branches): Likewise.
9949
9950 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
9951
9952 * common.opt (fdelete-null-pointer-checks): Init to -1.
9953 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
9954 override flag_delete_null_pointer_checks default.
9955 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
9956 behavior re address zero. Better document target-specific behavior.
9957 (-fisolate-errneous-paths-dereference): Mention relationship to
9958 -fdelete-null-pointer-checks.
9959
9960 2015-05-04 Jakub Jelinek <jakub@redhat.com>
9961
9962 PR tree-optimization/65984
9963 * ubsan.c: Include tree-cfg.h.
9964 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
9965 stmt_could_throw_p test, rename can_throw variable to ends_bb.
9966
9967 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
9968
9969 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
9970 to CONST_DOUBLE_P predicate.
9971 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
9972 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
9973 allow only operands that satisfy standard_sse_constant_p predicate.
9974 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
9975 to CONST_DOUBLE_P predicate.
9976
9977 2015-05-04 Jeff Law <law@redhat.com>
9978
9979 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
9980 simplifier to narrow arithmetic.
9981 * generic-match-head.c: (types_match, single_use): New functions.
9982 * gimple-match-head.c: (types_match, single_use): New functions.
9983
9984 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
9985
9986 * config/arm/arm.c: Restore bootstrap.
9987
9988 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
9989
9990 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
9991 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
9992 as CONST_WIDE_INT, not CONST_DOUBLE.
9993 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
9994 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
9995 (ix86_find_base_term): Do not check for CONST_DOUBLE.
9996 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
9997 (ix86_build_signbit_mask): Rewrite using wide ints.
9998 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
9999 (ix86_rtx_costs): Handle CONST_WIDE_INT.
10000 (find_constant): Ditto.
10001 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
10002 using gen_int_mode.
10003 * config/i386/predicates.md (x86_64_immediate_operand)
10004 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
10005 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
10006 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
10007 (const0_operand): Also match const_wide_int.
10008 (constm1_operand): Ditto.
10009 (const1_operand): Ditto.
10010
10011 2015-05-04 Richard Biener <rguenther@suse.de>
10012
10013 PR tree-optimization/65965
10014 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
10015 store groups at gaps.
10016
10017 2015-05-04 Richard Biener <rguenther@suse.de>
10018
10019 PR tree-optimization/65935
10020 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
10021 then make sure to apply that swapping to the IL.
10022
10023 2015-05-04 Jakub Jelinek <jakub@redhat.com>
10024
10025 * Makefile.in (PATCHLEVEL_c): New variable.
10026 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
10027 expand the same way as if DEVPHASE_c was non-empty.
10028
10029 2015-05-04 Kai Tietz <ktietz@redhat.com>
10030
10031 PR target/65559
10032 * lto-wrapper.c (run_gcc): Open filename
10033 in binary-mode.
10034
10035 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
10036
10037 * doc/extend.texi (Variable Attributes, Type Attributes): Move
10038 sections up in file, to immediately after the Function Attributes
10039 section.
10040
10041 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
10042
10043 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
10044
10045 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10046
10047 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
10048 (insert_partition_copy_on_edge): Adjust.
10049 (insert_rtx_to_part_on_edge): Likewise.
10050 (insert_part_to_rtx_on_edge): Likewise.
10051
10052 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10053
10054 * function.c (set_return_jump_label): Change type of argument to
10055 rtx_insn *.
10056 * function.h (set_return_jump_label): Adjust.
10057
10058 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10059
10060 * reload.h (struct reg_equivs_t): Change type of init to
10061 rtx_insn *.
10062 * ira.c (fix_reg_equiv_init): Adjust.
10063 * reload1.c (eliminate_regs_1): Likewise.
10064 (init_eliminable_invariants): Likewise.
10065
10066 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10067
10068 * cselib.c (fp_setter_insn): Take a rtx_insn *.
10069 * cselib.h (fp_setter_insn): Adjust.
10070
10071 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10072
10073 * recog.c (struct validate_replace_src_data): Change type of
10074 insn field to rtx_insn *.
10075 (validate_replace_src_group): Change type of argument to rtx_insn *.
10076 * recog.h (validate_replace_src_group): Adjust.
10077
10078 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10079
10080 * haifa-sched.c: Change the type of some variables to rtx_insn *.
10081 * sched-deps.c: Likewise.
10082 * sched-int.h: Likewise.
10083 * sched-rgn.c: Likewise.
10084 * sel-sched.c: Likewise.
10085
10086 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10087
10088 to rtx_insn *.
10089 * config/i386/i386.c: Change the type of some arguments to
10090 rtx_insn *.
10091 * config/arm/arm.c: Likewise.
10092
10093 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10094
10095 * lra-constraints.c: Change type of some arguments to rtx_insn *.
10096
10097 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10098
10099 * regcprop.c (kill_autoinc_value): Change type of argument to
10100 rtx_insn *.
10101
10102 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10103
10104 * genrecog.c (print_subroutine): Adjust.
10105 * recog.c (get_bool_attr_mask_uncached): Likewise.
10106 * recog.h (struct recog_data_d): Change the type of insn to
10107 rtx_insn *.
10108
10109 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10110
10111 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
10112
10113 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10114
10115 * df-problems.c (df_set_note): Change type of argument to
10116 rtx_insn *.
10117
10118 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10119
10120 * builtins.c (expand_builtin_trap): Change type of local
10121 variable to rtx_insn *.
10122 (add_sched_insns_for_speculation): Likewise.
10123 (ix86_emit_save_regs): Likewise.
10124 (get_scratch_register_on_entry): Likewise.
10125 (ix86_emit_restore_reg_using_pop): Likewise.
10126 (ix86_emit_leave): Likewise.
10127 (ix86_emit_restore_regs_using_mov): Likewise.
10128 (ix86_expand_epilogue): Likewise.
10129 Likewise.
10130 (rl78_alloc_physical_registers_umul): Likewise.
10131 * cselib.c (discard_useless_locs): Likewise.
10132 (cselib_invalidate_regno): Likewise.
10133 (cselib_invalidate_mem): Likewise.
10134 * function.c (expand_function_start): Likewise.
10135 (emit_use_return_register_into_block): Likewise.
10136 * gcse.c: Likewise.
10137 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
10138 * ifcvt.c (noce_get_alt_condition): Likewise.
10139 * loop-doloop.c (doloop_condition_get): Likewise.
10140 * lra-constraints.c (inherit_in_ebb): Likewise.
10141 * modulo-sched.c (sms_schedule_by_order): Likewise.
10142 * recog.c (next_insn_tests_no_inequality): Likewise.
10143 * reorg.c (emit_delay_sequence): Likewise.
10144 (update_reg_dead_notes): Likewise.
10145 (fix_reg_dead_note): Likewise.
10146 (fill_slots_from_thread): Likewise.
10147 (delete_computation): Likewise.
10148
10149 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
10150
10151 * doc/extend.texi (Variable Attributes): Add menu and proper
10152 @nodes to subsections. Move Microsoft Windows attributes to
10153 their own subsection.
10154 (Type Attributes): Reorganize introduction to remove duplicate
10155 list of attributes. Add menu and proper @nodes to subsections.
10156 Alphabetize the main table of common attributes.
10157
10158 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
10159
10160 * match.pd: New simplification patterns.
10161 (x + (x & 1)) -> ((x + 1) & ~1)
10162 (x & ~(x & y)) -> ((x & ~y))
10163 (x | ~(x | y)) -> ((x | ~y))
10164
10165 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10166
10167 * target.def (attribute_table): Mention that struct attribute_spec
10168 is defined in tree-core.h rather than tree.h
10169 * doc/tm.texi: Regenerate.
10170
10171 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
10172
10173 * genrecog.c (test): Rename to rtx_test. Update rest of file
10174 accordingly.
10175
10176 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
10177
10178 PR translation/65959
10179 * params.h (DEFPARAM): Rename msgid to nocmsgid.
10180
10181 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
10182
10183 * gcc/config/aarch64/aarch64-protos.h (tune_params):
10184 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
10185 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
10186 Return value depending on target.
10187 (generic_tunings): Initialize new target settings.
10188 (cortexa53_tunings): Likewise.
10189 (cortexa57_tunings): Likewise.
10190 (thunderx_tunings): Likewise.
10191 (xgene1_tunings): Likewise.
10192
10193 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
10194
10195 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
10196 Make Cortex-A53 shift costs more accurate.
10197
10198 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10199
10200 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
10201 UNSIGNED_FLOAT.
10202
10203 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
10204
10205 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
10206 Calculate cost of op0 and op1 in PLUS and MINUS cases.
10207
10208 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10209
10210 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
10211 Add cost of op0 in the compare-with-fpzero case.
10212
10213 2015-04-30 David Malcolm <dmalcolm@redhat.com>
10214
10215 * builtins.c (fold_builtin_1): Remove spurious second
10216 semicolon.
10217 * cgraph.h (symtab_node::get_availability): Likewise.
10218 * opts.c (common_handle_option): Remove spurious second semicolon.
10219 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
10220 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
10221
10222 2015-04-30 Caroline Tice <cmtice@google.com>
10223
10224 PR gcov-profile/65929
10225 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
10226 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
10227 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
10228 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
10229 * doc/tm.texi: Regenerate.
10230 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
10231 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
10232 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
10233 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
10234
10235 2015-04-30 Marek Polacek <polacek@redhat.com>
10236
10237 * varasm.c (handle_cache_entry): Fix logic.
10238
10239 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10240
10241 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
10242 (*extrsi5_insn_uxtw_alt): Likewise.
10243 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
10244 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
10245 operations.
10246
10247 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10248
10249 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
10250 fabd in ABS case.
10251
10252 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10253
10254 * config/aarch64/aarch64.md
10255 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
10256 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
10257 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
10258 appropriately. Handle alternative EON form.
10259
10260 2015-04-30 Renlin Li <renlin.li@arm.com>
10261
10262 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
10263 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
10264
10265 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
10266
10267 PR ipa/65873
10268 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
10269 -fstrict-aliasing boundaries.
10270
10271 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10272
10273 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
10274 and [SU]MNEGL patterns.
10275
10276 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10277
10278 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
10279 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
10280 combined arithmetic-shift ops. Properly handle all shift and extend
10281 operations that can occur in combination with PLUS/MINUS.
10282 Rename maybe_fma to compound_p.
10283 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
10284 arithmetic and shift operations.
10285
10286 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10287
10288 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
10289 rather than arith_shift cost when costing ADD/MINUS of an
10290 extended value.
10291
10292 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
10293
10294 PR lto/65948
10295 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
10296 to itself.
10297
10298 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
10299
10300 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
10301 are for the same position.
10302
10303 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
10304
10305 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
10306 vectorize_loops.
10307 (vectorize_loops): Use it.
10308
10309 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
10310
10311 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
10312 for aggregate types.
10313 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
10314 type to be non_ODR.
10315 * tree.c (need_assembler_name_p): Compute mangled name for
10316 non-fundamental types and integer types.
10317
10318 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
10319
10320 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
10321 manual swaps.
10322 * expr.c (expand_expr_real_2): Likewise.
10323
10324 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
10325
10326 * tree.c (build_common_builtin_nodes): Do not build
10327 __builtin_alloca_with_align as equivalent of library alloca.
10328
10329 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
10330
10331 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
10332 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
10333 bugus variants.
10334 * tree.c: Include print-tree.h and ipa-utils.h
10335 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
10336 (free_lang_data_in_cgraph): Call verify_type.
10337 (verify_type_variant): New function.
10338 (verify_type): New function.
10339 * tree.h (verify_type): Declare.
10340
10341 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
10342
10343 * config/mips/mips-cpus.def: (mips4): Change default processor
10344 from PROCESSOR_R8000 to PROCESSOR_R10000.
10345
10346 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
10347
10348 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
10349 la/jalr instead of jal.
10350
10351 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
10352
10353 PR target/65871
10354 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
10355 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
10356 (setcc+movzbl peephole2): Check also clobbered reg.
10357 (setcc+andl peephole2): Ditto.
10358
10359 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
10360
10361 PR libgomp/65099
10362 * config/nvptx/mkoffload.c (target_ilp32): New variable.
10363 (main): Set it depending on "-foffload-abi=[...]".
10364 (compile_native, main): Use it to pass "-m32" or "-m64" to the
10365 compiler.
10366
10367 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
10368
10369 PR target/65770
10370 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
10371 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
10372 Flip lane index back at assembly time for bigendian.
10373
10374 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
10375
10376 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
10377 * gimplify.c (gimplify_omp_workshare): Use it.
10378
10379 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
10380
10381 * Makefile.in (build/genrecog.o): Depend on inchash.h.
10382 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
10383 build/inchash.o
10384 * genrecog.c: Rewrite most of the code except for the third page.
10385
10386 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
10387
10388 * inchash.h, inchash.c: Include bconfig.h for build objects.
10389 * Makefile.in (build/inchash.o): New rule.
10390
10391 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
10392
10393 PR target/65924
10394 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
10395 number in type attribute expression.
10396
10397 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
10398
10399 * loop-iv.c (canon_condition): Generalize to all types of integer
10400 constant.
10401
10402 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
10403
10404 * gimple-walk.c: Prune duplicate or unneeded includes.
10405 (walk_gimple_asm): Only call parse_input_constraint or
10406 parse_output_constraint if their findings are used.
10407 Honour parse_input_constraint and parse_output_constraint
10408 result.
10409
10410 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
10411
10412 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
10413
10414 2015-04-29 Tom de Vries <tom@codesourcery.com>
10415
10416 PR tree-optimization/65893
10417 * passes.def (pass_all_optimizations): Move pass_stdarg to after
10418 pass_dce.
10419
10420 2015-04-29 Richard Biener <rguenther@suse.de>
10421
10422 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
10423 compute GROUP_SIZE for basic-block SLP.
10424 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
10425 take into account gaps.
10426 (vect_get_mask_element): Properly reject references to previous
10427 vectors.
10428 (vect_transform_slp_perm_load): Likewise.
10429
10430 2015-04-29 Christian Bruel <christian.bruel@st.com>
10431
10432 PR target/64835
10433 * config/i386/i386.c (ix86_default_align): New function.
10434 (ix86_override_options_after_change): Call ix86_default_align.
10435 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
10436 (ix86_override_options_after_change): New function.
10437
10438 2015-04-28 Jeff Law <law@redhat.com>
10439
10440 * tree-ssa-dom.c (record_equality); Fix comment typos.
10441
10442 2015-04-28 Tom de Vries <tom@codesourcery.com>
10443
10444 PR tree-optimization/65887
10445 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
10446
10447 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
10448
10449 * doc/extend.texi (Declaring Attributes of Functions): Split into
10450 subsections by target. Alphabetize the table of common attributes.
10451 Rewrite some of the introductory text to reflect the new structure.
10452 Update some cross-references to point to the new subsections.
10453 (Attribute Syntax): Put paragraph about "__" naming here. Remove
10454 duplicate copies in the discussion of function, label, and type
10455 attributes.
10456
10457 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
10458
10459 PR bootstrap/65910
10460 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
10461
10462 2015-04-28 Jason Merrill <jason@redhat.com>
10463
10464 PR c++/65734
10465 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
10466 (finalize_type_size): Respect TYPE_USER_ALIGN.
10467 (layout_type) [ARRAY_TYPE]: Likewise.
10468
10469 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
10470
10471 * config/arm/arm.md (*arm_movt): Fix type attribute.
10472 (*cmpsi_shiftsi): Likewise.
10473 (*cmpsi_shiftsi_swp): Likewise.
10474 (*movsicc_insn): Likewise.
10475 (*cond_move): Likewise.
10476 (*if_plus_move): Likewise.
10477 (*if_move_plus): Likewise.
10478 (*if_arith_move): Likewise.
10479 (*if_move_arith): Likewise.
10480 (*if_shift_move): Likewise.
10481 (*if_move_shift): Likewise.
10482 (*arm_movtas_ze): Likewise.
10483 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
10484 redundancy and type attribute.
10485 (*thumb2_movsi_insn): Fix type attribute.
10486 (*thumb2_addsi_short): Likewise.
10487 (thumb2_addsi3_compare0): Likewise.
10488 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
10489 attributes accordingly.
10490
10491 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
10492
10493 PR other/65911
10494 * function.c (pad_to_arg_alignment): Add parentheses.
10495
10496 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
10497
10498 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
10499 libgcc/config/frv/elf-lib.h.
10500
10501 2015-04-28 Tom de Vries <tom@codesourcery.com>
10502
10503 * tree-call-cdce.c: Fix example in header comment.
10504
10505 2015-04-28 Richard Biener <rguenther@suse.de>
10506
10507 PR tree-optimization/62283
10508 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
10509 fails fatally and we are vectorizing a basic-block simply
10510 cause the child to be constructed piecewise.
10511 (vect_analyze_slp_cost_1): Adjust.
10512 (vect_detect_hybrid_slp_stmts): Likewise.
10513 (vect_bb_slp_scalar_cost): Likewise.
10514 (vect_get_constant_vectors): For piecewise constructed
10515 constants place them after the last def.
10516 (vect_get_slp_defs): Adjust.
10517 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
10518 externals for basic-block vectorization.
10519
10520 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
10521
10522 PR target/63503
10523 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
10524 aarch64-*-*.
10525 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
10526 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
10527 (AARCH64_TUNE_FMA_STEERING): Likewise.
10528 * config/aarch64/aarch64-cores.def: Set
10529 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
10530 FMUL/FMADD instructions.
10531 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
10532 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
10533 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
10534 * config/aarch64/cortex-a57-fma-steering.h: New file.
10535 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10536
10537 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
10538
10539 * gensupport.c (std_preds): Add missing codes to address_operand entry.
10540
10541 2015-04-28 Richard Biener <rguenther@suse.de>
10542
10543 PR tree-optimization/65851
10544 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
10545 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
10546 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
10547 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
10548 (ccp_visit_phi_node): Adjust.
10549 (evaluate_stmt): For simplifications to SSA names return its
10550 lattice value if that isn't VARYING. Return immediately when
10551 simplified to a constant.
10552 (visit_assignment): Adjust.
10553 (ccp_visit_stmt): Likewise.
10554
10555 2015-04-28 Tom de Vries <tom@codesourcery.com>
10556
10557 PR tree-optimization/65818
10558 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
10559 evaluated.
10560
10561 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10562
10563 * calls.c (save_fixed_argument_area): Don't check
10564 ARGS_GROW_DOWNWARD with the preprocessor.
10565 (restore_fixed_argument_area): Likewise.
10566 (mem_overlaps_already_clobbered_arg_p): Likewise.
10567 (check_sibcall_argument_overlap): Likewise.
10568 (expand_call): Likewise.
10569 (emit_library_call_value_1): Likewise.
10570 (store_one_arg): Likewise.
10571 * function.c (assign_parms): Likewise.
10572 (locate_and_pad_parm): Likewise.
10573 (pad_to_arg_alignment): Likewise.
10574 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
10575
10576 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10577
10578 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
10579 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
10580 * calls.c (save_fixed_argument_area): Don't chekc if
10581 ARGS_GROW_DOWNWARD is defined.
10582 (restore_fixed_argument_area): Likewise.
10583 (mem_overlaps_already_clobbered_arg_p): Likewise.
10584 (check_sibcall_argument_overlap): Likewise.
10585 (expand_call): Likewise.
10586 (emit_library_call_value_1): Likewise.
10587 (store_one_arg): Likewise.
10588 * function.c (assign_parms): Likewise.
10589 (locate_and_pad_parm): Likewise.
10590 (pad_to_arg_alignment): Likewise.
10591 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
10592
10593 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10594
10595 * defaults.h (gen_epilogue): New function.
10596 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
10597 defined.
10598 * cfgrtl.c (cfg_layout_finalize): Likewise.
10599 * df-scan.c: Likewise.
10600 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10601 (reposition_prologue_and_epilogue_notes): Likewise.
10602 * reorg.c (find_end_label): Likewise.
10603 * toplev.c: Likewise.
10604
10605 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10606
10607 * bb-reorder.c (HAVE_return): Don't check if its undefined.
10608 * defaults.h (gen_simple_return): New function.
10609 (gen_simple_return): Likewise.
10610 (HAVE_return): Add default definition to false.
10611 (HAVE_simple_return): Likewise.
10612 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
10613 HAVE_return and HAVE_simple_return are defined.
10614 * function.c (gen_return_pattern): Likewise.
10615 (convert_jumps_to_returns): Likewise.
10616 (thread_prologue_and_epilogue_insns): Likewise.
10617 * reorg.c (find_end_label): Likewise.
10618 (dbr_schedule): Likewise.
10619 * shrink-wrap.c: Likewise.
10620 * shrink-wrap.h: Likewise.
10621
10622 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10623
10624 * defaults.h (EPILOGUE_USES): Add default definition of false.
10625 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
10626 * resource.c (init_resource_info): Likewise.
10627
10628 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10629
10630 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
10631 to false.
10632 * dwarf2out.c (field_byte_offset): REmove check if
10633 PCC_BITFIELD_TYPE_MATTERS is defined.
10634 * stor-layout.c (layout_decl): Likewise.
10635 (update_alignment_for_field): Likewise.
10636 (place_field): Likewise.
10637
10638 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10639
10640 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
10641 true.
10642 * regrename.c (check_new_reg_p): Remove check if
10643 HARD_REGNO_RENAME_OK is defined.
10644 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
10645
10646 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10647
10648 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
10649 * cse.c (fold_rtx): Likewise.
10650 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
10651 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
10652 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
10653 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
10654 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
10655 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
10656 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
10657 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
10658 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
10659 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
10660 * Likewise.
10661 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
10662 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
10663 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
10664 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
10665 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
10666 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
10667 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
10668 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
10669 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
10670 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
10671 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
10672 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
10673 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
10674 * doc/tm.texi: Regenerate.
10675 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
10676 either true or false.
10677
10678 2015-04-27 Jeff Law <law@redhat.com>
10679
10680 PR tree-optimization/65217
10681 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
10682 of them has a single use, make sure it is the LHS of the implied
10683 copy.
10684
10685 2015-04-28 Alan Modra <amodra@gmail.com>
10686
10687 PR target/65810
10688 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
10689 (offsettable_ok_by_alignment): Use minimum of decl and toc
10690 pointer alignment. Replace dead code with assertion.
10691 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
10692 case if size exceeds toc pointer alignment.
10693 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
10694 (rs6000_emit_move): Likewise.
10695 * configure.ac: Add linker toc pointer alignment check.
10696 * configure: Regenerate.
10697 * config.in: Regenerate.
10698
10699 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
10700
10701 * config.gcc: Add h8300-*-linux.
10702 * config/h8300/linux.h: New.
10703 * config/h8300/t-linux: New.
10704 * config/h8300/h8300.c (h8300_option_override): Normal mode
10705 is not supported for h8300-*-linux.
10706 (h8300_file_start): Target priority change.
10707 (get_shift_alg): Likewise.
10708 (h8300_shift_need_scratch_p): Likewise.
10709 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
10710 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
10711
10712 2015-04-27 Caroline Tice <cmtice@google.com>
10713
10714 * final.c (final_scan_insn): Output cold_function_name as function
10715 type.
10716 * varasm.c (cold_function_name): Make global.
10717 (assemble_start_function): Re-set cold_function_name.
10718 (assemble_end_function): Output cold partition size.
10719 * varasm.h (cold_function_name): Declare global.
10720
10721 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
10722
10723 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
10724 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
10725 constraint.
10726 (*movxi_internal_avx512f): Ditto.
10727 (define_split): Check for xmm16+, when splitting scalar float_extend.
10728 (*extendsfdf2_mixed): Use "v" constraint.
10729 (define_split): Check for xmm16+, when splitting scalar float_truncate.
10730 (*truncdfsf_fast_sse): Use "v" constraint.
10731 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
10732 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
10733 (define_peephole2): Check for xmm16+, when converting scalar
10734 float_truncate.
10735 (define_peephole2): Check for xmm16+, when converting scalar
10736 float_extend.
10737 (*fop_<mode>_comm_mixed): Use "v" constraint.
10738 (*fop_<mode>_comm_sse): Ditto.
10739 (*fop_<mode>_1_mixed): Ditto.
10740 (*sqrt<mode>2_sse): Ditto.
10741 (*ieee_s<ieee_maxmin><mode>3): Ditto.
10742
10743 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10744
10745 * combine.c (simplify_if_then_else): Use std::swap instead
10746 of manually swapping.
10747 (known_cond): Likewise.
10748 (simplify_comparison): Likewise.
10749
10750 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
10751
10752 PR target/64579
10753 * config/rs6000/htm.md: Remove all define_expands.
10754 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
10755 UNSPECV_HTM_TABORTWCI): Remove.
10756 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
10757 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
10758 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
10759 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
10760 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
10761 tabortwci_internal): Remove define_insns.
10762 (tabort<wd>c, tabort<wd>ci): New define_insns.
10763 (tabort): Use gpc_reg_operand.
10764 (tcheck): Remove operand.
10765 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
10766 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
10767 expected value.
10768 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
10769 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
10770 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
10771 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
10772 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
10773 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
10774 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
10775 (tcheck): Remove builtin argument.
10776 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
10777 not TARGET_64BIT.
10778 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
10779 tabortdc and tabortdci builtins when not in 64-bit mode.
10780 Modify code to handle the loss of the HTM define_expands.
10781 Emit code to copy the CR register to TARGET.
10782 (htm_init_builtins): Modify code to handle the loss of the HTM
10783 define_expands.
10784 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
10785 (RS6000_BTC_64BIT): Likewise.
10786 (RS6000_BTC_CR): New macro.
10787 * doc/extend.texi: Update documentation for htm builtins.
10788
10789 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10790
10791 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
10792 of manually swapping.
10793 (simplify_associative_operation): Likewise.
10794 (simplify_binary_operation): Likewise.
10795 (simplify_plus_minus): Likewise.
10796 (simplify_relational_operation): Likewise.
10797 (simplify_ternary_operation): Likewise.
10798
10799 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
10800
10801 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
10802 (xs_hi_nonmemory_operand): Remove error.
10803 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
10804 general_operand rather than xs_hi_general_operand.
10805
10806 2015-04-27 Richard Biener <rguenther@suse.de>
10807
10808 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
10809 (record_equivalences_from_stmt): Valueize rhs.
10810 (record_equality): Canonicalize x and y order via
10811 tree_swap_operands_p. Do not swap operands for same loop depth.
10812
10813 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
10814
10815 PR target/65296
10816 PR target/65895
10817 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
10818 Add hint how to use own spec file.
10819
10820 2015-04-27 Jakub Jelinek <jakub@redhat.com>
10821
10822 PR tree-optimization/65875
10823 * tree-vrp.c (update_value_range): If in is_new case setting
10824 old_vr to VR_VARYING, also set new_vr to it. Remove
10825 old_vr->type == VR_VARYING test.
10826 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
10827 SSA_PROP_INTERESTING if update_value_range returned true,
10828 but new range is VR_VARYING.
10829
10830 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
10831
10832 * combine.c (sign_extend_short_imm): New.
10833 (set_nonzero_bits_and_sign_copies): Use above new function for sign
10834 extension of src short immediate.
10835 (reg_nonzero_bits_for_combine): Likewise for tem.
10836
10837 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
10838
10839 * stor-layout.c (self_referential_component_ref_p): New predicate.
10840 (copy_self_referential_tree_r): Use it.
10841 (self_referential_size): Punt for simple operations directly involving
10842 self-referential component references.
10843 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
10844
10845 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
10846
10847 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
10848
10849 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
10850
10851 * vec.h (vec): Make splice arguments const. Update definitions
10852 accordingly.
10853
10854 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
10855
10856 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
10857 alternatives.
10858
10859 2015-04-26 Tom de Vries <tom@codesourcery.com>
10860
10861 PR tree-optimization/65826
10862 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
10863
10864 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
10865
10866 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
10867 (*madd3<mode>): Ditto.
10868 (*msub4<mode>): Ditto.
10869 (*msub3<mode>): Ditto.
10870 (*nmadd4<mode>): Ditto.
10871 (*nmadd3<mode>): Ditto.
10872 (*nmadd4<mode>_fastmath): Ditto.
10873 (*nmadd3<mode>_fastmath): Ditto.
10874 (*nmsub4<mode>): Ditto.
10875 (*nmsub3<mode>): Ditto.
10876 (*nmsub4<mode>_fastmath): Ditto.
10877 (*nmsub3<mode>_fastmath): Ditto.
10878
10879 2015-04-24 Jason Merrill <jason@redhat.com>
10880
10881 PR c++/50800
10882 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
10883 down when building TYPE_CANONICAL.
10884 (build_pointer_type_for_mode): Likewise.
10885
10886 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
10887
10888 * genrecog.c (validate_pattern): Check matching constraint refers
10889 to a lower numbered operand.
10890
10891 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
10892
10893 PR target/65849
10894 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
10895 save to independent variables use the Save attribute. This will
10896 allow these options to be modified with the #pragma/attribute
10897 target support.
10898 (-mallow-movmisalign): Likewise.
10899 (-mallow-df-permute): Likewise.
10900 (-msched-groups): Likewise.
10901 (-malways-hint): Likewise.
10902 (-malign-branch-targets): Likewise.
10903 (-mvectorize-builtins): Likewise.
10904 (-msave-toc-indirect): Likewise.
10905
10906 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
10907 can be set via the #pragma/attribute target support.
10908 (rs6000_opt_vars): Likewise.
10909 (rs6000_inner_target_options): If VSX was set, also set
10910 -mno-avoid-indexed-addresses.
10911
10912 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10913
10914 * config/arm/iterators.md (shiftable_ops): Rename to...
10915 (SHIFTABLE_OPS): ... This. Update use in comments.
10916 (ior_xor): Rename to...
10917 (IOR_XOR): ... This.
10918 (vqh_ops): Rename to...
10919 (VQH_OPS): ... This.
10920 (vqhs_ops): Rename to...
10921 (VQHS_OPS): ... This.
10922 (rshifts): Rename to...
10923 (RSHIFTS): ... This.
10924 (returns): Rename to...
10925 (RETURNS): ... This.
10926 * config/arm/arm.md: Update uses of the above.
10927 * config/arm/neon.md: Likewise.
10928
10929 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10930
10931 * config.host (case ${host}): Add aarch64*-*-linux case.
10932 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
10933 fields to all the cores.
10934 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
10935 Add MCPU_MTUNE_NATIVE_SPECS.
10936 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
10937 field to all extensions.
10938 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
10939 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
10940 Adjust definition of AARCH64_OPT_EXTENSION.
10941 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
10942 (MCPU_MTUNE_NATIVE_SPECS): Define.
10943 * config/aarch64/driver-aarch64.c: New file.
10944 * config/aarch64/x-arch64: New file.
10945 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
10946 -mtune and -march.
10947
10948 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
10949 Wei Mi <wmi@google.com>
10950
10951 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
10952 * config/i386/i386.c (extract_base_offset_in_addr): New function.
10953 (ix86_operands_ok_for_move_multiple): Ditto.
10954 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
10955 (movlpd/movhpd to movupd peephole2): Ditto.
10956
10957 2015-04-24 Marek Polacek <polacek@redhat.com>
10958
10959 PR c/61534
10960 * input.h (from_macro_expansion_at): Define.
10961
10962 PR c/63357
10963 * doc/invoke.texi: Update description of -Wlogical-op.
10964
10965 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
10966
10967 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
10968 ternary operator in fprintf and harmonize spacing.
10969
10970 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
10971
10972 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
10973 Mark operand1 commutative.
10974
10975 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
10976
10977 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
10978 input operands in memory.
10979 (*vec_concatv2si_sse4_1): Ditto.
10980 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
10981 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
10982 register_operand.
10983 (vec_extract_hi_v32hi): Ditto.
10984 (vec_extract_hi_v64hi): Ditto.
10985 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
10986
10987 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
10988 Steven Bosscher <steven@gcc.gnu.org>
10989
10990 PR rtl-optimization/34503
10991 * cprop.c (cprop_reg_p): New.
10992 (hash_scan_set): Use above function to check if register can be
10993 propagated.
10994 (find_avail_set): Return up to two sets, one whose source is a
10995 register and one whose source is a constant. Sets are returned in an
10996 array passed as parameter rather than as a return value.
10997 (cprop_insn): Use a do while loop rather than a goto. Try each of the
10998 sets returned by find_avail_set, starting with the one whose source is
10999 a constant. Use cprop_reg_p to check if register can be propagated.
11000 (do_local_cprop): Use cprop_reg_p to check if register can be
11001 propagated.
11002 (implicit_set_cond_p): Likewise.
11003
11004 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
11005
11006 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
11007 (sem_function::equals): IGNORED_NODES parameter is now unused;
11008 update call of equals_private.
11009 (sem_function::equals_private): Do not call equals_wpa; skip
11010 gimple body matching if there is no body.
11011 (sem_function::init): Add logic to hash tthunk info.
11012 (sem_function::parse): Also parse thunks.
11013 * ipa-icf.h (equals_private): Update declaration.
11014
11015 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11016
11017 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
11018 asterisk from name so this can be generated directly.
11019 (*altivec_stvx_<mode>_internal): Likewise.
11020 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
11021 that this is never called during or after reload/lra.
11022 (rs6000_frame_related): Remove split_reg
11023 argument and logic that references it.
11024 (emit_frame_save): Remove last parameter from call to
11025 rs6000_frame_related.
11026 (rs6000_emit_prologue): Remove last parameter from eight calls to
11027 rs6000_frame_related. Force generation of stvx instruction for
11028 Altivec register saves. Remove split_reg handling, which is no
11029 longer needed.
11030 (rs6000_emit_epilogue): Force generation of lvx instruction for
11031 Altivec register restores.
11032
11033 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11034
11035 * config/rs6000/rs6000.opt (mcrypto): Change option description to
11036 match category changes in ISA 2.07B.
11037
11038 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11039
11040 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
11041 iterators.
11042 (cmp_op, cmp_type): New code attributes.
11043 (NEON_VCMP, NEON_VACMP): New int iterators.
11044 (cmp_op_unsp): New int attribute.
11045 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
11046 (neon_vceq<mode>): Delete.
11047 (neon_vc<cmp_op><mode>_insn): New pattern.
11048 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
11049 (neon_vcgeu<mode>): Delete.
11050 (neon_vcle<mode>): Likewise.
11051 (neon_vclt<mode>: Likewise.
11052 (neon_vcage<mode>): Likewise.
11053 (neon_vcagt<mode>): Likewise.
11054 (neon_vca<cmp_op><mode>): New define_expand.
11055 (neon_vca<cmp_op><mode>_insn): New pattern.
11056 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
11057
11058 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
11059
11060 * tree.h (attribute_value_equal): Declare.
11061 * tree.c (attribute_value_equal): Export.
11062
11063 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
11064
11065 * ipa-icf.c (sem_item::compare_attributes): New function.
11066 (sem_item::compare_referenced_symbol_properties): Compare variable
11067 attributes.
11068 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
11069 (sem_function::param_used_p): New function.
11070 (sem_function::equals_wpa): Fix attribute comparsion; match
11071 parameter type codes; do not compare paremter flags when
11072 they are not used; compare edge flags; compare indirect calls.
11073 (sem_item::update_hash_by_addr_refs): Hash reference type.
11074 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
11075 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
11076 reference use type.
11077 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
11078 * ipa-icf.h (compare_attributes, param_used_p): Declare.
11079
11080 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
11081
11082 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
11083 cleanup.
11084 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
11085 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
11086 (sem_item::compare_referenced_symbol_properties): New.
11087 (sem_item::hash_referenced_symbol_properties): New.
11088 (sem_item::compare_cgraph_references): Rename to ...
11089 (sem_item::compare_symbol_references): ... this one; use
11090 compare_referenced_symbol_properties.
11091 (sem_function::equals_wpa): Do not compare
11092 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
11093 DECL_IS_OPERATOR_NEW; compare pointer sizes.
11094 (sem_item::update_hash_by_addr_refs): Call
11095 hash_referenced_symbol_properties.
11096 (sem_item::update_hash_by_local_refs): Cleanup.
11097 (sem_function::merge): Do not mix up symbol properties.
11098 (sem_variable::equals_wpa): Use compare_symbol_references.
11099 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
11100 (sem_item::hash_referenced_symbol_properties): New.
11101 (sem_item::compare_symbol_references): New.
11102 (sem_item::compare_cgraph_references): Remove.
11103
11104 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
11105
11106 PR target/26702
11107 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
11108 Emit size of local.
11109
11110 2015-04-23 Nick Clifton <nickc@redhat.com>
11111
11112 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
11113 ATTRIBUTE_UNUSED to x parameter.
11114 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
11115
11116 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11117
11118 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
11119 TARGET_CRYPTO to TARGET_P8_VECTOR>
11120 (crypto_vpermxor_<mode>): Likewise.
11121 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
11122 (BU_CRYPTO_3A): Likewise.
11123 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
11124 (BU_CRYPTO_OVERLOAD_3A): New #define.
11125 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
11126 (VPMSUMH): Likewise.
11127 (VPMSUMW): Likewise.
11128 (VPMSUMD): Likewise.
11129 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
11130 (VPERMXOR_V4SI): Likewise.
11131 (VPERMXOR_V8HI): Likewise.
11132 (VPERMXOR_V16QI): Likewise.
11133 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
11134 BU_CRYPTO_OVERLOAD_2A.
11135 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
11136 BU_CRYPTO_OVERLOAD_3A.
11137 * config/rs6000/rs6000.opt (mcrypto): Change description of
11138 option.
11139
11140 2015-04-23 Richard Biener <rguenther@suse.de>
11141
11142 * passes.def: Remove copy propagation passes run directly after CCP.
11143 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
11144 SSA names.
11145 (ccp_visit_phi_node): Rework to handle first executable edge
11146 specially.
11147
11148 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
11149
11150 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
11151 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
11152 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
11153 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
11154 (thumb_legimitimize_reload_address): Remove.
11155 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
11156 Remove.
11157 (thumb_legimitimize_reload_address): Remove.
11158
11159 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11160
11161 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
11162
11163 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11164
11165 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
11166 MAX_LDM_STM_OPS.
11167 (store_multiple): Likewise.
11168
11169 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11170
11171 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
11172 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
11173 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
11174 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
11175 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
11176 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
11177 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
11178 Specify issue_rate value.
11179 (arm_issue_rate): Look up issue rate from tuning structs. Remove
11180 large switch statement.
11181 (arm_marvell_pj4_tune): New struct.
11182 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
11183 struct.
11184
11185 2015-04-23 Richard Biener <rguenther@suse.de>
11186
11187 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
11188 (vect_find_last_store_in_slp_instance): Rename to ...
11189 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
11190 (vect_analyze_slp_cost_1): Use vector_load for constant defs
11191 and vec_construct for external defs when estimating prologue cost.
11192 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
11193 Compute costs here only when vectorizing loops.
11194 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
11195 have been determined.
11196 (vect_schedule_slp_instance): Simplify vectorized code placement
11197 and prepare for in-BB external defs.
11198 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
11199 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
11200 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
11201 guard.
11202 (vect_model_load_cost): Likewise.
11203 (vectorizable_store): Instead add it here.
11204 (vectorizable_load): Likewise.
11205 (vect_is_simple_use): Dump def type textually.
11206
11207 2015-04-23 Richard Biener <rguenther@suse.de>
11208
11209 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
11210 * cfgloop.c (verify_loop_structure): Verify the root loop node.
11211 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
11212 instead of get_eh_region_from_lp_number.
11213 * loop-init.c (fix_loop_structure): If we removed a loop, reset
11214 the SCEV cache.
11215
11216 2015-04-23 Anton Blanchard <anton@samba.org>
11217
11218 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
11219 need for -mprofile-kernel to save LR to stack.
11220
11221 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11222
11223 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
11224 adjustments.
11225 (insn_is_swappable_p): Return 1 for a convert from double to
11226 single precision when all of its uses are splats of BE element
11227 zero.
11228
11229 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11230
11231 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
11232
11233 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11234
11235 PR target/65456
11236 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
11237 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
11238 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
11239 option.
11240 (rs6000_builtin_mask_for_load): Return 0 for targets with
11241 efficient unaligned VSX accesses so that the vectorizer will use
11242 direct unaligned loads.
11243 (rs6000_builtin_support_vector_misalignment): Always return true
11244 for targets with efficient unaligned VSX accesses.
11245 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
11246 stores on targets with efficient unaligned VSX accesses is almost
11247 always the same as the cost of an aligned load or store, so model
11248 it that way.
11249 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
11250 unaligned vectors if we have efficient unaligned VSX accesses.
11251 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
11252 undocumented option.
11253
11254 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11255
11256 Revert:
11257 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
11258
11259 * config.gcc (LIBC_MUSL): New tm_defines macro.
11260 * config/linux.h (OPTION_MUSL): Define.
11261 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
11262 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
11263 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
11264
11265 * config/linux.opt (mmusl): New option.
11266 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
11267 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
11268
11269 * configure: Regenerate.
11270
11271 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
11272
11273 * config.gcc (LIBC_MUSL): New tm_defines macro.
11274 * config/linux.h (OPTION_MUSL): Define.
11275 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
11276 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
11277 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
11278
11279 * config/linux.opt (mmusl): New option.
11280 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
11281 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
11282
11283 * configure: Regenerate.
11284
11285 2015-04-22 Yury Gribov <y.gribov@samsung.com>
11286
11287 * doc/invoke.texi (-fsanitize-sections): Update description.
11288 * asan.c (set_sanitized_sections): Parse incoming arg.
11289 (section_sanitized_p): Support wildcards.
11290
11291 2015-04-22 Tom de Vries <tom@codesourcery.com>
11292
11293 PR tree-optimization/65823
11294 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
11295 equality between ap_copy and ap.
11296
11297 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11298
11299 PR target/47098
11300 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
11301
11302 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11303
11304 PR target/47122
11305 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
11306
11307 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11308
11309 PR target/55144
11310 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
11311 remove already contained t-files.
11312
11313 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11314
11315 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
11316 Remove unneeded forward declarations.
11317 (suitable_for_tail_call_opt_p): Commentary typo fix.
11318
11319 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11320
11321 * varasm.c (emit_bss): Remove redundant guard.
11322
11323 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11324
11325 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
11326
11327 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11328
11329 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
11330
11331 2015-04-22 Hale Wang <hale.wang@arm.com>
11332 Terry Guo <terry.guo@arm.com>
11333
11334 PR rtl-optimization/64818
11335 * combine.c (can_combine_p): Don't combine user-specified
11336 register if it is in an asm input.
11337
11338 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
11339
11340 PR ipa/65076
11341 * passes.def (early_optimizations): Add pass_dse.
11342
11343 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11344
11345 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
11346 * reorg.c (redundant_insn): Remove ifdef
11347 INSN_REFERENCES_ARE_DELAYED.
11348 * resource.c (mark_referenced_resources): Likewise.
11349
11350 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11351
11352 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
11353 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
11354 * resource.c (mark_set_resources): Likewise.
11355
11356 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11357
11358 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
11359 * cfgcleanup.c (flow_find_cross_jump): Likewise.
11360 (flow_find_head_matching_sequence): Likewise.
11361 (try_head_merge_bb): Likewise.
11362 * combine.c (can_combine_p): Likewise.
11363 (try_combine): Likewise.
11364 (distribute_notes): Likewise.
11365 * df-problems.c (can_move_insns_across): Likewise.
11366 * final.c (final): Likewise.
11367 * gcse.c (insert_insn_end_basic_block): Likewise.
11368 * ira.c (find_moveable_pseudos): Likewise.
11369 * reorg.c (try_merge_delay_insns): Likewise.
11370 (fill_simple_delay_slots): Likewise.
11371 (fill_slots_from_thread): Likewise.
11372 * sched-deps.c (sched_analyze_2): Likewise.
11373
11374 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11375
11376 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
11377 PIC_OFFSET_TABLE_REGNUM.
11378
11379 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11380
11381 * alias.c (init_alias_target): Remove ifdef
11382 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
11383 * df-scan.c (df_insn_refs_collect): Likewise.
11384 (df_get_regular_block_artificial_uses): Likewise.
11385 (df_get_eh_block_artificial_uses): Likewise.
11386 (df_get_entry_block_def_set): Likewise.
11387 (df_get_exit_block_use_set): Likewise.
11388 * emit-rtl.c (gen_rtx_REG): Likewise.
11389 * ira.c (ira_setup_eliminable_regset): Likewise.
11390 * reginfo.c (init_reg_sets_1): Likewise.
11391 * regrename.c (rename_chains): Likewise.
11392 * reload1.c (reload): Likewise.
11393 (eliminate_regs_in_insn): Likewise.
11394 * resource.c (mark_referenced_resources): Likewise.
11395 (init_resource_info): Likewise.
11396
11397 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11398
11399 * defaults.h (MASK_RETURN_ADDR): New definition.
11400 * except.c (expand_builtin_extract_return_addr): Remove ifdef
11401 MASK_RETURN_ADDR.
11402
11403 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11404
11405 * defaults.h (RETURN_ADDR_OFFSET): New definition.
11406 * except.c (expand_builtin_extract_return_addr): Remove ifdef
11407 RETURN_ADDR_OFFSET.
11408 (expand_builtin_frob_return_addr): Likewise.
11409
11410 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11411
11412 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
11413 (try_redirect_by_replacing_jump): Likewise.
11414 (rtl_tidy_fallthru_edge): Likewise.
11415 * combine.c (insn_a_feeds_b): Likewise.
11416 (find_split_point): Likewise.
11417 (simplify_set): Likewise.
11418 * cprop.c (cprop_jump): Likewise.
11419 * cse.c (cse_extended_basic_block): Likewise.
11420 * df-problems.c (can_move_insns_across): Likewise.
11421 * function.c (emit_use_return_register_into_block): Likewise.
11422 * haifa-sched.c (sched_init): Likewise.
11423 * ira.c (find_moveable_pseudos): Likewise.
11424 * loop-invariant.c (find_invariant_insn): Likewise.
11425 * lra-constraints.c (curr_insn_transform): Likewise.
11426 * postreload.c (reload_combine_recognize_const_pattern):
11427 * Likewise.
11428 * reload.c (find_reloads): Likewise.
11429 * reorg.c (delete_scheduled_jump): Likewise.
11430 (steal_delay_list_from_target): Likewise.
11431 (steal_delay_list_from_fallthrough): Likewise.
11432 (redundant_insn): Likewise.
11433 (fill_simple_delay_slots): Likewise.
11434 (fill_slots_from_thread): Likewise.
11435 (delete_computation): Likewise.
11436 * sched-rgn.c (add_branch_dependences): Likewise.
11437
11438 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11439
11440 * genconfig.c (main): Always define HAVE_cc0.
11441 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
11442 HAVE_cc0.
11443 * cfgcleanup.c (flow_find_cross_jump): Likewise.
11444 (flow_find_head_matching_sequence): Likewise.
11445 (try_head_merge_bb): Likewise.
11446 * cfgrtl.c (rtl_merge_blocks): Likewise.
11447 (try_redirect_by_replacing_jump): Likewise.
11448 (rtl_tidy_fallthru_edge): Likewise.
11449 * combine.c (do_SUBST_MODE): Likewise.
11450 (insn_a_feeds_b): Likewise.
11451 (combine_instructions): Likewise.
11452 (can_combine_p): Likewise.
11453 (try_combine): Likewise.
11454 (find_split_point): Likewise.
11455 (subst): Likewise.
11456 (simplify_set): Likewise.
11457 (distribute_notes): Likewise.
11458 * cprop.c (cprop_jump): Likewise.
11459 * cse.c (cse_extended_basic_block): Likewise.
11460 * df-problems.c (can_move_insns_across): Likewise.
11461 * final.c (final): Likewise.
11462 (final_scan_insn): Likewise.
11463 * function.c (emit_use_return_register_into_block): Likewise.
11464 * gcse.c (insert_insn_end_basic_block): Likewise.
11465 * haifa-sched.c (sched_init): Likewise.
11466 * ira.c (find_moveable_pseudos): Likewise.
11467 * loop-invariant.c (find_invariant_insn): Likewise.
11468 * lra-constraints.c (curr_insn_transform): Likewise.
11469 * optabs.c (prepare_cmp_insn): Likewise.
11470 * postreload.c (reload_combine_recognize_const_pattern):
11471 * Likewise.
11472 * reload.c (find_reloads): Likewise.
11473 (find_reloads_address_1): Likewise.
11474 * reorg.c (delete_scheduled_jump): Likewise.
11475 (steal_delay_list_from_target): Likewise.
11476 (steal_delay_list_from_fallthrough): Likewise.
11477 (try_merge_delay_insns): Likewise.
11478 (redundant_insn): Likewise.
11479 (fill_simple_delay_slots): Likewise.
11480 (fill_slots_from_thread): Likewise.
11481 (delete_computation): Likewise.
11482 (relax_delay_slots): Likewise.
11483 * sched-deps.c (sched_analyze_2): Likewise.
11484 * sched-rgn.c (add_branch_dependences): Likewise.
11485
11486 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11487
11488 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
11489 that is trivially ded on non cc0 targets.
11490 (simplify_set): Likewise.
11491 (mark_used_regs_combine): Likewise.
11492 * cse.c (new_basic_block): Likewise.
11493 (fold_rtx): Likewise.
11494 (cse_insn): Likewise.
11495 (cse_extended_basic_block): Likewise.
11496 (set_live_p): Likewise.
11497 * rtlanal.c (canonicalize_condition): Likewise.
11498 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11499
11500 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11501
11502 * conditions.h: Define macros even if HAVE_cc0 is undefined.
11503 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
11504 * final.c: Likewise.
11505 * jump.c: Likewise.
11506 * recog.c: Likewise.
11507 * recog.h: Declare functions even when HAVE_cc0 is undefined.
11508 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
11509
11510 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11511
11512 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
11513 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
11514 * builtins.c (expand_builtin): Remove check if
11515 EH_RETURN_DATA_REGNO is defined.
11516 * df-scan.c (df_bb_refs_collect): Likewise.
11517 (df_get_exit_block_use_set): Likewise.
11518 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
11519 * ira-lives.c (process_bb_node_lives): Likewise.
11520 * lra-lives.c (process_bb_lives): Likewise.
11521
11522 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
11523
11524 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
11525 FIRST_PSEUDO_REG): New.
11526 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
11527 (ARG_POINTER_REGNUM): Define to ARGP_REG.
11528 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
11529 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
11530 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
11531 (FIRST_INT_REG): New.
11532 (LAST_INT_REG): New.
11533 (FIRST_*_REG): Define using *_REG.
11534 (LAST_*_REG): Ditto.
11535 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
11536 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
11537 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
11538
11539 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11540
11541 * expmed.c: (synth_mult): Only assume overlapping
11542 shift with previous steps in alg_sub_t_m2 case.
11543
11544 2015-04-21 Richard Biener <rguenther@suse.de>
11545
11546 PR tree-optimization/65650
11547 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
11548 transitions involving copies.
11549 (set_lattice_value): Adjust for copy lattice state.
11550 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
11551 if that doesn't dominate the merge point.
11552 (bit_value_unop): Adjust what we treat as varying mask.
11553 (bit_value_binop): Likewise.
11554 (bit_value_assume_aligned): Likewise.
11555 (evaluate_stmt): When we simplified to a SSA name record a copy
11556 instead of dropping to varying.
11557 (visit_assignment): Simplify.
11558
11559 * gimple-match.h (gimple_simplify): Add another callback.
11560 * gimple-fold.c (fold_stmt_1): Adjust caller.
11561 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
11562 for the 2nd callback.
11563 * gimple-match-head.c (gimple_simplify): Add a callback that is
11564 used to valueize the stmt operands and use it that way.
11565
11566 2015-04-21 Richard Biener <rguenther@suse.de>
11567
11568 PR tree-optimization/65788
11569 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
11570
11571 2015-04-21 Richard Biener <rguenther@suse.de>
11572
11573 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
11574 vec_construct cost by vec_stmt_cost.
11575
11576 2015-04-21 Richard Biener <rguenther@suse.de>
11577
11578 * cfghooks.h (create_basic_block): Replace with two overloads
11579 for RTL and GIMPLE.
11580 (split_block): Likewise.
11581 * cfghooks.c (split_block): Rename to ...
11582 (split_block_1): ... this.
11583 (split_block): Add two type-safe overloads for RTL and GIMPLE.
11584 (split_block_after_labels): Call split_block_1.
11585 (create_basic_block): Rename to ...
11586 (create_basic_block_1): ... this.
11587 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
11588 (create_empty_bb): Call create_basic_block_1.
11589 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
11590 split_block_after_labels.
11591 * omp-low.c (expand_parallel_call): Likewise.
11592 (expand_omp_target): Likewise.
11593 (simd_clone_adjust): Likewise.
11594 * tree-chkp.c (chkp_get_entry_block): Likewise.
11595 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
11596 create_basic_block overload.
11597 (cgraph_node::expand_thunk): Likewise.
11598 * tree-cfg.c (make_blocks): Likewise.
11599 (handle_abnormal_edges): Likewise.
11600 * tree-inline.c (copy_bb): Likewise.
11601
11602 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11603
11604 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
11605 New pattern.
11606 (*xor_one_cmplsidi3_ze): Likewise.
11607
11608 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
11609
11610 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
11611 use df_remove_problem rather than manually removing problems, leaving
11612 holes in df->problems_in_order[].
11613
11614 2015-04-21 Tom de Vries <tom@codesourcery.com>
11615
11616 PR tree-optimization/65802
11617 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
11618
11619 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11620
11621 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
11622 Increase to 128.
11623 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
11624 at '.'. Assert that there's enough space for everything.
11625
11626 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
11627
11628 PR tree-optimization/64950
11629 Revert:
11630 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
11631
11632 PR target/41089
11633 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
11634 as volatile.
11635
11636 2015-04-20 Shiva Chen <shiva0217@gmail.com>
11637
11638 PR rtl-optimization/64916
11639 * cfgcleanup.c (values_equal_p): New function.
11640 (can_replace_by): Use it.
11641
11642 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
11643
11644 PR c++/65801
11645 * doc/invoke.texi ([-Wnarrowing]): Update.
11646
11647 2015-04-20 Jeff Law <law@redhat.com>
11648
11649 PR tree-optimization/65658
11650 * tree-ssa-threadupdate.c (redirection_block_p): Remove
11651 redundant test for GIMPLE_ASSIGN in last change.
11652
11653 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
11654
11655 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
11656 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
11657 (legitimize_tls_address): Ditto.
11658 (ix86_expand_move): Ditto.
11659 (ix86_expand_binary_operator): Remove reload_in_progress checks.
11660 (ix86_expand_unary_operator): Ditto.
11661 * config/i386/predicates.md (index_register_operand): Ditto.
11662
11663 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
11664
11665 * reorg.c (try_merge_delay_insns): Improve correctness checking
11666 for targets with multiple delay slots.
11667
11668 2015-04-20 Jeff Law <law@redhat.com>
11669
11670 PR tree-optimization/65658
11671 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
11672 statements too.
11673
11674 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
11675
11676 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
11677 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
11678 Delete.
11679
11680 2015-04-20 Jakub Jelinek <jakub@redhat.com>
11681
11682 PR debug/65807
11683 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
11684
11685 2015-04-20 Richard Biener <rguenther@suse.de>
11686
11687 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
11688 * gimple-fold.c (gimple_build_valueize): New function.
11689 (gimple_build): Always use gimple_build_valueize as valueize hook.
11690
11691 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
11692
11693 PR target/64134
11694 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
11695 and overwrite variable parts if <= 1/2 the elements are variable.
11696
11697 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
11698
11699 PR rtl-optimization/65805
11700 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
11701 Don't use difference of offset and previous offset if
11702 update_sp_offset is non-zero.
11703 (eliminate_regs_in_insn): Ditto.
11704 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
11705 lra_eliminate_regs_1 call.
11706 * lra-constraints.c (get_equiv_with_elimination): Ditto.
11707
11708 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
11709
11710 * hash-table.h: Remove version of hash_table that stored value_type *.
11711 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
11712 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
11713 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
11714 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
11715 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
11716 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
11717 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11718 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
11719 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
11720 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
11721 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
11722 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
11723 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
11724 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11725 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
11726 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
11727
11728 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11729 Jakub Jelinek <jakub@redhat.com>
11730
11731 PR target/65787
11732 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
11733 subsequent SH_NONE operand does not overwrite an existing *special
11734 value.
11735 (adjust_extract): Handle case where a vec_extract operation is
11736 wrapped in a PARALLEL.
11737
11738 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
11739
11740 PR target/65780
11741 * config/i386/i386.c (ix86_binds_local_p): Define only if
11742 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
11743
11744 2015-04-17 Jeff Law <law@redhat.com>
11745
11746 PR tree-optimization/47679
11747 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
11748 * tree-ssa-scopedtables.c: New file.
11749 * tree-ssa-scopedtables.h: New file.
11750 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
11751 (const_and_copies): Change name/type.
11752 (record_const_or_copy): Move into tree-ssa-scopedtables.c
11753 (record_const_or_copy_1): Similarly.
11754 (restore_vars_to_original_value): Similarly.
11755 (pass_dominator::execute): Create and destroy const_and_copies table.
11756 (thread_across_edge): Update passing of const_and_copies.
11757 (record_temporary_equivalence): Use method calls rather than
11758 manipulating const_and_copies directly.
11759 (record_equality, cprop_into_successor_phis): Similarly.
11760 (dom_opt_dom_walker::before_dom_children): Similarly.
11761 (dom_opt_dom_walker::after_dom_children): Similarly.
11762 (eliminate_redundant_computations): Similarly.
11763 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
11764 (record_temporary_equivalence): Likewise.
11765 (invalidate_equivalences): Likewise.
11766 (record_temporary_equivalences_from_phis): Update due to type
11767 change of const_and_copies. Use method calls rather than
11768 manipulating the stack directly.
11769 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
11770 (thread_through_normal_block, thread_across_edge): Likewise.
11771 (thread_across_edge): Likewise.
11772 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11773 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
11774 of equiv_stack.
11775 (identify_jump_threads): Update due to type change of equiv_stack.
11776 (finalize_jump_threads): Delete the equiv_stack when complete.
11777
11778 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
11779
11780 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
11781 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
11782 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
11783
11784 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
11785
11786 PR target/65535
11787 * config.gcc: Exit with a comment when we do not have a major version
11788 number for the FreeBSD target.
11789
11790 2015-04-17 Jakub Jelinek <jakub@redhat.com>
11791
11792 PR target/65689
11793 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
11794 maybe_allows_mem bitfields.
11795 (maybe_allows_none_start, maybe_allows_none_end,
11796 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
11797 maybe_allows_mem_end): New variables.
11798 (compute_maybe_allows): New function.
11799 (add_constraint): Use it to initialize maybe_allows_reg and
11800 maybe_allows_mem fields.
11801 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
11802 is_address constraints such that those that allow neither mem nor
11803 reg come first, then those that only allow reg but not mem, then
11804 those that only allow mem but not reg, then the rest.
11805 (write_allows_reg_mem_function): New function.
11806 (write_tm_preds_h): Call it.
11807 * stmt.c (parse_output_constraint, parse_input_constraint): Use
11808 the generated insn_extra_constraint_allows_reg_mem function
11809 instead of always setting *allows_reg = true; *allows_mem = true;
11810 for unknown extra constraints.
11811
11812 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
11813
11814 PR target/65780
11815 * output.h (default_binds_local_p_3): New.
11816 * varasm.c (default_binds_local_p_3): Make it public. Take an
11817 argument to indicate if common symbol may be local. If common
11818 symbol may be local, treat non-external variable as defined
11819 locally.
11820 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
11821 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
11822 * config/i386/i386.c (ix86_binds_local_p): New.
11823 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
11824 ix86_binds_local_p.
11825
11826 2015-04-17 Jakub Jelinek <jakub@redhat.com>
11827
11828 PR debug/65771
11829 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
11830 trying mem_loc_descriptor on XEXP (rtl, 0).
11831
11832 2015-04-17 Martin Liska <mliska@suse.cz>
11833
11834 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
11835 Release symbol_compare_collection.
11836 * ipa-reference.c: Add TODO that a vector should be released.
11837
11838 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
11839
11840 PR target/65296
11841 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
11842 to new AVR-LibC file layout (bug #44574).
11843 (*avrlibc_devicelib): Same.
11844 * config/avr/avr-mcus.def: Adjust comments.
11845 * config/avr/avr.opt (nodevicelib): Adjust help.
11846
11847 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
11848
11849 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
11850
11851 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
11852
11853 PR c++/64527
11854 * gimplify.c (gimplify_init_constructor): Always emit a
11855 side-effecting constructor.
11856
11857 2015-04-17 Tom de Vries <tom@codesourcery.com>
11858
11859 PR tree-optimization/64950
11860 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
11861 in cfun->curr_properties.
11862 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
11863 if we generate an IFN_VA_ARG.
11864 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
11865 function if PROP_gimple_lva is not set in src function.
11866
11867 2015-04-17 Tom de Vries <tom@codesourcery.com>
11868 Michael Matz <matz@suse.de>
11869
11870 PR tree-optimization/64950
11871 * gimple-iterator.c (update_modified_stmts): Remove static.
11872 * gimple-iterator.h (update_modified_stmts): Declare.
11873 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
11874 (gimplify_va_arg_internal): New function.
11875 (gimplify_va_arg_expr): Use IFN_VA_ARG.
11876 * gimplify.h (gimplify_va_arg_internal): Declare.
11877 * internal-fn.c (expand_VA_ARG): New unreachable function.
11878 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
11879 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
11880 (expand_ifn_va_arg): New function.
11881 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
11882 (pass_stdarg::execute): Call expand_ifn_va_arg.
11883 (pass_data_lower_vaarg): New pass_data.
11884 (pass_lower_vaarg): New gimple_opt_pass.
11885 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
11886 (make_pass_lower_vaarg): New function.
11887 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
11888 properties_required field.
11889 * passes.def (all_passes): Add pass_lower_vaarg.
11890 * tree-pass.h (PROP_gimple_lva): Add define.
11891 (make_pass_lower_vaarg): Declare.
11892
11893 2015-04-17 Tom de Vries <tom@codesourcery.com>
11894
11895 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
11896 * calls.c (call_expr_flags): Same.
11897
11898 2015-04-17 Tom de Vries <tom@codesourcery.com>
11899
11900 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
11901 (pass_stdarg::execute): ... here.
11902
11903 2015-04-17 Tom de Vries <tom@codesourcery.com>
11904 Michael Matz <matz@suse.de>
11905
11906 * tree-cfg.c (make_blocks_1): Factor out of ...
11907 (make_blocks): ... here.
11908 (make_edges_bb): Factor out of ...
11909 (make_edges): ... here.
11910 (gimple_find_sub_bbs): New function.
11911 * tree-cfg.h (gimple_find_sub_bbs): Declare.
11912
11913 2015-04-17 Tom de Vries <tom@codesourcery.com>
11914
11915 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
11916
11917 2015-04-17 Yury Gribov <y.gribov@samsung.com>
11918
11919 * asan.c (set_sanitized_sections): New function.
11920 (section_sanitized_p): Ditto.
11921 (asan_protect_global): Optionally sanitize user-defined
11922 sections.
11923 * asan.h (set_sanitized_sections): Declare new function.
11924 * common.opt (fsanitize-sections): New option.
11925 * doc/invoke.texi (-fsanitize-sections): Document new option.
11926 * opts-global.c (handle_common_deferred_options): Handle new
11927 option.
11928
11929 2015-04-17 Jakub Jelinek <jakub@redhat.com>
11930
11931 PR debug/65771
11932 * dwarf2out.c (loc_list_from_tree): Return NULL
11933 for DEBUG_EXPR_DECL.
11934
11935 2015-04-17 Christian Bruel <christian.bruel@st.com>
11936
11937 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
11938 same attributes.
11939
11940 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11941
11942 * ira-color.c (setup_left_conflict_sizes_p): Do not process
11943 node itself when computing left conflict subnode size.
11944
11945 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
11946
11947 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
11948 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
11949 *fop_<mode>_1_sse using enabled attribute. Use
11950 register_mixssei387nonimm_operand operand 1 predicate. Change
11951 alternative 3 constraints from "x" to "v".
11952
11953 2015-04-16 Richard Biener <rguenther@suse.de>
11954
11955 PR tree-optimization/65774
11956 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
11957 bit-value tracking on.
11958
11959 2015-04-16 Richard Biener <rguenther@suse.de>
11960
11961 PR tree-optimization/64277
11962 * tree-vrp.c (check_array_ref): Fix anti-range handling,
11963 simplify upper bound handling.
11964 (search_for_addr_array): Simplify.
11965 (check_array_bounds): Handle ADDR_EXPRs here.
11966 (check_all_array_refs): Simplify.
11967
11968 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
11969
11970 * config/i386/i386.c (print_reg): Rewrite function.
11971
11972 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11973
11974 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
11975 Invert the condition.
11976
11977 2015-04-16 Renlin Li <renlin.li@arm.com>
11978
11979 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
11980 simplifications for UNSIGNED_FLOAT.
11981
11982 2015-04-16 Nick Clifton <nickc@redhat.com>
11983
11984 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
11985 MUL_UNINIT.
11986 (enum rl78_cpu_type): New.
11987 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
11988 (umulhi3_shift_virt): Remove m constraint from operand 1.
11989 (umulqihi3_virt): Likewise.
11990 * config/rl78/rl78.c (rl78_option_override): Add code to process
11991 -mcpu and -mmul options.
11992 (rl78_alloc_physical_registers): Add code to handle divhi and
11993 divsi valloc attributes.
11994 (set_origin): Likewise.
11995 * config/rl78/rl78.h (RL78_MUL_G14): Define.
11996 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
11997 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
11998 __RL78_Gxx__.
11999 (ASM_SPEC): Pass -mcpu on to assembler.
12000 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
12001 (mulqi3_rl78): Likewise.
12002 (mulhi3_g13): Likewise.
12003 (mulhi3): Generate the G13 or G14 versions of the insn directly.
12004 (mulsi3): Likewise.
12005 (mulhi3_g14): Add clobbers of AX and BC.
12006 (mulsi3_g14): Likewise.
12007 (mulsi3_g13): Likewise.
12008 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
12009 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
12010 * config/rl78/rl78.opt (mmul): Initialise value to
12011 RL78_MUL_UNINIT.
12012 (mcpu): New option.
12013 (m13, m14, mrl78): New option aliases.
12014 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
12015 (MULTILIB_DIRNAMES): Add g13 and g14.
12016 * doc/invoke.texi: Document -mcpu and -mmul options.
12017
12018 2015-04-16 Richard Biener <rguenther@suse.de>
12019
12020 * tree-ssa-ccp.c (likely_value): See if we have operands that
12021 are marked as never simulate again and return CONSTANT in this
12022 case.
12023 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
12024 not have any operands that will be simulated again as
12025 not being simulated again.
12026
12027 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
12028
12029 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
12030 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
12031 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
12032 attribute.
12033 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
12034 enabled attribute.
12035 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
12036 *float<SWI48:mode><MODEF:mode>2_sse.
12037 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
12038 enabled attribute.
12039 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
12040 enabled attribute.
12041
12042 2015-04-15 Tom de Vries <tom@codesourcery.com>
12043
12044 PR other/65487
12045 * function.c (push_dummy_function): New function.
12046 (init_dummy_function_start): Use push_dummy_function.
12047 (pop_dummy_function): New function. Factored out of ...
12048 (expand_dummy_function_end): ... here.
12049 * function.h (push_dummy_function, pop_dummy_function): Declare.
12050 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
12051 pop_dummy_function.
12052 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
12053
12054 2015-04-15 Jeff Law <law@redhat.com>
12055
12056 PR tree-optimization/47679
12057 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
12058 need for forward declaration in upcoming changes.
12059 (record_conditions, record_edge_info): Likewise.
12060
12061 PR rtl-optimization/42522
12062 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
12063 SIGN_EXTRACT as a whole object rather than simplifying
12064 its operand.
12065
12066 2015-04-15 Jakub Jelinek <jakub@redhat.com>
12067
12068 PR ipa/65765
12069 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
12070 and GIMPLE_PREDICT use break instead of return true. For
12071 GIMPLE_EH_DISPATCH, compare dispatch region.
12072
12073 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
12074
12075 * doc/extend.texi (__sync Builtins): Simplify some text. Update
12076 details about the implementation. Make clear preference for
12077 __atomic builtins. Reduce possibility of future change.
12078
12079 2015-04-15 Nick Clifton <nickc@redhat.com>
12080
12081 * config/rx/rx.opt (mallow-string-insns): New option.
12082 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
12083 builtin if string instructions are denied.
12084 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
12085 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
12086 appropriate.
12087 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
12088 * config/rx/rx.md (movstr): Enable pattern only if string
12089 instructions are allowed.
12090 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
12091 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
12092 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
12093 (MULTILIB_DIRNAMES): Add no-strings.
12094 * doc/invoke.texi: Document -mno-allow-string-insns.
12095
12096 2015-04-15 Alan Modra <amodra@gmail.com>
12097
12098 PR target/65408
12099 PR target/58744
12100 PR middle-end/36043
12101 * calls.c (load_register_parameters): Don't load past end of
12102 mem unless suitably aligned.
12103
12104 2015-04-15 Nick Clifton <nickc@redhat.com>
12105
12106 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
12107 decrement instruction as being frame related.
12108 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
12109 based addresses.
12110 If zero extending a function address enclose the operation in
12111 %code(...).
12112 (rl78_preferred_reload_class): New function.
12113 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12114 * config/rl78/rl78.md: Remove useless constraints in expanders.
12115 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
12116 (mulhi3_rl78): Likewise.
12117 (mulhi3_g13): Likewise.
12118 (mulsi3_rl78): Likewise.
12119 (es_addr): Move to before the multiply patterns.
12120
12121 2015-04-15 Alan Modra <amodra@gmail.com>
12122
12123 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
12124 and sequence_stack. Add seq.
12125 (seq_stack): Delete.
12126 * function.c (prepare_function_start): Don't access x_last_insn.
12127 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
12128 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
12129 * emit_rtl.c (start_sequence, push_topmost_sequence,
12130 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
12131 sequence accessors.
12132 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
12133 remove_insn): Likewise. Simplify.
12134 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
12135 and pop_topmost_sequence.
12136 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
12137 debug insns.
12138 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
12139
12140 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
12141
12142 PR target/65729
12143 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
12144 the assertiion.
12145
12146 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
12147
12148 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
12149 (LEGACY_INT_REGNO_P): Ditto.
12150 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
12151 (ANY_MASK_REG_P): Remove.
12152 (BND_REG_P): Rename from ANY_BND_REG_P.
12153 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
12154 legacy integer registers. Do not handle MMX_REG_P in a special way.
12155 Merge 64byte and 32byte SSE handling.
12156
12157 2015-04-14 Nick Clifton <nickc@redhat.com>
12158
12159 * expr.c (expand_assignment): Force an address offset computation
12160 into a register before changing its mode.
12161 (expand_expr_real_1): Likewise.
12162
12163 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
12164
12165 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
12166 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
12167 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
12168 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
12169 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
12170 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
12171 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
12172 and __aarch64_vget_lane_any.
12173
12174 2015-04-14 Jakub Jelinek <jakub@redhat.com>
12175
12176 PR rtl-optimization/65761
12177 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
12178 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
12179
12180 2015-04-14 Richard Biener <rguenther@suse.de>
12181
12182 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
12183 (graphite_can_represent_scev): Use POINTER_TYPE_P.
12184
12185 2015-04-14 Richard Biener <rguenther@suse.de>
12186
12187 PR tree-optimization/65758
12188 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
12189 against -1.
12190 (ccp_lattice_meet): Likewise.
12191 (bit_value_unop): Likewise.
12192 (bit_value_binop): Likewise.
12193 (bit_value_assume_aligned): Likewise.
12194
12195 2015-04-14 Christian Bruel <christian.bruel@st.com>
12196
12197 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
12198 function.
12199
12200 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
12201
12202 PR tree-optimization/63387
12203 * match.pd ((x unord x) | (y unord y) -> (x unord y),
12204 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
12205
12206 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
12207
12208 * config/i386/predicates.md (any_QIreg_operand): Rename from
12209 q_regs_operand. Do not process subregs.
12210 (QIreg_operand): Use QI_REGNO_P predicate.
12211 (ext_QIreg_operand): Ditto.
12212 (ext_register_operand): Ditto.
12213 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
12214 (AND splitters): Ditto.
12215 (AND with -65536 splitter): Add SWI48 mode for operand 0.
12216 (AND with -256 splitter): Use any_QIreg_operand predicate and
12217 SWI248 mode for operand 0.
12218 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
12219 mode for operand 0.
12220 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
12221
12222 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
12223
12224 * doc/plugins.texi: Rewrite first introductory paragraph.
12225
12226 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
12227
12228 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
12229 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
12230
12231 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
12232
12233 * ipa-profie.c (ipa_profile): Check number of parameters
12234 and possible polymorphic call targets before
12235 devirtualizing.
12236
12237 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
12238
12239 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
12240 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
12241
12242 2015-04-13 Richard Biener <rguenther@suse.de>
12243
12244 PR tree-optimization/65204
12245 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
12246 takens for bit-CCP.
12247
12248 2015-04-13 Richard Biener <rguenther@suse.de>
12249
12250 PR target/65660
12251 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
12252 and cond_not_taken_branch_cost to 4 and 2.
12253 (bdver2_cost): Likewise.
12254 (bdver3_cost): Likewise.
12255 (bdver4_cost): Likewise.
12256
12257 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
12258
12259 * hash-table.h (hash_table constructor): Add mem stats.
12260 (alloc_entries): Likewise.
12261
12262 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
12263
12264 * ipa-cp.c (ipcp_driver): Relase prev_edge.
12265 * passes.c (execute_one_pass): Only add transform if pass has one.
12266
12267 2015-04-12 Joseph Myers <joseph@codesourcery.com>
12268
12269 * config/i386/i386.c (ix86_option_override_internal): Don't set
12270 -fprefetch-loop-arrays if optimizing for size.
12271
12272 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
12273 Gerald Pfeifer <gerald@pfeifer.com>
12274
12275 * doc/contrib.texi (Contributors): Add Martin Jambor and
12276 Michael Matz.
12277
12278 2015-04-12 Jakub Jelinek <jakub@redhat.com>
12279
12280 * BASE-VER: Set to 6.0.0.
12281
12282 PR tree-optimization/65747
12283 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
12284 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
12285
12286 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
12287
12288 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
12289 sentence. Improve grammar.
12290
12291 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
12292
12293 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
12294
12295 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
12296
12297 PR ipa/65743
12298 * ipa-inline-transform.c (speculation_removed): Remove static var.
12299 (check_speculations): New function.
12300 (clone_inlined_nodes): Do not check spculations.
12301 (inline_call): Call check_speculations.
12302 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
12303 consider non-invariants.
12304
12305 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
12306 Martin Liska <mliska@suse.cz>
12307
12308 PR ipa/65722
12309 * ipa-icf.c (sem_item::compare_cgraph_references): function and
12310 variable can not match.
12311 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
12312 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
12313
12314 2015-04-11 Jakub Jelinek <jakub@redhat.com>
12315
12316 PR tree-optimization/65735
12317 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
12318 Remove visited_phis argument, add visited_bbs, avoid recursing into the
12319 same bb rather than just into the same phi node.
12320 (thread_through_normal_block): Adjust caller.
12321
12322 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
12323
12324 * doc/contrib.texi (Contributors): Add Ira Rosen.
12325
12326 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
12327
12328 * gcov.c (find_source): Fix miswording in error message.
12329 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
12330 (ix86_expand_sse_comi_round): Fix typo in error message.
12331
12332 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
12333
12334 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
12335
12336 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
12337
12338 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
12339
12340 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
12341
12342 PR target/65710
12343 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
12344 Print bad_spills_num and insn_pseudos_num.
12345
12346 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12347
12348 PR target/65694
12349 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
12350 when creating +1 values for SImode.
12351
12352 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
12353
12354 PR target/65729
12355 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
12356 assert.
12357
12358 2015-04-10 Jakub Jelinek <jakub@redhat.com>
12359 Iain Sandoe <iain@codesourcery.com>
12360
12361 PR target/65351
12362 * configure: Regenerate.
12363
12364 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
12365
12366 PR target/65671
12367 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
12368
12369 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
12370
12371 * doc/contrib.texi (Contributors): Add John Marino.
12372
12373 2015-04-09 Jakub Jelinek <jakub@redhat.com>
12374
12375 PR tree-optimization/65709
12376 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
12377 TREE_TYPE (TREE_TYPE (t)).
12378
12379 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
12380
12381 PR target/65710
12382 * lra-int.h (lra_bad_spill_regno_start): New.
12383 * lra.c (lra_bad_spill_regno_start): New.
12384 (lra): Set up lra_bad_spill_regno_start. Set up
12385 lra_constraint_new_regno_start unconditionally.
12386 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
12387 spill preferences.
12388
12389 2015-04-09 Marek Polacek <polacek@redhat.com>
12390 Jakub Jelinek <jakub@redhat.com>
12391
12392 PR middle-end/65554
12393 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
12394 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
12395 of STRIP_NOPS.
12396
12397 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
12398
12399 PR rtl-optimization/65693
12400 * combine.c (is_parallel_of_n_reg_sets): Move outside of
12401 #ifndef HAVE_cc0.
12402
12403 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
12404
12405 PR target/65296
12406 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
12407 device specs file if "device-specs%s" didn't resolve to a path.
12408
12409 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
12410
12411 PR target/65676
12412 * config/i386/i386.c (fixup_modeless_constant): New.
12413 (ix86_expand_args_builtin): Fixup modeless constant operand.
12414 (ix86_expand_round_builtin): Ditto.
12415 (ix86_expand_special_args_builtin): Ditto.
12416 (ix86_expand_builtin): Ditto.
12417
12418 2015-04-09 Jakub Jelinek <jakub@redhat.com>
12419
12420 PR target/65693
12421 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
12422 any pow2 integer in between 2 and 0x80000000U inclusive.
12423
12424 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
12425
12426 PR rtl-optimization/65693
12427 * combine.c (is_parallel_of_n_reg_sets): Change first argument
12428 from an rtx_insn * to an rtx.
12429 (try_combine): Adjust both callers. Use it once more.
12430
12431 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
12432
12433 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
12434 (chkp_make_static_const_bounds): Search existing
12435 symbol by assembler name. Use make_decl_one_only.
12436 (chkp_get_zero_bounds_var): Remove node search which
12437 is now performed in chkp_make_static_const_bounds.
12438 (chkp_get_none_bounds_var): Likewise.
12439
12440 2015-04-08 Michael Witten <mfwitten@gmail.com>
12441
12442 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
12443 to an example.
12444
12445 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12446
12447 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
12448
12449 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
12450
12451 * doc/extend.texi (__sync Builtins): Fix grammar.
12452
12453 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12454
12455 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
12456
12457 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12458
12459 * varasm.c (emit_local): Move definition of align.
12460
12461 2015-04-08 Julian Brown <julian@codesourcery.com>
12462
12463 * config/nvptx/mkoffload.c (process): Support variable mapping.
12464
12465 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
12466
12467 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
12468 alpha_links **.
12469 (alpha_write_one_linkage): Correct typo.
12470
12471 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
12472
12473 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
12474
12475 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
12476
12477 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
12478
12479 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
12480
12481 * tree-chkp.h (chkp_insert_retbnd_call): New.
12482 * tree-chkp.c (chkp_insert_retbnd_call): New.
12483 * ipa-split.c (insert_bndret_call_after): Remove.
12484 (split_function): Use chkp_insert_retbnd_call.
12485 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
12486 bounds for instrumented functions.
12487
12488 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
12489
12490 PR ipa/65540
12491 * calls.c (initialize_argument_information): When producing tail
12492 call also turn SSA_NAMES passed by references to original PARM_DECLs
12493
12494 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
12495
12496 PR target/65648
12497 * lra-remat.c (do_remat): Process input and non-input insn
12498 registers separately.
12499
12500 2015-04-07 Jakub Jelinek <jakub@redhat.com>
12501
12502 PR debug/65678
12503 * valtrack.c (debug_lowpart_subreg): New function.
12504 (dead_debug_insert_temp): Use it.
12505
12506 PR middle-end/65680
12507 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
12508 into signed HOST_WIDE_INT the same as negative bit_offset.
12509
12510 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
12511
12512 * ipa-comdats.c (ipa_comdats): Visit all thunks
12513 to set proper comdat group.
12514
12515 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12516
12517 PR target/65489
12518 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
12519 on constants for NEON VSTRUCT modes.
12520
12521 2015-04-07 Jakub Jelinek <jakub@redhat.com>
12522 Iain Sandoe <iain@codesourcery.com>
12523
12524 PR target/65351
12525 * configure: Regenerate.
12526
12527 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12528
12529 PR target/65614
12530 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
12531 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
12532 that LFD is used to load double constants instead of LFS. Add
12533 defaults for all costs structures. Add comments for missing
12534 initialization fields.
12535 (size32_cost): Likewise.
12536 (size64_cost): Likewise.
12537 (rs64a_cost): Likewise.
12538 (mpccore_cost): Likewise.
12539 (ppc403_cost): Likewise.
12540 (ppc405_cost): Likewise.
12541 (ppc440_cost): Likewise.
12542 (ppc476_cost): Likewise.
12543 (ppc601_cost): Likewise.
12544 (ppc603_cost): Likewise.
12545 (ppc604_cost): Likewise.
12546 (ppc604e_cost): Likewise.
12547 (ppc620_cost): Likewise.
12548 (ppc630_cost): Likewise.
12549 (ppccell_cost): Likewise.
12550 (ppc750_cost): Likewise.
12551 (ppc7450_cost): Likewise.
12552 (ppc8540_cost): Likewise.
12553 (ppce300c2c3_cost): Likewise.
12554 (ppce500mc_cost): Likewise.
12555 (ppce500mc64_cost): Likewise.
12556 (ppce5500_cost): Likewise.
12557 (ppce6500_cost): Likewise.
12558 (titan_cost): Likewise.
12559 (power4_cost): Likewise.
12560 (power6_cost): Likewise.
12561 (power7_cost): Likewise.
12562 (power8_cost): Likewise.
12563 (ppca2_cost): Likewise.
12564 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
12565
12566 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
12567 instead of XXLOR to copy SFmode to clear out dirty bits created
12568 when SFmode denormals are generated.
12569 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
12570 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
12571
12572 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
12573
12574 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
12575 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
12576 * config/aarch64/aarch64-tune.md: Regenerate.
12577
12578 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
12579
12580 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
12581 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
12582 * config/arm/arm-cores.def (exynos-m1): New core.
12583 * config/arm/arm-tune.md: Regenerate.
12584 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
12585 * config/arm/bpabi.h: Likewise.
12586
12587 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
12588
12589 * ipa-cp (set_single_call_flag): Remove too
12590 restrictive assert.
12591
12592 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
12593
12594 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
12595 GOMP_offload_unregister from the destructor.
12596
12597 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
12598
12599 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
12600 flags for instrumentation thunk.
12601 (chkp_produce_thunks): Likewise.
12602
12603 2015-04-05 Martin Liska <mliska@suse.cz>
12604
12605 PR ipa/65665
12606 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
12607 has computed data structure.
12608 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
12609
12610 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
12611
12612 * invoke.texi (inline-unit-growth): Increase growth to 20%
12613 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
12614
12615 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
12616
12617 PR target/65647
12618 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
12619 value checking.
12620 (lra_rematerialization_iter): New.
12621 * lra.c (lra): Initialize lra_rematerialization_iter.
12622 Stop updating lra_constraint_new_regno_start after switching of
12623 inheritance and rematerialization.
12624 * lra-remat.c (lra_rematerialization_iter): New.
12625 (lra_remat): Add printing pass iteration. Do rematerialization
12626 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
12627
12628 2015-04-04 Richard Biener <rguenther@suse.de>
12629
12630 PR tree-optimization/64909
12631 PR tree-optimization/65660
12632 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
12633 to take a cost vector for scalar iteration cost.
12634 (vect_get_single_scalar_iteration_cost): Likewise.
12635 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
12636 Compute the scalar iteration cost into a cost vector.
12637 (vect_get_known_peeling_cost): Use the scalar cost vector to
12638 account for the cost of the peeled iterations.
12639 (vect_estimate_min_profitable_iters): Likewise.
12640 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12641 Likewise.
12642
12643 2015-04-04 Alan Modra <amodra@gmail.com>
12644
12645 PR target/65576
12646 PR target/65240
12647 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
12648 0.0 constant unless TARGET_VSX.
12649 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
12650 alternative.
12651
12652 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
12653
12654 PR ipa/65654
12655 * ipa-inline-transform.c (inline_call): Skip sanity check to work
12656 around the ICE
12657
12658 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
12659
12660 PR ipa/65655
12661 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
12662 speculative indirect edges to avoid ordering issue.
12663
12664 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
12665
12666 PR ipa/65076
12667 * ipa-inline.c (edge_badness): Add combined size to the denominator.
12668
12669 2015-04-03 Jakub Jelinek <jakub@redhat.com>
12670
12671 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
12672 TYPE_ARTIFICIAL on the .omp_data* types.
12673
12674 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
12675
12676 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
12677 instrumentation thunks.
12678
12679 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
12680
12681 * config/i386/i386.c (ix86_expand_call): Avoid nested
12682 PARALLEL in returned call value.
12683
12684 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
12685
12686 * lto-cgraph.c (input_cgraph_1): Always link instrumented
12687 assembler name with original one.
12688
12689 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
12690
12691 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
12692
12693 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
12694
12695 Revert parts of r216820.
12696 * config/i386/i386.md (movqi_internal): Correct type calculation
12697 for alternatives 3 and 5.
12698
12699 2015-04-02 Jakub Jelinek <jakub@redhat.com>
12700
12701 PR preprocessor/61977
12702 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
12703 predefine __vector/__bool/__pixel macros nor context sensitive
12704 macros for CLK_ASM.
12705 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
12706
12707 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
12708
12709 * config/pa/pa.c (pa_output_move_double): Directly handle register
12710 indexed memory operand. Simplify handling of scaled register indexed
12711 memory operands.
12712
12713 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
12714
12715 PR driver/65444
12716 * config/i386/linux-common.h (MPX_SPEC): New.
12717 (CHKP_SPEC): Add MPX_SPEC.
12718 * doc/invoke.texi (-fcheck-pointer-boudns): Document
12719 possible issues with '-z bndplt' support in linker.
12720
12721 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
12722
12723 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
12724 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
12725 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
12726 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
12727 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
12728
12729 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
12730
12731 * config/i386/sync.md (UNSPEC_MOVA): Remove.
12732 (atomic_load<mode>): Change operand 0 predicate to
12733 nonimmediate_operand and fix up the destination when needed.
12734 Use UNSPEC_LDA.
12735 (atomic_loaddi_fpu): Use UNSPEC_LDA.
12736 (atomic_store<mode>): Change operand 1 predicate to
12737 nonimmendate_operand and move the source to register when needed.
12738 Use UNSPEC_STA.
12739 (atomic_store<mode>_1): Use UNSPEC_STA.
12740 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
12741 Fix moves from memory operand. Use UNSPEC_STA.
12742
12743 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12744
12745 * expmed.c (strict_volatile_bitfield_p): Check that the access will
12746 not cross a MODESIZE boundary.
12747 (store_bit_field, extract_bit_field): Added assertions in the
12748 strict volatile bitfields code path.
12749
12750 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
12751
12752 PR target/65624
12753 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
12754 Increase args array size by one to avoid buffer overflow.
12755
12756 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
12757
12758 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
12759 split_part.
12760 * ipa-inline.c (edge_badness): Add wrapper penalty.
12761 (sum_callers): Move up.
12762 (inline_small_functions): Set single_caller.
12763 * ipa-inline.h (inline_summary): Add single_caller.
12764 * ipa-split.c (split_function): Set split_part.
12765 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
12766 * cgraph.h (cgraph_node): Add split_part.
12767
12768 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
12769
12770 PR target/58945
12771 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
12772 Do not split operands 0 and operands 2 to halfmode.
12773 (atomic_compare_and_swap<mode>): Update for
12774 atomic_compare_and_swap<dwi>_doubleword changes.
12775
12776 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
12777
12778 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
12779 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
12780 no caching is done.
12781
12782 2015-03-31 Martin Liska <mliska@suse.cz>
12783
12784 PR ipa/65557
12785 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
12786 has already filled up function summary.
12787 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
12788
12789 2015-03-31 Richard Biener <rguenther@suse.de>
12790
12791 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
12792 of types.
12793
12794 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
12795
12796 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
12797 nested functions.
12798 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
12799 (s390_asm_output_function_label): Adapt to new signature of
12800 s390_function_num_hotpatch_hw
12801 Optimise the code generating assembler output.
12802 Add comments to assembler file.
12803
12804 2015-03-31 Richard Biener <rguenther@suse.de>
12805
12806 PR middle-end/65626
12807 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
12808 of the noreturn call so it is last and cleanup_control_flow_bb
12809 can do the CFG part.
12810
12811 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
12812
12813 PR target/65531
12814 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
12815 same_comdat_group for external symbols.
12816 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
12817 infinite same_comdat_group traversal loop.
12818
12819 2015-03-31 Jakub Jelinek <jakub@redhat.com>
12820
12821 PR plugins/61176
12822 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
12823 automatically to $headers.
12824
12825 2015-03-30 Jakub Jelinek <jakub@redhat.com>
12826
12827 PR ipa/65610
12828 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
12829 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
12830 function.
12831 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
12832 Use it.
12833 * ipa-prop.c (param_type_may_change_p): Likewise.
12834 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
12835 (remove_unused_scope_block_p): Add in_ctor_dtor_block
12836 argument. Before inlining, preserve
12837 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
12838 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
12839 recursive calls.
12840 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
12841
12842 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
12843
12844 PR ipa/65076
12845 * ipa-inline.c (edge_badness): Base denominator on callee's
12846 grwoth squared.
12847
12848 2015-03-27 Martin Jambor <mjambor@suse.cz>
12849
12850 PR ipa/65478
12851 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
12852 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
12853 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
12854 node_calling_single_call.
12855 * ipa-cp.c (count_callers): New function.
12856 (set_single_call_flag): Likewise.
12857 (initialize_node_lattices): Count callers and set single_flag_call if
12858 necessary.
12859 (incorporate_penalties): New function.
12860 (good_cloning_opportunity_p): Use it, dump new flags.
12861 (propagate_constants_topo): Set node_within_scc flag if appropriate.
12862 * doc/invoke.texi (ipa-cp-recursion-penalty,
12863 ipa-cp-single-call-pentalty): Document.
12864
12865 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
12866
12867 PR ipa/65588
12868 * symtab.c (symtab_node::get_partitioning_class): Register vars
12869 are duplicated.
12870 * varpool.c (symbol_table::output_variables) Do not assemble unefined
12871 decls for non-symbols.
12872
12873 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
12874
12875 PR target/65248
12876 * output.h (default_binds_local_p_2): New.
12877 * varasm.c (default_binds_local_p_2): Renamed to ...
12878 (default_binds_local_p_3): This. Don't return true on protected
12879 data symbol if protected data may be external.
12880 (default_binds_local_p): Use default_binds_local_p_3.
12881 (default_binds_local_p_1): Likewise.
12882 (default_binds_local_p_2): New.
12883 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
12884 default_binds_local_p_2 if TARGET_MACHO is undefined.
12885
12886 2015-03-27 Jakub Jelinek <jakub@redhat.com>
12887
12888 PR target/65593
12889 * config/i386/i386.c (legitimize_pic_address): If base
12890 is SYMBOL_REF or LABEL_REF using %rip addressing, force
12891 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
12892
12893 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
12894
12895 PR target/65531
12896 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
12897 comdat groups.
12898
12899 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
12900
12901 PR ipa/65600
12902 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
12903 of optimized out indirect call.
12904 (redirect_to_unreachable): Always build symbol table node for
12905 BUILT_IN_UNREACHABLE
12906
12907 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
12908
12909 PR target/65407
12910 * ira-costs.c (record_reg_classes): Process all constraint string
12911 containing 0-9.
12912
12913 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
12914
12915 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
12916 memory_operand.
12917
12918 PR target/65052
12919 * config/c6x/constraints.md (S3): New constraint.
12920 * config/c6x/c6x.md (real_jump): Use it.
12921
12922 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
12923
12924 PR middle-end/65595
12925 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
12926 do redirection if the call is not optimized out.
12927
12928 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
12929
12930 PR target/65495
12931 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
12932 (fchkp-check-incomplete-type): Add LTO.
12933 (fchkp-zero-input-bounds-for-main): Likewise.
12934 (fchkp-first-field-has-own-bounds): Likewise.
12935 (fchkp-narrow-bounds): Likewise.
12936 (fchkp-narrow-to-innermost-array): Likewise.
12937 (fchkp-use-static-bounds): Likewise.
12938 (fchkp-use-static-const-bounds): Likewise.
12939 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
12940
12941 2015-03-27 Marek Polacek <polacek@redhat.com>
12942
12943 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
12944
12945 2015-03-27 Marek Polacek <polacek@redhat.com>
12946
12947 PR sanitizer/65583
12948 * ubsan.c (ubsan_create_edge): New function.
12949 (instrument_bool_enum_load): Call it.
12950 (instrument_nonnull_arg): Likewise.
12951 (instrument_nonnull_return): Likewise.
12952 (instrument_object_size): Likewise.
12953
12954 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
12955
12956 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
12957 auto_vec.
12958
12959 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
12960
12961 PR lto/65536
12962 * lto-streamer.h (class lto_location_cache): New.
12963 (struct data_in): Add location_cache.
12964 (lto_input_location): Update prototype.
12965 (stream_input_location_now): New.
12966 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
12967 pointer to location.
12968 (stream_input_location): Update.
12969 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
12970 (warn_odr): Apply location cache before warning.
12971 (lto_input_location): Update prototype.
12972 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
12973 Use stream_input_location_now.
12974 * lto-streamer-in.c (lto_location_cache::current_cache): New static
12975 variable.
12976 (lto_location_cache::cmp_loc): New function.
12977 (lto_location_cache::apply_location_cache): New function.
12978 (lto_location_cache::accept_location_cache): New function.
12979 (lto_location_cache::revert_location_cache): New function.
12980 (lto_location_cache::input_location): New function.
12981 (lto_input_location): Do location caching.
12982 (stream_input_location_now): New function.
12983 (input_eh_region, input_struct_function_base): Use
12984 stream_input_location_now.
12985 (lto_data_in_create): use new.
12986 (lto_data_in_delete): Use delete.
12987 * tree-streamer-in.c (unpack_ts_block_value_fields,
12988 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
12989 lto_input_ts_exp_tree_pointers): Update for cached location api.
12990
12991 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
12992
12993 PR ipa/65076
12994 * passes.def: Add pass_nothrow.
12995 * ipa-pure-const.c: (pass_data_nothrow): New.
12996 (pass_nothrow): New.
12997 (pass_nothrow::execute): New.
12998 (make_pass_nothrow): New.
12999 * tree-pass.h (make_pass_nothrow): Declare.
13000
13001 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
13002
13003 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
13004 edge to change by speculation resolution or redirection.
13005 (edge_set_predicate): Likewise.
13006 (inline_summary_t::duplicate): Likewise.
13007 (remap_edge_summaries): Likewise.
13008
13009 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
13010
13011 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
13012 New macros.
13013 (can_inline_edge_p): Relax option matching for always inline functions.
13014
13015 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
13016
13017 PR target/65561
13018 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
13019 Check operand 4 and operand 0 for equality.
13020 (avx512f_vextract<shuffletype>32x4_1_maskm):
13021 Check operand 6 and operand 0 for equality.
13022 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
13023 for equality.
13024 (vec_extract_hi_<mode>_maskm): Ditto.
13025
13026 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
13027
13028 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
13029 dead calls back to live.
13030 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
13031 cross check to ...
13032 (cgraph_node::verify_node): ... here; verify only callee edges,
13033 not caller.
13034 * cif-code.def (CILK_SPAWN): New code.
13035
13036 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
13037
13038 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
13039 (edge_set_predicate): Use it to mark unreachable edges.
13040 (inline_summary_t::duplicate): Remove unnecesary code.
13041 (remap_edge_summaries): Likewise.
13042 (dump_inline_summary): Report contains_cilk_spawn.
13043 (compute_inline_parameters): Compute contains_cilk_spawn.
13044 (inline_read_section, inline_write_summary): Stream
13045 contains_cilk_spawn.
13046 * ipa-inline.c (can_inline_edge_p): Do not touch
13047 DECL_STRUCT_FUNCTION that may not be available;
13048 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
13049 remove check for callee_fun->can_throw_non_call_exceptions and
13050 replace it by optimization attribute check; check for flag_exceptions.
13051 * ipa-inline-transform.c (inline_call): Maintain
13052 DECL_FUNCTION_PERSONALITY
13053 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
13054
13055 2015-03-26 Jakub Jelinek <jakub@redhat.com>
13056
13057 PR tree-optimization/65551
13058 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
13059 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
13060
13061 2015-03-26 Richard Biener <rguenther@suse.de>
13062
13063 PR middle-end/65555
13064 * tree-cfg.c (verify_gimple_call): Do not require a call to
13065 have no LHS if it wasn't recognized as control altering yet.
13066
13067 2015-03-26 Jakub Jelinek <jakub@redhat.com>
13068
13069 PR tree-optimization/64715
13070 * passes.def: Add another instance of pass_object_sizes before ccp1.
13071 * tree-object-size.c (pass_object_sizes::execute): In
13072 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
13073 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
13074 __bos result and the computed constant. Remove redundant
13075 checks, obsoleted by gimple_call_builtin_p test.
13076
13077 * var-tracking.c (variable_tracking_main_1): Don't track
13078 variables for targetm.no_register_allocation targets.
13079
13080 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
13081
13082 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
13083 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
13084
13085 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13086
13087 PR target/65569
13088 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
13089 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
13090 0.0 is correctly setup.
13091 (extenddftf2_internal): Likewise.
13092
13093 2015-03-25 Sebastian Pop <s.pop@samsung.com>
13094
13095 PR tree-optimization/65177
13096 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
13097 (bb_in_bbs): New.
13098 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
13099 edges not adjacent on the path to the original code.
13100
13101 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
13102
13103 PR bootstrap/65537
13104 * doc/install.texi (Building a native compiler): Document new
13105 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
13106 configuration assumes that the host supports the linker plugin.
13107
13108 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
13109
13110 PR target/65508
13111 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
13112 chain for generated call.
13113
13114 2015-03-25 Richard Biener <rguenther@suse.de>
13115
13116 * passes.c (pass_manager::execute_early_local_passes): Guard
13117 execution of pass_chkp_instrumentation_passes with
13118 flag_check_pointer_bounds.
13119 (pass_chkp_instrumentation_passes::gate): Likewise.
13120
13121 2015-03-25 Martin Liska <mliska@suse.cz>
13122
13123 PR tree-optimization/65538
13124 * symbol-summary.h (function_summary::~function_summary):
13125 Relese memory for allocated summaries.
13126 (function_summary::release): New function.
13127
13128 2015-03-25 Jakub Jelinek <jakub@redhat.com>
13129
13130 PR lto/65515
13131 * lto-streamer-out.c (DFS::worklist): New struct.
13132 (DFS::worklist_vec): New data member.
13133 (DFS::next_dfs_num): Remove.
13134 (DFS::DFS): Rewritten using worklist instead of recursion,
13135 using most of code from DFS::DFS_write_tree.
13136 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
13137 pass it to DFS_write_tree calls.
13138 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
13139 quick initial checks push it into worklist_vec and return.
13140
13141 2015-03-25 Richard Biener <rguenther@suse.de>
13142
13143 PR middle-end/65519
13144 * genmatch.c (expr::gen_transform): Re-write to avoid
13145 using gimple_build.
13146
13147 2015-03-25 Bin Cheng <bin.cheng@arm.com>
13148
13149 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
13150
13151 2015-03-25 Bin Cheng <bin.cheng@arm.com>
13152
13153 * config/arm/arm.opt (print_tune_info): New option.
13154 * config/arm/arm.c (arm_print_tune_info): New function.
13155 (arm_file_start): Call arm_print_tune_info.
13156 * config/arm/arm-protos.h (struct tune_params): Add comment.
13157 * doc/invoke.texi (@item -mprint-tune-info): New item.
13158 (-mtune): mention it in ARM Option Summary.
13159
13160 2015-03-25 DJ Delorie <dj@redhat.com>
13161
13162 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
13163 correct clause.
13164
13165 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
13166 Martin Liska <mliska@suse.cz>
13167
13168 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
13169 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
13170 (sem_item::add_type): New function.
13171 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
13172 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
13173 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
13174 (sem_function::equals_wpa): Fix typo.
13175 * ipa-icf.h (sem_item::add_type): New function.
13176 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
13177 order.
13178
13179 2015-03-24 Jakub Jelinek <jakub@redhat.com>
13180
13181 PR tree-optimization/65533
13182 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
13183 with swapped operands, call vect_free_slp_tree on
13184 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
13185 vector.
13186
13187 2015-03-24 Richard Biener <rguenther@suse.de>
13188
13189 PR middle-end/65517
13190 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
13191 for fixup if necessary.
13192
13193 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
13194
13195 * doc/extend.texi (Function Attributes): Add @cindex entries
13196 for all attributes and regularize their format. Delete text
13197 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
13198 information about "eightbit_data", "tiny_data", and "model"
13199 variable attributes to the Variable Attributes section. Fix
13200 some obvious typos and copy-editing issues.
13201 (Variable Attributes, Type Attributes): Likewise add/fix
13202 @cindex entries for all attributes.
13203
13204 2015-03-23 Jakub Jelinek <jakub@redhat.com>
13205
13206 PR target/65523
13207 * tree-chkp.c (chkp_build_returned_bound): Ignore
13208 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
13209
13210 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
13211
13212 PR target/65505
13213 * config/sh/predicates.md (simple_mem_operand,
13214 displacement_mem_operand): Add test for reg.
13215 (short_displacement_mem_operand): Test for displacement_mem_operand
13216 before invoking sh_disp_addr_displacement.
13217 * config/sh/constraints.md (Sdd, Sra): Simplify.
13218 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
13219 Remove redundant displacement_mem_operand tests.
13220
13221 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
13222
13223 PR target/65296
13224 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
13225 the same -mmcu=MCU more than once.
13226
13227 2015-03-23 Jakub Jelinek <jakub@redhat.com>
13228
13229 PR bootstrap/65522
13230 * ipa-devirt.c: Remove duplicate demangle.h include.
13231
13232 PR target/65504
13233 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
13234 on the pseudo.
13235 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
13236 REG_POINTER on *destptr after adjusting it for prologue size.
13237
13238 PR ipa/65521
13239 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
13240 ultimate_alias_target ()->order ints instead of
13241 ultimate_alias_target () pointers.
13242
13243 2015-03-23 Richard Biener <rguenther@suse.de>
13244
13245 PR tree-optimization/65518
13246 * tree-vect-stmts.c (vectorizable_load): Reject single-element
13247 interleaving cases we generate absymal code for.
13248
13249 2015-03-23 Richard Biener <rguenther@suse.de>
13250
13251 PR tree-optimization/65494
13252 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
13253 matches here.
13254 (vect_analyze_slp_instance): But do that here, always and once.
13255
13256 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13257
13258 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
13259 adding T or multiplying by T+1 and subracting T.
13260
13261 2015-03-22 Jeff Law <law@redhat.com>
13262
13263 PR rtl-optimization/64317
13264 * Makefile.in (OBJS): Add gcse-common.c
13265 * gcse.c: Include gcse-common.h
13266 (struct modify_pair_s): Move structure definition to gcse-common.h
13267 (compute_transp): Move function to gcse-common.c.
13268 (canon_list_insert): Similarly.
13269 (record_last_mem_set_info): Break out some code and put it into
13270 gcse-common.c. Call into the new common code.
13271 (compute_local_properties): Pass additional arguments to compute_transp.
13272 * postreload-gcse.c: Include gcse-common.h and df.h
13273 (modify_mem_list_set, blocks_with_calls): New variables.
13274 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
13275 (get_bb_avail_insn): Pass in the expression index too.
13276 (alloc_mem): Allocate memory for the new bitmaps and lists.
13277 (free_mem): Free memory for the new bitmaps and lists.
13278 (insert_expr_in_table): Record a bitmap index for each entry we
13279 add to the table.
13280 (record_last_mem_set_info): Call into common code in gcse-common.c.
13281 (get_bb_avail_insn): If no available insn was found in the requested
13282 BB. If BB has a single predecessor, see if the expression is
13283 transparent in BB and available in that single predecessor.
13284 (compute_expr_transp): New wrapper for compute_transp.
13285 (eliminate_partially_redundant_load): Pass expression's bitmap_index
13286 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
13287 (gcse_after_reload_main): If there are elements in the hash table,
13288 then compute transparency for all the elements in the hash table.
13289 * gcse-common.h: New file.
13290 * gcse-common.c: New file.
13291
13292 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
13293
13294 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
13295 as an adjective.
13296 (System Headers): Likewise.
13297 (Ifdef): Likewise.
13298 (Traditional macros): Likewise.
13299 (Invocation): Likewise.
13300 (Option Index): Likewise.
13301 * doc/cppopts.texi (-M): Likewise.
13302 (-finput-charset): Likewise.
13303 (--help): Likewise.
13304 * doc.invoke.texi (AVR Options): Likewise.
13305 (V850 Options): Likewise.
13306
13307 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
13308
13309 PR ipa/65475
13310 * ipa-devirt.c: Include demangle.h
13311 (odr_type_d): Add field rtti_broken.
13312 (odr_subtypes_equivalent_p): Do not require name to match.
13313 (compare_virtual_tables): Fix typo; if type already has ODR violation,
13314 bypass the tests; be ready for function referneces in vtables that are
13315 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
13316 (warn_odr): Give up for nameless types.
13317 (warn_types_mismatch): Report mismatch in mangled names;
13318 report mismatch in anonymous namespaces; look into component types to
13319 give useful error; report when mismatch is dragged in from other ODR
13320 type.
13321 (odr_types_equivalent_p): Match types for being polymorphic; avoid
13322 duplicated diagnostics.
13323 (add_type_duplicate): Reorder checks so more informative ones come
13324 first; fix typo; do not output "the extra base is defined here" when
13325 we did not warn.
13326 (BINFO_N_BASE_BINFOS): Relax sanity check.
13327
13328 2015-03-22 Martin Liska <mliska@suse.cz>
13329 Jakub Jelinek <jakub@redhat.com>
13330
13331 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
13332 masks that can potentially include a builtin.
13333 (ix86_add_new_builtins): Introduce fast filter for isa values
13334 that cannot trigger builtin inclusion.
13335
13336 2015-03-22 Martin Liska <mliska@suse.cz>
13337
13338 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
13339 (sem_item::update_hash_by_local_refs): Likewise.
13340 (sem_variable::get_hash): Empty line is fixed.
13341 (sem_item_optimizer::execute): Include adding of hash references.
13342 (sem_item_optimizer::update_hash_by_addr_refs): New function.
13343 (sem_item_optimizer::build_hash_based_classes): Use local hash.
13344 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
13345 (sem_item::update_hash_by_local_refs): Likewise.
13346
13347 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
13348
13349 PR ipa/65502
13350 * ipa-comdats.c (enqueue_references): Walk through thunks.
13351 (ipa_comdats): Likewise.
13352 (set_comdat_group_1): New function.
13353
13354 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
13355
13356 PR ipa/65475
13357 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
13358 non-polymorphic
13359
13360 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
13361 Gerald Pfeifer <gerald@pfeifer.com>
13362
13363 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
13364
13365 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13366 Sandra Loosemore <sandra@codesourcery.com>
13367
13368 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
13369 function parameter declaration.
13370 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
13371 Update arguments to nios2_adjust_call_address().
13372 (sibcall_internal): Rename from *sibcall.
13373 (sibcall_value_internal): Rename from *sibcall_value.
13374 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
13375 (nios2_large_got_address): Add target temp reg parameter.
13376 (nios2_got_address): Adjust call to nios2_large_got_address, add
13377 force_reg around it.
13378 (nios2_load_pic_address): Add target temp reg parameter, replace call
13379 to nios2_got_address with corresponding code.
13380 (nios2_legitimize_constant_address): Update call to
13381 nios2_load_pic_address.
13382 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
13383 to use temp reg for PIC loading purposes.
13384 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
13385 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
13386 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
13387
13388 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
13389
13390 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
13391 usage of "the @option{...}".
13392 (-Wopenmp-simd): Likewise.
13393 (-fsanitize-recover): Likewise.
13394 (-fsanitize-undefined-trap-on-error): Likewise.
13395 (-flto): Likewise.
13396 (tracer-dynamic-coverage-feedback): Likewise.
13397 (reorder-block-duplicate-feedback): Likewise.
13398 (loop-unroll-jam-size): Likewise.
13399 (-B): Likewise.
13400 (-I-): Likewise.
13401 (-mabs=legacy): Likewise.
13402 (-mupper-regs-df): Likewise.
13403 (-mupper-regs-sf): Likewise.
13404 (-mpointers-to-nested-functions): Likewise.
13405
13406 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
13407
13408 * doc/extend.texi (Cilk Plus Builtins): Add markup.
13409
13410 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
13411
13412 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
13413 additional index entries and cross-references.
13414 (-fchkp-check-incomplete-type): Likewise.
13415 (-fchkp-first-field-has-own-bounds): Likewise.
13416 (-fchkp-narrow-to-innermost-array): Likewise.
13417 (-fchkp-use-fast-string-functions): Likewise.
13418 (-fchkp-use-nochk-string-functions): Likewise.
13419 (-fchkp-use-static-const-bounds): Likewise.
13420 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
13421 (-fchkp-instrument-marked-only): Likewise.
13422 (-fchkp-use-wrappers): Likewise.
13423 (-static-libmpx): Likewise.
13424 (-static-libmpxwrappers): Likewise.
13425 * doc/extend.texi (bnd_legacy): Likewise.
13426 (bnd_instrument): Likewise.
13427 (bnd_variable_size): Likewise.
13428 (Pointer Bounds Checker builtins): Likewise.
13429
13430 2015-03-21 Tom de Vries <tom@codesourcery.com>
13431
13432 PR tree-optimization/65458
13433 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
13434 * cgraph.h (cgraph_node): Add parallelized_function field.
13435 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
13436 (input_overwrite_node): Read parallelized_function field.
13437 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
13438 parallelized_function on cgraph_node for child_fn.
13439 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
13440 Remove include of gt-tree-parloops.h.
13441 (parallelized_functions): Remove static variable.
13442 (parallelized_function_p): Rewrite using parallelized_function field of
13443 cgraph_node.
13444 (create_loop_fn): Remove adding to parallelized_functions.
13445 * Makefile.in (GTFILES): Remove tree-parloops.c
13446
13447 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
13448
13449 PR rtl-optimization/64366
13450 * lra.c (lra_update_insn_regno_info): Consider regs in
13451 CALL_INSN_FUNCTION_USAGE memory.
13452
13453 2015-03-20 Richard Biener <rguenther@suse.de>
13454
13455 PR middle-end/64715
13456 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
13457 for type comparison and gcc_checking_assert.
13458 (chrec_fold_plus_poly_poly): Likewise.
13459 (chrec_fold_multiply_poly_poly): Likewise.
13460 (chrec_convert_1): Likewise.
13461 * gimplify.c (gimplify_expr): Remove premature folding of
13462 &X + CST to &MEM[&X, CST].
13463
13464 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
13465
13466 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
13467 already is final.
13468 (ipa_inline): Recompute inline_failed codes.
13469 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
13470 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
13471 CIF_FINAL_ERROR.
13472
13473 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
13474
13475 PR rtl-optimization/60851
13476 * recog.c (constrain_operands): Accept a pseudo register before reload
13477 for LRA enabled targets.
13478
13479 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
13480
13481 PR target/65240
13482 * config/rs6000/predicates.md (easy_fp_constant): Remove special
13483 -ffast-math handling that kept non-0 constants live in the RTL
13484 until reload. Remove logic testing the number of instructions it
13485 took to create a constant in a GPR that was never used, due to a
13486 test for soft-float earlier.
13487 (memory_fp_constant): Delete, no longer used.
13488
13489 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
13490 alternatives for loading non-0 constants into GPRs for hard
13491 floating point that is no longer needed due to changes in
13492 easy_fp_constant. Add support for loading 0.0 into GPRs.
13493 (mov<mode>_hardfloat32): Likewise.
13494 (mov<mode>_hardfloat64): Likewise.
13495 (mov<mode>_64bit_dm): Likewise.
13496 (movtd_64bit_nodm): Likewise.
13497 (pre-reload move FP constant define_split): Delete define_split,
13498 since it is no longer used.
13499 (extenddftf2_internal): Remove GHF constraints that are not valid
13500 for extenddftf2.
13501
13502 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
13503
13504 PR rtl-optimization/63491
13505 * lra-constraints.c (check_and_process_move): Use src instead of
13506 sreg. Remove some dead code.
13507
13508 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
13509
13510 PR ipa/65380
13511 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
13512 (sem_variable::merge): Likewise.
13513
13514 2015-03-19 Martin Liska <mliska@suse.cz>
13515
13516 PR ipa/65465
13517 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
13518 all fields of cgraph_thunk_info.
13519
13520 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
13521
13522 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
13523 clone instrumented thunks.
13524
13525 2015-03-19 Richard Biener <rguenther@suse.de>
13526
13527 Revert
13528 2015-03-10 Richard Biener <rguenther@suse.de>
13529
13530 PR middle-end/63155
13531 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
13532 * tree-ssa-coalesce.c: Include timevar.h.
13533 (attempt_coalesce): Handle graph being NULL.
13534 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
13535 Split out abnormal coalescing to ...
13536 (perform_abnormal_coalescing): ... this function.
13537 (coalesce_ssa_name): Perform abnormal coalescing without computing
13538 live/conflict.
13539 (verify_ssa_coalescing_worker): New function.
13540 (verify_ssa_coalescing): Likewise.
13541
13542 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
13543 Jakub Jelinek <jakub@redhat.com>
13544
13545 PR sanitizer/65400
13546 * tsan.c (instrument_gimple): Clear tail call flag on
13547 calls.
13548
13549 2015-03-19 Jakub Jelinek <jakub@redhat.com>
13550
13551 PR sanitizer/65400
13552 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
13553 call in the return bb.
13554 (find_split_points): Add RETURN_BB argument, don't call
13555 find_return_bb.
13556 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
13557 if true append TSAN_FUNC_EXIT internal call after the call to
13558 the split off function.
13559 (execute_split_functions): Call find_return_bb here.
13560 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
13561 Adjust find_split_points and split_function calls.
13562
13563 2015-03-18 DJ Delorie <dj@redhat.com>
13564
13565 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
13566 (iorqi3_virt): Likewise.
13567
13568 2015-03-18 Tom de Vries <tom@codesourcery.com>
13569
13570 * tree-parloops.c (parallelize_loops): Make static.
13571 * tree-parloops.h (parallelize_loops): Remove extern declaration.
13572
13573 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
13574
13575 PR middle-end/64491
13576 Revert:
13577 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
13578
13579 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
13580 condition would be removed due to undefined behaviour.
13581
13582 2015-03-18 Martin Liska <mliska@suse.cz>
13583
13584 PR ipa/65432
13585 * cgraph.c (cgraph_node::get_create): Remove unnecessary
13586 xstrdup_for_dump wrapper.
13587 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
13588 sem_item::name.
13589 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
13590 with xstrdup_for_dump.
13591 (sem_variable::equals): Likewise.
13592 (sem_item_optimizer::read_section): Use symtab_node::name instead of
13593 sem_item::name.
13594 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
13595 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
13596 symtab_node::asm_name with xstrdup_for_dump.
13597 (congruence_class::dump): Use symtab_node::name instead of
13598 sem_item::name.
13599 * ipa-icf.h (symtab_node::name): Remove.
13600 (symtab_node::asm_name): Likewise.
13601
13602 2015-03-18 Jakub Jelinek <jakub@redhat.com>
13603
13604 PR tree-optimization/65450
13605 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
13606 function.
13607 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
13608 it instead of duplicate_ssa_name_ptr_info.
13609
13610 PR target/65222
13611 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
13612
13613 2015-03-18 Richard Biener <rguenther@suse.de>
13614
13615 * tree-data-ref.h (struct access_matrix): Remove.
13616 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
13617 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
13618 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
13619 (am_vector_index_for_loop): Likewise.
13620 (struct data_reference): Remove access_matrix member.
13621 (DR_ACCESS_MATRIX): Remove.
13622 (lambda_vector_new): Add comment.
13623 (lambda_matrix_new): Use XOBNEWVEC.
13624
13625 2015-03-18 Richard Biener <rguenther@suse.de>
13626
13627 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
13628 (pass_ch::execute): Cleanup the CFG only if we did sth.
13629 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
13630
13631 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13632
13633 * expmed.c (synth_mult): Use std::swap instead of manually
13634 swapping algorithms.
13635
13636 2015-03-18 Jakub Jelinek <jakub@redhat.com>
13637
13638 PR target/65078
13639 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
13640
13641 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
13642
13643 PR target/65296
13644 * config/avr/avr.opt (-nodevicelib): New option.
13645 * doc/invoke.texi (AVR Options): Document it.
13646 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
13647 libgcc.a, libc.a, libm.a.
13648 * config/avr/specs.h: Same.
13649 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
13650 which don't (directly) depend on the device. Print more help.
13651 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
13652 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
13653 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
13654 case of an error.
13655 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
13656 for specs file name.
13657 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
13658 * config/avr/avr-mcus.def: Adjust initializers and comments.
13659
13660 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
13661
13662 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
13663 DECL_ONE_ONLY to check if decl is one only.
13664 * ipa-split.c (consider_split): Limit splitt of one only functions.
13665
13666 2015-03-16 Jakub Jelinek <jakub@redhat.com>
13667
13668 PR tree-optimization/65427
13669 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
13670 functions.
13671 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
13672
13673 2015-03-16 Marek Polacek <polacek@redhat.com>
13674
13675 * cgraph.h (add_new_static_var): Remove declaration.
13676 * varpool.c (add_new_static_var): Remove function.
13677
13678 2015-03-16 Jakub Jelinek <jakub@redhat.com>
13679
13680 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
13681 instead of vec<tree> * with vec_alloc and release for args.
13682 Adjust all users.
13683
13684 PR middle-end/65431
13685 * omp-low.c (delete_omp_context): Only splay_tree_delete
13686 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
13687 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
13688
13689 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
13690
13691 PR sanitizer/64820
13692 * cfgexpand.c (align_base): New function.
13693 (alloc_stack_frame_space): Call it.
13694 (expand_stack_vars): Align prev_frame to be sure
13695 data->asan_vec elements aligned properly.
13696
13697 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
13698
13699 PR middle-end/65409
13700 * expr.c (store_field): Do not do a direct block copy if the source is
13701 a PARALLEL with BLKmode.
13702
13703 2015-03-16 Tom de Vries <tom@codesourcery.com>
13704
13705 PR middle-end/65414
13706 Revert:
13707 2015-03-12 Tom de Vries <tom@codesourcery.com>
13708
13709 PR rtl-optimization/64895
13710 * lra-lives.c (check_pseudos_live_through_calls): Use
13711 actual_call_used_reg_set instead of call_used_reg_set, if available.
13712
13713 2015-03-16 Alan Modra <amodra@gmail.com>
13714
13715 PR target/63150
13716 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
13717 Modify Z->r bswapdi splitter to use dest in place of scratch.
13718 In r->Z and Z->r bswapdi splitter rename word_high, word_low
13719 to word1, word2 and rearrange logic to suit.
13720 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
13721 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
13722 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
13723 Add one '?' on r->r. Modify Z->r splitter to avoid need for
13724 early clobber.
13725
13726 2015-03-14 Jakub Jelinek <jakub@redhat.com>
13727
13728 PR tree-optimization/65369
13729 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
13730 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
13731 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
13732
13733 PR tree-optimization/65418
13734 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
13735 are casts in the first PLUS_EXPR operand, ensure tbias and
13736 *totallowp are in the inner type.
13737
13738 PR rtl-optimization/65401
13739 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
13740 argument. If true, adjust_address_nv of x with big-endian
13741 correction for the mode widening to GET_MODE (y).
13742 (make_field_assignment): Don't do MEM mode widening here.
13743 Use MEM_P instead of GET_CODE == MEM.
13744
13745 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
13746
13747 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
13748 the external decls.
13749
13750 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13751
13752 PR target/64600
13753 * config/arm/arm.c (arm_gen_constant, AND case): Use
13754 ARM_SIGN_EXTEND when constructing AND mask.
13755
13756 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13757
13758 * graph.c (print_graph_cfg): Make function names visible and append
13759 parenthesis to it. Also make groups of basic blocks belonging to the
13760 same function visible.
13761
13762 2015-03-12 Richard Biener <rguenther@suse.de>
13763
13764 PR middle-end/44563
13765 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
13766 to avoid quadratic behavior with inline expansion splitting blocks.
13767 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
13768 with the successor if the predecessor will be merged with it.
13769 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
13770 entry block with its successor.
13771
13772 2015-03-13 Richard Biener <rguenther@suse.de>
13773
13774 PR middle-end/44563
13775 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
13776 (cleanup_tree_cfg_1): Do not call it.
13777 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
13778 (fixup_noreturn_call): Mark the stmt as control altering.
13779 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
13780 here.
13781 (pass_data_fixup_cfg): Produce a dump file.
13782 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
13783 (need_noreturn_fixup): New global.
13784 (pass_dominator::execute): Fixup queued noreturn calls.
13785 (optimize_stmt): Queue calls that became noreturn for fixup.
13786 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
13787 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
13788 (el_to_fixup): New global.
13789 (eliminate_dom_walker::before_dom_childre): Queue calls that
13790 became noreturn for fixup.
13791 (eliminate): Fixup queued noreturn calls.
13792 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
13793 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
13794 (substitute_and_fold_dom_walker::before_dom_children): Queue
13795 alls that became noreturn for fixup.
13796 (substitute_and_fold): Fixup queued noreturn calls.
13797
13798 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
13799
13800 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
13801 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
13802 are building; for methods check ODR type of class they belong to if
13803 they may lead to a polymorphic call.
13804 (sem_function::compare_polymorphic_p): Be bit smarter about testing
13805 when function may lead to a polymorphic call.
13806 (sem_function::compare_type_list): Remove.
13807 (sem_variable::equals): Update use of compatible_types_p.
13808 (sem_variable::parse_tree_refs): Remove.
13809 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
13810 cdtor.
13811 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
13812 matching here.
13813 (func_checker::compatible_polymorphic_types_p): Break out from ...
13814 (unc_checker::compatible_types_p): ... here.
13815 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
13816 Declare.
13817 (unc_checker::compatible_types_p): Update.
13818 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
13819 Remove.
13820
13821 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13822
13823 PR rtl-optimization/65235
13824 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
13825 When first element of vec_concat is const_int, calculate its size
13826 using second element.
13827
13828 2015-03-12 Richard Biener <rguenther@suse.de>
13829
13830 PR middle-end/65270
13831 * fold-const.c (operand_equal_p): Fix ordering of resetting
13832 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
13833
13834 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
13835
13836 * config/s390/s390.c (s390_reorg): Move code to output nops after label
13837 to s390_reorg ().
13838 (s390_asm_output_function_label): Likewise.
13839 * config/s390/s390.c (s390_asm_output_function_label):
13840 Fix function label alignment with -mhtopatch.
13841 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
13842 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
13843 ("nop_2_byte"): New define_insn.
13844 ("nop_4_byte"): Likewise.
13845 ("nop_6_byte"): Likewise.
13846 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
13847 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
13848
13849 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
13850
13851 PR target/65103
13852 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
13853 register.
13854
13855 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
13856
13857 PR target/65044
13858 * toplev.c (process_options): Restrict Pointer Bounds Checker
13859 usage with Address Sanitizer.
13860
13861 2015-03-12 Richard Biener <rguenther@suse.de>
13862
13863 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
13864 to split on.
13865 * omp-low.c (expand_omp_taskreg): Split block before removing
13866 the stmt.
13867 (expand_omp_target): Likewise.
13868 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
13869 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
13870 stmt to split_block.
13871
13872 2015-03-12 Tom de Vries <tom@codesourcery.com>
13873
13874 PR rtl-optimization/64895
13875 * lra-lives.c (check_pseudos_live_through_calls): Use
13876 actual_call_used_reg_set instead of call_used_reg_set, if available.
13877
13878 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
13879
13880 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
13881 (cgraph_node::remove): Likewise.
13882 (cgraph_node::get_untransformed_body): Likewise.
13883 * varpool.c (varpool_node::remove): Likewise.
13884 (varpool_node::get_constructor): Add sanity check.
13885
13886 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
13887
13888 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
13889 old GCC versions.
13890 (-fabi-compat-version): Likewise.
13891 (-ffriend-injection): Likewise.
13892 (-Wdeclaration-after-statement): Likewise.
13893 (-fomit-frame-pointer): Likewise.
13894 (-ftree-coalesce-inlined-vars): Likewise.
13895 (-fvisibility=): Likewise.
13896 * doc/extend.texi (Typeof): Likewise.
13897 (Zero Length): Likewise.
13898 (Escaped Newlines): Likewise.
13899 (Compound Literals): Likewise.
13900 (Function Attributes): Likewise.
13901 (Label Attributes): Likewise.
13902 (Type Attributes): Likewise.
13903 (Function Names): Likewise.
13904 (Other Builtins): Likewise.
13905 (Function Specific Option Pragmas): Likewise.
13906 (C++ Interface): Likewise.
13907
13908 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
13909
13910 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
13911
13912 2015-03-11 Marek Polacek <polacek@redhat.com>
13913
13914 PR tree-optimization/65388
13915 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
13916
13917 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
13918
13919 PR target/65296
13920 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
13921 * configure: Regenerate.
13922 * config.in: Regenerate.
13923 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
13924 [-mn-flash]: Document it.
13925 [__AVR_ARCH__]: Document avrtiny.
13926
13927 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
13928 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
13929 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
13930
13931 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13932
13933 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
13934
13935 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13936
13937 PR target/65242
13938 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
13939 allow reloads of PLUS in floating point/VSX registers.
13940
13941 2015-03-11 Junmo Park <junmoz.park@samsung.com>
13942
13943 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
13944 crypto_sha256_fast.
13945 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
13946
13947 2015-03-11 Richard Biener <rguenther@suse.de>
13948
13949 PR tree-optimization/65310
13950 * tree-sra.c (build_ref_for_offset): Also preserve larger
13951 alignment.
13952
13953 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
13954
13955 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
13956
13957 2015-03-10 Jakub Jelinek <jakub@redhat.com>
13958
13959 PR target/65368
13960 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
13961 new define_expand.
13962 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
13963
13964 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
13965
13966 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
13967 (sem_function::equals_wpa): ... here.
13968
13969 2015-03-10 Marek Polacek <polacek@redhat.com>
13970 Jakub Jelinek <jakub@redhat.com>
13971
13972 PR sanitizer/65367
13973 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
13974 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
13975 separately.
13976
13977 2015-03-10 Jakub Jelinek <jakub@redhat.com>
13978
13979 PR target/65286
13980 * config/rs6000/t-linux: For powerpc64* target set
13981 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
13982
13983 2015-03-10 Richard Biener <rguenther@suse.de>
13984
13985 PR middle-end/44563
13986 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
13987 for redirect_all_calls.
13988
13989 2015-03-10 Marek Polacek <polacek@redhat.com>
13990
13991 * gdbinit.in (pcfun): Define and document.
13992
13993 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
13994
13995 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
13996 of libgomp-plugin.h.
13997 (find_target_compiler): Support a case when the path to gcc is
13998 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
13999 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
14000 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
14001 libgomp-plugin.h.
14002 (main): Use GCC_INSTALL_NAME as target_driver_name.
14003 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
14004 define.
14005 (mkoffload.o): Remove obsolete include path and defines.
14006 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
14007
14008 2015-03-10 Richard Biener <rguenther@suse.de>
14009
14010 PR middle-end/63155
14011 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
14012 * tree-ssa-coalesce.c: Include timevar.h.
14013 (attempt_coalesce): Handle graph being NULL.
14014 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
14015 Split out abnormal coalescing to ...
14016 (perform_abnormal_coalescing): ... this function.
14017 (coalesce_ssa_name): Perform abnormal coalescing without computing
14018 live/conflict.
14019 (verify_ssa_coalescing_worker): New function.
14020 (verify_ssa_coalescing): Likewise.
14021
14022 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
14023
14024 PR target/65296
14025 * config.gcc (extra_options) [avr]: Remove.
14026 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
14027 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
14028 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
14029
14030 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
14031 (-mmcu=): Add Var and MissingArgError properties.
14032 (-march=): Remove.
14033 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
14034 * config/avr/t-multilib: Regenerate.
14035 * config/avr/specs.h: New file.
14036 * config/avr/driver-avr.c: New file.
14037 * config/avr/genopt.sh: Remove file.
14038 * config/avr/avr-tables.opt: Remove file.
14039 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
14040 * config/avr/avr-c.c: Same.
14041 * avr-arch.h: Same.
14042 (avr_current_device): Remove proto.
14043 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
14044 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
14045 (EXTRA_SPEC_FUNCTIONS): Define.
14046 (avr_devicespecs_file): New specs function proto.
14047 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
14048 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
14049 (avr_current_device): Remove definition and usage.
14050 (avr_set_core_architecture): New static function.
14051 (avr_option_override): Use it.
14052 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
14053 (mcu_name): New static array.
14054 (comparator, avr_archs_str, avr_mcus_str): New static functions.
14055 (avr_inform_devices, avr_inform_core_architectures): New functions.
14056 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
14057 (avrlibc.h) [WITH_AVRLIBC]: Include.
14058 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
14059 (print_mcu): Rewrite from scratch.
14060 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
14061 Forward to avr-specific specs defined in device-specs file.
14062 * config/avr/t-avr (driver-avr.o): New rule.
14063 (avr-devices.o): Depend on avr-arch.h.
14064 (avr-mcus): No more depend on avr-tables.opt.
14065 (avr-tables.opt): Remove rule.
14066 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
14067
14068 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
14069
14070 * c-family/c.opt (fchkp-use-wrappers): New.
14071 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
14072 (chkp_wrap_function): New.
14073 (chkp_build_instrumented_fndecl): Support wrapped
14074 functions.
14075 * doc/invoke.texi (-fcheck-pointer-bounds): New.
14076 (-fchkp-check-incomplete-type): New.
14077 (-fchkp-first-field-has-own-bounds): New.
14078 (-fchkp-narrow-bounds): New.
14079 (-fchkp-narrow-to-innermost-array): New.
14080 (-fchkp-optimize): New.
14081 (-fchkp-use-fast-string-functions): New.
14082 (-fchkp-use-nochk-string-functions): New.
14083 (-fchkp-use-static-bounds): New.
14084 (-fchkp-use-static-const-bounds): New.
14085 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
14086 (-fchkp-check-read): New.
14087 (-fchkp-check-write): New.
14088 (-fchkp-store-bounds): New.
14089 (-fchkp-instrument-calls): New.
14090 (-fchkp-instrument-marked-only): New.
14091 (-fchkp-use-wrappers): New.
14092 (-static-libmpx): New.
14093 (-static-libmpxwrappers): New.
14094
14095 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
14096
14097 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
14098 (CHKP_SPEC): Add wrappers library.
14099 * c-family/c.opt (static-libmpxwrappers): New.
14100
14101 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
14102
14103 * config/i386/linux-common.h (LIBMPX_LIBS): New.
14104 (LIBMPX_SPEC): New.
14105 (CHKP_SPEC): New.
14106 * gcc.c (CHKP_SPEC): New.
14107 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
14108 * c-family/c.opt (static-libmpx): New.
14109
14110 2015-03-10 Richard Biener <rguenther@suse.de>
14111
14112 PR middle-end/44563
14113 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
14114 for compare_type.
14115 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
14116 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
14117 (cgraph_add_edge_to_call_site_hash): Likewise.
14118 (cgraph_node::get_edge): Likewise.
14119 (cgraph_edge::set_call_stmt): Likewise.
14120 (cgraph_edge::remove_caller): Likewise.
14121
14122 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
14123
14124 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
14125 (callee_saved_gpr_regs_size): ... this.
14126 (callee_saved_regs_first_regno): Rename to ...
14127 (callee_saved_first_gpr_regno): ... this.
14128 (callee_saved_regs_last_regno) Rename to ...
14129 (callee_saved_last_gpr_regno): ... this.
14130 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
14131 variables.
14132 (nds32_initial_elimination_offset): Likewise.
14133 (nds32_expand_prologue): Likewise.
14134 (nds32_expand_epilogue): Likewise.
14135 (nds32_expand_prologue_v3push): Likewise.
14136 (nds32_expand_epilogue_v3pop): Likewise.
14137 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
14138 Adjust renamed variables.
14139 (nds32_output_stack_pop): Likewise.
14140
14141 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
14142
14143 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
14144 code in comment.
14145
14146 2015-03-10 Jakub Jelinek <jakub@redhat.com>
14147
14148 PR rtl-optimization/65321
14149 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
14150 than shift mode.
14151 * var-tracking.c (use_narrower_mode): Likewise.
14152
14153 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
14154
14155 PR tree-optimization/65355
14156 * varasm.c (notice_global_symbol): Do not produce RTL.
14157 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
14158 anchor.
14159 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
14160 check for section anchors.
14161
14162 2015-03-10 Alan Modra <amodra@gmail.com>
14163
14164 PR target/65286
14165 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
14166 to be single-arch by default. Set cpu_is_64bit for powerpc64
14167 given --with-cpu=native.
14168 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
14169 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
14170 and powerpc64le.
14171 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
14172 rs6000_isa_flags rather than TARGET_64BIT.
14173
14174 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
14175 Kaz Kojima <kkojima@gcc.gnu.org>
14176
14177 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
14178
14179 2015-03-09 Jakub Jelinek <jakub@redhat.com>
14180
14181 PR lto/65361
14182 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
14183 on a TREE_BINFO, instead use BINFO_TYPE.
14184
14185 2015-03-09 Richard Biener <rguenther@suse.de>
14186
14187 PR middle-end/65270
14188 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
14189 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
14190 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
14191 of that. When comparing dereferences compare alignment.
14192 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
14193
14194 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
14195
14196 * ipa-inline-analysis.c (check_callers): Check
14197 node->can_remove_if_no_direct_calls_and_refs_p.
14198 (growth_likely_positive): Reorganize to call
14199 can_remove_if_no_direct_calls_p later.
14200 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
14201 will_be_removed_from_program_if_no_direct_calls_p): Add
14202 will_inline parameter.
14203 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
14204 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
14205 Handle inliner case correctly.
14206
14207 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
14208
14209 PR tree-optimization/63743
14210 * cfgexpand.c (reorder_operands): Also reorder if only second operand
14211 had its definition forwarded by TER.
14212
14213 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
14214
14215 PR lto/65316
14216 * ipa-utils.h (types_odr_comparable): Add strict argument.
14217 * ipa-devirt.c: Fix whitespace;
14218 (odr_hasher): Remove.
14219 (odr_name_hasher, odr_vtable_hasher): New hashers.
14220 (can_be_name_hashed_p): New predicate.
14221 (hash_type_name): remove.
14222 (hash_odr_name): New.
14223 (odr_name_hasher::hash): new.
14224 (can_be_vtable_hashed_p): New.
14225 (hash_odr_vtable): New.
14226 (odr_vtable_hasher::hash): New.
14227 (types_same_for_odr): Add strict parameter.
14228 (types_odr_comparable): Likewise.
14229 (odr_name_hasher::equal): New.
14230 (odr_vtable_hasher::equal): New.
14231 (odr_name_hasher::remove): New.
14232 (odr_hash_type): Change to hash_table<odr_name_hasher>.
14233 (odr_vtable_hash_type): New.
14234 (odr_vtable_hash): New.
14235 (odr_subtypes_equivalent_p): Do strict comparsion.
14236 (add_type_duplicate): Merge type names; cleanup; avoid type
14237 duplicates.
14238 (register_odr_type): Initialize vtable hash.
14239 (build_type_inheritance_graph): Likewise
14240 (get_odr_type): Reorg to use two hashes.
14241 (dump_possible_polymorphic_call_targets): Move sanity check after debug
14242 output.
14243 (ipa_devirt): Dump type_inheritance_graph.
14244 (types_same_for_odr): Add strict mode.
14245
14246 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
14247
14248 PR ipa/65334
14249 * cgraph.h (symtab_node): Add definition_alignment,
14250 can_increase_alignment_p and increase_alignment.
14251 * symtab.c (symtab_node::can_increase_alignment_p,
14252 increase_alignment_1, symtab_node::increase_alignment,
14253 symtab_node::definition_alignment): New.
14254 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
14255 can_increase_alignment_p.
14256 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
14257 * tree-vect-stmts.c (ensure_base_align): Likewise.
14258 * varasm.c (function_section_1): Use definition_alignment.
14259 (assemble_start_function): Likewise.
14260 (emit_local): likewise.
14261 (build_constant_desc): Likewsie.
14262 (output_constant_def_contents): Likewise.
14263 (place_block_symbol): Likewise.
14264 (output_object_block): Likewise.
14265
14266 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
14267
14268 PR ipa/65316
14269 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
14270 when outputting debug.
14271
14272 2015-03-07 Marek Polacek <polacek@redhat.com>
14273 Martin Uecker <uecker@eecs.berkeley.edu>
14274
14275 PR sanitizer/65280
14276 * doc/invoke.texi: Update description of -fsanitize=bounds.
14277
14278 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
14279
14280 * tree-ssa-phiopt.c (neg_replacement): Remove.
14281 (tree_ssa_phiopt_worker): Remove negate optimization.
14282
14283 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
14284
14285 PR ipa/65302
14286 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
14287
14288 2015-03-06 Richard Biener <rguenther@suse.de>
14289
14290 PR middle-end/64928
14291 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
14292 and liveout_obstack members.
14293 (calculate_live_on_exit): Remove.
14294 (calculate_live_ranges): Change declaration.
14295 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
14296 (new_tree_live_info): Adjust.
14297 (calculate_live_ranges): Delete livein when not wanted.
14298 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
14299 Deal with partly deleted live info.
14300 (loe_visit_block): Remove temporary bitmap by using
14301 bitmap_ior_and_compl_into.
14302 (live_worklist): Adjust accordingly.
14303 (calculate_live_on_exit): Make static.
14304 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
14305 we do not need livein.
14306
14307 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
14308
14309 * real.c (real_from_string): Fix typo in assertion.
14310
14311 2015-03-06 Alex Velenko <alex.velenko@arm.com>
14312
14313 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
14314 the patch.
14315
14316 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
14317
14318 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
14319
14320 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
14321
14322 PR target/64342
14323 * lra-assigns.c (find_hard_regno_for): Rename to
14324 find_hard_regno_for_1. Add a new parameter.
14325 (find_hard_regno_for): New function using find_hard_regno_for_1.
14326
14327 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14328
14329 PR rtl-optimization/65067
14330 * expmed.c (store_bit_field, extract_bit_field): Reworked the
14331 strict volatile bitfield handling.
14332
14333 2015-03-05 Martin Liska <mliska@suse.cz>
14334
14335 PR ipa/65318
14336 * ipa-icf.c (sem_variable::equals): Compare variables types.
14337
14338 2015-03-05 Richard Henderson <rth@redhat.com>
14339
14340 PR target/65121
14341 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
14342 correctly check weak symbol binding.
14343
14344 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
14345
14346 PR middle-end/65315
14347 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
14348 needed alignment.
14349
14350 2015-03-05 Martin Liska <mliska@suse.cz>
14351
14352 * ipa-inline.c (inline_small_functions): Set default value to
14353 prevent warning during bootstrap.
14354 * tree.h: Add pragma guard that ignores false positives during
14355 bootstrap.
14356
14357 2015-03-05 Richard Biener <rguenther@suse.de>
14358
14359 PR tree-optimization/65310
14360 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14361 Properly preserve alignment of the base of the access.
14362
14363 2015-03-05 Richard Biener <rguenther@suse.de>
14364
14365 PR ipa/65270
14366 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
14367 Compare dependence info.
14368
14369 2015-03-05 Richard Biener <rguenther@suse.de>
14370
14371 PR middle-end/65233
14372 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
14373 tree-into-ssa.h.
14374 (walk_ssa_copies): Revert last chage. Instead do not walk
14375 SSA names registered for SSA update.
14376
14377 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
14378
14379 PR ipa/65270
14380 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
14381 vtable references for their containing type.
14382 (sem_function::equals_wpa): Compare TYPE_RESTRICT
14383 and type attributes.
14384
14385 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
14386
14387 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
14388 before negating it.
14389 * stor-layout.c (finalize_record_size): Revert latest change.
14390
14391 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
14392
14393 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
14394
14395 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
14396
14397 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
14398 for correct comdat handling.
14399 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
14400 Likewise.
14401 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
14402 (used_from_object_file_p_worker): Remove.
14403 (cgraph_node::only_called_directly_or_alised): Add
14404 used_from_object_file_p.
14405 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
14406 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
14407 can_remove_if_no_direct_calls_and_refs_p.
14408
14409 2015-03-04 Nick Clifton <nickc@redhat.com>
14410
14411 * config/rl78/rl78.h (enum reg_class): Remove real registers from
14412 General register class.
14413 * config/rl78/rl78-real.md: Replace general register constraints
14414 with real+virtual register constraints.
14415
14416 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14417
14418 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
14419 from checking for -mhtm option.
14420
14421 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
14422
14423 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
14424 (struct ipa_sra_check_caller_data): Add has_thunk field.
14425 (ipa_sra_check_caller): Check for thunk.
14426 (ipa_sra_preliminary_function_checks): Give up on function with
14427 thunks.
14428 (ipa_early_sra): Use call_for_symbol_and_aliases.
14429
14430 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
14431
14432 PR target/65249
14433 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
14434 called for __stack_chk_guard symbol.
14435
14436 2015-03-03 DJ Delorie <dj@redhat.com>
14437
14438 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
14439 inc/dec.
14440 (*addhi3_real): Likewise.
14441 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
14442 pattern to match incrementing memory.
14443 * config/rl78/predicates.md (rl78_1_2_operand): New.
14444 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
14445 it's the same and only mem.
14446 (rl78_alloc_physical_registers_op2): If there's effectively only
14447 one MEM, transcode it into HL.
14448 (rl78_far_p): Reject addresses that aren't legitimate.
14449
14450 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
14451
14452 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
14453 negating it.
14454
14455 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
14456
14457 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
14458
14459 Implement call0 ABI for xtensa
14460 * config/xtensa/constraints.md ("a" constraint): Include stack
14461 pointer in case of call0 ABI.
14462 ("q" constraint): Make empty in case of call0 ABI.
14463 ("D" constraint): Include stack pointer in case of call0 ABI.
14464 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
14465 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
14466 prototypes.
14467 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
14468 variable.
14469 (xtensa_regno_to_class): Make it a local variable in the
14470 function xtensa_regno_to_class.
14471 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
14472 macro, function prototype and implementation.
14473 (reg_nonleaf_alloc_order): Make it a local variable in the
14474 function order_regs_for_local_alloc.
14475 (xtensa_conditional_register_usage): New function.
14476 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
14477 (xtensa_valid_move): Allow direct moves to stack pointer
14478 register in call0 ABI.
14479 (xtensa_setup_frame_addresses): Only spill register windows in
14480 windowed ABI.
14481 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
14482 call0 ABI respectively.
14483 (xtensa_function_arg_1): Only mark a7 register for copying in
14484 windowed ABI.
14485 (xtensa_call_save_reg): New function.
14486 (compute_frame_size): Add space for callee saved register
14487 storage to the frame size in call0 ABI.
14488 (xtensa_expand_prologue): Generate code to set up stack frame
14489 and save callee-saved registers in call0 ABI.
14490 (xtensa_expand_epilogue): New function.
14491 (xtensa_set_return_address): New function.
14492 (xtensa_return_addr): Calculate return address in call0 ABI.
14493 (xtensa_builtin_saveregs): Only mark a7 register for copying and
14494 emit copying code in windowed ABI.
14495 (order_regs_for_local_alloc): Add preferred register allocation
14496 order for non-leaf function in call0 ABI.
14497 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
14498 (xtensa_asm_trampoline_template): Add trampoline generation for
14499 call0 ABI.
14500 (xtensa_trampoline_init): Add trampoline initialization for
14501 call0 ABI.
14502 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
14503 functions.
14504 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
14505 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
14506 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
14507 ABI call-used registers.
14508 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
14509 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
14510 call0 ABI.
14511 (REG_CLASS_CONTENTS): Include all registers into the preferred
14512 reload registers set, adjust the set in the
14513 xtensa_conditional_register_usage.
14514 (xtensa_regno_to_class): Drop variable declaration.
14515 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
14516 function.
14517 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
14518 respectively.
14519 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
14520 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
14521 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
14522 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
14523 location in call0 ABI.
14524 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
14525 stack adjustment size when handling exception.
14526 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
14527 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
14528 definitions.
14529 ("return" pattern): Generate ret.n/ret in call0 ABI.
14530 ("epilogue" pattern): Expand epilogue.
14531 ("nonlocal_goto" pattern): Use default in call0 ABI.
14532 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
14533 emit eh_set_a0_* depending on ABI.
14534 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
14535 ("eh_set_a0_call0", "blockage"): New patterns.
14536
14537 2015-03-03 Martin Liska <mliska@suse.cz>
14538
14539 PR ipa/65287
14540 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
14541
14542 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14543
14544 PR 65138/target
14545 * config/rs6000/rs6000-tables.opt: Regenerate table.
14546
14547 2015-03-03 Renlin Li <renlin.li@arm.com>
14548
14549 * doc/md.texi (@item ^): Change ? into ^.
14550
14551 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
14552
14553 * doc/tm.texi: Regenerated.
14554
14555 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
14556
14557 * builtins.c (expand_builtin_return_addr): Add
14558 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
14559 surrounding #ifdef.
14560 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
14561 definition to 1.
14562 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
14563 Likewise.
14564 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
14565 undefined.
14566 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
14567 paragraph.
14568
14569 2015-03-03 Martin Jambor <mjambor@suse.cz>
14570 Eric Botcazou <ebotcazou@adacore.com>
14571
14572 * tree-sra.c (ipa_sra_check_caller_data): New type.
14573 (has_caller_p): Removed.
14574 (ipa_sra_check_caller): New function.
14575 (ipa_sra_preliminary_function_checks): Use it.
14576
14577 2015-03-03 Martin Liska <mliska@suse.cz>
14578
14579 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
14580 instead of if branch.
14581
14582 2015-03-03 Martin Liska <mliska@suse.cz>
14583
14584 PR ipa/65282
14585 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
14586
14587 2015-03-23 Jeff Law <law@redhat.com>
14588
14589 PR tree-optimization/65241
14590 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
14591 hash table if INSERT is true.
14592
14593 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
14594
14595 PR target/65296
14596 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
14597
14598 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
14599
14600 PR target/64331
14601 * config/avr/avr.c (context.h, tree-pass.h): Include them.
14602 (avr_pass_data_recompute_notes): New static variable.
14603 (avr_pass_recompute_notes): New class.
14604 (avr_register_passes): New static function.
14605 (avr_option_override): Call it.
14606
14607 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
14608
14609 Fix various problems with specs file generation.
14610
14611 PR target/65296
14612 * config.gcc (extra_gcc_objs) [avr]: Remove.
14613 * config/avr/driver-avr.c: Remove file.
14614 * config/avr/t-avr (driver-avr.o): Remove rule.
14615 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
14616 INCLUDES to build. Depend on TM_H.
14617 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
14618 build warnings. Fix non-matching types and non-existing %-codes.
14619 (tm.h): Include.
14620 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
14621 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
14622 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
14623 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
14624 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
14625 (LIBGCC_SPEC): Remove definitions.
14626
14627 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
14628
14629 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
14630 to create a register in testing mode.
14631
14632 2015-03-03 Martin Liska <mliska@suse.cz>
14633 Jan Hubicka <hubicka@ucw.cz>
14634
14635 PR ipa/65263
14636 * cgraph.c (cgraph_node::has_thunk_p): New function.
14637 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
14638 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
14639 (sem_function::merge): Assert is changed.
14640
14641 2015-03-03 Martin Liska <mliska@suse.cz>
14642 Martin Jambor <mjambor@suse.cz>
14643
14644 PR ipa/65087
14645 * ipa-icf.c (sem_item_optimizer::execute): Change function
14646 return value to boolean.
14647 (sem_item_optimizer::merge_classes): Likewise.
14648 (ipa_icf_driver): Return TODO_remove_functions in case there's
14649 a merge operation processed.
14650 * ipa-icf.h: Change function return value to boolean.
14651
14652 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14653
14654 PR 65138/target
14655 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
14656 processor type for 64-bit little endian PowerPC.
14657
14658 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14659 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
14660 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
14661 printing built-in mask so it does not pass NULL pointers.
14662
14663 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
14664 -mcpu=powerpc64le.
14665
14666 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
14667
14668 PR target/58158
14669 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
14670 !ISA_HAS_FP_CONDMOVE.
14671
14672 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
14673
14674 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
14675 reload_completed.
14676
14677 2015-03-02 Ulrich Drepper <drepper@gmail.com>
14678
14679 * doc/invoke.texi (Options for Code Generation Conventions):
14680 Fix URL of DSO paper.
14681
14682 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
14683
14684 PR ipa/65130
14685 * ipa-inline.c (check_callers): Looks for recursion.
14686 (inline_to_all_callers): Give up on uninlinable or recursive edges.
14687 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
14688 summary of inline clones.
14689 (do_estimate_growth_1): Fix recursion check.
14690
14691 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
14692
14693 PR ipa/64988
14694 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
14695 comdat groups.
14696
14697 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
14698 Aldy Hernandez <aldyh@redhat.com>
14699
14700 PR lto/65276
14701 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
14702 when checking TYPE_BINFO.
14703
14704 2015-03-02 Richard Biener <rguenther@suse.de>
14705
14706 PR ipa/65270
14707 * ipa-icf-gimple.c: Include builtins.h.
14708 (func_checker::compare_memory_operand): Compare base alignment.
14709
14710 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
14711
14712 PR target/65184
14713 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
14714 are never passed by reference.
14715
14716 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
14717
14718 PR target/65183
14719 * tree-chkp.c (chkp_check_lower): Don't check against
14720 zero bounds for already instrumented functions.
14721 (chkp_check_upper): Likewise.
14722 (chkp_fini): Clean pass local data to avoid wrong reusage.
14723
14724 2015-02-28 Martin Liska <mliska@suse.cz>
14725 Jan Hubicka <hubicka@ucw.cz>
14726
14727 * ipa-icf.c (sem_variable::equals): Improve debug output;
14728 get variable constructor.
14729 (sem_variable::parse): Do not filter out too early; give up on
14730 volatile and register vars.
14731 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
14732 variables.
14733 * ipa-icf.h (sem_variable::init): Do not set ctor.
14734 (sem_variable::ctor): Remove.
14735
14736 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
14737
14738 PR middle-end/65233
14739 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
14740
14741 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
14742
14743 * ipa-icf.c: Include stor-layout.h
14744 (sem_function::compare_cgraph_references): Rename to ...
14745 (sem_item::compare_cgraph_references): ... this one.
14746 (sem_variable::equals_wpa): New function
14747 (sem_variable::equals): Do not check stuff already verified by
14748 equals_wpa.
14749 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
14750 * ipa-icf.h (sem_item): Add compare_cgraph_references.
14751 (sem_function): Remove compare_cgraph_references.
14752 (sem_variable): Turns equals_wpa into non-inline.
14753
14754 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
14755
14756 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
14757 (sem_item::add_expr): New function.
14758 (sem_function::hash_stmt): Handle operands of most statements.
14759 (sem_variable::get_hash): Hash the actual constructor.
14760 * ipa-icf.h (sem_item): Add add_expr.
14761 (sem_function): Update prototype of hash_stmt
14762
14763 2015-02-28 Martin Liska <mliska@suse.cz>
14764 Jan Hubicka <hubicka@ucw.cz>
14765
14766 PR ipa/65245
14767 * ipa-icf-gimple.c (func_checker::compare_function_decl):
14768 Remove.
14769 (func_checker::compare_variable_decl): Skip symtab vars.
14770 (func_checker::compare_cst_or_decl): Update.
14771 * ipa-icf.c (sem_function::parse): Do not consider aliases.
14772 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
14773 use correct symtab predicates.
14774 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
14775 (sem_variable::parse): Update comment.
14776 (sem_item_optimizer::build_graph): Consider ultimate aliases
14777 for references.
14778
14779 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
14780
14781 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
14782 of OBJ_TYPE_REF.
14783
14784 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
14785
14786 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
14787 (sem_variable::merge) Likewise.
14788
14789 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
14790
14791 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
14792 target; also match flag_ipa_devirt.
14793
14794 2015-03-01 Martin Liska <mliska@suse.cz>
14795 Jan Hubicka <hubicka@ucw.cz>
14796
14797 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
14798 Validate variable alignment.
14799 * ipa-icf.c (sem_function::equals_private): Be more precise
14800 about non-common function attributes.
14801 (sem_variable::equals): Likewise.
14802
14803 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
14804
14805 PR ipa/65237
14806 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
14807 across COMDAT group boundary.
14808
14809 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
14810
14811 PR ipa/65232
14812 * ipa-icf.c (clear_decl_rtl): New function.
14813 (sem_function::merge): Clear RTL before forming alias.
14814 (sem_variable::merge): Clear RTL before forming alias.
14815
14816 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
14817
14818 PR ipa/65236
14819 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
14820
14821 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
14822
14823 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
14824 to neon_to_gp<q>.
14825
14826 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
14827
14828 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
14829 a typo in the description.
14830
14831 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
14832
14833 PR target/64317
14834 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
14835 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
14836 * lra-constraints.c: Include "params.h".
14837 (EBB_PROBABILITY_CUTOFF): Use
14838 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
14839 (lra_inheritance): Use '<' instead of '<=' for
14840 EBB_PROBABILITY_CUTOFF.
14841 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
14842 Document change.
14843
14844 2015-02-27 Martin Liska <mliska@suse.cz>
14845
14846 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
14847 vector length condition.
14848
14849 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
14850
14851 * doc/extend.texi (x86 transactional memory intrinsics):
14852 Reorganize discussion of _xbegin. Clarify that the return
14853 value is a bit mask. Expand example and move to end of section.
14854
14855 2015-02-26 Jakub Jelinek <jakub@redhat.com>
14856 Aldy Hernandez <aldyh@redhat.com>
14857
14858 PR rtl-optimization/65220
14859 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
14860
14861 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
14862
14863 PR target/65032
14864 * lra-remat.c (update_scratch_ops): New.
14865 (do_remat): Call it.
14866 * lra.c (lra_register_new_scratch_op): New. Take code from ...
14867 (remove_scratches): ... here.
14868 * lra-int.h (lra_register_new_scratch_op): New prototype.
14869
14870 2015-02-27 Marek Polacek <polacek@redhat.com>
14871
14872 PR c/65040
14873 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
14874 -Wformat-signedness anymore.
14875
14876 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14877
14878 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
14879 function.
14880 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
14881
14882 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14883
14884 * config/s390/s390.c (enum s390_builtin):
14885 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
14886 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
14887 (s390_init_builtins): Generate new builtin functions.
14888 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
14889 (s390_sfpc, s390_efpc): New pattern definitions.
14890
14891 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14892
14893 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
14894 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
14895 (s390_builtin_decls): New array.
14896 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
14897 (s390_builtin_decl): New function.
14898 (TARGET_BUILTIN_DECL): Define macro.
14899
14900 2015-02-27 Richard Biener <rguenther@suse.de>
14901
14902 PR middle-end/63175
14903 * builtins.c (get_object_alignment_2): Make sure to re-apply
14904 the ANDed mask after recursing to its operand gets us a new
14905 misalignment bit position.
14906
14907 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
14908 Martin Liska <mliska@suse.cz>
14909
14910 PR bootstrap/65150
14911 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
14912 Use address_matters_p.
14913 (redirect_all_callers, set_addressable): New functions.
14914 (sem_function::merge): Reorganize and fix merging issues.
14915 (sem_variable::merge): Likewise.
14916 (sem_variable::compare_sections): Remove.
14917 * common.opt (fmerge-all-constants, fmerge-constants): Remove
14918 Optimization flag.
14919 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
14920 redirect them.
14921 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
14922 decl is used.
14923 (address_matters_1): New function.
14924 (symtab_node::address_matters_p): New function.
14925 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
14926 check for merged flag.
14927 * cgraph.h (address_matters_p): Declare.
14928 (symtab_node::address_taken_from_non_vtable_p): Remove.
14929 (symtab_node::address_can_be_compared_p): New method.
14930 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
14931 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
14932 Remove.
14933 (comdat_can_be_unshared_p_1) Use address_matters_p.
14934 (update_vtable_references): Fix formating.
14935 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
14936 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
14937 * cgraphclones.c: Preserve merged and icf_merged flags.
14938
14939 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
14940
14941 * doc/extend.texi (Function Attributes): Fix spelling and typos.
14942 (Label Attributes): Likewise.
14943 (Cilk Plus Builtins): Likewise.
14944 (ARC SIMD Built-in Functions): Likewise.
14945 (ARM C Language Extensions (ACLE)): Likewise.
14946 (PowerPC Built-in Functions): Likewise.
14947 (PowerPC Hardware Transactional Memory Built-in Functions):
14948 Likewise.
14949
14950 2015-02-26 Jakub Jelinek <jakub@redhat.com>
14951
14952 PR tree-optimization/65216
14953 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
14954 new stmt and new SSA_NAME for lhs whenever the arguments have
14955 changed and weren't just swapped. Fix comment typo.
14956
14957 PR tree-optimization/65215
14958 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
14959 for PDP endian targets.
14960 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
14961 Fix up formatting issues.
14962 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
14963 size is smaller than the original, adjust MEM_REF offset by the
14964 difference of sizes. Use is_gimple_mem_ref_addr instead of
14965 is_gimple_min_invariant test to avoid adding address temporaries.
14966
14967 2015-02-26 Martin Liska <mliska@suse.cz>
14968 Jan Hubicka <hubicka@ucw.cz>
14969
14970 PR ipa/64693
14971 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
14972 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
14973 (sem_item_optimizer::process_cong_reduction): Include division by
14974 sensitive references.
14975 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
14976 * ipa-ref.c (ipa_ref::address_matters_p): New function.
14977 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
14978
14979 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
14980
14981 PR target/65192
14982 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
14983 Remove.
14984 * config/avr/avr.c: Same.
14985 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
14986 Refuse any constant address not in 0..0xbf.
14987 * config/avr/avr.md (*mov<mode>, *movsf): Remove
14988 tiny_valid_direct_memory_access_range from insn conditions.
14989 (mov<mode>): Don't special-case expansion of avrtiny addresses.
14990
14991 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
14992
14993 PR target/61142
14994 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
14995 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
14996 * config/sh/predicates.md (const_logical_operand): New predicate.
14997 * config/sh/sh.md: Add new peephole2 patterns.
14998
14999 2015-02-26 Marek Polacek <polacek@redhat.com>
15000
15001 PR ipa/65008
15002 * ipa-inline.c (early_inliner): Recompute inline parameters.
15003
15004 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15005
15006 PR target/65171
15007 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
15008 instructions with TImode operands are included in the analysis.
15009
15010 2015-02-26 Sebastian Pop <s.pop@samsung.com>
15011
15012 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
15013 of an EDGE_FSM_THREAD.
15014
15015 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
15016
15017 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
15018
15019 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
15020
15021 PR debug/46102
15022 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
15023
15024 2015-02-26 Sebastian Pop <s.pop@samsung.com>
15025
15026 PR tree-optimization/65048
15027 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
15028 (thread_through_all_blocks): Call valid_jump_thread_path.
15029 Remove invalid FSM jump-thread paths.
15030
15031 2015-02-26 Jakub Jelinek <jakub@redhat.com>
15032
15033 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
15034 (ipa_write_optimization_summaries): Likewise.
15035 * tree-streamer.h: Include data-streamer.h.
15036 (streamer_mode_table): Declare extern variable.
15037 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
15038 * lto-streamer-out.c (lto_output_init_mode_table,
15039 lto_write_mode_table): New functions.
15040 (produce_asm_for_decls): Call lto_write_mode_table when streaming
15041 offloading LTO.
15042 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
15043 (lto_create_simple_input_block): Add mode_table argument to the
15044 lto_input_block constructors.
15045 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
15046 Likewise.
15047 * data-streamer-in.c (string_for_index): Likewise.
15048 * ipa-inline-analysis.c (inline_read_section): Likewise.
15049 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
15050 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
15051 * lto-streamer-in.c (lto_read_body_or_constructor,
15052 lto_input_toplevel_asms): Likewise.
15053 (lto_input_mode_table): New function.
15054 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
15055 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
15056 Use bp_pack_machine_mode.
15057 * real.h (struct real_format): Add name field.
15058 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
15059 (class lto_input_block): Add mode_table member.
15060 (lto_input_block::lto_input_block): Add mode_table_ argument,
15061 initialize mode_table.
15062 (struct lto_file_decl_data): Add mode_table field.
15063 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
15064 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
15065 unpack_ts_decl_common_value_fields,
15066 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
15067 * tree-streamer.c (streamer_mode_table): New variable.
15068 * real.c (ieee_single_format, mips_single_format,
15069 motorola_single_format, spu_single_format, ieee_double_format,
15070 mips_double_format, motorola_double_format,
15071 ieee_extended_motorola_format, ieee_extended_intel_96_format,
15072 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
15073 ibm_extended_format, mips_extended_format, ieee_quad_format,
15074 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
15075 decimal_single_format, decimal_double_format, decimal_quad_format,
15076 ieee_half_format, arm_half_format, real_internal_format): Add name
15077 field.
15078 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
15079
15080 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
15081
15082 PR target/65161
15083 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
15084 reordering for selective scheduling.
15085
15086 2015-02-26 Terry Guo <terry.guo@arm.com>
15087
15088 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
15089 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
15090 (arm_arch_no_volatile_ce): Declare new global variable.
15091 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
15092 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
15093 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
15094 (TARGET_NO_VOLATILE_CE): New macro.
15095 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
15096 volatile memory access in IT block
15097
15098 2015-02-25 Kai Tietz <ktietz@redhat.com>
15099
15100 PR tree-optimization/61917
15101 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
15102 that reduc_def_stmt is null.
15103
15104 2015-02-25 Martin Liska <mliska@suse.cz>
15105
15106 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
15107 hard register variables.
15108
15109 2015-02-25 Kai Tietz <ktietz@redhat.com>
15110
15111 PR target/64212
15112 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
15113 (symtab::noninterposable_alias): Likewise.
15114
15115 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
15116
15117 PR target/65167
15118 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
15119 bounds registers.
15120 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
15121
15122 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
15123
15124 PR target/64997
15125 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
15126 as split condition; force split via '#' in output pattern.
15127
15128 2015-02-25 Richard Biener <rguenther@suse.de>
15129 Kai Tietz <ktietz@redhat.com>
15130
15131 PR tree-optimization/61917
15132 * tree-vect-loop.c (vectorizable_reduction): Allow
15133 vect_internal_def without reduction to exit graceful.
15134
15135 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
15136
15137 PR target/65196
15138 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
15139 only with NONDEBUG_INSN_P.
15140
15141 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
15142
15143 Use variadic macros with avr-log.c.
15144
15145 * config/avr/avr-protos.h (avr_vdump): New prototype.
15146 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
15147 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
15148 * config/avr/avr-log.c: Adjust comments.
15149 (avr_vdump): New function.
15150 (avr_vadump): Pass caller as 2nd argument instead of format string.
15151 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
15152 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
15153
15154 2015-02-25 Jakub Jelinek <jakub@redhat.com>
15155
15156 PR lto/64374
15157 * target.def (target_option_stream_in): New target hook.
15158 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
15159 targetm.target_option.post_stream_in if non-NULL.
15160 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
15161 * doc/tm.texi: Updated.
15162 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
15163 function.
15164 (TARGET_OPTION_POST_STREAM_IN): Redefine.
15165
15166 2015-02-24 Jeff Law <law@redhat.com>
15167
15168 PR target/65117
15169 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
15170 of operand 0 and operand 2.
15171 (zero_cost_loop_end, loop_end): Similarly.
15172
15173 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
15174
15175 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
15176 CXX_MEM_STAT_INFO.
15177
15178 2015-02-24 DJ Delorie <dj@redhat.com>
15179
15180 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
15181 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
15182 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
15183 instead of hardcoding SImode.
15184
15185 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
15186
15187 * omp-low.c (create_omp_child_function): Tag entrypoint
15188 functions with a special attribute.
15189
15190 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15191
15192 PR target/65058
15193 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
15194
15195 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
15196
15197 PR rtl-optimization/65123
15198 * lra-remat.c (operand_to_remat): Check hard regs in insn
15199 definition too.
15200
15201 2015-02-24 Nick Clifton <nickc@redhat.com>
15202
15203 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
15204 to the assembler.
15205
15206 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
15207
15208 PR libgomp/64625
15209 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
15210 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
15211 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
15212 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
15213 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
15214 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
15215 (BUILT_IN_GOACC_PARALLEL): Specify as
15216 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
15217 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
15218 * builtin-types.def
15219 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
15220 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
15221 Remove function types.
15222 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
15223 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
15224 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
15225 New function types.
15226
15227 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
15228
15229 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
15230
15231 2015-02-24 Jakub Jelinek <jakub@redhat.com>
15232
15233 PR tree-optimization/65170
15234 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
15235 if val[1] < 0, clear also val[2] and return 3.
15236
15237 2015-02-24 Alan Modra <amodra@gmail.com>
15238
15239 PR target/65172
15240 * config/rs6000/rs6000.c (get_memref_parts): Only return true
15241 when *base is a reg. Handle nested plus addresses. Simplify
15242 pre_modify test.
15243
15244 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
15245
15246 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
15247 use natural alignment when optimizing for size.
15248
15249 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
15250
15251 PR target/65153
15252 * config/sh/sh.md (movsicc_true+3): Remove peephole.
15253 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
15254 * config/sh/sh.c (replace_n_hard_rtx): Remove.
15255
15256 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
15257
15258 PR fortran/63427
15259 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
15260 too big for a wide_int. Implement missing wrapping operation.
15261
15262 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
15263
15264 PR target/65163
15265 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
15266 instead of const_int 4294901760.
15267
15268 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
15269
15270 * config/avr/t-avr: Fix typo in comment.
15271
15272 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
15273
15274 * doc/rtl.texi (fma): Clarify documentation.
15275
15276 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
15277
15278 PR debug/58123
15279 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
15280 over input_location.
15281
15282 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
15283
15284 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
15285 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
15286 restrict alignments to absolute_biggest_alignment.
15287 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
15288 Define.
15289 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
15290 * doc/tm.texi: Regenerate.
15291 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
15292
15293 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
15294
15295 PR target/64172
15296 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
15297
15298 2015-02-20 Richard Biener <rguenther@suse.de>
15299
15300 PR tree-optimization/65136
15301 * tree-ssa-propagate.c: Include cfgloop.h.
15302 (replace_phi_args_in): Avoid replacing loop latch edge PHI
15303 arguments with constants.
15304
15305 2015-02-20 Jakub Jelinek <jakub@redhat.com>
15306 Martin Liska <mliska@suse.cz>
15307
15308 PR target/63892
15309 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
15310 don't try to create_thunk if stdarg_p. If
15311 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
15312 redirect_callers if possible.
15313 (sem_item_optimizer::execute): Call unregister_hooks here...
15314 (ipa_icf_driver): ... instead of here.
15315
15316 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15317
15318 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
15319 Mark operand 0 as earlyclobber in 2nd alternative.
15320 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
15321 Write negated shift amount into QI lowpart operand 0 and use it
15322 in the shift step.
15323 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15324
15325 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
15326
15327 * cgraph.h (clone_function_name_1): Declare.
15328 * cgraphclones.c (clone_function_name_1): New function.
15329 (clone_function_name): Use it.
15330 * lto-partition.c: Include "stringpool.h".
15331 (must_not_rename, maybe_rewrite_identifier)
15332 (validize_symbol_for_target): New static functions.
15333 (privatize_symbol_name): Use must_not_rename.
15334 (promote_symbol): Call validize_symbol_for_target.
15335 (lto_promote_cross_file_statics): Likewise.
15336 (lto_promote_statics_nonwpa): Likewise.
15337
15338 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
15339
15340 PR target/64452
15341 * config/avr/avr.md (pushhi_insn): New insn.
15342 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
15343
15344 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
15345 Jakub Jelinek <jakub@redhat.com>
15346
15347 * tree-streamer.c (preload_common_nodes): Don't preload
15348 TI_VA_LIST* for offloading.
15349 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
15350 in_lto_p.
15351
15352 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
15353
15354 * config/pa/pa.c (pa_emit_move_sequence): Always force
15355 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
15356 note on insn.
15357
15358 * config/pa/pa.c (pa_reloc_rw_mask): New function.
15359 (TARGET_ASM_RELOC_RW_MASK): Define.
15360 (pa_cannot_force_const_mem): Revert previous change.
15361
15362 2015-02-19 Martin Jambor <mjmabor@suse.cz>
15363 Jan Hubicka <hubicka@ucw.cz>
15364
15365 PR ipa/65028
15366 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
15367 across jump functions.
15368
15369 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
15370
15371 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
15372
15373 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
15374
15375 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
15376
15377 2015-02-19 Richard Henderson <rth@redhat.com>
15378
15379 PR middle-end/65074
15380 * varasm.c (default_binds_local_p_2): Don't test node->definition;
15381 test DECL_EXTERNAL independent of symtab_node.
15382
15383 2015-02-19 Jakub Jelinek <jakub@redhat.com>
15384
15385 PR lto/65012
15386 * varpool.c (varpool_node::get_constructor): Return early
15387 if this->lto_file_data is NULL.
15388
15389 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15390
15391 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
15392 (rank_for_schedule_debug): Update.
15393 (ready_sort): Make static. Move sorting logic to ...
15394 (ready_sort_debug, ready_sort_real): New static functions.
15395 (schedule_block): Sort both debug insns and real insns in preparation
15396 for ready list trimming. Improve debug output.
15397 * sched-int.h (ready_sort): Remove global declaration.
15398
15399 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
15400
15401 * ipa-icf.c (sem_function::equals_private): Adjust.
15402 (sem_function::bb_dict_test): Take a vec<int> * instead of
15403 auto_vec<int>.
15404 * ipa-icf.h (bb_dict_test): Likewise.
15405
15406 2015-02-18 Jakub Jelinek <jakub@redhat.com>
15407
15408 PR gcov-profile/64634
15409 * tree-eh.c (frob_into_branch_around): Fix up typos
15410 in function comment.
15411 (lower_catch): Put eh_seq resulting from EH lowering of
15412 the cleanup sequence after the cleanup rather than before it.
15413
15414 2015-02-18 Tom de Vries <tom@codesourcery.com>
15415
15416 * common.opt (fstdarg-opt): New option.
15417 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
15418 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
15419 (@item -fstdarg-opt): New item.
15420
15421 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
15422
15423 PR target/65064
15424 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
15425 for common symbols.
15426
15427 2015-02-18 Jakub Jelinek <jakub@redhat.com>
15428
15429 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
15430 insn-modes.h.
15431 (ALL_HOST_OBJS): Add mkoffload.o.
15432 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
15433
15434 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
15435
15436 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
15437 (compare_virtual_tables): Be smarter about skipping typeinfos;
15438 do sane output on virtual table table mismatch.
15439 (warn_odr): Be ready for forward declarations of enums;
15440 output sane info on base mismatch and virtual table mismatch.
15441 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
15442 when only one type is polymorphic.
15443 (get_odr_type): Fix hashtable corruption.
15444 (dump_odr_type): Dump mangled names.
15445
15446 2015-02-18 Richard Biener <rguenther@suse.de>
15447
15448 PR tree-optimization/65063
15449 * tree-predcom.c (determine_unroll_factor): Return 1 if we
15450 have replaced looparound PHIs.
15451
15452 2015-02-18 Martin Liska <mliska@suse.cz>
15453
15454 * lto-streamer.c (lto_streamer_init): Encapsulate
15455 streamer_check_handled_ts_structures with checking macro.
15456
15457 2015-02-18 Jakub Jelinek <jakub@redhat.com>
15458
15459 PR ipa/65087
15460 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
15461 section if !implicit_section.
15462 (cgraph_node::create_version_clone_with_body): Likewise.
15463 * trans-mem.c (ipa_tm_create_version): Likewise.
15464
15465 2015-02-18 Richard Biener <rguenther@suse.de>
15466
15467 PR tree-optimization/62217
15468 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
15469 into BIVs.
15470
15471 2015-02-18 Marek Polacek <polacek@redhat.com>
15472
15473 PR sanitizer/65081
15474 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
15475 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
15476 is in range [-16K, -1]. Don't issue run-time error if
15477 (ptr > ptr + offset).
15478
15479 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
15480
15481 * doc/install.texi (nvptx-*-none): New section.
15482 * doc/invoke.texi (Nvidia PTX Options): Likewise.
15483 * config/nvptx/nvptx.opt: Update.
15484
15485 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
15486 (access_check): New functions, copied from
15487 config/i386/intelmic-mkoffload.c.
15488 (main): For non-installed testing, look in all COMPILER_PATHs for
15489 GCC_INSTALL_NAME.
15490
15491 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
15492
15493 2015-02-18 Andrew Pinski <apinski@cavium.com>
15494 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15495
15496 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
15497 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
15498
15499 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
15500
15501 * ipa-visibility.c (function_and_variable_visibility): Only
15502 check locality if node is not already local.
15503 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
15504 call_for_symbol_and_aliases instead of
15505 call_for_symbol_thunks_and_aliases.
15506 (ipa_inline): Likewise.
15507 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
15508 first walk aliases.
15509 * ipa.c (symbol_table::remove_unreachable_nodes): Use
15510 call_for_symbol_and_aliases.
15511 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
15512 (ipa_propagate_frequency_1): Use it; use opt_for_fn
15513 (ipa_propagate_frequency): Update.
15514 (ipa_profile): Add opt_for_fn gueards.
15515
15516 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
15517
15518 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
15519 * doc/invoke.texi (SH options): Document it.
15520 * config/sh/sh.c (sh_insn_length_adjustment): Check
15521 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
15522
15523 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
15524
15525 * common.opt (fipa-cp-alignment): New.
15526 * ipa-cp.c (ipcp_store_alignment_results): Check
15527 flag_ipa_cp_alignment.
15528 * opts.c (default_options_table): Enable -fipa-cp-alignment for
15529 -O2.
15530 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
15531 * doc/invoke.texi: Document -fipa-cp-alignment.
15532
15533 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
15534
15535 PR target/64793
15536 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
15537 to nil. Adjust comments.
15538
15539 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
15540
15541 * ipa-visibility.c (function_and_variable_visibility): Only
15542 check locality if node is not already local.
15543 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
15544 call_for_symbol_and_aliases instead of
15545 call_for_symbol_thunks_and_aliases.
15546 (ipa_inline): Likewise.
15547 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
15548 first walk aliases.
15549 * ipa.c (symbol_table::remove_unreachable_nodes): Use
15550 call_for_symbol_and_aliases.
15551 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
15552 (ipa_propagate_frequency_1): Use it; use opt_for_fn
15553 (ipa_propagate_frequency): Update.
15554 (ipa_profile): Add opt_for_fn guards.
15555
15556 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15557
15558 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
15559 skipping of "strange" tokens.
15560
15561 2015-02-17 Jeff Law <law@redhat.com>
15562
15563 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
15564 obsolete comment.
15565
15566 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
15567
15568 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
15569 as forcing a HARD_DEP between instructions, thereby
15570 disallowing rewriting to break dependencies.
15571
15572 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
15573
15574 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
15575 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
15576 variables in boundary that have no inlitalizer encoded and are
15577 not aliases.
15578 * varasm.c (default_binds_local_p_2): External definitions do not
15579 count as definitions here.
15580
15581 2015-02-16 Jeff Law <law@redhat.com>
15582
15583 PR tree-optimization/64823
15584 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
15585 statements.
15586 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
15587 threading through blocks with PHIs, but no statements.
15588 (thread_through_normal_block): Distinguish between blocks where
15589 we did not process all the statements and blocks with no statements.
15590
15591 2015-02-16 Jakub Jelinek <jakub@redhat.com>
15592 James Greenhalgh <james.greenhalgh@arm.com>
15593
15594 PR ipa/64963
15595 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
15596 section if not linkonce. Fix up formatting.
15597 (cgraph_node::create_version_clone_with_body): Copy section.
15598 * trans-mem.c (ipa_tm_create_version): Likewise.
15599
15600 2015-02-16 Richard Biener <rguenther@suse.de>
15601
15602 PR tree-optimization/65077
15603 * tree-ssa-structalias.c (get_constraint_for_1): Handle
15604 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
15605 (find_func_aliases): Allow float values to carry pointers again.
15606
15607 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
15608
15609 * doc/install.texi (Specific): Reorder targets list to put
15610 aarch64 in alphabetical order. Add a link to aarch64*-*-*
15611 from the top menu.
15612
15613 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15614 David Edelsohn <dje.gcc@gmail.com>
15615
15616 PR target/65058
15617 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
15618 mapping class to external variable or function reference.
15619 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
15620 mapping class.
15621
15622 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
15623
15624 PR target/53348
15625 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
15626 ASM_WEAKEN_DECL if defined.
15627
15628 2015-02-16 Richard Biener <rguenther@suse.de>
15629
15630 PR lto/65015
15631 * varasm.c (default_file_start): For LTO produced units
15632 emit <artificial> as file directive.
15633
15634 2015-02-16 Richard Biener <rguenther@suse.de>
15635
15636 PR tree-optimization/63593
15637 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
15638 stmts and releasing SSA names until...
15639 (execute_pred_commoning): ... after processing all chains.
15640
15641 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
15642
15643 PR ipa/65059
15644 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
15645 external functions.
15646
15647 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
15648
15649 * doc/bugreport.texi: Adjust section titles throughout the file
15650 to use "Title Case".
15651 * doc/extend.texi: Likewise.
15652 * doc/gcov.texi: Likewise.
15653 * doc/implement-c.texi: Likewise.
15654 * doc/implement-cxx.texi: Likewise.
15655 * doc/invoke.texi: Likewise.
15656 * doc/objc.texi: Likewise.
15657 * doc/standards.texi: Likewise.
15658 * doc/trouble.texi: Likewise.
15659
15660 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
15661
15662 * cgraph.h (symtab_node::has_aliases_p): Simplify.
15663 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
15664 * tree.c (lookup_binfo_at_offset): Make static.
15665 (get_binfo_at_offset): Do not shadow offset; add explanatory
15666 comment.
15667
15668 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
15669
15670 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
15671 for all floading point loads and stores except those using a register
15672 index address.
15673 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
15674 to a register.
15675
15676 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
15677
15678 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
15679 (do_estimate_growth_1): Record if any uninlinable edge was seen.
15680 (estimate_growth): Handle uninlinable edges correctly.
15681 (check_callers): New.
15682 (growth_likely_positive): Handle aliases correctly.
15683
15684 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
15685
15686 * ipa-chkp.c: Use iterate_direct_aliases.
15687 * symtab.c (resolution_used_from_other_file_p): Move inline.
15688 (symtab_node::create_reference): Fix formating.
15689 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
15690 (symtab_node::iterate_reference): Move inline.
15691 (symtab_node::iterate_referring): Move inline.
15692 (symtab_node::iterate_direct_aliases): Move inline.
15693 (symtab_node::used_from_object_file_p_worker): Inline into ...
15694 (symtab_node::used_from_object_file_p): ... this one; move inline.
15695 (symtab_node::call_for_symbol_and_aliases): Move inline;
15696 use iterate_direct_aliases.
15697 (symtab_node::call_for_symbol_and_aliases_1): New method.
15698 (cgraph_node::call_for_symbol_and_aliases): Move inline;
15699 use iterate_direct_aliases.
15700 (cgraph_node::call_for_symbol_and_aliases_1): New method.
15701 (varpool_node::call_for_node_and_aliases): Rename to ...
15702 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
15703 use iterate_direct_aliases.
15704 (varpool_node::call_for_symbol_and_aliases_1): New method.
15705 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
15706 (ipa_discover_readonly_nonaddressable_var): Update.
15707 * ipa-devirt.c: Fix formating.
15708 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
15709 Move inline.
15710 (cgraph_node::call_for_symbol_and_aliases): Move inline.
15711 (cgraph_node::call_for_symbol_and_aliases_1): New function..
15712 * cgraph.h (used_from_object_file_p_worker): Remove.
15713 (resolution_used_from_other_file_p): Move inline.
15714 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
15715 (symtab_node::iterate_reference): Move inline.
15716 (symtab_node::iterate_referring): Move inline.
15717 (symtab_node::iterate_direct_aliases): Move inline.
15718 (symtab_node::used_from_object_file_p_worker): Inline into ...
15719 (symtab_node::used_from_object_file_p): Move inline.
15720 * tree-emutls.c (ipa_lower_emutls): Update.
15721 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
15722 (varpool_node::call_for_node_and_aliases): Remove.
15723
15724 2015-02-14 Jakub Jelinek <jakub@redhat.com>
15725
15726 PR tree-optimization/62209
15727 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
15728 op == range->exp, insert seq and gimplified code after labels
15729 instead of after the phi.
15730
15731 2015-02-13 Jeff Law <law@redhat.com>
15732
15733 PR bootstrap/65060
15734 Revert my change for tree-optimization/64823.
15735
15736 2015-02-13 Jakub Jelinek <jakub@redhat.com>
15737
15738 PR tree-optimization/65053
15739 * tree-ssa-phiopt.c (value_replacement): When moving assign before
15740 cond, either reset VR on lhs or set it to phi result VR.
15741
15742 2015-02-13 Jeff Law <law@redhat.com>
15743
15744 PR tree-optimization/64823
15745 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
15746 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
15747 threading through blocks with PHIs, but no statements.
15748 (thread_through_normal_block): Distinguish between blocks where
15749 we did not process all the statements and blocks with no statements.
15750
15751 PR rtl-optimization/47477
15752 * match.pd (convert (plus/minus (convert @0) (convert @1): New
15753 simplifier to narrow arithmetic.
15754
15755 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
15756
15757 PR ipa/65028
15758 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
15759 polymorphic call info when type is not known to be preserved.
15760
15761 2015-02-13 Maritn Jambor <mjambor@suse.cz>
15762
15763 PR ipa/65028
15764 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
15765 (inline_call): Use it.
15766
15767 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
15768
15769 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
15770 GOMP_DEVICE_NVIDIA_PTX.
15771
15772 2015-02-13 Jakub Jelinek <jakub@redhat.com>
15773
15774 PR ipa/65034
15775 * stmt.c (emit_case_nodes): Use void_type_node instead of
15776 NULL_TREE as LABEL_DECL type.
15777
15778 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
15779
15780 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
15781 constraints.
15782 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
15783 symbolic references to data to be forced to constant memory on the
15784 SOM target.
15785
15786 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
15787
15788 PR tree-optimization/65002
15789 * tree-cfg.c (pass_data_fixup_cfg): Don't update
15790 SSA on start.
15791 * tree-sra.c (some_callers_have_no_vuse_p): New.
15792 (ipa_early_sra): Reject functions whose callers
15793 assume function is read only.
15794
15795 2015-02-13 Richard Biener <rguenther@suse.de>
15796
15797 PR lto/65015
15798 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
15799 for LTO produced CUs.
15800
15801 2015-02-13 Bin Cheng <bin.cheng@arm.com>
15802
15803 PR tree-optimization/64705
15804 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
15805 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
15806 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
15807 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
15808 expand_simple_operations.
15809
15810 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
15811 Richard Henderson <rth@redhat.com>
15812
15813 PR rtl/32219
15814 * cgraphunit.c (cgraph_node::finalize_function): Set definition
15815 before notice_global_symbol.
15816 (varpool_node::finalize_decl): Likewise.
15817 * varasm.c (default_binds_local_p_2): Rename from
15818 default_binds_local_p_1, add weak_dominate argument. Use direct
15819 returns instead of assigning to local variable. Unify varpool and
15820 cgraph paths via symtab_node. Reject undef weak variables before
15821 testing visibility. Reorder tests for simplicity.
15822 (default_binds_local_p): Use default_binds_local_p_2.
15823 (default_binds_local_p_1): Likewise.
15824 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
15825 via symtab_node.
15826 (default_elf_asm_output_external): Emit visibility when specified.
15827
15828 2015-02-13 Alan Modra <amodra@gmail.com>
15829
15830 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
15831 code setting up r11 for out-of-line fp restore.
15832
15833 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
15834
15835 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
15836 (muser-mode): Likewise.
15837
15838 2015-02-13 Alan Modra <amodra@gmail.com>
15839
15840 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
15841 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
15842
15843 2015-02-12 David Howells <dhowells@redhat.com>
15844
15845 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
15846 warning.
15847 * tree-ssa-uninit.c (dump_predicates): Likewise.
15848 * opts.c (print_filtered_help): Likewise.
15849
15850 2015-02-12 Jakub Jelinek <jakub@redhat.com>
15851
15852 * dwarf2out.c (output_die): Use "%s", name instead of name to
15853 avoid -Wformat-security warning.
15854
15855 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
15856 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
15857 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
15858 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
15859
15860 2015-02-12 Jason Merrill <jason@redhat.com>
15861
15862 * common.opt (-flifetime-dse): New.
15863
15864 2015-02-12 Jakub Jelinek <jakub@redhat.com>
15865
15866 PR sanitizer/65019
15867 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
15868
15869 PR tree-optimization/65014
15870 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
15871 use original second operand of arg0 or arg1 instead of
15872 that adjusted by STRIP_NOPS.
15873
15874 2015-02-11 Jeff Law <law@redhat.com>
15875
15876 PR target/63347
15877 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
15878 that needs to be queued, just queue it for a single cycle.
15879
15880 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
15881
15882 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
15883 bodies of thunks; comment on why.
15884 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
15885 symbols are extern.
15886
15887 2015-02-11 Richard Henderson <rth@redhat.com>
15888
15889 PR sanitize/65000
15890 * tree-eh.c (mark_reachable_handlers): Mark source and destination
15891 regions of __builtin_eh_copy_values.
15892
15893 2015-02-11 Jakub Jelinek <jakub@redhat.com>
15894
15895 PR middle-end/65003
15896 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
15897 ultimate alias is MEM with SYMBOL_REF satisfying
15898 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
15899 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
15900
15901 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
15902
15903 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
15904 "diagnostic-core.h".
15905 (main): Initialize progname, and call diagnostic_initialize.
15906
15907 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
15908 instead of __OPENMP_TARGET__.
15909
15910 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
15911 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
15912 hard-coding PTX_ID.
15913
15914 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
15915
15916 * doc/sourcebuild.texi (pie_enabled): Document.
15917
15918 2015-02-11 Martin Liska <mliska@suse.cz>
15919
15920 PR ipa/64813
15921 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
15922 a return value for call to a function that is noreturn.
15923
15924 2015-02-11 Richard Biener <rguenther@suse.de>
15925
15926 PR lto/65015
15927 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
15928 and -fresolution.
15929
15930 2015-02-11 Andrew Pinski <apinski@cavium.com>
15931
15932 PR target/64893
15933 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
15934 Change the first argument type to size_type_node and add another
15935 size_type_node.
15936 (aarch64_simd_expand_builtin): Handle the new argument to
15937 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
15938 print an out when the first two arguments are not
15939 nonzero integer constants.
15940 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
15941 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
15942
15943 2015-02-11 Jakub Jelinek <jakub@redhat.com>
15944
15945 PR target/61925
15946 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
15947 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
15948 (ix86_set_current_function): Rewritten.
15949 (ix86_add_new_builtins): Temporarily clear current_target_pragma
15950 when creating builtin fndecls.
15951
15952 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
15953
15954 PR ipa/65005
15955 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
15956 function.
15957 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
15958 have no comdat group.
15959 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
15960 (lto_output_varpool_node): Always output alias info.
15961 (output_refs): Output refs of boundary aliases, too.
15962 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
15963 (output_symtab): Output call eges in thunks in boundary.
15964 (get_alias_symbol): Remove.
15965 (input_node, input_varpool_node): Do not special case weakrefs.
15966 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
15967 alias and thunks targets in the boundary; do not take removed symbols
15968 from their comdat groups.
15969 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
15970 (cgraph_node::global_info): Remove.
15971 (cgraph_node::rtl_info): Look through aliases and thunks.
15972 * cgrpah.h (global_info): Remove.
15973 (non_local_p): Remove.
15974
15975 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
15976 Sandra Loosemore <sandra@codesourcery.com>
15977
15978 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
15979 to inline asm. List dialects in proper order.
15980
15981 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
15982 Sandra Loosemore <sandra@codesourcery.com>
15983
15984 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
15985
15986 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
15987
15988 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
15989 modified) reference to Solaris.
15990
15991 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
15992
15993 * doc/extend.texi (Extended Asm): Fix typos.
15994
15995 2015-02-10 Jakub Jelinek <jakub@redhat.com>
15996
15997 PR sanitizer/65004
15998 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
15999
16000 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
16001
16002 PR target/64661
16003 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
16004 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
16005 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
16006 * config/sh/constraints.md (Ara, Add): New constraints.
16007 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
16008 predicates.
16009 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
16010 atomic_mem_operand_0. Don't use force_reg on the memory address.
16011 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
16012 Sra constraint. Convert to insn_and_split. Add workaround for
16013 PR 64974.
16014 (atomic_compare_and_swap<mode>_hard): Copy to
16015 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
16016 Use atomic_mem_operand_0 predicate.
16017 (atomic_compare_and_swap<mode>_soft_gusa,
16018 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
16019 AraAdd constraints.
16020 (atomic_compare_and_swap<mode>_soft_tcb,
16021 atomic_compare_and_swap<mode>_soft_imask,
16022 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
16023 atomic_mem_operand_0 predicate and SraSdd constraints.
16024 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
16025 constraint.
16026 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
16027 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
16028 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
16029 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
16030 force_reg on the memory address.
16031 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
16032 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
16033 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
16034 atomic_mem_operand_1 predicate and Sra constraint.
16035 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
16036 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
16037 Use atomic_mem_operand_1 predicate.
16038 (atomic_<fetchop_name><mode>_hard): Copy to
16039 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
16040 Use atomic_mem_operand_1 predicate.
16041 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
16042 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
16043 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
16044 insn_and_split. Use atomic_mem_operand_1 predicate.
16045 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
16046 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
16047 Use atomic_mem_operand_1 predicate.
16048 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
16049 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
16050 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
16051 in generated insn with original mem operand before emitting the insn.
16052 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
16053 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
16054 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
16055 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
16056 Use atomic_mem_operand_1 predicate and AraAdd constraints.
16057 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
16058 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
16059 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
16060 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
16061 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
16062 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
16063 atomic_not_fetch<mode>_soft_tcb,
16064 atomic_<fetchop_name>_fetch<mode>_soft_imask,
16065 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
16066 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
16067 Use atomic_mem_operand_1 predicate and SraSdd constraints.
16068
16069 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
16070
16071 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
16072 and 3 earlyclobber operands.
16073
16074 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
16075
16076 * common.opt (fstack-reuse): Mark as optimization.
16077
16078 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
16079
16080 PR ipa/64982
16081 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
16082
16083 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
16084
16085 PR tree-optimization/64326
16086 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
16087
16088 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
16089
16090 PR gcov-profile/61889
16091 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
16092
16093 2015-02-10 Richard Biener <rguenther@suse.de>
16094
16095 PR tree-optimization/64995
16096 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
16097 value we use is final.
16098 (visit_reference_op_store): Always valueize op.
16099 (visit_use): Properly valueize vuses.
16100
16101 2015-02-10 Richard Biener <rguenther@suse.de>
16102
16103 PR tree-optimization/64909
16104 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
16105 pass a scalar-stmt count estimate to the cost model.
16106 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
16107
16108 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
16109
16110 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
16111 enabled by default together with var-tracking.
16112
16113 2015-02-10 Nick Clifton <nickc@redhat.com>
16114
16115 * config/rl78/rl78.c: Remove DIV attribute code accidentally
16116 included in previous rl78 commit.
16117
16118 2015-02-10 Richard Biener <rguenther@suse.de>
16119
16120 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
16121 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
16122 return the bitpack.
16123
16124 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
16125
16126 PR gcov-profile/61889
16127 * config.in: regenerate.
16128 * configure.in: Likewise.
16129 * configure.ac: Check for ftw.h.
16130 * gcov-tool.c: Check for ftw.h before using nftw.
16131
16132 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
16133
16134 PR lto/64076
16135 * ipa-visibility.c (update_visibility_by_resolution_info): Only
16136 assert when not in lto mode.
16137
16138 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16139
16140 * ira-color.c (setup_left_conflict_sizes_p): Simplify
16141 initialization/assignment of conflict_size.
16142
16143 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
16144
16145 PR ipa/64978
16146 * ipa-cp.c (gather_caller_stats): Skip thunks.
16147 (propagate_constants_topo): Skip aliases.
16148
16149 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
16150
16151 PR target/64761
16152 * config/sh/sh.c (sh_option_override): Don't change
16153 -freorder-blocks-and-partition to -freorder-blocks even when
16154 unwinding is enabled.
16155 (sh_can_follow_jump): Return false if the followee jump is
16156 a crossing jump when -freorder-blocks-and-partition is specified.
16157 * config/sh/sh.md (*jump_compact_crossing): New insn.
16158
16159 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
16160 Kaz Kojima <kkojima@gcc.gnu.org>
16161
16162 PR target/64761
16163 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
16164 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
16165 (sh_can_redirect_branch): Rename to ...
16166 (sh_can_follow_jump): ... this. Constify argument types.
16167 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
16168 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
16169 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
16170 * doc/tm.texi: Regenerate.
16171
16172 2015-02-09 Jakub Jelinek <jakub@redhat.com>
16173
16174 PR sanitizer/64981
16175 * builtins.c (expand_builtin): Call targetm.expand_builtin
16176 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
16177
16178 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16179
16180 PR ipa/61548
16181 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
16182
16183 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16184
16185 PR ipa/63566
16186 * ipa-icf.c (set_local): New function.
16187 (sem_function::merge): Use it.
16188
16189 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16190
16191 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
16192 (add_type_duplicate): Fix comparison of BINFOs.
16193
16194 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16195
16196 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
16197 on getting VOID pointer.
16198
16199 2015-02-09 Jakub Jelinek <jakub@redhat.com>
16200
16201 PR target/64979
16202 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
16203 va_list escapes.
16204
16205 2015-02-09 Richard Biener <rguenther@suse.de>
16206
16207 * genmatch.c (replace_id): Copy expr_type.
16208
16209 2015-02-09 Richard Biener <rguenther@suse.de>
16210
16211 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
16212 (streamer_write_tree_bitfields): Declare.
16213 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
16214 properly unpack padding.
16215 (unpack_value_fields): Inline ...
16216 (streamer_read_tree_bitfields): ... here.
16217 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
16218 and properly add padding bits.
16219 (streamer_pack_tree_bitfields): Fold into ...
16220 (streamer_write_tree_bitfields): ... this new function,
16221 exposing the bitpack object.
16222 * lto-streamer-out.c (lto_write_tree_1): Call
16223 streamer_write_tree_bitfields.
16224
16225 2015-02-09 Richard Biener <rguenther@suse.de>
16226
16227 PR tree-optimization/54000
16228 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
16229 (struct ivopts_data): Add loop_loc member.
16230 (tree_ssa_iv_optimize_loop): Dump loop location.
16231 (create_new_ivs): Likewise, also dump number of IVs generated.
16232
16233 2015-02-09 Martin Liska <mliska@suse.cz>
16234
16235 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
16236 just if not yet registered.
16237 (ipa_icf_generate_summary): Register callgraph hooks.
16238
16239 2015-02-08 Andrew Pinski <apinski@cavium.com>
16240
16241 * config/aarch64/aarch64.c (gty_dummy): Delete.
16242
16243 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16244
16245 PR ipa/63566
16246 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
16247 (cgraph_node::local_p): Remove thunk related FIXME.
16248
16249 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16250
16251 PR ipa/63566
16252 * i386.c (ix86_function_regparm): Look through aliases to see if callee
16253 is local and optimized.
16254 (ix86_function_sseregparm): Likewise; also use target's SSE math
16255 settings; error out instead of silently generating wrong code
16256 on mismatches.
16257 (init_cumulative_args): Look through aliases.
16258
16259 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16260
16261 PR ipa/63566
16262 * ipa-split.c (execute_split_functions): Split if function has aliases.
16263
16264 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16265
16266 PR ipa/63566
16267 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
16268 aliases before trying to expand it.
16269 (cgraph_node::expand_thunk): Fix formating.
16270
16271 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
16272
16273 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
16274 (Using Assembly Language with C): Expand introduction.
16275 (Basic Asm): Copy-edit. Add more information about uses of
16276 basic asm.
16277 (Extended Asm): Copy-edit. Document new escape syntax and
16278 %l[label] syntax.
16279 (Global Reg Vars): Copy-edit.
16280 (Local Reg Vars): Likewise.
16281
16282 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
16283
16284 PR debug/2714
16285 PR bootstrap/64256
16286 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
16287 (DBX_CONTIN_CHAR): Define.
16288
16289 2015-02-06 Sebastian Pop <s.pop@samsung.com>
16290 Brian Rzycki <b.rzycki@samsung.com>
16291
16292 PR tree-optimization/64878
16293 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
16294 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
16295 Stop recursion at loop phi nodes after having visited a loop phi node.
16296
16297 2015-02-06 Jakub Jelinek <jakub@redhat.com>
16298
16299 * toplev.c (process_options): Change flag_ipa_ra before creating
16300 optimization_{default,current}_node.
16301
16302 PR ipa/64896
16303 * cgraphunit.c (cgraph_node::expand_thunk): If
16304 restype is not is_gimple_reg_type nor the thunk_fndecl
16305 returns aggregate_value_p, set restmp to a temporary variable
16306 instead of resdecl.
16307
16308 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
16309
16310 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
16311
16312 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16313
16314 PR target/64205
16315 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
16316 add a general secondary reload handler for SDmode, unless we have
16317 both read/write support for SDmode.
16318
16319 2015-02-06 Jakub Jelinek <jakub@redhat.com>
16320
16321 PR middle-end/64937
16322 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
16323 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
16324 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
16325 1 before, push it to abstract_vec.
16326 (dwarf2out_abstract_function): Adjust caller. Don't call
16327 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
16328 DECL_ABSTRACT_P flags for all abstract_vec elts.
16329
16330 2015-02-06 Renlin Li <renlin.li@arm.com>
16331
16332 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
16333 complex gimple.
16334 * tree-ssa.c (execute_update_addresses_taken): Likewise.
16335
16336 2015-02-06 Jeff Law <law@redhat.com>
16337
16338 PR target/64889
16339 * config/h8300/h8300.c (push): New argument "in_prologue".
16340 Pass "in_prologue" along to "F".
16341 (h8300_push_pop): Corresponding changes.
16342 (h8300_expand_prologue): Likewise.
16343 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
16344
16345 2015-02-06 Jakub Jelinek <jakub@redhat.com>
16346
16347 PR rtl-optimization/64957
16348 PR debug/64817
16349 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
16350 IOR rather than for AND.
16351
16352 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
16353
16354 PR target/62631
16355 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
16356 of shift-add and (add + shift) operations. Rename local variable.
16357
16358 2015-02-05 Jeff Law <law@redhat.com>
16359
16360 PR target/17306
16361 * config/h8300/constraints.md (U): Correctly dectect
16362 "eightbit_data" memory addresses.
16363 * config/h8300/h8300.c (eightbit_constant_address_p): Also
16364 handle (const (plus (symbol_ref (x)))) where x is declared
16365 as an 8-bit data memory address.
16366 * config/h8300/h8300.md (call, call_value): Correctly detect
16367 "funcvec" functions.
16368
16369 PR target/43264
16370 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
16371 24 to 28 bits for the H8/300.
16372
16373 2015-02-06 Alan Modra <amodra@gmail.com>
16374
16375 PR target/64876
16376 * config/rs6000/rs6000.c (chain_already_loaded): New function.
16377 (rs6000_call_aix): Use it.
16378
16379 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
16380
16381 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
16382 check.
16383
16384 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
16385
16386 * config/h8300/constraints.md ("U" constraint): Use strict
16387 variant of REG_OK_FOR_BASE_P after reload has started.
16388
16389 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
16390
16391 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
16392 define to zero if !TARGET_NEON.
16393 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
16394
16395 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16396 Trevor Saunders <tsaunders@mozilla.com>
16397
16398 PR ipa/61548
16399 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
16400
16401 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16402
16403 PR ipa/61548
16404 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
16405 when removing varpool nodes.
16406
16407 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16408
16409 PR ipa/61548
16410 * varpool.c (varpool_node::remove): Fix order of variables.
16411
16412 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16413
16414 PR ipa/64686
16415 * ipa-inline.c (inline_small_functions): Fix ordering issue between
16416 speculation resolution and key updates.
16417
16418 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16419
16420 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
16421 about not letting any speculative edges unupdated.
16422
16423 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16424
16425 PR gcov/64123
16426 * gcov-io.c (gcov_var): Export.
16427
16428 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16429
16430 PR middle-end/64922
16431 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
16432 edges that become speculative.
16433
16434 2015-02-04 Jakub Jelinek <jakub@redhat.com>
16435
16436 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
16437 or DW_LANG_Fortran08.
16438 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
16439 DW_LANG_Fortran08.
16440 (gen_compile_unit_die): Handle "GNU Fortran2003" and
16441 "GNU Fortran2008" language strings.
16442 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
16443 * langhooks.h (lang_GNU_Fortran): New prototype.
16444 * langhooks.c (lang_GNU_Fortran): New function.
16445 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
16446 lang_GNU_Fortran.
16447
16448 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
16449
16450 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
16451 (RTX_OK_FOR_OLO10_P): Likewise.
16452
16453 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
16454
16455 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
16456
16457 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16458
16459 PR middle-end/64922
16460 * gimple.c: Include gimple-ssa.h.
16461 (maybe_remove_unused_call_args): New function.
16462 * gimple.h (maybe_remove_unused_call_args): Declare.
16463 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
16464 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
16465 * gimple-fold.c (gimple_fold_call): Likewise.
16466
16467 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
16468
16469 PR rtl-optimization/64905
16470 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
16471 pointer alignment if it isn't needed.
16472
16473 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
16474
16475 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
16476 cortex-a72.cortex-a53.
16477 * config/aarch64/aarch64-tune.md: Regenerate.
16478 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
16479
16480 2015-02-04 Nick Clifton <nickc@redhat.com>
16481
16482 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
16483 inside a MEM.
16484
16485 2015-02-04 Jakub Jelinek <jakub@redhat.com>
16486
16487 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
16488 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
16489 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
16490 of DEF_BUILTIN.
16491 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
16492 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
16493 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
16494 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
16495 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
16496 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
16497 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
16498 * tree-core.h (enum built_in_function): In between
16499 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
16500 for builtins that use DEF_BUILTIN_CHKP macro.
16501
16502 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
16503
16504 PR debug/64817
16505 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
16506 operands for tcc_comparison exprs. Fix typos.
16507
16508 PR debug/64817
16509 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
16510 of two XORs that have an intervening AND or IOR.
16511
16512 PR debug/64817
16513 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
16514 simplification of XOR of AND to not allocate new rtx before
16515 committing to a simplification.
16516
16517 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16518
16519 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
16520 manual swaps in all peepholes.
16521
16522 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16523
16524 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
16525 of manual swapping implementation.
16526 (aarch64_expand_vec_perm_const_1): Likewise.
16527
16528 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
16529
16530 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
16531 (generic_addrcost_table): Remove NAMED_PARAM.
16532 (cortexa57_addrcost_table): Likewise.
16533 (xgene1_addrcost_table): Likewise.
16534 (generic_regmove_table): Likewise.
16535 (cortexa53_regmove_table): Likewise.
16536 (xgene1_regmove_table): Likewise.
16537 (generic_vector_table): Likewise.
16538 (cortexa57_vector_table): Likewise.
16539 (xgene1_vector_table): Likewise.
16540 (generic_tunings): Likewise.
16541 (cortexa53_tunings): Likewise.
16542 (cortexa57_tunings): Likewise.
16543 (xgene1_tunings): Likewise.
16544
16545 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
16546
16547 * config/arm/arm-cores.def: Add cortex-a72 and
16548 cortex-a72.cortex-a53.
16549 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
16550 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
16551 * config/arm/arm-tune.md: Regenerate.
16552 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
16553 "cortex-a72.cortex-a53".
16554 * doc/invoke.texi (ARM Options/-mtune): Likewise.
16555
16556 2015-02-04 Nick Clifton <nickc@redhat.com>
16557
16558 PR target/64408
16559 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
16560 of accepted codes.
16561 (nonimmediate_di_operand): Likewise.
16562
16563 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
16564 prefixes of known F5 using MSP430 MCUs.
16565
16566 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16567
16568 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
16569 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
16570 instead of __builtin_sqrt.
16571
16572 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
16573
16574 * varasm.c (do_assemble_alias): Follow transparent alias
16575 chain for target.
16576 (default_assemble_visibility): Follow transparent alias
16577 chain for decl name.
16578
16579 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
16580
16581 PR middle-end/62103
16582 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
16583 to compute size of referenced value in the constant case.
16584
16585 2015-02-03 Jakub Jelinek <jakub@redhat.com>
16586
16587 PR rtl-optimization/64756
16588 * cse.c (invalidate_dest): New function.
16589 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
16590 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
16591 invalidate and do not record it.
16592
16593 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
16594
16595 PR target/64660
16596 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
16597 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
16598 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
16599 atomic_nand<mode>_soft_tcb): New insns.
16600 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
16601 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
16602 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
16603 Split into atomic_not_fetchsi_hard if operands[0] is unused.
16604 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
16605 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
16606 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
16607 atomic_not<mode>_hard if operands[0] is unused.
16608 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
16609 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
16610 if operands[0] is unused.
16611 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
16612 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
16613 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
16614 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
16615 unused.
16616 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
16617 into atomic_not<mode>_soft_tcb if operands[0] is unused.
16618 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
16619 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
16620 if operands[0] is unused.
16621 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
16622 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
16623 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
16624 atomic_nand_fetchsi_hard if operands[0] is unused.
16625 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
16626 atomic_nand<mode>_hard if operands[0] is unused.
16627 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
16628 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
16629 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
16630 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
16631 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
16632 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
16633 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
16634 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
16635 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
16636 atomic_not<mode>_hard if operands[0] is unused.
16637 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
16638 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
16639 unused.
16640 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
16641 into atomic_not<mode>_soft_tcb if operands[0] is unused.
16642 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
16643 atomic_nand<mode>_hard if operands[0] is unused.
16644 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
16645 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
16646
16647 2015-02-03 David Malcolm <dmalcolm@redhat.com>
16648
16649 PR jit/64810
16650 * Makefile.in (GCC_OBJS): Add gcc-main.o.
16651 * gcc-main.c: New file, containing "main" taken from gcc.c.
16652 * gcc.c (do_self_spec): Free decoded_options.
16653 (class driver): Move declaration to gcc.h.
16654 (main): Move declaration and implementation to new file
16655 gcc-main.c.
16656 (driver_get_configure_time_options): New function.
16657 * gcc.h (class driver): Move this declaration here, from
16658 gcc.c.
16659 (driver_get_configure_time_options): New declaration.
16660
16661 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
16662
16663 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
16664 cross-module inlining.
16665 * cgraph.h (cgraph_node): Add flag merged.
16666 * ipa-icf.c (sem_function::merge): Maintain it.
16667
16668 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
16669
16670 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
16671 instead of OBJECT_P.
16672
16673 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
16674
16675 PR target/62631
16676 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
16677 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
16678 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
16679 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
16680
16681 2015-02-03 Jakub Jelinek <jakub@redhat.com>
16682
16683 PR other/63504
16684 * combine.c (reg_n_sets_max): New variable.
16685 (can_change_dest_mode, reg_nonzero_bits_for_combine,
16686 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
16687 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
16688 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
16689 (rest_of_handle_combine): Initialize reg_n_sets_max.
16690
16691 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
16692
16693 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
16694 if some always_inline was inlined, apply changes before inlining
16695 heuristically.
16696
16697 2015-02-02 David Malcolm <dmalcolm@redhat.com>
16698
16699 PR jit/64810
16700 * config/arm/arm.c (arm_option_override): Set
16701 arm_selected_arch/cpu/tune to NULL on entry.
16702
16703 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
16704 Andrew Pinski <pinskia@gcc.gnu.org>
16705 Jakub Jelinek <jakub@gcc.gnu.org>
16706
16707 PR target/64231
16708 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
16709 integer typing for small model. Use IN_RANGE.
16710
16711 2015-02-02 Richard Biener <rguenther@suse.de>
16712
16713 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
16714 * tree-vrp.c (vrp_valueize_1): Likewise.
16715
16716 2015-02-02 Alan Modra <amodra@gmail.com>
16717
16718 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
16719 than mem for toc_restore.
16720 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
16721 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
16722 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
16723
16724 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
16725
16726 PR target/64047
16727 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
16728 explicit default options.
16729
16730 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
16731
16732 PR ipa/64872
16733 * ipa-utils.c (ipa_merge_profiles): Add release argument.
16734 * ipa-icf.c (sem_function::merge): Do not release body when merging.
16735 * ipa-utils.h (ipa_merge_profiles): Update prototype.
16736
16737 2015-02-01 Jakub Jelinek <jakub@redhat.com>
16738
16739 PR debug/64817
16740 * cfgexpand.c (deep_ter_debug_map): New variable.
16741 (avoid_deep_ter_for_debug): New function.
16742 (expand_debug_expr): If TERed SSA_NAME is in
16743 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
16744 instead of trying to expand SSA_NAME's def stmt.
16745 (expand_debug_locations): When expanding debug bind
16746 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
16747 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
16748 value.
16749 (pass_expand::execute): Call avoid_deep_ter_for_debug on
16750 all debug bind stmts. Delete deep_ter_debug_map after
16751 expand_debug_location if non-NULL and clear it.
16752
16753 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
16754
16755 PR target/64851
16756 * config/sh/sync.md (atomic_fetch_notsi_hard,
16757 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
16758 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
16759 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
16760 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
16761 atomic_not_fetch<mode>_soft_imask): New insns.
16762
16763 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16764
16765 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
16766 (rank_for_schedule_debug): Split from ...
16767 (rank_for_schedule): ... this.
16768 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
16769 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
16770
16771 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
16772
16773 * doc/md.texi (Machine Constraints): Alphabetize table by target.
16774 * doc/extend.texi (x86 Variable Attributes): Move section to
16775 correct alphabetization after renaming.
16776 (x86 Type Attributes): Likewise.
16777 (Target Builtins): Re-alphabetize menu.
16778 (x86 Built-in Functions): Move section to correct alphabetization
16779 after renaming.
16780 (x86 transactional memory intrinsics): Likewise.
16781 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
16782 and x86 Windows Options in table and menu.
16783 (x86 Options): Move section to correct alphabetization after
16784 renaming.
16785 (x86 Windows Options): Likewise.
16786
16787 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
16788
16789 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
16790 preferred names of the architecture and its 32- and 64-bit
16791 variants.
16792 * doc/invoke.texi: Likewise.
16793 * doc/md.texi: Likewise.
16794
16795 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
16796
16797 PR target/64882
16798 * config/i386/predicates.md (address_no_seg_operand): Reject
16799 non-CONST_INT_P operands in invalid mode.
16800
16801 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
16802
16803 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
16804 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
16805 * config/i386/predicates.md (address_no_seg_operand): Call
16806 address_operand with VOIDmode.
16807 (vsib_address_operand): Ditto.
16808 (address_mpx_no_base_operand): Ditto.
16809 (address_mpx_no_index_operand): Ditto.
16810
16811 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
16812
16813 PR target/64688
16814 * lra-constraints.c (original_subreg_reg_mode): New.
16815 (simplify_operand_subreg): Try to simplify subreg of const. Use
16816 original_subreg_reg_mode for it.
16817 (swap_operands): Update original_subreg_reg_mode.
16818 (curr_insn_transform): Set up original_subreg_reg_mode.
16819
16820 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
16821
16822 PR target/64617
16823 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
16824 function.
16825 (process_alt_operands): Use it.
16826 (curr_insn_transform): Check the optional reload pseudo class is
16827 ok for the mode.
16828
16829 2015-01-30 Joseph Myers <joseph@codesourcery.com>
16830
16831 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
16832 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
16833 prototype.
16834 * toplev.h (init_asm_output): Update comment on use of
16835 UNKNOWN_LOCATION with fatal_error.
16836 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
16837 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
16838 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
16839 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
16840 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
16841 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
16842 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
16843 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
16844 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
16845 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
16846 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
16847 fatal_error changed to pass input_location as first argument.
16848
16849 2015-01-30 Martin Liska <mliska@suse.cz>
16850
16851 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
16852 in #pragma GCC diagnostic guards.
16853
16854 2015-01-30 Richard Biener <rguenther@suse.de>
16855
16856 PR tree-optimization/64829
16857 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
16858 not add a widening conversion pattern but hand off extra
16859 widenings to callers.
16860 (vect_recog_widen_mult_pattern): Handle extra widening produced
16861 by vect_handle_widen_op_by_const.
16862 (vect_recog_widen_shift_pattern): Likewise.
16863 (vect_pattern_recog_1): Remove excess vertical space in dumping.
16864 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
16865 (vect_init_vector_1): Likewise.
16866 (vect_get_vec_def_for_operand): Likewise.
16867 (vect_finish_stmt_generation): Likewise.
16868 (vectorizable_load): Likewise.
16869 (vect_analyze_stmt): Likewise.
16870 (vect_is_simple_use): Likewise.
16871
16872 2015-01-29 Jeff Law <law@redhat.com>
16873
16874 * combine.c (try_combine): Fix typo in comment.
16875
16876 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
16877
16878 PR target/64580
16879 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
16880 (rs6000_stack_info): Add assert.
16881 (rs6000_output_savres_externs): New function, split off from...
16882 (rs6000_output_function_prologue): ... here. Do not call it for
16883 thunks.
16884
16885 2015-01-29 Jeff Law <law@redhat.com>
16886
16887 PR target/15184
16888 * combine.c (try_combine): If I0 is a memory load and I3 a store
16889 to a related address, increase the "goodness" of doing a 4-insn
16890 combination with I0-I3.
16891 (make_field_assignment): Handle SUBREGs in the ior+and case.
16892
16893 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
16894
16895 PR tree-optimization/64746
16896 * tree-if-conv.c (mask_exists): New function.
16897 (predicate_mem_writes): Save created mask with given size for further
16898 use.
16899 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
16900 (ifcvt_repair_bool_pattern): Collect all statements that are root
16901 of bool pattern and use iterative algorithm to remove multiple uses
16902 of predicates, display number of required iterations.
16903
16904 2015-01-29 Richard Biener <rguenther@suse.de>
16905
16906 PR tree-optimization/64853
16907 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
16908 stmt will get simulated again.
16909 * tree-ssa-ccp.c (valueize_op_1): Likewise.
16910
16911 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16912
16913 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
16914 return_in_pc. Remove redundant assignments.
16915 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
16916 (arm_expand_epilogue): Don't compare boolean with true in if condition.
16917
16918 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
16919
16920 * config/i386/i386.c (ix86_mode_after): Make static.
16921
16922 2015-01-29 Richard Biener <rguenther@suse.de>
16923
16924 PR tree-optimization/64844
16925 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
16926 dump cost model analysis.
16927 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16928 Do not register adjusted load/store costs here.
16929
16930 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
16931 Uros Bizjak <ubizjak@gmail.com>
16932
16933 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
16934 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
16935 using x86_use_pseudo_pic_reg.
16936 * config/i386/i386.c (ix86_conditional_register_usage): Remove
16937 support for fixed PIC register.
16938 (ix86_use_pseudo_pic_reg): Not static any more.
16939
16940 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
16941
16942 PR middle-end/64805
16943 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
16944 to avoid error in cgraph node verification.
16945
16946 2015-01-29 Marek Polacek <polacek@redhat.com>
16947
16948 * doc/standards.texi: Reflect that the default for C is gnu11.
16949
16950 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
16951
16952 PR target/64761
16953 * reorg.c (switch_text_sections_between_p): New function.
16954 (relax_delay_slots): Call it when testing if the jump insn
16955 is removable. Use targetm.can_follow_jump when testing if
16956 the conditional branch can follow an unconditional jump.
16957
16958 2015-01-27 Caroline Tice <cmtice@google.com>
16959
16960 Committing VTV Cywin/Ming patch for Patrick Wollgast
16961 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
16962 if -fvtable-verify=preinit/std is used.
16963 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
16964 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
16965 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
16966 if -fvtable-verify=preinit/std is used.
16967 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
16968 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
16969 if -fvtable-verify=preinit/std is used.
16970 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
16971 * config/i386/mingw32.h (LIB_SPEC): Likewise.
16972 * varasm.c (assemble_variable): Add code to properly set the comdat
16973 section and name for the .vtable_map_vars section in case the
16974 target is PE or COFF.
16975
16976 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
16977
16978 PR ipa/64801
16979 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
16980 make sane BB profile.
16981 (cgraph_node::expand_thunk): Make sane BB profile.
16982 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
16983 * cgraph.h (init_lowered_empty_function): Update prototype.
16984 * config/i386/i386.c (make_resolver_func): Update call.
16985 * predict.c (gate): Disable branch prediction pass if
16986 profile is already there.
16987
16988 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
16989
16990 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
16991 * opth-gen.awk: Likewise.
16992 * common.opt: Mark flag_fp_contract_mode as Optimization.
16993
16994 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
16995
16996 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
16997 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
16998
16999 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
17000
17001 PR target/64659
17002 * config/sh/predicates.md (atomic_arith_operand,
17003 atomic_logical_operand): Remove.
17004 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
17005 (atomic_arith_operand_0): New predicate.
17006 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
17007 Use atomic_arith_operand_0 for input values.
17008 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
17009 atomic_compare_and_swap<mode>_soft_gusa,
17010 atomic_compare_and_swap<mode>_soft_tcb,
17011 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
17012 arith_reg_operand instead of register_operand.
17013 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
17014 atomic_arith_operand_0 for newval input.
17015 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
17016 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
17017 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
17018 arith_reg_operand instead of register_operand.
17019 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
17020 fetchop_predicate_1, fetchop_constraint_1_llcs,
17021 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
17022 fetchop_constraint_1_imask): New code iterator attributes.
17023 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
17024 register_operand. Use fetchop_predicate_1.
17025 (atomic_fetch_<fetchop_name>si_hard,
17026 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
17027 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
17028 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
17029 and arith_reg_operand instead of register_operand. Use
17030 fetchop_predicate_1, fetchop_constraint_1_gusa.
17031 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
17032 and arith_reg_operand instead of register_operand. Use
17033 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
17034 to allow R0 usage.
17035 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
17036 and arith_reg_operand instead of register_operand. Use
17037 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
17038 to allow R0 usage.
17039 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
17040 register_operand. Use atomic_logical_operand_1.
17041 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
17042 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
17043 arith_reg_operand instead of register_operand.
17044 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
17045 Use arith_reg_dest and arith_reg_operand instead of register_operand.
17046 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
17047 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
17048 register_operand. Use fetchop_predicate_1.
17049 (atomic_<fetchop_name>_fetchsi_hard,
17050 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
17051 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
17052 fetchop_constraint_1_llcs.
17053 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
17054 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
17055 fetchop_constraint_1_gusa.
17056 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
17057 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
17058 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
17059 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
17060 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
17061 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
17062 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
17063 register_operand. Use atomic_logical_operand_1.
17064 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
17065 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
17066 arith_reg_operand instead of register_operand.
17067 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
17068 arith_reg_operand instead of register_operand. Use logical_operand
17069 and K08. Adjust asm sequence to allow R0 usage.
17070 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
17071 arith_reg_operand instead of register_operand. Use logical_operand
17072 and K08.
17073
17074 2015-01-28 Jakub Jelinek <jakub@redhat.com>
17075
17076 PR other/63504
17077 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
17078 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
17079 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
17080 only get_full_len HOST_WIDE_INTs from get_val () array rather than
17081 all bits in *val_wide.
17082
17083 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
17084
17085 * varpool.c (tls_model_names): Fix names.
17086 (varpool_node::dump): Dump tls- prefix for tls models.
17087
17088 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
17089 Bernd Schmidt <bernds@codesourcery.com>
17090 Nathan Sidwell <nathan@codesourcery.com>
17091
17092 * config/nvptx/mkoffload.c: New file.
17093 * config/nvptx/t-nvptx: Add build rules for it.
17094 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
17095 (extra_programs): Add mkoffload.
17096 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
17097 function.
17098 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
17099
17100 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
17101
17102 PR middle-end/64809
17103 * cfgexpand.c (reorder_operands): Skip debug gimples.
17104
17105 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
17106
17107 PR tree-optimization/64277
17108 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
17109 range info when possible to refine estimation.
17110
17111 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
17112
17113 PR tree-optimization/64718
17114 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
17115 be a 16bit unsigned integer when n->range is 16.
17116 (bswap_replace): Convert src to that type if necessary for all bswap
17117 sizes. Fix rotation right notation in nearby comment. Use bswap_type
17118 set in pass_optimize_bswap::execute ().
17119
17120 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
17121
17122 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
17123 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
17124 integer and floating point variants.
17125 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
17126
17127 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
17128
17129 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
17130 for all vector modes.
17131
17132 2015-01-28 Jakub Jelinek <jakub@redhat.com>
17133
17134 PR bootstrap/64612
17135 * doc/sourcebuild.texi (comdat_group): Document.
17136
17137 2015-01-28 Terry Guo <terry.guo@arm.com>
17138
17139 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
17140
17141 2015-01-27 David Malcolm <dmalcolm@redhat.com>
17142
17143 * toplev.c (print_version): Add param "show_global_state", and
17144 only print GGC and plugin information if it is true.
17145 (init_asm_output): Pass in "true" for the new param when calling
17146 print_version.
17147 (process_options): Likewise.
17148 (toplev::main): Likewise.
17149 * toplev.h (print_version): Add new param to decl.
17150
17151 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
17152
17153 PR ipa/60871
17154 PR ipa/64139
17155 * tree.c (lookup_binfo_at_offset): New function.
17156 (get_binfo_at_offset): Use it.
17157
17158 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
17159
17160 PR ipa/64282
17161 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
17162 on vtable being vtable.
17163
17164 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
17165
17166 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
17167 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
17168 -mhotpatch= option.
17169 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
17170 -mno-hotpatch options. Change syntax of -mhotpatch= option.
17171 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
17172 Renamed.
17173 (s390_hotpatch_trampoline_halfwords_max): Renamed.
17174 (s390_hotpatch_hw_max): New name.
17175 (s390_hotpatch_trampoline_halfwords): Renamed.
17176 (s390_hotpatch_hw_before_label): New name.
17177 (get_hotpatch_attribute): Removed.
17178 (s390_hotpatch_hw_after_label): New name.
17179 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
17180 attribute.
17181 (s390_attribute_table): Ditto.
17182 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
17183 (s390_function_num_hotpatch_hw): New name.
17184 Remove special handling of inline functions and hotpatching.
17185 Return number of nops before and after the function label.
17186 (s390_can_inline_p): Removed.
17187 (s390_asm_output_function_label): Emit a configurable number of nops
17188 after the function label.
17189 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
17190 (TARGET_CAN_INLINE_P) Removed.
17191 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
17192
17193 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17194 Jiong Wang <jiong.wang@arm.com>
17195
17196 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
17197 of scratch reg.
17198 (cb<optab><mode>1): Likewise.
17199 * config/aarch64/iterators.md (bcond): New define_code_attr.
17200
17201 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17202
17203 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
17204 memory accesses.
17205
17206 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17207
17208 * config/s390/s390.c (s390_register_move_cost): Increase costs for
17209 FPR->GPR moves.
17210
17211 2015-01-27 Richard Biener <rguenther@suse.de>
17212
17213 * tree-vrp.c (update_value_range): Intersect the range with
17214 old recorded SSA name range information.
17215
17216 2015-01-27 Nick Clifton <nickc@redhat.com>
17217
17218 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
17219 BC, DE and HL registers directly, not via AX.
17220 When decrementing the stack pointer by a large amount, transfer SP
17221 into AX and perform the subtraction there.
17222 (rl78_expand_epilogue): Perform the inverse of the above
17223 enhancements.
17224
17225 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17226
17227 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
17228
17229 2015-01-27 Jakub Jelinek <jakub@redhat.com>
17230 Yury Gribov <y.gribov@samsung.com>
17231
17232 PR ubsan/64741
17233 * ubsan.c (ubsan_source_location): Refactor code.
17234 (ubsan_type_descriptor): Update type size. Refactor code.
17235
17236 2015-01-27 Richard Biener <rguenther@suse.de>
17237
17238 PR tree-optimization/56273
17239 PR tree-optimization/59124
17240 PR tree-optimization/64277
17241 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
17242 from the first VRP pass.
17243
17244 2015-01-27 Jakub Jelinek <jakub@redhat.com>
17245
17246 PR ipa/64776
17247 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
17248 handle the first argument in the same loop as all the other arguments.
17249
17250 PR rtl-optimization/61058
17251 * jump.c (cleanup_barriers): Update basic block boundaries
17252 if BLOCK_FOR_INSN is non-NULL on PREV.
17253
17254 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
17255
17256 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
17257 bounds narrowing, already instrumented calls and calls to
17258 not instrumentable functions.
17259
17260 2015-01-27 Jakub Jelinek <jakub@redhat.com>
17261
17262 PR tree-optimization/64807
17263 * wide-int.cc (wi::divmod_internal): Clear
17264 b_dividend[dividend_blocks_needed].
17265
17266 2015-01-26 DJ Delorie <dj@redhat.com>
17267
17268 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
17269 volatile memory references.
17270
17271 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
17272
17273 PR target/49263
17274 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
17275 remove_insn.
17276 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
17277 shifts if it already fits into K08.
17278
17279 2015-01-26 Jakub Jelinek <jakub@redhat.com>
17280
17281 PR ipa/64730
17282 * ipa-inline.c (inline_small_functions): Print "unknown" even
17283 if edge->call_stmt is non-NULL, but has builtins or unknown
17284 location.
17285
17286 PR middle-end/64421
17287 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
17288 with asterisk, skip the first character.
17289
17290 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
17291
17292 PR target/64806
17293 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
17294 order change.
17295
17296 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
17297
17298 PR target/64795
17299 * config/i386/i386.md (*movdi_internal): Also check operand 0
17300 to determine TYPE_LEA operand.
17301 (*movsi_internal): Ditto.
17302
17303 2015-01-26 Jakub Jelinek <jakub@redhat.com>
17304
17305 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
17306 OPTION_MASK_QUAD_MEMORY_ATOMIC.
17307
17308 2015-01-26 Renlin Li <renlin.li@arm.com>
17309
17310 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
17311 the comment.
17312 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
17313 for higher part.
17314
17315 2015-01-26 Richard Biener <rguenther@suse.de>
17316
17317 PR middle-end/64764
17318 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
17319 combining two BIT_AND_EXPR predicates.
17320
17321 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
17322
17323 PR bootstrap/64754
17324 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
17325
17326 2015-01-26 Terry Guo <terry.guo@arm.com>
17327
17328 * config/arm/arm.c (arm_file_start): Update the assignment of
17329 Tag_ABI_HardFP_use.
17330
17331 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
17332
17333 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
17334 pipeline model.
17335 config/arm/arm.md: Include the new Cortex-A57 model.
17336 (generic_sched): Don't use generic_sched when tuning for
17337 Cortex-A57.
17338
17339 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
17340 Uros Bizjak <ubizjak@gmail.com>
17341
17342 * config/i386/i386.c (get_builtin_code_for_version): Add
17343 support for BMI and BMI2 multiversion functions.
17344
17345 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17346
17347 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
17348 (extract_bit_field): Likewise.
17349 (extract_low_bits): Likewise.
17350 (expand_mult): Likewise.
17351 (expand_mult_highpart_adjust): Likewise.
17352
17353 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
17354
17355 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
17356 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
17357 * config/i386/i386.c (processor_model): Add
17358 M_INTEL_COREI7_BROADWELL.
17359 (arch_names_table): Add "broadwell".
17360
17361 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
17362
17363 PR target/49263
17364 PR target/53987
17365 PR target/64345
17366 PR target/59533
17367 PR target/52933
17368 PR target/54236
17369 PR target/51244
17370 * config/sh/sh-protos.h
17371 (sh_extending_set_of_reg::can_use_as_unextended_reg,
17372 sh_extending_set_of_reg::use_as_unextended_reg,
17373 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
17374 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
17375 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
17376 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
17377 (sh_treg_insns): New class.
17378 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
17379 (scope_counter): New class.
17380 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
17381 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
17382 sh_extending_set_of_reg::can_use_as_unextended_reg,
17383 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
17384 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
17385 sh_split_treg_set_expr): New functions.
17386 (addsubcosts): Handle treg_set_expr.
17387 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
17388 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
17389 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
17390 (sh_insn_operands_modified_between_p): Make non-static.
17391 * config/sh/predicates.md (zero_extend_movu_operand): Allow
17392 simple_mem_operand in addition to displacement_mem_operand.
17393 (zero_extend_operand): Don't allow zero_extend_movu_operand.
17394 (treg_set_expr, treg_set_expr_not_const01,
17395 arith_reg_or_treg_set_expr): New predicates.
17396 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
17397 arith_or_int_operand instead of logical_operand. Convert to
17398 insn_and_split. Try to optimize constant operand in splitter.
17399 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
17400 (*tstqi_t_zero): Delete.
17401 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
17402 (tstsi_t_and_not): Delete.
17403 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
17404 Convert to insn_and_split.
17405 (unnamed split, tstsi_t_zero_extract_xor,
17406 tstsi_t_zero_extract_subreg_xor_little,
17407 tstsi_t_zero_extract_subreg_xor_big): Delete.
17408 (*tstsi_t_shift_mask): New insn_and_split.
17409 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
17410 to recombine with surrounding insns when splitting.
17411 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
17412 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
17413 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
17414 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
17415 (*cbranch_div0s: Delete.
17416 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
17417 Try to recombine with surrounding insns when splitting. Add operand
17418 order variants.
17419 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
17420 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
17421 *addc_r_r_msb, *addc_2r_msb): Delete.
17422 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
17423 order variant.
17424 (*addc_negreg_t): New insn_and_split.
17425 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
17426 Try to recombine with surrounding insns when splitting.
17427 Add operand order variants.
17428 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
17429 insn_and_split patterns.
17430 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
17431 surrounding insns when splitting.
17432 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
17433 (*rotcl): Likewise. Add zero_extract variant.
17434 (*ashrsi2_31): New insn_and_split.
17435 (*negc): Convert to insn_and_split. Use treg_set_expr.
17436 (*zero_extend<mode>si2_disp_mem): Update comment.
17437 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
17438 condition.
17439 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
17440 with surrounding insns when splitting.
17441 (any_treg_expr_to_reg): New insn_and_split.
17442 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
17443 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
17444 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
17445 *zero_extract_2): New single bit zero extract patterns.
17446 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
17447 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
17448 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
17449 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
17450 set destination.
17451 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
17452 register_operand for set source.
17453
17454 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
17455
17456 * i386.opt (prefetch_sse): New targetsave.
17457 * i386.c (ix86_function_specific_save): Save prefetch_sse.
17458 (ix86_function_specific_restore): Restore prefetch_sse and initialize
17459 ix86_cost/ix86_tune_cost.
17460
17461 2015-01-23 David Malcolm <dmalcolm@redhat.com>
17462
17463 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
17464 Support the JIT by using 0 as the language type.
17465
17466 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
17467
17468 PR target/64317
17469 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
17470 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
17471 (mark_regno_live, process_bb_lives): Pass new parameter value to
17472 make_hard_regno_born.
17473
17474 2015-01-23 Jakub Jelinek <jakub@redhat.com>
17475
17476 PR rtl-optimization/63637
17477 PR rtl-optimization/60663
17478 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
17479 if elt->cost is MAX_COST for ASM_OPERANDS.
17480 (find_sets_in_insn): Fix up comment typo.
17481 (cse_insn): Don't set src_volatile for all non-volatile
17482 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
17483 or with "memory" clobber. Set elt->cost to MAX_COST
17484 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
17485 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
17486
17487 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
17488
17489 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
17490 alternative 1.
17491
17492 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
17493
17494 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
17495 libgcc/config/i386/elf-lib.h.
17496
17497 2015-01-23 Jakub Jelinek <jakub@redhat.com>
17498
17499 PR driver/64737
17500 * gcc.c (print_configuration): Don't print a blank line at the end
17501 here...
17502 (run_attempt): ... but here unstead.
17503
17504 PR middle-end/64734
17505 * omp-low.c (scan_sharing_clauses): Don't ignore
17506 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
17507 on target data/update constructs.
17508
17509 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
17510
17511 PR target/50928
17512 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
17513 (DEBUG_RELOAD): Removed define.
17514 (m32c_limit_reload_class): Enable traces with if DEBUG0.
17515 (m32c_function_arg): Added a type cast.
17516 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
17517 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
17518 * config/m32c/bitops.md (andqi3_16): Likewise.
17519 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
17520 (push_a01_l): Likewise.
17521
17522 2015-01-23 David Malcolm <dmalcolm@redhat.com>
17523
17524 PR jit/64721
17525 * main.c (main): Construct toplev instances with init_signals=true.
17526 * toplev.c (general_init): Add param "init_signals", and use it to
17527 conditionalize the calls to signal and host_hooks.extra_signals.
17528 (toplev::toplev): Add param "init_signals".
17529 (toplev::main): When invoking general_init, pass m_init_signals
17530 to control whether signal-handlers are installed.
17531 * toplev.h (toplev::toplev): Add param "init_signals".
17532 (toplev::m_init_signals): New field.
17533
17534 2015-01-23 David Malcolm <dmalcolm@redhat.com>
17535
17536 PR jit/64722
17537 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
17538 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
17539 latter may be affected by the former (e.g. on i686).
17540
17541 2015-01-23 Martin Liska <mliska@suse.cz>
17542
17543 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
17544 false positive during profiledbootstrap.
17545
17546 2015-01-23 Tom de Vries <tom@codesourcery.com>
17547
17548 PR libgomp/64672
17549 * lto-opts.c (lto_write_options): Output non-explicit conservative
17550 -fno-openacc.
17551 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
17552 (append_compiler_options): Pass -fopenacc through.
17553
17554 2015-01-23 Tom de Vries <tom@codesourcery.com>
17555
17556 PR libgomp/64707
17557 * lto-opts.c (lto_write_options): Output non-explicit conservative
17558 -fno-openmp.
17559 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
17560 (append_compiler_options): Pass -fopenmp through.
17561
17562 2015-01-23 Jakub Jelinek <jakub@redhat.com>
17563
17564 PR debug/64511
17565 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
17566 GTY markup.
17567
17568 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
17569 * diagnostic.def (DK_ICE_NOBT): New kind.
17570 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
17571 like DK_ICE, but never print backtrace.
17572 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
17573 (internal_error_no_backtrace): New function.
17574 * gcc.c (execute): Use internal_error_no_backtrace instead of
17575 internal_error.
17576
17577 2015-01-22 Jeff Law <law@redhat.com>
17578
17579 PR target/52076
17580 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
17581 improve code density for small immediate to memory case.
17582 (insv): Better handle bitfield assignments when the field is
17583 being set to all ones.
17584 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
17585 operand predicate.
17586
17587 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17588 Jakub Jelinek <jakub@redhat.com>
17589
17590 PR middle-end/64729
17591 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
17592 for !TARGET_LIBC_PROVIDES_SSP version and
17593 -fstack-protector-{all,strong,explicit} otherwise.
17594 * config/freebsd.h (LINK_SSP_SPEC): Handle
17595 -fstack-protector-{strong,explicit}.
17596
17597 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
17598 H.J. Lu <hongjiu.lu@intel.com>
17599
17600 PR ipa/64694
17601 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
17602 heap.
17603
17604 2015-01-22 Wei Mi <wmi@google.com>
17605
17606 PR rtl-optimization/64557
17607 * dse.c (record_store): Call get_addr for mem_addr.
17608 (check_mem_read_rtx): Likewise.
17609
17610 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
17611
17612 * fold-const.c (const_binop): Add early return for non-tcc_binary.
17613
17614 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
17615
17616 * toplev.c (init_local_tick): Process the failure when read
17617 fails for random_seed.
17618
17619 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
17620 'pretty_name' to avoid memory overflow.
17621
17622 2015-01-22 Richard Biener <rguenther@suse.de>
17623
17624 PR middle-end/64728
17625 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
17626 abnormal coalescing on undefined SSA names.
17627
17628 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
17629
17630 PR target/64688
17631 PR target/64477
17632 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
17633 for alternative 3.
17634 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
17635
17636 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
17637
17638 PR middle-end/63325
17639 * fold-const.c (fold_checksum_tree): Don't include value of
17640 expr->decl_with_vis.symtab_node in the checksum.
17641
17642 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17643
17644 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
17645
17646 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
17647
17648 PR driver/64690
17649 * gcc.c (insert_comments): New function.
17650 (try_generate_repro): Call it.
17651 (append_text): Removed.
17652
17653 2015-01-22 Richard Biener <rguenther@suse.de>
17654
17655 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
17656 with IL incompatible options. Properly honor user optimize
17657 attributes.
17658
17659 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
17660
17661 PR rtl-optimization/64682
17662 * combine.c (distribute_notes): When moving a death note for
17663 a register that is set in the new I2, make sure to put it
17664 before that new I2.
17665
17666 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
17667
17668 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
17669 not TARGET_DEFAULT.
17670
17671 2015-01-21 Jakub Jelinek <jakub@redhat.com>
17672
17673 PR debug/64511
17674 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
17675 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
17676 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
17677
17678 PR sanitizer/64706
17679 * doc/invoke.texi (-fsanitize=vptr): Document.
17680
17681 PR rtl-optimization/62078
17682 * dse.c: Include cfgcleanup.h.
17683 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
17684 anything call purge_all_dead_edges and cleanup_cfg at the end
17685 of the pass.
17686
17687 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
17688
17689 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
17690 edges.
17691
17692 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17693
17694 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
17695 decl attribute.
17696
17697 2015-01-21 David Sherwood <david.sherwood@arm.com>
17698 Tejas Belagod <Tejas.Belagod@arm.com>
17699
17700 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
17701 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
17702 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
17703 Removed.
17704
17705 2015-01-21 David Sherwood <david.sherwood@arm.com>
17706 Tejas Belagod <Tejas.Belagod@arm.com>
17707
17708 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
17709 (aarch64_reverse_mask): New decls.
17710 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
17711 (insn_count): New mode_attr.
17712 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
17713 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
17714 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
17715 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
17716 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
17717 (aarch64_simd_st4): New patterns.
17718 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
17719 (aarch64_reverse_mask): New functions.
17720
17721 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
17722
17723 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
17724 Declare.
17725 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
17726 addressing modes for BE.
17727 (aarch64_print_operand): Add 'R' specifier.
17728 (aarch64_simd_disambiguate_copy): Delete.
17729 (aarch64_simd_emit_reg_reg_move): New function.
17730 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
17731 in define_splits for structural moves.
17732 (mov<mode>): Use less restrictive predicates.
17733 (*aarch64_mov<mode>): Simplify and only allow for LE.
17734 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
17735
17736 2015-01-21 Alan Hayward <alan.hayward@arm.com>
17737
17738 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
17739
17740 2015-01-21 Richard Henderson <rth@redhat.com>
17741
17742 PR target/64669
17743 * ccmp.c (used_in_cond_stmt_p): Remove.
17744 (expand_ccmp_expr): Don't use it.
17745
17746 2015-01-21 Nick Clifton <nickc@redhat.com>
17747
17748 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
17749 PARALLELs.
17750
17751 2015-01-21 Richard Biener <rguenther@suse.de>
17752
17753 PR middle-end/64313
17754 * tree-core.h (builtin_info, builtin_info_type): Turn from
17755 an object with two arrays into an array of an object with
17756 decl and two flags, implicit_p and declared_p.
17757 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
17758 set_builtin_decl, set_builtin_decl_implicit_p,
17759 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
17760 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
17761 * builtins.c (builtin_info): Adjust.
17762 * gimplify.c (gimplify_addr_expr): References to builtins
17763 that have been declared by the user makes them eligible for
17764 use by the compiler. Call set_builtin_decl_implicit_p on them.
17765
17766 2015-01-20 Jeff Law <law@redhat.com>
17767
17768 PR target/59946
17769 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
17770 allow pc-relative addresses in operand predicates or constraints.
17771
17772 2015-01-21 Bin Cheng <bin.cheng@arm.com>
17773
17774 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
17775 neon on aarch32 processors for stringops.
17776
17777 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
17778
17779 PR ipa/63576
17780 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
17781
17782 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
17783
17784 PR lto/45375
17785 * ipa-inline.c: Include lto-streamer.h
17786 (report_inline_failed_reason): Output source file differences and
17787 flags on optimization/target node mismatch.
17788 (can_inline_edge_p): Consider caller to be the outer inline function;
17789 be less restrictive about matching opimize and optimize_size attributes.
17790 (inline_account_function_p): Break out from ...
17791 (inline_small_functions): ... here.
17792 * ipa-inline-transform.c (clone_inlined_nodes): Use
17793 inline_account_function_p.
17794 (inline_call): Use optimize attribution; use inline_account_function_p.
17795 (inline_transform): Use opt_for_fn.
17796 * ipa-inline.h (inline_account_function_p): Declare.
17797
17798 2015-01-20 Jakub Jelinek <jakub@redhat.com>
17799
17800 PR debug/64663
17801 * dwarf2out.c (decl_piece_node): Don't put bitsize into
17802 mode if bitsize <= 0.
17803 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
17804 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
17805 sizes and positions.
17806
17807 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
17808
17809 * config/nios2/nios2.c (nios2_asm_file_end): Implement
17810 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
17811 needed.
17812 (TARGET_ASM_FILE_END): Define.
17813
17814 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17815
17816 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
17817 (struct tune_params): Use the enum.
17818 * arm.c (arm_*_tune): Update.
17819 (arm_option_override): Update.
17820
17821 2015-01-20 Richard Biener <rguenther@suse.de>
17822
17823 PR ipa/64684
17824 * ipa-reference.c (add_static_var): Inline ...
17825 (analyze_function): ... here after splitting out from ...
17826 (is_proper_for_analysis): ... this.
17827
17828 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
17829
17830 PR target/64149
17831 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
17832 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
17833 replace the conditional with it's true branch.
17834 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
17835 (arm_lra_p): Remove.
17836
17837 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
17838
17839 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
17840
17841 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17842
17843 * config/tilegx/mul-tables.c: Move symtab.h include after
17844 coretypes.h include.
17845 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
17846 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
17847 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
17848 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
17849 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
17850
17851 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
17852
17853 PR bootstrap/64676
17854 Revert:
17855 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
17856
17857 PR rtl-optimization/64081
17858 * loop-iv.c (def_pred_latch_p): New function.
17859 (latch_dominating_def): Allow specific cases with non-single
17860 definitions.
17861 (iv_get_reaching_def): Likewise.
17862 (check_complex_exit_p): New function.
17863 (check_simple_exit): Use check_complex_exit_p to allow certain cases
17864 with exits not executing on any iteration.
17865
17866 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
17867
17868 PR lto/45375
17869 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
17870 to set branch cost.
17871
17872 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
17873
17874 PR lto/45375
17875 * i386.c (gate): Check flag_expensive_optimizations and
17876 optimize_size.
17877 (ix86_option_override_internal): Drop optimize_size condition
17878 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
17879 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
17880 MASK_PREFER_AVX128.
17881 (ix86_avx256_split_vector_move_misalign,
17882 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
17883 * sse.md (all uses of TARGET_PREFER_AVX128): Add
17884 optimize_insn_for_speed_p check.
17885
17886 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
17887
17888 * config/mips/mips.h (FP_ASM_SPEC): New define.
17889 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
17890 instead.
17891
17892 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
17893
17894 PR target/53988
17895 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
17896 nullptr for insn when reaching the first insn.
17897 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
17898 (sh_insn_operands_modified_between_p): Add nullptr check.
17899 (sh_find_extending_set_of_reg): Fix log message. Don't accept
17900 sign extending mem load if the insn contains any UNSPEC or
17901 UNSPEC_VOLATILE.
17902
17903 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
17904
17905 * params.def (inline-unit-growth): Drop to 15%.
17906 * invoke.texi (inline-unit-growth): Document change.
17907
17908 2015-01-19 Martin Liska <mliska@suse.cz>
17909
17910 PR ipa/64668
17911 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
17912 function for second argument of OBJ_TYPE_REF.
17913
17914 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
17915
17916 PR ipa/64218
17917 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
17918 whether function is an alias.
17919
17920 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
17921
17922 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
17923 cases.
17924
17925 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
17926
17927 PR rtl-optimization/64671
17928 * lra-remat.c (operand_to_remat): Don't consider jump and call
17929 insns.
17930
17931 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
17932
17933 PR target/59828
17934 * config/rs6000/default64.h: Include rs6000-cpus.def.
17935 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
17936 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
17937 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
17938 and POWER8.
17939 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
17940 POWER8.
17941 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
17942 pseudo-op to specify assembler dialect.
17943
17944 2015-01-19 Martin Liska <mliska@suse.cz>
17945
17946 PR ipa/64664
17947 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
17948 Handle safe potentially removed nodes during filtering.
17949
17950 2015-01-19 Martin Liska <mliska@suse.cz>
17951
17952 * doc/extend.texi (no_icf): Add new attribute description.
17953 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
17954 where the pass attempts to merge a function with no_icf attribute.
17955
17956 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17957
17958 PR target/64532
17959 * doc/md.texi (ARM Options): Document register constraints.
17960
17961 2015-01-19 Jiong Wang <jiong.wang@arm.com>
17962 Andrew Pinski <apinski@cavium.com>
17963
17964 PR target/64304
17965 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
17966 (ashl<mode>3): Don't expand if operands[2] is not constant.
17967
17968 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17969
17970 PR target/64448
17971 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
17972 Match xor-and-xor RTL pattern.
17973
17974 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
17975
17976 PR rtl-optimization/64081
17977 * loop-iv.c (def_pred_latch_p): New function.
17978 (latch_dominating_def): Allow specific cases with non-single
17979 definitions.
17980 (iv_get_reaching_def): Likewise.
17981 (check_complex_exit_p): New function.
17982 (check_simple_exit): Use check_complex_exit_p to allow certain cases
17983 with exits not executing on any iteration.
17984
17985 2015-01-19 Jakub Jelinek <jakub@redhat.com>
17986
17987 * common.opt (fgraphite): Fix a typo.
17988
17989 2015-01-19 Felix Yang <felix.yang@huawei.com>
17990
17991 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
17992 pattern.
17993 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
17994 uminp, smax_nanp, smin_nanp): New builtins.
17995 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
17996 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
17997 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
17998 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
17999 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
18000 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
18001 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
18002 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
18003 vpminnms_f32): Rewrite using builtin functions.
18004
18005 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
18006
18007 PR libgomp/64625
18008 * omp-low.c (offload_symbol_decl): Remove variable.
18009 (get_offload_symbol_decl): Remove function.
18010 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
18011 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
18012 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
18013 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
18014 BUILT_IN_GOACC_UPDATE don't pass it at all.
18015
18016 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
18017
18018 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
18019 callers.
18020
18021 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
18022
18023 * ipa-chkp.c (chkp_produce_thunks): Add early param
18024 to split thunks production into two passes. Keep
18025 'always_inline' function bodies after the first pass.
18026 (pass_data_ipa_chkp_early_produce_thunks): New.
18027 (pass_ipa_chkp_early_produce_thunks): New.
18028 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
18029 chkp_produce_thunks signature.
18030 (make_pass_ipa_chkp_early_produce_thunks): New.
18031 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
18032 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
18033 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
18034
18035 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
18036
18037 * cgraph.c (cgraph_node::dump): Dump profile flags.
18038
18039 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
18040
18041 PR target/64652
18042 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
18043 reg appear first in the parallel.
18044
18045 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
18046
18047 * ipa-reference.c (set_reference_optimization_summary,
18048 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
18049 disabled.
18050 (ignore_module_statics): New static var.
18051 (propagate_bits): If ipa-reference is disabled, do not look into local
18052 properties.
18053 (analyze_function): Disable analysis when ipa_reference is disabled.
18054 (generate_summary): Do not dump when reference is disabled;
18055 collect vars accessed from functions with ipa-reference disabled.
18056 (get_read_write_all_from_node): When ipa-reference is disabled, use the
18057 node flags.
18058 (gate): Enable for LTO.
18059 (ignore_edge_p): New function.
18060 (propagate): Skip functions w/o ipa-reference analysis.
18061 * optc-save-gen.awk: Handle optimize_debug correctly.
18062 * opth-gen.awk: Likewise.
18063 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
18064 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
18065 fira-share-save-slots, fira-share-spill-slots,
18066 fmodulo-sched-allow-regmoves, fpartial-inlining,
18067 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
18068 ftracer, ftree-parallelize-loops, fassociative-math,
18069 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
18070 Optimization
18071 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
18072 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
18073 Optimization.
18074 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
18075 Fix for IPA.
18076
18077 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
18078
18079 PR ipa/64378
18080 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
18081 flag correctly.
18082 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
18083
18084 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
18085
18086 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
18087 Remove duplicate option listings.
18088
18089 2015-01-18 Felix Yang <felix.yang@huawei.com>
18090
18091 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
18092 (autofdo_source_profile::get_callsite_total_count,
18093 function_instance::get_function_instance_by_decl,
18094 string_table::get_index, string_table::get_index_by_decl,
18095 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
18096 Fix comment typos. Reformatting and minor code rearrangement.
18097
18098 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
18099
18100 * config/rs6000/rs6000.md (probe_stack): Delete.
18101 (probe_stack_address): New.
18102
18103 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
18104
18105 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
18106 to test for 32-bit ABIs, not !TARGET_POWERPC64.
18107
18108 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
18109
18110 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
18111 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
18112 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
18113 snafu.
18114 (rs6000_libcall_value): Use the new function.
18115
18116 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
18117
18118 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
18119
18120 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
18121
18122 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
18123 implement a more precise life analysis for it during backward scan.
18124
18125 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
18126
18127 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
18128
18129 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
18130
18131 PR rtl-optimization/52773
18132 * calls.c (emit_library_call_value): When pushing arguments use
18133 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
18134 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
18135 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
18136
18137 2015-01-17 Jeff Law <law@redhat.com>
18138
18139 PR rtl-optimization/32790
18140 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
18141 not ZERO_EXTEND in SET_DESTs.
18142
18143 2015-01-17 Alan Modra <amodra@gmail.com>
18144
18145 * cprop.c (do_local_cprop): Revert last change.
18146
18147 2015-01-16 DJ Delorie <dj@redhat.com>
18148 Nick Clifton <nickc@redhat.com>
18149
18150 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
18151 (addhi3_real): Likewise. Fix [HL+0] syntax.
18152 (subqi3_real): Likewise.
18153 (subhi3_real): Likewise.
18154 (cbranchqi4_real): Likewise. Allow saddr,#imm.
18155 (cbranchhi4_real): Likewise.
18156 (cbranchhi4_real_inverted): Likewise.
18157 (cbranchsi4_real_lt): Likewise.
18158 (cbranchsi4_real_ge): Likewise.
18159 (cbranchsi4_real_ge): Likewise.
18160 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
18161 (sub<mode>3_virt): Likewise.
18162 (cbranchqi4_virt): Likewise.
18163 (cbranchhi4_virt): Likewise.
18164 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
18165 always use '[reg+imm]' even when imm is zero.
18166 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
18167 (rl78_general_operand): New.
18168 (rl78_nonimmediate_operand): New.
18169 (rl78_nonfar_operand): Use them.
18170 (rl78_nonfar_nonimm_operand): Likewise.
18171 (rl78_stack_based_mem): Fix.
18172 * config/rl78/constraints.md (Ibqi): New.
18173 (IBqi): New.
18174 (Wsa): New.
18175 (Wsf): New.
18176 (Cs1): Fix.
18177 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
18178 (iorqi3): Likewise.
18179 (xorqi3): Likewise.
18180 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
18181
18182 * config/rl78/constrains (Qs8): New constraint.
18183 * config/rl78/rl78.c (rl78_flags_already_set): New function.
18184 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
18185 * config/rl78/rl78-real.md (update_Z): New attribute.
18186 Update patterns to set it.
18187 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
18188 shorter compare and branch sequence can be used.
18189 (cbranchhi4_real): Likewise.
18190 (cbranchhi4_real_inverted): Likewise.
18191
18192 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
18193 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
18194 address space.
18195 * config/rl78/rl78.c (rl78_get_name_encoding): New.
18196 (rl78_option_override): Allow -mes0 only if C.
18197 (characterize_address): Support subregs of symbol_refs.
18198 (rl78_addr_space_address_mode): Move. Add __near.
18199 (rl78_far_p): Likewise.
18200 (rl78_addr_space_pointer_mode): Likewise.
18201 (rl78_as_legitimate_address): Likewise.
18202 (rl78_addr_space_subset_p): Likewise.
18203 (rl78_addr_space_convert): Likewise.
18204 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
18205 symbols with -mes0.
18206 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
18207 addressing.
18208 (rl78_alloc_physical_registers_op1): Change logic to prefer
18209 symbol[BC] addressing.
18210 (frodata_section): New.
18211 (rl78_asm_init_sections): Initialize it.
18212 (rl78_select_section): Put __far readonly symbols in .frodata.
18213 (rl78_make_type_far): New.
18214 (rl78_insert_attributes): Force all readonly symbols to be
18215 __far when -mes0.
18216 (rl78_asm_out_integer): New.
18217 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
18218 * config/rl78/rl78.opt (-mes0): New.
18219
18220 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
18221 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
18222 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
18223 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
18224 (rl78_saddr_p): New.
18225 (rl78_output_aligned_common): New.
18226 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
18227 (rl78_handle_saddr_attribute): New.
18228 (rl78_handle_naked_attribute): New.
18229 (rl78_attribute_table): Add saddr.
18230 (rl78_print_operand_1): Don't print '!' on saddr operands.
18231 (rl78_print_operand_1): Strip encodings.
18232 (rl78_sfr_p): New.
18233 (rl78_strip_name_encoding): New.
18234 (rl78_attrlist_to_encoding): New.
18235 (rl78_encode_section_info): New.
18236 (rl78_asm_init_sections): New.
18237 (rl78_select_section): New.
18238 (rl78_output_labelref): New.
18239 (rl78_output_aligned_common): New.
18240 (rl78_asm_out_integer): New.
18241 (rl78_asm_ctor_dtor): New.
18242 (rl78_asm_constructor): New.
18243 (rl78_asm_destructor): New.
18244
18245 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
18246 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
18247 (transcode_memory_rtx): Update.
18248 (rl78_expand_epilogue): Use A_REG instead of 0.
18249
18250 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18251
18252 * config/arm/arm-protos.h (struct tune_params): New field
18253 sched_autopref_queue_depth.
18254 * config/arm/arm.c (sched-int.h): Include header.
18255 (arm_first_cycle_multipass_dfa_lookahead_guard,)
18256 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
18257 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
18258 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
18259 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
18260 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
18261 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
18262 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
18263 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
18264 * config/arm/t-arm (arm.o): Update.
18265 * haifa-sched.c (update_insn_after_change): Update.
18266 (rank_for_schedule): Use auto-prefetcher model, if requested.
18267 (autopref_multipass_init): New static function.
18268 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
18269 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
18270 variable for debug dumps.
18271 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
18272 (autopref_multipass_dfa_lookahead_guard): New global function that
18273 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
18274 (init_h_i_d): Update.
18275 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
18276 * sched-int.h (enum autopref_multipass_data_status): New const enum.
18277 (autopref_multipass_data_): Structure for auto-prefetcher data.
18278 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
18279 (struct _haifa_insn_data:autopref_multipass_data): New field.
18280 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
18281 (autopref_multipass_dfa_lookahead_guard): Declare.
18282
18283 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18284
18285 * rtlanal.c (get_base_term): Handle SCRATCH.
18286
18287 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18288
18289 * config/aarch64/aarch64.c
18290 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
18291 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
18292 * config/arm/arm.c
18293 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
18294 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
18295
18296 2015-01-17 Alan Modra <amodra@gmail.com>
18297
18298 * cprop.c (do_local_cprop): Disallow replacement of fixed
18299 hard registers.
18300
18301 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18302
18303 PR target/62066
18304 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
18305 early return 0.
18306
18307 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
18308
18309 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
18310 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
18311
18312 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18313
18314 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
18315 * config/arm/thumb1.md: ... Here.
18316
18317 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
18318
18319 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
18320 TImode for TARGET_32BIT.
18321
18322 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
18323
18324 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
18325 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
18326 as ...
18327 (rs6000_abi_word_mode): New function.
18328
18329 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
18330
18331 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
18332 instead of UNITS_PER_WORD to describe the size of stack slots.
18333
18334 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
18335
18336 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
18337 as rs6000_promote_function_mode. Move comment to there.
18338 (rs6000_promote_function_mode): New function.
18339
18340 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
18341
18342 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
18343 -mpowerpc64 is active.
18344
18345 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
18346
18347 PR middle-end/64353
18348 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
18349 virtuals on start.
18350
18351 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
18352
18353 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
18354 introduced in revision 219724.
18355
18356 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18357 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18358
18359 PR target/64263
18360 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
18361 destination is not a GP reg.
18362 (*movdi_aarch64): Likewise.
18363
18364 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
18365
18366 PR target/64623
18367 * config/rs6000/default64.h: Revert ISA change.
18368
18369 2015-01-16 Richard Biener <rguenther@suse.de>
18370
18371 PR middle-end/64614
18372 * tree-ssa-uninit.c: Include tree-cfg.h.
18373 (MAX_SWITCH_CASES): New define.
18374 (convert_control_dep_chain_into_preds): Handle switch statements.
18375 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
18376 (normalize_one_pred_1): Do not split bit-manipulations.
18377 Record (x & CST).
18378
18379 2015-01-16 Richard Biener <rguenther@suse.de>
18380
18381 PR tree-optimization/64568
18382 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
18383 complex load rewriting for TARGET_MEM_REFs.
18384
18385 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
18386
18387 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
18388
18389 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
18390
18391 PR target/64149
18392 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
18393 variable.
18394 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
18395 (aarch64_lra_p): Remove.
18396
18397 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
18398
18399 PR target/64363
18400 * ipa-chkp.h (chkp_instrumentable_p): New.
18401 * ipa-chkp.c: Include tree-inline.h.
18402 (chkp_instrumentable_p): New.
18403 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
18404 Fix processing of not instrumentable functions.
18405 (chkp_versioning): Use chkp_instrumentable_p. Warn about
18406 not instrumentable functions.
18407 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
18408 chkp_instrumentable_p.
18409 * tree-inline.h (copy_forbidden): New.
18410 * tree-inline.c (copy_forbidden): Not static anymore.
18411
18412 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18413
18414 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
18415 ptr1, ptr2 unused.
18416
18417 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
18418
18419 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
18420 type OP_OUT to OP_INOUT.
18421
18422 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
18423
18424 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
18425 (high x) y) to y if x and y have the same base.
18426
18427 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
18428
18429 * config/arm/cortex-a57.md: New.
18430 * config/aarch64/aarch64.md: Include it.
18431 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
18432 * config/aarch64/aarch64-tune.md: Regenerate.
18433
18434 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
18435
18436 PR target/64015
18437 * ccmp.c (expand_ccmp_next): New function.
18438 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
18439 and compare insn sequence.
18440 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
18441 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
18442 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
18443 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
18444 (*ccmp_ior): Changed to ccmp_ior<mode>.
18445 (cmp<mode>): New pattern.
18446 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
18447 parameters.
18448 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
18449
18450 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
18451
18452 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
18453 _mm256_bsrli_epi128): New.
18454 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
18455
18456 2015-01-15 Jiong Wang <jiong.wang@arm.com>
18457
18458 * expmed.c (store_bit_field_using_insv): Improve warning message.
18459 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
18460
18461 2015-01-15 Jiong Wang <jiong.wang@arm.com>
18462
18463 PR rtl-optimization/64011
18464 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
18465 there is partial overflow.
18466
18467 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
18468
18469 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
18470 prototype.
18471 (nds32_expand_epilogue_v3pop): Likewise.
18472 * config/nds32/nds32.md (sibcall): Define this for sibling call
18473 optimization.
18474 (sibcall_register): Likewise.
18475 (sibcall_immediate): Likewise.
18476 (sibcall_value): Likewise.
18477 (sibcall_value_register): Likewise.
18478 (sibcall_value_immediate): Likewise.
18479 (sibcall_epilogue): Likewise.
18480 (epilogue): Pass false to indicate this is not a sibcall epilogue.
18481 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
18482 (nds32_expand_epilogue_v3pop): Likewise.
18483
18484 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
18485
18486 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
18487 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
18488 (return_internal): New.
18489 (return): Define this named pattern.
18490 (simple_return): Define this named pattern.
18491 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
18492 pattern instead of unspec_volatile_func_return.
18493 (nds32_expand_epilogue_v3pop): Likewise.
18494 (nds32_can_use_return_insn): New function.
18495
18496 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
18497
18498 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
18499 * config/nds32/nds32.md (pop25return): New.
18500 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
18501 pop25return pattern.
18502
18503 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
18504
18505 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
18506 -mforbid-fp-as-gp, and -mex9 options.
18507
18508 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
18509
18510 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
18511 remove -mgp-direct option.
18512
18513 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
18514
18515 * doc/invoke.texi (--param early-inlining-insns): Update default value.
18516 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
18517
18518 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
18519
18520 * ipa-inline.c (inline_small_functions): Work around hints
18521 cache issue.
18522
18523 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
18524
18525 PR target/59710
18526 * doc/invoke.texi (Option Summary): Document new Nios II
18527 -mgpopt= syntax.
18528 (Nios II Options): Likewise.
18529 * config/nios2/nios2.opt: Add -mgpopt= option support.
18530 Modify existing -mgpopt and -mno-gpopt options to be aliases.
18531 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
18532 * config/nios2/nios2.c (nios2_option_override): Adjust
18533 -mgpopt defaulting.
18534 (nios2_in_small_data_p): Return true for explicit small data
18535 sections even with -G0.
18536 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
18537 option choices.
18538
18539 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
18540
18541 PR ipa/64612
18542 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
18543 of comdat locals.
18544 (inline_call): Fix removal of aliases.
18545
18546 2015-01-15 Jakub Jelinek <jakub@redhat.com>
18547
18548 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
18549 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
18550 * opts.c (common_handle_option): Add -fsanitize=vptr.
18551 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
18552 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
18553 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
18554 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
18555 (ubsan_expand_vptr_ifn): New prototype.
18556 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
18557 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
18558 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
18559 expand_LOOP_VECTORIZED): Make argument nameless, remove
18560 ATTRIBUTE_UNUSED.
18561 (expand_UBSAN_VPTR): New function.
18562 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
18563 in fn spec.
18564 (UBSAN_VPTR): New internal function.
18565 * sanopt.c (tree_map_traits): Renamed to ...
18566 (sanopt_tree_map_traits): ... this.
18567 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
18568 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
18569 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
18570 (maybe_optimize_ubsan_vptr_ifn): New function.
18571 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
18572 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
18573 -fsanitize=vptr.
18574 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
18575 internal calls like pure functions for aliasing, even when they
18576 have other side-effects that prevent making them ECF_PURE.
18577 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
18578 (ubsan_expand_vptr_ifn): New function.
18579
18580 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
18581
18582 PR rtl-optimization/64110
18583 * stmt.c (parse_output_constraint): Process '^' and '$'.
18584 (parse_input_constraint): Ditto.
18585 * lra-constraints.c (process_alt_operands): Process the new
18586 constraints.
18587 * ira-costs.c (record_reg_classes): Process the new constraint
18588 '^'.
18589 * genoutput.c (indep_constraints): Add '^' and '$'.
18590 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
18591 * doc/md.texi: Add description of the new constraints.
18592
18593 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
18594 Bernd Schmidt <bernds@codesourcery.com>
18595 Cesar Philippidis <cesar@codesourcery.com>
18596 James Norris <jnorris@codesourcery.com>
18597 Tom de Vries <tom@codesourcery.com>
18598 Ilmir Usmanov <i.usmanov@samsung.com>
18599 Dmitry Bocharnikov <dmitry.b@samsung.com>
18600 Evgeny Gavrin <e.gavrin@samsung.com>
18601 Jakub Jelinek <jakub@redhat.com>
18602
18603 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
18604 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
18605 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
18606 New function types.
18607 * builtins.c: Include "gomp-constants.h".
18608 (expand_builtin_acc_on_device): New function.
18609 (expand_builtin, is_inexpensive_builtin): Handle
18610 BUILT_IN_ACC_ON_DEVICE.
18611 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
18612 New macros.
18613 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
18614 flag_openmp.
18615 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
18616 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
18617 i386/intelmic-offload.h.
18618 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
18619 to libgomp and its dependencies.
18620 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
18621 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
18622 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
18623 * config/ia64/hpux.h (LIB_SPEC): Likewise.
18624 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
18625 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
18626 * doc/generic.texi: Update for OpenACC changes.
18627 * doc/gimple.texi: Likewise.
18628 * doc/invoke.texi: Likewise.
18629 * doc/sourcebuild.texi: Likewise.
18630 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
18631 GF_OMP_FOR_KIND_OACC_LOOP.
18632 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
18633 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
18634 GF_OMP_TARGET_KIND_OACC_UPDATE,
18635 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
18636 Dump more data.
18637 * gimple.c: Update comments for OpenACC changes.
18638 * gimple.def: Likewise.
18639 * gimple.h: Likewise.
18640 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
18641 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
18642 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
18643 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
18644 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
18645 appropriate place.
18646 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
18647 * gimplify.c: Include "gomp-constants.h".
18648 Update comments for OpenACC changes.
18649 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
18650 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
18651 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
18652 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
18653 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
18654 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
18655 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
18656 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
18657 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
18658 OMP_CLAUSE_SEQ.
18659 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
18660 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
18661 OMP_CLAUSE_SET_MAP_KIND.
18662 (gimplify_oacc_cache): New function.
18663 (gimplify_omp_for): Handle OACC_LOOP.
18664 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
18665 OACC_DATA.
18666 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
18667 OACC_EXIT_DATA, OACC_UPDATE.
18668 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
18669 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
18670 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
18671 (gimplify_body): Consider flag_openacc next to flag_openmp.
18672 * lto-streamer-out.c: Include "gomp-constants.h".
18673 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
18674 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
18675 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
18676 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
18677 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
18678 (BUILT_IN_ACC_ON_DEVICE): New builtins.
18679 * omp-low.c: Include "gomp-constants.h".
18680 Update comments for OpenACC changes.
18681 (struct omp_context): Add reduction_map, gwv_below, gwv_this
18682 members.
18683 (extract_omp_for_data, use_pointer_for_field, install_var_field)
18684 (new_omp_context, delete_omp_context, scan_sharing_clauses)
18685 (create_omp_child_function, scan_omp_for, scan_omp_target)
18686 (check_omp_nesting_restrictions, lower_reduction_clauses)
18687 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
18688 Update for OpenACC changes.
18689 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
18690 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
18691 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
18692 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
18693 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
18694 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
18695 OMP_CLAUSE_MAP_*.
18696 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
18697 Handle GF_OMP_FOR_KIND_OACC_LOOP.
18698 (expand_omp_target, lower_omp_target): Handle
18699 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
18700 GF_OMP_TARGET_KIND_OACC_UPDATE,
18701 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
18702 GF_OMP_TARGET_KIND_OACC_DATA.
18703 (pass_expand_omp::execute, execute_lower_omp)
18704 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
18705 flag_openmp.
18706 (offload_symbol_decl): New variable.
18707 (oacc_get_reduction_array_id, oacc_max_threads)
18708 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
18709 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
18710 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
18711 (oacc_gimple_assign, oacc_initialize_reduction_data)
18712 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
18713 functions.
18714 (is_targetreg_ctx): Remove function.
18715 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
18716 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
18717 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
18718 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
18719 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
18720 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
18721 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
18722 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
18723 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
18724 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
18725 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
18726 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
18727 * tree-core.h: Update comments for OpenACC changes.
18728 (enum omp_clause_map_kind): Remove.
18729 (struct tree_omp_clause): Change type of map_kind member from enum
18730 omp_clause_map_kind to unsigned char.
18731 * tree-inline.c: Update comments for OpenACC changes.
18732 * tree-nested.c: Likewise. Include "gomp-constants.h".
18733 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
18734 (convert_tramp_reference_stmt, convert_gimple_call): Update for
18735 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
18736 OMP_CLAUSE_SET_MAP_KIND.
18737 * tree-pretty-print.c: Include "gomp-constants.h".
18738 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
18739 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
18740 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
18741 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
18742 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
18743 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
18744 instead of OMP_CLAUSE_MAP_*.
18745 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
18746 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
18747 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
18748 * tree-streamer-in.c: Include "gomp-constants.h".
18749 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
18750 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
18751 * tree-streamer-out.c: Include "gomp-constants.h".
18752 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
18753 OMP_CLAUSE_MAP_*.
18754 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
18755 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
18756 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
18757 * tree.c (omp_clause_num_ops): Update accordingly.
18758 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
18759 Likewise.
18760 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
18761 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
18762 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
18763 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
18764 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
18765 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
18766 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
18767 (OMP_CLAUSE_SET_MAP_KIND): New macro.
18768 * varpool.c (varpool_node::get_create): Consider flag_openacc next
18769 to flag_openmp.
18770 * config/i386/intelmic-offload.h: New file.
18771 * config/nvptx/offload.h: Likewise.
18772
18773 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18774
18775 * explow.h: Remove duplicate contents.
18776 * dojump.h: Likewise.
18777
18778 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
18779
18780 * arm.c (arm_xgene_tune): Add default initializer for instruction
18781 fusion.
18782
18783 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
18784
18785 PR ipa/64068
18786 PR ipa/64559
18787 * ipa.c (symbol_table::remove_unreachable_nodes):
18788 Do not put abstract origins into boundary.
18789
18790 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
18791
18792 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
18793 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
18794
18795 2015-01-15 Steve Ellcey <sellcey@mips.com>
18796
18797 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
18798 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
18799 builtins.def, and chkp-builtins.def.
18800
18801 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
18802
18803 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
18804 ISA 2.7 (POWER8).
18805
18806 2015-01-15 Richard Biener <rguenther@suse.de>
18807
18808 PR tree-optimization/61743
18809 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
18810 information on PHIs for some simple cases.
18811
18812 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18813
18814 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
18815 Include xgene1.md.
18816 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
18817 * config/arm/arm-cores.def (xgene1): New entry.
18818 * config/arm/arm-tables.opt: Regenerate.
18819 * config/arm/arm-tune.md: Regenerate.
18820 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
18821
18822 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
18823
18824 * tree-if-conv.c: Include hash-map.h.
18825 (aggressive_if_conv): New variable.
18826 (fold_build_cond_expr): Add simplification of non-zero condition.
18827 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
18828 destination block is not always executed.
18829 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
18830 than two predecessors if AGGRESSIVE_IF_CONV is true.
18831 (if_convertible_stmt_p): Fix commentary.
18832 (all_preds_critical_p): New function.
18833 (has_pred_critical_p): New function.
18834 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
18835 BB can have more than two predecessors and all incoming edges can be
18836 critical.
18837 (predicate_bbs): Skip predication for loop exit block, use build2_loc
18838 to compute predicate for true edge.
18839 (find_phi_replacement_condition): Delete this function.
18840 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
18841 Allow interchange PHI arguments if EXTENDED is false.
18842 Change check that block containing reduction statement candidate
18843 is predecessor of phi-block since phi may have more than two arguments.
18844 (phi_args_hash_traits): New helper structure.
18845 (struct phi_args_hash_traits): New type.
18846 (phi_args_hash_traits::hash): New function.
18847 (phi_args_hash_traits::equal_keys): New function.
18848 (gen_phi_arg_condition): New function.
18849 (predicate_scalar_phi): Add handling of phi nodes with more than two
18850 arguments, delete COND and TRUE_BB arguments, insert body of
18851 find_phi_replacement_condition to predicate ordinary phi nodes.
18852 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
18853 delete call of find_phi_replacement_condition and invoke
18854 predicate_scalar_phi with two arguments.
18855 (insert_gimplified_predicates): Add assert that non-predicated block
18856 don't have statements to insert.
18857 (ifcvt_split_critical_edges): New function.
18858 (ifcvt_split_def_stmt): Likewise.
18859 (ifcvt_walk_pattern_tree): Likewise.
18860 (stmt_is_root_of_bool_pattern): Likewise.
18861 (ifcvt_repair_bool_pattern): Likewise.
18862 (ifcvt_local_dce): Likewise.
18863 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
18864 is copy of inner or outer loop force_vectorize field, invoke
18865 ifcvt_split_critical_edges, ifcvt_local_dce and
18866 ifcvt_repair_bool_pattern for aggressive if-conversion.
18867
18868 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
18869
18870 * config/aarch64/aarch64.md: Include xgene1.md.
18871 * config/aarch64/xgene1.md: New file.
18872
18873 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18874
18875 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
18876 xgene1 (APM XGene-1) core definition.
18877 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
18878 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
18879 * doc/invoke.texi: Document -mcpu=xgene1.
18880
18881 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18882
18883 * dojump.h: New header file.
18884 * explow.h: Likewise.
18885 * expr.h: Remove includes.
18886 Move expmed.c prototypes to expmed.h.
18887 Move dojump.c prototypes to dojump.h.
18888 Move alias.c prototypes to alias.h.
18889 Move explow.c prototypes to explow.h.
18890 Move calls.c prototypes to calls.h.
18891 Move emit-rtl.c prototypes to emit-rtl.h.
18892 Move varasm.c prototypes to varasm.h.
18893 Move stmt.c prototypes to stmt.h.
18894 (saved_pending_stack_adjust): Move to dojump.h.
18895 (adjust_address): Move to explow.h.
18896 (adjust_address_nv): Move to emit-rtl.h.
18897 (adjust_bitfield_address): Likewise.
18898 (adjust_bitfield_address_size): Likewise.
18899 (adjust_bitfield_address_nv): Likewise.
18900 (adjust_automodify_address_nv): Likewise.
18901 * explow.c (expr_size): Move to expr.c.
18902 (int_expr_size): Likewise.
18903 (tree_expr_size): Likewise.
18904 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18905 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
18906 * genemit.c (main): Generate includes statistics.h, real.h,
18907 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
18908 stmt.h.
18909 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
18910 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
18911 explow.h, emit-rtl.h, stmt.h.
18912 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
18913 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
18914 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
18915 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
18916 emit-rtl.h, varasm.h, stmt.h.
18917 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
18918 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
18919 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
18920 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
18921 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
18922 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
18923 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
18924 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
18925 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
18926 tm.h tree.h varasm.h vec.h wide-int.h.
18927 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
18928 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
18929 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
18930 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
18931 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
18932 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
18933 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
18934 * loop-iv.c: Likewise.
18935 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
18936 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
18937 statistics.h stmt.h tree.h varasm.h wide-int.h.
18938 * lra-constraints.c: Likewise.
18939 * lra-eliminations.c: Likewise.
18940 * lra-lives.c: Likewise.
18941 * lra-remat.c: Likewise.
18942 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
18943 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
18944 statistics.h stmt.h tree.h varasm.h wide-int.h.
18945 * hw-doloop.c: Likewise.
18946 * ira-color.c: Likewise.
18947 * ira-emit.c: Likewise.
18948 * loop-doloop.c: Likewise.
18949 * loop-invariant.c: Likewise.
18950 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
18951 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
18952 statistics.h stmt.h tree.h varasm.h wide-int.h.
18953 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
18954 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
18955 statistics.h stmt.h tree.h varasm.h wide-int.h.
18956 * combine-stack-adj.c: Likewise.
18957 * cse.c: Likewise.
18958 * ddg.c: Likewise.
18959 * ifcvt.c: Likewise.
18960 * ira-costs.c: Likewise.
18961 * jump.c: Likewise.
18962 * lra-coalesce.c: Likewise.
18963 * lra-spills.c: Likewise.
18964 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
18965 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
18966 stmt.h varasm.h wide-int.h.
18967 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
18968 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
18969 varasm.h.
18970 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
18971 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
18972 statistics.h stmt.h varasm.h wide-int.h.
18973 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
18974 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
18975 varasm.h wide-int.h.
18976 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
18977 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
18978 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
18979 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
18980 statistics.h stmt.h.
18981 * config/tilepro/tilepro.c: Likewise.
18982 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
18983 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
18984 * config/pdp11/pdp11.c: Likewise.
18985 * config/xtensa/xtensa.c: Likewise.
18986 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
18987 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
18988 varasm.h.
18989 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18990 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
18991 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
18992 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18993 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
18994 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
18995 * rtl-chkp.c: Likewise.
18996 * tree-chkp-opt.c: Likewise.
18997 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
18998 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
18999 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
19000 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19001 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
19002 statistics.h stmt.h.
19003 * tree-vect-data-refs.c: Likewise.
19004 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
19005 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19006 rtl.h statistics.h stmt.h varasm.h.
19007 * internal-fn.c: Likewise.
19008 * ipa-icf-gimple.c: Likewise.
19009 * lto-section-out.c: Likewise.
19010 * tree-data-ref.c: Likewise.
19011 * tree-nested.c: Likewise.
19012 * tree-outof-ssa.c: Likewise.
19013 * tree-predcom.c: Likewise.
19014 * tree-pretty-print.c: Likewise.
19015 * tree-scalar-evolution.c: Likewise.
19016 * tree-ssa-strlen.c: Likewise.
19017 * tree-vect-loop.c: Likewise.
19018 * tree-vect-patterns.c: Likewise.
19019 * tree-vect-slp.c: Likewise.
19020 * tree-vect-stmts.c: Likewise.
19021 * tsan.c: Likewise.
19022 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19023 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
19024 stmt.h.
19025 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
19026 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19027 statistics.h stmt.h varasm.h.
19028 * loop-unroll.c: Likewise.
19029 * ubsan.c: Likewise.
19030 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
19031 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
19032 stmt.h varasm.h.
19033 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19034 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
19035 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
19036 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
19037 statistics.h stmt.h.
19038 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
19039 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
19040 statistics.h stmt.h varasm.h.
19041 * gimple-match-head.c: Likewise.
19042 * lto-cgraph.c: Likewise.
19043 * lto-section-in.c: Likewise.
19044 * lto-streamer-in.c: Likewise.
19045 * lto-streamer-out.c: Likewise.
19046 * tree-affine.c: Likewise.
19047 * tree-cfg.c: Likewise.
19048 * tree-cfgcleanup.c: Likewise.
19049 * tree-if-conv.c: Likewise.
19050 * tree-into-ssa.c: Likewise.
19051 * tree-ssa-alias.c: Likewise.
19052 * tree-ssa-copyrename.c: Likewise.
19053 * tree-ssa-dse.c: Likewise.
19054 * tree-ssa-forwprop.c: Likewise.
19055 * tree-ssa-live.c: Likewise.
19056 * tree-ssa-math-opts.c: Likewise.
19057 * tree-ssa-pre.c: Likewise.
19058 * tree-ssa-sccvn.c: Likewise.
19059 * tree-tailcall.c: Likewise.
19060 * tree-vect-generic.c: Likewise.
19061 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19062 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
19063 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19064 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
19065 * varasm.c: Likewise.
19066 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19067 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
19068 varasm.h.
19069 * init-regs.c: Likewise.
19070 * ira.c: Likewise.
19071 * omp-low.c: Likewise.
19072 * stack-ptr-mod.c: Likewise.
19073 * tree-ssa-reassoc.c: Likewise.
19074 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19075 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
19076 varasm.h.
19077 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19078 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
19079 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19080 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
19081 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19082 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
19083 * tree-ssa-phiopt.c: Likewise.
19084 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19085 fixed-value.h hashtab.h real.h statistics.h stmt.h.
19086 * config/fr30/fr30.c: Likewise.
19087 * config/frv/frv.c: Likewise.
19088 * expr.c: Likewise.
19089 * final.c: Likewise.
19090 * optabs.c: Likewise.
19091 * passes.c: Likewise.
19092 * simplify-rtx.c: Likewise.
19093 * stmt.c: Likewise.
19094 * toplev.c: Likewise.
19095 * var-tracking.c: Likewise.
19096 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19097 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
19098 * lower-subreg.c: Likewise.
19099 * postreload-gcse.c: Likewise.
19100 * ree.c: Likewise.
19101 * reginfo.c: Likewise.
19102 * store-motion.c: Likewise.
19103 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19104 fixed-value.h hashtab.h real.h stmt.h varasm.h.
19105 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19106 fixed-value.h hashtab.h statistics.h stmt.h.
19107 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19108 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
19109 * except.c: Likewise.
19110 * explow.c: Likewise.
19111 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19112 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
19113 varasm.h.
19114 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19115 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
19116 * tree-ssa-structalias.c: Likewise.
19117 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19118 fixed-value.h insn-config.h real.h statistics.h.
19119 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19120 fixed-value.h insn-config.h real.h statistics.h stmt.h.
19121 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19122 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
19123 * cfgbuild.c: Likewise.
19124 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19125 fixed-value.h real.h rtl.h statistics.h stmt.h.
19126 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19127 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
19128 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19129 fixed-value.h real.h statistics.h stmt.h.
19130 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19131 fixed-value.h real.h statistics.h stmt.h varasm.h.
19132 * cprop.c: Likewise.
19133 * modulo-sched.c: Likewise.
19134 * postreload.c: Likewise.
19135 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
19136 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
19137 statistics.h stmt.h varasm.h.
19138 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
19139 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19140 rtl.h statistics.h stmt.h varasm.h.
19141 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
19142 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
19143 varasm.h.
19144 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
19145 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
19146 varasm.h.
19147 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
19148 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
19149 varasm.h.
19150 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
19151 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
19152 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
19153 function.h real.h statistics.h stmt.h varasm.h.
19154 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
19155 insn-config.h real.h statistics.h stmt.h.
19156 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
19157 statistics.h stmt.h.
19158 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
19159 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
19160 statistics.h stmt.h varasm.h.
19161 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
19162 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
19163 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
19164 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
19165 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
19166 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
19167 statistics.h stmt.h varasm.h.
19168 * ipa-polymorphic-call.c: Likewise.
19169 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
19170 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19171 statistics.h stmt.h.
19172 * config/c6x/c6x.c: Likewise.
19173 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
19174 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19175 statistics.h stmt.h varasm.h.
19176 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
19177 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
19178 stmt.h varasm.h.
19179 * ipa-split.c: Likewise.
19180 * tree-eh.c: Likewise.
19181 * tree-ssa-dce.c: Likewise.
19182 * tree-ssa-loop-niter.c: Likewise.
19183 * tree-vrp.c: Likewise.
19184 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
19185 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
19186 stmt.h.
19187 * config/nds32/nds32-fp-as-gp.c: Likewise.
19188 * config/nds32/nds32-intrinsic.c: Likewise.
19189 * config/nds32/nds32-isr.c: Likewise.
19190 * config/nds32/nds32-md-auxiliary.c: Likewise.
19191 * config/nds32/nds32-memory-manipulation.c: Likewise.
19192 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19193 * config/nds32/nds32-predicates.c: Likewise.
19194 * config/nds32/nds32.c: Likewise.
19195 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
19196 fixed-value.h hashtab.h real.h statistics.h.
19197 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
19198 fixed-value.h hashtab.h real.h statistics.h stmt.h.
19199 * config/arm/arm.c: Likewise.
19200 * config/avr/avr.c: Likewise.
19201 * config/bfin/bfin.c: Likewise.
19202 * config/h8300/h8300.c: Likewise.
19203 * config/i386/i386.c: Likewise.
19204 * config/ia64/ia64.c: Likewise.
19205 * config/iq2000/iq2000.c: Likewise.
19206 * config/m32c/m32c.c: Likewise.
19207 * config/m32r/m32r.c: Likewise.
19208 * config/m68k/m68k.c: Likewise.
19209 * config/mcore/mcore.c: Likewise.
19210 * config/mep/mep.c: Likewise.
19211 * config/mips/mips.c: Likewise.
19212 * config/mn10300/mn10300.c: Likewise.
19213 * config/moxie/moxie.c: Likewise.
19214 * config/pa/pa.c: Likewise.
19215 * config/rl78/rl78.c: Likewise.
19216 * config/rx/rx.c: Likewise.
19217 * config/s390/s390.c: Likewise.
19218 * config/sh/sh.c: Likewise.
19219 * config/sparc/sparc.c: Likewise.
19220 * config/spu/spu.c: Likewise.
19221 * config/stormy16/stormy16.c: Likewise.
19222 * config/v850/v850.c: Likewise.
19223 * config/vax/vax.c: Likewise.
19224 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
19225 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
19226 * config/msp430/msp430.c: Likewise.
19227 * predict.c: Likewise.
19228 * value-prof.c: Likewise.
19229 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
19230 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
19231 * config/microblaze/microblaze.c: Likewise.
19232 * config/nios2/nios2.c: Likewise.
19233 * config/rs6000/rs6000.c: Likewise.
19234 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
19235 insn-config.h real.h rtl.h statistics.h stmt.h.
19236 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
19237 insn-config.h real.h statistics.h stmt.h.
19238 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
19239 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
19240 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
19241 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
19242 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
19243 fixed-value.h real.h statistics.h stmt.h.
19244 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
19245 fixed-value.h statistics.h stmt.h.
19246 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
19247 stmt.h.
19248
19249 2015-01-15 Jakub Jelinek <jakub@redhat.com>
19250
19251 * gengtype.c (create_user_defined_type): Workaround
19252 -Wmaybe-uninitialized false positives.
19253 * cse.c (fold_rtx): Likewise.
19254 * loop-invariant.c (gain_for_invariant): Likewise.
19255
19256 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
19257
19258 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
19259 set the memory attributes in all cases but clear MEM_EXPR if need be.
19260
19261 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
19262
19263 PR tree-optimization/64434
19264 * cfgexpand.c (reorder_operands): New function.
19265 (expand_gimple_basic_block): Insert call of reorder_operands if
19266 optimized is true.
19267
19268 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
19269
19270 * config/mips/micromips.md (*swp): Remove explicit parallel.
19271 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
19272 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
19273 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
19274 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
19275 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
19276 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
19277 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
19278 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
19279 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
19280 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
19281 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
19282 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
19283 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
19284 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
19285 (mips_wrdsp): Likewise.
19286 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
19287 parallel.
19288 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
19289 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
19290 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
19291 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
19292 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
19293 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
19294 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
19295 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
19296 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
19297
19298 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
19299
19300 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
19301 (mips_print_operand): Support 'y' to print exact log2 in decimal
19302 of a const_int.
19303 * config/mips/mips.h (ISA_HAS_LSA): New define.
19304 (ISA_HAS_DLSA): Likewise.
19305 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
19306 * config/mips/predicates.md (const_immlsa_operand): New predicate.
19307
19308 2015-01-15 Martin Liska <mliska@suse.cz>
19309
19310 PR target/64377
19311 * optc-save-gen.awk: Add support for array types.
19312
19313 2015-01-15 Richard Biener <rguenther@suse.de>
19314
19315 PR middle-end/64365
19316 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
19317 for MEM_REF access functions with the same base can never partially
19318 overlap.
19319
19320 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
19321
19322 * common.opt: New option -fstack-protector-explicit.
19323 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
19324 (stack_protect_decl_phase): Handle stack_protect attribute for
19325 explicit stack protection requests.
19326 (expand_used_vars): Similarly.
19327 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
19328 * doc/extend.texi: Add documentation for "stack_protect" attribute.
19329 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
19330
19331 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
19332
19333 PR target/53988
19334 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
19335 reg-reg copies.
19336 (sh_extending_set_of_reg): New struct.
19337 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
19338 sh_remove_reg_dead_or_unused_notes): New Declarations.
19339 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
19340 sh_find_extending_set_of_reg, sh_split_tst_subregs,
19341 sh_extending_set_of_reg::use_as_extended_reg): New functions.
19342 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
19343 convert to insn_and_split and use new function sh_split_tst_subregs.
19344
19345 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
19346
19347 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
19348 option.
19349 (Optimization Options): Move -fuse-ld documentation to...
19350 (Link Options): ...here.
19351
19352 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
19353
19354 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
19355 offsets.
19356 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
19357 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
19358 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
19359 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
19360 instead of ZR for the memory operand of LL/SC.
19361 (compare_and_swap_12, sync_add<mode>): Likewise.
19362 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
19363 (sync_new_<optab>_12, sync_nand_12): Likewise.
19364 (sync_old_nand_12, sync_new_nand_12): Likewise.
19365 (sync_sub<mode>, sync_old_add<mode>): Likewise.
19366 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
19367 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
19368 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
19369 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
19370 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
19371 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
19372 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
19373 * doc/md.texi (ZC): Update description.
19374
19375 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
19376
19377 * builtins.c (expand_builtin_atomic_exchange): Remove error when
19378 memory model is CONSUME.
19379 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
19380 expand_builtin_atomic_store): Change invalid memory model errors to
19381 warnings.
19382 (expand_builtin_atomic_clear): Change invalid model errors to warnings
19383 and issue warning for CONSUME.
19384
19385 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
19386
19387 * lto-cgraph: Update function comments for
19388 lto_symtab_encoder_encode_*.
19389
19390 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
19391
19392 * Makefile.in (site.exp): Do not set ENABLE_LTO.
19393
19394 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
19395
19396 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
19397 * lto-cgraph.c (select_what_to_stream): Remove argument, use
19398 lto_stream_offload_p instead.
19399 * lto-streamer.h (select_what_to_stream): Remove argument.
19400 * passes.c (ipa_write_summaries): Likewise.
19401 * tree-pass.h (ipa_write_summaries): Likewise.
19402
19403 2015-01-14 Richard Biener <rguenther@suse.de>
19404
19405 PR tree-optimization/59354
19406 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
19407 groups larger than the slp group size as having gaps.
19408
19409 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
19410
19411 PR middle-end/59448
19412 * builtins.c (get_memmodel): Promote consume to acquire always.
19413
19414 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
19415
19416 PR target/64386
19417 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
19418 V32HImode.
19419
19420 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
19421
19422 PR target/64393
19423 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
19424 Enable AVX512BW.
19425 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
19426 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
19427 AVX512VBMI, as it implies AVX512BW.
19428
19429 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
19430
19431 PR target/64387
19432 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
19433 (vec_unpacks_hi_v16sf): Ditto.
19434
19435 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19436
19437 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
19438 is not available.
19439
19440 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19441
19442 * doc/invoke.texi (mapcs): Mention deprecation.
19443 (mapcs-frame): Likewise.
19444
19445 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
19446
19447 PR target/64453
19448 * config/arm/arm.c (callee_saved_reg_p): Define.
19449 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
19450 register is callee saved instead of !call_used_regs[reg].
19451 (thumb1_compute_save_reg_mask): Likewise.
19452
19453 2015-01-14 Hale Wang <hale.wang@arm.com>
19454
19455 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
19456 Cortex-M7.
19457
19458 2015-01-14 Richard Biener <rguenther@suse.de>
19459
19460 PR lto/64415
19461 * tree-inline.c (insert_debug_decl_map): Check destination
19462 function MAY_HAVE_DEBUG_STMTS.
19463 (insert_init_debug_bind): Likewise.
19464 (insert_init_stmt): Remove redundant check.
19465 (remap_gimple_stmt): Drop debug stmts if the destination
19466 function has var-tracking assignments disabled.
19467
19468 2015-01-14 Martin Liska <mliska@suse.cz>
19469
19470 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
19471 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
19472
19473 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19474
19475 PR target/64460
19476 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
19477 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
19478
19479 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
19480
19481 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
19482 level from an ARCH; do not inject the default.
19483 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
19484 MIPS_ISA_LEVEL_SPEC.
19485 (MIPS_ISA_NAN2008_SPEC): Update comment.
19486 (BASE_DRIVER_SELF_SPECS): Likewise.
19487 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
19488 MIPS_DEFAULT_ISA_LEVEL_SPEC.
19489 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
19490 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
19491 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
19492
19493 2015-01-14 Richard Biener <rguenther@suse.de>
19494
19495 PR tree-optimization/64493
19496 PR tree-optimization/64495
19497 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
19498 assign the proper vectorized PHI to the inner loop exit PHIs.
19499
19500 2015-01-14 Joey Ye <joey.ye@arm.com>
19501
19502 * config/arm/arm.c (arm_compute_save_reg_mask):
19503 Do not save lr in case of tail call.
19504 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
19505
19506 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
19507
19508 * tree-vrp.c (check_array_ref): Emit more warnings
19509 for warn_array_bounds >= 2.
19510 * common.opt: New option -Warray-bounds=.
19511 * doc/invoke.texi: Document -Warray-bounds=.
19512
19513 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
19514
19515 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
19516 (mforbid-fp-as-gp): Remove.
19517 (mex9): Remove.
19518 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
19519 (nds32_symbol_load_store_p): Remove.
19520 (nds32_fp_as_gp_check_available): Clean up implementation.
19521 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
19522 cases.
19523 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
19524 fp-as-gp and ex9 cases.
19525
19526 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
19527
19528 * tree-profile.c (init_ic_make_global_vars): Drop workaround
19529 for bintuils bug 14342.
19530 (init_ic_make_global_vars): Likewise.
19531 (gimple_init_edge_profiler): Likewise.
19532 (gimple_gen_ic_func_profiler): Likewise.
19533
19534 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19535
19536 * ipa-inline.c (inline_small_functions): Swap the operands in
19537 enum.
19538
19539 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
19540
19541 PR ipa/64481
19542 * ipa-inline-analysis.c (node_growth_cache): Remove.
19543 (initialize_growth_caches): Do not initialize it.
19544 (free_growth_caches): Do not free it.
19545 (do_estimate_growth): Rename to ...
19546 (estimate_growth): ... this one; drop growth cache code.
19547 (growth_likely_positive): Always go the heuristics way.
19548 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
19549 (reset_edge_caches): Do not reset node growth.
19550 (heap_edge_removal_hook): Do not maintain cache.
19551 (inline_small_functions): Likewise; strenghten sanity check.
19552 (ipa_inline): Do not maintain caches.
19553 * ipa-inline.h (node_growth_cache): Remove.
19554 (do_estimate_growth): Remove to ...
19555 (estimate_growth): this one; remove inline version.
19556 (reset_node_growth_cache): Remove.
19557
19558 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
19559
19560 PR ipa/64565
19561 * ipa-inline.c (inline_small_functions): Update callee keys after
19562 resolving speculation
19563 (inline_small_functions): Always check monotonicity of the queue.
19564
19565 2015-01-13 Marek Polacek <polacek@redhat.com>
19566
19567 PR middle-end/64391
19568 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
19569
19570 2015-01-13 Jakub Jelinek <jakub@redhat.com>
19571
19572 PR rtl-optimization/64286
19573 * ree.c (combine_reaching_defs): Move part of comment earlier,
19574 remove !SCALAR_INT_MODE_P check.
19575 (add_removable_extension): Don't add vector mode
19576 extensions if all uses of the source register aren't the same
19577 vector extensions.
19578
19579 2015-01-13 Renlin Li <renlin.li@arm.com>
19580
19581 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
19582 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
19583
19584 2015-01-13 Martin Liska <mliska@suse.cz>
19585
19586 * ipa-icf.c (sem_function::equals_private): Call new functions
19587 cl_target_option_print_diff and cl_optimization_print_diff.
19588 * optc-save-gen.awk (cl_target_option_print_diff): New function.
19589 (cl_optimization_print_diff): Likewise.
19590 * opth-gen.awk: Likewise.
19591
19592 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
19593
19594 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
19595 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
19596 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
19597 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
19598 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
19599 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
19600
19601 2015-01-13 Andrew Pinski <apinski@cavium.com>
19602
19603 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
19604 instead of src mode.
19605
19606 2015-01-13 Richard Biener <rguenther@suse.de>
19607
19608 PR lto/64373
19609 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
19610 DECL_CONTEXT.
19611
19612 2015-01-13 Andrew Pinski <apinski@cavium.com>
19613
19614 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
19615 volatile mems.
19616 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
19617
19618 2015-01-13 Jakub Jelinek <jakub@redhat.com>
19619
19620 PR middle-end/63974
19621 * cfgexpand.c (expand_computed_goto): Don't call
19622 convert_memory_address here.
19623
19624 2015-01-13 Richard Biener <rguenther@suse.de>
19625
19626 PR tree-optimization/64406
19627 * tree-loop-distibution.c (pass_loop_distribution::execute):
19628 Reset the SCEV hashtable if we distributed anything.
19629
19630 2015-01-13 Richard Biener <rguenther@suse.de>
19631
19632 PR tree-optimization/64404
19633 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
19634 SLP types for CSEd loads.
19635
19636 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
19637
19638 PR tree-optimization/64436
19639 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
19640 merge of two symbolic numbers for a bitwise OR to ...
19641 (perform_symbolic_merge): This. Also fix computation of the range and
19642 end of the symbolic number corresponding to the result of a bitwise OR.
19643
19644 2015-01-13 Richard Biener <rguenther@suse.de>
19645
19646 PR tree-optimization/64568
19647 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
19648 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
19649
19650 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
19651
19652 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
19653 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
19654
19655 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
19656
19657 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
19658 target-specific symbol_ref flag.
19659 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
19660 resides in rodata section.
19661 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
19662 (nds32_encode_section_info): New function.
19663
19664 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
19665
19666 * config/nds32/nds32.md (call): Use pseudo instruction bal which
19667 clobbers TA_REGNUM if large code model is specified.
19668 (call_register): Likewise.
19669 (call_immediate): Likewise.
19670 (call_value): Likewise.
19671 (call_value_register): Likewise.
19672 (call_value_immediate): Likewise.
19673
19674 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
19675
19676 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
19677 (TARGET_CMODEL_MEDIUM): New macro.
19678 (TARGET_CMODEL_LARGE): New macro.
19679 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
19680 code model setting in assembly code.
19681
19682 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
19683
19684 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
19685 Remove MASK_GP_DIRECT flag.
19686 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
19687 one of the multilib default options.
19688 * config/nds32/nds32.opt (mgp-direct): Remove.
19689 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
19690 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
19691
19692 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
19693
19694 * config/nds32/nds32.opt (mcmodel): Add new option.
19695 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
19696 to describe code model.
19697
19698 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
19699
19700 PR target/64479
19701 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
19702
19703 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
19704
19705 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
19706 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19707 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
19708 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
19709 __builtin_sh_set_fpscr.
19710
19711 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
19712
19713 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
19714 after a funtion name just to indicate it is a function.
19715 ([-fsanitize-undefined-trap-on-error]): Likewise.
19716 ([-fdbg-cnt=]): Likewise.
19717 ([-mmemcpy]): Likewise.
19718 ([-mflush-func]): Likewise.
19719 ([-msynci]): Likewise.
19720
19721 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
19722
19723 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
19724 example.
19725
19726 2015-01-12 Jakub Jelinek <jakub@redhat.com>
19727
19728 PR tree-optimization/64563
19729 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
19730 instead of != VR_VARYING.
19731
19732 PR target/64513
19733 * config/i386/i386.c (ix86_expand_prologue): Add
19734 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
19735
19736 PR tree-optimization/64454
19737 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
19738 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
19739 for signed or [0, op1 - 1] for unsigned modulo.
19740 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
19741 even if op1 does not satisfy integer_pow2p.
19742
19743 PR other/64370
19744 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
19745
19746 2015-01-12 Jeff Law <law@redhat.com>
19747
19748 PR target/64461
19749 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
19750 (trunchiqi2, truncsihi2): Similarly.
19751
19752 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
19753 rather than calling F.
19754
19755 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
19756
19757 * tsan.c (instrument_expr): Use force_gimple_operand.
19758 Use may_be_nonaddressable_p instead of is_gimple_addressable.
19759
19760 2015-01-12 Richard Biener <rguenther@suse.de>
19761
19762 PR tree-optimization/64530
19763 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
19764 back dr1.
19765
19766 2015-01-12 Richard Biener <rguenther@suse.de>
19767
19768 PR middle-end/64357
19769 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
19770 latches properly.
19771
19772 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19773
19774 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
19775 Cortex-A17 tuning parameters.
19776 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
19777
19778 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19779
19780 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
19781 * config/arm/arm.c (arm_macro_fusion_p): New function.
19782 (arm_macro_fusion_pair_p): Likewise.
19783 (TARGET_SCHED_MACRO_FUSION_P): Define.
19784 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
19785 (ARM_FUSE_NOTHING): Likewise.
19786 (ARM_FUSE_MOVW_MOVT): Likewise.
19787 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
19788 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
19789 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
19790 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
19791 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
19792 arm_cortex_a5_tune): Specify fuseable_ops value.
19793
19794 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
19795
19796 PR bootstrap/64561
19797 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
19798 test for PIE with copy reloc.
19799 * configure: Regenerated.
19800
19801 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19802
19803 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
19804 in gen_rtx_REG.
19805 (arm_tls_descseq_addr): Likewise.
19806 (arm_gen_movmemqi): Likewise.
19807 (arm_expand_epilogue_apcs_frame): Likewise.
19808 (arm_expand_epilogue): Likewise.
19809 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
19810 in gen_rtx_REG.
19811
19812 2015-01-12 Martin Liska <mliska@suse.cz>
19813
19814 PR ipa/64550
19815 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
19816 volatility for correct operands.
19817
19818 2015-01-12 Martin Liska <mliska@suse.cz>
19819
19820 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
19821 indication that a function is not leaf.
19822 (sem_function::compare_polymorphic_p): Likewise.
19823
19824 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19825
19826 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
19827 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
19828 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
19829 fold-const.h, tree-check.h.
19830
19831 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
19832
19833 PR ipa/63967
19834 PR ipa/64425
19835 * ipa-inline.c (compute_uninlined_call_time,
19836 compute_inlined_call_time): Use counts for extra precision when
19837 needed possible.
19838 (big_speedup_p): Fix formating.
19839 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
19840 (relative_time_benefit): Remove.
19841 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
19842 merge guessed and read profile paths.
19843 (inline_small_functions): Count only !optimize_size functions into
19844 initial size; be more lax about sanity check when profile is used;
19845 be sure to update inlined function profile when profile is read.
19846
19847 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
19848
19849 PR ipa/63470
19850 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
19851 cost when edge becomes direct.
19852 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
19853 is resolved or when introducing new speculation.
19854
19855 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
19856
19857 PR ipa/64551
19858 PR ipa/64552
19859 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
19860 '||' to fix typo issue.
19861
19862 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
19863 accept and return NULL.
19864
19865 2015-01-12 Martin Liska <mliska@suse.cz>
19866
19867 * cgraph.c (cgraph_edge::remove_callee): Move function to header
19868 file for being inlined.
19869 (cgraph_set_edge_callee): Delete.
19870 (cgraph_edge::redirect_callee): Move function to header file
19871 for being inlined.
19872 (cgraph_edge::make_direct): Use new function.
19873 (cgraph_edge::dump_edge_flags): New function created from
19874 static dump_edge_flags function.
19875 (cgraph_node::dump): Use new function.
19876 (cgraph_edge::verify_count_and_frequency): New function created
19877 from verify_edge_count_and_frequency.
19878 (cgraph_edge::verify_corresponds_to_fndecl): New function created
19879 from verify_edge_corresponds_to_fndecl.
19880 (verify_edge_corresponds_to_fndecl): Delete.
19881 (cgraph_node::verify_node): Use new function.
19882 * cgraph.h (cgraph_edge::set_callee): New function.
19883 (cgraph_edge::dump_edge_flags): Likewise.
19884 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
19885
19886 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
19887
19888 * ipa-utils.c (estimate_function_body_sizes): Do not
19889 free node params when called late with early=true.
19890
19891 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
19892
19893 * doc/md.texi (Instruction Patterns): Rewrite text for
19894 clarity.
19895 (Example): Likewise.
19896
19897 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
19898
19899 * doc/invoke.texi (Option Summary): Break long lines.
19900 [(-fdiagnostics-color)]: Put long literal in @smallexample
19901 instead of inline.
19902 [(-fsanitize-recover)]: Likewise.
19903 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
19904 [(-ffast-math)]: Likewise.
19905 [(--param max-inline-insns-recursive)]: Likewise.
19906 [(--param max-inline-recursive-depth)]: Likewise.
19907 [(-mno-text-section-literals)]: Likewise.
19908
19909 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
19910
19911 * doc/install.texi: Update for libgomp being renamed from "GNU
19912 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
19913 Runtime Library".
19914 * doc/sourcebuild.texi: Likewise.
19915
19916 2015-01-10 Anthony Green <green@moxielogic.com>
19917
19918 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
19919 mul.x availability for moxiebox configuration.
19920
19921 2015-01-09 Anthony Green <green@moxielogic.com>
19922
19923 * config/moxie/moxie.md: Tabify assembly output.
19924
19925 2015-01-09 Anthony Green <green@moxielogic.com>
19926
19927 * config/moxie/moxie.md (CC_REG): Correct register definition.
19928
19929 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
19930
19931 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
19932 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
19933 of log files.
19934
19935 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
19936
19937 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
19938
19939 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
19940 Jakub Jelinek <jakub@redhat.com>
19941
19942 PR middle-end/64412
19943 * lto-streamer.h (lto_stream_offload_p): New declaration.
19944 * lto-streamer.c (lto_stream_offload_p): New variable.
19945 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
19946 at the same time as section_name_prefix.
19947 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
19948 if lto_stream_offload_p.
19949 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
19950 stream TREE_TARGET_OPTION if lto_stream_offload_p.
19951 (write_ts_function_decl_tree_pointers): Don't
19952 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
19953 * tree-streamer-in.c (unpack_value_fields): Don't stream
19954 TREE_TARGET_OPTION in if ACCEL_COMPILER.
19955 (lto_input_ts_function_decl_tree_pointers): Don't stream
19956 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
19957 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
19958 instead of section_name_prefix string comparisons.
19959
19960 2015-01-09 Jakub Jelinek <jakub@redhat.com>
19961
19962 PR rtl-optimization/64536
19963 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
19964 tablejumps.
19965
19966 2015-01-09 Michael Collison <michael.collison@linaro.org>
19967
19968 PR tree-optimization/64322
19969 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
19970 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
19971
19972 2015-01-09 Tom de Vries <tom@codesourcery.com>
19973
19974 PR rtl-optimization/64539
19975 * regcprop.c (kill_clobbered_values): Factor out of ...
19976 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
19977 instead of note_stores with kill_clobbered_value.
19978
19979 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
19980
19981 * ginclude/unwind-arm-common.h: Revert previous commit.
19982
19983 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
19984
19985 * config.gcc (arm*-*-freebsd*): New configuration.
19986 * config/arm/freebsd.h: New file.
19987 * config.host: Add extra components for arm*-*-freebsd*.
19988 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
19989 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
19990
19991 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
19992
19993 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
19994 for -mcpu=e6500.
19995 * config/rs6000/t-rtems: Add e6500 multilibs.
19996
19997 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
19998
19999 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
20000 MPC8540.
20001
20002 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
20003
20004 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
20005 MULTILIB_EXCEPTIONS.
20006
20007 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
20008
20009 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
20010 MULTILIB_EXCEPTIONS.
20011
20012 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
20013
20014 * config/arm/t-rtems-eabi: Rename to...
20015 * config/arm/t-rtems: ...this.
20016 * config/arm/rtems-eabi.h: Rename to...
20017 * config/arm/rtems.h: ...this.
20018 * config.gcc (arm*-*-rtems*): Reflect changes above.
20019
20020 2015-01-09 Richard Biener <rguenther@suse.de>
20021
20022 PR tree-optimization/64410
20023 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
20024 on the LHS.
20025 (execute_update_addresses_taken): Deal with that.
20026 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
20027 loads/stores for complex variables.
20028
20029 2015-01-09 Martin Liska <mliska@suse.cz>
20030
20031 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
20032 name comparison.
20033 (func_checker::compare_memory_operand): New function.
20034 (func_checker::compare_operand): Split case to newly
20035 added functions.
20036 (func_checker::compare_cst_or_decl): New function.
20037 (func_checker::compare_gimple_call): Identify
20038 memory operands.
20039 (func_checker::compare_gimple_assign): Likewise.
20040 * ipa-icf-gimple.h: New function.
20041
20042 2015-01-09 Martin Liska <mliska@suse.cz>
20043
20044 PR ipa/64503
20045 * sreal.c (sreal::dump): Change unsigned format to signed for
20046 m_exp value.
20047 (sreal::to_double): Replace exp2 with scalbln.
20048
20049 2015-01-09 Martin Liska <mliska@suse.cz>
20050
20051 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
20052 * ipa-icf.c (sem_function::equals_private): Add support for target and
20053 (sem_item_optimizer::merge_classes): Remove redundant function
20054 optimization flags comparison.
20055 * tree.h (target_opts_for_fn): New function.
20056
20057 2015-01-09 Tom de Vries <tom@codesourcery.com>
20058
20059 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
20060
20061 2015-01-09 Kito Cheng <kito@0xlab.org>
20062
20063 PR rtl-optimization/64348
20064 * lra-constraints.c (split_reg): Fix caller-save store/restore
20065 instruction generation.
20066
20067 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
20068
20069 PR gcov-profile/61790
20070 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
20071 long long. Fallback to int64_t if host doesn't have long long and
20072 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
20073
20074 2015-01-08 Jakub Jelinek <jakub@redhat.com>
20075
20076 PR tree-optimization/63989
20077 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
20078 from 1000 to 10000.
20079 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
20080 (get_stridx): If we don't have a record for certain SSA_NAME,
20081 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
20082 constant offset, call get_stridx_plus_constant.
20083 (get_stridx_plus_constant): New function.
20084 (zero_length_string): Don't use get_stridx here.
20085
20086 PR target/55023
20087 PR middle-end/64388
20088 * dse.c (struct insn_info): Mention frame_read set also
20089 before reload for tail calls on some targets.
20090 (scan_insn): Revert 2014-12-22 change. Set frame_read
20091 also before reload for tail calls if
20092 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
20093 instead of add_non_frame_wild_read for non-const/memset
20094 tail calls after reload.
20095
20096 2015-01-08 Jason Merrill <jason@redhat.com>
20097
20098 * ubsan.c (do_ubsan_in_current_function): New.
20099 (pass_ubsan::gate): Use it.
20100 * ubsan.h: Declare it.
20101 * convert.c (convert_to_integer): Use it.
20102
20103 2015-01-08 Jakub Jelinek <jakub@redhat.com>
20104
20105 PR target/64338
20106 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
20107 compare_code when it is unconditionally overwritten afterwards.
20108 Use ix86_reverse_condition instead of reverse_condition. Don't
20109 change code if *reverse_condition* returned UNKNOWN and don't
20110 swap ct/cf and negate diff in that case.
20111
20112 2015-01-08 Mike Stump <mikestump@comcast.net>
20113
20114 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
20115 (pass_tsan_O0::gate): Likewise.
20116 * extend.texi (Function Attributes): Add no_sanitize_thread
20117 documentation.
20118
20119 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
20120
20121 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
20122 for registering builtins.
20123 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
20124 add -fopenmp to the argv_obstack used when invoking
20125 compile_for_target.
20126
20127 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
20128 add "-m32" or "-m64" to argv_obstack.
20129 (generate_host_descr_file): Likewise, when invoking host_compiler.
20130 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
20131 ld.
20132
20133 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
20134
20135 * config/sh/sh-mem.cc: Use constant as second operand when emitting
20136 tstsi_t insns.
20137
20138 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
20139
20140 PR target/55212
20141 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
20142 constant load if constant operand fits into I08.
20143
20144 2015-01-08 Jakub Jelinek <jakub@redhat.com>
20145
20146 PR sanitizer/64336
20147 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
20148 and TREE_THIS_VOLATILE for MEM_REFs.
20149 (build5_stat): Fix up initialization of TREE_READONLY and
20150 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
20151
20152 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
20153
20154 PR target/64533
20155 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
20156 of r for the second alternative of the destination operand.
20157
20158 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
20159
20160 PR target/36557
20161 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
20162
20163 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
20164
20165 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
20166 keywords.
20167 ([-fivar-visibility], [-fvisibility]): Likewise.
20168
20169 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
20170
20171 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
20172 the file where @code, @command, etc is more appropriate.
20173
20174 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
20175
20176 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
20177 of -mrecip= documentation.
20178
20179 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
20180
20181 PR target/64505
20182 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
20183 correct reload handler if -m32 -mpowerpc64 is used.
20184
20185 2015-01-06 Tom de Vries <tom@codesourcery.com>
20186
20187 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
20188
20189 2015-01-08 Christian Bruel <christian.bruel@st.com>
20190
20191 PR target/64507
20192 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
20193
20194 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
20195
20196 PR tree-optimization/63259
20197 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
20198 if optab exists for 16bit byteswap.
20199
20200 2015-01-06 Jakub Jelinek <jakub@redhat.com>
20201
20202 * opts.c (common_handle_option): Add support for
20203 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
20204 * doc/invoke.texi: Document -fno-sanitize=all,
20205 -f{,no-}sanitize-recover=all. Document that
20206 -fsanitize=float-cast-overflow is not enabled
20207 by -fsanitize=undefined. Fix up documentation
20208 of -f{,no-}sanitize-recover.
20209
20210 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
20211
20212 * config.gcc: Add Visium support.
20213 * configure.ac: Likewise.
20214 * configure: Regenerate.
20215 * doc/extend.texi (interrupt attribute): Add Visium.
20216 * doc/invoke.texi: Document Visium options.
20217 * doc/install.texi: Document Visium target.
20218 * doc/md.texi: Document Visium constraints.
20219 * common/config/visium: New directory.
20220 * config/visium: Likewise.
20221
20222 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
20223
20224 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
20225 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
20226
20227 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
20228
20229 * combine.c (combine_validate_cost): Do not count the cost of a
20230 split I2 twice. Do not display it twice in the dump, either.
20231
20232 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
20233
20234 Revert parts of r219199.
20235 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
20236 <inttypes.h>.
20237 ([-Wtraditional]): Restore markup on <limits.h>.
20238
20239 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
20240
20241 PR c++/31397
20242 * doc/invoke.texi: Document -Wsuggest-override.
20243
20244 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
20245
20246 PR rtl-optimization/64287
20247 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
20248 (process_options): Disable flag_ipa_ra if profiling.
20249
20250 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
20251
20252 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
20253
20254 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
20255
20256 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
20257 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
20258 put under #if TARGET_LOOPS guard.
20259
20260 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
20261
20262 * config/i386/i386.c (output_387_binary_op): Use std::swap.
20263
20264 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
20265
20266 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
20267 * rtl.h (refers_to_regno_p): Add overload.
20268 * cse.c: Use it.
20269 * bt-load.c: Likewise.
20270 * combine.c: Likewise.
20271 * df-scan.c: Likewise.
20272 * sched-deps.c: Likewise.
20273 * config/s390/s390.c: Likewise.
20274 * config/m32r/m32r.c: Likewise.
20275 * config/rs6000/spe.md: Likewise.
20276 * config/rs6000/rs6000.c: Likewise.
20277 * config/pa/pa.c: Likewise.
20278 * config/stormy16/stormy16.c: Likewise.
20279 * config/cris/cris.c: Likewise.
20280 * config/arc/arc.md: Likewise.
20281 * config/arc/arc.c: Likewise.
20282 * config/sh/sh.md: Likewise.
20283 * config/sh/sh.c: Likewise.
20284 * config/frv/frv.c: Likewise.
20285
20286 2015-01-05 Jakub Jelinek <jakub@redhat.com>
20287
20288 PR sanitizer/64265
20289 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
20290 call as cleanup of the whole body.
20291 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
20292 * tsan.c (replace_func_exit): New function.
20293 (instrument_func_exit): Moved earlier.
20294 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
20295 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
20296 been found.
20297 (tsan_pass): Don't call instrument_func_exit.
20298 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
20299 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
20300 inlining.
20301
20302 PR sanitizer/64344
20303 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
20304 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
20305 it to libubsan handler instead of EXPR. Fold comparisons earlier,
20306 if the result is integer_zerop, return NULL_TREE.
20307 * convert.c (convert_to_integer): Pass expr as ARG.
20308
20309 PR tree-optimization/64465
20310 * tree-inline.c (redirect_all_calls): During inlining
20311 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
20312 changed the stmt to a non-throwing call.
20313
20314 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
20315
20316 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
20317 etc markup throughout the file.
20318
20319 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
20320
20321 Enable experimental TSAN support for Ada.
20322 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
20323
20324 2015-01-05 Jakub Jelinek <jakub@redhat.com>
20325
20326 PR tree-optimization/64494
20327 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
20328 clear SSA_NAME_ANTI_RANGE_P flag.
20329
20330 2015-01-05 Marek Polacek <polacek@redhat.com>
20331
20332 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
20333
20334 2015-01-05 Jakub Jelinek <jakub@redhat.com>
20335
20336 Update copyright years.
20337
20338 * gcc.c (process_command): Update copyright notice dates.
20339 * gcov-dump.c: Ditto.
20340 * gcov.c: Ditto.
20341 * doc/cpp.texi: Bump @copying's copyright year.
20342 * doc/cppinternals.texi: Ditto.
20343 * doc/gcc.texi: Ditto.
20344 * doc/gccint.texi: Ditto.
20345 * doc/gcov.texi: Ditto.
20346 * doc/install.texi: Ditto.
20347 * doc/invoke.texi: Ditto.
20348
20349 * auto-profile.c, auto-profile.h: Fix up Copyright line.
20350
20351 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
20352
20353 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
20354 verb tense, etc.
20355 ([-fvtable-verify], [-fvtv-debug]): Likewise.
20356 ([-Wabi]): Likewise.
20357 ([-fmessage-length]): Likewise.
20358 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
20359 ([-Wno-discarded-qualifiers]): Likewise.
20360 ([-Wnodiscarded-array-qualifiers]): Likewise.
20361 ([-Wno-virtual-move-assign]): Likewise.
20362 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
20363 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
20364 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
20365 ([-fsanitize-undefined-trap-on-error]): Likewise.
20366 ([-floop-interchange]): Likewise.
20367 ([-ftree-coalesce-inlined-vars]): Likewise.
20368 ([-fvect-cost-model]): Likewise.
20369 ([-flto]): Likewise.
20370 ([--param]): Likewise.
20371 (Spec Files): Likewise.
20372 ([-mstrict-align]): Likewise.
20373 ([-mfix-cortex-a53-835769]): Likewise.
20374 ([-march], [-mtune]): Likewise.
20375 ([-mpic-register]): Likewise.
20376 ([-munaligned-access]): Likewise.
20377 ([-msp8]): Likewise.
20378 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
20379 (AVR Built-in Macros): Likewise.
20380 ([-mpreferred-stack-boundary]): Likewise.
20381 ([-mtune-crtl]): Likewise.
20382 ([-mashf]): Likewise.
20383 ([-mmcu=]): Likewise.
20384 ([-minrt]): Likewise.
20385 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
20386 ([-mupper-regs]): Likewise.
20387 ([-matomic-model]): Likewise.
20388 ([-mdiv]): Likewise.
20389 ([-mzdcbranch]): Likewise.
20390 ([-mdisable-callt]): Likewise.
20391 ([-msoft-float]): Likewise.
20392 ([-m8byte-align]): Likewise.
20393 ([-fstack-reuse]): Likewise.
20394
20395 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
20396
20397 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
20398 Fix markup, light copy-editing.
20399 ([-fauto-profile]): Rewrite to fix formatting and content
20400 problems.
20401
20402 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
20403
20404 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
20405 Copy-edit description.
20406 ([-fisolate-erroneous-paths-attribute]): Likewise.
20407 * common.opt (fisolate-erroneous-paths-dereference):
20408 Copy-edit description.
20409 (fisolate-erroneous-paths-attribute): Likewise.
20410
20411 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
20412
20413 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
20414 tidy grammar.
20415
20416 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
20417
20418 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
20419 ([-fvtv-debug]): Likewise.
20420 ([-Wc++-compat]): Likewise.
20421 ([-Wc++11-compat]): Likewise.
20422 ([-Wc++14-compat]): Likewise.
20423 ([-Wno-sized-deallocation]): Likewise.
20424 ([-femit-class-debug-always]): Likewise.
20425 ([-femit-struct-debug-detailed]): Likewise.
20426 ([-fno-keep-inline-dllexport]): Likewise.
20427 ([-fira-algorithm]): Likewise.
20428 ([-fira-region]): Likewise.
20429 ([-flra-remat]): Likewise.
20430 ([-fipa-ra]): Likewise.
20431 ([-fhoist-adjacent-loads]): Likewise.
20432 ([-fisolate-erroneous-paths-dereference]): Likewise.
20433 ([-fisolate-erroneous-paths-attribute]): Likewise.
20434 ([-ftree-switch-conversion]): Likewise.
20435 ([-ftree-tail-merge]): Likewise.
20436 ([-ftree-loop-if-convert]): Likewise.
20437 ([-ftree-loop-if-convert-stores]): Likewise.
20438 ([-ftree-loop-distribution]): Likewise.
20439 ([-ftree-loop-distribute-patterns]): Likewise.
20440 ([-flto-compression-level]): Likewise.
20441 ([-flto-report]): Likewise.
20442 ([-flto-report-wpa]): Likewise.
20443 ([-fuse-linker-plugin]): Likewise.
20444 ([-mfix-cortex-a53-835769]): Likewise.
20445 ([-mno-fix-cortex-a53-835769]): Likewise.
20446 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
20447 explicit listing; add a note to the discussion indicating they
20448 exist. Reorder table to group similar options. Add missing
20449 @opindex entries. Add @need commands throughout the table to
20450 allow it to be split across multiple pages.
20451 ([-m8bit-idiv]): Fix @opindex.
20452 ([-mavx256-split-unaligned-load]): Likewise.
20453 ([-mavx256-split-unaligned-store]): Likewise.
20454 ([-mstack-protector-guard]): Likewise.
20455 ([-mcpu=]): Likewise.
20456 ([-mcpu]): Likewise.
20457 ([-mpointer-size=]): Likewise.
20458
20459 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
20460
20461 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
20462 instead of `m' constraint. Likewise for unnamed movb comparison
20463 patterns using reg_before_reload_operand predicate.
20464 * config/pa/predicates.md (reg_before_reload_operand): Tighten
20465 predicate to reject register index and LO_SUM DLT memory forms
20466 after reload.
20467
20468 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
20469
20470 * doc/invoke.texi (Option Summary): Fix spelling of
20471 -fdevirtualize-at-ltrans.
20472 ([-fdevirtualize]): Fix markup.
20473 ([-fdevirtualize-speculatively]): Fix typo.
20474 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
20475 implementor-speaky.
20476 * common.opt (fdevirtualize-at-ltrans): Likewise.
20477 * ipa-devirt.c: Fix typos in comments throughout the file.
20478 (ipa_devirt): Fix typos in format strings for dump output.
20479
20480 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
20481
20482 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
20483 discussion of defaults, light copy-editing.
20484
20485 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
20486
20487 * tsan.c (instrument_expr): corrected previous checkin.
20488
20489 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
20490
20491 Instrument bit field and unaligned accesses for TSAN.
20492 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
20493 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
20494 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
20495 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
20496 unaligned memory regions.
20497
20498 2015-01-01 Anthony Green <green@moxielogic.com>
20499
20500 * config/moxie/predicates.md (moxie_general_movsrc_operand):
20501 Restrict move source register offsets to 16 bits.
20502 \f
20503 Copyright (C) 2015 Free Software Foundation, Inc.
20504
20505 Copying and distribution of this file, with or without modification,
20506 are permitted in any medium without royalty provided the copyright
20507 notice and this notice are preserved.