[haifa-sched] PR rtl-optimization/68236: Exit early from autoprefetcher lookahead...
[gcc.git] / gcc / ChangeLog
1 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2
3 PR rtl-optimization/68236
4 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
5 if insn_queue doesn't exist.
6 (haifa_sched_finish): Reset insn_queue to NULL.
7
8 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
9
10 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
11 (build_def_use): Initialize terminated_this_insn.
12 (find_best_rename_reg): Pick and check register from the tied chain.
13 (regrename_do_replace): Mark head as renamed.
14 (struct du_head *terminated_this_insn). New static variable.
15 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
16 * regrename.h (struct du_head): Add tied_chain, renamed members.
17
18 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19
20 PR bootstrap/68256
21 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
22 Return false.
23
24 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
25
26 PR target/57845
27 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
28 not promote the mode for aggregate types.
29
30 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
31
32 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
33 * omp-low.c (build_oacc_routine_dims): New.
34
35 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
36
37 * config/rs6000/constraints.md (wF constraint): New constraints
38 for power9/toc fusion.
39 (wG constraint): Likewise.
40
41 * config/rs6000/predicates.md (u6bit_cint_operand): New
42 predicate, recognize 0..63.
43 (upper16_cint_operand): New predicate for power9 and toc fusion.
44 (fpr_reg_operand): Likewise.
45 (toc_fusion_or_p9_reg_operand): Likewise.
46 (toc_fusion_mem_raw): Likewise.
47 (toc_fusion_mem_wrapped): Likewise.
48 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
49 address range.
50 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
51 instead.
52 (fusion_addis_mem_combo_load): Add support for power9 fusion of
53 floating point loads, floating point stores, and gpr stores.
54 (fusion_addis_mem_combo_store): Likewise.
55 (fusion_offsettable_mem_operand): Likewise.
56
57 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add
58 declarations.
59 (emit_fusion_load_store): Likewise.
60 (fusion_p9_p): Likewise.
61 (expand_fusion_p9_load): Likewise.
62 (expand_fusion_p9_store): Likewise.
63 (emit_fusion_p9_load): Likewise.
64 (emit_fusion_p9_store): Likewise.
65 (fusion_wrap_memory_address): Likewise.
66
67 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
68 elements for power9 fusion.
69 (rs6000_debug_print_mode): Rework debug information to print more
70 information about fusion.
71 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion
72 support.
73 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
74 offsettable memory address.
75 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
76 (emit_fusion_gpr_load): Move most of the code from
77 emit_fusion_gpr_load into emit_fusion-addis that handles both
78 power8 and power9 fusion.
79 (emit_fusion_addis): Likewise.
80 (emit_fusion_load_store): Likewise.
81 (fusion_wrap_memory_address): Add support for TOC fusion.
82 (fusion_split_address): Likewise.
83 (fusion_p9_p): Add support for power9 fusion.
84 (expand_fusion_p9_load): Likewise.
85 (expand_fusion_p9_store): Likewise.
86 (emit_fusion_p9_load): Likewise.
87 (emit_fusion_p9_store): Likewise.
88
89 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
90 new instructions in ISA 3.0.
91 (TARGET_CTZ): Likewise.
92 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
93 (TARGET_TOC_FUSION_FP): Likewise.
94
95 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
96 fusion unspecs.
97 (UNSPEC_FUSION_ADDIS): Likewise.
98 (QHSI mode iterator): New iterator for power9 fusion.
99 (GPR_FUSION): Likewise.
100 (FPR_FUSION): Likewise.
101 (mod<mode>3): Add support for ISA 3.0
102 modulus instructions.
103 (umod<mode>3): Likewise.
104 (divmod peephole): Likewise.
105 (udivmod peephole): Likewise.
106 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
107 instructions.
108 (ctz<mode>2_h): Likewise.
109 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
110 (ashdi3_extswsli_dot): Likewise.
111 (ashdi3_extswsli_dot2): Likewise.
112 (power9 fusion splitter): New power9/toc fusion support.
113 (toc_fusionload_<mode>): Likewise.
114 (toc_fusionload_di): Likewise.
115 (fusion_gpr_load_<mode>): Update predicate function.
116 (power9 fusion peephole2s): New power9/toc fusion support.
117 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
118 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
119 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
120 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
121 (fusion_p9_<mode>_constant): Likewise.
122
123 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
124
125 * optabs.c (prepare_libcall_arg): New function.
126 (expand_fixed_convert): Add call to prepare_libcall_arg.
127
128 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
129
130 * sched-int.h (dump_rgn_dependencies_dot): Declare
131 * sched-rgn.c (dump_rgn_dependencies_dot): New function
132 * print-rtl.h (print_insn): Add prototype
133
134 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
135 * common.opt (-fsched-verbose): Set default value to 1.
136 * invoke.texi (-fsched-verbose): Update the option's description.
137
138 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
139
140 * config/visium/visium.h (PRINT_OPERAND): Delete.
141 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
142 (PRINT_OPERAND_ADDRESS): Likewise.
143 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
144 to...
145 (visium_print_operand_punct_valid_p): ...this. New function.
146 (TARGET_PRINT_OPERAND): Define to...
147 (print_operand): Rename to...
148 (visium_print_operand): ...this.
149 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
150 (visium_output_address): Rename to...
151 (visium_print_operand_address): ...this.
152 (print_operand_address): Delete.
153
154 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
155
156 PR middle-end/68259
157 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
158 Check that the type of the first operand is an aggregate type.
159
160 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
161
162 * omp-low.c: Fix some OpenACC comment typos.
163 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
164 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
165 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
166
167 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
168
169 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
170
171 2015-11-09 Jeff Law <law@redhat.com>
172
173 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
174 being in gimple/ssa form. Remove redundant check for SSA_NAME.
175 Fix comment typo.
176
177 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
178
179 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
180 ISA 3.0 (power9).
181 (-mpower9-vector): Likewise.
182 (-mpower9-dform): Likewise.
183 (-mpower9-minmax): Likewise.
184 (-mtoc-fusion): Likewise.
185 (-mmodulo): Likewise.
186 (-mfloat128-hardware): Likewise.
187
188 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
189 mask for ISA 3.0 (power9).
190 (POWERPC_MASKS): Add new ISA 3.0 switches.
191 (power9 cpu): Add power9 cpu.
192
193 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for
194 power9.
195 (ASM_CPU_SPEC): Likewise.
196 (EXTRA_SPECS): Likewise.
197
198 * config/rs6000/rs6000-opts.h (enum processor_type): Add
199 PROCESSOR_POWER9.
200
201 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for
202 power9.
203 (rs6000_debug_reg_global): Add support for power9 fusion.
204 (rs6000_setup_reg_addr_masks): Cache mode size.
205 (rs6000_option_override_internal): Until real power9 tuning is
206 added, use -mtune=power8 for -mcpu=power9.
207 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
208 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
209 of Altivec registers.
210 (rs6000_option_override_internal): Add support for ISA 3.0
211 switches.
212 (rs6000_loop_align): Add support for power9 cpu.
213 (rs6000_file_start): Likewise.
214 (rs6000_adjust_cost): Likewise.
215 (rs6000_issue_rate): Likewise.
216 (insn_must_be_first_in_group): Likewise.
217 (insn_must_be_last_in_group): Likewise.
218 (force_new_group): Likewise.
219 (rs6000_register_move_cost): Likewise.
220 (rs6000_opt_masks): Likewise.
221
222 * config/rs6000/rs6000.md (cpu attribute): Add power9.
223 * config/rs6000/rs6000-tables.opt: Regenerate.
224
225 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
226 _ARCH_PWR9 if power9 support is available.
227
228 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
229 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
230
231 * configure.ac: Determine if the assembler supports the ISA 3.0
232 instructions.
233 * config.in (HAVE_AS_POWER9): Likewise.
234 * configure: Regenerate.
235
236 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
237 switches.
238
239 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
240
241 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
242 Remove integer CONST_DOUBLE handling. It should never occur.
243
244 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
245
246 PR target/68129
247 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
248 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
249 Delete VOIDmode case. Assert that mode is not VOIDmode.
250 * config/aarch64/predicates.md (const0_operand): Remove const_double
251 match.
252
253 2015-11-09 Martin Liska <mliska@suse.cz>
254
255 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
256 body_info release function.
257 * ipa-prop.c (ipa_release_body_info): New function.
258 (ipa_analyze_node): Call the function.
259 (ipa_node_params::~ipa_node_params): Release known_csts.
260 * ipa-prop.h (ipa_release_body_info): Declare.
261
262 2015-11-09 Martin Liska <mliska@suse.cz>
263
264 * gcc.c (record_temp_file): Release name string.
265 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead
266 of vec.
267 * lra-lives.c (free_live_range_list): Utilize
268 lra_live_range_pool for allocation and deallocation.
269 (create_live_range): Likewise.
270 (copy_live_range): Likewise.
271 (lra_merge_live_ranges): Likewise.
272 (remove_some_program_points_and_update_live_ranges): Likewise.
273 (lra_create_live_ranges_1): Release point_freq_vec that can
274 be not freed from previous iteration of the function.
275 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of
276 vec.
277 * tree-sra.c (sra_deinitialize): Release all vectors in
278 base_access_vec.
279 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
280 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
281 Release edge_info for a removed edge.
282 (thread_through_all_blocks): Free region vector.
283 * tree-ssa.h (free_dom_edge_info): Declare function extern.
284
285 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
286
287 * optabs.c (expand_vec_cond_expr): Always get sign from type.
288 * tree.c (wide_int_to_tree): Support negative values for boolean.
289 (build_nonstandard_boolean_type): Use signed type for booleans.
290
291 2015-11-09 Richard Biener <rguenther@suse.de>
292
293 PR tree-optimization/68248
294 * tree-vect-generic.c (expand_vector_operations_1): Handle
295 scalar rhs2.
296
297 2015-11-09 Richard Biener <rguenther@suse.de>
298
299 PR tree-optimization/56118
300 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
301 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
302 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
303 function.
304 (vect_slp_analyze_data_ref_dependences): Instead of computing
305 all dependences of the region DRs just analyze the code motions
306 SLP vectorization will perform. Remove SLP instances that
307 cannot have their store/load motions applied.
308 (vect_analyze_data_refs): Allow DRs without a vectype
309 in BB vectorization.
310
311 2015-11-09 Julian Brown <julian@codesourcery.com>
312
313 * final.c (output_asm_insn): Pass VOIDmode to output_address.
314 (output_address): Add MODE argument. Pass to print_operand_address
315 hook.
316 * targhooks.c (default_print_operand_address): Add MODE argument.
317 * targhooks.h (default_print_operand_address): Update prototype.
318 * output.h (output_address): Update prototype.
319 * target.def (print_operand_address): Add MODE argument.
320 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
321 output_address.
322 (print_operand): Pass access mode to output_address.
323 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
324 argument.
325 (mcore_print_operand): Update calls to mcore_print_operand_address.
326 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
327 output_address.
328 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
329 output_address.
330 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
331 global.
332 (tilegx_print_operand): Don't set above global. Update calls to
333 output_address.
334 (tilegx_print_operand_address): Add MODE argument. Use instead of
335 output_memory_reference_mode global.
336 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
337 (frv_print_operand): Pass mode to frv_print_operand_address calls.
338 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
339 output_address.
340 * config/cris/cris.c (cris_print_operand_address): Add MODE
341 argument.
342 (cris_print_operand): Pass mode to output_address calls.
343 * config/spu/spu.c (print_operand): Pass mode to output_address
344 calls.
345 * config/aarch64/aarch64.h (aarch64_print_operand)
346 (aarch64_print_operand_address): Remove prototypes.
347 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
348 global.
349 (aarch64_print_operand): Make static. Update calls to
350 output_address.
351 (aarch64_print_operand_address): Add MODE argument. Use instead of
352 aarch64_memory_reference_mode global.
353 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
354 hooks.
355 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
356 Delete macro definitions.
357 * config/pa/pa.c (pa_print_operand): Pass mode in output_address
358 calls.
359 * config/xtensa/xtensa.c (print_operand): Pass mode in
360 output_address calls.
361 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
362 argument.
363 (h83000_print_operand): Update calls to h8300_print_operand_address
364 and output_address.
365 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE
366 argument.
367 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
368 global.
369 (tilepro_print_operand): Pass mode to output_address.
370 (tilepro_print_operand_address): Add MODE argument. Use instead of
371 output_memory_reference_mode.
372 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
373 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
374 to output_address calls.
375 (nvptx_print_operand_address): Add MODE argument.
376 * config/alpha/alpha.c (print_operand): Pass mode argument in
377 output_address calls.
378 * config/m68k/m68k.c (print_operand): Pass mode argument in
379 output_address call.
380 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
381 (avr_print_operand): Update calls to avr_print_operand_address.
382 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
383 argument. Update calls to output_address.
384 (sparc_print_operand): Pass mode to output_address.
385 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
386 argument.
387 (iq2000_print_operand): Pass mode in output_address calls.
388 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
389 MODE argument.
390 (xstormy16_print_operand): Pass mode to
391 xstormy16_print_operand_address calls.
392 * config/mips/mips.c (mips_print_operand): Update calls to
393 output_address.
394 (mips_print_operand_address): Add MODE argument.
395 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
396 to output_address.
397 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
398 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
399 output_address.
400 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
401 (rx_print_operand): Update calls to output_address,
402 rx_print_operand_address.
403 * config/nds32/nds32.c (nds32_print_operand): Update calls to
404 output_address.
405 (nds32_print_operand_address): Add MODE argument.
406 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
407 output_address calls.
408 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
409 output_address call.
410 (c6x_print_address_operand): Update calls to output_address.
411 (c6x_print_operand_address): Pass mode to above.
412 * config/v850/v850.c (v850_print_operand_address): Add MODE
413 argument.
414 (v850_print_operand): Pass mode to v850_print_operand_address,
415 output_address.
416 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE
417 argument.
418 (mmix_print_operand): Pass mode in output_address calls.
419 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
420 (sh_print_operand): Pass mem mode to output_address,
421 sh_print_operand_address.
422 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE
423 argument.
424 (cr16_print_operand): Pass mode to output_address,
425 cr16_print_operand_address.
426 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
427 output_address.
428 * config/microblaze/microblaze.c (print_operand): Pass mode to
429 output_address.
430 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
431 output_address.
432 (nios2_print_operand_address): Add MODE argument. Update call to
433 nios2_print_operand_address.
434 * config/s390/s390.c (print_operand): Pass mode to output_address.
435 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE
436 argument.
437 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
438 output_address.
439 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
440 Use instead of output_memory_reference_mode.
441 (output_memory_reference_mode): Delete global.
442 (arm_print_operand): Pass mem mode to output_address.
443 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE
444 argument.
445 (m32r_print_operand): Pass mode to output_address.
446 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
447 argument.
448 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
449 * config/i386/i386.c (ix86_print_operand): Pass mode to
450 output_address calls.
451 (ix86_print_operand_address): Add MODE argument.
452
453 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
454
455 PR middle-end/68251
456 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
457 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
458 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
459 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
460
461 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
462
463 PR rtl-optimization/67749
464 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
465 case before emitting the two blocks. Instead modify the register
466 in the corresponding final insn of the basic block.
467
468 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
469
470 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
471 assembler syntax.
472 Support Solaris ld.
473 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
474
475 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
476 HAVE_INITFINI_ARRAY_SUPPORT.
477 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT
478 value.
479
480 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
481 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
482 Don't check HAVE_AS_SPARC_NOBITS.
483 Heed SECTION_NOTYPE.
484
485 * configure: Regenerate.
486 * config.in: Regenerate.
487
488 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
489
490 PR middle-end/68253
491 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
492
493 2015-11-09 Richard Henderson <rth@redhat.com>
494
495 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
496 __SEG_GS, __SEG_TLS.
497 (ix86_register_pragmas): Register address spaces __seg_fs,
498 __seg_gs, __seg_tls.
499 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
500 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
501 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
502 * config/i386/i386.c (ix86_decompose_address): Likewise.
503 (ix86_legitimate_address_p): Likewise.
504 (memory_address_length): Likewise. Check mem address space too.
505 (ix86_print_operand): Use ix86_print_operand_address_as.
506 (ix86_print_operand_address_as): Rename from
507 ix86_print_operand_address, add new addr_space_t parameter.
508 Validate that either the parameter or the ix86_address segment
509 is default address space. Handle ADDR_SPACE_SEG_TLS.
510 (ix86_print_operand_address): New.
511 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
512 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
513 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
514 (ix86_addr_space_zero_address_valid): New.
515 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
516 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
517 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
518 * config/i386/predicates.md (address_no_seg_operand): Likewise.
519 (vsib_address_operand): Likewise.
520 (address_mpx_no_base_operand): Likewise.
521 (address_mpx_no_index_operand): Likewise.
522 * doc/extend.texi (x86 Named Address Spaces): New section.
523
524 * config/i386/i386.c (ix86_check_no_addr_space): New.
525 (decide_alg): Add have_as parameter.
526 (alg_usable_p): Likewise; disable rep algorithms if set.
527 (ix86_expand_set_or_movmem): Notice if either MEM has a
528 non-default address space.
529 (ix86_expand_strlen): Likewise.
530 * config/i386/i386.md (strmov, strset): Likewise.
531 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
532 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
533 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
534 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
535 *cmpstrnqi_1, *strlenqi_1): Likewise.
536
537 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
538 (*movabs<mode>_2): Likewise.
539
540 * dwarf2out.c (modified_type_die): Pass the address space number
541 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
542 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
543 * targhooks.c (default_addr_space_debug): New.
544 * targhooks.h (default_addr_space_debug): Declare.
545 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
546 * doc/tm.texi: Rebuild.
547
548 * gimple.c (check_loadstore): Return false when 0 is a valid address.
549 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
550 null when 0 is valid in the source address space.
551 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
552 * targhooks.c (default_addr_space_zero_address_valid): New.
553 * targhooks.h (default_addr_space_zero_address_valid): Declare.
554 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
555 * doc/tm.texi: Rebuild.
556
557 * cselib.c (add_mem_for_addr): Compare address spaces when
558 matching memories.
559 (cselib_lookup_mem): Likewise.
560 * fold-const.c (operand_equal_p): Check address spaces of
561 pointer types before checking integer constants.
562
563 PR tree-opt/66768
564 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
565 the correct type for the base.
566
567 2015-11-09 Jeff Law <law@redhat.com>
568
569 * tree-into-ssa.c (names_to_release): No longer static.
570 * tree-into-ssa.h (names_to_release): Declare.
571 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
572 (release_free_names_and_compact_live_names): New function extracted
573 from pass_release_ssa_names::execute.
574 (pass_release_ssa_names::execute): Use it.
575
576 2015-11-09 Alan Modra <amodra@gmail.com>
577
578 * gensupport.c (add_mnemonic_string): Make len param a size_t.
579 (gen_mnemonic_setattr): Make "size" var a size_t. Use
580 obstack_blank_fast to shrink obstack. Cast obstack_next_free
581 return value.
582
583 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
584
585 PR rtl-optimization/68182
586 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
587 branch with only one successor just like unconditional branches.
588
589 2015-11-08 Jeff Law <law@redhat.com>
590
591 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
592 non-FSM path has no edges marked with EDGE_DFS_BACK.
593 (ssa_redirect_edges): No longer call mark_loop_for_removal.
594 (thread_single_edge, def_split_header_continue_p): Remove.
595 (bb_ends_with_multiway_branch): Likewise.
596 (thread_through_loop_header): Remove cases of threading from
597 latch through the header. Simplify knowing we won't thread
598 the latch.
599 (thread_through_all_blocks): Simplify knowing that only the FSM
600 threader needs to handle backedges.
601
602 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
603
604 * doc/extend.texi (type attributes): Document scalar_storage_order.
605 (Structure-Packing Pragmas): Rename into...
606 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
607 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
608 (Warnings): Document -Wno-scalar-storage-order.
609 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
610 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
611 extract_bit_field and store_bit_field.
612 (initialize_argument_information): Adjust call to store_expr.
613 (load_register_parameters): Adjust call to extract_bit_field.
614 * expmed.c (check_reverse_storage_order_support): New function.
615 (check_reverse_float_storage_order_support): Likewise.
616 (flip_storage_order): Likewise.
617 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
618 of the value if it is true. Pass REVERSE to recursive call after
619 adjusting the target offset.
620 Do not use extraction or movstrict instruction if REVERSE is true.
621 Pass REVERSE to store_fixed_bit_field.
622 (store_bit_field): Add REVERSE parameter and pass to it to above.
623 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
624 store_split_bit_field and store_fixed_bit_field_1.
625 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
626 order of the value if it is true and adjust the target offset.
627 (store_split_bit_field): Add REVERSE parameter and pass it to
628 store_fixed_bit_field. Adjust the target offset if it is true.
629 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
630 of the value if it is true. Pass REVERSE to recursive call after
631 adjusting the target offset.
632 Do not use extraction or subreg instruction if REVERSE is true.
633 Pass REVERSE to extract_fixed_bit_field.
634 (extract_bit_field): Add REVERSE parameter and pass to it to above.
635 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
636 extract_split_bit_field and extract_fixed_bit_field_1.
637 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
638 order of the value if it is true and adjust the target offset.
639 (extract_split_bit_field): Add REVERSE parameter and pass it to
640 extract_fixed_bit_field. Adjust the target offset if it is true.
641 * expmed.h (flip_storage_order): Declare.
642 (store_bit_field): Adjust prototype.
643 (extract_bit_field): Likewise.
644 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
645 (emit_group_store): Adjust call to store_bit_field.
646 (copy_blkmode_from_reg): Likewise.
647 (copy_blkmode_to_reg): Likewise.
648 (write_complex_part): Likewise.
649 (read_complex_part): Likewise.
650 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
651 that it isn't true if the target is a register.
652 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
653 and flip the storage order of the value.
654 <BIT_IOR_EXPR>: Flip the storage order of the value.
655 (get_bit_range): Adjust call to get_inner_reference.
656 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
657 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
658 with reverse storage order.
659 (store_expr_with_bounds): Add REVERSE parameter and pass it to
660 recursive calls and call to store_bit_field. Force the value into a
661 register if it is true and then flip the storage order of the value.
662 (store_expr): Add REVERSE parameter and pass it to above.
663 (categorize_ctor_elements_1): Adjust call to
664 initializer_constant_valid_p.
665 (store_constructor_field): Add REVERSE parameter and pass it to
666 recursive calls and call to store_field.
667 (store_constructor): Add REVERSE parameter and pass it to calls to
668 store_constructor_field and store_expr. Set it to true for an
669 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
670 (store_field): Add REVERSE parameter and pass it to recursive calls
671 and calls to store_expr and store_bit_field. Temporarily flip the
672 storage order of the value with record type and integral mode and
673 adjust the shift if it is true.
674 (get_inner_reference): Add PREVERSEP parameter and set it to true
675 upon encoutering a reference with reverse storage order.
676 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
677 (expand_constructor): Adjust call to store_constructor.
678 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
679 of the union type to store_expr in the MEM case and assert that it
680 isn't set in the REG case. Adjust call to store_field.
681 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
682 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
683 get_inner_reference and extract_bit_field. Temporarily flip the
684 storage order of the value with record type and integral mode and
685 adjust the shift if it is true. Flip the storage order of the value
686 at the end if it is true.
687 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
688 get_inner_reference. Do not fetch an inner reference if it is true.
689 * expr.h (store_expr_with_bounds): Ajust prototype.
690 (store_expr): Likewise.
691 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
692 REF_REVERSE_STORAGE_ORDER on the reference according to it.
693 (optimize_bit_field_compare): Deal with reverse storage order.
694 Adjust calls to get_inner_reference and make_bit_field_ref.
695 (decode_field_reference): Add PREVERSEP parameter and adjust call to
696 get_inner_reference.
697 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
698 to decode_field_reference and make_bit_field_ref.
699 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
700 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
701 (fold_comparison): Adjust call to get_inner_reference.
702 (split_address_to_core_and_offset): Adjust call to
703 get_inner_reference.
704 * gimple-expr.c (useless_type_conversion_p): Return false for array
705 types with different TYPE_REVERSE_STORAGE_ORDER flag.
706 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
707 REF_REVERSE_STORAGE_ORDER flag.
708 * lto-streamer-out.c (hash_tree): Deal with
709 TYPE_REVERSE_STORAGE_ORDER.
710 * output.h (assemble_real): Adjust prototype.
711 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
712 * stor-layout.c (finish_record_layout): Propagate the
713 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
714 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
715 (TYPE_SATURATING): Adjust.
716 (REF_REVERSE_STORAGE_ORDER): Document.
717 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
718 set it to true upon encoutering a reference with reverse storage
719 order.
720 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
721 * tree-inline.c (remap_gimple_op_r): Propagate the
722 REF_REVERSE_STORAGE_ORDER flag.
723 (copy_tree_body_r): Likewise.
724 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
725 store_expr.
726 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
727 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
728 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
729 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
730 REF_REVERSE_STORAGE_ORDER flag.
731 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
732 (gimple_canonical_types_compatible_p): Likewise.
733 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
734 (TYPE_SATURATING): Adjust.
735 (REF_REVERSE_STORAGE_ORDER): New flag.
736 (reverse_storage_order_for_component_p): New inline predicate.
737 (storage_order_barrier_p): Likewise.
738 (get_inner_reference): Adjust prototype.
739 * varasm.c: Include expmed.h.
740 (assemble_variable_contents): Adjust call to output_constant.
741 (assemble_real): Add REVERSE parameter. Flip the storage
742 order of the value if REVERSE is true.
743 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
744 (assemble_constant_contents): Adjust call to output_constant.
745 (output_constant_pool_2): Adjust call to assemble_real.
746 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
747 TYPE_REVERSE_STORAGE_ORDER.
748 (initializer_constant_valid_p): Add REVERSE parameter.
749 (output_constant): Add REVERSE parameter.
750 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
751 <REAL_TYPE>: Adjust call to assemble_real.
752 <COMPLEX_TYPE>: Pass it to recursive calls.
753 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
754 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
755 (struct oc_local_state): Add REVERSE field.
756 (output_constructor_array_range): Adjust calls to output_constant.
757 (output_constructor_regular_field): Likewise.
758 (output_constructor_bitfield): Adjust call to output_constructor.
759 Flip the storage order of the value if REVERSE is true.
760 (output_constructor): Add REVERSE parameter. Set it to true for an
761 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
762 output_constructor_bitfield.
763 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
764 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
765 * builtins.c (get_object_alignment_2): Likewise.
766 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
767 and get_ref_base_and_extent.
768 * dbxout.c (dbxout_expand_expr): Likewise.
769 * dwarf2out.c (add_var_loc_to_decl): Likewise.
770 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
771 (loc_list_from_tree): Likewise.
772 (fortran_common): Likewise.
773 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
774 get_ref_base_and_extent.
775 (get_base_constructor): Likewise.
776 (fold_const_aggregate_ref_1): Likewise.
777 * gimple-laddress.c (pass_laddress::execute): Adjust call to
778 get_inner_reference.
779 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
780 get_inner_reference and bail out on reverse storage order.
781 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
782 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
783 build_ref_for_offset.
784 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
785 get_ref_base_and_extent.
786 (ipa_polymorphic_call_context): Likewise.
787 (extr_type_from_vtbl_ptr_store): Likewise.
788 (check_stmt_for_type_change): Likewise.
789 (get_dynamic_type): Likewise.
790 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
791 get_ref_base_and_extent.
792 (compute_complex_assign_jump_func): Likewise.
793 (get_ancestor_addr_info): Likewise.
794 (compute_known_type_jump_func): Likewise.
795 (determine_known_aggregate_parts): Likewise.
796 (ipa_get_adjustment_candidate): Likewise.
797 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
798 MEM_REF.
799 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
800 (build_ref_for_offset): Adjust prototype.
801 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
802 get_inner_reference.
803 * tree-affine.c (tree_to_aff_combination): Adjust call to
804 get_inner_reference.
805 (get_inner_reference_aff): Likewise.
806 * tree-data-ref.c (split_constant_offset_1): Likewise.
807 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
808 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
809 get_inner_reference.
810 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
811 (dump_access): Print new fields.
812 (create_access): Adjust call to get_ref_base_and_extent and set the
813 REVERSE flag according to the result.
814 (completely_scalarize_record): Set the REVERSE flag.
815 (scalarize_elem): Add REVERSE parameter.
816 (build_access_from_expr_1): Preserve storage order barriers.
817 (build_accesses_from_assign): Likewise.
818 (build_ref_for_offset): Add REVERSE parameter and set the
819 REF_REVERSE_STORAGE_ORDER flag accordingly.
820 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
821 the REF_REVERSE_STORAGE_ORDER flag if there are components.
822 (analyze_access_subtree): Likewise.
823 (create_artificial_child_access): Set the REVERSE flag.
824 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
825 (turn_representatives_into_adjustments): Propagate REVERSE flag.
826 (ipa_sra_check_caller): Adjust call to get_inner_reference.
827 * tree-ssa-alias.c (ao_ref_base): Adjust call to
828 get_ref_base_and_extent.
829 (aliasing_component_refs_p): Likewise.
830 (stmt_kills_ref_p_1): Likewise.
831 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
832 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
833 Return true if reverse storage order.
834 <BIT_FIELD_REF>: Likewise.
835 <COMPONENT_REF>: Likewise.
836 <ARRAY_REF>: Likewise.
837 <ARRAY_RANGE_REF>: Likewise.
838 (split_address_cost): Likewise. Bail out if reverse storage order.
839 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
840 get_inner_reference. Bail out if reverse storage order.
841 (bswap_replace): Adjust call to get_inner_reference.
842 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
843 the REF_REVERSE_STORAGE_ORDER flag.
844 <BIT_FIELD_REF>: Likewise.
845 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
846 barriers.
847 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
848 to the REF_REVERSE_STORAGE_ORDER flag.
849 <BIT_FIELD_REF>: Likewise.
850 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
851 (contains_storage_order_barrier_p): New predicate.
852 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
853 Punt on storage order barriers if necessary.
854 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
855 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
856 call to get_ref_base_and_extent.
857 (do_structure_copy): Likewise.
858 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
859 get_inner_reference.
860 (vect_analyze_data_refs): Likewise. Bail out if reverse storage
861 order.
862 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
863 * ubsan.c (instrument_bool_enum_load): Likewise.
864 (instrument_object_size): Likewise.
865 * var-tracking.c (track_expr_p): Adjust call to
866 get_ref_base_and_extent
867 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
868 get_inner_reference.
869 * config/s390/s390.c (s390_expand_atomic): Adjust call to
870 store_bit_field.
871 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
872 extract_bit_field.
873 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
874
875 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
876
877 * config/sparc/sparc.opt (mfix-at697f): Add final period.
878
879 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
880
881 PR rtl-optimization/67864
882 * common/config/i386/i386-common.c (ix86_option_optimization_table)
883 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
884 at -Os and up.
885
886 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
887
888 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
889 internal functions.
890
891 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
892
893 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
894 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
895
896 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
897
898 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
899 * internal-fn.c: Don't undef it here.
900 * tree-core.h: Likewise.
901
902 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
903
904 * builtins.c (fold_builtin_nan): Delete.
905 (fold_builtin_memcmp): Remove case where both arguments are constant.
906 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
907 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
908 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
909 * fold-const-call.c: Include fold-const.h.
910 (host_size_t_cst_p): New function.
911 (build_cmp_result, fold_const_builtin_nan): Likewise.
912 (fold_const_call_1): New function, split out from...
913 (fold_const_call): ...here (for all three interfaces). Handle
914 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
915
916 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
917
918 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
919 (fold_builtin_1): Don't call them.
920 * fold-const-call.c: Include tm.h.
921 (fold_const_call_ss): New variant for integer-to-integer folds.
922 (fold_const_call): Call it.
923
924 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
925
926 * builtins.c (fold_builtin_classify): Move constant cases to...
927 * fold-const-call.c (fold_const_call_ss): ...here.
928
929 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
930
931 * builtins.h (c_getstr): Move to...
932 * fold-const.h (c_getstr): ...here.
933 * builtins.c (c_getstr): Move to...
934 * fold-const.c (c_getstr): ...here.
935
936 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
937
938 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
939 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
940
941 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
942
943 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
944 the dominance info; free it if we can't.
945 (pass_call_cdce::execute): Don't free the dominance info here.
946
947 2015-11-06 Jeff Law <law@redhat.com>
948
949 * tree-ssa-threadedge.c (dummy_simplify): Remove.
950 (thread_around_empty_blocks): Remove backedge_seen_p argument.
951 If we thread to a backedge, then return false. Update recursive
952 call to eliminate backedge_seen_p argument.
953 (thread_through_normal_block): Remove backedge_seen_p argument.
954 Remove backedge_seen_p argument from calls to
955 thread_around_empty_blocks. Remove checks on backedge_seen_p.
956 If we thread to a backedge, then return 0.
957 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
958 pass it to thread_through_normal_block or thread_through_empty_blocks.
959 For joiner handling, if we see a backedge, do not try normal
960 threading.
961
962 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
963
964 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
965 * graphite-poly.c (new_scop): Initialize original_schedule.
966 (free_scop): Free original_schedule.
967 * graphite-poly.h (struct scop): Add field original_schedule.
968 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
969 (build_poly_scop): Call build_scop_original_schedule.
970
971 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
972
973 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
974 (build_pbb_minimal_scattering_polyhedrons): New.
975 (build_scop_scattering): Remove.
976 (build_scop_minimal_scattering): New.
977 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
978 (build_poly_scop): Call build_scop_minimal_scattering.
979
980 2015-11-06 Jeff Law <law@redhat.com>
981
982 * cfg-flags.def (IGNORE): New edge flag.
983 * tree-vrp.c (identify_jump_threads): Mark and clear edges
984 scheduled for removal with EDGE_IGNORE around call into
985 jump threader. Do no thread across edges with EDGE_IGNORE,
986 but do allow threading across those with EDGE_DFS_BACK.
987
988 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
989
990 * doc/md.texi (multi-alternative constraints): Don't document
991 alternatives inherently tied to reload for the user documentation.
992
993 2015-11-06 Michael Collison <michael.collison@linaro.org
994 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
995
996 Revert:
997 2015-08-01 Michael Collison <michael.collison@linaro.org
998 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
999
1000 * config/arm/arm.md (*arm_smin_cmp): New pattern.
1001 (*arm_umin_cmp): Likewise.
1002
1003 2015-11-06 Jakub Jelinek <jakub@redhat.com>
1004
1005 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
1006 wording.
1007 * omp-low.c (check_omp_nesting_restrictions): Update for the
1008 various new OpenMP 4.5 nesting restrictions, clarified
1009 nesting glossary, closely nested region relationship clarified
1010 to mean explicit or implicit parallel regions (target/teams),
1011 use %</%> or %qs where appropriate.
1012
1013 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1014 Sebastian Pop <s.pop@samsung.com>
1015
1016 * graphite-scop-detection.c (loop_is_valid_scop): Call
1017 optimize_loop_nest_for_speed_p.
1018
1019 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1020 Sebastian Pop <s.pop@samsung.com>
1021
1022 * graphite-optimize-isl.c (optimize_isl): Call
1023 isl_options_set_schedule_maximize_band_depth.
1024
1025 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1026 Sebastian Pop <s.pop@samsung.com>
1027
1028 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
1029 and exit edges should not be a part of irreducible loop.
1030 (scop_detection::can_represent_loop_1): Loops should not be
1031 irreducible.
1032 (scop_detection::harmful_stmt_in_region): All the basic block
1033 should belong to reducible loops.
1034
1035 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
1036
1037 * config/aarch64/aarch64-simd-builtins.def: Update builtins
1038 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
1039 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
1040 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
1041 (aarch64_tbx4v8qi): Rename to...
1042 aarch64_tbx4<mode>): ... this.
1043 (aarch64_qtbl3<mode>): New pattern.
1044 (aarch64_qtbx3<mode>): New pattern.
1045 (aarch64_qtbl4<mode>): New pattern.
1046 (aarch64_qtbx4<mode>): New pattern.
1047 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
1048 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
1049 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
1050 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
1051 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
1052 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
1053 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
1054 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
1055 functions.
1056
1057 2015-11-06 Mike Stump <mikestump@comcast.net>
1058
1059 PR debug/66728
1060 * dwarf2out.c (get_full_len): Return a value based upon the actual
1061 precision needed for the value.
1062 (add_const_value_attribute): Use a maximal wide-int for
1063 CONST_WIDE_INTs, not VOIDmode.
1064 (output_die): Don't ever output NULL with printf.
1065
1066 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
1067 BLKmode nor VOIDmode values.
1068
1069 2015-11-06 David Malcolm <dmalcolm@redhat.com>
1070
1071 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
1072 and "range2".
1073 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
1074 * diagnostic-core.h (warning_at_rich_loc): New declaration.
1075 (error_at_rich_loc): New declaration.
1076 (permerror_at_rich_loc): New declaration.
1077 (inform_at_rich_loc): New declaration.
1078 * diagnostic-show-locus.c (adjust_line): Delete.
1079 (struct point_state): New struct.
1080 (class colorizer): New class.
1081 (class layout_point): New class.
1082 (class layout_range): New class.
1083 (struct line_bounds): New.
1084 (class layout): New class.
1085 (colorizer::colorizer): New ctor.
1086 (colorizer::~colorizer): New dtor.
1087 (layout::layout): New ctor.
1088 (layout::print_source_line): New method.
1089 (layout::print_annotation_line): New method.
1090 (layout::get_state_at_point): New method.
1091 (layout::get_x_bound_for_row): New method.
1092 (diagnostic_show_locus): Reimplement in terms of class layout.
1093 (diagnostic_print_caret_line): Delete.
1094 * diagnostic.c (diagnostic_initialize): Replace
1095 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
1096 (diagnostic_set_info_translated): Convert param from location_t
1097 to rich_location *. Eliminate calls to set_location on the
1098 message in favor of storing the rich_location ptr there.
1099 (diagnostic_set_info): Convert param from location_t to
1100 rich_location *.
1101 (diagnostic_build_prefix): Break out array into...
1102 (diagnostic_kind_color): New variable.
1103 (diagnostic_get_color_for_kind): New function.
1104 (diagnostic_report_diagnostic): Colorize the option_text
1105 using the color for the severity.
1106 (diagnostic_append_note): Update for change in signature of
1107 diagnostic_set_info.
1108 (diagnostic_append_note_at_rich_loc): New function.
1109 (emit_diagnostic): Update for change in signature of
1110 diagnostic_set_info.
1111 (inform): Likewise.
1112 (inform_at_rich_loc): New function.
1113 (inform_n): Update for change in signature of diagnostic_set_info.
1114 (warning): Likewise.
1115 (warning_at): Likewise.
1116 (warning_at_rich_loc): New function.
1117 (warning_n): Update for change in signature of diagnostic_set_info.
1118 (pedwarn): Likewise.
1119 (permerror): Likewise.
1120 (permerror_at_rich_loc): New function.
1121 (error): Update for change in signature of diagnostic_set_info.
1122 (error_n): Likewise.
1123 (error_at): Likewise.
1124 (error_at_rich_loc): New function.
1125 (sorry): Update for change in signature of diagnostic_set_info.
1126 (fatal_error): Likewise.
1127 (internal_error): Likewise.
1128 (internal_error_no_backtrace): Likewise.
1129 (source_range::debug): New function.
1130 * diagnostic.h (struct diagnostic_info): Eliminate field
1131 "override_column". Add field "richloc".
1132 (struct diagnostic_context): Add field "colorize_source_p".
1133 (diagnostic_override_column): Delete.
1134 (diagnostic_set_info): Convert param from location_t to
1135 rich_location *.
1136 (diagnostic_set_info_translated): Likewise.
1137 (diagnostic_append_note_at_rich_loc): New function.
1138 (diagnostic_num_locations): New function.
1139 (diagnostic_expand_location): Get the location from the
1140 rich_location.
1141 (diagnostic_print_caret_line): Delete.
1142 (diagnostic_get_color_for_kind): New declaration.
1143 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
1144 (error_cb): Update for change in signature of "error" callback.
1145 (fatal_at): Likewise.
1146 (warning_at): Likewise.
1147 * input.c (linemap_client_expand_location_to_spelling_point): New.
1148 * pretty-print.c (text_info::set_range): New method.
1149 (text_info::get_location): New method.
1150 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
1151 (struct text_info): Eliminate "locations" array in favor of
1152 "m_richloc", a rich_location *.
1153 (textinfo::set_location): Add a "caret_p" param, and reimplement
1154 in terms of a call to set_range.
1155 (textinfo::get_location): Eliminate inline implementation in favor of
1156 an out-of-line reimplementation.
1157 (textinfo::set_range): New method.
1158 * rtl-error.c (diagnostic_for_asm): Update for change in signature
1159 of diagnostic_set_info.
1160 * tree-diagnostic.c (default_tree_printer): Update for new
1161 "caret_p" param for textinfo::set_location.
1162 * tree-pretty-print.c (percent_K_format): Likewise.
1163
1164 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1165
1166 Properly apply.
1167 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1168 * config/aarch64/aarch64.c
1169 (aarch64_can_use_per_function_literal_pools_p): New.
1170 (aarch64_use_blocks_for_constant_p): Adjust declaration
1171 and use aarch64_can_use_function_literal_pools_p.
1172 (aarch64_select_rtx_section): Update.
1173
1174 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1175
1176 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
1177 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
1178 (arm_output_multireg_pop): Likewise.
1179 (output_move_double): Likewise.
1180 (output_move_quad): Likewise.
1181 (output_return_instruction): Likewise.
1182 (arm_print_operand): Remove support for %( and %. print modifiers.
1183 (arm_output_shift): Make unified asm.
1184 (arm_declare_function_name): Likewise.
1185 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
1186 (ASM_APP_OFF): Adjust.
1187 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
1188 (ASM_OUTPUT_REG_POP): Likewise.
1189 * config/arm/arm.md: Adjust uses of %., %(, %)
1190 * config/arm/sync.md: Likewise.
1191 * config/arm/thumb2.md: Likewise.
1192 * config/arm/ldmstm.md: Regenerate.
1193 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
1194 * doc/invoke.texi (masm-unified-syntax): Update documentation.
1195
1196 2015-11-06 David Malcolm <dmalcolm@redhat.com>
1197
1198 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
1199
1200 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1201
1202 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
1203 add OEP_MATCH_SIDE_EFFECTS.
1204 * fold-const.c (operand_equal_p): Update documentation; handle
1205 OEP_MATCH_SIDE_EFFECTS.
1206 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
1207 OEP_MATCH_SIDE_EFFECTS.
1208
1209 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
1210 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1211
1212 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
1213 * config/aarch64/aarch64-protos.h: Declare.
1214 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
1215 frsqrts.
1216 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
1217 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
1218 code when applicable.
1219 * config/aarch64/aarch64.md: Added enum entries.
1220 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
1221 * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common
1222 macros for assembly checks.
1223 * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
1224 frsqrts and frsqrte are not emitted.
1225 * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure
1226 frsqrts and frsqrte are emitted.
1227 * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
1228
1229 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1230
1231 PR ipa/68057
1232 PR ipa/68220
1233 * ipa-polymorphic-call.c
1234 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
1235 issue when offset is out of range.
1236 (contains_type_p): Fix out of range check, clear dynamic flag.
1237
1238 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
1239
1240 * config.gcc (e6500): Fix cpu_is_64bit typo.
1241
1242 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
1243
1244 * tree-sra.c (completely_scalarize): Properly handle negative array
1245 indices using offset_int.
1246
1247 2015-11-06 Richard Biener <rguenther@suse.de>
1248
1249 * alloc-pool.h (object_allocator::allocate): Default-initialize
1250 object.
1251
1252 2015-11-06 Richard Biener <rguenther@suse.de>
1253
1254 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
1255 * lra.c (init_reg_info): Truncate copy_vec instead of
1256 re-allocating a new one and leaking the old.
1257 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
1258 bb_infos vec.
1259 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
1260 * postreload-gcse.c (free_mem): Free modify_mem_list and
1261 canon_modify_mem_list.
1262
1263 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
1264
1265 PR tree-optimization/68145
1266 * tree-vect-stmts.c (vectorizable_operation): Fix
1267 determination for booleans.
1268
1269 2015-11-06 Tom de Vries <tom@codesourcery.com>
1270
1271 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
1272 cond_jump, instead of split after last nondebug insn before cond_jump.
1273 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
1274 returning.
1275
1276 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1277
1278 PR target/68088
1279 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
1280 subregs from accumulator and make sure it's a register.
1281
1282 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
1283
1284 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
1285 low part to scalar.
1286 (reduc_uplus_<mode>): Remove.
1287 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
1288 loongson_extract_lo_<mode>.
1289 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
1290 reduc_smax_<mode>, reduc_smax_<mode>, use vec
1291 loongson_extract_lo_<mode>.
1292 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
1293
1294 2015-11-06 Richard Biener <rguenther@suse.de>
1295
1296 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
1297 members.
1298 (vect_stmt_in_region_p): Declare.
1299 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
1300 (destroy_bb_vec_info): Likewise.
1301 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
1302 (vect_get_and_check_slp_defs): Likewise.
1303 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
1304 (vect_slp_bb): Likewise.
1305 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
1306 in terms of vect_stmt_in_region_p.
1307 (vect_pattern_recog): Iterate over the BB region.
1308 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
1309 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
1310 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
1311 * config/i386/i386.c: Include gimple-iterator.h.
1312 * config/aarch64/aarch64.c: Likewise.
1313
1314 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
1315
1316 PR rtl-optimization/67753
1317 PR rtl-optimization/64164
1318 * function.c (assign_parm_setup_block): Avoid allocating a
1319 stack slot if we don't have an ABI-reserved one. Emit the
1320 copy to target_reg in the conversion seq if the copy from
1321 entry_parm is in it too. Don't use the conversion seq to copy
1322 a PARALLEL to a REG or a CONCAT.
1323
1324 2015-11-06 Richard Biener <rguenther@suse.de>
1325
1326 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
1327 equal_keys.
1328
1329 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1330 Thomas Schwinge <thomas@codesourcery.com>
1331 James Norris <jnorris@codesourcery.com>
1332
1333
1334 * gimplify.c (gimplify_scan_omp_clauses): Add support for
1335 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
1336 (gimplify_adjust_omp_clauses): Likewise.
1337 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
1338 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
1339 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
1340 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
1341 (omp_clause_code_name): Likewise.
1342 (walk_tree_1): Handle OMP_CLAUSE_TILE.
1343 * tree.h (OMP_TILE_LIST): New macro.
1344
1345 2015-11-05 Martin Sebor <msebor@redhat.com>
1346
1347 PR c++/67942
1348 * doc/invoke.texi (-Wplacement-new): Document new option.
1349
1350 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
1351
1352 PR tree-optimization/65963
1353 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
1354 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
1355
1356 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
1357
1358 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
1359 (noce_convert_multiple_sets): Likewise.
1360 (noce_process_if_block): Call them.
1361
1362 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
1363
1364 * gimple-fold.c: Include omp-low.h.
1365 (fold_internal_goacc_dim): New.
1366 (gimple_fold_call): Call it.
1367
1368 2015-11-05 Jakub Jelinek <jakub@redhat.com>
1369 Ilya Verbin <ilya.verbin@intel.com>
1370
1371 * builtin-types.def
1372 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
1373 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
1374 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1375 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
1376 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
1377 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
1378 (struct cgraph_simd_clone_arg): Adjust comment.
1379 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
1380 to GOMP_target_ext. Add num_teams and thread_limit arguments.
1381 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
1382 to GOMP_target_data_ext.
1383 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
1384 to GOMP_target_update_ext.
1385 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
1386 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
1387 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
1388 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
1389 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
1390 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
1391 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
1392 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
1393 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
1394 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
1395 * tree-core.h (enum omp_clause_schedule_kind): Add
1396 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
1397 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
1398 OMP_CLAUSE_SCHEDULE_LAST value.
1399 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
1400 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
1401 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
1402 OMP_FOR_CHECK. Remove comment.
1403 * tree-pretty-print.c (dump_omp_clause): Handle
1404 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
1405 Simplify. Print schedule clause modifiers.
1406 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
1407 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
1408 cases.
1409 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
1410 (omp_default_clause): Tweak for
1411 private/firstprivate/is_device_ptr variables on target
1412 construct and use_device_ptr on target data.
1413 (omp_check_private): Likewise.
1414 (omp_notice_variable): For references check whether what it refers
1415 to has mappable type, rather than the reference itself.
1416 (omp_is_private): Diagnose linear iteration variables on non-simd
1417 constructs.
1418 (omp_no_lastprivate): Return true only for Fortran.
1419 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
1420 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
1421 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
1422 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
1423 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
1424 lastprivate and linear when combined with distribute. Gimplify
1425 variable low-bound for array reduction. Look through
1426 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
1427 reductions.
1428 (gimplify_adjust_omp_clauses_1): For implicit references to
1429 variables with reference type and when not ref to scalar or
1430 ref to pointer, map what they refer to using tofrom and
1431 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
1432 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
1433 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
1434 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
1435 Diagnose the same var on both firstprivate and lastprivate on
1436 distribute construct.
1437 (gimplify_omp_for): Fix up handling of predetermined
1438 lastprivate or linear iter vars when combined with distribute.
1439 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
1440 functions.
1441 (gimplify_omp_workshare): Call optimize_target_teams.
1442 * omp-low.c (struct omp_region): Add sched_modifiers field.
1443 (struct omp_for_data): Likewise.
1444 (omp_any_child_fn_dumped): New variable.
1445 (extract_omp_for_data): Fill in sched_modifiers, and mask out
1446 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
1447 from sched_kind.
1448 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
1449 bits of OMP_CLAUSE_SCHED_KIND.
1450 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
1451 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
1452 for array section reductions.
1453 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
1454 for distribute parallel for, if there are lastprivate clauses on the
1455 for.
1456 (lower_rec_input_clauses): Handle non-zero low-bound on array
1457 section reductions.
1458 (lower_reduction_clauses): Likewise.
1459 (lower_send_clauses): Look through POINTER_PLUS_EXPR
1460 for array section reductions.
1461 (expand_parallel_call): Use nonmonotonic entrypoints for
1462 nonmonotonic: dynamic/guided.
1463 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
1464 child_fn if current_function_decl has assembler name set, but child_fn
1465 does not. Dump the header and IL of the child function when not in SSA
1466 form.
1467 (expand_omp_target): Likewise. Pass num_teams and thread_limit
1468 arguments to BUILT_IN_GOMP_TARGET.
1469 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1470 Initialize the extra _looptemp_ clause to fd->loop.n2.
1471 (expand_omp_for): Use nonmonotonic entrypoints for
1472 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
1473 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
1474 again if we have dumped any child functions.
1475 (lower_omp_for_lastprivate): Determine the right count variable
1476 for distribute simd, or distribute parallel for{, simd}.
1477 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
1478 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
1479 support.
1480 (simd_clone_clauses_extract): Handle variable step
1481 for references and arguments passed by reference.
1482 (simd_clone_mangle): Mangle ref/uval/val variable steps.
1483 (simd_clone_adjust_argument_types): Handle
1484 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
1485 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1486 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
1487 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1488 (simd_clone_linear_addend): New function.
1489 (simd_clone_adjust): Handle variable step like similarly
1490 to constant step, use simd_clone_linear_addend to determine
1491 the actual step at runtime.
1492
1493 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
1494
1495 * target.def (goacc.dim_limit): New hook.
1496 * targhooks.h (default_goacc_dim_limit): Declare.
1497 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
1498 * doc/tm.texi: Rebuilt.
1499 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
1500 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
1501 (default_goacc_dim_limit): New.
1502 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
1503 (nvptx_goacc_dim_limit) New.
1504 (TARGET_GOACC_DIM_LIMIT): Override.
1505 * tree-vrp.c: Include omp-low.h, target.h.
1506 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
1507 IFN_GOACC_DIM_POS.
1508
1509 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
1510
1511 * tree-vect-generic.c (do_compare): Use -1 for true
1512 result instead of 1.
1513
1514 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1515
1516 * config/aarch64/aarch64.c
1517 (aarch64_can_use_per_function_literal_pools_p): New.
1518 (aarch64_use_blocks_for_constant_p): Adjust declaration
1519 and use aarch64_can_use_function_literal_pools_p.
1520 (aarch64_select_rtx_section): Update.
1521
1522 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
1523
1524 * targhooks.c (default_get_mask_mode): Use BLKmode in
1525 case target doesn't support required vector mode.
1526 * stor-layout.c (layout_type); Check for BLKmode.
1527
1528 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
1529 Sebastian Pop <s.pop@samsung.com>
1530
1531 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1532 Remove use of parameter_rename_map.
1533 (copy_def): Remove.
1534 (copy_internal_parameters): Remove.
1535 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
1536 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
1537 (free_sese_info): Do not free parameter_rename_map.
1538 (set_rename): Do not use parameter_rename_map.
1539 (rename_uses): Update call to set_rename.
1540 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
1541 * sese.h (parameter_rename_map_t): Remove.
1542 (struct sese_info_t): Remove field parameter_rename_map.
1543
1544 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
1545 Sebastian Pop <s.pop@samsung.com>
1546
1547 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
1548 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
1549 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
1550 anonymous namespace.
1551 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
1552 (isl_id_for_pbb): Use a buffer of size 10.
1553 (isl_id_for_ssa_name): Same.
1554 * sese.c (set_rename): Add more dumps.
1555
1556 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1557
1558 * omp-low.c (struct omp_context): Remove reduction_map field.
1559 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
1560 (new_omp_context, delete_omp_context, scan_omp_target): Remove
1561 reduction_map handling.
1562 (lower_omp_target): Remove obsolete openacc reduction handling.
1563
1564 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1565
1566 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
1567
1568 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1569 Cesar Philippidis <cesar@codesourcery.com>
1570
1571 * config/nvptx/nvptx.c: Include gimple headers.
1572 (worker_red_size, worker_red_align, worker_red_name,
1573 worker_red_sym): New.
1574 (nvptx_option_override): Initialize worker reduction buffer.
1575 (nvptx_file_end): Write out worker reduction buffer var.
1576 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
1577 nvptx_expand_cmp_swap): New builtin expanders.
1578 (enum nvptx_builtins): New.
1579 (nvptx_builtin_decls): New.
1580 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
1581 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
1582 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
1583 nvptx_lockless_update): New helpers.
1584 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
1585 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
1586 (nvptx_goacc_reduction): New.
1587 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
1588 TARGET_BUILTIN_DECL): Override.
1589 (TARGET_GOACC_REDUCTION): Override.
1590
1591 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1592 Cesar Philippidis <cesar@codesourcery.com>
1593
1594 * internal-fn.def (GOACC_REDUCTION): New.
1595 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
1596 * internal-fn.c (expand_GOACC_REDUCTION): New.
1597 * target.def (goacc.reduction): New OpenACC hook.
1598 * targhooks.h (default_goacc_reduction): Declare.
1599 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
1600 * doc/tm.texi: Rebuilt.
1601 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
1602 scan_sharing_clauses): Remove oacc reduction handling here.
1603 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
1604 (oacc_lower_reduction_var_helper): Delete.
1605 (lower_oacc_reductions): New.
1606 (lower_reduction_clauses): Don't handle OpenACC reductions here.
1607 (lower_oacc_head_tail): Call lower_oacc_reductions.
1608 (oacc_gimple_assign, oacc_init_reduction_array,
1609 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
1610 oacc_process_reduction_data): Delete.
1611 (lower_omp_target): Remove old OpenACC reduction handling. Insert
1612 dummy OpenACC gang reduction for reductions at outer level.
1613 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
1614 (default_goacc_reduction): New.
1615 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
1616
1617 2015-11-04 Martin Liska <mliska@suse.cz>
1618
1619 * cgraphunit.c (cgraph_node::expand_thunk): Call
1620 allocate_struct_function before init_function_start.
1621 (cgraph_node::expand): Use push_cfun and pop_cfun.
1622 * config/i386/i386.c (ix86_code_end): Call
1623 allocate_struct_function before init_function_start.
1624 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
1625 * function.c (init_function_start): Move preamble to all
1626 callers.
1627 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
1628 (execute_one_pass): Handle newly added TODO_discard_function.
1629 (execute_pass_list_1): Terminate if cfun equals to NULL.
1630 (execute_pass_list): Do not push and pop cfun, expect that
1631 cfun is set.
1632 * tree-pass.h (TODO_discard_function): Define.
1633
1634 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1635
1636 * cfganal.c (inverted_post_order_compute): Remove conditional
1637 compilation, use flag_checking.
1638 * config.in: Regenerate.
1639 * configure: Regenerate.
1640 * configure.ac: Remove ENABLE_CHECKING.
1641 * genconditions.c: Do not #undef ENABLE_CHECKING.
1642 * sese.h (bb_in_region): Comment out broken check.
1643 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
1644 conditional compilation, use flag_checking.
1645
1646 2015-11-04 Tom de Vries <tom@codesourcery.com>
1647
1648 PR tree-optimization/67742
1649 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
1650 field.
1651 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
1652 (create_variable_info_for_1): Add and handle handle_param parameter.
1653 Add restrict handling.
1654 (create_variable_info_for): Call create_variable_info_for_1 with extra
1655 arg.
1656 (make_param_constraints): Drop restrict_name parameter. Ignore
1657 vi->only_restrict_pointers.
1658 (intra_create_variable_infos): Call create_variable_info_for_1 with
1659 extra arg. Remove restrict handling. Call make_param_constraints with
1660 one fewer arg.
1661
1662 2015-11-04 Tom de Vries <tom@codesourcery.com>
1663
1664 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
1665 variable.
1666
1667 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1668
1669 * config/arm/coff.h: Remove.
1670
1671 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
1672
1673 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
1674 check for aggregate types and beef up comment for mode check.
1675
1676 2015-11-03 Richard Biener <rguenther@suse.de>
1677
1678 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
1679 data references here.
1680 * tree-vect-loop.c: Include cgraph.h.
1681 (vect_analyze_loop_2): Collect data references here.
1682 * tree-vect-slp.c (find_bb_location): Inline ...
1683 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
1684 Factor in vect_slp_transform_bb.
1685 (vect_slp_transform_bb): Removed.
1686 (vect_slp_analyze_bb_1): Collect data references here.
1687 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
1688 vect_slp_bb.
1689 * tree-vectorizer.h (vect_slp_bb): Declare.
1690 (vect_slp_analyze_bb): Remove.
1691 (vect_slp_transform_bb): Remove.
1692 (find_bb_location): Remove.
1693 (vect_analyze_data_refs): Remove stmt count reference parameter.
1694
1695 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
1696
1697 * multiple_target.c (create_dispatcher_calls): Add target check
1698 on ifunc.
1699 (create_target_clone): Change assembler name for versioned declarations.
1700
1701 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1702 Chung-Lin Tang <cltang@codesourcery.com>
1703
1704 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
1705 * omp-low.c (check_omp_nesting_restrictions): Allow
1706 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
1707 contexts.
1708
1709 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
1710
1711 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
1712 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
1713 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
1714 builtin.
1715 (vmulxq_f32): Likewise.
1716 (vmulx_f64): New.
1717 (vmulxq_f64): Rewrite to call fmulx builtin.
1718 (vmulxs_f32): Likewise.
1719 (vmulxd_f64): Likewise.
1720 (vmulx_lane_f32): Remove.
1721 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
1722
1723 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
1724
1725 * config/aarch64/aarch64.md (*movhf_aarch64): Use
1726 aarch64_reg_or_fp_zero for second operand.
1727
1728 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
1729
1730 * gimple-expr.c: Include hash-set.h and rtl.h.
1731 (mark_addressable_queue): New var.
1732 (mark_addressable): Factor actual marking into...
1733 (mark_addressable_1): ... this. Queue it up during expand.
1734 (mark_addressable_2): New.
1735 (flush_mark_addressable_queue): New.
1736 * gimple-expr.h (flush_mark_addressable_queue): Declare.
1737 * cfgexpand.c: Include gimple-expr.h.
1738 (pass_expand::execute): Flush mark_addressable queue.
1739
1740 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
1741
1742 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
1743 bb_no_side_effects_p tests...
1744 (tree_ssa_ifcombine_bb): ... here.
1745
1746 PR tree-optimization/68083
1747 * tree-ssa-ifcombine.c: Include tree-ssa.h.
1748 (bb_no_side_effects_p): Test for undefined uses too.
1749 * tree-ssa.c (gimple_uses_undefined_value_p): New.
1750 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
1751
1752 2015-11-02 Jeff Law <law@redhat.com>
1753
1754 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
1755 cases where the loop latch edge is in the middle of an FSM path.
1756
1757 2015-11-03 Tom de Vries <tom@codesourcery.com>
1758
1759 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
1760 (make_param_constraints): ... this. Add and handle restrict_name
1761 parameter. Handle is_full_var case.
1762 (intra_create_variable_infos): Use make_param_constraints.
1763
1764 2015-11-03 Tom de Vries <tom@codesourcery.com>
1765
1766 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
1767 make_copy_constraint call with make_constraint_from call.
1768
1769 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
1770
1771 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
1772 PIE executables.
1773
1774 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
1775
1776 * builtins.h (fold_fma): Move to fold-const-call.h.
1777 * builtins.c: Include fold-const-call.h.
1778 (mathfn_built_in_2): New function, split out from...
1779 (mathfn_built_in_1): ...here.
1780 (do_real_to_int_conversion, fold_const_builtin_pow)
1781 (fold_const_builtin_logb, fold_const_builtin_significand)
1782 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
1783 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
1784 (fold_builtin_sincos): Use fold_const_call to handle constants.
1785 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
1786 checks for ERROR_MARK. Use fold_const_call to handle constant
1787 folds for math functions.
1788 (fold_fma): Move to fold-const-call.c.
1789 * fold-const.c: Include fold-const-call.h.
1790 * Makefile.in (OBJS): Add fold-const-call.o.
1791 (PLUGIN_HEADERS): Add fold-const-call.h.
1792 * realmpfr.h (real_from_mpfr): Allow the format to be specified
1793 directly.
1794 * realmpfr.c (real_from_mpfr): Likewise.
1795 * fold-const-call.h, fold-const-call.c: New files.
1796
1797 2015-11-02 Julian Brown <julian@codesourcery.com>
1798
1799 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
1800 brackets and semicolon.
1801
1802 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
1803
1804 Revert:
1805 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
1806
1807 PR tree-optimization/65963
1808 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
1809 LSHIFT_EXPRs as equivalent MULT_EXPRs.
1810
1811 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
1812
1813 PR middle-end/68166
1814 * fold-const.c: Include "md5.h".
1815
1816 2015-11-01 Jeff Law <law@redhat.com>
1817
1818 * vmsdbgout.c: Revert unused header file reduction patch.
1819
1820 * config/mcore/mcore.c: Include regs.h.
1821
1822 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
1823
1824 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
1825
1826 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
1827
1828 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
1829 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
1830 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
1831
1832 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
1833
1834 * ggc-common.c: Restore needed header for checking=release.
1835
1836 2015-10-31 Tom de Vries <tom@codesourcery.com>
1837
1838 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
1839
1840 2015-10-31 Tom de Vries <tom@codesourcery.com>
1841
1842 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
1843 existing varinfo for arguments.
1844
1845 2015-10-31 Tom de Vries <tom@codesourcery.com>
1846
1847 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
1848 create_function_info_for. Dump constraints generated during
1849 create_function_info_for. Move intra_create_variable_infos call and
1850 function-return-values-escape bit to ...
1851 (create_function_info_for): ... here, and merge
1852 intra_create_variable_infos call with argument loop. Add and handle
1853 nonlocal_p parameter.
1854
1855 2015-10-31 Tom de Vries <tom@codesourcery.com>
1856
1857 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
1858 updating is alap, and seperated from preceding code. Make sure
1859 insert_vi_for_tree is seperated from surrounding code.
1860
1861 2015-10-31 Tom de Vries <tom@codesourcery.com>
1862
1863 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
1864
1865 2015-10-30 Jeff Law <law@redhat.com>
1866 Nathan Sidwell <nathan@acm.org>
1867
1868 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
1869 args.
1870 (MOVE_MAX): Set to 8.
1871
1872 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
1873
1874 * cgraph.c: Include context.h for offloading.
1875 * varpool.c: Include context.h and omp-low.h.
1876
1877 2015-10-30 Anatoly Sokolov <aesok@post.ru>
1878
1879 * rtl.h (contains_symbol_ref_p): Declare.
1880 (SYMBOL_REF_P): Define.
1881 * rtlanal.c (contains_symbol_ref_p: New function.
1882 * lra-constraints.c (contains_symbol_ref_p): Remove.
1883 * var-tracking.c (contains_symbol_ref): Remove.
1884 (track_expr_p): Use contains_symbol_ref_p instead of
1885 contains_symbol_ref.
1886
1887 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
1888
1889 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
1890 * fold-const.c (get_array_ctor_element_at_index): New.
1891 (fold): Remove binary-search through CONSTRUCTOR, call previous.
1892
1893 * fold-const.h (get_array_ctor_element_at_index): New.
1894
1895 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1896
1897 * Makefile.in (OBJS): Add multiple_target.o.
1898 * attrib.c (make_attribute): Moved from config/i386/i386.c
1899 * config/i386/i386.c (make_attribute): Deleted.
1900 * multiple_target.c (create_dispatcher_calls): New.
1901 (get_attr_len): Ditto.
1902 (get_attr_str): Ditto.
1903 (separate_attrs): Ditto.
1904 (is_valid_asm_symbol): Ditto.
1905 (create_new_asm_name): Ditto.
1906 (create_target_clone): Ditto.
1907 (expand_target_clones): Ditto.
1908 (ipa_target_clone): Ditto.
1909 (ipa_dispatcher_calls): Ditto.
1910 * passes.def (pass_target_clone): Two new ipa passes.
1911 * tree-pass.h (make_pass_target_clone): Ditto.
1912 * doc/extend.texi (target_clones): New attribute description.
1913
1914 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
1915
1916 PR rtl-optimization/68106
1917 * lra-remat.c (input_regno_present_p): Process hard regs
1918 explicitly present in machine description insns.
1919 (call_used_input_regno_present_p): Ditto.
1920 (calculate_gen_cands): Ditto.
1921 (do_remat): Ditto.
1922
1923 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
1924
1925 * config/arm/neon-testgen.ml: Fix comment typo.
1926
1927 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1928
1929 * rtlanal.c (reg_set_p): Expand function comment.
1930
1931 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
1932
1933 * alias.c: Remove unused headers.
1934 * asan.c: Likewise.
1935 * attribs.c: Likewise.
1936 * auto-inc-dec.c: Likewise.
1937 * auto-profile.c: Likewise.
1938 * bb-reorder.c: Likewise.
1939 * bitmap.c: Likewise.
1940 * bt-load.c: Likewise.
1941 * builtins.c: Likewise.
1942 * caller-save.c: Likewise.
1943 * calls.c: Likewise.
1944 * ccmp.c: Likewise.
1945 * cfg.c: Likewise.
1946 * cfganal.c: Likewise.
1947 * cfgbuild.c: Likewise.
1948 * cfgcleanup.c: Likewise.
1949 * cfgexpand.c: Likewise.
1950 * cfghooks.c: Likewise.
1951 * cfgloop.c: Likewise.
1952 * cfgloopanal.c: Likewise.
1953 * cfgloopmanip.c: Likewise.
1954 * cfgrtl.c: Likewise.
1955 * cgraph.c: Likewise.
1956 * cgraphbuild.c: Likewise.
1957 * cgraphclones.c: Likewise.
1958 * cgraphunit.c: Likewise.
1959 * cilk-common.c: Likewise.
1960 * combine-stack-adj.c: Likewise.
1961 * combine.c: Likewise.
1962 * compare-elim.c: Likewise.
1963 * convert.c: Likewise.
1964 * coverage.c: Likewise.
1965 * cppbuiltin.c: Likewise.
1966 * cprop.c: Likewise.
1967 * cse.c: Likewise.
1968 * cselib.c: Likewise.
1969 * data-streamer-in.c: Likewise.
1970 * data-streamer-out.c: Likewise.
1971 * data-streamer.c: Likewise.
1972 * dbxout.c: Likewise.
1973 * dce.c: Likewise.
1974 * ddg.c: Likewise.
1975 * debug.c: Likewise.
1976 * df-core.c: Likewise.
1977 * df-problems.c: Likewise.
1978 * df-scan.c: Likewise.
1979 * dfp.c: Likewise.
1980 * dojump.c: Likewise.
1981 * dominance.c: Likewise.
1982 * domwalk.c: Likewise.
1983 * double-int.c: Likewise.
1984 * dse.c: Likewise.
1985 * dumpfile.c: Likewise.
1986 * dwarf2asm.c: Likewise.
1987 * dwarf2cfi.c: Likewise.
1988 * dwarf2out.c: Likewise.
1989 * emit-rtl.c: Likewise.
1990 * except.c: Likewise.
1991 * explow.c: Likewise.
1992 * expmed.c: Likewise.
1993 * expr.c: Likewise.
1994 * final.c: Likewise.
1995 * fixed-value.c: Likewise.
1996 * fold-const.c: Likewise.
1997 * function.c: Likewise.
1998 * fwprop.c: Likewise.
1999 * gcse.c: Likewise.
2000 * generic-match-head.c: Likewise.
2001 * ggc-common.c: Likewise.
2002 * gimple-builder.c: Likewise.
2003 * gimple-expr.c: Likewise.
2004 * gimple-fold.c: Likewise.
2005 * gimple-iterator.c: Likewise.
2006 * gimple-low.c: Likewise.
2007 * gimple-match-head.c: Likewise.
2008 * gimple-pretty-print.c: Likewise.
2009 * gimple-ssa-isolate-paths.c: Likewise.
2010 * gimple-ssa-strength-reduction.c: Likewise.
2011 * gimple-streamer-in.c: Likewise.
2012 * gimple-streamer-out.c: Likewise.
2013 * gimple-walk.c: Likewise.
2014 * gimple.c: Likewise.
2015 * gimplify-me.c: Likewise.
2016 * gimplify.c: Likewise.
2017 * godump.c: Likewise.
2018 * graph.c: Likewise.
2019 * graphds.c: Likewise.
2020 * haifa-sched.c: Likewise.
2021 * hw-doloop.c: Likewise.
2022 * ifcvt.c: Likewise.
2023 * init-regs.c: Likewise.
2024 * internal-fn.c: Likewise.
2025 * ipa-chkp.c: Likewise.
2026 * ipa-comdats.c: Likewise.
2027 * ipa-cp.c: Likewise.
2028 * ipa-devirt.c: Likewise.
2029 * ipa-icf-gimple.c: Likewise.
2030 * ipa-icf.c: Likewise.
2031 * ipa-inline-analysis.c: Likewise.
2032 * ipa-inline-transform.c: Likewise.
2033 * ipa-inline.c: Likewise.
2034 * ipa-polymorphic-call.c: Likewise.
2035 * ipa-profile.c: Likewise.
2036 * ipa-prop.c: Likewise.
2037 * ipa-pure-const.c: Likewise.
2038 * ipa-ref.c: Likewise.
2039 * ipa-reference.c: Likewise.
2040 * ipa-split.c: Likewise.
2041 * ipa-utils.c: Likewise.
2042 * ipa-visibility.c: Likewise.
2043 * ipa.c: Likewise.
2044 * ira-build.c: Likewise.
2045 * ira-color.c: Likewise.
2046 * ira-conflicts.c: Likewise.
2047 * ira-costs.c: Likewise.
2048 * ira-emit.c: Likewise.
2049 * ira-lives.c: Likewise.
2050 * ira.c: Likewise.
2051 * jump.c: Likewise.
2052 * langhooks.c: Likewise.
2053 * lcm.c: Likewise.
2054 * lists.c: Likewise.
2055 * loop-doloop.c: Likewise.
2056 * loop-init.c: Likewise.
2057 * loop-invariant.c: Likewise.
2058 * loop-iv.c: Likewise.
2059 * loop-unroll.c: Likewise.
2060 * lower-subreg.c: Likewise.
2061 * lra-assigns.c: Likewise.
2062 * lra-coalesce.c: Likewise.
2063 * lra-constraints.c: Likewise.
2064 * lra-eliminations.c: Likewise.
2065 * lra-lives.c: Likewise.
2066 * lra-remat.c: Likewise.
2067 * lra-spills.c: Likewise.
2068 * lra.c: Likewise.
2069 * lto-cgraph.c: Likewise.
2070 * lto-compress.c: Likewise.
2071 * lto-opts.c: Likewise.
2072 * lto-section-in.c: Likewise.
2073 * lto-section-out.c: Likewise.
2074 * lto-streamer-in.c: Likewise.
2075 * lto-streamer-out.c: Likewise.
2076 * lto-streamer.c: Likewise.
2077 * mcf.c: Likewise.
2078 * mode-switching.c: Likewise.
2079 * modulo-sched.c: Likewise.
2080 * optabs.c: Likewise.
2081 * opts-global.c: Likewise.
2082 * passes.c: Likewise.
2083 * plugin.c: Likewise.
2084 * postreload-gcse.c: Likewise.
2085 * postreload.c: Likewise.
2086 * predict.c: Likewise.
2087 * print-tree.c: Likewise.
2088 * profile.c: Likewise.
2089 * real.c: Likewise.
2090 * realmpfr.c: Likewise.
2091 * recog.c: Likewise.
2092 * ree.c: Likewise.
2093 * reg-stack.c: Likewise.
2094 * regcprop.c: Likewise.
2095 * reginfo.c: Likewise.
2096 * regrename.c: Likewise.
2097 * regstat.c: Likewise.
2098 * reload.c: Likewise.
2099 * reload1.c: Likewise.
2100 * reorg.c: Likewise.
2101 * resource.c: Likewise.
2102 * rtl-chkp.c: Likewise.
2103 * rtl-error.c: Likewise.
2104 * rtlanal.c: Likewise.
2105 * rtlhooks.c: Likewise.
2106 * sanopt.c: Likewise.
2107 * sched-deps.c: Likewise.
2108 * sched-ebb.c: Likewise.
2109 * sched-rgn.c: Likewise.
2110 * sdbout.c: Likewise.
2111 * sel-sched-dump.c: Likewise.
2112 * sel-sched-ir.c: Likewise.
2113 * sel-sched.c: Likewise.
2114 * sese.c: Likewise.
2115 * shrink-wrap.c: Likewise.
2116 * simplify-rtx.c: Likewise.
2117 * stack-ptr-mod.c: Likewise.
2118 * statistics.c: Likewise.
2119 * stmt.c: Likewise.
2120 * stor-layout.c: Likewise.
2121 * store-motion.c: Likewise.
2122 * stringpool.c: Likewise.
2123 * symtab.c: Likewise.
2124 * target-globals.c: Likewise.
2125 * targhooks.c: Likewise.
2126 * toplev.c: Likewise.
2127 * tracer.c: Likewise.
2128 * trans-mem.c: Likewise.
2129 * tree-affine.c: Likewise.
2130 * tree-call-cdce.c: Likewise.
2131 * tree-cfg.c: Likewise.
2132 * tree-cfgcleanup.c: Likewise.
2133 * tree-chkp-opt.c: Likewise.
2134 * tree-chkp.c: Likewise.
2135 * tree-chrec.c: Likewise.
2136 * tree-complex.c: Likewise.
2137 * tree-data-ref.c: Likewise.
2138 * tree-dfa.c: Likewise.
2139 * tree-diagnostic.c: Likewise.
2140 * tree-dump.c: Likewise.
2141 * tree-eh.c: Likewise.
2142 * tree-emutls.c: Likewise.
2143 * tree-if-conv.c: Likewise.
2144 * tree-inline.c: Likewise.
2145 * tree-into-ssa.c: Likewise.
2146 * tree-iterator.c: Likewise.
2147 * tree-loop-distribution.c: Likewise.
2148 * tree-nested.c: Likewise.
2149 * tree-nrv.c: Likewise.
2150 * tree-object-size.c: Likewise.
2151 * tree-outof-ssa.c: Likewise.
2152 * tree-parloops.c: Likewise.
2153 * tree-phinodes.c: Likewise.
2154 * tree-predcom.c: Likewise.
2155 * tree-pretty-print.c: Likewise.
2156 * tree-profile.c: Likewise.
2157 * tree-scalar-evolution.c: Likewise.
2158 * tree-sra.c: Likewise.
2159 * tree-ssa-address.c: Likewise.
2160 * tree-ssa-alias.c: Likewise.
2161 * tree-ssa-ccp.c: Likewise.
2162 * tree-ssa-coalesce.c: Likewise.
2163 * tree-ssa-copy.c: Likewise.
2164 * tree-ssa-dce.c: Likewise.
2165 * tree-ssa-dse.c: Likewise.
2166 * tree-ssa-forwprop.c: Likewise.
2167 * tree-ssa-ifcombine.c: Likewise.
2168 * tree-ssa-live.c: Likewise.
2169 * tree-ssa-loop-ch.c: Likewise.
2170 * tree-ssa-loop-im.c: Likewise.
2171 * tree-ssa-loop-ivcanon.c: Likewise.
2172 * tree-ssa-loop-ivopts.c: Likewise.
2173 * tree-ssa-loop-manip.c: Likewise.
2174 * tree-ssa-loop-niter.c: Likewise.
2175 * tree-ssa-loop-prefetch.c: Likewise.
2176 * tree-ssa-loop-unswitch.c: Likewise.
2177 * tree-ssa-loop.c: Likewise.
2178 * tree-ssa-math-opts.c: Likewise.
2179 * tree-ssa-operands.c: Likewise.
2180 * tree-ssa-phiopt.c: Likewise.
2181 * tree-ssa-phiprop.c: Likewise.
2182 * tree-ssa-pre.c: Likewise.
2183 * tree-ssa-propagate.c: Likewise.
2184 * tree-ssa-reassoc.c: Likewise.
2185 * tree-ssa-scopedtables.c: Likewise.
2186 * tree-ssa-sink.c: Likewise.
2187 * tree-ssa-strlen.c: Likewise.
2188 * tree-ssa-structalias.c: Likewise.
2189 * tree-ssa-tail-merge.c: Likewise.
2190 * tree-ssa-ter.c: Likewise.
2191 * tree-ssa-threadupdate.c: Likewise.
2192 * tree-ssa-uncprop.c: Likewise.
2193 * tree-ssa-uninit.c: Likewise.
2194 * tree-ssa.c: Likewise.
2195 * tree-ssanames.c: Likewise.
2196 * tree-stdarg.c: Likewise.
2197 * tree-streamer-in.c: Likewise.
2198 * tree-streamer-out.c: Likewise.
2199 * tree-streamer.c: Likewise.
2200 * tree-switch-conversion.c: Likewise.
2201 * tree-tailcall.c: Likewise.
2202 * tree-vect-data-refs.c: Likewise.
2203 * tree-vect-generic.c: Likewise.
2204 * tree-vect-loop-manip.c: Likewise.
2205 * tree-vect-loop.c: Likewise.
2206 * tree-vect-patterns.c: Likewise.
2207 * tree-vect-slp.c: Likewise.
2208 * tree-vect-stmts.c: Likewise.
2209 * tree-vectorizer.c: Likewise.
2210 * tree-vrp.c: Likewise.
2211 * tree.c: Likewise.
2212 * tsan.c: Likewise.
2213 * ubsan.c: Likewise.
2214 * value-prof.c: Likewise.
2215 * var-tracking.c: Likewise.
2216 * varasm.c: Likewise.
2217 * varpool.c: Likewise.
2218 * vmsdbgout.c: Likewise.
2219 * vtable-verify.c: Likewise.
2220 * web.c: Likewise.
2221 * wide-int-print.cc: Likewise.
2222 * wide-int.cc: Likewise.
2223 * xcoffout.c: Likewise.
2224
2225 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
2226
2227 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
2228 between pass numbering and execution order.
2229
2230 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2231
2232 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
2233 check for dependencies.
2234
2235 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2236
2237 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
2238 CDI_DOMINATORS.
2239
2240 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2241
2242 * real.h (format_helper): New.
2243 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
2244 (real_from_target, real_nan, real_2expN, real_value_truncate)
2245 (significand_size, real_from_string2, exact_real_inverse)
2246 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
2247 (real_round, real_isinteger, real_from_integer): Replace
2248 machine_mode arguments with format_helper arguments.
2249 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
2250 (real_from_integer, real_nan, real_2expN, real_convert)
2251 (real_value_truncate, exact_real_truncate, real_to_target)
2252 (real_from_target, significand_size, real_powi, real_trunc)
2253 (real_floor, real_ceil, real_round, real_isinteger): Replace
2254 machine_mode arguments with format_helper arguments.
2255 (real_to_target_fmt, real_from_target_fmt): Delete.
2256 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
2257 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
2258 argument with real_format.
2259 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
2260
2261 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2262
2263 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
2264 (fixed_to_decimal, fixed_convert_from_real)
2265 (real_convert_from_fixed): Fix mode arguments to real_2expN.
2266
2267 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2268
2269 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
2270 SCALAR_FLOAT_MODE_P.
2271
2272 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
2273
2274 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
2275 (completely_scalarize): Comment zero-length arrays.
2276 (get_access_replacement): Correct comment re. precondition.
2277
2278 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2279
2280 * config/i386/i386.c (get_builtin_code_for_version): Set priority
2281 for PROCESSOR_ZNVER1.
2282 (enum processor_model): Add M_AMDFAM17H_znver1.
2283 (struct arch_names_table): Likewise.
2284 * doc/extend.texi: ADD znver1.
2285
2286 2015-10-30 Richard Biener <rguenther@suse.de>
2287
2288 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
2289 fold () on single RHSs. Allow CONSTRUCTORS with trailing
2290 zeros to be folded to VECTOR_CSTs.
2291 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
2292 * fold-const.c (fold): Use build_vector_from_ctor.
2293
2294 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
2295
2296 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
2297 "mov %0.h[0], %1.h[0] to "neon_move".
2298 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
2299 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
2300 "mov_imm".
2301 (*cmovsi_insn_uxtw): Likewise.
2302
2303 2015-10-30 Tom de Vries <tom@codesourcery.com>
2304
2305 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
2306 unsigned, and initialize, and use initial value instead of hardcoded
2307 constant. Add generic constraints dumping section. Don't dump global
2308 initializers constraints dumping section if empty. Don't update
2309 variable from if unused.
2310
2311 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
2312
2313 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
2314 flag_checking and/or CHECKING_P to eliminate conditional compilation
2315 on ENABLE_CHECKING.
2316 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
2317 * config/bfin/bfin.c (hwloop_optimize): Likewise.
2318 * config/i386/i386.c (ix86_print_operand_address): Likewise.
2319 (output_387_binary_op): Likewise.
2320 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
2321 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
2322 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
2323 Likewise.
2324 * config/rs6000/rs6000.h: Likewise.
2325 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
2326
2327 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
2328
2329 * config/sh/sh.opt (mfdpic): Add missing period.
2330
2331 2015-08-29 Anatoly Sokolov <aesok@post.ru>
2332
2333 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
2334 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
2335 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2336 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
2337 mcore_base_register_rtx_p, mcore_legitimate_index_p,
2338 mcore_legitimate_address_p): New functions.
2339 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
2340
2341 2015-10-29 Jeff Law <law@redhat.com>
2342
2343 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
2344 method.
2345 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
2346 * tree-ssa-threadedge.c
2347 (record_temporary_equivalences_from_stmts_at_dest): Remove
2348 backedge_seen argument and associated code which invalidated
2349 equivalences based on the value of that argument.
2350 (thread_through_normal_block): Corresponding changes.
2351
2352 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
2353
2354 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
2355 function earlier in the file.
2356 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
2357 df_regs_ever_live_p.
2358
2359 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
2360
2361 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
2362 by ignoring it.
2363
2364 2015-10-29 Richard Henderson <rth@redhat.com>
2365
2366 PR target/68124
2367 PR rtl-opt/67609
2368 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
2369 sse check to the exact conditions of PR 67609.
2370
2371 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2372
2373 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
2374 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
2375 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
2376 of the traditional names that TFmode uses for handling IEEE
2377 extended double. If -mfloat128, add KFmode functions for all of
2378 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
2379 make TFmode use the same emulation functions as KFmode.
2380 (init_float128_ibm): Likewise.
2381 (init_float128_ieee): Likewise.
2382 (rs6000_generate_compare): For IEEE 128-bit floating point
2383 comparisons, call the unordered comparison function instead of the
2384 ordered comparison function.
2385 (rs6000_expand_float128_convert): Deal with operands that are
2386 memory operands. Restructure the code to use a switch statement on
2387 the mode. Add support for TFmode defaulting to either IBM extended
2388 double or IEEE 128-bit floating point. If the underlying types are
2389 the same, use a move instead of a conversion function.
2390 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
2391 use for IEEE 128-bit floating point constants with -mfloat128.
2392 (rs6000_c_mode_for_suffix): Likewise.
2393 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
2394 128-bit floating point with IBM extended double floating point.
2395 (rs6000_invalid_binary_op): Likewise.
2396 (rs6000_gen_le_vsx_permute): On little endian systems generate a
2397 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
2398 types that can go in vector registers.
2399 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
2400 point types that can go in vector registers on little endian
2401 PowerPC systems.
2402 (mark_swaps_for_removal): Likewise.
2403 (rs6000_analyze_swaps): Likewise.
2404 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
2405
2406 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
2407 rework IEEE 128-bit floating point insns to deal with TFmode being
2408 either IBM extended double or IEEE 128-bit floating point.
2409 (IFKF): Likewise.
2410 (IBM128): Update iterator to add condition that the mode is IBM
2411 extended double.
2412 (IEEE128): New iterator for IEEE 128-bit floating point.
2413 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
2414 (FLOAT128): Likewise.
2415 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
2416 iterator.
2417 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
2418 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
2419 instead of hard coding TFmode or KFmode.
2420 (negtf2_internal): Likewise.
2421 (neg<mode>2_internal): Likewise.
2422 (abs<mode>2): Likewise.
2423 (abstf2_internal): Likewise.
2424 (abs<mode>2_internal): Likewise.
2425 (ieee_128bit_neg<mode>2): Likewise.
2426 (ieee_128bit_neg<mode>2_internal): Likewise.
2427 (ieee_128bit_abs<mode>2): Likewise.
2428 (ieee_128bit_abs<mode>2_internal): Likewise.
2429 (ieee_128bit_nabs<mode>2): Likewise.
2430 (ieee_128bit_nabs<mode>2_internal): Likewise.
2431 (extendiftf2): Add explicit conversions between 128-bit floating
2432 point types. Drop the old conversions that had become unwieldy.
2433 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
2434 (extendifkf2): Likewise.
2435 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
2436 (extendtfkf2): Likewise.
2437 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
2438 (trunciftf2): Likewise.
2439 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
2440 (truncifkf2): Likewise.
2441 (float<SDI:mode><IFKF:mode>2): Likewise.
2442 (trunckftf2): Likewise.
2443 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
2444 (trunctfif2): Likewise.
2445 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
2446 (extenddftf2): Rework 128-bit floating point conversions to
2447 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
2448 KFmode expanders into one function.
2449 (extenddf<mode>2): Likewise.
2450 (extenddftf2_fprs): Likewise.
2451 (extenddf<mode>2_fprs): Likewise.
2452 (extenddftf2_vsx): Likewise.
2453 (extenddf<mode>2_vsx): Likewise.
2454 (extendsftf2): Likewise.
2455 (extendsf<mode>2): Likewise.
2456 (trunctfdf2): Likewise.
2457 (trunc<mode>df2): Likewise.
2458 (trunctfdf2_internal1): Likewise.
2459 (trunc<mode>df2_internal1): Likewise.
2460 (trunctfdf2_internal2): Likewise.
2461 (trunc<mode>df2_internal2): Likewise.
2462 (trunctfsf2): Likewise.
2463 (trunc<mode>sf2): Likewise.
2464 (trunctfsf2_fprs): Likewise.
2465 (trunc<mode>sf2_fprs): Likewise.
2466 (floatsit2f): Likewise.
2467 (floatsi<mode>2): Likewise.
2468 (fix_trunc_helper): Likewise.
2469 (fix_trunc_helper<mode>): Likewise.
2470 (fix_trunctfsi2): Likewise.
2471 (fix_trunc<mode>si2): Likewise.
2472 (fix_trunctfsi2_fprs): Likewise.
2473 (fix_trunc<mode>si2_fprs): Likewise.
2474 (fix_trunctfsi2_internal): Likewise.
2475 (fix_trunc<mode>si2_internal): Likewise.
2476 (fix_trunctfdi2): Likewise.
2477 (fix_trunc<mode>di2): Likewise.
2478 (fixuns_trunctf<mode>2): Likewise.
2479 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2480 (floatditf2): Likewise.
2481 (floatdi<mode>2): Likewise.
2482 (floatuns<mode>tf2): Likewise.
2483 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
2484 (cmptf_internal1): Use a mode iterator to add support for both
2485 types (IFmode, TFmode) that support IBM extended double.
2486 (cmp<mode>_internal1): Likewise.
2487 (cmptf_internal2): Likewise.
2488 (cmp<mode>_internal2): Likewise.
2489
2490 * doc/extend.texi (Floating Types): Document __ibm128 and
2491 __float128 on PowerPC.
2492
2493 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2494 -mfloat128 and -mno-float128.
2495
2496 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2497
2498 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
2499 floating point modes that can go in vector registers.
2500 (MODES_TIEABLE_P): Move tests for vector modes before tests for
2501 scalar floating point, so that IEEE 128-bit floating point that
2502 can go in vector registers bind with vectors and not FP.
2503 (struct rs6000_args): Add libcall field.
2504
2505 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
2506 and -mfloat128-software switches. Replace them with a binary
2507 -mfloat128 switch.
2508 (-mfloat128): Likewise.
2509
2510 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
2511 128-bit floating point types in GPRs, even if the appropriate
2512 option enabling the type was not used.
2513 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
2514 debugging.
2515 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
2516 pre-decrement on IEEE 128-bit floating point values.
2517 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
2518 is IEEE 128-bit floating point.
2519 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
2520 128-bit floating point types that can go in vector registers.
2521 (rs6000_option_override_internal): Change -mfloat128-none and
2522 -mfloat128-software to -mfloat128, and move code to be near other
2523 VSX option handling.
2524 (rs6000_option_override_internal): Disable -mfloat128 if we don't
2525 have the Altivec ABI.
2526 (rs6000_init_builtins): Don't make TFmode use either IFmode or
2527 KFmode floating point nodes. Instead, have three separate nodes.
2528 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
2529 eventually moving the long double default to IEEE 128-bit floating
2530 point.
2531 (rs6000_opt_masks): Add -mfloat128.
2532 (struct rs6000_opt_var): Fix typo in comment.
2533 (init_cumulative_args): Initialize libcall field in
2534 CUMULATIVE_ARGS.
2535 (rs6000_function_arg): Treat library functions as if they had
2536 prototypes to prevent IEEE 128-bit support functions from passing
2537 arguments in both GPRs and vector registers.
2538 (rs6000_arg_partial_bytes): Likewise.
2539
2540 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
2541 an option that can be turned on via -mcpu=<xxx>.
2542
2543 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
2544 longer used.
2545
2546 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2547 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
2548 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
2549 double is IBM extended double.
2550
2551 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
2552 SUBREGs.
2553
2554 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
2555
2556 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
2557 * genconditions.c: Define CHECKING_P in the generated code.
2558 * genextract.c: Use flag_checking in insn_extract.
2559 * gengtype.c (main): Remove conditional compilation.
2560 * gengtype.h: Likewise.
2561
2562 2015-10-29 Jeff Law <law@redhat.com>
2563
2564 PR tree-optimization/67892
2565 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
2566 in comment.
2567 (thread_through_normal_block): If we have seen a backedge, then
2568 do nothing. No longer call find_jump_threads_backwards here.
2569 (thread_across_edge): Use find_jump_threads_backwards to find
2570 jump threads if the old style threader was not successful.
2571 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
2572 gsi_last_nondebug_bb. Return NULL if the block does not end
2573 with a control statement.
2574 (find_jump_threads_backwards): Setup code moved here from
2575 tree-ssa-threadedge.c::thread_through_normal_block. Accept
2576 single edge argument instead of name & block.
2577 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
2578 prototype.
2579
2580 2015-10-29 Tom de Vries <tom@codesourcery.com>
2581
2582 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
2583 types.
2584
2585 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
2586
2587 * omp-low.c (lower_omp_target): Remove unreachable code & merge
2588 ifs.
2589
2590 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
2591
2592 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
2593
2594 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
2595
2596 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
2597 guard_bb0 and use guard_bb throughout.
2598
2599 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
2600
2601 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
2602 unnecessary label.
2603
2604 2015-10-29 Richard Biener <rguenther@suse.de>
2605
2606 PR middle-end/68142
2607 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
2608 overflow.
2609
2610 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
2611
2612 * alias.c: Reorder #include statements and remove duplicates.
2613 * asan.c: Likewise.
2614 * attribs.c: Likewise.
2615 * auto-inc-dec.c: Likewise.
2616 * auto-profile.c: Likewise.
2617 * bb-reorder.c: Likewise.
2618 * bt-load.c: Likewise.
2619 * builtins.c: Likewise.
2620 * caller-save.c: Likewise.
2621 * calls.c: Likewise.
2622 * ccmp.c: Likewise.
2623 * cfg.c: Likewise.
2624 * cfganal.c: Likewise.
2625 * cfgbuild.c: Likewise.
2626 * cfgcleanup.c: Likewise.
2627 * cfgexpand.c: Likewise.
2628 * cfghooks.c: Likewise.
2629 * cfgloop.c: Likewise.
2630 * cfgloopanal.c: Likewise.
2631 * cfgloopmanip.c: Likewise.
2632 * cfgrtl.c: Likewise.
2633 * cgraph.c: Likewise.
2634 * cgraphbuild.c: Likewise.
2635 * cgraphclones.c: Likewise.
2636 * cgraphunit.c: Likewise.
2637 * cilk-common.c: Likewise.
2638 * combine-stack-adj.c: Likewise.
2639 * combine.c: Likewise.
2640 * compare-elim.c: Likewise.
2641 * convert.c: Likewise.
2642 * coverage.c: Likewise.
2643 * cppbuiltin.c: Likewise.
2644 * cprop.c: Likewise.
2645 * cse.c: Likewise.
2646 * cselib.c: Likewise.
2647 * data-streamer-in.c: Likewise.
2648 * data-streamer-out.c: Likewise.
2649 * data-streamer.c: Likewise.
2650 * dbxout.c: Likewise.
2651 * dce.c: Likewise.
2652 * ddg.c: Likewise.
2653 * debug.c: Likewise.
2654 * df-core.c: Likewise.
2655 * df-problems.c: Likewise.
2656 * df-scan.c: Likewise.
2657 * dfp.c: Likewise.
2658 * dojump.c: Likewise.
2659 * dominance.c: Likewise.
2660 * double-int.c: Likewise.
2661 * dse.c: Likewise.
2662 * dumpfile.c: Likewise.
2663 * dwarf2asm.c: Likewise.
2664 * dwarf2cfi.c: Likewise.
2665 * dwarf2out.c: Likewise.
2666 * emit-rtl.c: Likewise.
2667 * except.c: Likewise.
2668 * explow.c: Likewise.
2669 * expmed.c: Likewise.
2670 * expr.c: Likewise.
2671 * final.c: Likewise.
2672 * fixed-value.c: Likewise.
2673 * fold-const.c: Likewise.
2674 * function.c: Likewise.
2675 * fwprop.c: Likewise.
2676 * gcse.c: Likewise.
2677 * generic-match-head.c: Likewise.
2678 * ggc-common.c: Likewise.
2679 * gimple-builder.c: Likewise.
2680 * gimple-expr.c: Likewise.
2681 * gimple-fold.c: Likewise.
2682 * gimple-iterator.c: Likewise.
2683 * gimple-low.c: Likewise.
2684 * gimple-match-head.c: Likewise.
2685 * gimple-pretty-print.c: Likewise.
2686 * gimple-ssa-isolate-paths.c: Likewise.
2687 * gimple-ssa-strength-reduction.c: Likewise.
2688 * gimple-streamer-in.c: Likewise.
2689 * gimple-streamer-out.c: Likewise.
2690 * gimple-walk.c: Likewise.
2691 * gimple.c: Likewise.
2692 * gimplify-me.c: Likewise.
2693 * gimplify.c: Likewise.
2694 * godump.c: Likewise.
2695 * graph.c: Likewise.
2696 * graphite-poly.c: Likewise.
2697 * haifa-sched.c: Likewise.
2698 * hw-doloop.c: Likewise.
2699 * ifcvt.c: Likewise.
2700 * incpath.c: Likewise.
2701 * init-regs.c: Likewise.
2702 * internal-fn.c: Likewise.
2703 * ipa-chkp.c: Likewise.
2704 * ipa-comdats.c: Likewise.
2705 * ipa-cp.c: Likewise.
2706 * ipa-devirt.c: Likewise.
2707 * ipa-icf-gimple.c: Likewise.
2708 * ipa-icf.c: Likewise.
2709 * ipa-inline-analysis.c: Likewise.
2710 * ipa-inline-transform.c: Likewise.
2711 * ipa-inline.c: Likewise.
2712 * ipa-polymorphic-call.c: Likewise.
2713 * ipa-profile.c: Likewise.
2714 * ipa-prop.c: Likewise.
2715 * ipa-pure-const.c: Likewise.
2716 * ipa-ref.c: Likewise.
2717 * ipa-reference.c: Likewise.
2718 * ipa-split.c: Likewise.
2719 * ipa-utils.c: Likewise.
2720 * ipa-visibility.c: Likewise.
2721 * ipa.c: Likewise.
2722 * ira-build.c: Likewise.
2723 * ira-color.c: Likewise.
2724 * ira-conflicts.c: Likewise.
2725 * ira-costs.c: Likewise.
2726 * ira-emit.c: Likewise.
2727 * ira-lives.c: Likewise.
2728 * ira.c: Likewise.
2729 * jump.c: Likewise.
2730 * langhooks.c: Likewise.
2731 * lcm.c: Likewise.
2732 * lists.c: Likewise.
2733 * loop-doloop.c: Likewise.
2734 * loop-init.c: Likewise.
2735 * loop-invariant.c: Likewise.
2736 * loop-iv.c: Likewise.
2737 * loop-unroll.c: Likewise.
2738 * lower-subreg.c: Likewise.
2739 * lra-assigns.c: Likewise.
2740 * lra-coalesce.c: Likewise.
2741 * lra-constraints.c: Likewise.
2742 * lra-eliminations.c: Likewise.
2743 * lra-lives.c: Likewise.
2744 * lra-remat.c: Likewise.
2745 * lra-spills.c: Likewise.
2746 * lra.c: Likewise.
2747 * lto-cgraph.c: Likewise.
2748 * lto-compress.c: Likewise.
2749 * lto-opts.c: Likewise.
2750 * lto-section-in.c: Likewise.
2751 * lto-section-out.c: Likewise.
2752 * lto-streamer-in.c: Likewise.
2753 * lto-streamer-out.c: Likewise.
2754 * lto-streamer.c: Likewise.
2755 * mode-switching.c: Likewise.
2756 * modulo-sched.c: Likewise.
2757 * omp-low.c: Likewise.
2758 * optabs.c: Likewise.
2759 * opts-global.c: Likewise.
2760 * passes.c: Likewise.
2761 * plugin.c: Likewise.
2762 * postreload-gcse.c: Likewise.
2763 * postreload.c: Likewise.
2764 * predict.c: Likewise.
2765 * print-tree.c: Likewise.
2766 * profile.c: Likewise.
2767 * real.c: Likewise.
2768 * realmpfr.c: Likewise.
2769 * recog.c: Likewise.
2770 * ree.c: Likewise.
2771 * reg-stack.c: Likewise.
2772 * regcprop.c: Likewise.
2773 * reginfo.c: Likewise.
2774 * regrename.c: Likewise.
2775 * regstat.c: Likewise.
2776 * reload.c: Likewise.
2777 * reload1.c: Likewise.
2778 * reorg.c: Likewise.
2779 * resource.c: Likewise.
2780 * rtl-chkp.c: Likewise.
2781 * rtl-error.c: Likewise.
2782 * rtlanal.c: Likewise.
2783 * rtlhooks.c: Likewise.
2784 * sanopt.c: Likewise.
2785 * sched-deps.c: Likewise.
2786 * sched-ebb.c: Likewise.
2787 * sched-rgn.c: Likewise.
2788 * sese.c: Likewise.
2789 * shrink-wrap.c: Likewise.
2790 * simplify-rtx.c: Likewise.
2791 * stack-ptr-mod.c: Likewise.
2792 * statistics.c: Likewise.
2793 * stmt.c: Likewise.
2794 * stor-layout.c: Likewise.
2795 * store-motion.c: Likewise.
2796 * stringpool.c: Likewise.
2797 * symtab.c: Likewise.
2798 * target-globals.c: Likewise.
2799 * targhooks.c: Likewise.
2800 * toplev.c: Likewise.
2801 * tracer.c: Likewise.
2802 * trans-mem.c: Likewise.
2803 * tree-affine.c: Likewise.
2804 * tree-call-cdce.c: Likewise.
2805 * tree-cfg.c: Likewise.
2806 * tree-cfgcleanup.c: Likewise.
2807 * tree-chkp-opt.c: Likewise.
2808 * tree-chkp.c: Likewise.
2809 * tree-chrec.c: Likewise.
2810 * tree-complex.c: Likewise.
2811 * tree-data-ref.c: Likewise.
2812 * tree-dfa.c: Likewise.
2813 * tree-diagnostic.c: Likewise.
2814 * tree-dump.c: Likewise.
2815 * tree-eh.c: Likewise.
2816 * tree-emutls.c: Likewise.
2817 * tree-if-conv.c: Likewise.
2818 * tree-inline.c: Likewise.
2819 * tree-into-ssa.c: Likewise.
2820 * tree-iterator.c: Likewise.
2821 * tree-loop-distribution.c: Likewise.
2822 * tree-nested.c: Likewise.
2823 * tree-nrv.c: Likewise.
2824 * tree-object-size.c: Likewise.
2825 * tree-outof-ssa.c: Likewise.
2826 * tree-parloops.c: Likewise.
2827 * tree-phinodes.c: Likewise.
2828 * tree-predcom.c: Likewise.
2829 * tree-pretty-print.c: Likewise.
2830 * tree-profile.c: Likewise.
2831 * tree-scalar-evolution.c: Likewise.
2832 * tree-sra.c: Likewise.
2833 * tree-ssa-address.c: Likewise.
2834 * tree-ssa-alias.c: Likewise.
2835 * tree-ssa-ccp.c: Likewise.
2836 * tree-ssa-coalesce.c: Likewise.
2837 * tree-ssa-copy.c: Likewise.
2838 * tree-ssa-dce.c: Likewise.
2839 * tree-ssa-dom.c: Likewise.
2840 * tree-ssa-dse.c: Likewise.
2841 * tree-ssa-forwprop.c: Likewise.
2842 * tree-ssa-ifcombine.c: Likewise.
2843 * tree-ssa-live.c: Likewise.
2844 * tree-ssa-loop-ch.c: Likewise.
2845 * tree-ssa-loop-im.c: Likewise.
2846 * tree-ssa-loop-ivcanon.c: Likewise.
2847 * tree-ssa-loop-ivopts.c: Likewise.
2848 * tree-ssa-loop-manip.c: Likewise.
2849 * tree-ssa-loop-niter.c: Likewise.
2850 * tree-ssa-loop-prefetch.c: Likewise.
2851 * tree-ssa-loop-unswitch.c: Likewise.
2852 * tree-ssa-loop.c: Likewise.
2853 * tree-ssa-math-opts.c: Likewise.
2854 * tree-ssa-operands.c: Likewise.
2855 * tree-ssa-phiopt.c: Likewise.
2856 * tree-ssa-phiprop.c: Likewise.
2857 * tree-ssa-pre.c: Likewise.
2858 * tree-ssa-propagate.c: Likewise.
2859 * tree-ssa-reassoc.c: Likewise.
2860 * tree-ssa-sccvn.c: Likewise.
2861 * tree-ssa-scopedtables.c: Likewise.
2862 * tree-ssa-sink.c: Likewise.
2863 * tree-ssa-strlen.c: Likewise.
2864 * tree-ssa-structalias.c: Likewise.
2865 * tree-ssa-tail-merge.c: Likewise.
2866 * tree-ssa-ter.c: Likewise.
2867 * tree-ssa-threadedge.c: Likewise.
2868 * tree-ssa-threadupdate.c: Likewise.
2869 * tree-ssa-uncprop.c: Likewise.
2870 * tree-ssa-uninit.c: Likewise.
2871 * tree-ssa.c: Likewise.
2872 * tree-ssanames.c: Likewise.
2873 * tree-stdarg.c: Likewise.
2874 * tree-streamer-in.c: Likewise.
2875 * tree-streamer-out.c: Likewise.
2876 * tree-streamer.c: Likewise.
2877 * tree-switch-conversion.c: Likewise.
2878 * tree-tailcall.c: Likewise.
2879 * tree-vect-data-refs.c: Likewise.
2880 * tree-vect-generic.c: Likewise.
2881 * tree-vect-loop-manip.c: Likewise.
2882 * tree-vect-loop.c: Likewise.
2883 * tree-vect-patterns.c: Likewise.
2884 * tree-vect-slp.c: Likewise.
2885 * tree-vect-stmts.c: Likewise.
2886 * tree-vectorizer.c: Likewise.
2887 * tree-vrp.c: Likewise.
2888 * tree.c: Likewise.
2889 * tsan.c: Likewise.
2890 * ubsan.c: Likewise.
2891 * value-prof.c: Likewise.
2892 * var-tracking.c: Likewise.
2893 * varasm.c: Likewise.
2894 * varpool.c: Likewise.
2895 * vtable-verify.c: Likewise.
2896 * web.c: Likewise.
2897 * wide-int-print.cc: Likewise.
2898 * wide-int.cc: Likewise.
2899 * xcoffout.c: Likewise.
2900
2901 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
2902
2903 * Makefile.in (NO_PIE_CFLAGS): New.
2904 (NO_PIE_FLAG): Likewise.
2905 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
2906 (NO_PIE_FLAG_FOR_BUILD): Likewise.
2907 (BUILD_NO_PIE_CFLAGS): Likewise.
2908 (BUILD_NO_PIE_FLAG): Likewise.
2909 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
2910 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
2911 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
2912 $(BUILD_NO_PIE_CFLAGS).
2913 (BUILD_CXXFLAGS): Likewise.
2914 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
2915 $(BUILD_NO_PIE_FLAG).
2916 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
2917 (BUILD_NO_PIE_FLAG): Likewise.
2918 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
2919 (NO_PIE_FLAG_FOR_BUILD): Likewise.
2920 * configure: Regenerated.
2921
2922 2015-10-29 Richard Biener <rguenther@suse.de>
2923
2924 PR middle-end/56956
2925 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
2926 unsigned conditonal negation to ABS_EXPR.
2927
2928 2015-10-29 Richard Biener <rguenther@suse.de>
2929
2930 * gimple-match-head.c (gimple_simplify): Remove premature checking
2931 of builtin_decl_implicit of function calls we simplify.
2932
2933 2015-10-29 Bin Cheng <bin.cheng@arm.com>
2934
2935 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
2936 (get_computation_cost_at): Ditto.
2937 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
2938 and inv_expr_id.
2939
2940 2015-10-28 Tom de Vries <tom@codesourcery.com>
2941
2942 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
2943 superfluous code.
2944
2945 2015-10-28 Jason Merrill <jason@redhat.com>
2946
2947 * Makefile.in (TAGS): Include libcpp and libiberty.
2948
2949 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
2950
2951 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
2952 (extract_omp_for_data): Remove OpenACC special handling of
2953 chunking.
2954
2955 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
2956 (struct parallel): Update comment.
2957 (nvptx_reorg): Likewise.
2958 (nvptx_neuter): Cleanup whitespace.
2959
2960 2015-10-28 Richard Henderson <rth@redhat.com>
2961
2962 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
2963
2964 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2965
2966 PR target/67839
2967 * config/avr/predicates.md (low_io_address_operand): Don't
2968 consider MODE when computing upper bound.
2969 (io_address_operand): Likewise.
2970
2971 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
2972
2973 * fold-const.c (operand_equal_p): Do not verify that types are
2974 compatible for MEM_REFs.
2975
2976 2015-10-28 Richard Biener <rguenther@suse.de>
2977
2978 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
2979 in simplifying VEC_COND_EXPR conditions.
2980
2981 2015-10-28 Tom de Vries <tom@codesourcery.com>
2982
2983 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
2984 into vi_next of a full_var.
2985
2986 2015-10-28 Tom de Vries <tom@codesourcery.com>
2987
2988 * tree-ssa-structalias.c (new_var_info, make_heapvar)
2989 (make_constraint_from_restrict, make_constraint_from_global_restrict)
2990 (create_function_info_for, create_variable_info_for_1)
2991 (create_variable_info_for): Add and handle add_id parameter.
2992 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
2993 (init_base_vars): Add extra argument to calls to new_var_info.
2994 (get_vi_for_tree): Add extra argument to call to
2995 create_variable_info_for.
2996 (process_constraint, do_deref, process_all_all_constraints): Add extra
2997 argument to calls to new_scalar_tmp_constraint_exp.
2998 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
2999 argument to calls to make_heapvar.
3000 (make_restrict_var_constraints): Add extra argument to call to
3001 make_constraint_from_global_restrict.
3002 (intra_create_variable_infos): Add extra argument to call to
3003 create_variable_info_for_1.
3004 (ipa_pta_execute): Add extra argument to call to
3005 create_function_info_for.
3006
3007 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3008
3009 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
3010 (sibcall_value): Likewise.
3011
3012 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
3013
3014 * config/nvptx/nvptx.h (struct machine_function): Add
3015 axis_predicate.
3016 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
3017 nvptx_expand_oacc_join): Declare.
3018 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
3019 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
3020 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
3021 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
3022 UNSPECV_JOINING, UNSPECV_JOIN): New.
3023 (BITS, BITD): New mode iterators.
3024 (br_true_uni, br_false_uni): New.
3025 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
3026 (oacc_dim_size, oacc_dim_pos): New.
3027 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
3028 (oacc_fork, oacc_join): New.
3029 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
3030 (worker_load<mode>, worker_store<mode>): New.
3031 (nvptx_barsync): New.
3032 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
3033 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
3034 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
3035 worker_bcast_sym): New.
3036 (nvptx_option_override): Initialize worker broadcast buffer.
3037 (nvptx_emit_forking, nvptx_emit_joining): New.
3038 (nvptx_init_axis_predicate): New.
3039 (nvptx_declare_function_name): Init axis predicates.
3040 (nvptx_expand_call): Add fork/join markers around routine call.
3041 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
3042 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
3043 (nvptx_gen_vcast): New.
3044 (struct wcast_data_t): New.
3045 (enum propagate_mask): New.
3046 (nvptx_gen_wcast): New.
3047 (nvptx_print_operand): Add 'S' case.
3048 (struct parallel): New.
3049 (parallel::parallel, parallel::~parallel): New.
3050 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
3051 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
3052 nvptx_find_par, nvptx_discover_pars): New.
3053 (nvptx_propagate): New.
3054 (vprop_gen, nvptx_vpropagate): New.
3055 (wprop_gen, nvptx_wpropagate): New.
3056 (nvptx_wsync): New.
3057 (nvptx_single, nvptx_skip_par): New.
3058 (nvptx_process_pars, nvptx_neuter_pars): New.
3059 (ntptx_reorg): Split blocks, generate parallel structure, apply
3060 neutering.
3061 (nvptx_cannot_copy_insn_p): New.
3062 (nvptx_file_end): Emit worker broadcast decl.
3063 (nvptx_goacc_fork_join): New.
3064 (TARGET_CANNOT_COPY_INSN_P): Override.
3065 (TARGET_GOACC_FORK_JOIN): Override.
3066
3067 2015-10-28 Richard Biener <rguenther@suse.de>
3068
3069 * fold-const.c (negate_expr_p): Adjust the division case to
3070 properly avoid introducing undefined overflow.
3071 (fold_negate_expr): Likewise.
3072
3073 2015-10-28 Richard Biener <rguenther@suse.de>
3074
3075 PR tree-optimization/65962
3076 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3077 Avoid creating loop carried dependences also for outer loops
3078 of the loop a use to replace is in.
3079
3080 2015-10-28 Richard Biener <rguenther@suse.de>
3081
3082 * common.opt (fchecking): New flag controlling flag_checking.
3083 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
3084 * timevar.c (timer::print): Adjust output.
3085 * doc/invoke.texi (fchecking): Document.
3086
3087 2015-10-28 Richard Biener <rguenther@suse.de>
3088
3089 PR middle-end/68067
3090 * fold-const.c (negate_expr_p): We cannot negate plus or minus
3091 if overflow is not wrapping. Likewise multiplication unless
3092 one operand is constant and not power of two.
3093 (fold_negate_expr): Adjust accordingly.
3094
3095 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3096
3097 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
3098 fields.
3099 (is_oacc_parallel, is_oacc_kernels): New.
3100 (enclosing_target_ctx): May return NULL.
3101 (ctx_in_oacc_kernels_region): New.
3102 (check_oacc_kernel_gwv): New.
3103 (oacc_loop_or_target_p): Delete.
3104 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
3105 operands. Strip reductions fro kernels.
3106 (scan_omp_target): Don't calculate gwv mask.
3107 (lower_oacc_head_mark, lower_oacc_loop_marker,
3108 lower_oacc_head_tail): New.
3109 (struct oacc_collapse): New.
3110 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
3111 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3112 Remove OpenACC handling.
3113 (expand_oacc_for): New.
3114 (expand_omp_for): Call expand_oacc_for.
3115 (lower_omp_for): Call lower_oacc_head_tail.
3116
3117 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
3118
3119 * attribs.c (check_attribute_tables): New function, broken out from...
3120 (init_attributes): Use it.
3121 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
3122 gcc_checking_assert and checking_* functions to eliminate
3123 ENABLE_CHECKING conditionals.
3124 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
3125 (pass_expand::execute): Likewise.
3126 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
3127 * cgraphunit.c (mark_functions_to_output): Likewise.
3128 (cgraph_node::expand_thunk): Likewise.
3129 (symbol_table::compile): Likewise.
3130 * ddg.c (add_cross_iteration_register_deps): Likewise.
3131 (create_ddg_all_sccs): Likewise.
3132 * df-core.c (df_finish_pass, df_analyze): Likewise.
3133 * diagnostic-core.h: Likewise.
3134 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
3135 * dominance.c (calculate_dominance_info): Likewise.
3136 * dwarf2out.c (add_AT_die_ref): Likewise.
3137 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
3138 (loc_list_from_tree, gen_lexical_block_die): Likewise.
3139 gen_type_die_with_usage, gen_type_die): Likewise.
3140 (dwarf2out_decl): Likewise.
3141 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
3142 * except.c (duplicate_eh_regions): Likewise.
3143 * fwprop.c (register_active_defs, update_df_init): Likewise.
3144 (fwprop_init, fwprop_done): Likewise.
3145 (update_uses): Likewise.
3146 * ggc-page.c (ggc_grow): Likewise.
3147 * gimplify.c (gimplify_body): Likewise.
3148 (gimplify_hasher::equal): Likewise.
3149 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
3150 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
3151 Likewise.
3152 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
3153 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
3154 * hash-table.h (::find_empty_slot_for_expand): Likewise.
3155 * ifcvt.c (if_convert): Likewise.
3156 * ipa-cp.c (ipcp_propagate_stage): Likewise.
3157 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
3158 (odr_type_p, odr_types_equivalent_p): Likewise.
3159 (add_type_duplicate, get_odr_type): Likewise.
3160 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
3161 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
3162 (sem_item_optimizer::verify_classes): Likewise.
3163 (sem_item_optimizer::traverse_congruence_split): Likewise.
3164 (sem_item_optimizer::checking_verify_classes): New.
3165 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
3166 method.
3167 * cfgrtl.c (commit_edge_insertions): Likewise.
3168 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
3169 (rtl_flow_call_edges_add): Likewise.
3170 * cgraph.c (symbol_table::create_edge): Likewise.
3171 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3172 * cgraph.h (symtab_node): Likewise.
3173 (symtab_node::checking_verify_symtab_nodes): Define.
3174 (cgraph_node::checking_verify_cgraph_nodes): Define.
3175 * cfghooks.h (checking_verify_flow_info): Define.
3176 * cfgloop.h (checking_verify_loop_structure): Define.
3177 * dominance.h (checking_verify_dominators): Define.
3178 * et-forest.c: Fix comment.
3179 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
3180 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3181 ENABLE_CHECKING conditionals.
3182 * ipa-inline-transform.c (save_inline_function_body): Likewise.
3183 * ipa-inline.c (inline_small_functions): Likewise.
3184 (early_inliner): Likewise.
3185 * ipa-inline.h (estimate_edge_growth): Likewise.
3186 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3187 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3188 (ipa_single_use): Likewise.
3189 * ira-int.h: Likewise.
3190 * ira.c (ira): Likewise.
3191 * loop-doloop.c (doloop_optimize_loops): Likewise.
3192 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
3193 * loop-invariant.c (move_loop_invariants): Likewise.
3194 * lra-assigns.c (lra_assign): Likewise.
3195 * lra-constraints.c (lra_constraints): Likewise.
3196 * lra-eliminations.c (lra_eliminate): Likewise.
3197 * lra-int.h (struct lra_reg): Likewise.
3198 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
3199 (lra_create_live_ranges_1): Likewise.
3200 * lra-remat.c (create_remat_bb_data): Likewise.
3201 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
3202 (lra): Likewise.
3203 (check_rtl): Always define. Remove incorrect guard around
3204 extract_constrain_insn call.
3205 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
3206 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3207 ENABLE_CHECKING conditionals.
3208 * lto-streamer-out.c (DFS::DFS): Likewise.
3209 (lto_output): Likewise.
3210 * lto-streamer.c (lto_streamer_init): Likewise.
3211 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
3212 expand_omp_target, execute_expand_omp): Likewise.
3213 (lower_omp_target): Likewise.
3214 * passes.c (execute_function_todo): Likewise.
3215 (execute_todo, execute_one_pass): Likewise.
3216 (verify_curr_properties): Always define.
3217 * predict.c (tree_estimate_probability: Use flag_checking,
3218 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3219 ENABLE_CHECKING conditionals.
3220 (propagate_freq): Likewise.
3221 * pretty-print.c (pp_format): Likewise.
3222 * real.c (real_to_decimal_for_mode): Likewise.
3223 * recog.c (split_all_insns): Likewise.
3224 * regcprop.c (kill_value_one_regno): Likewise.
3225 (copy_value): Likewise.
3226 (validate_value_data): Define unconditionally.
3227 * reload.c: Fix comment.
3228 * timevar.c: Include options.h
3229 * tree-ssa.h (checking_verify_ssa): Define.
3230 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
3231 * sched-deps.c (CHECK): Remove unused macro.
3232 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
3233 gcc_checking_assert and checking_* functions to eliminate
3234 ENABLE_CHECKING conditionals.
3235 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
3236 * sel-sched.c (struct moveop_static_params): Likewise.
3237 (find_best_reg_for_expr, move_cond_jump): Likewise.
3238 (move_op_orig_expr_not_found): Likewise.
3239 (code_motion_process_successors, move_op): Likewise.
3240 * ssa-iterators.h (first_readonly_imm_use): Likewise.
3241 (next_readonly_imm_use): Likewise.
3242 * store-motion.c (compute_store_table): Likewise.
3243 * symbol-summary.h (function_summary::function_summary): Likewise.
3244 * target.h (cumulative_args_t): Likewise.
3245 (get_cumulative_args, pack_cumulative_args): Likewise.
3246 * timevar.c: (timer::print): Likewise.
3247 * trans-mem.c (ipa_tm_execute): Likewise.
3248 * tree-cfg.c (move_stmt_op): Likewise.
3249 (move_sese_region_to_fn): Likewise.
3250 (gimple_flow_call_edges_add): Likewise.
3251 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
3252 Likewise.
3253 * tree-eh.c (remove_unreachable_handlers): Likewise.
3254 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
3255 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
3256 * tree-into-ssa.c (update_ssa): Likewise.
3257 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
3258 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
3259 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
3260 * tree-predcom.c (suitable_component_p): Likewise.
3261 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
3262 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
3263 * tree-ssa-live.c (verify_live_on_entry): Likewise.
3264 * tree-ssa-live.h (register_ssa_partition): Likewise.
3265 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
3266 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
3267 (tree_transform_and_unroll_loop): Likewise.
3268 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3269 * tree-ssa-operands.c (get_expr_operands): Likewise.
3270 * tree-ssa-propagate.c (replace_exp_1): Likewise.
3271 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
3272 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
3273 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
3274 * tree-ssanames.c (release_ssa_name_fn): Likewise.
3275 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
3276 * tree-vect-loop-manip.c
3277 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
3278 (slpeel_checking_verify_cfg_after_peeling): Likewise.
3279 (vect_do_peeling_for_loop_bound): Likewise.
3280 (vect_do_peeling_for_alignment): Likewise.
3281 * tree-vrp.c (supports_overflow_infinity): Likewise.
3282 (set_value_range): Likewise.
3283 * tree.c (free_lang_data_in_cgraph): Likewise.
3284 * value-prof.c (gimple_remove_histogram_value): Likewise.
3285 (free_hist): Likewise.
3286 * var-tracking.c (canonicalize_values_star): Likewise.
3287 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
3288
3289 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3290
3291 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
3292 IFN_GOACC_LOOP): New.
3293 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
3294 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
3295 IFN_UNIQUE_OACC_TAIL_MARK.
3296 (enum ifn_goacc_loop_kind): New.
3297 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
3298 IFN_UNIQUE_OACC_JOIN cases.
3299 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
3300 (expand_GOACC_LOOP): New.
3301 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
3302 * omp-low.c: Include gimple-pretty-print.h.
3303 (struct oacc_loop): New.
3304 (enum oacc_loop_flags): New.
3305 (oacc_thread_numbers): New.
3306 (oacc_xform_loop): New.
3307 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
3308 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
3309 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
3310 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
3311 oacc_loop_discovery): New.
3312 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
3313 oacc_loop_process): New.
3314 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
3315 (execute_oacc_device_lower): Discover & process loops. Process
3316 internal fns.
3317 * target.def (goacc.fork_join): Change sense of hook, clarify
3318 documentation.
3319 * doc/tm.texi: Regenerated.
3320
3321 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3322
3323 * target-insns.def (oacc_fork, oacc_join): Define.
3324 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
3325 (goacc.fork_join): New GOACC hook.
3326 * targhooks.h (default_goacc_fork_join): Declare.
3327 * omp-low.c (default_goacc_forkjoin): New.
3328 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
3329 * doc/tm.texi: Regenerate.
3330
3331 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3332
3333 * omp-low.c (oacc_init_rediction_array): New.
3334 (oacc_initialize_reduction_data): Initialize array.
3335
3336 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3337
3338 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
3339
3340 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3341
3342 * internal-fn.c (expand_UNIQUE): New.
3343 * internal-fn.h (enum ifn_unique_kind): New.
3344 * internal-fn.def (IFN_UNIQUE): New.
3345 * target-insns.def (unique): Define.
3346 * gimple.h (gimple_call_internal_unique_p): New.
3347 * gimple.c (gimple_call_same_target_p): Check internal fn
3348 uniqueness.
3349 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
3350 * tree-ssa-threadedge.c
3351 (record_temporary_equivalences_from_stmts): Likewise.
3352 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
3353
3354 2015-10-27 Richard Henderson <rth@redhat.com>
3355
3356 PR rtl-opt/67609
3357 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
3358 narrowing subregs on SSE and MMX registers.
3359 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
3360 appear to be sub-words of multi-register pseudos must be rejected.
3361 * doc/tm.texi: Regenerate.
3362
3363 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3364
3365 PR target/68102
3366 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
3367 operands[0] is a reg before taking its REGNO in split condition.
3368 (*movdi_aarch64): Likewise.
3369
3370 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3371
3372 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
3373 Handle floating point inner modes properly.
3374
3375 2015-10-27 Alan Hayward <alan.hayward@arm.com>
3376
3377 * tree-vect-looop.c
3378 (vectorizable_live_operation): Change iterator.
3379
3380 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3381 Aditya Kumar <aditya.k7@samsung.com>
3382
3383 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
3384 function to schedule based on isl_schedule_node.
3385 (get_schedule_map_st): New schedule optimizer based on
3386 isl_schedule_node.
3387 (scop_get_domains): New. Return the isl_union_set containing the
3388 domains of all the pbbs.
3389 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
3390
3391 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
3392
3393 PR target/67215
3394 * calls.c (prepare_call_address): Don't handle -fno-plt here.
3395 * config/i386/i386.c (ix86_expand_call): Generate indirect call
3396 via GOT for -fno-plt. Support indirect call via GOT for x32.
3397 * config/i386/predicates.md (sibcall_memory_operand): Allow
3398 GOT memory operand.
3399
3400 2015-10-27 Richard Biener <rguenther@suse.de>
3401
3402 PR tree-optimization/68104
3403 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
3404 strided access check ...
3405 (vect_compute_data_refs_alignment): ... here.
3406
3407 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
3408 Joseph Myers <joseph@codesourcery.com>
3409 Mark Shinwell <shinwell@codesourcery.com>
3410 Andrew Stubbs <ams@codesourcery.com>
3411 Rich Felker <dalias@libc.org>
3412
3413 * config.gcc: Handle --enable-fdpic.
3414 * config/sh/constraints.md (Ccl): New constraint.
3415 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
3416 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
3417 __SH_FDPIC__.
3418 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
3419 library functions.
3420 * config/sh/sh-protos.h (function_symbol_result): New struct.
3421 (function_symbol): Return function_symbol_result.
3422 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
3423 declarations.
3424 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
3425 target hook.
3426 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
3427 (sh_option_override): Force -fPIC if FDPIC is in effect.
3428 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
3429 UNSPEC_GOTOFFFUNCDESC cases.
3430 (prepare_move_operands): Use FDPIC initial GOT register for
3431 TLS-related GOT access; inhibit cross-section address offset constants
3432 for FDPIC.
3433 (sh_assemble_integer): New function.
3434 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
3435 PC-relative call sites.
3436 (expand_ashiftrt): Adapt invocation of function_symbol.
3437 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
3438 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
3439 UNSPEC_GOTOFFFUNCDESC.
3440 (legitimize_pic_address): Resolve function symbols to function
3441 descriptors for FDPIC. Do not use GOT-relative addressing for local
3442 data that may be read-only on FDPIC.
3443 (sh_emit_storesi, sh_emit_storehi): New functions.
3444 (sh_trampoline_init): Generate FDPIC trampolines.
3445 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
3446 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
3447 (sh_output_mi_thunk): Generate FDPIC call.
3448 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
3449 FDPIC, generate call site labels to use PC-relative addressing rather
3450 than GOT-relative addressing.
3451 (sh_conditional_register_usage): Make PIC register fixed and call used
3452 when FDPIC is in effect.
3453 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
3454 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
3455 sh_get_fdpic_reg_initial_val): New functions.
3456 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
3457 Handle -mfdpic.
3458 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
3459 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
3460 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
3461 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
3462 FDPIC_SELF_SPECS.
3463 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
3464 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
3465 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
3466 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
3467 constants.
3468 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
3469 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
3470 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
3471 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
3472 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
3473 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
3474 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
3475 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
3476 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
3477 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
3478 block_move_real, block_lump_real, block_move_real_i4,
3479 block_lump_real_i4): Add support for FDPIC calls.
3480 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
3481 call_value_pop): Adjust for new function_symbol signature.
3482 * config/sh/sh.opt (-mfdpic): New option.
3483 * doc/install.texi (Options specification): Document --enable-fdpic.
3484 * doc/invoke.texi (SH Options): Document -mfdpic.
3485
3486
3487 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
3488
3489 PR tree-optimization/65963
3490 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
3491 LSHIFT_EXPRs as equivalent MULT_EXPRs.
3492
3493 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3494
3495 PR target/67929
3496 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
3497 * config/arm/constraints.md (Dp): Update callsite.
3498 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
3499
3500 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3501
3502 * builtins.c (fold_builtin_load_exponent): Rename to...
3503 (fold_const_builtin_load_exponent): ...this and only handle
3504 constant arguments.
3505 (fold_builtin_2): Update accordingly.
3506 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
3507
3508 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3509
3510 * builtins.c (fold_builtin_logb): Rename to...
3511 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
3512 (fold_builtin_significand): Rename to...
3513 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
3514 (fold_builtin_1): Update accordingly.
3515
3516 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3517
3518 * builtins.c (fold_builtin_fmin_fmax): Delete.
3519 (fold_builtin_2): Handle constant fmin and fmax arguments here.
3520 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
3521
3522 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
3523
3524 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
3525 for register extension into sign and zero register extension.
3526 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
3527 for sign and zero register extension.
3528 (cortexa57_addrcost_table): Likewise.
3529 (xgene1_addrcost_table): Likewise.
3530
3531 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3532
3533 * fold-const.c (fold_minmax): Delete.
3534 (fold_binary_loc): Don't call it.
3535 * match.pd: Add rules previously handled by fold_minmax.
3536
3537 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3538
3539 * builtins.c (fold_builtin_fma): Remove constant handling.
3540 (fold_builtin_3): Handle constant fma arguments here.
3541
3542 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3543
3544 * builtins.c (fold_builtin_fabs): Remove constant handling.
3545 (fold_builtin_abs): Likewise.
3546
3547 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3548
3549 * builtins.c (fold_builtin_copysign): Delete.
3550 (fold_builtin_2): Handle constant copysign arguments here.
3551 * match.pd: Add rules previously handled by fold_builtin_copysign.
3552
3553 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3554
3555 * builtins.c (fold_builtin_signbit): Delete.
3556 (fold_builtin_2): Handle constant signbit arguments here.
3557 * match.pd: Add rules previously handled by fold_builtin_signbit.
3558
3559 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3560
3561 * match.pd: Handle sqrt(x) cmp 0 specially.
3562
3563 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
3564
3565 * tree-vect-generic.c (expand_vector_operations_1): Check
3566 optab type before using it.
3567
3568 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3569
3570 * config/aarch64/aarch64-protos.h
3571 (struct tune_params): Add autoprefetcher_model field.
3572 * config/aarch64/aarch64.c: Include params.h
3573 (generic_tunings): Specify autoprefetcher_model value.
3574 (cortexa53_tunings): Likewise.
3575 (cortexa57_tunings): Likewise.
3576 (cortexa72_tunings): Likewise.
3577 (thunderx_tunings): Likewise.
3578 (xgene1_tunings): Likewise.
3579 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
3580 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
3581 (aarch64_override_options_internal): Set
3582 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
3583
3584 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3585
3586 * builtins.c (fold_builtin_exponent): Delete.
3587 (fold_builtin_2): Handle constant expN arguments here.
3588 * match.pd: Fold expN(logN(x)) -> x.
3589
3590 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3591
3592 * builtins.c (fold_builtin_powi): Delete.
3593 (fold_builtin_2): Handle constant powi arguments here.
3594 * match.pd: Add rules previously handled by fold_builtin_powi.
3595
3596 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3597
3598 * builtins.c (fold_builtin_pow): Delete in favor of...
3599 (fold_const_builtin_pow): ...this new function. Only handle constant
3600 arguments.
3601 (fold_builtin_2): Update accordingly.
3602 * match.pd: Add rules previously handled by fold_builtin_pow.
3603
3604 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3605
3606 * builtins.c (fold_builtin_hypot): Delete.
3607 (fold_builtin_2): Handle constant hypot arguments here.
3608 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
3609 hypot(x, x) to fabs(x)*sqrt(2).
3610
3611 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3612
3613 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
3614 instead of make_ssa_name if not yet in SSA form.
3615
3616 2015-10-27 Richard Biener <rguenther@suse.de>
3617
3618 * cfg.c (free_edge): Add function argument and use it instead of cfun.
3619 (clear_edges): Likewise.
3620 * cfg.h (clear_edges): Adjust prototype.
3621 * cfgexpand.c (pass_expand::execute): Adjust.
3622 * cfgloop.c (release_recorded_exits): Add function argument and use
3623 it instead of cfun.
3624 * cfgloop.h (release_recorded_exits): Adjust prototype.
3625 (loops_state_satisfies_p): Add overload with function argument.
3626 (loops_state_set): Likewise.
3627 (loops_state_clear): Likewise.
3628 (struct loop_iterator): Add function argument to constructor
3629 and iterator and use it instead of cfun.
3630 (FOR_EACH_LOOP_FN): New macro.
3631 (loop_optimizer_finalize): Add overload with function argument.
3632 * loop-init.c (loop_optimizer_init): Adjust.
3633 (fix_loop_structure): Likewise.
3634 (loop_optimizer_finaliz): Add function argument and use it
3635 instead of cfun.
3636 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
3637 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
3638 * cgraph.c (release_function_body): Do not push/pop cfun.
3639 * final.c (rest_of_clean_state): Adjust.
3640 * graphite.c (graphite_finalize): Likewise.
3641 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3642 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
3643 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
3644 (tree_unroll_loops_completely): Likewise.
3645 (pass_complete_unrolli::execute): Likewise.
3646 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
3647 Add function argument and use it instead of cfun.
3648 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
3649 Adjust prototype.
3650 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
3651 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
3652 instead of cfun.
3653 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
3654 * tree-ssanames.c (fini_ssanames): Add function argument and use it
3655 instead of cfun.
3656 * tree-ssanames.c (fini_ssanames): Adjust prototype.
3657 * tree-vrp.c (execute_vrp): Adjust.
3658 * value-prof.c (free_histograms): Add function argument and use it
3659 instead of cfun.
3660 * value-prof.h (free_histograms): Adjust prototype.
3661
3662 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
3663
3664 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
3665 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
3666 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
3667
3668 2015-10-27 Tom de Vries <tom@codesourcery.com>
3669
3670 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
3671 field_type.
3672
3673 2015-10-27 Bin Cheng <bin.cheng@arm.com>
3674
3675 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
3676 (inv_can_prop_to_addr_use): New function.
3677 (record_use): Call can_prop_to_addr_uses, set the new field.
3678 (get_inv_cost): Count cost if inv can't be propagated into its
3679 address uses.
3680
3681 2015-10-26 Doug Evans <dje@google.com>
3682
3683 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
3684
3685 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
3686
3687 * match.pd (fold_widened_comparison): Apply simplifications to all
3688 integral types.
3689
3690 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
3691
3692 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
3693 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
3694 * doc/tm.texi: Regenerated.
3695 * reorg.c (dbr_schedule): Use new hook.
3696 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
3697
3698 2015-10-26 Jeff Law <law@redhat.com>
3699
3700 PR tree-optimization/68013
3701 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3702 Make sure the first block in the path is in VISITED_BBs.
3703
3704 2015-10-26 Richard Biener <rguenther@suse.de>
3705 Dominik Vogt <vogt@linux.vnet.ibm.com>
3706
3707 PR middle-end/67443
3708 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
3709 Properly prune ref->ref for accesses outside of ref.
3710
3711 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
3712
3713 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
3714 new statements to be inserted if inplace. Allow calls to have
3715 nonempty sequences.
3716
3717 2015-10-26 Richard Biener <rguenther@suse.de>
3718
3719 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
3720 (do_valueize): New function.
3721 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
3722 replace_uses_by.
3723 * tree-ssa-threadedge.c: Remove builtins.h include, include
3724 gimple-fold.h
3725 (fold_assignment_stmt): Remove.
3726 (threadedge_valueize): New function.
3727 (record_temporary_equivalences_from_stmts): Use
3728 gimple_fold_stmt_to_constant_1, note additional cleanup
3729 opportunities.
3730
3731 2015-10-26 Richard Biener <rguenther@suse.de>
3732
3733 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
3734 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
3735
3736 2015-10-26 Alan Hayward <alan.hayward@arm.com>
3737
3738 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3739 VEC_COND_EXPR types.
3740
3741 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3742
3743 * auto-inc-dec.c (insert_move_insn_before): Delete.
3744 (attempt_change): Remember to cost the simple move in the
3745 FORM_PRE_ADD and FORM_POST_ADD cases.
3746
3747 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
3748
3749 PR target/68091
3750 * config/sh/sh.c (sh_vector_mode_supported_p): Use
3751 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
3752
3753 2015-10-26 Tom de Vries <tom@codesourcery.com>
3754
3755 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
3756 factored out of ...
3757 (intra_create_variable_infos): ... here.
3758
3759 2015-10-26 Tom de Vries <tom@codesourcery.com>
3760
3761 * tree-ssa-structalias.c (intra_create_variable_infos): Add
3762 restrict_pointer_p and recursive_restrict_p variables.
3763
3764 2015-10-26 Tom de Vries <tom@codesourcery.com>
3765
3766 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
3767 get_vi_for_tree call.
3768
3769 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3770
3771 PR middle-end/67989
3772 * optabs.c (expand_atomic_compare_and_swap): Handle case when
3773 ptarget_oval or ptarget_bool are const0_rtx.
3774
3775 2015-10-26 Christian Bruel <christian.bruel@st.com>
3776
3777 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
3778 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
3779 * cp/method.c (implicitly_declare_fn): Likewise.
3780 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
3781 * java/class.c (add_method_1): Likewise.
3782
3783 2015-10-26 Richard Biener <rguenther@suse.de>
3784
3785 * alloc-pool.h (base_pool_allocator): Use placement new.
3786 (base_pool_allocator::remove): Likewise. Compute size outside of
3787 flag_checking.
3788
3789 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
3790
3791 * builtins.c (do_real_to_int_conversion): New function.
3792 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
3793 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
3794 arguments here.
3795 * match.pd: Add rules previously handled by fold_fixed_mathfn
3796 and fold_builtin_int_roundingfn.
3797
3798 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
3799
3800 * match.pd: Use macros to define built-in operator lists.
3801
3802 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
3803 Richard Biener <rguenther@suse.de>
3804
3805 * genmatch.c (dt_simplify::gen): Skip captures that are
3806 part of the result.
3807 (parser::parse_expr): Allow captures in results too.
3808 * builtins.c (fold_builtin_cexp): Delete.
3809 (fold_builtin_1): Handle constant cexp arguments here.
3810 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
3811
3812 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
3813
3814 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
3815 conditional compilation.
3816 (base_pool_allocator::remove): Use flag_checking.
3817
3818 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
3819
3820 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
3821
3822 PR middle-end/68079
3823 * dojump.c (do_compare_and_jump): Canonicalize both function and
3824 method types.
3825
3826 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
3827
3828 PR target/68084
3829 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
3830 for =@ccae.
3831
3832 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3833
3834 PR ipa/pr67600
3835 * ipa-polymorphic-call.c
3836 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
3837 instance offset with offset of outer type.
3838
3839 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3840
3841 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
3842
3843 2015-10-23 Caroline Tice <cmtice@google.com>
3844
3845 (from Richard Biener
3846 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
3847 call to iterative_hash_host_wide_int.
3848
3849 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
3850
3851 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
3852 Define as yes.
3853
3854 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3855
3856 * tree-vect-generic.c (expand_vector_operations_1): Check
3857 optab exists before use it.
3858
3859 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3860
3861 * tree-vect-generic.c (expand_vector_condition): Avoid
3862 uninitialized variable warning.
3863
3864 2015-10-23 Jeff Law <law@redhat.com>
3865
3866 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
3867 here. Instead...
3868 (execute_todo): Call it here.
3869 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
3870 statistics
3871 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
3872
3873 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
3874 Szabolcs Nagy <szabolcs.nagy@arm.com>
3875
3876 * config.gcc (enable_secureplt): Add *-linux*-musl*.
3877
3878 2015-10-23 Jeff Law <law@redhat.com>
3879
3880 PR tree-optimization/67830
3881 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
3882 Explicitly verify the mask has no bits outside the type of
3883 the innermost operands.
3884
3885 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
3886 Szabolcs Nagy <szabolcs.nagy@arm.com>
3887
3888 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
3889 (MUSL_DYNAMIC_LINKER64): Define.
3890 (GNU_USER_DYNAMIC_LINKER32): Update.
3891 (GNU_USER_DYNAMIC_LINKER64): Update.
3892 (CHOOSE_DYNAMIC_LINKER): Update.
3893
3894 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
3895 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
3896 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
3897 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
3898 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
3899 (CHOOSE_DYNAMIC_LINKER): Update.
3900 (INCLUDE_DEFAULTS): Redefine.
3901
3902 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
3903
3904 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3905
3906 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
3907 comparing addresses.
3908
3909 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3910
3911 * fold-const.c (operand_equal_p): Handle matching of vector
3912 constructors.
3913
3914 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
3915
3916 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
3917
3918 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
3919 Andrew Pinski <apinski@cavium.com>
3920
3921 PR rtl-optimization/67736
3922 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
3923 of gen_lowpart.
3924
3925 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3926
3927 PR middle-end/68066
3928 * tree.c (build_truth_vector_type): Support BLK mode
3929 returned for boolean vector.
3930
3931 2015-10-23 Alan Hayward <alan.hayward@arm.com>
3932
3933 PR tree-optimization/65947
3934 * tree-vect-loop.c
3935 (vect_is_simple_reduction_1): Find condition reductions.
3936 (vect_model_reduction_cost): Add condition reduction costs.
3937 (get_initial_def_for_reduction): Add condition reduction initial var.
3938 (vect_create_epilog_for_reduction): Add condition reduction epilog.
3939 (vectorizable_reduction): Condition reduction support.
3940 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
3941 * doc/sourcebuild.texi (Vector-specific attributes): Document
3942 vect_max_reduc
3943
3944 2015-10-23 Richard Biener <rguenther@suse.de>
3945
3946 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
3947 and builtins.def.
3948
3949 2015-10-23 Richard Biener <rguenther@suse.de>
3950 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3951
3952 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
3953 into (A ^ B) - B to match.pd
3954 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
3955
3956 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
3957 New simplifier.
3958 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
3959 New simplifier.
3960 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
3961 New simplifier.
3962 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
3963 New simplifier.
3964 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
3965 INTEGER_CST@1)): New simplifier.
3966
3967 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
3968
3969 * builtins.c (integer_valued_real_p): Move to fold-const.c.
3970 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
3971 (fold_builtin_ceil, fold_builtin_round): Delete.
3972 (fold_builtin_1): Handle constant trunc, floor, ceil and round
3973 arguments here.
3974 * convert.c (convert_to_real): Remove narrowing of rounding
3975 functions.
3976 * fold-const.h (integer_valued_real_unary_p)
3977 (integer_valued_real_binary_p, integer_valued_real_call_p)
3978 (integer_valued_real_single_p, integer_valued_real_p): Declare.
3979 * fold-const.c (tree_single_nonnegative_warnv_p): Move
3980 name_registered_for_update_p check to SSA_NAME case statement.
3981 Don't call tree_simple_nonnegative_warnv_p for SSA names.
3982 (integer_valued_real_unary_p, integer_valued_real_binary_p)
3983 (integer_valued_real_call_p, integer_valued_real_single_p)
3984 (integer_valued_real_invalid_p): New functions.
3985 (integer_valued_real_p): Move from fold-const.c and rework
3986 to call the functions above. Handle SSA names.
3987 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
3988 * gimple-fold.c (gimple_assign_integer_valued_real_p)
3989 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
3990 (gimple_stmt_integer_valued_real_p): New functions.
3991 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
3992 Fold f(x)->x for the same f if x is known to be integer-valued.
3993 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
3994 the result. Canonicalize floor(x) as trunc(x) if x is
3995 nonnegative.
3996
3997 2015-10-23 Tom de Vries <tom@codesourcery.com>
3998
3999 * tree-ssa-structalias.c (intra_create_variable_infos): Use
4000 make_constraint_from.
4001
4002 2015-10-23 Tom de Vries <tom@codesourcery.com>
4003
4004 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
4005 setting of is_full_var in case of a single field.
4006
4007 2015-10-22 Martin Sebor <msebor@redhat.com>
4008
4009 PR driver/68043
4010 * config/i386/i386.opt: Add missing periods to the ends of sentences.
4011 * config/msp430/msp430.opt: Same.
4012
4013 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
4014
4015 * doc/extend.exp (Global Register Variables): Rewrite.
4016
4017 2015-10-22 Jeff Law <law@redhat.com>
4018
4019 * genattrtab.c (main): If we do not have any annul-true or annul-false
4020 slots, then write out a dummy eligible_for_annul_true or
4021 eligible_for_annul_false as needed.
4022
4023 2015-10-22 Nick Clifton <nickc@redhat.com>
4024
4025 * config/msp430/msp430.opt: Add -msilicon-errata and
4026 -msilicon-errata-warn.
4027 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
4028 assembler.
4029 * doc/invoke.texi: Document new options.
4030
4031 2015-10-22 Richard Biener <rguenther@suse.de>
4032
4033 PR tree-optimization/58497
4034 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
4035 (expand_vector_operations_1): Use it. Lower operations on
4036 all uniform vectors to scalar operations if the HW supports it.
4037
4038 2015-10-22 Richard Biener <rguenther@suse.de>
4039
4040 PR tree-optimization/19049
4041 PR tree-optimization/65962
4042 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
4043 to strided accesses if single-element interleaving doesn't work.
4044
4045 2015-10-22 Richard Biener <rguenther@suse.de>
4046
4047 PR middle-end/68046
4048 PR middle-end/61893
4049 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
4050 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
4051 (expand_unop): Likewise.
4052
4053 2015-10-22 Richard Biener <rguenther@suse.de>
4054
4055 * fold-const.c (fold_addr_of_array_ref_difference): Properly
4056 convert operands before folding a MINUS_EXPR.
4057 (fold_binary_loc): Move simplification of MINUS_EXPR on
4058 converted POINTER_PLUS_EXPRs ...
4059 * match.pd: ... here.
4060
4061 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
4062
4063 * builtins.c (fold_builtin_tan): Delete.
4064 (fold_builtin_1): Handle constant tan arguments here.
4065 * match.pd: Simplify (tan (atan x)) to x.
4066
4067 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
4068
4069 * builtins.c (fold_builtin_cproj): Delete.
4070 (fold_builtin_1): Handle constant arguments here.
4071 (build_complex_cproj): Move and rename to...
4072 * tree.c: (build_complex_inf): ...this.
4073 * tree.h (build_complex_inf): Declare.
4074 * match.pd: Fold cproj(x)->x if x has no infinity.
4075 Use build_complex_inf for existing cproj rules.
4076
4077 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4078
4079 PR target/68015
4080 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
4081 already have a comparison result.
4082
4083 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4084
4085 PR target/63304
4086 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
4087 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
4088 (aarch64_classify_address): Likewise.
4089 (aarch64_secondary_reload): Likewise.
4090 (aarch64_override_options_after_change_1): Adjust.
4091 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
4092 Use aarch64_nopcrelative_literal_loads.
4093 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4094 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
4095 Declare.
4096
4097 2015-10-21 Martin Sebor <msebor@redhat.com>
4098
4099 PR driver/68043
4100 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
4101 (print_filtered_help): Reference aliased option's name and encourage
4102 readers to use it in preference to the alias if the former is not
4103 documented. Mention when using an option is diagnosed.
4104 * gcc.c (display_help): End each sentence with a period.
4105
4106 * common.opt: End each sentence that describes an option with
4107 a period.
4108 * config/aarch64/aarch64.opt: Same.
4109 * config/alpha/alpha.opt: Same.
4110 * config/arc/arc.opt: Same.
4111 * config/arm/arm.opt: Same.
4112 * config/avr/avr.opt: Same.
4113 * config/bfin/bfin.opt: Same.
4114 * config/c6x/c6x.opt: Same.
4115 * config/cr16/cr16.opt: Same.
4116 * config/cris/cris.opt: Same.
4117 * config/cris/linux.opt: Same.
4118 * config/darwin.opt: Same.
4119 * config/epiphany/epiphany.opt: Same.
4120 * config/fr30/fr30.opt: Same.
4121 * config/frv/frv.opt: Same.
4122 * config/ft32/ft32.opt: Same.
4123 * config/g.opt: Same.
4124 * config/h8300/h8300.opt: Same.
4125 * config/i386/cygming.opt: Same.
4126 * config/i386/djgpp.opt: Same.
4127 * config/i386/i386.opt: Same.
4128 * config/i386/interix.opt: Same.
4129 * config/i386/mingw-w64.opt: Same.
4130 * config/i386/mingw.opt: Same.
4131 * config/ia64/ia64.opt: Same.
4132 * config/ia64/ilp32.opt: Same.
4133 * config/iq2000/iq2000.opt: Same.
4134 * config/linux.opt: Same.
4135 * config/lm32/lm32.opt: Same.
4136 * config/lynx.opt: Same.
4137 * config/m32c/m32c.opt: Same.
4138 * config/m32r/m32r.opt: Same.
4139 * config/m68k/ieee.opt: Same.
4140 * config/m68k/m68k.opt: Same.
4141 * config/mcore/mcore.opt: Same.
4142 * config/mep/mep.opt: Same.
4143 * config/microblaze/microblaze.opt: Same.
4144 * config/mips/mips.opt: Same.
4145 * config/mmix/mmix.opt: Same.
4146 * config/mn10300/mn10300.opt: Same.
4147 * config/moxie/moxie.opt: Same.
4148 * config/msp430/msp430.opt: Same.
4149 * config/nios2/elf.opt: Same.
4150 * config/nios2/nios2.opt: Same.
4151 * config/nvptx/nvptx.opt: Same.
4152 * config/pa/pa-hpux.opt: Same.
4153 * config/pa/pa-hpux1010.opt: Same.
4154 * config/pa/pa-hpux1111.opt: Same.
4155 * config/pa/pa-hpux1131.opt: Same.
4156 * config/pa/pa.opt: Same.
4157 * config/pa/pa64-hpux.opt: Same.
4158 * config/pdp11/pdp11.opt: Same.
4159 * config/rl78/rl78.opt: Same.
4160 * config/rs6000/476.opt: Same.
4161 * config/rs6000/aix64.opt: Same.
4162 * config/rs6000/darwin.opt: Same.
4163 * config/rs6000/linux64.opt: Same.
4164 * config/rs6000/rs6000.opt: Same.
4165 * config/rs6000/sysv4.opt: Same.
4166 * config/s390/s390.opt: Same.
4167 * config/s390/tpf.opt: Same.
4168 * config/sh/sh.opt: Same.
4169 * config/sol2.opt: Same.
4170 * config/sparc/long-double-switch.opt: Same.
4171 * config/sparc/sparc.opt: Same.
4172 * config/spu/spu.opt: Same.
4173 * config/stormy16/stormy16.opt: Same.
4174 * config/tilegx/tilegx.opt: Same.
4175 * config/tilepro/tilepro.opt: Same.
4176 * config/v850/v850.opt: Same.
4177 * config/vax/vax.opt: Same.
4178 * config/visium/visium.opt: Same.
4179 * config/vms/vms.opt: Same.
4180 * config/vxworks.opt: Same.
4181 * config/xtensa/xtensa.opt: Same.
4182
4183 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4184 Sebastian Pop <s.pop@samsung.com>
4185
4186 * graphite-scop-detection.c (parameter_index_in_region): Update call to
4187 invariant_in_sese_p_rec.
4188 * graphite-sese-to-poly.c (extract_affine): Same.
4189 * sese.c (invariant_in_sese_p_rec): Pass in an extra
4190 parameter has_vdefs.
4191 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
4192 variable depends on virtual definitions in the current region.
4193 * sese.h (invariant_in_sese_p_rec): Update declaration.
4194
4195 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4196 Sebastian Pop <s.pop@samsung.com>
4197
4198 * graphite-scop-detection.c (build_scops): Do not handle scops
4199 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
4200 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
4201
4202 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
4203
4204 * config.in: Regenerate.
4205 * configure: Regenerate.
4206 * configure.ac (CHECKING_P): Define.
4207 * system.h: Use CHECKING_P.
4208
4209 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4210
4211 PR ipa/67056
4212 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
4213 is negative we don't know the type.
4214 (check_stmt_for_type_change): Skip constructors of non-polymorphic
4215 types as those won't help devirutalization.
4216
4217 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4218
4219 * fold-const.c (operand_equal_p): Add code matching empty constructors.
4220
4221 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
4222
4223 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
4224 comments.
4225 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
4226 Add comments on sign of the result.
4227 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
4228 Recurse on operand #1 instead of operand #0.
4229 <CEIL_MOD_EXPR>: Do not recurse.
4230 <ROUND_MOD_EXPR>: Likewise.
4231
4232 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4233
4234 * cfgrtl.c (pass_free_cfg::execute): Adjust.
4235 * final.c (dbr_sequence_length): Always define.
4236 (shorten_branches): Adjust.
4237 * genattr-common.c (main): Always define DELAY_SLOTS.
4238 * genattr.c (main): Unconditionally declare functions and define
4239 macros related to delay slots.
4240 * genattrtab.c (write_eligible_delay): Adjust.
4241 (main): Always write out delay slot functions.
4242 * opts.c (default_options_table): Adjust.
4243 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
4244 (redirect_with_delay_list_safe_p): Likewise.
4245 (fill_simple_delay_slots): Likewise.
4246 (fill_slots_from_thread): Likewise.
4247 (make_return_insns): Likewise.
4248 (dbr_schedule): Likewise.
4249 (rest_of_handle_delay_slots): Likewise.
4250 (pass_delay_slots::gate): Likewise.
4251 * toplev.c (process_options): Likewise.
4252
4253 2015-10-21 Richard Henderson <rth@redhat.com>
4254
4255 * targhooks.c (default_addr_space_pointer_mode): Remove check
4256 for generic address space.
4257 (default_addr_space_address_mode): Likewise.
4258 (default_addr_space_valid_pointer_mode): Likewise.
4259 (default_addr_space_legitimate_address_p): Likewise.
4260 (default_addr_space_legitimize_address): Likewise.
4261 * target.def (addr_space.pointer_mode): Update documentation
4262 of default behavior.
4263 (addr_space.address_mode): Likewise.
4264 * tm.texi: Update.
4265
4266 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
4267 address spaces.
4268
4269 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4270
4271 * builtins.c (fold_builtin_cabs): Delete.
4272 (fold_builtin_1): Update accordingly. Handle constant arguments here.
4273 * match.pd: Add rules previously handled by fold_builtin_cabs.
4274
4275 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4276
4277 * fold-const.h (fold_strip_sign_ops): Delete.
4278 * fold-const.c (fold_strip_sign_ops): Likewise.
4279 (fold_unary_loc, fold_binary_loc): Remove calls to it.
4280 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
4281 (fold_builtin_ccos): Delete.
4282 (fold_builtin_pow): Don't call fold_strip_sign_ops.
4283 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
4284 Remove fndecl argument.
4285 (fold_builtin_1): Update calls accordingly. Handle constant
4286 cos, cosh, ccos and ccosh here.
4287
4288 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4289
4290 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
4291 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
4292 * common.opt (fssa-backprop): New option.
4293 * fold-const.h (negate_mathfn_p): Declare.
4294 * fold-const.c (negate_mathfn_p): Make public.
4295 * timevar.def (TV_TREE_BACKPROP): New.
4296 * tree-pass.h (make_pass_backprop): Declare.
4297 * passes.def (pass_backprop): Add.
4298 * gimple-ssa-backprop.c: New file.
4299
4300 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4301 Sebastian Pop <s.pop@samsung.com>
4302
4303 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
4304 Do not call create_empty_if_region_on_edge when cond_expr is true.
4305 (translate_isl_ast_node_for): Check whether a guard has been generated.
4306
4307 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4308
4309 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
4310 (operator=): Removed.
4311 (dr_info): Make alias_set number the last argument with default
4312 value of invalid_alias_set.
4313 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
4314 of dr_info.
4315 (rewrite_reductions_out_of_ssa): Iterate only through the
4316 basic blocks which are inside region.
4317 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
4318 * sese.h (struct sese_l): Removed assignment operator.
4319 (split_region_for_bb): Removed dead code.
4320
4321 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4322
4323 * graphite-poly.h (struct dr_info): Removed conversion constructor.
4324 (struct scop): Renamed scop::region to scop::scop_info
4325 (scop_set_region): Same.
4326 (SCOP_REGION): Removed
4327 (SCOP_CONTEXT): Removed.
4328 (POLY_SCOP_P): Removed.
4329 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
4330 Rename scop->region to scop->scop_info.
4331 (add_parameters_to_ivs_params): Same.
4332 (graphite_regenerate_ast_isl): Same.
4333 * graphite-poly.c (new_scop): Same.
4334 (free_scop): Same.
4335 (print_scop_params): Same.
4336 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
4337 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
4338 (dot_all_scops_1): Rename scop->region to scop->scop_info.
4339 (scop_detection::nb_pbbs_in_loops): Same.
4340 (find_scop_parameters): Same.
4341 (try_generate_gimple_bb): Same.
4342 (gather_bbs::before_dom_children): Same.
4343 (gather_bbs::after_dom_children): Same.
4344 (build_scops): Same.
4345 * graphite-sese-to-poly.c (build_scop_scattering): Same.
4346 (extract_affine_chrec): Same.
4347 (extract_affine): Same.
4348 (set_scop_parameter_dim): Same.
4349 (build_loop_iteration_domains): Same.
4350 (create_pw_aff_from_tree): Same.
4351 (add_param_constraints): Same.
4352 (build_scop_iteration_domain): Same.
4353 (build_scop_drs): Same.
4354 (analyze_drs_in_stmts): Same.
4355 (insert_out_of_ssa_copy_on_edge): Same.
4356 (rewrite_close_phi_out_of_ssa):Same.
4357 (rewrite_reductions_out_of_ssa):Same.
4358 (handle_scalar_deps_crossing_scop_limits):Same.
4359 (rewrite_cross_bb_scalar_deps):Same.
4360 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
4361 (build_poly_scop):Same.
4362 (build_alias_set): Use pointer to dr_info.
4363 * graphite.c (print_graphite_scop_statistics):
4364 (graphite_transform_loops):
4365 * sese.h (struct sese_l): Remove conversion constructor.
4366
4367 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4368
4369 PR middle-end/67966
4370 * tree.c (verify_type): Verify that TYPE_MODE match
4371 between TYPE_CANONICAL and type.
4372 * expr.c (store_expr_with_bounds): Revert my previous change.
4373 * expmed.c (store_bit_field_1): Revert prevoius change.
4374 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
4375 to match for all types.
4376
4377 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
4378
4379 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
4380 nesting.
4381
4382 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
4383
4384 * doc/tm.texi: Regenerated.
4385 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
4386 * stor-layout.c (layout_type): Use mode to get vector mask size.
4387 * target.def (get_mask_mode): New.
4388 * targhooks.c (default_get_mask_mode): New.
4389 * targhooks.h (default_get_mask_mode): New.
4390 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
4391 for boolean vector.
4392 * tree.c (MAX_BOOL_CACHED_PREC): New.
4393 (nonstandard_boolean_type_cache): New.
4394 (build_nonstandard_boolean_type): New.
4395 (make_vector_type): Vector mask has no canonical type.
4396 (build_truth_vector_type): New.
4397 (build_same_sized_truth_vector_type): New.
4398 (truth_type_for): Support vector masks.
4399 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
4400 (build_truth_vector_type): New.
4401 (build_same_sized_truth_vector_type): New.
4402 (build_nonstandard_boolean_type): New.
4403 * tree-cfg.c (verify_gimple_comparison) Require boolean
4404 vector type for vector comparison.
4405 (verify_gimple_assign_ternary): Likewise.
4406 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
4407 condition operand.
4408 * tree-vect-stmts.c (vectorizable_condition): Use boolean
4409 vector type for vector comparison.
4410 * tree-vect-generic.c (elem_op_func): Add new operand to hold
4411 vector type.
4412 (do_unop): Adjust to modified function type.
4413 (do_binop): Likewise.
4414 (do_plus_minus): Likewise.
4415 (do_negate); Likewise.
4416 (expand_vector_piecewise): Likewise.
4417 (do_cond): Likewise.
4418 (do_compare): Use comparison instead of condition.
4419 (expand_vector_divmod): Use boolean vector type for comparison.
4420 (expand_vector_operations_1): Skip scalar mask operations.
4421
4422 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
4423
4424 * omp-low.c (simd_clone_create): Set in_other_partition
4425 for created clones.
4426
4427 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
4428
4429 * doc/extend.exp (Local Register Variables): Rewrite.
4430
4431 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4432
4433 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
4434 and x*x in cases where the operands are sign ops. Extend these
4435 rules to handle copysign as a sign op (including for cos, cosh
4436 and pow, which already treated negate and abs as sign ops).
4437
4438 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
4439
4440 PR target/68018
4441 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
4442 for 64-bit MS_ABI targets also when default incoming stack boundary
4443 is overriden.
4444
4445 2015-10-21 Richard Biener <rguenther@suse.de>
4446
4447 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
4448 cond stmts, enhanced and split out from ...
4449 (vn_phi_eq): ... here.
4450
4451 2015-10-21 Richard Biener <rguenther@suse.de>
4452
4453 PR middle-end/68031
4454 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
4455 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
4456 (tree_single_nonnegative_warnv_p): ... here. For SSA names
4457 make sure they are not registered for update.
4458
4459 2015-10-21 Richard Biener <rguenther@suse.de>
4460
4461 PR tree-optimization/68026
4462 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
4463 unsigned VARYING values.
4464
4465 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
4466
4467 * asan.c (asan_emit_stack_protection): Don't pass local stack to
4468 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
4469 NULL and use local stack than.
4470 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
4471 in addition to __asan_init.
4472 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
4473 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
4474 * asan.h (asan_intercepted_p): Handle new string builtins.
4475 * ubsan.c (ubsan_use_new_style_p): New function.
4476 (ubsan_instrument_float_cast): If location is unknown, assign
4477 input_location to loc. Propagate loc to ubsan_create_data if
4478 ubsan_use_new_style_p returned true.
4479
4480 2015-10-21 Jeff Law <law@redhat.com>
4481
4482 * Makefile.in (OBJS): Remove sched-vis.c
4483 * sched-vis.c: Removed. Code moved into...
4484 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
4485 * rtl.h: Remove prototypes for functions now living in print-rtl.c
4486 * print-rtl.h Add prototypes for new functions in print-rtl.c.
4487 * auto-inc-dec.c: Include print-rtl.h
4488 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
4489 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
4490
4491 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
4492 ATTRIBUTE_UNUSED.
4493
4494 2015-10-21 Richard Biener <rguenther@suse.de>
4495 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4496
4497 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
4498 to match.pd.
4499 Move (a * (1 << b)) is (a << b) to match.pd.
4500 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
4501 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
4502 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
4503
4504 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
4505 New simplifier.
4506 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
4507 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
4508 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
4509 : New simplifier.
4510 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
4511 New simplifier.
4512 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
4513
4514 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
4515 Szabolcs Nagy <szabolcs.nagy@arm.com>
4516 Alan Modra <amodra@gmail.com>
4517
4518 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
4519 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
4520 (LINK_SPEC): Add %(link_secure_plt).
4521 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
4522 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
4523
4524 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
4525 Szabolcs Nagy <szabolcs.nagy@arm.com>
4526
4527 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
4528 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
4529
4530 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4531
4532 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
4533 New function.
4534 (fusion_load_store): Use it.
4535 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
4536 ldp and stp in VD modes.
4537 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
4538 (store_pair<mode>, VD): Likewise.
4539
4540 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
4541
4542 PR rtl-optimization/67609
4543 * lra-splill.c (lra_final_code_change): Don't remove all
4544 sub-registers.
4545
4546 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4547
4548 * simplify-rtx.c (simplify_binary_operation): If either operand was
4549 a constant pool reference use them if all other simplifications failed.
4550
4551 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4552
4553 * config/aarch64/aarch64.md
4554 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
4555 * config/aarch64/aarch64-simd.md
4556 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
4557 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
4558 (aarch64_fpconst_pow_of_2): New function.
4559 (aarch64_vec_fpconst_pow_of_2): Likewise.
4560 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
4561 prototype.
4562 (aarch64_vec_fpconst_pow_of_2): Likewise.
4563 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
4564 (aarch64_fp_vec_pow2): Likewise.
4565
4566 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
4567
4568 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
4569 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
4570 * config/alpha/alpha.c (alpha_function_arg_advance): Update
4571 ALPHA_ARG_SIZE usage.
4572 (alpha_arg_partial_bytes): Ditto.
4573
4574 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
4575
4576 PR target/66810
4577 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
4578 error_mark_node decls.
4579
4580 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
4581
4582 PR target/67963
4583 PR target/67985
4584 * common/config/i386/i386-common.c (ix86_handle_option): Remove
4585 OPT_miamcu handling.
4586 * config/i386/i386.c (PTA_NO_80387): New macro.
4587 (processor_alias_table): Add PTA_NO_80387 to lakemont.
4588 (ix86_option_override_internal): Update MASK_80387 from
4589 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
4590 SSE math only if 80387 is supported. Don't change
4591 MASK_FLOAT_RETURNS.
4592 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
4593 80387 is supported.
4594 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
4595 if TARGET_80387 is true and TARGET_IAMCU is false.
4596 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
4597 is true and TARGET_IAMCU_P is false.
4598
4599 2015-10-20 Richard Biener <rguenther@suse.de>
4600
4601 PR tree-optimization/68017
4602 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
4603
4604 2015-10-20 Martin Liska <mliska@suse.cz>
4605
4606 * cgraphclones.c (cgraph_node::create_virtual_clone):
4607 Verify cgraph_node.local.versionable instead of calling
4608 tree_versionable_function_p.
4609 * ipa-cp.c (determine_versionability): Save the information
4610 to ipa_node_params summary.
4611 (ipcp_versionable_function_p): Use it.
4612 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
4613 (ipcp_generate_summary): Do not compute cgraph_node
4614 versionability.
4615 * ipa-inline-analysis.c (inline_generate_summary): Compute
4616 versionability for all cgraph nodes.
4617 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
4618 ipa_node_params::versionability.
4619 * ipa-prop.h (struct ipa_node_params): Declare it.
4620
4621 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4622
4623 PR other/67868
4624 * varasm.c (assemble_variable): Move special vtv handling to..
4625 (handle_vtv_comdat_sections): .. here. New function.
4626 (output_object_block): Handle vtv sections.
4627
4628 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
4629
4630 PR target/66912
4631 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
4632
4633 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
4634
4635 * doc/extend.texi: Update documentation WRT inline functions.
4636
4637 2015-10-20 Alan Modra <amodra@gmail.com>
4638
4639 PR go/66870
4640 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
4641 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
4642 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
4643
4644 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
4645
4646 PR rtl-optimization/66790
4647 * df.h (DF_MIR): New macro.
4648 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
4649 (DF_MIR_INFO_BB): New macro.
4650 (DF_MIR_IN, DF_MIR_OUT): New macros.
4651 (struct df_mir_bb_info): New.
4652 (df_mir): New macro.
4653 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
4654 declarations.
4655 (df_mir_get_bb_info): New.
4656 * df-problems.c (struct df_mir_problem_data): New.
4657 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
4658 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
4659 df_mir_confluence_0, df_mir_confluence_n,
4660 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
4661 df_mir_bottom_dump, df_mir_verify_solution_start,
4662 df_mir_verify_solution_end): New.
4663 (problem_MIR): New.
4664 (df_mir_add_problem, df_mir_simulate_one_insn): New.
4665 * timevar.def (TV_DF_MIR): New.
4666 * ree.c: Include bitmap.h
4667 (add_removable_extension): Add an INIT_REGS parameter. Use it
4668 to skip zero-extensions that may get an uninitialized register.
4669 (find_removable_extensions): Compute must-initialized registers
4670 using the MIR dataflow problem. Update the call to
4671 add_removable_extension.
4672 (find_and_remove_re): Call df_mir_add_problem.
4673
4674 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
4675
4676 * common/config/mn10300/mn10300-common.c
4677 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
4678 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
4679
4680 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
4681
4682 * doc/extend.texi (Explicit Register Variables): Simplify and
4683 avoid unnecessary and confusion abbreviations. Update cross
4684 references.
4685 doc/implement-c.tex: Update cross reference.
4686
4687 2015-10-19 Jeff Law <law@redhat.com>
4688
4689 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
4690 that create irreducible loops unless the path elimiantes a multiway
4691 branch.
4692
4693 2015-10-19 Richard Biener <rguenther@suse.de>
4694
4695 PR tree-optimization/67975
4696 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
4697 * tree-cfg.c (extract_true_false_controlled_edges): Split out
4698 core worker from ...
4699 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
4700 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
4701 instead of block number for PHIs with two or one args.
4702 (vn_phi_eq): Compare edge predicates of PHIs that are in different
4703 blocks.
4704
4705 2015-10-19 Richard Biener <rguenther@suse.de>
4706
4707 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
4708 (gimple_stmt_nonnegative_warnv_p): Use it.
4709 * match.pd (CPROJ): New operator list.
4710 (cproj (complex ...)): Move simplifications from ...
4711 * builtins.c (fold_builtin_cproj): ... here.
4712
4713 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
4714
4715 * config/i386/i386.c (ix86_expand_vector_move): Use
4716 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
4717 alignment.
4718
4719 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
4720
4721 * doc/invoke.texi: Replace @optindex with @opindex.
4722
4723 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
4724
4725 PR target/67995
4726 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
4727 arch= is set, clear all bits in x_ix86_isa_flags, except for
4728 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
4729
4730 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
4731
4732 PR middle-end/68002
4733 * common.opt (fkeep-static-functions): New option.
4734 * doc/invoke.texi: Document it.
4735 * cgraphunit.c (cgraph_node::finalize_function): Use it.
4736
4737 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4738
4739 * sched-int.h (struct autopref_multipass_data_): Remove offset
4740 field. Add min_offset, max_offset, multi_mem_insn_p fields.
4741 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
4742 (autopref_multipass_init): Use it. Handle PARALLEL sets.
4743 (autopref_rank_data): New function.
4744 (autopref_rank_for_schedule): Use it.
4745 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
4746
4747 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
4748
4749 PR other/65800
4750 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
4751
4752 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4753
4754 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
4755 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
4756 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
4757 (STANDARD_STARTFILE_PREFIX_1): New.
4758 (STANDARD_STARTFILE_PREFIX_2): New.
4759
4760 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4761
4762 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
4763 (darwin_driver_init): Note a version-min when provided on the c/l.
4764 * config/darwin.h (%darwin_minversion): Remove.
4765 * config/i386/darwin.h: Likewise.
4766 * config/rs6000/darwin.h: Likewise.
4767 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
4768 rather than an arbitrary constant.
4769
4770 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4771
4772 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
4773 PPC, detect conflicts between -arch and multilib settings. Detect
4774 and warn about conflicts between multiple -arch definitions.
4775
4776 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4777
4778 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
4779
4780 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4781
4782 * lra-constraints.c (add_next_usage_insn): Change argument type
4783 from rtx to rtx_insn *.
4784
4785 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
4786
4787 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
4788 for Lakemont.
4789
4790 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
4791
4792 * config/tilepro/gen-mul-tables.cc: Adjust include files.
4793 * config/tilegx/mul-tables.c: Regenerate.
4794 * config/tilepro/mul-tables.c: Regenerate.
4795
4796 * config/tilegx/tilegx-c.c: Adjust include files.
4797 * config/tilegx/tilegx.c: Likewise.
4798 * config/tilepro/tilepro-c.c: Likewise.
4799 * config/tilepro/tilepro.c: Likewise.
4800 * config/aarch64/aarch64-builtins.c: Likewise.
4801 * config/aarch64/aarch64.c: Likewise.
4802 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4803 * config/alpha/alpha.c: Likewise.
4804 * config/arc/arc.c: Likewise.
4805 * config/arm/aarch-common.c: Likewise.
4806 * config/arm/arm-builtins.c: Likewise.
4807 * config/arm/arm-c.c: Likewise.
4808 * config/arm/arm.c: Likewise.
4809 * config/avr/avr-c.c: Likewise.
4810 * config/avr/avr-devices.c: Likewise.
4811 * config/avr/avr-log.c: Likewise.
4812 * config/avr/avr.c: Likewise.
4813 * config/bfin/bfin.c: Likewise.
4814 * config/c6x/c6x.c: Likewise.
4815 * config/cr16/cr16.c: Likewise.
4816 * config/cris/cris.c: Likewise.
4817 * config/darwin-c.c: Likewise.
4818 * config/darwin-driver.c: Likewise.
4819 * config/darwin.c: Likewise.
4820 * config/default-c.c: Likewise.
4821 * config/epiphany/epiphany.c: Likewise.
4822 * config/epiphany/mode-switch-use.c: Likewise.
4823 * config/epiphany/resolve-sw-modes.c: Likewise.
4824 * config/fr30/fr30.c: Likewise.
4825 * config/frv/frv.c: Likewise.
4826 * config/ft32/ft32.c: Likewise.
4827 * config/glibc-c.c: Likewise.
4828 * config/h8300/h8300.c: Likewise.
4829 * config/i386/host-cygwin.c: Likewise.
4830 * config/i386/host-mingw32.c: Likewise.
4831 * config/i386/i386-c.c: Likewise.
4832 * config/i386/i386.c: Likewise.
4833 * config/i386/msformat-c.c: Likewise.
4834 * config/i386/winnt-cxx.c: Likewise.
4835 * config/i386/winnt-stubs.c: Likewise.
4836 * config/i386/winnt.c: Likewise.
4837 * config/ia64/ia64-c.c: Likewise.
4838 * config/ia64/ia64.c: Likewise.
4839 * config/iq2000/iq2000.c: Likewise.
4840 * config/lm32/lm32.c: Likewise.
4841 * config/m32c/m32c-pragma.c: Likewise.
4842 * config/m32c/m32c.c: Likewise.
4843 * config/m32r/m32r.c: Likewise.
4844 * config/mcore/mcore.c: Likewise.
4845 * config/mep/mep-pragma.c: Likewise.
4846 * config/mep/mep.c: Likewise.
4847 * config/microblaze/microblaze-c.c: Likewise.
4848 * config/microblaze/microblaze.c: Likewise.
4849 * config/mips/mips-tables.opt
4850 * config/mips/mips.c: Likewise.
4851 * config/mmix/mmix.c: Likewise.
4852 * config/mn10300/mn10300.c: Likewise.
4853 * config/moxie/moxie.c: Likewise.
4854 * config/msp430/msp430-c.c: Likewise.
4855 * config/msp430/msp430.c: Likewise.
4856 * config/nds32/nds32-cost.c: Likewise.
4857 * config/nds32/nds32-fp-as-gp.c: Likewise.
4858 * config/nds32/nds32-intrinsic.c: Likewise.
4859 * config/nds32/nds32-isr.c: Likewise.
4860 * config/nds32/nds32-md-auxiliary.c: Likewise.
4861 * config/nds32/nds32-memory-manipulation.c: Likewise.
4862 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4863 * config/nds32/nds32-predicates.c: Likewise.
4864 * config/nds32/nds32.c: Likewise.
4865 * config/nios2/nios2.c: Likewise.
4866 * config/nvptx/mkoffload.c: Likewise.
4867 * config/nvptx/nvptx.c: Likewise.
4868 * config/pa/pa.c: Likewise.
4869 * config/pdp11/pdp11.c: Likewise.
4870 * config/rl78/rl78-c.c: Likewise.
4871 * config/rl78/rl78.c: Likewise.
4872 * config/rs6000/host-darwin.c: Likewise.
4873 * config/rs6000/rs6000-c.c: Likewise.
4874 * config/rs6000/rs6000-linux.c: Likewise.
4875 * config/rs6000/rs6000.c: Likewise.
4876 * config/rx/rx.c: Likewise.
4877 * config/s390/s390-c.c: Likewise.
4878 * config/s390/s390.c: Likewise.
4879 * config/sh/sh-c.c: Likewise.
4880 * config/sh/sh-mem.cc: Likewise.
4881 * config/sh/sh.c: Likewise.
4882 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4883 * config/sh/sh_treg_combine.cc: Likewise.
4884 * config/sol2-c.c: Likewise.
4885 * config/sol2-cxx.c: Likewise.
4886 * config/sol2-stubs.c: Likewise.
4887 * config/sol2.c: Likewise.
4888 * config/sparc/sparc-c.c: Likewise.
4889 * config/sparc/sparc.c: Likewise.
4890 * config/spu/spu-c.c: Likewise.
4891 * config/spu/spu.c: Likewise.
4892 * config/stormy16/stormy16.c: Likewise.
4893 * config/v850/v850-c.c: Likewise.
4894 * config/v850/v850.c: Likewise.
4895 * config/vax/vax.c: Likewise.
4896 * config/visium/visium.c: Likewise.
4897 * config/vms/vms-c.c: Likewise.
4898 * config/vms/vms.c: Likewise.
4899 * config/vxworks.c: Likewise.
4900 * config/winnt-c.c: Likewise.
4901 * config/xtensa/xtensa.c: Likewise.
4902
4903 2015-10-16 Christian Bruel <christian.bruel@st.com>
4904
4905 PR target/67745
4906 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
4907 (FUNCTION_BOUNDARY_P): New macro:
4908 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
4909 New hook.
4910 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
4911 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
4912 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
4913 * function.c (allocate_struct_function): Call
4914 relayout_function hook.
4915 * passes.c (rest_of_decl_compilation): Likewise.
4916
4917 2015-10-16 Christian Bruel <christian.bruel@st.com>
4918
4919 PR target/67745
4920 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
4921 * config/arm/arm.c (arm_option_override_internal): Call
4922 arm_override_options_after_change_1.
4923 (arm_override_options_after_change): New function.
4924 (arm_override_options_after_change_1): Likewise.
4925 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
4926
4927 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4928
4929 Revert:
4930 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4931 empty constructors.
4932
4933 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
4934
4935 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
4936 argument is an ADDR_EXPR.
4937
4938 2015-10-16 Richard Biener <rguenther@suse.de>
4939
4940 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
4941 and get rid of force_gimple_operand_gsi.
4942 (gimple_fold_builtin_memory_chk): Likewise.
4943 (gimple_fold_builtin_stxcpy_chk): Likewise.
4944 (rewrite_to_defined_overflow): Likewise.
4945 (gimple_convert_to_ptrofftype): New function.
4946 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
4947
4948 2015-10-16 Richard Biener <rguenther@suse.de>
4949
4950 * tree-nested.h (build_addr): Adjust prototype.
4951 * tree-nested.c (build_addr): Remove context argument and use
4952 mark_addressable.
4953 (get_static_chain): Adjust calls to build_addr.
4954 (convert_nl_goto_reference): Likewise.
4955 (convert_tramp_reference_op): Likewise.
4956 (finalize_nesting_tree_1): Likewise.
4957 * value-prof.c (gimple_ic): Likewise.
4958 * gimple-low.c (lower_builtin_setjmp): Likewise.
4959 * tree-parloops.c (take_address_of): Likewise.
4960 (create_call_for_reduction_1): Likewise.
4961 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
4962 (gimple_gen_ic_func_profiler): Likewise.
4963
4964 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4965
4966 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4967 empty constructors.
4968
4969 2015-10-16 Michael Collison <michael.collison@linaro.org>
4970 Andrew Pinski <andrew.pinski@caviumnetworks.com>
4971
4972 * match.pd ((x < y) && (x < z) -> x < min (y,z),
4973 (x > y) and (x > z) -> x > max (y,z))
4974
4975 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
4976 Szabolcs Nagy <szabolcs.nagy@arm.com>
4977
4978 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
4979 (DYNAMIC_LINKER): Renamed to ...
4980 (GLIBC_DYNAMIC_LINKER): This.
4981 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
4982
4983 2015-10-15 Marek Polacek <polacek@redhat.com>
4984
4985 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
4986 gimple_call_builtin instead of is_gimple_call.
4987
4988 2015-10-15 Richard Biener <rguenther@suse.de>
4989
4990 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
4991
4992 2015-10-15 Richard Biener <rguenther@suse.de>
4993
4994 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
4995 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
4996 * tree-vect-loop.c (get_initial_def_for_induction): Drop
4997 use of force_gimple_operand in favor of gimple_build.
4998 Use vect_get_new_ssa_name.
4999 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
5000 (vectorizable_mask_load_store): Likewise.
5001 (vectorizable_call): Likewise.
5002 (vectorizable_store): Likewise.
5003 (vectorizable_load): Likewise.
5004 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
5005
5006 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
5007
5008 PR tree-optimization/67945
5009 * tree-pass.h (PROP_gimple_opt_math): New property flag.
5010 * generic-match-head.c (canonicalize_math_p): New function.
5011 * gimple-match-head.c: Include tree-pass.h.
5012 (canonicalize_math_p): New function.
5013 * match.pd: Group math built-in rules into simplifications
5014 and canonicalizations. Guard the latter with canonicalize_math_p.
5015 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
5016 PROP_gimple_opt_math property.
5017
5018 2015-10-15 Marek Polacek <polacek@redhat.com>
5019
5020 PR tree-optimization/67953
5021 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
5022
5023 2015-10-15 Jiong Wang <jiong.wang@arm.com>
5024
5025 * config.gcc: Recognize "." in architecture base name for AArch64.
5026
5027 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
5028
5029 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
5030 ROUND_UP macro.
5031 * config/mips/mips.c (mips_setup_incoming_varargs): Use
5032 ROUND_DOWN to calculate off.
5033 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
5034 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
5035 rounded_size.
5036
5037 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
5038
5039 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
5040
5041 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
5042 Torvald Riegel <triegel@redhat.com>
5043
5044 PR target/67281
5045 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
5046 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5047 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
5048 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
5049 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
5050 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5051 trechkpt, treclaim, tsr, ttest): New define_expands.
5052 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5053 __TM_FENCE__ for htm.
5054 * doc/extend.texi: Update documentation for htm builtins.
5055
5056 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
5057
5058 PR target/67967
5059 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
5060 REG_CFA_EXPRESSION to aligned SSE stores.
5061
5062 2015-10-14 Jeff Law <law@redhat.com>
5063
5064 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
5065 num_threaded_edges for successful FSM threads too.
5066
5067 2015-10-14 Richard Biener <rguenther@suse.de>
5068
5069 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
5070 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
5071 (vect_get_vec_def_for_operand): Remove unused parameter.
5072 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
5073 (vect_create_epilog_for_reduction): Likewise.
5074 (vectorizable_reduction): Likewise.
5075 (vectorizable_live_operation): Likewise.
5076 * tree-vect-patterns.c (type_conversion_p): Likewise.
5077 (vect_recog_vector_vector_shift_pattern): Likewise.
5078 (check_bool_pattern): Likewise.
5079 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
5080 (vect_analyze_slp_cost_1): Likewise.
5081 * tree-vect-stmts.c (process_use): Likewise.
5082 (vect_get_vec_def_for_operand): Do not handle reductions.
5083 (vect_get_vec_defs): Adjust.
5084 (vectorizable_mask_load_store): Likewise.
5085 (vectorizable_call): Likewise.
5086 (vectorizable_simd_clone_call): Likewise.
5087 (vect_get_loop_based_defs): Likewise.
5088 (vectorizable_conversion): Likewise.
5089 (vectorizable_assignment): Likewise.
5090 (vectorizable_shift): Likewise.
5091 (vectorizable_operation): Likewise.
5092 (vectorizable_store): Likewise.
5093 (vectorizable_load): Likewise.
5094 (vect_is_simple_cond): Likewise.
5095 (vectorizable_condition): Likewise.
5096 (vect_is_simple_use): Remove unused parameters.
5097 (vect_is_simple_use_1): Adjust and rename.
5098
5099 2015-10-14 Richard Biener <rguenther@suse.de>
5100
5101 PR tree-optimization/67915
5102 * match.pd: Handle comparisons of addresses of STRING_CSTs.
5103 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
5104 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
5105 stmt folding in favor of GIMPLE one.
5106
5107 2015-10-14 Marek Polacek <polacek@redhat.com>
5108
5109 PR tree-optimization/67815
5110 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
5111 (reassociate_bb): Call it.
5112
5113 2015-10-14 Richard Biener <rguenther@suse.de>
5114
5115 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5116 Reset info at start.
5117 (vect_analyze_group_access_1): Add debug print.
5118 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
5119 (vect_compute_single_scalar_iteration_cost): ... to this.
5120 (vect_analyze_loop_2): Adjust.
5121 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
5122 * tree-vectorizer.h: ... here.
5123 (add_stmt_info_to_vec): Remove.
5124 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
5125
5126 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
5127
5128 * targhooks.c (default_target_option_pragma_parse): Do not warn if
5129 called on behalf of "#pragma GCC pop_options".
5130
5131 2015-10-14 Tom de Vries <tom@codesourcery.com>
5132
5133 * cfganal.c (verify_no_unreachable_blocks): New function.
5134 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
5135 verify_no_unreachable_blocks.
5136 cfganal.h (verify_no_unreachable_blocks): Declare.
5137
5138 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
5139
5140 * common.opt: Add flag_checking.
5141 * system.h (CHECKING_P): Define.
5142
5143 2015-10-13 Jakub Jelinek <jakub@redhat.com>
5144 Aldy Hernandez <aldyh@redhat.com>
5145 Ilya Verbin <ilya.verbin@intel.com>
5146
5147 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
5148 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
5149 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
5150 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
5151 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
5152 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
5153 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
5154 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
5155 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
5156 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
5157 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
5158 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
5159 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
5160 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5161 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
5162 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
5163 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
5164 (struct cgraph_simd_clone_arg): Adjust comment.
5165 * coretypes.h (struct gomp_ordered): New forward decl.
5166 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
5167 set critical clauses to it.
5168 (gimple_build_omp_ordered): Return gomp_ordered * instead of
5169 gimple *. Add CLAUSES argument, set ordered clauses to it.
5170 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
5171 GIMPLE_OMP_ORDERED.
5172 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
5173 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
5174 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
5175 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
5176 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
5177 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
5178 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
5179 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
5180 renumber
5181 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
5182 (gomp_critical): Add clauses field.
5183 (gomp_ordered): New struct.
5184 (is_a_helper <gomp_ordered *>::test): New inline.
5185 (gimple_build_omp_critical): Add CLAUSES argument.
5186 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
5187 instead of gimple *.
5188 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
5189 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
5190 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
5191 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
5192 inline functions.
5193 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
5194 (dump_gimple_omp_target): Handle enter data and exit data.
5195 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
5196 (dump_gimple_omp_critical): Print clauses.
5197 (dump_gimple_omp_ordered): New function.
5198 (dump_gimple_omp_task): Handle taskloop.
5199 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
5200 GIMPLE_OMP_ORDERED.
5201 * gimple-walk.c (walk_gimple_op): Walk clauses on
5202 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
5203 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
5204 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
5205 (struct gimplify_omp_ctx): Add loop_iter_var,
5206 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
5207 and target_firstprivatize_array_bases fields.
5208 (delete_omp_context): Release loop_iter_var.
5209 (gimplify_bind_expr): Handle ORT_NONE.
5210 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
5211 ORT_COMBINED_TARGET.
5212 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
5213 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
5214 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
5215 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
5216 ctx->target_map_scalars_firstprivate.
5217 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
5218 data sharing clauses. For data sharing clause with VLA decl
5219 on omp target/target data don't add firstprivate for the pointer.
5220 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
5221 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
5222 the addition of ORT_COMBINED_TARGET.
5223 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
5224 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
5225 pointers as zero length array sections and
5226 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
5227 data sharing.
5228 (omp_check_private): Handle omp_member_access_dummy_var vars.
5229 (find_decl_expr): New function.
5230 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
5231 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
5232 Handle OMP_CLAUSE_GANG separately. Handle
5233 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
5234 clauses. Diagnose linear clause on combined
5235 distribute {, parallel for} simd construct, unless it is the loop
5236 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
5237 Handle map clauses with COMPONENT_REF. Initialize
5238 ctx->target_map_scalars_firstprivate,
5239 ctx->target_firstprivatize_array_bases and
5240 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
5241 linear clause even to target region if combined. Remove
5242 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
5243 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
5244 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
5245 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
5246 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
5247 For linear clause on worksharing loop combined with parallel add
5248 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
5249 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
5250 omp_member_access_dummy_var vars. Add lastprivate clause to outer
5251 taskloop if needed.
5252 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
5253 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
5254 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
5255 GOMP_MAP_POINTER.
5256 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
5257 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
5258 in target body. Handle removal of struct mapping if struct is not
5259 seen in target body. Remove GOMP_MAP_STRUCT map clause on
5260 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
5261 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
5262 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
5263 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
5264 clause appear together. Handle
5265 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
5266 clause if it has map-type-modifier always. Handle
5267 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
5268 clauses.
5269 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
5270 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
5271 callers.
5272 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
5273 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
5274 iterators in doacross loops.
5275 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
5276 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
5277 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
5278 for the addition of ORT_COMBINED_TARGET.
5279 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
5280 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
5281 and OMP_TARGET_EXIT_DATA.
5282 (gimplify_omp_ordered): New function.
5283 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
5284 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
5285 Gimplify clauses on OMP_CRITICAL.
5286 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
5287 expand_GOMP_SIMD_ORDERED_END): New functions.
5288 * internal-fn.def (GOMP_SIMD_ORDERED_START,
5289 GOMP_SIMD_ORDERED_END): New internal functions.
5290 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
5291 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
5292 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
5293 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
5294 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
5295 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
5296 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
5297 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
5298 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
5299 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
5300 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
5301 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
5302 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
5303 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
5304 adjust type.
5305 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
5306 GOMP_target_data_41, adjust type.
5307 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
5308 GOMP_target_update_41, adjust type.
5309 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
5310 field.
5311 (struct omp_for_data): Add ordered and simd_schedule fields.
5312 (omp_member_access_dummy_var, unshare_and_remap_1,
5313 unshare_and_remap, is_taskloop_ctx): New functions.
5314 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
5315 (extract_omp_for_data): Handle taskloops and doacross loops
5316 and simd schedule modifier.
5317 (omp_adjust_chunk_size): New function.
5318 (get_ws_args_for): Use it.
5319 (lookup_sfield): Change first argument to splay_tree_key,
5320 add overload with first argument tree.
5321 (maybe_lookup_field): Likewise.
5322 (use_pointer_for_field): Handle omp_member_access_dummy_var.
5323 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
5324 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
5325 (build_outer_var_ref): Add LASTPRIVATE argument, handle
5326 taskloops and omp_member_access_dummy_var vars.
5327 (build_sender_ref): Change first argument to splay_tree_key,
5328 add overload with first argument tree.
5329 (install_var_field): For mask & 8 use &DECL_UID as key instead
5330 of the tree itself.
5331 (fixup_child_record_type): Const qualify *.omp_data_i.
5332 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
5333 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
5334 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
5335 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
5336 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
5337 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
5338 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
5339 kinds.
5340 (add_taskreg_looptemp_clauses): New function.
5341 (scan_omp_parallel): Use it.
5342 (scan_omp_task): Likewise.
5343 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
5344 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
5345 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
5346 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
5347 sandwiched taskloop constructs. Type check
5348 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
5349 region. Diagnose depend(source) or depend(sink:...) on
5350 target constructs or task/taskloop.
5351 (handle_simd_reference): Use get_name.
5352 (lower_rec_input_clauses): Likewise. Ignore all
5353 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
5354 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
5355 before passing it to omp_clause_{default,copy}_ctor. Handle
5356 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
5357 lastprivate_firstprivate flag for linear that needs copyin and
5358 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
5359 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
5360 on taskloop lookup decl in outer context. Pass true to
5361 build_outer_var_ref lastprivate argument. Handle
5362 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
5363 outside of outer taskloop for.
5364 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
5365 OMP_CLAUSE_DECL.
5366 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
5367 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
5368 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
5369 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
5370 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
5371 abstract origin. Handle omp_member_access_dummy_var vars.
5372 (expand_parallel_call): Use expand_omp_build_assign.
5373 (expand_task_call): Handle taskloop construct expansion. Add
5374 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
5375 integers. Add priority argument to GOMP_task* calls. Or in
5376 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
5377 GOMP_task call.
5378 (expand_omp_build_assign): Add prototype. Add AFTER
5379 argument, if true emit statements after *GSI_P and continue linking.
5380 (expand_omp_taskreg): Adjust expand_task_call caller.
5381 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
5382 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
5383 zero_iter2_bb and first_zero_iter2 arguments, handle computation
5384 of counts even for ordered loops.
5385 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
5386 (expand_omp_ordered_source, expand_omp_ordered_sink,
5387 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
5388 functions.
5389 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
5390 clauses on worksharing loop. Handle DOACROSS loop expansion.
5391 (expand_omp_for_static_nochunk): Handle linear clauses on
5392 worksharing loop. Adjust expand_omp_for_init_counts
5393 callers.
5394 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
5395 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
5396 expand_omp_for_init_counts callers.
5397 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
5398 functions.
5399 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
5400 Handle doacross loops.
5401 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5402 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
5403 GOMP_target_{41,update_41,enter_exit_data} libcalls.
5404 (expand_omp): Don't expand ordered depend constructs here, record
5405 ord_stmt instead for later expand_omp_for_generic.
5406 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5407 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
5408 clause as stand-alone directive.
5409 (lower_omp_ordered_clauses): New function.
5410 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
5411 don't lower anything.
5412 (lower_omp_for_lastprivate): Use last _looptemp_ clause
5413 on taskloop for comparison.
5414 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
5415 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
5416 expansion for linear adjustments.
5417 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
5418 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
5419 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
5420 to tree * pointing to the stmt's clauses.
5421 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
5422 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
5423 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
5424 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
5425 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
5426 clauses. Always use short kind and 8-bit align shift.
5427 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
5428 (struct lower_omp_regimplify_operands_data): New type.
5429 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
5430 New functions.
5431 (lower_omp_1): Use lower_omp_regimplify_operands instead of
5432 gimple_regimplify_operands.
5433 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5434 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
5435 clause as stand-alone directive.
5436 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
5437 (simd_clone_mangle): Mangle the various linear kinds
5438 per the new ABI.
5439 (simd_clone_adjust_argument_types): Handle
5440 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
5441 (simd_clone_init_simd_arrays): Don't do anything for uval.
5442 (simd_clone_adjust): Handle
5443 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
5444 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
5445 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
5446 * omp-low.h (omp_member_access_dummy_var): New prototype.
5447 * passes.def (pass_simduid_cleanup): Schedule another copy of the
5448 pass after all optimizations.
5449 * tree.c (omp_clause_code_name): Add entries for
5450 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5451 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
5452 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
5453 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
5454 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
5455 OMP_CLAUSE_REDUCTION 5 arguments. Handle
5456 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5457 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
5458 clauses.
5459 * tree-core.h (enum omp_clause_linear_kind): New.
5460 (struct tree_omp_clause): Change type of map_kind
5461 from unsigned char to unsigned int. Add subcode.if_modifier
5462 and subcode.linear_kind fields.
5463 (enum omp_clause_code): Add
5464 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5465 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
5466 (OMP_CLAUSE_REDUCTION): Document
5467 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
5468 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
5469 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
5470 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
5471 operand.
5472 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
5473 operand.
5474 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
5475 codes.
5476 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
5477 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
5478 char.
5479 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
5480 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
5481 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
5482 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
5483 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
5484 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
5485 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
5486 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
5487 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
5488 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
5489 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
5490 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
5491 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
5492 * tree-inline.c (remap_gimple_stmt): Handle clauses on
5493 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
5494 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
5495 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
5496 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
5497 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
5498 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
5499 (convert_local_omp_clauses): Likewise.
5500 * tree-pretty-print.c (dump_omp_clause): Handle
5501 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
5502 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
5503 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
5504 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
5505 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
5506 GOMP_MAP_FORCE_DEALLOC. Handle
5507 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
5508 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
5509 and clauses on OMP_ORDERED and OMP_CRITICAL.
5510 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
5511 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
5512 (vectorize_loops): Adjust comments.
5513 (pass_simduid_cleanup::execute): Likewise.
5514 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
5515 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
5516 * wide-int.h (wi::gcd): New.
5517
5518 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
5519
5520 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
5521 (ix86_function_arg_advance): Ditto.
5522 (ix86_function_arg): Ditto.
5523 (ix86_gimplify_va_arg): Ditto.
5524 (ix86_class_max_nregs): Ditto.
5525 (inline_memory_move_cost): Ditto.
5526 (ix86_set_reg_reg_cost): Ditto.
5527 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
5528
5529 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
5530
5531 PR middle-end/67912
5532 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
5533
5534 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
5535
5536 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
5537 ROUND_UP macro and UNITS_PER_WORD * 2.
5538 * config/sparc/sparc.c (sparc_compute_frame_size):
5539 Use ROUND_UP and ROUND_DOWN macros where applicable.
5540 (function_arg_record_value, function_arg_record_value_1)
5541 (function_arg_record_value_1): Ditto.
5542 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
5543 alignment to double-word.
5544 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
5545 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
5546 rounded_size.
5547
5548 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
5549
5550 * rtl.h (print_insn): Fix prototype.
5551
5552 2015-10-13 Tom de Vries <tom@codesourcery.com>
5553
5554 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
5555 -1. Add assert that returned entry matches phi argument.
5556 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
5557 free_stmt_vec_info_vec ...
5558 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
5559 with -1.
5560
5561 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
5562
5563 PR tree-optimization/67909, 67947
5564 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
5565 really skip the inner loop.
5566
5567 2015-10-13 Jeff Law <law@redhat.com>
5568
5569 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5570 Allow single block jump threading paths.
5571
5572 2015-10-13 Tom de Vries <tom@codesourcery.com>
5573
5574 PR tree-optimization/67476
5575 * doc/invoke.texi (@item parloops-schedule): New item.
5576 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
5577 * tree-parloops.c: Include params-enum.h.
5578 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
5579
5580 2015-10-13 Tom de Vries <tom@codesourcery.com>
5581
5582 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
5583 * params-enum.h: New file.
5584 * opts.c (handle_param): Handle case that param arg is a string.
5585 * params-list.h: Handle DEFPARAMENUM5 in params.def.
5586 * params.c (find_param): New function, factored out of ...
5587 (set_param_value): ... here.
5588 (param_string_value_p): New function.
5589 * params.h (struct param_info): Add value_names field.
5590 (find_param, param_string_value_p): Declare.
5591
5592 2015-10-13 Tom de Vries <tom@codesourcery.com>
5593
5594 PR tree-optimization/67476
5595 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
5596
5597 2015-10-13 Richard Biener <rguenther@suse.de>
5598
5599 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
5600 the data dependence vector.
5601 (vect_peeling_hash_insert): Get the peeling hash table as argument.
5602 (vect_peeling_hash_get_lowest_cost): Likewise.
5603 (vect_enhance_data_refs_alignment): Adjust.
5604 (struct _vect_peel_info, struct _vect_peel_extended_info,
5605 struct peel_info_hasher): Move from ...
5606 * tree-vectorizer.h: ... here.
5607 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
5608 (LOOP_VINFO_PEELING_HTAB): Likewise.
5609 (struct _loop_vec_info): Remove min_profitable_iters and
5610 peeling_htab members.
5611 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
5612 here.
5613 (destroy_loop_vec_info): Adjust.
5614 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
5615 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
5616 to estimate alias versioning cost.
5617 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
5618
5619 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
5620
5621 * real.h (real_isinteger): Declare.
5622 * real.c (real_isinteger): New function.
5623 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
5624 if y is an even integer.
5625
5626 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5627
5628 revert:
5629 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5630 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5631 counts when these are more informative.
5632
5633 2015-10-12 Jeff Law <law@redhat.com>
5634
5635 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
5636 (fsm_find_control_stmt_paths): Change name of first argument to
5637 more accurately relfect what it really is. Handle simplification
5638 of GIMPLE_COND after finding a thread path for NAME.
5639 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
5640 nontrivial conditions to be handled by FSM threader.
5641 (thread_through_normal_block): Extract the name to looup via
5642 FSM threader from COND_EXPR.
5643
5644 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
5645 restriction that traced SSA_NAME is a user variable.
5646
5647 2015-10-12 Tom de Vries <tom@codesourcery.com>
5648
5649 PR tree-optimization/67476
5650 * omp-low.c (expand_omp_for_generic): Add missing phis.
5651
5652 2015-10-12 Tom de Vries <tom@codesourcery.com>
5653
5654 PR tree-optimization/67476
5655 * omp-low.c (expand_omp_for_generic): Handle simple latch.
5656
5657 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
5658
5659 * config/aarch64/aarch64-simd-builtins.def: Update builtins
5660 tables: add tbl3 and tbx4.
5661 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
5662 (aarch64_tbx4v8qi): New.
5663 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
5664 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
5665 Rewrite using builtin functions.
5666 * config/aarch64/iterators.md (UNSPEC_TBX): New.
5667
5668 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
5669
5670 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
5671 ROUND_UP macro.
5672 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
5673 Use ROUND_UP and ROUND_DOWN macros where applicable.
5674 (rs6000_darwin64_record_arg_flush): Ditto.
5675 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
5676 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
5677 rounded_size.
5678
5679 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
5680
5681 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
5682 (AARCH64_ROUND_DOWN): Ditto.
5683 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
5684
5685 2015-10-12 Richard Biener <rguenther@suse.de>
5686
5687 PR ipa/67783
5688 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
5689 code that analyzes IVs on each stmt but in a cheaper way avoiding
5690 quadratic behavior.
5691
5692 2015-10-12 Nick Clifton <nickc@redhat.com>
5693
5694 * config/msp430/msp430.c (msp430_mcu_names): Rename to
5695 msp430_mcu_data, add fields for ISA and hardware multiply
5696 support. Import latest data from the devices.csv file.
5697 (msp430_override_option): Use the data from the new array.
5698 (msp430_use_f5_series_hwmult): Likewise.
5699 (use_32bit_hwmult): Likewise.
5700 (msp430_no_hwmult): Likewise.
5701 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
5702 MCU names.
5703 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
5704 not recognised then no hardware multiply support is assumed and
5705 that only the MSP430 ISA is allowed.
5706
5707 2015-10-12 Richard Biener <rguenther@suse.de>
5708
5709 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
5710 related code ...
5711 (vect_analyze_loop_2): ... here.
5712
5713 2015-10-11 Jason Merrill <jason@redhat.com>
5714
5715 PR c++/67557
5716 * expr.c (store_field): Call store_constructor directly when
5717 storing a CONSTRUCTOR into a target smaller than its type.
5718 Guard against unsafe bitwise copy.
5719
5720 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5721
5722 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5723 counts when these are more informative.
5724
5725 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5726
5727 * tree-profile.c (tree_profiling): Do not clear
5728 pure/const when not instrumenting.
5729 (pass tree_profile): Add dump of symtab.
5730
5731 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5732
5733 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
5734 addresses.
5735 (fold_addr_of_array_ref_difference): Likewise.
5736
5737 2015-10-11 Jeff Law <law@redhat.com>
5738
5739 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
5740 tree-ssa-threadbackward.c.
5741 (fsm_find_control_statement_thread_paths): Likewise.
5742 (thread_through_normal_block): Break out FSM bits and move them
5743 into a new function in tree-ssa-threadbackward.c. Call new function
5744 instead.
5745 Minimize header file usage.
5746 * tree-ssa-threadbackward.h: New file.
5747 * tree-ssa-threadbackward.c: Likewise.
5748 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
5749
5750 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
5751
5752 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
5753
5754 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
5755
5756 PR rtl-optimization/67864
5757 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
5758 fallthrough edges for conditional jumps. Don't sort candidate
5759 edges if not optimizing for speed.
5760
5761 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5762
5763 * defaults.h (REVERSE_CONDITION): New default definition.
5764 * jump.c (reversed_comparison_code_parts): Adjust.
5765
5766 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5767
5768 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
5769 check HARD_FRAME_POINTER_IS_ARG_POINTER.
5770
5771 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5772
5773 * defaults.h (FRAME_ADDR_RTX): New default definition.
5774 * builtins.c (expand_builtin_return_addr): Adjust.
5775
5776 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5777
5778 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
5779 * builtins.c (expand_builtin_return_addr): Adjust.
5780
5781 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5782
5783 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
5784 * builtins.c (expand_builtin_return_addr): Adjust.
5785 * doc/tm.texi: Likewise.
5786 * doc/tm.texi.in: Likewise.
5787 * except.c (expand_builtin_unwind_init): Likewise.
5788
5789 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5790
5791 * builtins.c (expand_builtin_return_addr): Adjust.
5792 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
5793
5794 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
5795
5796 * tree.c (type_with_interoperable_signedness): New.
5797 (gimple_canonical_types_compatible_p): Use it.
5798 * tree.h (type_with_interoperable_signedness): Declare
5799
5800 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
5801
5802 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
5803 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
5804 when OEP_ADDRESS_OF is se.
5805
5806 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
5807 Sebastian Pop <s.pop@samsung.com>
5808
5809 * graphite-dependences.c (scop_get_dependences): Add dump of the
5810 data dependence graph.
5811 * graphite-poly.c (print_isl_union_map): New.
5812 (debug_isl_union_map): New.
5813 * graphite-poly.h (print_isl_union_map): Declare.
5814 (debug_isl_union_map): Declare.
5815
5816 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
5817 Sebastian Pop <s.pop@samsung.com>
5818
5819 * graphite-poly.c (print_iteration_domain): Remove verbosity.
5820 Remove OpenScop formatting.
5821 (print_iteration_domains): Same.
5822 (debug_iteration_domain): Same.
5823 (debug_iteration_domains): Same.
5824 (print_pdr): Same.
5825 (debug_pdr): Same.
5826 (dump_gbb_cases): Same.
5827 (dump_gbb_conditions): Same.
5828 (print_pdrs): Same.
5829 (debug_pdrs): Same.
5830 (print_pbb_body): Same.
5831 (print_pbb): Same.
5832 (print_scop_params): Same.
5833 (print_scop_context): Same.
5834 (print_scop): Same.
5835 (debug_pbb_domain): Same.
5836 (debug_pbb): Same.
5837 (debug_scop_context): Same.
5838 (debug_scop): Same.
5839 (debug_scop_params): Same.
5840 * graphite-poly.h: Same.
5841 * graphite.c (graphite_transform_loops): Same.
5842
5843 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5844
5845 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
5846 call that isn't needed.
5847
5848 2015-10-09 Jeff Law <law@redhat.com>
5849
5850 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
5851 rather than moving each name to the freelist individually.
5852
5853 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
5854
5855 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
5856 * frame-header-opt.c: New file.
5857 * config/mips/mips-proto.h (mips_register_frame_header_opt):
5858 Add prototype.
5859 * config/mips/mips.c (mips_compute_frame_info): Check
5860 optimize_call_stack flag.
5861 (mips_option_override): Register new frame_header_opt pass.
5862 (mips_frame_info, mips_int_mask, mips_shadow_set,
5863 machine_function): Move these types to...
5864 * config/mips/mips.h: here.
5865 (machine_function): Add does_not_use_frame_header and
5866 optimize_call_stack fields.
5867 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
5868 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
5869 Document new flags.
5870 * config/mips/mips.opt (mframe-header-opt): Add new option.
5871
5872 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
5873
5874 * config/i386/i386.c
5875 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
5876 ROUND_DOWN where applicable.
5877
5878 2015-10-09 Jeff Law <law@redhat.com>
5879
5880 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
5881 correct statement.
5882
5883 2015-10-09 Renlin Li <renlin.li@arm.com>
5884
5885 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
5886 operands[0] and operands[2].
5887 (neon_vtrn<mode>_insn): Likewise.
5888 (neon_vzip<mode>_insn): Likewise.
5889
5890 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
5891
5892 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
5893 ((X & C2) << C1): Expand to...
5894 (X {&,^,|} C2 << C1): ...This.
5895 ((X & C2) >> C1): Expand to...
5896 (X {&,^,|} C2 >> C1): ...This.
5897
5898 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
5899
5900 PR target/67895
5901 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
5902 Adjust embedded rounding/SAE specifier position.
5903 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
5904 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
5905 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
5906 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
5907 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5908 Likewise.
5909 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
5910
5911 2015-10-09 Martin Jambor <mjambor@suse.cz>
5912
5913 tree-optimization/67794
5914 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
5915 between types of state,ents but accept original definitions as a
5916 parameter.
5917 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
5918 iterate over definitions.
5919
5920 2015-10-09 James Norris <jnorris@codesourcery.com>
5921
5922 * config/rs6000/rs6000.c (rs6000_offload_options): New.
5923 (TARGET_OFFLOAD_OPTIONS): New.
5924
5925 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
5926
5927 PR middle-end/67891
5928 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
5929
5930 PR middle-end/67766
5931 * function.c (expand_function_end): Move return value
5932 promotion past the handling of PARALLELs and CONCATs.
5933
5934 PR rtl-optimization/67828
5935 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
5936 (tree_may_unswitch_on): Don't unswitch on expressions
5937 involving undefined values.
5938
5939 2015-10-09 Richard Biener <rguenther@suse.de>
5940
5941 * genmatch.c (print_operand): Fix formatting.
5942 (dt_node::append_simplify): Warn for multiple simplifiers
5943 that match the same pattern.
5944 * match.pd (log (exp @0)): Remove duplicates.
5945
5946 2015-10-09 Richard Biener <rguenth@suse.de>
5947
5948 PR target/67366
5949 * gimple-fold.c (optabs-query.h): Include
5950 (gimple_fold_builtin_memory_op): Allow unaligned stores
5951 when movmisalign_optabs are available.
5952
5953 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5954
5955 PR target/67366
5956 * config/arm/arm.md (movmisalign<mode>): New.
5957 * config/arm/iterators.md (HSI): New.
5958
5959 2015-10-09 Richard Biener <rguenther@suse.de>
5960
5961 PR tree-optimization/67891
5962 * gimple-match.h (gimple_simplified_result_is_gimple_val):
5963 New helper.
5964 (gimple_resimplify1): Declare.
5965 (gimple_resimplify2): Likewise.
5966 (gimple_resimplify3): Likewise.
5967 * gimple-match-head.c (gimple_resimplify1): Export.
5968 (gimple_resimplify2): Likewise.
5969 (gimple_resimplify3): Likewise.
5970 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
5971 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5972 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
5973 to avoid creating stmts without VN info.
5974
5975 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
5976
5977 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
5978 of availability.
5979
5980 2015-10-08 Jeff Law <law@redhat.com>
5981
5982 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
5983 and release_ssa_name in two places.
5984 (gimple_stringop_fixed_value): Similarly.
5985
5986 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
5987 release_defs.
5988
5989 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
5990 unlink_stmt_vdef and release_ssa_name_fn.
5991
5992 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
5993 release_defs.
5994
5995 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
5996
5997 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
5998 SSE register save area to 16 bytes only if the incoming stack
5999 boundary is no less than 16 bytes.
6000
6001 2015-10-08 Jeff Law <law@redhat.com>
6002
6003 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
6004 release_ssa_name. Fix typo in comment.
6005
6006 2015-10-08 Nathan Sidwell <nathan@acm.org>
6007
6008 * config/nvptx/nvptx.h (struct machine_function): Add comment.
6009 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
6010 may return pointer as well as in memory.
6011 (nvptx_output_return): Likewise.
6012
6013 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
6014
6015 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
6016 (fold_builtin_1): Update accordingly. Handle constant arguments here.
6017 * match.pd: Add rules previously handled by fold_builtin_sqrt
6018 and fold_builtin_cbrt.
6019
6020 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
6021
6022 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
6023 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
6024 * fold-const.h (tree_unary_nonnegative_warnv_p)
6025 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6026 (tree_expr_nonnegative_warnv_p): Add depth parameters.
6027 * fold-const.c: Include gimple-fold.h and params.h.
6028 (tree_ssa_name_nonnegative_warnv_p): New function.
6029 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
6030 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6031 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
6032 Add a depth parameter and increment it for recursive calls to
6033 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
6034 to handle SSA names.
6035 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
6036 (gimple_stmt_nonnegative_warnv_p): Declare.
6037 * tree-vrp.c (remove_range_assertions): Remove assert that condition
6038 cannot be proven false.
6039 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
6040 (gimple_stmt_nonnegative_warnv_p): Move to...
6041 * gimple-fold.c: ...here. Add depth parameters and pass them
6042 down to the tree routines. Accept statements that aren't
6043 assignments or calls but just return false for them.
6044 (gimple_val_nonnegative_real_p): Delete.
6045 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
6046 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
6047 Check HONOR_NANs first.
6048
6049 2015-10-08 Martin Jambor <mjambor@suse.cz>
6050
6051 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
6052 unnecessary MIN.
6053
6054 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
6055
6056 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
6057 in the tail of outer-loop.
6058
6059 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
6060
6061 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
6062 return UI_NONE.
6063
6064 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
6065
6066 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
6067 "cfghooks.h", add prototypes for introduced new functions.
6068 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
6069 checks on ability of loop unswitching to tree_unswitch_single_loop;
6070 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
6071 on innermost loop check.
6072 (tree_unswitch_single_loop): Add all required checks on ability of
6073 loop unswitching under zero recursive level guard.
6074 (tree_unswitch_outer_loop): New function.
6075 (find_loop_guard): Likewise.
6076 (empty_bb_without_guard_p): Likewise.
6077 (used_outside_loop_p): Likewise.
6078 (get_vop_from_header): Likewise.
6079 (hoist_guard): Likewise.
6080 (check_exit_phi): Likewise.
6081
6082 2015-10-08 Marek Polacek <polacek@redhat.com>
6083
6084 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
6085 ops element.
6086
6087 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6088
6089 PR c/65345
6090 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
6091 create_tmp_var_raw instead of create_tmp_var.
6092
6093 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
6094
6095 * expr.c (store_expr_with_bounds): Handle aggregate moves from
6096 BLKmode.
6097 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
6098 to define gimple type system; compare aggregates only by size.
6099
6100 2015-10-07 Jeff Law <law@redhat.com>
6101
6102 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
6103 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
6104 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
6105 unnecessarily.
6106
6107 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
6108 Sebastian Pop <s.pop@samsung.com>
6109
6110 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
6111 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
6112 (generate_isl_schedule): Same.
6113 * graphite-optimize-isl.c (scop_get_domains): Same.
6114 (apply_schedule_map_to_scop): Same.
6115 * graphite-poly.c (print_iteration_domains): Same.
6116 (remove_gbbs_in_scop): Same.
6117 (new_scop): Same.
6118 (free_scop): Same.
6119 (print_scop): Same.
6120 * graphite-poly.h (struct scop): Rename bbs to pbbs.
6121 (SCOP_BBS): Remove.
6122 * graphite-scop-detection.c (compare_bb_depths): Remove.
6123 (graphite_sort_dominated_info): Remove.
6124 (try_generate_gimple_bb): Move out of scop_detection.
6125 (all_non_dominated_preds_marked_p): Remove.
6126 (build_scop_bbs_1): Remove.
6127 (build_scop_bbs): Remove.
6128 (nb_pbbs_in_loops): Do not use SCOP_BBS.
6129 (find_scop_parameters): Same.
6130 (sese_dom_walker): Rename gather_bbs.
6131 (before_dom_children): Call try_generate_gimple_bb and collect gbb
6132 and pbb.
6133 (build_scops): Call gather_bbs.
6134 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
6135 (add_conditions_to_constraints): Same.
6136 (build_scop_iteration_domain): Same.
6137 (build_scop_drs): Same.
6138 (new_pbb_from_pbb): Same.
6139 * sese.c (new_sese_info): Create bbs.
6140 * sese.h (struct sese_info_t): Add bbs.
6141
6142 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
6143
6144 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
6145 encoding in 64-bit mode.
6146
6147 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
6148
6149 PR target/66697
6150 * config/i386/i386.c (ix86_option_override_internal): Always use
6151 8-byte minimum stack boundary in 64-bit mode.
6152 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
6153 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
6154 Add a REG_CFA_EXPRESSION note if needed.
6155 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
6156 (ix86_handle_force_align_arg_pointer_attribute): New.
6157 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
6158 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
6159 with ix86_handle_force_align_arg_pointer_attribute.
6160 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
6161
6162 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
6163 Sebastian Pop <s.pop@samsung.com>
6164
6165 * graphite-scop-detection.c (parameter_index_in_region): Remove
6166 use of SESE_ADD_PARAMS.
6167 (find_scop_parameters): Same.
6168 * sese.c (new_sese_info): Same.
6169 * sese.h (struct sese_info_t): Remove add_params.
6170 (SESE_ADD_PARAMS): Remove.
6171
6172 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
6173 Sebastian Pop <s.pop@samsung.com>
6174
6175 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
6176 an sese_info_p.
6177 (copy_def): Same.
6178 (copy_internal_parameters): Same.
6179 (translate_isl_ast_to_gimple): Use an sese_l.
6180 (build_iv_mapping): Same.
6181 * graphite-poly.c (new_sese): Rename new_sese_info.
6182 (free_sese): Rename free_sese_info.
6183 * graphite-poly.h (struct scop): Use an sese_info_p.
6184 (scop_set_region): Same.
6185 * graphite-scop-detection.c (struct sese_l): Moved...
6186 (get_entry_bb): Moved...
6187 (get_exit_bb): Moved...
6188 (parameter_index_in_region_1): Use an sese_info_p.
6189 (parameter_index_in_region): Same.
6190 (scan_tree_for_params): Same.
6191 (find_params_in_bb): Same.
6192 (sese_dom_walker): Use an sese_l.
6193 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
6194 (reduction_phi_p): Same.
6195 (parameter_index_in_region_1): Use an sese_info_p.
6196 (propagate_expr_outside_region): Use an sese_l.
6197 * graphite.c: Replace uses of SCOP_REGION.
6198 * sese.c (sese_record_loop): Use an sese_info_p.
6199 (build_sese_loop_nests): Same.
6200 (sese_build_liveouts_use): Same.
6201 (sese_build_liveouts_bb): Same.
6202 (sese_build_liveouts_bb): Same.
6203 (sese_bad_liveouts_use): Same.
6204 (sese_reset_debug_liveouts_bb): Same.
6205 (sese_build_liveouts): Same.
6206 (new_sese): Renamed new_sese_info.
6207 (free_sese): Renamed free_sese_info.
6208 (set_rename): Use an sese_info_p.
6209 (graphite_copy_stmts_from_block): Same.
6210 (copy_bb_and_scalar_dependences): Same.
6211 (outermost_loop_in_sese_1): Use an sese_l.
6212 (outermost_loop_in_sese): Same.
6213 (if_region_set_false_region): Use an sese_info_p.
6214 (move_sese_in_condition): Same.
6215 (scalar_evolution_in_region): Use an sese_l.
6216 * sese.h (struct sese_l): ... here.
6217 (SESE_ENTRY): Remove.
6218 (SESE_ENTRY_BB): Remove.
6219 (SESE_EXIT): Remove.
6220 (SESE_EXIT_BB): Remove.
6221 (sese_contains_loop): Use an sese_info_p.
6222 (sese_nb_params): Same.
6223 (bb_in_sese_p): Use an sese_l.
6224 (stmt_in_sese_p): Same.
6225 (defined_in_sese_p): Same.
6226 (loop_in_sese_p): Same.
6227 (sese_loop_depth): Same.
6228 (struct ifsese_s): Use an sese_info_p.
6229 (gbb_loop_at_index): Use an sese_l.
6230 (nb_common_loops): Same.
6231 (scev_analyzable_p): Same.
6232
6233 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6234
6235 * config/i386/i386.c (ix86_conditional_register_usage): Use
6236 CALL_USED_REGISTERS_MASK.
6237 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
6238
6239 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6240
6241 PR bootstrap/67385
6242 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
6243 * configure: Regenerated.
6244
6245 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6246
6247 PR target/67850
6248 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
6249 (ix86_set_current_function): This.
6250 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
6251
6252 2015-10-07 Richard Biener <rguenther@suse.de>
6253
6254 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
6255 (vinfo_for_stmt): Adjust.
6256 (set_vinfo_for_stmt): Likewise.
6257 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
6258 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
6259 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
6260 of inner loop.
6261 (vect_analyze_loop_1): Remove.
6262 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
6263 inner loop when vectorizing an outer loop by splitting out from ...
6264 (vect_analyze_loop_form): ... here.
6265
6266 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6267
6268 PR c/65345
6269 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
6270 Use create_tmp_var_raw instead of create_tmp_var.
6271
6272 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
6273
6274 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
6275 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
6276 * real.c (CACHED_FRACTION): New helper macro.
6277 (dconst_third_ptr): Use it.
6278 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
6279 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
6280 dconst_sixth.
6281 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
6282
6283 2015-10-06 Jeff Law <law@redhat.com>
6284
6285 PR tree-optimization/67816
6286 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
6287 from remove_jump_threads_starting_at. Accept an edge rather than
6288 a basic block.
6289 * tree-ssa-threadupdate.c (removed_edges): New hash table.
6290 (remove_jump_threads_including): Note edges that get removed from
6291 the CFG for later pruning of jump threading paths including them.
6292 (thread_through_all_blocks): Remove paths which include edges that
6293 have been removed.
6294 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
6295 on each outgoing edges when optimizing away a control statement.
6296
6297 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6298
6299 * reorg.c (emit_delay_sequence): Store list of delay slot insns
6300 in a vector instead of rtx_insn_list.
6301 (add_to_delay_list): Likewise.
6302 (delete_from_delay_slot): Likewise.
6303 (optimize_skip): Likewise.
6304 (redirect_with_delay_list_safe_p): Likewise.
6305 (check_annul_list_true_false): Likewise.
6306 (steal_delay_list_from_target): Likewise.
6307 (steal_delay_list_from_fallthrough): Likewise.
6308 (redundant_insn): Likewise.
6309 (fill_simple_delay_slots): Likewise.
6310 (fill_slots_from_thread): Likewise.
6311 (fill_eager_delay_slots): Likewise.
6312 (relax_delay_slots): Likewise.
6313
6314 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
6315
6316 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
6317 For -mgpopt=local, also exclude unintialized common symbols.
6318 * doc/invoke.texi (Nios II Options): Document the change.
6319
6320 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6321
6322 * config/aarch64/iterators.md (vwcore): Add missing cases for
6323 V4HF/V8HF modes.
6324
6325 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
6326 Sebastian Pop <s.pop@samsung.com>
6327
6328 * graphite-poly.c (new_scop): Initialize drs.
6329 * graphite-poly.h (struct dr_info): New.
6330 (struct scop): Add drs.
6331 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
6332 (pdr_add_memory_accesses): Same.
6333 (build_poly_dr): Same.
6334 (build_alias_set): Same.
6335 (build_scop_drs): Same.
6336 (build_pbb_drs): Remove.
6337 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
6338 * tree-data-ref.h (data_reference): Remove alias_set.
6339
6340 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
6341 Sebastian Pop <s.pop@samsung.com>
6342
6343 * graphite-poly.c (free_data_refs_aux): Remove.
6344 (free_gimple_poly_bb): Do not call free_data_refs_aux.
6345 * graphite-poly.h (struct base_alias_pair): Remove.
6346 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
6347 base_alias_pair and dr->aux.
6348 (build_alias_set): Same.
6349 * tree-data-ref.c (create_data_ref): Initialize alias_set.
6350 * tree-data-ref.h (data_reference): Add alias_set.
6351
6352 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
6353 Sebastian Pop <s.pop@samsung.com>
6354
6355 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
6356 Do not set PDR_BASE_OBJECT_SET.
6357 * graphite-poly.h (poly_dr): Same.
6358 (PDR_BASE_OBJECT_SET): Remove.
6359 (new_poly_dr): Update decl.
6360 * graphite-sese-to-poly.c (build_poly_dr): Update call to
6361 new_poly_dr.
6362 (write_alias_graph_to_ascii_dimacs): Remove.
6363 (write_alias_graph_to_ascii_dot): Remove.
6364 (write_alias_graph_to_ascii_ecc): Remove.
6365 (dr_same_base_object_p): Remove.
6366 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
6367 code.
6368 (build_base_obj_set_for_drs): Remove.
6369 (dump_alias_graphs): Remove.
6370 (build_scop_drs): Remove dead code.
6371
6372 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
6373 Peter Bergner <bergner@vnet.ibm.com>
6374
6375 PR target/67808
6376 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
6377 allow registers, but provide insns for the combiner to create for
6378 loads from memory. Separate VSX code from non-VSX code. For
6379 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
6380 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
6381 so that registers come before memory operations. Drop support from
6382 converting DFmode to TFmode, if the DFmode value is in a GPR
6383 register.
6384 (extenddftf2_fprs): Likewise.
6385 (extenddftf2_internal): Likewise.
6386 (extenddftf2_vsx): Likewise.
6387 (extendsftf2): In the expander, only allow registers, but provide
6388 insns for the combiner to create for stores and loads.
6389
6390 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6391
6392 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
6393 from the decl parameter.
6394
6395 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
6396
6397 PR 67861
6398 * gimple-fold.c (gimple_fold_builtin): Add break after
6399 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
6400
6401 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
6402
6403 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
6404 to scop->isl_context.
6405
6406 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
6407
6408 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
6409 (output_probe_stack_range): Rotate the loop and simplify.
6410 (thumb1_expand_prologue): Tweak sorry message.
6411 * config/arm/arm.md (probe_stack): Use bare string.
6412
6413 2015-10-06 Nick Clifton <nickc@redhat.com>
6414
6415 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
6416
6417 2015-10-06 Nick Clifton <nickc@redhat.com>
6418
6419 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
6420 (ATTR_PERSIST): New constant.
6421 (msp430_data_attr): New function - verifies an attribute that only
6422 applies to variables.
6423 (msp430_attributes): Add noinit and persistent attributes.
6424 (noinit_section): New variable.
6425 (presis_section): New variable.
6426 (TARGET_ASM_INIT_SECTIONS): Define.
6427 (msp430_init_sections): New function - initialises the noinit and
6428 persist section variables.
6429 (msp430_select_section): Add support for noinit and persist
6430 attributes.
6431 (msp430_section_type_flags): Likewise.
6432 * doc/extend.texi: Document the reent, critical, wakeup, noinit
6433 and persistent attributes.
6434
6435 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6436 Sebastian Pop <s.pop@samsung.com>
6437
6438 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
6439 (no_violations): Remove.
6440 (subtract_commutative_associative_deps): Remove.
6441 (compute_deps): Do not call subtract_commutative_associative_deps.
6442 (transform_is_safe): Remove.
6443 (graphite_legal_transform): Remove.
6444 * graphite-poly.h (graphite_legal_transform): Remove.
6445
6446 2015-10-05 Aditya Kumar <hiraditya@msn.com>
6447
6448 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
6449 which are in this region are passed so gcc_assert and remove redundant
6450 computation.
6451 * sese.c (sese_build_liveouts): Pass only those bbs which are not
6452 in region.
6453 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
6454 gcc_assert on that and remove unnecessary computation.
6455 (sese_build_liveouts_use): Same.
6456
6457 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6458
6459 * graphite-dependences.c (scop_get_reads): Renamed scop->context
6460 to scop->param_context.
6461 (scop_get_must_writes): Same.
6462 (scop_get_may_writes): Same.
6463 (scop_get_original_schedule): Same.
6464 (scop_get_transformed_schedule): Same.
6465 (subtract_commutative_associative_deps): Same.
6466 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
6467 (generate_isl_context): Same.
6468 (generate_isl_schedule): Same.
6469 (scop_to_isl_ast): Same.
6470 (graphite_regenerate_ast_isl): Same.
6471 * graphite-optimize-isl.c (scop_get_domains): Same.
6472 (optimize_isl): Renamed scop->context to scop->param_context.
6473 * graphite-poly.c (new_poly_bb): Change the type of argument to
6474 gimple_poly_bb_p.
6475 (new_scop): Renamed scop->context to scop->param_context.
6476 (free_scop): Same.
6477 (print_scop_context): Same.
6478 * graphite-poly.h (new_poly_dr): Change the type of argument from
6479 void* to data_reference_p.
6480 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
6481 (new_poly_bb): Change the type of argument from void* to
6482 gimple_poly_bb_p.
6483 (pbb_set_black_box): Same.
6484 (struct scop): Rename context to param_context, ctx to isl_context.
6485 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
6486 Move declarations closer to assignment.
6487 (find_params_in_bb): Same.
6488 (find_scop_parameters): Same.
6489 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
6490 Global to be used for statement IDs.
6491 (isl_id_for_pbb): Use ssa_name_version_typesize.
6492 (simple_copy_phi_p): Move declarations closer to assignment.
6493 (build_pbb_scattering_polyhedrons): Same.
6494 (build_scop_scattering): Same.
6495 (isl_id_for_ssa_name): Same.
6496 (extract_affine_name): Same.
6497 (extract_affine_int): Same.
6498 (extract_affine): Same.
6499 (set_scop_parameter_dim): Use renamed member.
6500 (build_loop_iteration_domains): Same.
6501 (add_param_constraints): Same.
6502 (build_scop_iteration_domain): Same.
6503 (pdr_add_data_dimensions): Same.
6504 (build_poly_dr): Same.
6505 (build_scop_drs): Move declarations closer to assignment.
6506 (analyze_drs_in_stmts): Same.
6507 (insert_out_of_ssa_copy): Same.
6508 (insert_out_of_ssa_copy_on_edge): Same.
6509 (propagate_expr_outside_region): Same.
6510 (rewrite_phi_out_of_ssa): Same.
6511 (rewrite_degenerate_phi): Same.
6512 (rewrite_reductions_out_of_ssa): Same.
6513 (rewrite_cross_bb_scalar_dependence): Same.
6514 (handle_scalar_deps_crossing_scop_limits): Same.
6515 (rewrite_cross_bb_scalar_deps): Same.
6516 * graphite.c (graphite_transform_loops): Use renamed member.
6517
6518 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
6519
6520 PR c/65345
6521 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
6522 create_tmp_var_raw instead of create_tmp_var.
6523
6524 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6525
6526 PR c/65345
6527 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
6528 Use create_tmp_var_raw instead of create_tmp_var.
6529
6530 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
6531
6532 PR target/67849
6533 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
6534 split for upper-bank registers when target does not support
6535 AVX512VL.
6536 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
6537 split when target does not support AVX512VL.
6538
6539 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
6540
6541 PR c/65345
6542 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
6543 Adjust to use create_tmp_var_raw instead of create_tmp_var.
6544
6545 2015-10-06 Nick Clifton <nickc@redhat.com>
6546
6547 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
6548 multiplication.
6549
6550 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
6551
6552 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
6553 (case ${target}): Add znver1.
6554 * config/i386/cpuid.h(bit_CLZERO): Define.
6555 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6556 -march=native recognize znver1 processors.
6557 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6558 znver1, clzero def_and_undef.
6559 * config/i386/i386.c (struct processor_costs znver1_cost): New.
6560 (m_znver1): New definition.
6561 (m_AMD_MULTIPLE): Includes m_znver1.
6562 (processor_target_table): Add znver1 entry.
6563 (ix86_target_string) : Add clzero entry.
6564 (static const char *const cpu_names): Add znver1 entry.
6565 (ix86_option_override_internal): Add znver1 instruction sets.
6566 (PTA_CLZERO) : New definition.
6567 (ix86_option_override_internal): Handle new clzerooption.
6568 (ix86_issue_rate): Add znver1.
6569 (ix86_adjust_cost): Add znver1.
6570 (ia32_multipass_dfa_lookahead): Add znver1.
6571 (has_dispatch): Add znver1.
6572 * config/i386/i386.h (TARGET_znver1): New definition.
6573 (TARGET_CLZERO): Define.
6574 (TARGET_CLZERO_P): Define.
6575 (struct ix86_size_cost): Add TARGET_ZNVER1.
6576 (enum processor_type): Add PROCESSOR_znver1.
6577 * config/i386/i386.md (define_attr "cpu"): Add znver1.
6578 (set_attr znver1_decode): New definitions for znver1.
6579 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
6580 (mclzero): New.
6581 * config/i386/mmx.md (set_attr znver1_decode): New definitions
6582 for znver1.
6583 * config/i386/sse.md (set_attr znver1_decode): Likewise.
6584 * config/i386/x86-tune.def: Add znver1 tunings.
6585 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
6586 * doc/invoke.texi: Add details about znver1
6587
6588 2015-10-06 Richard Biener <rguenther@suse.de>
6589
6590 PR tree-optimization/67859
6591 * tree-ssa-pre.c (create_expression_by_pieces): Properly
6592 discard not inserted stmts.
6593
6594 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
6595
6596 * doc/extend.texi (Template Instantiation): Reorder options and
6597 de-emphasize -frepo.
6598 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
6599 example instead of -frepo.
6600
6601 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
6602
6603 PR c/65345
6604 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
6605 use create_tmp_var_raw rather than create_tmp_var.
6606
6607 2015-10-06 Richard Biener <rguenther@suse.de>
6608
6609 * tree-vectorizer.h (vec_info): New base class for...
6610 (_loop_vec_info): ... this and ...
6611 (_bb_vec_info): ... this.
6612 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
6613 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
6614 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
6615 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
6616 vect_destroy_datarefs): Adjust interface to take a vec_info *
6617 rather than both a loop_vec_info and a bb_vec_info argument.
6618 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
6619 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
6620 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
6621 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
6622 accordingly.
6623 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
6624 (destroy_loop_vec_info, vect_analyze_loop_2,
6625 vect_is_simple_reduction_1, get_initial_def_for_induction,
6626 vect_create_epilog_for_reduction, vectorizable_reduction,
6627 vectorizable_live_operation, vect_transform_loop): Adjust.
6628 * tree-vect-patterns.c (type_conversion_p,
6629 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
6630 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
6631 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
6632 check_bool_pattern, vect_recog_bool_pattern,
6633 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
6634 * tree-vect-slp.c (vect_get_and_check_slp_defs,
6635 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
6636 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
6637 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
6638 (new_bb_vec_info): Initialize base classs.
6639 * tree-vect-stmts.c (record_stmt_cost, process_use,
6640 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
6641 vectorizable_mask_load_store, vectorizable_call,
6642 vectorizable_simd_clone_call, vectorizable_conversion,
6643 vectorizable_assignment, vectorizable_shift,
6644 vectorizable_operation, vectorizable_store,
6645 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
6646 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
6647 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
6648
6649 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
6650
6651 PR c/65345
6652 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
6653 create_tmp_var_raw rather than create_tmp_var.
6654
6655 2015-10-05 Marek Polacek <polacek@redhat.com>
6656
6657 * tree-ssa-loop-im.c
6658 (move_computations_dom_walker::before_dom_children): Don't set
6659 SSA_NAME_ANTI_RANGE_P.
6660 * tree-ssa-phiopt.c (value_replacement): Likewise.
6661
6662 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6663 Sebastian Pop <s.pop@samsung.com>
6664
6665 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
6666
6667 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6668 Sebastian Pop <s.pop@samsung.com>
6669
6670 * graphite-poly.c (new_gimple_poly_bb): ... here.
6671 (free_data_refs_aux): ... here.
6672 (free_gimple_poly_bb): ... here.
6673 (remove_gbbs_in_scop): ... here.
6674 (new_scop): Call new_sese.
6675 (free_scop): Call remove_gbbs_in_scop and free_sese.
6676 * graphite-poly.h (base_alias_pair): ... here.
6677 (new_gimple_poly_bb): Declare.
6678 (free_gimple_poly_bb): Declare.
6679 * graphite-scop-detection.c (parameter_index_in_region_1):
6680 (parameter_index_in_region): ... here.
6681 (scan_tree_for_params): ... here.
6682 (find_params_in_bb): ... here.
6683 (find_scop_parameters): ... here.
6684 (build_scops): Call find_scop_parameters.
6685 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
6686 (free_scops): Move...
6687 (single_pred_cond_non_loop_exit): Move...
6688 (sese_dom_walker::before_dom_children): Move...
6689 (sese_dom_walker::after_dom_children): Move...
6690 (build_poly_scop): Move...
6691 * graphite-sese-to-poly.h (base_alias_pair): Move...
6692 * graphite.c (free_scops): ... here.
6693
6694 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6695 Sebastian Pop <s.pop@samsung.com>
6696
6697 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
6698 (trivially_empty_bb_p): Move...
6699 (same_close_phi_node): Move...
6700 (new_gimple_poly_bb): Move...
6701 (compare_bb_depths): Move...
6702 (graphite_sort_dominated_info): Move...
6703 (remove_duplicate_close_phi): Move...
6704 (make_close_phi_nodes_unique): Move...
6705 (canonicalize_loop_closed_ssa): Move...
6706 (canonicalize_loop_closed_ssa_form): Move...
6707 (loop_ivs_can_be_represented): Move...
6708 (single_pred_cond_non_loop_exit): Move...
6709 (graphite_can_represent_init): Move...
6710 (graphite_can_represent_scev): Move...
6711 (stmt_has_simple_data_refs_p): Move...
6712 (stmt_has_side_effects): Move...
6713 (graphite_can_represent_stmt): Move...
6714 (scop_detection): ... here.
6715 (sese_dom_walker): ... and here.
6716 (build_scops): Call all moved functions.
6717 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
6718 (all_non_dominated_preds_marked_p): Move...
6719 (build_scop_bbs_1): Move...
6720 (build_scop_bbs): Move...
6721 (set_scop_parameter_dim): Move...
6722 (nb_pbbs_in_loops): Move...
6723 (build_poly_scop): Do not call all the moved functions.
6724
6725 2015-10-05 Martin Jambor <mjambor@suse.cz>
6726 Jan Hubicka <hubicka@ucw.cz>
6727
6728 * ipa-cp.c (ipcp_alignment_lattice): New type.
6729 (ipcp_param_lattices): Use the above to represent alignment.
6730 (ipcp_alignment_lattice::print): New function.
6731 (print_all_lattices): Use it to print alignment information.
6732 (ipcp_alignment_lattice::top_p): New function.
6733 (ipcp_alignment_lattice::bottom_p): Likewise.
6734 (ipcp_alignment_lattice::set_to_bottom): Likewise.
6735 (ipcp_alignment_lattice::meet_with_1): Likewise.
6736 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
6737 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
6738 (initialize_node_lattices): Likewise.
6739 (propagate_alignment_accross_jump_function): Work with the new class
6740 for alignment lattices.
6741 (propagate_constants_accross_call): Pass only the alignment lattice to
6742 propagate_alignment_accross_jump_function.
6743 (ipcp_store_alignment_results): Work with the new class for alignment
6744 lattices.
6745
6746 2015-10-05 Marek Polacek <polacek@redhat.com>
6747
6748 PR tree-optimization/67821
6749 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
6750
6751 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
6752
6753 PR other/65021
6754 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
6755 function to...
6756 (mkoffload_cleanup): ... this. Adjust all users.
6757 (maybe_unlink): Look at save_temps and verbose flags instead of
6758 debug flag.
6759 (main): Parse "-save-temps" flag.
6760 (generate_target_descr_file, generate_target_offloadend_file)
6761 (generate_host_descr_file, prepare_target_image): Pass it on.
6762 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
6763 (mkoffload_cleanup): New function.
6764 (maybe_unlink): Look at save_temps and verbose flags instead of
6765 debug flag.
6766 (main): Instead of calling utils_cleanup, register atexit handler
6767 for mkoffload_cleanup.
6768 (main): Parse "-save-temps" flag.
6769 (compile_native, main): Pass it on.
6770 * lto-wrapper.c (compile_offload_image): Likewise.
6771
6772 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6773
6774 * gimple.h (gimple_op_ptr): Require a non const gimple *.
6775 (gimple_assign_lhs_ptr): Likewise.
6776 (gimple_assign_rhs1_ptr): Likewise.
6777 (gimple_assign_rhs2_ptr): Likewise.
6778 (gimple_assign_rhs3_ptr): Likewise.
6779 (gimple_call_lhs_ptr): Likewise.
6780 (gimple_call_fn_ptr): Likewise.
6781 (gimple_call_chain_ptr): Likewise.
6782 (gimple_call_arg_ptr): Likewise.
6783 (gimple_cond_lhs_ptr): Likewise.
6784 (gimple_cond_rhs_ptr): Likewise.
6785 (gimple_switch_index_ptr): Likewise.
6786 (gimple_return_retval_ptr): Likewise.
6787
6788 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6789
6790 * gimple.h (gimple_asm_input_op_ptr): Remove.
6791 (gimple_asm_output_op_ptr): Likewise.
6792
6793 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6794
6795 * gimple.h (gimple_location_ptr): Remove.
6796 * tree-vrp.c (check_all_array_refs): Adjust.
6797
6798 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6799
6800 * tree-ssa-operands.c (build_uses): store tree * instead of
6801 tree.
6802 (finalize_ssa_uses): Adjust.
6803 (append_use): Likewise.
6804 (verify_ssa_operands): Likewise.
6805
6806 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6807
6808 * real.h (build_real_truncate): Declare.
6809 * tree.c (build_real_truncate): New function.
6810 (strip_float_extensions): Use it.
6811 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
6812 (fold_builtin_hypot, fold_builtin_pow): Likewise.
6813 * match.pd: Likewise.
6814
6815 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
6816 Jiong Wang <jiong.wang@arm.com>
6817
6818 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
6819
6820 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6821
6822 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
6823 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
6824 (aarch64_print_operand, aarch64_float_const_representable_p)
6825 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
6826 instead of REAL_VALUE_FROM_CONST_DOUBLE.
6827 * config/arc/arc.c (arc_print_operand): Likewise.
6828 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
6829 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
6830 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
6831 Likewise.
6832 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
6833 (consttable_16): Likewise.
6834 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
6835 * config/avr/avr.c (avr_print_operand): Likewise.
6836 * config/bfin/bfin.md: Likewise (in a define_split).
6837 * config/c6x/c6x.md: Likewise (in a define_split).
6838 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
6839 (cr16_print_operand): Likewise.
6840 * config/cris/cris.c (cris_print_operand): Likewise.
6841 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
6842 * config/fr30/fr30.c (fr30_print_operand): Likewise.
6843 (fr30_const_double_is_zero): Likewise.
6844 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
6845 * config/frv/frv.md: Likewise (in a define_split).
6846 * config/frv/predicates.md (int_2word_operand): Likewise.
6847 * config/h8300/h8300.c (h8300_print_operand): Likewise.
6848 * config/i386/i386.c (standard_80387_constant_p): Likewise.
6849 (ix86_print_operand, ix86_split_to_parts): Likewise.
6850 * config/i386/i386.md: Likewise (in a define_split).
6851 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
6852 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
6853 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
6854 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
6855 (print_operand): Likewise.
6856 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
6857 * config/mep/mep.md: Likewise (in define_split).
6858 * config/microblaze/microblaze.c (microblaze_const_double_ok)
6859 (print_operand): Likewise.
6860 * config/mips/mips.md (consttable_float): Likewise.
6861 * config/mmix/mmix.c (mmix_intval): Likewise.
6862 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
6863 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
6864 * config/pa/pa.c (pa_singlemove_string): Likewise.
6865 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
6866 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
6867 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
6868 (output_toc): Likewise.
6869 * config/rs6000/rs6000.md: Likewise (in define_splits).
6870 * config/rx/rx.c (rx_print_operand): Likewise.
6871 * config/s390/s390.c (s390_output_pool_entry): Likewise.
6872 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
6873 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
6874 (and also in define_splits).
6875 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
6876 (fp_high_losum_p): Likewise.
6877 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
6878 (*movsf_high): Likewise.
6879 * config/spu/spu.c (const_double_to_hwint): Likewise.
6880 * config/v850/v850.c (const_double_split): Likewise.
6881 * config/vax/vax.c (vax_float_literal): Likewise.
6882 * config/visium/visium.c (visium_expand_copysign): Likewise.
6883 * config/visium/visium.md: Likewise (in define_split).
6884 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
6885 * config/xtensa/xtensa.c (print_operand): Likewise.
6886 (xtensa_output_literal): Likewise.
6887 * cprop.c (implicit_set_cond_p): Likewise.
6888 * dwarf2out.c (insert_float): Likewise.
6889 * expmed.c (expand_mult, make_tree): Likewise.
6890 * expr.c (compress_float_constant): Likewise.
6891 * rtlanal.c (split_double): Likewise.
6892 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
6893 (simplify_const_unary_operation, simplify_binary_operation_1)
6894 (simplify_const_binary_operation): Likewise.
6895 (simplify_const_relational_operation): Likewise.
6896 * varasm.c (output_constant_pool_2): Likewise.
6897
6898 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6899
6900 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
6901 instead of CONST_DOUBLE_FROM_REAL_VALUE.
6902 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
6903 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
6904 instead of CONST_DOUBLE_FROM_REAL_VALUE.
6905 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
6906 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
6907 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
6908 (ix86_emit_swsqrtsf): Likewise.
6909 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
6910 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
6911 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6912 * config/pa/pa.c (pa_expand_builtin): Likewise.
6913 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
6914 (rs6000_scale_v2df): Likewise.
6915 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
6916 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
6917 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
6918 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
6919 (vec_ctul): Likewise.
6920 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
6921 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
6922 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
6923 * cse.c (fold_rtx): Likewise.
6924 * emit-rtl.c (immed_double_const): Likewise (in comments).
6925 (init_emit_once): Likewise.
6926 * expr.c (compress_float_constant, expand_expr_real_1)
6927 (const_vector_from_tree): Likewise.
6928 * optabs.c (expand_float, expand_fix): Likewise.
6929 * reg-stack.c (reg_to_stack): Likewise.
6930 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
6931 (simplify_const_unary_operation, simplify_binary_operation_1)
6932 (simplify_const_binary_operation, simplify_relational_operation)
6933 (simplify_immed_subreg): Likewise.
6934
6935 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6936
6937 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
6938 * doc/tm.texi: Regenerate.
6939 * real.h (REAL_ARITHMETIC): Delete.
6940 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
6941 (ix86_expand_round_sse4): Use real_arithmetic instead of
6942 REAL_ARITHMETIC.
6943 * config/i386/sse.md (round<mode>2): Likewise.
6944 * rtl.h (rtx_to_tree_code): Likewise (in comment).
6945 * explow.c (rtx_to_tree_code): Likewise (in comment).
6946 * match.pd: Likewise.
6947 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6948 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
6949 (expand_pow_as_sqrts): Likewise.
6950 * tree-pretty-print.c (dump_generic_node): Remove code that
6951 was conditional on REAL_ARITHMETIC being undefined.
6952
6953 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6954
6955 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
6956 * doc/tm.texi: Regenerate.
6957 * real.h (real_less): Declare.
6958 (REAL_VALUES_LESS): Delete.
6959 * real.c (real_less): New function.
6960 (real_compare): Use it.
6961 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
6962 of REAL_VALUES_LESS.
6963 * config/microblaze/microblaze.c (microblaze_const_double_ok):
6964 Likewise.
6965 * fold-const.c (fold_convert_const_int_from_real): Likewise.
6966 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6967 (simplify_const_relational_operation): Likewise.
6968 * tree-call-cdce.c (check_pow): Likewise.
6969 (gen_conditions_for_pow_cst_base): Likewise.
6970
6971 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6972
6973 * real.h (REAL_VALUES_IDENTICAL): Delete.
6974 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
6975 instead of REAL_VALUES_IDENTICAL.
6976 * fold-const.c (operand_equal_p): Likewise.
6977 * ipa-icf.c (sem_variable::equals): Likewise.
6978 * tree-complex.c (some_nonzerop): Likewise.
6979 (expand_complex_multiplication): Likewise.
6980 * tree.c (simple_cst_equal): Likewise.
6981 * varasm.c (compare_constant): Likewise.
6982
6983 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6984
6985 * real.h (real_equal): Declare.
6986 (REAL_VALUES_EQUAL): Delete.
6987 * real.c (real_equal): New function.
6988 (real_compare): Use it.
6989 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
6990 * doc/tm.texi: Regenerate.
6991 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
6992 real_equal instead of REAL_VALUES_EQUAL.
6993 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
6994 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
6995 (fp_const_from_val): Likewise.
6996 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
6997 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
6998 (floating_exact_log2): Likewise.
6999 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7000 * config/vax/vax.c (vax_float_literal): Likewise.
7001 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7002 * cprop.c (implicit_set_cond_p): Likewise.
7003 * expmed.c (expand_mult): Likewise.
7004 * fold-const.c (const_binop): Likewise.
7005 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7006 (simplify_const_binary_operation): Likewise.
7007 (simplify_const_relational_operation): Likewise.
7008 * tree-call-cdce.c (check_pow): Likewise.
7009 (gen_conditions_for_pow_cst_base): Likewise.
7010 * tree-inline.c (estimate_num_insns): Likewise.
7011 * tree-ssa-dom.c (record_equality): Likewise.
7012 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7013 (gimple_expand_builtin_pow): Likewise.
7014 (pass_optimize_widening_mul::execute): Likewise.
7015 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
7016 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
7017 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
7018
7019 2015-10-05 Richard Biener <rguenther@suse.de>
7020
7021 PR ipa/67783
7022 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
7023 consider loop header PHI defs as IVs.
7024
7025 2015-10-05 Richard Biener <rguenther@suse.de>
7026
7027 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
7028 call handling ...
7029 (create_expression_by_pieces): ... here and build GIMPLE
7030 calls directly. Use gimple_build API and avoid force_gimple_operand.
7031 (insert_into_preds_of_block): Simplify.
7032 (do_regular_insertion): Add comment.
7033
7034 2015-10-04 Jason Merrill <jason@redhat.com>
7035
7036 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
7037
7038 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
7039
7040 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
7041 check for general register.
7042 (ix86_emit_save_regs): Ditto.
7043 (ix86_emit_save_regs_using_mov): Ditto.
7044 (ix86_emit_restore_regs_using_pop): Ditto.
7045 (ix86_emit_restore_regs_using_mov): Ditto.
7046
7047 2015-10-03 Marek Polacek <polacek@redhat.com>
7048
7049 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
7050 (insn-dfatab.o): Likewise.
7051
7052 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
7053
7054 * config.gcc (xtensa*-*-uclinux*): New configuration.
7055 * config/xtensa/uclinux.h: New file.
7056 * config/xtensa/uclinux.opt: New file.
7057
7058 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
7059
7060 * doc/cpp.texi (Standard Predefined Macros): Document value of
7061 __cplusplus for C++14.
7062
7063 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
7064
7065 * gcc.c (process_command): Use spec_machine rather than
7066 spec_host_machine to build tooldir_prefix2.
7067
7068 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7069 Bernd Schmidt <bernds@codesourcery.com>
7070
7071 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
7072 (Token, Stmt): Remove structs.
7073 (decls, vars, fns): Remove variables.
7074 (alloc_comment, append_stmt, is_keyword): Remove macros.
7075 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
7076 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
7077 (parse_init, parse_file): Remove functions.
7078 (read_file): Accept a pointer to a length and store into it.
7079 (process): Don't try to parse the input file, just write it out as
7080 a string, but looking for maps. Also write out the length.
7081 (main): Don't use "-S" to compile PTX code.
7082
7083 2015-10-02 Jeff Law <law@redhat.com>
7084
7085 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
7086 fixups.
7087
7088 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7089
7090 PR target/67822
7091 * config/nvptx/mkoffload.c (main): Scan the argument vector for
7092 -fopenmp, and skip generating an offloading image if specified.
7093
7094 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
7095
7096 * system.h (ROUND_UP): New macro definition.
7097 (ROUND_DOWN): Ditto.
7098 * ggc-page.c (ROUND_UP): Remove local macro definition.
7099 (PAGE_ALIGN): Implement using ROUND_UP macro.
7100
7101 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
7102 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
7103 to align values.
7104 (ix86_compute_frame_layout): Ditto.
7105 (ix86_expand_prologue): Ditto.
7106 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
7107 to round down values.
7108 (expand_set_or_movmem_via_rep): Ditto.
7109
7110 2015-10-02 Marek Polacek <polacek@redhat.com>
7111
7112 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
7113
7114 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
7115
7116 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
7117 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
7118 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
7119 (free_gimple_bb): Renamed free_gimple_poly_bb.
7120 (try_generate_gimple_bb): Hoist loop invariant code.
7121 (analyze_drs_in_stmts): Same.
7122 (build_scop_drs): Call renamed functions.
7123 (new_pbb_from_pbb): Same.
7124 (scop_ivs_can_be_represented): Delete as functionality now moved to
7125 graphite-scop-detection.c
7126 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
7127
7128 2015-10-02 Aditya Kumar <hiraditya@msn.com>
7129
7130 * graphite-scop-detection.c (stmt_has_side_effects): New function
7131 outlined from stmt_simple_for_scop_p.
7132 (graphite_can_represent_stmt): Same.
7133 (stmt_simple_for_scop_p): Moved code out of this function for better
7134 readability.
7135
7136 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
7137
7138 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
7139 F_AVX512IFMA.
7140 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
7141
7142 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7143
7144 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
7145
7146 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
7147
7148 PR rtl-optimization/67756
7149 * lra-constraints.c (match_reload): Add a new parameter. Use it
7150 for creating a pseudo with the same value.
7151 (curr_insn_transform): Pass a new argument to match_reload.
7152
7153 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
7154
7155 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
7156 (expand_vec_perm_even_odd_1): Handle V64QImode.
7157 (ix86_expand_vec_perm_const_1): Try expansion with
7158 expand_vec_perm_even_odd_trunc as well.
7159 * config/i386/sse.md (VI124_AVX512F): Rename to ...
7160 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
7161 to V54QI.
7162 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
7163 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
7164 to V32HI and V16SI.
7165 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
7166 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
7167 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
7168 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
7169 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
7170 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
7171
7172 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
7173
7174 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
7175 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
7176
7177 2015-10-02 Jason Merrill <jason@redhat.com>
7178
7179 PR c/59218
7180 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
7181 (diagnose_tm_1_op): Also diagnose volatile accesses in
7182 transaction_safe function.
7183
7184 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
7185
7186 * system.h (malloc.h): Don't include obsolete header.
7187
7188 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7189
7190 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
7191 (TLS_SECTION_ASM_FLAG): Delete.
7192
7193 2015-10-02 Marek Polacek <polacek@redhat.com>
7194
7195 PR c/64249
7196 * doc/invoke.texi: Document -Wduplicated-cond.
7197 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
7198 (insn-dfatab.o): Likewise.
7199 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
7200 warning.
7201
7202 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
7203
7204 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
7205 sequences.
7206
7207 2015-10-02 Renlin Li <renlin.li@arm.com>
7208
7209 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
7210
7211 2015-10-02 Renlin Li <renlin.li@arm.com>
7212
7213 PR target/66776
7214 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
7215
7216 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7217
7218 PR rtl-optimization/67786
7219 PR rtl-optimization/67787
7220 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
7221 it modifies a reg used in the condition calculation.
7222
7223 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
7224
7225 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
7226 alternatives for reads from memory and moves from general-purpose
7227 registers.
7228 (*aarch64_combinez_be<mode>): Likewise.
7229
7230 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
7231
7232 PR target/51726
7233 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
7234 selectany within this function without need to keep attribute.
7235 (i386_pe_encode_section_info): Remove selectany-code.
7236
7237 2015-10-02 Richard Biener <rguenther@suse.de>
7238
7239 * tree-ssa-sccvn.c (has_VN_INFO): New function.
7240 (free_scc_vn): Use it.
7241 (visit_use): Remove dead code and refactor to use gassign
7242 and use less indentation.
7243
7244 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7245
7246 PR target/67788
7247 PR target/67789
7248 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
7249 (rs6000_cannot_copy_insn_p): New function.
7250 * config/rs6000/rs6000.md (cannot_copy): New attribute.
7251 (load_toc_v4_PIC_1_normal): Set cannot_copy.
7252 (load_toc_v4_PIC_1_476): Ditto.
7253
7254 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
7255
7256 * graphite-scop-detection.c (struct sese_l): New conversion constructor
7257 so that this type can be pushed into a vec.
7258 (class scop_builder): use sese_l to collect scops.
7259 (get_scops): New getter function.
7260 (remove_intersecting_scops): Use sese_l instead of scops_p.
7261 (intersects): Same.
7262 (add_scop): Same.
7263 (subsumes): Same.
7264 (remove_subscops): Same.
7265 (build_scops): Add scops to vec<scops_p> once all the scops have been
7266 detected.
7267
7268 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
7269
7270 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
7271 Renamed type from gimple_bb_p to gimple_poly_bb_p.
7272 (translate_isl_ast_node_user): Same.
7273 * graphite-poly.c (new_poly_bb): Same.
7274 * graphite-poly.h (gbb_from_bb): Same.
7275 * sese.h: Same.
7276 * graphite-sese-to-poly.c (new_gimple_bb):
7277 gimple_bb_p -> gimple_poly_bb_p
7278 (build_scop_scattering): Same.
7279 (find_params_in_bb): Same.
7280 (add_conditions_to_domain): Same.
7281 (sese_dom_walker::before_dom_children): Same.
7282 (analyze_drs_in_stmts): Same.
7283 (new_pbb_from_pbb): Same.
7284 (free_data_refs_aux): New pointer to type base_alias_pair.
7285 * graphite-sese-to-poly.h: Same.
7286 * sese.c (if_region_set_false_region): Fixed Indentation.
7287 (move_sese_in_condition): Same.
7288
7289 2015-10-01 Sebastian Pop <s.pop@samsung.com>
7290 Aditya Kumar <aditya.k7@samsung.com>
7291
7292 PR tree-optimization/66980
7293 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
7294 when data reference analysis has failed.
7295
7296 2015-10-01 Sebastian Pop <s.pop@samsung.com>
7297 Aditya Kumar <aditya.k7@samsung.com>
7298
7299 PR tree-optimization/67754
7300 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
7301 scev analysis on the same loop nest as analyze_drs_in_stmts.
7302 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
7303 renamed...
7304 (try_generate_gimple_bb): Call outermost_loop_in_sese.
7305 (analyze_drs_in_stmts): Same.
7306 * sese.c (outermost_loop_in_sese): ...here.
7307
7308 2015-10-01 Sebastian Pop <s.pop@samsung.com>
7309 Aditya Kumar <aditya.k7@samsung.com>
7310
7311 PR tree-optimization/67754
7312 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
7313 recursion on the inner loops.
7314
7315 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7316
7317 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
7318 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
7319 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
7320 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
7321 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
7322
7323 2015-10-01 Marek Polacek <polacek@redhat.com>
7324
7325 PR c/65345
7326 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
7327 create_tmp_var_raw rather than create_tmp_var.
7328
7329 2015-10-01 Marek Polacek <polacek@redhat.com>
7330
7331 PR tree-optimization/67769
7332 * tree-ssa-phiopt.c (conditional_replacement): Call
7333 reset_flow_sensitive_info_in_bb.
7334 (minmax_replacement): Likewise.
7335 (abs_replacement): Likewise.
7336
7337 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
7338
7339 * builtins.c: Don't include gomp-constants.h.
7340 (fold_builtin_1): Don't fold acc_on_device here.
7341 * gimple-fold.c: Include gomp-constants.h.
7342 (gimple_fold_builtin_acc_on_device): New.
7343 (gimple_fold_builtin): Call it.
7344
7345 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
7346
7347 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
7348 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
7349
7350 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
7351
7352 * config/arm/aarch-common-protos.h
7353 (aarch_accumulator_forwarding): New.
7354 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
7355 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
7356 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
7357 * config/arm/cortex-a53.md: Rewrite.
7358
7359 2015-10-01 Richard Biener <rguenther@suse.de>
7360
7361 * gimple-match.h (mprts_hook): Declare.
7362 * gimple-match.head.c (mprts_hook): Define.
7363 (maybe_push_res_to_seq): Use new hook.
7364 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
7365 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
7366 (vn_ssa_aux::has_constants): Remove.
7367 * tree-ssa-sccvn.c: Include gimple-match.h.
7368 (VN_INFO_GET): Assert we don't re-use SSA names.
7369 (vn_get_expr_for): Remove.
7370 (expr_has_constants): Likewise.
7371 (stmt_has_constants): Likewise.
7372 (simplify_binary_expression): Likewise.
7373 (simplify_unary_expression): Likewise.
7374 (vn_lookup_simplify_result): New hook.
7375 (visit_copy): Adjust.
7376 (visit_reference_op_call): Likewise.
7377 (visit_phi): Likewise.
7378 (visit_use): Likewise.
7379 (process_scc): Likewise.
7380 (init_scc_vn): Likewise.
7381 (visit_reference_op_load): Likewise. Use match-and-simplify and
7382 a gimple seq for inserted expressions.
7383 (try_to_simplify): Remove GENERIC stmt combining code.
7384 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
7385 * tree-ssa-pre.c (eliminate_insert): Adjust.
7386 (eliminate_dom_walker::before_dom_children): Likewise.
7387
7388 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7389
7390 * doc/invoke.texi (Optimization Options): Add
7391 -freorder-blocks-algorithm=.
7392 (Optimize Options) <-O>: Add -freorder-blocks.
7393 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
7394 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
7395 <-freorder-blocks>: Also enabled at levels -O and -Os.
7396 <-freorder-blocks-algorithm=>: Document new option.
7397
7398 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7399
7400 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
7401 with flag_reorder_blocks_algorithm.
7402 * common.opt (freorder-blocks-algorithm=): New flag.
7403 (reorder_blocks_algorithm): New enum.
7404 * flag-types.h (reorder_blocks_algorithm): New enum.
7405 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
7406 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
7407
7408 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7409
7410 * bb-reorder.c: Add intro comment.
7411 (reorder_basic_blocks_software_trace_cache): Print a header to
7412 the dump file.
7413 (edge_order): New function.
7414 (reorder_basic_blocks_simple): New function.
7415 (reorder_basic_blocks): Choose between the STC and the simple
7416 algorithms (always choose the former).
7417
7418 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7419
7420 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
7421 function, factored out from ...
7422 (reorder_basic_blocks): ... here.
7423
7424 2015-10-01 Tom de Vries <tom@codesourcery.com>
7425
7426 * tree-cfg.c (dump_function_to_file): Dump function attributes using
7427 __attribute__(()) string. Move dumping of function attributes to before
7428 function name.
7429
7430 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
7431
7432 PR target/66870
7433 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7434 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
7435 based on gold linker version.
7436 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
7437 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
7438 * configure, config.in: Regenerate.
7439
7440 2015-10-01 Alan Modra <amodra@gmail.com>
7441
7442 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
7443 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
7444 (rs6000_output_mi_thunk): Likewise.
7445
7446 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7447
7448 * config/nvptx/mkoffload.c (process): Change offload data format.
7449
7450 2015-09-30 Jeff Law <law@redhat.com>
7451
7452 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
7453 with constant conditions.
7454 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
7455 (remove_ctrl_stmt_and_useless_edges): No longer static.
7456 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
7457 (remove_ctrl_stmt_and_useless_edges): Likewise.
7458
7459 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7460 Cesar Philippidis <cesar@codesourcery.com>
7461
7462 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
7463 (TARGET_GOACC_VALIDATE_DIMS): Override.
7464 * target.def (TARGET_GOACC): New target hook prefix.
7465 (validate_dims): New hook.
7466 * targhooks.h (default_goacc_validate_dims): New.
7467 * omp-low.c (oacc_validate_dims): New.
7468 (execute_oacc_device_lower): New.
7469 (default_goacc_validate_dims): New.
7470 (pass_data_oacc_device_lower): New.
7471 (pass_oacc_device_lower): New pass.
7472 (make_pass_oacc_device_lower): New.
7473 * tree-pass.h (make_pass_oacc_device_lower): Declare.
7474 * passes.def (pass_oacc_device_lower): Add it.
7475 * doc/tm.texi: Rebuilt.
7476 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
7477 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
7478
7479 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
7480
7481 PR rtl-optimization/67037
7482 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
7483
7484 2015-09-30 Bernd Schmidt <bernds@redhat.com>
7485
7486 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
7487 * passes.c: Include tree-ssanames.h.
7488 (execute_function_todo): Flush the pending free SSA_NAMEs after
7489 eliminating unreachable basic blocks.
7490 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
7491 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
7492 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
7493 (flush_ssanames_freelist): New function.
7494 (release_ssaname_fn): Put released names on the queue.
7495 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
7496 * tree-ssanames.h (flush_ssanames_freelist): Declare.
7497
7498 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7499
7500 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
7501 (generate_target_descr_file, generate_target_offloadend_file)
7502 (generate_host_descr_file, prepare_target_image): Pass it on.
7503 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
7504 (compile_native, main): Pass it on.
7505 * lto-wrapper.c (compile_offload_image): Likewise.
7506
7507 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7508 Ilya Verbin <ilya.verbin@intel.com>
7509 Andrey Turetskiy <andrey.turetskiy@intel.com>
7510
7511 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
7512 (prepare_target_image, main): Refactor argv building to use
7513 obstacks.
7514
7515 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7516
7517 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
7518 * config/spu/spu.c (spu_expand_atomic_op): New function.
7519 * config/spu/spu.md (AINT): New mode iterator.
7520 (ATOMIC): New code iterator.
7521 (atomic_name, atomic_pred): New code predicates.
7522 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
7523 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
7524 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
7525 "atomic_<atomic_name>_fetch<mode>"): Likewise.
7526
7527 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
7528
7529 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
7530 debug insns.
7531 (scalar_chain::convert_reg): Likewise.
7532
7533 2015-09-30 Richard Biener <rguenther@suse.de>
7534
7535 * builtins.c: Add comment that no new simplifications should
7536 be added here.
7537
7538 2015-09-30 Marek Polacek <polacek@redhat.com>
7539
7540 PR tree-optimization/67690
7541 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
7542 reset_flow_sensitive_info_in_bb.
7543 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
7544 * tree-ssanames.c: Include "gimple-iterator.h".
7545 (reset_flow_sensitive_info_in_bb): New function.
7546 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
7547
7548 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7549
7550 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
7551 variable, replacing it with...
7552 (offload_abi): ... this new variable. Adjust all users.
7553 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
7554
7555 2015-09-30 Matthias Klose <doko@ubuntu.com>
7556
7557 * configure.ac: Remove extraneous ;;.
7558 * configure: Regenerate.
7559
7560 2015-09-29 James Bowman <james.bowman@ftdichip.com>
7561
7562 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
7563 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
7564 predicate, disallow register for operand 2.
7565
7566 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
7567
7568 * graphite-dependences.c (scop_get_dependences): Moved in down
7569 in order to be visible to its caller.
7570 * graphite-poly.h: Removed compute_deps, and extend_schedule.
7571
7572 2015-09-29 Sebastian Pop <s.pop@samsung.com>
7573 Aditya Kumar <aditya.k7@samsung.com>
7574
7575 PR tree-optimization/67754
7576 * graphite-optimize-isl.c (optimize_isl): Call
7577 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
7578
7579 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7580
7581 * builtins.c (expand_builtin_acc_on_device): Delete.
7582 (expand_builtin): Don't call it.
7583 (fold_builtin_1): Fold acc_on_device.
7584
7585 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
7586
7587 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
7588 (ix86_nsaved_sseregs): Likewise.
7589
7590 2015-09-29 Jeff Law <law@redhat.com>
7591
7592 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
7593 computation of unused value.
7594
7595 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
7596 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
7597 inline macro expansion.
7598
7599 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
7600
7601 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
7602 (gen_shl_sext): Likewise.
7603 * config/sh/sh.md (divsi3): Likewise.
7604 (imm->ext_dest_operand splitter): Likewise.
7605
7606 2015-09-29 Sebastian Pop <s.pop@samsung.com>
7607 Aditya Kumar <aditya.k7@samsung.com>
7608
7609 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
7610 (nb_data_writes_in_bb): Remove.
7611 (split_pbb): Remove.
7612 (split_reduction_stmt): Remove.
7613 (is_reduction_operation_p): Remove.
7614 (phi_contains_arg): Remove.
7615 (follow_ssa_with_commutative_ops): Remove.
7616 (detect_commutative_reduction_arg): Remove.
7617 (detect_commutative_reduction_assign): Remove.
7618 (follow_inital_value_to_phi): Remove.
7619 (edge_initial_value_for_loop_phi): Remove.
7620 (initial_value_for_loop_phi): Remove.
7621 (used_outside_reduction): Remove.
7622 (detect_commutative_reduction): Remove.
7623 (translate_scalar_reduction_to_array_for_stmt): Remove.
7624 (remove_phi): Remove.
7625 (dr_indices_valid_in_loop): Remove.
7626 (close_phi_written_to_memory): Remove.
7627 (translate_scalar_reduction_to_array): Remove.
7628 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
7629 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
7630 (rewrite_commutative_reductions_out_of_ssa): Remove.
7631 (build_poly_scop): Remove call to
7632 rewrite_commutative_reductions_out_of_ssa.
7633
7634 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
7635
7636 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
7637 Add new insn types for vector load and store pairs.
7638 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
7639 types "neon_ldp{,_q}".
7640 * config/arm/cortex-a57.md (neon_load_c): Add insn types
7641 "neon_ldp{,_q}".
7642 (neon_store_complex): Add insn types "neon_stp{,_q}".
7643 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
7644 "neon_{ldp,stp}_q".
7645
7646 2015-09-29 Jeff Law <law@redhat.com>
7647
7648 * config/rx/constraints.md (Int08): Fix undefined left shift
7649 behaviour.
7650 (Sint08, Sint16, Sint24): Likewise.
7651 * config/rx/rx.c (rx_get_stack_layout): Likewise.
7652
7653 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
7654 behaviour.
7655
7656 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
7657 left shift behaviour.
7658 * config/msp430/constraints.md ('L' constraint): Similarly.
7659 ('Ys' constraint): Similarly.
7660
7661 2015-09-29 Richard Biener <rguenther@suse.de>
7662
7663 PR tree-optimization/67170
7664 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
7665 the translate function pointer parameter to get the
7666 bool whether to disambiguate only by reference.
7667 (walk_non_aliased_vuses): Likewise.
7668 * tree-ssa-alias.c (maybe_skip_until): Adjust.
7669 (get_continuation_for_phi_1): Likewise.
7670 (get_continuation_for_phi): Likewise.
7671 (walk_non_aliased_vuses): Likewise.
7672 * tree-ssa-sccvn.c (const_parms): New bitmap.
7673 (vn_reference_lookup_3): Adjust for interface change.
7674 Disambiguate parameters pointing to readonly memory.
7675 (free_scc_vn): Free const_parms.
7676 (run_scc_vn): Initialize const_parms from a fn spec attribute.
7677
7678 2015-09-29 Richard Biener <rguenther@suse.de>
7679
7680 PR tree-optimization/67741
7681 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
7682 builtin calls with correct signature.
7683
7684 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
7685
7686 PR target/65105
7687 * config/i386/i386.c: Include dbgcnt.h.
7688 (has_non_address_hard_reg): New.
7689 (convertible_comparison_p): New.
7690 (scalar_to_vector_candidate_p): New.
7691 (remove_non_convertible_regs): New.
7692 (scalar_chain): New.
7693 (scalar_chain::scalar_chain): New.
7694 (scalar_chain::~scalar_chain): New.
7695 (scalar_chain::add_to_queue): New.
7696 (scalar_chain::mark_dual_mode_def): New.
7697 (scalar_chain::analyze_register_chain): New.
7698 (scalar_chain::add_insn): New.
7699 (scalar_chain::build): New.
7700 (scalar_chain::compute_convert_gain): New.
7701 (scalar_chain::replace_with_subreg): New.
7702 (scalar_chain::replace_with_subreg_in_insn): New.
7703 (scalar_chain::emit_conversion_insns): New.
7704 (scalar_chain::make_vector_copies): New.
7705 (scalar_chain::convert_reg): New.
7706 (scalar_chain::convert_op): New.
7707 (scalar_chain::convert_insn): New.
7708 (scalar_chain::convert): New.
7709 (convert_scalars_to_vector): New.
7710 (pass_data_stv): New.
7711 (pass_stv): New.
7712 (make_pass_stv): New.
7713 (ix86_option_override): Created and register stv pass.
7714 (flag_opts): Add -mstv.
7715 (ix86_option_override_internal): Likewise.
7716 * config/i386/i386.md (SWIM1248x): New.
7717 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
7718 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
7719 (*anddi3_doubleword): New.
7720 (*zext<mode>_doubleword): New.
7721 (*zextsi_doubleword): New.
7722 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
7723 (*<code>di3_doubleword): New.
7724 * config/i386/i386.opt (mstv): New.
7725 * dbgcnt.def (stv_conversion): New.
7726
7727 2015-09-29 Tom de Vries <tom@codesourcery.com>
7728
7729 * tree-cfg.c (dump_function_to_file): Dump function attributes.
7730
7731 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
7732
7733 PR target/67716
7734 * config/sh/sh.c (sh_override_options_after_change): New.
7735 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
7736 (sh_option_override): Move align_loops, align_jumps and
7737 align_functions handling into sh_override_options_after_change.
7738
7739 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7740
7741 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
7742 (nvptx_record_offload_symbol): Record function execution geometry.
7743 * config/nvptx/mkoffload.c (process): Include launch geometry in
7744 function data.
7745 * omp-low.c (oacc_launch_pack): New.
7746 (replace_oacc_fn_attrib): New.
7747 (set_oacc_fn_attrib): New.
7748 (get_oacc_fn_attrib): New.
7749 (expand_omp_target): Create keyed varargs for GOACC_parallel call
7750 generation.
7751 * omp-low.h (get_oacc_fn_attrib): Declare.
7752 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
7753 (DEF_FUNCTION_TYPE_VAR_11): Delete.
7754 * tree.h (OMP_CLAUSE_EXPR): New.
7755 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
7756
7757 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
7758 Sebastian Pop <s.pop@samsung.com>
7759
7760 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
7761
7762 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
7763 Sebastian Pop <s.pop@samsung.com>
7764
7765 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
7766 * graphite-scop-detection.c (struct sese_l): New type.
7767 (get_entry_bb): API for getting entry bb of SESE.
7768 (get_exit_bb): API for getting exit bb of SESE.
7769 (class debug_printer): New type. Simple printer in debug mode.
7770 (trivially_empty_bb_p): New. Return true when BB is empty or
7771 contains only debug instructions.
7772 (graphite_can_represent_expr): Call scalar_evoution_in_region
7773 instead of analyze_scalar_evolution. Pass in scop instead of only
7774 the scop entry.
7775 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
7776 scop entry.
7777 (stmt_simple_for_scop_p): Same.
7778 (harmful_stmt_in_bb): Same.
7779 (graphite_can_represent_loop): Deleted.
7780 (struct scopdet_info): Deleted.
7781 (scopdet_basic_block_info): Deleted.
7782 (build_scops_1): Deleted.
7783 (bb_in_sd_region): Deleted.
7784 (find_single_entry_edge): Deleted.
7785 (find_single_exit_edge): Deleted.
7786 (create_single_entry_edge): Deleted.
7787 (sd_region_without_exit): Deleted.
7788 (create_single_exit_edge): Deleted.
7789 (unmark_exit_edges): Deleted.
7790 (mark_exit_edges): Deleted.
7791 (create_sese_edges): Deleted.
7792 (build_graphite_scops): Deleted.
7793 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
7794 (build_scops): Use the new scop_builder to build scops.
7795 (dot_all_scops_1): Use the new pretty printer. Print loop father
7796 as well.
7797 (loop_body_is_valid_scop): New. Return true if loop body is a
7798 valid scop.
7799 (class scop_builder): New. Builds SCoPs for polyhedral
7800 optimizations.
7801 (scop_builder): New constructor.
7802 (static sese_l invalid_sese): sese_l with invalid edges.
7803 (get_sese): Get an sese (from a loop) if possible, invalid_sese
7804 otherwise.
7805 (get_nearest_dom_with_single_entry): Get nearest dominator of a
7806 basic_block with single entry. Return NULL if we get to the
7807 beginning of a function.
7808 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
7809 a basic_block with single exit. Return NULL if we get to the
7810 beginning of a function.
7811 (print_sese): Pretty-print SESE.
7812 (merge_sese): Merge two SESEs if possible and return the new SESE.
7813 (build_scop_depth): Start building the SCoP within a loop nest.
7814 (build_scop_breadth): Start building the SCoP at a single loop
7815 depth. Merge adjacent SESEs if valid.
7816 (can_represent_loop_1): Returns true if Graphite can represent
7817 loop inside SCoP. Helper for can_represent_loop.
7818 (can_represent_loop): Returns true if Graphite can represent LOOP
7819 and all its nested loops in SCoP.
7820 (loop_is_valid_scop): Returns true if LOOP and all its nests
7821 constitute a valid SCoP.
7822 (region_has_one_loop): Returns true of a region has only one loop.
7823 (add_scop): Add SCoP to the list of valid scops. Removes an
7824 already existing scop if it intersects with or subsumed by this one.
7825 (harmful_stmt_in_region): Returns true if SCoP has any statment
7826 which cannot be represented by Graphite.
7827 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
7828 (remove_subscops): Remove any SCoP from the list of already found
7829 SCoPs, if subsumed by S1.
7830 (intersects): Return true if region bounded by SCoPs S1 and S2
7831 intersect.
7832 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
7833 * graphite.c (print_graphite_scop_statistics):
7834 (print_graphite_statistics): Print SCoP info while debugging.
7835 (graphite_initialize): Early exit in case number of loops in a
7836 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
7837 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
7838 (graphite_finalize):
7839 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
7840 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
7841 (recompute_all_dominators): Recalculate POST_DOMINATORS.
7842 * tree-cfg.c (print_loops): Print the function name while printing
7843 loops.
7844
7845 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
7846 Sebastian Pop <s.pop@samsung.com>
7847
7848 PR tree-optimization/67700
7849 * graphite-sese-to-poly.c (parameter_index_in_region): Call
7850 invariant_in_sese_p_rec.
7851 (extract_affine): Same.
7852 (rewrite_cross_bb_scalar_deps): Call update_ssa.
7853 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
7854 * sese.h (invariant_in_sese_p_rec): Declare.
7855
7856 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
7857
7858 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
7859
7860 2015-09-28 Jiong Wang <jiong.wang@arm.com>
7861
7862 Revert:
7863 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7864 Jiong Wang <jiong.wang@arm.com>
7865
7866 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
7867 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
7868 (REG_CLASS_NAMES): Likewise.
7869 (REG_CLASS_CONTENTS): Likewise.
7870 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
7871 (aarch64_register_move_cost): Likewise.
7872 (aarch64_load_symref_appropriately): Invoke the new added pattern if
7873 possible.
7874 * config/aarch64/constraints.md (Uc0): New constraint.
7875
7876 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
7877
7878 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
7879
7880 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
7881
7882 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
7883 SECTION_EXCLUDE in XO mapping class.
7884
7885 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
7886
7887 PR target/54236
7888 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
7889 and handle ne and eq codes.
7890 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
7891 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
7892 CONST_INT_P. Use reverse_condition.
7893 (sh_split_treg_set_expr): Likewise.
7894
7895 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
7896
7897 * config/arm/types.md (type): Add rotate_imm.
7898 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
7899 ROR immediate case.
7900 (*rorsi3_insn_uxtw): Likewise.
7901 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
7902 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
7903 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
7904
7905 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7906
7907 PR rtl-optimization/67481
7908 * ifcvt.c (contains_ccmode_rtx_p): New function.
7909 (insn_valid_noce_process_p): Use it.
7910
7911 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7912
7913 PR rtl-optimization/67456
7914 PR rtl-optimization/67464
7915 PR rtl-optimization/67465
7916 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
7917 move in the mode of x. Handle combination of complex and simple
7918 block pairs as well as the case when one is empty.
7919
7920 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7921
7922 * doc/gimple.texi: Update references to gimple_statement_base.
7923 * gdbhooks.py: Likewise.
7924 * gimple.h: Likewise.
7925
7926 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7927
7928 * config/sparc/driver-sparc.c: map LEON to leon3
7929
7930 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7931
7932 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
7933 and make it inverse to change default
7934 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
7935 supervisor mode
7936 * doc/invoke.texi: Document change of default
7937
7938 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7939
7940 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
7941 true on %f0 for a target without FPU.
7942 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
7943 without FPU.
7944 (untyped_return): Do not load %f0 for a target without FPU.
7945
7946 2015-09-28 Andrew Pinski <apinski@cavium.com>
7947
7948 * config/aarch64/aarch64.md (prefetch):
7949 Change the predicate of operand 0 to register_operand.
7950
7951 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
7952
7953 * config/i386/predicates.md (register_sse4nonimm_operand): New
7954 predicate.
7955 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
7956 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
7957 Use register_sse4nonimm_operand as operand 0 predicate.
7958 (*vec_extractv8hi_sse2): Remove insn pattern.
7959 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
7960 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
7961
7962 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
7963 Kaz Kojima <kkojima@gcc.gnu.org>
7964
7965 PR target/67391
7966 * config/sh/sh-protos.h (sh_lra_p): Declare.
7967 * config/sh/sh.c (sh_lra_p): Make non-static.
7968 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
7969 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
7970 Expand into addsi3_scr if operands[2] if needed.
7971 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
7972 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
7973 (addsi3_scr, *addsi3): New insn_and_split patterns.
7974
7975 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
7976
7977 PR rtl-optimization/64164
7978 PR tree-optimization/67312
7979 PR middle-end/67340
7980 PR middle-end/67490
7981 PR bootstrap/67597
7982 * cfgexpand.c (parm_in_stack_slot_p): Remove.
7983 (ssa_default_def_partition): Remove.
7984 (get_rtl_for_parm_ssa_default_def): Remove.
7985 (set_rtl): Check that RTL assignments match expectations.
7986 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
7987 default def location for params and results. Record SSA names
7988 or types in REG and MEM attrs, respectively.
7989 (set_parm_rtl): New.
7990 (expand_one_ssa_partition): Drop logic that assigned MEMs with
7991 unassigned addresses.
7992 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
7993 deferred stack alloc vars.
7994 (expand_used_vars): Skip partitions holding parm default defs.
7995 Move adjust_one_expanded_partition_var loop...
7996 (pass_expand::execute): ... here. Drop redundant assert.
7997 Adjust comments before the final loop over all ssa names.
7998 Require assigned rtl of parms and results to match exactly.
7999 Reset its attributes to match them, not any other variables in
8000 the same partition.
8001 (expand_debug_expr): Use entry value for PARM's default defs
8002 only iff they have zero nondebug uses.
8003 * cfgexpand.h (parm_in_stack_slot_p): Remove.
8004 (get_rtl_for_parm_ssa_default_def): Remove.
8005 (set_parm_rtl): Declare.
8006 * doc/invoke.texi: Improve wording.
8007 * explow.c (promote_decl_mode): Fix promote_function_mode for
8008 result decls not by reference.
8009 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
8010 bypass TYPE_MODE to get the actual vector mode.
8011 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
8012 2015-08-19's changes as follows. Drop include of
8013 basic-block.h and df.h.
8014 (rtl_for_parm): Remove.
8015 (maybe_reset_rtl_for_parm): Remove.
8016 (parm_in_unassigned_mem_p): Remove.
8017 (use_register_for_decl): Add logic for RESULT_DECLs matching
8018 assign_parms' behavior.
8019 (split_complex_args): Revert.
8020 (assign_parms_augmented_arg_list): Revert. Add comment
8021 referencing the logic above.
8022 (assign_parm_adjust_stack_rtl): Revert.
8023 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
8024 of SET_DECL_RTL. Set up a REG if the parm demands so.
8025 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
8026 calls into a single set_parm_rtl. Set up a temporary RTL
8027 temporarily for expand_assignment.
8028 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
8029 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
8030 (assign_bounds): Revert.
8031 (assign_parms): Revert. Use set_parm_rtl.
8032 (allocate_struct_function): Relayout result and parms of
8033 non-abstruct functions.
8034 (expand_function_start): Revert. Use set_parm_rtl. If the
8035 result is not a hard reg, create a pseudo from the promoted
8036 mode of the default def. Promote static chain mode.
8037 * tree-outof-ssa.c (remove_ssa_form): Drop unused
8038 partition_has_default_def. Set up
8039 partitions_for_parm_default_defs.
8040 (finish_out_of_ssa): Remove partition_has_default_def.
8041 Release partitions_for_parm_default_defs.
8042 * tree-outof-ssa.h (struct ssaexpand): Remove
8043 partition_has_default_def. Add
8044 partitions_for_parm_default_defs.
8045 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
8046 stor-layout.h.
8047 (build_ssa_conflict_graph): Fix conflict-detection of default
8048 defs of even unused default defs of params and results.
8049 (for_all_parms): New.
8050 (create_default_def): New.
8051 (register_default_def): New.
8052 (coalesce_with_default): New.
8053 (create_outofssa_var_map): Create default defs for all parms
8054 and results, and register their partitions. Add GIMPLE_RETURN
8055 operands as coalesce candidates with results. Add default
8056 defs of each parm or result as coalesce candidates with its
8057 other defs. Mark each result def, and each default def of
8058 parms, as used_in_copy.
8059 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
8060 with the ssa names, even anonymous ones. Drop
8061 parm_in_stack_slot_p calls. Require same signedness and
8062 alignment.
8063 (coalesce_ssa_name): Add coalesce candidates for all defs of
8064 each parm and result, even unused ones.
8065 (parm_default_def_partition_arg): New type.
8066 (set_parm_default_def_partition): New.
8067 (get_parm_default_def_partitions): New.
8068 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
8069 * tree-ssa-live.c (partition_view_init): Regard unused defs of
8070 parms and results as used.
8071 (verify_live_on_entry): Don't error out just because they're
8072 not live.
8073
8074 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
8075
8076 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8077 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
8078 (output_fde): Don't output length for debug_frame on AIX.
8079 (output_call_frame_info): Don't output length for debug_frame on AIX.
8080 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
8081 HAVE_XCOFF_DWARF_EXTRAS.
8082 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
8083 HAVE_XCOFF_DWARF_EXTRAS.
8084 (output_compilation_unit_header): Don't output length on AIX.
8085 (output_pubnames): Don't output length on AIX.
8086 (output_aranges): Delete argument. Compute length locally. Don't
8087 output length on AIX.
8088 (output_line_info): Don't output length on AIX.
8089 (dwarf2out_finish): Don't compute aranges_length.
8090 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8091 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
8092 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
8093 symbol decoration for AIX.
8094 (rs6000_xcoff_debug_unwind_info): New.
8095 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
8096 for SECTION_DEBUG.
8097 (rs6000_xcoff_declare_function_name): Emit different
8098 .function pseudo-op when DWARF2_DEBUG. Don't call
8099 xcoffout_declare_function for DWARF2_DEBUG.
8100 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
8101 Redefine.
8102 * config/rs6000/aix71.h: New.
8103 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
8104 locations support.
8105 * configure: Regenerate.
8106 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
8107 DWARF support.
8108
8109 2015-09-26 Jeff Law <law@redhat.com>
8110
8111 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
8112 behaviour.
8113 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
8114 behaviour.
8115
8116 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
8117 behaviour
8118
8119 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
8120 undefined behaviour.
8121
8122 * config/cris/cris.md (asrandb): Fix left shift undefined
8123 behaviour.
8124 (asrandw): Likewise.
8125
8126 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
8127
8128 PR target/61578
8129 * lra-constarints.c (match_reload): Check presence of the input pseudo
8130 in the output operand.
8131
8132 2015-09-25 Tobias Burnus <burnus@net-b.de>
8133
8134 * doc/invoke.texi (-fsanitize): Minor wording tweak.
8135
8136 2015-09-25 Tobias Burnus <burnus@net-b.de>
8137
8138 * doc/invoke.texi (-fsanitize): Update URLs.
8139
8140 2015-09-25 Teresa Johnson <tejohnson@google.com>
8141
8142 * opts.c (finish_options): Unset -freorder-blocks-and-partition
8143 if not using profile.
8144
8145 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
8146
8147 PR pretty-print/67567
8148 * pretty-print.c (pp_string): Add gcc_checking_assert.
8149 * pretty-print.h (output_buffer_append_r): Likewise.
8150
8151 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
8152
8153 PR target/67675
8154 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
8155 addr2 individually. Don't emit logical or insn if one is known to
8156 be aligned approriately.
8157 (sh_expand_cmpnstr): Likewise.
8158
8159 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
8160
8161 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
8162 __builtin_aarch64_fp[sc]r arguments into a register.
8163
8164 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
8165
8166 * config.gcc (x86_archs): Replace lakemount with lakemont.
8167 (with_cpu): Likewise.
8168 (with_arch): Likewise.
8169 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
8170 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
8171 __tune_lakemount__ with __tune_lakemont__.
8172 * config/i386/i386.c (lakemount_cost): Renamed to ...
8173 (lakemont_cost): This.
8174 (m_LAKEMOUNT): Renamed to ...
8175 (m_LAKEMONT): This.
8176 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
8177 (processor_target_table): Replace "lakemount" with "lakemont".
8178 (processor_alias_table): Likewise.
8179 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
8180 PROCESSOR_LAKEMONT.
8181 (ix86_adjust_cost): Likewise.
8182 (ia32_multipass_dfa_lookahead): Likewise.
8183 * config/i386/i386.h (processor_type): Likewise.
8184 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
8185 * doc/invoke.texi: Replace lakemount with lakemont. Replace
8186 Lakemount with Lakemont.
8187
8188 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
8189
8190 * config.gcc (x86_archs): Replace iamcu with lakemount.
8191 (with_cpu): Likewise.
8192 (with_arch): Likewise.
8193 * doc/invoke.texi: Likewise.
8194 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
8195 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
8196 __tune_iamcu__ with __tune_lakemount__.
8197 * config/i386/i386.c (iamcu_cost): Renamed to ...
8198 (lakemount_cost): This.
8199 (m_IAMCU): Renamed to ...
8200 (m_LAKEMOUNT): This.
8201 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
8202 (processor_target_table): Replace "iamcu" with "lakemount".
8203 (processor_alias_table): Likewise.
8204 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
8205 PROCESSOR_LAKEMOUNT.
8206 (ix86_adjust_cost): Likewise.
8207 (ia32_multipass_dfa_lookahead): Likewise.
8208 * config/i386/i386.h (processor_type): Likewise.
8209 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
8210
8211 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
8212
8213 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
8214 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
8215 Declare.
8216 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
8217 (pa_expand_compare_and_swap_loop): New.
8218 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
8219 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
8220 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
8221 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
8222 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
8223 Revise.
8224
8225 2015-09-24 Michael Collison <michael.collison@linaro.org>
8226
8227 PR other/57195
8228 * read-md.c (read_name): Allow mode iterators inside angle
8229 brackets in rtl expressions.
8230
8231 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
8232
8233 PR target/61578
8234 * ira-color.c (update_allocno_cost): Add parameter.
8235 (update_costs_from_allocno): Decrease conflict cost. Pass the new
8236 parameter.
8237
8238 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
8239
8240 PR driver/67640
8241 * opts-common.c (prune_options): Discard all -fdiagnostics-color
8242 but the last one, which is moved to the front to be processed
8243 first.
8244 * opts.c (enable_warning_as_error): Reject options that do not
8245 control warnings.
8246
8247 2015-09-24 Jiong Wang <jiong.wang@arm.com>
8248
8249 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
8250
8251 2015-09-24 Jiong Wang <jiong.wang@arm.com>
8252
8253 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
8254 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
8255 (aarch64_cannot_force_const_mem): Likewise.
8256 (aarch64_classify_address): Likewise.
8257 (aarch64_classify_symbolic_expression): Likewise.
8258 (aarch64_print_operand): Likewise.
8259 (aarch64_classify_symbol): Likewise.
8260 (aarch64_mov_operand_p): Likewise.
8261 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
8262 (aarch64_mov_operand): Likewise.
8263
8264 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
8265
8266 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
8267 for info->spe_gp_size.
8268
8269 2015-09-24 Richard Biener <rguenther@suse.de>
8270
8271 PR lto/67699
8272 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
8273 abstract origins.
8274
8275 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
8276
8277 * tree-object-size.c (plus_stmt_object_size)
8278 (cond_expr_object_size): Change the formal parameters from gimple
8279 to gimple *.
8280 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
8281 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
8282 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
8283
8284 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8285
8286 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
8287 Check for ld -type pie on Solaris 11.x and 12.
8288 * configure: Regenerate.
8289 * config.in: Regenerate.
8290
8291 * gcc.c (LD_PIE_SPEC): Allow redefinition.
8292
8293 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
8294 (STARTFILE_SPEC): Use it.
8295 (ENDFILE_CRTEND_SPEC): Define.
8296 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
8297 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
8298 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
8299 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
8300 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
8301 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
8302 (ENDFILE_ARCH_SPEC): Define.
8303 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
8304
8305 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8306
8307 * configure.ac (gcc_cv_solaris_crts): New test.
8308 * configure. Regenerate.
8309 * config.in: Regenerate.
8310 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
8311 HAVE_SOLARIS_CRTS variant.
8312
8313 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8314
8315 * tree-inline.h (count_insns_seq): Delete prototype.
8316 (estimate_num_insns_seq): Define prototype.
8317 * tree-inline.c (count_insns_seq): Delete.
8318 (estimate_num_insns_seq): Remove static qualifier.
8319 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
8320 with estimate_num_insns_seq.
8321
8322 2015-09-24 Richard Biener <rguenther@suse.de>
8323
8324 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
8325 members.
8326 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
8327 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
8328 offset.
8329 (ao_ref_init_from_vn_reference): Record clique and base in the
8330 built base.
8331 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
8332
8333 2015-09-24 Richard Biener <rguenther@suse.de>
8334
8335 PR tree-optimization/48885
8336 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
8337 as not including any restrict tags from other pointers.
8338
8339 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
8340
8341 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
8342 character when appending to offload_targets.
8343
8344 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
8345 offload targets by commas, not colons.
8346 * config.in: Regenerate.
8347 * configure: Likewise.
8348 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
8349 instead of setting up the default offload targets here...
8350 (process_command): ..., do it here.
8351 libgomp/
8352 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
8353 targets are separated by commas.
8354 * config.h.in: Regenerate.
8355
8356 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
8357 Nathan Sidwell <nathan@codesourcery.com>
8358
8359 * omp-low.h (omp_reduction_init_op): Declare.
8360 * omp-low.c (omp_reduction_init_op): New, broken out of ...
8361 (omp_reduction_init): ... here. Call it.
8362 * tree-parloops.c (initialize_reductions): Use
8363 omp_reduction_init_op.
8364
8365 2015-09-23 Richard Biener <rguenther@suse.de>
8366
8367 PR middle-end/67662
8368 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
8369 undefined overflow unless they will cancel out.
8370
8371 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
8372
8373 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
8374 insn emit.
8375
8376 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
8377
8378 PR c/49655
8379 * opts.h (write_langs): Declare.
8380 * opts-global.c (write_langs): Make it extern.
8381
8382 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
8383
8384 PR target/67391
8385 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
8386 overlapping regs when matching the pattern.
8387
8388 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
8389
8390 * config/aarch64/aarch64-simd.md
8391 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
8392 (aarch64_float_truncate_hi_v4sf_le): New.
8393 (aarch64_float_truncate_hi_v4sf_be): Likewise.
8394
8395 2015-09-23 Richard Biener <rguenther@suse.de>
8396
8397 * tree-ssa-structalias.c (intra_create_variable_infos): Build
8398 representatives for all restrict qualified pointer destinations.
8399
8400 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
8401
8402 * config/i386/i386.md (define_code_attr mshift): New.
8403 (define_mode_iterator SWI1248_AVX512BW): Rename ...
8404 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
8405 only.
8406 (define_insn "*k<logic><mode>"): Use new iterator name.
8407 (define_insn "*<mshift><mode>3"): New.
8408
8409 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
8410
8411 PR middle-end/67649
8412 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
8413 mark the block as accessible.
8414
8415 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
8416
8417 * function.c (thread_prologue_and_epilogue_insns): Delete
8418 orig_entry_edge argument to try_shrink_wrapping.
8419 * shrink-wrap.c (can_get_prologue): New function.
8420 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
8421 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
8422 can_get_prologue where needed. Remove code that finds a single
8423 edge for the prologue. Remove code that tests if any reg clobbered
8424 by the prologue is live on the prologue edge. Remove code that finds
8425 the new prologue edge after duplicating blocks. Make a new prologue
8426 block and edge.
8427 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
8428
8429 2015-09-22 Jeff Law <law@redhat.com>
8430
8431 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
8432 behavior.
8433
8434 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
8435
8436 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
8437 -Wtemplates, -Wnamespaces): Document.
8438
8439 2015-09-22 Tom de Vries <tom@codesourcery.com>
8440
8441 PR tree-optimization/67671
8442 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
8443 pointer references as restrict.
8444
8445 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
8446
8447 * config/nios2/nios2.c (nios2_legitimize_address): When handling
8448 'reg + reloc' cases, allow first operand to be non-REG, and use
8449 force_reg() to enforce address pattern.
8450
8451 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
8452
8453 PR target/67480
8454 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
8455 (define_mode_iterator VI12_AVX_AVX512F): New.
8456 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
8457 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
8458 (define_insn "*<code><mode>3"): ... Into new pattern using
8459 VI12_AVX_AVX512F iterators without masking.
8460
8461 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
8462
8463 * config.gcc: Support "skylake-avx512".
8464 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8465 PROCESSOR_SKYLAKE_AVX512.
8466 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
8467 (processor_target_table): Add "skylake-avx512".
8468 (PTA_SKYLAKE_AVX512): Define.
8469 (ix86_option_override_internal): Add "skylake_avx512".
8470 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
8471 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
8472 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
8473 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
8474 * doc/invoke.texi (skylake-avx512): New.
8475
8476 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
8477
8478 * config/i386/i386.md (define_insn "kunpckhi"): Fix
8479 operand in pattern.
8480 (define_insn "kunpcksi"): Ditto.
8481 (define_insn "kunpckdi"): Ditto.
8482
8483 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
8484
8485 * config/i386/i386.md (define_split not/xor SWI1248x): Use
8486 iterator instead of fixed modes.
8487
8488 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8489
8490 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
8491 Adjust declaration.
8492 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
8493 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
8494 out_result. Update to support update-fetch operations.
8495 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
8496 Adjust for change to aarch64_gen_atomic_ldop.
8497 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
8498 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
8499 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
8500 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
8501 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
8502
8503 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8504
8505 * config/aarch64/aarch64-protos.h
8506 (aarch64_atomic_ldop_supported_p): Declare.
8507 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
8508 (enum aarch64_atomic_load_op_code): New.
8509 (aarch64_emit_atomic_load_op): New.
8510 (aarch64_gen_atomic_ldop): Update to support load-operate
8511 patterns.
8512 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
8513 to an expander.
8514 (aarch64_atomic_<atomic_optab><mode>): New.
8515 (aarch64_atomic_<atomic_optab><mode>_lse): New.
8516 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
8517 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
8518 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
8519
8520 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8521
8522 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
8523 (UNSPECV_ATOMIC_LDOP_OR): New.
8524 (UNSPECV_ATOMIC_LDOP_BIC): New.
8525 (UNSPECV_ATOMIC_LDOP_XOR): New.
8526 (UNSPECV_ATOMIC_LDOP_PLUS): New.
8527 (ATOMIC_LDOP): New.
8528 (atomic_ldop): New.
8529 (aarch64_atomic_load<atomic_ldop><mode>): New.
8530
8531 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8532
8533 * config/aarch64/aarch64.md
8534 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
8535 pattern.
8536
8537 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8538
8539 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
8540 Declare.
8541 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
8542 (aarch64_gen_atomic_ldop): New.
8543 (aarch64_split_atomic_op): Fix whitespace and add a comment.
8544 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
8545 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
8546 (atomic_exchange<mode>): Replace with an expander.
8547 (aarch64_atomic_exchange<mode>): New.
8548 (aarch64_atomic_exchange<mode>_lse): New.
8549 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
8550 (aarch64_atomic_swp<mode>): New.
8551
8552 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
8553
8554 * tree-inline.c (expand_call_inline): Use inform for extra note.
8555 Do not give a note with UNKNOWN_LOCATION.
8556 Replace input_location with gimple_location (stmt).
8557 Use true/false instead of TRUE/FALSE.
8558
8559 2015-09-22 Tom de Vries <tom@codesourcery.com>
8560
8561 PR tree-optimization/67666
8562 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
8563 with single field non-conservative.
8564
8565 2015-09-21 David S. Miller <davem@davemloft.net>
8566
8567 PR/67622
8568 Revert:
8569 2015-09-11 David S. Miller <davem@davemloft.net>
8570
8571 * config/sparc/constraints.md: Make "U" constraint a real register
8572 constraint.
8573 * config/sparc/sparc.c (TARGET_LRA_P): Define.
8574 (D_MODES, DF_MODES): Add missing cast.
8575 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8576 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8577 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
8578 cost to 8.
8579 * config/sparc/sparc.h (PROMOTE_MODE): Define.
8580 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
8581 provide these insn when flag_pic.
8582
8583 2015-09-17 David S. Miller <davem@davemloft.net>
8584
8585 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
8586 Declare.
8587 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
8588 function.
8589 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
8590 (HARD_REGNO_CALLER_SAVE_MODE): Define.
8591 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
8592 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
8593 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
8594 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
8595 provide when flag_pic.
8596
8597 2015-09-21 Jeff Law <law@redhat.com>
8598
8599 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
8600 behavior.
8601
8602 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8603
8604 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
8605
8606 2015-09-21 Richard Biener <rguenther@suse.de>
8607
8608 * passes.c (rest_of_decl_compilation): Do not call
8609 dwarf2out_early_global_decl for aliases.
8610
8611 2015-09-21 Richard Biener <rguenther@suse.de>
8612
8613 PR debug/67664
8614 * dwarf2out.c (add_location_or_const_value_attribute): Remove
8615 attribute parameter. Early exit if either DW_AT_const_value
8616 or DW_AT_location are present already.
8617 (gen_variable_die): Adjust caller.
8618 (dwarf2out_late_global_decl): Likewise.
8619
8620 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
8621
8622 PR target/67657
8623 * config/sh/sh.c (sh_remove_overlapping_post_inc,
8624 sh_peephole_emit_move_insn): Add new functions.
8625 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
8626 sh_peephole_emit_move_insn): Declere them.
8627 * config/sh/sh.md: Use them in various peephole2 patterns.
8628
8629 2015-09-21 Richard Biener <rguenther@suse.de>
8630
8631 PR middle-end/67651
8632 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
8633 address with -fno-delete-null-pointer-checks.
8634
8635 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
8636
8637 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
8638 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
8639 (reduc_uplus_v16qi): Remove.
8640
8641 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
8642 (reduc_<VEC_reduc_name>_v2df): Remove.
8643 (reduc_<VEC_reduc_name>_v4sf): Remove.
8644 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
8645
8646 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
8647 gen_ function by removing * prefix.
8648 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
8649
8650 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8651
8652 PR middle-end/60832
8653 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
8654 Print i_bound without converting it to a tree.
8655
8656 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
8657
8658 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
8659 operands[4] operands[5] swap with std::swap, removed tmp variable.
8660 (arm_evpc_neon_vzip): Replaced in0/in1 and
8661 out0/out1 swaps with std::swap, removed x variable.
8662 (arm_evpc_neon_vtrn): Replaced in0/int1 and
8663 out0/out1 swaos with std::swap, removed x variable.
8664 (arm_expand_vec_perm_const_1): Replaced
8665 d->op0/d->op1 swap with std::swap, removed x variable.
8666 (arm_evpc_neon_vuzp): Replaced in0/in1 and
8667 out0/out1 swaps with std::swap, removed x variable.
8668
8669 2015-09-21 Jonathan Yong <10walls@gmail.com>
8670
8671 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
8672 sysroot/usr/lib/32api for additional win32 libraries,
8673 fixes failing Cygwin bootstrapping.
8674
8675 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
8676
8677 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
8678
8679 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
8680
8681 PR target/67126
8682 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
8683 (*mov_t_msb_neg): Rewrite negc pattern.
8684
8685 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8686
8687 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
8688 immediate generation code.
8689
8690 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8691
8692 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
8693 redundant immediate generation code.
8694
8695 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8696
8697 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
8698 (AARCH64_NUM_BITMASKS): Remove.
8699 (aarch64_bitmasks_cmp): Remove.
8700 (aarch64_build_bitmask_table): Remove.
8701
8702 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8703
8704 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
8705 slow immediate matching loops with a faster algorithm.
8706
8707 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8708
8709 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
8710 faster algorithm.
8711
8712 2015-09-20 Jeff Law <law@redhat.com>
8713
8714 PR tree-optimization/47679
8715 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
8716 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
8717 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
8718 (thread_through_normal_block): Use record_temporary_equivalences.
8719
8720 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
8721
8722 * coretypes.h (gimple): Change typedef to be a forward declaration.
8723 * gimple.h (gimple_statement_base): rename to gimple.
8724 * (all functions and types using gimple): Adjust.
8725 * *.[ch]: Likewise.
8726
8727 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
8728 David Edelsohn <dje.gcc@gmail.com>
8729
8730 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
8731 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8732 (EH_FRAME_THROUGH_COLLECT2): Define.
8733 (EH_TABLES_CAN_BE_READ_ONLY): Define.
8734 (ASM_OUTPUT_DWARF_PCREL): Define.
8735 (ASM_OUTPUT_DWARF_DATAREL): Define.
8736
8737 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
8738
8739 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
8740 of TARGET_ELF32.
8741
8742 2015-09-18 Jeff Law <law@redhat.com>
8743
8744 PR tree-optimization/47679
8745 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
8746 it here ...
8747 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
8748 object. Update constructor.
8749 (pass_dominator::execute): Corresponding chagnes to declaration
8750 and initialization of avail_exprs_stack. Update constructor call
8751 for dom_opt_dom_walker object.
8752 (lookup_avail_expr, record_cond): Accept additional argument. Pass
8753 it down to children as needed.
8754 (record_equivalences_from_incoming_edge): Likewise.
8755 (eliminate_redundant_computations): Likewise.
8756 (record_equivalences_from_stmt): Likewise.
8757 (simplify_stmt_for_jump_threading): Likewise.
8758 (record_temporary_equivalences): Likewise.
8759 (optimize_stmt): Likewise.
8760 (dom_opt_dom_walker::thread_across_edge): Update access to
8761 avail_exprs_stack object and pass it to children as needed.
8762 (dom_opt_dom_walker::before_dom_children): Similarly.
8763 (dom_opt_dom_walker::after_dom_children): Similarly.
8764 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
8765 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
8766 Add avail_expr_stack argument. Pass it to children as needed.
8767 (dummy_simplify): Likewise.
8768 (simplify_control_stmt_condition): Likewise.
8769 (thread_around_empty_blocks): Likewise.
8770 (thread_through_normal_block): Likewise.
8771 (thread_across_edge): Likewise.
8772 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
8773 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
8774
8775 PR tree-optimization/47679
8776 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
8777 it here ...
8778 (dom_opt_dom_walker): New private member holding the const_and_copies
8779 object. Update constructor.
8780 (pass_dominator::execute): Corresponding changes to declaration
8781 and initialization of const_and_copies. Update constructor call
8782 for the dom_opt_dom_walker object.
8783 (record_temporary_equivalences): Accept const_and_copies argument
8784 pass it down to children as needed.
8785 (record_equality): Likewise.
8786 (record_equivalences_from_incoming_edge): Likewise.
8787 (cprop_into_successor_phis, optimize_stmt): Likewise.
8788 (eliminate_redundant_computations): Likewise.
8789 (dom_opt_dom_walker::thread_across_edge): Update access to
8790 const_and_copies object and pass it to children as needed.
8791 (dom_opt_dom_walker::before_dom_children): Similarly.
8792 (dom_opt_dom_walker::after_dom_children): Similarly.
8793
8794 PR tree-optimization/47679
8795 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
8796 it into the avail_exprs_stack class.
8797 (pass_dominator::execute): Corresponding changes to declaration
8798 and initialization of avail_exprs. Pass avail_exprs to
8799 dump_dominator_optimization_stats.
8800 (record_cond): Extract avail_exprs from avail_exprs_stack.
8801 (lookup_avail_expr): Similarly.
8802 (htab_staticstics): Remove unnecessary prototype. Move to earlier
8803 position in file.
8804 (dump_dominator_optimization_stats): Make static and prototype.
8805 Add argument for the hash table to dump.
8806 (debug_dominator_optimization_stats): Remove.
8807 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
8808 prototype.
8809 (debug_dominator_optimization_stats): Similarly.
8810 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
8811 "void" in prototype for pop_to_marker method. Add accessor method
8812 for the underlying avail_exprs table.
8813
8814 * tree-ssa-threadedge.c: Remove trailing whitespace.
8815
8816 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
8817
8818 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
8819 unsigned.
8820 (pa_ldil_cint_p): Likewise.
8821 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
8822 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
8823 Update callers.
8824 * config/pa/pa.md: Likewise.
8825
8826 2015-09-18 David Malcolm <dmalcolm@redhat.com>
8827
8828 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
8829 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
8830 (diagnostic_show_locus): Likewise.
8831 (diagnostic_print_caret_line): Likewise.
8832 * diagnostic-show-locus.c: New file.
8833
8834 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
8835
8836 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
8837 "back" parameter. Declare label in #if block.
8838
8839 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
8840
8841 PR middle-end/67619
8842 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
8843 the address to a register.
8844
8845 2015-09-18 Jeff Law <law@redhat.com>
8846
8847 PR tree-optimization/47679
8848 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
8849 * tree-ssa-dom.c: Remove unnecessary header includes.
8850 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
8851 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
8852 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
8853 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
8854 (pass_phi_only_cprop::execute): Likewise.
8855 (make_pass_phi_only_cprop): Likewise.
8856 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
8857 uses of file scoped statics by passing the required objects
8858 as parameters wherever needed.
8859
8860 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
8861 David Edelsohn <dje.gcc@gmail.com>
8862
8863 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
8864 EH_FRAME_THROUGH_COLLECT2.
8865 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
8866 DW_EH_PE_datarel.
8867 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
8868 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
8869 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
8870 * except.c (switch_to_exception_section): Use a read-only section
8871 even if EH_FRAME_SECTION_NAME is undefined.
8872 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
8873 * collect2.c (write_c_file_stat): Provide dbase on AIX.
8874 (scan_prog_file): Don't export __dso_handle nor
8875 __gcc_unwind_dbase.
8876 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8877 (EH_TABLES_CAN_BE_READ_ONLY): Define.
8878 (ASM_OUTPUT_DWARF_PCREL): Define.
8879 (ASM_OUTPUT_DWARF_DATAREL): Define.
8880 (EH_FRAME_THROUGH_COLLECT2): Define.
8881 (EH_FRAME_IN_DATA_SECTION): Delete.
8882 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
8883 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
8884 Declare.
8885 (rs6000_asm_output_dwarf_datarel): Declare.
8886 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
8887 (rs6000_aix_asm_output_dwarf_datarel): New.
8888 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
8889 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
8890 (EH_FRAME_THROUGH_COLLECT2): Define.
8891 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
8892 (EH_FRAME_THROUGH_COLLECT2): Define.
8893 (EH_TABLES_CAN_BE_READ_ONLY): Define.
8894 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
8895 (EH_FRAME_THROUGH_COLLECT2): New.
8896 (ASM_OUTPUT_DWARF_DATAREL): New.
8897 * doc/tm.texi: Regenerate.
8898
8899 2015-09-18 Richard Biener <rguenther@suse.de>
8900
8901 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
8902 we're in early phase.
8903 (schedule_generic_params_dies_gen): Likewise.
8904 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
8905 work as possible, retaining unhandled cases.
8906 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
8907 clear out generic_type_instances at the end.
8908 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
8909 (dwarf2out_early_finish): ... here. Do most of
8910 gen_remaining_tmpl_value_param_die_attribute here.
8911
8912 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
8913
8914 PR tree-optimization/67283
8915 * tree-sra.c (type_consists_of_records_p): Rename to...
8916 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8917 (completely_scalarize_record): Rename to...
8918 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
8919 (scalarize_elem): New.
8920 (analyze_all_variable_accesses): Follow renamings.
8921
8922 2015-09-18 Richard Biener <rguenther@suse.de>
8923
8924 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
8925 in early-dwarf.
8926
8927 2015-09-18 Richard Biener <rguenther@suse.de>
8928
8929 PR tree-optimization/66142
8930 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
8931 treat MEM[&x] and x the same.
8932 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
8933 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
8934 when we simplified sth.
8935 (vn_reference_maybe_forwprop_address): Likewise.
8936 (valueize_refs_1): When we simplified through
8937 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
8938 set valueized_anything to true.
8939 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
8940 one ref kills the other instead of just a offset-based test.
8941 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
8942 for the operand_equal_p test to compare bases and also compare
8943 sizes.
8944
8945 2015-09-17 Christian Bruel <christian.bruel@st.com>
8946
8947 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
8948
8949 2015-09-17 Richard Henderson <rth@redhat.com>
8950
8951 PR libstdc++/65913
8952 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
8953 pointers that encode the alignment of the object.
8954
8955 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
8956
8957 PR rtl-optimization/66790
8958 * df-problems.c (LIVE): Amend documentation.
8959
8960 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
8961
8962 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
8963 and optabs-tree.o.
8964 (GTFILES): Replace optabs.c with optabs-libfunc.c.
8965 * genopinit.c (main): Add an include guard to insn-opinit.h.
8966 Protect the rtx_code parts with NUM_RTX_CODE.
8967 * optabs.h: Split parts out to...
8968 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
8969 * optabs.c: Split parts out to...
8970 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
8971 * cilk-common.c: Include optabs-query.h rather than optabs.h.
8972 * fold-const.c: Likewise.
8973 * target-globals.c: Likewise.
8974 * tree-if-conv.c: Likewise.
8975 * tree-ssa-forwprop.c: Likewise.
8976 * tree-ssa-loop-prefetch.c: Likewise.
8977 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
8978 Remove unncessary include files.
8979 * tree-ssa-phiopt.c: Likewise.
8980 * tree-ssa-reassoc.c: Likewise.
8981 * tree-switch-conversion.c: Likewise.
8982 * tree-vect-data-refs.c: Likewise.
8983 * tree-vect-generic.c: Likewise.
8984 * tree-vect-loop.c: Likewise.
8985 * tree-vect-patterns.c: Likewise.
8986 * tree-vect-slp.c: Likewise.
8987 * tree-vect-stmts.c: Likewise.
8988 * tree-vrp.c: Likewise.
8989 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
8990 rather than optabs.h.
8991 * expr.c: Include optabs-tree.h.
8992 * function.c: Likewise.
8993
8994 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
8995
8996 PR middle-end/65958
8997 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
8998 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
8999 * config/arm/arm.c: Include common/common-target.h.
9000 (use_return_insn): Return 0 if the static chain register was saved
9001 above a non-APCS frame.
9002 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
9003 (struct scratch_reg): New.
9004 (get_scratch_register_on_entry): New function.
9005 (release_scratch_register_on_entry): Likewise.
9006 (arm_emit_probe_stack_range): Likewise.
9007 (output_probe_stack_range): Likewise.
9008 (arm_expand_prologue): Factor out code dealing with the IP register
9009 for nested function and adjust it for stack checking.
9010 Invoke arm_emit_probe_stack_range if static builtin stack checking
9011 is enabled.
9012 (thumb1_expand_prologue): Sorry out if static builtin stack checking
9013 is enabled.
9014 (arm_expand_epilogue): Add the saved static chain register, if any, to
9015 the amount of pre-pushed registers to pop.
9016 (arm_frame_pointer_required): Return true if static stack checking is
9017 enabled and we want to catch the exception with the EABI unwinder.
9018 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
9019 (UNSPEC_PROBE_STACK_RANGE): Likewise.
9020 * config/arm/arm.md (probe_stack): New insn.
9021 (probe_stack_range): Likewise.
9022
9023 2015-09-17 Richard Biener <rguenther@suse.de>
9024
9025 * genmatch.c (parser::parse_expr): Improve error message
9026 for mis-placed flags.
9027
9028 2015-09-17 Richard Biener <rguenther@suse.de>
9029
9030 * passes.c (rest_of_decl_compilation): Always call early_global_decl
9031 debug hook when we created a varpool node.
9032 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
9033 dwarf2out_early_global_decl, when not just add location or
9034 value attributes to existing DIEs.
9035
9036 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
9037
9038 * config/aarch64/aarch64.md (copysigndf3): New.
9039 (copysignsf3): Likewise.
9040
9041 2015-09-17 David S. Miller <davem@davemloft.net>
9042
9043 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
9044 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
9045 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9046 (HARD_REGNO_CALLER_SAVE_MODE): Define.
9047 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9048 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9049 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9050 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9051 provide when flag_pic.
9052
9053 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
9054
9055 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
9056 object_allocator change.
9057
9058 2015-09-17 Bin Cheng <bin.cheng@arm.com>
9059
9060 PR tree-optimization/66388
9061 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
9062 (dump_iv): Dump no_overflow information.
9063 (alloc_iv): Initialize new field for struct iv.
9064 (mark_bivs): Count number of no_overflow bivs.
9065 (find_deriving_biv_for_expr, record_biv_for_address_use): New
9066 functions.
9067 (idx_find_step): Call new functions above.
9068 (add_candidate_1, add_candidate): New paramter.
9069 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
9070 (get_computation_aff): Simplify convertion of cand for BIV.
9071 (get_computation_cost_at): Step cand's base if necessary.
9072
9073 2015-09-17 Bin Cheng <bin.cheng@arm.com>
9074
9075 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
9076 parameter.
9077 (tree_simplify_using_condition): Ditto.
9078 (simplify_using_initial_conditions): Ditto.
9079 (loop_exits_before_overflow): Pass new argument to function
9080 simplify_using_initial_conditions. Remove case for type conversions
9081 simplification.
9082 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
9083 parameter.
9084 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
9085 in iv base using loop initial conditions.
9086
9087 2015-09-16 Jeff Law <law@redhat.com>
9088
9089 PR tree-optimization/47679
9090 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
9091 (free_all_edge_infos): Use it.
9092 (allocate_edge_info): Free preexisting edge info data.
9093 (pass_dominator::execute): Set up initial edge info structures.
9094 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
9095 thread_across_edge.
9096 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
9097 If non-null, then push/pop markers appropriately.
9098 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9099 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
9100 thread-across_edge.
9101
9102 2015-09-16 James Bowman <james.bowman@ftdichip.com>
9103
9104 * config/ft32/ft32.c: Fix the memory address space predicate.
9105
9106 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
9107
9108 PR target/67573
9109 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
9110 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9111
9112 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
9113
9114 * toplev.h (check_global_declaration): Remove declaration.
9115 * toplev.c (check_global_declaration): Move to ...
9116 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
9117 (analyze_functions): Update call.
9118
9119 2015-09-16 David S. Miller <davem@davemloft.net>
9120
9121 * lra-constraints.c (simplify_operand_subreg): Do not assume that
9122 lowpart of a SUBREG has offset zero.
9123
9124 2015-09-16 Jeff Law <law@redhat.com>
9125
9126 PR tree-optimization/47679
9127 * tree-ssa-dom.c (enum expr_kind): Moved from here to
9128 tree-ssa-scopedtables.h.
9129 (struct hashable_expr, class expr_hash_elt): Likewise.
9130 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
9131 Move associated methods into tree-ssa-scopedtables.c.
9132 (avail_expr_hash, initialize_expr_from_cond): Similarly.
9133 (hashable_expr_equal_p, add_expr_commutative): Likewise.
9134 (add_hashable_expr): Likewise.
9135 (record_cond): Delete element directly.
9136 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
9137 private copy ctor and assignment operator methods.
9138 (expr_elt_hasher): Inline trivial methods.
9139 (initialize_expr_from_cond): Prototype.
9140 * tree-ssa-scopedtables.c: Add necessary includes, functions and
9141 methods that were previously in tree-ssa-dom.c. Improve various
9142 comments.
9143
9144 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
9145
9146 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
9147
9148 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
9149
9150 PR bootstrap/67587
9151 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
9152 fixup_partitions.
9153
9154 2015-09-16 Richard Biener <rguenther@suse.de>
9155
9156 PR middle-end/67253
9157 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
9158 location of possibly shared trees.
9159
9160 2015-09-16 Richard Biener <rguenther@suse.de>
9161
9162 PR middle-end/67271
9163 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
9164
9165 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
9166
9167 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
9168 offset and size computations instead of HOST_WIDE_INT.
9169
9170 2015-09-16 Richard Biener <rguenther@suse.de>
9171
9172 PR middle-end/67442
9173 * fold-const.c (extract_muldiv_1): Properly extend multiplication
9174 result before builting a tree via wide_int_to_tree.
9175
9176 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
9177
9178 * Makefile.in: Add memory-block.cc
9179 (pool_allocator::initialize): Use fixed block size.
9180 (pool_allocator::release): Use memory_block_pool.
9181 (pool_allocator::allocate): Likewise.
9182 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
9183 object pools.
9184 * cfg.c (initialize_original_copy_tables): Likewise.
9185 * cselib.c (elt_list_pool, elt_loc_list_pool,
9186 cselib_val_pool): Likewise.
9187 * df-problems.c (df_chain_alloc): Likewise.
9188 * df-scan.c (df_scan_alloc): Likewise.
9189 * dse.c (cse_store_info_pool, rtx_store_info_pool,
9190 read_info_type_pool, insn_info_type_pool, bb_info_pool,
9191 group_info_pool, deferred_change_pool): Likewise.
9192 * et-forest.c (et_nodes, et_occurrences): Likewise.
9193 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
9194 ipcp_agg_lattice_pool): Likewise.
9195 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
9196 * ipa-profile.c (histogram_pool): Likewise.
9197 * ipa-prop.c (ipa_refdesc_pool): Likewise.
9198 * ira-build.c (live_range_pool, allocno_pool, object_pool,
9199 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
9200 * ira-color.c (update_cost_record_pool): Likewise.
9201 * lra-lives.c (lra_live_range_pool): Likewise.
9202 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
9203 * memory-block.cc: New file.
9204 * memory-block.h: New file.
9205 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
9206 * sched-deps.c (sched_deps_init): Likewise.
9207 * sel-sched-ir.c (sched_lists_pool): Likewise.
9208 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
9209 * tree-sra.c (access_pool): Likewise.
9210 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9211 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
9212 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
9213 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
9214 * tree-ssa-strlen.c (strinfo_pool): Likewise.
9215 * tree-ssa-structalias.c (variable_info_pool): Likewise.
9216 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
9217 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
9218
9219 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
9220
9221 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
9222 definition.
9223 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
9224 call0 ABI.
9225
9226 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
9227
9228 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
9229 to pass TLS call argument, according to current ABI.
9230 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
9231 callx0 for TLS call, according to current ABI.
9232
9233 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
9234
9235 * tree-eh.c (lower_try_finally_dup_block): Clear location information
9236 on stack restore statements.
9237 (decide_copy_try_finally): Do not consider a stack restore statement as
9238 coming from sources.
9239
9240 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
9241
9242 * config/alpha/alpha.c (alpha_expand_block_clear): Use
9243 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
9244
9245 2015-09-15 Jeff Law <law@redhat.com>
9246
9247 PR tree-optimization/47679
9248 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
9249 methods and private members.
9250 (avail_exprs_stack): Similarly. Change type of global
9251 from a pair of expr_hash_elt_t to the new class.
9252 (expr_elt_hasher::hash): Corresponding changes.
9253 (expr_elt_hasher::equal): Similarly.
9254 (avail_expr_hash): Similarly.
9255 (pass_dominator::execute): Similarly.
9256 (dom_opt_dom_walker::thread_across_edge): Similarly.
9257 (record_cond): Similarly.
9258 (dom_opt_dom_walker::before_dom_children): Similarly.
9259 (dom_opt_dom_walker::after_dom_children): Similarly.
9260 (lookup_avail_expr): Likewise.
9261 (initialize_hash_element): Now a expr_hash_elt constructor.
9262 (initialize_hash_element_from_expr): Similarly.
9263 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
9264 (free_expr_hash_elt): Call dtor for the element.
9265 (remove_local_expressions_from_table): Now the "pop_to_marker"
9266 method in the available_exprs_stack class.
9267 (avail_expr_stack::record_expr): Method factored out.
9268 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
9269 Fix formatting.
9270 (hashable_expr_equal_p): Fix formatting.
9271
9272 2015-09-15 David Malcolm <dmalcolm@redhat.com>
9273
9274 * input.h (location_get_source_line): Drop "expanded_location"
9275 param in favor of a file and line number.
9276 * input.c (location_get_source_line): Likewise.
9277 (dump_location_info): Update for change in signature of
9278 location_get_source_line.
9279 * diagnostic.c (diagnostic_print_caret_line): Likewise.
9280
9281 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
9282
9283 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
9284 Bump to 4KB for SJLJ exceptions.
9285 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
9286 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
9287 * doc/tm.texi: Regenerate.
9288
9289 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9290
9291 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
9292 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
9293 Update prototype.
9294
9295 2015-09-15 Richard Biener <rguenther@suse.de>
9296
9297 PR tree-optimization/67470
9298 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
9299 structure for PHI hoisting by inserting a forwarder block
9300 if appropriate.
9301
9302 2015-09-15 Christian Bruel <christian.bruel@st.com>
9303
9304 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
9305 (arm_option_print): New function.
9306
9307 2015-09-15 Christian Bruel <christian.bruel@st.com>
9308
9309 PR target/52144
9310 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
9311 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
9312 Remove flags parameter.
9313 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
9314 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
9315 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
9316 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
9317 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
9318 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
9319 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
9320 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
9321
9322 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9323
9324 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
9325
9326 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
9327 AARCH64_VALID_SIMD_DREG_MODE.
9328
9329 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9330
9331 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
9332 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
9333 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
9334 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
9335 aarch64_ld4_lane<mode>): Combine together, making...
9336 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
9337 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
9338 aarch64_st4_lane<mode>): Combine together, making...
9339 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
9340 * config/aarch64/iterators.md (nregs): Add comment.
9341
9342 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9343
9344 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
9345 Change operand mode from <V_TWO_ELEM> to BLK.
9346 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
9347 (aarch64_vec_store_lanesoi_lane<mode): Likewise
9348 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9349 (aarch64_ld2_lane<mode>): Likewise.
9350 (aarch64_st2_lane<VQ:mode>): Likewise.
9351 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
9352
9353 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9354
9355 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
9356 Change operand mode from <V_FOUR_ELEM> to BLK.
9357 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
9358 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
9359 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9360 (aarch64_ld4_lane<mode>): Likewise.
9361 (aarch64_st4_lane<mode>): Likewise.
9362 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
9363
9364 2015-09-15 Richard Biener <rguenther@suse.de>
9365
9366 PR middle-end/67563
9367 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
9368 transfer EH info from old to new stmt.
9369 (replace_call_with_value): Likewise.
9370 (replace_call_with_call_and_fold): Likewise.
9371 (gimple_fold_builtin_memory_op): Likewise.
9372 (gimple_fold_builtin_memset): Likewise.
9373 (gimple_fold_builtin_stpcpy): Likewise.
9374 (gimple_fold_call): Likewise.
9375
9376 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9377
9378 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
9379 comment.
9380 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
9381 (aarch64_simd_intEI_type_node): Likewise.
9382 (aarch64_simd_builtin_std_type): Remove EImode case.
9383 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
9384 * config/aarch64/aarch64-modes.def: Remove EImode.
9385
9386 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9387
9388 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
9389 Change operand mode from <V_THREE_ELEM> to BLK.
9390 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
9391 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
9392 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9393 (aarch64_ld3_lane<mode>): Likewise.
9394 (aarch64_st3_lane<mode>): Likewise.
9395 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
9396
9397 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9398
9399 * config/aarch64/aarch64-simd.md
9400 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
9401 Change all TImode operands to BLKmode.
9402 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
9403 Change all EImode operands to BLKmode.
9404 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
9405 Change all OImode operands to BLKmode.
9406
9407 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
9408 and call set_mem_size.
9409 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
9410
9411 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
9412
9413 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9414
9415 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
9416 to...
9417 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
9418
9419 (vec_store_lanesci_lane<mode>): Rename to...
9420 (aarch64_vec_store_lanesci_lane<mode>): ...this.
9421
9422 (vec_store_lanesxi_lane<mode>): Rename to...
9423 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
9424
9425 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
9426 aarch64_st4_lane<mode>): Follow renaming.
9427
9428 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9429
9430 * config/s390/s390.c (s390_const_operand_ok): Add missing
9431 brackets.
9432
9433 2015-09-15 Richard Biener <rguenther@suse.de>
9434
9435 PR lto/67568
9436 * lto-streamer.h (lto_location_cache::current_sysp): Properly
9437 initialize.
9438 * lto-streamer-out.c (clear_line_info): Likewise.
9439
9440 2015-09-15 Richard Biener <rguenther@suse.de>
9441
9442 * doc/match-and-simplify.texi: Fix wording.
9443
9444 2015-09-15 Bin Cheng <bin.cheng@arm.com>
9445
9446 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
9447 unnecessary type conversion in op1.
9448
9449 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9450
9451 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
9452 (dup_block_and_redirect): Delete function.
9453 (can_dup_for_shrink_wrapping): New function.
9454 (fix_fake_fallthrough_edge): New function.
9455 (try_shrink_wrapping): Rewrite function.
9456 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
9457
9458 2015-09-14 Rich Felker <dalias@libc.org>
9459
9460 * configure.ac: Change target pattern for sh TLS support
9461 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
9462 * configure: Regenerate.
9463
9464 2015-09-14 Jeff Law <law@redhat.com>
9465
9466 PR tree-optimization/47679
9467 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
9468 type rather than void *.
9469
9470 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
9471
9472 PR fortran/67460
9473 * diagnostic.c (diagnostic_initialize): Do not set
9474 some_warnings_are_errors.
9475 (diagnostic_finish): Use DK_WERROR count instead.
9476 (diagnostic_report_diagnostic): Do not set
9477 some_warnings_are_errors.
9478 * diagnostic.h (struct diagnostic_context): Remove
9479 some_warnings_are_errors.
9480
9481 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
9482
9483 * config/sparc/predicates.md (const_all_ones_operand): Use
9484 CONSTM1_RTX to simplify definition.
9485
9486 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
9487
9488 PR target/67061
9489 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
9490 Handle call insns.
9491
9492 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
9493
9494 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
9495 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
9496 OPT_fshow_column to handled saved option cases.
9497 (append_compiler_options): Do not skip the above added options.
9498
9499 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9500
9501 PR target/63304
9502 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
9503 nopcrelative_literal_loads.
9504 (aarch64_classify_address): Likewise.
9505 (aarch64_constant_pool_reload_icode): Define.
9506 (aarch64_secondary_reload): Handle secondary reloads for
9507 literal pools.
9508 (aarch64_override_options): Handle nopcrelative_literal_loads.
9509 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
9510 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9511 Define.
9512 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9513 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
9514 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
9515 predicate.
9516 * doc/invoke.texi (mpc-relative-literal-loads): Document.
9517
9518 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
9519
9520 PR middle-end/67401
9521 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
9522 sync_compare_and_swap_optab libcall to target_oval.
9523
9524 2015-09-14 Marek Polacek <polacek@redhat.com>
9525
9526 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
9527 value.
9528 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
9529
9530 2015-09-11 Mark Wielaard <mjw@redhat.com>
9531
9532 PR c/28901
9533 * toplev.c (check_global_declaration): Check and use
9534 warn_unused_const_variable.
9535 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
9536 (-Wunused-variable): Remove non-constant. For C implies
9537 -Wunused-const-variable.
9538 (-Wunused-const-variable): New.
9539
9540 2015-09-14 Richard Biener <rguenther@suse.de>
9541
9542 * doc/match-and-simplify.texi: Update for changed syntax
9543 of inner ifs and the new switch expression.
9544
9545 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
9546
9547 * config/i386/haswell.md: New file describing Haswell pipeline.
9548 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
9549 haswell-like processors.
9550 (ix86_reassociation_width): Increase reassociation width for 64-bit
9551 Haswell processor family.
9552 * config/i386/i386.md: Introduce haswell cpu and include new md file.
9553
9554 2015-09-14 Richard Biener <rguenther@suse.de>
9555
9556 * doc/match-and-simplify.texi: Fixup some formatting issues
9557 and document the 's' flag.
9558
9559 2015-09-13 Olivier Hainque <hainque@adacore.com>
9560 Eric Botcazou <ebotcazou@adacore.com>
9561
9562 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
9563 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
9564 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
9565 (TARGET_CPU_gr5): Likewise.
9566 (TARGET_CPU_gr6): Likewise.
9567 (MULTILIB_DEFAULTS): Likewise.
9568 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
9569 for mcpu=gr5 and mcpu=gr6.
9570 (MULTILIB_DIRNAMES): Adjust accordingly.
9571
9572 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9573
9574 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
9575 (mem_ref_p): Likewise.
9576 (outermost_indep_loop): Adjust.
9577 (mem_ref_in_stmt): Likewise.
9578 (determine_max_movement): Likewise.
9579 (mem_ref_alloc): Likewise.
9580 (record_mem_ref_loc): Likewise.
9581 (set_ref_stored_in_loop): Likewise.
9582 (mark_ref_stored): Likewise.
9583 (gather_mem_refs_stmt): Likewise.
9584 (mem_refs_may_alias_p): Likewise.
9585 (for_all_locs_in_loop): Likewise.
9586 (struct rewrite_mem_ref_loc): Likewise.
9587 (rewrite_mem_refs): Likewise.
9588 (struct first_mem_ref_loc_1): Likewise.
9589 (first_mem_ref_loc): Likewise.
9590 (struct sm_set_flag_if_changed): Likewise.
9591 (execute_sm_if_changed_flag_set): Likewise.
9592 (execute_sm): Likewise.
9593 (hoist_memory_references):
9594 (struct ref_always_accessed): Likewise.
9595 (ref_always_accessed_p): Likewise.
9596 (refs_independent_p): Likewise.
9597 (record_dep_loop): Likewise.
9598 (ref_indep_loop_p_1): Likewise.
9599 (ref_indep_loop_p_2): Likewise.
9600 (ref_indep_loop_p): Likewise.
9601 (can_sm_ref_p): Likewise.
9602 (find_refs_for_sm): Likewise.
9603 (tree_ssa_lim_finalize): Likewise.
9604
9605 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9606
9607 * dwarf2out.c (dw_attr_ref): Remove typedef.
9608 (dw_line_info_ref): Likewise.
9609 (pubname_ref): Likewise.
9610 (dw_ranges_ref): Likewise.
9611 (dw_ranges_by_label_ref): Likewise.
9612 (comdat_type_node_ref): Likewise.
9613 (get_AT): Adjust.
9614 (get_AT_low_pc): Likewise.
9615 (get_AT_hi_pc): Likewise.
9616 (get_AT_string): Likewise.
9617 (get_AT_flag): Likewise.
9618 (get_AT_unsigned): Likewise.
9619 (get_AT_ref): Likewise.
9620 (get_AT_file): Likewise.
9621 (remove_AT): Likewise.
9622 (print_die): Likewise.
9623 (check_die): Likewise.
9624 (die_checksum): Likewise.
9625 (attr_checksum_ordered): Likewise.
9626 (struct checksum_attributes): Likewise.
9627 (collect_checksum_attributes): Likewise.
9628 (die_checksum_ordered): Likewise.
9629 (same_die_p): Likewise.
9630 (is_declaration_die): Likewise.
9631 (clone_die): Likewise.
9632 (clone_as_declaration): Likewise.
9633 (copy_declaration_context): Likewise.
9634 (break_out_comdat_types): Likewise.
9635 (copy_decls_walk): Likewise.
9636 (output_location_lists): Likewise.
9637 (external_ref_hasher::hash): Likewise.
9638 (optimize_external_refs_1): Likewise.
9639 (build_abbrev_table): Likewise.
9640 (size_of_die): Likewise.
9641 (unmark_all_dies): Likewise.
9642 (size_of_pubnames): Likewise.
9643 (output_die_abbrevs): Likewise.
9644 (output_die): Likewise.
9645 (output_pubnames): Likewise.
9646 (add_ranges_num): Likewise.
9647 (add_ranges_by_labels): Likewise.
9648 (add_high_low_attributes): Likewise.
9649 (gen_producer_string): Likewise.
9650 (dwarf2out_set_name): Likewise.
9651 (new_line_info_table): Likewise.
9652 (prune_unused_types_walk_attribs): Likewise.
9653 (prune_unused_types_update_strings): Likewise.
9654 (prune_unused_types): Likewise.
9655 (resolve_addr): Likewise.
9656 (optimize_location_lists_1): Likewise.
9657 (index_location_lists): Likewise.
9658 (dwarf2out_finish): Likewise.
9659
9660 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9661
9662 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
9663
9664 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9665
9666 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
9667 (dump_asserts_for): Adjust.
9668 (register_new_assert_for): Likewise.
9669 (process_assert_insertions): Likewise.
9670 (insert_range_assertions): Likewise.
9671
9672 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9673
9674 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
9675 and remove typedef.
9676 (new_temp_expr_table): Adjust.
9677 (free_temp_expr_table): Likewise.
9678 (version_to_be_replaced_p): Likewise.
9679 (make_dependent_on_partition): Likewise.
9680 (add_to_partition_kill_list): Likewise.
9681 (remove_from_partition_kill_list): Likewise.
9682 (add_dependence): Likewise.
9683 (finished_with_expr): Likewise.
9684 (process_replaceable): Likewise.
9685 (kill_expr): Likewise.
9686 (kill_virtual_exprs): Likewise.
9687 (mark_replaceable): Likewise.
9688 (find_replaceable_in_bb): Likewise.
9689 (find_replaceable_exprs): Likewise.
9690 (debug_ter): Likewise.
9691
9692 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9693
9694 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
9695 (struct btr_user): Rename from btr_user_s.
9696 (struct btr_def): Rename from btr_def_s.
9697 (find_btr_def_group): Adjust.
9698 (add_btr_def): Likewise.
9699 (new_btr_user): Likewise.
9700 (note_other_use_this_block): Likewise.
9701 (compute_defs_uses_and_gen): Likewise.
9702 (link_btr_uses): Likewise.
9703 (build_btr_def_use_webs): Likewise.
9704 (block_at_edge_of_live_range_p): Likewise.
9705 (btr_def_live_range): Likewise.
9706 (combine_btr_defs): Likewise.
9707 (move_btr_def): Likewise.
9708 (migrate_btr_def): Likewise.
9709 (migrate_btr_defs): Likewise.
9710
9711 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9712
9713 * var-tracking.c (shared_hash_def): Rename to shared_hash.
9714 (shared_hash): Remove typedef.
9715 (struct dataflow_set): Adjust.
9716 (shared_hash_unshare): Likewise.
9717 (dataflow_set_merge): Likewise.
9718 (vt_initialize): Likewise.
9719 (vt_finalize): Likewise.
9720
9721 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9722
9723 * var-tracking.c (struct location_chain): Rename from
9724 location_chain_def.
9725 (struct variable_part): Adjust.
9726 (variable_htab_free): Likewise.
9727 (unshare_variable): Likewise.
9728 (get_init_value): Likewise.
9729 (get_addr_from_local_cache): Likewise.
9730 (drop_overlapping_mem_locs): Likewise.
9731 (val_reset): Likewise.
9732 (struct variable_union_info): Likewise.
9733 (variable_union): Likewise.
9734 (find_loc_in_1pdv): Likewise.
9735 (insert_into_intersection): Likewise.
9736 (intersect_loc_chains): Likewise.
9737 (canonicalize_loc_order_check): Likewise.
9738 (canonicalize_values_mark): Likewise.
9739 (canonicalize_values_star): Likewise.
9740 (canonicalize_vars_star): Likewise.
9741 (variable_merge_over_cur): Likewise.
9742 (remove_duplicate_values): Likewise.
9743 (variable_post_merge_new_vals): Likewise.
9744 (variable_post_merge_perm_vals): Likewise.
9745 (find_mem_expr_in_1pdv): Likewise.
9746 (dataflow_set_preserve_mem_locs): Likewise.
9747 (dataflow_set_remove_mem_locs): Likewise.
9748 (variable_part_different_p): Likewise.
9749 (onepart_variable_different_p): Likewise.
9750 (find_src_set_src): Likewise.
9751 (dump_var): Likewise.
9752 (set_slot_part): Likewise.
9753 (clobber_slot_part): Likewise.
9754 (delete_slot_part): Likewise.
9755 (vt_expand_var_loc_chain): Likewise.
9756 (emit_note_insn_var_location): Likewise.
9757 (vt_finalize): Likewise.
9758
9759 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9760
9761 * dse.c (store_info_t): Remove typedef.
9762 (group_info_t): Likewise.
9763 (const_group_info_t): Likewise.
9764 (deferred_change_t): Likewise.
9765 (get_group_info): Adjust.
9766 (free_store_info): Likewise.
9767 (canon_address): Likewise.
9768 (clear_rhs_from_active_local_stores): Likewise.
9769 (record_store): Likewise.
9770 (replace_read): Likewise.
9771 (check_mem_read_rtx): Likewise.
9772 (scan_insn): Likewise.
9773 (remove_useless_values): Likewise.
9774 (dse_step1): Likewise.
9775 (dse_step2_init): Likewise.
9776 (dse_step2_nospill): Likewise.
9777 (scan_stores_nospill): Likewise.
9778 (scan_reads_nospill): Likewise.
9779 (dse_step3_exit_block_scan): Likewise.
9780 (dse_step3): Likewise.
9781 (dse_step5_nospill): Likewise.
9782 (dse_step6): Likewise.
9783
9784 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9785
9786 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
9787 (alias_set_entry): Remove typedef.
9788 (alias_set_subset_of): Adjust.
9789 (alias_sets_conflict_p): Likewise.
9790 (init_alias_set_entry): Likewise.
9791 (get_alias_set): Likewise.
9792 (new_alias_set): Likewise.
9793 (record_alias_subset): Likewise.
9794
9795 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
9796
9797 * doc/install.texi (Downloading the source): Mark up
9798 contrib/download_prerequisites properly and drop leading "./".
9799
9800 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9801
9802 * config/arc/arc.h: Remove define of STRUCT_VALUE.
9803 * config/lm32/lm32.h: Likewise.
9804 * config/mep/mep.h: Likewise.
9805 * config/visium/visium.h: Likewise.
9806 * system.h: Poison STRUCT_VALUE macro.
9807
9808 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
9809
9810 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
9811 CONSTANT_P operands.
9812
9813 2015-09-11 David S. Miller <davem@davemloft.net>
9814
9815 * config/sparc/constraints.md: Make "U" constraint a real register
9816 constraint.
9817 * config/sparc/sparc.c (TARGET_LRA_P): Define.
9818 (D_MODES, DF_MODES): Add missing cast.
9819 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9820 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9821 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9822 cost to 8.
9823 * config/sparc/sparc.h (PROMOTE_MODE): Define.
9824 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9825 provide these insn when flag_pic.
9826
9827 2015-09-11 Jeff Law <law@redhat.com>
9828
9829 PR tree-optimization/47679
9830 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
9831 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
9832 member with m_. Update inline member functions as necessary. Add
9833 toplevel comment.
9834 * tree-ssa-scopedtables.c: Update const_and_copies's member
9835 functions to use m_ prefix to access the stack.
9836
9837 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
9838
9839 * graphite-optimize-isl.c (disable_tiling): Remove.
9840 (get_schedule_for_band): Do not use disable_tiling.
9841 (get_prevector_map): Delete function.
9842 (enable_polly_vector): Remove.
9843 (get_schedule_for_band_list): Remove dead code.
9844
9845 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
9846
9847 * graphite-optimize-isl.c (get_tile_map): Refactor.
9848 (get_schedule_for_band): Same.
9849 (getScheduleForBand): Same.
9850 (get_prevector_map): Same.
9851 (get_schedule_for_band_list): Same.
9852 (get_schedule_map): Same.
9853 (get_single_map): Same.
9854 (apply_schedule_map_to_scop): Same.
9855 (optimize_isl): Same.
9856
9857 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9858
9859 PR target/63304
9860 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
9861 (movtf): Delete.
9862 * config/aarch64/iterators.md (GPF_TF_F16): New.
9863 (GPF_F16): Delete.
9864
9865 2015-09-10 Nathan Sidwell <nathan@acm.org>
9866
9867 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
9868 (nvptx_reorg): Adjust comments.
9869
9870 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
9871
9872 PR bootstrap/67363
9873 * configure.ac: Check if setenv and unsetenv are declared.
9874 * configure: Rebuild.
9875 * config.in: Rebuild.
9876 * system.h: Declare setenv and unsetenv if not declared.
9877
9878 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9879
9880 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
9881 commentary to simplify permute mask adjustment equation.
9882 (special_handling_values): Add SH_VPERM.
9883 (const_load_sequence_p): New function.
9884 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
9885 the mask loaded from the constant pool.
9886 (adjust_vperm): New function.
9887 (handle_special_swappables): Call adjust_vperm.
9888 (dump_swap_insn_table): Handle SH_VPERM.
9889
9890 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
9891
9892 * shrink-wrap.c (requires_stack_frame_p): Remove static.
9893 * shrink-wrap.h (requires_stack_frame_p): Put back.
9894
9895 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
9896
9897 * reload1.c (elimination_costs_in_insn): Locally turn
9898 -Wmaybe-uninitialized into a warning.
9899
9900 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
9901
9902 * shrink-wrap.c (requires_stack_frame_p): Make static.
9903 (prepare_shrink_wrap): Likewise.
9904 (dup_block_and_redirect): Likewise.
9905 * shrink-wrap.h: Remove declarations of those functions.
9906
9907 2015-09-10 Mark Wielaard <mjw@redhat.com>
9908
9909 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
9910
9911 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
9912
9913 PR target/67506
9914 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
9915 missing simplify_gen_subreg.
9916
9917 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9918
9919 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
9920 the vector element is bigger than 64 bit.
9921
9922 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9923
9924 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
9925 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
9926
9927 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9928
9929 * config/s390/s390.c: Add V1TImode to constant pool modes.
9930
9931 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9932
9933 PR target/67439
9934 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
9935 predicate. Set predicable_short_it attr to "no".
9936
9937 2015-09-10 Jiong Wang <jiong.wang@arm.com>
9938
9939 PR rtl-optimization/67421
9940 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
9941 left wide shift tranformation.
9942
9943 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
9944
9945 * common/config/arc/arc-common.c: Remove references to A5.
9946 * config/arc/arc-opts.h: Likewise.
9947 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
9948 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
9949 * config/arc/t-arc-newlib: Likewise.
9950
9951 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
9952
9953 * config/arc/arc.md (length): Fix attribute length for conditional
9954 executed instructions with long immediate.
9955
9956 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9957
9958 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
9959 type for second alternative.
9960
9961 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
9962
9963 * doc/invoke.texi (Downloading GCC): Mention
9964 contrib/download_prerequisites script.
9965
9966 2015-09-10 Jakub Jelinek <jakub@redhat.com>
9967
9968 PR c++/67523
9969 * gimplify.c (gimplify_omp_for): If inner stmt is not found
9970 for combined loop, assert seen_error () and return GS_ERROR.
9971
9972 PR middle-end/67521
9973 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
9974 if decl is already in outer->variables.
9975
9976 PR middle-end/67517
9977 * gimplify.c (gimplify_scan_omp_clauses): Instead of
9978 asserting that decl is not specified in octx->variables,
9979 break out of the loop if it is.
9980
9981 PR c++/67514
9982 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
9983 iterator is not explicitly determined, but is defined inside
9984 of the combined workshare region, handle it like if it has
9985 DECL_EXPR in OMP_FOR_PRE_BODY.
9986
9987 2015-09-09 Nathan Sidwell <nathan@acm.org>
9988
9989 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
9990 (*cmp<mode>): Add assembler spacing.
9991 (setcc_int<mode>, set_cc_float<mode>): Likewise.
9992 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
9993 level.
9994 (write_func_decl_from_insn): Refactor argument loops & comma emission.
9995 (nvptx_expand_call): Likewise.
9996 (nvptx_output_call_insn): Likewise.
9997 (nvptx_reorg_subreg): Add spacing.
9998
9999 2015-09-09 Marek Polacek <polacek@redhat.com>
10000
10001 PR middle-end/67512
10002 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
10003 for comparisons.
10004
10005 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
10006
10007 PR c++/53184
10008 * doc/invoke.texi ([Wsubobject-linkage]): Document.
10009
10010 2015-09-09 Tom de Vries <tom@codesourcery.com>
10011
10012 * params-list.h: Add missing copyright notice.
10013
10014 2015-09-09 Nathan Sidwell <nathan@acm.org>
10015
10016 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
10017 sel_truesi, not andsi.
10018
10019 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10020
10021 * config/arm/arm.md (*subsi3_compare0): Rename to...
10022 (subsi3_compare0): ... This.
10023 (modsi3): New define_expand.
10024 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
10025 when operand is power of 2.
10026
10027 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10028
10029 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
10030 (*neg<mode>2_compare0): Rename to...
10031 (neg<mode>2_compare0): ... This.
10032 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
10033 Move check for speed inside the if-then-elses. Reflect
10034 CSNEG sequence in MOD by power of 2 case.
10035
10036 2015-09-09 Alan Modra <amodra@gmail.com>
10037
10038 PR target/67378
10039 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
10040 reload replacement for PRE_MODIFY address reg.
10041
10042 2015-09-09 Sebastian Pop <s.pop@samsung.com>
10043
10044 PR tree-optimization/53852
10045 * config.in: Regenerate.
10046 * configure: Regenerate.
10047 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
10048 * graphite-optimize-isl.c (optimize_isl): Stop computation when
10049 PARAM_MAX_ISL_OPERATIONS is reached.
10050 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
10051 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
10052 result equal to isl_stat_ok as the status now can be isl_error_quota.
10053 (subtract_commutative_associative_deps): Same.
10054 (compute_deps): Same.
10055
10056 2015-09-08 Aditya Kumar <hiraditya@msn.com>
10057 Sebastian Pop <s.pop@samsung.com>
10058
10059 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
10060 Return the parameter if it was saved in corresponding
10061 parameter_rename_map of the region.
10062 (copy_def): Copy def from sese region to the newly created region.
10063 (copy_internal_parameters): Copy all the internal parameters defined
10064 within a region to the newly created region.
10065 (graphite_regenerate_ast_isl): Copy parameters to the new region before
10066 translating isl to gimple.
10067 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
10068 the loop-nest does not have any data-references.
10069 (build_graphite_scops): Create a scop only when there is at least one
10070 loop inside it.
10071 (contains_only_close_phi_nodes): Deleted.
10072 (print_graphite_scop_statistics): Deleted
10073 (print_graphite_statistics): Deleted
10074 (limit_scops): Deleted.
10075 (build_scops): Removed call to limit_scops.
10076 * sese.c (new_sese): Construct.
10077 (free_sese): Destruct.
10078 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
10079 added.
10080 (set_rename): Pass sese region so that parameters inside the region can
10081 be added to its parameter_rename_map.
10082 (rename_uses): Pass sese region.
10083 (graphite_copy_stmts_from_block): Do not copy parameters that have been
10084 generated in the header of the scop. For each SSA_NAME in the
10085 parameter_rename_map rename its usage.
10086 (invariant_in_sese_p_rec): Return false if tree t is defined outside
10087 sese region.
10088 (scalar_evolution_in_region): If the tree t is invariant just return t.
10089 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
10090 struct sese to keep track of all the parameters which need renaming.
10091 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
10092 any data-refs.
10093 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
10094
10095 2015-09-08 Tom de Vries <tom@codesourcery.com>
10096
10097 * Makefile.in (generated_files): Add params.list.
10098 (params.list, s-params.list): Add rule.
10099 * params.h (enum compiler_param): Include params-list.h. Move define
10100 DEFPARAM, include params.def and undef DEFPARAM ...
10101 * params-list.h: ... here. New file.
10102
10103 2015-09-08 David Malcolm <dmalcolm@redhat.com>
10104
10105 * pretty-print.h (printer_fn): Fix typo in comment.
10106
10107 2015-09-07 Jeff Law <law@redhat.com>
10108
10109 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
10110
10111 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10112
10113 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
10114 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
10115 (arm_neon_fp16_hw): New.
10116
10117 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10118
10119 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
10120 UNITS_PER_WORD >= 4.
10121
10122 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10123
10124 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
10125 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
10126 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
10127 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
10128 (aarch64_float_extend_lo_v2df): Rename to...
10129 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
10130
10131 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
10132 (float_extend_lo): Add v4sf.
10133
10134 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
10135 * config/aarch64/iterators.md (VQ_HSF): New iterator.
10136 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
10137 (Vwide): New mode_attr.
10138
10139 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10140
10141 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
10142 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
10143 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
10144 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
10145 V4HF and V8HF variants to iterator.
10146
10147 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
10148
10149 * config/aarch64/iterators.md (VDQF_F16): New.
10150 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
10151
10152 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10153
10154 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
10155 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
10156 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
10157 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
10158 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
10159 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
10160 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
10161 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
10162 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
10163 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
10164 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
10165 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
10166 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
10167 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
10168 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
10169 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
10170 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
10171 vld1q_dup_f16): New.
10172
10173 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10174
10175 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
10176 Reparameterize to...
10177 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
10178 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
10179 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
10180
10181 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
10182 v8hf variant.
10183 (float_truncate_lo_): Use BUILTIN_VDF iterator.
10184
10185 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
10186
10187 * config/aarch64/iterators.md (VDF, Vdtype): New.
10188 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
10189
10190 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10191
10192 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
10193 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
10194 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
10195 Add __builtin_aarch64_simd_hf.
10196 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
10197 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
10198 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
10199 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
10200 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
10201 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
10202 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
10203 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
10204 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
10205
10206 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
10207 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
10208 (VDC, Vdbl): Add V4HF.
10209
10210 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10211
10212 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
10213 V4HFmode and V8HFmode.
10214 (aarch64_split_simd_move): Add case for V8HFmode.
10215 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
10216 (aarch64_simd_builtin_std_type): Handle HFmode.
10217 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
10218
10219 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
10220 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
10221 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
10222
10223 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
10224 Float16x8_t.
10225
10226 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
10227 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
10228 New typedefs.
10229 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
10230 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
10231 vst1q_lane_f16): New.
10232 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
10233 (VALLDI_F16, VALL_F16): New.
10234 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
10235 Add cases for V4HF and V8HF.
10236 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
10237
10238 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10239
10240 * config/arm/arm-builtins.c (VAR11, VAR12): New.
10241 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
10242 vld4_dup): Add v4hf variant.
10243 (vget_high, vget_low): Add v8hf variant.
10244 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
10245 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
10246 v4hf and v8hf variants.
10247
10248 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
10249 (VDX): Add V4HF.
10250 (V_DOUBLE): Add case for V4HF.
10251 (VQX): Add V8HF.
10252 (V_HALF): Add case for V8HF.
10253 (VDQX): Add V4HF, V8HF.
10254 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
10255 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
10256
10257 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
10258 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
10259 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
10260 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
10261 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
10262 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
10263 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
10264 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
10265 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
10266
10267 (neon_vcreate, neon_vreinterpretv8qi<mode>,
10268 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
10269 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
10270 Change VDX to VD_RE.
10271
10272 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
10273 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
10274 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
10275
10276 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
10277 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
10278 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
10279 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
10280 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
10281 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
10282 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
10283 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
10284 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
10285
10286 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10287
10288 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
10289 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
10290 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
10291 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
10292 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
10293 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
10294 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
10295 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
10296 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
10297 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
10298 New.
10299
10300 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10301
10302 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
10303
10304 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
10305
10306 * config/arm/arm-builtins.c (v8hf_UP): New.
10307 (arm_init_simd_builtin_types): Initialise Float16x8_t.
10308
10309 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
10310
10311 * config/arm/arm_neon.h (float16x8_t): New typedef.
10312
10313 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10314
10315 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
10316 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
10317 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
10318 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
10319 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
10320 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
10321 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
10322 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
10323 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
10324 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
10325
10326 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
10327
10328 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
10329 non-alphanumeric characters in the symbol name.
10330
10331 2015-09-07 Marek Polacek <polacek@redhat.com>
10332
10333 PR inline-asm/67448
10334 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
10335 a memory input.
10336
10337 2015-09-07 Marek Polacek <polacek@redhat.com>
10338
10339 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
10340
10341 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
10342
10343 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
10344 not warn.
10345
10346 2015-09-04 Jakub Jelinek <jakub@redhat.com>
10347
10348 PR middle-end/67452
10349 * tree-ssa-live.c: Include cfgloop.h.
10350 (remove_unused_locals): Clear loop->simduid if simduid is about
10351 to be removed from cfun->local_decls.
10352
10353 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10354
10355 PR target/65210
10356 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
10357 attribute as well.
10358
10359 2015-09-04 Tom de Vries <tom@codesourcery.com>
10360
10361 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
10362
10363 2015-09-04 Jeff Law <law@redhat.com>
10364
10365 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
10366 unnecessary constructor. It's now trivial and implemented inside...
10367 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
10368 constructor. Add comments to various methods. Remove unused
10369 private fields.
10370 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
10371 * tree-vrp.c (identify_jump_threads): Likewise.
10372 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
10373 indentation issues.
10374 (thread_across_edge): Similarly.
10375 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
10376 arguments in constructor call.
10377
10378 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
10379
10380 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
10381 temp path contains a '-'.
10382
10383 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
10384 Petr Murzin <petr.murzin@intel.com>
10385 Kirill Yukhin <kirill.yukhin@intel.com>
10386
10387 * config/i386/i386-builtin-types.def
10388 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
10389 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
10390 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
10391 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
10392 * config/i386/i386.c
10393 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
10394 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
10395 IX86_BUILTIN_SCATTERALTDIV16SI.
10396 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
10397 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
10398 __builtin_ia32_scatteraltdiv8si.
10399 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
10400 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
10401 IX86_BUILTIN_SCATTERALTDIV16SI.
10402 (ix86_vectorize_builtin_scatter): New.
10403 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
10404 ix86_vectorize_builtin_scatter.
10405
10406 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
10407 Petr Murzin <petr.murzin@intel.com>
10408 Kirill Yukhin <kirill.yukhin@intel.com>
10409
10410 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
10411 * doc/tm.texi: Regenerate.
10412 * target.def: Add scatter builtin.
10413 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
10414 for loads/stores in case of gather/scatter accordingly.
10415 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
10416 STMT_VINFO_GATHER_P(S).
10417 (vect_check_gather): Rename to ...
10418 (vect_check_gather_scatter): this.
10419 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
10420 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
10421 (vect_check_gather_scatter): Use it instead of vect_check_gather.
10422 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
10423 variable and new checkings for it accordingly.
10424 * tree-vect-stmts.c
10425 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
10426 STMT_VINFO_GATHER_P(S).
10427 (vect_check_gather_scatter): Use it instead of vect_check_gather.
10428 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
10429
10430 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10431
10432 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
10433 define_insn.
10434 (mulv16qi3): New define_expand.
10435
10436 2015-09-03 Martin Sebor <msebor@redhat.com>
10437
10438 PR c/66516
10439 * doc/extend.texi (Other Builtins): Document when the address
10440 of a built-in function can be taken.
10441
10442 2015-09-03 Richard Biener <rguenther@suse.de>
10443
10444 * dwarf2out.c (flush_limbo_die_list): Split out from ...
10445 (dwarf2out_early_finish): ... here.
10446 (dwarf2out_finish): Do not call dwarf2out_early_finish but
10447 flush_limbo_die_list. Assert we have no deferred asm names.
10448
10449 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10450
10451 * optabs.c (expand_binop): Don't create a broadcast vector with a
10452 source element wider than the inner mode.
10453
10454 2015-09-03 Richard Biener <rguenther@suse.de>
10455
10456 * varasm.c (output_constant): Use fold_convert instead of
10457 wide_int_to_tree.
10458
10459 2015-09-03 Tom de Vries <tom@codesourcery.com>
10460
10461 PR tree-optimization/65637
10462 * omp-low.c (expand_omp_for_static_chunk): Handle case that
10463 fin_bb has 2 predecessors.
10464
10465 2015-09-03 Tom de Vries <tom@codesourcery.com>
10466
10467 PR tree-optimization/65637
10468 * omp-low.c (find_phi_with_arg_on_edge): New function.
10469 (expand_omp_for_static_chunk): Fix inner loop phi.
10470
10471 2015-09-03 Tom de Vries <tom@codesourcery.com>
10472
10473 PR tree-optimization/65637
10474 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
10475 that head is NULL.
10476
10477 2015-09-03 Tom de Vries <tom@codesourcery.com>
10478
10479 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
10480
10481 2015-09-03 Tom de Vries <tom@codesourcery.com>
10482
10483 * doc/invoke.texi (parloops-chunk-size): Add item.
10484 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
10485 * tree-parloops.c: Include params.h.
10486 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
10487 param parloops-chunk-size is used.
10488
10489 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10490
10491 PR middle-end/67351
10492 * fold-const.c (fold_binary_loc) : Move
10493 Transform (x >> c) << c into x & (-1<<c) or
10494 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
10495 types using simplify and match.
10496 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
10497 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
10498
10499 2015-09-03 Richard Biener <rguenther@suse.de>
10500
10501 PR ipa/66705
10502 * tree-ssa-structalias.c (ctor_for_analysis): New function.
10503 (create_variable_info_for_1): Use ctor_for_analysis instead
10504 of get_constructor.
10505 (create_variable_info_for): Likewise.
10506
10507 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
10508
10509 PR ipa/67280
10510 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
10511 in new callgraph edge.
10512
10513 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
10514
10515 PR target/59810
10516 PR target/63652
10517 PR target/63653
10518 * config/aarch64/aarch64-simd.md
10519 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
10520 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
10521 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
10522 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
10523
10524 2015-09-02 Alan Modra <amodra@gmail.com>
10525
10526 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
10527 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
10528 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
10529
10530 2015-09-02 Alan Modra <amodra@gmail.com>
10531
10532 PR target/67417
10533 * config/rs6000/predicates.md (current_file_function_operand): Don't
10534 return true for weak symbols.
10535 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
10536
10537 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
10538 Andrew Bennett <andrew.bennett@imgtec.com>
10539
10540 * config/mips/mips-opts.h (mips_cb_setting): New enum.
10541 * config/mips/mips-protos.h: Add definitions for
10542 mips_output_jump and mips_output_equal_conditional_branch
10543 * config/mips/mips.c (MIPS_JR): Change to support the
10544 JIC instruction.
10545 (mips_emit_compare): Add support for the MIPS R6 conditional
10546 compact branches.
10547 (mips_process_sync_loop): Likewise.
10548 (mips_output_order_conditional_branch): Likewise.
10549 (mips16_build_call_stub): Change MIPS_CALL to
10550 mips_output_jump.
10551 (mips_print_operand_punctuation): Update 's' case to only
10552 apply to micromips r2.
10553 (mips_adjust_insn_length): Add support for forbidden slot
10554 hazards.
10555 (mips_avoid_hazard): Likewise.
10556 (mips_reorg_process_insns): Likewise.
10557 (mips_output_jump): New function.
10558 (mips_output_equal_conditional_branch): Likewise.
10559 (mips_output_conditional_branch): Use jrc/bc if compact
10560 branch support is enabled. Ensure the forbidden slots
10561 between the two branch instructions is filled with a nop.
10562 (mips_option_override): Add support to process the compact
10563 branch option and set the correct defaults. Prevent
10564 non-explict relocs being using for MIPS R6.
10565 (mips_trampoline_init): Add compact branch support.
10566 (mips_mult_zero_zero_cost): Allow zero initialisation of
10567 accumulators with TARGET_DSP.
10568 * config/mips/mips.h (TARGET_CB_NEVER): New define.
10569 (TARGET_CB_MAYBE): New define.
10570 (TARGET_CB_ALWAYS): New define.
10571 (ISA_HAS_DELAY_SLOTS): New define.
10572 (ISA_HAS_COMPACT_BRANCHES): New define.
10573 (ISA_HAS_JRC): New define.
10574 (MIPS_BRANCH_C): New define.
10575 (MIPS_CALL): Removed.
10576 (MICROMIPS_J): Removed.
10577 * config/mips/mips.md (compact_form): New attr.
10578 (hazard): Add support for forbidden slots.
10579 (define_delay): Add support for compact branches.
10580 (*branch_order<mode>): Likewise.
10581 (*branch_order<mode>_inverted): Likewise.
10582 (*branch_equality<mode>): Likewise.
10583 (*branch_equality<mode>_inverted): Likewise.
10584 (*jump_absolute): Likewise.
10585 (*jump_pic): Likewise.
10586 (indirect_jump): Use mips_output_jump to produce assembly output.
10587 (tablejump_<mode>"): Likewise.
10588 (*<optab>"): Likewise.
10589 (<optab>_internal): Likewise.
10590 (sibcall_internal): Likewise.
10591 (sibcall_value_internal): Likewise.
10592 (sibcall_value_multiple_internal): Likewise.
10593 (call_internal): Likewise.
10594 (call_split): Likewise.
10595 (call_internal_direct): Likewise.
10596 (call_direct_split): Likewise.
10597 (call_value_internal): Likewise.
10598 (call_value_split): Likewise.
10599 (call_value_internal_direct): Likewise.
10600 (call_value_direct_split): Likewise.
10601 (call_value_multiple_internal): Likewise.
10602 (call_value_multiple_split): Likewise.
10603 (mips_get_fcsr_mips16_<mode>): Likewise.
10604 (mips_set_fcsr_mips16_<mode>): Likewise.
10605 (tls_get_tp_mips16_<mode>): Likewise.
10606 * config/mips/mips.opt: Add -mcompact-branches option.
10607 * config/mips/predicates.md (order_operator): Ensure the
10608 conditional compact branches are only used if the ISA them.
10609 * doc/invoke.texi: Document -mcompact-branches option.
10610
10611 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
10612
10613 PR target/61578
10614 * lra-lives.c (process_bb_lives): Process move pseudos with the
10615 same value for copies and preferences
10616 * lra-constraints.c (match_reload): Create match reload pseudo
10617 with the same value from single dying input pseudo.
10618
10619 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
10620
10621 PR target/67405
10622 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
10623
10624 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
10625
10626 * trans-mem.c: Add contributed-by.
10627 * trans-mem.h: Same.
10628
10629 2015-09-01 Richard Biener <rguenther@suse.de>
10630
10631 * expr.c (expand_expr_real_1): For expanding TERed defs
10632 set the current location to that of the def if not UNKNOWN.
10633
10634 2015-09-01 David Sherwood <david.sherwood@arm.com>
10635
10636 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
10637
10638 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10639
10640 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
10641 then_cost, else_cost fields. Change branch_cost field to unsigned int.
10642 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
10643 Include rtl-iter.h.
10644 (noce_simple_bbs): New function.
10645 (noce_try_move): Bail if basic blocks are not simple.
10646 (noce_try_store_flag): Likewise.
10647 (noce_try_store_flag_constants): Likewise.
10648 (noce_try_addcc): Likewise.
10649 (noce_try_store_flag_mask): Likewise.
10650 (noce_try_cmove): Likewise.
10651 (noce_try_minmax): Likewise.
10652 (noce_try_abs): Likewise.
10653 (noce_try_sign_mask): Likewise.
10654 (noce_try_bitop): Likewise.
10655 (bbs_ok_for_cmove_arith): New function.
10656 (noce_emit_all_but_last): Likewise.
10657 (noce_emit_insn): Likewise.
10658 (noce_emit_bb): Likewise.
10659 (noce_try_cmove_arith): Handle non-simple basic blocks.
10660 (insn_valid_noce_process_p): New function.
10661 (contains_mem_rtx_p): Likewise.
10662 (bb_valid_for_noce_process_p): Likewise.
10663 (noce_process_if_block): Allow non-simple basic blocks
10664 where appropriate.
10665
10666 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
10667
10668 * tree-ssa-dom.c (record_equivalences_from_phis,
10669 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
10670 (lookup_avail_expr): Likewise, and remove comment and unused temp.
10671
10672 2015-09-01 Nick Clifton <nickc@redhat.com>
10673
10674 * config/msp430/msp430.opt (mcpu): Fix typo.
10675
10676 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10677
10678 * config/aarch64/aarch64.c (aarch64_set_current_function):
10679 Re-layout any vector parameters have non-simd layout.
10680 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
10681 Delete.
10682 (aarch64_simd_expand_args): Delete call to the above.
10683
10684 2015-08-31 Mike Frysinger <vapier@gentoo.org>
10685
10686 * doc/invoke.texi (asan-stack): Add space before option.
10687
10688 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
10689
10690 * tree.h (zerop): New function.
10691 * tree.c (zerop): Likewise.
10692 (element_precision): Handle expressions.
10693 * match.pd (define_predicates): Add zerop.
10694 (x <= +Inf): Fix comment.
10695 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
10696 * fold-const.c (fold_binary_loc): ... here. Remove.
10697
10698 2015-08-31 Richard Biener <rguenther@suse.de>
10699
10700 PR middle-end/67381
10701 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
10702
10703 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
10704
10705 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
10706 (CEXPI): New operator list.
10707 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
10708 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
10709 Converted from ...
10710 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
10711
10712 2015-08-31 Tom de Vries <tom@codesourcery.com>
10713
10714 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
10715 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
10716 parameter.
10717 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
10718 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
10719 (rewrite_into_loop_closed_ssa): ... here.
10720 (replace_uses_in_dominated_bbs): Remove function.
10721 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
10722 rewrite_into_loop_closed_ssa_1.
10723
10724 2015-08-31 Michael Matz <matz@suse.de>
10725
10726 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
10727 enter entry and exit blocks for reverse post order.
10728
10729 2015-08-31 Richard Biener <rguenther@suse.de>
10730
10731 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
10732 (lto_location_cache::current_sysp): Likewise.
10733 (output_block::current_sysp): Likewise.
10734 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
10735 (lto_location_cache::apply_location_cache): Properly record
10736 system header locations.
10737 (lto_location_cache::input_location): Input whether a file
10738 is a system header.
10739 * lto-streamer-out.c (lto_output_location): Stream whether a file
10740 is a system header.
10741
10742 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10743
10744 PR bootstrap/67363
10745 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
10746
10747 2015-08-31 Tom de Vries <tom@codesourcery.com>
10748
10749 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
10750 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
10751 Improve function header comments.
10752
10753 2015-08-30 Michael Collison <michael.collison@linaro.org>
10754
10755 PR other/67320
10756 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
10757 standard names
10758
10759 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10760
10761 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
10762 special_handling bitfield.
10763 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
10764 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
10765 that represents a general xxpermdi.
10766 (insn_is_swappable_p): Add handling for vec_concat of two
10767 doublewords, which maps to a specific xxpermdi.
10768 (adjust_xxpermdi): New function.
10769 (adjust_concat): Likewise.
10770 (handle_special_swappables): Call adjust_xxpermdi and
10771 adjust_concat.
10772 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
10773
10774 2015-08-30 Rich Felker <dalias@libc.org>
10775
10776 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
10777 case instead of sh[123456ble]-*-*.
10778
10779 2015-08-29 Anatoly Sokolov <aesok@post.ru>
10780
10781 * ira.c (print_unform_and_important_classes,
10782 print_translated_classes): Remove reg_class_names static array.
10783 (print_unform_and_important_classes): Rename to ...
10784 (print_uniform_and_important_classes): ... this.
10785 (ira_debug_allocno_classes): Update accordingly.
10786
10787 2015-08-29 Tom de Vries <tom@codesourcery.com>
10788
10789 PR tree-optimization/46193
10790 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
10791 clause.
10792
10793 2015-08-28 Jeff Law <law@redhat.com>
10794
10795 PR lto/66752
10796 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10797 unable to find X NE 0 in the tables, return X as the simplified
10798 condition.
10799 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10800 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
10801 to VISISTED_BBS.
10802 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10803 after removing the control flow statement and unnecessary edges.
10804
10805 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
10806
10807 Revert:
10808 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
10809
10810 PR tree-optimization/67283
10811 * tree-sra.c (type_consists_of_records_p): Rename to...
10812 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10813
10814 (completely_scalarize_record): Rename to...
10815 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
10816 code to:
10817 (scalarize_elem): New.
10818
10819 2015-08-28 Jiong Wang <jiong.wang@arm.com>
10820
10821 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
10822 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
10823 (aarch64_symbol_type): Likewise.
10824 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10825 Likewise.
10826 (aarch64_expand_mov_immediate): Likewise.
10827 (aarch64_print_operand): Likewise.
10828 (aarch64_classify_tls_symbol): Likewise.
10829
10830 2015-08-28 Richard Biener <rguenther@suse.de>
10831
10832 * cgraphunit.c (symbol_table::compile): Move early debug generation
10833 and finish...
10834 (symbol_table::finalize_compilation_unit): ... back here and
10835 add a !seen_error () guard.
10836
10837 2015-08-27 Sebastian Pop <s.pop@samsung.com>
10838
10839 * toplev.c (process_options): Do not use flag_loop_block,
10840 flag_loop_interchange, and flag_loop_strip_mine. Add check for
10841 flag_loop_optimize_isl.
10842
10843 2015-08-27 Sebastian Pop <s.pop@samsung.com>
10844
10845 * Makefile.in (OBJS): Remove graphite-blocking.o and
10846 graphite-interchange.o.
10847 * common.opt (floop-strip-mine, floop-interchange, floop-block):
10848 Alias of floop-nest-optimize.
10849 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
10850 Document as alias of -floop-nest-optimize.
10851 * graphite-blocking.c: Remove.
10852 * graphite-interchange.c: Remove.
10853 * graphite-optimize-isl.c: Include dumpfile.h.
10854 (getScheduleForBand): Add dump for tiled loops. Use
10855 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
10856 * graphite-poly.c (scop_max_loop_depth): Remove.
10857 (print_scattering_function_1): Remove.
10858 (print_scattering_function): Remove.
10859 (print_scattering_functions): Remove.
10860 (debug_scattering_function): Remove.
10861 (debug_scattering_functions): Remove.
10862 (apply_poly_transforms): Remove use of flag_loop_block,
10863 flag_loop_strip_mine, and flag_loop_interchange.
10864 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
10865 PBB_ORIGINAL.
10866 (print_pdr_access_layout): Remove.
10867 (print_pdr): Print ISL representation.
10868 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
10869 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
10870 (free_scop): Same.
10871 (openscop_print_pbb_domain): Remove.
10872 (print_pbb): Remove call to print_scattering_function.
10873 (openscop_print_scop_context): Remove.
10874 (print_scop_context): Do not print matrices anymore.
10875 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
10876 SCOP_TRANSFORMED_SCHEDULE.
10877 (print_isl_set): Add printing of a new line.
10878 (print_isl_map): Same.
10879 (print_isl_aff): Same.
10880 (print_isl_constraint): Same.
10881 (loop_to_lst): Remove.
10882 (scop_to_lst): Remove.
10883 (lst_indent_to): Remove.
10884 (print_lst): Remove.
10885 (debug_lst): Remove.
10886 (dot_lst_1): Remove.
10887 (dot_lst): Remove.
10888 (reverse_loop_at_level): Remove.
10889 (reverse_loop_for_pbbs): Remove.
10890 * graphite-poly.h (pdr_dim_iter_domain): Remove.
10891 (pdr_nb_params): Remove.
10892 (pdr_alias_set_dim): Remove.
10893 (pdr_subscript_dim): Remove.
10894 (pdr_iterator_dim): Remove.
10895 (pdr_parameter_dim): Remove.
10896 (same_pdr_p): Remove.
10897 (struct poly_scattering): Remove.
10898 (struct poly_bb): Remove _original, _transformed, _saved.
10899 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
10900 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
10901 (PBB_NB_LOCAL_VARIABLES): Remove.
10902 (PBB_NB_SCATTERING_TRANSFORM): Remove.
10903 (schedule_to_scattering): Remove.
10904 (number_of_write_pdrs): Remove.
10905 (pbb_dim_iter_domain): Remove.
10906 (pbb_nb_params): Remove.
10907 (pbb_nb_scattering_orig): Remove.
10908 (pbb_nb_scattering_transform): Remove.
10909 (pbb_nb_dynamic_scattering_transform): Remove.
10910 (pbb_nb_local_vars): Remove.
10911 (pbb_iterator_dim): Remove.
10912 (pbb_parameter_dim): Remove.
10913 (psco_scattering_dim): Remove.
10914 (psct_scattering_dim): Remove.
10915 (psct_local_var_dim): Remove.
10916 (psco_iterator_dim): Remove.
10917 (psct_iterator_dim): Remove.
10918 (psco_parameter_dim): Remove.
10919 (psct_parameter_dim): Remove.
10920 (psct_dynamic_dim): Remove.
10921 (psct_static_dim): Remove.
10922 (psct_add_local_variable): Remove.
10923 (new_lst_loop): Remove.
10924 (new_lst_stmt): Remove.
10925 (free_lst): Remove.
10926 (copy_lst): Remove.
10927 (lst_add_loop_under_loop): Remove.
10928 (lst_depth): Remove.
10929 (lst_dewey_number): Remove.
10930 (lst_dewey_number_at_depth): Remove.
10931 (lst_pred): Remove.
10932 (lst_succ): Remove.
10933 (lst_find_pbb): Remove.
10934 (find_lst_loop): Remove.
10935 (lst_find_first_pbb): Remove.
10936 (lst_empty_p): Remove.
10937 (lst_find_last_pbb): Remove.
10938 (lst_contains_p): Remove.
10939 (lst_contains_pbb): Remove.
10940 (lst_create_nest): Remove.
10941 (lst_remove_from_sequence): Remove.
10942 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
10943 (lst_niter_for_loop): Remove.
10944 (pbb_update_scattering): Remove.
10945 (lst_update_scattering_under): Remove.
10946 (lst_update_scattering): Remove.
10947 (lst_insert_in_sequence): Remove.
10948 (lst_replace): Remove.
10949 (lst_substitute_3): Remove.
10950 (lst_distribute_lst): Remove.
10951 (lst_remove_all_before_including_pbb): Remove.
10952 (lst_remove_all_before_excluding_pbb): Remove.
10953 (struct scop): Remove original_schedule, transformed_schedule, and
10954 saved_schedule.
10955 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
10956 (SCOP_SAVED_SCHEDULE): Remove.
10957 (poly_scattering_new): Remove.
10958 (poly_scattering_free): Remove.
10959 (poly_scattering_copy): Remove.
10960 (store_scattering_pbb): Remove.
10961 (store_lst_schedule): Remove.
10962 (restore_lst_schedule): Remove.
10963 (store_scattering): Remove.
10964 (restore_scattering_pbb): Remove.
10965 (restore_scattering): Remove.
10966 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
10967 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
10968 compute the scattering polyhedron dimension from the dimension of
10969 pbb->domain.
10970 (build_scop_scattering): Update call to
10971 build_pbb_scattering_polyhedrons.
10972 (build_poly_scop): Remove call to scop_to_lst.
10973 * graphite.c (graphite_transform_loops): Add call to print_scop.
10974 (gate_graphite_transforms): Remove use of flag_loop_block,
10975 flag_loop_interchange, and flag_loop_strip_mine.
10976
10977 2015-08-27 Sebastian Pop <s.pop@samsung.com>
10978
10979 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
10980 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
10981 -floop-nest-optimize.
10982 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
10983 (generate_luj_sepclass): Remove.
10984 (generate_luj_options): Remove.
10985 (set_options): Remove opt_luj.
10986 (scop_to_isl_ast): Remove opt_luj.
10987 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
10988 flag_loop_unroll_jam.
10989 (getPrevectorMap_full): Remove.
10990 (getScheduleForBandList): Remove map_sepcl.
10991 (getScheduleMap): Same.
10992 (apply_schedule_map_to_scop): Remove sepcl.
10993 (optimize_isl): Same.
10994 * graphite-poly.c (apply_poly_transforms): Remove check for
10995 flag_loop_unroll_jam.
10996 (new_poly_bb): Remove map_sepclass.
10997 * graphite-poly.h (struct poly_bb): Same.
10998 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
10999 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
11000 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
11001 * toplev.c (process_options): Remove flag_loop_unroll_jam.
11002
11003 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
11004
11005 PR target/67317
11006 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
11007 (addqi3_cc): Ditto.
11008 (UNSPEC_ADD_CARRY): Remove.
11009 (addqi3_cconly_overflow): New expander.
11010 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
11011 Adjust for changed add<mode>3_carry.
11012 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
11013 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
11014 (<plusminus_insn><mode>3_carry): Remove expander.
11015 (*<plusminus_insn><mode>3_carry): Split insn pattern to
11016 add<mode>3_carry and sub<mode>3_carry.
11017 (plusminus_carry_mnemonic): Remove code attribute.
11018 (add<mode>3_carry): Canonicalize insn pattern.
11019 (*addsi3_carry_zext): Ditto.
11020 (sub<mode>3_carry): Ditto.
11021 (*subsi3_carry_zext): Ditto.
11022 (adcx<mode>3): Remove insn pattern.
11023 (addcarry<mode>): New insn pattern.
11024 (subborrow<mode>): Ditto.
11025 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
11026 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
11027 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
11028 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
11029 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
11030 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
11031 Rewrite expander to not clobber carry flag chains.
11032
11033 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
11034
11035 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
11036 instead of a rotate.
11037
11038 2015-08-27 Marek Polacek <polacek@redhat.com>
11039
11040 PR middle-end/67005
11041 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
11042 an entry into an irreducible region.
11043
11044 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11045
11046 * configure: Regenerate.
11047
11048 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11049
11050 PR tree-optimization/67283
11051 * tree-sra.c (type_consists_of_records_p): Rename to...
11052 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11053
11054 (completely_scalarize_record): Rename to...
11055 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11056 (scalarize_elem): New.
11057
11058 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11059
11060 * tree-sra.c (completely_scalarize_var): Rename to...
11061 (create_total_scalarization_access): ... Here. Drop call to
11062 completely_scalarize_record.
11063
11064 (analyze_all_variable_accesses): Replace completely_scalarize_var
11065 with create_total_scalarization_access and completely_scalarize_record.
11066
11067 2015-08-27 Alan Modra <amodra@gmail.com>
11068
11069 PR target/67356
11070 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
11071 for operand 1.
11072
11073 2015-08-27 Richard Biener <rguenther@suse.de>
11074
11075 * passes.c (rest_of_decl_compilation): Guard early_global_decl
11076 call with !seen_error ().
11077 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
11078 early debug generation and finish...
11079 (symbol_table::compile): ... here to put it after a !seen_error ()
11080 guard.
11081
11082 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11083
11084 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
11085 Solaris 12+.
11086
11087 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11088 Andre Vieira <andre.simoesdiasvieira@arm.com>
11089
11090 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
11091 (*cb<optab><mode>1): Likewise.
11092 (*tb<optab><mode>1): Likewise.
11093 (*cb<optab><mode>1): Likewise.
11094 * config/aarch64/iterators.md (inv_cb): New code attribute.
11095 (inv_tb): Likewise.
11096 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
11097 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
11098
11099 2015-08-27 Richard Biener <rguenther@suse.de>
11100
11101 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
11102
11103 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
11104
11105 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
11106 trap to fix ICE.
11107
11108 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
11109
11110 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
11111 Add declaration.
11112
11113 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
11114 comment.
11115 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
11116 floating point in VSX registers.
11117 (rs6000_output_move_128bit): Always print out the set insn if we
11118 can't generate an appropriate 128-bit move.
11119 (rs6000_generate_compare): Add support for IEEE 128-bit floating
11120 point in VSX registers comparisons.
11121 (rs6000_expand_float128_convert): Likewise.
11122
11123 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
11124 predicate for only GPR hard registers.
11125
11126 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
11127 modes to iterators. Add new iterators for moving 128-bit values in
11128 scalar FPR registers and VSX registers.
11129 (FMOVE128): Likewise.
11130 (FMOVE128_FPR): Likewise.
11131 (FMOVE128_GPR): Likewise.
11132 (FMOVE128_VSX): Likewise.
11133 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
11134 in VSX registers.
11135 (IFKF): Likewise.
11136 (IBM128): Likewise.
11137 (TFIFKF): Likewise.
11138 (RELOAD): Add IEEE 128-bit floating point modes.
11139 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
11140 floating point in VSX registers modes.
11141 (signbit<mode>2, IBM128 iterator): Likewise.
11142 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
11143 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
11144 (negtf2): Likewise.
11145 (neg<mode>2, TFIFKF iterator): Likewise.
11146 (negtf2_internal): Likewise.
11147 (abstf2): Likewise.
11148 (abs<mode>2, TFIFKF iterator): Likewise.
11149 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
11150 VSX insn support for negate, absolute value, and negative absolute
11151 value.
11152 (ieee_128bit_vsx_neg<mode>2): Likewise.
11153 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
11154 (ieee_128bit_vsx_abs<mode>2): Likewise.
11155 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11156 (ieee_128bit_vsx_nabs<mode>2): Likewise.
11157 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11158 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
11159 floating point in VSX registers.
11160 (unpack<mode>_dm): Likewise.
11161 (unpack<mode>_nodm): Likewise.
11162 (pack<mode>): Likewise.
11163 (unpackv1ti): Likewise.
11164 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
11165 (packv1ti): Likewise.
11166 (pack<mode>, FMOVE128_VSX iterator): Likewise.
11167 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
11168 registers.
11169 (extenddftf2_internal): Likewise.
11170 (trunctfdf2): Likewise.
11171 (trunctfdf2_internal2): Likewise.
11172 (fix_trunc_helper): Likewise.
11173 (fix_trunctfdi2"): Likewise.
11174 (floatditf2): Likewise.
11175 (floatuns<mode>tf2): Likewise.
11176 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
11177 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
11178 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
11179 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
11180 (float<SDI:mode><IFKF:mode>2): Likewise.
11181 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
11182
11183 2015-08-26 Renlin Li <renlin.li@arm.com>
11184
11185 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
11186
11187 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
11188 Jiong Wang <jiong.wang@arm.com>
11189
11190 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
11191 (tlsie_tiny_<mode>): New define_insn.
11192 (tlsie_tiny_sidi): Likewise.
11193 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
11194 SYMBOL_TINY_TLSIE.
11195 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
11196 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11197 SYMBOL_TINY_TLSIE.
11198 (aarch64_expand_mov_immediate): Likewise.
11199 (aarch64_print_operand): Likewise.
11200 (arch64_classify_tls_symbol): Likewise.
11201
11202 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11203
11204 * config/arm/arm-arches.def: Replace single value flags with
11205 an initializer built from ARM_FSET_MAKE_CPU1.
11206 * config/arm/arm-cores.def: Likewise.
11207 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
11208 derivation from the ARM_CORE macro definition, use the given value
11209 instead.
11210 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
11211 ARM_ARCH macro definition, use the given value instead.
11212
11213 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11214
11215 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
11216 feature set.
11217 (struct builtin_description): Replace field mask with field
11218 features.
11219 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
11220 (IWMMXT2_BUILTIN): Likewise.
11221 (IWMMXT2_BUILTIN2): Likewise.
11222 (FP_BUILTIN): Likewise.
11223 (CRC32_BUILTIN): Likewise.
11224 (CRYPTO_BUILTIN): Likewise.
11225 (iwmmx_mbuiltin): Likewise.
11226 (iwmmx2_mbuiltin): Likewise.
11227 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
11228 struct builtin_description.
11229
11230 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11231
11232 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
11233 (struct builtin_description): Change type of mask to unsigned
11234 long.
11235 * config/arm/arm-protos.h (insn_flags): Declare as type
11236 arm_feature_set.
11237 (tune_flags): Likewise.
11238 * config/arm/arm.c (feature_count): New.
11239 (insn_flags): Define as type arm_feature_set.
11240 (tune_flags): Likewise.
11241 (struct processors): Define field flags as type arm_feature_set.
11242 (all_cores): Update for change to struct processors.
11243 (all_architectures): Likewise.
11244 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
11245 macros.
11246 (arm_option_override_internal): Likewise.
11247 (arm_option_override): Likewise.
11248
11249 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
11250 Jiong Wang <jiong.wang@arm.com>
11251
11252 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
11253 tls size for tiny, small, large memory model.
11254 (aarch64_load_symref_appropriately): Support new symbol types.
11255 (aarch64_expand_mov_immediate): Likewise.
11256 (aarch64_print_operand): Likewise.
11257 (aarch64_classify_tls_symbol): Likewise.
11258 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
11259 (aarch64_symbol_type): Likewise.
11260 * config/aarch64/aarch64.md (tlsle): Deleted.
11261 (tlsle12_<mode>): New define_insn.
11262 (tlsle24_<mode>): Likewise.
11263 (tlsle32_<mode>): Likewise.
11264 (tlsle48_<mode>): Likewise.
11265 * doc/sourcebuild.texi (AArch64-specific attributes): Document
11266 "aarch64_tlsle32".
11267
11268 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11269
11270 * config/arm/arm-protos.h (FL_NONE): New.
11271 (FL_ANY): New.
11272 (arm_feature_set): New.
11273 (ARM_FSET_MAKE): New.
11274 (ARM_FSET_MAKE_CPU1): New.
11275 (ARM_FSET_MAKE_CPU2): New.
11276 (ARM_FSET_CPU1): New.
11277 (ARM_FSET_CPU2): New.
11278 (ARM_FSET_EMPTY): New.
11279 (ARM_FSET_ANY): New.
11280 (ARM_FSET_HAS_CPU1): New.
11281 (ARM_FSET_HAS_CPU2): New.
11282 (ARM_FSET_HAS_CPU): New.
11283 (ARM_FSET_ADD_CPU1): New.
11284 (ARM_FSET_ADD_CPU2): New.
11285 (ARM_FSET_DEL_CPU1): New.
11286 (ARM_FSET_DEL_CPU2): New.
11287 (ARM_FSET_UNION): New.
11288 (ARM_FSET_INTER): New.
11289 (ARM_FSET_XOR): New.
11290 (ARM_FSET_EXCLUDE): New.
11291 (AFM_FSET_IS_EMPTY): New.
11292 (ARM_FSET_CPU_SUBSET): New.
11293
11294 2015-08-26 Jiong Wang <jiong.wang@arm.com>
11295
11296 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11297 SYMBOL_TLSLE to SYMBOL_TLSLE24.
11298 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11299 Likewise.
11300 (aarch64_expand_mov_immediate): Likewise.
11301 (aarch64_print_operand): Likewise.
11302 (aarch64_classify_symbol): Likewise.
11303
11304 2015-08-26 Jiong Wang <jiong.wang@arm.com>
11305
11306 * config/aarch64/aarch64.opt (mtls-size): New entry.
11307 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
11308 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
11309 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
11310
11311 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11312
11313 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
11314 ARM_CORE entry. Fix some white-space.
11315 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
11316 ARM_CORE definition.
11317
11318 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11319
11320 * fold-const.c (fold_binary_loc) : Move Optimize
11321 root(x)*root(y) as root(x*y) to match.pd.
11322 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
11323 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
11324 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
11325 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
11326 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
11327 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
11328 (mult (exps:s @0) (exps:s @1)) : New simplifier.
11329 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
11330 (rdiv @0 (exps:s @1)) : New simplifier.
11331
11332 2015-08-25 Joseph Myers <joseph@codesourcery.com>
11333
11334 * gcc.c (driver::finalize): Only assign to extra_specs if
11335 [EXTRA_SPECS].
11336
11337 2015-08-25 Marek Polacek <polacek@redhat.com>
11338
11339 PR middle-end/67330
11340 * varasm.c (declare_weak): Return after giving an error.
11341
11342 2015-08-25 David Malcolm <dmalcolm@redhat.com>
11343
11344 * gcc-main.c (main): Add params to driver ctor.
11345 * gcc.c (class env_manager): New.
11346 (env): New global.
11347 (env_manager::init): New.
11348 (env_manager::get): New.
11349 (env_manager::xput): New.
11350 (env_manager::restore): New.
11351 Poison getenv and putenv.
11352 (DEFAULT_TARGET_SYSTEM_ROOT): New.
11353 (target_system_root): Update initialization to use
11354 DEFAULT_TARGET_SYSTEM_ROOT.
11355 (struct spec_list): Add field "default_ptr".
11356 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
11357 (init_spec): Likewise.
11358 (set_spec): Clear field "default_ptr".
11359 (read_specs): Free "spec" and "buffer".
11360 (xputenv): Reimplement in terms of env_manager.
11361 (process_command): Replace ::getenv calls with calls to the
11362 env_manager singleton.
11363 (process_brace_body): Free string in three places.
11364 (driver::driver): New.
11365 (driver::~driver): New.
11366 (used_arg): Convert from a function to...
11367 (class used_arg_t): ...this class, and...
11368 (used_arg): ...this new global instance.
11369 (used_arg_t::finalize): New function.
11370 (getenv_spec_function): Add "const" to local "value". Replace
11371 ::getenv call with call to the env_manager singleton.
11372 (path_prefix_reset): New function.
11373 (driver::finalize): New function.
11374 * gcc.h (driver::driver): New.
11375 (driver::~driver): New.
11376 (driver::finalize): New.
11377
11378 2015-08-25 Nathan Sidwell <nathan@acm.org>
11379
11380 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
11381 target doesn't have one.
11382
11383 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
11384
11385 PR target/67346
11386 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
11387
11388 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
11389
11390 PR target/67344
11391 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
11392 a define_insn, remove second alternative.
11393
11394 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
11395 Joseph Myers <joseph@codesourcery.com>
11396
11397 * gcc.c (struct switchstr): Expand comment.
11398
11399 2015-08-25 Nathan Sidwell <nathan@acm.org>
11400
11401 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
11402 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
11403
11404 2015-08-25 Richard Biener <rguenther@suse.de>
11405
11406 PR middle-end/67306
11407 * genmatch.c (expr::gen_transform): Verify the result of
11408 builtin_decl_implicit.
11409 (dt_simplify::gen_1): Likewise.
11410
11411 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
11412
11413 * config/arm/constraints.md: Also list Cs and US ARM-specific
11414 constraints as used.
11415
11416 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
11417
11418 PR target/66609
11419 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
11420 UNSPEC_PCREL.
11421 (nonpic_symbol_mentioned_p): Likewise.
11422 (sh_delegitimize_address): Likewise.
11423 (sh_function_ok_for_sibcall): Take into account weak symbols.
11424 (sh_expand_sym_label2reg): New.
11425 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
11426 * config/sh/sh.md (UNSPEC_PCREL): New enum.
11427 (call_pcrel): Use sh_expand_sym_label2reg.
11428 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11429 (symPCREL_label2reg) New expand.
11430
11431 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
11432
11433 * graphite-poly.c: Change type of region from void* to sese.
11434 * graphite-poly.h (struct scop): Changing the type of scop::region
11435 from void* to sese. Change accessor macro accordingly.
11436 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
11437
11438 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
11439
11440 * graphite-scop-detection.c (stmt_simple_for_scop_p):
11441 Constrain only on INTEGER_TYPE.
11442
11443 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11444
11445 PR target/67211
11446 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
11447 -mefficient-unaligned-vsx on ISA 2.7.
11448
11449 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
11450 option to a masked option.
11451
11452 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
11453 logic for -mefficient-unaligned-vsx so that it is set via an arch
11454 ISA option, instead of being set if -mtune=power8 is set. Move
11455 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
11456 near other default option handling.
11457
11458 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11459
11460 * genflags.c (gen_macro): Delete.
11461 (gen_proto): Don't create GEN.*CALL.* macros.
11462 * gensupport.h (get_file_location): Declare.
11463 * gensupport.c (rtx_locs): New variable.
11464 (read_md_rtx): Record rtx locations.
11465 (get_file_location): New function.
11466 * target-insns.def (call, call_pop, call_value, call_value_pop)
11467 (sibcall, sibcall_value): New patterns.
11468 * gentarget-def.c (parse_argument): New function.
11469 (def_target_insn): Use it. Handle optional operands. Raise an
11470 error if an .md pattern has the wrong number of operands for the
11471 pattern name. Remove the names of unused operands from the prototype.
11472 * builtins.c (expand_builtin_apply): Use targetm functions
11473 instead of HAVE_call_value and GEN_CALL_VALUE.
11474 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
11475 and sibcall_value_pop.
11476 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
11477 of GEN_CALL.
11478 * config/alpha/alpha.md (untyped_call): Likewise.
11479 * config/iq2000/iq2000.md (untyped_call): Likewise.
11480 * config/m68k/m68k.md (untyped_call): Likewise.
11481 * config/mips/mips.md (untyped_call): Likewise.
11482 * config/pa/pa.md (untyped_call): Likewise.
11483 * config/rs6000/rs6000.md (untyped_call): Likewise.
11484 * config/sparc/sparc.md (untyped_call): Likewise.
11485 * config/tilegx/tilegx.md (untyped_call): Likewise.
11486 * config/tilepro/tilepro.md (untyped_call): Likewise.
11487 * config/visium/visium.md (untyped_call): Likewise.
11488 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
11489 gen_call_value instead of GEN_CALL_VALUE.
11490 * config/arm/arm.md (untyped_call): Likewise.
11491 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
11492 GEN_CALL.
11493
11494 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11495
11496 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
11497 (have_cbranchcc4): New variable.
11498 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
11499 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
11500 (if_convert): Initialize have_cbranchcc4.
11501
11502 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11503
11504 * builtins.c (expand_cmpstrn): Rename to...
11505 (expand_cmpstrn_or_cmpmem): ...this.
11506 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
11507 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
11508 Remove mode argument.
11509 (expand_builtin): Update accordingly.
11510
11511 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11512
11513 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
11514 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
11515 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
11516 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
11517 Add predicates for operands 0 and 3.
11518 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
11519 operand.
11520 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
11521 immediate_operand to nonmemory_operand.
11522
11523 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11524
11525 * df-scan.c (df_insn_info_init_fields): New function, split out
11526 from...
11527 (df_insn_create_insn_record): ...here.
11528 (df_insn_info_free_fields): New function, split out from...
11529 (df_insn_info_delete): ...here.
11530 (df_insn_rescan): Use the new functions instead of freeing and
11531 reallocating the df_insn_info.
11532
11533 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11534
11535 * doc/install.texi (Binaries): Remove links no longer valid.
11536
11537 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
11538
11539 * config/nvptx/mkoffload.c (process): Replace
11540 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
11541
11542 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
11543
11544 PR target/67329
11545 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
11546
11547 2015-08-24 Renlin Li <renlin.li@arm.com>
11548
11549 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
11550 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
11551 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
11552 * config/arm/constraints.md ("j"): Add check for high code.
11553
11554 2015-08-24 Tom de Vries <tom@codesourcery.com>
11555
11556 PR tree-optimization/65468
11557 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
11558 chunk_size is one.
11559
11560 2015-08-24 Nathan Sidwell <nathan@acm.org>
11561
11562 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
11563 change to nvptx_type_from_mode call. Use arg_promotion for both
11564 split and non-split args.
11565
11566 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11567
11568 * target-insns.def (movstr): New pattern.
11569 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
11570 (expand_movstr): Use targetm rather than HAVE_movstr/
11571 CODE_FOR_movstr.
11572
11573 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11574
11575 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
11576 cast syntax.
11577
11578 2015-08-24 Andrew Pinski <apinski@cavium.com>
11579
11580 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
11581 AARCH64_EXTRA_TUNING_OPTION.
11582 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
11583 New enum.
11584 (aarch64_extra_tuning_flags): Base the shifted value on the index
11585 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
11586 * config/aarch64/aarch64.c: Remove the last argument to
11587 AARCH64_EXTRA_TUNING_OPTION.
11588
11589 2015-08-23 Nathan Sidwell <nathan@acm.org>
11590
11591 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
11592 decls.
11593 (nvptx_declare_function_name): Insert formatting tabs for
11594 consistency.
11595
11596 2015-08-23 Tom de Vries <tom@codesourcery.com>
11597
11598 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
11599 parm_decl, rather than generating a dummy default def in cfun.
11600 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
11601 ssa_name from cfun and child_fn do not share a stmt as def stmt.
11602 (move_stmt_op): Handle PARM_DECl.
11603 (gather_ssa_name_hash_map_from): New function.
11604 (move_sese_region_to_fn): Add default defs for function params, and add
11605 them to vars_map. Release copied ssa names.
11606 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
11607
11608 2015-08-23 Tom de Vries <tom@codesourcery.com>
11609
11610 * doc/sourcebuild.texi: Rename vect_no_int_max with
11611 vect_no_int_min_max. Update description.
11612
11613 2015-08-22 Andrew Pinski <apinski@cavium.com>
11614
11615 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
11616 * config/aarch64/aarch64-protos.h
11617 (aarch64_fusion_pairs_index): New enum.
11618 (aarch64_fusion_pairs): Base the shifted value on the index instead
11619 Rewrite AARCH64_FUSE_ALL to be based on the end index.
11620 of the argument to AARCH64_FUSION_PAIR.
11621 * config/aarch64/aarch64.c: Remove the last argument to
11622 AARCH64_FUSION_PAIR.
11623
11624 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
11625
11626 * dominance.c (new_zero_array): Define.
11627 (dom_info): Redefine as class with proper encapsulation.
11628 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
11629 Add new members.
11630 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
11631 allocations/deallocations. Pass function as parameter (instead of
11632 using cfun).
11633 (dom_info::get_idom): Define accessor method.
11634 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
11635 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
11636 (calculate_dominance_info): Adjust to use dom_info class.
11637 (verify_dominators): Likewise.
11638
11639 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
11640
11641 * print-rtl.c (print_rtx): Check the correct range for
11642 flag_dump_unnumbered_links to behave as documented.
11643
11644 PR rtl-optimization/67227
11645 PR rtl-optimization/64164
11646 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
11647 (nonoverlapping_memrefs_p): Test offsets and sizes when given
11648 identical gimple_reg exprs.
11649
11650 2015-08-21 Nathan Sidwell <nathan@acm.org>
11651
11652 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
11653 expansion.
11654 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
11655 crtl->stack_alignment_needed to determine alignment.
11656 (nvptx_get_drap_rtx): New.
11657 (TARGET_GET_DRAP_RTX): Override.
11658 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
11659
11660 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11661
11662 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
11663
11664 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11665
11666 * configure.ac: Remove uwin* cases.
11667 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
11668 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
11669 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
11670 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
11671 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
11672 i[34567]86-*-uwin*, powerpc-*-beos*.
11673
11674 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
11675
11676 * gencodes.c (gencodes): Print the comma for the preceding
11677 enum value rather than the current one. Use aliased enum values
11678 rather than #defines for compiled-out patterns.
11679 (main): Update accordingly. Replace LAST_INSN_CODE with
11680 NUM_INSN_CODES.
11681 * lra.c (insn_code_data): Update accordingly.
11682 (finish_insn_code_data_once, get_static_insn_data): Likewise.
11683 * recog.h (target_recog): Likewise.
11684 (preprocess_insn_constraints): Change parameter to unsigned int.
11685 * recog.c (preprocess_insn_constraints): Likewise.
11686 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
11687 * tree-vect-stmts.c (vectorizable_operation): Simplify.
11688
11689 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
11690
11691 PR rtl-optimization/61657
11692 * loop-iv.c (iv_number_of_iterations): Declare up and down as
11693 unsigned. Remove superflous uint64_t cast.
11694
11695 2014-08-21 Felix Yang <felix.yang@huawei.com>
11696 Jiji Jiang <jiangjiji@huawei.com>
11697
11698 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
11699 argument and get builtin function code directly from CALL.
11700 (gimple_stringop_fixed_value): Modified accordingly.
11701 (gimple_stringops_transform, gimple_stringops_values_to_profile):
11702 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
11703
11704 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
11705
11706 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
11707
11708 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11709
11710 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
11711 to match.pd.
11712 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
11713 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
11714 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
11715 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
11716 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
11717 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
11718 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
11719 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
11720 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
11721 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
11722
11723 * match.pd (SIN ) : New Operator.
11724 (TAN) : New Operator.
11725 (mult (SQRT@1 @0) @1) : New simplifier.
11726 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
11727 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
11728 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
11729 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
11730 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
11731 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
11732 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
11733 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
11734 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
11735 (rdiv @0 (POW:s @1 @2)) : New simplifier.
11736
11737 2015-08-21 Bin Cheng <bin.cheng@arm.com>
11738
11739 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
11740 loop if EXPR is simplified to const value.
11741
11742 2015-08-21 Yury Gribov <y.gribov@samsung.com>
11743
11744 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
11745 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
11746
11747 2015-08-21 Richard Biener <rguenther@suse.de>
11748
11749 PR middle-end/67285
11750 * gimple-fold.c (replace_stmt_with_simplification): Assert
11751 seq is empty when replacing a call with itself but different
11752 arguments.
11753 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
11754 a call require that it is const.
11755
11756 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11757
11758 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
11759 * builtins.c (get_object_alignment_2): Adjust.
11760 * varasm.c (align_variable): Likewise.
11761 (get_variable_align): Likewise.
11762 (build_constant_desc): Likewise.
11763 (force_const_mem): Likewise.
11764 * doc/tm.texi.in: Likewise.
11765 * doc/tm.texi: Regenerate.
11766
11767 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11768
11769 * genconfig.c (main): Always define HAVE_cc0.
11770 * recog.c (rest_of_handle_peephole2): Adjust.
11771
11772 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11773
11774 * reorg.c (relax_delay_slots): Don't use #if to check value of
11775 HAVE_cc0.
11776
11777 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11778
11779 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
11780 * targhooks.c (default_have_conditional_execution): Adjust.
11781
11782 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
11783
11784 * rtl.h (rtvec_all_equal_p): Declare.
11785 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
11786 * rtl.c (rtvec_all_equal_p): New function.
11787 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
11788 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
11789 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
11790 * config/arm/arm.c (neon_vdup_constant): Likewise.
11791 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
11792 * config/tilegx/constraints.md (W, Y): Likewise.
11793 * config/tilepro/constraints.md (W, Y): Likewise.
11794 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
11795 (classify_immediate): Use unwrap_const_vec_duplicate.
11796 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
11797 (reg_or_v2s8bit_operand): Likewise.
11798 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
11799 (reg_or_v4s8bit_operand): Likewise.
11800
11801 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11802
11803 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
11804 (vec_shasigma_be): New #define.
11805 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
11806 (VPMSUMH): Likewise.
11807 (VPMSUMW): Likewise.
11808 (VPMSUMD): Likewise.
11809 (VPMSUM): New BU_P8V_OVERLOAD_2.
11810 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
11811 entries for VEC_MADD and VEC_VPMSUM.
11812
11813 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
11814
11815 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
11816 Multiply argument avr_n_flash by 64 to match unit of "KiB".
11817 (avr_pgm_check_var_decl): Same.
11818
11819 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
11820
11821 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
11822 initialization of HFmode scalar type (float16_t) to...
11823 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
11824 code.
11825
11826 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
11827
11828 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
11829 having an -mfp16-format.
11830
11831 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
11832
11833 * config/i386/predicates.md (vector_all_ones_operand): Use
11834 CONSTM1_RTX to simplify definition.
11835
11836 2015-08-20 Richard Biener <rguenther@suse.de>
11837
11838 * toplev.c (compile_file): Remove loop calling late_global_decl
11839 on all symbols.
11840 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
11841 on decls we assembled.
11842
11843 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
11844
11845 * common/config/aarch64/aarch64-common.c
11846 (AARCH64_CPU_NAME_LENGTH): Delete.
11847 (aarch64_option_extension): New.
11848 (all_extensions): Likewise.
11849 (processor_name_to_arch): Likewise.
11850 (arch_to_arch_name): Likewise.
11851 (all_cores): New.
11852 (all_architectures): Likewise.
11853 (aarch64_get_extension_string_for_isa_flags): Likewise.
11854 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
11855 architecture names.
11856 * config/aarch64/aarch64-protos.h
11857 (aarch64_get_extension_string_for_isa_flags): New.
11858 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
11859 (aarch64_option_print): Get the string to print from
11860 aarch64_get_extension_string_for_isa_flags.
11861 (aarch64_declare_function_name): Likewise.
11862 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
11863 (MCPU_TO_MARCH_SPEC): This.
11864 (ASM_CPU_SPEC): Use it.
11865 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
11866 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
11867 (EXTRA_SPEC_FUNCTIONS): Use it.
11868
11869 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
11870
11871 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
11872 expansion when !ISA_HAS_LWL_LWR.
11873 (mips_block_move_straight): Update the size of elements copied to
11874 account for alignment when !ISA_HAS_LWL_LWR.
11875 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
11876
11877 2015-08-19 Jiong Wang <jiong.wang@arm.com>
11878
11879 * expr.c (expand_expr_real_2): Check gimple statement during
11880 LSHIFT_EXPR expand.
11881
11882 2015-08-19 Magnus Granberg <zorry@gentoo.org>
11883
11884 * common.opt (fstack-protector): Initialize to -1.
11885 (fstack-protector-all): Likewise.
11886 (fstack-protector-strong): Likewise.
11887 (fstack-protector-explicit): Likewise.
11888 * configure.ac: Add --enable-default-ssp.
11889 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
11890 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
11891 -1.
11892 * doc/install.texi: Document --enable-default-ssp.
11893 * config.in: Regenerated.
11894 * configure: Likewise.
11895
11896 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
11897
11898 PR rtl-optimization/64164
11899 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
11900 (parm_in_stack_slot_p): ... this. Disregard mode, what
11901 matters is whether the parm will live in a pseudo or a stack
11902 slot.
11903 (expand_one_ssa_partition): Deal with params without a default
11904 def. Disregard mode.
11905 * cfgexpand.h: Renamed function declaration.
11906 * tree-ssa-coalesce.c: Adjust.
11907 * function.c (split_complex_args): Allocate stack slot for
11908 unassigned parms before splitting.
11909 (parm_in_unassigned_mem_p): New. Use it instead of
11910 parm_maybe_byref_p throughout this file.
11911 (assign_parm_setup_block): Use it. Accept pseudos in the
11912 expand-assigned rtl.
11913 (assign_parm_setup_reg): Drop BLKmode requirement.
11914 (assign_parm_setup_stack): Allocate and fill in the address of
11915 unassigned MEM parms.
11916
11917 2015-08-19 David Sherwood <david.sherwood@arm.com>
11918
11919 * genmodes.c (emit_mode_unit_size_inline): New function.
11920 (emit_mode_unit_precision_inline): New function.
11921 (emit_insn_modes_h): Emit new #define. Emit new functions.
11922 (emit_mode_unit_size): New function.
11923 (emit_mode_unit_precision): New function.
11924 (emit_mode_adjustments): Add mode_unit_size adjustments.
11925 (emit_insn_modes_c): Emit new arrays.
11926 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
11927 use new inline methods.
11928
11929 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11930
11931 * config/aarch64/aarch64.c (bit_count): Delete prototype
11932 and definition.
11933 (aarch64_print_operand): Use popcount_hwi instead of the above.
11934
11935 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11936
11937 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
11938 comment.
11939
11940 2015-08-19 Marek Polacek <polacek@redhat.com>
11941
11942 PR middle-end/67133
11943 * gimple-ssa-isolate-paths.c
11944 (insert_trap_and_remove_trailing_statements): Rename to ...
11945 (insert_trap): ... this. Don't remove trailing statements; split
11946 block instead.
11947 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
11948
11949 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
11950
11951 PR other/67042
11952 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
11953 conditionalize the whole on __GNUC__. Add fallback code
11954 depending neither on undefined nor implementation-defined behaviour.
11955
11956 2015-08-19 Jiong Wang <jiong.wang@arm.com>
11957
11958 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
11959 whitespaces with tab.
11960
11961 2015-08-19 Florian Weimer <fweimer@redhat.com>
11962
11963 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
11964 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
11965 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
11966 Move Name_Ids instantiation to the Prj.Proc package, to avoid
11967 trampolines.
11968
11969 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11970
11971 * config/arm/arm.c (bounds_check): Use %wd print format
11972 for HOST_WIDE_INT arguments.
11973
11974 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
11975
11976 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
11977 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
11978 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
11979 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
11980 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
11981 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
11982 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
11983 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
11984 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
11985 typedefs.
11986
11987 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
11988
11989 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
11990 function.c, graphite-scop-detection.c, haifa-sched.c,
11991 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
11992 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
11993 varasm.c: Remove typedefs of structs.
11994
11995 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
11996
11997 * config/rs6000/altivec.h (vec_adde): New define.
11998 (vec_addec): Likewise.
11999 (vec_double): Likewise.
12000 (vec_bperm): Likewise.
12001 (vec_gb): Likewise.
12002 * config/rs6000/rs6000-builtin.def (ADDE): New
12003 BU_ALTIVEC_OVERLOAD_3.
12004 (ADDEC): Likewise.
12005 (DOUBLE): New BU_VSX_OVERLOAD_1.
12006 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
12007 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
12008 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
12009 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
12010 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
12011 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
12012 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
12013 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
12014 and P8V_BUILTIN_VEC_VBPERMQ.
12015
12016 2015-08-18 Jason Merrill <jason@redhat.com>
12017
12018 * print-tree.c (print_node): Handle TREE_BINFO.
12019
12020 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12021
12022 PR middle-end/36757
12023 * builtins.c (expand_builtin_signbit): Add asserts to make sure
12024 we can expand BUILT_IN_SIGNBIT inline.
12025 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
12026 * doc/extend.texi: Document the type-generic __builtin_signbit.
12027
12028 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
12029
12030 PR rtl-optimization/67218
12031 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
12032 (simplify_unary_operation_1): Use it.
12033
12034 2015-08-18 Marek Polacek <polacek@redhat.com>
12035
12036 PR middle-end/67222
12037 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
12038 if the call isn't valid.
12039 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
12040 gimple_call_builtin_p.
12041 (call_may_clobber_ref_p_1): Likewise.
12042 (stmt_kills_ref_p): Likewise.
12043
12044 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
12045
12046 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
12047 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
12048 (mips_hard_regno_scratch_ok): Likewise.
12049 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
12050 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
12051
12052 2015-08-18 Bin Cheng <bin.cheng@arm.com>
12053
12054 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
12055 (determine_value_range): Call refine_value_range_using_guard for
12056 each loop initial condition to improve value range.
12057
12058 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
12059
12060 * config/i386/i386.c: Remove include of fibheap.h.
12061
12062 2015-08-17 Richard Biener <rguenther@suse.de>
12063
12064 PR tree-optimization/67221
12065 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
12066 (sccvn_dom_walker::before_dom_children): Mark backedges of
12067 non-executable blocks as not executable.
12068
12069 2015-08-17 David Sherwood <david.sherwood@arm.com>
12070
12071 * config/arm/arm.c (neon_element_bits): Replace call to
12072 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
12073 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
12074 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
12075 (neon_vdup_lane<mode>): Likewise.
12076 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
12077 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
12078 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
12079 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
12080 * config/spu/spu.c (arith_immediate_p): Likewise.
12081 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
12082 * expr.c (expand_expr_real_2): Likewise.
12083 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
12084 * simplify-rtx.c (simplify_immed_subreg): Likewise.
12085 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
12086 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
12087 New variable.
12088 * fold-const.c (fold_binary_loc): Replace call to
12089 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
12090 GET_MODE_UNIT_PRECISION (m).
12091
12092 2015-08-17 Mike Stump <mikestump@comcast.net>
12093
12094 * config/arm/arm.c (arm_block_move_unaligned_straight):
12095 Emit normal move instead of unaligned load when source or destination
12096 are appropriately aligned.
12097
12098 2015-08-17 Richard Biener <rguenther@suse.de>
12099 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12100
12101 PR middle-end/16107
12102 * match.pd (div (coss (op @0) : New simplifier.
12103
12104 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
12105
12106 PR rtl-optimization/64164
12107 PR bootstrap/66978
12108 PR middle-end/66983
12109 PR rtl-optimization/67000
12110 PR middle-end/67034
12111 PR middle-end/67035
12112 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12113 * tree-ssa-copyrename.c: Removed.
12114 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12115 -ftree-coalesce-vars.
12116 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12117 * common.opt (ftree-copyrename): Ignore.
12118 (ftree-coalesce-inlined-vars): Likewise.
12119 * doc/invoke.texi: Remove the ignored options above.
12120 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12121 * tree-ssa-coalesce.h: ... here.
12122 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12123 headers required by it.
12124 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12125 across variables when flag_tree_coalesce_vars. Check register
12126 use and promoted modes to allow coalescing. Do not coalesce
12127 maybe-byref parms with SSA_NAMEs of other variables, or
12128 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
12129 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12130 with its member functions to tree-ssa-coalesce.c.
12131 (var_map_base_init): Likewise. Renamed to
12132 compute_samebase_partition_bases.
12133 (partition_view_normal): Drop want_bases parameter.
12134 (partition_view_bitmap): Likewise.
12135 * tree-ssa-live.h: Adjust declarations.
12136 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
12137 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12138 default defs at the entry point.
12139 (dump_part_var_map): New.
12140 (compute_optimized_partition_bases): New, called by...
12141 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12142 of compute_samebase_partition_bases. Adjust.
12143 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12144 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
12145 (ssa_default_def_partition): New.
12146 (get_rtl_for_parm_ssa_default_def): New.
12147 (align_local_variable, add_stack_var): Support anonymous SSA
12148 names.
12149 (defer_stack_allocation): Likewise. Declare earlier.
12150 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12151 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12152 Do no record deferred-allocation marker in
12153 SA.partition_to_pseudo.
12154 (expand_stack_vars): Adjust check for the marker in it.
12155 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12156 redundant MEM attr setting.
12157 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12158 from...
12159 (expand_one_stack_var): ... this. New wrapper to check and
12160 skip already expanded SSA partitions.
12161 (record_alignment_for_reg_var): New, factored out of...
12162 (expand_one_var): ... this.
12163 (expand_one_ssa_partition): New.
12164 (adjust_one_expanded_partition_var): New.
12165 (expand_one_register_var): Check and skip already expanded SSA
12166 partitions.
12167 (expand_used_vars): Don't create DECLs for anonymous SSA
12168 names. Expand all SSA partitions, then adjust all SSA names.
12169 (pass::execute): Replace the loops that set
12170 SA.partition_to_pseudo from partition leaders and cleared
12171 DECL_RTL for multi-location variables, and that which used to
12172 rename vars and set attrs, with one that clears DECL_RTL and
12173 checks that PARMs and RESULTs default_defs match DECL_RTL.
12174 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12175 * emit-rtl.c: Include stor-layout.h.
12176 (set_reg_attrs_for_parm): Handle NULL decl.
12177 (set_reg_attrs_for_decl_rtl): Take mode from expression if
12178 it's not a DECL.
12179 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
12180 rather than its possibly-NULL DECL.
12181 * explow.c (promote_ssa_mode): New.
12182 * explow.h (promote_ssa_mode): Declare.
12183 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12184 (read_complex_part): Export.
12185 * expr.h (read_complex_part): Declare.
12186 * cfgexpand.h (parm_maybe_byref_p): Declare.
12187 * function.c: Include cfgexpand.h.
12188 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12189 (use_register_for_parm_decl): Wrapper for the above to
12190 special-case the result_ptr.
12191 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12192 (split_complex_args): Take assign_parm_data_all argument.
12193 Pass it to rtl_for_parm. Set up rtl and context for split
12194 args. Reset complex parm before fetching its default decl
12195 rtl.
12196 (assign_parms_unsplit_complex): Use the default-def complex
12197 parm rtl if it matches the components.
12198 (assign_parms_augmented_arg_list): Adjust.
12199 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12200 multiple locations. Recognize split complex args.
12201 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12202 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12203 (assign_parm_setup_block): Prefer SSA-assigned location, and
12204 fill in its address if the memory location of a maybe-byref
12205 parm was not assigned by cfgexpand.
12206 (assign_parm_setup_reg): Likewise. Adjust its mode as
12207 needed. Use entry_parm for equiv if stack_parm is NULL. Make
12208 sure passed_pointer parms don't need conversion. Copy address
12209 or value as needed.
12210 (assign_parm_setup_stack): Prefer SSA-assigned location.
12211 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12212 rtl before testing for pointer bounds. Special-case result_ptr.
12213 (expand_function_start): Maybe reset DECL_RTL of result.
12214 Prefer SSA-assigned location for result and static chain.
12215 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
12216 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
12217 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12218 anonymous SSA names. Use promote_ssa_mode.
12219 (get_temp_reg): Likewise.
12220 (remove_ssa_form): Adjust.
12221 * stor-layout.c (layout_decl): Don't set mem attributes of
12222 non-MEMs.
12223 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12224 and get its reg_usage for reg invalidation.
12225 (compute_bb_dataflow): Pass it insn.
12226 (emit_notes_in_bb): Likewise.
12227
12228 2015-08-14 Marek Polacek <polacek@redhat.com>
12229
12230 * tree-core.h (tree_base): Fix typo.
12231
12232 2015-08-14 Marek Polacek <polacek@redhat.com>
12233
12234 PR middle-end/67133
12235 * gimple.c (infer_nonnull_range_by_attribute): Check that the
12236 nonnull argument position is not outside function arguments.
12237
12238 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
12239
12240 PR target/67143
12241 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
12242 'lconst_atomic' with 'const_atomic'.
12243 (atomic_fetch_<optab><mode>): Likewise.
12244 (atomic_<optab>_fetch<mode>): Likewise.
12245 * config/aarch64/iterators.md (lconst-atomic): Move below
12246 'const_atomic'.
12247 (const_atomic): New.
12248
12249 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
12250 Bernd Schmidt <bernds@codesourcery.com>
12251
12252 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
12253 debug options.
12254 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
12255 (DWARF2_DEBUGGING_INFO): Don't define.
12256 * debug.h (dwarf2_lineno_debug_hooks): Declare.
12257 * toplev.c (process_options): Add a case for it.
12258 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
12259 (dwarf2out_init): Skip most initializations if
12260 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
12261 case.
12262 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
12263 DWARF2_LINENO_DEBUGGING_INFO.
12264 * opts.c (set_debug_level): Likewise.
12265
12266 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
12267
12268 * config/arm/types.md (is_neon_type): Add missing types.
12269
12270 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
12271
12272 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
12273 for skylake.
12274 * config/i386/i386.c (PTA_SKYLAKE): New macros.
12275 (processor_alias_table): Add skylake description.
12276 (enum processor_model): Add skylake processor.
12277 (arch_names_table): Add skylake record.
12278 * doc/invoke.texi: Add skylake item.
12279
12280 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
12281
12282 * ira-int.h: Include recog.h.
12283 * ira-build.c: Don't include recog.h.
12284 * ira-color.c: Likewise.
12285 * ira-conflicts.c: Likewise.
12286 * ira-costs.c: Likewise.
12287 * ira-emit.c: Likewise.
12288 * ira-lives.c: Likewise.
12289 * ira.c: Likewise.
12290 * sched-deps.c: Likewise.
12291 * sel-sched.c: Likewise.
12292 * target-globals.c: Likewise.
12293
12294 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
12295
12296 PR bootstrap/55035
12297 * reload1.c (elimination_costs_in_insn): Make it obvious to the
12298 compiler that the n_dups and n_operands loop bounds are invariant.
12299
12300 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12301
12302 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
12303 expressions in A and B.
12304
12305 2015-08-13 Richard Biener <rguenther@suse.de>
12306
12307 * tree.c (nonnull_arg_p): Move from ...
12308 * tree-vrp.c (nonnull_arg_p): ... here.
12309 * tree.h (nonnull_arg_p): Declare.
12310 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
12311 here, register ptr != 0 for nonnull_arg_p pointer arguments.
12312 Properly initialize static chain and by-reference result pointer.
12313 (run_scc_vn): Adjust.
12314
12315 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
12316
12317 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
12318 TUNE_I6400.
12319
12320 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
12321
12322 * config/aarch64/aarch64-protos.h
12323 (aarch64_gen_atomic_cas): Declare.
12324 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
12325 Choose appropriate instruction pattern for the target.
12326 (aarch64_gen_atomic_cas): New.
12327 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
12328 (atomic_compare_and_swap<mode>_1): Rename to
12329 aarch64_compare_and_swap<mode>. Fix some indentation.
12330 (aarch64_compare_and_swap<mode>_lse): New.
12331 (aarch64_atomic_cas<mode>): New.
12332
12333 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
12334
12335 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
12336 (TARGET_LSE): New.
12337
12338 2015-08-13 Richard Biener <rguenther@suse.de>
12339
12340 PR tree-optimization/67191
12341 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
12342 assert we value-numbered last stmts operand because it can validly
12343 trigger for unreachable code.
12344
12345 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12346
12347 PR rtl-optimization/67103
12348 * ifcvt.c (noce_try_store_flag_constants): Move
12349 x = (-(test != 0) & (b - a)) + a transformation to...
12350 (noce_try_cmove): ... Here. Try it if normal conditional
12351 move fails.
12352
12353 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
12354
12355 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
12356 pseudo-processors.
12357 * config/mips/mips.md (processor): Remove w32 and w64.
12358
12359 2015-08-13 Richard Biener <rguenther@suse.de>
12360
12361 PR tree-optimization/66502
12362 PR tree-optimization/67167
12363 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
12364 backedge arguments.
12365 (vn_phi_lookup): Adjust.
12366 (vn_phi_insert): Likewise.
12367 (visit_phi): Prefer to value-number to another PHI node
12368 over value-numbering to a PHI argument.
12369 (init_scc_vn): Mark DFS back edges.
12370
12371 2015-08-13 Richard Biener <rguenther@suse.de>
12372
12373 * gimple.h (gcall::code_): New constant static member.
12374 (gcond::code_): Likewise.
12375 * gimple.c (gcall::code_): Define.
12376 (gcond::code_): Likewise.
12377 (is_a_helper <const gcond *>): Add.
12378 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
12379 and forward to a new gcall overload with less checking and a
12380 cheaper way to access the operand.
12381 (gimple_call_lhs_ptr): Likewise.
12382 (gimple_call_set_lhs): Likewise.
12383 (gimple_call_internal_p): Likewise.
12384 (gimple_call_with_bounds_p): Likewise.
12385 (gimple_call_set_with_bounds): Likewise.
12386 (gimple_call_internal_fn): Likewise.
12387 (gimple_call_set_ctrl_altering): Likewise.
12388 (gimple_call_ctrl_altering_p): Likewise.
12389 (gimple_call_fntype): Likewise.
12390 (gimple_call_fn): Likewise.
12391 (gimple_call_fn_ptr): Likewise.
12392 (gimple_call_set_fndecl): Likewise.
12393 (gimple_call_fndecl): Likewise.
12394 (gimple_call_chain): Likewise.
12395 (gimple_call_num_args): Likewise.
12396 (gimple_call_arg): Likewise.
12397 (gimple_call_arg_ptr): Likewise.
12398 (gimple_call_set_arg): Likewise.
12399 (gimple_call_noreturn_p): Likewise.
12400 (gimple_cond_code): Likewise.
12401 (gimple_cond_lhs): Likewise.
12402 (gimple_cond_rhs): Likewise.
12403 (gimple_has_lhs): Reduce checking.
12404
12405 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12406
12407 PR middle-end/25529
12408 * match.pd (div (mult @0 @1) @1) : New simplifier.
12409
12410 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12411
12412 PR target/67071
12413 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
12414 predicate to allow construction of vector constants using the
12415 VSLDOI vector shift instruction.
12416
12417 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
12418 declaration.
12419
12420 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
12421 the number of bytes to be shifted left and filled in with either
12422 all zero or all one bits.
12423 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
12424 methods exist.
12425 (output_vec_const_move): On power8, generate XXLORC to generate
12426 a vector constant with all 1's. Do a split if we need to use a
12427 VSLDOI instruction.
12428
12429 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
12430 properly test for the MSB.
12431
12432 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
12433 vector constants that can be created with VSLDOI.
12434
12435 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
12436
12437 revert:
12438 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
12439 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
12440 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
12441 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
12442 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12443 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12444 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
12445 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
12446 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
12447
12448 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
12449
12450 * config/xtensa/constraints.md (define_constraint "Y"): New
12451 constraint.
12452 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
12453 * config/xtensa/linux.h (ASM_SPEC): Likewise.
12454 * config/xtensa/predicates.md (move_operand): Match constants
12455 and symbols in the presence of TARGET_AUTO_LITPOOLS.
12456 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
12457 immediate references to TLS data.
12458 (xtensa_emit_move_sequence): Don't force constants to memory in
12459 the presence of TARGET_AUTO_LITPOOLS.
12460 (print_operand): Add 'y' format, same as default, but capable of
12461 printing SF mode constants as well.
12462 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
12463 (movsf_internal): Add movi pattern that loads literal.
12464 (movsf, movdf): Don't force constants to memory in the presence
12465 of TARGET_AUTO_LITPOOLS.
12466 (movdf_internal): Add 'Y' constraint.
12467 * config/xtensa/xtensa.opt (mauto-litpools): New option.
12468 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
12469
12470 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
12471
12472 * config/arm/arm-fpus.def: Replace booleans with feature flags.
12473 Update comment.
12474 * config/arm/arm.c (ARM_FPU): Update macro.
12475 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
12476 (TARGET_FP16): Likewise.
12477 (TARGET_CRYPTO): Likewise.
12478 (TARGET_NEON): Likewise.
12479 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
12480 field features.
12481
12482 2015-08-12 Tom de Vries <tom@codesourcery.com>
12483
12484 PR other/67092
12485 PR other/67098
12486 * doc/install.texi: Remove --with_host_libstdcxx item. Update
12487 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
12488 accordingly. Mention default for --with-stage1-ldflags.
12489
12490 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
12491
12492 * config/arm/arm.h (arm_fpu_feature_set): New.
12493 (ARM_FPU_FSET_HAS): New.
12494 (FPU_FL_NONE): New.
12495 (FPU_FL_NEON): New.
12496 (FPU_FL_FP16): New.
12497 (FPU_FL_CRYPTO): New.
12498
12499 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12500
12501 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
12502 after -mcmodel=large -fPIC sorry.
12503
12504 2015-08-12 Richard Biener <rguenther@suse.de>
12505
12506 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
12507 comparison operand order and commutative ternary op operand order.
12508 (sccvn_dom_walker::cond_stack): New state to track temporary
12509 expressions.
12510 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
12511 no longer valid.
12512 (sccvn_dom_walker::record_cond): Add a single temporary conditional
12513 expression.
12514 (sccvn_dom_walker::record_conds): Add a temporary conditional
12515 expressions and all related expressions also true/false.
12516 (sccvn_dom_walker::before_dom_children): Record temporary
12517 expressions based on the controlling condition of a single
12518 predecessor. When trying to simplify a conditional statement
12519 lookup expressions we might have inserted earlier.
12520
12521 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
12522
12523 PR target/67127
12524 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
12525 to ARM core registers.
12526
12527 2015-08-12 Nathan Sidwell <nathan@acm.org>
12528
12529 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
12530 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
12531
12532 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
12533
12534 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
12535 line with comments.
12536 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
12537
12538 2015-08-12 Richard Biener <rguenther@suse.de>
12539
12540 * gimple.h (remove_pointer): New trait.
12541 (GIMPLE_CHECK2): New inline template function.
12542 (gassign::code_): New constant static member.
12543 (is_a_helper<const gassign *>): Add.
12544 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
12545 and forward to a new gassign overload with less checking and a
12546 cheaper way to access the operand.
12547 (gimple_assign_lhs_ptr): Likewise.
12548 (gimple_assign_set_lhs): Likewise.
12549 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
12550 Likewise.
12551 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
12552 Likewise.
12553 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
12554 Likewise.
12555 (gimple_assign_rhs_code): Likewise.
12556 * gimple.c (gassign::code_): Define.
12557
12558 2015-08-12 Richard Biener <rguenther@suse.de>
12559
12560 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12561 Eliminate edges marked as not executable by SCCVN.
12562 * tree-ssa-sccvn.c: Include gimple-iterator.h.
12563 (cond_dom_walker): Rename to sccvn_dom_walker.
12564 (sccvn_dom_walker::before_dom_children): Value-number defs
12565 of all stmts.
12566 (run_scc_vn): Remove loop value-numbering all SSA names.
12567 Drop not visited SSA names to varying.
12568
12569 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
12570
12571 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
12572 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
12573 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
12574 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
12575 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12576 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12577 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
12578 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
12579 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
12580
12581 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
12582
12583 PR target/66954
12584 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
12585 to enum feature_priority and feature_list.
12586 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
12587 and isa_names_table.
12588
12589 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
12590
12591 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
12592 vect_induction_def.
12593
12594 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
12595
12596 PR c/66098
12597 PR c/66711
12598 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
12599 account when deciding what was the command-line status.
12600
12601 2015-08-11 Nathan Sidwell <nathan@acm.org>
12602
12603 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
12604
12605 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
12606 we're not the only contributor to target phi.
12607
12608 2015-08-11 Jiong Wang <jiong.wang@arm.com>
12609
12610 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
12611 FIXED_REG0.
12612
12613 2015-08-11 Tom de Vries <tom@codesourcery.com>
12614
12615 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
12616
12617 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
12618
12619 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
12620 with CPU_SLM.
12621 * config/i386/i386.md (cpu): Remove knl.
12622
12623 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12624
12625 PR libgomp/65742
12626 PR middle-end/66332
12627 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
12628 open-coded sequence.
12629 * omp-low.c (oacc_process_reduction_data): Remove handline of
12630 GOMP_DEVICE_HOST_NONSHM.
12631
12632 * lto-streamer-in.c (lto_input_mode_table): Adjust to
12633 GET_MODE_INNER changes.
12634
12635 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12636 Ilya Verbin <ilya.verbin@intel.com>
12637
12638 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
12639
12640 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
12641
12642 * doc/options.texi (EnabledBy): Document that the argument must be
12643 a Common option.
12644 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
12645 Not enabled by -Wall.
12646 * optc-gen.awk: Give nicer error messages. Detect if the argument
12647 of EnabledBy is not a Common option.
12648 * common.opt (Wnull-dereference): Not enabled by -Wall.
12649 * opt-functions.awk (lang_enabled_by): Nicer error messages.
12650
12651 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
12652
12653 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
12654 model == 0x4f as Broadwell.
12655
12656 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
12657
12658 PR rtl-optimization/67028
12659 * combine.c (simplify_comparison): Fix comment. Rearrange code.
12660 Add test to see if a const_int fits in the new mode.
12661
12662 2015-08-07 DJ Delorie <dj@redhat.com>
12663
12664 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
12665
12666 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
12667
12668 PR rtl-optimization/67029
12669 * ira-color.c: Include "recog.h" before including "ira-int.h".
12670 * target-globals.c: Likewise.
12671 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
12672 adds an alternative_mask argument and use it instead of
12673 preferred_alternatives.
12674 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
12675 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
12676 * sched-deps.c: Include "ira-int.h" after including "ira.h".
12677 (sched_analyze_insn): Update call to
12678 ira_implicitly_set_insn_hard_regs.
12679 * sel-sched.c: Include "ira-int.h" after including "ira.h".
12680 (implicit_clobber_conflict_p): Update call to
12681 ira_implicitly_set_insn_hard_regs.
12682
12683 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
12684
12685 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
12686
12687 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
12688
12689 PR target/67002
12690 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
12691 currently_expanding_to_rtl is set.
12692
12693 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
12694
12695 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
12696 * configure: Regenerate.
12697
12698 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12699 Jiong Wang <jiong.wang@arm.com>
12700
12701 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12702 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12703 (REG_CLASS_NAMES): Likewise.
12704 (REG_CLASS_CONTENTS): Likewise.
12705 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12706 (aarch64_register_move_cost): Likewise.
12707 (aarch64_load_symref_appropriately): Invoke the new added pattern if
12708 possible.
12709 * config/aarch64/constraints.md (Uc0): New constraint.
12710
12711 2015-08-06 Jiong Wang <jiong.wang@arm.com>
12712
12713 * config/aarch64/constraints.md (Usf): Add the test of
12714 aarch64_is_noplt_call_p.
12715
12716 2015-08-06 Jiong Wang <jiong.wang@arm.com>
12717
12718 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
12719 declaration.
12720 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
12721 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
12722 (call_symbol): Likewise.
12723
12724 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
12725
12726 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
12727 for vectorizing multiplication patterns.
12728 * tree-vectorizer.h: Adjust the number of patterns.
12729
12730 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
12731
12732 * config/i386/sse.md (*vec_concatv2df): Declare added
12733 alternatives as sselog type.
12734
12735 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12736
12737 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
12738 all GPRs.
12739
12740 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12741
12742 * config/s390/s390.c (s390_expand_tbegin): Expand either
12743 tbegin_1_z13 or tbegin_1 depending on VX flag.
12744 * config/s390/s390.md ("tbegin_1_z13"): New expander.
12745
12746 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12747
12748 * config/s390/s390.opt: Clarify description for -mzvector
12749 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
12750 -mzvector.
12751
12752 2015-08-06 Richard Biener <rguenther@suse.de>
12753
12754 * gimple.h (gimple_call_set_fn): Access op member directly.
12755 (gimple_call_chain_ptr): Likewise.
12756 (gimple_call_set_chain): Likewise.
12757 (gimple_cond_lhs_ptr): Likewise.
12758 (gimple_cond_set_lhs): Likewise.
12759 (gimple_cond_rhs_ptr): Likewise.
12760 (gimple_cond_set_rhs): Likewise.
12761 (gimple_cond_true_label): Likewise.
12762 (gimple_cond_set_true_label): Likewise.
12763 (gimple_cond_set_false_label): Likewise.
12764 (gimple_cond_false_label): Likewise.
12765 (gimple_label_label): Likewise.
12766 (gimple_label_set_label): Likewise.
12767 (gimple_goto_set_dest): Likewise.
12768 (gimple_asm_input_op): Likewise.
12769 (gimple_asm_input_op_ptr): Likewise.
12770 (gimple_asm_set_input_op): Likewise.
12771 (gimple_asm_output_op): Likewise.
12772 (gimple_asm_output_op_ptr): Likewise.
12773 (gimple_asm_set_output_op): Likewise.
12774 (gimple_asm_clobber_op): Likewise.
12775 (gimple_asm_set_clobber_op): Likewise.
12776 (gimple_asm_label_op): Likewise.
12777 (gimple_asm_set_label_op): Likewise.
12778 (gimple_switch_index): Likewise.
12779 (gimple_switch_index_ptr): Likewise.
12780 (gimple_return_retval_ptr): Likewise.
12781 (gimple_return_retval): Likewise.
12782 (gimple_return_set_retval): Likewise.
12783 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
12784 (gimple_switch_label): Likewise.
12785 (gimple_switch_set_label): Likewise.
12786
12787 2015-08-06 Richard Biener <rguenther@suse.de>
12788
12789 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
12790 bool comparison canonicalization and restrict to integers.
12791
12792 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
12793
12794 * coretypes.h (enum symbol_visibility): Relocate here.
12795 * flag-types.h (enum symbol_visibility): Remove.
12796 * tree-core.h (enum symbol_visibility): Remove.
12797
12798 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
12799
12800 PR target/66870
12801 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
12802 for no_split_stack function attribute along with
12803 flag_split_stack.
12804 (rs6000_expand_split_stack_prologue): Likewise.
12805
12806 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
12807 Jeff Law <law@redhat.com>
12808
12809 PR c/16351
12810 * doc/invoke.texi (Wnull-dereference): New.
12811 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
12812 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
12813 Warn for potential NULL dereferences.
12814 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
12815 * ubsan.c (instrument_nonnull_arg): Call
12816 infer_nonnull_range_by_attribute.
12817 (instrument_nonnull_return): Likewise.
12818 * common.opt (Wnull-dereference); New.
12819 * gimple.c (infer_nonnull_range): Remove bool arguments.
12820 (infer_nonnull_range_by_dereference): New.
12821 (infer_nonnull_range_by_attribute): New.
12822 * gimple.h: Update declarations.
12823
12824 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12825
12826 * gensupport.c (sequence_num): Replace with...
12827 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
12828 ...these new variables.
12829 (init_rtx_reader_args_cb): Update accordingly.
12830 (get_num_code_insns): Likewise.
12831 (read_md_rtx): Rework to use a while loop and get_c_test.
12832 Use the new counters. Remove redundant DEFINE_SUBST case.
12833 * genoutput.c (gen_split): Delete.
12834 (main): Don't call it.
12835
12836 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12837
12838 * gensupport.h (get_c_test): Declare.
12839 * gensupport.c (get_c_test): New function.
12840 * genconditions.c (main): Use it.
12841 * genrecog.c (validate_pattern): Likewise.
12842 (match_pattern_1): Likewise. Remove c_test argument.
12843 (match_pattern): Update accordingly and remove c_test argument.
12844 (main): Update accordingly.
12845
12846 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12847
12848 * gensupport.h (get_num_insn_codes): Declare.
12849 * gensupport.c (get_num_insn_codes): New function.
12850 * genattrtab.c (optimize_attrs): Rename max_insn_code to
12851 num_insn_codes.
12852 (main): Likewise. Use get_num_insn_codes.
12853 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
12854
12855 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12856
12857 PR middle-end/66311
12858 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
12859 is zero- rather than sign-extended.
12860
12861 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12862
12863 * target-insns.def (can_extend): Delete.
12864
12865 2015-08-05 Richard Biener <rguenther@suse.de>
12866
12867 PR tree-optimization/67121
12868 * tree-if-conv.c (combine_blocks): Clear range-info produced
12869 by stmts no longer executed conditionally.
12870
12871 2015-08-05 Nick Clifton <nickc@redhat.com>
12872
12873 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
12874 to allow identical far pointers to remain.
12875
12876 2015-08-05 Richard Biener <rguenther@suse.de>
12877
12878 PR middle-end/67120
12879 * match.pd: Compare address bases with == if they are decls
12880 or SSA names, not operand_equal_p. Otherwise fail.
12881
12882 2015-08-05 Richard Biener <rguenther@suse.de>
12883
12884 PR tree-optimization/67055
12885 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
12886 NULL gimple_block.
12887
12888 * g++.dg/torture/pr67055.C: New testcase.
12889
12890 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
12891
12892 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
12893 noavx512vl.
12894 (define_attr "enabled"): Handle avx521vl and noavx512vl.
12895 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
12896 AVX-512 alternative out of SSE.
12897 (define_insn "*vec_concatv2df"): Ditto.
12898
12899 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
12900
12901 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
12902 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
12903 CODE_FOR_avx_ptestv4di.
12904 * config/i386/sse.md (define_mode_iterator V_AVX): New.
12905 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
12906 (define_insn "avx_ptest256"): Merge this ...
12907 (define_insn "sse4_1_ptest"): And this ...
12908 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
12909
12910 2015-08-05 Richard Biener <rguenther@suse.de>
12911
12912 PR tree-optimization/67109
12913 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
12914 against too big groups. Print whether this is a load or store
12915 group. Rename from ...
12916 (vect_analyze_group_access): ... this which is now a wrapper
12917 dissolving an invalid group.
12918 (vect_analyze_data_ref_accesses): Print whether this is a load
12919 or store group.
12920
12921 2015-08-05 Richard Biener <rguenther@suse.de>
12922
12923 PR middle-end/67107
12924 * match.pd: Guard const_binop result checking against NULL_TREE
12925 result.
12926
12927 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
12928
12929 * cse.c (cse_insn): Restoring old behaviour for src_eqv
12930 when dest and value in the REG_EQUAL are same and dest
12931 is STRICT_LOW_PART.
12932
12933 2015-08-04 Anatoly Sokolov <aesok@post.ru>
12934
12935 * config/moxie/moxie.h (PRINT_OPERAND,
12936 PRINT_OPERAND_ADDRESS): Remove macros.
12937 * config/moxie/moxie-protos.h (moxie_print_operand,
12938 moxie_print_operand_address): Remove declaration.
12939 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
12940 TARGET_PRINT_OPERAND_ADDRESS): Define.
12941 (moxie_print_operand, moxie_print_operand_address): Make static.
12942
12943 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
12944
12945 PR target/66731
12946 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
12947 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
12948
12949 2015-08-04 Richard Biener <rguenther@suse.de>
12950
12951 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
12952 generated code.
12953 (dt_operand::gen_gimple_expr): Adjust.
12954
12955 2015-08-04 Richard Biener <rguenther@suse.de>
12956
12957 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
12958 bool compares on RHS.
12959 * match.pd: Add X ==/!= !X is false/true pattern.
12960
12961 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
12962
12963 * config/aarch64/aarch64.c: Change inner loop statement cost
12964 to be consistent with other targets.
12965
12966 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
12967
12968 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
12969 targets.
12970
12971 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
12972
12973 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
12974 (machine_function): Remove pseudos field.
12975
12976 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12977
12978 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
12979 Exit early and use target_option_current_node if processing current
12980 pragma.
12981
12982 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12983
12984 * doc/extend.texi (AArch64 Function Attributes): New node.
12985 (AArch64 Pragmas): Likewise.
12986
12987 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12988
12989 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
12990 Initialize simd builtins if TARGET_SIMD.
12991 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
12992 Make sure that the builtins are initialized only once no matter how
12993 many times the function is called.
12994 (aarch64_init_builtins): Unconditionally initialize crc builtins.
12995 (aarch64_relayout_simd_param): New function.
12996 (aarch64_simd_expand_args): Use above during argument expansion.
12997 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
12998 simd builtins if TARGET_SIMD.
12999 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
13000 prototype.
13001 (aarch64_relayout_simd_types): Likewise.
13002
13003 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13004
13005 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
13006 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
13007 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
13008 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13009 static keyword.
13010 (aarch64_reset_previous_fndecl): New function.
13011 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
13012 the string.
13013 * config/aarch64/aarch64-c.c: New file.
13014 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
13015 Push and pop options at beginning and end. Remove ifdef
13016 __ARM_FEATURE_CRC32.
13017 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
13018 Add pragma +nothing+simd and +nothing+crypto where appropriate.
13019 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
13020 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
13021 Define prototype.
13022 (aarch64_register_pragmas): Likewise.
13023 (aarch64_reset_previous_fndecl): Likewise.
13024 (aarch64_process_target_attr): Likewise.
13025 (aarch64_override_options_internal): Likewise.
13026
13027 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13028
13029 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
13030 New function.
13031 (aarch64_can_inline_p): Likewise.
13032 (TARGET_CAN_INLINE_P): Define.
13033
13034 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13035
13036 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13037 Remove static. Handle OPT_mgeneral_regs_only,
13038 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
13039 OPT_momit_leaf_frame_pointer.
13040 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
13041 (aarch64_attr_opt_type): New enum.
13042 (aarch64_attribute_info): New struct.
13043 (aarch64_handle_attr_arch): New function.
13044 (aarch64_handle_attr_cpu): Likewise.
13045 (aarch64_handle_attr_tune): Likewise.
13046 (aarch64_handle_attr_isa_flags): Likewise.
13047 (aarch64_attributes): New table.
13048 (aarch64_process_one_target_attr): New function.
13049 (num_occurences_in_str): Likewise.
13050 (aarch64_process_target_attr): Likewise.
13051 (aarch64_option_valid_attribute_p): Likewise.
13052 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13053 * config/aarch64/aarch64-protos.h: Include input.h
13054 (aarch64_handle_option): Declare prototype.
13055
13056 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13057
13058 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
13059 * config/aarch64/aarch64.c: Include target-globals.h
13060 (aarch64_previous_fndecl): New variable.
13061 (aarch64_set_current_function): New function.
13062 (TARGET_SET_CURRENT_FUNCTION): Define.
13063
13064 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13065
13066 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
13067 (explicit_arch): Likewise.
13068 (x_aarch64_isa_flags): Likewise.
13069 (mgeneral-regs-only): Mark as Save.
13070 (mfix-cortex-a53-835769): Likewise.
13071 (mcmodel=): Likewise.
13072 (mstrict-align): Likewise.
13073 (momit-leaf-frame-pointer): Likewise.
13074 (mtls-dialect): Likewise.
13075 (master=): Likewise.
13076 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
13077 (aarch64_isa_flags): Remove extern declaration.
13078 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
13079 to indicate success or failure.
13080 (aarch64_validate_march): Likewise.
13081 (aarch64_validate_mtune): Likewise.
13082 (aarch64_isa_flags): Delete.
13083 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
13084 instead of aarch64_isa_flags.
13085 (aarch64_get_tune_cpu): New function.
13086 (aarch64_get_arch): Likewise.
13087 (aarch64_override_options): Use above and set up explicit_tune_core
13088 and explicit_arch.
13089 (aarch64_print_extension): Move earlier in file. Add isa_flags
13090 argument and use that instead of the global aarch64_isa_flags.
13091 (aarch64_option_save): New function.
13092 (aarch64_option_restore): Likewise.
13093 (aarch64_option_print): Likewise.
13094 (aarch64_declare_function_name): Likewise.
13095 (aarch64_start_file): Delete.
13096 (TARGET_ASM_FILE_START): Do not define.
13097 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
13098 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
13099 Declare prototype.
13100
13101 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13102
13103 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
13104 flag_omit_leaf_frame_pointer to 2.
13105
13106 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13107
13108 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
13109 define to 0 or 1.
13110 (TARGET_FIX_ERR_A53_835769): New macro.
13111 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13112 handling of opts->x_aarch64_fix_a53_err835769.
13113 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
13114 than aarch64_fix_a53_err835769.
13115 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
13116 * config/aarch64/aarch64-linux.h: Likewise.
13117
13118 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
13119
13120 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
13121 ix86_expand_int_movcc as boolean.
13122
13123 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13124
13125 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
13126 (aarch64_cpu_string): Likewise.
13127 (aarch64_tune_string): Likewise.
13128 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
13129 (aarch64_parse_extension): Return aarch64_parse_opt_result.
13130 Add extra argument to put result into.
13131 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
13132 (aarch64_parse_cpu): Add arguments to put results into. Return
13133 aarch64_parse_opt_result.
13134 (aarch64_parse_tune): Likewise.
13135 (aarch64_override_options_after_change_1): New function.
13136 (aarch64_override_options_internal): New function.
13137 (aarch64_validate_mcpu): Likewise.
13138 (aarch64_validate_march): Likewise.
13139 (aarch64_validate_mtune): Likewise.
13140 (aarch64_override_options): Update to reflect above changes.
13141 Move some logic into aarch64_override_options_internal.
13142 Initialize target_option_default_node and target_option_current_node.
13143 (aarch64_override_options_after_change): Move logic into
13144 aarch64_override_options_after_change_1 and call it with global_options.
13145 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
13146 flag values from that.
13147
13148 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13149
13150 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13151 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
13152 * config/aarch64/aarch64.c (struct processor): Add arch field.
13153 (all_architectures): Handle above, move above all_cores.
13154 (all_cores): Handle above.
13155 (aarch64_parse_arch): Handle above changes.
13156 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
13157 above. Update comments.
13158 (armv8.1-a): Likewise.
13159 * config/aarch64/aarch64-cores.def: Update according to above.
13160 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
13161 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
13162 aarch64_arch_driver_info.
13163
13164 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13165
13166 * config/aarch64/aarch64.c (struct processor): Add ident field.
13167 Rename core sched_core.
13168 (all_cores): Handle above changes.
13169 (all_architectures): Likewise.
13170 (aarch64_parse_arch): Likewise.
13171 (aarch64_override_options): Likewise.
13172
13173 2015-08-04 Richard Biener <rguenther@suse.de>
13174
13175 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
13176 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
13177 comparisons embedded in [VEC_]COND_EXPRs.
13178
13179 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
13180
13181 * tree-if-conv.c: Fix various typos in comments.
13182 * tree-vect-stmts.c: Likewise.
13183
13184 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
13185
13186 PR tree-optimization/67043
13187 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
13188 preheader after hoisting invariant in it.
13189 (find_defs): Force recomputation of all luids.
13190
13191 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
13192
13193 * config/rs6000/htm.md (tabort.): Restrict the source operand to
13194 using a base register.
13195
13196 2015-08-03 David Malcolm <dmalcolm@redhat.com>
13197
13198 * main.c (main): Pass in NULL for toplev's external_timer.
13199 * timevar.c: Include coretypes.h.
13200 (class timer::named_items): New.
13201 (timer::named_items::named_items): New.
13202 (timer::named_items::~named_items): New.
13203 (timer::named_items::push): New.
13204 (timer::named_items::pop): New.
13205 (timer::named_items::print): New.
13206 (timer::timer): Initialize field "m_jit_client_items".
13207 (timer::~timer): New.
13208 (timer::push): Move bulk of implementation to...
13209 (timer::push_internal): ...here. New function.
13210 (timer::pop): Move bulk of implementation to...
13211 (timer::pop_internal): ...here. New function.
13212 (timer::push_client_item): New.
13213 (timer::pop_client_item): New.
13214 (timer::print_row): New function, taken from timer::print.
13215 (timer::print): Print "GCC items" header if we also have client
13216 items. Move row-printing to timer::print_row. Print any client
13217 items.
13218 (timer::get_topmost_item_name): New method.
13219 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
13220 (TV_JIT_CLIENT_CODE): New.
13221 * timevar.h (timer::push_client_item): New declaration.
13222 (timer::pop_client_item): New declaration.
13223 (timer::get_topmost_item_name): New method.
13224 (timer::push_internal): New declaration.
13225 (timer::pop_internal): New declaration.
13226 (timer::print_row): New declaration.
13227 (timer::named_items): New declaration.
13228 (timer::m_jit_client_items): New field.
13229 (timer): Add friend class named_items.
13230 (auto_timevar::auto_timevar): Add timer param.
13231 (auto_timevar::~auto_timevar): Use field "m_timer".
13232 (auto_timevar::m_timer): New field.
13233 * toplev.c (initialize_rtl): Add g_timer as param when
13234 constructing auto_timevar instance.
13235 (toplev::toplev): Add "external_timer" param, and use it to
13236 initialize the "g_timer" global if non-NULL.
13237 (toplev::~toplev): If this created "g_timer", delete it.
13238 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
13239 with "external_timer" timer *.
13240
13241 2015-08-03 Alexander Basov <coohpt@gmail.com>
13242
13243 PR middle-end/64744
13244 PR middle-end/48470
13245 PR middle-end/43404
13246 * cfgexpand.c (expand_one_var): Add check if stack is going to
13247 be used in naked function.
13248 * expr.c (expand_expr_addr_expr_1): Remove excess checking
13249 whether expression should not reside in MEM.
13250 * function.c (use_register_for_decl): Do not use registers for
13251 non-register things (volatile, float, BLKMode) in naked functions.
13252
13253 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
13254
13255 PR target/67060
13256 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
13257 Adjust splits to match new pattern.
13258
13259 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13260
13261 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
13262 (VEC_M): Likewise.
13263 (VEC_N): Likewise.
13264 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
13265 point in VSX registers.
13266
13267 * config/rs6000/constraints.md (wb constraint): Document unused
13268 w<x> constraint.
13269 (we constraint): Likewise.
13270 (wo constraint): Likewise.
13271 (wp constraint): New constraint for IEEE 128-bit floating point in
13272 VSX registers.
13273 (wq constraint): Likewise.
13274
13275 * config/rs6000/predicates.md (easy_fp_constant): Add support for
13276 IEEE 128-bit floating point in VSX registers.
13277 (easy_scalar_constant): Likewise.
13278
13279 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
13280 constraints (wp, wq) for IEEE 128-bit floating point in VSX
13281 registers.
13282 (rs6000_init_hard_regno_mode_ok): Likewise.
13283
13284 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
13285 floating point in VSX registers.
13286 (VSX_L): Likewise.
13287 (VSX_M): Likewise.
13288 (VSX_M2): Likewise.
13289 (VSm): Likewise.
13290 (VSs): Likewise.
13291 (VSr): Likewise.
13292 (VSa): Likewise.
13293 (VSv): Likewise.
13294 (vsx_le_permute_<mode>): Add support to properly swap bytes for
13295 IEEE 128-bit floating point in VSX registers on little endian.
13296 (vsx_le_undo_permute_<mode>): Likewise.
13297 (vsx_le_perm_load_<mode>): Likewise.
13298 (vsx_le_perm_store_<mode>): Likewise.
13299 (splitters for IEEE 128-bit fp moves): Likewise.
13300
13301 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
13302 wq constraints.
13303
13304 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
13305 floating point in VSX registers.
13306 (VM2): Likewise.
13307
13308 * doc/md.text (Machine Constraints): Document wp and wq
13309 constraints on PowerPC.
13310
13311 2015-08-03 Jeff Law <law@redhat.com>
13312
13313 PR middle-end/66314
13314 PR gcov-profile/66899
13315 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
13316 iterate over the jump threading paths when an element in the
13317 jump threading paths array is eliminated.
13318
13319 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
13320
13321 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
13322
13323 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
13324
13325 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
13326 is_use_properly_guarded the variable def_preds. Free its
13327 contents before returning.
13328 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
13329 (is_use_properly_guarded): Replace local variable def_preds with
13330 a parameter. Adjust accordingly. Only update *def_preds if it's
13331 the empty vector.
13332
13333 2015-08-03 Richard Biener <rguenther@suse.de>
13334
13335 * genmatch.c (simplify::for_subst_vec): New member.
13336 (binary_ok): New helper for for lowering.
13337 (lower_for): Delay substituting operators into result expressions
13338 if we can merge the results eventually again.
13339 (capture_info::walk_result): Adjust for user_id appearing as
13340 result expression operator.
13341 (expr::gen_transform): Likewise.
13342 (dt_simplify::gen_1): Likewise.
13343 (dt_simplify::gen): Pass not substituted operators to tail
13344 functions or initialize local variable with it.
13345 (decision_tree::gen): Adjust function signature.
13346 * match.pd: Fix tests against global code and add default
13347 cases to switch stmts.
13348
13349 2015-08-03 Richard Biener <rguenther@suse.de>
13350
13351 * genmatch.c (dt_simplify::gen): Create captures array
13352 with an initializer.
13353
13354 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13355
13356 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
13357 the host compiler is affected by placement new aliasing bug.
13358 * configure: Regenerate.
13359 * Makefile.in (ALIASING_FLAGS): New variable.
13360 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
13361
13362 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
13363
13364 PR target/66731
13365 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
13366 (negmulsf3_vfp): Likewise.
13367 (muldf3negdf_vfp): Disable for -frounding-math.
13368 (mulsf3negsf_vfp): Likewise.
13369 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
13370 fix MULT cost with -frounding-math.
13371
13372 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13373
13374 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
13375 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
13376 explicit. Prefer to add the flag whenever possible.
13377 (noce_process_if_block): Try noce_try_store_flag_constants before
13378 noce_try_cmove.
13379
13380 2015-08-03 Richard Biener <rguenther@suse.de>
13381
13382 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
13383 New hash-map to record equivalent transforms.
13384 (dt_node::analyze): Populate the equivalent transforms hash-map.
13385 (dt_simplify::info): Add reference to hash-map entry.
13386 (dt_simplify::gen): If we have split out a function for the
13387 transform, generate a call to it.
13388 (sinfo_hashmap_traits::hash): New function.
13389 (compare_op): New helper function for ...
13390 (sinfo_hashmap_traits::equal_keys): ... this new function.
13391 (decision_tree::gen): Split out common equivalent transforms
13392 into functions.
13393
13394 2015-08-03 Richard Biener <rguenther@suse.de>
13395
13396 * gimple-fold.c (fold_gimple_assign): Remove folding of
13397 the comparison in COND_EXPRs.
13398
13399 2015-08-03 Richard Biener <rguenther@suse.de>
13400
13401 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
13402 on the rhs of assignments first simplify the embedded
13403 GENERIC condition.
13404
13405 2015-08-03 Richard Biener <rguenther@suse.de>
13406
13407 PR tree-optimization/66917
13408 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
13409 field.
13410 (DR_VECT_AUX): New macro.
13411 (set_dr_misalignment): Adjust.
13412 (dr_misalignment): Likewise.
13413 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
13414 Compute whether the base is at least element aligned.
13415 * tree-vect-stmts.c (ensure_base_align): Adjust.
13416 (vectorizable_store): If the base is not element aligned
13417 preserve alignment of the original access if misalignment is unknown.
13418 (vectorizable_load): Likewise.
13419
13420 2015-08-02 Martin Sebor <msebor@redhat.com>
13421
13422 * c-family/c.opt (-Wframe-address): New warning option.
13423 * doc/invoke.texi (Wframe-address): Document it.
13424 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
13425 Clarify possible effects of calling the functions with non-zero
13426 arguments and mention -Wframe-address.
13427 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
13428
13429 2015-08-01 Michael Collison <michael.collison@linaro.org
13430 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13431
13432 * config/arm/arm.md (*arm_smin_cmp): New pattern.
13433 (*arm_umin_cmp): Likewise.
13434
13435 2015-08-01 Caroline Tice <cmtice@google.com>
13436
13437 PR 66521
13438 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
13439 global variables.
13440 (vtbl_find_mangled_name): New function.
13441 (vtbl_register_mangled_name): New function.
13442 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
13443 mangled name in mangled name vectors.
13444 (find_or_create_vtbl_map_node): Ditto.
13445 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
13446 update recursion_depth on function entry; pass it to every recursive
13447 call; automatically exit if depth > 25 (give up looking at that point).
13448 (verify_bb_vtables): Initialize recursion_depth and pass it to
13449 var_is_used_for_virtual_call_p.
13450 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
13451 global variable decls.
13452 (vtbl_register_mangled_name): New extern function decl.
13453
13454 2015-08-01 Tom de Vries <tom@codesourcery.com>
13455
13456 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
13457 function.
13458 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
13459 Declare.
13460 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
13461 operation_no_trapping_overflow. Allow non-overflow operations.
13462 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
13463 operations.
13464
13465 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
13466
13467 PR target/67049
13468 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
13469
13470 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13471
13472 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
13473 Enable for TARGET_32BIT.
13474 (*if_move_neg): Likewise.
13475
13476 2015-07-31 Nick Clifton <nickc@redhat.com>
13477
13478 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
13479 Returns true for __model__.
13480 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
13481
13482 2015-07-31 Alan Modra <amodra@gmail.com>
13483
13484 PR target/66870
13485 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
13486 (rs6000_emit_prologue): Set it.
13487 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
13488
13489 2015-07-31 Richard Biener <rguenther@suse.de>
13490
13491 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
13492 -> X == (C1 ^ C2) which is already implemented in match.pd.
13493 Remove redundant dispatching to fold_relational_const.
13494 Move unordered self and NaN compares ...
13495 * match.pd: ... as patterns here. Remove some stray captures
13496 and add a comment.
13497
13498 2015-07-31 Petr Murzin <petr.murzin@intel.com>
13499
13500 * config/i386/i386.c
13501 (bdesc_special_args): Convert mask type from signed to unsigned for
13502 masked builtins.
13503 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
13504 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
13505 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
13506 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
13507 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
13508 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
13509 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
13510 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
13511 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
13512 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
13513 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
13514 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
13515 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
13516 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
13517 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
13518 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
13519 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
13520 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
13521 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
13522 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
13523 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
13524 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
13525 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
13526 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
13527 * config/i386/i386-builtin-types.def
13528 (V16QI_FTYPE_V16SI): Remove.
13529 (V8DF_FTYPE_V8SI): Ditto.
13530 (V8HI_FTYPE_V8DI): Ditto.
13531 (V8SI_FTYPE_V8DI): Ditto.
13532 (V8SF_FTYPE_V8DF): Ditto.
13533 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
13534 (V16HI_FTYPE_V16SI): Ditto.
13535 (V16SF_FTYPE_V16HI): Ditto.
13536 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
13537 (V16SF_FTYPE_V16SI): Ditto.
13538 (V4DI_FTYPE_V4DI): Ditto.
13539 (V16SI_FTYPE_V16SF): Ditto.
13540 (V16SF_FTYPE_FLOAT): Ditto.
13541 (V8DF_FTYPE_DOUBLE): Ditto.
13542 (V8DI_FTYPE_INT64): Ditto.
13543 (V8DI_FTYPE_V4DI): Ditto.
13544 (V16QI_FTYPE_V8DI): Ditto.
13545 (UINT_FTYPE_V4SF): Ditto.
13546 (UINT64_FTYPE_V4SF): Ditto.
13547 (UINT_FTYPE_V2DF): Ditto.
13548 (UINT64_FTYPE_V2DF): Ditto.
13549 (V16SI_FTYPE_V16SI): Ditto.
13550 (V8DI_FTYPE_V8DI): Ditto.
13551 (V16SI_FTYPE_PV4SI): Ditto.
13552 (V16SF_FTYPE_PV4SF): Ditto.
13553 (V8DI_FTYPE_PV2DI): Ditto.
13554 (V8DF_FTYPE_PV2DF): Ditto.
13555 (V4DI_FTYPE_PV2DI): Ditto.
13556 (V4DF_FTYPE_PV2DF): Ditto.
13557 (V16SI_FTYPE_PV2SI): Ditto.
13558 (V16SF_FTYPE_PV2SF): Ditto.
13559 (V8DI_FTYPE_PV4DI): Ditto.
13560 (V8DF_FTYPE_PV4DF): Ditto.
13561 (V8SF_FTYPE_FLOAT): Ditto.
13562 (V4SF_FTYPE_FLOAT): Ditto.
13563 (V4DF_FTYPE_DOUBLE): Ditto.
13564 (V8SF_FTYPE_PV4SF): Ditto.
13565 (V8SI_FTYPE_PV4SI): Ditto.
13566 (V4SI_FTYPE_PV2SI): Ditto.
13567 (V8SF_FTYPE_PV2SF): Ditto.
13568 (V8SI_FTYPE_PV2SI): Ditto.
13569 (V16SF_FTYPE_PV8SF): Ditto.
13570 (V16SI_FTYPE_PV8SI): Ditto.
13571 (V8DI_FTYPE_V8SF): Ditto.
13572 (V4DI_FTYPE_V4SF): Ditto.
13573 (V2DI_FTYPE_V4SF): Ditto.
13574 (V64QI_FTYPE_QI): Ditto.
13575 (V32HI_FTYPE_HI): Ditto.
13576 (V8UHI_FTYPE_V8UHI): Ditto.
13577 (V16UHI_FTYPE_V16UHI): Ditto.
13578 (V32UHI_FTYPE_V32UHI): Ditto.
13579 (V2UDI_FTYPE_V2UDI): Ditto.
13580 (V4UDI_FTYPE_V4UDI): Ditto.
13581 (V8UDI_FTYPE_V8UDI): Ditto.
13582 (V4USI_FTYPE_V4USI): Ditto.
13583 (V8USI_FTYPE_V8USI): Ditto.
13584 (V16USI_FTYPE_V16USI): Ditto.
13585 (V2DF_FTYPE_V2DF_UINT64): Ditto.
13586 (V2DI_FTYPE_V2DF_V2DF): Ditto.
13587 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
13588 (V8DF_FTYPE_V8DF_V8DI): Ditto.
13589 (V4SF_FTYPE_V4SF_UINT64): Ditto.
13590 (V4SI_FTYPE_V4SF_V4SF): Ditto.
13591 (V16SF_FTYPE_V16SF_V16SI): Ditto.
13592 (V64QI_FTYPE_V32HI_V32HI): Ditto.
13593 (V32HI_FTYPE_V16SI_V16SI): Ditto.
13594 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
13595 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
13596 (V32HI_FTYPE_V64QI_V64QI): Ditto.
13597 (V32HI_FTYPE_V32HI_V32HI): Ditto.
13598 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
13599 (V16SI_FTYPE_V16SI_V4SI): Ditto.
13600 (V16SI_FTYPE_V16SI_V16SI): Ditto.
13601 (V16SI_FTYPE_V32HI_V32HI): Ditto.
13602 (V16SI_FTYPE_V16SI_SI): Ditto.
13603 (V8DI_FTYPE_V8DI_V8DI): Ditto.
13604 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
13605 (V8DI_FTYPE_V16SI_V16SI): Ditto.
13606 (V8DI_FTYPE_V8DI_V2DI): Ditto.
13607 (QI_FTYPE_QI): Ditto.
13608 (SI_FTYPE_SI): Ditto.
13609 (DI_FTYPE_DI): Ditto.
13610 (QI_FTYPE_QI_QI): Ditto.
13611 (QI_FTYPE_QI_INT): Ditto.
13612 (HI_FTYPE_HI_INT): Ditto.
13613 (SI_FTYPE_SI_INT): Ditto.
13614 (DI_FTYPE_DI_INT): Ditto.
13615 (HI_FTYPE_V16QI_V16QI): Ditto.
13616 (SI_FTYPE_V32QI_V32QI): Ditto.
13617 (DI_FTYPE_V64QI_V64QI): Ditto.
13618 (QI_FTYPE_V8HI_V8HI): Ditto.
13619 (HI_FTYPE_V16HI_V16HI): Ditto.
13620 (SI_FTYPE_V32HI_V32HI): Ditto.
13621 (QI_FTYPE_V4SI_V4SI): Ditto.
13622 (QI_FTYPE_V8SI_V8SI): Ditto.
13623 (QI_FTYPE_V2DI_V2DI): Ditto.
13624 (QI_FTYPE_V4DI_V4DI): Ditto.
13625 (QI_FTYPE_V8DI_V8DI): Ditto.
13626 (HI_FTYPE_V16SI_V16SI): Ditto.
13627 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
13628 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
13629 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
13630 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
13631 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
13632 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
13633 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
13634 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
13635 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
13636 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
13637 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
13638 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
13639 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
13640 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
13641 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
13642 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
13643 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
13644 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
13645 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
13646 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
13647 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
13648 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
13649 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
13650 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
13651 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
13652 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
13653 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
13654 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
13655 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
13656 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
13657 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
13658 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
13659 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
13660 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
13661 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
13662 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
13663 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
13664 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
13665 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
13666 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
13667 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
13668 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
13669 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
13670 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
13671 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
13672 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
13673 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
13674 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
13675 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
13676 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
13677 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
13678 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
13679 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
13680 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
13681 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
13682 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
13683 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
13684 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
13685 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
13686 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
13687 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
13688 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
13689 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
13690 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
13691 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
13692 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
13693 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
13694 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
13695 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
13696 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
13697 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
13698 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
13699 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
13700 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
13701 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
13702 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
13703 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
13704 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
13705 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
13706 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
13707 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
13708 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
13709 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
13710 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
13711 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
13712 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
13713 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
13714 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
13715 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
13716 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
13717 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
13718 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
13719 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
13720 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
13721 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
13722 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
13723 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
13724 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
13725 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
13726 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
13727 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
13728 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
13729 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
13730 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
13731 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
13732 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
13733 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
13734 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
13735 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
13736 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
13737 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
13738 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
13739 (HI_FTYPE_HI): Ditto.
13740 (HI_FTYPE_V16QI): Ditto.
13741 (SI_FTYPE_V32QI): Ditto.
13742 (DI_FTYPE_V64QI): Ditto.
13743 (QI_FTYPE_V8HI): Ditto.
13744 (HI_FTYPE_V16HI): Ditto.
13745 (SI_FTYPE_V32HI): Ditto.
13746 (QI_FTYPE_V4SI): Ditto.
13747 (QI_FTYPE_V8SI): Ditto.
13748 (HI_FTYPE_V16SI): Ditto.
13749 (QI_FTYPE_V2DI): Ditto.
13750 (QI_FTYPE_V4DI): Ditto.
13751 (QI_FTYPE_V8DI): Ditto.
13752 (V16QI_FTYPE_HI): Ditto.
13753 (V32QI_FTYPE_SI): Ditto.
13754 (V64QI_FTYPE_DI): Ditto.
13755 (V8HI_FTYPE_QI): Ditto.
13756 (V16HI_FTYPE_HI): Ditto.
13757 (V32HI_FTYPE_SI): Ditto.
13758 (V4SI_FTYPE_QI): Ditto.
13759 (V4SI_FTYPE_HI): Ditto.
13760 (V8SI_FTYPE_QI): Ditto.
13761 (V8SI_FTYPE_HI): Ditto.
13762 (V2DI_FTYPE_QI): Ditto.
13763 (V4DI_FTYPE_QI): Ditto.
13764 (HI_FTYPE_HI_HI): Ditto.
13765 (SI_FTYPE_SI_SI): Ditto.
13766 (DI_FTYPE_DI_DI): Ditto.
13767 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
13768 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
13769 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
13770 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
13771 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
13772 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
13773 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
13774 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
13775 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
13776 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
13777 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
13778 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
13779 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
13780 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
13781 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
13782 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
13783 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
13784 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
13785 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
13786 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
13787 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
13788 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
13789 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
13790 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
13791 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
13792 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
13793 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
13794 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
13795 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
13796 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
13797 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
13798 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
13799 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
13800 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
13801 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
13802 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
13803 (V16SI_FTYPE_HI): Ditto.
13804 (V8DI_FTYPE_QI): Ditto.
13805 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
13806 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
13807 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
13808 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
13809 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
13810 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
13811 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
13812 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
13813 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
13814 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
13815 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
13816 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
13817 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
13818 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
13819 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
13820 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
13821 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
13822 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
13823 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
13824 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
13825 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
13826 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
13827 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
13828 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
13829 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
13830 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
13831 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
13832 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
13833 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
13834 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
13835 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
13836 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
13837 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
13838 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
13839 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
13840 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
13841 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
13842 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
13843 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
13844 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
13845 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
13846 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
13847 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
13848 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
13849 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
13850 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
13851 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
13852 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
13853 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
13854 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
13855 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
13856 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
13857 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
13858 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
13859 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
13860 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
13861 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
13862 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
13863 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
13864 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
13865 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
13866 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
13867 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
13868 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
13869 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
13870 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
13871 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
13872 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
13873 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
13874 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
13875 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
13876 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
13877 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
13878 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
13879 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
13880 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
13881 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
13882 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
13883 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
13884 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
13885 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
13886 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
13887 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
13888 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
13889 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
13890 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
13891 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
13892 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
13893 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
13894 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
13895 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
13896 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
13897 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
13898 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
13899 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
13900 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
13901 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
13902 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
13903 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
13904 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
13905 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
13906 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
13907 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
13908 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
13909 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
13910 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
13911 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
13912 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
13913 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
13914 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
13915 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
13916 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
13917 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
13918 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
13919 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
13920 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
13921 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
13922 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
13923 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
13924 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
13925 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
13926 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
13927 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
13928 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
13929 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
13930 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
13931 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
13932 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
13933 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
13934 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
13935 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
13936 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
13937 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
13938 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
13939 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
13940 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
13941 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
13942 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
13943 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
13944 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
13945 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
13946 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
13947 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
13948 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
13949 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
13950 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
13951 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
13952 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
13953 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
13954 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
13955 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
13956 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
13957 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
13958 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
13959 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
13960 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
13961 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
13962 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
13963 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
13964 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
13965 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
13966 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
13967 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
13968 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
13969 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
13970 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
13971 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
13972 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
13973 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
13974 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
13975 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
13976 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
13977 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
13978 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
13979 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
13980 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
13981 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
13982 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
13983 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
13984 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
13985 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
13986 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
13987 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
13988 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
13989 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
13990 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
13991 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
13992 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
13993 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
13994 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
13995 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
13996 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
13997 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
13998 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
13999 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
14000 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
14001 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
14002 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
14003 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
14004 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
14005 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
14006 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
14007 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
14008 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
14009 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
14010 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
14011 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
14012 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
14013 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
14014 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
14015 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
14016 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
14017 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
14018 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
14019 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
14020 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
14021 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
14022 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
14023 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
14024 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
14025 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
14026 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
14027 (QI_FTYPE_V8DF_INT_QI): Ditto.
14028 (QI_FTYPE_V4DF_INT_QI): Ditto.
14029 (QI_FTYPE_V2DF_INT_QI): Ditto.
14030 (HI_FTYPE_V16SF_INT_HI): Ditto.
14031 (QI_FTYPE_V8SF_INT_QI): Ditto.
14032 (QI_FTYPE_V4SF_INT_QI): Ditto.
14033 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
14034
14035 2015-07-31 Richard Biener <rguenther@suse.de>
14036
14037 * gimple-fold.c (fold_gimple_assign): Remove folding of
14038 GIMPLE_BINARY_RHS.
14039
14040 2015-07-31 Tom de Vries <tom@codesourcery.com>
14041
14042 PR tree-optimization/66846
14043 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
14044 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
14045 (expand_omp_target) [ENABLE_CHECKING]: Same.
14046 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
14047 cfun if !LOOPS_NEED_FIXUP.
14048 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
14049 that omp_for already has its own loop struct.
14050 * tree-parloops.c (create_phi_for_local_result)
14051 (create_call_for_reduction): Handle simple latch bb.
14052 (create_parallel_loop): Add simple latch bb to preserve
14053 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
14054 (gen_parallel_loop): Remove call to cancel_loop_tree.
14055 (parallelize_loops): Skip loops that are inner loops of parallelized
14056 loops.
14057 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
14058 verify_loop_structure.
14059
14060 2015-07-30 Anatoly Sokolov <aesok@post.ru>
14061
14062 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
14063 * config/v850/v850.md (RV_REGNUM): New constants.
14064 * config/v850/v850.c (v850_libcall_value): New functions.
14065 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
14066 (TARGET_LIBCALL_VALUE): Define.
14067
14068 2015-07-30 Anatoly Sokolov <aesok@post.ru>
14069
14070 * rtl.h (lowpart_subreg): Move in file.
14071 * loop-iv.c (lowpart_subreg): Move to...
14072 * simplify-rtx.c (lowpart_subreg): ...here.
14073 (simplify_binary_operation_1): Use lowpart_subreg instead of
14074 simplify_gen_subreg.
14075 * expr.c (expand_expr_real_2): Ditto.
14076 * emit-rtl.c (gen_lowpart_common): Ditto.
14077 * combine.c (gen_lowpart_for_combine): Ditto.
14078 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
14079 expand_debug_source_expr): Ditto.
14080
14081 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
14082
14083 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
14084 (expand_builtin_atomic_clear): Remove support for atomic_clear
14085 pattern.
14086
14087 2015-07-30 Richard Biener <rguenther@suse.de>
14088
14089 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
14090 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
14091 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
14092 redundant operand canonicalization.
14093
14094 2015-07-30 David Sherwood <david.sherwood@arm.com>
14095
14096 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
14097 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
14098 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
14099 * config/arm/arm.c (neon_valid_immediate): Likewise.
14100 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
14101 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
14102 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
14103 (expand_vec_perm_vpshufb2_vpermq): Likewise.
14104 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
14105 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
14106 * config/i386/sse.md
14107 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
14108 (*ssse3_palignr<mode>_perm): Likewise.
14109 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
14110 * config/spu/spu.c (arith_immediate_p): Likewise.
14111 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14112 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
14113
14114 2015-07-30 Richard Biener <rguenther@suse.de>
14115
14116 * genmatch.c (decision_tree::gen_gimple): Merge with ...
14117 (decision_tree::gen_generic): ... this into ...
14118 (decision_tree::gen): ... this.
14119 (main): Adjust callers.
14120
14121 2015-07-30 Richard Biener <rguenther@suse.de>
14122
14123 * genmatch.c (verbose): New global.
14124 (warning_at): Add overload with source_location.
14125 (capture_info::capture_info): Add bool whether generating gimple
14126 or generic. Add gimple member.
14127 (capture_info::cinfo): Add capture member.
14128 (capture_info::walk_match): Record capture. Warn on
14129 non-captured leafs.
14130 (capture_info::walk_c_expr): Add more fragments captures cannot
14131 escape through. Warn on escaped captures.
14132 (dt_simplify::gen_1): Warn on operands we force to have no
14133 side-effects.
14134 (main): Initialize verbose.
14135 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
14136
14137 2015-07-30 Richard Biener <rguenther@suse.de>
14138
14139 PR middle-end/67053
14140 * match.pd: Allow both operands to independently have conversion
14141 when simplifying compares of addresses.
14142
14143 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
14144
14145 PR target/66217
14146 PR target/67045
14147 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
14148 around those cases that need one.
14149
14150 2015-07-29 Aditya Kumar <hiraditya@msn.com>
14151
14152 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
14153
14154 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
14155
14156 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
14157 New. Copied from config/i386/gnu-user.h.
14158 (ASM_COMMENT_START): Likewise.
14159 (DBX_REGISTER_NUMBER): Likewise.
14160
14161 2015-07-29 Richard Biener <rguenther@suse.de>
14162
14163 * gimple-fold.c (fold_gimple_cond): Remove.
14164 (fold_stmt_1): Do not call it.
14165
14166 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
14167
14168 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
14169 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
14170
14171 * config/aarch64/aarch64-modes.def: Add HFmode.
14172
14173 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14174 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
14175
14176 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
14177 aarch64_promoted_type): New.
14178
14179 (aarch64_float_const_representable_p): Disable HFmode.
14180 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
14181 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
14182 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
14183
14184 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
14185 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
14186
14187 * config/aarch64/iterators.md (GPF_F16): New.
14188
14189 2015-07-29 Richard Biener <rguenther@suse.de>
14190
14191 * match.pd: Merge address comparison patterns and make them
14192 handle some more cases.
14193
14194 2015-07-29 Richard Biener <rguenther@suse.de>
14195
14196 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
14197 (parser::parse_capture): Add bool argument on whether to reject
14198 unknown captures.
14199 (parser::parse_expr): Adjust.
14200 (parser::parse_op): Likewise.
14201 (parser::parse_pattern): Likewise.
14202
14203 2015-07-29 Richard Biener <rguenther@suse.de>
14204
14205 * gimple-fold.c (has_use_on_stmt): New function.
14206 (replace_stmt_with_simplification): Use it to allow
14207 abnormals originally referenced in the stmt.
14208 (fold_stmt_1): Canonicalize operand order.
14209
14210 2015-07-28 David Sherwood <david.sherwood@arm.com>
14211
14212 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
14213 GET_MODE_INNER unconditionally.
14214 * config/spu/spu.c (arith_immediate_p): Likewise.
14215 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
14216 * expmed.c (synth_mult): Remove check for VOIDmode result from
14217 GET_MODE_INNER.
14218 (expand_mult_const): Likewise.
14219 * fold-const.c (fold_binary_loc): Replace call to element_precision
14220 with call to GET_MODE_PRECISION.
14221 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
14222 m->name.
14223 (emit_mode_inner): Likewise.
14224 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
14225 result check.
14226 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
14227 (GET_MODE_UNIT_PRECISION): Likewise.
14228 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
14229 * simplify-rtx.c (simplify_immed_subreg): Likewise.
14230 * stor-layout.c (bitwise_type_for_mode): Update assert.
14231 (element_precision): Remove.
14232
14233 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14234
14235 * target-insns.def (reload_load_address): New targetm instruction
14236 pattern.
14237 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
14238
14239 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14240
14241 * target-insns.def (atomic_test_and_set): New targetm instruction
14242 pattern.
14243 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
14244 HAVE_*/gen_* interface.
14245
14246 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14247
14248 * target-insns.def (can_extend, ptr_extend): New targetm instruction
14249 patterns.
14250 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
14251 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
14252 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
14253 * rtlanal.c (nonzero_bits1): Likewise.
14254 (num_sign_bit_copies1): Likewise.
14255
14256 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14257
14258 * target-insns.def (eh_return): New targetm instruction pattern.
14259 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
14260 interface.
14261 * function.c (thread_prologue_and_epilogue_insns): Remove
14262 preprocessor condition.
14263
14264 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14265
14266 * target-insns.def (indirect_jump): New targetm instruction pattern.
14267 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
14268 interface.
14269
14270 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14271
14272 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
14273 instead of nonimmediate_operand. Remove C condiition.
14274
14275 2015-07-28 Richard Biener <rguenther@suse.de>
14276
14277 * match.pd: Add more simplification of address comparisons.
14278
14279 2015-07-28 Richard Biener <rguenther@suse.de>
14280
14281 * match.pd: Re-order two cases in comparison with max/min
14282 value simplification to make it apply for bools.
14283
14284 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14285
14286 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
14287 Handle simple SIGN_EXTEND or ZERO_EXTEND.
14288 (aarch64_rtx_costs): Properly strip extend or extract before
14289 passing down to rtx costs again.
14290
14291 2015-07-28 Nick Clifton <nickc@redhat.com>
14292
14293 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
14294 Optimizes the case where -mes0 is active and a constant symbolic
14295 address is used.
14296 * config/rl78/rl78-protos.h: Prototype the new function.
14297 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
14298
14299 2015-07-28 Tom de Vries <tom@codesourcery.com>
14300
14301 * tree-parloops.c (reduc_stmt_res): New function.
14302 (initialize_reductions, add_field_for_reduction)
14303 (create_phi_for_local_result, create_loads_for_reductions)
14304 (create_stores_for_reduction, build_new_reduction): Handle case that
14305 reduc_stmt is a phi.
14306 (gather_scalar_reductions): Allow double_reduc reductions.
14307
14308 2015-07-28 Richard Biener <rguenther@suse.de>
14309
14310 * fold-const.c (fold_comparison): Remove equality folding
14311 of decl addresses ...
14312 * match.pd: ... here and merge with existing pattern.
14313
14314 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
14315
14316 PR tree-optimization/66828
14317 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
14318 from int64_t to uint64_t.
14319
14320 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
14321
14322 * opts-common.c (read_cmdline_option): List DriverOnly enum values
14323 as valid only in the error message of the driver, not in the
14324 messages of the language compilers.
14325
14326 2015-07-27 Tom de Vries <tom@codesourcery.com>
14327
14328 * tree-parloops.c (gather_scalar_reductions): Simplify function
14329 structure.
14330
14331 2015-07-27 Marek Polacek <polacek@redhat.com>
14332
14333 * ipa-devirt.c (types_same_for_odr): Fix typo.
14334
14335 2015-07-27 Jason Merrill <jason@redhat.com>
14336
14337 PR debug/66468
14338 * dwarf2out.c (gen_inlined_subroutine_die): Check
14339 cgraph_function_possibly_inlined_p.
14340
14341 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
14342
14343 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
14344 Place integer variant first.
14345 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14346
14347 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
14348
14349 PR/63870
14350 * config/arm/arm-builtins.c (enum arm_builtins):
14351 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
14352 (ARM_BUILTIN_NEON_BASE): Rename macro to....
14353 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
14354 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
14355 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
14356
14357 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
14358
14359 PR/63870
14360 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
14361 Add qualifier_lane_index.
14362 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
14363 (arm_getlane_qualifiers): Use qualifier_lane_index.
14364 (arm_lanemac_qualifiers): Rename to...
14365 (arm_mac_n_qualifiers): ...this.
14366 (LANEMAC_QUALIFIERS): Rename to...
14367 (MAC_N_QUALIFIERS): ...this.
14368 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
14369 (arm_setlane_qualifiers): Use qualifier_lane_index.
14370 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
14371 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
14372 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
14373 (arm_expand_neon_builtin): Handle qualifier_lane_index.
14374
14375 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
14376 * config/arm/arm.c (bounds_check): Likewise, improve error message.
14377 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
14378 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
14379 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
14380 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
14381 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
14382 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
14383 qualifiers to TERNOP_IMM.
14384 (vdup_lane): Change qualifiers to GETLANE.
14385 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
14386 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
14387 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
14388 vqdmlsl_n): Change qualifiers to MAC_N.
14389
14390 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
14391 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
14392 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
14393 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
14394 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
14395 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
14396 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
14397 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
14398 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
14399 Remove call to neon_lane_bounds.
14400
14401 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
14402
14403 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
14404 Place integer variant first.
14405
14406 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
14407
14408 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
14409 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
14410 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
14411 for armv6kz targets.
14412 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
14413 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
14414 (FL_FOR_ARCH6ZK): Remove.
14415 (FL_FOR_ARCH6KZ): New.
14416 (arm_arch6zk): New declaration.
14417 * config/arm/arm-tables.opt: Regenerate.
14418 * config/arm/arm.c (arm_arch6kz): New.
14419 (arm_option_override): Set arm_arch6kz.
14420 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
14421 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
14422 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
14423
14424 2015-07-27 Marek Polacek <polacek@redhat.com>
14425
14426 PR c++/66555
14427 PR c/54979
14428 * doc/invoke.texi: Document -Wtautological-compare.
14429
14430 2015-07-27 Richard Biener <rguenther@suse.de>
14431
14432 * genmatch.c (decision_tree::gen_gimple): Split out large
14433 subtrees into separate functions.
14434 (decision_tree::gen_generic): Likewise.
14435
14436 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
14437
14438 * config/alpha/alpha.c: Use SUBREG_P predicate.
14439 * config/alpha/predicates.md: Ditto.
14440
14441 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
14442
14443 * config.host (s390*-*-*): Include driver-native.c only when
14444 building with s390* as host *and* target.
14445
14446 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
14447
14448 PR target/66930
14449 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
14450 T bit register modified_between_p check.
14451
14452 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14453
14454 * config/i386/i386.c: Use SUBREG_P predicate.
14455 * config/i386/i386.md: Ditto.
14456 * config/i386/sse.md: Ditto.
14457 * config/i386/predicates.md: Ditto.
14458
14459 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14460
14461 PR target/67004
14462 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
14463 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
14464
14465 2015-07-25 Sebastian Pop <s.pop@samsung.com>
14466
14467 * Makefile.in: Remove use of TREEBROWSER.
14468 * config.in: Regenerated.
14469 * configure: Regenerated.
14470 * configure.ac: Remove definition of TREEBROWSER.
14471 * tree-browser.c: Removed.
14472 * tree-browser.def: Removed.
14473
14474 2015-07-25 Sebastian Pop <s.pop@samsung.com>
14475
14476 * graphite-scop-detection.c: Include gimple-pretty-print.h.
14477 (stmt_simple_for_scop_p): Print when a stmt is not handled in
14478 Graphite.
14479 (scopdet_basic_block_info): Print when a loop or bb cannot be
14480 represented in Graphite.
14481
14482 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14483
14484 PR target/66648
14485 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
14486 execution guard when min_size is less than size_needed.
14487
14488 2015-07-25 Sebastian Pop <s.pop@samsung.com>
14489
14490 * doc/install.texi: Document supported versions of ISL.
14491
14492 2015-07-25 Jeff Law <law@redhat.com>
14493
14494 Revert:
14495 PR lto/66752
14496 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14497 unable to find X NE 0 in the tables, return X as the simplified
14498 condition.
14499 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14500 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14501 to VISISTED_BBS. */
14502 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14503 after removing the control flow statement and unnecessary edges.
14504
14505 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
14506
14507 Revert:
14508 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
14509
14510 PR rtl-optimization/64164
14511 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14512 * tree-ssa-copyrename.c: Removed.
14513 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14514 -ftree-coalesce-vars.
14515 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14516 * common.opt (ftree-copyrename): Ignore.
14517 (ftree-coalesce-inlined-vars): Likewise.
14518 * doc/invoke.texi: Remove the ignored options above.
14519 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14520 * tree-ssa-coalesce.h: ... here.
14521 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14522 headers required by it.
14523 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14524 across variables when flag_tree_coalesce_vars. Check register
14525 use and promoted modes to allow coalescing. Moved to
14526 tree-ssa-coalesce.c.
14527 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14528 with its member functions to tree-ssa-coalesce.c.
14529 (var_map_base_init): Likewise. Renamed to
14530 compute_samebase_partition_bases.
14531 (partition_view_normal): Drop want_bases parameter.
14532 (partition_view_bitmap): Likewise.
14533 * tree-ssa-live.h: Adjust declarations.
14534 * tree-ssa-coalesce.c: Include explow.h.
14535 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14536 default defs at the entry point.
14537 (dump_part_var_map): New.
14538 (compute_optimized_partition_bases): New, called by...
14539 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14540 of compute_samebase_partition_bases. Adjust.
14541 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14542 * cfgexpand.c (leader_merge): New.
14543 (get_rtl_for_parm_ssa_default_def): New.
14544 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14545 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14546 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14547 redundant MEM attr setting.
14548 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14549 from...
14550 (expand_one_stack_var): ... this. New wrapper to check and
14551 skip already expanded SSA partitions.
14552 (record_alignment_for_reg_var): New, factored out of...
14553 (expand_one_var): ... this.
14554 (expand_one_ssa_partition): New.
14555 (adjust_one_expanded_partition_var): New.
14556 (expand_one_register_var): Check and skip already expanded SSA
14557 partitions.
14558 (expand_used_vars): Don't create DECLs for anonymous SSA
14559 names. Expand all SSA partitions, then adjust all SSA names.
14560 (pass::execute): Replace the loops that set
14561 SA.partition_to_pseudo from partition leaders and cleared
14562 DECL_RTL for multi-location variables, and that which used to
14563 rename vars and set attrs, with one that clears DECL_RTL and
14564 checks that PARMs and RESULTs default_defs match DECL_RTL.
14565 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14566 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14567 * explow.c (promote_ssa_mode): New.
14568 * explow.h (promote_ssa_mode): Declare.
14569 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14570 * function.c: Include cfgexpand.h.
14571 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14572 (use_register_for_parm_decl): Wrapper for the above to
14573 special-case the result_ptr.
14574 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14575 (split_complex_args): Take assign_parm_data_all argument.
14576 Pass it to rtl_for_parm. Set up rtl and context for split
14577 args.
14578 (assign_parms_augmented_arg_list): Adjust.
14579 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14580 multiple locations. Recognize split complex args.
14581 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14582 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14583 (assign_parm_setup_block): Prefer SSA-assigned location.
14584 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
14585 if stack_parm is NULL.
14586 (assign_parm_setup_stack): Prefer SSA-assigned location.
14587 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14588 rtl before testing for pointer bounds. Special-case result_ptr.
14589 (expand_function_start): Maybe reset DECL_RTL of result.
14590 Prefer SSA-assigned location for result and static chain.
14591 Factor out DECL_RESULT and SET_DECL_RTL.
14592 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14593 anonymous SSA names. Use promote_ssa_mode.
14594 (get_temp_reg): Likewise.
14595 (remove_ssa_form): Adjust.
14596 * stor-layout.c (layout_decl): Don't set mem attributes of
14597 non-MEMs.
14598 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14599 and get its reg_usage for reg invalidation.
14600 (compute_bb_dataflow): Pass it insn.
14601 (emit_notes_in_bb): Likewise.
14602
14603 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14604
14605 * config/i386/i386.c (ix86_va_start): Remove
14606 unneeded !TARGET_64BIT check.
14607 (ix86_gimplify_va_arg): Ditto.
14608
14609 2015-07-24 Tom de Vries <tom@codesourcery.com>
14610
14611 * graphite-sese-to-poly.c (build_poly_scop): Always call
14612 rewrite_commutative_reductions_out_of_ssa.
14613
14614 2015-07-24 Tom de Vries <tom@codesourcery.com>
14615
14616 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
14617 flag_associative_math to FLOAT_TYPE_P. Honour
14618 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
14619
14620 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14621
14622 PR c++/64079
14623 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
14624 and "%qD" in warning_at instead of "%q+D" in warning.
14625
14626 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
14627
14628 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
14629 (ix86_function_abi): Cleanup.
14630
14631 2015-07-24 Michael Darling <darlingm@gmail.com>
14632
14633 PR other/66259
14634 * acinclude.m4: Reflects renaming of configure.in to configure.ac
14635 * configure: Likewise
14636 * configure.ac: Likewise
14637 * doc/install.texi: Likewise
14638 * doc/tm.texi: Likewise
14639 * doc/tm.texi.in: Likewise
14640
14641 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14642
14643 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
14644 manually swapping values.
14645 * cse.c (fold_rtx): Likewise.
14646 * lra-eliminations.c (form_sum): Likewise.
14647
14648 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
14649
14650 PR target/64003
14651 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
14652 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
14653 (*jcc_1, *jcc_2, jump, simple_return_internal)
14654 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
14655 Set length_nobnd attribute instead of length attribute.
14656 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
14657 (length_nobnd): Remove attribute.
14658 (length): Remove length_nobnd processing.
14659
14660 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
14661
14662 * gimplify.c (omp_default_clause): New function. Reorganize flow
14663 for clarity. Broken out of ...
14664 (omp_notice_variable): ... here.
14665
14666 2015-07-24 Gary Funck <gary@intrepid.com>
14667
14668 PR middle-end/66984
14669 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
14670 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
14671
14672 2015-07-24 Tom de Vries <tom@codesourcery.com>
14673
14674 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
14675 exit-first loop transform.
14676
14677 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
14678
14679 PR 66714
14680 * tree-cfg.c (struct replace_decls_d): New struct.
14681 (replace_block_vars_by_duplicates_1): New function.
14682 (replace_block_vars_by_duplicates): Use it to replace the decls
14683 in the value exprs by duplicates.
14684
14685 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
14686
14687 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
14688 -shared, -symbolic, -rdynamic.
14689
14690 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
14691
14692 PR target/65711
14693 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
14694 -dynamic-linker within %{!static %{!shared, and -rdynamic within
14695 %{!static.
14696
14697 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
14698
14699 PR ipa/66566
14700 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
14701 edge summary is available.
14702
14703 2015-07-24 Richard Biener <rguenther@suse.de>
14704
14705 * genmatch.c (struct dt_node): Add statistic fields.
14706 (dt_node::analyze): New method.
14707 (decision_tree::gen_gimple): Call analyze on the root node
14708 and print statistics to stderr.
14709 (decision_tree::gen_generic): Likewise.
14710
14711 2015-07-24 Richard Biener <rguenther@suse.de>
14712
14713 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
14714 against the highest or lowest possible integer ...
14715 * match.pd: ... as patterns here.
14716
14717 2015-07-24 Richard Biener <rguenther@suse.de>
14718
14719 * genmatch.c (struct capture_info): Add same_as field.
14720 (capture_info::capture_info): Initialize same_as.
14721 (capture_info::walk_match): Compute same_as.
14722 (capture_info::walk_result): Compute stuff for the leader.
14723 (capture_info::walk_c_expr): Likewise.
14724 (dt_simplify::gen_1): Only look at leaders when deciding
14725 to force no side-effects or emit side-effects of omitted operands.
14726
14727 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14728
14729 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
14730 reg note to the GPR -> FPR save instructions.
14731
14732 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14733
14734 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
14735 cheaper.
14736 (s390_expand_insv): Don't generate risbg pattern for constant zero
14737 sources.
14738 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
14739 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
14740 splitters.
14741
14742 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14743
14744 * config/s390/s390.c (s390_reorg): Clean up handling of processors
14745 with
14746 -mtune=
14747 (s390_issue_rate): Likewise.
14748 (s390_sched_reorder): Likewise.
14749 (s390_sched_variable_issue): Likewise.
14750 (s390_loop_unroll_adjust): Likewise.
14751 (s390_option_override): Likewise.
14752
14753 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14754
14755 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
14756 processor capabilities with -march=native.
14757 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
14758 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
14759 (S390_TARGET_BITS_STRING): Macro to simplify specs.
14760
14761 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14762
14763 * config/s390/s390.c (s390_issue_rate): Handle
14764 PROCESSOR_2094_Z9_EC.
14765 (s390_option_override): Likewise.
14766 (s390_adjust_priority): Likewise.
14767
14768 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14769
14770 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
14771 when cross compiling.
14772
14773 2015-07-24 Richard Biener <rguenther@suse.de>
14774
14775 * fold-const.c (maybe_canonicalize_comparison_1): Move
14776 A code CST canonicalization ...
14777 * match.pd: ... to a pattern here.
14778
14779 2015-07-24 Jiong Wang <jiong.wang@arm.com>
14780
14781 Revert:
14782 2015-07-22 Jiong Wang <jiong.wang@arm.com>
14783 PR target/63521
14784 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
14785 (HONOR_REG_ALLOC_ORDER): Define.
14786
14787 2015-07-24 Richard Biener <rguenther@suse.de>
14788
14789 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
14790 * fold-const.c (fold_comparison): Move parameter does not
14791 alias &local simplification ...
14792 * match.pd: ... as a pattern here.
14793
14794 2015-07-24 Richard Biener <rguenther@suse.de>
14795
14796 * gimple-fold.c (replace_stmt_with_simplification): Special-case
14797 valueizing call operands.
14798 * gimple-match-head.c (maybe_push_res_to_seq): Take
14799 number of call arguments from ops array.
14800 (do_valueize): New function.
14801 (gimple_simplify): Return true if valueization changed
14802 any operand even if the result didn't simplify further.
14803
14804 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14805
14806 PR middle-end/25530
14807 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
14808
14809 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14810
14811 PR middle-end/25529
14812 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
14813
14814 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14815
14816 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
14817 instruction.
14818
14819 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14820
14821 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
14822 clean up.
14823
14824 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
14825
14826 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
14827 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
14828 targets here.
14829 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
14830 ms_va_list_type_node initialization.
14831
14832 2015-07-23 Jeff Law <law@redhat.com>
14833
14834 PR lto/66752
14835 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14836 unable to find X NE 0 in the tables, return X as the simplified
14837 condition.
14838 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14839 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14840 to VISISTED_BBS. */
14841 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14842 after removing the control flow statement and unnecessary edges.
14843
14844 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
14845
14846 * tree-pass.h (get_current_pass_name): Removed.
14847
14848 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
14849
14850 PR rtl-optimization/64164
14851 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14852 * tree-ssa-copyrename.c: Removed.
14853 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14854 -ftree-coalesce-vars.
14855 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14856 * common.opt (ftree-copyrename): Ignore.
14857 (ftree-coalesce-inlined-vars): Likewise.
14858 * doc/invoke.texi: Remove the ignored options above.
14859 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14860 * tree-ssa-coalesce.h: ... here.
14861 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14862 headers required by it.
14863 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14864 across variables when flag_tree_coalesce_vars. Check register
14865 use and promoted modes to allow coalescing. Moved to
14866 tree-ssa-coalesce.c.
14867 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14868 with its member functions to tree-ssa-coalesce.c.
14869 (var_map_base_init): Likewise. Renamed to
14870 compute_samebase_partition_bases.
14871 (partition_view_normal): Drop want_bases parameter.
14872 (partition_view_bitmap): Likewise.
14873 * tree-ssa-live.h: Adjust declarations.
14874 * tree-ssa-coalesce.c: Include explow.h.
14875 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14876 default defs at the entry point.
14877 (dump_part_var_map): New.
14878 (compute_optimized_partition_bases): New, called by...
14879 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14880 of compute_samebase_partition_bases. Adjust.
14881 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14882 * cfgexpand.c (leader_merge): New.
14883 (get_rtl_for_parm_ssa_default_def): New.
14884 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14885 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14886 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14887 redundant MEM attr setting.
14888 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14889 from...
14890 (expand_one_stack_var): ... this. New wrapper to check and
14891 skip already expanded SSA partitions.
14892 (record_alignment_for_reg_var): New, factored out of...
14893 (expand_one_var): ... this.
14894 (expand_one_ssa_partition): New.
14895 (adjust_one_expanded_partition_var): New.
14896 (expand_one_register_var): Check and skip already expanded SSA
14897 partitions.
14898 (expand_used_vars): Don't create DECLs for anonymous SSA
14899 names. Expand all SSA partitions, then adjust all SSA names.
14900 (pass::execute): Replace the loops that set
14901 SA.partition_to_pseudo from partition leaders and cleared
14902 DECL_RTL for multi-location variables, and that which used to
14903 rename vars and set attrs, with one that clears DECL_RTL and
14904 checks that PARMs and RESULTs default_defs match DECL_RTL.
14905 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14906 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14907 * explow.c (promote_ssa_mode): New.
14908 * explow.h (promote_ssa_mode): Declare.
14909 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14910 * function.c: Include cfgexpand.h.
14911 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14912 (use_register_for_parm_decl): Wrapper for the above to
14913 special-case the result_ptr.
14914 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14915 (split_complex_args): Take assign_parm_data_all argument.
14916 Pass it to rtl_for_parm. Set up rtl and context for split
14917 args.
14918 (assign_parms_augmented_arg_list): Adjust.
14919 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14920 multiple locations. Recognize split complex args.
14921 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14922 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14923 (assign_parm_setup_block): Prefer SSA-assigned location.
14924 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
14925 if stack_parm is NULL.
14926 (assign_parm_setup_stack): Prefer SSA-assigned location.
14927 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14928 rtl before testing for pointer bounds. Special-case result_ptr.
14929 (expand_function_start): Maybe reset DECL_RTL of result.
14930 Prefer SSA-assigned location for result and static chain.
14931 Factor out DECL_RESULT and SET_DECL_RTL.
14932 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14933 anonymous SSA names. Use promote_ssa_mode.
14934 (get_temp_reg): Likewise.
14935 (remove_ssa_form): Adjust.
14936 * stor-layout.c (layout_decl): Don't set mem attributes of
14937 non-MEMs.
14938 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14939 and get its reg_usage for reg invalidation.
14940 (compute_bb_dataflow): Pass it insn.
14941 (emit_notes_in_bb): Likewise.
14942
14943 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
14944
14945 PR target/66217
14946 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
14947 prototype.
14948 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
14949 (rs6000_emit_2insn_and): Handle dot forms.
14950 * config/rs6000/rs6000.md (and<mode>3): Adjust.
14951 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
14952 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
14953
14954 2015-07-23 Richard Biener <rguenther@suse.de>
14955
14956 * generic-match-head.c: Include cgraph.h.
14957 * gimple-match-head.c: Likewise.
14958 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
14959 SSA names.
14960 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
14961 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
14962 pattern.
14963
14964 2015-07-23 Richard Biener <rguenther@suse.de>
14965
14966 * gimple-fold.c (fold_gimple_cond): Do not require folding
14967 results to pass valid_gimple_rhs_p.
14968 * tree-cfg.h (fold_cond_expr_cond): Remove.
14969 * tree-cfg.c (fold_cond_expr_cond): Likewise.
14970 (make_edges): Do not call it.
14971 * tree-inline.c (tree_function_versioning): Likewise.
14972
14973 2015-07-23 Tom de Vries <tom@codesourcery.com>
14974
14975 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
14976 vect_force_simple_reduction.
14977 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
14978 (vect_is_simple_reduction_1): Add and handle
14979 need_wrapping_integral_overflow parameter.
14980 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
14981 need_wrapping_integral_overflow parameter.
14982 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
14983 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
14984 decl.
14985
14986 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
14987
14988 PR tree-optimization/66926,66951
14989 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
14990 INNER_LOOP and fix up condition for renaming virtual operands.
14991
14992 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14993
14994 * combine.c (try_combine): Use std::swap instead of manually
14995 swapping.
14996
14997 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
14998
14999 * config/mips/i6400.md: New file.
15000 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
15001 (mips64r6): Likewise.
15002 (i6400): Define.
15003 * config/mips/mips-tables.opt: Regenerate.
15004 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
15005 (mips_issue_rate): Add support for i6400.
15006 (mips_multipass_dfa_lookahead): Likewise.
15007 * config/mips/mips.h (TUNE_I6400): Define.
15008 * config/mips/mips.md: Include i6400.md.
15009 (processor): Add i6400.
15010 * doc/invoke.texi (-march=@var{arch}): Add i6400.
15011
15012 2015-07-23 Richard Biener <rguenther@suse.de>
15013
15014 PR middle-end/66916
15015 * match.pd: Guard widen and sign-change comparison simplification
15016 with single_use.
15017
15018 2015-07-23 Richard Biener <rguenther@suse.de>
15019
15020 PR tree-optimization/66945
15021 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
15022 ::before_dom_children): Force the propagators idea of
15023 non-executable edges to materialize, not what the folder
15024 chooses.
15025
15026 2015-07-23 Richard Biener <rguenther@suse.de>
15027
15028 * gimple.h (gimple_cond_make_false): Use 0 != 0.
15029 (gimple_cond_make_true): Use 1 != 0.
15030
15031 2015-07-22 DJ Delorie <dj@redhat.com>
15032
15033 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
15034 slashes.
15035
15036 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
15037 (ashrhi3): Likewise.
15038 (lshrhi3): Likewise.
15039 (movhi): Take advantage of zero-extend to load small constants.
15040 (movpsi): Likewise.
15041 (and<mode>3): Likewise.
15042 (zero_extendqihi2): Likewise.
15043 (zero_extendqisi2): New.
15044 * config/msp430/constraints.md (N,O): New.
15045 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
15046
15047 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
15048
15049 PR target/66954
15050 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
15051 to enum feature_priority and feature_list.
15052 (fold_builtin_cpu): Add F_AES to enum processor_features
15053 and isa_names_table.
15054
15055 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
15056
15057 PR driver/66737
15058 * config/i386/linux-common.h (MPX_SPEC): Use linker option
15059 for 64bit target only.
15060
15061 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
15062
15063 * config/nvptx/nvptx.c: Expand some comments.
15064
15065 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
15066
15067 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
15068 (cortex_a53_advsimd): ...This.
15069
15070 2015-07-22 Richard Biener <rguenther@suse.de>
15071
15072 * genmatch.c (expr::gen_transform): Clarify error message
15073 and display location.
15074
15075 2015-07-22 Richard Biener <rguenther@suse.de>
15076
15077 * genmatch.c (struct operand): Add location member.
15078 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
15079 constructors.
15080 (struct simplify): Remove match_location and result_location
15081 members.
15082 (elsehwere): Adjust.
15083
15084 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
15085
15086 * config/mips/m5100.md: New file.
15087 * config/mips/mips-cpus.def (m5100, m5101): Define.
15088 * config/mips/mips-tables.opt: Regenerate.
15089 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
15090 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
15091 -march=m5101 to -mips32r5.
15092 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
15093 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
15094 !-msoft-float.
15095 * config/mips/mips.md: Include m5100.md.
15096 (processor): Add m5100.
15097 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
15098
15099 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
15100
15101 * config/mips/mips-cpus.def (interaptiv): Define.
15102 * config/mips/mips-tables.opt: Regenerate.
15103 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
15104 -mips32r2.
15105 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
15106 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
15107
15108 2015-07-22 Jiong Wang <jiong.wang@arm.com>
15109
15110 PR target/63521
15111 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15112 (HONOR_REG_ALLOC_ORDER): Define.
15113
15114 2015-07-22 Richard Biener <rguenther@suse.de>
15115
15116 PR tree-optimization/66952
15117 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
15118 blocks we end up executing unconditionally reset all SSA
15119 info such as range and alignment.
15120 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
15121 * tree-ssanames.c (reset_flow_sensitive_info): New function.
15122
15123 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
15124
15125 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
15126 typo in attribute.
15127
15128 2015-07-22 Richard Biener <rguenther@suse.de>
15129
15130 * genmatch.c (parser::parse_result): Properly handle
15131 match with result operands and conditions.
15132
15133 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
15134
15135 PR target/63870
15136 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
15137 Add qualifier_struct_load_store_lane_index.
15138 (aarch64_types_loadstruct_lane_qualifiers): Use
15139 qualifier_struct_load_store_lane_index for lane index argument for
15140 last argument.
15141 (aarch64_types_storestruct_lane_qualifiers): Ditto.
15142 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15143 (aarch64_simd_expand_args): Add new argument describing mode of
15144 builtin. Check lane bounds for arguments with
15145 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15146 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
15147 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15148 (aarch64_simd_expand_builtin): Handle arguments with
15149 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
15150 aarch64_simd_expand_args.
15151 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
15152 vst[234]_lane with BUILTIN_VALLDIF.
15153 * config/aarch64/aarch64-simd.md:
15154 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
15155 endianness reversal on lane index.
15156 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
15157 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
15158 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
15159 (vec_store_lanesci_lane<mode>): Ditto.
15160 (vec_store_lanesxi_lane<mode>): Ditto.
15161 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
15162 reversal of lane index.
15163 (aarch64_ld3_lane<mode>): Ditto.
15164 (aarch64_ld4_lane<mode>): Ditto.
15165 (aarch64_st2_lane<mode>): Ditto.
15166 (aarch64_st3_lane<mode>): Ditto.
15167 (aarch64_st4_lane<mode>): Ditto.
15168 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
15169 to qmode. Add new mode parameter. Update uses.
15170 (__LD3_LANE_FUNC): Ditto.
15171 (__LD4_LANE_FUNC): Ditto.
15172 (__ST2_LANE_FUNC): Ditto.
15173 (__ST3_LANE_FUNC): Ditto.
15174 (__ST4_LANE_FUNC): Ditto.
15175
15176 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
15177
15178 * doc/invoke.texi (Language Independent Options): Rename node to
15179 Diagnostic Message Formatting Options.
15180
15181 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
15182
15183 PR ipa/66424.
15184 * lra-remat.c (operand_to_remat): Prevent using insns with input
15185 subregs processed separately by IRA.
15186
15187 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
15188
15189 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
15190 straight loops.
15191 (single_imm_use): Check for iterator node.
15192 (num_imm_uses): Likewise.
15193 * tree-ssa-operands.c (has_zero_uses_1): Delete.
15194 (single_imm_use_1): Check for iterator node.
15195
15196 2015-07-21 Mike Frysinger <vapier@gentoo.org>
15197 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15198
15199 * configure.ac: Add check for new options in isl-0.15.
15200 * config.in, configure: Rebuilt.
15201 * graphite-blocking.c: Include <isl/constraint.h>
15202 * graphite-interchange.c, graphite-poly.c: Likewise.
15203 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
15204 * graphite.c: Likewise.
15205 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
15206 <isl/union_set.h>.
15207 * graphite-dependences.c: Include <isl/constraint.h>.
15208 (max_number_of_out_dimensions): Returns isl_stat.
15209 (extend_schedule_1): Likewise
15210 (extend_schedule): Corresponding changes.
15211 * graphite-optimize-isl.c: Include <isl/constraint.h> and
15212 <isl/union_set.h>.
15213 (getSingleMap): Change return type of isl_stat.
15214 (optimize_isl): Conditionally use
15215 isl_options_set_schedule_serialize_sccs.
15216 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
15217 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
15218
15219 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
15220
15221 PR target/66956
15222 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
15223 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
15224
15225 2015-07-21 Richard Biener <rguenther@suse.de>
15226
15227 PR tree-optimization/66948
15228 * genmatch.c (capture_info::walk_match): Also recurse to
15229 captures. Properly compute expr state from captures of
15230 captures.
15231 * match.pd: Add single-use guards to
15232 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
15233
15234 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
15235
15236 * config/nvptx/mkoffload.c (process): Add static destructor call.
15237
15238 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15239
15240 PR middle-end/66915
15241 * match.pd (A - B -> A + (-B)): Don't allow folding
15242 when type if a fixed-point type.
15243
15244 2015-07-20 DJ Delorie <dj@redhat.com>
15245
15246 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
15247 (iorqi3_real): Likewise for set1.
15248
15249 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
15250
15251 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
15252 for !TARGET_64BIT.
15253
15254 2015-07-20 Aditya Kumar <hiraditya@msn.com>
15255
15256 * graphite-isl-ast-to-gimple.c:
15257 Refactor so that each function can access 'region'. This will help
15258 maintain a parameter rename_map within a region.
15259
15260 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15261
15262 * config/rs6000/rs6000.md (*lt0_disi): New.
15263
15264 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15265
15266 PR target/66217
15267 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
15268 "available letters" comment.
15269 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
15270 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
15271 and_2rld_operand): Delete.
15272 (and_operand): Adjust.
15273 (rotate_mask_operator): New.
15274 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
15275 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
15276 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
15277 extract_ME): Delete.
15278 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
15279 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
15280 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
15281 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
15282 rs6000_emit_2insn_and): New.
15283 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
15284 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
15285 includes_rldic_lshift_p, includes_rldicr_lshift_p,
15286 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
15287 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
15288 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
15289 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
15290 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
15291 rs6000_emit_2insn_and): New.
15292 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
15293 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
15294 handling.
15295 <NOT>: Don't fall through to next case.
15296 <AND>: Handle the various rotate-and-mask cases directly.
15297 <IOR>: Always cost as one insn.
15298 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
15299 (and<mode>3): Adjust expander for the new patterns.
15300 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
15301 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
15302 (*and<mode>3_imm_dot_shifted): New.
15303 (*and<mode>3_mask): Delete, rewrite as ...
15304 (and<mode>3_mask): ... New.
15305 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
15306 (andsi3_internal0_nomc): Delete.
15307 (*andsi3_internal6): Delete.
15308 (*and<mode>3_2insn): New.
15309 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
15310 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
15311 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
15312 *insvdi_internal3): Delete.
15313 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
15314 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
15315 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
15316 *ior<mode>_mask): New.
15317 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
15318 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15319 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15320 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15321 Delete.
15322 (ashr<mode>3): Delete expander.
15323 (*ashr<mode>3): Rename to ...
15324 (ashr<mode>3): ... This.
15325 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
15326 (*rotldi3_internal4, *rotldi3_internal5 and split,
15327 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
15328 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
15329 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
15330 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
15331 (splitter for loading a mask): Adjust.
15332 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
15333
15334 2015-07-20 Marek Polacek <polacek@redhat.com>
15335
15336 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
15337 output_add_clobbers, output_added_clobbers_hard_reg_p,
15338 gen_rtx_scratch): Remove declarations.
15339
15340 2015-07-20 Marek Polacek <polacek@redhat.com>
15341
15342 PR c++/55095
15343 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
15344
15345 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15346
15347 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
15348 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
15349
15350 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15351
15352 * combine.c (combine_simplify_rtx): Move simplification step
15353 before various transformations/substitutions.
15354
15355 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
15356
15357 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
15358 (struct int_traits): Likewise.
15359
15360 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15361
15362 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
15363 function to vmsdbgout_function_decl.
15364
15365 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
15366
15367 PR target/66922
15368 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
15369 from misaligned positions.
15370 (ix86_expand_pinsr): Reject insertions to misaligned positions.
15371
15372 2015-07-18 Sebastian Pop <s.pop@samsung.com>
15373
15374 PR middle-end/46851
15375 PR middle-end/60340
15376 * Makefile.in: Removed omega.o.
15377 * common.opt: Document flag fcheck-data-deps as deprecated.
15378 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
15379 its associated params: omega-max-vars, omega-max-geqs,
15380 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
15381 omega-max-keys, omega-eliminate-redundant-constraints.
15382 * doc/loop.texi: Remove all the section on Omega.
15383 * graphite-blocking.c: Include missing params.h: it used to be
15384 included through tree-data-ref.h and omega.h.
15385 * graphite-isl-ast-to-gimple.c: Same.
15386 * graphite-optimize-isl.c: Same.
15387 * graphite-sese-to-poly.c: Same.
15388 * graphite.c: Same.
15389 * omega.c: Remove.
15390 * omega.h: Remove.
15391 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
15392 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
15393 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
15394 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
15395 * passes.def: Remove pass_check_data_deps.
15396 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
15397 (dump_conflict_function): Same.
15398 (dump_subscript): Same.
15399 (print_direction_vector): Same.
15400 (print_dir_vectors): Same.
15401 (print_lambda_vector): Same.
15402 (print_dist_vectors): Same.
15403 (dump_data_dependence_relation): Same.
15404 (dump_data_dependence_relations): Same.
15405 (dump_dist_dir_vectors): Same.
15406 (dump_ddrs): Same.
15407 (init_omega_eq_with_af): Removed.
15408 (omega_extract_distance_vectors): Removed.
15409 (omega_setup_subscript): Removed.
15410 (init_omega_for_ddr_1): Removed.
15411 (init_omega_for_ddr): Removed.
15412 (ddr_consistent_p): Removed.
15413 (compute_affine_dependence): Do not use omega to check data
15414 dependences.
15415 (compute_data_dependences_for_bb): Removed.
15416 (analyze_all_data_dependences): Removed.
15417 (tree_check_data_deps): Removed.
15418 * tree-data-ref.h: Do not include omega.h.
15419 (compute_data_dependences_for_bb): Removed.
15420 (tree_check_data_deps): Removed.
15421 * tree-ssa-loop.c (pass_check_data_deps): Removed.
15422 (make_pass_check_data_deps): Removed.
15423 * tree-ssa-phiopt.c: Include params.h.
15424 * tree-vect-data-refs.c: Same.
15425 * tree-vect-slp.c: Same.
15426
15427 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
15428
15429 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
15430 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
15431 (mem->fpreg splitters): Ditto.
15432 (general_operand->nonimmediate_operand splitter): Use explicit modes.
15433 Disable DFmode for TARGET_64BIT.
15434
15435 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
15436
15437 PR target/66906
15438 * config/i386/i386.c (ix86_expand_prologue): Replicate static
15439 chain on the stack.
15440
15441 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15442
15443 * config/nvptx/mkoffload.c (process): Constify host data.
15444 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
15445 Constify host data.
15446 (generate_host_descr_file): Likewise.
15447
15448 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
15449 Sebastian Pop <s.pop@samsung.com>
15450
15451 PR middle-end/61929
15452 * graphite-dependences.c (add_pdr_constraints): Renamed
15453 pdr->extent to pdr->subscript_sizes.
15454 * graphite-interchange.c (build_linearized_memory_access): Add
15455 back all gcc_assert's that the "isl_int to isl_val conversion"
15456 patch has removed. Refactored.
15457 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
15458 * graphite-poly.c (new_poly_dr): Same.
15459 (free_poly_dr): Same.
15460 * graphite-poly.h (struct poly_dr): Same.
15461 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
15462 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
15463 * graphite-scop-detection.h: Fix space.
15464 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
15465 back all gcc_assert's removed by a previous patch.
15466 (wrap): Remove the_isl_ctx global variable that the same patch has
15467 added.
15468 (build_loop_iteration_domains): Same.
15469 (add_param_constraints): Same.
15470 (pdr_add_data_dimensions): Same. Refactored.
15471 (build_poly_dr): Renamed extent to subscript_sizes.
15472
15473 2015-07-17 Marek Polacek <polacek@redhat.com>
15474
15475 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
15476 * match.pd: ... here.
15477
15478 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15479
15480 * config/nvptx/mkoffload.c (process): Constify target data.
15481 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
15482 Constify target data.
15483 (generate_target_offloadend_file): Likewise.
15484
15485 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
15486
15487 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
15488 to allow renaming of PHI arguments on edges incoming from outer
15489 loop header, add corresponding check before start PHI iterator.
15490 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
15491 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
15492 with true force_vectorize. Set-up dominator for outer loop too.
15493 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
15494 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
15495 was marked with force_vectorize and has restricted cfg.
15496 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
15497 inner loop.
15498 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
15499 do peeling for outer loops.
15500
15501 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
15502 Matthias Klose <doko@ubuntu.com>
15503
15504 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
15505 build-sysroot, sysroot from the `Miscenalleous configure options' to
15506 the `Directories' section and strip trailing `/' from with_sysroot.
15507 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
15508 * configure: Regenerated.
15509
15510 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
15511
15512 PR target/66824
15513 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
15514 (TARGET_HARD_DF_REGS): Ditto.
15515 (TARGET_HARD_XF_REGS): Ditto.
15516 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
15517 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
15518 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
15519 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
15520 (*movsf_internal): Add alternatives 16 and 17. Enable
15521 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
15522
15523 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
15524
15525 PR rtl-optimization/66891
15526 * calls.c (expand_call): Wrap precompute_register_parameters with
15527 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
15528
15529 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
15530
15531 * config/nvptx/mkoffload.c (process): Constify mapping variables.
15532 Define target data struct and initialize it.
15533
15534 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
15535
15536 PR rtl-optimization/66626
15537 * ira.h (emit-rtl.h): Include.
15538 (non_spilled_static_chain_regno_p): New.
15539 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
15540 unless it is non spilled static chain pseudo.
15541 (assign_hard_rego): Spill memory profitable allocno unless it is
15542 non spilled static chain pseudo.
15543 (allocno_spill_priority_compare): Put non spilled static chain
15544 pseudo at the end of sorted array.
15545 (improve_allocation): Do nothing if we have static chain and
15546 non-local goto.
15547 (allocno__priority_compare_func): Put non spilled static chain
15548 pseudo at the beginning of sorted array.
15549 (move_spill_restore): Ignore non spilled static chain pseudo.
15550 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
15551 to non spilled static chain pseudo.
15552 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
15553 pseudo at the beginning of sorted array.
15554 (spill_for): Spill non spilled static chain pseudo last.
15555 * lra-constraints.c (lra_constraints): Remove static chain pseudo
15556 check for equivalence.
15557
15558 2015-07-16 Martin Liska <mliska@suse.cz>
15559
15560 PR ipa/66896.
15561 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
15562 dst_ctx if it does not exist.
15563
15564 2015-07-16 Martin Liska <mliska@suse.cz>
15565
15566 * hash-set.h (remove): New function.
15567 (iterator): New iteration class for hash_set.
15568
15569 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15570
15571 * genattrtab.c (make_canonical): Add a file_location parameter.
15572 Use fatal_at rather than fatal.
15573 (get_attr_value): Likewise. Update call to make_canonical.
15574 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
15575 (make_internal_attr): Update calls accordingly.
15576
15577 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15578
15579 * read-md.h (message_with_line, error_with_line): Delete.
15580 * read-md.c (message_with_line, error_with_line): Delete.
15581 * gensupport.h: Include read-md.h.
15582 (md_rtx_info): New structure.
15583 (read_md_rtx): Use it. Return a bool success value.
15584 * gensupport.c (read_md_rtx): Likewise.
15585 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
15586 (main): Update after interface changes.
15587 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
15588 (main): Update after interface changes.
15589 * genattrtab.c (insn_code_number): Delete.
15590 (optimize_attrs): Add a max_insn_code parameter and use it instead
15591 of insn_code_number.
15592 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
15593 Use *_at rather than *_with_line functions.
15594 (gen_insn): Likewise.
15595 (gen_delay): Likewise.
15596 (gen_insn_reserv): Likewise.
15597 (gen_bypass): Take an md_rtx_info rather than an rtx.
15598 (main): Update after interface changes. Use a local max_insn_code
15599 variable instead of insn_code_number.
15600 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
15601 an rtx. Use fatal_at rather than fatal.
15602 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
15603 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
15604 (gen_absence_set, gen_final_absence_set, gen_automaton)
15605 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
15606 (main): Update after interface changes.
15607 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
15608 and code number.
15609 (main): Update after interface changes.
15610 * genconditions.c (main): Use new read_md_rtx interface.
15611 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
15612 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
15613 (main): Update after interface changes.
15614 * genemit.c (insn_code_number, insn_index_number): Delete.
15615 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15616 Use fatal_at rather than fatal.
15617 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
15618 rather than fatal.
15619 (gen_split): Likewise.
15620 (main): Update after interface changes.
15621 * genextract.c (line_no): Delete.
15622 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15623 Update call to walk_rtx.
15624 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
15625 rather than message_with_line.
15626 (walk_rtx): Add an md_rtx_info argument. Update call to
15627 VEC_safe_set_locstr.
15628 (main): Update after interface changes.
15629 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
15630 and lineno. Use error_at rather than separate message_with_line
15631 calls and have_error assignments.
15632 (main): Update after interface changes.
15633 * genmddump.c (main): Use new read_md_rtx interface.
15634 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
15635 (main): Update after interface changes.
15636 * genoutput.c (next_code_number): Delete.
15637 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15638 (gen_peephole, gen_expand, gen_split): Likewise.
15639 (note_constraint): Likewise. Use *_at rather than *_with_line
15640 functions.
15641 (main): Update after interface changes.
15642 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
15643 rtx and lineno.
15644 (main): Update after interface changes.
15645 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
15646 than an rtx and lineno.
15647 (process_define_constraint): Likewise.
15648 (process_define_register_constraint): Likewise.
15649 (main): Update after interface changes.
15650 * genrecog.c (next_insn_code, pattern_lineno): Delete.
15651 (validate_pattern): Replace top-level rtx with an md_rtx_info.
15652 Use *_at rather than *_with_line functions.
15653 (match_pattern_2): Likewise.
15654 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
15655 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
15656 Use *_at rather than *_with_line functions.
15657 * gentarget-def.c (add_insn): New function.
15658 (main): Use it. Use new read_md_rtx interface.
15659
15660 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15661
15662 * gensupport.h (compute_test_codes): Take a file_location rather
15663 than a line number.
15664 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
15665 rather than *_with_line functions.
15666 (process_define_predicate): Update call to compute_test_codes.
15667 * genpreds.c (validate_exp): Take a file_location rather than a
15668 line number. Use *_at functions rather than *_with_line functions.
15669 (process_define_predicate): Update call to validate_exp.
15670 (constraint_data): Replace lineno field with a file_location.
15671 (add_constraint): Take a file_location rather than a line number.
15672 Use *_at functions rather than *_with_line functions. Fix error
15673 message for address constraints. Update after changes to
15674 validate_exp, constraint_data and compute_test_codes.
15675 (process_define_constraint): Update accordingly.
15676 (process_define_register_constraint): Likewise.
15677
15678 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15679
15680 * genoutput.c (data): Use a file_location to record the source
15681 position.
15682 (nothing): Delete.
15683 (idata, idata_end): Remove initialization.
15684 (constraint_data): Replace lineno with a file_location.
15685 (output_insn_data): Update after changes to data.
15686 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
15687 (scan_operands): Likewise, using *_at rather than *_with_line
15688 functions.
15689 (process_template): Likewise.
15690 (validate_insn_alternatives): Likewise.
15691 (validate_insn_operands): Likewise.
15692 (validate_optab_operands): Likewise.
15693 (init_insn_for_nothing): Initialize idata and idata_end.
15694 (note_constraint): Update after changes to constraint_data,
15695 using at rather than with_line functions.
15696 (mdep_constraint_len): Take a file_location rather than a
15697 line number. Use at rather than with_line functions.
15698
15699 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15700
15701 * read-md.h (fatal_at): Declare.
15702 * read-md.c (fatal_at): New function.
15703 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
15704 to record the source position.
15705 (check_attr_test): Take a file_location instead of a line number.
15706 Use fatal_at instead of fatal.
15707 (check_attr_value): Update after above changes, using "at"
15708 rather than "with_line" reporting functions.
15709 (convert_set_attr_alternative): Likewise.
15710 (gen_attr): Likewise.
15711 (check_defs): Likewise. Don't assign to read_md_filename.
15712 (gen_insn): Update initialization after above changes.
15713 (gen_delay): Likewise.
15714 (write_insn_cases): Print the filename for a define_peephole.
15715 (gen_insn_reserv): Take a line number as argument and update
15716 the call to check_attr_test.
15717 (main): Pass a line number to gen_insn_reserv.
15718
15719 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15720
15721 * read-md.h (file_location): New structure.
15722 (directive_handler_t): Take a file_location rather than a line number.
15723 (message_at, error_at): Declare.
15724 (read_skip_construct): Delete.
15725 * read-md.c (message_with_line_1): Replace with...
15726 (message_at_1): ...this new function.
15727 (message_at, error_at): New functions.
15728 (message_with_line, error_with_line): Update to use message_at_1.
15729 (handle_enum): Take a file_location rather than a line number
15730 and use error_at for error reporting.
15731 (handle_include): Likewise.
15732 (read_skip_construct): Likewise. Make static.
15733 (handle_file): Update after above changes. Pass a file_location
15734 rather than a line number to handle_directive.
15735 * gensupport.c (queue_elem): Replace separate filename and lineno
15736 with a file_location.
15737 (queue_pattern): Replace filename and lineno arguments with a
15738 file_location. Update after change to queue_elem.
15739 (process_define_predicate): Replace lineno argument with a
15740 file_location and use error_at for error reporting. Update
15741 after above changes.
15742 (process_rtx): Likewise.
15743 (subst_pattern_match): Likewise.
15744 (get_alternatives_number): Likewise.
15745 (alter_predicate_for_insn): Likewise.
15746 (rtx_handle_directive): Likewise.
15747 (is_predicable): Update after above changes, using error_at rather
15748 than error_with_line.
15749 (has_subst_attribute): Likewise.
15750 (identify_predicable_attribute): Likewise.
15751 (alter_attrs_for_subst_insn): Likewise.
15752 (process_one_cond_exec): Likewise.
15753 (process_substs_on_one_elem): Likewise.
15754 (process_define_subst): Likewise.
15755 (check_define_attr_duplicates): Likewise.
15756 (read_md_rtx): Update after change to queue_elem.
15757
15758 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15759
15760 * genoutput.c (next_index_number): Delete.
15761 (data): Remove index_number.
15762 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
15763 (main): Remove manipulation of next_index_number.
15764
15765 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15766
15767 * genattrtab.c (check_attr_value): Remove handling of null attrs.
15768 (make_canonical): Likewise.
15769
15770 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
15771
15772 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
15773 instead of adjust_address_nv.
15774 (restore_stack_nonlocal): Likewise.
15775 (nonlocal_goto): Likewise.
15776
15777 2015-07-16 Tom de Vries <tom@codesourcery.com>
15778
15779 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
15780 not have a corresponding loop header phi.
15781
15782 2015-07-16 Tom de Vries <tom@codesourcery.com>
15783
15784 * tree-parloops.c (create_loads_for_reductions): Handle case that
15785 reduction is unused.
15786
15787 2015-07-16 Richard Biener <rguenther@suse.de>
15788
15789 PR tree-optimization/66894
15790 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
15791 about deriving NE_EXPR from truncated values.
15792
15793 2015-07-16 Martin Liska <mliska@suse.cz>
15794
15795 * alloc-pool.h
15796 (object_allocator): Add new class.
15797 (pool_allocator::initialize): Use the underlying class.
15798 (pool_allocator::allocate): Likewise.
15799 (pool_allocator::remove): Likewise.
15800 (operator new): A new generic allocator.
15801 * asan.c (struct asan_mem_ref): Remove unused members.
15802 (asan_mem_ref_new): Replace new operator with
15803 object_allocator::allocate.
15804 (free_mem_ref_resources): Change deallocation.
15805 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
15806 with object_allocator.
15807 * config/sh/sh.c (add_constant): Replace new operator with
15808 object_allocator::allocate.
15809 (sh_reorg): Change call to a release method.
15810 * cselib.c (struct elt_list): Remove unused members.
15811 (new_elt_list): Replace new operator with
15812 object_allocator::allocate.
15813 (new_elt_loc_list): Likewise.
15814 (new_cselib_val): Likewise.
15815 (unchain_one_elt_list): Change delete operator with remove method.
15816 (unchain_one_elt_loc_list): Likewise.
15817 (unchain_one_value): Likewise.
15818 (cselib_finish): Release newly added static allocators.
15819 * cselib.h (struct cselib_val): Remove unused members.
15820 (struct elt_loc_list): Likewise.
15821 * df-problems.c (df_chain_alloc): Replace pool_allocator with
15822 object_allocator.
15823 * df-scan.c (struct df_scan_problem_data): Likewise.
15824 (df_scan_alloc): Likewise.
15825 * df.h (struct dataflow): Likewise.
15826 * dse.c (struct read_info_type): Likewise.
15827 (struct insn_info_type): Likewise.
15828 (struct dse_bb_info_type): Likewise.
15829 (struct group_info): Likewise.
15830 (struct deferred_change): Likewise.
15831 (get_group_info): Likewise.
15832 (delete_dead_store_insn): Likewise.
15833 (free_read_records): Likewise.
15834 (replace_read): Likewise.
15835 (check_mem_read_rtx): Likewise.
15836 (scan_insn): Likewise.
15837 (dse_step1): Likewise.
15838 (dse_step7): Likewise.
15839 * et-forest.c (struct et_occ): Remove unused members.
15840 (et_new_occ): Use allocate instead of new operator.
15841 (et_new_tree): Likewise.
15842 (et_free_tree): Call release method explicitly.
15843 (et_free_tree_force): Likewise.
15844 (et_free_pools): Likewise.
15845 (et_split): Use remove instead of delete operator.
15846 * et-forest.h (struct et_node): Remove unused members.
15847 * ipa-cp.c: Change pool_allocator to object_allocator.
15848 * ipa-inline-analysis.c: Likewise.
15849 * ipa-profile.c: Likewise.
15850 * ipa-prop.c: Likewise.
15851 * ipa-prop.h: Likewise.
15852 * ira-build.c (initiate_cost_vectors): Cast return value.
15853 (ira_allocate_cost_vector): Likewise.
15854 * ira-color.c (struct update_cost_record): Remove unused members.
15855 * lra-int.h (struct lra_live_range): Likewise.
15856 (struct lra_copy): Likewise.
15857 (struct lra_insn_reg): Likewise.
15858 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
15859 * lra.c (new_insn_reg): Replace new operator with allocate method.
15860 (free_insn_regs): Same for operator delete.
15861 (finish_insn_regs): Release new static allocator.
15862 (finish_insn_recog_data): Likewise.
15863 (lra_free_copies): Replace delete operator with remove method.
15864 (lra_create_copy): Replace operator new with allocate method.
15865 (invalidate_insn_data_regno_info): Same for remove method.
15866 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
15867 (free_debug_insn_changes): Replace delete operator with remove method.
15868 (replace_oldest_value_reg): Replace operator new with allocate method.
15869 (pass_cprop_hardreg::execute): Release new static variable.
15870 * sched-deps.c (sched_deps_init): Change pool_allocator to
15871 object_allocator.
15872 * sel-sched-ir.c: Likewise.
15873 * sel-sched-ir.h: Likewise.
15874 * stmt.c (expand_case): Likewise.
15875 (expand_sjlj_dispatch_table): Likewise.
15876 * tree-sra.c (struct access): Remove unused members.
15877 (struct assign_link): Likewise.
15878 (sra_deinitialize): Release newly added static pools.
15879 (create_access_1):Replace operator new with allocate method.
15880 (build_accesses_from_assign): Likewise.
15881 (create_artificial_child_access): Likewise.
15882 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
15883 pool_allocator to object_allocator.
15884 * tree-ssa-pre.c: Likewise.
15885 * tree-ssa-reassoc.c: Likewise.
15886 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
15887 * tree-ssa-strlen.c: Likewise.
15888 * tree-ssa-structalias.c: Likewise.
15889 * var-tracking.c (onepart_pool_allocate): New function.
15890 (unshare_variable): Use the newly added function.
15891 (variable_merge_over_cur): Likewise.
15892 (variable_from_dropped): Likewise.
15893 (variable_was_changed): Likewise.
15894 (set_slot_part): Likewise.
15895 (emit_notes_for_differences_1): Likewise.
15896 (vt_finalize): Release newly added static pools.
15897
15898 2015-07-16 Martin Jambor <mjambor@suse.cz>
15899
15900 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
15901 all uses. Fix two typos in its general comment.
15902 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
15903
15904 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
15905
15906 * config/i386/linux-common.h (LINK_MPX): New.
15907 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
15908 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
15909 indicating '-z bndplt' support by linker.
15910 * configure: Regenerate.
15911 * config.in: Regenerate.
15912
15913 2015-07-16 Richard Biener <rguenther@suse.de>
15914
15915 * fold-const.c (fold_widened_comparison): Remove.
15916 (fold_sign_changed_comparison): Likewise.
15917 (fold_comparison): Move widened and sign-changed comparison
15918 simplification ...
15919 * match.pd: ... to patterns here.
15920 * generic-match-head.c: Include target.h.
15921 * gimple-match-head.c: Likewise.
15922
15923 2015-07-16 Richard Biener <rguenther@suse.de>
15924
15925 * tree-ssa-dom.c (dom_valueize): New function.
15926 (record_temporary_equivalences): Also record equivalences
15927 for dominating stmts that have uses of equivalences we are
15928 about to record.
15929
15930 2015-07-16 Bin Cheng <bin.cheng@arm.com>
15931
15932 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
15933 add_autoinc_candidates.
15934 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
15935 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
15936 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
15937 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
15938 Call new function.
15939 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
15940 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
15941 Remove parameter struct iv*. Call add_autoinc_candidates here.
15942 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
15943 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
15944 Call new function.
15945 (find_iv_candidates): Call new functions.
15946
15947 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
15948
15949 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
15950 uninitialized-variable warning.
15951
15952 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
15953
15954 PR target/65249
15955 * config/sh/sh.md (movdi): Split simple reg move to two movsi
15956 when the destination is R0.
15957
15958 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
15959
15960 PR target/66866
15961 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
15962 * config/i386/i386.c (ix86_expand_pextr): New function.
15963 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
15964 for non-lowpart subregs.
15965 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
15966 (insv<mode>): Use SWI248 mode iterator.
15967 (insv<mode>_1): Ditto.
15968
15969 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15970 Sebastian Pop <s.pop@samsung.com>
15971
15972 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
15973 iterator to use_stmt.
15974
15975 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15976 Sebastian Pop <s.pop@samsung.com>
15977
15978 * graphite-scop-detection.c (build_scops_1): Discard scops for
15979 which entry==exit.
15980
15981 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15982 Sebastian Pop <s.pop@samsung.com>
15983
15984 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
15985 case of a return statement in scop.
15986
15987 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15988 Sebastian Pop <s.pop@samsung.com>
15989
15990 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
15991 INTEGER_TYPE parameters.
15992 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
15993 VECTOR_CST in scan_tree_for_params.
15994 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
15995
15996 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
15997
15998 * gimple-pretty-print.h: Don't include pretty-print.h.
15999 * tree-streamer.h: Don't include lto-streamer.h.
16000 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
16001 * gimple-streamer-in.c: Remove redundant includes.
16002 * gimple-streamer-out.c: Likewise.
16003 * ipa-devirt.c: Likewise.
16004 * ipa-icf.c: Likewise.
16005 * ipa-inline-analysis.c: Likewise.
16006 * ipa-polymorphic-call.c: Likewise.
16007 * ipa-profile.c: Likewise.
16008 * ipa-prop.c: Likewise.
16009 * ipa-pure-const.c: Likewise.
16010 * lto-cgraph.c: Likewise.
16011 * lto-streamer-in.c: Likewise.
16012 * lto-streamer-out.c: Likewise.
16013 * lto-streamer.c: Likewise.
16014 * tree-streamer-in.c: Likewise.
16015 * tree-streamer-out.c: Likewise.
16016 * tree-streamer.c: Likewise.
16017
16018 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
16019
16020 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
16021 include input.h.
16022 * opts.c: Remove multiline #include comment.
16023
16024 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
16025
16026 * config/nvptx/mkoffload.c (process): Add C++ protection to
16027 emitted code.
16028
16029 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16030
16031 PR target/66854
16032 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
16033 null before IEEE 128-bit floating point support patch.
16034
16035 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16036
16037 * simplify-rtx.c (simplify_ternary_operation): Add simplification
16038 for (!c) != {0,...,0} ? a : b for vector modes.
16039
16040 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
16041 Martin Jambor <mjambor@suse.cz>
16042
16043 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
16044 struct func_body_info* instead of struct ipa_node_params*, expecting
16045 fbi->info to be filled in. Replace throughout. Adjust call to
16046 ipa_load_from_parm_agg.
16047 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
16048 instead of struct ipa_node_params*. Adjust calls to other functions
16049 so that they pass either fbi or fbi->info.
16050 (set_switch_stmt_execution_predicate): Likewise.
16051 (will_be_nonconstant_predicate): Likewise.
16052 (compute_bb_predicates): Likewise.
16053 (estimate_function_body_sizes): Move asserts earlier. Fill in
16054 struct func_body_info, replace parms_info with fbi.info. Adjust
16055 calls to functions that now accept struct func_body_info.
16056 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
16057 (struct func_body_info): Likewise.
16058 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
16059 remove static. Adjust callers.
16060 (ipa_load_from_parm_agg): Remove.
16061 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
16062 (func_body_info): Likewise.
16063 (ipa_load_from_parm_agg): Adjust prototype.
16064
16065 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16066
16067 * gensupport.c (rtx_handle_directive): Adjust.
16068 * read-rtl.c (apply_iterators): Take vector to add rtxs to
16069 instead of expr list rtx.
16070 (add_define_attr_for_define_subst): Likewise.
16071 (add_define_subst_attr): Likewise.
16072 (read_subst_mapping): Likewise.
16073 (read_rtx): Likewise.
16074 * rtl.h (read_rtx): Adjust.
16075
16076 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16077
16078 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
16079
16080 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
16081
16082 PR target/58066
16083 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
16084 (*tls_local_dynamic_base_64_<mode>): Ditto.
16085 (*tls_local_dynamic_base_64_largepic): Ditto.
16086 (tls_global_dynamic_64_<mode>): Update expander pattern.
16087 (tls_local_dynamic_base_64_<mode>): Ditto.
16088
16089 2015-07-15 Richard Biener <rguenther@suse.de>
16090
16091 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
16092 and bool_var == 1 -> bool_var simplifications ...
16093 * match.pd: ... to patterns here. Factor out negate_expr_p
16094 cases from the A - B -> A + (-B) patterns as negate_expr_p
16095 predicate and add a -(A + B) -> (-B) - A pattern.
16096
16097 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
16098
16099 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
16100
16101 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
16102 Robert Suchanek <robert.suchanek@imgtec.com>
16103
16104 * config/mips/mips.c (mips_int_mask): New enum.
16105 (mips_shadow_set): Likewise.
16106 (int_mask): New variable.
16107 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
16108 (machine_function): Add int_mask and use_shadow_register_set.
16109 (mips_attribute_table): Add attribute handlers for interrupt and
16110 use_shadow_register_set.
16111 (mips_interrupt_mask): New static function.
16112 (mips_handle_interrupt_attr): Likewise.
16113 (mips_handle_use_shadow_register_set_attr): Likewise.
16114 (mips_use_shadow_register_set): Change return type to enum
16115 mips_shadow_set. Add argument handling for use_shadow_register_set
16116 attribute.
16117 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
16118 compare with mips_shadow_set enum.
16119 (mips_compute_frame_info): Add interrupt mask and
16120 use_shadow_register_set to per-function information structure.
16121 Add a stack slot for EPC unconditionally.
16122 (mips_expand_prologue): Compare use_shadow_register_set value
16123 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
16124 masked interrupt register but in EIC mode use K0 and save Cause in K0.
16125 EPC saved and restored unconditionally. Use PMODE_INSN macro when
16126 copying the stack pointer from the shadow register set.
16127 * config/mips/mips.h (SR_IM0): New define.
16128 * config/mips/mips.md (mips_rdpgpr): Rename to...
16129 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
16130 * doc/extend.texi (Declaring Attributes of Functions): Document
16131 optional arguments for interrupt and use_shadow_register_set
16132 attributes.
16133
16134 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
16135
16136 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
16137 interrupt attribute.
16138 (mips_expand_prologue): Disable the floating point unit in an ISR.
16139 * config/mips/mips.h (SR_COP1): New define.
16140
16141 2015-07-15 Richard Biener <rguenther@suse.de>
16142
16143 * genmatch.c (parser::peek, parser::peek_ident): Add argument
16144 to tell how many tokens to peek ahead (default 1).
16145 (parser::eat_token, parser::eat_ident): Return token consumed.
16146 (parser::parse_result): Parse new switch statement.
16147 * match.pd: Use case statements where appropriate.
16148
16149 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
16150
16151 PR rtl-optimization/58066
16152 * calls.c (expand_call): Precompute register parameters before stack
16153 alignment is performed.
16154
16155 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
16156
16157 PR rtl-optimization/66838
16158 * postreload.c (reload_cse_move2add): Also process
16159 CALL_INSN_FUNCTION_USAGE when resetting information of
16160 call-clobbered registers.
16161
16162 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16163 Cesar Philippidis <cesar@codesourcery.com>
16164 Chung-Lin Tang <cltang@codesourcery.com>
16165
16166 * config/nios2/constraints.md (U, v): New constraints.
16167 * config/nios2/predicates.md (rdprs_dcache_operand): New.
16168 (ldstex_memory_operand): New.
16169 * config/nios2/sync.md: New file.
16170 * config/nios2/nios2.md (unspecv): Add new builtin function
16171 UNSPECV codes.
16172 (rdprs, flushd, flushda, wrpie, eni): New patterns.
16173 (top-level): Include sync.md.
16174 * config/nios2/nios2.c (N2_FTYPES): Add function types for
16175 new builtins.
16176 (N2_BUILTINS): Add arch field setting, add new builtins.
16177 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
16178 for arch field.
16179 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
16180 Also handle ldex/stex/ldsex/stsex builtins.
16181 (nios2_expand_rdprs_builtin): New function.
16182 (nios2_expand_cache_builtin): New function.
16183 (nios2_expand_wrpie_builtin): New function.
16184 (nios2_expand_eni_builtin): New function.
16185 (nios2_expand_builtin): Add arch field handling and new builtin
16186 cases.
16187 * doc/extend.texi (Altera Nios II Built-in Functions): Document
16188 new builtins.
16189 * doc/md.texi (Machine Constraints): Document U and v constraints.
16190
16191 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16192 Cesar Philippidis <cesar@codesourcery.com>
16193 Chung-Lin Tang <cltang@codesourcery.com>
16194
16195 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
16196 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
16197 callee_save_reg_size and uses_anonymous_args fields.
16198 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
16199 (nios2_create_cfa_notes): New function.
16200 (nios2_adjust_stack): New function for adjusting stack.
16201 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
16202 Use nios2_adjust_stack.
16203 (nios2_expand_epilogue): Likewise.
16204 (nios2_expand_return): New function.
16205 (nios2_can_use_return_insn): Update for CDX pop.n usage.
16206 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
16207 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
16208 * config/nios2/nios2.md (return): Use nios2_expand_return.
16209
16210 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16211 Cesar Philippidis <cesar@codesourcery.com>
16212 Chung-Lin Tang <cltang@codesourcery.com>
16213
16214 * config/nios2/predicates.md (pop_operation): New.
16215 (ldwm_operation, stwm_operation): New.
16216 (nios2_hard_register_operand): New.
16217 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
16218 (ldstwm_operation_p): Declare.
16219 (gen_ldstwm_peep): Declare.
16220 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
16221 (base_reg_adjustment_p): New.
16222 (pop_operation_p): New.
16223 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
16224 (nios2_ldstwm_regset_p): New.
16225 (ldstwm_operation_p): New.
16226 (gen_ldst): New.
16227 (nios2_ldst_parallel): New.
16228 (struct ldswm_operand): Declare.
16229 (compare_ldstwm_operands): New.
16230 (can_use_cdx_ldstw): New.
16231 (gen_ldstwm_peep): New.
16232 * config/nios2/nios2-ldstwm.sml: New.
16233 * config/nios2/nios2.md: Include ldstwm.md.
16234 * config/nios2/ldstwm.md: Generated.
16235
16236 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16237 Cesar Philippidis <cesar@codesourcery.com>
16238 Chung-Lin Tang <cltang@codesourcery.com>
16239
16240 * config/nios2/nios2.h (LABEL_ALIGN): Define.
16241 (REG_ALLOC_ORDER): Define.
16242 (ADJUST_REG_ALLOC_ORDER): Define.
16243 (HONOR_REG_ALLOC_ORDER): Define.
16244 (CDX_REG_P): Define.
16245 (ANDCLEAR_INT): Define.
16246 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
16247 (nios2_label_align): Declare.
16248 (nios2_cdx_narrow_form_p): Declare.
16249 (nios2_adjust_reg_alloc_order): Declare.
16250 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
16251 operation.
16252 (nios2_large_unspec_reloc_p): New function, split from...
16253 (nios2_legitimate_pic_operand_p): ...here.
16254 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
16255 (nios2_print_operand_punct_valid_p): New.
16256 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
16257 (split_mem_address): New.
16258 (split_alu_insn): New.
16259 (cdxreg): New.
16260 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
16261 (enum nios2_add_insn_kind): New.
16262 (nios2_add_insn_names, nios2_add_insn_narrow): New.
16263 (nios2_add_insn_classify): New.
16264 (nios2_add_insn_asm): New.
16265 (nios2_cdx_narrow_form_p): New.
16266 (label_align, min_labelno, max_labelno): New.
16267 (nios2_reorg): New.
16268 (nios2_label_align): New.
16269 (nios2_adjust_reg_alloc_order): New.
16270 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16271 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16272 * config/nios2/constraints.md (P): New constraint.
16273 * config/nios2/predicates.md (const_and_operand): New.
16274 (and_operand): New.
16275 (stack_memory_operand): New.
16276 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
16277 (length): Update to use nios2_cdx_narrow_form_p().
16278 (type): Add new insn type values.
16279 (control, alu, st, ld, shift): Update insn reservations with
16280 new insn type values.
16281 (*high, *lo_sum): Define new insn patterns for constant generation.
16282 (movqi_internal, movhi_internal, movsi_internal): Reduce
16283 alternatives, update asm template to handle CDX variants, update
16284 type attributes.
16285 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
16286 template, update type attributes.
16287 (extendhisi2, extendqi<mode>2): Likewise.
16288 (addsi3): Change to use function for asm string.
16289 (subsi3): Add CDX notation to asm template, update type attributes.
16290 (negsi3, one_cmplsi3): Likewise.
16291 (andsi3): New pattern, specialized from logical patterns.
16292 (<code>si3): Remove and case, combine alternatives, update asm
16293 template.
16294 (<shift_op>si3): Add CDX notation, update type attributes.
16295 (rotrsi3): Update type attribute.
16296 (*merge, extzv, insv): New insn patterns.
16297 (return): Change to define_expand.
16298 (simple_return): Add CDX notation, update type attributes.
16299 (indirect_jump): Add CDX notation.
16300 (jump): Update asm cases, update length attribute expression.
16301 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
16302 (nios2_cbranch): Update asm cases and length attribute expression
16303 to handle CDX variants.
16304 (nios2_cmp<code>): Update asm template.
16305 (nop): Add CDX notation, update type attributes.
16306 (trap): Add CDX notation.
16307 (ctrapsi4): Update asm cases and length attribute expression to
16308 handle CDX variant.
16309 * doc/md.texi (Machine Constraints): Document P constraint.
16310
16311 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16312 Cesar Philippidis <cesar@codesourcery.com>
16313 Chung-Lin Tang <cltang@codesourcery.com>
16314
16315 * config/nios2/nios2.h (SMALL_INT12): New macro.
16316 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
16317 (nios2_valid_addr_expr_p): Use it.
16318 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
16319 with implicit "io" instructions on R2.
16320 * config/nios2/constraints.md (w): New constraint.
16321 * config/nios2/predicates.md (ldstio_memory_operand): New.
16322 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
16323 operand predicate and constraint.
16324 (ld<bh>io_signed, st<bhw>io>): Likewise.
16325 * doc/md.texi (Machine Constraints): Document w constraint.
16326
16327 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16328 Cesar Philippidis <cesar@codesourcery.com>
16329 Chung-Lin Tang <cltang@codesourcery.com>
16330
16331 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
16332 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
16333 Nios II architecture level.
16334 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
16335 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
16336 (OPTION_DEFAULT_SPECS): Define.
16337 (ASM_SPEC): Add -march= spec strings.
16338 * config/nios2/nios2.c (nios2_option_override): Check for
16339 conflicts involving new options.
16340 * config.gcc (nios2*-*-*): Support --with-arch=.
16341 * doc/invoke.texi (Option Summary, Nios II Options): Document
16342 -march=, -mbmx, and -mcdx.
16343
16344 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
16345
16346 PR rtl-optimization/66626
16347 * lra-constraints.c (lra_constraints): Prevent equivalence
16348 substitution for static chain pseudo in functions with nonlocal
16349 goto.
16350
16351 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16352
16353 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
16354 (nios2_emit_stack_limit_check): Add size parameter. Handle
16355 -fstack-limit-symbol as well as -fstack-limit-register.
16356 (nios2_expand_prologue): Emit only a single stack limit check,
16357 even if multiple stack adjustments are required.
16358 (nios2_option_override): Diagnose unsupported combination of -fpic
16359 and -stack-limit-symbol.
16360
16361 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
16362
16363 * Makefile.in (top_srcdir): New.
16364 * configure.ac: Use AM_ZLIB.
16365 * configure: Regeneated.
16366
16367 2015-07-14 Matthias Klose <doko@ubuntu.com>
16368
16369 PR target/66840
16370 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
16371
16372 2015-07-14 Richard Biener <rguenther@suse.de>
16373
16374 PR tree-optimization/66863
16375 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
16376 what we record for conversion use stmt lhs inequalities.
16377
16378 2015-07-14 Richard Biener <rguenther@suse.de>
16379
16380 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
16381 (decision_tree::gen_gimple): Likewise.
16382
16383 2015-07-14 Tom de Vries <tom@codesourcery.com>
16384
16385 * gcc.c (greater_than_spec_func): Declare forward.
16386 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
16387 -ftree-parallelize-loops={0,1}.
16388 (static_spec_functions): Add greater_than_spec_func function with name
16389 "gt".
16390 (greater_than_spec_func): New function.
16391
16392 2015-07-14 Richard Biener <rguenther@suse.de>
16393
16394 * tree-ssa-dom.c (record_temporary_equivalences): Merge
16395 wideing type conversion case from record_equivalences_from_incoming_edge
16396 and use record_equality to record equivalences.
16397 (record_equivalences_from_incoming_edge): Call
16398 record_temporary_equivalences.
16399
16400 2015-07-14 Richard Biener <rguenther@suse.de>
16401
16402 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
16403 (struct if_expr): New.
16404 (struct with_expr): Likewise.
16405 (is_a_helper): Add helpers for if_expr and with_expr.
16406 (struct simplify): Add simplify_kind enum and member. Remove
16407 ifexpr_vec member.
16408 (simplify::simplify): Adjust.
16409 (lower_commutative): Adjust.
16410 (lower_opt_convert): Likewise.
16411 (lower_cond): Likewise.
16412 (replace_id): Handle with_expr and if_expr.
16413 (lower_for): Adjust.
16414 (dt_simplify::gen_1): New recursive worker, split out from ...
16415 (dt_simplify::gen): ... here. Deal with if and with expansion
16416 recursively.
16417 (capture_info::capture_info): Take context argument
16418 (capture_info::walk_result): Only analyze specific result.
16419 (parser::parse_result): New function.
16420 (parser::parse_simplify): Adjust to parse ifs with then end
16421 else case.
16422 (parser::parse_if): Simplify.
16423 (parser::parse_pattern): Pass down simplify kind.
16424 * match.pd: Convert if structure to new syntax.
16425
16426 2015-07-13 Marek Polacek <polacek@redhat.com>
16427
16428 * rtl.c (rtx_equal_p_cb): Fix typo.
16429
16430 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
16431
16432 * omega.h: Don't include config.h, don't include params.h again if
16433 omega.h has already been included.
16434 * graphite-poly.h: Include sese.h.
16435 * graphite.c: Don't include sese.h, remove needless includes and
16436 minimize includes outside #ifdef HAVE_isl block.
16437 * graphite-blocking.c: Don't include sese.h, remove needless includes,
16438 and wrap entire file in #ifdef HAVE_isl
16439 * graphite-dependences.c: Likewise.
16440 * graphite-interchange.c: Likewise.
16441 * graphite-isl-ast-to-gimple.c: Likewise.
16442 * graphite-optimize-isl.c: Likewise.
16443 * graphite-poly.c: Likewise.
16444 * graphite-scop-detection.c: Likewise.
16445 * graphite-sese-to-poly.c: Likewise.
16446
16447 2015-07-13 Tom de Vries <tom@codesourcery.com>
16448
16449 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
16450
16451 2015-07-13 Renlin Li <renlin.li@arm.com>
16452
16453 PR rtl/66556
16454 * simplify-rtx.c (simplify_const_relational_operation): Add
16455 side_effects_p checks.
16456
16457 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
16458
16459 * bitmap.h: Fix double word typos.
16460 * builtins.c: Same.
16461 * calls.c: Same.
16462 * cfgloopmanip.c: Same.
16463 * cgraph.c: Same.
16464 * cgraph.h: Same.
16465 * cgraphclones.c: Same.
16466 * combine.c: Same.
16467 * config/aarch64/aarch64-protos.h: Same.
16468 * config/aarch64/aarch64.c: Same.
16469 * config/aarch64/aarch64.md: Same.
16470 * config/arm/arm.md: Same.
16471 * config/arm/arm1020e.md: Same.
16472 * config/arm/arm1026ejs.md: Same.
16473 * config/arm/arm926ejs.md: Same.
16474 * config/arm/fa526.md: Same.
16475 * config/arm/fa606te.md: Same.
16476 * config/arm/fa626te.md: Same.
16477 * config/arm/fa726te.md: Same.
16478 * config/arm/fmp626.md: Same.
16479 * config/darwin.c: Same.
16480 * config/epiphany/epiphany.c: Same.
16481 * config/frv/frv.c: Same.
16482 * config/ft32/ft32.c: Same.
16483 * config/gnu-user.h: Same.
16484 * config/h8300/constraints.md: Same.
16485 * config/i386/i386.c: Same.
16486 * config/i386/i386.md: Same.
16487 * config/iq2000/iq2000.md: Same.
16488 * config/mips/mips.c: Same.
16489 * config/mmix/mmix.md: Same.
16490 * config/moxie/moxie.c: Same.
16491 * config/nds32/nds32.md: Same.
16492 * config/pa/pa.h: Same.
16493 * config/rs6000/aix.h: Same.
16494 * config/rs6000/rs6000.h: Same.
16495 * config/sh/sh.c: Same.
16496 * config/tilegx/tilegx.md: Same.
16497 * config/tilepro/gen-mul-tables.cc: Same.
16498 * cse.c: Same.
16499 * dbxout.c: Same.
16500 * doc/invoke.texi: Same.
16501 * dse.c: Same.
16502 * dwarf2out.c: Same.
16503 * final.c: Same.
16504 * gcc.c: Same.
16505 * genmatch.c: Same.
16506 * gimplify.c: Same.
16507 * hash-table.h: Same.
16508 * internal-fn.c: Same.
16509 * ipa-cp.c: Same.
16510 * ipa-devirt.c: Same.
16511 * ipa-icf.c: Same.
16512 * ipa-icf.h: Same.
16513 * ipa-profile.c: Same.
16514 * ipa-prop.c: Same.
16515 * ipa-prop.h: Same.
16516 * ira.c: Same.
16517 * omp-low.c: Same.
16518 * reg-stack.c: Same.
16519 * regcprop.c: Same.
16520 * reorg.c: Same.
16521 * rtl.h: Same.
16522 * sbitmap.h: Same.
16523 * tree-eh.c: Same.
16524 * tree-inline.c: Same.
16525 * tree-sra.c: Same.
16526 * tree-ssa-dom.c: Same.
16527 * tree-ssa-loop-ivopts.c: Same.
16528 * tree-ssa-structalias.c: Same.
16529 * tree-ssa-tail-merge.c: Same.
16530 * tree-ssa-ter.c: Same.
16531 * tree-ssa-threadupdate.c: Same.
16532 * tree-ssa-uninit.c: Same.
16533 * tree-ssanames.c: Same.
16534 * tree-vect-loop-manip.c: Same.
16535 * tree-vrp.c: Same.
16536 * tree.c: Same.
16537 * valtrack.c: Same.
16538 * vec.h: Same.
16539
16540 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
16541
16542 PR middle-end/66726
16543 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
16544 tree_ssa_phiopt_worker): Call it.
16545
16546 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
16547
16548 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
16549 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
16550 REG_EQUAL note.
16551
16552 2015-07-11 Marek Polacek <polacek@redhat.com>
16553
16554 PR middle-end/66353
16555 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
16556 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
16557 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
16558 rather than bb_has_abnormal_call_pred.
16559 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
16560 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
16561 rather than bb_has_abnormal_call_pred.
16562
16563 2015-07-10 Anatoly Sokolov <aesok@post.ru>
16564
16565 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16566 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
16567 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16568 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
16569 v850_legitimate_address_p): New functions.
16570 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
16571
16572 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
16573
16574 PR target/66819
16575 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
16576 indirect sibcall with register arguments if register available
16577 for argument passing.
16578 (init_cumulative_args): Set cfun->machine->arg_reg_available
16579 to (cum->nregs > 0) or to true if function has a variable
16580 argument list.
16581 (function_arg_advance_32): Set cfun->machine->arg_reg_available
16582 to false if cum->nregs <= 0.
16583 * config/i386/i386.h (machine_function): Add arg_reg_available.
16584
16585 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
16586
16587 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
16588 and gen_higpart instead of gen_rtx_SUBREG.
16589 * config/i386/i386.md
16590 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
16591 (read-modify peephole2): Use gen_lowpart instead of
16592 gen_rtx_SUBREG for operand 5.
16593
16594 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
16595
16596 * config/tilepro/gen-mul-tables.cc (main): Change include list for
16597 generated files.
16598 * config/tilepro/mul-tables.c: Regenerate.
16599 * config/tilegx/mul-tables.c: Regenerate.
16600
16601 2015-07-10 Richard Biener <rguenther@suse.de>
16602
16603 * fold-const.c (distribute_bit_expr): Remove.
16604 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
16605 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
16606 to A & (B | C) and simplifying A << C1 << C2 to ...
16607 * match.pd: ... patterns here.
16608
16609 2015-07-10 Jiong Wang <jiong.wang@arm.com>
16610
16611 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16612 Mark mem as READONLY and NOTRAP for PIC symbol.
16613
16614 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
16615
16616 * gimple-predict.h: New file.
16617 (gimple_predict_predictor, gimple_predict_set_predictor,
16618 gimple_predict_outcome, gimple_predict_set_outcome,
16619 gimple_build_predict): Relocate here.
16620 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
16621 gimple_predict_outcome, gimple_predict_set_outcome): Move to
16622 gimple-predict.h.
16623 * gimple.c (gimple_build_predict): Move to gimple-predict.h
16624 * basic-block.h: Don't include cfghooks.h.
16625 * backend.h: Don't include predict.h.
16626 * cfghooks.h: Include predict.h.
16627 * gimple-pretty-print.c: Include gimple-predict.h.
16628 * gimplify.c: Likwise.
16629 * predict.c: Adjust includes.
16630 * tree-inline.c: Likewise.
16631 * asan.c: Likewise.
16632 * auto-inc-dec.c: Likewise.
16633 * auto-profile.c: Likewise.
16634 * bb-reorder.c: Likewise.
16635 * builtins.c: Likewise.
16636 * caller-save.c: Likewise.
16637 * calls.c: Likewise.
16638 * cfganal.c: Likewise.
16639 * cfgbuild.c: Likewise.
16640 * cfg.c: Likewise.
16641 * cfgcleanup.c: Likewise.
16642 * cfgexpand.c: Likewise.
16643 * cfghooks.c: Likewise.
16644 * cfgloopanal.c: Likewise.
16645 * cfgloop.c: Likewise.
16646 * cfgloopmanip.c: Likewise.
16647 * cfgrtl.c: Likewise.
16648 * cgraph.c: Likewise.
16649 * cgraphunit.c: Likewise.
16650 * combine.c: Likewise.
16651 * cprop.c: Likewise.
16652 * cse.c: Likewise.
16653 * dce.c: Likewise.
16654 * dojump.c: Likewise.
16655 * dse.c: Likewise.
16656 * except.c: Likewise.
16657 * expmed.c: Likewise.
16658 * expr.c: Likewise.
16659 * final.c: Likewise.
16660 * fold-const.c: Likewise.
16661 * function.c: Likewise.
16662 * fwprop.c: Likewise.
16663 * gcc-plugin.h: Likewise.
16664 * gcse.c: Likewise.
16665 * genattrtab.c: Likewise.
16666 * genemit.c: Likewise.
16667 * gengtype.c: Likewise.
16668 * genopinit.c: Likewise.
16669 * genoutput.c: Likewise.
16670 * genpreds.c: Likewise.
16671 * genrecog.c: Likewise.
16672 * gimple-fold.c: Likewise.
16673 * gimple-iterator.c: Likewise.
16674 * gimple-ssa-isolate-paths.c: Likewise.
16675 * gimple-ssa-strength-reduction.c: Likewise.
16676 * graph.c: Likewise.
16677 * graphite-blocking.c: Likewise.
16678 * graphite.c: Likewise.
16679 * graphite-dependences.c: Likewise.
16680 * graphite-interchange.c: Likewise.
16681 * graphite-isl-ast-to-gimple.c: Likewise.
16682 * graphite-optimize-isl.c: Likewise.
16683 * graphite-poly.c: Likewise.
16684 * graphite-scop-detection.c: Likewise.
16685 * graphite-sese-to-poly.c: Likewise.
16686 * haifa-sched.c: Likewise.
16687 * ifcvt.c: Likewise.
16688 * internal-fn.c: Likewise.
16689 * ipa-cp.c: Likewise.
16690 * ipa-profile.c: Likewise.
16691 * ipa-split.c: Likewise.
16692 * ipa-utils.c: Likewise.
16693 * ira-build.c: Likewise.
16694 * ira-color.c: Likewise.
16695 * ira-conflicts.c: Likewise.
16696 * ira-costs.c: Likewise.
16697 * ira-emit.c: Likewise.
16698 * ira-lives.c: Likewise.
16699 * jump.c: Likewise.
16700 * loop-doloop.c: Likewise.
16701 * loop-init.c: Likewise.
16702 * loop-invariant.c: Likewise.
16703 * loop-unroll.c: Likewise.
16704 * lower-subreg.c: Likewise.
16705 * lra-assigns.c: Likewise.
16706 * lra.c: Likewise.
16707 * lra-coalesce.c: Likewise.
16708 * lra-constraints.c: Likewise.
16709 * lra-lives.c: Likewise.
16710 * lto-cgraph.c: Likewise.
16711 * lto-streamer-in.c: Likewise.
16712 * mode-switching.c: Likewise.
16713 * modulo-sched.c: Likewise.
16714 * omp-low.c: Likewise.
16715 * optabs.c: Likewise.
16716 * passes.c: Likewise.
16717 * postreload.c: Likewise.
16718 * postreload-gcse.c: Likewise.
16719 * profile.c: Likewise.
16720 * recog.c: Likewise.
16721 * regstat.c: Likewise.
16722 * reload1.c: Likewise.
16723 * reorg.c: Likewise.
16724 * rtlanal.c: Likewise.
16725 * sched-ebb.c: Likewise.
16726 * sel-sched-ir.c: Likewise.
16727 * sese.c: Likewise.
16728 * shrink-wrap.c: Likewise.
16729 * simplify-rtx.c: Likewise.
16730 * stmt.c: Likewise.
16731 * store-motion.c: Likewise.
16732 * tracer.c: Likewise.
16733 * trans-mem.c: Likewise.
16734 * tree-call-cdce.c: Likewise.
16735 * tree-cfg.c: Likewise.
16736 * tree-cfgcleanup.c: Likewise.
16737 * tree-chkp.c: Likewise.
16738 * tree-complex.c: Likewise.
16739 * tree-eh.c: Likewise.
16740 * tree-if-conv.c: Likewise.
16741 * tree-loop-distribution.c: Likewise.
16742 * tree-outof-ssa.c: Likewise.
16743 * tree-parloops.c: Likewise.
16744 * tree-predcom.c: Likewise.
16745 * tree-pretty-print.c: Likewise.
16746 * tree-profile.c: Likewise.
16747 * tree-sra.c: Likewise.
16748 * tree-ssa.c: Likewise.
16749 * tree-ssa-coalesce.c: Likewise.
16750 * tree-ssa-dce.c: Likewise.
16751 * tree-ssa-dom.c: Likewise.
16752 * tree-ssa-forwprop.c: Likewise.
16753 * tree-ssa-ifcombine.c: Likewise.
16754 * tree-ssa-loop-ch.c: Likewise.
16755 * tree-ssa-loop-im.c: Likewise.
16756 * tree-ssa-loop-ivcanon.c: Likewise.
16757 * tree-ssa-loop-ivopts.c: Likewise.
16758 * tree-ssa-loop-manip.c: Likewise.
16759 * tree-ssa-loop-prefetch.c: Likewise.
16760 * tree-ssa-loop-unswitch.c: Likewise.
16761 * tree-ssa-math-opts.c: Likewise.
16762 * tree-ssa-phiopt.c: Likewise.
16763 * tree-ssa-pre.c: Likewise.
16764 * tree-ssa-reassoc.c: Likewise.
16765 * tree-ssa-sink.c: Likewise.
16766 * tree-ssa-tail-merge.c: Likewise.
16767 * tree-ssa-threadedge.c: Likewise.
16768 * tree-ssa-threadupdate.c: Likewise.
16769 * tree-switch-conversion.c: Likewise.
16770 * tree-tailcall.c: Likewise.
16771 * tree-vect-data-refs.c: Likewise.
16772 * tree-vect-loop.c: Likewise.
16773 * tree-vect-loop-manip.c: Likewise.
16774 * tree-vectorizer.c: Likewise.
16775 * tree-vrp.c: Likewise.
16776 * ubsan.c: Likewise.
16777 * value-prof.c: Likewise.
16778 * varasm.c: Likewise.
16779 * var-tracking.c: Likewise.
16780 * config/aarch64/aarch64-builtins.c: Likewise.
16781 * config/aarch64/aarch64.c: Likewise.
16782 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16783 * config/alpha/alpha.c: Likewise.
16784 * config/arc/arc.c: Likewise.
16785 * config/arm/arm.c: Likewise.
16786 * config/avr/avr.c: Likewise.
16787 * config/bfin/bfin.c: Likewise.
16788 * config/c6x/c6x.c: Likewise.
16789 * config/cr16/cr16.c: Likewise.
16790 * config/cris/cris.c: Likewise.
16791 * config/darwin.c: Likewise.
16792 * config/darwin-c.c: Likewise.
16793 * config/epiphany/epiphany.c: Likewise.
16794 * config/epiphany/mode-switch-use.c: Likewise.
16795 * config/epiphany/resolve-sw-modes.c: Likewise.
16796 * config/fr30/fr30.c: Likewise.
16797 * config/frv/frv.c: Likewise.
16798 * config/ft32/ft32.c: Likewise.
16799 * config/h8300/h8300.c: Likewise.
16800 * config/i386/i386.c: Likewise.
16801 * config/i386/winnt.c: Likewise.
16802 * config/ia64/ia64.c: Likewise.
16803 * config/iq2000/iq2000.c: Likewise.
16804 * config/lm32/lm32.c: Likewise.
16805 * config/m32c/m32c.c: Likewise.
16806 * config/m32r/m32r.c: Likewise.
16807 * config/m68k/m68k.c: Likewise.
16808 * config/mcore/mcore.c: Likewise.
16809 * config/mep/mep.c: Likewise.
16810 * config/microblaze/microblaze.c: Likewise.
16811 * config/mips/mips.c: Likewise.
16812 * config/mmix/mmix.c: Likewise.
16813 * config/mn10300/mn10300.c: Likewise.
16814 * config/moxie/moxie.c: Likewise.
16815 * config/msp430/msp430.c: Likewise.
16816 * config/nds32/nds32.c: Likewise.
16817 * config/nds32/nds32-cost.c: Likewise.
16818 * config/nds32/nds32-fp-as-gp.c: Likewise.
16819 * config/nds32/nds32-intrinsic.c: Likewise.
16820 * config/nds32/nds32-isr.c: Likewise.
16821 * config/nds32/nds32-md-auxiliary.c: Likewise.
16822 * config/nds32/nds32-memory-manipulation.c: Likewise.
16823 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16824 * config/nds32/nds32-predicates.c: Likewise.
16825 * config/nios2/nios2.c: Likewise.
16826 * config/nvptx/nvptx.c: Likewise.
16827 * config/pa/pa.c: Likewise.
16828 * config/pdp11/pdp11.c: Likewise.
16829 * config/rl78/rl78.c: Likewise.
16830 * config/rs6000/rs6000.c: Likewise.
16831 * config/rx/rx.c: Likewise.
16832 * config/s390/s390.c: Likewise.
16833 * config/sh/sh.c: Likewise.
16834 * config/sh/sh-mem.cc: Likewise.
16835 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16836 * config/sh/sh_treg_combine.cc: Likewise.
16837 * config/sparc/sparc.c: Likewise.
16838 * config/spu/spu.c: Likewise.
16839 * config/stormy16/stormy16.c: Likewise.
16840 * config/tilegx/tilegx.c: Likewise.
16841 * config/tilepro/tilepro.c: Likewise.
16842 * config/v850/v850.c: Likewise.
16843 * config/vax/vax.c: Likewise.
16844 * config/visium/visium.c: Likewise.
16845 * config/xtensa/xtensa.c: Likewise.
16846
16847 2015-07-10 Richard Biener <rguenther@suse.de>
16848
16849 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
16850 (decision_tree::gen_gimple): Likewise.
16851 (decision_tree::gen_generic): Likewise.
16852
16853 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
16854
16855 PR target/66813
16856 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
16857 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
16858
16859 2015-07-10 Jakub Jelinek <jakub@redhat.com>
16860
16861 PR middle-end/66820
16862 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
16863 or ORT_TASK contexts.
16864 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
16865 is non-zero.
16866
16867 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16868
16869 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
16870 above function.
16871
16872 2015-07-10 Tom de Vries <tom@codesourcery.com>
16873
16874 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
16875 insert nit + 1 bound.
16876
16877 2015-07-10 Richard Biener <rguenther@suse.de>
16878
16879 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
16880 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
16881 (if_convertible_loop_p_1): For this always compute bb predicates.
16882 (if_convertible_loop_p): And free them.
16883
16884 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16885
16886 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
16887 in dump message.
16888
16889 2015-07-10 Richard Biener <rguenther@suse.de>
16890
16891 PR tree-optimization/66823
16892 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
16893 inverted predicate.
16894
16895 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
16896
16897 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
16898 to handle mips[32|64]r3 and mips[32|64]r5.
16899
16900 2015-07-09 Jakub Jelinek <jakub@redhat.com>
16901
16902 PR middle-end/66633
16903 * tree-nested.c (get_static_chain): Or in a flag into
16904 info->static_chain_added.
16905 (get_frame_field, get_nonlocal_debug_decl): Likewise.
16906 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
16907 2015-07-01 changes.
16908 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
16909 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
16910 add it to clauses.
16911
16912 PR tree-optimization/66718
16913 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
16914 field.
16915 (vect_simd_lane_linear): New function.
16916 (vectorizable_simd_clone_call): Support using linear arguments for
16917 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
16918
16919 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
16920
16921 PR target/66821
16922 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
16923
16924 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
16925
16926 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
16927 Use machine mode, not enum machine_mode in the prototype.
16928
16929 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
16930 classify 128-bit floating point support.
16931 (FLOAT128_IBM_P): Likewise.
16932 (FLOAT128_VECTOR_P): Likewise.
16933 (FLOAT128_2REG_P): Likewise.
16934 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
16935 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
16936 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16937 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
16938
16939 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
16940 tests against TFmode/TDmode, since those modes do not use VSX
16941 addresses.
16942 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
16943 support.
16944 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
16945 tests against TFmode, etc.
16946 (invalid_e500_subreg): Add tests against IFmode/KFmode.
16947 (reg_offset_addressing_ok_p): Likewise.
16948 (rs6000_legitimate_offset_address_p): Likewise.
16949 (rs6000_legitimize_address): Likewise.
16950 (rs6000_legitimize_reload_address): Likewise.
16951 (rs6000_legitimate_address_p): Clean up tests against TFmode and
16952 TDmode to use the new helper macros, which will include IFmode and
16953 KFmode.
16954 (rs6000_emit_move): Likewise.
16955 (rs6000_darwin64_record_arg_recurse): Likewise.
16956 (print_operand): Likewise.
16957 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
16958 that uses a single vector register as a vector and not as a
16959 floating point register in terms of the calling sequence.
16960 (rs6000_discover_homogeneous_aggregate): Likewise.
16961 (rs6000_return_in_memory): Likewise.
16962 (init_cumulative_args): Likewise.
16963 (rs6000_function_arg_boundary): Likewise.
16964 (rs6000_function_arg_advance_1): Likewise.
16965 (rs6000_function_arg): Likewise.
16966 (rs6000_pass_by_reference): Likewise.
16967 (rs6000_gimplify_va_arg): Likewise.
16968 (rs6000_secondary_reload_memory): Use machine_mode not enum
16969 machine mode.
16970 (rs6000_split_multireg_move): Use new helper macros.
16971 (spe_func_has_64bit_regs_p): Likewise.
16972 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
16973 (output_toc): Use new helper macros.
16974 (rs6000_register_move_cost): Likewise.
16975 (rs6000_function_value): Add IEEE 128-bit floating point calling
16976 sequence support.
16977 (rs6000_libcall_value): Likewise.
16978 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
16979 floating point support.
16980 (rs6000_vector_mode_supported_p): Likewise.
16981
16982 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
16983
16984 PR rtl-optimization/66782
16985 * lra-int.h (struct lra_insn_recog_data): Add comment about
16986 clobbered hard regs for arg_hard_regs.
16987 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
16988 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
16989 Add condition for processing used hard regs.
16990 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
16991 Process clobbered hard regs.
16992
16993 2015-07-09 Michael Matz <matz@suse.de>
16994
16995 * genmatch.c (fprintf_indent): New function.
16996 (operand::gen_transform): Add indent parameter.
16997 (expr::gen_transform, c_expr::gen_transform,
16998 capture::gen_transform): Ditto and use fprintf_indent.
16999 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
17000 (dt_operand::gen, dt_operand::gen_predicate,
17001 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
17002 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
17003 (decision_tree::gen_gimple): Adjust calls and indent generated
17004 code.
17005 (decision_tree::gen_generic): Ditto.
17006 (write_predicate): Ditto.
17007
17008 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
17009
17010 PR target/66814
17011 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
17012 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
17013 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
17014 {GENERAL,SSE,MMX}_REG_P where appropriate.
17015
17016 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
17017
17018 * lto-streamer.h: Don't include target.h and alloc-pool.h.
17019 * builtins.c: Adjust includes.
17020 * gimple.c: Likewise.
17021 * ipa-icf.c: Likewise.
17022 * lto-opts.c: Likewise.
17023 * ipa-reference.c: Likewise.
17024 * lto-section-out.c: Likewise.
17025 * lto-streamer-in.c: Likewise.
17026 * lto-streamer-out.c: Likewise.
17027 * opts-global.c: Likewise.
17028 * symtab.c: Likewise.
17029 * tree-chkp.c: Likewise.
17030 * tree-ssa-live.c: Likewise.
17031 * tree-streamer-in.c: Likewise.
17032 * tree-streamer-out.c: Likewise.
17033 * config/darwin.c: Likewise.
17034 * config/i386/winnt.c: Likewise.
17035
17036 2015-07-09 Richard Biener <rguenther@suse.de>
17037
17038 * genmatch.c (struct expr): Add force_single_use flag.
17039 (expr::expr): Add copy constructor.
17040 (capture_info::walk_match): Gather force_single_use captures.
17041 (expr::gen_transform): Use possibly NULLified sequence.
17042 (dt_simplify::gen): Apply single-use restrictions by NULLifying
17043 seq if any constrained expr is not single-use.
17044 (parser::parse_expr): Refactor to allow multiple flags. Handle
17045 's' flag to force an expression have a single-use if the pattern
17046 simplifies to more than one statement.
17047 * match.pd: Convert most single_use conditionals to :s flags.
17048
17049 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17050
17051 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
17052 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17053 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
17054
17055 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
17056
17057 * flags.h: Don't include flag-types.h or options.h.
17058 * opts-common.c: Adjust includes.
17059 * opts-global.c: Likewise.
17060 * common/config/epiphany/epiphany-common.c: Likewise.
17061
17062 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17063
17064 PR target/66818
17065 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
17066 for IA MCU.
17067
17068 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17069
17070 PR target/66817
17071 * config/i386/i386.c (ix86_return_in_memory): Return true
17072 if int_size_in_bytes returns negative for IA MCU.
17073
17074 2015-07-09 Marek Polacek <polacek@redhat.com>
17075
17076 PR tree-optimization/66718
17077 * Makefile.in (OBJS): Add gimple-laddress.o.
17078 * passes.def: Schedule pass_laddress.
17079 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
17080 * tree-pass.h (make_pass_laddress): Declare.
17081 * gimple-laddress.c: New file.
17082
17083 2015-07-09 Richard Biener <rguenther@suse.de>
17084
17085 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
17086
17087 2015-07-09 Richard Biener <rguenther@suse.de>
17088
17089 PR tree-optimization/66807
17090 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
17091
17092 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
17093
17094 * function.c (stack_protect_epilogue): Use if rather than switch for
17095 check targetm.have_stack_protect_test.
17096
17097 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17098
17099 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
17100 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
17101 * config/arc/arc.h: Likewise.
17102 * config/arm/arm.h: Likewise.
17103 * config/bfin/bfin.h: Likewise.
17104 * config/epiphany/epiphany.h: Likewise.
17105 * config/frv/frv.h: Likewise.
17106 * config/ia64/ia64.h: Likewise.
17107 * config/iq2000/iq2000.h: Likewise.
17108 * config/lm32/lm32.h: Likewise.
17109 * config/m32r/m32r.h: Likewise.
17110 * config/mcore/mcore.h: Likewise.
17111 * config/mep/mep.h: Likewise.
17112 * config/microblaze/microblaze.h: Likewise.
17113 * config/mips/mips.h: Likewise.
17114 * config/mmix/mmix.h: Likewise.
17115 * config/mn10300/mn10300.h: Likewise.
17116 * config/nds32/nds32.h: Likewise.
17117 * config/nios2/nios2.h: Likewise.
17118 * config/pa/pa.h: Likewise.
17119 * config/rl78/rl78.h: Likewise.
17120 * config/sh/sh.h: Likewise.
17121 * config/sparc/sparc.h: Likewise.
17122 * config/stormy16/stormy16.h: Likewise.
17123 * config/tilegx/tilegx.h: Likewise.
17124 * config/tilepro/tilepro.h: Likewise.
17125 * config/v850/v850.h: Likewise.
17126 * config/xtensa/xtensa.h: Likewise.
17127 * doc/tm.texi: Regenerate.
17128 * doc/tm.texi.in: Adjust.
17129 * combine.c (simplify_set): Likewise.
17130 (simplify_comparison): Likewise.
17131 * expr.c (store_constructor): Likewise.
17132 * internal-fn.c (expand_arith_overflow): Likewise.
17133 * reload.c (push_reload): Likewise.
17134 (find_reloads): Likewise.
17135 (find_reloads_subreg_address): Likewise.
17136 * reload1.c (eliminate_regs_1): Likewise.
17137 * rtlanal.c (nonzero_bits1): Likewise.
17138 (num_sign_bit_copies1): Likewise.
17139 * simplify-rtx.c (simplify_truncation): Likewise.
17140
17141 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17142
17143 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
17144 of AUTO_INC_DEC with the preprocessor.
17145 * combine.c (combine_instructions): Likewise.
17146 (can_combine_p): Likewise.
17147 (try_combine): Likewise.
17148 * emit-rtl.c (try_split): Likewise.
17149 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
17150 * lower-subreg.c (resolve_simple_move): Likewise.
17151 * lra.c (update_inc_notes): Likewise.
17152 * recog.c (asm_operand_ok): Likewise.
17153 (constrain_operands): Likewise.
17154 * regrename.c (scan_rtx_address): Likewise.
17155 * reload.c (update_auto_inc_notes): Likewise.
17156 (reg_inc_found_and_valid_p): Likewise.
17157 * reload1.c (reload): Likewise.
17158 (emit_input_reload_insns): Likewise.
17159 (delete_output_reload): Likewise.
17160 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
17161 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17162
17163 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17164
17165 * rtl.h: Always define AUTO_INC_DEC.
17166 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
17167 * combine.c (combine_instructions): Likewise.
17168 (can_combine_p): Likewise.
17169 (try_combine): Likewise.
17170 * emit-rtl.c (try_split): Likewise.
17171 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
17172 * lower-subreg.c (resolve_simple_move): Likewise.
17173 * lra.c (update_inc_notes): Likewise.
17174 * recog.c (asm_operand_ok): Likewise.
17175 (constrain_operands): Likewise.
17176 * regrename.c (scan_rtx_address): Likewise.
17177 * reload.c (update_auto_inc_notes): Likewise.
17178 (find_equiv_reg): Likewise.
17179 * reload1.c (reload): Likewise.
17180 (reload_as_needed): Likewise.
17181 (choose_reload_regs): Likewise.
17182 (emit_input_reload_insns): Likewise.
17183 (delete_output_reload): Likewise.
17184 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
17185 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17186
17187 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17188
17189 * combine.c (can_combine_def_p): Don't check the value of
17190 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
17191 (combinable_i3pat): Likewise.
17192 (mark_used_regs_combine): Likewise.
17193 * regrename.c (rename_chains): Likewise.
17194 * reload.c (find_reloads_address): Likewise.
17195 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
17196
17197 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17198
17199 * combine.c (update_rsp_from_reg_equal): Don't check if
17200 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
17201 (reg_nonzero_bits_for_combine): Likewise.
17202 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
17203 1.
17204 * config/frv/frv.h: Likewise.
17205 * config/lm32/lm32.h: Likewise.
17206 * config/mep/mep.h: Likewise.
17207 * config/mips/mips.h: Likewise.
17208 * config/rs6000/rs6000.h: Likewise.
17209 * config/sh/sh.h: Likewise.
17210 * config/tilegx/tilegx.h (enum reg_class): Likewise.
17211 * config/tilepro/tilepro.h: Likewise.
17212 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
17213 * doc/tm.texi: Regenerate.
17214 * doc/tm.texi.in: Adjust.
17215 * rtlanal.c (nonzero_bits1): Likewise.
17216
17217 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17218
17219 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
17220 with the preprocessor.
17221 (combine_instructions): Likewise.
17222 (try_combine): Likewise.
17223 (subst): Likewise.
17224 (distribute_notes): Likewise.
17225
17226 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17227
17228 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
17229 defined.
17230 (simplify_set): Likewise.
17231 * cse.c (cse_insn): Likewise.
17232 * fold-const.c (fold_single_bit_test): Likewise.
17233 (fold_unary_loc): Likewise.
17234 * postreload.c (reload_cse_simplify_set): Likewise.
17235 (reload_cse_simplify_operands): Likewise.
17236
17237 2015-07-08 Jiong Wang <jiong.wang@arm.com>
17238
17239 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
17240 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
17241
17242 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
17243
17244 PR target/66746
17245 * config/i386/x86intrin.h: Include <adxintrin.h> even if
17246 __iamcu__ is defined.
17247
17248 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
17249
17250 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
17251
17252 2015-07-08 Iain Sandoe <iain@codesourcery.com>
17253
17254 PR target/66523
17255 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
17256 names from preservation.
17257
17258 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
17259
17260 PR target/66806
17261 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
17262 change for IAMCU.
17263 (function_arg_advance_32): Don't pass vectors in registers for
17264 IAMCU.
17265 (function_arg_32): Likewise.
17266 (ix86_return_in_memory): Don't return vectors in registers for
17267 IAMCU.
17268
17269 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
17270
17271 PR middle-end/66334
17272 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
17273 hard regno live at the start of BB with incoming abnormal edges.
17274 * lra-lives.c (process_bb_lives): Ditto.
17275
17276 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
17277
17278 PR libgomp/65099
17279 * config/nvptx/mkoffload.c (main): Create an offload image only in
17280 64-bit configurations.
17281
17282 2015-07-08 Martin Liska <mliska@suse.cz>
17283
17284 PR bootstrap/66744
17285 * tree-sra.c (create_access_1): Call ctor without brackets.
17286 (create_artificial_child_access): Likewise.
17287
17288 2015-07-08 Richard Biener <rguenther@suse.de>
17289
17290 PR tree-optimization/66793
17291 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
17292 Properly split the block after stmts ending it.
17293
17294 2015-07-08 Richard Biener <rguenther@suse.de>
17295
17296 PR tree-optimization/66794
17297 * passes.c (execute_function_todo): Assert that post-dominators
17298 are not computed.
17299 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
17300 Free post-dominators.
17301
17302 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17303
17304 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
17305 with early exit.
17306
17307 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
17308
17309 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
17310 more than or equal 8 and less than 32 when optimizing for size.
17311
17312 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17313
17314 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
17315 COSTS_N_INSNS (1) and increment it appropriately throughout the
17316 function.
17317
17318 2015-07-08 Richard Biener <rguenther@suse.de>
17319
17320 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
17321
17322 2015-07-08 Alan Modra <amodra@gmail.com>
17323
17324 * target.def (rtx_costs): Remove "code" param, add "mode".
17325 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
17326 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
17327 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
17328 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
17329 call. Track mode when given in rtx.
17330 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
17331 (default_address_cost): Pass Pmode to rtx_cost.
17332 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
17333 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
17334 with NULL set.
17335 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
17336 (notreg_cost): Add mode param. Use it.
17337 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
17338 mode param and pass to set_src_cost. Update all calls.
17339 (hash_scan_set): Formatting.
17340 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
17341 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
17342 * hooks.h: Ditto.
17343 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
17344 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
17345 emit_store_flag): Update set_src_cost and rtx_cost calls.
17346 * auto-inc-dec.c (attempt_change): Likewise.
17347 * calls.c (precompute_register_parameters): Likewise.
17348 * combine.c (expand_compound_operation, make_extraction,
17349 force_to_mode, distribute_and_simplify_rtx): Likewise.
17350 * dojump.c (prefer_and_bit_test): Likewise.
17351 * dse.c (find_shift_sequence): Likewise.
17352 * expr.c (compress_float_constant): Likewise.
17353 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
17354 * ifcvt.c (noce_try_sign_mask): Likewise.
17355 * loop-doloop.c (doloop_optimize): Likewise.
17356 * loop-invariant.c (create_new_invariant): Likewise.
17357 * lower-subreg.c (shift_cost, compute_costs): Likewise.
17358 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
17359 lshift_cheap_p): Likewise.
17360 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
17361 try_replace_in_use, reload_cse_move2add): Likewise.
17362 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
17363 Likewise.
17364 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17365 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
17366 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
17367 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17368 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
17369 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
17370 to rtx_cost calls.
17371 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
17372 * config/arc/arc.c (arc_rtx_costs): Likewise.
17373 * config/arm/arm.c (arm_rtx_costs): Likewise.
17374 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
17375 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
17376 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
17377 * config/cris/cris.c (cris_rtx_costs): Likewise.
17378 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
17379 * config/frv/frv.c (frv_rtx_costs): Likewise.
17380 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
17381 * config/i386/i386.c (ix86_rtx_costs): Likewise.
17382 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
17383 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
17384 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
17385 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
17386 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
17387 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
17388 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
17389 * config/mep/mep.c (mep_rtx_cost): Likewise.
17390 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
17391 * config/mips/mips.c (mips_rtx_costs): Likewise.
17392 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
17393 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
17394 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
17395 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
17396 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
17397 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
17398 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
17399 * config/pa/pa.c (hppa_rtx_costs): Likewise.
17400 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
17401 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
17402 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
17403 * config/s390/s390.c (s390_rtx_costs): Likewise.
17404 * config/sh/sh.c (sh_rtx_costs): Likewise.
17405 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
17406 * config/spu/spu.c (spu_rtx_costs): Likewise.
17407 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
17408 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
17409 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
17410 * config/v850/v850.c (v850_rtx_costs): Likewise.
17411 * config/vax/vax.c (vax_rtx_costs): Likewise.
17412 * config/visium/visium.c (visium_rtx_costs): Likewise.
17413 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
17414 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
17415 "code" param, and pass as outer_code to first rtx_cost call. Pass
17416 mode to rtx_cost calls.
17417 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
17418 calls.
17419 (aarch64_rtx_costs_wrapper): Update.
17420 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
17421 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
17422 rtx_cost calls.
17423 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
17424 and rtx_cost calls.
17425 (avr_operand_rtx_cost): Similarly.
17426 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
17427 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
17428 * config/mips/mips.c (mips_stack_address_p): Comment typo.
17429 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
17430 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
17431 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
17432 rtx_cost.
17433 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
17434 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
17435 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
17436 * doc/tm.texi: Regenerate.
17437
17438 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
17439
17440 * tree-core.h: Include symtab.h.
17441 * rtl.h: Include hard-reg-set.h but not flags.h.
17442 (HARD_CONST): Remove condition compilation involving HARD_CONST since
17443 hard-reg-set.h is always included.
17444 * regs.h: Don't include hard-reg-set.h or rtl.h.
17445 * cfg.h: Include dominance.h.
17446 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
17447 * backend.h: New. Aggregate commonly used backend header files.
17448 * gimple-ssa.h: Don't include tree-hasher.h.
17449 * ssa.h: New. Aggregate commonly used SSA header files.
17450 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
17451 * sel-sched-ir.h: Flatten includes.
17452 * lra-int.h: Flatten completely.
17453 * sel-sched-dump.h: Flatten includes.
17454 * ira-int.h: Flatten includes.
17455 * gimple-streamer.h: Remove all includes.
17456 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
17457 * resource.h: Flatten hard-reg-set.h and df.h.
17458 * sched-int.h: Flatten insn-arrt.h and df.h.
17459 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
17460 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
17461 * genattrtab.c (write_header): Adjust generated includes.
17462 * genautomata.c (main): Likewise.
17463 * genconditions.c (write-header): Likewise.
17464 * genemit.c (main): Likewise.
17465 * gengtype.c (open_base_files): Likewise.
17466 * genopinit.c (main): Likewise.
17467 * genoutput.c (output_prologue): Likewise.
17468 * genpeep.c (main): Likewise.
17469 * genpreds.c (write_insn_preds_c): Likewise.
17470 * genrecog.c (write_header): Likewise.
17471 * alias.c: Adjust includes.
17472 * asan.c: Likewise.
17473 * attribs.c: Likewise.
17474 * auto-inc-dec.c: Likewise.
17475 * auto-profile.c: Likewise.
17476 * bb-reorder.c: Likewise.
17477 * bt-load.c: Likewise.
17478 * builtins.c: Likewise.
17479 * caller-save.c: Likewise.
17480 * calls.c: Likewise.
17481 * ccmp.c: Likewise.
17482 * cfg.c: Likewise.
17483 * cfganal.c: Likewise.
17484 * cfgbuild.c: Likewise.
17485 * cfgcleanup.c: Likewise.
17486 * cfgexpand.c: Likewise.
17487 * cfghooks.c: Likewise.
17488 * cfgloop.c: Likewise.
17489 * cfgloopanal.c: Likewise.
17490 * cfgloopmanip.c: Likewise.
17491 * cfgrtl.c: Likewise.
17492 * cgraph.c: Likewise.
17493 * cgraphbuild.c: Likewise.
17494 * cgraphclones.c: Likewise.
17495 * cgraphunit.c: Likewise.
17496 * cilk-common.c: Likewise.
17497 * combine-stack-adj.c: Likewise.
17498 * combine.c: Likewise.
17499 * compare-elim.c: Likewise.
17500 * convert.c: Likewise.
17501 * coverage.c: Likewise.
17502 * cppbuiltin.c: Likewise.
17503 * cprop.c: Likewise.
17504 * cse.c: Likewise.
17505 * cselib.c: Likewise.
17506 * data-streamer-in.c: Likewise.
17507 * data-streamer-out.c: Likewise.
17508 * data-streamer.c: Likewise.
17509 * dbxout.c: Likewise.
17510 * dce.c: Likewise.
17511 * ddg.c: Likewise.
17512 * debug.c: Likewise.
17513 * df-core.c: Likewise.
17514 * df-problems.c: Likewise.
17515 * df-scan.c: Likewise.
17516 * dfp.c: Likewise.
17517 * dojump.c: Likewise.
17518 * dominance.c: Likewise.
17519 * domwalk.c: Likewise.
17520 * double-int.c: Likewise.
17521 * dse.c: Likewise.
17522 * dumpfile.c: Likewise.
17523 * dwarf2asm.c: Likewise.
17524 * dwarf2cfi.c: Likewise.
17525 * dwarf2out.c: Likewise.
17526 * emit-rtl.c: Likewise.
17527 * et-forest.c: Likewise.
17528 * except.c: Likewise.
17529 * explow.c: Likewise.
17530 * expmed.c: Likewise.
17531 * expr.c: Likewise.
17532 * final.c: Likewise.
17533 * fixed-value.c: Likewise.
17534 * fold-const.c: Likewise.
17535 * function.c: Likewise.
17536 * fwprop.c: Likewise.
17537 * gcc-plugin.h: Likewise.
17538 * gcse-common.c: Likewise.
17539 * gcse.c: Likewise.
17540 * generic-match-head.c: Likewise.
17541 * ggc-page.c: Likewise.
17542 * gimple-builder.c: Likewise.
17543 * gimple-expr.c: Likewise.
17544 * gimple-fold.c: Likewise.
17545 * gimple-iterator.c: Likewise.
17546 * gimple-low.c: Likewise.
17547 * gimple-match-head.c: Likewise.
17548 * gimple-pretty-print.c: Likewise.
17549 * gimple-ssa-isolate-paths.c: Likewise.
17550 * gimple-ssa-strength-reduction.c: Likewise.
17551 * gimple-streamer-in.c: Likewise.
17552 * gimple-streamer-out.c: Likewise.
17553 * gimple-walk.c: Likewise.
17554 * gimple.c: Likewise.
17555 * gimplify-me.c: Likewise.
17556 * gimplify.c: Likewise.
17557 * godump.c: Likewise.
17558 * graph.c: Likewise.
17559 * graphite-blocking.c: Likewise.
17560 * graphite-dependences.c: Likewise.
17561 * graphite-interchange.c: Likewise.
17562 * graphite-isl-ast-to-gimple.c: Likewise.
17563 * graphite-optimize-isl.c: Likewise.
17564 * graphite-poly.c: Likewise.
17565 * graphite-scop-detection.c: Likewise.
17566 * graphite-sese-to-poly.c: Likewise.
17567 * graphite.c: Likewise.
17568 * haifa-sched.c: Likewise.
17569 * hw-doloop.c: Likewise.
17570 * ifcvt.c: Likewise.
17571 * init-regs.c: Likewise.
17572 * internal-fn.c: Likewise.
17573 * ipa-chkp.c: Likewise.
17574 * ipa-comdats.c: Likewise.
17575 * ipa-cp.c: Likewise.
17576 * ipa-devirt.c: Likewise.
17577 * ipa-icf-gimple.c: Likewise.
17578 * ipa-icf.c: Likewise.
17579 * ipa-inline-analysis.c: Likewise.
17580 * ipa-inline-transform.c: Likewise.
17581 * ipa-inline.c: Likewise.
17582 * ipa-polymorphic-call.c: Likewise.
17583 * ipa-profile.c: Likewise.
17584 * ipa-prop.c: Likewise.
17585 * ipa-pure-const.c: Likewise.
17586 * ipa-ref.c: Likewise.
17587 * ipa-reference.c: Likewise.
17588 * ipa-split.c: Likewise.
17589 * ipa-utils.c: Likewise.
17590 * ipa-visibility.c: Likewise.
17591 * ipa.c: Likewise.
17592 * ira-build.c: Likewise.
17593 * ira-color.c: Likewise.
17594 * ira-conflicts.c: Likewise.
17595 * ira-costs.c: Likewise.
17596 * ira-emit.c: Likewise.
17597 * ira-lives.c: Likewise.
17598 * ira.c: Likewise.
17599 * jump.c: Likewise.
17600 * langhooks.c: Likewise.
17601 * lcm.c: Likewise.
17602 * loop-doloop.c: Likewise.
17603 * loop-init.c: Likewise.
17604 * loop-invariant.c: Likewise.
17605 * loop-iv.c: Likewise.
17606 * loop-unroll.c: Likewise.
17607 * lower-subreg.c: Likewise.
17608 * lra-assigns.c: Likewise.
17609 * lra-coalesce.c: Likewise.
17610 * lra-constraints.c: Likewise.
17611 * lra-eliminations.c: Likewise.
17612 * lra-lives.c: Likewise.
17613 * lra-remat.c: Likewise.
17614 * lra-spills.c: Likewise.
17615 * lra.c: Likewise.
17616 * lto-cgraph.c: Likewise.
17617 * lto-compress.c: Likewise.
17618 * lto-opts.c: Likewise.
17619 * lto-section-in.c: Likewise.
17620 * lto-section-out.c: Likewise.
17621 * lto-streamer-in.c: Likewise.
17622 * lto-streamer-out.c: Likewise.
17623 * lto-streamer.c: Likewise.
17624 * mcf.c: Likewise.
17625 * mode-switching.c: Likewise.
17626 * modulo-sched.c: Likewise.
17627 * omega.c: Likewise.
17628 * omp-low.c: Likewise.
17629 * optabs.c: Likewise.
17630 * opts-global.c: Likewise.
17631 * passes.c: Likewise.
17632 * plugin.c: Likewise.
17633 * postreload-gcse.c: Likewise.
17634 * postreload.c: Likewise.
17635 * predict.c: Likewise.
17636 * print-rtl.c: Likewise.
17637 * print-tree.c: Likewise.
17638 * profile.c: Likewise.
17639 * real.c: Likewise.
17640 * realmpfr.c: Likewise.
17641 * recog.c: Likewise.
17642 * ree.c: Likewise.
17643 * reg-stack.c: Likewise.
17644 * regcprop.c: Likewise.
17645 * reginfo.c: Likewise.
17646 * regrename.c: Likewise.
17647 * regstat.c: Likewise.
17648 * reload.c: Likewise.
17649 * reload1.c: Likewise.
17650 * reorg.c: Likewise.
17651 * resource.c: Likewise.
17652 * rtl-chkp.c: Likewise.
17653 * rtlanal.c: Likewise.
17654 * rtlhooks.c: Likewise.
17655 * sanopt.c: Likewise.
17656 * sched-deps.c: Likewise.
17657 * sched-ebb.c: Likewise.
17658 * sched-rgn.c: Likewise.
17659 * sched-vis.c: Likewise.
17660 * sdbout.c: Likewise.
17661 * sel-sched-dump.c: Likewise.
17662 * sel-sched-ir.c: Likewise.
17663 * sel-sched.c: Likewise.
17664 * sese.c: Likewise.
17665 * shrink-wrap.c: Likewise.
17666 * simplify-rtx.c: Likewise.
17667 * stack-ptr-mod.c: Likewise.
17668 * stmt.c: Likewise.
17669 * stor-layout.c: Likewise.
17670 * store-motion.c: Likewise.
17671 * stringpool.c: Likewise.
17672 * symtab.c: Likewise.
17673 * target-globals.c: Likewise.
17674 * targhooks.c: Likewise.
17675 * toplev.c: Likewise.
17676 * tracer.c: Likewise.
17677 * trans-mem.c: Likewise.
17678 * tree-affine.c: Likewise.
17679 * tree-browser.c: Likewise.
17680 * tree-call-cdce.c: Likewise.
17681 * tree-cfg.c: Likewise.
17682 * tree-cfgcleanup.c: Likewise.
17683 * tree-chkp-opt.c: Likewise.
17684 * tree-chkp.c: Likewise.
17685 * tree-chrec.c: Likewise.
17686 * tree-complex.c: Likewise.
17687 * tree-data-ref.c: Likewise.
17688 * tree-dfa.c: Likewise.
17689 * tree-diagnostic.c: Likewise.
17690 * tree-dump.c: Likewise.
17691 * tree-eh.c: Likewise.
17692 * tree-emutls.c: Likewise.
17693 * tree-if-conv.c: Likewise.
17694 * tree-inline.c: Likewise.
17695 * tree-into-ssa.c: Likewise.
17696 * tree-iterator.c: Likewise.
17697 * tree-loop-distribution.c: Likewise.
17698 * tree-nested.c: Likewise.
17699 * tree-nrv.c: Likewise.
17700 * tree-object-size.c: Likewise.
17701 * tree-outof-ssa.c: Likewise.
17702 * tree-parloops.c: Likewise.
17703 * tree-phinodes.c: Likewise.
17704 * tree-predcom.c: Likewise.
17705 * tree-pretty-print.c: Likewise.
17706 * tree-profile.c: Likewise.
17707 * tree-scalar-evolution.c: Likewise.
17708 * tree-sra.c: Likewise.
17709 * tree-ssa-address.c: Likewise.
17710 * tree-ssa-alias.c: Likewise.
17711 * tree-ssa-ccp.c: Likewise.
17712 * tree-ssa-coalesce.c: Likewise.
17713 * tree-ssa-copy.c: Likewise.
17714 * tree-ssa-copyrename.c: Likewise.
17715 * tree-ssa-dce.c: Likewise.
17716 * tree-ssa-dom.c: Likewise.
17717 * tree-ssa-dse.c: Likewise.
17718 * tree-ssa-forwprop.c: Likewise.
17719 * tree-ssa-ifcombine.c: Likewise.
17720 * tree-ssa-live.c: Likewise.
17721 * tree-ssa-loop-ch.c: Likewise.
17722 * tree-ssa-loop-im.c: Likewise.
17723 * tree-ssa-loop-ivcanon.c: Likewise.
17724 * tree-ssa-loop-ivopts.c: Likewise.
17725 * tree-ssa-loop-manip.c: Likewise.
17726 * tree-ssa-loop-niter.c: Likewise.
17727 * tree-ssa-loop-prefetch.c: Likewise.
17728 * tree-ssa-loop-unswitch.c: Likewise.
17729 * tree-ssa-loop.c: Likewise.
17730 * tree-ssa-math-opts.c: Likewise.
17731 * tree-ssa-operands.c: Likewise.
17732 * tree-ssa-phiopt.c: Likewise.
17733 * tree-ssa-phiprop.c: Likewise.
17734 * tree-ssa-pre.c: Likewise.
17735 * tree-ssa-propagate.c: Likewise.
17736 * tree-ssa-reassoc.c: Likewise.
17737 * tree-ssa-sccvn.c: Likewise.
17738 * tree-ssa-scopedtables.c: Likewise.
17739 * tree-ssa-sink.c: Likewise.
17740 * tree-ssa-strlen.c: Likewise.
17741 * tree-ssa-structalias.c: Likewise.
17742 * tree-ssa-tail-merge.c: Likewise.
17743 * tree-ssa-ter.c: Likewise.
17744 * tree-ssa-threadedge.c: Likewise.
17745 * tree-ssa-threadupdate.c: Likewise.
17746 * tree-ssa-uncprop.c: Likewise.
17747 * tree-ssa-uninit.c: Likewise.
17748 * tree-ssa.c: Likewise.
17749 * tree-ssanames.c: Likewise.
17750 * tree-stdarg.c: Likewise.
17751 * tree-streamer-in.c: Likewise.
17752 * tree-streamer-out.c: Likewise.
17753 * tree-streamer.c: Likewise.
17754 * tree-switch-conversion.c: Likewise.
17755 * tree-tailcall.c: Likewise.
17756 * tree-vect-data-refs.c: Likewise.
17757 * tree-vect-generic.c: Likewise.
17758 * tree-vect-loop-manip.c: Likewise.
17759 * tree-vect-loop.c: Likewise.
17760 * tree-vect-patterns.c: Likewise.
17761 * tree-vect-slp.c: Likewise.
17762 * tree-vect-stmts.c: Likewise.
17763 * tree-vectorizer.c: Likewise.
17764 * tree-vrp.c: Likewise.
17765 * tree.c: Likewise.
17766 * tsan.c: Likewise.
17767 * ubsan.c: Likewise.
17768 * valtrack.c: Likewise.
17769 * value-prof.c: Likewise.
17770 * var-tracking.c: Likewise.
17771 * varasm.c: Likewise.
17772 * varpool.c: Likewise.
17773 * vmsdbgout.c: Likewise.
17774 * vtable-verify.c: Likewise.
17775 * web.c: Likewise.
17776 * wide-int.cc: Likewise.
17777 * xcoffout.c: Likewise.
17778 * config/aarch64/aarch64-builtins.c: Likewise.
17779 * config/aarch64/aarch64.c: Likewise.
17780 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17781 * config/alpha/alpha.c: Likewise.
17782 * config/arc/arc.c: Likewise.
17783 * config/arm/aarch-common.c: Likewise.
17784 * config/arm/arm-builtins.c: Likewise.
17785 * config/arm/arm-c.c: Likewise.
17786 * config/arm/arm.c: Likewise.
17787 * config/avr/avr-c.c: Likewise.
17788 * config/avr/avr-log.c: Likewise.
17789 * config/avr/avr.c: Likewise.
17790 * config/bfin/bfin.c: Likewise.
17791 * config/c6x/c6x.c: Likewise.
17792 * config/cr16/cr16.c: Likewise.
17793 * config/cris/cris.c: Likewise.
17794 * config/darwin-c.c: Likewise.
17795 * config/darwin.c: Likewise.
17796 * config/epiphany/epiphany.c: Likewise.
17797 * config/epiphany/mode-switch-use.c: Likewise.
17798 * config/epiphany/resolve-sw-modes.c: Likewise.
17799 * config/fr30/fr30.c: Likewise.
17800 * config/frv/frv.c: Likewise.
17801 * config/ft32/ft32.c: Likewise.
17802 * config/h8300/h8300.c: Likewise.
17803 * config/i386/i386-c.c: Likewise.
17804 * config/i386/i386.c: Likewise.
17805 * config/i386/msformat-c.c: Likewise.
17806 * config/i386/winnt-cxx.c: Likewise.
17807 * config/i386/winnt-stubs.c: Likewise.
17808 * config/i386/winnt.c: Likewise.
17809 * config/ia64/ia64-c.c: Likewise.
17810 * config/ia64/ia64.c: Likewise.
17811 * config/iq2000/iq2000.c: Likewise.
17812 * config/lm32/lm32.c: Likewise.
17813 * config/m32c/m32c-pragma.c: Likewise.
17814 * config/m32c/m32c.c: Likewise.
17815 * config/m32r/m32r.c: Likewise.
17816 * config/m68k/m68k.c: Likewise.
17817 * config/mcore/mcore.c: Likewise.
17818 * config/mep/mep-pragma.c: Likewise.
17819 * config/mep/mep.c: Likewise.
17820 * config/microblaze/microblaze-c.c: Likewise.
17821 * config/microblaze/microblaze.c: Likewise.
17822 * config/mips/mips.c: Likewise.
17823 * config/mmix/mmix.c: Likewise.
17824 * config/mn10300/mn10300.c: Likewise.
17825 * config/moxie/moxie.c: Likewise.
17826 * config/msp430/msp430-c.c: Likewise.
17827 * config/msp430/msp430.c: Likewise.
17828 * config/nds32/nds32-cost.c: Likewise.
17829 * config/nds32/nds32-fp-as-gp.c: Likewise.
17830 * config/nds32/nds32-intrinsic.c: Likewise.
17831 * config/nds32/nds32-isr.c: Likewise.
17832 * config/nds32/nds32-md-auxiliary.c: Likewise.
17833 * config/nds32/nds32-memory-manipulation.c: Likewise.
17834 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17835 * config/nds32/nds32-predicates.c: Likewise.
17836 * config/nds32/nds32.c: Likewise.
17837 * config/nios2/nios2.c: Likewise.
17838 * config/nvptx/nvptx.c: Likewise.
17839 * config/pa/pa.c: Likewise.
17840 * config/pdp11/pdp11.c: Likewise.
17841 * config/rl78/rl78-c.c: Likewise.
17842 * config/rl78/rl78.c: Likewise.
17843 * config/rs6000/rs6000-c.c: Likewise.
17844 * config/rs6000/rs6000.c: Likewise.
17845 * config/rx/rx.c: Likewise.
17846 * config/s390/s390-c.c: Likewise.
17847 * config/s390/s390.c: Likewise.
17848 * config/sh/sh-c.c: Likewise.
17849 * config/sh/sh-mem.cc: Likewise.
17850 * config/sh/sh.c: Likewise.
17851 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17852 * config/sh/sh_treg_combine.cc: Likewise.
17853 * config/sol2-c.c: Likewise.
17854 * config/sol2-cxx.c: Likewise.
17855 * config/sol2-stubs.c: Likewise.
17856 * config/sol2.c: Likewise.
17857 * config/sparc/sparc-c.c: Likewise.
17858 * config/sparc/sparc.c: Likewise.
17859 * config/spu/spu-c.c: Likewise.
17860 * config/spu/spu.c: Likewise.
17861 * config/stormy16/stormy16.c: Likewise.
17862 * config/tilegx/mul-tables.c: Likewise.
17863 * config/tilegx/tilegx-c.c: Likewise.
17864 * config/tilegx/tilegx.c: Likewise.
17865 * config/tilepro/mul-tables.c: Likewise.
17866 * config/tilepro/tilepro-c.c: Likewise.
17867 * config/tilepro/tilepro.c: Likewise.
17868 * config/v850/v850-c.c: Likewise.
17869 * config/v850/v850.c: Likewise.
17870 * config/vax/vax.c: Likewise.
17871 * config/visium/visium.c: Likewise.
17872 * config/vms/vms-c.c: Likewise.
17873 * config/vms/vms.c: Likewise.
17874 * config/vxworks.c: Likewise.
17875 * config/xtensa/xtensa.c: Likewise.
17876
17877 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
17878
17879 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
17880 Remove operand constraints. Change operand 2 predicate to
17881 nonmemory operand. Limit const_int values to mode bitsize. Only
17882 allow const_int values less than 32 when optimizing for size.
17883 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
17884 Remove operand constraints.
17885 (*bt<mode>): Use SImode for const_int values less than 32.
17886 (regmode): Remove mode attribute.
17887
17888 2015-07-07 Anatoly Sokolov <aesok@post.ru>
17889
17890 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17891 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
17892 moxie_legitimate_address_p): New functions.
17893 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17894
17895 2015-07-07 Tom de Vries <tom@codesourcery.com>
17896
17897 PR tree-optimization/66642
17898 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
17899 header comment. Rename split_edge variable to edge_at_split. Split
17900 exit edge to create new loop exit bb. Insert loop exit phis in new
17901 loop exit bb.
17902
17903 2015-07-07 Tom de Vries <tom@codesourcery.com>
17904
17905 * tree-cfg.c (get_virtual_phi): New function.
17906 * tree-cfg.h (get_virtual_phi): Declare.
17907 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
17908 (rewrite_virtuals_into_loop_closed_ssa): New function.
17909 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
17910 Declare.
17911 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
17912 (transform_to_exit_first_loop_alt): Use
17913 rewrite_virtuals_into_loop_closed_ssa.
17914
17915 2015-07-07 Richard Biener <rguenther@suse.de>
17916
17917 * fold-const.c (fold_binary_loc): Move
17918 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
17919 * match.pd: ... here.
17920 Add (X * C1) % C2 -> 0 simplification pattern derived from
17921 extract_muldiv_1.
17922
17923 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
17924
17925 PR target/66780
17926 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
17927 change for target/65249.
17928
17929 2015-07-07 Paulo Matos <pmatos@broadcom.com>
17930
17931 * symtab.c (address_matters_1): Fix typo in comment above.
17932 (can_increase_alignment_p): Likewise.
17933
17934 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17935
17936 * function.c (free_after_compilation): Clear PROP_cfg in
17937 f->curr_properties.
17938
17939 2015-07-07 Richard Biener <rguenther@suse.de>
17940
17941 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
17942 add which use to.
17943 (add_control_edge): Remove excessive vertical space in dumping.
17944 (process_ssa_edge_worklist): Simulate at most one statement and
17945 return whether we did. Do not simulate PHIs if they are in a
17946 BB not yet simulated.
17947 (ssa_propagate): Adjust to always drain the BB worklist whenever
17948 a BB is available there, likewise the VARYING edges list before
17949 the interesting edge list.
17950
17951 2015-07-07 Christian Bruel <christian.bruel@st.com>
17952
17953 PR target/52144
17954 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
17955
17956 2015-07-07 Richard Biener <rguenther@suse.de>
17957
17958 PR middle-end/66739
17959 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
17960 A - B.
17961
17962 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
17963
17964 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
17965 modes for operands 0 and 3. Use SImode for operands 2 and 3.
17966 Copy operand 0 to a temporary if !ext_register_operand. Remove
17967 ancient extract_bit_field workaround.
17968 (insv<mode>_1): Rename from mov<mode>_insv_1.
17969 (*insvqi): Rename from *movqi_insv_2.
17970 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
17971 for renamed insvsi_1.
17972 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
17973
17974 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
17975
17976 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
17977 call to nvptx_reorg_subreg.
17978
17979 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
17980
17981 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
17982 * graphite-dependencies.c, graphite-interchange.c,
17983 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
17984 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
17985 Likewise.
17986
17987 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
17988
17989 * match.pd: Remove element_mode inside HONOR_*.
17990 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
17991 (~X | X -> -1, ~X ^ X -> -1): Merge.
17992 * tree.c (build_each_one_cst): New function.
17993 * tree.h (build_each_one_cst): Likewise.
17994
17995 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
17996
17997 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17998 PROCESSOR_IAMCU.
17999
18000 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
18001
18002 * config.gcc <mips*-*-*>: Add fused-madd.opt.
18003 * config/mips/mips.opt (mfused-madd): Remove.
18004 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
18005 * config/mips/mips.h (TARGET_MIPS8000): New.
18006 (ISA_HAS_FP_MADD4_MSUB4): Remove.
18007 (ISA_HAS_FP_MADDF_MSUBF): Remove.
18008 (ISA_HAS_FP_MADD3_MSUB3): Remove.
18009 (ISA_HAS_NMADD4_NMSUB4): Remove.
18010 (ISA_HAS_NMADD3_NMSUB3): Remove.
18011 (ISA_HAS_FUSED_MADD4): New.
18012 (ISA_HAS_UNFUSED_MADD4): New.
18013 (ISA_HAS_FUSED_MADDF): New.
18014 (ISA_HAS_FUSED_MADD3): New.
18015 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
18016 (*fma<mode>4_madd3) New.
18017 (*fma<mode>4_madd4) New.
18018 (*fma<mode>4_maddf) New.
18019 (fms<mode>4) New.
18020 (*fms<mode>4_msub3) New.
18021 (*fms<mode>4_msub4) New.
18022 (fnma<mode>4) New.
18023 (*fnma<mode>4_nmadd3) New.
18024 (*fnma<mode>4_nmadd4) New.
18025 (fnms<mode>4) New.
18026 (*fnms<mode>4_nmsub3) New.
18027 (*fnms<mode>4_nmsub4) New.
18028 (*madd4<mode>) Modify to be unfused only.
18029 (*msub4<mode>) Modify to be unfused only.
18030 (*nmadd4<mode>) Modify to be unfused only.
18031 (*nmsub4<mode>) Modify to be unfused only.
18032 (*madd3<mode>) Remove.
18033 (*msub3<mode>) Remove.
18034 (*nmadd3<mode>) Remove.
18035 (*nmsub3<mode>) Remove.
18036 (*nmadd3<mode>_fastmath) Remove.
18037 (*nmsub3<mode>_fastmath) Remove.
18038 (*nmadd4<mode>_fastmath) Update condition.
18039 (*nmsub4<mode>_fastmath) Update condition.
18040
18041 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
18042
18043 PR target/65956
18044 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
18045 alignment attribute, exploring one level down for records and arrays.
18046
18047 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
18048
18049 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
18050 modes for operands 0 and 1. Use SImode for operands 2 and 3.
18051 Copy operand 1 to a temporary if !ext_register_operand. Remove
18052 ancient extract_bit_field workaround.
18053 (*extv<mode>): Rename from *mov<mode>_extv_1.
18054 (*extvqi): Rename from *movqi_extv_1.
18055 (extzv<mode>): Rename from extzv. Use SWI248 modes for
18056 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
18057 to a temporary if !ext_register_operand. Remove ancient
18058 extract_bit_field workaround.
18059 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
18060 (*extzvqi): Rename from *movqi_extzv_2.
18061 (*testqi_ext_3): Remove modes from const_int_operand predicated
18062 operands. Add "n" constraint.
18063 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
18064 operand. Add "J" constraint.
18065 (*btsq, *btrq, *btcq peephole2s): Remove mode from
18066 const_0_to_63 predicated operand.
18067 (regmode): New insn attribute.
18068 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
18069 to nonmemory_operand. Use regmode insn attribute.
18070 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
18071 (*jcc_bt<mode>_mask): Remove mode from operand 3.
18072 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
18073 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
18074 operands. Use "N" constraint instead of "n".
18075
18076 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
18077
18078 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
18079
18080 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
18081
18082 PR target/66749
18083 * config/i386/i386.c (iamcu_cost): New.
18084 (m_IAMCU): Likewise.
18085 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
18086 (processor_target_table): Add an entry for "iamcu".
18087 (processor_alias_table): Likewise.
18088 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
18089 (ix86_adjust_cost): Likewise.
18090 (ia32_multipass_dfa_lookahead): Likewise.
18091 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
18092 * config/i386/x86-tune.def: Updated for m_IAMCU.
18093
18094 2015-07-06 Richard Biener <rguenther@suse.de>
18095
18096 PR tree-optimization/66772
18097 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
18098 values are available in the PHI node BB when there are
18099 still unexecutable edges.
18100
18101 2015-07-06 Richard Biener <rguenther@suse.de>
18102
18103 PR tree-optimization/66767
18104 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
18105 Make sure to build the alignment test on a SSA name without
18106 final alignment info valid only if the alignment test
18107 evaluates to true.
18108
18109 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
18110
18111 PR target/66620
18112 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
18113 loop start when inserting LSETUP.
18114
18115 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
18116
18117 PR target/53383
18118 * config/i386/i386.c (ix86_option_override_internal): Allow
18119 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
18120
18121 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18122
18123 * read-md.c (decimal_string): Rename to ...
18124 (md_decimal_string): ... this.
18125 (handle_enum): Reflect this.
18126
18127 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
18128
18129 PR target/66731
18130 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
18131
18132 2015-07-06 Richard Biener <rguenther@suse.de>
18133
18134 PR middle-end/66759
18135 * match.pd: Add missing constraint of y to REAL_CST in
18136 REAL_CST - x CMP y to y - CST CMP x simplification.
18137
18138 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
18139
18140 PR tree-optimization/66757
18141 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
18142
18143 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
18144 Sandra Loosemore <sandra@codesourcery.com>
18145
18146 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
18147 Delete extern declaration.
18148 (gprel_constant_p): Add extern declaration.
18149 * config/nios2/constraints.md ("S"): Use gprel_constant_p
18150 instead of nios2_symbol_ref_in_small_data_p.
18151 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
18152 (nios2_symbol_ref_in_small_data_p): Make static.
18153 (gprel_constant_p): Make non-static.
18154
18155 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
18156
18157 * doc/fragments.texi (Target Fragment): Convert debian.org
18158 link to use https.
18159 * doc/install.texi (Configuration): Ditto.
18160
18161 2015-07-05 Jakub Jelinek <jakub@redhat.com>
18162
18163 PR tree-optimization/66718
18164 * tree-vect-stmts.c (vectorizable_call): Replace uses of
18165 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
18166
18167 PR tree-optimization/66718
18168 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
18169 vectorizable_load, vectorizable_condition): Move vectype,
18170 nunits, ncopies computation after checking what kind of statement
18171 stmt is.
18172
18173 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18174
18175 * target-insns.def (extv, extzv, insv): New targetm instruction
18176 patterns.
18177 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
18178 interface.
18179 * recog.c (simplify_while_replacing): Likewise.
18180
18181 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18182
18183 * target-insns.def (doloop_begin, doloop_end): New targetm
18184 instruction patterns.
18185 * loop-init.c: Include target.h.
18186 (pass_loop2::gate): Use the new targetm patterns instead of
18187 HAVE_*/gen_* interface.
18188 (pass_rtl_doloop::gate): Likewise.
18189 (pass_rtl_doloop::execute): Remove preprocessor condition.
18190 * hw-doloop.c: Build unconditionally.
18191 * loop-doloop.c: Likewise.
18192 (doloop_optimize): Use the new targetm patterns instead of
18193 HAVE_*/gen_* interface.
18194 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
18195 * modulo-sched.c (doloop_register_get): Likewise.
18196
18197 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18198
18199 * target-insns.def (clear_cache): New targetm instruction pattern.
18200 * builtins.c (expand_builtin___clear_cache): Use it instead of
18201 HAVE_*/gen_* interface.
18202
18203 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18204
18205 * target-insns.def (allocate_stack, check_stack, probe_stack)
18206 (probe_stack_address, split_stack_prologue, split_stack_space_check):
18207 New targetm instruction patterns.
18208 * explow.c (allocate_dynamic_stack_space): Use them instead of
18209 HAVE_*/gen_* interface.
18210 (emit_stack_probe): Likewise.
18211 (probe_stack_range): Likewise.
18212 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18213
18214 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18215
18216 * target-insns.def (stack_protect_set, stack_protect_test): New
18217 targetm instruction patterns.
18218 * cfgexpand.c (stack_protect_prologue): Use them instead of
18219 HAVE_*/gen_* interface.
18220 * function.c (stack_protect_epilogue): Likewise.
18221
18222 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18223
18224 * expr.h (gen_move_insn_uncast): Delete.
18225 * expr.c (gen_move_insn_uncast): Delete.
18226
18227 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18228
18229 * target-insns.def (restore_stack_block, restore_stack_function)
18230 (restore_stack_nonlocal, save_stack_block, save_stack_function)
18231 (save_stack_nonlocal): New targetm instruction patterns.
18232 * builtins.c (expand_builtin_apply): Use them instead of
18233 HAVE_*/gen_* interface.
18234 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
18235
18236 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18237
18238 * target-insns.def (trap): New targetm instruction pattern.
18239 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
18240 interface.
18241 * explow.c (allocate_dynamic_stack_space): Likewise.
18242 * ifcvt.c (find_if_header): Likewise.
18243
18244 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18245
18246 * target-insns.def (prefetch): New targetm instruction pattern.
18247 * tree-ssa-loop-prefetch.c: Include targeth.
18248 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
18249 of HAVE_*/gen_* interface.
18250 * builtins.c (expand_builtin_prefetch): Likewise.
18251 * toplev.c (process_options): Likewise.
18252
18253 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18254
18255 * target-insns.def (untyped_call, untyped_return): New targetm
18256 instruction patterns.
18257 * builtins.c (expand_builtin_apply): Use them instead of
18258 HAVE_*/gen_* interface.
18259 (result_vector): Define unconditionally.
18260
18261 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18262
18263 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
18264 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
18265 (nonlocal_goto_receiver): New targetm instruction patterns.
18266 * builtins.c (expand_builtin_setjmp_setup): Use them instead
18267 of HAVE_*/gen_* interface.
18268 (expand_builtin_setjmp_receiver): Likewise.
18269 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
18270 * except.c (expand_dw2_landing_pad_for_region): Likewise.
18271
18272 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18273
18274 * target.def: Add code_for_* hooks.
18275 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
18276 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
18277 * target-insns.def (casesi, tablejump): New targetm instruction
18278 patterns.
18279 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
18280 (do_tablejump): Likewise.
18281 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
18282 (expand_sjlj_dispatch_table): Likewise.
18283 * targhooks.c (default_case_values_threshold): Likewise.
18284
18285 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
18286
18287 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
18288 Use rtx_insn * instead of rtx.
18289 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
18290 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
18291 (nios2_call_tls_get_addr): Likewise.
18292 (nios2_emit_expensive_div): Likewise.
18293 (nios2_emit_move_sequence): Change return type to bool.
18294 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
18295 Change return type to bool.
18296
18297 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
18298
18299 PR target/66747
18300 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
18301
18302 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
18303
18304 PR target/66114
18305 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
18306 of register_operand. Remove constraint.
18307
18308 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
18309
18310 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
18311 the first argument.
18312
18313 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
18314
18315 * attribs.c (decl_attributes): Guard inform with the return value
18316 of the preceding warning.
18317
18318 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
18319
18320 * doc/invoke.texi (moverride): Move to correct section.
18321
18322 2015-07-03 Richard Biener <rguenther@suse.de>
18323
18324 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
18325 Copy from tree.c
18326 (dt_operand::gen_gimple_expr): After valueizing operands
18327 re-canonicalize operand order for commutative tree codes.
18328
18329 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
18330
18331 PR target/66746.
18332 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
18333 is defined.
18334 (__crc32w): Likewise.
18335 (__crc32d): Likewise.
18336 (__rdpmc): Likewise.
18337 (__rdtscp): Likewise.
18338 (_rdpmc): Likewise.
18339 (_rdtscp): Likewise.
18340 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
18341 is defined.
18342
18343 2015-07-03 Richard Biener <rguenther@suse.de>
18344
18345 * fold-const.c (fold_mathfn_compare): Remove.
18346 (fold_inf_compare): Likewise.
18347 (fold_comparison): Move floating point comparison simplifications...
18348 * match.pd: ... to patterns here. Introduce simple_comparisons
18349 operator list and use it for patterns formerly in fold_comparison.
18350
18351 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
18352
18353 PR tree-optimization/66119
18354 * toplev.c (process_options): Don't set up default values for
18355 the sra_max_scalarization_size_{speed,size} parameters.
18356 * tree-sra (analyze_all_variable_accesses): If no values
18357 have been set for the sra_max_scalarization_size_{speed,size}
18358 parameters, call get_move_ratio to get target defaults.
18359
18360 2015-07-03 Richard Biener <rguenther@suse.de>
18361
18362 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
18363 * match.pd: ... here.
18364
18365 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
18366
18367 PR target/37072
18368 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
18369 is not actually the default on FreeBSD.
18370
18371 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18372
18373 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
18374 definition.
18375 (CMPGE_8HI): Likewise.
18376 (CMPGE_4SI): Likewise.
18377 (CMPGE_2DI): Likewise.
18378 (CMPGE_U16QI): Likewise.
18379 (CMPGE_U8HI): Likewise.
18380 (CMPGE_U4SI): Likewise.
18381 (CMPGE_U2DI): Likewise.
18382 (CMPLE_16QI): Likewise.
18383 (CMPLE_8HI): Likewise.
18384 (CMPLE_4SI): Likewise.
18385 (CMPLE_2DI): Likewise.
18386 (CMPLE_U16QI): Likewise.
18387 (CMPLE_U8HI): Likewise.
18388 (CMPLE_U4SI): Likewise.
18389 (CMPLE_U2DI): Likewise.
18390 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18391 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
18392 ALTIVEC_BUILTIN_VEC_CMPLE.
18393 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
18394 floating-point vector modes.
18395 (vector_nlt<mode>): New define_expand.
18396 (vector_nltu<mode>): Likewise.
18397 (vector_ngt<mode>): Likewise.
18398 (vector_ngtu<mode>): Likewise.
18399
18400 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
18401
18402 PR rtl-optimization/66706
18403 * combine.c (make_compound_operation): If an AND of SUBREG of
18404 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
18405
18406 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
18407
18408 * tree-pass.h (make_pass_ch_vect): New.
18409 * passes.def: Add pass_ch_vect just before pass_if_conversion.
18410
18411 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
18412 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
18413 make_pass_ch_vect): New.
18414 (pass_ch): Extend ch_base.
18415
18416 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
18417 (ch_base::copy_headers): ...here.
18418
18419 2015-07-02 Richard Biener <rguenther@suse.de>
18420
18421 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
18422 * fold-const.c (get_pointer_modulus_and_residue): Remove.
18423 (fold_binary_loc): Implement (T)ptr & CST in terms of
18424 get_pointer_alignment_1.
18425 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
18426 Make sure to build the alignment test on a SSA name without
18427 final alignment info valid only after the prologue.
18428
18429 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
18430
18431 * config/cris/cris.md ("epilogue"): Remove condition.
18432 ("prologue"): Ditto.
18433
18434 2015-07-02 Richard Biener <rguenther@suse.de>
18435
18436 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
18437 parameter to record a condition that is false.
18438 (record_conditions): When recording an extra NE_EXPR that is
18439 true also record a EQ_EXPR that is false.
18440
18441 2015-07-02 Bin Cheng <bin.cheng@arm.com>
18442
18443 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
18444 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
18445 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
18446 (set_iv, find_interesting_uses_address, add_candidate_1): New
18447 argument to alloc_iv.
18448 (find_interesting_uses_op, find_interesting_uses_cond): Don't
18449 duplicate struct iv.
18450 (free_loop_data): Don't free struct iv explicitly.
18451 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
18452
18453 2015-07-01 DJ Delorie <dj@redhat.com>
18454
18455 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
18456 (LIB_SPEC): Add.
18457 (SUPPORTS_DISCRIMINATOR): Define.
18458
18459 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
18460
18461 PR bootstrap/66685
18462 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
18463 there are no CALLs in the same pattern.
18464
18465 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
18466
18467 PR rtl-optimization/61047
18468 * rtlanal.c (get_initial_register_offset): New function.
18469 (rtx_addr_can_trap_p_1): Check offsets of stack references.
18470
18471 2015-07-01 Richard Biener <rguenther@suse.de>
18472
18473 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
18474 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
18475 ~X CMP C -> X CMP' ~C to ...
18476 * match.pd: ... patterns here.
18477
18478 2015-07-01 Nick Clifton <nickc@redhat.com>
18479
18480 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
18481 a 16-bit value into a 20-bit memory slot.
18482
18483 2015-07-01 Jiong Wang <jiong.wang@arm.com>
18484
18485 * doc/sourcebuild.texi (AArch64-specific attributes): Document
18486 "aarch64_tiny", "aarch64_small", "aarch64_large",
18487 "aarch64_little_endian", "aarch64_big_endian".
18488
18489 2015-07-01 Jiong Wang <jiong.wang@arm.com>
18490
18491 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
18492 Document "aarch64_small_fpic".
18493
18494 2015-07-01 Jiong Wang <jiong.wang@arm.com>
18495
18496 * configure.ac: Add check for aarch64 assembler -fpic relocation
18497 modifier support.
18498 * configure: Regenerate.
18499 * config.in: Regenerate.
18500 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
18501 to -fPIC if not support of -fpic relocation modifier in assembler.
18502
18503 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
18504
18505 PR bootstrap/66685
18506 * rtl.c (classify_insn): Handle returns in PARALLELs.
18507
18508 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
18509
18510 PR middle-end/66633
18511 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
18512 to true if the function is nested and if not optimizing.
18513 (convert_local_omp_clauses): Initialize need_frame to true if the
18514 function contains nested functions and if not optimizing.
18515
18516 2015-07-01 Richard Biener <rguenther@suse.de>
18517
18518 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
18519 (X & Y) ^ Y -> ~X & Y transforms to ...
18520 * match.pd: ... here.
18521
18522 2015-07-01 Richard Biener <rguenther@suse.de>
18523
18524 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
18525 of converts to avoid uninteresting noise from the conversion
18526 simplifying patterns.
18527
18528 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
18529
18530 * config/c6x/c6x.c (try_rename_operands): Do not depend on
18531 gcc_assert evaluating its argument for side-effect.
18532
18533 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
18534
18535 PR target/64833
18536 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
18537 flag_pic is set.
18538
18539 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
18540
18541 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
18542 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
18543 (hash_scc): Add this_ref_p and ref_p parameters and pass them
18544 to the inner DFS walk.
18545
18546 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18547
18548 * target-insns.def (jump): New targetm instruction pattern.
18549 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
18550 instead of gen_jump.
18551 (fix_up_crossing_landing_pad): Likewise.
18552 (add_labels_and_missing_jumps): Likewise.
18553 (fix_crossing_conditional_branches): Likewise.
18554 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
18555 (force_nonfallthru_and_redirect): Likewise.
18556 * cse.c (cse_insn): Likewise.
18557 * expmed.c (expand_divmod): Likewise.
18558 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
18559 * haifa-sched.c (init_before_recovery): Likewise.
18560 (sched_create_recovery_edges): Likewise.
18561 * ifcvt.c (find_cond_trap): Likewise.
18562 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
18563 (expand_float, expand_fix): Likewise.
18564 * stmt.c (emit_jump): Likewise.
18565
18566 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18567
18568 * defaults.h (HAVE_load_multiple, gen_load_multiple)
18569 (HAVE_store_multiple, gen_store_multiple): Delete.
18570 * target-insns.def (load_multiple, store_multiple): New targetm
18571 instruction patterns.
18572 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
18573 of HAVE_*/gen_* interface.
18574
18575 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18576
18577 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
18578 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
18579 (gen_mem_signal_fence): Delete.
18580 * target-insns.def (mem_signal_fence, mem_thread_fence)
18581 (memory_barrier): New targetm instruction patterns.
18582 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
18583 interface.
18584 (expand_mem_signal_fence): Likewise.
18585
18586 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18587
18588 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
18589 * target-insns.def (epilogue, prologue, sibcall_prologue): New
18590 targetm instruction patterns.
18591 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
18592 interface.
18593 * calls.c (expand_call): Likewise.
18594 * cfgrtl.c (cfg_layout_finalize): Likewise.
18595 * df-scan.c (df_get_entry_block_def_set): Likewise.
18596 (df_get_exit_block_use_set): Likewise.
18597 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
18598 * final.c (final_start_function): Likewise.
18599 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18600 (reposition_prologue_and_epilogue_notes): Likewise.
18601 * reorg.c (find_end_label): Likewise.
18602 * toplev.c (process_options): Likewise.
18603
18604 2015-06-30 David Malcolm <dmalcolm@redhat.com>
18605
18606 * typed-splay-tree.h: New file.
18607
18608 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
18609
18610 PR debug/66691
18611 * lra-int.h (lra_substitute_pseudo): Add a parameter.
18612 (lra_substitute_pseudo_within_insn): Ditto.
18613 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
18614 of constant.
18615 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
18616 to lra_substitute_pseudo.
18617 * lra-lives.c (process_bb_lives): Add an argument to
18618 lra_substitute_pseudo_within_insn call.
18619 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
18620 argument to lra_substitute_pseudo and
18621 lra_substitute_pseudo_within_insn calls.
18622 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
18623
18624 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
18625
18626 * configure: Regenerated.
18627
18628 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
18629
18630 * config.gcc: Support i[34567]86-*-elfiamcu target.
18631 * config/i386/iamcu.h: New.
18632 * config/i386/i386.opt: Add -miamcu.
18633 * doc/invoke.texi: Document -miamcu.
18634 * common/config/i386/i386-common.c (ix86_handle_option): Turn
18635 off x87/MMX/SSE/AVX codegen for -miamcu.
18636 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18637 __iamcu/__iamcu__ for -miamcu.
18638 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
18639 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
18640 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
18641 * config/i386/i386.c (ix86_option_override_internal): Ignore and
18642 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
18643 MCU by default. Default long double to 64-bit for Intel MCU.
18644 Turn on -freg-struct-return for Intel MCU. Issue an error when
18645 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
18646 AVX is turned on.
18647 (function_arg_advance_32): Pass value whose size is no larger
18648 than 8 bytes in registers for Intel MCU.
18649 (function_arg_32): Likewise.
18650 (ix86_return_in_memory): Return value whose size is no larger
18651 than 8 bytes in registers for Intel MCU.
18652 (iamcu_alignment): New function.
18653 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
18654 true.
18655 (ix86_local_alignment): Don't increase alignment for Intel MCU.
18656 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
18657 true.
18658
18659 2015-06-30 Marek Polacek <polacek@redhat.com>
18660
18661 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
18662 both operands of the resulting expression.
18663
18664 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
18665 the final expression with the operand's type and then convert
18666 it to the type of the expression.
18667
18668 2015-06-30 Richard Biener <rguenther@suse.de>
18669
18670 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
18671 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
18672 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
18673 * match.pd: ... to patterns here.
18674
18675 2015-06-30 Richard Biener <rguenther@suse.de>
18676
18677 PR tree-optimization/66704
18678 * tree-vect-data-refs.c (vect_setup_realignment): Use
18679 make_ssa_name for non-SSA name source.
18680
18681 2015-06-30 Jakub Jelinek <jakub@redhat.com>
18682
18683 PR middle-end/66702
18684 * omp-low.c (simd_clone_adjust): Handle addressable linear
18685 or uniform parameters or non-gimple type uniform parameters.
18686
18687 2015-06-30 Richard Biener <rguenther@suse.de>
18688
18689 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
18690 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
18691 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
18692 * match.pd: ... here.
18693 Add a few cases of A - B -> A + (-B) when B "easily" negates.
18694 Move (x & y) | x -> x and friends before
18695 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
18696
18697 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
18698
18699 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
18700 -mfix-ut699 is not specified.
18701 (leon3_load): Rename into...
18702 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
18703 is specified.
18704
18705 2015-06-30 Marek Polacek <polacek@redhat.com>
18706
18707 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
18708 * match.pd: ... here.
18709
18710 2015-06-30 Richard Biener <rguenther@suse.de>
18711
18712 * target-insns.def (canonicalize_funcptr_for_compare): Add.
18713 * fold-const.c (build_range_check): Replace uses of
18714 HAVE_canonicalize_funcptr_for_compare.
18715 (fold_widened_comparison): Likewise.
18716 (fold_sign_changed_comparison): Likewise.
18717 * dojump.c: Include "target.h".
18718 (do_compare_and_jump): Replace uses of
18719 HAVE_canonicalize_funcptr_for_compare and
18720 gen_canonicalize_funcptr_for_compare.
18721 * expr.c (do_store_flag): Likewise.
18722
18723 2015-06-30 Tom de Vries <tom@codesourcery.com>
18724
18725 PR tree-optimization/66652
18726 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
18727 max_loop_iterations to determine if nit + 1 overflows.
18728
18729 2015-06-30 Richard Biener <rguenther@suse.de>
18730
18731 * tree-vrp.c (register_edge_assert_for_2): Also register
18732 asserts for dominating conversion results.
18733
18734 2015-06-30 Bin Cheng <bin.cheng@arm.com>
18735
18736 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
18737 field in struct iv.
18738
18739 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
18740
18741 PR target/66509
18742 * configure.ac: Fix filds and fildq test for 64-bit.
18743 * configure: Regenerated.
18744
18745 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
18746
18747 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
18748 (nvptx_reorg): Here. Keep the non-subreg pieces.
18749
18750 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
18751
18752 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
18753 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
18754
18755 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
18756
18757 * config/i386/i386.md (*jcc_1): Use %! in asm template.
18758 Set attribute "length_nobnd" instead of "length".
18759 (*jcc_2): Ditto.
18760 (jump): Ditto.
18761 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
18762
18763 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
18764
18765 * config/nios2/nios2.c (nios2_delegitimize_address): Make
18766 assert less restrictive.
18767
18768 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
18769
18770 PR fortran/66605
18771 * cgraphunit.c (cgraph_node::finalize_function): Do not call
18772 do_warn_unused_parameter.
18773 * function.c (do_warn_unused_parameter): Move from here.
18774 * function.h (do_warn_unused_parameter): Do not declare.
18775
18776 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18777
18778 PR target/65697
18779 * gcc.target/arm/armv-sync-comp-swap.c: New.
18780 * gcc.target/arm/armv-sync-op-acquire.c: New.
18781 * gcc.target/arm/armv-sync-op-full.c: New.
18782 * gcc.target/arm/armv-sync-op-release.c: New.
18783
18784 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18785
18786 PR target/65697
18787 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
18788 initial acquire barrier with final barrier.
18789
18790 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18791
18792 PR target/65697
18793 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
18794 initial acquire barrier with final barrier.
18795
18796 2015-06-29 Richard Henderson <rth@redhat.com>
18797
18798 * config/i386/constraints.md (Bf): New constraint.
18799 * config/i386/i386-c.c (ix86_target_macros): Define
18800 __GCC_ASM_FLAG_OUTPUTS__.
18801 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
18802 as flags outputs.
18803 * doc/extend.texi (FlagOutputOperands): Document them.
18804
18805 2015-06-29 Jiong Wang <jiong.wang@arm.com>
18806
18807 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
18808 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
18809 unspec name.
18810 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
18811 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
18812 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
18813 (aarch64_symbol_context): Ditto.
18814 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
18815 and use new pattern name.
18816 (aarch64_expand_mov_immediate): Ditto.
18817 (aarch64_print_operand): Ditto.
18818 (aarch64_classify_tls_symbol): Ditto.
18819
18820 2015-06-29 Marek Polacek <polacek@redhat.com>
18821 Marc Glisse <marc.glisse@inria.fr>
18822
18823 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
18824 * match.pd: ... pattern here.
18825
18826 2015-06-29 Tom de Vries <tom@codesourcery.com>
18827
18828 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
18829 function structure.
18830
18831 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18832
18833 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
18834 feature description, split out the native option, add a link to
18835 the feature documentation, rearrange and slightly rewrite text.
18836 (Aarch64 options, -mcpu): Likewise.
18837 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
18838 +rdma implies Adv. SIMD.
18839
18840 2015-06-29 Marek Polacek <polacek@redhat.com>
18841
18842 PR c/66322
18843 * function.c (stack_protect_epilogue): Remove a cast to int.
18844 * doc/invoke.texi: Update -Wswitch-bool description.
18845
18846 2015-06-29 Richard Biener <rguenther@suse.de>
18847
18848 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
18849 * fold-const.c (fold_binary_loc): Move &A - &B simplification
18850 via ptr_difference_const ...
18851 * match.pd: ... here.
18852 When matching (X ^ Y) == Y also match with swapped operands.
18853
18854 2015-06-29 Richard Biener <rguenther@suse.de>
18855
18856 * lto-streamer.h (LTO_major_version): Bump to 5.
18857
18858 2015-06-29 Richard Biener <rguenther@suse.de>
18859
18860 PR tree-optimization/66677
18861 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
18862 STMT_VINFO_VEC_STMT clobbering less strict.
18863
18864 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
18865
18866 PR middle-end/64130
18867 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
18868 division, compute max and min when value ranges for dividend and
18869 divisor are available.
18870
18871 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
18872 Sandra Loosemore <sandra@codesourcery.com>
18873
18874 * regrename.h (regrename_do_replace): Change to return bool.
18875 * regrename.c (rename_chains): Check return value of
18876 regname_do_replace.
18877 (regrename_do_replace): Re-validate the modified insns and
18878 return bool status.
18879 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
18880 Update to match rename_chains changes.
18881 * config/c6x/c6x.c (try_rename_operands): Assert that
18882 regrename_do_replace returns true.
18883
18884 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
18885
18886 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
18887 operand 2 here. Use copy_addr_to_reg to copy non-index
18888 register operand 2 to a temporary.
18889 (<mode>_stx): Ditto for operand 1.
18890 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
18891 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
18892 (ix86_store_bounds): Ditto.
18893
18894 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
18895
18896 * print-tree.c (print_node) [TREE_VEC]: Print its length.
18897
18898 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
18899
18900 * gimple.c (gimple_call_set_fndecl): Remove.
18901 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
18902 build1_loc directly instead of build_fold_addr_expr_loc.
18903
18904 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
18905
18906 * hash-map.h (hash_map::traverse): Use the definition of the
18907 Key typedef rather than the typedef itself.
18908
18909 2015-06-26 Martin Jambor <mjambor@suse.cz>
18910
18911 PR debug/66301
18912 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
18913 NULL instead of calling dump_enabled_p.
18914
18915 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18916
18917 * config/aarch64/aarch64.opt: (override): New.
18918 * doc/invoke.texi (override): Document.
18919 * config/aarch64/aarch64.c (aarch64_flag_desc): New
18920 (aarch64_fusible_pairs): Likewise.
18921 (aarch64_tuning_flags): Likewise.
18922 (aarch64_tuning_override_function): Likewise.
18923 (aarch64_tuning_override_functions): Likewise.
18924 (aarch64_parse_one_option_token): Likewise.
18925 (aarch64_parse_boolean_options): Likewise.
18926 (aarch64_parse_fuse_string): Likewise.
18927 (aarch64_parse_tune_string): Likewise.
18928 (aarch64_parse_one_override_token): Likewise.
18929 (aarch64_parse_override_string): Likewise.
18930 (aarch64_override_options): Parse the -override string if it
18931 is present.
18932
18933 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18934
18935 * config/aarch64/aarch64-protos.h (tune_params): Remove
18936 const from members.
18937 (aarch64_tune_params): Remove const, change to no longer be
18938 a pointer.
18939 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
18940 change to no longer be a pointer, initialize to generic_tunings.
18941 (aarch64_min_divisions_for_recip_mul): Change dereference of
18942 aarch64_tune_params to member access.
18943 (aarch64_reassociation_width): Likewise.
18944 (aarch64_rtx_mult_cost): Likewise.
18945 (aarch64_address_cost): Likewise.
18946 (aarch64_branch_cost): Likewise.
18947 (aarch64_rtx_costs): Likewise.
18948 (aarch64_register_move_cost): Likewise.
18949 (aarch64_memory_move_cost): Likewise.
18950 (aarch64_sched_issue_rate): Likewise.
18951 (aarch64_builtin_vectorization_cost): Likewise.
18952 (aarch64_override_options): Take a copy of the selected tuning
18953 struct in to aarch64_tune_params, rather than just setting
18954 a pointer, change dereferences of aarch64_tune_params to member
18955 accesses.
18956 (aarch64_override_options_after_change): Change dereferences of
18957 aarch64_tune_params to member access.
18958 (aarch64_macro_fusion_p): Likewise.
18959 (aarch_macro_fusion_pair_p): Likewise.
18960 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
18961
18962 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18963
18964 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
18965 (aarch64_tune_flags): Likewise.
18966 (AARCH64_TUNE_FMA_STEERING): Likewise.
18967 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
18968 to AARCH64_FL_USE_FMA_STEERING_PASS.
18969 (cortex-a57.cortex-a53): Likewise.
18970 (cortex-a72): Use cortexa72_tunings.
18971 (cortex-a72.cortex-a53): Likewise.
18972 (exynos-m1): Likewise.
18973 * config/aarch64/aarch64-protos.h (tune_params): Add
18974 a field: extra_tuning_flags.
18975 * config/aarch64/aarch64-tuning-flags.def: New.
18976 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
18977 (aarch64_extra_tuning_flags): Likewise.
18978 (aarch64_tune_params): Declare here.
18979 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
18980 (cortexa53_tunings): Likewise.
18981 (cortexa57_tunings): Likewise.
18982 (thunderx_tunings): Likewise.
18983 (xgene1_tunings): Likewise.
18984 (cortexa72_tunings): New.
18985 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
18986 (gate): Check against aarch64_tune_params.
18987 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
18988 aarch64-protos.h.
18989
18990 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18991
18992 * config/aarch64/aarch64-fusion-pairs.def: New.
18993 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
18994 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
18995 aarch64_fusion_pairs.
18996 (AARCH64_FUSE_MOV_MOVK): Likewise.
18997 (AARCH64_FUSE_ADRP_ADD): Likewise.
18998 (AARCH64_FUSE_MOVK_MOVK): Likewise.
18999 (AARCH64_FUSE_ADRP_LDR): Likewise.
19000 (AARCH64_FUSE_CMP_BRANCH): Likewise.
19001
19002 2015-06-26 Jiong Wang <jiong.wang@arm.com>
19003
19004 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
19005 SYMBOL_SMALL_GOT_28K.
19006 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
19007 relocation modifiers.
19008 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
19009 (ldr_got_small_28k_<mode>): New.
19010 (ldr_got_small_28k_sidi): New.
19011 * config/aarch64/iterators.md (got_modifier): New mode iterator.
19012 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
19013 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
19014 SYMBOL_SMALL_GOT_28K.
19015 (aarch64_rtx_costs): Add costs for new instruction sequences.
19016 (initialize_aarch64_code_model): Initialize new model.
19017 (aarch64_classify_symbol): Recognize new model and new symbol classification.
19018 (aarch64_asm_preferred_eh_data_format): Support new model.
19019 (aarch64_load_symref_appropriately): Generate new instruction
19020 sequences for -fpic.
19021 (TARGET_USE_PSEUDO_PIC_REG): New definition.
19022 (aarch64_use_pseudo_pic_reg): New function.
19023
19024 2015-06-26 Jiong Wang <jiong.wang@arm.com>
19025
19026 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
19027 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
19028 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
19029 (aarch64_expand_mov_immediate): Ditto.
19030 (aarch64_print_operand): Ditto.
19031 (aarch64_classify_symbol): Ditto.
19032
19033 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
19034
19035 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
19036
19037 2015-06-26 Bin Cheng <bin.cheng@arm.com>
19038
19039 PR bootstrap/66638
19040 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
19041 assertion failed. Remove assertion itself.
19042
19043 2015-06-26 Richard Biener <rguenther@suse.de>
19044
19045 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
19046 and -A CMP CST -> A CMP -CST which is redundant with a pattern
19047 in match.pd.
19048 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
19049 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
19050 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
19051 * match.pd: ... patterns here.
19052
19053 2015-06-26 Marek Polacek <polacek@redhat.com>
19054
19055 * match.pd ((x | y) & ~(x & y) -> x ^ y,
19056 (x | y) & (~x ^ y) -> x & y): New patterns.
19057
19058 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
19059
19060 * rtl.h (emit): Add an optional boolean parameter to control
19061 whether barriers are emitted.
19062 * emit-rtl.c (emit): Likewise.
19063 * gensupport.c (get_emit_function): Return null rather than "emit".
19064 * genemit.c (gen_emit_seq): Handle the null return value.
19065 Don't emit barriers after the final instruction in the sequence.
19066 * gentarget-def.c (main): Don't emit barriers after the instruction.
19067
19068 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19069
19070 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
19071 TARGET_UNIFIED_ASM.
19072
19073 2015-06-26 Richard Biener <rguenther@suse.de>
19074
19075 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
19076
19077 2015-06-26 Richard Biener <rguenther@suse.de>
19078
19079 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
19080 irrespective on whether the inner operation has a single use
19081 of both off are constant.
19082
19083 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
19084 Segher Boessenkool <segher@kernel.crashing.org>
19085
19086 PR target/66412
19087 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
19088 before doing PUT_MODE or PUT_CODE on operands to avoid
19089 in-place RTX modification.
19090
19091 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
19092
19093 * gentarget-def.c (def_target_insn): Cast return of strtol to
19094 unsigned int.
19095
19096 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19097
19098 * gimple.h (gimple_call_set_fn): Move inline function.
19099 * gimple.c (gimple_call_set_fn): Relocate here.
19100
19101 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
19102
19103 PR target/65979
19104 PR target/66611
19105 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
19106 the replacement insn will work.
19107
19108 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
19109
19110 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
19111 by default.
19112
19113 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19114
19115 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
19116 * cgraph.h: Include ipa-ref.h and plugin-api.h.
19117 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
19118 (symtab_node::address_can_be_compared_p): Move function.
19119 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
19120 definition here.
19121 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
19122 * auto-profile.c: Likewise.
19123 * bb-reorder.c: Likewise.
19124 * builtins.c: Likewise.
19125 * calls.c: Likewise.
19126 * cfgexpand.c: Likewise.
19127 * cgraphbuild.c: Likewise.
19128 * cgraphclones.c: Likewise.
19129 * cgraphunit.c: Likewise.
19130 * combine.c: Likewise.
19131 * coverage.c: Likewise.
19132 * data-streamer-in.c: Likewise.
19133 * data-streamer-out.c: Likewise.
19134 * data-streamer.c: Likewise.
19135 * dbxout.c: Likewise.
19136 * dwarf2out.c: Likewise.
19137 * except.c: Likewise.
19138 * expr.c: Likewise.
19139 * final.c: Likewise.
19140 * fold-const.c: Likewise.
19141 * ggc-page.c: Likewise.
19142 * gimple-fold.c: Likewise.
19143 * gimple-iterator.c: Likewise.
19144 * gimple-pretty-print.c: Likewise.
19145 * gimple-streamer-in.c: Likewise.
19146 * gimple-streamer-out.c: Likewise.
19147 * gimple.c: Likewise.
19148 * gimplify.c: Likewise.
19149 * ipa-chkp.c: Likewise.
19150 * ipa-comdats.c: Likewise.
19151 * ipa-cp.c: Likewise.
19152 * ipa-devirt.c: Likewise.
19153 * ipa-icf-gimple.c: Likewise.
19154 * ipa-icf.c: Likewise.
19155 * ipa-inline-analysis.c: Likewise.
19156 * ipa-inline-transform.c: Likewise.
19157 * ipa-inline.c: Likewise.
19158 * ipa-polymorphic-call.c: Likewise.
19159 * ipa-profile.c: Likewise.
19160 * ipa-prop.c: Likewise.
19161 * ipa-pure-const.c: Likewise.
19162 * ipa-ref.c: Likewise.
19163 * ipa-reference.c: Likewise.
19164 * ipa-split.c: Likewise.
19165 * ipa-utils.c: Likewise.
19166 * ipa-visibility.c: Likewise.
19167 * ipa.c: Likewise.
19168 * langhooks.c: Likewise.
19169 * lto-cgraph.c: Likewise.
19170 * lto-compress.c: Likewise.
19171 * lto-opts.c: Likewise.
19172 * lto-section-in.c: Likewise.
19173 * lto-section-out.c: Likewise.
19174 * lto-streamer-in.c: Likewise.
19175 * lto-streamer-out.c: Likewise.
19176 * lto-streamer.c: Likewise.
19177 * omp-low.c: Likewise.
19178 * opts-global.c: Likewise.
19179 * passes.c: Likewise.
19180 * predict.c: Likewise.
19181 * print-tree.c: Likewise.
19182 * profile.c: Likewise.
19183 * ree.c: Likewise.
19184 * sanopt.c: Likewise.
19185 * stor-layout.c: Likewise.
19186 * symtab.c: Likewise.
19187 * toplev.c: Likewise.
19188 * trans-mem.c: Likewise.
19189 * tree-cfg.c: Likewise.
19190 * tree-chkp.c: Likewise.
19191 * tree-eh.c: Likewise.
19192 * tree-emutls.c: Likewise.
19193 * tree-inline.c: Likewise.
19194 * tree-nested.c: Likewise.
19195 * tree-parloops.c: Likewise.
19196 * tree-pretty-print.c: Likewise.
19197 * tree-profile.c: Likewise.
19198 * tree-sra.c: Likewise.
19199 * tree-ssa-alias.c: Likewise.
19200 * tree-ssa-live.c: Likewise.
19201 * tree-ssa-loop-ivcanon.c: Likewise.
19202 * tree-ssa-loop-ivopts.c: Likewise.
19203 * tree-ssa-pre.c: Likewise.
19204 * tree-ssa-sccvn.c: Likewise.
19205 * tree-ssa-strlen.c: Likewise.
19206 * tree-ssa-structalias.c: Likewise.
19207 * tree-streamer-in.c: Likewise.
19208 * tree-streamer-out.c: Likewise.
19209 * tree-streamer.c: Likewise.
19210 * tree-switch-conversion.c: Likewise.
19211 * tree-tailcall.c: Likewise.
19212 * tree-vect-data-refs.c: Likewise.
19213 * tree-vect-stmts.c: Likewise.
19214 * tree-vectorizer.c: Likewise.
19215 * tree.c: Likewise.
19216 * tsan.c: Likewise.
19217 * ubsan.c: Likewise.
19218 * value-prof.c: Likewise.
19219 * varasm.c: Likewise.
19220 * varpool.c: Likewise.
19221 * config/arm/arm.c: Likewise.
19222 * config/bfin/bfin.c: Likewise.
19223 * config/c6x/c6x.c: Likewise.
19224 * config/cris/cris.c: Likewise.
19225 * config/darwin-c.c: Likewise.
19226 * config/darwin.c: Likewise.
19227 * config/i386/i386.c: Likewise.
19228 * config/i386/winnt.c: Likewise.
19229 * config/microblaze/microblaze.c: Likewise.
19230 * config/mips/mips.c: Likewise.
19231 * config/rs6000/rs6000.c: Likewise.
19232 * config/rx/rx.c: Likewise.
19233 * config/s390/s390.c: Likewise.
19234 * config/tilegx/mul-tables.c: Likewise.
19235
19236 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19237
19238 * config/aarch64/aarch64.c, config/alpha/alpha.c,
19239 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
19240 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
19241 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
19242 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19243 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19244 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19245 config/microblaze/microblaze.c, config/mips/mips.c,
19246 config/mmix/mmix.c, config/mn10300/mn10300.c,
19247 config/moxie/moxie.c, config/msp430/msp430.c,
19248 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19249 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19250 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19251 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19252 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19253 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19254 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
19255 target-def.h include.
19256 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
19257
19258 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19259
19260 * Makefile.in (TARGET_DEF): Add target-insns.def.
19261 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
19262 (build/gentarget-def.o): New rule.
19263 (genprogrtl): Add target-def.
19264 * target-insns.def, gentarget-def.c: New files.
19265 * target.def: Add targetm.have_* and targetm.gen_* hooks,
19266 based on the contents of target-insns.def.
19267 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
19268 (HAVE_return, gen_return): Delete.
19269 * target-def.h: Include insn-target-def.h.
19270 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
19271 instead of direct calls. Rely on them to do the appropriate assertions.
19272 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
19273 (convert_jumps_to_returns): Use targetm interface instead of
19274 direct calls.
19275 (thread_prologue_and_epilogue_insns): Likewise.
19276 * reorg.c (find_end_label, dbr_schedule): Likewise.
19277 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
19278 * shrink-wrap.c (convert_to_simple_return): Likewise.
19279 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
19280
19281 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19282
19283 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
19284 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19285 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
19286 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
19287 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19288 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19289 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19290 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
19291 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
19292 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19293 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19294 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19295 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19296 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19297 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19298 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
19299 includes to end.
19300
19301 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19302
19303 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
19304 (unbounded_int_hashmap_traits::key_type): Likewise.
19305 * hash-map.h (hash_map): Get the key type from the traits.
19306 * hash-traits.h (default_hash_traits): By default, inherit from the
19307 template parameter.
19308 * alias.c (alias_set_traits): Delete.
19309 (alias_set_entry_d::children): Use alias_set_hash as the first
19310 template parameter.
19311 (record_alias_subset): Update accordingly.
19312 * except.c (tree_hash_traits): Delete.
19313 (type_to_runtime_map): Use tree_hash as the first template parameter.
19314 (init_eh): Update accordingly.
19315 * genmatch.c (capture_id_map_hasher): Delete.
19316 (cid_map_t): Use nofree_string_hash as first template parameter.
19317 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
19318 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
19319 Use symbol_compare_hash as the first template parameter in
19320 subdivide_hash_map.
19321 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
19322 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
19323 template parameter.
19324 * passes.c (pass_registry_hasher): Delete.
19325 (name_to_pass_map): Use nofree_string_hash as the first template
19326 parameter.
19327 (register_pass_name): Update accordingly.
19328 * sanopt.c (sanopt_tree_map_traits): Delete.
19329 (sanopt_tree_triplet_map_traits): Delete.
19330 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
19331 template parameter.
19332 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
19333 the first template parameter.
19334 * sese.c (rename_map_hasher): Delete.
19335 (rename_map_type): Use tree_ssa_name_hash as the first template
19336 parameter.
19337 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
19338 (function_summary::m_map): Use map_hash as the first template
19339 parameter.
19340 (function_summary::release): Update accordingly.
19341 * tree-if-conv.c (phi_args_hash_traits): Delete.
19342 (predicate_scalar_phi): Use tree_operand_hash as the first template
19343 parameter to phi_arg_map.
19344 * tree-inline.h (dependence_hasher): Delete.
19345 (copy_body_data::dependence_map): Use dependence_hash as the first
19346 template parameter.
19347 * tree-inline.c (remap_dependence_clique): Update accordingly.
19348 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
19349 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
19350 parameter.
19351 (addr_stridxptr): Update accordingly.
19352 * value-prof.c (profile_id_traits): Delete.
19353 (cgraph_node_map): Use profile_id_hash as the first template
19354 parameter.
19355 (init_node_map): Update accordingly.
19356 * config/alpha/alpha.c (string_traits): Delete.
19357 (machine_function::links): Use nofree_string_hash as the first
19358 template parameter.
19359 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
19360 * config/m32c/m32c.c (pragma_traits): Delete.
19361 (pragma_htab): Use nofree_string_hash as the first template parameter.
19362 (m32c_note_pragma_address): Update accordingly.
19363 * config/mep/mep.c (pragma_traits): Delete.
19364 (pragma_htab): Use nofree_string_hash as the first template parameter.
19365 (mep_note_pragma_flag): Update accordingly.
19366 * config/mips/mips.c (mips16_flip_traits): Delete.
19367 (mflip_mips16_htab): Use nofree_string_hash as the first template
19368 parameter.
19369 (mflip_mips16_use_mips16_p): Update accordingly.
19370 (local_alias_traits): Delete.
19371 (mips16_local_aliases): Use nofree_string_hash as the first template
19372 parameter.
19373 (mips16_local_alias): Update accordingly.
19374
19375 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19376
19377 * hash-map-traits.h (default_hashmap_traits): Delete.
19378
19379 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19380
19381 * hash-map-traits.h (unbounded_hashmap_traits): New class.
19382 (unbounded_int_hashmap_traits): Likewise.
19383 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
19384
19385 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19386
19387 * ipa-icf.h (symbol_compare_hash): New class.
19388 (symbol_compare_hashmap_traits): Use it.
19389 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
19390 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
19391 (mem_alloc_description::reverse_mem_map_t): Remove redundant
19392 default_hashmap_traits.
19393 * sanopt.c (sanopt_tree_triplet_hash): New class.
19394 (sanopt_tree_triplet_map_traits): Use it.
19395
19396 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19397
19398 * gengtype-parse.c (require_template_declaration): Allow '+' in
19399 template parameters. Consolidate cases.
19400 * hash-traits.h (int_hash): New class.
19401 * alias.c (alias_set_hash): New structure.
19402 (alias_set_traits): Use it.
19403 * symbol-summary.h (function_summary::map_hash): New class.
19404 (function_summary::summary_hashmap_traits): Use it.
19405 * tree-inline.h (dependence_hash): New class.
19406 (dependence_hasher): Use it.
19407 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
19408 * value-prof.c (profile_id_hash): New class.
19409 (profile_id_traits): Use it.
19410
19411 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19412
19413 * config/mips/mips.c (mips16_flip_traits): Use it.
19414 (local_alias_traits, mips16_local_aliases): Convert from a map of
19415 rtxes to a map of symbol names.
19416 (mips16_local_alias): Update accordingly.
19417
19418 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19419
19420 * hash-traits.h (string_hash, nofree_string_hash): New classes.
19421 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
19422 * passes.c (pass_registry_hasher): Likewise.
19423 * config/alpha/alpha.c (string_traits): Likewise.
19424 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
19425 * config/m32c/m32c.c (pragma_traits): Likewise.
19426 * config/mep/mep.c (pragma_traits): Likewise.
19427
19428 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19429
19430 * tree-hash-traits.h (tree_hash): New class.
19431 * except.c: Include tree-hash-traits.h.
19432 (tree_hash_traits): Use tree_hash.
19433
19434 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19435
19436 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
19437 * sese.c: Include tree-hash-traits.h.
19438 (rename_map_hasher): Use tree_ssa_name_hasher.
19439
19440 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19441
19442 * tree-hash-traits.h (tree_decl_hash): New class.
19443 * tree-ssa-strlen.c: Include tree-hash-traits.h.
19444 (stridxlist_hash_traits): Use tree_decl_hash.
19445
19446 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19447
19448 * tree-hash-traits.h: New file.
19449 (tree_operand_hash): New class.
19450 * sanopt.c: Include tree-hash-traits.h.
19451 (sanopt_tree_map_traits): Use tree_operand_hash.
19452 * tree-if-conv.c: Include tree-hash-traits.h.
19453 (phi_args_hash_traits): Use tree_operand_hash.
19454 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
19455 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
19456
19457 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19458
19459 * hash-map-traits.h: Include hash-traits.h.
19460 (simple_hashmap_traits): New class.
19461 * mem-stats.h (hash_map): Change the default traits to
19462 simple_hashmap_traits<default_hash_traits<Key> >.
19463
19464 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19465
19466 * hash-table.h: Update comments.
19467
19468 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19469
19470 * hash-traits.h (default_hash_traits): New structure.
19471 * hash-set.h (default_hashset_traits): Delete.
19472 (hash_set): Use default_hash_traits<Key> instead of
19473 default_hashset_traits. Delete hash_entry type and use Key directly.
19474 * ipa-devirt.c (pair_traits): Delete.
19475 (default_hash_traits <type_pair>): Override.
19476 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
19477 (odr_types_equivalent_p, add_type_duplicate): Likewise.
19478
19479 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19480
19481 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
19482
19483 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19484
19485 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
19486 (has_is_empty, is_empty_helper): Delete.
19487 (has_mark_deleted, mark_deleted_helper): Delete.
19488 (has_mark_empty, mark_empty_helper): Delete.
19489 (hash_table::is_deleted): Call the Descriptor unconditionally.
19490 (hash_table::is_empty): Likewise.
19491 (hash_table::mark_deleted): Likewise.
19492 (hash_table::mark_empty): Likewise.
19493
19494 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19495
19496 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
19497 redundant typedefs and members.
19498 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
19499 redundant typedefs.
19500 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
19501 * ipa-devirt.c (odr_name_hasher): Likewise.
19502 (polymorphic_call_target_hasher): Likewise.
19503 * ira-costs.c (cost_classes_hasher): Likewise.
19504 * statistics.c (stats_counter_hasher): Likewise.
19505 * trans-mem.c (log_entry_hasher): Likewise.
19506 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19507 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
19508 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
19509 * var-tracking.c (variable_hasher): Likewise.
19510 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
19511 Remove redundant typedefs and members.
19512
19513 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19514
19515 * hash-traits.h (ggc_cache_hasher): Rename to...
19516 (ggc_cache_remove): ...this and remove typedefs.
19517 (ggc_cache_ptr_hash): New class.
19518 * hash-table.h: Update commentary.
19519 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
19520 rather than ggc_cache_hasher.
19521 (const_wide_int_hasher, reg_attr_hasher): Likewise.
19522 (const_double_hasher, const_fixed_hasher): Likewise.
19523 * function.c (insn_cache_hasher): Likewise.
19524 * trans-mem.c (tm_wrapper_hasher): Likewise.
19525 * tree.h (tree_decl_map_cache_hasher): Likewise.
19526 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
19527 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
19528 * ubsan.c (tree_type_map_cache_hasher): Likewise.
19529 * varasm.c (tm_clone_hasher): Likewise.
19530 * config/i386/i386.c (dllimport_hasher): Likewise.
19531 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
19532 (tree_hasher): Likewise.
19533
19534 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19535
19536 * hash-traits.h (ggc_hasher): Rename to...
19537 (ggc_remover): ...this and remove typedefs.
19538 (ggc_cache_hasher): Update accordingly. Add typedefs.
19539 (ggc_ptr_hash): New class.
19540 * hash-table.h: Update comment.
19541 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
19542 ggc_hasher.
19543 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
19544 (tree_descriptor_hasher): Likewise.
19545 * cgraph.c (function_version_hasher): Likewise.
19546 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
19547 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
19548 (dw_loc_list_hasher, addr_hasher): Likewise.
19549 * function.h (used_type_hasher): Likewise.
19550 * function.c (temp_address_hasher): Likewise.
19551 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
19552 * libfuncs.h (libfunc_hasher): Likewise.
19553 * lto-streamer.h (decl_state_hasher): Likewise.
19554 * optabs.c (libfunc_decl_hasher): Likewise.
19555 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
19556 * varasm.c (section_hasher, object_block_hasher): Likewise.
19557 (const_rtx_desc_hasher): Likewise.
19558 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
19559 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
19560
19561 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19562
19563 * hash-traits.h (free_ptr_hash): New class.
19564 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
19565 rather than typed_free_remove. Remove redudant typedefs.
19566 (external_ref_hasher): Likewise.
19567 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
19568 (ehspec_hasher): Likewise.
19569 * ggc-common.c (saving_hasher): Likewise.
19570 * gimplify.c (gimplify_hasher): Likewise.
19571 * haifa-sched.c (delay_i2_hasher): Likewise.
19572 * loop-invariant.c (invariant_expr_hasher): Likewise.
19573 * loop-iv.c (biv_entry_hasher): Likewise.
19574 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
19575 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
19576 * tree-cfg.c (locus_discrim_hasher): Likewise.
19577 * tree-eh.c (finally_tree_hasher): Likewise.
19578 * tree-into-ssa.c (var_info_hasher): Likewise.
19579 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
19580 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
19581 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
19582 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
19583 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
19584 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
19585 (shared_bitmap_hasher): Likewise.
19586 * tree-ssa-threadupdate.c (redirection_data): Likewise.
19587 * tree-vectorizer.h (peel_info_hasher): Likewise.
19588 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
19589 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
19590
19591 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19592
19593 * hash-table.h: Update comments.
19594 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
19595 (nofree_ptr_hash): New class.
19596 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
19597 than typed_noop_remove. Remove redudant typedefs.
19598 * attribs.c (attribute_hasher): Likewise.
19599 * cfg.c (bb_copy_hasher): Likewise.
19600 * cselib.c (cselib_hasher): Likewise.
19601 * dse.c (invariant_group_base_hasher): Likewise.
19602 * dwarf2cfi.c (trace_info_hasher): Likewise.
19603 * dwarf2out.c (macinfo_entry_hasher): Likewise.
19604 (comdat_type_hasher, loc_list_hasher): Likewise.
19605 * gcse.c (pre_ldst_expr_hasher): Likewise.
19606 * genmatch.c (id_base): Likewise.
19607 * genrecog.c (test_pattern_hasher): Likewise.
19608 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
19609 * haifa-sched.c (delay_i1_hasher): Likewise.
19610 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
19611 * ipa-icf.h (congruence_class_group_hash): Likewise.
19612 * ipa-profile.c (histogram_hash): Likewise.
19613 * ira-color.c (allocno_hard_regs_hasher): Likewise.
19614 * lto-streamer.h (string_slot_hasher): Likewise.
19615 * lto-streamer.c (tree_entry_hasher): Likewise.
19616 * plugin.c (event_hasher): Likewise.
19617 * postreload-gcse.c (expr_hasher): Likewise.
19618 * store-motion.c (st_expr_hasher): Likewise.
19619 * tree-sra.c (uid_decl_hasher): Likewise.
19620 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
19621 (ssa_name_var_hash): Likewise.
19622 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
19623 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
19624 * tree-ssa-pre.c (pre_expr_d): Likewise.
19625 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
19626 * vtable-verify.h (registration_hasher): Likewise.
19627 * vtable-verify.c (vtbl_map_hasher): Likewise.
19628 * config/arm/arm.c (libcall_hasher): Likewise.
19629 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
19630 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
19631 * config/sol2.c (comdat_entry_hasher): Likewise.
19632 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
19633 (print_fold_checksum, fold_checksum_tree): Likewise.
19634 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
19635 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
19636 (fold_build_call_array_loc): Likewise.
19637 * tree-ssa-ccp.c (gimple_htab): Likewise.
19638 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
19639 rather than pointer_type.
19640
19641 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19642
19643 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
19644 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
19645
19646 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19647
19648 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
19649 (ggc_hasher::ggc_mx): Likewise.
19650 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
19651 that duplicate ggc_hasher ones.
19652
19653 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19654
19655 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
19656 (gt_cleare_cache): Check here for deleted and empty entries.
19657 Replace handle_cache_entry with a call to keep_cache_entry.
19658 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
19659 (ggc_cache_hasher::keep_cache_entry): New function.
19660 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
19661 (tm_wrapper_hasher::keep_cache_entry): New function.
19662 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
19663 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
19664 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
19665 (type_cache_hasher::keep_cache_entry): New function.
19666 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
19667 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
19668 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
19669 (tree_type_map_cache_hasher::keep_cache_entry): New function.
19670 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
19671 (tm_clone_hasher::keep_cache_entry): New function.
19672 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
19673 (dllimport_hasher::keep_cache_entry): New function.
19674
19675 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19676
19677 * hash-table.h: Include hash-traits.h.
19678 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
19679 (ggc_cache_hasher): Move to...
19680 * hash-traits.h: ...this new file.
19681
19682 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19683
19684 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
19685 struct cl_optimization.
19686 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
19687 * tree.c (make_node_stat): Allocate cl_optimization struct.
19688 (copy_node_stat): Allocate and copy cl_optimization struct.
19689
19690 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19691
19692 * function.h (struct incoming_args): Move struct.
19693 (pass_by_reference, reference_callee_copied): Remove prototypes.
19694 * emit-rtl.h (struct incoming_args): Relocate struct here.
19695 * calls.h (pass_by_reference, reference_callee_copied): Relocate
19696 prototypes here.
19697 * function.c (pass_by_reference, reference_callee_copied): Move.
19698 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
19699 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
19700 * ipa-chkp.c: Include calls.h.
19701
19702 2015-06-25 Andrew Macleod <amacleod@redhat.com>
19703
19704 * alias.h (alias_set_type): Move typedef.
19705 * coretypes.h (alias_set_type): Relocate typedef here.
19706 * rtl.h: Don't include alias.h.
19707
19708 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19709
19710 * cgraph.h (cgraph_rtl_info): Move to rtl.h
19711 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
19712 and instance.
19713 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
19714 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
19715 doesn't exist.
19716 * calls.c: Include hard-reg-set.h before rtl.h.
19717 * ira.c: Likewise.
19718
19719 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19720 Vladimir Makarov <vmakarov@redhat.com>
19721
19722 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
19723 Add assert.
19724
19725 2015-06-25 Richard Biener <rguenther@suse.de>
19726
19727 * fold-const.c (fold_binary_loc): Move simplification of
19728 (X <<>> C1) & C2 ...
19729 * match.pd: ... here.
19730
19731 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
19732
19733 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
19734
19735 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19736
19737 * match.pd: Add patterns for vec_conds between 1 and 0.
19738
19739 2015-06-25 Richard Biener <rguenther@suse.de>
19740
19741 * tree-vect-stmts.c (vectorizable_conversion): Do not set
19742 STMT_VINFO_VEC_STMT for SLP.
19743 (vectorizable_store): Likewise.
19744 (vectorizable_load): Likewise.
19745 (vect_transform_stmt): Catch SLP vectorization clobbering
19746 STMT_VINFO_VEC_STMT.
19747
19748 2015-06-25 Richard Biener <rguenther@suse.de>
19749
19750 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
19751 dumping.
19752 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
19753 cleanup resulting dead code and parameters.
19754 (vect_transform_slp_perm_load): Adjust.
19755
19756 2015-06-25 Nick Clifton <nickc@redhat.com>
19757
19758 * config/bfin/bfin.c (bfin_expand_prologue): Set
19759 current_function_static_stack_size if flag_stack_usage_info is set.
19760 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
19761 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
19762 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
19763 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
19764
19765 2015-06-25 Tom de Vries <tom@codesourcery.com>
19766
19767 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
19768 comment that the generated IV is unsigned.
19769
19770 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19771
19772 PR target/29693
19773 * config/arm/arm.c (arm_dbx_register_number): Return
19774 DWARF_FRAME_REGISTERS by default.
19775
19776 2015-06-25 Tom de Vries <tom@codesourcery.com>
19777
19778 * dominance.c (calculate_dominance_info): Fix verify_dominators call
19779 argument. Call verify_dominator when reusing dominator info.
19780
19781 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
19782
19783 PR target/66563
19784 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
19785 an additional element of the unspec vector. Modify indices
19786 of operands.
19787 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
19788 * config/sh/sh.c (prepare_move_operands): Pass incremented
19789 const_int to gen_GOTaddr2picreg.
19790 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
19791
19792 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
19793
19794 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
19795 Condition on TARGET_FLOAT.
19796
19797 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
19798
19799 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
19800 and (no)crypto.
19801
19802 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
19803
19804 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
19805
19806 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
19807 aarch64_err_no_fpadvsimd.
19808
19809 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
19810 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
19811 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
19812 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
19813 Turn error into assert, test TARGET_FLOAT.
19814 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
19815 TARGET_FLOAT.
19816
19817 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
19818
19819 PR debug/66482
19820 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
19821
19822 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
19823
19824 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
19825
19826 2015-06-24 Renlin Li <renlin.li@arm.com>
19827
19828 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
19829 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
19830
19831 2015-06-24 Richard Biener <rguenther@suse.de>
19832
19833 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
19834 (main): Likewise.
19835 (lower_opt_convert): Support lowering of conditional view_convert.
19836 (parser::parse_operation): Likewise.
19837 (parser::parse_for): Likewise.
19838
19839 2015-06-24 Renlin Li <renlin.li@arm.com>
19840
19841 * varasm.c (emit_local): Use unsigned int for align variable.
19842
19843 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19844
19845 PR target/63408
19846 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
19847 for negative numbers.
19848
19849 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19850
19851 PR rtl-optimization/66306
19852 * reload.c (find_reloads): Swap the match_dup info for
19853 commutative operands.
19854
19855 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19856
19857 * config/s390/vx-builtins.md
19858 ("vec_scatter_element<mode>_<non_vec_int>")
19859 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
19860 attribute with bhfgq.
19861
19862 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19863
19864 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
19865
19866 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19867
19868 * config/s390/s390-builtin-types.def: Add flag to indicate the
19869 options under which the function type is needed.
19870 * config/s390/s390-builtins.def: Add flag to indicate the options
19871 under which the builtin is enabled.
19872 * config/s390/s390-builtins.h: Add flags parameter to macro
19873 definitions.
19874 (bflags_for_builtin): New function.
19875 (flags_for_builtin): Renamed to ...
19876 (opflags_for_builtin): ... this.
19877 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
19878 flags_for_builtin to bflags_for_builtin and
19879 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
19880 * config/s390/s390.c: Add initialization of bflags_builtin and
19881 opflags_builtin arrays.
19882 Remove code for flags_builtin.
19883 (s390_init_builtins): Only create builtin function types if one of
19884 their flags is active.
19885 Only create builtins if all of their flags are active.
19886 (s390_expand_builtin): Rename flags_for_builtin to
19887 opflags_for_builtin.
19888
19889 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19890
19891 * config/s390/vecintrin.h: Remove internal builtins.
19892
19893 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19894
19895 * config/s390/s390.c (s390_secondary_reload): Fix check for
19896 GENERAL_REGS register class.
19897
19898 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19899
19900 * config/s390/s390.c (s390_support_vector_misalignment): Call
19901 default implementation for !TARGET_VX.
19902
19903 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19904
19905 * config/s390/s390.c (s390_legitimate_constant_p): Add
19906 TARGET_VX check.
19907
19908 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19909
19910 * config/s390/s390.c (s390_vector_abi): New variable definition.
19911 (s390_check_type_for_vector_abi): New function.
19912 (TARGET_ASM_FILE_END): New macro definition.
19913 (s390_asm_file_end): New function.
19914 (s390_function_arg): Call s390_check_type_for_vector_abi.
19915 (s390_gimplify_va_arg): Likewise.
19916 * configure: Regenerate.
19917 * configure.ac: Check for .gnu_attribute Binutils feature.
19918
19919 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
19920
19921 PR target/65803
19922 * config/bfin/bfin.c (hwloop_optimize): Initialize
19923 JUMP_LABEL for newly created jump.
19924
19925 2015-06-23 Tristan Gingold <gingold@adacore.com>
19926
19927 * collect-utils.c (collect_wait): Unlink the response file here
19928 instead of...
19929 (do_wait): ...here.
19930 (utils_cleanup): ...and here.
19931
19932 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
19933
19934 * df-scan.c: Don't include target-def.h.
19935 * targhooks.c: Likewise.
19936 * config/arm/arm-c.c: Likewise.
19937 * config/i386/i386-c.c: Likewise.
19938 * config/nds32/nds32-cost.c: Likewise.
19939 * config/nds32/nds32-fp-as-gp.c: Likewise.
19940 * config/nds32/nds32-intrinsic.c: Likewise.
19941 * config/nds32/nds32-isr.c: Likewise.
19942 * config/nds32/nds32-md-auxiliary.c: Likewise.
19943 * config/nds32/nds32-memory-manipulation.c: Likewise.
19944 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19945 * config/nds32/nds32-predicates.c: Likewise.
19946
19947 2015-06-23 Richard Biener <rguenther@suse.de>
19948
19949 PR tree-optimization/66636
19950 * tree-vect-stmts.c (vectorizable_store): Properly compute the
19951 def type for further defs for strided stores.
19952
19953 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
19954
19955 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
19956 conditional selects.
19957 (setcc_int<mode>, setcc_float<mode>): Reformat.
19958
19959 2015-06-23 Marek Polacek <polacek@redhat.com>
19960
19961 * match.pd ((x + y) - (x | y) -> x & y,
19962 (x + y) - (x & y) -> x | y): New patterns.
19963
19964 2015-06-23 Ludovic Courtès <ludo@gnu.org>
19965
19966 PR 65711
19967 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
19968 '-dynamic-linker' within %{!shared: ...}.
19969
19970 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
19971
19972 PR target/66560
19973 * config/i386/predicates.md (addsub_vm_operator): New predicate.
19974 (addsub_vs_operator): Ditto.
19975 (addsub_vs_parallel): Ditto.
19976 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
19977 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
19978 Put minus RTX before plus and adjust vec_merge selector.
19979 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
19980 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
19981 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
19982 (addsub vec_merge splitters): New combiner splitters.
19983 (addsub vec_select/vec_concat splitters): Ditto.
19984
19985 2015-06-23 Bin Cheng <bin.cheng@arm.com>
19986
19987 PR tree-optimization/66449
19988 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
19989 POINTER_PLUS_EXPR for pointers.
19990
19991 2015-06-23 Alan Modra <amodra@gmail.com>
19992
19993 * rtlanal.c (commutative_operand_precedence): Correct comments.
19994 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
19995 declaration. Return an int. Distinguish REG,REG return from
19996 others.
19997 (struct simplify_plus_minus_op_data): Make local to function.
19998 (simplify_plus_minus): Don't set canonicalized if merely sorting
19999 registers. Avoid packing ops if nothing changes. White space fixes.
20000
20001 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
20002
20003 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
20004 -fdump-ada-spec is passed but not if -fsyntax-only is.
20005
20006 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
20007
20008 PR bootstrap/63740
20009 * lra-lives.c (process_bb_lives): Check insn copying the same
20010 reload pseudo and don't create a copy for it.
20011
20012 2015-06-22 Tom de Vries <tom@codesourcery.com>
20013
20014 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
20015 for cond_stmt.
20016
20017 2015-06-22 Tom de Vries <tom@codesourcery.com>
20018
20019 * builtins.def (DEF_GOMP_BUILTIN): Test
20020 'flag_tree_parallelize_loops > 1' instead of
20021 'flag_tree_parallelize_loops'. Test flag_cilkplus.
20022
20023 2015-06-22 Tom de Vries <tom@codesourcery.com>
20024
20025 * dominance.c (calculate_dominance_info): Verify dominators if
20026 early-out.
20027
20028 2015-06-22 Marek Polacek <polacek@redhat.com>
20029
20030 * match.pd ((x ^ y) ^ (x | y) -> x & y,
20031 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
20032 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
20033 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
20034
20035 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
20036
20037 PR target/65871
20038 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
20039 cost of embedded comparison.
20040
20041 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20042
20043 PR target/65914
20044 * config/rs6000/predicates.md (altivec_register_operand): Permit
20045 virtual stack registers.
20046 (vsx_register_operand): Likewise.
20047 (vfloat_operand): Likewise.
20048 (vint_operand): Likewise.
20049 (vlogical_operand): Likewise.
20050
20051 2015-06-22 Richard Biener <rguenther@suse.de>
20052
20053 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
20054 and single_scalar_iteration_cost members.
20055 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
20056 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
20057 (vect_get_single_scalar_iteration_cost): Remove.
20058 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
20059 Use LOOP_VINFO_SCALAR_ITERATION_COST.
20060 * tree-vect-loop.c (destroy_loop_vec_info): Free
20061 scalar_cost_vec.
20062 (vect_get_single_scalar_iteration_cost): Compute result into
20063 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
20064 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
20065 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
20066 (vect_estimate_min_profitable_iters): Use them.
20067
20068 2015-06-22 Christian Bruel <christian.bruel@st.com>
20069
20070 PR target/52144
20071 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
20072 (TARGET_INSERT_ATTRIBUTES): Define.
20073 (thumb_flipper): New var.
20074 * config/arm/arm.opt (-mflip-thumb): New switch.
20075
20076 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
20077 Martin Liska <mliska@suse.cz>
20078
20079 PR ipa/65908
20080 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
20081 construction of arg_types.
20082 (sem_function::sem_function): Likewise.
20083 (sem_function::~sem_function): Remove destruction of arg_types.
20084 (sem_function::compatible_parm_types_p): New function.
20085 (sem_function::equals_wpa): Reorg matching of return values
20086 and parameter types.
20087 (sem_function::equals_private): Reorg mathcing of argument types.
20088 (sem_function::parse_tree_args): Remove.
20089 * ipa-icf.h (init_wpa): Do not call it.
20090 (parse_tree_args): Remove.
20091 (compatible_parm_types_p): Declare.
20092 (result_type): Remove.
20093 (arg_types): Remove.
20094
20095 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
20096
20097 PR ipa/66351
20098 * ipa-polymorphic-call.c
20099 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
20100 initializing alias oracle; fix formating; set base_alias_set if it
20101 is known.
20102
20103 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
20104
20105 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
20106 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
20107 (find_inc): Likewise.
20108 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
20109 swapping.
20110 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
20111 * df-scan.c (df_swap_refs): Remove.
20112 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
20113 * dominance.c (link_roots): Use std::swap instead of manually swapping.
20114 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
20115 * fold-const.c (fold_relational_const): Likewise.
20116 * genattrtab.c (simplify_test_exp): Likewise.
20117 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
20118 gimple_simplify): Likewise.
20119 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
20120 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
20121 * ipa-devirt.c (add_type_duplicate): Likewise.
20122 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
20123 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
20124 * lra.c (lra_create_copy): Likewise.
20125 * lto-streamer-out.c (DFS::DFS): Likewise.
20126 * modulo-sched.c (get_sched_window): Likewise.
20127 * omega.c (omega_pretty_print_problem): Likewise.
20128 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
20129 * reload1.c (reloads_unique_chain_p): Likewise.
20130 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
20131 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
20132 use std::swap.
20133 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
20134 manually swapping.
20135 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
20136 predicate_mem_writes): Likewise.
20137 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
20138 * tree-predcom.c (combine_chains): Likewise.
20139 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
20140 refs_may_alias_p_1): Likewise.
20141 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
20142 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
20143 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
20144 number_of_iterations_cond): Likewise.
20145 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20146 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
20147 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
20148 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
20149 * tree-vrp.c (extract_range_from_binary_expr_1,
20150 extract_range_from_unary_expr_1): Likewise.
20151
20152 2015-06-20 Marek Polacek <polacek@redhat.com>
20153
20154 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
20155
20156 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
20157
20158 PR target/66591
20159 * config/sh/sh.c (prepare_move_operands): Replace subreg
20160 index term with R0 for base and index addressing.
20161
20162 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
20163
20164 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
20165 op1 is an fp zero.
20166 (movsf_aarch64): Change condition from register_operand to
20167 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
20168 load1. Change type for alternative 7 to store1.
20169 (movdf_aarch64): Likewise.
20170
20171 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
20172
20173 * config/vax/vax.md: Adjust sign/zero extend patterns to
20174 handle SUBREGs in operands[1].
20175
20176 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20177
20178 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
20179 of manually swapping.
20180 (expand_vec_perm_interleave2): Likewise.
20181
20182 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
20183
20184 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
20185 reuse bounds created for abnormal ssa names.
20186
20187 2015-06-19 Jakub Jelinek <jakub@redhat.com>
20188
20189 * config/nvptx/nvptx.md (allocate_stack): Rename to...
20190 (allocate_stack_<mode>): ... this, and add :P on both
20191 match_operand and unspec.
20192 (allocate_stack): New expander.
20193
20194 2015-06-19 Christian Bruel <christian.bruel@st.com>
20195
20196 PR target/66541
20197 PR target/52144
20198 * config/arm/arm.c (arm_set_current_function): Handle
20199 explicit default options.
20200
20201 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
20202
20203 * config/i386/i386.md (*movsicc_noc_zext): New insn.
20204 (zero-extended cmove with mem peephole2): New pattern.
20205 (cmove with mem peephole2): Merge patterns.
20206
20207 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
20208
20209 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
20210
20211 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
20212
20213 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
20214 * config/mips/mips.md (*madd4<mode>): Ditto.
20215 (*nmadd3<mode>) Ditto.
20216 (*nmadd4<mode>_fastmath): Ditto.
20217 (*nmadd3<mode>_fastmath): Ditto.
20218 (*nmsub4<mode>): Ditto.
20219 (*nmsub3<mode>): Ditto.
20220 (*nmsub4<mode>_fastmath): Ditto.
20221 (*nmsub3<mode>_fastmath): Ditto.
20222
20223 2015-06-18 Michael Matz <matz@suse.de>
20224
20225 PR middle-end/66253
20226 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
20227 grouped strided stores.
20228 (vectorizable_load): Don't use the DR from first_stmt in
20229 the non-SLP grouped strided case.
20230
20231 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20232
20233 PR target/66569
20234 * function.c (assign_bounds): Add arguments assign_regs,
20235 assign_special, assign_bt.
20236 (assign_parms): For vararg functions handle bounds in BT
20237 and special slots after incoming vararg bounds.
20238
20239 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20240
20241 PR middle-end/66568
20242 * cfgexpand.c (expand_return): Handle missing bounds.
20243 (expand_gimple_stmt_1): Likewise.
20244 * tree-chkp.c (chkp_expand_zero_bounds): New.
20245 * tree-chkp.h (chkp_expand_zero_bounds): New.
20246
20247 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20248
20249 PR middle-end/66567
20250 * ipa-chkp.c (chkp_maybe_create_clone): Require
20251 functions to be instrumentable.
20252 * tree-chkp.c (chkp_replace_function_pointer): Use
20253 chkp_instrumentable_p instead of attribute check.
20254
20255 2015-06-18 Richard Biener <rguenther@suse.de>
20256
20257 PR tree-optimization/66510
20258 * tree-vect-stmts.c (vectorizable_load): Properly compute the
20259 number of vector loads for SLP permuted loads.
20260 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
20261 check the stride for loop vectorization.
20262 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
20263 vectorization factor.
20264 (vect_analyze_group_access): If the group size is not a power
20265 of two require a epilogue loop.
20266 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
20267 compute and optimizing and alias test pruning after final
20268 vectorization factor computation.
20269 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
20270 vector alignment.
20271 (vect_transform_slp_perm_load): Properly compute the original
20272 number of vector load stmts.
20273
20274 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
20275
20276 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
20277 "unlikely character , in @var" warning.
20278
20279 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
20280
20281 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
20282 (ix86_function_arg_advance): Ditto.
20283 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
20284
20285 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
20286
20287 * function.h (struct rtl_data): Remove struct and accessor macros.
20288 * emit-rtl.h (struct rtl_data): Relocate to here.
20289 * Makefile.in (GTFILES): Add emit-rtl.h.
20290 * df-core.c: Include emit-rtl.h.
20291 * genattrtab.c: Likewise.
20292 * genconditions.c: Likewise.
20293 * genpreds.c: Likewise.
20294 * genrecog.c: Likewise.
20295 * regcprop.c: Likewise.
20296 * resource.c: Likewise.
20297 * sched-rgn.c: Likewise.
20298 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20299 * config/i386/winnt.c: Likewise.
20300
20301 2015-06-17 Jakub Jelinek <jakub@redhat.com>
20302
20303 PR middle-end/66429
20304 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
20305 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
20306 and has_force_vectorize_loops flags from cfun into
20307 child_cfun.
20308 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
20309 if simduid is non-NULL.
20310 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
20311 * passes.def (pass_simduid_cleanup): Add new pass after loop
20312 passes.
20313 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
20314 indirection from htab argument's type.
20315 (shrink_simd_arrays): New function.
20316 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
20317 Don't call adjust_simduid_builtins if there are no loops.
20318 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
20319 (pass_simduid_cleanup::execute): New method.
20320 (make_pass_simduid_cleanup): New function.
20321
20322 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
20323
20324 * tree-core.h (tree_target_option): Make opts field a pointer to a
20325 cl_target_option instead of an instance of the struct.
20326 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
20327 the structure.
20328 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
20329 TARGET_OPTION_NODE.
20330 (copy_node_stat): Allocate and copy struct cl_target_option.
20331
20332 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
20333
20334 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
20335 Remove conditional exposure of prototypes.
20336 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
20337 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
20338 definitions in tree.h with functions.
20339 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
20340 anon_aggrname_p.
20341 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
20342
20343 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
20344
20345 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
20346 (*cmp<mode>_signed): ... this.
20347 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
20348 (*cmp<mode>_unsigned): ... this. Remove %b.
20349
20350 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
20351
20352 * coretypes.h: Include input.h and as-a.h.
20353 * rtl.h: Include input.h and as-a.h for generator files.
20354 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
20355 * vec.c: Don't include diagnostic-core.h.
20356 * alias.c: Do not include input.h, line-map.h or is-a.h.
20357 * asan.c: Likewise.
20358 * attribs.c: Likewise.
20359 * auto-inc-dec.c: Likewise.
20360 * auto-profile.c: Likewise.
20361 * bb-reorder.c: Likewise.
20362 * bt-load.c: Likewise.
20363 * builtins.c: Likewise.
20364 * caller-save.c: Likewise.
20365 * calls.c: Likewise.
20366 * ccmp.c: Likewise.
20367 * cfg.c: Likewise.
20368 * cfganal.c: Likewise.
20369 * cfgbuild.c: Likewise.
20370 * cfgcleanup.c: Likewise.
20371 * cfgexpand.c: Likewise.
20372 * cfghooks.c: Likewise.
20373 * cfgloop.c: Likewise.
20374 * cfgloop.h: Likewise.
20375 * cfgloopanal.c: Likewise.
20376 * cfgloopmanip.c: Likewise.
20377 * cfgrtl.c: Likewise.
20378 * cgraph.c: Likewise.
20379 * cgraphbuild.c: Likewise.
20380 * cgraphclones.c: Likewise.
20381 * cgraphunit.c: Likewise.
20382 * cilk-common.c: Likewise.
20383 * combine-stack-adj.c: Likewise.
20384 * combine.c: Likewise.
20385 * compare-elim.c: Likewise.
20386 * convert.c: Likewise.
20387 * coverage.c: Likewise.
20388 * cppbuiltin.c: Likewise.
20389 * cprop.c: Likewise.
20390 * cse.c: Likewise.
20391 * cselib.c: Likewise.
20392 * data-streamer-in.c: Likewise.
20393 * data-streamer-out.c: Likewise.
20394 * data-streamer.c: Likewise.
20395 * dbxout.c: Likewise.
20396 * dce.c: Likewise.
20397 * ddg.c: Likewise.
20398 * debug.c: Likewise.
20399 * df-core.c: Likewise.
20400 * df-problems.c: Likewise.
20401 * df-scan.c: Likewise.
20402 * df.h: Likewise.
20403 * dfp.c: Likewise.
20404 * diagnostic-core.h: Likewise.
20405 * diagnostic.c: Likewise.
20406 * dojump.c: Likewise.
20407 * dominance.c: Likewise.
20408 * domwalk.c: Likewise.
20409 * double-int.c: Likewise.
20410 * dse.c: Likewise.
20411 * dumpfile.c: Likewise.
20412 * dumpfile.h: Likewise.
20413 * dwarf2asm.c: Likewise.
20414 * dwarf2cfi.c: Likewise.
20415 * dwarf2out.c: Likewise.
20416 * emit-rtl.c: Likewise.
20417 * et-forest.c: Likewise.
20418 * except.c: Likewise.
20419 * explow.c: Likewise.
20420 * expmed.c: Likewise.
20421 * expr.c: Likewise.
20422 * final.c: Likewise.
20423 * fixed-value.c: Likewise.
20424 * fold-const.c: Likewise.
20425 * function.c: Likewise.
20426 * fwprop.c: Likewise.
20427 * gcc-plugin.h: Likewise.
20428 * gcse.c: Likewise.
20429 * generic-match-head.c: Likewise.
20430 * ggc-page.c: Likewise.
20431 * gimple-builder.c: Likewise.
20432 * gimple-expr.c: Likewise.
20433 * gimple-fold.c: Likewise.
20434 * gimple-iterator.c: Likewise.
20435 * gimple-low.c: Likewise.
20436 * gimple-match-head.c: Likewise.
20437 * gimple-pretty-print.c: Likewise.
20438 * gimple-ssa-isolate-paths.c: Likewise.
20439 * gimple-ssa-strength-reduction.c: Likewise.
20440 * gimple-streamer-in.c: Likewise.
20441 * gimple-streamer-out.c: Likewise.
20442 * gimple-streamer.h: Likewise.
20443 * gimple-walk.c: Likewise.
20444 * gimple.c: Likewise.
20445 * gimplify-me.c: Likewise.
20446 * gimplify.c: Likewise.
20447 * godump.c: Likewise.
20448 * graph.c: Likewise.
20449 * graphite-blocking.c: Likewise.
20450 * graphite-dependences.c: Likewise.
20451 * graphite-interchange.c: Likewise.
20452 * graphite-isl-ast-to-gimple.c: Likewise.
20453 * graphite-optimize-isl.c: Likewise.
20454 * graphite-poly.c: Likewise.
20455 * graphite-scop-detection.c: Likewise.
20456 * graphite-sese-to-poly.c: Likewise.
20457 * graphite.c: Likewise.
20458 * haifa-sched.c: Likewise.
20459 * hw-doloop.c: Likewise.
20460 * ifcvt.c: Likewise.
20461 * init-regs.c: Likewise.
20462 * input.c: Likewise.
20463 * internal-fn.c: Likewise.
20464 * ipa-chkp.c: Likewise.
20465 * ipa-comdats.c: Likewise.
20466 * ipa-cp.c: Likewise.
20467 * ipa-devirt.c: Likewise.
20468 * ipa-icf-gimple.c: Likewise.
20469 * ipa-icf.c: Likewise.
20470 * ipa-inline-analysis.c: Likewise.
20471 * ipa-inline-transform.c: Likewise.
20472 * ipa-inline.c: Likewise.
20473 * ipa-polymorphic-call.c: Likewise.
20474 * ipa-profile.c: Likewise.
20475 * ipa-prop.c: Likewise.
20476 * ipa-pure-const.c: Likewise.
20477 * ipa-ref.c: Likewise.
20478 * ipa-reference.c: Likewise.
20479 * ipa-split.c: Likewise.
20480 * ipa-utils.c: Likewise.
20481 * ipa-visibility.c: Likewise.
20482 * ipa.c: Likewise.
20483 * ira-build.c: Likewise.
20484 * ira-color.c: Likewise.
20485 * ira-conflicts.c: Likewise.
20486 * ira-costs.c: Likewise.
20487 * ira-emit.c: Likewise.
20488 * ira-lives.c: Likewise.
20489 * ira.c: Likewise.
20490 * jump.c: Likewise.
20491 * langhooks.c: Likewise.
20492 * lcm.c: Likewise.
20493 * loop-doloop.c: Likewise.
20494 * loop-init.c: Likewise.
20495 * loop-invariant.c: Likewise.
20496 * loop-iv.c: Likewise.
20497 * loop-unroll.c: Likewise.
20498 * lower-subreg.c: Likewise.
20499 * lra-assigns.c: Likewise.
20500 * lra-coalesce.c: Likewise.
20501 * lra-constraints.c: Likewise.
20502 * lra-eliminations.c: Likewise.
20503 * lra-lives.c: Likewise.
20504 * lra-remat.c: Likewise.
20505 * lra-spills.c: Likewise.
20506 * lra.c: Likewise.
20507 * lto-cgraph.c: Likewise.
20508 * lto-compress.c: Likewise.
20509 * lto-opts.c: Likewise.
20510 * lto-section-in.c: Likewise.
20511 * lto-section-out.c: Likewise.
20512 * lto-streamer-in.c: Likewise.
20513 * lto-streamer-out.c: Likewise.
20514 * lto-streamer.c: Likewise.
20515 * mcf.c: Likewise.
20516 * mode-switching.c: Likewise.
20517 * modulo-sched.c: Likewise.
20518 * omega.c: Likewise.
20519 * omp-low.c: Likewise.
20520 * optabs.c: Likewise.
20521 * opts-global.c: Likewise.
20522 * opts.h: Likewise.
20523 * passes.c: Likewise.
20524 * plugin.c: Likewise.
20525 * postreload-gcse.c: Likewise.
20526 * postreload.c: Likewise.
20527 * predict.c: Likewise.
20528 * pretty-print.h: Likewise.
20529 * print-rtl.c: Likewise.
20530 * print-tree.c: Likewise.
20531 * profile.c: Likewise.
20532 * real.c: Likewise.
20533 * realmpfr.c: Likewise.
20534 * recog.c: Likewise.
20535 * ree.c: Likewise.
20536 * reg-stack.c: Likewise.
20537 * regcprop.c: Likewise.
20538 * reginfo.c: Likewise.
20539 * regrename.c: Likewise.
20540 * regstat.c: Likewise.
20541 * reload.c: Likewise.
20542 * reload1.c: Likewise.
20543 * reorg.c: Likewise.
20544 * resource.c: Likewise.
20545 * rtl-chkp.c: Likewise.
20546 * rtl-error.c: Likewise.
20547 * rtlanal.c: Likewise.
20548 * rtlhooks.c: Likewise.
20549 * sanopt.c: Likewise.
20550 * sched-deps.c: Likewise.
20551 * sched-ebb.c: Likewise.
20552 * sched-rgn.c: Likewise.
20553 * sched-vis.c: Likewise.
20554 * sdbout.c: Likewise.
20555 * sel-sched-dump.c: Likewise.
20556 * sel-sched-ir.c: Likewise.
20557 * sel-sched.c: Likewise.
20558 * sese.c: Likewise.
20559 * shrink-wrap.c: Likewise.
20560 * simplify-rtx.c: Likewise.
20561 * stack-ptr-mod.c: Likewise.
20562 * statistics.c: Likewise.
20563 * stmt.c: Likewise.
20564 * stor-layout.c: Likewise.
20565 * store-motion.c: Likewise.
20566 * streamer-hooks.c: Likewise.
20567 * stringpool.c: Likewise.
20568 * symtab.c: Likewise.
20569 * target-globals.c: Likewise.
20570 * targhooks.c: Likewise.
20571 * toplev.c: Likewise.
20572 * tracer.c: Likewise.
20573 * trans-mem.c: Likewise.
20574 * tree-affine.c: Likewise.
20575 * tree-browser.c: Likewise.
20576 * tree-call-cdce.c: Likewise.
20577 * tree-cfg.c: Likewise.
20578 * tree-cfgcleanup.c: Likewise.
20579 * tree-chkp-opt.c: Likewise.
20580 * tree-chkp.c: Likewise.
20581 * tree-chrec.c: Likewise.
20582 * tree-complex.c: Likewise.
20583 * tree-data-ref.c: Likewise.
20584 * tree-dfa.c: Likewise.
20585 * tree-diagnostic.c: Likewise.
20586 * tree-dump.c: Likewise.
20587 * tree-eh.c: Likewise.
20588 * tree-emutls.c: Likewise.
20589 * tree-if-conv.c: Likewise.
20590 * tree-inline.c: Likewise.
20591 * tree-into-ssa.c: Likewise.
20592 * tree-iterator.c: Likewise.
20593 * tree-loop-distribution.c: Likewise.
20594 * tree-nested.c: Likewise.
20595 * tree-nrv.c: Likewise.
20596 * tree-object-size.c: Likewise.
20597 * tree-outof-ssa.c: Likewise.
20598 * tree-parloops.c: Likewise.
20599 * tree-phinodes.c: Likewise.
20600 * tree-predcom.c: Likewise.
20601 * tree-pretty-print.c: Likewise.
20602 * tree-profile.c: Likewise.
20603 * tree-scalar-evolution.c: Likewise.
20604 * tree-sra.c: Likewise.
20605 * tree-ssa-address.c: Likewise.
20606 * tree-ssa-alias.c: Likewise.
20607 * tree-ssa-ccp.c: Likewise.
20608 * tree-ssa-coalesce.c: Likewise.
20609 * tree-ssa-copy.c: Likewise.
20610 * tree-ssa-copyrename.c: Likewise.
20611 * tree-ssa-dce.c: Likewise.
20612 * tree-ssa-dom.c: Likewise.
20613 * tree-ssa-dse.c: Likewise.
20614 * tree-ssa-forwprop.c: Likewise.
20615 * tree-ssa-ifcombine.c: Likewise.
20616 * tree-ssa-live.c: Likewise.
20617 * tree-ssa-loop-ch.c: Likewise.
20618 * tree-ssa-loop-im.c: Likewise.
20619 * tree-ssa-loop-ivcanon.c: Likewise.
20620 * tree-ssa-loop-ivopts.c: Likewise.
20621 * tree-ssa-loop-manip.c: Likewise.
20622 * tree-ssa-loop-niter.c: Likewise.
20623 * tree-ssa-loop-prefetch.c: Likewise.
20624 * tree-ssa-loop-unswitch.c: Likewise.
20625 * tree-ssa-loop.c: Likewise.
20626 * tree-ssa-math-opts.c: Likewise.
20627 * tree-ssa-operands.c: Likewise.
20628 * tree-ssa-phiopt.c: Likewise.
20629 * tree-ssa-phiprop.c: Likewise.
20630 * tree-ssa-pre.c: Likewise.
20631 * tree-ssa-propagate.c: Likewise.
20632 * tree-ssa-reassoc.c: Likewise.
20633 * tree-ssa-sccvn.c: Likewise.
20634 * tree-ssa-scopedtables.c: Likewise.
20635 * tree-ssa-sink.c: Likewise.
20636 * tree-ssa-strlen.c: Likewise.
20637 * tree-ssa-structalias.c: Likewise.
20638 * tree-ssa-tail-merge.c: Likewise.
20639 * tree-ssa-ter.c: Likewise.
20640 * tree-ssa-threadedge.c: Likewise.
20641 * tree-ssa-threadupdate.c: Likewise.
20642 * tree-ssa-uncprop.c: Likewise.
20643 * tree-ssa-uninit.c: Likewise.
20644 * tree-ssa.c: Likewise.
20645 * tree-ssanames.c: Likewise.
20646 * tree-stdarg.c: Likewise.
20647 * tree-streamer-in.c: Likewise.
20648 * tree-streamer-out.c: Likewise.
20649 * tree-streamer.c: Likewise.
20650 * tree-switch-conversion.c: Likewise.
20651 * tree-tailcall.c: Likewise.
20652 * tree-vect-data-refs.c: Likewise.
20653 * tree-vect-generic.c: Likewise.
20654 * tree-vect-loop-manip.c: Likewise.
20655 * tree-vect-loop.c: Likewise.
20656 * tree-vect-patterns.c: Likewise.
20657 * tree-vect-slp.c: Likewise.
20658 * tree-vect-stmts.c: Likewise.
20659 * tree-vectorizer.c: Likewise.
20660 * tree-vrp.c: Likewise.
20661 * tree.c: Likewise.
20662 * tsan.c: Likewise.
20663 * ubsan.c: Likewise.
20664 * valtrack.c: Likewise.
20665 * value-prof.c: Likewise.
20666 * var-tracking.c: Likewise.
20667 * varasm.c: Likewise.
20668 * varpool.c: Likewise.
20669 * vmsdbgout.c: Likewise.
20670 * vtable-verify.c: Likewise.
20671 * web.c: Likewise.
20672 * wide-int.cc: Likewise.
20673 * xcoffout.c: Likewise.
20674 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
20675 * common/common-targhooks.c: Likewise.
20676 * config/aarch64/aarch64-builtins.c: Likewise.
20677 * config/aarch64/aarch64.c: Likewise.
20678 * config/alpha/alpha.c: Likewise.
20679 * config/arc/arc.c: Likewise.
20680 * config/arm/aarch-common.c: Likewise.
20681 * config/arm/arm-builtins.c: Likewise.
20682 * config/arm/arm-c.c: Likewise.
20683 * config/arm/arm.c: Likewise.
20684 * config/avr/avr-c.c: Likewise.
20685 * config/avr/avr-log.c: Likewise.
20686 * config/avr/avr.c: Likewise.
20687 * config/bfin/bfin.c: Likewise.
20688 * config/c6x/c6x.c: Likewise.
20689 * config/cr16/cr16.c: Likewise.
20690 * config/cris/cris.c: Likewise.
20691 * config/darwin-c.c: Likewise.
20692 * config/darwin.c: Likewise.
20693 * config/default-c.c: Likewise.
20694 * config/epiphany/epiphany.c: Likewise.
20695 * config/epiphany/mode-switch-use.c: Likewise.
20696 * config/epiphany/resolve-sw-modes.c: Likewise.
20697 * config/fr30/fr30.c: Likewise.
20698 * config/frv/frv.c: Likewise.
20699 * config/ft32/ft32.c: Likewise.
20700 * config/glibc-c.c: Likewise.
20701 * config/h8300/h8300.c: Likewise.
20702 * config/i386/i386-c.c: Likewise.
20703 * config/i386/i386.c: Likewise.
20704 * config/i386/msformat-c.c: Likewise.
20705 * config/i386/winnt-cxx.c: Likewise.
20706 * config/i386/winnt-stubs.c: Likewise.
20707 * config/i386/winnt.c: Likewise.
20708 * config/ia64/ia64-c.c: Likewise.
20709 * config/ia64/ia64.c: Likewise.
20710 * config/iq2000/iq2000.c: Likewise.
20711 * config/lm32/lm32.c: Likewise.
20712 * config/m32c/m32c-pragma.c: Likewise.
20713 * config/m32c/m32c.c: Likewise.
20714 * config/m32r/m32r.c: Likewise.
20715 * config/m68k/m68k.c: Likewise.
20716 * config/mcore/mcore.c: Likewise.
20717 * config/mep/mep-pragma.c: Likewise.
20718 * config/mep/mep.c: Likewise.
20719 * config/microblaze/microblaze-c.c: Likewise.
20720 * config/microblaze/microblaze.c: Likewise.
20721 * config/mips/mips.c: Likewise.
20722 * config/mmix/mmix.c: Likewise.
20723 * config/mn10300/mn10300.c: Likewise.
20724 * config/moxie/moxie.c: Likewise.
20725 * config/msp430/msp430-c.c: Likewise.
20726 * config/msp430/msp430.c: Likewise.
20727 * config/nds32/nds32-cost.c: Likewise.
20728 * config/nds32/nds32-fp-as-gp.c: Likewise.
20729 * config/nds32/nds32-intrinsic.c: Likewise.
20730 * config/nds32/nds32-isr.c: Likewise.
20731 * config/nds32/nds32-md-auxiliary.c: Likewise.
20732 * config/nds32/nds32-memory-manipulation.c: Likewise.
20733 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20734 * config/nds32/nds32-predicates.c: Likewise.
20735 * config/nds32/nds32.c: Likewise.
20736 * config/nios2/nios2.c: Likewise.
20737 * config/nvptx/nvptx.c: Likewise.
20738 * config/pa/pa.c: Likewise.
20739 * config/pdp11/pdp11.c: Likewise.
20740 * config/rl78/rl78-c.c: Likewise.
20741 * config/rl78/rl78.c: Likewise.
20742 * config/rs6000/rs6000-c.c: Likewise.
20743 * config/rs6000/rs6000.c: Likewise.
20744 * config/rx/rx.c: Likewise.
20745 * config/s390/s390-c.c: Likewise.
20746 * config/s390/s390.c: Likewise.
20747 * config/sh/sh-c.c: Likewise.
20748 * config/sh/sh-mem.cc: Likewise.
20749 * config/sh/sh.c: Likewise.
20750 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20751 * config/sh/sh_treg_combine.cc: Likewise.
20752 * config/sol2-c.c: Likewise.
20753 * config/sol2-cxx.c: Likewise.
20754 * config/sol2-stubs.c: Likewise.
20755 * config/sol2.c: Likewise.
20756 * config/sparc/sparc-c.c: Likewise.
20757 * config/sparc/sparc.c: Likewise.
20758 * config/spu/spu-c.c: Likewise.
20759 * config/spu/spu.c: Likewise.
20760 * config/stormy16/stormy16.c: Likewise.
20761 * config/tilegx/mul-tables.c: Likewise.
20762 * config/tilegx/tilegx-c.c: Likewise.
20763 * config/tilegx/tilegx.c: Likewise.
20764 * config/tilepro/mul-tables.c: Likewise.
20765 * config/tilepro/tilepro-c.c: Likewise.
20766 * config/tilepro/tilepro.c: Likewise.
20767 * config/v850/v850-c.c: Likewise.
20768 * config/v850/v850.c: Likewise.
20769 * config/vax/vax.c: Likewise.
20770 * config/visium/visium.c: Likewise.
20771 * config/vms/vms-c.c: Likewise.
20772 * config/vms/vms.c: Likewise.
20773 * config/vxworks.c: Likewise.
20774 * config/winnt-c.c: Likewise.
20775 * config/xtensa/xtensa.c: Likewise.
20776
20777 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
20778
20779 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
20780 function.
20781 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
20782
20783 2015-06-17 Richard Biener <rguenther@suse.de>
20784
20785 PR tree-optimization/66251
20786 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
20787 stmts for SLP strided stores.
20788
20789 Revert
20790 2015-05-22 Richard Biener <rguenther@suse.de>
20791
20792 PR tree-optimization/66251
20793 * tree-vect-stmts.c (vectorizable_conversion): Properly
20794 set STMT_VINFO_VEC_STMT even for the SLP case.
20795
20796 2015-05-26 Michael Matz <matz@suse.de>
20797
20798 PR middle-end/66251
20799 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
20800 STMT_VINFO_VEC_STMT, also with SLP.
20801
20802 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
20803
20804 PR target/56766
20805 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
20806 (*avx_addsubv4df3_1s): Ditto.
20807 (*sse3_addsubv2df3_1): Ditto.
20808 (*sse3_addsubv2df3_1s): Ditto.
20809 (*avx_addsubv8sf3_1): Ditto.
20810 (*avx_addsubv8sf3_1s): Ditto.
20811 (*sse3_addsubv4sf3_1): Ditto.
20812 (*sse3_addsubv4sf3_1s): Ditto.
20813
20814 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
20815
20816 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
20817 (SYSROOT_SUFFIX_SPEC): Update.
20818 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
20819 (STARTFILE_PREFIX_SPEC): Update.
20820 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
20821 (MULTILIB_REQUIRED): New.
20822 (MULTILIB_OSDIRNAMES): New.
20823 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
20824 (MULTILIB_REQUIRED): New.
20825 (MULTILIB_OSDIRNAMES): New.
20826
20827 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
20828
20829 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
20830 * config/aarch64/aarch64-options-extensions.def: Update "fP",
20831 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
20832 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
20833 (AARCH64_FL_PAN): New.
20834 (AARCH64_FL_LOR): New.
20835 (AARCH64_FL_RDMA): New.
20836 (AARCH64_FL_FOR_ARCH8_1): New.
20837 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
20838 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
20839
20840 2015-06-16 Martin Liska <mliska@suse.cz>
20841
20842 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
20843 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
20844 guard.
20845
20846 2015-06-16 Richard Biener <rguenther@suse.de>
20847
20848 * tree-vect-stmts.c (vectorizable_store): Adjust.
20849 (vectorizable_load): Likewise.
20850 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20851 Simplify.
20852 (vect_create_data_ref_ptr): Likewise.
20853 (bump_vector_ptr): Adjust.
20854
20855 2015-06-16 Richard Biener <rguenther@suse.de>
20856
20857 * tree-vect-stmts.c (vectorizable_load): Properly start loads
20858 with the first element if this is grouped loads.
20859
20860 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
20861
20862 * config/arm/arm-protos.h (struct tune_params): Rename
20863 log_op_non_sc to log_op_non_short_circuit, and rename enum
20864 values to expand SC to SHORT_CIRCUIT.
20865 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
20866 to LOG_OP_NON_SHORT_CIRCUIT.
20867 (arm_fastmul_tune):Likewise
20868 (arm_strongarm_tune): Likewise.
20869 (arm_xscale_tune): Likewise.
20870 (arm_9e_tune): Likewise.
20871 (arm_marvell_pj4_tune): Likewise.
20872 (arm_v6t2_tune): Likewise.
20873 (arm_cortex_tune): Likewise.
20874 (arm_cortex_a8_tune): Likewise.
20875 (arm_cortex_a7_tune): Likewise.
20876 (arm_cortex_a15_tune): Likewise.
20877 (arm_cortex_a53_tune): Likewise.
20878 (arm_cortex_a57_tune): Likewise.
20879 (arm_xgene1_tune): Likewise.
20880 (arm_cortex_a5_tune): Likewise.
20881 (arm_cortex_a9_tune): Likewise.
20882 (arm_cortex_a12_tune): Likewise.
20883 (arm_v7m_tune): Likewise.
20884 (arm_cortex_m7_tune): Likewise.
20885 (arm_v6m_tune): Likewise.
20886 (arm_fa726te_tune): Likewise.
20887
20888 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
20889
20890 * altivec.md: Delete UNSPEC_VMLADDUHM.
20891 (mulv4si3_p8): New pattern.
20892 (mulv4si3): Use it for POWER8.
20893 (mulv8hi3): Use vmladduhm with zero addend.
20894 (altivec_vmladduhm): Descriptive RTL.
20895
20896 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
20897
20898 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
20899 to use neon_move instead of mov_imm.
20900 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
20901 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
20902
20903 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
20904 aarch64_float_const_zero_rtx_p check before TFmode check.
20905 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
20906 an fp zero.
20907 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
20908 code and attributes to match. Change condition from register_operand
20909 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
20910 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
20911 to store2.
20912
20913 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
20914
20915 PR debug/66535
20916 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
20917 there is no parent.
20918
20919 2015-06-14 Shiva Chen <shiva0217@gmail.com>
20920
20921 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
20922 HOST_WIDE_INT parameter.
20923
20924 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
20925
20926 PR ipa/66181
20927 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
20928 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
20929 TYPE_NO_FORCE_BLK.
20930 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
20931
20932 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
20933
20934 * rtl.h (classify_insn): Declare.
20935 * emit-rtl.c (classify_insn): Move to...
20936 * rtl.c: ...here and add generator support.
20937 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
20938 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
20939 * genemit.c (gen_emit_seq): New function.
20940 (gen_expand, gen_split): Use it.
20941
20942 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
20943
20944 * tree.c (make_vector_stat): Fix comment to state that the
20945 function returns a VECTOR_CST.
20946
20947 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
20948
20949 * gensupport.h (add_implicit_parallel): Declare.
20950 * genrecog.c (add_implicit_parallel): Move to...
20951 * gensupport.c (add_implicit_parallel): ...here.
20952 (process_one_cond_exec): Use it.
20953 * genemit.c (gen_insn): Likewise.
20954
20955 2015-06-13 Iain Sandoe <iain@codesourcery.com>
20956
20957 PR bootstrap/66448
20958 * passes.c (rest_of_decl_compilation): Do not register globals for
20959 early debug if they are declared in built-ins.
20960
20961 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
20962
20963 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
20964
20965 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20966
20967 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
20968 manually swapping.
20969 (noce_try_cmove_arith): Likewise.
20970 (noce_get_alt_condition): Likewise.
20971
20972 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20973
20974 * common/config/i386/i386-common.c
20975 (OPTION_MASK_ISA_MWAITX_SET): New.
20976 (ix86_handle_option): Handle mwaitx.
20977 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
20978 (x86_64-*-*): Likewise.
20979 * config/i386/mwaitxintrin.h: New header.
20980 * config/i386/cpuid.h (bit_MWAITX): Define.
20981 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20982 MWAITX support.
20983 * config/i386/i386.opt (mwaitx): New.
20984 * config/i386/i386-builtin-types.def
20985 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
20986 * config/i386/i386-c.c: Define __MWAITX__ if needed.
20987 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
20988 (PTA_MWAITX): New.
20989 (ix86_option_override_internal): Handle new option.
20990 (processor_alias_table): Added PTA_MWAITX.
20991 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
20992 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
20993 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
20994 IX86_BUILTIN_MONITORX built-ins.
20995 * config/i386/i386.h (TARGET_MWAITX): New.
20996 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
20997 UNSPEC_MONITORX.
20998 (mwaitx): New pattern.
20999 (monitorx_<mode>): New pattern.
21000 * config/i386/x86intrin.h: Include mwaitxintrin.h.
21001 * doc/extend.texi: Document monitorx and mwaitx builtins.
21002 * doc/invoke.texi: Document -mmwaitx option.
21003
21004 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
21005
21006 * emit-rtl.c (need_atomic_barrier_p): Mask model with
21007 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
21008
21009 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
21010
21011 * dbxout.c (xcoff_debug_hooks): Provide a function for
21012 register_main_translation_unit hook.
21013
21014 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
21015
21016 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
21017 variants cases from switch.
21018 (rs6000_post_atomic_barrier): Same.
21019 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
21020 (rs6000_expand_atomic_exchange): Same.
21021 (rs6000_expand_atomic_op): Same.
21022 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
21023 SYNC variants cases from switch.
21024 (atomic_load): Same.
21025 (atomic_store): Same.
21026
21027 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
21028
21029 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
21030 CONST_INT for goto.
21031
21032 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
21033
21034 PR bootstrap/66448
21035 * dwarf2out.c (check_die): Check for common duplicate attributes.
21036 (add_location_or_const_value_attribute): Do not add duplicate
21037 attributes.
21038 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
21039 time around.
21040 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
21041 (gen_type_die_with_usage): Call check_die.
21042 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
21043
21044 2015-06-11 Jason Merrill <jason@redhat.com>
21045
21046 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
21047 dies.
21048
21049 2015-06-11 Marek Polacek <polacek@redhat.com>
21050
21051 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
21052
21053 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
21054
21055 PR bootstrap/66252
21056 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
21057 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
21058 (*addx_extend_sp32): Fix pasto.
21059 (*subx_extend): Rename into...
21060 (*subx_extend_sp32): ...this.
21061 (*adddi3_extend_sp32): Add earlyclobber.
21062 (*subdi3_insn_sp32): Likewise.
21063 (*subdi3_extend_sp32): Likewise.
21064 (*and_not_di_sp32): Likewise.
21065 (*or_not_di_sp32): Likewise.
21066 (*xor_not_di_sp32): Likewise.
21067 (*negdi2_sp32): Likewise.
21068 (*one_cmpldi2_sp32): Likewise.
21069
21070 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
21071
21072 * debug.h (struct gcc_debug_hooks): Add a
21073 register_main_translation_unit hook.
21074 * debug.c (do_nothing_debug_hooks): Provide a function for this
21075 new hook.
21076 * dbxout.c (dbx_debug_hooks): Likewise.
21077 * sdbout.c (sdb_debug_hooks): Likewise.
21078 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21079 * dwarf2out.c (main_translation_unit): New global variable.
21080 (dwarf2out_register_main_translation_unit): New function
21081 implementing the new hook.
21082 (dwarf2_debug_hooks): Assign
21083 dwarf2out_register_main_translation_unit to this new hook.
21084 (dwarf2out_init): Associate any main translation unit to
21085 comp_unit_die ().
21086
21087 2015-06-11 Marek Polacek <polacek@redhat.com>
21088
21089 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
21090
21091 2015-06-11 Marek Polacek <polacek@redhat.com>
21092
21093 * match.pd: Use single_use throughout.
21094
21095 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21096
21097 * config/arm/arm.c (arm_option_params_internal): When optimising
21098 for speed set max_insns_skipped when arm_restrict_it.
21099
21100 2015-06-11 Christian Bruel <christian.bruel@st.com>
21101
21102 PR target/52144
21103 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
21104 macros in ...
21105 (arm_cpu_builtins): New function.
21106 (arm_pragma_target_parse): Call arm_cpu_builtins.
21107 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
21108 (arm_register_target_pragmas): Likewise.
21109 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
21110 Call arm_register_target_pragmas.
21111 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
21112 (arm_pragma_target_parse): Likewise.
21113
21114 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
21115
21116 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
21117 of the second operand.
21118
21119 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
21120
21121 PR target/66473
21122 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
21123 to prepare mask operand for AVX512 modes.
21124
21125 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
21126
21127 PR target/66474
21128 * doc/md.texi (Machine Constraints): Document that on the PowerPC
21129 if you use a constraint that targets a VSX register, you must use
21130 %x<n> in the template.
21131
21132 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
21133
21134 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
21135 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
21136 (define_insn "trap"): New definition.
21137
21138 2015-06-10 Richard Biener <rguenther@suse.de>
21139
21140 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
21141 out from ...
21142 (vect_supported_load_permutation_p): ... here. Handle
21143 supportable permutations in reductions.
21144 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
21145 for vectorizing strided group loads.
21146
21147 2015-06-10 Jakub Jelinek <jakub@redhat.com>
21148
21149 PR target/66470
21150 * config/i386/i386.c (ix86_split_long_move): For collisions
21151 involving direct tls segment refs, move the UNSPEC_TP possibly
21152 wrapped in ZERO_EXTEND out of the address for lea, to each of
21153 the memory loads.
21154
21155 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21156
21157 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
21158 dmb sy. Adjust tabs.
21159
21160 2015-06-10 Tom de Vries <tom@codesourcery.com>
21161
21162 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
21163
21164 2015-06-10 Martin Liska <mliska@suse.cz>
21165
21166 PR bootstrap/66471
21167 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
21168 all enum values in mem_alloc_origin.
21169 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
21170 name.
21171 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
21172 * bitmap.c (bitmap_register): Likewise.
21173 (dump_bitmap_statistics): Likewise.
21174 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
21175 (ggc_record_overhead): Likewise.
21176 * hash-map.h: Likewise.
21177 * hash-set.h: Likewise.
21178 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
21179 * hash-table.h: Likewise.
21180 * vec.c (vec_prefix::register_overhead): Likewise.
21181 (vec_prefix::release_overhead): Likewise.
21182 (dump_vec_loc_statistics): Likewise.
21183
21184 2015-06-09 Christian Bruel <christian.bruel@st.com>
21185
21186 PR target/52144
21187 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
21188 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
21189 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
21190 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
21191 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
21192 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
21193 (arm_valid_target_attribute_p): Likewise.
21194 (arm_set_current_function, arm_can_inline_p): Likewise.
21195 (arm_valid_target_attribute_rec): Likewise.
21196 (arm_previous_fndecl): New variable.
21197 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
21198 (TARGET_CAN_INLINE_P): Define.
21199 (arm_asm_trampoline_template): Emit mode.
21200 (arm_file_start): Don't set unified syntax.
21201 (arm_declare_function_name): Set unified syntax and mode.
21202 (arm_option_override): Init target_option_default_node.
21203 and target_option_current_node.
21204 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
21205 (*call_symbol): Likewise.
21206 * doc/extend.texi: Document ARM/Thumb target attribute.
21207 * doc/invoke.texi: Likewise.
21208
21209 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21210
21211 Revert:
21212 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21213 PR rtl-optimization/64164
21214 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21215 * tree-ssa-copyrename.c: Removed.
21216 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21217 -ftree-coalesce-vars.
21218 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21219 * common.opt (ftree-copyrename): Ignore.
21220 (ftree-coalesce-inlined-vars): Likewise.
21221 * doc/invoke.texi: Remove the ignored options above.
21222 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21223 * tree-ssa-coalesce.h: ... here.
21224 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21225 headers required by it.
21226 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21227 across variables when flag_tree_coalesce_vars. Check register
21228 use and promoted modes to allow coalescing. Moved to
21229 tree-ssa-coalesce.c.
21230 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21231 with its member functions to tree-ssa-coalesce.c.
21232 (var_map_base_init): Likewise. Renamed to
21233 compute_samebase_partition_bases.
21234 (partition_view_normal): Drop want_bases parameter.
21235 (partition_view_bitmap): Likewise.
21236 * tree-ssa-live.h: Adjust declarations.
21237 * tree-ssa-coalesce.c: Include explow.h.
21238 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21239 default defs at the entry point.
21240 (dump_part_var_map): New.
21241 (compute_optimized_partition_bases): New, called by...
21242 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21243 of compute_samebase_partition_bases. Adjust.
21244 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21245 * cfgexpand.c (leader_merge): New.
21246 (get_rtl_for_parm_ssa_default_def): New.
21247 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21248 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21249 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21250 redundant MEM attr setting.
21251 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21252 from...
21253 (expand_one_stack_var): ... this. New wrapper to check and
21254 skip already expanded SSA partitions.
21255 (record_alignment_for_reg_var): New, factored out of...
21256 (expand_one_var): ... this.
21257 (expand_one_ssa_partition): New.
21258 (adjust_one_expanded_partition_var): New.
21259 (expand_one_register_var): Check and skip already expanded SSA
21260 partitions.
21261 (expand_used_vars): Don't create DECLs for anonymous SSA
21262 names. Expand all SSA partitions, then adjust all SSA names.
21263 (pass::execute): Replace the loops that set
21264 SA.partition_to_pseudo from partition leaders and cleared
21265 DECL_RTL for multi-location variables, and that which used to
21266 rename vars and set attrs, with one that clears DECL_RTL and
21267 checks that PARMs and RESULTs default_defs match DECL_RTL.
21268 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21269 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21270 * explow.c (promote_ssa_mode): New.
21271 * explow.h (promote_ssa_mode): Declare.
21272 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21273 * function.c: Include cfgexpand.h.
21274 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21275 (use_register_for_parm_decl): Wrapper for the above to
21276 special-case the result_ptr.
21277 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21278 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21279 multiple locations.
21280 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21281 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21282 (assign_parm_setup_block): Prefer SSA-assigned location.
21283 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21284 if stack_parm is NULL.
21285 (assign_parm_setup_stack): Prefer SSA-assigned location.
21286 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21287 rtl before testing for pointer bounds. Special-case result_ptr.
21288 (expand_function_start): Maybe reset DECL_RTL of result.
21289 Prefer SSA-assigned location for result and static chain.
21290 Factor out DECL_RESULT and SET_DECL_RTL.
21291 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21292 anonymous SSA names. Use promote_ssa_mode.
21293 (get_temp_reg): Likewise.
21294 (remove_ssa_form): Adjust.
21295 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21296 and get its reg_usage for reg invalidation.
21297 (compute_bb_dataflow): Pass it insn.
21298 (emit_notes_in_bb): Likewise.
21299 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
21300 fail assert on conversion between unsigned types.
21301
21302 2015-06-09 Tom de Vries <tom@codesourcery.com>
21303
21304 PR tree-optimization/65460
21305 * omp-low.c (expand_omp_target): Set parallelized_function on
21306 cgraph_node for child_fn.
21307
21308 2015-06-09 Tom de Vries <tom@codesourcery.com>
21309
21310 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
21311 parallelized_function before add_new_function.
21312
21313 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
21314
21315 * gcc-plugin.h: Move decls to plugin.h and include it.
21316 * plugin.h: Relocate decls from gcc-plugin.h
21317 * ggc-page.c: Include required header files.
21318 * passes.c: Likewise.
21319 * cgraphunit.c: Likewise.
21320
21321 2015-06-09 Tom de Vries <tom@codesourcery.com>
21322
21323 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
21324
21325 2015-06-09 Jason Merrill <jason@redhat.com>
21326
21327 PR bootstrap/66448
21328 * toplev.c (check_global_declaration): Don't warn about a clone.
21329
21330 2015-06-09 Marek Polacek <polacek@redhat.com>
21331
21332 PR tree-optimization/66299
21333 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
21334 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
21335 patterns.
21336
21337 2015-06-09 Richard Biener <rguenther@suse.de>
21338
21339 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
21340 (vect_analyze_slp_instance): Instead do not falsely drop
21341 load permutations.
21342
21343 2015-06-09 Richard Biener <rguenther@suse.de>
21344
21345 PR middle-end/66423
21346 * match.pd: Handle A % (unsigned)(1 << B).
21347
21348 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
21349
21350 * varasm.c (output_object_block_htab): Remove.
21351 (output_object_block_compare): New.
21352 (output_object_blocks): Sort named object_blocks before outputting
21353 them.
21354
21355 2015-06-09 Richard Biener <rguenther@suse.de>
21356
21357 PR tree-optimization/66419
21358 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
21359 consider GROUP_GAP when detecting a perfect subchain.
21360
21361 2015-06-09 Nick Clifton <nickc@redhat.com>
21362
21363 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
21364 place read only data in the .frodata section.
21365
21366 2015-06-09 Shiva Chen <shiva0217@gmail.com>
21367
21368 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
21369 (atomic_store<mode>): Likewise.
21370
21371 2015-06-09 Richard Biener <rguenther@suse.de>
21372
21373 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
21374
21375 2015-06-09 Richard Biener <rguenther@suse.de>
21376
21377 PR middle-end/66413
21378 * tree-inline.c (insert_init_debug_bind): Unshare value.
21379
21380 2015-06-09 Richard Biener <rguenther@suse.de>
21381
21382 PR tree-optimization/66396
21383 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
21384 Rename virtual operands.
21385
21386 2015-06-09 Tom de Vries <tom@codesourcery.com>
21387
21388 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
21389 always return false.
21390
21391 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21392
21393 PR rtl-optimization/64164
21394 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21395 * tree-ssa-copyrename.c: Removed.
21396 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21397 -ftree-coalesce-vars.
21398 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21399 * common.opt (ftree-copyrename): Ignore.
21400 (ftree-coalesce-inlined-vars): Likewise.
21401 * doc/invoke.texi: Remove the ignored options above.
21402 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21403 * tree-ssa-coalesce.h: ... here.
21404 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21405 headers required by it.
21406 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21407 across variables when flag_tree_coalesce_vars. Check register
21408 use and promoted modes to allow coalescing. Moved to
21409 tree-ssa-coalesce.c.
21410 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21411 with its member functions to tree-ssa-coalesce.c.
21412 (var_map_base_init): Likewise. Renamed to
21413 compute_samebase_partition_bases.
21414 (partition_view_normal): Drop want_bases parameter.
21415 (partition_view_bitmap): Likewise.
21416 * tree-ssa-live.h: Adjust declarations.
21417 * tree-ssa-coalesce.c: Include explow.h.
21418 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21419 default defs at the entry point.
21420 (dump_part_var_map): New.
21421 (compute_optimized_partition_bases): New, called by...
21422 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21423 of compute_samebase_partition_bases. Adjust.
21424 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21425 * cfgexpand.c (leader_merge): New.
21426 (get_rtl_for_parm_ssa_default_def): New.
21427 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21428 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21429 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21430 redundant MEM attr setting.
21431 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21432 from...
21433 (expand_one_stack_var): ... this. New wrapper to check and
21434 skip already expanded SSA partitions.
21435 (record_alignment_for_reg_var): New, factored out of...
21436 (expand_one_var): ... this.
21437 (expand_one_ssa_partition): New.
21438 (adjust_one_expanded_partition_var): New.
21439 (expand_one_register_var): Check and skip already expanded SSA
21440 partitions.
21441 (expand_used_vars): Don't create DECLs for anonymous SSA
21442 names. Expand all SSA partitions, then adjust all SSA names.
21443 (pass::execute): Replace the loops that set
21444 SA.partition_to_pseudo from partition leaders and cleared
21445 DECL_RTL for multi-location variables, and that which used to
21446 rename vars and set attrs, with one that clears DECL_RTL and
21447 checks that PARMs and RESULTs default_defs match DECL_RTL.
21448 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21449 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21450 * explow.c (promote_ssa_mode): New.
21451 * explow.h (promote_ssa_mode): Declare.
21452 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21453 * function.c: Include cfgexpand.h.
21454 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21455 (use_register_for_parm_decl): Wrapper for the above to
21456 special-case the result_ptr.
21457 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21458 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21459 multiple locations.
21460 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21461 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21462 (assign_parm_setup_block): Prefer SSA-assigned location.
21463 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21464 if stack_parm is NULL.
21465 (assign_parm_setup_stack): Prefer SSA-assigned location.
21466 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21467 rtl before testing for pointer bounds. Special-case result_ptr.
21468 (expand_function_start): Maybe reset DECL_RTL of result.
21469 Prefer SSA-assigned location for result and static chain.
21470 Factor out DECL_RESULT and SET_DECL_RTL.
21471 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21472 anonymous SSA names. Use promote_ssa_mode.
21473 (get_temp_reg): Likewise.
21474 (remove_ssa_form): Adjust.
21475 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21476 and get its reg_usage for reg invalidation.
21477 (compute_bb_dataflow): Pass it insn.
21478 (emit_notes_in_bb): Likewise.
21479 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
21480 fail assert on conversion between unsigned types.
21481
21482 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21483
21484 PR debug/58315
21485 * tree-inline.c (reset_debug_binding): New.
21486 (reset_debug_bindings): Likewise.
21487 (expand_call_inline): Call it.
21488
21489 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
21490
21491 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
21492 TYPE_STRING_FLAG.
21493
21494 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
21495
21496 * lto-streamer-out.c (lto_output_location): Stream
21497 reserved locations correctly.
21498 * lto-streamer-in.c (lto_output_location): Likewise.
21499
21500 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
21501
21502 * coretypes.h: Include hash-table.h and hash-set.h for host files.
21503 * ggc.h: Don't include statistics.h>
21504 * hash-map.h: Remove all includes.
21505 * hash-set.h: Likewise.
21506 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
21507 the include list. Remove <new>.
21508 * inchash.h: Remove all includes.
21509 * mem-stats.h: Likewise.
21510 * vec.h: No special processing for generators or ggc.
21511 * alias.c : Adjust include files.
21512 * alloc-pool.c : Likewise.
21513 * alloc-pool.h : Likewise.
21514 * asan.c : Likewise.
21515 * attribs.c : Likewise.
21516 * auto-inc-dec.c : Likewise.
21517 * auto-profile.c : Likewise.
21518 * bb-reorder.c : Likewise.
21519 * bitmap.c : Likewise.
21520 * bitmap.h : Likewise.
21521 * bt-load.c : Likewise.
21522 * builtins.c : Likewise.
21523 * caller-save.c : Likewise.
21524 * calls.c : Likewise.
21525 * ccmp.c : Likewise.
21526 * cfg.c : Likewise.
21527 * cfganal.c : Likewise.
21528 * cfgbuild.c : Likewise.
21529 * cfgcleanup.c : Likewise.
21530 * cfgexpand.c : Likewise.
21531 * cfghooks.c : Likewise.
21532 * cfgloop.c : Likewise.
21533 * cfgloop.h : Likewise.
21534 * cfgloopanal.c : Likewise.
21535 * cfgloopmanip.c : Likewise.
21536 * cfgrtl.c : Likewise.
21537 * cgraph.c : Likewise.
21538 * cgraphbuild.c : Likewise.
21539 * cgraphclones.c : Likewise.
21540 * cgraphunit.c : Likewise.
21541 * cilk-common.c : Likewise.
21542 * combine-stack-adj.c : Likewise.
21543 * combine.c : Likewise.
21544 * compare-elim.c : Likewise.
21545 * context.c : Likewise.
21546 * convert.c : Likewise.
21547 * coverage.c : Likewise.
21548 * cppbuiltin.c : Likewise.
21549 * cprop.c : Likewise.
21550 * cse.c : Likewise.
21551 * cselib.c : Likewise.
21552 * data-streamer-in.c : Likewise.
21553 * data-streamer-out.c : Likewise.
21554 * data-streamer.c : Likewise.
21555 * data-streamer.h : Likewise.
21556 * dbxout.c : Likewise.
21557 * dce.c : Likewise.
21558 * ddg.c : Likewise.
21559 * debug.c : Likewise.
21560 * df-core.c : Likewise.
21561 * df-problems.c : Likewise.
21562 * df-scan.c : Likewise.
21563 * df.h : Likewise.
21564 * dfp.c : Likewise.
21565 * dojump.c : Likewise.
21566 * dominance.c : Likewise.
21567 * domwalk.c : Likewise.
21568 * double-int.c : Likewise.
21569 * dse.c : Likewise.
21570 * dumpfile.c : Likewise.
21571 * dwarf2asm.c : Likewise.
21572 * dwarf2cfi.c : Likewise.
21573 * dwarf2out.c : Likewise.
21574 * emit-rtl.c : Likewise.
21575 * et-forest.c : Likewise.
21576 * except.c : Likewise.
21577 * except.h : Likewise.
21578 * explow.c : Likewise.
21579 * expmed.c : Likewise.
21580 * expr.c : Likewise.
21581 * final.c : Likewise.
21582 * fixed-value.c : Likewise.
21583 * fold-const.c : Likewise.
21584 * function.c : Likewise.
21585 * fwprop.c : Likewise.
21586 * gcc-plugin.h : Likewise.
21587 * gcc.c : Likewise.
21588 * gcse-common.c : Likewise.
21589 * gcse.c : Likewise.
21590 * genattrtab.c : Likewise.
21591 * genautomata.c : Likewise.
21592 * genconditions.c : Likewise.
21593 * genemit.c : Likewise.
21594 * generic-match-head.c : Likewise.
21595 * genextract.c : Likewise.
21596 * gengtype-state.c : Likewise.
21597 * gengtype.c : Likewise.
21598 * genhooks.c : Likewise.
21599 * genmatch.c : Likewise.
21600 * genmodes.c : Likewise.
21601 * genrecog.c : Likewise.
21602 * gensupport.c : Likewise.
21603 * ggc-common.c : Likewise.
21604 * ggc-internal.h : Likewise.
21605 * ggc-none.c : Likewise.
21606 * ggc-page.c : Likewise.
21607 * gimple-builder.c : Likewise.
21608 * gimple-expr.c : Likewise.
21609 * gimple-fold.c : Likewise.
21610 * gimple-iterator.c : Likewise.
21611 * gimple-low.c : Likewise.
21612 * gimple-match-head.c : Likewise.
21613 * gimple-pretty-print.c : Likewise.
21614 * gimple-ssa-isolate-paths.c : Likewise.
21615 * gimple-ssa-strength-reduction.c : Likewise.
21616 * gimple-ssa.h : Likewise.
21617 * gimple-streamer-in.c : Likewise.
21618 * gimple-streamer-out.c : Likewise.
21619 * gimple-streamer.h : Likewise.
21620 * gimple-walk.c : Likewise.
21621 * gimple.c : Likewise.
21622 * gimplify-me.c : Likewise.
21623 * gimplify.c : Likewise.
21624 * godump.c : Likewise.
21625 * graph.c : Likewise.
21626 * graphds.c : Likewise.
21627 * graphite-blocking.c : Likewise.
21628 * graphite-dependences.c : Likewise.
21629 * graphite-interchange.c : Likewise.
21630 * graphite-isl-ast-to-gimple.c : Likewise.
21631 * graphite-optimize-isl.c : Likewise.
21632 * graphite-poly.c : Likewise.
21633 * graphite-scop-detection.c : Likewise.
21634 * graphite-sese-to-poly.c : Likewise.
21635 * graphite.c : Likewise.
21636 * haifa-sched.c : Likewise.
21637 * hard-reg-set.h : Likewise.
21638 * hw-doloop.c : Likewise.
21639 * ifcvt.c : Likewise.
21640 * inchash.c : Likewise.
21641 * incpath.c : Likewise.
21642 * init-regs.c : Likewise.
21643 * input.c : Likewise.
21644 * internal-fn.c : Likewise.
21645 * ipa-chkp.c : Likewise.
21646 * ipa-comdats.c : Likewise.
21647 * ipa-cp.c : Likewise.
21648 * ipa-devirt.c : Likewise.
21649 * ipa-icf-gimple.c : Likewise.
21650 * ipa-icf.c : Likewise.
21651 * ipa-inline-analysis.c : Likewise.
21652 * ipa-inline-transform.c : Likewise.
21653 * ipa-inline.c : Likewise.
21654 * ipa-polymorphic-call.c : Likewise.
21655 * ipa-profile.c : Likewise.
21656 * ipa-prop.c : Likewise.
21657 * ipa-pure-const.c : Likewise.
21658 * ipa-ref.c : Likewise.
21659 * ipa-reference.c : Likewise.
21660 * ipa-split.c : Likewise.
21661 * ipa-utils.c : Likewise.
21662 * ipa-visibility.c : Likewise.
21663 * ipa.c : Likewise.
21664 * ira-build.c : Likewise.
21665 * ira-color.c : Likewise.
21666 * ira-conflicts.c : Likewise.
21667 * ira-costs.c : Likewise.
21668 * ira-emit.c : Likewise.
21669 * ira-lives.c : Likewise.
21670 * ira.c : Likewise.
21671 * jump.c : Likewise.
21672 * langhooks.c : Likewise.
21673 * lcm.c : Likewise.
21674 * libfuncs.h : Likewise.
21675 * lists.c : Likewise.
21676 * loop-doloop.c : Likewise.
21677 * loop-init.c : Likewise.
21678 * loop-invariant.c : Likewise.
21679 * loop-iv.c : Likewise.
21680 * loop-unroll.c : Likewise.
21681 * lower-subreg.c : Likewise.
21682 * lra-assigns.c : Likewise.
21683 * lra-coalesce.c : Likewise.
21684 * lra-constraints.c : Likewise.
21685 * lra-eliminations.c : Likewise.
21686 * lra-lives.c : Likewise.
21687 * lra-remat.c : Likewise.
21688 * lra-spills.c : Likewise.
21689 * lra.c : Likewise.
21690 * lto-cgraph.c : Likewise.
21691 * lto-compress.c : Likewise.
21692 * lto-opts.c : Likewise.
21693 * lto-section-in.c : Likewise.
21694 * lto-section-out.c : Likewise.
21695 * lto-streamer-in.c : Likewise.
21696 * lto-streamer-out.c : Likewise.
21697 * lto-streamer.c : Likewise.
21698 * lto-streamer.h : Likewise.
21699 * mcf.c : Likewise.
21700 * mode-switching.c : Likewise.
21701 * modulo-sched.c : Likewise.
21702 * omega.c : Likewise.
21703 * omp-low.c : Likewise.
21704 * optabs.c : Likewise.
21705 * opts-global.c : Likewise.
21706 * opts.h : Likewise.
21707 * passes.c : Likewise.
21708 * plugin.c : Likewise.
21709 * postreload-gcse.c : Likewise.
21710 * postreload.c : Likewise.
21711 * predict.c : Likewise.
21712 * print-rtl.c : Likewise.
21713 * print-tree.c : Likewise.
21714 * profile.c : Likewise.
21715 * read-md.c : Likewise.
21716 * read-md.h : Likewise.
21717 * read-rtl.c : Likewise.
21718 * real.c : Likewise.
21719 * realmpfr.c : Likewise.
21720 * recog.c : Likewise.
21721 * ree.c : Likewise.
21722 * reg-stack.c : Likewise.
21723 * regcprop.c : Likewise.
21724 * reginfo.c : Likewise.
21725 * regrename.c : Likewise.
21726 * regstat.c : Likewise.
21727 * reload.c : Likewise.
21728 * reload1.c : Likewise.
21729 * reorg.c : Likewise.
21730 * resource.c : Likewise.
21731 * rtl-chkp.c : Likewise.
21732 * rtl.c : Likewise.
21733 * rtl.h : Likewise.
21734 * rtlanal.c : Likewise.
21735 * rtlhash.c : Likewise.
21736 * rtlhash.h : Likewise.
21737 * rtlhooks.c : Likewise.
21738 * sanopt.c : Likewise.
21739 * sched-deps.c : Likewise.
21740 * sched-ebb.c : Likewise.
21741 * sched-rgn.c : Likewise.
21742 * sched-vis.c : Likewise.
21743 * sdbout.c : Likewise.
21744 * sel-sched-dump.c : Likewise.
21745 * sel-sched-ir.c : Likewise.
21746 * sel-sched-ir.h : Likewise.
21747 * sel-sched.c : Likewise.
21748 * sese.c : Likewise.
21749 * shrink-wrap.c : Likewise.
21750 * shrink-wrap.h : Likewise.
21751 * simplify-rtx.c : Likewise.
21752 * stack-ptr-mod.c : Likewise.
21753 * statistics.c : Likewise.
21754 * stmt.c : Likewise.
21755 * stor-layout.c : Likewise.
21756 * store-motion.c : Likewise.
21757 * stringpool.c : Likewise.
21758 * symtab.c : Likewise.
21759 * target-globals.c : Likewise.
21760 * targhooks.c : Likewise.
21761 * tlink.c : Likewise.
21762 * toplev.c : Likewise.
21763 * tracer.c : Likewise.
21764 * trans-mem.c : Likewise.
21765 * tree-affine.c : Likewise.
21766 * tree-affine.h : Likewise.
21767 * tree-browser.c : Likewise.
21768 * tree-call-cdce.c : Likewise.
21769 * tree-cfg.c : Likewise.
21770 * tree-cfgcleanup.c : Likewise.
21771 * tree-chkp-opt.c : Likewise.
21772 * tree-chkp.c : Likewise.
21773 * tree-chrec.c : Likewise.
21774 * tree-complex.c : Likewise.
21775 * tree-data-ref.c : Likewise.
21776 * tree-dfa.c : Likewise.
21777 * tree-diagnostic.c : Likewise.
21778 * tree-dump.c : Likewise.
21779 * tree-eh.c : Likewise.
21780 * tree-eh.h : Likewise.
21781 * tree-emutls.c : Likewise.
21782 * tree-hasher.h : Likewise.
21783 * tree-if-conv.c : Likewise.
21784 * tree-inline.c : Likewise.
21785 * tree-inline.h : Likewise.
21786 * tree-into-ssa.c : Likewise.
21787 * tree-iterator.c : Likewise.
21788 * tree-loop-distribution.c : Likewise.
21789 * tree-nested.c : Likewise.
21790 * tree-nrv.c : Likewise.
21791 * tree-object-size.c : Likewise.
21792 * tree-outof-ssa.c : Likewise.
21793 * tree-parloops.c : Likewise.
21794 * tree-phinodes.c : Likewise.
21795 * tree-predcom.c : Likewise.
21796 * tree-pretty-print.c : Likewise.
21797 * tree-profile.c : Likewise.
21798 * tree-scalar-evolution.c : Likewise.
21799 * tree-sra.c : Likewise.
21800 * tree-ssa-address.c : Likewise.
21801 * tree-ssa-alias.c : Likewise.
21802 * tree-ssa-ccp.c : Likewise.
21803 * tree-ssa-coalesce.c : Likewise.
21804 * tree-ssa-copy.c : Likewise.
21805 * tree-ssa-copyrename.c : Likewise.
21806 * tree-ssa-dce.c : Likewise.
21807 * tree-ssa-dom.c : Likewise.
21808 * tree-ssa-dse.c : Likewise.
21809 * tree-ssa-forwprop.c : Likewise.
21810 * tree-ssa-ifcombine.c : Likewise.
21811 * tree-ssa-live.c : Likewise.
21812 * tree-ssa-loop-ch.c : Likewise.
21813 * tree-ssa-loop-im.c : Likewise.
21814 * tree-ssa-loop-ivcanon.c : Likewise.
21815 * tree-ssa-loop-ivopts.c : Likewise.
21816 * tree-ssa-loop-manip.c : Likewise.
21817 * tree-ssa-loop-niter.c : Likewise.
21818 * tree-ssa-loop-prefetch.c : Likewise.
21819 * tree-ssa-loop-unswitch.c : Likewise.
21820 * tree-ssa-loop.c : Likewise.
21821 * tree-ssa-math-opts.c : Likewise.
21822 * tree-ssa-operands.c : Likewise.
21823 * tree-ssa-phiopt.c : Likewise.
21824 * tree-ssa-phiprop.c : Likewise.
21825 * tree-ssa-pre.c : Likewise.
21826 * tree-ssa-propagate.c : Likewise.
21827 * tree-ssa-reassoc.c : Likewise.
21828 * tree-ssa-sccvn.c : Likewise.
21829 * tree-ssa-scopedtables.c : Likewise.
21830 * tree-ssa-sink.c : Likewise.
21831 * tree-ssa-strlen.c : Likewise.
21832 * tree-ssa-structalias.c : Likewise.
21833 * tree-ssa-tail-merge.c : Likewise.
21834 * tree-ssa-ter.c : Likewise.
21835 * tree-ssa-threadedge.c : Likewise.
21836 * tree-ssa-threadupdate.c : Likewise.
21837 * tree-ssa-uncprop.c : Likewise.
21838 * tree-ssa-uninit.c : Likewise.
21839 * tree-ssa.c : Likewise.
21840 * tree-ssanames.c : Likewise.
21841 * tree-stdarg.c : Likewise.
21842 * tree-streamer-in.c : Likewise.
21843 * tree-streamer-out.c : Likewise.
21844 * tree-streamer.c : Likewise.
21845 * tree-streamer.h : Likewise.
21846 * tree-switch-conversion.c : Likewise.
21847 * tree-tailcall.c : Likewise.
21848 * tree-vect-data-refs.c : Likewise.
21849 * tree-vect-generic.c : Likewise.
21850 * tree-vect-loop-manip.c : Likewise.
21851 * tree-vect-loop.c : Likewise.
21852 * tree-vect-patterns.c : Likewise.
21853 * tree-vect-slp.c : Likewise.
21854 * tree-vect-stmts.c : Likewise.
21855 * tree-vectorizer.c : Likewise.
21856 * tree-vectorizer.h : Likewise.
21857 * tree-vrp.c : Likewise.
21858 * tree.c : Likewise.
21859 * tsan.c : Likewise.
21860 * ubsan.c : Likewise.
21861 * valtrack.c : Likewise.
21862 * valtrack.h : Likewise.
21863 * value-prof.c : Likewise.
21864 * var-tracking.c : Likewise.
21865 * varasm.c : Likewise.
21866 * varpool.c : Likewise.
21867 * vec.c: Likewise.
21868 * vmsdbgout.c : Likewise.
21869 * vtable-verify.c : Likewise.
21870 * vtable-verify.h : Likewise.
21871 * web.c : Likewise.
21872 * wide-int.cc : Likewise.
21873 * xcoffout.c : Likewise.
21874 * config/aarch64/aarch64-builtins.c : Likewise.
21875 * config/aarch64/aarch64.c : Likewise.
21876 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
21877 * config/alpha/alpha.c : Likewise.
21878 * config/arc/arc.c : Likewise.
21879 * config/arm/aarch-common.c : Likewise.
21880 * config/arm/arm-builtins.c : Likewise.
21881 * config/arm/arm-c.c : Likewise.
21882 * config/arm/arm.c : Likewise.
21883 * config/avr/avr-c.c : Likewise.
21884 * config/avr/avr-log.c : Likewise.
21885 * config/avr/avr.c : Likewise.
21886 * config/bfin/bfin.c : Likewise.
21887 * config/c6x/c6x.c : Likewise.
21888 * config/cr16/cr16.c : Likewise.
21889 * config/cris/cris.c : Likewise.
21890 * config/darwin-c.c : Likewise.
21891 * config/darwin.c : Likewise.
21892 * config/default-c.c : Likewise.
21893 * config/epiphany/epiphany.c : Likewise.
21894 * config/epiphany/mode-switch-use.c : Likewise.
21895 * config/epiphany/resolve-sw-modes.c : Likewise.
21896 * config/fr30/fr30.c : Likewise.
21897 * config/frv/frv.c : Likewise.
21898 * config/ft32/ft32.c : Likewise.
21899 * config/glibc-c.c : Likewise.
21900 * config/h8300/h8300.c : Likewise.
21901 * config/i386/i386-c.c : Likewise.
21902 * config/i386/i386.c : Likewise.
21903 * config/i386/msformat-c.c : Likewise.
21904 * config/i386/winnt-cxx.c : Likewise.
21905 * config/i386/winnt-stubs.c : Likewise.
21906 * config/i386/winnt.c : Likewise.
21907 * config/ia64/ia64-c.c : Likewise.
21908 * config/ia64/ia64.c : Likewise.
21909 * config/iq2000/iq2000.c : Likewise.
21910 * config/lm32/lm32.c : Likewise.
21911 * config/m32c/m32c-pragma.c : Likewise.
21912 * config/m32c/m32c.c : Likewise.
21913 * config/m32r/m32r.c : Likewise.
21914 * config/m68k/m68k.c : Likewise.
21915 * config/mcore/mcore.c : Likewise.
21916 * config/mep/mep-pragma.c : Likewise.
21917 * config/mep/mep.c : Likewise.
21918 * config/microblaze/microblaze-c.c : Likewise.
21919 * config/microblaze/microblaze.c : Likewise.
21920 * config/mips/mips.c : Likewise.
21921 * config/mmix/mmix.c : Likewise.
21922 * config/mn10300/mn10300.c : Likewise.
21923 * config/moxie/moxie.c : Likewise.
21924 * config/msp430/msp430-c.c : Likewise.
21925 * config/msp430/msp430.c : Likewise.
21926 * config/nds32/nds32-cost.c : Likewise.
21927 * config/nds32/nds32-fp-as-gp.c : Likewise.
21928 * config/nds32/nds32-intrinsic.c : Likewise.
21929 * config/nds32/nds32-isr.c : Likewise.
21930 * config/nds32/nds32-md-auxiliary.c : Likewise.
21931 * config/nds32/nds32-memory-manipulation.c : Likewise.
21932 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
21933 * config/nds32/nds32-predicates.c : Likewise.
21934 * config/nds32/nds32.c : Likewise.
21935 * config/nios2/nios2.c : Likewise.
21936 * config/nvptx/nvptx.c : Likewise.
21937 * config/pa/pa.c : Likewise.
21938 * config/pdp11/pdp11.c : Likewise.
21939 * config/rl78/rl78-c.c : Likewise.
21940 * config/rl78/rl78.c : Likewise.
21941 * config/rs6000/rs6000-c.c : Likewise.
21942 * config/rs6000/rs6000.c : Likewise.
21943 * config/rx/rx.c : Likewise.
21944 * config/s390/s390-c.c : Likewise.
21945 * config/s390/s390.c : Likewise.
21946 * config/sh/sh-c.c : Likewise.
21947 * config/sh/sh-mem.cc : Likewise.
21948 * config/sh/sh.c : Likewise.
21949 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
21950 * config/sh/sh_treg_combine.cc : Likewise.
21951 * config/sol2-c.c : Likewise.
21952 * config/sol2-cxx.c : Likewise.
21953 * config/sol2-stubs.c : Likewise.
21954 * config/sol2.c : Likewise.
21955 * config/sparc/sparc-c.c : Likewise.
21956 * config/sparc/sparc.c : Likewise.
21957 * config/spu/spu-c.c : Likewise.
21958 * config/spu/spu.c : Likewise.
21959 * config/stormy16/stormy16.c : Likewise.
21960 * config/tilegx/mul-tables.c : Likewise.
21961 * config/tilegx/tilegx-c.c : Likewise.
21962 * config/tilegx/tilegx.c : Likewise.
21963 * config/tilepro/mul-tables.c : Likewise.
21964 * config/tilepro/tilepro-c.c : Likewise.
21965 * config/tilepro/tilepro.c : Likewise.
21966 * config/v850/v850-c.c : Likewise.
21967 * config/v850/v850.c : Likewise.
21968 * config/vax/vax.c : Likewise.
21969 * config/visium/visium.c : Likewise.
21970 * config/vms/vms-c.c : Likewise.
21971 * config/vms/vms.c : Likewise.
21972 * config/vxworks.c : Likewise.
21973 * config/winnt-c.c : Likewise.
21974 * config/xtensa/xtensa.c : Likewise.
21975
21976 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
21977
21978 PR lto/65378
21979 * ipa-utils.h (warn_types_mismatch): Update prototype.
21980 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
21981 parameters.
21982 (type_mismatch_p): New function.
21983 (warn_types_mismatch): Reorg to work better on non-C++ types.
21984 (odr_types_equivalent_p): Add loc1/loc2 parameters.
21985 (add_type_duplicate): Update.
21986
21987 2015-06-08 Tom de Vries <tom@codesourcery.com>
21988
21989 PR rtl-optimization/66444
21990 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
21991 call_used_regs.
21992
21993 2015-06-08 Richard Biener <rguenther@suse.de>
21994
21995 PR tree-optimization/66422
21996 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
21997 block after inserted gcc_unreachable.
21998
21999 2015-06-08 Nick Clifton <nickc@redhat.com>
22000
22001 * config/rx/rx.c (rx_function_value): Do not promote vector types.
22002 (rx_promote_function_mode): Likewise.
22003 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
22004
22005 2015-06-08 Jakub Jelinek <jakub@redhat.com>
22006
22007 * genattrtab.c (insn_alternatives): Change type from int *
22008 to uint64_t *.
22009 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
22010 (get_attr_value): Change type of num_alt to uint64_t.
22011 (compute_alternative_mask): Change return type from
22012 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
22013 (make_alternative_compare, mk_attr_alt): Change argument type
22014 from int to uint64_t.
22015 (simplify_test_exp): Change type of i from int to uint64_t.
22016 Shift ((uint64_t) 1) instead of 1 up.
22017 (main): Adjust oballocvec first argument from int to uint64_t.
22018 Shift ((uint64_t) 1) instead of 1 up.
22019
22020 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
22021
22022 PR other/65366
22023 * gdbhooks.py: Import sys.
22024 (intptr): New function. Replace int(...) by intptr(...).
22025
22026 2015-06-08 Richard Biener <rguenther@suse.de>
22027
22028 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
22029 adjustment for gaps at the end of a SLP load group properly.
22030 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
22031 all permutations we can generate.
22032 (vect_transform_slp_perm_load): Use the correct group-size.
22033
22034 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
22035
22036 * genmatch.c (expr::gen_transform): For conditions, guess the type
22037 from the second operand.
22038
22039 2015-06-08 Tom de Vries <tom@codesourcery.com>
22040
22041 PR tree-optimization/66442
22042 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
22043 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
22044 if the loop latch is not a singleton. Use
22045 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
22046
22047 2015-06-08 Marek Polacek <polacek@redhat.com>
22048
22049 PR sanitizer/66452
22050 * toplev.c (check_global_declaration): Don't warn about artificial
22051 decls.
22052
22053 2015-06-08 Tom de Vries <tom@codesourcery.com>
22054
22055 PR tree-optimization/66436
22056 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
22057 dump file.
22058 * gimplify.c: Add tree-dump.h include.
22059 (gimplify_function_tree): Dump function to gimple dump file.
22060 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
22061 dump file.
22062
22063 2015-06-08 Tom de Vries <tom@codesourcery.com>
22064
22065 PR tree-optimization/66435
22066 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
22067 function.
22068
22069 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
22070
22071 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
22072 of ptr_type_node to not be ptr_to_node.
22073 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
22074 TREE_TYPE of pointers.
22075 * gimple-expr.c (useless_type_conversion): Reorder the check for
22076 function pointers and TYPE_CANONICAL.
22077
22078 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
22079
22080 PR bootstrap/66319
22081 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
22082 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
22083 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
22084 later.
22085 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
22086 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
22087 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
22088 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
22089 and non iso if unix2003.
22090
22091 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
22092
22093 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
22094
22095 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
22096
22097 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
22098 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
22099 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
22100 except.c, final.c, function.c, gcse-common.c, genemit.c,
22101 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
22102 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
22103 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
22104 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
22105 more derived ones.
22106
22107 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
22108
22109 * combine.c (combine_split_insns): Remove cast.
22110 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
22111 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
22112 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
22113 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
22114 * genemit.c (gen_split): Change return type of generated functions to
22115 rtx_insn.
22116 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
22117 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
22118 gen_peephole2_* functions.
22119 (print_subroutine, main): Likewise.
22120 * recog.c (peephole2_optimize): Remove cast.
22121 (peep2_next_insn): Promote return type to rtx_insn.
22122 * recog.h (peep2_next_insn): Fix prototype.
22123 * rtl.h (try_split, split_insns): Likewise.
22124
22125 2015-06-06 DJ Delorie <dj@redhat.com>
22126
22127 * config/msp430/msp430.c (msp430_asm_integer): Support addition
22128 and subtraction too.
22129
22130 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
22131
22132 PR target/66410
22133 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
22134 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
22135 instead of Snd. Disparage Sid/z alternative with '^'.
22136
22137 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
22138
22139 * dwarf2out.c: Remove deferred_locations*.
22140 (dwarf2_debug_hooks): Add early_finish hook.
22141 Remove global_decl hook.
22142 Add early_global_decl and late_global_decl hook.
22143 New global early_dwarf.
22144 New structure set_early_dwarf.
22145 (output_die): Indicate whether a DIE was generated early
22146 when generating assembly with -dA.
22147 (struct limbo_die_struct): Document created_for field.
22148 Remove file_table_last_lookup.
22149 (remove_AT): Return TRUE if successful.
22150 (remove_child_TAG): Clear die_parent.
22151 (reparent_child): New function abstracted from...
22152 (splice_child_die): ...here.
22153 (new_die): ICE if a DIE ends up in limbo too late.
22154 (check_die): New.
22155 (defer_location): Remove.
22156 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
22157 (fill_variable_array_bounds): New.
22158 (decl_start_label): Call fill_variable_array_bounds.
22159 (gen_formal_parameter_die): Rewrite to reuse previously generated
22160 DIEs.
22161 (gen_subprogram_die): Same.
22162 (gen_variable_die): Same.
22163 (gen_const_die): Same.
22164 (gen_label_die): Same.
22165 (gen_lexical_block_die): Same.
22166 (decl_will_get_specification_p): New.
22167 (local_function_static): New.
22168 (gen_struct_or_union_type_die): Fill in variable-length fields.
22169 (gen_typedef_die): Fill in variable-length typedefs.
22170 (gen_tagged_type_die): Gracefully return on error_mark_node.
22171 Handle re-entrancy.
22172 (gen_type_die_with_usage): Handle variable-length types.
22173 Remove duplicate code for ARRAY_TYPE case.
22174 (process_scope_var): Only process imported modules during early
22175 dwarf.
22176 (dwarf2out_early_global_decl): New.
22177 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
22178 (dwarf2out_type_decl): Set early_dwarf while calling
22179 dwarf2out_decl.
22180 (dwarf2out_decl): Verify that we did not recreate a previously
22181 generated DIE.
22182 Do not return on DECL_EXTERNALs in VAR_DECLs.
22183 Abstract some code to local_function_static.
22184 (lookup_filename): Remove use of file_table_last_lookup.
22185 Gracefully exit on missing file_name.
22186 (dwarf2out_finish): Verify limbo list.
22187 Remove deferred_locations_list use.
22188 Move deferred_asm_name and limbo flushing to...
22189 (dwarf2out_early_finish): ...here. New.
22190 (dwarf2out_c_finalize): Remove set of deferred_location_list,
22191 deferred_asm_name, and file_table_last_lookup.
22192 * cgraph.h (referred_to_p): Add default argument.
22193 * cgraphunit.c (referred_to_p): Add and handle include_self
22194 argument.
22195 (analyze_functions): Add first_time argument.
22196 Call check_global_declaration for all symbols.
22197 Call late_global_decl for nodes for moribund nodes.
22198 (finalize_compilation_unit): Add new argument to
22199 analyze_functions.
22200 Call early_global_decl for functions.
22201 Call early_finish debug hook.
22202 * dbxout.c (dbxout_early_global_decl): New.
22203 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
22204 (dbx_debug_hooks): Add new hooks.
22205 (xcoff_debug_hooks): Same.
22206 * debug.c (do_nothing_debug_hooks): Add early_finish field.
22207 Add early and late debug hooks.
22208 Remove global_decl hook.
22209 * debug.h (struct gcc_debug_hooks): Add early_finish,
22210 early_global_decl, and late_global_decl fields.
22211 Remove global_decl field.
22212 Document gcc_debug_hooks.
22213 * gengtype.c (output_typename): Remove.
22214 * godump.c (go_early_global_decl): New.
22215 (go_late_global_decl): New.
22216 (go_global_decl): Remove.
22217 (dump_go_spec_init): Remove global_decl. Add
22218 {early,late}_global_decl.
22219 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
22220 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
22221 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
22222 (write_global_declarations): Remove.
22223 (global_decl_processing): New.
22224 * langhooks.h (struct lang_hooks_for_decls): Remove
22225 final_write_globals field.
22226 Add post_compilation_parsing_cleanups field.
22227 * passes.c (rest_of_decl_compilation): Call early_global_decl.
22228 * sdbout.c: Add early and late_global_decl hooks. Remove
22229 sdbout_global_decl hook.
22230 Add early_finish field for sdb_debug_hooks.
22231 (sdbout_global_decl): Remove.
22232 (sdbout_early_global_decl): New.
22233 (sdbout_late_global_decl): New.
22234 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
22235 * toplev.c (check_global_declaration): Rename from
22236 check_global_declaration_1.
22237 Adapt to use symtab infrastructure.
22238 (check_global_declarations): Remove.
22239 (emit_debug_global_declarations): Remove.
22240 (compile_file): Remove call to final_write_globals langhook.
22241 Run the actual compilation process.
22242 Perform any post compilation parser cleanups.
22243 Generate late debug info.
22244 * toplev.h (check_global_declaration): New.
22245 (check_global_declaration_1): Remove.
22246 (check_global_declarations): Remove.
22247 (write_global_declarations): Remove.
22248 (emit_debug_global_declarations): Remove.
22249 (global_decl_processing): New.
22250 * tree-core.h (struct tree_block): Add DIE field.
22251 * tree.h (BLOCK_DIE): New.
22252 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
22253 throughout.
22254 (vmsdbgout_early_global_decl): New.
22255 (vmsdbgout_late_global_decl): New.
22256 Add early_finish debug hook field to vmsdbg_debug_hooks.
22257 Remove vmsdbgout_decl to vmsdbgout_function_decl.
22258 Add early and late_global_decl debug hooks.
22259
22260 2015-06-05 Julian Brown <julian@codesourcery.com>
22261 Sandra Loosemore <sandra@codesourcery.com>
22262
22263 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
22264 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
22265 to print-sysroot-suffix.sh script.
22266
22267 2015-06-05 Tom de Vries <tom@codesourcery.com>
22268
22269 merge from gomp4 branch:
22270 2015-05-28 Tom de Vries <tom@codesourcery.com>
22271
22272 PR tree-optimization/65443
22273 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
22274 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
22275 (try_transform_to_exit_first_loop_alt): New function.
22276 (transform_to_exit_first_loop): Use
22277 try_transform_to_exit_first_loop_alt.
22278
22279 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
22280
22281 * builtins.c (expand_builtin_atomic_compare_exchange): Call
22282 emit_cmp_and_jump_insns with the mode of target.
22283
22284 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22285
22286 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
22287
22288 2015-06-04 DJ Delorie <dj@redhat.com>
22289
22290 * config/msp430/msp430.md (movsi_s): New. Special case for
22291 storing a 20-bit symbol into a 32-bit register.
22292 * config/msp430/msp430.c (msp430_subreg): Add support for it.
22293 * config/msp430/predicates.md (msp430_symbol_operand): New.
22294
22295 2015-06-04 Sriraman Tallam <tmsriram@google.com>
22296
22297 * c-family/c-common.c (noplt): New attribute.
22298 (handle_noplt_attribute): New handler.
22299 * calls.c (prepare_call_address): Check for noplt
22300 attribute.
22301 * config/i386/i386.c (ix86_expand_call): Check
22302 for noplt attribute.
22303 (ix86_nopic_noplt_attribute_p): New function.
22304 (ix86_output_call_insn): Output indirect call for non-pic
22305 no plt calls.
22306 * doc/extend.texi (noplt): Document new attribute.
22307 * doc/invoke.texi: Document new attribute.
22308
22309 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
22310
22311 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
22312 real.h, and fixed-value.h when included in host source files.
22313 * double-int.h: Remove redundant #includes listed above.
22314 * fixed-value.h: Likewise.
22315 * real.h: Likewise.
22316 * wide-int.h: Likewise.
22317 * inchash.h: Likewise.
22318 * rtl.h: Add some include files When included from a generator file.
22319 * target.h: Remove wide-int.h and insn-modes.h from the include list.
22320 * internal-fn.h: Don't include coretypes.h.
22321 * alias.c: Adjust includes for restructured coretypes.h.
22322 * asan.c: Likewise.
22323 * attribs.c: Likewise.
22324 * auto-inc-dec.c: Likewise.
22325 * auto-profile.c: Likewise.
22326 * bb-reorder.c: Likewise.
22327 * bt-load.c: Likewise.
22328 * builtins.c: Likewise.
22329 * caller-save.c: Likewise.
22330 * calls.c: Likewise.
22331 * ccmp.c: Likewise.
22332 * cfg.c: Likewise.
22333 * cfganal.c: Likewise.
22334 * cfgbuild.c: Likewise.
22335 * cfgcleanup.c: Likewise.
22336 * cfgexpand.c: Likewise.
22337 * cfghooks.c: Likewise.
22338 * cfgloop.c: Likewise.
22339 * cfgloop.h: Likewise.
22340 * cfgloopanal.c: Likewise.
22341 * cfgloopmanip.c: Likewise.
22342 * cfgrtl.c: Likewise.
22343 * cgraph.c: Likewise.
22344 * cgraphbuild.c: Likewise.
22345 * cgraphclones.c: Likewise.
22346 * cgraphunit.c: Likewise.
22347 * cilk-common.c: Likewise.
22348 * combine-stack-adj.c: Likewise.
22349 * combine.c: Likewise.
22350 * compare-elim.c: Likewise.
22351 * convert.c: Likewise.
22352 * coverage.c: Likewise.
22353 * cppbuiltin.c: Likewise.
22354 * cprop.c: Likewise.
22355 * cse.c: Likewise.
22356 * cselib.c: Likewise.
22357 * data-streamer-in.c: Likewise.
22358 * data-streamer-out.c: Likewise.
22359 * data-streamer.c: Likewise.
22360 * dbxout.c: Likewise.
22361 * dce.c: Likewise.
22362 * ddg.c: Likewise.
22363 * debug.c: Likewise.
22364 * df-core.c: Likewise.
22365 * df-problems.c: Likewise.
22366 * df-scan.c: Likewise.
22367 * df.h: Likewise.
22368 * dfp.c: Likewise.
22369 * dojump.c: Likewise.
22370 * dominance.c: Likewise.
22371 * domwalk.c: Likewise.
22372 * double-int.c: Likewise.
22373 * dse.c: Likewise.
22374 * dumpfile.c: Likewise.
22375 * dwarf2asm.c: Likewise.
22376 * dwarf2cfi.c: Likewise.
22377 * dwarf2out.c: Likewise.
22378 * dwarf2out.h: Likewise.
22379 * emit-rtl.c: Likewise.
22380 * et-forest.c: Likewise.
22381 * except.c: Likewise.
22382 * explow.c: Likewise.
22383 * expmed.c: Likewise.
22384 * expr.c: Likewise.
22385 * final.c: Likewise.
22386 * fixed-value.c: Likewise.
22387 * fold-const.c: Likewise.
22388 * function.c: Likewise.
22389 * fwprop.c: Likewise.
22390 * gcc-plugin.h: Likewise.
22391 * gcse.c: Likewise.
22392 * generic-match-head.c: Likewise.
22393 * ggc-page.c: Likewise.
22394 * gimple-builder.c: Likewise.
22395 * gimple-expr.c: Likewise.
22396 * gimple-fold.c: Likewise.
22397 * gimple-iterator.c: Likewise.
22398 * gimple-low.c: Likewise.
22399 * gimple-match-head.c: Likewise.
22400 * gimple-pretty-print.c: Likewise.
22401 * gimple-ssa-isolate-paths.c: Likewise.
22402 * gimple-ssa-strength-reduction.c: Likewise.
22403 * gimple-streamer-in.c: Likewise.
22404 * gimple-streamer-out.c: Likewise.
22405 * gimple-streamer.h: Likewise.
22406 * gimple-walk.c: Likewise.
22407 * gimple.c: Likewise.
22408 * gimplify-me.c: Likewise.
22409 * gimplify.c: Likewise.
22410 * godump.c: Likewise.
22411 * graph.c: Likewise.
22412 * graphite-blocking.c: Likewise.
22413 * graphite-dependences.c: Likewise.
22414 * graphite-interchange.c: Likewise.
22415 * graphite-isl-ast-to-gimple.c: Likewise.
22416 * graphite-optimize-isl.c: Likewise.
22417 * graphite-poly.c: Likewise.
22418 * graphite-scop-detection.c: Likewise.
22419 * graphite-sese-to-poly.c: Likewise.
22420 * graphite.c: Likewise.
22421 * haifa-sched.c: Likewise.
22422 * hooks.h: Likewise.
22423 * hw-doloop.c: Likewise.
22424 * ifcvt.c: Likewise.
22425 * incpath.c: Likewise.
22426 * init-regs.c: Likewise.
22427 * internal-fn.c: Likewise.
22428 * ipa-chkp.c: Likewise.
22429 * ipa-comdats.c: Likewise.
22430 * ipa-cp.c: Likewise.
22431 * ipa-devirt.c: Likewise.
22432 * ipa-icf-gimple.c: Likewise.
22433 * ipa-icf.c: Likewise.
22434 * ipa-inline-analysis.c: Likewise.
22435 * ipa-inline-transform.c: Likewise.
22436 * ipa-inline.c: Likewise.
22437 * ipa-polymorphic-call.c: Likewise.
22438 * ipa-profile.c: Likewise.
22439 * ipa-prop.c: Likewise.
22440 * ipa-pure-const.c: Likewise.
22441 * ipa-ref.c: Likewise.
22442 * ipa-reference.c: Likewise.
22443 * ipa-split.c: Likewise.
22444 * ipa-utils.c: Likewise.
22445 * ipa-visibility.c: Likewise.
22446 * ipa.c: Likewise.
22447 * ira-build.c: Likewise.
22448 * ira-color.c: Likewise.
22449 * ira-conflicts.c: Likewise.
22450 * ira-costs.c: Likewise.
22451 * ira-emit.c: Likewise.
22452 * ira-lives.c: Likewise.
22453 * ira.c: Likewise.
22454 * jump.c: Likewise.
22455 * langhooks.c: Likewise.
22456 * lcm.c: Likewise.
22457 * loop-doloop.c: Likewise.
22458 * loop-init.c: Likewise.
22459 * loop-invariant.c: Likewise.
22460 * loop-iv.c: Likewise.
22461 * loop-unroll.c: Likewise.
22462 * lower-subreg.c: Likewise.
22463 * lra-assigns.c: Likewise.
22464 * lra-coalesce.c: Likewise.
22465 * lra-constraints.c: Likewise.
22466 * lra-eliminations.c: Likewise.
22467 * lra-lives.c: Likewise.
22468 * lra-remat.c: Likewise.
22469 * lra-spills.c: Likewise.
22470 * lra.c: Likewise.
22471 * lto-cgraph.c: Likewise.
22472 * lto-compress.c: Likewise.
22473 * lto-opts.c: Likewise.
22474 * lto-section-in.c: Likewise.
22475 * lto-section-out.c: Likewise.
22476 * lto-streamer-in.c: Likewise.
22477 * lto-streamer-out.c: Likewise.
22478 * lto-streamer.c: Likewise.
22479 * mcf.c: Likewise.
22480 * mode-switching.c: Likewise.
22481 * modulo-sched.c: Likewise.
22482 * omega.c: Likewise.
22483 * omp-low.c: Likewise.
22484 * optabs.c: Likewise.
22485 * opts-global.c: Likewise.
22486 * passes.c: Likewise.
22487 * plugin.c: Likewise.
22488 * postreload-gcse.c: Likewise.
22489 * postreload.c: Likewise.
22490 * predict.c: Likewise.
22491 * print-rtl.c: Likewise.
22492 * print-tree.c: Likewise.
22493 * profile.c: Likewise.
22494 * real.c: Likewise.
22495 * realmpfr.c: Likewise.
22496 * realmpfr.h: Likewise.
22497 * recog.c: Likewise.
22498 * ree.c: Likewise.
22499 * reg-stack.c: Likewise.
22500 * regcprop.c: Likewise.
22501 * reginfo.c: Likewise.
22502 * regrename.c: Likewise.
22503 * regs.h: Likewise.
22504 * regstat.c: Likewise.
22505 * reload.c: Likewise.
22506 * reload1.c: Likewise.
22507 * reorg.c: Likewise.
22508 * resource.c: Likewise.
22509 * rtl-chkp.c: Likewise.
22510 * rtlanal.c: Likewise.
22511 * rtlhooks.c: Likewise.
22512 * sanopt.c: Likewise.
22513 * sched-deps.c: Likewise.
22514 * sched-ebb.c: Likewise.
22515 * sched-rgn.c: Likewise.
22516 * sched-vis.c: Likewise.
22517 * sdbout.c: Likewise.
22518 * sel-sched-dump.c: Likewise.
22519 * sel-sched-ir.c: Likewise.
22520 * sel-sched.c: Likewise.
22521 * sese.c: Likewise.
22522 * shrink-wrap.c: Likewise.
22523 * shrink-wrap.h: Likewise.
22524 * simplify-rtx.c: Likewise.
22525 * stack-ptr-mod.c: Likewise.
22526 * statistics.c: Likewise.
22527 * stmt.c: Likewise.
22528 * stor-layout.c: Likewise.
22529 * store-motion.c: Likewise.
22530 * stringpool.c: Likewise.
22531 * symtab.c: Likewise.
22532 * target-globals.c: Likewise.
22533 * targhooks.c: Likewise.
22534 * toplev.c: Likewise.
22535 * tracer.c: Likewise.
22536 * trans-mem.c: Likewise.
22537 * tree-affine.c: Likewise.
22538 * tree-affine.h: Likewise.
22539 * tree-browser.c: Likewise.
22540 * tree-call-cdce.c: Likewise.
22541 * tree-cfg.c: Likewise.
22542 * tree-cfgcleanup.c: Likewise.
22543 * tree-chkp-opt.c: Likewise.
22544 * tree-chkp.c: Likewise.
22545 * tree-chrec.c: Likewise.
22546 * tree-complex.c: Likewise.
22547 * tree-data-ref.c: Likewise.
22548 * tree-dfa.c: Likewise.
22549 * tree-diagnostic.c: Likewise.
22550 * tree-dump.c: Likewise.
22551 * tree-eh.c: Likewise.
22552 * tree-emutls.c: Likewise.
22553 * tree-if-conv.c: Likewise.
22554 * tree-inline.c: Likewise.
22555 * tree-into-ssa.c: Likewise.
22556 * tree-iterator.c: Likewise.
22557 * tree-loop-distribution.c: Likewise.
22558 * tree-nested.c: Likewise.
22559 * tree-nrv.c: Likewise.
22560 * tree-object-size.c: Likewise.
22561 * tree-outof-ssa.c: Likewise.
22562 * tree-parloops.c: Likewise.
22563 * tree-phinodes.c: Likewise.
22564 * tree-predcom.c: Likewise.
22565 * tree-pretty-print.c: Likewise.
22566 * tree-pretty-print.h: Likewise.
22567 * tree-profile.c: Likewise.
22568 * tree-scalar-evolution.c: Likewise.
22569 * tree-sra.c: Likewise.
22570 * tree-ssa-address.c: Likewise.
22571 * tree-ssa-alias.c: Likewise.
22572 * tree-ssa-ccp.c: Likewise.
22573 * tree-ssa-coalesce.c: Likewise.
22574 * tree-ssa-copy.c: Likewise.
22575 * tree-ssa-copyrename.c: Likewise.
22576 * tree-ssa-dce.c: Likewise.
22577 * tree-ssa-dom.c: Likewise.
22578 * tree-ssa-dse.c: Likewise.
22579 * tree-ssa-forwprop.c: Likewise.
22580 * tree-ssa-ifcombine.c: Likewise.
22581 * tree-ssa-live.c: Likewise.
22582 * tree-ssa-loop-ch.c: Likewise.
22583 * tree-ssa-loop-im.c: Likewise.
22584 * tree-ssa-loop-ivcanon.c: Likewise.
22585 * tree-ssa-loop-ivopts.c: Likewise.
22586 * tree-ssa-loop-manip.c: Likewise.
22587 * tree-ssa-loop-niter.c: Likewise.
22588 * tree-ssa-loop-prefetch.c: Likewise.
22589 * tree-ssa-loop-unswitch.c: Likewise.
22590 * tree-ssa-loop.c: Likewise.
22591 * tree-ssa-loop.h: Likewise.
22592 * tree-ssa-math-opts.c: Likewise.
22593 * tree-ssa-operands.c: Likewise.
22594 * tree-ssa-phiopt.c: Likewise.
22595 * tree-ssa-phiprop.c: Likewise.
22596 * tree-ssa-pre.c: Likewise.
22597 * tree-ssa-propagate.c: Likewise.
22598 * tree-ssa-reassoc.c: Likewise.
22599 * tree-ssa-sccvn.c: Likewise.
22600 * tree-ssa-scopedtables.c: Likewise.
22601 * tree-ssa-sink.c: Likewise.
22602 * tree-ssa-strlen.c: Likewise.
22603 * tree-ssa-structalias.c: Likewise.
22604 * tree-ssa-tail-merge.c: Likewise.
22605 * tree-ssa-ter.c: Likewise.
22606 * tree-ssa-threadedge.c: Likewise.
22607 * tree-ssa-threadupdate.c: Likewise.
22608 * tree-ssa-uncprop.c: Likewise.
22609 * tree-ssa-uninit.c: Likewise.
22610 * tree-ssa.c: Likewise.
22611 * tree-ssanames.c: Likewise.
22612 * tree-stdarg.c: Likewise.
22613 * tree-streamer-in.c: Likewise.
22614 * tree-streamer-out.c: Likewise.
22615 * tree-streamer.c: Likewise.
22616 * tree-switch-conversion.c: Likewise.
22617 * tree-tailcall.c: Likewise.
22618 * tree-vect-data-refs.c: Likewise.
22619 * tree-vect-generic.c: Likewise.
22620 * tree-vect-loop-manip.c: Likewise.
22621 * tree-vect-loop.c: Likewise.
22622 * tree-vect-patterns.c: Likewise.
22623 * tree-vect-slp.c: Likewise.
22624 * tree-vect-stmts.c: Likewise.
22625 * tree-vectorizer.c: Likewise.
22626 * tree-vrp.c: Likewise.
22627 * tree.c: Likewise.
22628 * tsan.c: Likewise.
22629 * ubsan.c: Likewise.
22630 * valtrack.c: Likewise.
22631 * value-prof.c: Likewise.
22632 * var-tracking.c: Likewise.
22633 * varasm.c: Likewise.
22634 * varpool.c: Likewise.
22635 * vmsdbgout.c: Likewise.
22636 * vtable-verify.c: Likewise.
22637 * web.c: Likewise.
22638 * wide-int-print.cc: Likewise.
22639 * wide-int-print.h: Likewise.
22640 * wide-int.cc: Likewise.
22641 * xcoffout.c: Likewise.
22642 * config/aarch64/aarch64-builtins.c: Likewise.
22643 * config/aarch64/aarch64.c: Likewise.
22644 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22645 * config/alpha/alpha.c: Likewise.
22646 * config/arc/arc.c: Likewise.
22647 * config/arm/aarch-common.c: Likewise.
22648 * config/arm/arm-builtins.c: Likewise.
22649 * config/arm/arm-c.c: Likewise.
22650 * config/arm/arm.c: Likewise.
22651 * config/avr/avr-c.c: Likewise.
22652 * config/avr/avr-log.c: Likewise.
22653 * config/avr/avr.c: Likewise.
22654 * config/bfin/bfin.c: Likewise.
22655 * config/c6x/c6x.c: Likewise.
22656 * config/cr16/cr16.c: Likewise.
22657 * config/cris/cris.c: Likewise.
22658 * config/darwin-c.c: Likewise.
22659 * config/darwin.c: Likewise.
22660 * config/default-c.c: Likewise.
22661 * config/epiphany/epiphany.c: Likewise.
22662 * config/epiphany/mode-switch-use.c: Likewise.
22663 * config/epiphany/resolve-sw-modes.c: Likewise.
22664 * config/fr30/fr30.c: Likewise.
22665 * config/frv/frv.c: Likewise.
22666 * config/ft32/ft32.c: Likewise.
22667 * config/glibc-c.c: Likewise.
22668 * config/h8300/h8300.c: Likewise.
22669 * config/i386/i386-c.c: Likewise.
22670 * config/i386/i386.c: Likewise.
22671 * config/i386/msformat-c.c: Likewise.
22672 * config/i386/winnt-cxx.c: Likewise.
22673 * config/i386/winnt-stubs.c: Likewise.
22674 * config/i386/winnt.c: Likewise.
22675 * config/ia64/ia64-c.c: Likewise.
22676 * config/ia64/ia64.c: Likewise.
22677 * config/iq2000/iq2000.c: Likewise.
22678 * config/lm32/lm32.c: Likewise.
22679 * config/m32c/m32c-pragma.c: Likewise.
22680 * config/m32c/m32c.c: Likewise.
22681 * config/m32r/m32r.c: Likewise.
22682 * config/m68k/m68k.c: Likewise.
22683 * config/mcore/mcore.c: Likewise.
22684 * config/mep/mep-pragma.c: Likewise.
22685 * config/mep/mep.c: Likewise.
22686 * config/microblaze/microblaze-c.c: Likewise.
22687 * config/microblaze/microblaze.c: Likewise.
22688 * config/mips/mips.c: Likewise.
22689 * config/mmix/mmix.c: Likewise.
22690 * config/mn10300/mn10300.c: Likewise.
22691 * config/moxie/moxie.c: Likewise.
22692 * config/msp430/msp430-c.c: Likewise.
22693 * config/msp430/msp430.c: Likewise.
22694 * config/nds32/nds32-cost.c: Likewise.
22695 * config/nds32/nds32-fp-as-gp.c: Likewise.
22696 * config/nds32/nds32-intrinsic.c: Likewise.
22697 * config/nds32/nds32-isr.c: Likewise.
22698 * config/nds32/nds32-md-auxiliary.c: Likewise.
22699 * config/nds32/nds32-memory-manipulation.c: Likewise.
22700 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22701 * config/nds32/nds32-predicates.c: Likewise.
22702 * config/nds32/nds32.c: Likewise.
22703 * config/nios2/nios2.c: Likewise.
22704 * config/nvptx/nvptx.c: Likewise.
22705 * config/pa/pa.c: Likewise.
22706 * config/pdp11/pdp11.c: Likewise.
22707 * config/rl78/rl78-c.c: Likewise.
22708 * config/rl78/rl78.c: Likewise.
22709 * config/rs6000/rs6000-c.c: Likewise.
22710 * config/rs6000/rs6000.c: Likewise.
22711 * config/rx/rx.c: Likewise.
22712 * config/s390/s390-c.c: Likewise.
22713 * config/s390/s390.c: Likewise.
22714 * config/sh/sh-c.c: Likewise.
22715 * config/sh/sh-mem.cc: Likewise.
22716 * config/sh/sh.c: Likewise.
22717 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22718 * config/sh/sh_treg_combine.cc: Likewise.
22719 * config/sol2-c.c: Likewise.
22720 * config/sol2-cxx.c: Likewise.
22721 * config/sol2-stubs.c: Likewise.
22722 * config/sol2.c: Likewise.
22723 * config/sparc/sparc-c.c: Likewise.
22724 * config/sparc/sparc.c: Likewise.
22725 * config/spu/spu-c.c: Likewise.
22726 * config/spu/spu.c: Likewise.
22727 * config/stormy16/stormy16.c: Likewise.
22728 * config/tilegx/mul-tables.c: Likewise.
22729 * config/tilegx/tilegx-c.c: Likewise.
22730 * config/tilegx/tilegx.c: Likewise.
22731 * config/tilepro/mul-tables.c: Likewise.
22732 * config/tilepro/tilepro-c.c: Likewise.
22733 * config/tilepro/tilepro.c: Likewise.
22734 * config/v850/v850-c.c: Likewise.
22735 * config/v850/v850.c: Likewise.
22736 * config/vax/vax.c: Likewise.
22737 * config/visium/visium.c: Likewise.
22738 * config/vms/vms-c.c: Likewise.
22739 * config/vms/vms.c: Likewise.
22740 * config/vxworks.c: Likewise.
22741 * config/winnt-c.c: Likewise.
22742 * config/xtensa/xtensa.c: Likewise.
22743 * common/config/bfin/bfin-common.c: Likewise.
22744
22745 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
22746
22747 * tree.h (tree_code_for_canonical_type_merging): New function.
22748 * tree.c (gimple_canonical_types_compatible_p): Use
22749 tree_code_for_canonical_type_merging..
22750
22751 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22752
22753 PR c++/66192
22754 PR target/66200
22755 * doc/tm.texi: Regenerate.
22756 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
22757 * target.def (TARGET_RELAXED_ORDERING): Likewise.
22758 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
22759 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
22760 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
22761 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
22762 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
22763 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
22764 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
22765
22766 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22767
22768 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
22769 register fma steering pass.
22770 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
22771 AARCH64_TUNE_FMA_STEERING.
22772
22773 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
22774
22775 * tree.c (verify_type_variant): Verify that type and variant is
22776 compatible.
22777 (gimple_canonical_types_compatible_p): Look for main variants.
22778
22779 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
22780
22781 * config.gcc (powerpc*-*-*): Add support for a new configure
22782 option --with-advance-toolchain=<xxx> which overrides using the
22783 default header files, libraries and dynamic linker.
22784
22785 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
22786 specs to support the configure --with-advance-toolchain=<xxx>
22787 option.
22788 (INCLUDE_EXTRA_SPEC): Likewise.
22789 (LINK_OS_EXTRA_SPEC32): Likewise.
22790 (LINK_OK_EXTRA_SPEC64): Likewise.
22791 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
22792 (DYNAMIC_LINKER_PREFIX): Likewise.
22793 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
22794 toolchain support.
22795 (GLIBC_DYNAMIC_LINKER32): Likewise.
22796 (GLIBC_DYNAMIC_LINKER64): Likewise.
22797 (LINK_OS_LINUX_SPEC32): Likewise.
22798 (LINK_OS_LINUX_SPEC64): Likewise.
22799
22800 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
22801 configuration option.
22802
22803 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
22804
22805 PR target/66275
22806 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
22807 to determine current function ABI.
22808 (ix86_function_value_regno_p): Ditto.
22809
22810 2015-06-03 Martin Liska <mliska@suse.cz>
22811
22812 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
22813 * bitmap.h (struct bitmap_usage): Likewise.
22814 * ggc-common.c (struct ggc_usage): Likewise.
22815 * mem-stats.h (struct mem_location): Likewise.
22816 (struct mem_usage): Likewise.
22817 * vec.c (struct vec_usage): Likewise.
22818
22819 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
22820
22821 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
22822 -Bsymbolic.
22823
22824 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
22825
22826 * doc/plugins.texi (enum plugin_event): New event.
22827 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
22828 and PLUGIN_FINISH_FUNCTION.
22829 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
22830 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
22831
22832 2015-06-03 Richard Biener <rguenther@suse.de>
22833
22834 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
22835 compute GROUP_GAP for the first element.
22836 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
22837 on in-group gaps.
22838
22839 2015-06-03 Nick Clifton <nickc@redhat.com>
22840
22841 * config/rl78/rl78-real.md: Add peepholes to avoid a register
22842 copy when calling a function.
22843 * config/rl78/rl78.c (need_to_save): Do not push the frame
22844 pointer in an interrupt handler prologue if it is never used.
22845
22846 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22847
22848 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
22849
22850 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
22851
22852 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
22853 reference when cloning alias node.
22854
22855 2015-06-03 Martin Liska <mliska@suse.cz>
22856
22857 * alloc-pool.h (struct pool_usage): Correct space padding.
22858 * ggc-page.c (ggc_print_statistics): Align columns in a report.
22859 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
22860 * tree.c (dump_tree_statistics): Align columns in a report.
22861
22862 2015-06-03 Martin Liska <mliska@suse.cz>
22863
22864 * alloc-pool.c (allocate_pool_descriptor): Remove.
22865 (struct pool_output_info): Likewise.
22866 (print_alloc_pool_statistics): Likewise.
22867 (dump_alloc_pool_statistics): Likewise.
22868 * alloc-pool.h (struct pool_usage): New struct.
22869 (pool_allocator::initialize): Change usage of memory statistics
22870 to a new interface.
22871 (pool_allocator::release): Likewise.
22872 (pool_allocator::allocate): Likewise.
22873 (pool_allocator::remove): Likewise.
22874 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
22875 for a pool allocator.
22876 * mem-stats.h (struct mem_location): Add new ctor.
22877 (struct mem_usage): Add counter for number of
22878 instances.
22879 (mem_alloc_description::register_descriptor): New overload of
22880 * mem-stats.h (mem_location::to_string): New function.
22881 * bitmap.h (struct bitmap_usage): Use this new function.
22882 * ggc-common.c (struct ggc_usage): Likewise.
22883 the function.
22884
22885 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
22886
22887 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
22888 of GCC_INSN_FLAGS_H block.
22889
22890 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22891
22892 * explow.c (plus_constant): Update check after force_const_mem call
22893 to see if the value returned is not a NULL_RTX.
22894
22895 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
22896
22897 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
22898 remove instumentation thunks calling reachable functions.
22899 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
22900 * lto/lto-partition.c (privatize_symbol_name_1): New.
22901 (privatize_symbol_name): Privatize both decl and orig_decl
22902 names for instrumented functions.
22903 * cgraph.c (cgraph_node::verify_node): Add transparent
22904 alias chain check for instrumented node.
22905
22906 2015-06-03 Marek Polacek <polacek@redhat.com>
22907
22908 PR c/64223
22909 PR c/29358
22910 * tree.c (attribute_value_equal): Handle attribute format.
22911 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
22912
22913 2015-06-03 Richard Biener <rguenther@suse.de>
22914
22915 PR tree-optimization/63916
22916 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
22917 Forward-propagate non-invariant addresses by splicing their
22918 reference ops if the result isn't going to be used by PRE.
22919 (vn_reference_lookup_3): Remove pointless assert.
22920
22921 2015-06-03 Richard Biener <rguenther@suse.de>
22922
22923 PR tree-optimization/66375
22924 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
22925 add to the evolution before following SSA edges.
22926
22927 2015-06-03 Bin Cheng <bin.cheng@arm.com>
22928
22929 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
22930 (dump_use, dump_cand, find_induction_variables): Pass new argument
22931 to dump_iv.
22932 (record_use): Preserve the ssa name information in IV.
22933
22934 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
22935
22936 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
22937 NO_MODE_TEST.
22938 (add_mode_tests): Don't add mode tests if the predicate only
22939 accepts scalar constant integers. Otherwise, allow the mode
22940 of "op" to be VOIDmode if the predicate does accept such integers.
22941
22942 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
22943
22944 PR target/66258
22945 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
22946 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
22947 (aarch64_secondary_reload): Likewise
22948 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
22949 to !TARGET_FLOAT.
22950 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
22951 Likewise.
22952
22953 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
22954 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22955
22956 PR target/65768
22957 * cprop.c (try_replace_reg): Check cost of constants before propagating.
22958
22959 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22960
22961 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
22962 provide access to the IBM extended double floating point mode if
22963 long double is IEEE 128-bit floating point.
22964 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
22965 point if long double is the IBM extended double type.
22966
22967 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
22968 enable adding IEEE 128-bit floating point support.
22969 (-mfloat128-software): Likewise.
22970 (-mfloat128-sw): Likewise.
22971
22972 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
22973 128-bit floating point types to occupy any register if
22974 -mlong-double-64. Do not allow use of IFmode/KFmode unless
22975 -mfloat128-software is enabled.
22976 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
22977 support.
22978 (rs6000_option_override_internal): Add -mfloat128-* support.
22979 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
22980
22981 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
22982 and float128 type nodes.
22983 (ieee128_float_type_node): Likewise.
22984 (ibm128_float_type_node): Likewise.
22985
22986 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22987
22988 PR target/66136
22989 * config/aarch64/geniterators.sh: Rewrite in awk.
22990
22991 2015-06-02 Martin Liska <mliska@suse.cz>
22992
22993 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
22994 values to avoid -Wmaybe-uninitialized errors.
22995
22996 2015-06-02 Richard Biener <rguenther@suse.de>
22997
22998 PR debug/65549
22999 * dwarf2out.c (lookup_context_die): New function.
23000 (resolve_addr): Avoid forcing a full DIE for the
23001 target of a DW_TAG_GNU_call_site during late compilation.
23002 Instead create a stub DIE without a type if we have a
23003 context DIE present.
23004
23005 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
23006
23007 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
23008
23009 2015-06-02 Bin Cheng <bin.cheng@arm.com>
23010
23011 PR tree-optimization/48052
23012 * cfgloop.h (struct control_iv): New.
23013 (struct loop): New field control_ivs.
23014 * tree-ssa-loop-niter.c : Include "stor-layout.h".
23015 (number_of_iterations_lt): Set no_overflow information.
23016 (number_of_iterations_exit): Init control iv in niter struct.
23017 (record_control_iv): New.
23018 (estimate_numbers_of_iterations_loop): Call record_control_iv.
23019 (loop_exits_before_overflow): New. Interface factored out of
23020 scev_probably_wraps_p.
23021 (scev_probably_wraps_p): Factor loop niter related code into
23022 loop_exits_before_overflow.
23023 (free_numbers_of_iterations_estimates_loop): Free control ivs.
23024 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
23025
23026 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
23027
23028 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
23029 the target doesn't belong to the current function.
23030
23031 2015-06-02 Marek Polacek <polacek@redhat.com>
23032
23033 PR middle-end/66345
23034 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
23035 get_maxval_strlen does not produce an INTEGER_CST.
23036
23037 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
23038
23039 * config/arc/constraints.md: Use lower-case names in match_code.
23040 * config/mmix/constraints.md: Likewise.
23041
23042 2015-06-02 Richard Biener <rguenther@suse.de>
23043
23044 PR tree-optimization/65961
23045 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
23046 check and clarify dump message.
23047 (vect_build_slp_tree): If all children are built up from scalars
23048 build up the parent from scalars instead.
23049 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
23050
23051 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
23052
23053 PR other/65366
23054 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
23055 instead of print ... .
23056
23057 2015-06-02 Alan Modra <amodra@gmail.com>
23058
23059 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
23060 2014-08-11 change.
23061
23062 2015-06-02 Bin Cheng <bin.cheng@arm.com>
23063
23064 PR tree-optimization/52563
23065 PR tree-optimization/62173
23066 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
23067 (alloc_iv, set_iv): New parameter.
23068 (determine_biv_step): Delete.
23069 (find_bivs): Inline original determine_biv_step. Pass new
23070 argument to set_iv.
23071 (idx_find_step): Use no_overflow information for conversion.
23072 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
23073 resolve_mixers handle folded_casts.
23074 (instantiate_scev_name): Change bool parameter to bool pointer.
23075 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
23076 (instantiate_array_ref, instantiate_scev_not): Ditto.
23077 (instantiate_scev_3, instantiate_scev_2): Ditto.
23078 (instantiate_scev_1, instantiate_scev_r): Ditto.
23079 (instantiate_scev_convert, ): Change parameter. Pass argument
23080 to chrec_convert_aggressive.
23081 (instantiate_scev): Change argument.
23082 (resolve_mixers): New parameter and set it.
23083 (scev_const_prop): New argument.
23084 * tree-scalar-evolution.h (resolve_mixers): New parameter.
23085 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
23086 of chrec_conert_1.
23087 (chrec_convert): New parameter. Move definition below.
23088 (chrec_convert_aggressive): New parameter and set it. Call
23089 convert_affine_scev.
23090 * tree-chrec.h (chrec_convert): New parameter.
23091 (chrec_convert_aggressive): Ditto.
23092
23093 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
23094
23095 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
23096 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
23097 the LHS of a no-return call if its type has variable size.
23098 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
23099 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
23100
23101 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
23102
23103 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
23104 * config.in: Regenerate.
23105
23106 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
23107
23108 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
23109 consecutive accesses within outer-loop with force_vectorize
23110 for references with zero step in inner-loop.
23111
23112 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
23113
23114 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
23115 rather than from gcc/build directory.
23116
23117 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
23118
23119 PR target/65697
23120 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
23121 for __sync memory models, emit initial loads and final barriers as
23122 appropriate.
23123
23124 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
23125
23126 PR target/65697
23127 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
23128 (aarch64_split_atomic_op): Check for __sync memory models, emit
23129 appropriate initial loads and final barriers.
23130
23131 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
23132
23133 * Makefile.in: Fix gcov dependencies that should
23134 not point to a build folder.
23135
23136 2015-06-01 Richard Biener <rguenther@suse.de>
23137
23138 Revert
23139 2015-05-29 Richard Biener <rguenther@suse.de>
23140
23141 PR tree-optimization/66314
23142 * tree-ssa-threadupdate.c (create_block_for_threading): Add
23143 parameter that says which loop the new block belongs to.
23144 (ssa_create_duplicates): Blocks duplicated for the threaded
23145 path belong to the loop of the thread destination.
23146
23147 2015-06-01 Martin Liska <mliska@suse.cz>
23148
23149 * sched-deps.c: Include pool-alloc.h before
23150 cselib.h header file is included.
23151
23152 2015-06-01 Richard Biener <rguenther@suse.de>
23153
23154 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
23155 functions.
23156
23157 2015-06-01 Martin Liska <mliska@suse.cz>
23158
23159 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
23160 a function local variable.
23161
23162 2015-06-01 Martin Liska <mliska@suse.cz>
23163
23164 * alloc-pool.c (create_alloc_pool): Remove.
23165 (empty_alloc_pool): Likewise.
23166 (free_alloc_pool): Likewise.
23167 (free_alloc_pool_if_empty): Likewise.
23168 (pool_alloc): Likewise.
23169 (pool_free): Likewise.
23170 * alloc-pool.h: Remove old declarations.
23171
23172 2015-06-01 Martin Liska <mliska@suse.cz>
23173
23174 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
23175 (ira_create_object): Likewise.
23176 (ira_create_allocno): Likewise.
23177 (ira_create_live_range): Likewise.
23178 (copy_live_range): Likewise.
23179 (ira_finish_live_range): Likewise.
23180 (ira_free_allocno_costs): Likewise.
23181 (finish_allocno): Likewise.
23182 (finish_allocnos): Likewise.
23183 (initiate_prefs): Likewise.
23184 (ira_create_pref): Likewise.
23185 (finish_pref): Likewise.
23186 (finish_prefs): Likewise.
23187 (initiate_copies): Likewise.
23188 (ira_create_copy): Likewise.
23189 (finish_copy): Likewise.
23190 (finish_copies): Likewise.
23191 (finish_prefs): Likewise.
23192
23193 2015-06-01 Martin Liska <mliska@suse.cz>
23194
23195 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
23196 (allocate_and_init_ipcp_value): Likewise.
23197 (ipcp_lattice::add_value): Likewise.
23198 (merge_agg_lats_step): Likewise.
23199 (ipcp_driver): Likewise.
23200 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
23201 (ipa_free_all_structures_after_iinln): Likewise.
23202 * ipa-prop.h: Likewise.
23203
23204 2015-06-01 Martin Liska <mliska@suse.cz>
23205
23206 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
23207 pool allocator.
23208 (set_hint_predicate): Likewise.
23209 (inline_summary_alloc): Likewise.
23210 (reset_inline_edge_summary): Likewise.
23211 (reset_inline_summary): Likewise.
23212 (set_cond_stmt_execution_predicate): Likewise.
23213 (set_switch_stmt_execution_predicate): Likewise.
23214 (compute_bb_predicates): Likewise.
23215 (estimate_function_body_sizes): Likewise.
23216 (inline_free_summary): Likewise.
23217
23218 2015-06-01 Martin Liska <mliska@suse.cz>
23219
23220 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
23221 (ipa_edge_duplication_hook): Likewise.
23222 (ipa_free_all_structures_after_ipa_cp): Likewise.
23223 (ipa_free_all_structures_after_iinln): Likewise.
23224
23225 2015-06-01 Martin Liska <mliska@suse.cz>
23226
23227 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
23228 (ipa_profile_generate_summary): Likewise.
23229 (ipa_profile_read_summary): Likewise.
23230 (ipa_profile): Likewise.
23231
23232 2015-06-01 Martin Liska <mliska@suse.cz>
23233
23234 * tree-ssa-structalias.c (new_var_info): Use new type-based
23235 pool allocator.
23236 (new_constraint): Likewise.
23237 (init_alias_vars): Likewise.
23238 (delete_points_to_sets): Likewise.
23239
23240 2015-06-01 Martin Liska <mliska@suse.cz>
23241
23242 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
23243 (free_strinfo): Likewise.
23244 (pass_strlen::execute): Likewise.
23245
23246 2015-06-01 Martin Liska <mliska@suse.cz>
23247
23248 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
23249 pool allocator.
23250 (vn_reference_insert_pieces): Likewise.
23251 (vn_phi_insert): Likewise.
23252 (visit_reference_op_call): Likewise.
23253 (copy_phi): Likewise.
23254 (copy_reference): Likewise.
23255 (process_scc): Likewise.
23256 (allocate_vn_table): Likewise.
23257 (free_vn_table): Likewise.
23258
23259 2015-06-01 Martin Liska <mliska@suse.cz>
23260
23261 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
23262 pool allocator.
23263 (add_repeat_to_ops_vec): Likewise.
23264 (get_ops): Likewise.
23265 (maybe_optimize_range_tests): Likewise.
23266 (init_reassoc): Likewise.
23267 (fini_reassoc): Likewise.
23268
23269 2015-06-01 Martin Liska <mliska@suse.cz>
23270
23271 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
23272 pool allocator.
23273 (bitmap_set_new): Likewise.
23274 (get_or_alloc_expr_for_constant): Likewise.
23275 (get_or_alloc_expr_for): Likewise.
23276 (phi_translate_1): Likewise.
23277 (compute_avail): Likewise.
23278 (init_pre): Likewise.
23279 (fini_pre): Likewise.
23280
23281 2015-06-01 Martin Liska <mliska@suse.cz>
23282
23283 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
23284 (delete_dep_node): Likewise.
23285 (create_deps_list): Likewise.
23286 (free_deps_list): Likewise.
23287 (sched_deps_init): Likewise.
23288 (sched_deps_finish): Likewise.
23289
23290 2015-06-01 Martin Liska <mliska@suse.cz>
23291
23292 * regcprop.c (free_debug_insn_changes): Use new type-based
23293 pool allocator.
23294 (replace_oldest_value_reg): Likewise.
23295 (pass_cprop_hardreg::execute): Likewise.
23296
23297 2015-06-01 Martin Liska <mliska@suse.cz>
23298
23299 * ira-build.c (initiate_cost_vectors): Use new type-based
23300 pool allocator.
23301 (ira_allocate_cost_vector): Likewise.
23302 (ira_free_cost_vector): Likewise.
23303 (finish_cost_vectors): Likewise.
23304
23305 2015-06-01 Martin Liska <mliska@suse.cz>
23306
23307 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
23308 pool allocator.
23309 (free_sched_pools): Likewise.
23310 * sel-sched-ir.h (_list_alloc): Likewise.
23311 (_list_remove): Likewise.
23312
23313 2015-06-01 Martin Liska <mliska@suse.cz>
23314
23315 * stmt.c (add_case_node): Use new type-based pool allocator.
23316 (expand_case): Likewise.
23317 (expand_sjlj_dispatch_table): Likewise.
23318
23319 2015-06-01 Martin Liska <mliska@suse.cz>
23320
23321 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
23322 (free_bb): Likewise.
23323 (pass_cse_reciprocals::execute): Likewise.
23324
23325 2015-06-01 Martin Liska <mliska@suse.cz>
23326
23327 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
23328 (sra_deinitialize) Likewise.
23329 (create_access_1) Likewise.
23330 (build_accesses_from_assign) Likewise.
23331 (create_artificial_child_access) Likewise.
23332
23333 2015-06-01 Martin Liska <mliska@suse.cz>
23334
23335 * dse.c (get_group_info):Use new type-based pool allocator.
23336 (dse_step0) Likewise.
23337 (free_store_info) Likewise.
23338 (delete_dead_store_insn) Likewise.
23339 (free_read_records) Likewise.
23340 (record_store) Likewise.
23341 (replace_read) Likewise.
23342 (check_mem_read_rtx) Likewise.
23343 (scan_insn) Likewise.
23344 (dse_step1) Likewise.
23345 (dse_step7) Likewise.
23346
23347 2015-06-01 Martin Liska <mliska@suse.cz>
23348
23349 * df-scan.c (struct df_scan_problem_data):Use new type-based
23350 pool allocator.
23351 (df_scan_free_internal) Likewise.
23352 (df_scan_alloc) Likewise.
23353 (df_grow_reg_info) Likewise.
23354 (df_free_ref) Likewise.
23355 (df_insn_create_insn_record) Likewise.
23356 (df_mw_hardreg_chain_delete) Likewise.
23357 (df_insn_info_delete) Likewise.
23358 (df_free_collection_rec) Likewise.
23359 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
23360 (df_sort_and_compress_mws) Likewise.
23361 (df_ref_create_structure) Likewise.
23362 (df_ref_record) Likewise.
23363
23364 2015-06-01 Martin Liska <mliska@suse.cz>
23365
23366 * df-problems.c (df_chain_create):Use new type-based pool allocator.
23367 (df_chain_unlink_1) Likewise.
23368 (df_chain_unlink) Likewise.
23369 (df_chain_remove_problem) Likewise.
23370 (df_chain_alloc) Likewise.
23371 (df_chain_free) Likewise.
23372 * df.h (struct dataflow) Likewise.
23373
23374 2015-06-01 Martin Liska <mliska@suse.cz>
23375
23376 * cselib.c (new_elt_list):Use new type-based pool allocator.
23377 (new_elt_loc_list) Likewise.
23378 (unchain_one_elt_list) Likewise.
23379 (unchain_one_elt_loc_list) Likewise.
23380 (unchain_one_value) Likewise.
23381 (new_cselib_val) Likewise.
23382 (cselib_init) Likewise.
23383 (cselib_finish) Likewise.
23384
23385 2015-06-01 Martin Liska <mliska@suse.cz>
23386
23387 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
23388 (sh_reorg) Likewise.
23389
23390 2015-06-01 Martin Liska <mliska@suse.cz>
23391
23392 * cfg.c (initialize_original_copy_tables):Use new type-based
23393 pool allocator.
23394 (free_original_copy_tables) Likewise.
23395 (copy_original_table_clear) Likewise.
23396 (copy_original_table_set) Likewise.
23397
23398 2015-06-01 Martin Liska <mliska@suse.cz>
23399
23400 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
23401 pool allocator.
23402 (asan_mem_ref_new) Likewise.
23403 (free_mem_ref_resources) Likewise.
23404
23405 2015-06-01 Martin Liska <mliska@suse.cz>
23406
23407 * var-tracking.c (variable_htab_free):Use new type-based
23408 pool allocator.
23409 (attrs_list_clear) Likewise.
23410 (attrs_list_insert) Likewise.
23411 (attrs_list_copy) Likewise.
23412 (shared_hash_unshare) Likewise.
23413 (shared_hash_destroy) Likewise.
23414 (unshare_variable) Likewise.
23415 (var_reg_delete_and_set) Likewise.
23416 (var_reg_delete) Likewise.
23417 (var_regno_delete) Likewise.
23418 (drop_overlapping_mem_locs) Likewise.
23419 (variable_union) Likewise.
23420 (insert_into_intersection) Likewise.
23421 (canonicalize_values_star) Likewise.
23422 (variable_merge_over_cur) Likewise.
23423 (dataflow_set_merge) Likewise.
23424 (remove_duplicate_values) Likewise.
23425 (variable_post_merge_new_vals) Likewise.
23426 (dataflow_set_preserve_mem_locs) Likewise.
23427 (dataflow_set_remove_mem_locs) Likewise.
23428 (variable_from_dropped) Likewise.
23429 (variable_was_changed) Likewise.
23430 (set_slot_part) Likewise.
23431 (clobber_slot_part) Likewise.
23432 (delete_slot_part) Likewise.
23433 (loc_exp_insert_dep) Likewise.
23434 (notify_dependents_of_changed_value) Likewise.
23435 (emit_notes_for_differences_1) Likewise.
23436 (vt_emit_notes) Likewise.
23437 (vt_initialize) Likewise.
23438 (vt_finalize) Likewise.
23439
23440 2015-06-01 Martin Liska <mliska@suse.cz>
23441
23442 * ira-color.c (init_update_cost_records):Use new type-based
23443 pool allocator.
23444 (get_update_cost_record) Likewise.
23445 (free_update_cost_record_list) Likewise.
23446 (finish_update_cost_records) Likewise.
23447 (initiate_cost_update) Likewise.
23448
23449 2015-06-01 Martin Liska <mliska@suse.cz>
23450
23451 * lra.c (init_insn_regs): Use new type-based pool allocator.
23452 (new_insn_reg) Likewise.
23453 (free_insn_reg) Likewise.
23454 (free_insn_regs) Likewise.
23455 (finish_insn_regs) Likewise.
23456 (init_insn_recog_data) Likewise.
23457 (init_reg_info) Likewise.
23458 (finish_reg_info) Likewise.
23459 (lra_free_copies) Likewise.
23460 (lra_create_copy) Likewise.
23461 (invalidate_insn_data_regno_info) Likewise.
23462
23463 2015-06-01 Martin Liska <mliska@suse.cz>
23464
23465 * lra-lives.c (free_live_range): Use new type-based pool allocator.
23466 (free_live_range_list) Likewise.
23467 (create_live_range) Likewise.
23468 (copy_live_range) Likewise.
23469 (lra_merge_live_ranges) Likewise.
23470 (remove_some_program_points_and_update_live_ranges) Likewise.
23471 (lra_live_ranges_init) Likewise.
23472 (lra_live_ranges_finish) Likewise.
23473
23474 2015-06-01 Martin Liska <mliska@suse.cz>
23475
23476 * et-forest.c (et_new_occ): Use new type-based pool allocator.
23477 (et_new_tree): Likewise.
23478 (et_free_tree): Likewise.
23479 (et_free_tree_force): Likewise.
23480 (et_free_pools): Likewise.
23481 (et_split): Likewise.
23482
23483 2015-06-01 Martin Liska <mliska@suse.cz>
23484
23485 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
23486 to header file.
23487 * alloc-pool.h (pool_allocator::pool_allocator): New function.
23488 (pool_allocator::release): Likewise.
23489 (inline pool_allocator::release_if_empty): Likewise.
23490 (inline pool_allocator::~pool_allocator): Likewise.
23491 (pool_allocator::allocate): Likewise.
23492 (pool_allocator::remove): Likewise.
23493
23494 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
23495
23496 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
23497 in comment.
23498
23499 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
23500
23501 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
23502 to fusible_ops.
23503 * config/arm/arm.c (arm_print_tune_info): Likewise.
23504 (arm_macro_fusion_p): Likewise.
23505 (arm_macro_fusion_pair_p): Likewise.
23506
23507 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
23508
23509 * config/aarch64/aarch64-protos.h (tune_params): Rename
23510 fuseable_ops to fusible_ops.
23511 * config/aarch64/aarch64.c (generic_tunings): Rename
23512 fuseable_ops to fusible_ops.
23513 (cortexa53_tunings): Likewise.
23514 (cortexa57_tunings): Likewise.
23515 (thunderx_tunings): Likewise.
23516 (xgene1_tunings): Likewise.
23517 (aarch64_macro_fusion_p): Likewise.
23518 (aarch64_macro_fusion_pair_p): Likewise.
23519
23520 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
23521
23522 * config/s390/driver-native.c: New file.
23523 * config/s390/x-native: New file.
23524 * config.host: Add new files for s390.
23525 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
23526 and -march=native
23527 * config.gcc: Likewise.
23528 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
23529 * config/s390/s390-opts.h (enum processor_type): Ditto.
23530 * config/s390/s390.c (s390_option_override): Catch unhandled
23531 PROCESSOR_NATIVE
23532
23533 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
23534
23535 PR target/65527
23536 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
23537 redirection for instrumented calls.
23538 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
23539 (append_compiler_options): Append -fcheck-pointer-bounds.
23540 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
23541 (chkp_redirect_edge): New.
23542 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
23543 (chkp_redirect_edge): New.
23544
23545 2015-06-01 Richard Biener <rguenther@suse.de>
23546
23547 PR tree-optimization/66280
23548 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
23549 def-use walking.
23550
23551 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23552
23553 * config/aarch64/aarch64.md
23554 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
23555 logic_shift_imm.
23556
23557 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
23558
23559 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
23560 Remove obsolete kludge.
23561
23562 2015-06-01 Richard Biener <rguenther@suse.de>
23563
23564 * tree-ssa-reassoc.c (get_rank): Simplify.
23565
23566 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
23567
23568 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
23569 * configure: Regenerated.
23570
23571 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
23572
23573 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
23574 issue (add space between string literal and macro).
23575 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
23576
23577 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
23578
23579 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
23580 implict or explicit -fPIE or -fpie.
23581
23582 2015-05-30 Mike Frysinger <vapier@gentoo.org>
23583
23584 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
23585
23586 2015-05-28 DJ Delorie <dj@redhat.com>
23587
23588 * expmed.c (extract_bit_field_1): Avoid clobbering a
23589 yet-to-be-used base/index register.
23590
23591 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
23592
23593 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
23594 (alias_stats): Add num_universal.
23595 (alias_set_subset_of): Special case pointers; be ready for NULL
23596 children.
23597 (alias_sets_conflict_p): Special case pointers; be ready for NULL
23598 children.
23599 (init_alias_set_entry): Break out from ...
23600 (record_alias_subset): ... here; propagate new fields;
23601 allocate children only when really needed.
23602 (get_alias_set): Do less generous pointer globbing.
23603 (dump_alias_stats_in_alias_c): Update statistics.
23604
23605 2015-05-30 Alan Modra <amodra@gmail.com>
23606
23607 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
23608 correct block for use of r12.
23609 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
23610
23611 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23612
23613 PR target/66215
23614 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
23615 with -mhotpatch=.
23616
23617 2015-05-29 Jakub Jelinek <jakub@redhat.com>
23618
23619 PR tree-optimization/66142
23620 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
23621 virtual phis that feed themselves.
23622
23623 2015-05-29 Richard Biener <rguenther@suse.de>
23624
23625 PR tree-optimization/66314
23626 * tree-ssa-threadupdate.c (create_block_for_threading): Add
23627 parameter that says which loop the new block belongs to.
23628 (ssa_create_duplicates): Blocks duplicated for the threaded
23629 path belong to the loop of the thread destination.
23630
23631 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23632
23633 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
23634 to cleanup-saved-temps.
23635 * doc/sourcebuild.texi (Clean up generated test files): Expand
23636 introduction.
23637 (dg-keep-saved-temps): Document new proc.
23638 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
23639 cleanup-saved-temps): Remove.
23640
23641 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
23642
23643 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
23644 gcc_AC_CHECK_DECLS.
23645 * configure: Regenerate.
23646
23647 2015-05-28 Mike Frysinger <vapier@gentoo.org>
23648
23649 * config/nios2/linux.h (CPP_SPEC): Define.
23650
23651 2015-05-28 Mike Frysinger <vapier@gentoo.org>
23652
23653 * config/microblaze/linux.h (CPP_SPEC): Define.
23654
23655 2015-05-28 Mike Frysinger <vapier@gentoo.org>
23656
23657 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
23658 -pthread is specified.
23659
23660 2015-05-28 Richard Biener <rguenther@suse.de>
23661
23662 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
23663 (vect_fixup_scalar_cycles_with_patterns): Likewise.
23664 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
23665 after pattern recog.
23666 (vect_create_epilog_for_reduction): Properly handle reductions
23667 with patterns.
23668 (vectorizable_reduction): Likewise.
23669 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
23670 reduction chains.
23671 (vect_get_constant_vectors): Create the correct number of
23672 initial values for reductions.
23673 (vect_schedule_slp_instance): Handle reduction chains that are
23674 type changing properly.
23675 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
23676
23677 2015-05-28 Richard Biener <rguenther@suse.de>
23678
23679 PR tree-optimization/66142
23680 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
23681 values better in memcpy destination handling. Handle non-aliasing
23682 we discover here.
23683
23684 2015-05-28 Lawrence Velázquez <vq@larryv.me>
23685
23686 PR target/63810
23687 * config/darwin-c.c (version_components): New global enum.
23688 (parse_version, version_as_legacy_macro)
23689 (version_as_modern_macro, macosx_version_as_macro): New functions.
23690 (version_as_macro): Remove.
23691 (darwin_cpp_builtins): Use new function.
23692
23693 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
23694
23695 * builtins.c (expand_builtin_acc_on_device): Mark parameters
23696 with ATTRIBUTE_UNUSED.
23697
23698 2015-05-28 Julian Brown <julian@codesourcery.com>
23699
23700 PR libgomp/65742
23701
23702 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
23703 sequence for !ACCEL_COMPILER.
23704
23705 2015-05-28 Nick Clifton <nickc@redhat.com>
23706
23707 * config/rx/rx.c (push_regs): New function. Extracts code from...
23708 (rx_expand_prologue): ... here. Use push_regs to push even small
23709 spans of registers.
23710 (pop_regs): New function.
23711 (rx_expand_epilogue): Use pop_regs to pop even small spans of
23712 registers.
23713
23714 2015-05-28 Richard Biener <rguenther@suse.de>
23715
23716 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
23717 member.
23718 (SLP_INSTANCE_BODY_COST_VEC): Remove.
23719 (vect_update_slp_costs_according_to_vf): Likewise.
23720 (vect_slp_analyze_operations): Update prototype.
23721 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
23722 vect_update_slp_costs_according_to_vf, adjust.
23723 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
23724 (vect_analyze_slp_cost_1): Likewise.
23725 (vect_analyze_slp_cost): Likewise. Properly deal with
23726 widening reduction ops. Commit body costs.
23727 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
23728 cost for loops from here.
23729 (vect_slp_analyze_operations): But do it from here when
23730 the vectorization factor is known and stmts are analyzed.
23731 (vect_bb_vectorization_profitable_p): Simplify.
23732 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
23733 (vect_update_slp_costs_according_to_vf): Remove.
23734
23735 2015-05-27 Magnus Granberg <zorry@gentoo.org>
23736 H.J. Lu <hongjiu.lu@intel.com>
23737
23738 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
23739 (BUILD_CFLAGS): Likewise.
23740 (BUILD_CXXFLAGS): Likewise.
23741 (LINKER): Add @NO_PIE_FLAG@.
23742 (BUILD_LDFLAGS): Likewise.
23743 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
23744 --enable-default-pie.
23745 * common.opt (fPIE): Initialize to -1.
23746 (fpie): Likewise.
23747 (no-pie): New option.
23748 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
23749 * configure.ac: Add --enable-default-pie.
23750 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
23751 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
23752 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
23753 * gcc.c (NO_PIE_SPEC): New.
23754 (PIE_SPEC): Likewise.
23755 (NO_FPIE1_SPEC): Likewise.
23756 (FPIE1_SPEC): Likewise.
23757 (NO_FPIE2_SPEC): Likewise.
23758 (FPIE2_SPEC): Likewise.
23759 (NO_FPIE2_SPEC): Likewise.
23760 (FPIE_SPEC): Likewise.
23761 (NO_FPIE_SPEC): Likewise.
23762 (NO_FPIC1_SPEC): Likewise.
23763 (FPIC1_SPEC): Likewise.
23764 (NO_FPIC2_SPEC): Likewise.
23765 (FPIC2_SPEC): Likewise.
23766 (NO_FPIC2_SPEC): Likewise.
23767 (FPIC_SPEC): Likewise.
23768 (NO_FPIC_SPEC): Likewise.
23769 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
23770 (FPIE1_OR_FPIC1_SPEC): Likewise.
23771 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
23772 (FPIE2_OR_FPIC2_SPEC): Likewise.
23773 (NO_FPIE_AND_FPIC_SPEC): Likewise.
23774 (FPIE_OR_FPIC_SPEC): Likewise.
23775 (LD_PIE_SPEC): Likewise.
23776 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
23777 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
23778 * config/darwin.h (PIE_SPEC): Renamed to ...
23779 (DARWIN_PIE_SPEC): This.
23780 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
23781 * config/darwin9.h (PIE_SPEC): Renamed to ...
23782 (DARWIN_PIE_SPEC): This.
23783 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
23784 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23785 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
23786 FPIE2_OR_FPIC2_SPEC.
23787 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
23788 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
23789 * config/sol2.h (ASM_PIC_SPEC): Likewise.
23790 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23791 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23792 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23793 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
23794 * config/m32r/m32r.h (ASM_SPEC): Likewise.
23795 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
23796 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
23797 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
23798 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
23799 * config/sparc/linux.h (ASM_SPEC): Likewise.
23800 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23801 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
23802 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
23803 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23804 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
23805 * config/sparc/sparc.h (ASM_SPEC): Likewise.
23806 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
23807 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
23808 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
23809 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
23810 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
23811 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
23812 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
23813 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
23814 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
23815 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
23816 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
23817 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
23818 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23819 * config/vax/linux.h (ASM_SPEC): Likewise.
23820 * doc/install.texi: Document --enable-default-pie.
23821 * doc/invoke.texi: Document -no-pie.
23822 * config.in: Regenerated.
23823 * configure: Likewise.
23824
23825 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
23826
23827 PR rtl-optimization/66168
23828 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
23829 can_move_invariant_reg.
23830
23831 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
23832
23833 PR target/66148
23834 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
23835 REG_EQUAL note when doing insert.
23836
23837 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
23838 instead of "%d" for 'o' operand.
23839
23840 2015-05-27 Nathan Sidwell <nathan@acm.org>
23841
23842 PR c++/66270
23843 * tree.c (build_pointer_type_for_mode): Canonical type does not
23844 inherit can_alias_all.
23845 (build_reference_type_for_mode): Likewise.
23846
23847 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
23848
23849 * expr.h (array_at_struct_end_p): Move to...
23850 (array_ref_element_size): Likewise.
23851 (component_ref_field_offset): Likewise.
23852 * tree.h (array_ref_element_size): ...here.
23853 (array_at_struct_end_p): Likewise.
23854 (component_ref_field_offset): Likewise.
23855 * expr.c (array_ref_element_size): Move to...
23856 (array_ref_low_bound): Likewise.
23857 (array_at_struct_end_p): Likewise.
23858 (array_ref_up_bound): Likewise.
23859 (component_ref_field_offset): Likewise.
23860 * tree.c (array_ref_element_size): ...here.
23861 (array_ref_low_bound): Likewise.
23862 (array_ref_up_bound): Likewise.
23863 (array_at_struct_end_p): Likewise.
23864 (component_ref_field_offset): Likewise.
23865
23866 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
23867 Szabolcs Nagy <szabolcs.nagy@arm.com>
23868
23869 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
23870
23871 2015-05-27 Jason Merrill <jason@redhat.com>
23872
23873 PR bootstrap/66304
23874 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
23875 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
23876 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
23877
23878 2015-05-22 Aditya Kumar <hiraditya@msn.com>
23879
23880 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
23881 is true.
23882
23883 * statistics.c (statistics_fini_pass): Print pass name.
23884
23885 2015-05-27 Richard Biener <rguenther@suse.de>
23886
23887 PR tree-optimization/66272
23888 Revert parts of
23889 2014-08-15 Richard Biener <rguenther@suse.de>
23890
23891 PR tree-optimization/62031
23892 * tree-data-ref.c (dr_analyze_indices): Do not set
23893 DR_UNCONSTRAINED_BASE.
23894 (dr_may_alias_p): All indirect accesses have to go the
23895 formerly DR_UNCONSTRAINED_BASE path.
23896 * tree-data-ref.h (struct indices): Remove
23897 unconstrained_base member.
23898 (DR_UNCONSTRAINED_BASE): Remove.
23899
23900 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
23901
23902 * dwarf2out.c: Remove block_map.
23903 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
23904 (gen_lexical_block_die): Same.
23905 (dwarf2out_function_decl): Remove block_map use.
23906 (dwarf2out_c_finalize): Same.
23907 * tree-core.h (struct tree_block): Add die field.
23908 * tree.h (BLOCK_DIE): New.
23909
23910 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23911
23912 PR target/65358
23913 * expr.c (memory_load_overlap): New function.
23914 (emit_push_insn): When pushing partial args to the stack would
23915 clobber the register part load the overlapping part into a pseudo
23916 and put it into the hard reg after pushing. Change return type
23917 to bool. Add bool argument.
23918 * expr.h (emit_push_insn): Change return type to bool.
23919 Add bool argument.
23920 * calls.c (expand_call): Cancel sibcall optimization when encountering
23921 partial argument on targets with ARGS_GROW_DOWNWARD and
23922 !STACK_GROWS_DOWNWARD.
23923 (emit_library_call_value_1): Update callsite of emit_push_insn.
23924 (store_one_arg): Likewise.
23925
23926 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
23927
23928 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
23929
23930 2015-05-27 Martin Liska <mliska@suse.cz>
23931
23932 * Makefile.in: Add additional dependencies related to memory report
23933 enhancement.
23934 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
23935 * bitmap.c (struct bitmap_descriptor_d): Remove.
23936 (struct loc): Likewise.
23937 (struct bitmap_desc_hasher): Likewise.
23938 (bitmap_desc_hasher::hash): Likewise.
23939 (bitmap_desc_hasher::equal): Likewise.
23940 (get_bitmap_descriptor): Likewise.
23941 (bitmap_register): User new memory descriptor API.
23942 (register_overhead): Likewise.
23943 (bitmap_find_bit): Register nsearches and search_iter statistics.
23944 (struct bitmap_output_info): Remove.
23945 (print_statistics): Likewise.
23946 (dump_bitmap_statistics): Use new memory descriptor.
23947 * bitmap.h (struct bitmap_usage): New class.
23948 * genmatch.c: Extend header file inclusion.
23949 * genpreds.c: Likewise.
23950 * ggc-common.c (struct ggc_usage): New class.
23951 (struct ggc_loc_desc_hasher): Remove.
23952 (ggc_loc_desc_hasher::hash): Likewise.
23953 (ggc_loc_desc_hasher::equal): Likewise.
23954 (struct ggc_ptr_hash_entry): Likewise.
23955 (struct ptr_hash_hasher): Likewise.
23956 (ptr_hash_hasher::hash): Likewise.
23957 (ptr_hash_hasher::equal): Likewise.
23958 (make_loc_descriptor): Likewise.
23959 (ggc_prune_ptr): Likewise.
23960 (dump_ggc_loc_statistics): Use new memory descriptor.
23961 (ggc_record_overhead): Likewise.
23962 (ggc_free_overhead): Likewise.
23963 (final_cmp_statistic): Remove.
23964 (cmp_statistic): Likewise.
23965 (ggc_add_statistics): Liekwise.
23966 (ggc_prune_overhead_list): Likewise.
23967 * hash-map-traits.h: New file.
23968 * hash-map.h (struct default_hashmap_traits): Move the traits to a
23969 separate header file.
23970 * hash-set.h: Pass memory statistics info to ctor.
23971 * hash-table.c (void dump_hash_table_loc_statistics): New function.
23972 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
23973 (hash_table::~hash_table): Register memory release operation.
23974 (hash_table::alloc_entries): Handle memory allocation operation.
23975 (hash_table::expand): Likewise.
23976 * inchash.c (iterative_hash_hashval_t): Move implementation to header
23977 file.
23978 (iterative_hash_host_wide_int): Likewise.
23979 * inchash.h (class hash): Likewise.
23980 * mem-stats-traits.h: New file.
23981 * mem-stats.h: New file.
23982 (mem_location): Add new class.
23983 (mem_usage): Likewise.
23984 (mem_alloc_description): Likewise.
23985 * sese.c: Add new header file inclusision.
23986 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
23987 and hash_set.
23988 * tree-sra.c: Add new header file inclusision.
23989 * vec.c (struct vec_descriptor): Remove.
23990 (hash_descriptor): Likewise.
23991 (struct vec_usage): Likewise.
23992 (struct ptr_hash_entry): Likewise.
23993 (hash_ptr): Likewise.
23994 (eq_ptr): Likewise.
23995 (vec_prefix::register_overhead): Use new memory descriptor API.
23996 (vec_prefix::release_overhead): Likewise.
23997 (add_statistics): Remove.
23998 (dump_vec_loc_statistics): Use new memory descriptor API.
23999 * vec.h (struct vec_prefix): Likewise.
24000 (va_heap::reserve): Likewise.
24001 (va_heap::release): Likewise.
24002 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
24003
24004 2015-05-27 Richard Biener <rguenther@suse.de>
24005
24006 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
24007 earlier and remove ??? comment.
24008 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
24009 and got called from loop analysis bail out. Always pass the SLP
24010 node to the vectorizable_* functions.
24011 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
24012 the premature SLP check here.
24013 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
24014 detected SLP stmts.
24015 (vect_detect_hybrid_slp_1): Likewise.
24016
24017 2015-05-26 Jeff Law <law@redhat.com>
24018
24019 * combine.c (find_split_point): Verify that the shift count is a
24020 constant when choosing (plus (ashift ...)) as a split point.
24021
24022 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
24023 No functional changes.
24024
24025 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
24026
24027 * ipa-polymorphic-call.c
24028 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
24029 case when call target is already known.
24030
24031 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
24032
24033 PR target/65979
24034 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
24035 take into account the case that operands[1] and operands[2]
24036 are the same register.
24037
24038 2015-05-26 Michael Matz <matz@suse.de>
24039
24040 PR middle-end/66251
24041
24042 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
24043 stores.
24044 (vect_create_vectorized_demotion_stmts): Always set
24045 STMT_VINFO_VEC_STMT, also with SLP.
24046 (vectorizable_store): Handle strided group stores.
24047
24048 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24049
24050 PR target/66049
24051 * config/aarch64/aarch64.md
24052 (*adds_shift_imm_<mode>): New pattern.
24053 (*subs_shift_imm_<mode>): Likewise.
24054 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
24055 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
24056 (*add_uxt<mode>_shift2): Likewise.
24057 (*add_uxtsi_shift2_uxtw): Likewise.
24058 (*sub_uxt<mode>_shift2): Likewise.
24059 (*sub_uxtsi_shift2_uxtw): Likewise.
24060
24061 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
24062
24063 * config/rs6000/constraints.md (Y, U): Use match_test.
24064
24065 2015-05-26 Christian Bruel <christian.bruel@st.com>
24066
24067 PR target/52144
24068 * config/arm/arm.c (arm_option_check_internal)
24069 (arm_option_params_internal): Check opts->target_flags to set macros.
24070 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24071 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
24072 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24073 (builtin_define): Replaced with def_or_undef_macro.
24074 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24075 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
24076 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24077 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
24078 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
24079 (TARGET_ARM_FEATURE_LDREX_P)
24080 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
24081 * config/arm/arm-c.c (def_or_undef_macro): New function.
24082 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
24083
24084 2015-05-26 Christian Bruel <christian.bruel@st.com>
24085
24086 * c-common.h (builtin_define_with_int_value)
24087 (builtin_define_type_sizeof): Declare.
24088 * c-cppbuiltin.c (builtin_define_with_int_value)
24089 (builtin_define_type_sizeof): Externalize.
24090 (builtin_define_std): Cleanup declaration.
24091 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
24092 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
24093 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
24094 (builtin_define, builtin_assert): New macros.
24095
24096 2015-05-26 Richard Biener <rguenther@suse.de>
24097
24098 PR tree-optimization/66142
24099 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
24100 MEM_REFs for the same base address.
24101
24102 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24103
24104 PR ipa/66181
24105 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
24106
24107 2015-05-26 Jason Merrill <jason@redhat.com>
24108
24109 * configure.ac: Set CXXFLAGS for ISL test.
24110 * configure: Regenerate.
24111
24112 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
24113 strstr and basename.
24114 * configure: Regenerate.
24115
24116 2015-05-26 Richard Biener <rguenther@suse.de>
24117
24118 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
24119 X % C -> X & (C - 1) for C being a power-of two to ...
24120 * match.pd: ... patterns.
24121
24122 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
24123
24124 * match.pd (swapped_tcc_comparison): New operator list.
24125 (-A CMP -B): New simplification.
24126 * fold-const.c (fold_comparison): Remove corresponding code.
24127
24128 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
24129
24130 * caller-save.c (init_caller_save): Base temporary register numbers
24131 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
24132 * cfgloopanal.c (init_set_costs): Likewise.
24133 * dojump.c (prefer_and_bit_test): Likewise.
24134 * expr.c (init_expr_target): Likewise.
24135 * ira.c (setup_prohibited_mode_move_regs): Likewise.
24136 * lower-subreg.c (init_lower_subreg): Likewise.
24137 * postreload.c (reload_cse_regs_1): Likewise.
24138
24139 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
24140
24141 * gensupport.h (compute_test_codes): Declare.
24142 * gensupport.c (compute_predicate_codes): Rename to...
24143 (compute_test_codes): ...this. Generalize error message.
24144 (process_define_predicate): Update accordingly.
24145 * genpreds.c (compute_maybe_allows): Delete.
24146 (add_constraint): Use compute_test_codes to determine whether
24147 something can accept a SUBREG, REG or MEM.
24148
24149 2015-05-26 Torvald Riegel <triegel@redhat.com>
24150
24151 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
24152 'memory model' to align with C++11; fix description of memory orders;
24153 fix a few typos.
24154
24155 2015-05-26 Richard Biener <rguenther@suse.de>
24156
24157 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
24158 (vect_analyze_loop_operations): ... here. Remove slp parameter,
24159 detect whether we apply SLP. Remove call to
24160 vect_update_slp_costs_according_to_vf.
24161 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
24162 vect_update_slp_costs_according_to_vf from here. Dispatch
24163 to vect_slp_analyze_operations to analyze SLP stmts.
24164 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
24165 unused bb_vec_info parameter, adjust assert.
24166 (vect_slp_analyze_operations): Pass in the slp instance tree
24167 instead of bb_vec_info.
24168 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
24169 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
24170
24171 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
24172
24173 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
24174 Q_REGS. Expand comment.
24175 (REG_CLASS_NAMES): Ditto.
24176 (REG_CLASS_CONTENTS): Ditto.
24177
24178 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
24179
24180 PR target/66274
24181 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
24182 when LEGACY_INT_REGNO_P is processed.
24183
24184 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
24185
24186 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
24187
24188 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24189
24190 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
24191 register if not marked dead/unused, before return.
24192
24193 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24194
24195 PR lto/66180
24196 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
24197 is set; check for assembler name at LTO time.
24198 (type_in_anonymous_namespace): Remove hacks, check that all
24199 anonymous types are called "<anon>"
24200 (odr_type_p): Simplify; add check for "<anon>"
24201 (odr_subtypes_equivalent): Add odr_type_p check.
24202 * tree.c (need_assembler_name_p): Even anonymous namespace needs
24203 assembler name.
24204
24205 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24206
24207 * ipa-utils.h (method_class_type): Remove.
24208 * cgraphunit.c (walk_polymorphic_call_targets): Use
24209 TYPE_METHOD_BASETYPE.
24210 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
24211 on main variants only.
24212 (method_class_type): Remove.
24213 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
24214 (build_type_inheritance_graph): Likewise.
24215 * ipa-icf.c (sem_function::equals_wpa): Likewise.
24216 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
24217 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
24218
24219 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24220
24221 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
24222 is_typedef_decl, typedef_variant_p): Constify.
24223 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
24224 is_typedef_decl, typedef_variant_p): Constify.
24225
24226 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24227
24228 * defaults.h (gen_tablejump): New function.
24229 (HAVE_tablejump): Add default value.
24230 * expr.c: Adjust.
24231 * stmt.c: Likewise.
24232
24233 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24234
24235 * defaults.h (gen_store_multiple): New function.
24236 (HAVE_store_multiple): Add default value.
24237 * expr.c (move_block_from_reg): Adjust.
24238
24239 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24240
24241 * defaults.h (gen_load_multiple): New function.
24242 (HAVE_load_multiple): Add default value.
24243 * expr.c (move_block_to_reg): Adjust.
24244
24245 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24246
24247 * defaults.h (gen_mem_signal_fence): New function.
24248 (HAVE_mem_signal_fence): Add default value.
24249 * optabs.c: Adjust.
24250
24251 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24252
24253 * defaults.h (gen_memory_barrier): New function.
24254 (HAVE_memory_barrier): Add default value.
24255 * optabs.c: Adjust.
24256
24257 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24258
24259 * defaults.h (gen_mem_thread_fence): New function.
24260 (HAVE_mem_thread_fence): Add default definition.
24261 * optabs.c: Adjust.
24262
24263 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24264
24265 * combine.c (find_split_point): Check the value of HAVE_lo_sum
24266 instead of if it is defined.
24267 (combine_simplify_rtx): Likewise.
24268 * lra-constraints.c (process_address_1): Likewise.
24269 * config/darwin.c: Adjust.
24270 * genconfig.c (main): Always define HAVE_lo_sum.
24271
24272 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24273
24274 * genmatch.c (parser::parse_operation): Reject expanding
24275 operator-list inside 'for'.
24276
24277 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24278
24279 * genmatch.c (parser::parse_for): Reject iterator if used as
24280 operator-list.
24281
24282 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24283
24284 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
24285 after end of id-list.
24286
24287 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
24288
24289 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
24290 we do not try to compute canonical type for type that does not need
24291 alias set.
24292 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
24293 FUNCITON_TYPE.
24294 * tree.h (type_with_alias_set_p): New.
24295
24296 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
24297
24298 * tree.c (gimple_canonical_types_compatible_p): Do not compare
24299 function attributes.
24300 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
24301
24302 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
24303
24304 * Makefile.in (check_gcc_parallelize): Delete.
24305 (lang_checks_parallelized): Update comment.
24306
24307 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
24308
24309 PR rtl-optimization/66237
24310 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
24311 location of an "as_a" cast.
24312
24313 2015-05-22 Jeff Law <law@redhat.com>
24314
24315 * config/pa/pa.md (non-canonical shift-add insns): Remove.
24316 (peepholes with non-canonical RTL sources): Remove.
24317 (peepholes for indexed stores of FP regs in integer modes): Match and
24318 generate canonical RTL.
24319
24320 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
24321
24322 PR tree-optimization/63387
24323 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
24324 ((x ord x) & (y ord y) -> (x ord y),
24325 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
24326 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
24327 vectors like scalars.
24328
24329 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
24330
24331 * convert.c (convert_to_integer, convert_to_vector): Include the
24332 types in the error message.
24333
24334 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
24335
24336 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
24337 simplifications.
24338
24339 2015-05-22 Jeff Law <law@redhat.com>
24340
24341 * config/pa/pa.md (integer_indexed_store splitters): Use
24342 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
24343 insns -- adjusting the constant 2nd operand accordingly.
24344
24345 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
24346 (plus (ashift X log2) Y) if it is a split point.
24347
24348 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
24349 out of hppa_legitimize_address to handle both forms of a multiply
24350 by 2, 4 or 8.
24351 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
24352 Always generate the ASHIFT variant as the result is not directly
24353 used in a MEM. Update comments and refactor slightly to improve
24354 readability.
24355
24356 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24357
24358 PR target/65491
24359 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
24360 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
24361 (aarch64_composite_type_p): Return false if given type and mode are
24362 for a short vector.
24363
24364 2015-05-22 Richard Biener <rguenther@suse.de>
24365
24366 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
24367 member.
24368 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
24369 patterns when determining whether SLP is pure.
24370 (vect_is_slp_reduction): Remove check for pattern stmts.
24371 (vect_is_simple_reduction_1): Remove dead code.
24372 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
24373 (vect_get_and_check_slp_defs): Pass in the stmt number.
24374 Allow the first def in a reduction to be not a pattern stmt when
24375 the rest of the stmts def are patterns.
24376 (vect_build_slp_tree_1): Allow tcc_expression codes like
24377 SAD_EXPR and DOT_PROD_EXPR.
24378 (vect_build_slp_tree): Adjust.
24379 (vect_analyze_slp): Refactor and move BB vect error message ...
24380 (vect_slp_analyze_bb_1): ... here.
24381
24382 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
24383
24384 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
24385 for CSWTCH temporary.
24386
24387 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24388
24389 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
24390 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
24391 unknown unspecs.
24392
24393 2015-05-22 Richard Biener <rguenther@suse.de>
24394
24395 PR tree-optimization/66251
24396 * tree-vect-stmts.c (vectorizable_conversion): Properly
24397 set STMT_VINFO_VEC_STMT even for the SLP case.
24398
24399 2015-05-22 Marek Polacek <polacek@redhat.com>
24400
24401 * doc/extend.texi: Use @pxref instead of @xref.
24402
24403 2015-05-22 hiraditya <hiraditya@msn.com>
24404
24405 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
24406 redundant if.
24407
24408 2015-05-22 Richard Biener <rguenther@suse.de>
24409
24410 PR tree-optimization/65701
24411 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
24412 Move peeling cost models into one place. Peel for alignment
24413 for single loads only if an aligned load is cheaper than
24414 an unaligned load.
24415
24416 2015-05-22 Marek Polacek <polacek@redhat.com>
24417
24418 PR c/47043
24419 * doc/extend.texi (Enumerator Attributes): New section.
24420 Document syntax of enumerator attributes.
24421
24422 2015-05-22 Richard Biener <rguenther@suse.de>
24423
24424 * tree-vect-loop.c (get_reduction_op): New function.
24425 (vect_model_reduction_cost): Use it, add reduc_index parameter.
24426 Make ready for BB reductions.
24427 (vect_create_epilog_for_reduction): Use get_reduction_op.
24428 (vectorizable_reduction): Init reduc_index to a valid value.
24429 Adjust vect_model_reduction_cost call.
24430 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
24431 operand for reduction defaults. Add SAD_EXPR support.
24432 Assert we have a neutral op for SLP reductions.
24433 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
24434 walking pattern stmt ops only recurse to SSA names.
24435
24436 2015-05-22 Richard Biener <rguenther@suse.de>
24437
24438 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
24439 assert with guard, remove check on detected reduction.
24440 (vect_recog_sad_pattern): Likewise.
24441 (vect_recog_widen_sum_pattern): Likewise.
24442
24443 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24444
24445 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
24446 __always_inline__ attribute.
24447 (vaesdq_u8): Likewise.
24448 (vaesmcq_u8): Likewise.
24449 (vaesimcq_u8): Likewise.
24450 (vsha1cq_u32): Likewise.
24451 (vsha1mq_u32): Likewise.
24452 (vsha1pq_u32): Likewise.
24453 (vsha1h_u32): Likewise.
24454 (vsha1su0q_u32): Likewise.
24455 (vsha1su1q_u32): Likewise.
24456 (vsha256hq_u32): Likewise.
24457 (vsha256h2q_u32): Likewise.
24458 (vsha256su0q_u32): Likewise.
24459 (vsha256su1q_u32): Likewise.
24460 (vmull_p64): Likewise.
24461 (vmull_high_p64): Likewise.
24462
24463 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24464
24465 * final.c (final_scan_insn): Don't check HAVE_peephole with the
24466 preprocessor.
24467 * output.h: Likewise.
24468 * genconfig.c (main): Alwways define HAVE_peephole.
24469 * genpeep.c: Don't emit checks of HAVE_peephole.
24470
24471 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24472
24473 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
24474 check HAVE_conditional_move with the preprocessor.
24475
24476 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24477
24478 * genconfig.c (main): Always define HAVE_conditional_move.
24479 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
24480 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
24481 is defined.
24482
24483 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24484
24485 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
24486 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
24487 and FRAME_POINTER_REGNUM with the preprocessor.
24488
24489 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24490
24491 * defaults.h: Add default for STACK_PUSH_CODE.
24492 * expr.c: Don't redefine STACK_PUSH_CODE.
24493 * recog.c: Likewise.
24494
24495 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24496
24497 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
24498 sched-deps.c: Use if instead of preprocessor checks with
24499 STACK_GROWS_DOWNWARD.
24500
24501 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24502
24503 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
24504 is defined.
24505 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
24506 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
24507 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
24508 * doc/tm.texi: Regenerate.
24509
24510 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
24511
24512 PR target/66232
24513 * config/i386/constraints.md (Bg): New constraint for GOT memory
24514 operand.
24515 * config/i386/i386.md (*call_got_x32): New pattern.
24516 (*call_value_got_x32): Likewise.
24517 * config/i386/predicates.md (GOT_memory_operand): New predicate.
24518
24519 2015-05-21 Jakub Jelinek <jakub@redhat.com>
24520
24521 PR tree-optimization/66233
24522 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
24523 Simplify.
24524
24525 2015-05-21 Jeff Law <law@redhat.com>
24526
24527 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
24528 than MULT for shadd sequences.
24529
24530 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
24531
24532 * alias.c (alias_stats): New static var.
24533 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
24534 (dump_alias_stats_in_alias_c): New function.
24535 * alias.h (dump_alias_stats_in_alias_c): Declare.
24536 * tree-ssa-alias.c (dump_alias_stats): Call it.
24537
24538 2015-05-08 Michael Matz <matz@suse.de>
24539
24540 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
24541 to strided_p.
24542 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
24543 (STMT_VINFO_STRIDED_P): ... this.
24544 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
24545 (vect_verify_datarefs_alignment): Likewise.
24546 (vect_enhance_data_refs_alignment): Likewise.
24547 (vect_analyze_data_ref_access): Likewise.
24548 (vect_analyze_data_refs): Accept strided stores.
24549 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
24550 (vect_model_load_cost): Adjust for macro rename.
24551 (vectorizable_mask_load_store): Likewise.
24552 (vectorizable_load): Likewise.
24553 (vectorizable_store): Open code strided stores.
24554
24555 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24556
24557 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
24558 Document sqrt_insn.
24559
24560 2015-05-21 Richard Biener <rguenther@suse.de>
24561
24562 PR c++/66211
24563 * match.pd: Guard pattern optimzing (int)(float)int
24564 conversions to apply only on GIMPLE.
24565
24566 2015-05-21 Jeff Law <law@redhat.com>
24567
24568 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
24569 multiply-accumulate/shift-add insn generation.
24570
24571 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
24572
24573 PR target/54236
24574 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
24575 operands[1] are the same.
24576
24577 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
24578
24579 PR middle-end/66221
24580 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
24581 build_distinct_type_copy to copy bounds.
24582
24583 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
24584
24585 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
24586 Change to unsigned int.
24587
24588 2015-05-20 Jeff Law <law@redhat.com>
24589
24590 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
24591 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
24592 (pa_shadd_constant_p): Allow constants for shadd insns rather
24593 than valid scaling constants for memory addresses.
24594 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
24595 * config/pa/predicates.md (mem_shadd_operand): New predicate.
24596 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
24597 (shift-add insns using ASHIFT): New patterns.
24598
24599 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
24600
24601 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
24602 feasible.
24603 (fix_up_fall_thru_edges): Likewise.
24604 (fix_crossing_conditional_branches): Likewise. Promote jump targets
24605 from to rtx_insn to rtx_code_label where feasible.
24606 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
24607 gen_move_insn (returned type changed to rtx_insn).
24608 * builtins.c (expand_errno_check): Fix arguments of
24609 do_compare_rtx_and_jump (now expects rtx_code_label).
24610 (expand_builtin_acc_on_device): Likewise.
24611 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
24612 invert_jump (now exprects rtx_jump_insn).
24613 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
24614 (construct_init_block): Use rtx_code_label.
24615 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
24616 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
24617 calling redirect_jump.
24618 (patch_jump_insn): Likewise.
24619 (redirect_branch_edge): Likewise.
24620 (force_nonfallthru_and_redirect): Likewise.
24621 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
24622 when suitable.
24623 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
24624 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
24625 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
24626 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
24627 to store the value retured by gen_label_rtx.
24628 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
24629 rtx_jump_insn.
24630 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
24631 (split_branches): Fix calls of redirect_jump.
24632 * dojump.c (jumpifnot): Promote argument type from rtx to
24633 rtx_code_label.
24634 (jumpifnot_1): Likewise.
24635 (jumpif): Likewise.
24636 (jumpif_1): Likewise.
24637 (do_jump_1): Likewise.
24638 (do_jump): Likewise. Use rtx_code_label when feasible.
24639 (do_jump_by_parts_greater_rtx): Likewise.
24640 (do_jump_by_parts_zero_rtx): Likewise.
24641 (do_jump_by_parts_equality_rtx): Likewise.
24642 (do_compare_rtx_and_jump): Likewise.
24643 * dojump.h: Update function prototypes.
24644 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
24645 returns rtx_insn).
24646 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
24647 rtx_jump_insn.
24648 (emit_label_before): Likewise.
24649 (emit_jump_insn_after_noloc): Likewise.
24650 (emit_jump_insn_after_setloc): Likewise.
24651 (emit_jump_insn_after): Likewise
24652 (emit_jump_insn_before_setloc): Likewise.
24653 (emit_jump_insn_before): Likewise.
24654 (emit_label_before): Promote return type to rtx_code_label.
24655 (emit_label): Likewise.
24656 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
24657 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
24658 gen_move_insn.
24659 (emit_stack_restore): Likewise.
24660 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
24661 (do_cmp_and_jump): Likewise.
24662 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
24663 from rtx to rtx_code_label.
24664 (gen_move_insn_uncast): New function.
24665 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
24666 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
24667 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
24668 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
24669 invert_jump_1 and redirect_jump_1.
24670 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
24671 do_compare_rtx_and_jump.
24672 (expand_addsub_overflow): Likewise.
24673 (expand_neg_overflow): Likewise.
24674 (expand_mul_overflow): Likewise.
24675 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
24676 return value of gen_move_insn.
24677 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
24678 * loop-doloop.c (add_test): Use rtx_code_label.
24679 (doloop_modify): Likewise.
24680 (doloop_optimize): Likewise.
24681 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
24682 * lra-constraints.c (emit_spill_move): Remove cast of value returned
24683 by gen_move_insn.
24684 (inherit_reload_reg): Add cast when calling dump_insn_slim.
24685 (split_reg): Likewise.
24686 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
24687 gen_move_insn.
24688 * optabs.c (expand_binop_directly): Remove casts of values returned by
24689 maybe_gen_insn.
24690 (expand_unop_direct): Likewise.
24691 (expand_abs): Likewise.
24692 (maybe_emit_unop_insn): Likewise.
24693 (maybe_gen_insn): Promote return type to rtx_insn.
24694 * optabs.h: Update prototype of maybe_gen_insn.
24695 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
24696 redundant cast.
24697 * recog.c (struct peep2_insn_data): Promote type of insn field to
24698 rtx_insn.
24699 (peep2_reinit_state): Use NULL instead of NULL_RTX.
24700 (peep2_attempt): Remove casts of insn in peep2_insn_data.
24701 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
24702 * recog.h (struct insn_gen_fn): Promote return types of function
24703 pointers and operator ().from rtx to rtx_insn.
24704 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
24705 (fill_eager_delay_slots): Likewise.
24706 (relax_delay_slots): Likewise.
24707 (make_return_insns): Likewise.
24708 (dbr_schedule): Likewise.
24709 (optimize_skips): Likewise.
24710 (reorg_redirect_jump): Likewise.
24711 (fill_slots_from_thread): Likewise.
24712 * reorg.h: Update prototypes.
24713 * resource.c (find_dead_or_set_registers): Use dyn_cast to
24714 rtx_jump_insn instead of check. Use it's jump_target method.
24715 * rtl.h (rtx_jump_insn::jump_label): Define new method.
24716 (rtx_jump_insn::jump_target): Define new method.
24717 (rtx_jump_insn::set_jump_target): Define new method.
24718 * rtlanal.c (tablejump_p): Promote type of one local variable.
24719 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
24720 (sched_analyze_insn): Likewise.
24721 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
24722 (print_insn): Likewise.
24723 * stmt.c (label_rtx): Promote return type to rtx_insn.
24724 (force_label_rtx): Likewise.
24725 (jump_target_rtx): Define new function.
24726 (expand_label): Use it, get rid of one cast.
24727 (expand_naked_return): Promote rtx to rtx_code_label.
24728 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
24729 (expand_case): Use rtx_code_label instread of rtx where feasible.
24730 (expand_sjlj_dispatch_table): Likewise.
24731 (emit_case_nodes): Likewise.
24732 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
24733 * store-motion.c (insert_store): Make use of new return type of
24734 gen_move_insn and remove a cast.
24735 (replace_store_insn): Likewise.
24736
24737 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
24738
24739 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
24740 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
24741
24742 2015-05-20 Jeff Law <law@redhat.com>
24743
24744 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
24745 dispose of the jump thread path when the jump threading
24746 opportunity is cancelled.
24747
24748 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
24749
24750 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
24751 when printing the caret character.
24752
24753 2015-05-20 Marek Polacek <polacek@redhat.com>
24754
24755 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
24756
24757 2015-05-20 Marek Polacek <polacek@redhat.com>
24758
24759 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
24760 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
24761 * gimple-fold.c (canonicalize_bool): Likewise.
24762 (same_bool_result_p): Likewise.
24763 * tree-if-conv.c (parse_predicate): Likewise.
24764
24765 2015-05-20 Marek Polacek <polacek@redhat.com>
24766
24767 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
24768 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
24769
24770 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24771
24772 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
24773 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
24774 values.
24775
24776 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
24777
24778 * config/mips/mips.h (micromips_globals): Declare.
24779
24780 2015-05-20 David Malcolm <dmalcolm@redhat.com>
24781
24782 * timevar.def (TV_INITIALIZE_RTL): New.
24783 * toplev.c (initialize_rtl): Use an auto_timevar to account this
24784 function's time to TV_INITIALIZE_RTL.
24785
24786 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
24787
24788 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
24789 gimple_build_nop calls.
24790 (chkp_find_bounds_for_elem): Likewise.
24791 (chkp_get_zero_bounds): Likewise.
24792 (chkp_get_none_bounds): Likewise.
24793 (chkp_get_bounds_by_definition): Likewise.
24794 (chkp_generate_extern_var_bounds): Likewise.
24795 (chkp_get_bounds_for_decl_addr): Likewise.
24796 (chkp_get_bounds_for_string_cst): Likewise.
24797
24798 2015-05-20 Bin Cheng <bin.cheng@arm.com>
24799
24800 PR tree-optimization/65447
24801 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
24802 (dump_use, dump_uses): Support to dump sub use.
24803 (record_use): New parameters to support sub use. Remove call to
24804 dump_use.
24805 (record_sub_use, record_group_use): New functions.
24806 (compute_max_addr_offset, split_all_small_groups): New functions.
24807 (group_address_uses, rewrite_use_address): New functions.
24808 (strip_offset): New declaration.
24809 (find_interesting_uses_address): Call record_group_use.
24810 (add_candidate): New assertion.
24811 (infinite_cost_p): Move definition forward.
24812 (add_costs): Check INFTY cost and return immediately.
24813 (get_computation_cost_at): Clear setup cost and dependent bitmap
24814 for sub uses.
24815 (determine_use_iv_cost_address): Compute cost for sub uses.
24816 (rewrite_use_address_1): Rename from old rewrite_use_address.
24817 (free_loop_data): Free sub uses.
24818 (tree_ssa_iv_optimize_loop): Call group_address_uses.
24819
24820 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
24821 Jim Wilson <jim.wilson@linaro.org>
24822
24823 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
24824 new fields loadv and storev.
24825 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
24826 Initialize loadv and storev.
24827 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
24828 (cortexa53_extra_costs): Likewise.
24829 (cortexa57_extra_costs): Likewise.
24830 (xgene1_extra_costs): Likewise.
24831 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
24832 rtx_costs.
24833
24834 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
24835
24836 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
24837 storev.
24838 (cortexa8_extra_costs): Likewise.
24839 (cortexa5_extra_costs): Likewise.
24840 (cortexa7_extra_costs): Likewise.
24841 (cortexa12_extra_costs): Likewise.
24842 (cortexa15_extra_costs): Likewise.
24843 (v7m_extra_costs): Likewise.
24844
24845 2015-05-20 Jeff Law <law@redhat.com>
24846
24847 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
24848 instead of open-coded version. Also delete the jump thread created
24849 within this function.
24850
24851 2015-05-20 Alan Modra <amodra@gmail.com>
24852
24853 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
24854 stack adjusting insn. Formatting.
24855 (rs6000_emit_prologue): Track stack adjusting insn, and use of
24856 r12. If possible, emit first -fsplit-stack arg pointer insn
24857 before stack adjust. Don't use r12 to save cr if split-stack.
24858
24859 2015-05-20 Alan Modra <amodra@gmail.com>
24860
24861 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
24862 Define.
24863 (rs6000_supports_split_stack): New function.
24864 * config/rs6000/rs6000.c (machine_function): Add
24865 split_stack_arg_pointer.
24866 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
24867 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
24868 rather than virtual_incoming_args_rtx.
24869 (rs6000_va_start): Likewise.
24870 (split_stack_arg_pointer_used_p): New function.
24871 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
24872 (morestack_ref): New var.
24873 (gen_add3_const, rs6000_expand_split_stack_prologue,
24874 rs6000_internal_arg_pointer, rs6000_live_on_entry,
24875 rs6000_split_stack_space_check): New functions.
24876 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
24877 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
24878 (UNSPECV_SPLIT_STACK_RETURN): Define.
24879 (split_stack_prologue, load_split_stack_limit,
24880 load_split_stack_limit_di, load_split_stack_limit_si,
24881 split_stack_return, split_stack_space_check): New expands and insns.
24882 * config/rs6000/rs6000-protos.h
24883 (rs6000_expand_split_stack_prologue): Declare.
24884 (rs6000_split_stack_space_check): Declare.
24885
24886 2015-05-20 Alan Modra <amodra@gmail.com>
24887
24888 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
24889 (direct_return): Test vrsave_size rather than vrsave_mask.
24890 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
24891 (rs6000_emit_epilogue): Likewise.
24892
24893 2015-05-20 Alan Modra <amodra@gmail.com>
24894
24895 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
24896 when not saving registers.
24897 (debug_stack_info): Adjust to omit printing unused offsets,
24898 as before.
24899 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
24900 expression.
24901
24902 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24903
24904 PR c++/65835
24905 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
24906 value_type to const char *.
24907
24908 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
24909
24910 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
24911 to build a biarch toolchain again.
24912
24913 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
24914
24915 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
24916 or implicit declarations.
24917 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
24918 into it.
24919 (get_odr_type): Check type has linkage before adding bases.
24920 (register_odr_type): Check that type has linkage before adding it.
24921 (type_known_to_have_no_deriavations_p): Rename to ..
24922 (type_known_to_have_no_derivations_p): This one.
24923 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
24924 (type_known_to_have_no_derivations_p): This one.
24925 * ipa-polymorphic-call.c
24926 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
24927 type has linkage.
24928
24929 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
24930
24931 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
24932 (layout_type): Use RECORD_OR_UNION_TYPE_P.
24933
24934 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24935
24936 * config/s390/s390.c (s390_vector_bool_type_p): New function.
24937 (s390_invalid_binary_op): New function.
24938 (TARGET_INVALID_BINARY_OP): Define macro.
24939
24940 2015-05-19 David Sherwood <david.sherwood@arm.com>
24941
24942 * loop-invariant.c (create_new_invariant): Don't calculate address cost
24943 if mode is not a scalar integer.
24944 (get_inv_cost): Increase computational cost for unused invariants.
24945
24946 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24947
24948 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
24949 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
24950 * config/s390/s390-builtin-types.def: New file.
24951 * config/s390/s390-builtins.def: New file.
24952 * config/s390/s390-builtins.h: New file.
24953 * config/s390/s390-c.c: New file.
24954 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
24955 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
24956 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
24957 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
24958 prototypes.
24959 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
24960 Include.
24961 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
24962 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
24963 variable definitions.
24964 (s390_const_operand_ok): New function.
24965 (s390_expand_builtin): Rewrite.
24966 (s390_init_builtins): New function.
24967 (s390_handle_vectorbool_attribute): New function.
24968 (s390_attribute_table): Add s390_vector_bool attribute.
24969 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
24970 (s390_branch_condition_mask): Generate masks for new modes.
24971 (s390_expand_vec_compare_cc): New function.
24972 (s390_mangle_type): Add mangling for vector bool types.
24973 (enum s390_builtin): Remove.
24974 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
24975 efpc builtins.
24976 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
24977 s390_cpu_cpp_builtins.
24978 (REGISTER_TARGET_PRAGMAS): New macro.
24979 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
24980 (insn_cmp mode attribute): Add new CC modes.
24981 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
24982 (lcbb): New pattern definition.
24983 * config/s390/s390intrin.h: Include vecintrin.h.
24984 * config/s390/t-s390: New file.
24985 * config/s390/vecintrin.h: New file.
24986 * config/s390/vector.md: Include vx-builtins.md.
24987 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
24988 support.
24989
24990 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24991
24992 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
24993 CCVFHE.
24994 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
24995 (s390_select_ccmode): Likewise.
24996 (s390_canonicalize_comparison): Swap operands if necessary.
24997 (s390_expand_vec_compare_scalar): Expand DFmode compare using
24998 single element vector instructions.
24999 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
25000 (s390_branch_condition_mask): Generate CC masks for the new modes.
25001 * config/s390/s390.md (v0, vf, vd): New mode attributes.
25002 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
25003 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
25004 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
25005 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
25006 (*extend<DSF:mode><BFP:mode>2): New insn definition.
25007 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
25008 (extend<DSF:mode><BFP:mode>2): Turn into expander.
25009 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
25010 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
25011 (sqrt<mode>2): Add vector instruction.
25012
25013 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25014
25015 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
25016 constraints.
25017 * config/s390/predicates.md (const0_operand, constm1_operand)
25018 (constable_operand): Accept vector operands.
25019 * config/s390/s390-modes.def: Add supported vector modes.
25020 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
25021 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
25022 (s390_bytemask_vector_p, s390_expand_vec_strlen)
25023 (s390_expand_vec_compare, s390_expand_vcond)
25024 (s390_expand_vec_init): Add prototypes.
25025 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
25026 (s390_vector_mode_supported_p): New function.
25027 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
25028 (s390_contiguous_bitmask_vector_p): New function.
25029 (s390_bytemask_vector_p): New function.
25030 (s390_split_ok_p): Vector regs don't work either.
25031 (regclass_map): Add VEC_REGS.
25032 (s390_legitimate_constant_p): Handle vector constants.
25033 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
25034 (legitimate_reload_vector_constant_p): New function.
25035 (s390_preferred_reload_class): Handle CONST_VECTOR.
25036 (s390_reload_symref_address): Likewise.
25037 (s390_secondary_reload): Vector memory instructions only support
25038 short displacements. Rename reload*_nonoffmem* to reload*_la*.
25039 (s390_emit_ccraw_jump): New function.
25040 (s390_expand_vec_strlen): New function.
25041 (s390_expand_vec_compare): New function.
25042 (s390_expand_vcond): New function.
25043 (s390_expand_vec_init): New function.
25044 (s390_dwarf_frame_reg_mode): New function.
25045 (print_operand): Handle addresses with 'O' and 'R' constraints.
25046 (NR_C_MODES, constant_modes): Add vector modes.
25047 (s390_output_pool_entry): Handle vector constants.
25048 (s390_hard_regno_mode_ok): Handle vector registers.
25049 (s390_class_max_nregs): Likewise.
25050 (s390_cannot_change_mode_class): New function.
25051 (s390_invalid_arg_for_unprototyped_fn): New function.
25052 (s390_function_arg_vector): New function.
25053 (s390_function_arg_float): Remove size variable.
25054 (s390_pass_by_reference): Handle vector arguments.
25055 (s390_function_arg_advance): Likewise.
25056 (s390_function_arg): Likewise.
25057 (s390_return_in_memory): Vector values are returned in a VR if
25058 possible.
25059 (s390_function_and_libcall_value): Handle vector arguments.
25060 (s390_gimplify_va_arg): Likewise.
25061 (s390_call_saved_register_used): Consider the arguments named.
25062 (s390_conditional_register_usage): Disable v16-v31 for non-vec
25063 targets.
25064 (s390_preferred_simd_mode): New function.
25065 (s390_support_vector_misalignment): New function.
25066 (s390_vector_alignment): New function.
25067 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
25068 (TARGET_VECTOR_MODE_SUPPORTED_P)
25069 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
25070 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
25071 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
25072 (TARGET_VECTOR_ALIGNMENT): Define target macro.
25073 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
25074 (FIRST_PSEUDO_REGISTER): Increase value.
25075 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
25076 (VECTOR_REG_P): Define macros.
25077 (FIXED_REGISTERS, CALL_USED_REGISTERS)
25078 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
25079 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
25080 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
25081 Add vector registers.
25082 (CANNOT_CHANGE_MODE_CLASS): Call C function.
25083 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
25084 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
25085 memory.
25086 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
25087 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
25088 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
25089 (VR*_REGNUM): New constants.
25090 (ALL): New mode iterator.
25091 (INTALL): Remove mode iterator.
25092 Include vector.md.
25093 (movti): Implement TImode moves for VRs.
25094 Disable TImode splitter for VR targets.
25095 Implement splitting TImode GPR<->VR moves.
25096 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
25097 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
25098 reload<mode>_la_in, reload<mode>_la_out.
25099 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
25100 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
25101 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
25102 (mov<mode> SF SD): Prefer lder, lde for loading.
25103 Add lrl and strl instructions.
25104 Add vector instructions.
25105 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
25106 Call s390_expand_vec_strlen on z13.
25107 (*cc_to_int): Change predicate to nonimmediate_operand.
25108 (addti3): Rename to *addti3. New expander.
25109 (subti3): Rename to *subti3. New expander.
25110 * config/s390/vector.md: New file.
25111
25112 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25113
25114 * common/config/s390/s390-common.c (processor_flags_table): Add
25115 z13.
25116 * config.gcc: Add z13.
25117 * config/s390/s390-opts.h (enum processor_type): Add
25118 PROCESSOR_2964_Z13.
25119 * config/s390/s390.c (s390_adjust_priority): Check for
25120 PROCESSOR_2964_Z13.
25121 (s390_reorg): Likewise.
25122 (s390_sched_reorder): Likewise.
25123 (s390_sched_variable_issue): Likewise.
25124 (s390_loop_unroll_adjust): Likewise.
25125 (s390_option_override): Likewise. Default to -mvx when available.
25126 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
25127 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
25128 (TARGET_VX_ABI): Define macros.
25129 macros.
25130 (TARGET_DEFAULT): Add MASK_OPT_VX.
25131 * config/s390/s390.md ("cpu" attribute): Add z13.
25132 ("cpu_facility" attribute): Add vec.
25133 * config/s390/s390.opt (processor_type): Add z13.
25134 (mvx): New options.
25135 * doc/invoke.texi: Add z13 option for -march.
25136
25137 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25138
25139 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
25140 mode check to make sure that only scalar integer values are
25141 accepted.
25142
25143 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
25144
25145 * tree.c (verify_type_variant): Fix #undef.
25146 (gimple_canonical_types_compatible_p): Move here from lto.c
25147 (verify_type): Verify TYPE_CANONICAL compatibility.
25148 * tree.h (gimple_canonical_types_compatible_p): Declare.
25149
25150 2015-05-19 Jakub Jelinek <jakub@redhat.com>
25151
25152 PR middle-end/66199
25153 * tree.h (OMP_TEAMS_COMBINED): Define.
25154 * gimplify.c (enum gimplify_omp_var_data): Add
25155 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
25156 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
25157 (omp_notice_variable): Accept both ORT_TEAMS
25158 and ORT_COMBINED_TEAMS. Don't recurse if
25159 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
25160 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
25161 GOVD_FIRSTPRIVATE.
25162 (omp_no_lastprivate): New function.
25163 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
25164 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
25165 notice_outer and set appropriate bits, otherwise make
25166 sure default(none) combined constructs won't complain.
25167 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
25168 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
25169 omp_no_lastprivate either remove the clause or turn it
25170 into OMP_CLAUSE_PRIVATE.
25171 (gimplify_omp_for): Fix up handling of implicit
25172 lastprivate or linear iterators.
25173 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
25174 ORT_COMBINED_TEAMS.
25175 * omp-low.c (lower_omp_for_lastprivate): For combined
25176 for simd use fd.loop.n2 from the for rather than simd.
25177
25178 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25179
25180 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
25181 instead of gen_rtx_raw_REG.
25182 (cris_expand_epilogue): Likewise.
25183 * config/microblaze/microblaze.c (microblaze_classify_address):
25184 Likewise.
25185 * config/sparc/sparc.md: Likewise.
25186
25187 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
25188
25189 * config/alpha/alpha.c (alpha_legitimize_reload_address)
25190 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
25191 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
25192 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
25193 Use CASE_CONST_SCALAR_INT.
25194 (print_operand) <case 'M'>: Use mode_width_operand to check the
25195 value of the constant.
25196 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
25197 * config/alpha/predicates.md (input_operand): Use general_operand
25198 instead of match_code as operand check.
25199 (symbolic_operand): Use match_code with subexpression digits.
25200 * config/alpha/constraints.md (Q): Ditto.
25201
25202 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25203
25204 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
25205
25206 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25207
25208 * config/s390/s390.c (s390_secondary_reload): Fix check for
25209 load/store relative.
25210
25211 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25212
25213 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
25214 alternative_mask to uint64_t.
25215
25216 2015-05-19 Jakub Jelinek <jakub@redhat.com>
25217
25218 PR tree-optimization/66187
25219 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
25220 Pass TYPE_SIGN to tree_int_cst_min_precision. If
25221 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
25222
25223 2015-05-19 David Malcolm <dmalcolm@redhat.com>
25224
25225 * diagnostic.c (diagnostic_report_current_module): Strengthen
25226 local "new_map" from const line_map * to
25227 const line_map_ordinary *.
25228 * genmatch.c (error_cb): Likewise for local "map".
25229 (output_line_directive): Likewise for local "map".
25230 * input.c (expand_location_1): Likewise for local "map".
25231 Pass NULL rather than &map to
25232 linemap_unwind_to_first_non_reserved_loc, since the value is never
25233 read from there, and the value written back not read from here.
25234 (is_location_from_builtin_token): Strengthen local "map" from
25235 const line_map * to const line_map_ordinary *.
25236 (dump_location_info): Strengthen locals "map" from
25237 line_map *, one to const line_map_ordinary *, the other
25238 to const line_map_macro *.
25239 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
25240 const line_map * to const line_map_macro *.
25241 (maybe_unwind_expanded_macro_loc): Add a call to
25242 linemap_check_macro when writing to the "map" field of the
25243 loc_map_pair.
25244 Introduce local const line_map_ordinary * "ord_map", using it in
25245 place of "map" in the part of the function where we know we have
25246 an ordinary map. Strengthen local "m" from const line_map * to
25247 const line_map_ordinary *.
25248
25249 2015-05-19 Nick Clifton <nickc@redhat.com>
25250
25251 PR target/66156
25252 * config/msp430/msp430.md (zero_extendhisi2): Add support for
25253 separate source and destination registers.
25254
25255 2015-05-19 Richard Biener <rguenther@suse.de>
25256
25257 PR tree-optimization/66165
25258 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
25259 for no load permutation.
25260
25261 PR tree-optimization/66185
25262 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
25263 when building the SLP node from scalars.
25264
25265 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
25266 Tristan Gingold <gingold@adacore.com>
25267
25268 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
25269 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
25270 (expand_stack_restore): Call record_new_stack_level.
25271 (expand_stack_save): Do not call do_pending_stack_adjust.
25272 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
25273 * calls.c (expand_call): Call record_new_stack_level for alloca.
25274 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
25275 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
25276 (update_sjlj_context): New global function.
25277 * except.h (update_sjlj_context): Declare.
25278 * explow.c (record_new_stack_level): New global function.
25279 (allocate_dynamic_stack_space): Call record_new_stack_level.
25280 * explow.h (record_new_stack_level): Declare.
25281 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
25282 * cfgrtl.c (duplicate_insn_chain): Likewise.
25283
25284 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25285
25286 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
25287 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
25288 STACK_GROWS_DOWNWARD as normal if.
25289 (expand_call): Likewise.
25290
25291 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
25292
25293 PR target/54236
25294 * config/sh/sh.md (*round_int_even): New insn_and_split and
25295 accompanying new unnamed split.
25296
25297 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25298
25299 * bitmap.c (bitmap_set_range): Handle count==1 specially.
25300 (bitmap_clear_range): Likewise.
25301 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
25302 bitmap_set_range unconditionally.
25303 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
25304 * df-scan.c (df_mark_reg): Likewise.
25305 * haifa-sched.c (setup_ref_regs): Likewise.
25306 * sched-rgn.c (update_live_1): Likewise.
25307
25308 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25309
25310 * regs.h (END_HARD_REGNO): Delete.
25311 (END_REGNO): Move to...
25312 * rtl.h: ...here.
25313 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
25314 * caller-save.c (mark_set_regs): Likewise.
25315 * combine.c (move_deaths, distribute_notes): Likewise.
25316 * cse.c (invalidate, invalidate_for_call): Likewise.
25317 * df-scan.c (df_ref_record): Likewise.
25318 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
25319 (record_last_reg_set_info): Likewise.
25320 * reg-stack.c (convert_regs_exit): Likewise.
25321 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
25322 * resource.c (update_live_status): Likewise.
25323 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
25324
25325 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25326
25327 * rtl.h (reg_info): Add an nregs field.
25328 (REG_NREGS): Use it.
25329 (SET_REGNO_RAW): Delete.
25330 (set_regno_raw): New function.
25331 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
25332 (END_REGNO): Redefine in terms of REG_NREGS.
25333 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
25334 SET_REGNO_RAW.
25335 * emit-rtl.c (set_mode_and_regno): Likewise.
25336 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
25337 instead of SET_REGNO_RAW.
25338
25339 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25340
25341 * rtl.h (PUT_MODE_RAW): New macro.
25342 (PUT_REG_NOTE_KIND): Use it.
25343 (set_mode_and_regno): Declare.
25344 (gen_raw_REG): Change regno to "unsigned int".
25345 (gen_rtx_REG): Change "unsigned" to "unsigned int".
25346 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
25347 use set_mode_and_regno to change the mode of registers.
25348 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
25349 * emit-rtl.c (set_mode_and_regno): New function.
25350 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
25351 * caller-save.c (reg_save_code): Use set_mode_and_regno.
25352 * expr.c (init_expr_target): Likewise.
25353 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25354 * postreload.c (reload_cse_simplify_operands): Likewise.
25355
25356 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25357
25358 * caller-save.c (init_caller_save): Use word_mode and
25359 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
25360 * expr.c (init_expr_target): Likewise.
25361 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25362 * postreload.c (reload_cse_regs_1): Likewise.
25363
25364 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25365
25366 * rtl.def (REG): Change format to "r".
25367 * rtl.h (rtunion): Remove rt_reg.
25368 (reg_info): New structure.
25369 (rtx_def): Add reg field to main union.
25370 (X0REGATTR): Delete.
25371 (REG_CHECK): New macro.
25372 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
25373 * rtl.c (rtx_format): Document "r".
25374 (rtx_code_size): Handle REG specially.
25375 * gengenrtl.c (special_format): Return true for formats
25376 that include 'r'.
25377 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
25378 Deal with REG_ATTRS after the field loop.
25379 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
25380 * expmed.c (init_expmed): Call gen_raw_REG instead of
25381 gen_rtx_raw_REG.
25382 * expr.c (init_expr_target): Likewise.
25383 * regcprop.c (maybe_mode_change): Likewise.
25384 * varasm.c (make_decl_rtl): Likewise.
25385 * final.c (leaf_renumber_regs_insn): Return early after
25386 handling REGs.
25387 * genemit.c (gen_exp): Handle 'r' fields.
25388 * genpeep.c (match_rtx): Likewise.
25389 * gensupport.c (subst_pattern_match): Likewise.
25390 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
25391 (alter_constraints, subst_dup): Likewise.
25392 * read-rtl.c (read_rtx_code): Likewise.
25393 * print-rtl.c (print_rtx): Likewise.
25394 * genrecog.c (find_operand, find_matching_operand): Likewise.
25395 (validate_pattern, match_pattern_2): Likewise.
25396 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
25397 (rtx_test::regno_field): New function.
25398 (operator ==, safe_to_hoist_p, transition_parameter_type)
25399 (parameter_type_string, print_parameter_value)
25400 (print_nonbool_test, print_test): Handle new enum values.
25401 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
25402 * lra-constraints.c (operands_match_p): Likewise.
25403
25404 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25405
25406 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
25407 Change type of new_regno to unsigned int.
25408 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
25409 new_regno to unsigned int.
25410 (df_ref_change_reg_with_loc): Remove old_regno parameter.
25411 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
25412 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
25413 (SET_REGNO_RAW): Add space after ",".
25414
25415 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25416
25417 * rtl.h (REG_NREGS): New macro
25418 * alias.c (record_set): Use it.
25419 * cfgcleanup.c (mark_effect): Likewise.
25420 * combine.c (likely_spilled_retval_1): Likewise.
25421 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
25422 (move_deaths, distribute_notes): Likewise.
25423 * cselib.c (cselib_record_set): Likewise.
25424 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
25425 * df-scan.c (df_mark_reg): Likewise.
25426 * dse.c (look_for_hardregs): Likewise.
25427 * dwarf2out.c (reg_loc_descriptor): Likewise.
25428 (multiple_reg_loc_descriptor): Likewise.
25429 * expr.c (write_complex_part, read_complex_part): Likewise.
25430 (emit_move_complex): Likewise.
25431 * haifa-sched.c (setup_ref_regs): Likewise.
25432 * ira-lives.c (mark_hard_reg_live): Likewise.
25433 * lra.c (lra_set_insn_recog_data): Likewise.
25434 * mode-switching.c (create_pre_exit): Likewise.
25435 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
25436 (reload_combine_recognize_pattern): Likewise.
25437 (reload_combine_note_use, move2add_record_mode): Likewise.
25438 (reload_cse_move2add): Likewise.
25439 * reg-stack.c (subst_stack_regs_pat): Likewise.
25440 * regcprop.c (kill_value, copy_value): Likewise.
25441 (copyprop_hardreg_forward_1): Likewise.
25442 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
25443 (build_def_use): Likewise.
25444 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
25445 (deps_analyze_insn): Likewise.
25446 * sched-rgn.c (check_live_1, update_live_1): Likewise.
25447 * sel-sched.c (count_occurrences_equiv): Likewise.
25448 * valtrack.c (dead_debug_insert_temp): Likewise.
25449
25450 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25451
25452 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
25453 * dse.c (note_add_store): Likewise.
25454 * ira-lives.c (mark_hard_reg_dead): Likewise.
25455 * loop-invariant.c (mark_reg_store): Likewise.
25456 (mark_reg_death): Likewise.
25457 * postreload.c (reload_combine): Likewise.
25458 (reload_combine_note_store): Likewise.
25459 (reload_combine_note_use): Likewise.
25460 * recog.c (peep2_reg_dead_p): Likewise.
25461
25462 2015-05-19 Alan Modra <amodra@gmail.com>
25463
25464 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
25465 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
25466 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
25467 unused predicates.
25468 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
25469 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
25470 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
25471 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
25472
25473 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
25474
25475 * config/mips/mips.md (JOIN_MODE): New mode iterator.
25476 (join2_load_Store<JOIN_MODE:mode>): New pattern.
25477 (join2_loadhi): Likewise.
25478 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
25479 load-load and store-stores.
25480 * config/mips/mips.opt (mload-store-pairs): New option.
25481 (TARGET_LOAD_STORE_PAIRS): New macro.
25482 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
25483 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
25484 * config/mips/mips.c (mips_load_store_bonding_p): New function.
25485
25486 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
25487
25488 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
25489 explicit swaps.
25490 * dojump.c (do_compare_rtx_and_jump): Likewise.
25491 * expmed.c (emit_store_flag_1): Likewise.
25492 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
25493 * final.c (sprint_ul): Use std::reverse for reversing a string.
25494 * fold-const.c (extract_muldiv_1): Use std::swap.
25495 * genmodes.c (emit_mode_int_n): Likewise.
25496 * ifcvt.c (dead_or_predicable): Likewise.
25497 * ira-build.c (ira_merge_live_ranges): Likewise.
25498 (swap_allocno_copy_ends_if_necessary): Likewise.
25499 * ira.c (ira_setup_alts): Likewise.
25500 * loop-iv.c (iv_analyze_expr): Likewise.
25501 (implies_p): Likewise.
25502 (canon_condition): Likewise.
25503 * lra-constraints.c (swap_operands): Likewise.
25504 * lra-lives.c (lra_merge_live_ranges): Likewise.
25505 * omega.c (swap): Remove.
25506 (bswap): Remove.
25507 (omega_unprotect_1): Use std::swap.
25508 (omega_solve_geq): Likewise.
25509 * optabs.c (expand_binop_directly): Likewise.
25510 (expand_binop): Likewise.
25511 (emit_conditional_move): Likewise.
25512 (emit_conditional_add): Likewise.
25513 * postreload.c (reload_cse_simplify_operands): Likewise.
25514 * reg-stack.c (emit_swap_insn): Likewise.
25515 (swap_to_top): Likewise.
25516 (compare_for_stack_reg): Likewise.
25517 (subst_asm_stack_regs): Likewise.
25518 * reload.c (find_reloads): Likewise.
25519 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
25520 * sel-sched.c (invoke_reorder_hooks): Likewise.
25521 (create_block_for_bookkeeping): Likewise.
25522 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
25523 (lambda_matrix_right_hermite): Use std::swap.
25524 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
25525 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
25526 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
25527 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
25528 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
25529 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
25530 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
25531 * tree-vrp.c (compare_ranges): Likewise.
25532 * var-tracking.c (add_with_sets): Likewise.
25533 (vt_find_locations): Likewise.
25534
25535 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
25536
25537 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
25538 pie executables.
25539 (FBSD_ENDFILE_SPEC): Likewise.
25540 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
25541 config/freebsd-spec.h.
25542 (ENDFILE_SPEC): Likewise.
25543
25544 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
25545 Richard Henderson <rth@redhat.com>
25546
25547 PR target/57032
25548 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
25549 Check for a memory location that is not a reference (using an AND)
25550 to an unaligned location here.
25551 * config/alpha/predicates.md (normal_memory_operand): Remove.
25552
25553 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
25554
25555 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
25556 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
25557
25558 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
25559
25560 * config/mips/mips.c (micromips_globals): New variable.
25561 (mips_set_compression_mode): Save and reinitialize target-dependent
25562 state for microMIPS.
25563
25564 2015-05-18 Martin Liska <mliska@suse.cz>
25565
25566 * dbgcnt.def: Add new counter.
25567 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
25568
25569 2015-05-18 Martin Liska <mliska@suse.cz>
25570
25571 * dbgcnt.def: Sort counters.
25572 * opts.c (common_handle_option): Do not compile if
25573 -fdbg-cnt-list is enabled.
25574
25575 2015-05-18 Tom de Vries <tom@codesourcery.com>
25576
25577 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
25578 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
25579 address operator to va_list operand.
25580 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
25581 unconditionally.
25582 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
25583 operand.
25584 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
25585 * config/s390/s390.c (s390_gimplify_va_arg): Same.
25586 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
25587
25588 2015-05-18 Tom de Vries <tom@codesourcery.com>
25589
25590 * tree-ssa-tail-merge.c: Fix whitespace.
25591
25592 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
25593
25594 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
25595 cortex-a17, and cortex-a17.cortex-a7.
25596
25597 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
25598
25599 PR target/54236
25600 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
25601
25602 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
25603
25604 PR target/66174
25605 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
25606 QImode inner modes for TARGET_AVX512BW. Force mask operand
25607 to a register for AVX512F modes.
25608
25609 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
25610
25611 * toplev.c (emit_debug_global_declarations): Do not output debug info
25612 when doing slim LTO objects.
25613
25614 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
25615
25616 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
25617 odr_types_equivalent_p): Declare.
25618 (odr_type_p): Use gcc_checking_assert.
25619 (type_in_anonymous_namespace_p) Declare.
25620 (type_with_linkage_p): Declare.
25621 * common.opt (Wlto-type-mismatch): New warning.
25622 * ipa-devirt.c (compound_type_base): New function.
25623 (odr_or_derived_type_p): New function.
25624 (odr_types_equivalent_p): New function.
25625 (add_type_duplicate): Simplify.
25626 (type_with_linkage_p): Add hack to prevent false positives on C types
25627 (type_in_anonymous_namespace_p): Likewise.
25628 * tree.c (need_assembler_name_p): Use type_with_linkage.
25629 * tree.h (type_in_anonymous_namespace_p): Remove.
25630 * doc/invoke.texi (-Wlto-type-mismatch): Document
25631
25632 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
25633
25634 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
25635 (verify_type): Verify STRING_FLAG.
25636
25637 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
25638
25639 PR fortran/44054
25640 * tree-pretty-print.c (percent_K_format): Replace locus pointer
25641 with accessor function.
25642 * tree-diagnostic.c (diagnostic_report_current_function): Use
25643 diagnostic_location function.
25644 (maybe_unwind_expanded_macro_loc): Likewise.
25645 (virt_loc_aware_diagnostic_finalizer): Likewise.
25646 (default_tree_printer): Replace locus pointer with accessor function.
25647 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
25648 (diagnostic_set_info_translated): Initialize second location.
25649 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
25650 (diagnostic_show_locus): Handle two locations. Call
25651 diagnostic_print_caret_line.
25652 (diagnostic_print_caret_line): New.
25653 (default_diagnostic_starter): Use diagnostic_location function.
25654 (diagnostic_report_diagnostic): Use diagnostic_location function.
25655 (verbatim): Do not set text.locus.
25656 * diagnostic.h (struct diagnostic_info): Remove location field.
25657 (struct diagnostic_context): Make caret_chars an array of two.
25658 (diagnostic_location): New inline.
25659 (diagnostic_expand_location): Handle two locations.
25660 (diagnostic_same_line): New inline.
25661 (diagnostic_print_caret_line): Declare.
25662 (CARET_LINE_MARGIN): New constant.
25663 * pretty-print.c (pp_printf): Do not set text.locus.
25664 (pp_verbatim): Do not set text.locus.
25665 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
25666 (struct text_info): Replace locus pointer with locations
25667 array. Add accessor functions.
25668
25669 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
25670 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25671
25672 PR target/65768
25673 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
25674 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
25675 large constants in register instead of splitting them.
25676
25677 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
25678
25679 PR target/66140
25680 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
25681 replacements in memory addresses.
25682 (get_unaligned_address): Ditto.
25683
25684 2015-05-16 James Bowman <james.bowman@ftdichip.com>
25685
25686 * config/ft32/*: New files for FT32 port.
25687 * doc/install.texi: Add FT32 information.
25688 * doc/invoke.texi: Add FT32 information.
25689 * doc/md.texi: Add FT32 information.
25690 * doc/contrib.texi: Self added.
25691
25692 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
25693
25694 PR tree-optimization/64454
25695 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
25696 (-1 - A -> ~A): Remove unnecessary condition.
25697
25698 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
25699
25700 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
25701 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
25702 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
25703
25704 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
25705
25706 * ipa-chkp.h (chkp_wrap_function): New.
25707 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
25708 (chkp_wrap_function_name): New.
25709 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
25710 to get wrapper name.
25711 * lto-cgraph.c: Include ipa-chkp.h.
25712 (input_cgraph_1): Avoid alias chain for wrappers.
25713
25714 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
25715
25716 PR middle-end/66134
25717 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
25718 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
25719
25720 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25721
25722 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
25723 (AARCH64_FL_SLOWMUL): Delete.
25724 (AARCH64_FL_CRC): Redefine to 1<<3.
25725 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
25726
25727 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25728
25729 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
25730 casting.
25731
25732 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
25733
25734 * config/alpha/alpha.md (extendqidi2): Use general_operand
25735 instead of some_operand for operand[1] predicate.
25736 (extendhidi2): Ditto.
25737 (cbranchdi4): Use general_operand instead of some_operand
25738 for operand[1] and operands[2] predicates.
25739 (cstoredi4): Ditto.
25740 * config/alpha/predicates.md (some_operand): Remove unused predicate.
25741 (some_ni_operand): Ditto.
25742
25743 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
25744
25745 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
25746 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
25747 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
25748 low part of the constant using alpha_emit_set_const_1.
25749 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
25750
25751 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
25752
25753 * varasm.c (output_constant_pool_1): Pass down alignment from
25754 constant pool entry's descriptor to output_constant_pool_2.
25755 (output_object_block): Add comment prior to call to
25756 output_constant_pool_1.
25757
25758 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
25759
25760 PR rtl-optimization/65862
25761 * target.def (ira_change_pseudo_allocno_class): New hook.
25762 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
25763 value of the hook.
25764 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
25765 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
25766 hook.
25767 * ira-costs.c (find_costs_and_classes): Call the hook and change
25768 classes when it is necessary.
25769 * doc/tm.texi: Update.
25770
25771 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
25772
25773 * config/i386/i386.md (sibcall_memory): Check that register with
25774 callee address is not also used as one of the arguments, instead
25775 of checking that it is not live after the sibcall.
25776 (sibcall_pop_memory): Ditto.
25777 (sibcall_value_memory): Ditto.
25778 (sibcall_value_pop_memory): Ditto.
25779
25780 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
25781
25782 * generic-match-head.c (types_match): Handle non-types.
25783 * gimple-match-head.c (types_match): Likewise.
25784 * match.pd: Remove unnecessary TREE_TYPE for types_match.
25785
25786 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
25787
25788 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
25789 (csneg3<mode>_insn): Enable expansion of pattern.
25790
25791 2015-05-14 Nick Clifton <nickc@redhat.com>
25792
25793 * config/rl78/rl78.c (rl78_select_section): Select the correct
25794 default section based upon the category of the decl.
25795
25796 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
25797
25798 PR rtl-optimization/30967
25799 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
25800 destination mode for the cost of scc patterns.
25801
25802 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
25803
25804 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
25805 using SWIM248 mode iterator.
25806 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
25807 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
25808 for operand[2] constraint.
25809 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
25810
25811 2015-05-13 Jakub Jelinek <jakub@redhat.com>
25812
25813 PR middle-end/66133
25814 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
25815 make sure it is never noreturn, even when the task body does not
25816 return.
25817 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
25818 right before GIMPLE_OMP_RETURN.
25819 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
25820 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
25821 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
25822
25823 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25824
25825 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
25826 * tree-ssa-math-opts.c: Include params.h
25827 (pow_synth_sqrt_info): New struct.
25828 (representable_as_half_series_p): New function.
25829 (get_fn_chain): Likewise.
25830 (print_nested_fn): Likewise.
25831 (dump_fractional_sqrt_sequence): Likewise.
25832 (dump_integer_part): Likewise.
25833 (expand_pow_as_sqrts): Likewise.
25834 (gimple_expand_builtin_pow): Use above to attempt to expand
25835 pow as series of square roots. Removed now unused variables.
25836
25837 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
25838
25839 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
25840 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
25841 Remove *p0 and *p1 arguments. Rewrite function.
25842 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
25843 (alpha_split_const_mov): Update calls to alpha_extract_integer and
25844 alpha_emit_set_long_const.
25845 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
25846 (alpha_output_mi_thunk_osf): Ditto.
25847 * config/alpha/alpha.md (movti): Do not check operands[1]
25848 for CONST_DOUBLE.
25849
25850 2015-05-13 Richard Biener <rguenther@suse.de>
25851
25852 PR tree-optimization/66129
25853 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
25854 commutative.
25855 (vect_schedule_slp_instance): Fix typo.
25856
25857 2015-05-13 David Malcolm <dmalcolm@redhat.com>
25858
25859 * common.opt (fdump-internal-locations): New option.
25860 * input.c: Include diagnostic-core.h.
25861 (get_end_location): New function.
25862 (write_digit): New function.
25863 (write_digit_row): New function.
25864 (dump_location_range): New function.
25865 (dump_labelled_location_range): New function.
25866 (dump_location_info): New function.
25867 * input.h (dump_location_info): New prototype.
25868 * toplev.c (compile_file): Handle flag_dump_locations.
25869
25870 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
25871
25872 * gimple-expr.h (is_gimple_constant): Reorder.
25873 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
25874
25875 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
25876
25877 * combine.c (simplify_set): When generating a CC set, if the
25878 source already is in the correct mode, do not wrap it in a
25879 compare. Simplify the rest of that code.
25880
25881 2015-05-13 Richard Biener <rguenther@suse.de>
25882
25883 PR tree-optimization/66123
25884 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
25885 a taken edge.
25886
25887 2015-05-13 Richard Biener <rguenther@suse.de>
25888
25889 PR middle-end/66110
25890 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
25891 specially.
25892 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
25893
25894 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25895
25896 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
25897 * aclocal.m4: Regenerated with automake-1.11.6.
25898
25899 2015-05-13 Tom de Vries <tom@codesourcery.com>
25900
25901 PR tree-optimization/66010
25902 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
25903 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
25904 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
25905 and rval based on do_deref.
25906
25907 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
25908
25909 PR target/65103
25910 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
25911 link time constants into adress expressions and therefore set
25912 their cost to 0.
25913
25914 2015-05-13 Jakub Jelinek <jakub@redhat.com>
25915
25916 PR target/66112
25917 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
25918 Use SWI248 iterator instead of SWI.
25919 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
25920 Use eq_attr "alternative" "0" instead of match_test in
25921 length_immediate attribute computation.
25922 (*mulvhi4, *mulvhi4_1): New define_insns.
25923
25924 PR target/66112
25925 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
25926 SIGNED to get precision of non-negative value.
25927
25928 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
25929
25930 PR target/66048
25931 * function.c (diddle_return_value_1): Process bounds first.
25932 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
25933 register.
25934
25935 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
25936
25937 PR rtl-optimization/64616
25938 * loop-invariant.c (can_move_invariant_reg): New.
25939 (move_invariant_reg): Call above new function to decide whether
25940 instruction can just be moved, skipping creation of temporary
25941 register.
25942
25943 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
25944
25945 PR target/pr66047.c
25946 * i386.c (ix86_function_sseregparm): Only return -1 if local function
25947 with implied regparm is called from -mno-sse function.
25948 (init_cumulative_args): Output error if ix86_function_sseregparm
25949 return -1 and SSE register would be needed.
25950 (function_arg_advance_32): Likewise.
25951 (function_arg_32): Likewise.
25952 * i386.h (ix86_args): Add decl field.
25953
25954 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
25955
25956 PR ipa/65873
25957 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
25958 inlines across optimization boundary.
25959
25960 2015-05-12 Jason Merrill <jason@redhat.com>
25961
25962 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
25963 string literal and macro name.
25964
25965 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
25966
25967 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
25968 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
25969 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
25970
25971 2015-05-12 David Malcolm <dmalcolm@redhat.com>
25972
25973 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
25974 (-Wmisleading-indentation): New option.
25975 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
25976
25977 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
25978
25979 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
25980 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
25981 (alpha_extract_integer): Ditto.
25982 (alpha_legitimate_constant_p): Ditto.
25983 (alpha_split_tmode_pair): Ditto.
25984 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
25985 (alpha_expand_mov): Ditto.
25986 (print_operand): Remove handling of 'H' modifier.
25987 <case 'm'>: Remove CONST_DOUBLE handling.
25988 (summarize_insn): Handle CONST_WIDE_INT.
25989 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
25990 (anddi3): Ditto.
25991 (movti): Handle CONST_WIDE_INT.
25992 * config/alpha/constraints.md ('H'): Remove constraint definition.
25993 ('G'): Do not match MODE_FLOAT class.
25994 * config/alpha/predicates.md (const0_operand): Also match
25995 const_wide_int.
25996 (non_add_const_operand): Ditto.
25997 (non_zero_const_operand): Ditto.
25998 (some_operand): Ditto.
25999 (input_operand): Ditto. Handle CONST_WIDE_INT.
26000 (and_operand): Do not match const_double.
26001 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
26002
26003 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
26004
26005 PR target/65697
26006 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
26007 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
26008 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
26009 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
26010 is_mm_seq_cst, is_mm_sync): New accessor functions.
26011 * builtins.c (expand_builtin_sync_operation,
26012 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
26013 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
26014 (get_memmodel, expand_builtin_atomic_compare_exchange,
26015 expand_builtin_atomic_load, expand_builtin_atomic_store,
26016 expand_builtin_atomic_clear): Use new accessor routines.
26017 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
26018 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
26019 (maybe_emit_sync_lock_test_and_set): Use new accessors and
26020 MEMMODEL_SYNC_ACQUIRE.
26021 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
26022 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
26023 expand_atomic_store): Use new accessors.
26024 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
26025 * tsan.c (instrument_builtin_call): Update check for memory model beyond
26026 final enum to use MEMMODEL_LAST.
26027 * c-family/c-common.c: Use new accessor for memmodel_base.
26028 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
26029 accessors.
26030 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
26031 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
26032 mem_thread_fence, *dmb): Likewise.
26033 * config/alpha/alpha.c (alpha_split_compare_and_swap,
26034 alpha_split_compare_and_swap_12): Likewise.
26035 * config/arm/arm.c (arm_expand_compare_and_swap,
26036 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
26037 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
26038 atomic_loaddi): Likewise.
26039 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
26040 Likewise.
26041 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
26042 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
26043 use new accessors.
26044 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
26045 atomic_store<mode>, atomic_compare_and_swap<mode>,
26046 atomic_exchange<mode>): Use new accessors.
26047 * config/mips/mips.c (mips_process_sync_loop): Likewise.
26048 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
26049 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
26050 rs6000_post_atomic_barrier): Add new cases.
26051 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
26052 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
26053 (atomic_load<mode>): Add new cases and use new accessors.
26054 (store_quadpti): Add new cases.
26055 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
26056 accessors.
26057 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
26058 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
26059 model, not 8.
26060
26061 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26062
26063 * ipa-devirt.c (type_with_linkage_p): New function.
26064 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
26065 type has linkage.
26066 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
26067 (can_be_name_hashed_p): Simplify.
26068 (hash_odr_name): Check that type has linkage before checking if it is
26069 anonymous.
26070 (types_same_for_odr): Likewise.
26071 (odr_name_hasher::equal): Likewise.
26072 (odr_subtypes_equivalent_p): Likewise.
26073 (warn_types_mismatch): Likewise.
26074 (get_odr_type): Likewise.
26075 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
26076 * ipa-utils.h (odr_type_p): Move offline.
26077 * tree.c (need_assembler_name_p): Fix handling of types
26078 without linkages.
26079 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
26080
26081 2015-05-12 David Malcolm <dmalcolm@redhat.com>
26082
26083 * timevar.c (timevar_enable): Delete in favor of...
26084 (g_timer): New global.
26085 (struct timevar_def): Move to timevar.h inside class timer.
26086 (struct timevar_stack_def): Likewise.
26087 (timevars): Delete global in favor of field "m_timevars" within
26088 class timer in timevar.h
26089 (stack): Likewise, in favor of field "m_stack".
26090 (unused_stack_instances): Likewise, in favor of field
26091 "m_unused_stack_instances".
26092 (start_time): Likewise, in favor of field "m_start_time".
26093 (get_time): Eliminate check for timevar_enable.
26094 (timer::timer): New function, built from part of timevar_init.
26095 (timevar_init): Rewrite idempotency test from using
26096 "timevar_enable" bool to using dynamic allocation of "g_timer".
26097 Move rest of implementation into timer's constructor.
26098 (timevar_push_1): Rename to...
26099 (timer::push): ...this, adding "m_" prefixes to variables that
26100 are now fields of timer.
26101 (timevar_pop_1): Likewise, rename to...
26102 (timer::pop): ...this, and add "m_" prefixes.
26103 (timevar_start): Replace test for "timevar_enable" with one for
26104 "g_timer", and move bulk of implementation to...
26105 (timer::start): ...here, adding "m_" prefixes.
26106 (timevar_stop): Likewise, from here...
26107 (timer::stop): ...to here.
26108 (timevar_cond_start): Likewise, from here...
26109 (timer::cond_start): ...to here.
26110 (timevar_cond_stop): Likewise, from here...
26111 (timer::cond_stop): ...to here.
26112 (validate_phases): Rename to...
26113 (timer::validate_phases): ...this, and add "m_" prefixes. Make
26114 locals "total" and "tv" const.
26115 (timevar_print): Rename to...
26116 (timer::print): ...this, and add "m_" prefixes. Make locals
26117 "total" and "tv" const. Eliminate test for timevar_enable.
26118 * timevar.h (timevar_enable): Eliminate.
26119 (g_timer): New declaration.
26120 (timevar_push_1): Eliminate.
26121 (timevar_pop_1): Eliminate.
26122 (timevar_print): Eliminate.
26123 (class timer): New class.
26124 (timevar_push): Rewrite to use g_timer.
26125 (timevar_pop): Likewise.
26126 * toplev.c (toplev::~toplev): Likewise.
26127
26128 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
26129
26130 * arm-protos.h (arm_sched_autopref): Delete.
26131 (tune_params): Re-organize, use enums for flag values.
26132 (FUSE_OPS): New macro.
26133 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
26134 (ARM_PREFETCH_BENEFICIAL): Likewise.
26135 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
26136 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
26137 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
26138 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
26139 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
26140 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
26141 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
26142 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
26143 format.
26144 (arm_option_override, thumb2_reorg, arm_print_tune_info)
26145 (aarch_macro_fusion_pair_p): Update uses of current_tune.
26146 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
26147
26148 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
26149
26150 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
26151 "break".
26152
26153 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
26154 Sandra Loosemore <sandra@codesourcery.com>
26155
26156 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
26157 value.
26158 (REG_CLASS_NAMES): Add "IJMP_REGS".
26159 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
26160 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
26161 use new "c" register constraint.
26162 * config/nios2/constraint.md (c): New register constraint
26163 corresponding to IJMP_REGS.
26164
26165 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26166
26167 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
26168 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
26169 define_splits): Delete, revamp, transmogrify into ...
26170 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
26171 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
26172 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
26173 New.
26174
26175 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26176
26177 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
26178 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
26179
26180 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26181
26182 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
26183 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
26184 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
26185 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
26186 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
26187 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
26188 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
26189 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
26190 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
26191 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
26192 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
26193 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
26194 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
26195 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
26196 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
26197 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
26198 and 30 corresponding splitters): Delete.
26199
26200 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26201
26202 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
26203 zero_extract.
26204
26205 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26206
26207 * combine.c (recog_for_combine_1): New function, factored out
26208 from recog_for_combine.
26209 (change_zero_ext): New function.
26210 (recog_for_combine): If recog fails, try again with the pattern
26211 modified by change_zero_ext; if that still fails, restore the
26212 pattern.
26213
26214 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26215
26216 * combine.c (get_undo_marker): New function.
26217 (undo_to_marker): New function, largely factored out from ...
26218 (undo_all): ... this. Adjust.
26219
26220 2015-05-12 Richard Biener <rguenther@suse.de>
26221
26222 PR tree-optimization/66101
26223 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
26224 fixup if we turn a loop exit edge to a fallthru edge.
26225
26226 2015-05-12 Richard Biener <rguenther@suse.de>
26227
26228 PR tree-optimization/37021
26229 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
26230 (SLP_TREE_TWO_OPERATORS): New define.
26231 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
26232 SLP_TREE_TWO_OPERATORS.
26233 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
26234 SLP node.
26235 (vect_build_slp_tree): Adjust.
26236 (vect_analyze_slp_cost_1): Likewise.
26237 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
26238 emitting two vector stmts and mixing the results.
26239
26240 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
26241
26242 * call.c (print_z_candidates): Remove dead code.
26243
26244 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26245
26246 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
26247 and zEC12_simple_fp.
26248 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
26249 to 1.
26250
26251 2015-05-12 Tom de Vries <tom@codesourcery.com>
26252
26253 PR tree-optimization/66010
26254 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
26255 ifn_va_arg.
26256 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
26257 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
26258 va_lists are passed, and remove corresponding handling.
26259 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
26260 do_deref argument to ifn_va_arg.
26261 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
26262 ifn_va_arg.
26263
26264 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26265
26266 PR target/65955
26267 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
26268 REG before taking its REGNO.
26269
26270 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26271
26272 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
26273 rsp->sign_bit_copies and rsp->nonzero_bits into ...
26274 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
26275 present to get more accurate information about the number of sign bit
26276 copies and non zero bits.
26277
26278 2015-05-12 Richard Biener <rguenther@suse.de>
26279
26280 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
26281 do not allow unrolling.
26282
26283 2015-05-11 Richard Henderson <rth@redhat.com>
26284
26285 * config/i386/i386-modes.def (CCP): New.
26286 * config/i386/i386.c (put_condition_code): Handle it.
26287 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
26288
26289 2015-05-11 Richard Henderson <rth@redhat.com>
26290
26291 * target.def (md_asm_clobbers): Replace with...
26292 (md_asm_adjust): this.
26293 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
26294 (TARGET_MD_ASM_ADJUST): New.
26295 * tm.texi: Rebuild.
26296 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
26297 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
26298 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
26299
26300 * cfgexpand.c (check_operand_nalternatives): Accept vector of
26301 constraints instead of lists of outputs and inputs.
26302 (expand_asm_stmt): Save and restore input_location around the
26303 body of the function. Move asm data into vectors instead of
26304 building tree lists. Generate cleanup sequences as needed,
26305 rather than waiting til the end. Use new md_asm_adjust hook.
26306
26307 * config/vxworks.c: Include vec.h before target.h.
26308 * gimple.c: Likewise.
26309 * incpath.c: Likewise.
26310 * mode-switching.c: Likewise.
26311
26312 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
26313 (cris_md_asm_adjust): this.
26314 (TARGET_MD_ASM_CLOBBERS): Remove.
26315 (TARGET_MD_ASM_ADJUST): New.
26316 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
26317 (ix86_md_asm_adjust): this.
26318 (TARGET_MD_ASM_CLOBBERS): Remove.
26319 (TARGET_MD_ASM_ADJUST): New.
26320 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
26321 (mn10300_md_asm_adjust): this.
26322 (TARGET_MD_ASM_CLOBBERS): Remove.
26323 (TARGET_MD_ASM_ADJUST): New.
26324 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
26325 (rs6000_md_asm_adjust): this.
26326 (TARGET_MD_ASM_CLOBBERS): Remove.
26327 (TARGET_MD_ASM_ADJUST): New.
26328 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
26329 (visium_md_asm_adjust): this.
26330 (TARGET_MD_ASM_CLOBBERS): Remove.
26331 (TARGET_MD_ASM_ADJUST): New.
26332
26333 2015-05-11 Richard Henderson <rth@redhat.com>
26334
26335 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
26336 if noutputs is zero.
26337 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
26338
26339 * cfgexpand.c (expand_asm_operands): Merge into...
26340 (expand_asm_stmt): ... here.
26341
26342 * cfgexpand.c (expand_asm_operands): Don't call
26343 resolve_asm_operand_names.
26344 * stmt.c (resolve_asm_operand_names): Clarify block comment.
26345
26346 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
26347
26348 * dwarf2out.c (gen_member_die): Sanity check that we access
26349 TYPE_MAIN_VARIANT for TYPE_METHODS.
26350 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
26351 checking TYPE_METHODS.
26352 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
26353 if non-null.
26354 (build_distinct_type_copy): Clear TYPE_METHODS.
26355 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
26356 (verify_type): Allow TYPE_METHODS to be error_mark_node.
26357 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
26358
26359 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
26360
26361 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
26362 (emit_pattern_before_setloc): Likewise.
26363
26364 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
26365
26366 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
26367 for define_peephole2s.
26368 (get_peephole2_pattern): New function.
26369 (main): Use it. Call validate_pattern.
26370
26371 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26372
26373 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
26374 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
26375 (Last callee saved reg is different for AVR_TINY architecture)
26376
26377 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
26378
26379 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
26380 when looking for memory references.
26381
26382 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
26383
26384 PR target/65753
26385 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
26386 via function pointers.
26387
26388 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
26389
26390 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
26391 indirect call by forcing address into a pseudo with -fno-plt.
26392 * common.opt (flag_plt): New option.
26393 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
26394 ([-fno-plt]): Document.
26395
26396 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
26397
26398 PR bootstrap/66105
26399 * config/rs6000/option-defaults.h: Add space between string literal
26400 and macro name.
26401
26402 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
26403
26404 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
26405 accross ARM targets.
26406
26407 2015-05-11 Christian Bruel <christian.bruel@st.com>
26408
26409 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
26410 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
26411
26412 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
26413
26414 PR rtl-optimization/66076
26415 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
26416 Don't grow the heap array if it is already big enough from a
26417 previous iteration.
26418
26419 2015-05-11 Christian Bruel <christian.bruel@st.com>
26420
26421 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
26422 (is_called_in_ARM_mode): Remove.
26423 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
26424 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
26425 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
26426 arm_declare_function_name.
26427
26428 2015-05-11 Christian Bruel <christian.bruel@st.com>
26429
26430 * config/arm/arm.c (arm_option_override): Reoganized and split into :
26431 (arm_option_params_internal); New function.
26432 (arm_option_check_internal): New function.
26433 (arm_option_override_internal): New function.
26434 (thumb_code, thumb1_code): Remove.
26435 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
26436 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
26437 (thumb_code, thumb1_code): Remove.
26438 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
26439
26440 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
26441
26442 * config/alpha/alpha.c (alpha_emit_set_const_1)
26443 (alpha_emit_set_long_const, alpha_extract_integer)
26444 (alpha_legitimate_constant_p, alpha_split_const_mov)
26445 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
26446 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26447 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
26448 HOST_WIDE_INT_1U.
26449 * config/alpha/predicates.md (mode_mask_operand): Do not match
26450 const_double RTX.
26451 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26452 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
26453 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
26454 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26455 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
26456
26457 2015-05-11 Jakub Jelinek <jakub@redhat.com>
26458
26459 PR target/65780
26460 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
26461 default_binds_local_p_2.
26462 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
26463 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
26464
26465 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26466
26467 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
26468
26469 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26470
26471 Patch by Richard Biener
26472 * coverage.c (coverage_obj_init): Delay building of type variant
26473 until the type is finished.
26474
26475 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26476
26477 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
26478 mismatch between C and C++ type; compoare correctly ARG_TYPES
26479 for non-prototypes and output correctly parameter index for METHOD_TYPE.
26480 (odr_types_equivalent_p): Fix wording of warning about attributes;
26481 it is OK to match prototype and non-prototype.
26482
26483 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26484
26485 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
26486 TYPE_ARG_TYPES list.
26487 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
26488 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
26489
26490 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26491
26492 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
26493 * tree.h (is_lang_specific): Constify.
26494
26495 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
26496
26497 PR tree-optimization/64454
26498 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
26499 Rewrite.
26500
26501 2015-05-08 Jason Merrill <jason@redhat.com>
26502
26503 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
26504 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
26505 config/darwin.h, config/darwin9.h, config/elfos.h,
26506 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
26507 config/microblaze/microblaze.h, config/mips/mips.h,
26508 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
26509 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
26510 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
26511 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
26512 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
26513 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
26514 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
26515 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
26516 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
26517 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
26518 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
26519 between string literal and macro name.
26520
26521 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26522
26523 * jump.c: Change argument types to rtx_insn *.
26524 * rtl.h: Adjust.
26525
26526 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26527
26528 * lra-constraints.c: Change argument type to rtx_insn *.
26529
26530 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26531
26532 * df-problems.c: Change argument type to rtx_insn *.
26533
26534 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26535
26536 * combine.c: Change argument type to rtx_insn *.
26537
26538 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26539
26540 * rtl.h: Adjust.
26541 * rtlanal.c: Change argument type to rtx_insn *.
26542
26543 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26544
26545 * sched-deps.c: Change argument types to rtx_insn *.
26546 * sched-int.h: Adjust.
26547
26548 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26549
26550 * dwarf2cfi.c: Change argument type to rtx_insn *.
26551
26552 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26553
26554 * ira.c (decrease_live_ranges_number): Changetype of local
26555 variable to rtx_insn *.
26556 * recog.c: Change argument types to rtx_insn *.
26557 * recog.h: Adjust.
26558
26559 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26560
26561 * reorg.c: Change argument types to rtx_insn *.
26562
26563 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26564
26565 * ira-color.c: Change argument types to rtx_insn *.
26566 * lra-eliminations.c: Likewise.
26567 * ira.h: Adjust.
26568
26569 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26570
26571 * gcse.c: Change argument types to rtx_insn *.
26572
26573 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26574
26575 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
26576
26577 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26578
26579 * emit-rtl.c (emit_debug_insn_before): Change argument type to
26580 rtx_insn *.
26581 * rtl.h: Adjust.
26582
26583 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26584
26585 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
26586 * rtl.h: Adjust.
26587
26588 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26589
26590 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
26591 * rtl.h: Adjust.
26592
26593 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26594
26595 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
26596 * rtl.h: Adjust.
26597
26598 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26599
26600 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
26601 * rtl.h: Adjust.
26602
26603 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26604
26605 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
26606 to rtx_insn *.
26607 * rtl.h: Adjust.
26608
26609 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26610
26611 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
26612 to rtx_insn *.
26613 * rtl.h: Likewise.
26614
26615 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26616
26617 * except.c (can_nonlocal_goto): Change type of argument to
26618 rtx_insn *.
26619 * rtl.h: Adjust.
26620
26621 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26622
26623 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
26624 * rtl.h: Adjust.
26625
26626 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26627
26628 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
26629 * cfgrtl.c (can_delete_label_p): Adjust.
26630 * rtl.h: likewise.
26631
26632 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26633
26634 * reorg.c (stop_search_p): Change argument to rtx_insn *.
26635
26636 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26637
26638 * except.c (make_reg_eh_region_note): Change argument to
26639 rtx_insn *.
26640 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
26641 * except.h: Adjust.
26642
26643 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26644
26645 * mode-switching.c (commit_mode_sets): Change type of local
26646 variable from rtx to rtx_insn *.
26647
26648 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
26649
26650 * doc/install.texi (--enable-languages): Add missing jit and lto info.
26651 Add ^ to grep command.
26652 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
26653 arg to last gimple_simplify declaration. Add missing gimple_build
26654 declaration for built-in function case with four tree args.
26655
26656 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
26657 Szabolcs Nagy <szabolcs.nagy@arm.com>
26658
26659 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
26660 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
26661 (GNU_USER_DYNAMIC_LINKERN32): Update.
26662
26663 2015-05-08 Richard Biener <rguenther@suse.de>
26664
26665 PR tree-optimization/66036
26666 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
26667 Handle strided group loads.
26668 (vect_verify_datarefs_alignment): Likewise.
26669 (vect_enhance_data_refs_alignment): Likewise.
26670 (vect_analyze_group_access): Likewise.
26671 (vect_analyze_data_ref_access): Likewise.
26672 (vect_analyze_data_ref_accesses): Likewise.
26673 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
26674 (vectorizable_load): Likewise.
26675
26676 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
26677
26678 * config/rs6000/rs6000.md: Require operand inequality in one
26679 of the peepholes.
26680
26681 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
26682 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26683
26684 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
26685 from (set ...).
26686 * config/rx/rx.md (movdi, movdf): Likewise.
26687 Likewise for define_peephole2s.
26688
26689 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
26690
26691 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
26692 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
26693 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
26694 vtst_u64): Rewrite using gcc vector extensions.
26695
26696 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
26697
26698 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
26699 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
26700
26701 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
26702
26703 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
26704
26705 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
26706
26707 * config/glibc-stdint.h (OPTION_MUSL): Define.
26708 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
26709 Change the definition based on OPTION_MUSL for 64 bit targets.
26710 * config/linux.h (OPTION_MUSL): Redefine.
26711 * config/alpha/linux.h (OPTION_MUSL): Redefine.
26712 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
26713 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
26714
26715 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
26716 Szabolcs Nagy <szabolcs.nagy@arm.com>
26717
26718 * config.gcc (LIBC_MUSL): New tm_defines macro.
26719 * config/linux.h (OPTION_MUSL): Define.
26720 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
26721 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
26722 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26723 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26724 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26725 * config/linux.opt (mmusl): New option.
26726 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
26727 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26728 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26729 * configure: Regenerate.
26730
26731 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
26732 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26733
26734 PR target/48904
26735 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
26736 * config/i386/knetbsd-gnu64.h: New file.
26737
26738 2015-05-08 Marek Polacek <polacek@redhat.com>
26739
26740 PR c/64918
26741 * doc/invoke.texi: Document -Woverride-init-side-effects.
26742
26743 2015-05-07 Marek Polacek <polacek@redhat.com>
26744
26745 PR c/65179
26746 * doc/invoke.texi: Document -Wshift-negative-value.
26747
26748 2015-05-06 Aditya Kumar <hiraditya@msn.com>
26749
26750 * gcov-tool.c (do_merge): Refactore to remove int ret.
26751 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
26752 !type == FUNC to type != FUNC.
26753 * reload.h (struct target_reload): Changee to type of
26754 x_spill_indirect_levels from bool to unsigned char.
26755
26756 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
26757
26758 * rtl.h (always_void_p): New function.
26759 * gengenrtl.c (always_void_p): Likewise.
26760 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
26761 with code foo are always VOIDmode.
26762 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
26763 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
26764 compare-elim.c, config/aarch64/aarch64.c,
26765 config/aarch64/aarch64.md, config/alpha/alpha.c,
26766 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
26767 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
26768 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
26769 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
26770 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
26771 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
26772 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
26773 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
26774 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
26775 config/ia64/vect.md, config/iq2000/iq2000.c,
26776 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
26777 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
26778 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
26779 config/mep/mep.c, config/microblaze/microblaze.c,
26780 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
26781 config/mn10300/mn10300.c, config/msp430/msp430.c,
26782 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
26783 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
26784 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
26785 config/rs6000/altivec.md, config/rs6000/rs6000.c,
26786 config/rs6000/rs6000.md, config/rs6000/vector.md,
26787 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
26788 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
26789 config/sh/sh.md, config/sh/sh_treg_combine.cc,
26790 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
26791 config/spu/spu.md, config/stormy16/stormy16.c,
26792 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
26793 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
26794 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
26795 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
26796 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
26797 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
26798 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
26799 var-tracking.c: Update calls accordingly.
26800
26801 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
26802
26803 PR middle-end/192
26804 PR middle-end/54303
26805 * varasm.c (function_mergeable_rodata_prefix): New function.
26806 (mergeable_string_section): Use it.
26807 (mergeable_constant_section): Use it.
26808
26809 2015-05-07 Jeff Law <law@redhat.com>
26810
26811 PR target/39726
26812 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26813 simplifier to narrow arithmetic.
26814 * generic-match-head.c: (types_match, single_use): New functions.
26815 * gimple-match-head.c: (types_match, single_use): New functions.
26816
26817 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26818
26819 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
26820 rtx type.
26821
26822 2015-05-07 Richard Biener <rguenther@suse.de>
26823
26824 PR tree-optimization/66002
26825 * passes.def: Schedule another pass_merge_phi after ifcombine, right
26826 before phiopt.
26827
26828 2015-05-07 Marek Polacek <polacek@redhat.com>
26829 Martin Uecker <uecker@eecs.berkeley.edu>
26830
26831 * doc/invoke.texi: Document -fsanitize=bounds-strict.
26832 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
26833 into SANITIZE_NONDEFAULT.
26834 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
26835
26836 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
26837
26838 PR target/66015
26839 * config/alpha/alpha.c (alpha_override_options_after_change): New.
26840 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
26841 (alpha_override_options): Move align_loops, align_jumps and
26842 align_functions handling into alpha_override_options_after_change.
26843
26844 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
26845 Chris Jones <chrisj@nvidia.com>
26846 Joshua Conner <jconner@nvidia.com>
26847
26848 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
26849 linking of crtfastmath.o.
26850 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
26851
26852 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26853
26854 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
26855 (cstore<mode>4_unsigned_imm): New expander.
26856 (cstore<mode>4): Remove empty constraint strings. Use the new
26857 expanders.
26858
26859 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
26860
26861 PR target/64208
26862 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
26863 alternatives.
26864
26865 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
26866
26867 * config/aarch64/geniterators.sh: Use standard BRE in sed.
26868
26869 2015-05-06 Alan Modra <amodra@gmail.com>
26870
26871 PR target/66033
26872 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
26873 (UNSPEC_NOP): Define.
26874 (reload_vsx_from_gpr<mode>): Add missing DONE.
26875 (reload_gpr_from_vsx<mode>): Likewise.
26876 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
26877 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
26878
26879 2015-05-06 Christian Bruel <christian.bruel@st.com>
26880
26881 PR target/66015
26882 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
26883 align_jumps, align_functions into aarch64_override_options_after_change.
26884
26885 2015-05-06 Richard Biener <rguenther@suse.de>
26886
26887 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
26888 vect_transform_slp_perm_load to check if we support a permutation
26889 for basic-block vectorization.
26890
26891 2015-05-06 Nick Clifton <nickc@redhat.com>
26892
26893 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
26894 used, even if it is not being used as a frame pointer.
26895
26896 2015-05-05 Jason Merrill <jason@redhat.com>
26897
26898 * dwarf2out.c (gen_member_die): Don't emit anything for an
26899 anonymous class constructor.
26900
26901 2015-05-05 David Malcolm <dmalcolm@redhat.com>
26902
26903 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
26904 that it reflects the block structure.
26905 (afdo_propagate_edge): Likewise.
26906 (afdo_calculate_branch_prob): Likewise.
26907 (afdo_annotate_cfg): Likewise.
26908 * cfgcleanup.c (equal_different_set_p): Likewise.
26909 (try_crossjump_to_edge): Likewise.
26910 * cgraph.c (cgraph_node::verify_node): Likewise.
26911 * cgraphunit.c (expand_all_functions): Likewise.
26912 * config/i386/i386.c (ix86_expand_copysign): Likewise.
26913 (exact_dependency_1): Likewise.
26914 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
26915 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
26916 * gensupport.c (process_define_subst): Likewise.
26917 * lto-wrapper.c (merge_and_complain): Likewise.
26918 * tree-if-conv.c (if_convertible_bb_p): Likewise.
26919 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
26920 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
26921 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
26922 * tree-vect-loop.c (vectorizable_reduction): Likewise.
26923 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
26924 * tree-vect-stmts.c (vectorizable_shift): Likewise.
26925 * tree-vrp.c (vrp_finalize): Likewise.
26926 * tree.c (variably_modified_type_p): Likewise.
26927
26928 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
26929
26930 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
26931 on darwin12 and later.
26932 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
26933 file to pass -rdynamic on darwin12 and later.
26934 * config/darwin.opt (rdynamic): Add.
26935
26936 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26937
26938 * doc/extend.texi (C Extensions): Update menu for moved Variable
26939 Attributes and Type Attributes sections.
26940
26941 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26942
26943 PR target/65990
26944 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
26945 if rep_8byte stringop strategy was specified for 32-bit target.
26946
26947 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
26948
26949 PR target/65915
26950 * config/i386/i386.md (vector convert to float spltiter): Check for
26951 xmm16+, when splitting scalar float conversion.
26952 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
26953
26954 2015-05-05 Nick Clifton <nickc@redhat.com>
26955
26956 * config/msp430/msp430-opts.h (enum msp430_regions): New.
26957 * config/msp430/msp430.c (msp430_override_options): Complain if
26958 -mcode-region or -mdata-region is used on a non MSP430X.
26959 (msp430_section_attr): New function. Checks lower, upper and
26960 either attributes.
26961 (msp430_attribute_table): Add lower, upper and either.
26962 (gen_prefix): New function. Generates a prefix for a section
26963 name.
26964 (msp430_select_section): New function - handles the choice of
26965 section for an object. Takes into account memory region
26966 attributes and options.
26967 (msp430_function_section): Use gen_prefix.
26968 (TARGET_SECTION_TYPE_FLAGS): Define.
26969 (msp430_section_type_flags): New function.
26970 (TARGET_ASM_UNIQUE_SECTION): Define.
26971 (msp430_unique_section): New function.
26972 (msp430_output_aligned_decl_common): New function.
26973 (msp430_do_not_relax_short_jumps): New function.
26974 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
26975 Define.
26976 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
26977 * config/msp430/msp430-protos.h
26978 (msp430_do_not_relax_short_jumps): New prototype.
26979 (msp430_output_aligned_decl_common): New prototype.
26980 * config/msp430/msp430.md (length): New attribute.
26981 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
26982 then use a long code sequence for short jumps.
26983 * config/msp430/msp430.opt (mcode-region): New.
26984 (mdata-region): New.
26985 * doc/invoke.texi: Document new options.
26986 * doc/extend.texi: Document new attributes.
26987
26988 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
26989
26990 * config/aarch64-protos.h (struct cpu_branch_cost): New.
26991 (tune_params): Add field branch_costs.
26992 (aarch64_branch_cost): Declare.
26993 * config/aarch64.c (generic_branch_cost): New.
26994 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
26995 (cortexa53_tunings): Likewise.
26996 (cortexa57_tunings): Likewise.
26997 (thunderx_tunings): Likewise.
26998 (xgene1_tunings): Likewise.
26999 (aarch64_branch_cost): Define.
27000 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
27001
27002 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27003
27004 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
27005 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
27006 * config/i386/i386.md: Ditto.
27007 * config/i386/winnt.c: Ditto.
27008
27009 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
27010
27011 * doc/extend.texi (__atomic Builtins): Move implementation details
27012 to the end of the description, rewrite opening paragraphs, state
27013 difference with __sync builtins, state C11/C++11 assumptions,
27014 weaken itemized descriptions, add explanation of memory model
27015 behaviour, expand description of compare-exchange, simplify text.
27016
27017 2015-05-05 Renlin Li <renlin.li@arm.com>
27018
27019 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
27020
27021 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
27022
27023 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
27024 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27025 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
27026 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27027 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
27028 * configure: Regenerate.
27029 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
27030 * doc/install.texi (aarch64*-*-*): Document new
27031 --enable-fix-cortex-a53-843419 option.
27032 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
27033 and -mno-fix-cortex-a53-843419 options.
27034
27035 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27036
27037 PR target/65871
27038 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
27039
27040 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
27041
27042 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
27043 fix overactive TYPE_MIN_VALUE check and add FIXME for type
27044 compatibility problems.
27045
27046 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
27047
27048 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
27049 constraints.
27050 (cbranchsi4_reg): New.
27051 * config/microblaze/microblaze.c
27052 (microblaze_expand_conditional_branch_reg): New.
27053 * config/microblaze/microblaze-protos.h
27054 (microblaze_expand_conditional_branch_reg): New prototype.
27055
27056 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
27057
27058 * config/microblaze/microblaze.md (peephole2): New.
27059
27060 2015-05-04 Jeff Law <law@redhat.com>
27061
27062 Revert:
27063 2015-05-04 Jeff Law <law@redhat.com>
27064
27065 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27066 simplifier to narrow arithmetic.
27067 * generic-match-head.c: (types_match, single_use): New functions.
27068 * gimple-match-head.c: (types_match, single_use): New functions.
27069
27070 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
27071
27072 PR target/65987
27073 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
27074 (split_branches): Likewise.
27075
27076 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
27077
27078 * common.opt (fdelete-null-pointer-checks): Init to -1.
27079 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
27080 override flag_delete_null_pointer_checks default.
27081 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
27082 behavior re address zero. Better document target-specific behavior.
27083 (-fisolate-errneous-paths-dereference): Mention relationship to
27084 -fdelete-null-pointer-checks.
27085
27086 2015-05-04 Jakub Jelinek <jakub@redhat.com>
27087
27088 PR tree-optimization/65984
27089 * ubsan.c: Include tree-cfg.h.
27090 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
27091 stmt_could_throw_p test, rename can_throw variable to ends_bb.
27092
27093 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
27094
27095 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
27096 to CONST_DOUBLE_P predicate.
27097 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
27098 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
27099 allow only operands that satisfy standard_sse_constant_p predicate.
27100 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
27101 to CONST_DOUBLE_P predicate.
27102
27103 2015-05-04 Jeff Law <law@redhat.com>
27104
27105 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27106 simplifier to narrow arithmetic.
27107 * generic-match-head.c: (types_match, single_use): New functions.
27108 * gimple-match-head.c: (types_match, single_use): New functions.
27109
27110 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
27111
27112 * config/arm/arm.c: Restore bootstrap.
27113
27114 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
27115
27116 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
27117 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
27118 as CONST_WIDE_INT, not CONST_DOUBLE.
27119 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
27120 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
27121 (ix86_find_base_term): Do not check for CONST_DOUBLE.
27122 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
27123 (ix86_build_signbit_mask): Rewrite using wide ints.
27124 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
27125 (ix86_rtx_costs): Handle CONST_WIDE_INT.
27126 (find_constant): Ditto.
27127 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
27128 using gen_int_mode.
27129 * config/i386/predicates.md (x86_64_immediate_operand)
27130 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27131 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
27132 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27133 (const0_operand): Also match const_wide_int.
27134 (constm1_operand): Ditto.
27135 (const1_operand): Ditto.
27136
27137 2015-05-04 Richard Biener <rguenther@suse.de>
27138
27139 PR tree-optimization/65965
27140 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
27141 store groups at gaps.
27142
27143 2015-05-04 Richard Biener <rguenther@suse.de>
27144
27145 PR tree-optimization/65935
27146 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
27147 then make sure to apply that swapping to the IL.
27148
27149 2015-05-04 Jakub Jelinek <jakub@redhat.com>
27150
27151 * Makefile.in (PATCHLEVEL_c): New variable.
27152 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
27153 expand the same way as if DEVPHASE_c was non-empty.
27154
27155 2015-05-04 Kai Tietz <ktietz@redhat.com>
27156
27157 PR target/65559
27158 * lto-wrapper.c (run_gcc): Open filename
27159 in binary-mode.
27160
27161 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
27162
27163 * doc/extend.texi (Variable Attributes, Type Attributes): Move
27164 sections up in file, to immediately after the Function Attributes
27165 section.
27166
27167 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
27168
27169 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
27170
27171 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27172
27173 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
27174 (insert_partition_copy_on_edge): Adjust.
27175 (insert_rtx_to_part_on_edge): Likewise.
27176 (insert_part_to_rtx_on_edge): Likewise.
27177
27178 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27179
27180 * function.c (set_return_jump_label): Change type of argument to
27181 rtx_insn *.
27182 * function.h (set_return_jump_label): Adjust.
27183
27184 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27185
27186 * reload.h (struct reg_equivs_t): Change type of init to
27187 rtx_insn *.
27188 * ira.c (fix_reg_equiv_init): Adjust.
27189 * reload1.c (eliminate_regs_1): Likewise.
27190 (init_eliminable_invariants): Likewise.
27191
27192 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27193
27194 * cselib.c (fp_setter_insn): Take a rtx_insn *.
27195 * cselib.h (fp_setter_insn): Adjust.
27196
27197 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27198
27199 * recog.c (struct validate_replace_src_data): Change type of
27200 insn field to rtx_insn *.
27201 (validate_replace_src_group): Change type of argument to rtx_insn *.
27202 * recog.h (validate_replace_src_group): Adjust.
27203
27204 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27205
27206 * haifa-sched.c: Change the type of some variables to rtx_insn *.
27207 * sched-deps.c: Likewise.
27208 * sched-int.h: Likewise.
27209 * sched-rgn.c: Likewise.
27210 * sel-sched.c: Likewise.
27211
27212 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27213
27214 to rtx_insn *.
27215 * config/i386/i386.c: Change the type of some arguments to
27216 rtx_insn *.
27217 * config/arm/arm.c: Likewise.
27218
27219 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27220
27221 * lra-constraints.c: Change type of some arguments to rtx_insn *.
27222
27223 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27224
27225 * regcprop.c (kill_autoinc_value): Change type of argument to
27226 rtx_insn *.
27227
27228 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27229
27230 * genrecog.c (print_subroutine): Adjust.
27231 * recog.c (get_bool_attr_mask_uncached): Likewise.
27232 * recog.h (struct recog_data_d): Change the type of insn to
27233 rtx_insn *.
27234
27235 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27236
27237 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
27238
27239 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27240
27241 * df-problems.c (df_set_note): Change type of argument to
27242 rtx_insn *.
27243
27244 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27245
27246 * builtins.c (expand_builtin_trap): Change type of local
27247 variable to rtx_insn *.
27248 (add_sched_insns_for_speculation): Likewise.
27249 (ix86_emit_save_regs): Likewise.
27250 (get_scratch_register_on_entry): Likewise.
27251 (ix86_emit_restore_reg_using_pop): Likewise.
27252 (ix86_emit_leave): Likewise.
27253 (ix86_emit_restore_regs_using_mov): Likewise.
27254 (ix86_expand_epilogue): Likewise.
27255 Likewise.
27256 (rl78_alloc_physical_registers_umul): Likewise.
27257 * cselib.c (discard_useless_locs): Likewise.
27258 (cselib_invalidate_regno): Likewise.
27259 (cselib_invalidate_mem): Likewise.
27260 * function.c (expand_function_start): Likewise.
27261 (emit_use_return_register_into_block): Likewise.
27262 * gcse.c: Likewise.
27263 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
27264 * ifcvt.c (noce_get_alt_condition): Likewise.
27265 * loop-doloop.c (doloop_condition_get): Likewise.
27266 * lra-constraints.c (inherit_in_ebb): Likewise.
27267 * modulo-sched.c (sms_schedule_by_order): Likewise.
27268 * recog.c (next_insn_tests_no_inequality): Likewise.
27269 * reorg.c (emit_delay_sequence): Likewise.
27270 (update_reg_dead_notes): Likewise.
27271 (fix_reg_dead_note): Likewise.
27272 (fill_slots_from_thread): Likewise.
27273 (delete_computation): Likewise.
27274
27275 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
27276
27277 * doc/extend.texi (Variable Attributes): Add menu and proper
27278 @nodes to subsections. Move Microsoft Windows attributes to
27279 their own subsection.
27280 (Type Attributes): Reorganize introduction to remove duplicate
27281 list of attributes. Add menu and proper @nodes to subsections.
27282 Alphabetize the main table of common attributes.
27283
27284 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
27285
27286 * match.pd: New simplification patterns.
27287 (x + (x & 1)) -> ((x + 1) & ~1)
27288 (x & ~(x & y)) -> ((x & ~y))
27289 (x | ~(x | y)) -> ((x | ~y))
27290
27291 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27292
27293 * target.def (attribute_table): Mention that struct attribute_spec
27294 is defined in tree-core.h rather than tree.h
27295 * doc/tm.texi: Regenerate.
27296
27297 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
27298
27299 * genrecog.c (test): Rename to rtx_test. Update rest of file
27300 accordingly.
27301
27302 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
27303
27304 PR translation/65959
27305 * params.h (DEFPARAM): Rename msgid to nocmsgid.
27306
27307 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
27308
27309 * config/aarch64/aarch64-protos.h (tune_params):
27310 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
27311 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
27312 Return value depending on target.
27313 (generic_tunings): Initialize new target settings.
27314 (cortexa53_tunings): Likewise.
27315 (cortexa57_tunings): Likewise.
27316 (thunderx_tunings): Likewise.
27317 (xgene1_tunings): Likewise.
27318
27319 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
27320
27321 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
27322 Make Cortex-A53 shift costs more accurate.
27323
27324 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27325
27326 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
27327 UNSIGNED_FLOAT.
27328
27329 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
27330
27331 * config/aarch64/aarch64.c (aarch64_rtx_costs):
27332 Calculate cost of op0 and op1 in PLUS and MINUS cases.
27333
27334 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27335
27336 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
27337 Add cost of op0 in the compare-with-fpzero case.
27338
27339 2015-04-30 David Malcolm <dmalcolm@redhat.com>
27340
27341 * builtins.c (fold_builtin_1): Remove spurious second
27342 semicolon.
27343 * cgraph.h (symtab_node::get_availability): Likewise.
27344 * opts.c (common_handle_option): Remove spurious second semicolon.
27345 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
27346 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
27347
27348 2015-04-30 Caroline Tice <cmtice@google.com>
27349
27350 PR gcov-profile/65929
27351 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
27352 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
27353 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
27354 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
27355 * doc/tm.texi: Regenerate.
27356 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
27357 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
27358 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
27359 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
27360
27361 2015-04-30 Marek Polacek <polacek@redhat.com>
27362
27363 * varasm.c (handle_cache_entry): Fix logic.
27364
27365 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27366
27367 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
27368 (*extrsi5_insn_uxtw_alt): Likewise.
27369 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
27370 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
27371 operations.
27372
27373 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27374
27375 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
27376 fabd in ABS case.
27377
27378 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27379
27380 * config/aarch64/aarch64.md
27381 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
27382 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
27383 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
27384 appropriately. Handle alternative EON form.
27385
27386 2015-04-30 Renlin Li <renlin.li@arm.com>
27387
27388 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
27389 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
27390
27391 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
27392
27393 PR ipa/65873
27394 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
27395 -fstrict-aliasing boundaries.
27396
27397 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27398
27399 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
27400 and [SU]MNEGL patterns.
27401
27402 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27403
27404 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
27405 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
27406 combined arithmetic-shift ops. Properly handle all shift and extend
27407 operations that can occur in combination with PLUS/MINUS.
27408 Rename maybe_fma to compound_p.
27409 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
27410 arithmetic and shift operations.
27411
27412 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27413
27414 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
27415 rather than arith_shift cost when costing ADD/MINUS of an
27416 extended value.
27417
27418 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
27419
27420 PR lto/65948
27421 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
27422 to itself.
27423
27424 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
27425
27426 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
27427 are for the same position.
27428
27429 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
27430
27431 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
27432 vectorize_loops.
27433 (vectorize_loops): Use it.
27434
27435 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
27436
27437 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
27438 for aggregate types.
27439 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
27440 type to be non_ODR.
27441 * tree.c (need_assembler_name_p): Compute mangled name for
27442 non-fundamental types and integer types.
27443
27444 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
27445
27446 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
27447 manual swaps.
27448 * expr.c (expand_expr_real_2): Likewise.
27449
27450 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
27451
27452 * tree.c (build_common_builtin_nodes): Do not build
27453 __builtin_alloca_with_align as equivalent of library alloca.
27454
27455 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
27456
27457 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
27458 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
27459 bugus variants.
27460 * tree.c: Include print-tree.h and ipa-utils.h
27461 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
27462 (free_lang_data_in_cgraph): Call verify_type.
27463 (verify_type_variant): New function.
27464 (verify_type): New function.
27465 * tree.h (verify_type): Declare.
27466
27467 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
27468
27469 * config/mips/mips-cpus.def: (mips4): Change default processor
27470 from PROCESSOR_R8000 to PROCESSOR_R10000.
27471
27472 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
27473
27474 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
27475 la/jalr instead of jal.
27476
27477 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
27478
27479 PR target/65871
27480 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
27481 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
27482 (setcc+movzbl peephole2): Check also clobbered reg.
27483 (setcc+andl peephole2): Ditto.
27484
27485 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
27486
27487 PR libgomp/65099
27488 * config/nvptx/mkoffload.c (target_ilp32): New variable.
27489 (main): Set it depending on "-foffload-abi=[...]".
27490 (compile_native, main): Use it to pass "-m32" or "-m64" to the
27491 compiler.
27492
27493 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
27494
27495 PR target/65770
27496 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
27497 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
27498 Flip lane index back at assembly time for bigendian.
27499
27500 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
27501
27502 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
27503 * gimplify.c (gimplify_omp_workshare): Use it.
27504
27505 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
27506
27507 * Makefile.in (build/genrecog.o): Depend on inchash.h.
27508 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
27509 build/inchash.o
27510 * genrecog.c: Rewrite most of the code except for the third page.
27511
27512 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
27513
27514 * inchash.h, inchash.c: Include bconfig.h for build objects.
27515 * Makefile.in (build/inchash.o): New rule.
27516
27517 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
27518
27519 PR target/65924
27520 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
27521 number in type attribute expression.
27522
27523 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
27524
27525 * loop-iv.c (canon_condition): Generalize to all types of integer
27526 constant.
27527
27528 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
27529
27530 * gimple-walk.c: Prune duplicate or unneeded includes.
27531 (walk_gimple_asm): Only call parse_input_constraint or
27532 parse_output_constraint if their findings are used.
27533 Honour parse_input_constraint and parse_output_constraint
27534 result.
27535
27536 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
27537
27538 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
27539
27540 2015-04-29 Tom de Vries <tom@codesourcery.com>
27541
27542 PR tree-optimization/65893
27543 * passes.def (pass_all_optimizations): Move pass_stdarg to after
27544 pass_dce.
27545
27546 2015-04-29 Richard Biener <rguenther@suse.de>
27547
27548 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27549 compute GROUP_SIZE for basic-block SLP.
27550 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
27551 take into account gaps.
27552 (vect_get_mask_element): Properly reject references to previous
27553 vectors.
27554 (vect_transform_slp_perm_load): Likewise.
27555
27556 2015-04-29 Christian Bruel <christian.bruel@st.com>
27557
27558 PR target/64835
27559 * config/i386/i386.c (ix86_default_align): New function.
27560 (ix86_override_options_after_change): Call ix86_default_align.
27561 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
27562 (ix86_override_options_after_change): New function.
27563
27564 2015-04-28 Jeff Law <law@redhat.com>
27565
27566 * tree-ssa-dom.c (record_equality); Fix comment typos.
27567
27568 2015-04-28 Tom de Vries <tom@codesourcery.com>
27569
27570 PR tree-optimization/65887
27571 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
27572
27573 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
27574
27575 * doc/extend.texi (Declaring Attributes of Functions): Split into
27576 subsections by target. Alphabetize the table of common attributes.
27577 Rewrite some of the introductory text to reflect the new structure.
27578 Update some cross-references to point to the new subsections.
27579 (Attribute Syntax): Put paragraph about "__" naming here. Remove
27580 duplicate copies in the discussion of function, label, and type
27581 attributes.
27582
27583 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
27584
27585 PR bootstrap/65910
27586 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
27587
27588 2015-04-28 Jason Merrill <jason@redhat.com>
27589
27590 PR c++/65734
27591 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
27592 (finalize_type_size): Respect TYPE_USER_ALIGN.
27593 (layout_type) [ARRAY_TYPE]: Likewise.
27594
27595 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
27596
27597 * config/arm/arm.md (*arm_movt): Fix type attribute.
27598 (*cmpsi_shiftsi): Likewise.
27599 (*cmpsi_shiftsi_swp): Likewise.
27600 (*movsicc_insn): Likewise.
27601 (*cond_move): Likewise.
27602 (*if_plus_move): Likewise.
27603 (*if_move_plus): Likewise.
27604 (*if_arith_move): Likewise.
27605 (*if_move_arith): Likewise.
27606 (*if_shift_move): Likewise.
27607 (*if_move_shift): Likewise.
27608 (*arm_movtas_ze): Likewise.
27609 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
27610 redundancy and type attribute.
27611 (*thumb2_movsi_insn): Fix type attribute.
27612 (*thumb2_addsi_short): Likewise.
27613 (thumb2_addsi3_compare0): Likewise.
27614 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
27615 attributes accordingly.
27616
27617 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
27618
27619 PR other/65911
27620 * function.c (pad_to_arg_alignment): Add parentheses.
27621
27622 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
27623
27624 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
27625 libgcc/config/frv/elf-lib.h.
27626
27627 2015-04-28 Tom de Vries <tom@codesourcery.com>
27628
27629 * tree-call-cdce.c: Fix example in header comment.
27630
27631 2015-04-28 Richard Biener <rguenther@suse.de>
27632
27633 PR tree-optimization/62283
27634 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
27635 fails fatally and we are vectorizing a basic-block simply
27636 cause the child to be constructed piecewise.
27637 (vect_analyze_slp_cost_1): Adjust.
27638 (vect_detect_hybrid_slp_stmts): Likewise.
27639 (vect_bb_slp_scalar_cost): Likewise.
27640 (vect_get_constant_vectors): For piecewise constructed
27641 constants place them after the last def.
27642 (vect_get_slp_defs): Adjust.
27643 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
27644 externals for basic-block vectorization.
27645
27646 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
27647
27648 PR target/63503
27649 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
27650 aarch64-*-*.
27651 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
27652 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
27653 (AARCH64_TUNE_FMA_STEERING): Likewise.
27654 * config/aarch64/aarch64-cores.def: Set
27655 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
27656 FMUL/FMADD instructions.
27657 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
27658 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
27659 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
27660 * config/aarch64/cortex-a57-fma-steering.h: New file.
27661 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27662
27663 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
27664
27665 * gensupport.c (std_preds): Add missing codes to address_operand entry.
27666
27667 2015-04-28 Richard Biener <rguenther@suse.de>
27668
27669 PR tree-optimization/65851
27670 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
27671 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
27672 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
27673 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
27674 (ccp_visit_phi_node): Adjust.
27675 (evaluate_stmt): For simplifications to SSA names return its
27676 lattice value if that isn't VARYING. Return immediately when
27677 simplified to a constant.
27678 (visit_assignment): Adjust.
27679 (ccp_visit_stmt): Likewise.
27680
27681 2015-04-28 Tom de Vries <tom@codesourcery.com>
27682
27683 PR tree-optimization/65818
27684 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
27685 evaluated.
27686
27687 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27688
27689 * calls.c (save_fixed_argument_area): Don't check
27690 ARGS_GROW_DOWNWARD with the preprocessor.
27691 (restore_fixed_argument_area): Likewise.
27692 (mem_overlaps_already_clobbered_arg_p): Likewise.
27693 (check_sibcall_argument_overlap): Likewise.
27694 (expand_call): Likewise.
27695 (emit_library_call_value_1): Likewise.
27696 (store_one_arg): Likewise.
27697 * function.c (assign_parms): Likewise.
27698 (locate_and_pad_parm): Likewise.
27699 (pad_to_arg_alignment): Likewise.
27700 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
27701
27702 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27703
27704 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
27705 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
27706 * calls.c (save_fixed_argument_area): Don't chekc if
27707 ARGS_GROW_DOWNWARD is defined.
27708 (restore_fixed_argument_area): Likewise.
27709 (mem_overlaps_already_clobbered_arg_p): Likewise.
27710 (check_sibcall_argument_overlap): Likewise.
27711 (expand_call): Likewise.
27712 (emit_library_call_value_1): Likewise.
27713 (store_one_arg): Likewise.
27714 * function.c (assign_parms): Likewise.
27715 (locate_and_pad_parm): Likewise.
27716 (pad_to_arg_alignment): Likewise.
27717 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
27718
27719 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27720
27721 * defaults.h (gen_epilogue): New function.
27722 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
27723 defined.
27724 * cfgrtl.c (cfg_layout_finalize): Likewise.
27725 * df-scan.c: Likewise.
27726 * function.c (thread_prologue_and_epilogue_insns): Likewise.
27727 (reposition_prologue_and_epilogue_notes): Likewise.
27728 * reorg.c (find_end_label): Likewise.
27729 * toplev.c: Likewise.
27730
27731 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27732
27733 * bb-reorder.c (HAVE_return): Don't check if its undefined.
27734 * defaults.h (gen_simple_return): New function.
27735 (gen_simple_return): Likewise.
27736 (HAVE_return): Add default definition to false.
27737 (HAVE_simple_return): Likewise.
27738 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
27739 HAVE_return and HAVE_simple_return are defined.
27740 * function.c (gen_return_pattern): Likewise.
27741 (convert_jumps_to_returns): Likewise.
27742 (thread_prologue_and_epilogue_insns): Likewise.
27743 * reorg.c (find_end_label): Likewise.
27744 (dbr_schedule): Likewise.
27745 * shrink-wrap.c: Likewise.
27746 * shrink-wrap.h: Likewise.
27747
27748 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27749
27750 * defaults.h (EPILOGUE_USES): Add default definition of false.
27751 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
27752 * resource.c (init_resource_info): Likewise.
27753
27754 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27755
27756 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
27757 to false.
27758 * dwarf2out.c (field_byte_offset): REmove check if
27759 PCC_BITFIELD_TYPE_MATTERS is defined.
27760 * stor-layout.c (layout_decl): Likewise.
27761 (update_alignment_for_field): Likewise.
27762 (place_field): Likewise.
27763
27764 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27765
27766 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
27767 true.
27768 * regrename.c (check_new_reg_p): Remove check if
27769 HARD_REGNO_RENAME_OK is defined.
27770 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
27771
27772 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27773
27774 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
27775 * cse.c (fold_rtx): Likewise.
27776 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
27777 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
27778 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
27779 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
27780 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
27781 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
27782 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
27783 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
27784 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
27785 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
27786 * Likewise.
27787 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
27788 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
27789 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
27790 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
27791 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
27792 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
27793 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
27794 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
27795 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
27796 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
27797 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
27798 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
27799 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
27800 * doc/tm.texi: Regenerate.
27801 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
27802 either true or false.
27803
27804 2015-04-27 Jeff Law <law@redhat.com>
27805
27806 PR tree-optimization/65217
27807 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
27808 of them has a single use, make sure it is the LHS of the implied
27809 copy.
27810
27811 2015-04-28 Alan Modra <amodra@gmail.com>
27812
27813 PR target/65810
27814 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
27815 (offsettable_ok_by_alignment): Use minimum of decl and toc
27816 pointer alignment. Replace dead code with assertion.
27817 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
27818 case if size exceeds toc pointer alignment.
27819 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
27820 (rs6000_emit_move): Likewise.
27821 * configure.ac: Add linker toc pointer alignment check.
27822 * configure: Regenerate.
27823 * config.in: Regenerate.
27824
27825 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
27826
27827 * config.gcc: Add h8300-*-linux.
27828 * config/h8300/linux.h: New.
27829 * config/h8300/t-linux: New.
27830 * config/h8300/h8300.c (h8300_option_override): Normal mode
27831 is not supported for h8300-*-linux.
27832 (h8300_file_start): Target priority change.
27833 (get_shift_alg): Likewise.
27834 (h8300_shift_need_scratch_p): Likewise.
27835 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
27836 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
27837
27838 2015-04-27 Caroline Tice <cmtice@google.com>
27839
27840 * final.c (final_scan_insn): Output cold_function_name as function
27841 type.
27842 * varasm.c (cold_function_name): Make global.
27843 (assemble_start_function): Re-set cold_function_name.
27844 (assemble_end_function): Output cold partition size.
27845 * varasm.h (cold_function_name): Declare global.
27846
27847 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
27848
27849 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
27850 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
27851 constraint.
27852 (*movxi_internal_avx512f): Ditto.
27853 (define_split): Check for xmm16+, when splitting scalar float_extend.
27854 (*extendsfdf2_mixed): Use "v" constraint.
27855 (define_split): Check for xmm16+, when splitting scalar float_truncate.
27856 (*truncdfsf_fast_sse): Use "v" constraint.
27857 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
27858 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
27859 (define_peephole2): Check for xmm16+, when converting scalar
27860 float_truncate.
27861 (define_peephole2): Check for xmm16+, when converting scalar
27862 float_extend.
27863 (*fop_<mode>_comm_mixed): Use "v" constraint.
27864 (*fop_<mode>_comm_sse): Ditto.
27865 (*fop_<mode>_1_mixed): Ditto.
27866 (*sqrt<mode>2_sse): Ditto.
27867 (*ieee_s<ieee_maxmin><mode>3): Ditto.
27868
27869 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27870
27871 * combine.c (simplify_if_then_else): Use std::swap instead
27872 of manually swapping.
27873 (known_cond): Likewise.
27874 (simplify_comparison): Likewise.
27875
27876 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
27877
27878 PR target/64579
27879 * config/rs6000/htm.md: Remove all define_expands.
27880 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
27881 UNSPECV_HTM_TABORTWCI): Remove.
27882 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
27883 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
27884 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
27885 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
27886 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
27887 tabortwci_internal): Remove define_insns.
27888 (tabort<wd>c, tabort<wd>ci): New define_insns.
27889 (tabort): Use gpc_reg_operand.
27890 (tcheck): Remove operand.
27891 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
27892 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
27893 expected value.
27894 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
27895 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
27896 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
27897 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
27898 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
27899 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
27900 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
27901 (tcheck): Remove builtin argument.
27902 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
27903 not TARGET_64BIT.
27904 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
27905 tabortdc and tabortdci builtins when not in 64-bit mode.
27906 Modify code to handle the loss of the HTM define_expands.
27907 Emit code to copy the CR register to TARGET.
27908 (htm_init_builtins): Modify code to handle the loss of the HTM
27909 define_expands.
27910 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
27911 (RS6000_BTC_64BIT): Likewise.
27912 (RS6000_BTC_CR): New macro.
27913 * doc/extend.texi: Update documentation for htm builtins.
27914
27915 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27916
27917 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
27918 of manually swapping.
27919 (simplify_associative_operation): Likewise.
27920 (simplify_binary_operation): Likewise.
27921 (simplify_plus_minus): Likewise.
27922 (simplify_relational_operation): Likewise.
27923 (simplify_ternary_operation): Likewise.
27924
27925 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
27926
27927 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
27928 (xs_hi_nonmemory_operand): Remove error.
27929 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
27930 general_operand rather than xs_hi_general_operand.
27931
27932 2015-04-27 Richard Biener <rguenther@suse.de>
27933
27934 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
27935 (record_equivalences_from_stmt): Valueize rhs.
27936 (record_equality): Canonicalize x and y order via
27937 tree_swap_operands_p. Do not swap operands for same loop depth.
27938
27939 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
27940
27941 PR target/65296
27942 PR target/65895
27943 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
27944 Add hint how to use own spec file.
27945
27946 2015-04-27 Jakub Jelinek <jakub@redhat.com>
27947
27948 PR tree-optimization/65875
27949 * tree-vrp.c (update_value_range): If in is_new case setting
27950 old_vr to VR_VARYING, also set new_vr to it. Remove
27951 old_vr->type == VR_VARYING test.
27952 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
27953 SSA_PROP_INTERESTING if update_value_range returned true,
27954 but new range is VR_VARYING.
27955
27956 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
27957
27958 * combine.c (sign_extend_short_imm): New.
27959 (set_nonzero_bits_and_sign_copies): Use above new function for sign
27960 extension of src short immediate.
27961 (reg_nonzero_bits_for_combine): Likewise for tem.
27962
27963 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
27964
27965 * stor-layout.c (self_referential_component_ref_p): New predicate.
27966 (copy_self_referential_tree_r): Use it.
27967 (self_referential_size): Punt for simple operations directly involving
27968 self-referential component references.
27969 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
27970
27971 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
27972
27973 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
27974
27975 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
27976
27977 * vec.h (vec): Make splice arguments const. Update definitions
27978 accordingly.
27979
27980 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
27981
27982 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
27983 alternatives.
27984
27985 2015-04-26 Tom de Vries <tom@codesourcery.com>
27986
27987 PR tree-optimization/65826
27988 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
27989
27990 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
27991
27992 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
27993 (*madd3<mode>): Ditto.
27994 (*msub4<mode>): Ditto.
27995 (*msub3<mode>): Ditto.
27996 (*nmadd4<mode>): Ditto.
27997 (*nmadd3<mode>): Ditto.
27998 (*nmadd4<mode>_fastmath): Ditto.
27999 (*nmadd3<mode>_fastmath): Ditto.
28000 (*nmsub4<mode>): Ditto.
28001 (*nmsub3<mode>): Ditto.
28002 (*nmsub4<mode>_fastmath): Ditto.
28003 (*nmsub3<mode>_fastmath): Ditto.
28004
28005 2015-04-24 Jason Merrill <jason@redhat.com>
28006
28007 PR c++/50800
28008 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
28009 down when building TYPE_CANONICAL.
28010 (build_pointer_type_for_mode): Likewise.
28011
28012 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
28013
28014 * genrecog.c (validate_pattern): Check matching constraint refers
28015 to a lower numbered operand.
28016
28017 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28018
28019 PR target/65849
28020 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
28021 save to independent variables use the Save attribute. This will
28022 allow these options to be modified with the #pragma/attribute
28023 target support.
28024 (-mallow-movmisalign): Likewise.
28025 (-mallow-df-permute): Likewise.
28026 (-msched-groups): Likewise.
28027 (-malways-hint): Likewise.
28028 (-malign-branch-targets): Likewise.
28029 (-mvectorize-builtins): Likewise.
28030 (-msave-toc-indirect): Likewise.
28031
28032 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
28033 can be set via the #pragma/attribute target support.
28034 (rs6000_opt_vars): Likewise.
28035 (rs6000_inner_target_options): If VSX was set, also set
28036 -mno-avoid-indexed-addresses.
28037
28038 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28039
28040 * config/arm/iterators.md (shiftable_ops): Rename to...
28041 (SHIFTABLE_OPS): ... This. Update use in comments.
28042 (ior_xor): Rename to...
28043 (IOR_XOR): ... This.
28044 (vqh_ops): Rename to...
28045 (VQH_OPS): ... This.
28046 (vqhs_ops): Rename to...
28047 (VQHS_OPS): ... This.
28048 (rshifts): Rename to...
28049 (RSHIFTS): ... This.
28050 (returns): Rename to...
28051 (RETURNS): ... This.
28052 * config/arm/arm.md: Update uses of the above.
28053 * config/arm/neon.md: Likewise.
28054
28055 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28056
28057 * config.host (case ${host}): Add aarch64*-*-linux case.
28058 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
28059 fields to all the cores.
28060 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
28061 Add MCPU_MTUNE_NATIVE_SPECS.
28062 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
28063 field to all extensions.
28064 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
28065 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
28066 Adjust definition of AARCH64_OPT_EXTENSION.
28067 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
28068 (MCPU_MTUNE_NATIVE_SPECS): Define.
28069 * config/aarch64/driver-aarch64.c: New file.
28070 * config/aarch64/x-arch64: New file.
28071 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
28072 -mtune and -march.
28073
28074 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28075 Wei Mi <wmi@google.com>
28076
28077 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
28078 * config/i386/i386.c (extract_base_offset_in_addr): New function.
28079 (ix86_operands_ok_for_move_multiple): Ditto.
28080 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
28081 (movlpd/movhpd to movupd peephole2): Ditto.
28082
28083 2015-04-24 Marek Polacek <polacek@redhat.com>
28084
28085 PR c/61534
28086 * input.h (from_macro_expansion_at): Define.
28087
28088 PR c/63357
28089 * doc/invoke.texi: Update description of -Wlogical-op.
28090
28091 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
28092
28093 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
28094 ternary operator in fprintf and harmonize spacing.
28095
28096 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28097
28098 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
28099 Mark operand1 commutative.
28100
28101 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28102
28103 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
28104 input operands in memory.
28105 (*vec_concatv2si_sse4_1): Ditto.
28106 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
28107 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
28108 register_operand.
28109 (vec_extract_hi_v32hi): Ditto.
28110 (vec_extract_hi_v64hi): Ditto.
28111 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
28112
28113 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
28114 Steven Bosscher <steven@gcc.gnu.org>
28115
28116 PR rtl-optimization/34503
28117 * cprop.c (cprop_reg_p): New.
28118 (hash_scan_set): Use above function to check if register can be
28119 propagated.
28120 (find_avail_set): Return up to two sets, one whose source is a
28121 register and one whose source is a constant. Sets are returned in an
28122 array passed as parameter rather than as a return value.
28123 (cprop_insn): Use a do while loop rather than a goto. Try each of the
28124 sets returned by find_avail_set, starting with the one whose source is
28125 a constant. Use cprop_reg_p to check if register can be propagated.
28126 (do_local_cprop): Use cprop_reg_p to check if register can be
28127 propagated.
28128 (implicit_set_cond_p): Likewise.
28129
28130 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28131
28132 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
28133 (sem_function::equals): IGNORED_NODES parameter is now unused;
28134 update call of equals_private.
28135 (sem_function::equals_private): Do not call equals_wpa; skip
28136 gimple body matching if there is no body.
28137 (sem_function::init): Add logic to hash tthunk info.
28138 (sem_function::parse): Also parse thunks.
28139 * ipa-icf.h (equals_private): Update declaration.
28140
28141 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28142
28143 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
28144 asterisk from name so this can be generated directly.
28145 (*altivec_stvx_<mode>_internal): Likewise.
28146 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
28147 that this is never called during or after reload/lra.
28148 (rs6000_frame_related): Remove split_reg
28149 argument and logic that references it.
28150 (emit_frame_save): Remove last parameter from call to
28151 rs6000_frame_related.
28152 (rs6000_emit_prologue): Remove last parameter from eight calls to
28153 rs6000_frame_related. Force generation of stvx instruction for
28154 Altivec register saves. Remove split_reg handling, which is no
28155 longer needed.
28156 (rs6000_emit_epilogue): Force generation of lvx instruction for
28157 Altivec register restores.
28158
28159 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28160
28161 * config/rs6000/rs6000.opt (mcrypto): Change option description to
28162 match category changes in ISA 2.07B.
28163
28164 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28165
28166 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
28167 iterators.
28168 (cmp_op, cmp_type): New code attributes.
28169 (NEON_VCMP, NEON_VACMP): New int iterators.
28170 (cmp_op_unsp): New int attribute.
28171 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
28172 (neon_vceq<mode>): Delete.
28173 (neon_vc<cmp_op><mode>_insn): New pattern.
28174 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
28175 (neon_vcgeu<mode>): Delete.
28176 (neon_vcle<mode>): Likewise.
28177 (neon_vclt<mode>: Likewise.
28178 (neon_vcage<mode>): Likewise.
28179 (neon_vcagt<mode>): Likewise.
28180 (neon_vca<cmp_op><mode>): New define_expand.
28181 (neon_vca<cmp_op><mode>_insn): New pattern.
28182 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
28183
28184 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28185
28186 * tree.h (attribute_value_equal): Declare.
28187 * tree.c (attribute_value_equal): Export.
28188
28189 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28190
28191 * ipa-icf.c (sem_item::compare_attributes): New function.
28192 (sem_item::compare_referenced_symbol_properties): Compare variable
28193 attributes.
28194 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
28195 (sem_function::param_used_p): New function.
28196 (sem_function::equals_wpa): Fix attribute comparsion; match
28197 parameter type codes; do not compare paremter flags when
28198 they are not used; compare edge flags; compare indirect calls.
28199 (sem_item::update_hash_by_addr_refs): Hash reference type.
28200 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
28201 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
28202 reference use type.
28203 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
28204 * ipa-icf.h (compare_attributes, param_used_p): Declare.
28205
28206 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28207
28208 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
28209 cleanup.
28210 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
28211 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
28212 (sem_item::compare_referenced_symbol_properties): New.
28213 (sem_item::hash_referenced_symbol_properties): New.
28214 (sem_item::compare_cgraph_references): Rename to ...
28215 (sem_item::compare_symbol_references): ... this one; use
28216 compare_referenced_symbol_properties.
28217 (sem_function::equals_wpa): Do not compare
28218 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
28219 DECL_IS_OPERATOR_NEW; compare pointer sizes.
28220 (sem_item::update_hash_by_addr_refs): Call
28221 hash_referenced_symbol_properties.
28222 (sem_item::update_hash_by_local_refs): Cleanup.
28223 (sem_function::merge): Do not mix up symbol properties.
28224 (sem_variable::equals_wpa): Use compare_symbol_references.
28225 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
28226 (sem_item::hash_referenced_symbol_properties): New.
28227 (sem_item::compare_symbol_references): New.
28228 (sem_item::compare_cgraph_references): Remove.
28229
28230 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
28231
28232 PR target/26702
28233 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
28234 Emit size of local.
28235
28236 2015-04-23 Nick Clifton <nickc@redhat.com>
28237
28238 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
28239 ATTRIBUTE_UNUSED to x parameter.
28240 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
28241
28242 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28243
28244 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
28245 TARGET_CRYPTO to TARGET_P8_VECTOR>
28246 (crypto_vpermxor_<mode>): Likewise.
28247 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
28248 (BU_CRYPTO_3A): Likewise.
28249 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
28250 (BU_CRYPTO_OVERLOAD_3A): New #define.
28251 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
28252 (VPMSUMH): Likewise.
28253 (VPMSUMW): Likewise.
28254 (VPMSUMD): Likewise.
28255 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
28256 (VPERMXOR_V4SI): Likewise.
28257 (VPERMXOR_V8HI): Likewise.
28258 (VPERMXOR_V16QI): Likewise.
28259 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
28260 BU_CRYPTO_OVERLOAD_2A.
28261 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
28262 BU_CRYPTO_OVERLOAD_3A.
28263 * config/rs6000/rs6000.opt (mcrypto): Change description of
28264 option.
28265
28266 2015-04-23 Richard Biener <rguenther@suse.de>
28267
28268 * passes.def: Remove copy propagation passes run directly after CCP.
28269 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
28270 SSA names.
28271 (ccp_visit_phi_node): Rework to handle first executable edge
28272 specially.
28273
28274 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
28275
28276 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
28277 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
28278 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
28279 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
28280 (thumb_legimitimize_reload_address): Remove.
28281 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
28282 Remove.
28283 (thumb_legimitimize_reload_address): Remove.
28284
28285 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28286
28287 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
28288
28289 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28290
28291 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
28292 MAX_LDM_STM_OPS.
28293 (store_multiple): Likewise.
28294
28295 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28296
28297 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
28298 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
28299 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
28300 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
28301 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
28302 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
28303 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
28304 Specify issue_rate value.
28305 (arm_issue_rate): Look up issue rate from tuning structs. Remove
28306 large switch statement.
28307 (arm_marvell_pj4_tune): New struct.
28308 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
28309 struct.
28310
28311 2015-04-23 Richard Biener <rguenther@suse.de>
28312
28313 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
28314 (vect_find_last_store_in_slp_instance): Rename to ...
28315 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
28316 (vect_analyze_slp_cost_1): Use vector_load for constant defs
28317 and vec_construct for external defs when estimating prologue cost.
28318 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
28319 Compute costs here only when vectorizing loops.
28320 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
28321 have been determined.
28322 (vect_schedule_slp_instance): Simplify vectorized code placement
28323 and prepare for in-BB external defs.
28324 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
28325 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
28326 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
28327 guard.
28328 (vect_model_load_cost): Likewise.
28329 (vectorizable_store): Instead add it here.
28330 (vectorizable_load): Likewise.
28331 (vect_is_simple_use): Dump def type textually.
28332
28333 2015-04-23 Richard Biener <rguenther@suse.de>
28334
28335 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
28336 * cfgloop.c (verify_loop_structure): Verify the root loop node.
28337 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
28338 instead of get_eh_region_from_lp_number.
28339 * loop-init.c (fix_loop_structure): If we removed a loop, reset
28340 the SCEV cache.
28341
28342 2015-04-23 Anton Blanchard <anton@samba.org>
28343
28344 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
28345 need for -mprofile-kernel to save LR to stack.
28346
28347 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28348
28349 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
28350 adjustments.
28351 (insn_is_swappable_p): Return 1 for a convert from double to
28352 single precision when all of its uses are splats of BE element
28353 zero.
28354
28355 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
28356
28357 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
28358
28359 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28360
28361 PR target/65456
28362 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
28363 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
28364 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
28365 option.
28366 (rs6000_builtin_mask_for_load): Return 0 for targets with
28367 efficient unaligned VSX accesses so that the vectorizer will use
28368 direct unaligned loads.
28369 (rs6000_builtin_support_vector_misalignment): Always return true
28370 for targets with efficient unaligned VSX accesses.
28371 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
28372 stores on targets with efficient unaligned VSX accesses is almost
28373 always the same as the cost of an aligned load or store, so model
28374 it that way.
28375 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
28376 unaligned vectors if we have efficient unaligned VSX accesses.
28377 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
28378 undocumented option.
28379
28380 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28381
28382 Revert:
28383 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
28384
28385 * config.gcc (LIBC_MUSL): New tm_defines macro.
28386 * config/linux.h (OPTION_MUSL): Define.
28387 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28388 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28389 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28390
28391 * config/linux.opt (mmusl): New option.
28392 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28393 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28394
28395 * configure: Regenerate.
28396
28397 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
28398
28399 * config.gcc (LIBC_MUSL): New tm_defines macro.
28400 * config/linux.h (OPTION_MUSL): Define.
28401 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28402 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28403 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28404
28405 * config/linux.opt (mmusl): New option.
28406 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28407 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28408
28409 * configure: Regenerate.
28410
28411 2015-04-22 Yury Gribov <y.gribov@samsung.com>
28412
28413 * doc/invoke.texi (-fsanitize-sections): Update description.
28414 * asan.c (set_sanitized_sections): Parse incoming arg.
28415 (section_sanitized_p): Support wildcards.
28416
28417 2015-04-22 Tom de Vries <tom@codesourcery.com>
28418
28419 PR tree-optimization/65823
28420 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
28421 equality between ap_copy and ap.
28422
28423 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28424
28425 PR target/47098
28426 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
28427
28428 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28429
28430 PR target/47122
28431 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
28432
28433 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28434
28435 PR target/55144
28436 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
28437 remove already contained t-files.
28438
28439 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28440
28441 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
28442 Remove unneeded forward declarations.
28443 (suitable_for_tail_call_opt_p): Commentary typo fix.
28444
28445 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28446
28447 * varasm.c (emit_bss): Remove redundant guard.
28448
28449 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28450
28451 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
28452
28453 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28454
28455 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
28456
28457 2015-04-22 Hale Wang <hale.wang@arm.com>
28458 Terry Guo <terry.guo@arm.com>
28459
28460 PR rtl-optimization/64818
28461 * combine.c (can_combine_p): Don't combine user-specified
28462 register if it is in an asm input.
28463
28464 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
28465
28466 PR ipa/65076
28467 * passes.def (early_optimizations): Add pass_dse.
28468
28469 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28470
28471 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
28472 * reorg.c (redundant_insn): Remove ifdef
28473 INSN_REFERENCES_ARE_DELAYED.
28474 * resource.c (mark_referenced_resources): Likewise.
28475
28476 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28477
28478 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
28479 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
28480 * resource.c (mark_set_resources): Likewise.
28481
28482 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28483
28484 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
28485 * cfgcleanup.c (flow_find_cross_jump): Likewise.
28486 (flow_find_head_matching_sequence): Likewise.
28487 (try_head_merge_bb): Likewise.
28488 * combine.c (can_combine_p): Likewise.
28489 (try_combine): Likewise.
28490 (distribute_notes): Likewise.
28491 * df-problems.c (can_move_insns_across): Likewise.
28492 * final.c (final): Likewise.
28493 * gcse.c (insert_insn_end_basic_block): Likewise.
28494 * ira.c (find_moveable_pseudos): Likewise.
28495 * reorg.c (try_merge_delay_insns): Likewise.
28496 (fill_simple_delay_slots): Likewise.
28497 (fill_slots_from_thread): Likewise.
28498 * sched-deps.c (sched_analyze_2): Likewise.
28499
28500 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28501
28502 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
28503 PIC_OFFSET_TABLE_REGNUM.
28504
28505 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28506
28507 * alias.c (init_alias_target): Remove ifdef
28508 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
28509 * df-scan.c (df_insn_refs_collect): Likewise.
28510 (df_get_regular_block_artificial_uses): Likewise.
28511 (df_get_eh_block_artificial_uses): Likewise.
28512 (df_get_entry_block_def_set): Likewise.
28513 (df_get_exit_block_use_set): Likewise.
28514 * emit-rtl.c (gen_rtx_REG): Likewise.
28515 * ira.c (ira_setup_eliminable_regset): Likewise.
28516 * reginfo.c (init_reg_sets_1): Likewise.
28517 * regrename.c (rename_chains): Likewise.
28518 * reload1.c (reload): Likewise.
28519 (eliminate_regs_in_insn): Likewise.
28520 * resource.c (mark_referenced_resources): Likewise.
28521 (init_resource_info): Likewise.
28522
28523 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28524
28525 * defaults.h (MASK_RETURN_ADDR): New definition.
28526 * except.c (expand_builtin_extract_return_addr): Remove ifdef
28527 MASK_RETURN_ADDR.
28528
28529 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28530
28531 * defaults.h (RETURN_ADDR_OFFSET): New definition.
28532 * except.c (expand_builtin_extract_return_addr): Remove ifdef
28533 RETURN_ADDR_OFFSET.
28534 (expand_builtin_frob_return_addr): Likewise.
28535
28536 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28537
28538 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
28539 (try_redirect_by_replacing_jump): Likewise.
28540 (rtl_tidy_fallthru_edge): Likewise.
28541 * combine.c (insn_a_feeds_b): Likewise.
28542 (find_split_point): Likewise.
28543 (simplify_set): Likewise.
28544 * cprop.c (cprop_jump): Likewise.
28545 * cse.c (cse_extended_basic_block): Likewise.
28546 * df-problems.c (can_move_insns_across): Likewise.
28547 * function.c (emit_use_return_register_into_block): Likewise.
28548 * haifa-sched.c (sched_init): Likewise.
28549 * ira.c (find_moveable_pseudos): Likewise.
28550 * loop-invariant.c (find_invariant_insn): Likewise.
28551 * lra-constraints.c (curr_insn_transform): Likewise.
28552 * postreload.c (reload_combine_recognize_const_pattern):
28553 * Likewise.
28554 * reload.c (find_reloads): Likewise.
28555 * reorg.c (delete_scheduled_jump): Likewise.
28556 (steal_delay_list_from_target): Likewise.
28557 (steal_delay_list_from_fallthrough): Likewise.
28558 (redundant_insn): Likewise.
28559 (fill_simple_delay_slots): Likewise.
28560 (fill_slots_from_thread): Likewise.
28561 (delete_computation): Likewise.
28562 * sched-rgn.c (add_branch_dependences): Likewise.
28563
28564 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28565
28566 * genconfig.c (main): Always define HAVE_cc0.
28567 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
28568 HAVE_cc0.
28569 * cfgcleanup.c (flow_find_cross_jump): Likewise.
28570 (flow_find_head_matching_sequence): Likewise.
28571 (try_head_merge_bb): Likewise.
28572 * cfgrtl.c (rtl_merge_blocks): Likewise.
28573 (try_redirect_by_replacing_jump): Likewise.
28574 (rtl_tidy_fallthru_edge): Likewise.
28575 * combine.c (do_SUBST_MODE): Likewise.
28576 (insn_a_feeds_b): Likewise.
28577 (combine_instructions): Likewise.
28578 (can_combine_p): Likewise.
28579 (try_combine): Likewise.
28580 (find_split_point): Likewise.
28581 (subst): Likewise.
28582 (simplify_set): Likewise.
28583 (distribute_notes): Likewise.
28584 * cprop.c (cprop_jump): Likewise.
28585 * cse.c (cse_extended_basic_block): Likewise.
28586 * df-problems.c (can_move_insns_across): Likewise.
28587 * final.c (final): Likewise.
28588 (final_scan_insn): Likewise.
28589 * function.c (emit_use_return_register_into_block): Likewise.
28590 * gcse.c (insert_insn_end_basic_block): Likewise.
28591 * haifa-sched.c (sched_init): Likewise.
28592 * ira.c (find_moveable_pseudos): Likewise.
28593 * loop-invariant.c (find_invariant_insn): Likewise.
28594 * lra-constraints.c (curr_insn_transform): Likewise.
28595 * optabs.c (prepare_cmp_insn): Likewise.
28596 * postreload.c (reload_combine_recognize_const_pattern):
28597 * Likewise.
28598 * reload.c (find_reloads): Likewise.
28599 (find_reloads_address_1): Likewise.
28600 * reorg.c (delete_scheduled_jump): Likewise.
28601 (steal_delay_list_from_target): Likewise.
28602 (steal_delay_list_from_fallthrough): Likewise.
28603 (try_merge_delay_insns): Likewise.
28604 (redundant_insn): Likewise.
28605 (fill_simple_delay_slots): Likewise.
28606 (fill_slots_from_thread): Likewise.
28607 (delete_computation): Likewise.
28608 (relax_delay_slots): Likewise.
28609 * sched-deps.c (sched_analyze_2): Likewise.
28610 * sched-rgn.c (add_branch_dependences): Likewise.
28611
28612 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28613
28614 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
28615 that is trivially ded on non cc0 targets.
28616 (simplify_set): Likewise.
28617 (mark_used_regs_combine): Likewise.
28618 * cse.c (new_basic_block): Likewise.
28619 (fold_rtx): Likewise.
28620 (cse_insn): Likewise.
28621 (cse_extended_basic_block): Likewise.
28622 (set_live_p): Likewise.
28623 * rtlanal.c (canonicalize_condition): Likewise.
28624 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
28625
28626 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28627
28628 * conditions.h: Define macros even if HAVE_cc0 is undefined.
28629 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
28630 * final.c: Likewise.
28631 * jump.c: Likewise.
28632 * recog.c: Likewise.
28633 * recog.h: Declare functions even when HAVE_cc0 is undefined.
28634 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
28635
28636 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28637
28638 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
28639 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
28640 * builtins.c (expand_builtin): Remove check if
28641 EH_RETURN_DATA_REGNO is defined.
28642 * df-scan.c (df_bb_refs_collect): Likewise.
28643 (df_get_exit_block_use_set): Likewise.
28644 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
28645 * ira-lives.c (process_bb_node_lives): Likewise.
28646 * lra-lives.c (process_bb_lives): Likewise.
28647
28648 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
28649
28650 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
28651 FIRST_PSEUDO_REG): New.
28652 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
28653 (ARG_POINTER_REGNUM): Define to ARGP_REG.
28654 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
28655 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
28656 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
28657 (FIRST_INT_REG): New.
28658 (LAST_INT_REG): New.
28659 (FIRST_*_REG): Define using *_REG.
28660 (LAST_*_REG): Ditto.
28661 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
28662 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
28663 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
28664
28665 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28666
28667 * expmed.c: (synth_mult): Only assume overlapping
28668 shift with previous steps in alg_sub_t_m2 case.
28669
28670 2015-04-21 Richard Biener <rguenther@suse.de>
28671
28672 PR tree-optimization/65650
28673 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
28674 transitions involving copies.
28675 (set_lattice_value): Adjust for copy lattice state.
28676 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
28677 if that doesn't dominate the merge point.
28678 (bit_value_unop): Adjust what we treat as varying mask.
28679 (bit_value_binop): Likewise.
28680 (bit_value_assume_aligned): Likewise.
28681 (evaluate_stmt): When we simplified to a SSA name record a copy
28682 instead of dropping to varying.
28683 (visit_assignment): Simplify.
28684
28685 * gimple-match.h (gimple_simplify): Add another callback.
28686 * gimple-fold.c (fold_stmt_1): Adjust caller.
28687 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
28688 for the 2nd callback.
28689 * gimple-match-head.c (gimple_simplify): Add a callback that is
28690 used to valueize the stmt operands and use it that way.
28691
28692 2015-04-21 Richard Biener <rguenther@suse.de>
28693
28694 PR tree-optimization/65788
28695 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
28696
28697 2015-04-21 Richard Biener <rguenther@suse.de>
28698
28699 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
28700 vec_construct cost by vec_stmt_cost.
28701
28702 2015-04-21 Richard Biener <rguenther@suse.de>
28703
28704 * cfghooks.h (create_basic_block): Replace with two overloads
28705 for RTL and GIMPLE.
28706 (split_block): Likewise.
28707 * cfghooks.c (split_block): Rename to ...
28708 (split_block_1): ... this.
28709 (split_block): Add two type-safe overloads for RTL and GIMPLE.
28710 (split_block_after_labels): Call split_block_1.
28711 (create_basic_block): Rename to ...
28712 (create_basic_block_1): ... this.
28713 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
28714 (create_empty_bb): Call create_basic_block_1.
28715 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
28716 split_block_after_labels.
28717 * omp-low.c (expand_parallel_call): Likewise.
28718 (expand_omp_target): Likewise.
28719 (simd_clone_adjust): Likewise.
28720 * tree-chkp.c (chkp_get_entry_block): Likewise.
28721 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
28722 create_basic_block overload.
28723 (cgraph_node::expand_thunk): Likewise.
28724 * tree-cfg.c (make_blocks): Likewise.
28725 (handle_abnormal_edges): Likewise.
28726 * tree-inline.c (copy_bb): Likewise.
28727
28728 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28729
28730 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
28731 New pattern.
28732 (*xor_one_cmplsidi3_ze): Likewise.
28733
28734 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
28735
28736 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
28737 use df_remove_problem rather than manually removing problems, leaving
28738 holes in df->problems_in_order[].
28739
28740 2015-04-21 Tom de Vries <tom@codesourcery.com>
28741
28742 PR tree-optimization/65802
28743 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
28744
28745 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28746
28747 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
28748 Increase to 128.
28749 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
28750 at '.'. Assert that there's enough space for everything.
28751
28752 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
28753
28754 PR tree-optimization/64950
28755 Revert:
28756 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
28757
28758 PR target/41089
28759 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
28760 as volatile.
28761
28762 2015-04-20 Shiva Chen <shiva0217@gmail.com>
28763
28764 PR rtl-optimization/64916
28765 * cfgcleanup.c (values_equal_p): New function.
28766 (can_replace_by): Use it.
28767
28768 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
28769
28770 PR c++/65801
28771 * doc/invoke.texi ([-Wnarrowing]): Update.
28772
28773 2015-04-20 Jeff Law <law@redhat.com>
28774
28775 PR tree-optimization/65658
28776 * tree-ssa-threadupdate.c (redirection_block_p): Remove
28777 redundant test for GIMPLE_ASSIGN in last change.
28778
28779 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
28780
28781 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
28782 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
28783 (legitimize_tls_address): Ditto.
28784 (ix86_expand_move): Ditto.
28785 (ix86_expand_binary_operator): Remove reload_in_progress checks.
28786 (ix86_expand_unary_operator): Ditto.
28787 * config/i386/predicates.md (index_register_operand): Ditto.
28788
28789 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
28790
28791 * reorg.c (try_merge_delay_insns): Improve correctness checking
28792 for targets with multiple delay slots.
28793
28794 2015-04-20 Jeff Law <law@redhat.com>
28795
28796 PR tree-optimization/65658
28797 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
28798 statements too.
28799
28800 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
28801
28802 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
28803 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
28804 Delete.
28805
28806 2015-04-20 Jakub Jelinek <jakub@redhat.com>
28807
28808 PR debug/65807
28809 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
28810
28811 2015-04-20 Richard Biener <rguenther@suse.de>
28812
28813 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
28814 * gimple-fold.c (gimple_build_valueize): New function.
28815 (gimple_build): Always use gimple_build_valueize as valueize hook.
28816
28817 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
28818
28819 PR target/64134
28820 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
28821 and overwrite variable parts if <= 1/2 the elements are variable.
28822
28823 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
28824
28825 PR rtl-optimization/65805
28826 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
28827 Don't use difference of offset and previous offset if
28828 update_sp_offset is non-zero.
28829 (eliminate_regs_in_insn): Ditto.
28830 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
28831 lra_eliminate_regs_1 call.
28832 * lra-constraints.c (get_equiv_with_elimination): Ditto.
28833
28834 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
28835
28836 * hash-table.h: Remove version of hash_table that stored value_type *.
28837 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
28838 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
28839 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
28840 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
28841 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
28842 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
28843 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
28844 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
28845 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
28846 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
28847 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
28848 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
28849 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
28850 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
28851 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
28852 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
28853
28854 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28855 Jakub Jelinek <jakub@redhat.com>
28856
28857 PR target/65787
28858 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
28859 subsequent SH_NONE operand does not overwrite an existing *special
28860 value.
28861 (adjust_extract): Handle case where a vec_extract operation is
28862 wrapped in a PARALLEL.
28863
28864 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
28865
28866 PR target/65780
28867 * config/i386/i386.c (ix86_binds_local_p): Define only if
28868 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
28869
28870 2015-04-17 Jeff Law <law@redhat.com>
28871
28872 PR tree-optimization/47679
28873 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
28874 * tree-ssa-scopedtables.c: New file.
28875 * tree-ssa-scopedtables.h: New file.
28876 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
28877 (const_and_copies): Change name/type.
28878 (record_const_or_copy): Move into tree-ssa-scopedtables.c
28879 (record_const_or_copy_1): Similarly.
28880 (restore_vars_to_original_value): Similarly.
28881 (pass_dominator::execute): Create and destroy const_and_copies table.
28882 (thread_across_edge): Update passing of const_and_copies.
28883 (record_temporary_equivalence): Use method calls rather than
28884 manipulating const_and_copies directly.
28885 (record_equality, cprop_into_successor_phis): Similarly.
28886 (dom_opt_dom_walker::before_dom_children): Similarly.
28887 (dom_opt_dom_walker::after_dom_children): Similarly.
28888 (eliminate_redundant_computations): Similarly.
28889 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
28890 (record_temporary_equivalence): Likewise.
28891 (invalidate_equivalences): Likewise.
28892 (record_temporary_equivalences_from_phis): Update due to type
28893 change of const_and_copies. Use method calls rather than
28894 manipulating the stack directly.
28895 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
28896 (thread_through_normal_block, thread_across_edge): Likewise.
28897 (thread_across_edge): Likewise.
28898 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
28899 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
28900 of equiv_stack.
28901 (identify_jump_threads): Update due to type change of equiv_stack.
28902 (finalize_jump_threads): Delete the equiv_stack when complete.
28903
28904 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
28905
28906 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
28907 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
28908 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
28909
28910 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
28911
28912 PR target/65535
28913 * config.gcc: Exit with a comment when we do not have a major version
28914 number for the FreeBSD target.
28915
28916 2015-04-17 Jakub Jelinek <jakub@redhat.com>
28917
28918 PR target/65689
28919 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
28920 maybe_allows_mem bitfields.
28921 (maybe_allows_none_start, maybe_allows_none_end,
28922 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
28923 maybe_allows_mem_end): New variables.
28924 (compute_maybe_allows): New function.
28925 (add_constraint): Use it to initialize maybe_allows_reg and
28926 maybe_allows_mem fields.
28927 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
28928 is_address constraints such that those that allow neither mem nor
28929 reg come first, then those that only allow reg but not mem, then
28930 those that only allow mem but not reg, then the rest.
28931 (write_allows_reg_mem_function): New function.
28932 (write_tm_preds_h): Call it.
28933 * stmt.c (parse_output_constraint, parse_input_constraint): Use
28934 the generated insn_extra_constraint_allows_reg_mem function
28935 instead of always setting *allows_reg = true; *allows_mem = true;
28936 for unknown extra constraints.
28937
28938 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
28939
28940 PR target/65780
28941 * output.h (default_binds_local_p_3): New.
28942 * varasm.c (default_binds_local_p_3): Make it public. Take an
28943 argument to indicate if common symbol may be local. If common
28944 symbol may be local, treat non-external variable as defined
28945 locally.
28946 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
28947 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
28948 * config/i386/i386.c (ix86_binds_local_p): New.
28949 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
28950 ix86_binds_local_p.
28951
28952 2015-04-17 Jakub Jelinek <jakub@redhat.com>
28953
28954 PR debug/65771
28955 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
28956 trying mem_loc_descriptor on XEXP (rtl, 0).
28957
28958 2015-04-17 Martin Liska <mliska@suse.cz>
28959
28960 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
28961 Release symbol_compare_collection.
28962 * ipa-reference.c: Add TODO that a vector should be released.
28963
28964 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
28965
28966 PR target/65296
28967 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
28968 to new AVR-LibC file layout (bug #44574).
28969 (*avrlibc_devicelib): Same.
28970 * config/avr/avr-mcus.def: Adjust comments.
28971 * config/avr/avr.opt (nodevicelib): Adjust help.
28972
28973 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
28974
28975 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
28976
28977 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
28978
28979 PR c++/64527
28980 * gimplify.c (gimplify_init_constructor): Always emit a
28981 side-effecting constructor.
28982
28983 2015-04-17 Tom de Vries <tom@codesourcery.com>
28984
28985 PR tree-optimization/64950
28986 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
28987 in cfun->curr_properties.
28988 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
28989 if we generate an IFN_VA_ARG.
28990 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
28991 function if PROP_gimple_lva is not set in src function.
28992
28993 2015-04-17 Tom de Vries <tom@codesourcery.com>
28994 Michael Matz <matz@suse.de>
28995
28996 PR tree-optimization/64950
28997 * gimple-iterator.c (update_modified_stmts): Remove static.
28998 * gimple-iterator.h (update_modified_stmts): Declare.
28999 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
29000 (gimplify_va_arg_internal): New function.
29001 (gimplify_va_arg_expr): Use IFN_VA_ARG.
29002 * gimplify.h (gimplify_va_arg_internal): Declare.
29003 * internal-fn.c (expand_VA_ARG): New unreachable function.
29004 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
29005 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
29006 (expand_ifn_va_arg): New function.
29007 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
29008 (pass_stdarg::execute): Call expand_ifn_va_arg.
29009 (pass_data_lower_vaarg): New pass_data.
29010 (pass_lower_vaarg): New gimple_opt_pass.
29011 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
29012 (make_pass_lower_vaarg): New function.
29013 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
29014 properties_required field.
29015 * passes.def (all_passes): Add pass_lower_vaarg.
29016 * tree-pass.h (PROP_gimple_lva): Add define.
29017 (make_pass_lower_vaarg): Declare.
29018
29019 2015-04-17 Tom de Vries <tom@codesourcery.com>
29020
29021 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
29022 * calls.c (call_expr_flags): Same.
29023
29024 2015-04-17 Tom de Vries <tom@codesourcery.com>
29025
29026 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
29027 (pass_stdarg::execute): ... here.
29028
29029 2015-04-17 Tom de Vries <tom@codesourcery.com>
29030 Michael Matz <matz@suse.de>
29031
29032 * tree-cfg.c (make_blocks_1): Factor out of ...
29033 (make_blocks): ... here.
29034 (make_edges_bb): Factor out of ...
29035 (make_edges): ... here.
29036 (gimple_find_sub_bbs): New function.
29037 * tree-cfg.h (gimple_find_sub_bbs): Declare.
29038
29039 2015-04-17 Tom de Vries <tom@codesourcery.com>
29040
29041 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
29042
29043 2015-04-17 Yury Gribov <y.gribov@samsung.com>
29044
29045 * asan.c (set_sanitized_sections): New function.
29046 (section_sanitized_p): Ditto.
29047 (asan_protect_global): Optionally sanitize user-defined
29048 sections.
29049 * asan.h (set_sanitized_sections): Declare new function.
29050 * common.opt (fsanitize-sections): New option.
29051 * doc/invoke.texi (-fsanitize-sections): Document new option.
29052 * opts-global.c (handle_common_deferred_options): Handle new
29053 option.
29054
29055 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29056
29057 PR debug/65771
29058 * dwarf2out.c (loc_list_from_tree): Return NULL
29059 for DEBUG_EXPR_DECL.
29060
29061 2015-04-17 Christian Bruel <christian.bruel@st.com>
29062
29063 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
29064 same attributes.
29065
29066 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
29067
29068 * ira-color.c (setup_left_conflict_sizes_p): Do not process
29069 node itself when computing left conflict subnode size.
29070
29071 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
29072
29073 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
29074 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
29075 *fop_<mode>_1_sse using enabled attribute. Use
29076 register_mixssei387nonimm_operand operand 1 predicate. Change
29077 alternative 3 constraints from "x" to "v".
29078
29079 2015-04-16 Richard Biener <rguenther@suse.de>
29080
29081 PR tree-optimization/65774
29082 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
29083 bit-value tracking on.
29084
29085 2015-04-16 Richard Biener <rguenther@suse.de>
29086
29087 PR tree-optimization/64277
29088 * tree-vrp.c (check_array_ref): Fix anti-range handling,
29089 simplify upper bound handling.
29090 (search_for_addr_array): Simplify.
29091 (check_array_bounds): Handle ADDR_EXPRs here.
29092 (check_all_array_refs): Simplify.
29093
29094 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
29095
29096 * config/i386/i386.c (print_reg): Rewrite function.
29097
29098 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29099
29100 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
29101 Invert the condition.
29102
29103 2015-04-16 Renlin Li <renlin.li@arm.com>
29104
29105 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
29106 simplifications for UNSIGNED_FLOAT.
29107
29108 2015-04-16 Nick Clifton <nickc@redhat.com>
29109
29110 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
29111 MUL_UNINIT.
29112 (enum rl78_cpu_type): New.
29113 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
29114 (umulhi3_shift_virt): Remove m constraint from operand 1.
29115 (umulqihi3_virt): Likewise.
29116 * config/rl78/rl78.c (rl78_option_override): Add code to process
29117 -mcpu and -mmul options.
29118 (rl78_alloc_physical_registers): Add code to handle divhi and
29119 divsi valloc attributes.
29120 (set_origin): Likewise.
29121 * config/rl78/rl78.h (RL78_MUL_G14): Define.
29122 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
29123 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
29124 __RL78_Gxx__.
29125 (ASM_SPEC): Pass -mcpu on to assembler.
29126 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
29127 (mulqi3_rl78): Likewise.
29128 (mulhi3_g13): Likewise.
29129 (mulhi3): Generate the G13 or G14 versions of the insn directly.
29130 (mulsi3): Likewise.
29131 (mulhi3_g14): Add clobbers of AX and BC.
29132 (mulsi3_g14): Likewise.
29133 (mulsi3_g13): Likewise.
29134 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
29135 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
29136 * config/rl78/rl78.opt (mmul): Initialise value to
29137 RL78_MUL_UNINIT.
29138 (mcpu): New option.
29139 (m13, m14, mrl78): New option aliases.
29140 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
29141 (MULTILIB_DIRNAMES): Add g13 and g14.
29142 * doc/invoke.texi: Document -mcpu and -mmul options.
29143
29144 2015-04-16 Richard Biener <rguenther@suse.de>
29145
29146 * tree-ssa-ccp.c (likely_value): See if we have operands that
29147 are marked as never simulate again and return CONSTANT in this
29148 case.
29149 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
29150 not have any operands that will be simulated again as
29151 not being simulated again.
29152
29153 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
29154
29155 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
29156 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
29157 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
29158 attribute.
29159 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
29160 enabled attribute.
29161 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
29162 *float<SWI48:mode><MODEF:mode>2_sse.
29163 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
29164 enabled attribute.
29165 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
29166 enabled attribute.
29167
29168 2015-04-15 Tom de Vries <tom@codesourcery.com>
29169
29170 PR other/65487
29171 * function.c (push_dummy_function): New function.
29172 (init_dummy_function_start): Use push_dummy_function.
29173 (pop_dummy_function): New function. Factored out of ...
29174 (expand_dummy_function_end): ... here.
29175 * function.h (push_dummy_function, pop_dummy_function): Declare.
29176 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
29177 pop_dummy_function.
29178 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
29179
29180 2015-04-15 Jeff Law <law@redhat.com>
29181
29182 PR tree-optimization/47679
29183 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
29184 need for forward declaration in upcoming changes.
29185 (record_conditions, record_edge_info): Likewise.
29186
29187 PR rtl-optimization/42522
29188 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
29189 SIGN_EXTRACT as a whole object rather than simplifying
29190 its operand.
29191
29192 2015-04-15 Jakub Jelinek <jakub@redhat.com>
29193
29194 PR ipa/65765
29195 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
29196 and GIMPLE_PREDICT use break instead of return true. For
29197 GIMPLE_EH_DISPATCH, compare dispatch region.
29198
29199 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
29200
29201 * doc/extend.texi (__sync Builtins): Simplify some text. Update
29202 details about the implementation. Make clear preference for
29203 __atomic builtins. Reduce possibility of future change.
29204
29205 2015-04-15 Nick Clifton <nickc@redhat.com>
29206
29207 * config/rx/rx.opt (mallow-string-insns): New option.
29208 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
29209 builtin if string instructions are denied.
29210 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
29211 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
29212 appropriate.
29213 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
29214 * config/rx/rx.md (movstr): Enable pattern only if string
29215 instructions are allowed.
29216 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
29217 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
29218 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
29219 (MULTILIB_DIRNAMES): Add no-strings.
29220 * doc/invoke.texi: Document -mno-allow-string-insns.
29221
29222 2015-04-15 Alan Modra <amodra@gmail.com>
29223
29224 PR target/65408
29225 PR target/58744
29226 PR middle-end/36043
29227 * calls.c (load_register_parameters): Don't load past end of
29228 mem unless suitably aligned.
29229
29230 2015-04-15 Nick Clifton <nickc@redhat.com>
29231
29232 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
29233 decrement instruction as being frame related.
29234 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
29235 based addresses.
29236 If zero extending a function address enclose the operation in
29237 %code(...).
29238 (rl78_preferred_reload_class): New function.
29239 (TARGET_PREFERRED_RELOAD_CLASS): Define.
29240 * config/rl78/rl78.md: Remove useless constraints in expanders.
29241 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
29242 (mulhi3_rl78): Likewise.
29243 (mulhi3_g13): Likewise.
29244 (mulsi3_rl78): Likewise.
29245 (es_addr): Move to before the multiply patterns.
29246
29247 2015-04-15 Alan Modra <amodra@gmail.com>
29248
29249 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
29250 and sequence_stack. Add seq.
29251 (seq_stack): Delete.
29252 * function.c (prepare_function_start): Don't access x_last_insn.
29253 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
29254 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
29255 * emit_rtl.c (start_sequence, push_topmost_sequence,
29256 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
29257 sequence accessors.
29258 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
29259 remove_insn): Likewise. Simplify.
29260 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
29261 and pop_topmost_sequence.
29262 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
29263 debug insns.
29264 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
29265
29266 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
29267
29268 PR target/65729
29269 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
29270 the assertiion.
29271
29272 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
29273
29274 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
29275 (LEGACY_INT_REGNO_P): Ditto.
29276 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
29277 (ANY_MASK_REG_P): Remove.
29278 (BND_REG_P): Rename from ANY_BND_REG_P.
29279 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
29280 legacy integer registers. Do not handle MMX_REG_P in a special way.
29281 Merge 64byte and 32byte SSE handling.
29282
29283 2015-04-14 Nick Clifton <nickc@redhat.com>
29284
29285 * expr.c (expand_assignment): Force an address offset computation
29286 into a register before changing its mode.
29287 (expand_expr_real_1): Likewise.
29288
29289 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
29290
29291 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
29292 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
29293 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
29294 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
29295 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
29296 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
29297 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
29298 and __aarch64_vget_lane_any.
29299
29300 2015-04-14 Jakub Jelinek <jakub@redhat.com>
29301
29302 PR rtl-optimization/65761
29303 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
29304 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
29305
29306 2015-04-14 Richard Biener <rguenther@suse.de>
29307
29308 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
29309 (graphite_can_represent_scev): Use POINTER_TYPE_P.
29310
29311 2015-04-14 Richard Biener <rguenther@suse.de>
29312
29313 PR tree-optimization/65758
29314 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
29315 against -1.
29316 (ccp_lattice_meet): Likewise.
29317 (bit_value_unop): Likewise.
29318 (bit_value_binop): Likewise.
29319 (bit_value_assume_aligned): Likewise.
29320
29321 2015-04-14 Christian Bruel <christian.bruel@st.com>
29322
29323 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
29324 function.
29325
29326 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
29327
29328 PR tree-optimization/63387
29329 * match.pd ((x unord x) | (y unord y) -> (x unord y),
29330 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
29331
29332 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
29333
29334 * config/i386/predicates.md (any_QIreg_operand): Rename from
29335 q_regs_operand. Do not process subregs.
29336 (QIreg_operand): Use QI_REGNO_P predicate.
29337 (ext_QIreg_operand): Ditto.
29338 (ext_register_operand): Ditto.
29339 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
29340 (AND splitters): Ditto.
29341 (AND with -65536 splitter): Add SWI48 mode for operand 0.
29342 (AND with -256 splitter): Use any_QIreg_operand predicate and
29343 SWI248 mode for operand 0.
29344 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
29345 mode for operand 0.
29346 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
29347
29348 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
29349
29350 * doc/plugins.texi: Rewrite first introductory paragraph.
29351
29352 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29353
29354 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
29355 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
29356
29357 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29358
29359 * ipa-profie.c (ipa_profile): Check number of parameters
29360 and possible polymorphic call targets before
29361 devirtualizing.
29362
29363 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
29364
29365 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
29366 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
29367
29368 2015-04-13 Richard Biener <rguenther@suse.de>
29369
29370 PR tree-optimization/65204
29371 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
29372 takens for bit-CCP.
29373
29374 2015-04-13 Richard Biener <rguenther@suse.de>
29375
29376 PR target/65660
29377 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
29378 and cond_not_taken_branch_cost to 4 and 2.
29379 (bdver2_cost): Likewise.
29380 (bdver3_cost): Likewise.
29381 (bdver4_cost): Likewise.
29382
29383 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29384
29385 * hash-table.h (hash_table constructor): Add mem stats.
29386 (alloc_entries): Likewise.
29387
29388 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29389
29390 * ipa-cp.c (ipcp_driver): Relase prev_edge.
29391 * passes.c (execute_one_pass): Only add transform if pass has one.
29392
29393 2015-04-12 Joseph Myers <joseph@codesourcery.com>
29394
29395 * config/i386/i386.c (ix86_option_override_internal): Don't set
29396 -fprefetch-loop-arrays if optimizing for size.
29397
29398 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29399 Gerald Pfeifer <gerald@pfeifer.com>
29400
29401 * doc/contrib.texi (Contributors): Add Martin Jambor and
29402 Michael Matz.
29403
29404 2015-04-12 Jakub Jelinek <jakub@redhat.com>
29405
29406 * BASE-VER: Set to 6.0.0.
29407
29408 PR tree-optimization/65747
29409 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
29410 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
29411
29412 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
29413
29414 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
29415 sentence. Improve grammar.
29416
29417 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
29418
29419 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
29420
29421 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
29422
29423 PR ipa/65743
29424 * ipa-inline-transform.c (speculation_removed): Remove static var.
29425 (check_speculations): New function.
29426 (clone_inlined_nodes): Do not check spculations.
29427 (inline_call): Call check_speculations.
29428 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
29429 consider non-invariants.
29430
29431 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
29432 Martin Liska <mliska@suse.cz>
29433
29434 PR ipa/65722
29435 * ipa-icf.c (sem_item::compare_cgraph_references): function and
29436 variable can not match.
29437 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
29438 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
29439
29440 2015-04-11 Jakub Jelinek <jakub@redhat.com>
29441
29442 PR tree-optimization/65735
29443 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
29444 Remove visited_phis argument, add visited_bbs, avoid recursing into the
29445 same bb rather than just into the same phi node.
29446 (thread_through_normal_block): Adjust caller.
29447
29448 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
29449
29450 * doc/contrib.texi (Contributors): Add Ira Rosen.
29451
29452 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
29453
29454 * gcov.c (find_source): Fix miswording in error message.
29455 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
29456 (ix86_expand_sse_comi_round): Fix typo in error message.
29457
29458 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
29459
29460 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
29461
29462 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
29463
29464 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
29465
29466 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
29467
29468 PR target/65710
29469 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
29470 Print bad_spills_num and insn_pseudos_num.
29471
29472 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29473
29474 PR target/65694
29475 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
29476 when creating +1 values for SImode.
29477
29478 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
29479
29480 PR target/65729
29481 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
29482 assert.
29483
29484 2015-04-10 Jakub Jelinek <jakub@redhat.com>
29485 Iain Sandoe <iain@codesourcery.com>
29486
29487 PR target/65351
29488 * configure: Regenerate.
29489
29490 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
29491
29492 PR target/65671
29493 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
29494
29495 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
29496
29497 * doc/contrib.texi (Contributors): Add John Marino.
29498
29499 2015-04-09 Jakub Jelinek <jakub@redhat.com>
29500
29501 PR tree-optimization/65709
29502 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
29503 TREE_TYPE (TREE_TYPE (t)).
29504
29505 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
29506
29507 PR target/65710
29508 * lra-int.h (lra_bad_spill_regno_start): New.
29509 * lra.c (lra_bad_spill_regno_start): New.
29510 (lra): Set up lra_bad_spill_regno_start. Set up
29511 lra_constraint_new_regno_start unconditionally.
29512 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
29513 spill preferences.
29514
29515 2015-04-09 Marek Polacek <polacek@redhat.com>
29516 Jakub Jelinek <jakub@redhat.com>
29517
29518 PR middle-end/65554
29519 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
29520 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
29521 of STRIP_NOPS.
29522
29523 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
29524
29525 PR rtl-optimization/65693
29526 * combine.c (is_parallel_of_n_reg_sets): Move outside of
29527 #ifndef HAVE_cc0.
29528
29529 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
29530
29531 PR target/65296
29532 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
29533 device specs file if "device-specs%s" didn't resolve to a path.
29534
29535 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
29536
29537 PR target/65676
29538 * config/i386/i386.c (fixup_modeless_constant): New.
29539 (ix86_expand_args_builtin): Fixup modeless constant operand.
29540 (ix86_expand_round_builtin): Ditto.
29541 (ix86_expand_special_args_builtin): Ditto.
29542 (ix86_expand_builtin): Ditto.
29543
29544 2015-04-09 Jakub Jelinek <jakub@redhat.com>
29545
29546 PR target/65693
29547 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
29548 any pow2 integer in between 2 and 0x80000000U inclusive.
29549
29550 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
29551
29552 PR rtl-optimization/65693
29553 * combine.c (is_parallel_of_n_reg_sets): Change first argument
29554 from an rtx_insn * to an rtx.
29555 (try_combine): Adjust both callers. Use it once more.
29556
29557 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
29558
29559 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
29560 (chkp_make_static_const_bounds): Search existing
29561 symbol by assembler name. Use make_decl_one_only.
29562 (chkp_get_zero_bounds_var): Remove node search which
29563 is now performed in chkp_make_static_const_bounds.
29564 (chkp_get_none_bounds_var): Likewise.
29565
29566 2015-04-08 Michael Witten <mfwitten@gmail.com>
29567
29568 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
29569 to an example.
29570
29571 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29572
29573 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
29574
29575 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
29576
29577 * doc/extend.texi (__sync Builtins): Fix grammar.
29578
29579 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29580
29581 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
29582
29583 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29584
29585 * varasm.c (emit_local): Move definition of align.
29586
29587 2015-04-08 Julian Brown <julian@codesourcery.com>
29588
29589 * config/nvptx/mkoffload.c (process): Support variable mapping.
29590
29591 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
29592
29593 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
29594 alpha_links **.
29595 (alpha_write_one_linkage): Correct typo.
29596
29597 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
29598
29599 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
29600
29601 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
29602
29603 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
29604
29605 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
29606
29607 * tree-chkp.h (chkp_insert_retbnd_call): New.
29608 * tree-chkp.c (chkp_insert_retbnd_call): New.
29609 * ipa-split.c (insert_bndret_call_after): Remove.
29610 (split_function): Use chkp_insert_retbnd_call.
29611 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
29612 bounds for instrumented functions.
29613
29614 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
29615
29616 PR ipa/65540
29617 * calls.c (initialize_argument_information): When producing tail
29618 call also turn SSA_NAMES passed by references to original PARM_DECLs
29619
29620 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
29621
29622 PR target/65648
29623 * lra-remat.c (do_remat): Process input and non-input insn
29624 registers separately.
29625
29626 2015-04-07 Jakub Jelinek <jakub@redhat.com>
29627
29628 PR debug/65678
29629 * valtrack.c (debug_lowpart_subreg): New function.
29630 (dead_debug_insert_temp): Use it.
29631
29632 PR middle-end/65680
29633 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
29634 into signed HOST_WIDE_INT the same as negative bit_offset.
29635
29636 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
29637
29638 * ipa-comdats.c (ipa_comdats): Visit all thunks
29639 to set proper comdat group.
29640
29641 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29642
29643 PR target/65489
29644 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
29645 on constants for NEON VSTRUCT modes.
29646
29647 2015-04-07 Jakub Jelinek <jakub@redhat.com>
29648 Iain Sandoe <iain@codesourcery.com>
29649
29650 PR target/65351
29651 * configure: Regenerate.
29652
29653 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29654
29655 PR target/65614
29656 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
29657 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
29658 that LFD is used to load double constants instead of LFS. Add
29659 defaults for all costs structures. Add comments for missing
29660 initialization fields.
29661 (size32_cost): Likewise.
29662 (size64_cost): Likewise.
29663 (rs64a_cost): Likewise.
29664 (mpccore_cost): Likewise.
29665 (ppc403_cost): Likewise.
29666 (ppc405_cost): Likewise.
29667 (ppc440_cost): Likewise.
29668 (ppc476_cost): Likewise.
29669 (ppc601_cost): Likewise.
29670 (ppc603_cost): Likewise.
29671 (ppc604_cost): Likewise.
29672 (ppc604e_cost): Likewise.
29673 (ppc620_cost): Likewise.
29674 (ppc630_cost): Likewise.
29675 (ppccell_cost): Likewise.
29676 (ppc750_cost): Likewise.
29677 (ppc7450_cost): Likewise.
29678 (ppc8540_cost): Likewise.
29679 (ppce300c2c3_cost): Likewise.
29680 (ppce500mc_cost): Likewise.
29681 (ppce500mc64_cost): Likewise.
29682 (ppce5500_cost): Likewise.
29683 (ppce6500_cost): Likewise.
29684 (titan_cost): Likewise.
29685 (power4_cost): Likewise.
29686 (power6_cost): Likewise.
29687 (power7_cost): Likewise.
29688 (power8_cost): Likewise.
29689 (ppca2_cost): Likewise.
29690 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
29691
29692 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
29693 instead of XXLOR to copy SFmode to clear out dirty bits created
29694 when SFmode denormals are generated.
29695 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
29696 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
29697
29698 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
29699
29700 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
29701 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
29702 * config/aarch64/aarch64-tune.md: Regenerate.
29703
29704 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
29705
29706 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
29707 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
29708 * config/arm/arm-cores.def (exynos-m1): New core.
29709 * config/arm/arm-tune.md: Regenerate.
29710 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
29711 * config/arm/bpabi.h: Likewise.
29712
29713 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
29714
29715 * ipa-cp (set_single_call_flag): Remove too
29716 restrictive assert.
29717
29718 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
29719
29720 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
29721 GOMP_offload_unregister from the destructor.
29722
29723 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
29724
29725 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
29726 flags for instrumentation thunk.
29727 (chkp_produce_thunks): Likewise.
29728
29729 2015-04-05 Martin Liska <mliska@suse.cz>
29730
29731 PR ipa/65665
29732 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
29733 has computed data structure.
29734 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
29735
29736 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
29737
29738 * invoke.texi (inline-unit-growth): Increase growth to 20%
29739 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
29740
29741 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
29742
29743 PR target/65647
29744 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
29745 value checking.
29746 (lra_rematerialization_iter): New.
29747 * lra.c (lra): Initialize lra_rematerialization_iter.
29748 Stop updating lra_constraint_new_regno_start after switching of
29749 inheritance and rematerialization.
29750 * lra-remat.c (lra_rematerialization_iter): New.
29751 (lra_remat): Add printing pass iteration. Do rematerialization
29752 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
29753
29754 2015-04-04 Richard Biener <rguenther@suse.de>
29755
29756 PR tree-optimization/64909
29757 PR tree-optimization/65660
29758 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
29759 to take a cost vector for scalar iteration cost.
29760 (vect_get_single_scalar_iteration_cost): Likewise.
29761 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
29762 Compute the scalar iteration cost into a cost vector.
29763 (vect_get_known_peeling_cost): Use the scalar cost vector to
29764 account for the cost of the peeled iterations.
29765 (vect_estimate_min_profitable_iters): Likewise.
29766 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
29767 Likewise.
29768
29769 2015-04-04 Alan Modra <amodra@gmail.com>
29770
29771 PR target/65576
29772 PR target/65240
29773 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
29774 0.0 constant unless TARGET_VSX.
29775 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
29776 alternative.
29777
29778 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
29779
29780 PR ipa/65654
29781 * ipa-inline-transform.c (inline_call): Skip sanity check to work
29782 around the ICE
29783
29784 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
29785
29786 PR ipa/65655
29787 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
29788 speculative indirect edges to avoid ordering issue.
29789
29790 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
29791
29792 PR ipa/65076
29793 * ipa-inline.c (edge_badness): Add combined size to the denominator.
29794
29795 2015-04-03 Jakub Jelinek <jakub@redhat.com>
29796
29797 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
29798 TYPE_ARTIFICIAL on the .omp_data* types.
29799
29800 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29801
29802 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
29803 instrumentation thunks.
29804
29805 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29806
29807 * config/i386/i386.c (ix86_expand_call): Avoid nested
29808 PARALLEL in returned call value.
29809
29810 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29811
29812 * lto-cgraph.c (input_cgraph_1): Always link instrumented
29813 assembler name with original one.
29814
29815 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
29816
29817 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
29818
29819 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
29820
29821 Revert parts of r216820.
29822 * config/i386/i386.md (movqi_internal): Correct type calculation
29823 for alternatives 3 and 5.
29824
29825 2015-04-02 Jakub Jelinek <jakub@redhat.com>
29826
29827 PR preprocessor/61977
29828 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
29829 predefine __vector/__bool/__pixel macros nor context sensitive
29830 macros for CLK_ASM.
29831 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
29832
29833 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
29834
29835 * config/pa/pa.c (pa_output_move_double): Directly handle register
29836 indexed memory operand. Simplify handling of scaled register indexed
29837 memory operands.
29838
29839 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29840
29841 PR driver/65444
29842 * config/i386/linux-common.h (MPX_SPEC): New.
29843 (CHKP_SPEC): Add MPX_SPEC.
29844 * doc/invoke.texi (-fcheck-pointer-boudns): Document
29845 possible issues with '-z bndplt' support in linker.
29846
29847 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
29848
29849 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
29850 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
29851 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
29852 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
29853 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
29854
29855 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
29856
29857 * config/i386/sync.md (UNSPEC_MOVA): Remove.
29858 (atomic_load<mode>): Change operand 0 predicate to
29859 nonimmediate_operand and fix up the destination when needed.
29860 Use UNSPEC_LDA.
29861 (atomic_loaddi_fpu): Use UNSPEC_LDA.
29862 (atomic_store<mode>): Change operand 1 predicate to
29863 nonimmendate_operand and move the source to register when needed.
29864 Use UNSPEC_STA.
29865 (atomic_store<mode>_1): Use UNSPEC_STA.
29866 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
29867 Fix moves from memory operand. Use UNSPEC_STA.
29868
29869 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
29870
29871 * expmed.c (strict_volatile_bitfield_p): Check that the access will
29872 not cross a MODESIZE boundary.
29873 (store_bit_field, extract_bit_field): Added assertions in the
29874 strict volatile bitfields code path.
29875
29876 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
29877
29878 PR target/65624
29879 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
29880 Increase args array size by one to avoid buffer overflow.
29881
29882 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
29883
29884 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
29885 split_part.
29886 * ipa-inline.c (edge_badness): Add wrapper penalty.
29887 (sum_callers): Move up.
29888 (inline_small_functions): Set single_caller.
29889 * ipa-inline.h (inline_summary): Add single_caller.
29890 * ipa-split.c (split_function): Set split_part.
29891 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
29892 * cgraph.h (cgraph_node): Add split_part.
29893
29894 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
29895
29896 PR target/58945
29897 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
29898 Do not split operands 0 and operands 2 to halfmode.
29899 (atomic_compare_and_swap<mode>): Update for
29900 atomic_compare_and_swap<dwi>_doubleword changes.
29901
29902 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
29903
29904 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
29905 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
29906 no caching is done.
29907
29908 2015-03-31 Martin Liska <mliska@suse.cz>
29909
29910 PR ipa/65557
29911 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
29912 has already filled up function summary.
29913 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
29914
29915 2015-03-31 Richard Biener <rguenther@suse.de>
29916
29917 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
29918 of types.
29919
29920 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
29921
29922 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
29923 nested functions.
29924 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
29925 (s390_asm_output_function_label): Adapt to new signature of
29926 s390_function_num_hotpatch_hw
29927 Optimise the code generating assembler output.
29928 Add comments to assembler file.
29929
29930 2015-03-31 Richard Biener <rguenther@suse.de>
29931
29932 PR middle-end/65626
29933 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
29934 of the noreturn call so it is last and cleanup_control_flow_bb
29935 can do the CFG part.
29936
29937 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
29938
29939 PR target/65531
29940 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
29941 same_comdat_group for external symbols.
29942 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
29943 infinite same_comdat_group traversal loop.
29944
29945 2015-03-31 Jakub Jelinek <jakub@redhat.com>
29946
29947 PR plugins/61176
29948 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
29949 automatically to $headers.
29950
29951 2015-03-30 Jakub Jelinek <jakub@redhat.com>
29952
29953 PR ipa/65610
29954 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
29955 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
29956 function.
29957 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
29958 Use it.
29959 * ipa-prop.c (param_type_may_change_p): Likewise.
29960 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
29961 (remove_unused_scope_block_p): Add in_ctor_dtor_block
29962 argument. Before inlining, preserve
29963 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
29964 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
29965 recursive calls.
29966 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
29967
29968 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29969
29970 PR ipa/65076
29971 * ipa-inline.c (edge_badness): Base denominator on callee's
29972 grwoth squared.
29973
29974 2015-03-27 Martin Jambor <mjambor@suse.cz>
29975
29976 PR ipa/65478
29977 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
29978 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
29979 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
29980 node_calling_single_call.
29981 * ipa-cp.c (count_callers): New function.
29982 (set_single_call_flag): Likewise.
29983 (initialize_node_lattices): Count callers and set single_flag_call if
29984 necessary.
29985 (incorporate_penalties): New function.
29986 (good_cloning_opportunity_p): Use it, dump new flags.
29987 (propagate_constants_topo): Set node_within_scc flag if appropriate.
29988 * doc/invoke.texi (ipa-cp-recursion-penalty,
29989 ipa-cp-single-call-pentalty): Document.
29990
29991 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29992
29993 PR ipa/65588
29994 * symtab.c (symtab_node::get_partitioning_class): Register vars
29995 are duplicated.
29996 * varpool.c (symbol_table::output_variables) Do not assemble unefined
29997 decls for non-symbols.
29998
29999 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
30000
30001 PR target/65248
30002 * output.h (default_binds_local_p_2): New.
30003 * varasm.c (default_binds_local_p_2): Renamed to ...
30004 (default_binds_local_p_3): This. Don't return true on protected
30005 data symbol if protected data may be external.
30006 (default_binds_local_p): Use default_binds_local_p_3.
30007 (default_binds_local_p_1): Likewise.
30008 (default_binds_local_p_2): New.
30009 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
30010 default_binds_local_p_2 if TARGET_MACHO is undefined.
30011
30012 2015-03-27 Jakub Jelinek <jakub@redhat.com>
30013
30014 PR target/65593
30015 * config/i386/i386.c (legitimize_pic_address): If base
30016 is SYMBOL_REF or LABEL_REF using %rip addressing, force
30017 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
30018
30019 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30020
30021 PR target/65531
30022 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
30023 comdat groups.
30024
30025 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30026
30027 PR ipa/65600
30028 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
30029 of optimized out indirect call.
30030 (redirect_to_unreachable): Always build symbol table node for
30031 BUILT_IN_UNREACHABLE
30032
30033 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
30034
30035 PR target/65407
30036 * ira-costs.c (record_reg_classes): Process all constraint string
30037 containing 0-9.
30038
30039 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
30040
30041 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
30042 memory_operand.
30043
30044 PR target/65052
30045 * config/c6x/constraints.md (S3): New constraint.
30046 * config/c6x/c6x.md (real_jump): Use it.
30047
30048 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30049
30050 PR middle-end/65595
30051 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
30052 do redirection if the call is not optimized out.
30053
30054 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
30055
30056 PR target/65495
30057 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
30058 (fchkp-check-incomplete-type): Add LTO.
30059 (fchkp-zero-input-bounds-for-main): Likewise.
30060 (fchkp-first-field-has-own-bounds): Likewise.
30061 (fchkp-narrow-bounds): Likewise.
30062 (fchkp-narrow-to-innermost-array): Likewise.
30063 (fchkp-use-static-bounds): Likewise.
30064 (fchkp-use-static-const-bounds): Likewise.
30065 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
30066
30067 2015-03-27 Marek Polacek <polacek@redhat.com>
30068
30069 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
30070
30071 2015-03-27 Marek Polacek <polacek@redhat.com>
30072
30073 PR sanitizer/65583
30074 * ubsan.c (ubsan_create_edge): New function.
30075 (instrument_bool_enum_load): Call it.
30076 (instrument_nonnull_arg): Likewise.
30077 (instrument_nonnull_return): Likewise.
30078 (instrument_object_size): Likewise.
30079
30080 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30081
30082 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
30083 auto_vec.
30084
30085 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30086
30087 PR lto/65536
30088 * lto-streamer.h (class lto_location_cache): New.
30089 (struct data_in): Add location_cache.
30090 (lto_input_location): Update prototype.
30091 (stream_input_location_now): New.
30092 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
30093 pointer to location.
30094 (stream_input_location): Update.
30095 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
30096 (warn_odr): Apply location cache before warning.
30097 (lto_input_location): Update prototype.
30098 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
30099 Use stream_input_location_now.
30100 * lto-streamer-in.c (lto_location_cache::current_cache): New static
30101 variable.
30102 (lto_location_cache::cmp_loc): New function.
30103 (lto_location_cache::apply_location_cache): New function.
30104 (lto_location_cache::accept_location_cache): New function.
30105 (lto_location_cache::revert_location_cache): New function.
30106 (lto_location_cache::input_location): New function.
30107 (lto_input_location): Do location caching.
30108 (stream_input_location_now): New function.
30109 (input_eh_region, input_struct_function_base): Use
30110 stream_input_location_now.
30111 (lto_data_in_create): use new.
30112 (lto_data_in_delete): Use delete.
30113 * tree-streamer-in.c (unpack_ts_block_value_fields,
30114 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
30115 lto_input_ts_exp_tree_pointers): Update for cached location api.
30116
30117 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30118
30119 PR ipa/65076
30120 * passes.def: Add pass_nothrow.
30121 * ipa-pure-const.c: (pass_data_nothrow): New.
30122 (pass_nothrow): New.
30123 (pass_nothrow::execute): New.
30124 (make_pass_nothrow): New.
30125 * tree-pass.h (make_pass_nothrow): Declare.
30126
30127 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30128
30129 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
30130 edge to change by speculation resolution or redirection.
30131 (edge_set_predicate): Likewise.
30132 (inline_summary_t::duplicate): Likewise.
30133 (remap_edge_summaries): Likewise.
30134
30135 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30136
30137 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
30138 New macros.
30139 (can_inline_edge_p): Relax option matching for always inline functions.
30140
30141 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
30142
30143 PR target/65561
30144 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
30145 Check operand 4 and operand 0 for equality.
30146 (avx512f_vextract<shuffletype>32x4_1_maskm):
30147 Check operand 6 and operand 0 for equality.
30148 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
30149 for equality.
30150 (vec_extract_hi_<mode>_maskm): Ditto.
30151
30152 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30153
30154 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
30155 dead calls back to live.
30156 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
30157 cross check to ...
30158 (cgraph_node::verify_node): ... here; verify only callee edges,
30159 not caller.
30160 * cif-code.def (CILK_SPAWN): New code.
30161
30162 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30163
30164 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
30165 (edge_set_predicate): Use it to mark unreachable edges.
30166 (inline_summary_t::duplicate): Remove unnecesary code.
30167 (remap_edge_summaries): Likewise.
30168 (dump_inline_summary): Report contains_cilk_spawn.
30169 (compute_inline_parameters): Compute contains_cilk_spawn.
30170 (inline_read_section, inline_write_summary): Stream
30171 contains_cilk_spawn.
30172 * ipa-inline.c (can_inline_edge_p): Do not touch
30173 DECL_STRUCT_FUNCTION that may not be available;
30174 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
30175 remove check for callee_fun->can_throw_non_call_exceptions and
30176 replace it by optimization attribute check; check for flag_exceptions.
30177 * ipa-inline-transform.c (inline_call): Maintain
30178 DECL_FUNCTION_PERSONALITY
30179 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
30180
30181 2015-03-26 Jakub Jelinek <jakub@redhat.com>
30182
30183 PR tree-optimization/65551
30184 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
30185 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
30186
30187 2015-03-26 Richard Biener <rguenther@suse.de>
30188
30189 PR middle-end/65555
30190 * tree-cfg.c (verify_gimple_call): Do not require a call to
30191 have no LHS if it wasn't recognized as control altering yet.
30192
30193 2015-03-26 Jakub Jelinek <jakub@redhat.com>
30194
30195 PR tree-optimization/64715
30196 * passes.def: Add another instance of pass_object_sizes before ccp1.
30197 * tree-object-size.c (pass_object_sizes::execute): In
30198 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
30199 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
30200 __bos result and the computed constant. Remove redundant
30201 checks, obsoleted by gimple_call_builtin_p test.
30202
30203 * var-tracking.c (variable_tracking_main_1): Don't track
30204 variables for targetm.no_register_allocation targets.
30205
30206 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
30207
30208 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
30209 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
30210
30211 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
30212
30213 PR target/65569
30214 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
30215 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
30216 0.0 is correctly setup.
30217 (extenddftf2_internal): Likewise.
30218
30219 2015-03-25 Sebastian Pop <s.pop@samsung.com>
30220
30221 PR tree-optimization/65177
30222 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
30223 (bb_in_bbs): New.
30224 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
30225 edges not adjacent on the path to the original code.
30226
30227 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
30228
30229 PR bootstrap/65537
30230 * doc/install.texi (Building a native compiler): Document new
30231 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
30232 configuration assumes that the host supports the linker plugin.
30233
30234 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
30235
30236 PR target/65508
30237 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
30238 chain for generated call.
30239
30240 2015-03-25 Richard Biener <rguenther@suse.de>
30241
30242 * passes.c (pass_manager::execute_early_local_passes): Guard
30243 execution of pass_chkp_instrumentation_passes with
30244 flag_check_pointer_bounds.
30245 (pass_chkp_instrumentation_passes::gate): Likewise.
30246
30247 2015-03-25 Martin Liska <mliska@suse.cz>
30248
30249 PR tree-optimization/65538
30250 * symbol-summary.h (function_summary::~function_summary):
30251 Relese memory for allocated summaries.
30252 (function_summary::release): New function.
30253
30254 2015-03-25 Jakub Jelinek <jakub@redhat.com>
30255
30256 PR lto/65515
30257 * lto-streamer-out.c (DFS::worklist): New struct.
30258 (DFS::worklist_vec): New data member.
30259 (DFS::next_dfs_num): Remove.
30260 (DFS::DFS): Rewritten using worklist instead of recursion,
30261 using most of code from DFS::DFS_write_tree.
30262 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
30263 pass it to DFS_write_tree calls.
30264 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
30265 quick initial checks push it into worklist_vec and return.
30266
30267 2015-03-25 Richard Biener <rguenther@suse.de>
30268
30269 PR middle-end/65519
30270 * genmatch.c (expr::gen_transform): Re-write to avoid
30271 using gimple_build.
30272
30273 2015-03-25 Bin Cheng <bin.cheng@arm.com>
30274
30275 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
30276
30277 2015-03-25 Bin Cheng <bin.cheng@arm.com>
30278
30279 * config/arm/arm.opt (print_tune_info): New option.
30280 * config/arm/arm.c (arm_print_tune_info): New function.
30281 (arm_file_start): Call arm_print_tune_info.
30282 * config/arm/arm-protos.h (struct tune_params): Add comment.
30283 * doc/invoke.texi (@item -mprint-tune-info): New item.
30284 (-mtune): mention it in ARM Option Summary.
30285
30286 2015-03-25 DJ Delorie <dj@redhat.com>
30287
30288 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
30289 correct clause.
30290
30291 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
30292 Martin Liska <mliska@suse.cz>
30293
30294 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
30295 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
30296 (sem_item::add_type): New function.
30297 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
30298 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
30299 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
30300 (sem_function::equals_wpa): Fix typo.
30301 * ipa-icf.h (sem_item::add_type): New function.
30302 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
30303 order.
30304
30305 2015-03-24 Jakub Jelinek <jakub@redhat.com>
30306
30307 PR tree-optimization/65533
30308 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
30309 with swapped operands, call vect_free_slp_tree on
30310 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
30311 vector.
30312
30313 2015-03-24 Richard Biener <rguenther@suse.de>
30314
30315 PR middle-end/65517
30316 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
30317 for fixup if necessary.
30318
30319 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
30320
30321 * doc/extend.texi (Function Attributes): Add @cindex entries
30322 for all attributes and regularize their format. Delete text
30323 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
30324 information about "eightbit_data", "tiny_data", and "model"
30325 variable attributes to the Variable Attributes section. Fix
30326 some obvious typos and copy-editing issues.
30327 (Variable Attributes, Type Attributes): Likewise add/fix
30328 @cindex entries for all attributes.
30329
30330 2015-03-23 Jakub Jelinek <jakub@redhat.com>
30331
30332 PR target/65523
30333 * tree-chkp.c (chkp_build_returned_bound): Ignore
30334 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
30335
30336 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
30337
30338 PR target/65505
30339 * config/sh/predicates.md (simple_mem_operand,
30340 displacement_mem_operand): Add test for reg.
30341 (short_displacement_mem_operand): Test for displacement_mem_operand
30342 before invoking sh_disp_addr_displacement.
30343 * config/sh/constraints.md (Sdd, Sra): Simplify.
30344 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
30345 Remove redundant displacement_mem_operand tests.
30346
30347 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
30348
30349 PR target/65296
30350 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
30351 the same -mmcu=MCU more than once.
30352
30353 2015-03-23 Jakub Jelinek <jakub@redhat.com>
30354
30355 PR bootstrap/65522
30356 * ipa-devirt.c: Remove duplicate demangle.h include.
30357
30358 PR target/65504
30359 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
30360 on the pseudo.
30361 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
30362 REG_POINTER on *destptr after adjusting it for prologue size.
30363
30364 PR ipa/65521
30365 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
30366 ultimate_alias_target ()->order ints instead of
30367 ultimate_alias_target () pointers.
30368
30369 2015-03-23 Richard Biener <rguenther@suse.de>
30370
30371 PR tree-optimization/65518
30372 * tree-vect-stmts.c (vectorizable_load): Reject single-element
30373 interleaving cases we generate absymal code for.
30374
30375 2015-03-23 Richard Biener <rguenther@suse.de>
30376
30377 PR tree-optimization/65494
30378 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
30379 matches here.
30380 (vect_analyze_slp_instance): But do that here, always and once.
30381
30382 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30383
30384 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
30385 adding T or multiplying by T+1 and subracting T.
30386
30387 2015-03-22 Jeff Law <law@redhat.com>
30388
30389 PR rtl-optimization/64317
30390 * Makefile.in (OBJS): Add gcse-common.c
30391 * gcse.c: Include gcse-common.h
30392 (struct modify_pair_s): Move structure definition to gcse-common.h
30393 (compute_transp): Move function to gcse-common.c.
30394 (canon_list_insert): Similarly.
30395 (record_last_mem_set_info): Break out some code and put it into
30396 gcse-common.c. Call into the new common code.
30397 (compute_local_properties): Pass additional arguments to compute_transp.
30398 * postreload-gcse.c: Include gcse-common.h and df.h
30399 (modify_mem_list_set, blocks_with_calls): New variables.
30400 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
30401 (get_bb_avail_insn): Pass in the expression index too.
30402 (alloc_mem): Allocate memory for the new bitmaps and lists.
30403 (free_mem): Free memory for the new bitmaps and lists.
30404 (insert_expr_in_table): Record a bitmap index for each entry we
30405 add to the table.
30406 (record_last_mem_set_info): Call into common code in gcse-common.c.
30407 (get_bb_avail_insn): If no available insn was found in the requested
30408 BB. If BB has a single predecessor, see if the expression is
30409 transparent in BB and available in that single predecessor.
30410 (compute_expr_transp): New wrapper for compute_transp.
30411 (eliminate_partially_redundant_load): Pass expression's bitmap_index
30412 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
30413 (gcse_after_reload_main): If there are elements in the hash table,
30414 then compute transparency for all the elements in the hash table.
30415 * gcse-common.h: New file.
30416 * gcse-common.c: New file.
30417
30418 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
30419
30420 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
30421 as an adjective.
30422 (System Headers): Likewise.
30423 (Ifdef): Likewise.
30424 (Traditional macros): Likewise.
30425 (Invocation): Likewise.
30426 (Option Index): Likewise.
30427 * doc/cppopts.texi (-M): Likewise.
30428 (-finput-charset): Likewise.
30429 (--help): Likewise.
30430 * doc.invoke.texi (AVR Options): Likewise.
30431 (V850 Options): Likewise.
30432
30433 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
30434
30435 PR ipa/65475
30436 * ipa-devirt.c: Include demangle.h
30437 (odr_type_d): Add field rtti_broken.
30438 (odr_subtypes_equivalent_p): Do not require name to match.
30439 (compare_virtual_tables): Fix typo; if type already has ODR violation,
30440 bypass the tests; be ready for function referneces in vtables that are
30441 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
30442 (warn_odr): Give up for nameless types.
30443 (warn_types_mismatch): Report mismatch in mangled names;
30444 report mismatch in anonymous namespaces; look into component types to
30445 give useful error; report when mismatch is dragged in from other ODR
30446 type.
30447 (odr_types_equivalent_p): Match types for being polymorphic; avoid
30448 duplicated diagnostics.
30449 (add_type_duplicate): Reorder checks so more informative ones come
30450 first; fix typo; do not output "the extra base is defined here" when
30451 we did not warn.
30452 (BINFO_N_BASE_BINFOS): Relax sanity check.
30453
30454 2015-03-22 Martin Liska <mliska@suse.cz>
30455 Jakub Jelinek <jakub@redhat.com>
30456
30457 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
30458 masks that can potentially include a builtin.
30459 (ix86_add_new_builtins): Introduce fast filter for isa values
30460 that cannot trigger builtin inclusion.
30461
30462 2015-03-22 Martin Liska <mliska@suse.cz>
30463
30464 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
30465 (sem_item::update_hash_by_local_refs): Likewise.
30466 (sem_variable::get_hash): Empty line is fixed.
30467 (sem_item_optimizer::execute): Include adding of hash references.
30468 (sem_item_optimizer::update_hash_by_addr_refs): New function.
30469 (sem_item_optimizer::build_hash_based_classes): Use local hash.
30470 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
30471 (sem_item::update_hash_by_local_refs): Likewise.
30472
30473 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
30474
30475 PR ipa/65502
30476 * ipa-comdats.c (enqueue_references): Walk through thunks.
30477 (ipa_comdats): Likewise.
30478 (set_comdat_group_1): New function.
30479
30480 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
30481
30482 PR ipa/65475
30483 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
30484 non-polymorphic
30485
30486 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
30487 Gerald Pfeifer <gerald@pfeifer.com>
30488
30489 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
30490
30491 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
30492 Sandra Loosemore <sandra@codesourcery.com>
30493
30494 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
30495 function parameter declaration.
30496 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
30497 Update arguments to nios2_adjust_call_address().
30498 (sibcall_internal): Rename from *sibcall.
30499 (sibcall_value_internal): Rename from *sibcall_value.
30500 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
30501 (nios2_large_got_address): Add target temp reg parameter.
30502 (nios2_got_address): Adjust call to nios2_large_got_address, add
30503 force_reg around it.
30504 (nios2_load_pic_address): Add target temp reg parameter, replace call
30505 to nios2_got_address with corresponding code.
30506 (nios2_legitimize_constant_address): Update call to
30507 nios2_load_pic_address.
30508 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
30509 to use temp reg for PIC loading purposes.
30510 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
30511 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
30512 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
30513
30514 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
30515
30516 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
30517 usage of "the @option{...}".
30518 (-Wopenmp-simd): Likewise.
30519 (-fsanitize-recover): Likewise.
30520 (-fsanitize-undefined-trap-on-error): Likewise.
30521 (-flto): Likewise.
30522 (tracer-dynamic-coverage-feedback): Likewise.
30523 (reorder-block-duplicate-feedback): Likewise.
30524 (loop-unroll-jam-size): Likewise.
30525 (-B): Likewise.
30526 (-I-): Likewise.
30527 (-mabs=legacy): Likewise.
30528 (-mupper-regs-df): Likewise.
30529 (-mupper-regs-sf): Likewise.
30530 (-mpointers-to-nested-functions): Likewise.
30531
30532 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
30533
30534 * doc/extend.texi (Cilk Plus Builtins): Add markup.
30535
30536 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
30537
30538 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
30539 additional index entries and cross-references.
30540 (-fchkp-check-incomplete-type): Likewise.
30541 (-fchkp-first-field-has-own-bounds): Likewise.
30542 (-fchkp-narrow-to-innermost-array): Likewise.
30543 (-fchkp-use-fast-string-functions): Likewise.
30544 (-fchkp-use-nochk-string-functions): Likewise.
30545 (-fchkp-use-static-const-bounds): Likewise.
30546 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
30547 (-fchkp-instrument-marked-only): Likewise.
30548 (-fchkp-use-wrappers): Likewise.
30549 (-static-libmpx): Likewise.
30550 (-static-libmpxwrappers): Likewise.
30551 * doc/extend.texi (bnd_legacy): Likewise.
30552 (bnd_instrument): Likewise.
30553 (bnd_variable_size): Likewise.
30554 (Pointer Bounds Checker builtins): Likewise.
30555
30556 2015-03-21 Tom de Vries <tom@codesourcery.com>
30557
30558 PR tree-optimization/65458
30559 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
30560 * cgraph.h (cgraph_node): Add parallelized_function field.
30561 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
30562 (input_overwrite_node): Read parallelized_function field.
30563 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
30564 parallelized_function on cgraph_node for child_fn.
30565 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
30566 Remove include of gt-tree-parloops.h.
30567 (parallelized_functions): Remove static variable.
30568 (parallelized_function_p): Rewrite using parallelized_function field of
30569 cgraph_node.
30570 (create_loop_fn): Remove adding to parallelized_functions.
30571 * Makefile.in (GTFILES): Remove tree-parloops.c
30572
30573 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
30574
30575 PR rtl-optimization/64366
30576 * lra.c (lra_update_insn_regno_info): Consider regs in
30577 CALL_INSN_FUNCTION_USAGE memory.
30578
30579 2015-03-20 Richard Biener <rguenther@suse.de>
30580
30581 PR middle-end/64715
30582 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
30583 for type comparison and gcc_checking_assert.
30584 (chrec_fold_plus_poly_poly): Likewise.
30585 (chrec_fold_multiply_poly_poly): Likewise.
30586 (chrec_convert_1): Likewise.
30587 * gimplify.c (gimplify_expr): Remove premature folding of
30588 &X + CST to &MEM[&X, CST].
30589
30590 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
30591
30592 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
30593 already is final.
30594 (ipa_inline): Recompute inline_failed codes.
30595 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
30596 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
30597 CIF_FINAL_ERROR.
30598
30599 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
30600
30601 PR rtl-optimization/60851
30602 * recog.c (constrain_operands): Accept a pseudo register before reload
30603 for LRA enabled targets.
30604
30605 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
30606
30607 PR target/65240
30608 * config/rs6000/predicates.md (easy_fp_constant): Remove special
30609 -ffast-math handling that kept non-0 constants live in the RTL
30610 until reload. Remove logic testing the number of instructions it
30611 took to create a constant in a GPR that was never used, due to a
30612 test for soft-float earlier.
30613 (memory_fp_constant): Delete, no longer used.
30614
30615 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
30616 alternatives for loading non-0 constants into GPRs for hard
30617 floating point that is no longer needed due to changes in
30618 easy_fp_constant. Add support for loading 0.0 into GPRs.
30619 (mov<mode>_hardfloat32): Likewise.
30620 (mov<mode>_hardfloat64): Likewise.
30621 (mov<mode>_64bit_dm): Likewise.
30622 (movtd_64bit_nodm): Likewise.
30623 (pre-reload move FP constant define_split): Delete define_split,
30624 since it is no longer used.
30625 (extenddftf2_internal): Remove GHF constraints that are not valid
30626 for extenddftf2.
30627
30628 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
30629
30630 PR rtl-optimization/63491
30631 * lra-constraints.c (check_and_process_move): Use src instead of
30632 sreg. Remove some dead code.
30633
30634 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
30635
30636 PR ipa/65380
30637 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
30638 (sem_variable::merge): Likewise.
30639
30640 2015-03-19 Martin Liska <mliska@suse.cz>
30641
30642 PR ipa/65465
30643 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
30644 all fields of cgraph_thunk_info.
30645
30646 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
30647
30648 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
30649 clone instrumented thunks.
30650
30651 2015-03-19 Richard Biener <rguenther@suse.de>
30652
30653 Revert
30654 2015-03-10 Richard Biener <rguenther@suse.de>
30655
30656 PR middle-end/63155
30657 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
30658 * tree-ssa-coalesce.c: Include timevar.h.
30659 (attempt_coalesce): Handle graph being NULL.
30660 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
30661 Split out abnormal coalescing to ...
30662 (perform_abnormal_coalescing): ... this function.
30663 (coalesce_ssa_name): Perform abnormal coalescing without computing
30664 live/conflict.
30665 (verify_ssa_coalescing_worker): New function.
30666 (verify_ssa_coalescing): Likewise.
30667
30668 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
30669 Jakub Jelinek <jakub@redhat.com>
30670
30671 PR sanitizer/65400
30672 * tsan.c (instrument_gimple): Clear tail call flag on
30673 calls.
30674
30675 2015-03-19 Jakub Jelinek <jakub@redhat.com>
30676
30677 PR sanitizer/65400
30678 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
30679 call in the return bb.
30680 (find_split_points): Add RETURN_BB argument, don't call
30681 find_return_bb.
30682 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
30683 if true append TSAN_FUNC_EXIT internal call after the call to
30684 the split off function.
30685 (execute_split_functions): Call find_return_bb here.
30686 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
30687 Adjust find_split_points and split_function calls.
30688
30689 2015-03-18 DJ Delorie <dj@redhat.com>
30690
30691 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
30692 (iorqi3_virt): Likewise.
30693
30694 2015-03-18 Tom de Vries <tom@codesourcery.com>
30695
30696 * tree-parloops.c (parallelize_loops): Make static.
30697 * tree-parloops.h (parallelize_loops): Remove extern declaration.
30698
30699 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
30700
30701 PR middle-end/64491
30702 Revert:
30703 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
30704
30705 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
30706 condition would be removed due to undefined behaviour.
30707
30708 2015-03-18 Martin Liska <mliska@suse.cz>
30709
30710 PR ipa/65432
30711 * cgraph.c (cgraph_node::get_create): Remove unnecessary
30712 xstrdup_for_dump wrapper.
30713 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
30714 sem_item::name.
30715 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
30716 with xstrdup_for_dump.
30717 (sem_variable::equals): Likewise.
30718 (sem_item_optimizer::read_section): Use symtab_node::name instead of
30719 sem_item::name.
30720 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
30721 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
30722 symtab_node::asm_name with xstrdup_for_dump.
30723 (congruence_class::dump): Use symtab_node::name instead of
30724 sem_item::name.
30725 * ipa-icf.h (symtab_node::name): Remove.
30726 (symtab_node::asm_name): Likewise.
30727
30728 2015-03-18 Jakub Jelinek <jakub@redhat.com>
30729
30730 PR tree-optimization/65450
30731 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
30732 function.
30733 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
30734 it instead of duplicate_ssa_name_ptr_info.
30735
30736 PR target/65222
30737 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
30738
30739 2015-03-18 Richard Biener <rguenther@suse.de>
30740
30741 * tree-data-ref.h (struct access_matrix): Remove.
30742 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
30743 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
30744 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
30745 (am_vector_index_for_loop): Likewise.
30746 (struct data_reference): Remove access_matrix member.
30747 (DR_ACCESS_MATRIX): Remove.
30748 (lambda_vector_new): Add comment.
30749 (lambda_matrix_new): Use XOBNEWVEC.
30750
30751 2015-03-18 Richard Biener <rguenther@suse.de>
30752
30753 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
30754 (pass_ch::execute): Cleanup the CFG only if we did sth.
30755 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
30756
30757 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30758
30759 * expmed.c (synth_mult): Use std::swap instead of manually
30760 swapping algorithms.
30761
30762 2015-03-18 Jakub Jelinek <jakub@redhat.com>
30763
30764 PR target/65078
30765 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
30766
30767 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
30768
30769 PR target/65296
30770 * config/avr/avr.opt (-nodevicelib): New option.
30771 * doc/invoke.texi (AVR Options): Document it.
30772 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
30773 libgcc.a, libc.a, libm.a.
30774 * config/avr/specs.h: Same.
30775 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
30776 which don't (directly) depend on the device. Print more help.
30777 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
30778 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
30779 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
30780 case of an error.
30781 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
30782 for specs file name.
30783 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
30784 * config/avr/avr-mcus.def: Adjust initializers and comments.
30785
30786 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
30787
30788 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
30789 DECL_ONE_ONLY to check if decl is one only.
30790 * ipa-split.c (consider_split): Limit splitt of one only functions.
30791
30792 2015-03-16 Jakub Jelinek <jakub@redhat.com>
30793
30794 PR tree-optimization/65427
30795 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
30796 functions.
30797 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
30798
30799 2015-03-16 Marek Polacek <polacek@redhat.com>
30800
30801 * cgraph.h (add_new_static_var): Remove declaration.
30802 * varpool.c (add_new_static_var): Remove function.
30803
30804 2015-03-16 Jakub Jelinek <jakub@redhat.com>
30805
30806 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
30807 instead of vec<tree> * with vec_alloc and release for args.
30808 Adjust all users.
30809
30810 PR middle-end/65431
30811 * omp-low.c (delete_omp_context): Only splay_tree_delete
30812 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
30813 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
30814
30815 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
30816
30817 PR sanitizer/64820
30818 * cfgexpand.c (align_base): New function.
30819 (alloc_stack_frame_space): Call it.
30820 (expand_stack_vars): Align prev_frame to be sure
30821 data->asan_vec elements aligned properly.
30822
30823 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
30824
30825 PR middle-end/65409
30826 * expr.c (store_field): Do not do a direct block copy if the source is
30827 a PARALLEL with BLKmode.
30828
30829 2015-03-16 Tom de Vries <tom@codesourcery.com>
30830
30831 PR middle-end/65414
30832 Revert:
30833 2015-03-12 Tom de Vries <tom@codesourcery.com>
30834
30835 PR rtl-optimization/64895
30836 * lra-lives.c (check_pseudos_live_through_calls): Use
30837 actual_call_used_reg_set instead of call_used_reg_set, if available.
30838
30839 2015-03-16 Alan Modra <amodra@gmail.com>
30840
30841 PR target/63150
30842 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
30843 Modify Z->r bswapdi splitter to use dest in place of scratch.
30844 In r->Z and Z->r bswapdi splitter rename word_high, word_low
30845 to word1, word2 and rearrange logic to suit.
30846 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
30847 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
30848 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
30849 Add one '?' on r->r. Modify Z->r splitter to avoid need for
30850 early clobber.
30851
30852 2015-03-14 Jakub Jelinek <jakub@redhat.com>
30853
30854 PR tree-optimization/65369
30855 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
30856 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
30857 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
30858
30859 PR tree-optimization/65418
30860 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
30861 are casts in the first PLUS_EXPR operand, ensure tbias and
30862 *totallowp are in the inner type.
30863
30864 PR rtl-optimization/65401
30865 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
30866 argument. If true, adjust_address_nv of x with big-endian
30867 correction for the mode widening to GET_MODE (y).
30868 (make_field_assignment): Don't do MEM mode widening here.
30869 Use MEM_P instead of GET_CODE == MEM.
30870
30871 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
30872
30873 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
30874 the external decls.
30875
30876 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30877
30878 PR target/64600
30879 * config/arm/arm.c (arm_gen_constant, AND case): Use
30880 ARM_SIGN_EXTEND when constructing AND mask.
30881
30882 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
30883
30884 * graph.c (print_graph_cfg): Make function names visible and append
30885 parenthesis to it. Also make groups of basic blocks belonging to the
30886 same function visible.
30887
30888 2015-03-12 Richard Biener <rguenther@suse.de>
30889
30890 PR middle-end/44563
30891 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
30892 to avoid quadratic behavior with inline expansion splitting blocks.
30893 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
30894 with the successor if the predecessor will be merged with it.
30895 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
30896 entry block with its successor.
30897
30898 2015-03-13 Richard Biener <rguenther@suse.de>
30899
30900 PR middle-end/44563
30901 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
30902 (cleanup_tree_cfg_1): Do not call it.
30903 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
30904 (fixup_noreturn_call): Mark the stmt as control altering.
30905 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
30906 here.
30907 (pass_data_fixup_cfg): Produce a dump file.
30908 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
30909 (need_noreturn_fixup): New global.
30910 (pass_dominator::execute): Fixup queued noreturn calls.
30911 (optimize_stmt): Queue calls that became noreturn for fixup.
30912 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
30913 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
30914 (el_to_fixup): New global.
30915 (eliminate_dom_walker::before_dom_childre): Queue calls that
30916 became noreturn for fixup.
30917 (eliminate): Fixup queued noreturn calls.
30918 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
30919 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
30920 (substitute_and_fold_dom_walker::before_dom_children): Queue
30921 alls that became noreturn for fixup.
30922 (substitute_and_fold): Fixup queued noreturn calls.
30923
30924 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
30925
30926 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
30927 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
30928 are building; for methods check ODR type of class they belong to if
30929 they may lead to a polymorphic call.
30930 (sem_function::compare_polymorphic_p): Be bit smarter about testing
30931 when function may lead to a polymorphic call.
30932 (sem_function::compare_type_list): Remove.
30933 (sem_variable::equals): Update use of compatible_types_p.
30934 (sem_variable::parse_tree_refs): Remove.
30935 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
30936 cdtor.
30937 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
30938 matching here.
30939 (func_checker::compatible_polymorphic_types_p): Break out from ...
30940 (unc_checker::compatible_types_p): ... here.
30941 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
30942 Declare.
30943 (unc_checker::compatible_types_p): Update.
30944 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
30945 Remove.
30946
30947 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30948
30949 PR rtl-optimization/65235
30950 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
30951 When first element of vec_concat is const_int, calculate its size
30952 using second element.
30953
30954 2015-03-12 Richard Biener <rguenther@suse.de>
30955
30956 PR middle-end/65270
30957 * fold-const.c (operand_equal_p): Fix ordering of resetting
30958 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
30959
30960 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
30961
30962 * config/s390/s390.c (s390_reorg): Move code to output nops after label
30963 to s390_reorg ().
30964 (s390_asm_output_function_label): Likewise.
30965 * config/s390/s390.c (s390_asm_output_function_label):
30966 Fix function label alignment with -mhtopatch.
30967 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
30968 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
30969 ("nop_2_byte"): New define_insn.
30970 ("nop_4_byte"): Likewise.
30971 ("nop_6_byte"): Likewise.
30972 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
30973 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
30974
30975 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
30976
30977 PR target/65103
30978 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
30979 register.
30980
30981 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
30982
30983 PR target/65044
30984 * toplev.c (process_options): Restrict Pointer Bounds Checker
30985 usage with Address Sanitizer.
30986
30987 2015-03-12 Richard Biener <rguenther@suse.de>
30988
30989 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
30990 to split on.
30991 * omp-low.c (expand_omp_taskreg): Split block before removing
30992 the stmt.
30993 (expand_omp_target): Likewise.
30994 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
30995 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
30996 stmt to split_block.
30997
30998 2015-03-12 Tom de Vries <tom@codesourcery.com>
30999
31000 PR rtl-optimization/64895
31001 * lra-lives.c (check_pseudos_live_through_calls): Use
31002 actual_call_used_reg_set instead of call_used_reg_set, if available.
31003
31004 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
31005
31006 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
31007 (cgraph_node::remove): Likewise.
31008 (cgraph_node::get_untransformed_body): Likewise.
31009 * varpool.c (varpool_node::remove): Likewise.
31010 (varpool_node::get_constructor): Add sanity check.
31011
31012 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
31013
31014 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
31015 old GCC versions.
31016 (-fabi-compat-version): Likewise.
31017 (-ffriend-injection): Likewise.
31018 (-Wdeclaration-after-statement): Likewise.
31019 (-fomit-frame-pointer): Likewise.
31020 (-ftree-coalesce-inlined-vars): Likewise.
31021 (-fvisibility=): Likewise.
31022 * doc/extend.texi (Typeof): Likewise.
31023 (Zero Length): Likewise.
31024 (Escaped Newlines): Likewise.
31025 (Compound Literals): Likewise.
31026 (Function Attributes): Likewise.
31027 (Label Attributes): Likewise.
31028 (Type Attributes): Likewise.
31029 (Function Names): Likewise.
31030 (Other Builtins): Likewise.
31031 (Function Specific Option Pragmas): Likewise.
31032 (C++ Interface): Likewise.
31033
31034 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
31035
31036 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
31037
31038 2015-03-11 Marek Polacek <polacek@redhat.com>
31039
31040 PR tree-optimization/65388
31041 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
31042
31043 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
31044
31045 PR target/65296
31046 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
31047 * configure: Regenerate.
31048 * config.in: Regenerate.
31049 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
31050 [-mn-flash]: Document it.
31051 [__AVR_ARCH__]: Document avrtiny.
31052
31053 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
31054 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
31055 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
31056
31057 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31058
31059 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
31060
31061 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
31062
31063 PR target/65242
31064 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
31065 allow reloads of PLUS in floating point/VSX registers.
31066
31067 2015-03-11 Junmo Park <junmoz.park@samsung.com>
31068
31069 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
31070 crypto_sha256_fast.
31071 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
31072
31073 2015-03-11 Richard Biener <rguenther@suse.de>
31074
31075 PR tree-optimization/65310
31076 * tree-sra.c (build_ref_for_offset): Also preserve larger
31077 alignment.
31078
31079 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
31080
31081 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
31082
31083 2015-03-10 Jakub Jelinek <jakub@redhat.com>
31084
31085 PR target/65368
31086 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
31087 new define_expand.
31088 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
31089
31090 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
31091
31092 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
31093 (sem_function::equals_wpa): ... here.
31094
31095 2015-03-10 Marek Polacek <polacek@redhat.com>
31096 Jakub Jelinek <jakub@redhat.com>
31097
31098 PR sanitizer/65367
31099 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
31100 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
31101 separately.
31102
31103 2015-03-10 Jakub Jelinek <jakub@redhat.com>
31104
31105 PR target/65286
31106 * config/rs6000/t-linux: For powerpc64* target set
31107 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
31108
31109 2015-03-10 Richard Biener <rguenther@suse.de>
31110
31111 PR middle-end/44563
31112 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
31113 for redirect_all_calls.
31114
31115 2015-03-10 Marek Polacek <polacek@redhat.com>
31116
31117 * gdbinit.in (pcfun): Define and document.
31118
31119 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
31120
31121 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
31122 of libgomp-plugin.h.
31123 (find_target_compiler): Support a case when the path to gcc is
31124 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
31125 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
31126 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
31127 libgomp-plugin.h.
31128 (main): Use GCC_INSTALL_NAME as target_driver_name.
31129 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
31130 define.
31131 (mkoffload.o): Remove obsolete include path and defines.
31132 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
31133
31134 2015-03-10 Richard Biener <rguenther@suse.de>
31135
31136 PR middle-end/63155
31137 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31138 * tree-ssa-coalesce.c: Include timevar.h.
31139 (attempt_coalesce): Handle graph being NULL.
31140 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31141 Split out abnormal coalescing to ...
31142 (perform_abnormal_coalescing): ... this function.
31143 (coalesce_ssa_name): Perform abnormal coalescing without computing
31144 live/conflict.
31145 (verify_ssa_coalescing_worker): New function.
31146 (verify_ssa_coalescing): Likewise.
31147
31148 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
31149
31150 PR target/65296
31151 * config.gcc (extra_options) [avr]: Remove.
31152 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
31153 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
31154 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
31155
31156 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
31157 (-mmcu=): Add Var and MissingArgError properties.
31158 (-march=): Remove.
31159 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
31160 * config/avr/t-multilib: Regenerate.
31161 * config/avr/specs.h: New file.
31162 * config/avr/driver-avr.c: New file.
31163 * config/avr/genopt.sh: Remove file.
31164 * config/avr/avr-tables.opt: Remove file.
31165 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
31166 * config/avr/avr-c.c: Same.
31167 * avr-arch.h: Same.
31168 (avr_current_device): Remove proto.
31169 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
31170 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
31171 (EXTRA_SPEC_FUNCTIONS): Define.
31172 (avr_devicespecs_file): New specs function proto.
31173 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
31174 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
31175 (avr_current_device): Remove definition and usage.
31176 (avr_set_core_architecture): New static function.
31177 (avr_option_override): Use it.
31178 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
31179 (mcu_name): New static array.
31180 (comparator, avr_archs_str, avr_mcus_str): New static functions.
31181 (avr_inform_devices, avr_inform_core_architectures): New functions.
31182 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
31183 (avrlibc.h) [WITH_AVRLIBC]: Include.
31184 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
31185 (print_mcu): Rewrite from scratch.
31186 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
31187 Forward to avr-specific specs defined in device-specs file.
31188 * config/avr/t-avr (driver-avr.o): New rule.
31189 (avr-devices.o): Depend on avr-arch.h.
31190 (avr-mcus): No more depend on avr-tables.opt.
31191 (avr-tables.opt): Remove rule.
31192 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
31193
31194 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31195
31196 * c-family/c.opt (fchkp-use-wrappers): New.
31197 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
31198 (chkp_wrap_function): New.
31199 (chkp_build_instrumented_fndecl): Support wrapped
31200 functions.
31201 * doc/invoke.texi (-fcheck-pointer-bounds): New.
31202 (-fchkp-check-incomplete-type): New.
31203 (-fchkp-first-field-has-own-bounds): New.
31204 (-fchkp-narrow-bounds): New.
31205 (-fchkp-narrow-to-innermost-array): New.
31206 (-fchkp-optimize): New.
31207 (-fchkp-use-fast-string-functions): New.
31208 (-fchkp-use-nochk-string-functions): New.
31209 (-fchkp-use-static-bounds): New.
31210 (-fchkp-use-static-const-bounds): New.
31211 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
31212 (-fchkp-check-read): New.
31213 (-fchkp-check-write): New.
31214 (-fchkp-store-bounds): New.
31215 (-fchkp-instrument-calls): New.
31216 (-fchkp-instrument-marked-only): New.
31217 (-fchkp-use-wrappers): New.
31218 (-static-libmpx): New.
31219 (-static-libmpxwrappers): New.
31220
31221 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31222
31223 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
31224 (CHKP_SPEC): Add wrappers library.
31225 * c-family/c.opt (static-libmpxwrappers): New.
31226
31227 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31228
31229 * config/i386/linux-common.h (LIBMPX_LIBS): New.
31230 (LIBMPX_SPEC): New.
31231 (CHKP_SPEC): New.
31232 * gcc.c (CHKP_SPEC): New.
31233 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
31234 * c-family/c.opt (static-libmpx): New.
31235
31236 2015-03-10 Richard Biener <rguenther@suse.de>
31237
31238 PR middle-end/44563
31239 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
31240 for compare_type.
31241 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
31242 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
31243 (cgraph_add_edge_to_call_site_hash): Likewise.
31244 (cgraph_node::get_edge): Likewise.
31245 (cgraph_edge::set_call_stmt): Likewise.
31246 (cgraph_edge::remove_caller): Likewise.
31247
31248 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
31249
31250 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
31251 (callee_saved_gpr_regs_size): ... this.
31252 (callee_saved_regs_first_regno): Rename to ...
31253 (callee_saved_first_gpr_regno): ... this.
31254 (callee_saved_regs_last_regno) Rename to ...
31255 (callee_saved_last_gpr_regno): ... this.
31256 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
31257 variables.
31258 (nds32_initial_elimination_offset): Likewise.
31259 (nds32_expand_prologue): Likewise.
31260 (nds32_expand_epilogue): Likewise.
31261 (nds32_expand_prologue_v3push): Likewise.
31262 (nds32_expand_epilogue_v3pop): Likewise.
31263 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
31264 Adjust renamed variables.
31265 (nds32_output_stack_pop): Likewise.
31266
31267 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
31268
31269 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
31270 code in comment.
31271
31272 2015-03-10 Jakub Jelinek <jakub@redhat.com>
31273
31274 PR rtl-optimization/65321
31275 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
31276 than shift mode.
31277 * var-tracking.c (use_narrower_mode): Likewise.
31278
31279 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
31280
31281 PR tree-optimization/65355
31282 * varasm.c (notice_global_symbol): Do not produce RTL.
31283 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
31284 anchor.
31285 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
31286 check for section anchors.
31287
31288 2015-03-10 Alan Modra <amodra@gmail.com>
31289
31290 PR target/65286
31291 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
31292 to be single-arch by default. Set cpu_is_64bit for powerpc64
31293 given --with-cpu=native.
31294 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
31295 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
31296 and powerpc64le.
31297 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
31298 rs6000_isa_flags rather than TARGET_64BIT.
31299
31300 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
31301 Kaz Kojima <kkojima@gcc.gnu.org>
31302
31303 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
31304
31305 2015-03-09 Jakub Jelinek <jakub@redhat.com>
31306
31307 PR lto/65361
31308 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
31309 on a TREE_BINFO, instead use BINFO_TYPE.
31310
31311 2015-03-09 Richard Biener <rguenther@suse.de>
31312
31313 PR middle-end/65270
31314 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
31315 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
31316 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
31317 of that. When comparing dereferences compare alignment.
31318 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
31319
31320 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
31321
31322 * ipa-inline-analysis.c (check_callers): Check
31323 node->can_remove_if_no_direct_calls_and_refs_p.
31324 (growth_likely_positive): Reorganize to call
31325 can_remove_if_no_direct_calls_p later.
31326 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
31327 will_be_removed_from_program_if_no_direct_calls_p): Add
31328 will_inline parameter.
31329 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
31330 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
31331 Handle inliner case correctly.
31332
31333 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
31334
31335 PR tree-optimization/63743
31336 * cfgexpand.c (reorder_operands): Also reorder if only second operand
31337 had its definition forwarded by TER.
31338
31339 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
31340
31341 PR lto/65316
31342 * ipa-utils.h (types_odr_comparable): Add strict argument.
31343 * ipa-devirt.c: Fix whitespace;
31344 (odr_hasher): Remove.
31345 (odr_name_hasher, odr_vtable_hasher): New hashers.
31346 (can_be_name_hashed_p): New predicate.
31347 (hash_type_name): remove.
31348 (hash_odr_name): New.
31349 (odr_name_hasher::hash): new.
31350 (can_be_vtable_hashed_p): New.
31351 (hash_odr_vtable): New.
31352 (odr_vtable_hasher::hash): New.
31353 (types_same_for_odr): Add strict parameter.
31354 (types_odr_comparable): Likewise.
31355 (odr_name_hasher::equal): New.
31356 (odr_vtable_hasher::equal): New.
31357 (odr_name_hasher::remove): New.
31358 (odr_hash_type): Change to hash_table<odr_name_hasher>.
31359 (odr_vtable_hash_type): New.
31360 (odr_vtable_hash): New.
31361 (odr_subtypes_equivalent_p): Do strict comparsion.
31362 (add_type_duplicate): Merge type names; cleanup; avoid type
31363 duplicates.
31364 (register_odr_type): Initialize vtable hash.
31365 (build_type_inheritance_graph): Likewise
31366 (get_odr_type): Reorg to use two hashes.
31367 (dump_possible_polymorphic_call_targets): Move sanity check after debug
31368 output.
31369 (ipa_devirt): Dump type_inheritance_graph.
31370 (types_same_for_odr): Add strict mode.
31371
31372 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31373
31374 PR ipa/65334
31375 * cgraph.h (symtab_node): Add definition_alignment,
31376 can_increase_alignment_p and increase_alignment.
31377 * symtab.c (symtab_node::can_increase_alignment_p,
31378 increase_alignment_1, symtab_node::increase_alignment,
31379 symtab_node::definition_alignment): New.
31380 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
31381 can_increase_alignment_p.
31382 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
31383 * tree-vect-stmts.c (ensure_base_align): Likewise.
31384 * varasm.c (function_section_1): Use definition_alignment.
31385 (assemble_start_function): Likewise.
31386 (emit_local): likewise.
31387 (build_constant_desc): Likewsie.
31388 (output_constant_def_contents): Likewise.
31389 (place_block_symbol): Likewise.
31390 (output_object_block): Likewise.
31391
31392 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31393
31394 PR ipa/65316
31395 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
31396 when outputting debug.
31397
31398 2015-03-07 Marek Polacek <polacek@redhat.com>
31399 Martin Uecker <uecker@eecs.berkeley.edu>
31400
31401 PR sanitizer/65280
31402 * doc/invoke.texi: Update description of -fsanitize=bounds.
31403
31404 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
31405
31406 * tree-ssa-phiopt.c (neg_replacement): Remove.
31407 (tree_ssa_phiopt_worker): Remove negate optimization.
31408
31409 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31410
31411 PR ipa/65302
31412 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
31413
31414 2015-03-06 Richard Biener <rguenther@suse.de>
31415
31416 PR middle-end/64928
31417 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
31418 and liveout_obstack members.
31419 (calculate_live_on_exit): Remove.
31420 (calculate_live_ranges): Change declaration.
31421 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
31422 (new_tree_live_info): Adjust.
31423 (calculate_live_ranges): Delete livein when not wanted.
31424 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
31425 Deal with partly deleted live info.
31426 (loe_visit_block): Remove temporary bitmap by using
31427 bitmap_ior_and_compl_into.
31428 (live_worklist): Adjust accordingly.
31429 (calculate_live_on_exit): Make static.
31430 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
31431 we do not need livein.
31432
31433 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
31434
31435 * real.c (real_from_string): Fix typo in assertion.
31436
31437 2015-03-06 Alex Velenko <alex.velenko@arm.com>
31438
31439 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
31440 the patch.
31441
31442 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31443
31444 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
31445
31446 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
31447
31448 PR target/64342
31449 * lra-assigns.c (find_hard_regno_for): Rename to
31450 find_hard_regno_for_1. Add a new parameter.
31451 (find_hard_regno_for): New function using find_hard_regno_for_1.
31452
31453 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
31454
31455 PR rtl-optimization/65067
31456 * expmed.c (store_bit_field, extract_bit_field): Reworked the
31457 strict volatile bitfield handling.
31458
31459 2015-03-05 Martin Liska <mliska@suse.cz>
31460
31461 PR ipa/65318
31462 * ipa-icf.c (sem_variable::equals): Compare variables types.
31463
31464 2015-03-05 Richard Henderson <rth@redhat.com>
31465
31466 PR target/65121
31467 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
31468 correctly check weak symbol binding.
31469
31470 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
31471
31472 PR middle-end/65315
31473 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
31474 needed alignment.
31475
31476 2015-03-05 Martin Liska <mliska@suse.cz>
31477
31478 * ipa-inline.c (inline_small_functions): Set default value to
31479 prevent warning during bootstrap.
31480 * tree.h: Add pragma guard that ignores false positives during
31481 bootstrap.
31482
31483 2015-03-05 Richard Biener <rguenther@suse.de>
31484
31485 PR tree-optimization/65310
31486 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31487 Properly preserve alignment of the base of the access.
31488
31489 2015-03-05 Richard Biener <rguenther@suse.de>
31490
31491 PR ipa/65270
31492 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
31493 Compare dependence info.
31494
31495 2015-03-05 Richard Biener <rguenther@suse.de>
31496
31497 PR middle-end/65233
31498 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
31499 tree-into-ssa.h.
31500 (walk_ssa_copies): Revert last chage. Instead do not walk
31501 SSA names registered for SSA update.
31502
31503 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
31504
31505 PR ipa/65270
31506 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
31507 vtable references for their containing type.
31508 (sem_function::equals_wpa): Compare TYPE_RESTRICT
31509 and type attributes.
31510
31511 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
31512
31513 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
31514 before negating it.
31515 * stor-layout.c (finalize_record_size): Revert latest change.
31516
31517 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
31518
31519 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
31520
31521 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
31522
31523 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
31524 for correct comdat handling.
31525 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
31526 Likewise.
31527 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
31528 (used_from_object_file_p_worker): Remove.
31529 (cgraph_node::only_called_directly_or_alised): Add
31530 used_from_object_file_p.
31531 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
31532 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
31533 can_remove_if_no_direct_calls_and_refs_p.
31534
31535 2015-03-04 Nick Clifton <nickc@redhat.com>
31536
31537 * config/rl78/rl78.h (enum reg_class): Remove real registers from
31538 General register class.
31539 * config/rl78/rl78-real.md: Replace general register constraints
31540 with real+virtual register constraints.
31541
31542 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31543
31544 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
31545 from checking for -mhtm option.
31546
31547 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
31548
31549 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
31550 (struct ipa_sra_check_caller_data): Add has_thunk field.
31551 (ipa_sra_check_caller): Check for thunk.
31552 (ipa_sra_preliminary_function_checks): Give up on function with
31553 thunks.
31554 (ipa_early_sra): Use call_for_symbol_and_aliases.
31555
31556 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
31557
31558 PR target/65249
31559 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
31560 called for __stack_chk_guard symbol.
31561
31562 2015-03-03 DJ Delorie <dj@redhat.com>
31563
31564 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
31565 inc/dec.
31566 (*addhi3_real): Likewise.
31567 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
31568 pattern to match incrementing memory.
31569 * config/rl78/predicates.md (rl78_1_2_operand): New.
31570 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
31571 it's the same and only mem.
31572 (rl78_alloc_physical_registers_op2): If there's effectively only
31573 one MEM, transcode it into HL.
31574 (rl78_far_p): Reject addresses that aren't legitimate.
31575
31576 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
31577
31578 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
31579 negating it.
31580
31581 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
31582
31583 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
31584
31585 Implement call0 ABI for xtensa
31586 * config/xtensa/constraints.md ("a" constraint): Include stack
31587 pointer in case of call0 ABI.
31588 ("q" constraint): Make empty in case of call0 ABI.
31589 ("D" constraint): Include stack pointer in case of call0 ABI.
31590 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
31591 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
31592 prototypes.
31593 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
31594 variable.
31595 (xtensa_regno_to_class): Make it a local variable in the
31596 function xtensa_regno_to_class.
31597 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
31598 macro, function prototype and implementation.
31599 (reg_nonleaf_alloc_order): Make it a local variable in the
31600 function order_regs_for_local_alloc.
31601 (xtensa_conditional_register_usage): New function.
31602 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
31603 (xtensa_valid_move): Allow direct moves to stack pointer
31604 register in call0 ABI.
31605 (xtensa_setup_frame_addresses): Only spill register windows in
31606 windowed ABI.
31607 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
31608 call0 ABI respectively.
31609 (xtensa_function_arg_1): Only mark a7 register for copying in
31610 windowed ABI.
31611 (xtensa_call_save_reg): New function.
31612 (compute_frame_size): Add space for callee saved register
31613 storage to the frame size in call0 ABI.
31614 (xtensa_expand_prologue): Generate code to set up stack frame
31615 and save callee-saved registers in call0 ABI.
31616 (xtensa_expand_epilogue): New function.
31617 (xtensa_set_return_address): New function.
31618 (xtensa_return_addr): Calculate return address in call0 ABI.
31619 (xtensa_builtin_saveregs): Only mark a7 register for copying and
31620 emit copying code in windowed ABI.
31621 (order_regs_for_local_alloc): Add preferred register allocation
31622 order for non-leaf function in call0 ABI.
31623 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
31624 (xtensa_asm_trampoline_template): Add trampoline generation for
31625 call0 ABI.
31626 (xtensa_trampoline_init): Add trampoline initialization for
31627 call0 ABI.
31628 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
31629 functions.
31630 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
31631 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
31632 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
31633 ABI call-used registers.
31634 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
31635 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
31636 call0 ABI.
31637 (REG_CLASS_CONTENTS): Include all registers into the preferred
31638 reload registers set, adjust the set in the
31639 xtensa_conditional_register_usage.
31640 (xtensa_regno_to_class): Drop variable declaration.
31641 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
31642 function.
31643 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
31644 respectively.
31645 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
31646 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
31647 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
31648 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
31649 location in call0 ABI.
31650 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
31651 stack adjustment size when handling exception.
31652 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
31653 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
31654 definitions.
31655 ("return" pattern): Generate ret.n/ret in call0 ABI.
31656 ("epilogue" pattern): Expand epilogue.
31657 ("nonlocal_goto" pattern): Use default in call0 ABI.
31658 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
31659 emit eh_set_a0_* depending on ABI.
31660 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
31661 ("eh_set_a0_call0", "blockage"): New patterns.
31662
31663 2015-03-03 Martin Liska <mliska@suse.cz>
31664
31665 PR ipa/65287
31666 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
31667
31668 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
31669
31670 PR 65138/target
31671 * config/rs6000/rs6000-tables.opt: Regenerate table.
31672
31673 2015-03-03 Renlin Li <renlin.li@arm.com>
31674
31675 * doc/md.texi (@item ^): Change ? into ^.
31676
31677 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
31678
31679 * doc/tm.texi: Regenerated.
31680
31681 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
31682
31683 * builtins.c (expand_builtin_return_addr): Add
31684 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
31685 surrounding #ifdef.
31686 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
31687 definition to 1.
31688 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
31689 Likewise.
31690 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
31691 undefined.
31692 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
31693 paragraph.
31694
31695 2015-03-03 Martin Jambor <mjambor@suse.cz>
31696 Eric Botcazou <ebotcazou@adacore.com>
31697
31698 * tree-sra.c (ipa_sra_check_caller_data): New type.
31699 (has_caller_p): Removed.
31700 (ipa_sra_check_caller): New function.
31701 (ipa_sra_preliminary_function_checks): Use it.
31702
31703 2015-03-03 Martin Liska <mliska@suse.cz>
31704
31705 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
31706 instead of if branch.
31707
31708 2015-03-03 Martin Liska <mliska@suse.cz>
31709
31710 PR ipa/65282
31711 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
31712
31713 2015-03-23 Jeff Law <law@redhat.com>
31714
31715 PR tree-optimization/65241
31716 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
31717 hash table if INSERT is true.
31718
31719 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
31720
31721 PR target/65296
31722 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
31723
31724 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
31725
31726 PR target/64331
31727 * config/avr/avr.c (context.h, tree-pass.h): Include them.
31728 (avr_pass_data_recompute_notes): New static variable.
31729 (avr_pass_recompute_notes): New class.
31730 (avr_register_passes): New static function.
31731 (avr_option_override): Call it.
31732
31733 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
31734
31735 Fix various problems with specs file generation.
31736
31737 PR target/65296
31738 * config.gcc (extra_gcc_objs) [avr]: Remove.
31739 * config/avr/driver-avr.c: Remove file.
31740 * config/avr/t-avr (driver-avr.o): Remove rule.
31741 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
31742 INCLUDES to build. Depend on TM_H.
31743 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
31744 build warnings. Fix non-matching types and non-existing %-codes.
31745 (tm.h): Include.
31746 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
31747 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
31748 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
31749 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
31750 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
31751 (LIBGCC_SPEC): Remove definitions.
31752
31753 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
31754
31755 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
31756 to create a register in testing mode.
31757
31758 2015-03-03 Martin Liska <mliska@suse.cz>
31759 Jan Hubicka <hubicka@ucw.cz>
31760
31761 PR ipa/65263
31762 * cgraph.c (cgraph_node::has_thunk_p): New function.
31763 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
31764 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
31765 (sem_function::merge): Assert is changed.
31766
31767 2015-03-03 Martin Liska <mliska@suse.cz>
31768 Martin Jambor <mjambor@suse.cz>
31769
31770 PR ipa/65087
31771 * ipa-icf.c (sem_item_optimizer::execute): Change function
31772 return value to boolean.
31773 (sem_item_optimizer::merge_classes): Likewise.
31774 (ipa_icf_driver): Return TODO_remove_functions in case there's
31775 a merge operation processed.
31776 * ipa-icf.h: Change function return value to boolean.
31777
31778 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
31779
31780 PR 65138/target
31781 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
31782 processor type for 64-bit little endian PowerPC.
31783
31784 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31785 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
31786 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
31787 printing built-in mask so it does not pass NULL pointers.
31788
31789 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
31790 -mcpu=powerpc64le.
31791
31792 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
31793
31794 PR target/58158
31795 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
31796 !ISA_HAS_FP_CONDMOVE.
31797
31798 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
31799
31800 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
31801 reload_completed.
31802
31803 2015-03-02 Ulrich Drepper <drepper@gmail.com>
31804
31805 * doc/invoke.texi (Options for Code Generation Conventions):
31806 Fix URL of DSO paper.
31807
31808 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
31809
31810 PR ipa/65130
31811 * ipa-inline.c (check_callers): Looks for recursion.
31812 (inline_to_all_callers): Give up on uninlinable or recursive edges.
31813 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
31814 summary of inline clones.
31815 (do_estimate_growth_1): Fix recursion check.
31816
31817 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
31818
31819 PR ipa/64988
31820 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
31821 comdat groups.
31822
31823 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
31824 Aldy Hernandez <aldyh@redhat.com>
31825
31826 PR lto/65276
31827 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
31828 when checking TYPE_BINFO.
31829
31830 2015-03-02 Richard Biener <rguenther@suse.de>
31831
31832 PR ipa/65270
31833 * ipa-icf-gimple.c: Include builtins.h.
31834 (func_checker::compare_memory_operand): Compare base alignment.
31835
31836 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
31837
31838 PR target/65184
31839 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
31840 passed by reference.
31841
31842 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
31843
31844 PR target/65183
31845 * tree-chkp.c (chkp_check_lower): Don't check against
31846 zero bounds for already instrumented functions.
31847 (chkp_check_upper): Likewise.
31848 (chkp_fini): Clean pass local data to avoid wrong reusage.
31849
31850 2015-02-28 Martin Liska <mliska@suse.cz>
31851 Jan Hubicka <hubicka@ucw.cz>
31852
31853 * ipa-icf.c (sem_variable::equals): Improve debug output;
31854 get variable constructor.
31855 (sem_variable::parse): Do not filter out too early; give up on
31856 volatile and register vars.
31857 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
31858 variables.
31859 * ipa-icf.h (sem_variable::init): Do not set ctor.
31860 (sem_variable::ctor): Remove.
31861
31862 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
31863
31864 PR middle-end/65233
31865 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
31866
31867 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31868
31869 * ipa-icf.c: Include stor-layout.h
31870 (sem_function::compare_cgraph_references): Rename to ...
31871 (sem_item::compare_cgraph_references): ... this one.
31872 (sem_variable::equals_wpa): New function
31873 (sem_variable::equals): Do not check stuff already verified by
31874 equals_wpa.
31875 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
31876 * ipa-icf.h (sem_item): Add compare_cgraph_references.
31877 (sem_function): Remove compare_cgraph_references.
31878 (sem_variable): Turns equals_wpa into non-inline.
31879
31880 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31881
31882 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
31883 (sem_item::add_expr): New function.
31884 (sem_function::hash_stmt): Handle operands of most statements.
31885 (sem_variable::get_hash): Hash the actual constructor.
31886 * ipa-icf.h (sem_item): Add add_expr.
31887 (sem_function): Update prototype of hash_stmt
31888
31889 2015-02-28 Martin Liska <mliska@suse.cz>
31890 Jan Hubicka <hubicka@ucw.cz>
31891
31892 PR ipa/65245
31893 * ipa-icf-gimple.c (func_checker::compare_function_decl):
31894 Remove.
31895 (func_checker::compare_variable_decl): Skip symtab vars.
31896 (func_checker::compare_cst_or_decl): Update.
31897 * ipa-icf.c (sem_function::parse): Do not consider aliases.
31898 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
31899 use correct symtab predicates.
31900 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
31901 (sem_variable::parse): Update comment.
31902 (sem_item_optimizer::build_graph): Consider ultimate aliases
31903 for references.
31904
31905 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31906
31907 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
31908 of OBJ_TYPE_REF.
31909
31910 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31911
31912 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
31913 (sem_variable::merge) Likewise.
31914
31915 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31916
31917 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
31918 target; also match flag_ipa_devirt.
31919
31920 2015-03-01 Martin Liska <mliska@suse.cz>
31921 Jan Hubicka <hubicka@ucw.cz>
31922
31923 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
31924 Validate variable alignment.
31925 * ipa-icf.c (sem_function::equals_private): Be more precise
31926 about non-common function attributes.
31927 (sem_variable::equals): Likewise.
31928
31929 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31930
31931 PR ipa/65237
31932 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
31933 across COMDAT group boundary.
31934
31935 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31936
31937 PR ipa/65232
31938 * ipa-icf.c (clear_decl_rtl): New function.
31939 (sem_function::merge): Clear RTL before forming alias.
31940 (sem_variable::merge): Clear RTL before forming alias.
31941
31942 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31943
31944 PR ipa/65236
31945 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
31946
31947 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
31948
31949 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
31950 to neon_to_gp<q>.
31951
31952 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31953
31954 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
31955 a typo in the description.
31956
31957 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31958
31959 PR target/64317
31960 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
31961 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
31962 * lra-constraints.c: Include "params.h".
31963 (EBB_PROBABILITY_CUTOFF): Use
31964 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
31965 (lra_inheritance): Use '<' instead of '<=' for
31966 EBB_PROBABILITY_CUTOFF.
31967 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
31968 Document change.
31969
31970 2015-02-27 Martin Liska <mliska@suse.cz>
31971
31972 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
31973 vector length condition.
31974
31975 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
31976
31977 * doc/extend.texi (x86 transactional memory intrinsics):
31978 Reorganize discussion of _xbegin. Clarify that the return
31979 value is a bit mask. Expand example and move to end of section.
31980
31981 2015-02-26 Jakub Jelinek <jakub@redhat.com>
31982 Aldy Hernandez <aldyh@redhat.com>
31983
31984 PR rtl-optimization/65220
31985 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
31986
31987 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31988
31989 PR target/65032
31990 * lra-remat.c (update_scratch_ops): New.
31991 (do_remat): Call it.
31992 * lra.c (lra_register_new_scratch_op): New. Take code from ...
31993 (remove_scratches): ... here.
31994 * lra-int.h (lra_register_new_scratch_op): New prototype.
31995
31996 2015-02-27 Marek Polacek <polacek@redhat.com>
31997
31998 PR c/65040
31999 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
32000 -Wformat-signedness anymore.
32001
32002 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32003
32004 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
32005 function.
32006 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
32007
32008 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32009
32010 * config/s390/s390.c (enum s390_builtin):
32011 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
32012 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
32013 (s390_init_builtins): Generate new builtin functions.
32014 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
32015 (s390_sfpc, s390_efpc): New pattern definitions.
32016
32017 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32018
32019 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
32020 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
32021 (s390_builtin_decls): New array.
32022 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
32023 (s390_builtin_decl): New function.
32024 (TARGET_BUILTIN_DECL): Define macro.
32025
32026 2015-02-27 Richard Biener <rguenther@suse.de>
32027
32028 PR middle-end/63175
32029 * builtins.c (get_object_alignment_2): Make sure to re-apply
32030 the ANDed mask after recursing to its operand gets us a new
32031 misalignment bit position.
32032
32033 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
32034 Martin Liska <mliska@suse.cz>
32035
32036 PR bootstrap/65150
32037 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
32038 Use address_matters_p.
32039 (redirect_all_callers, set_addressable): New functions.
32040 (sem_function::merge): Reorganize and fix merging issues.
32041 (sem_variable::merge): Likewise.
32042 (sem_variable::compare_sections): Remove.
32043 * common.opt (fmerge-all-constants, fmerge-constants): Remove
32044 Optimization flag.
32045 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
32046 redirect them.
32047 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
32048 decl is used.
32049 (address_matters_1): New function.
32050 (symtab_node::address_matters_p): New function.
32051 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
32052 check for merged flag.
32053 * cgraph.h (address_matters_p): Declare.
32054 (symtab_node::address_taken_from_non_vtable_p): Remove.
32055 (symtab_node::address_can_be_compared_p): New method.
32056 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
32057 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
32058 Remove.
32059 (comdat_can_be_unshared_p_1) Use address_matters_p.
32060 (update_vtable_references): Fix formating.
32061 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
32062 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
32063 * cgraphclones.c: Preserve merged and icf_merged flags.
32064
32065 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
32066
32067 * doc/extend.texi (Function Attributes): Fix spelling and typos.
32068 (Label Attributes): Likewise.
32069 (Cilk Plus Builtins): Likewise.
32070 (ARC SIMD Built-in Functions): Likewise.
32071 (ARM C Language Extensions (ACLE)): Likewise.
32072 (PowerPC Built-in Functions): Likewise.
32073 (PowerPC Hardware Transactional Memory Built-in Functions):
32074 Likewise.
32075
32076 2015-02-26 Jakub Jelinek <jakub@redhat.com>
32077
32078 PR tree-optimization/65216
32079 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
32080 new stmt and new SSA_NAME for lhs whenever the arguments have
32081 changed and weren't just swapped. Fix comment typo.
32082
32083 PR tree-optimization/65215
32084 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
32085 for PDP endian targets.
32086 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
32087 Fix up formatting issues.
32088 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
32089 size is smaller than the original, adjust MEM_REF offset by the
32090 difference of sizes. Use is_gimple_mem_ref_addr instead of
32091 is_gimple_min_invariant test to avoid adding address temporaries.
32092
32093 2015-02-26 Martin Liska <mliska@suse.cz>
32094 Jan Hubicka <hubicka@ucw.cz>
32095
32096 PR ipa/64693
32097 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
32098 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
32099 (sem_item_optimizer::process_cong_reduction): Include division by
32100 sensitive references.
32101 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
32102 * ipa-ref.c (ipa_ref::address_matters_p): New function.
32103 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
32104
32105 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
32106
32107 PR target/65192
32108 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
32109 Remove.
32110 * config/avr/avr.c: Same.
32111 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
32112 Refuse any constant address not in 0..0xbf.
32113 * config/avr/avr.md (*mov<mode>, *movsf): Remove
32114 tiny_valid_direct_memory_access_range from insn conditions.
32115 (mov<mode>): Don't special-case expansion of avrtiny addresses.
32116
32117 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
32118
32119 PR target/61142
32120 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
32121 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
32122 * config/sh/predicates.md (const_logical_operand): New predicate.
32123 * config/sh/sh.md: Add new peephole2 patterns.
32124
32125 2015-02-26 Marek Polacek <polacek@redhat.com>
32126
32127 PR ipa/65008
32128 * ipa-inline.c (early_inliner): Recompute inline parameters.
32129
32130 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32131
32132 PR target/65171
32133 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
32134 instructions with TImode operands are included in the analysis.
32135
32136 2015-02-26 Sebastian Pop <s.pop@samsung.com>
32137
32138 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
32139 of an EDGE_FSM_THREAD.
32140
32141 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
32142
32143 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
32144
32145 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
32146
32147 PR debug/46102
32148 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
32149
32150 2015-02-26 Sebastian Pop <s.pop@samsung.com>
32151
32152 PR tree-optimization/65048
32153 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
32154 (thread_through_all_blocks): Call valid_jump_thread_path.
32155 Remove invalid FSM jump-thread paths.
32156
32157 2015-02-26 Jakub Jelinek <jakub@redhat.com>
32158
32159 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
32160 (ipa_write_optimization_summaries): Likewise.
32161 * tree-streamer.h: Include data-streamer.h.
32162 (streamer_mode_table): Declare extern variable.
32163 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
32164 * lto-streamer-out.c (lto_output_init_mode_table,
32165 lto_write_mode_table): New functions.
32166 (produce_asm_for_decls): Call lto_write_mode_table when streaming
32167 offloading LTO.
32168 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
32169 (lto_create_simple_input_block): Add mode_table argument to the
32170 lto_input_block constructors.
32171 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
32172 Likewise.
32173 * data-streamer-in.c (string_for_index): Likewise.
32174 * ipa-inline-analysis.c (inline_read_section): Likewise.
32175 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
32176 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
32177 * lto-streamer-in.c (lto_read_body_or_constructor,
32178 lto_input_toplevel_asms): Likewise.
32179 (lto_input_mode_table): New function.
32180 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
32181 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
32182 Use bp_pack_machine_mode.
32183 * real.h (struct real_format): Add name field.
32184 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
32185 (class lto_input_block): Add mode_table member.
32186 (lto_input_block::lto_input_block): Add mode_table_ argument,
32187 initialize mode_table.
32188 (struct lto_file_decl_data): Add mode_table field.
32189 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
32190 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
32191 unpack_ts_decl_common_value_fields,
32192 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
32193 * tree-streamer.c (streamer_mode_table): New variable.
32194 * real.c (ieee_single_format, mips_single_format,
32195 motorola_single_format, spu_single_format, ieee_double_format,
32196 mips_double_format, motorola_double_format,
32197 ieee_extended_motorola_format, ieee_extended_intel_96_format,
32198 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
32199 ibm_extended_format, mips_extended_format, ieee_quad_format,
32200 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
32201 decimal_single_format, decimal_double_format, decimal_quad_format,
32202 ieee_half_format, arm_half_format, real_internal_format): Add name
32203 field.
32204 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
32205
32206 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
32207
32208 PR target/65161
32209 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
32210 reordering for selective scheduling.
32211
32212 2015-02-26 Terry Guo <terry.guo@arm.com>
32213
32214 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
32215 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
32216 (arm_arch_no_volatile_ce): Declare new global variable.
32217 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
32218 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
32219 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
32220 (TARGET_NO_VOLATILE_CE): New macro.
32221 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
32222 volatile memory access in IT block
32223
32224 2015-02-25 Kai Tietz <ktietz@redhat.com>
32225
32226 PR tree-optimization/61917
32227 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
32228 that reduc_def_stmt is null.
32229
32230 2015-02-25 Martin Liska <mliska@suse.cz>
32231
32232 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
32233 hard register variables.
32234
32235 2015-02-25 Kai Tietz <ktietz@redhat.com>
32236
32237 PR target/64212
32238 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
32239 (symtab::noninterposable_alias): Likewise.
32240
32241 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
32242
32243 PR target/65167
32244 * config/i386/i386.c (ix86_function_arg_regno_p): Support
32245 bounds registers.
32246 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
32247
32248 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
32249
32250 PR target/64997
32251 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
32252 as split condition; force split via '#' in output pattern.
32253
32254 2015-02-25 Richard Biener <rguenther@suse.de>
32255 Kai Tietz <ktietz@redhat.com>
32256
32257 PR tree-optimization/61917
32258 * tree-vect-loop.c (vectorizable_reduction): Allow
32259 vect_internal_def without reduction to exit graceful.
32260
32261 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
32262
32263 PR target/65196
32264 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
32265 only with NONDEBUG_INSN_P.
32266
32267 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
32268
32269 Use variadic macros with avr-log.c.
32270
32271 * config/avr/avr-protos.h (avr_vdump): New prototype.
32272 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
32273 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
32274 * config/avr/avr-log.c: Adjust comments.
32275 (avr_vdump): New function.
32276 (avr_vadump): Pass caller as 2nd argument instead of format string.
32277 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
32278 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
32279
32280 2015-02-25 Jakub Jelinek <jakub@redhat.com>
32281
32282 PR lto/64374
32283 * target.def (target_option_stream_in): New target hook.
32284 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
32285 targetm.target_option.post_stream_in if non-NULL.
32286 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
32287 * doc/tm.texi: Updated.
32288 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
32289 function.
32290 (TARGET_OPTION_POST_STREAM_IN): Redefine.
32291
32292 2015-02-24 Jeff Law <law@redhat.com>
32293
32294 PR target/65117
32295 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
32296 of operand 0 and operand 2.
32297 (zero_cost_loop_end, loop_end): Similarly.
32298
32299 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
32300
32301 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
32302 CXX_MEM_STAT_INFO.
32303
32304 2015-02-24 DJ Delorie <dj@redhat.com>
32305
32306 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
32307 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
32308 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
32309 instead of hardcoding SImode.
32310
32311 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
32312
32313 * omp-low.c (create_omp_child_function): Tag entrypoint
32314 functions with a special attribute.
32315
32316 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32317
32318 PR target/65058
32319 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
32320
32321 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
32322
32323 PR rtl-optimization/65123
32324 * lra-remat.c (operand_to_remat): Check hard regs in insn
32325 definition too.
32326
32327 2015-02-24 Nick Clifton <nickc@redhat.com>
32328
32329 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
32330 to the assembler.
32331
32332 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
32333
32334 PR libgomp/64625
32335 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
32336 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
32337 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
32338 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
32339 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
32340 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
32341 (BUILT_IN_GOACC_PARALLEL): Specify as
32342 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
32343 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
32344 * builtin-types.def
32345 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32346 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32347 Remove function types.
32348 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
32349 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32350 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32351 New function types.
32352
32353 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
32354
32355 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
32356
32357 2015-02-24 Jakub Jelinek <jakub@redhat.com>
32358
32359 PR tree-optimization/65170
32360 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
32361 if val[1] < 0, clear also val[2] and return 3.
32362
32363 2015-02-24 Alan Modra <amodra@gmail.com>
32364
32365 PR target/65172
32366 * config/rs6000/rs6000.c (get_memref_parts): Only return true
32367 when *base is a reg. Handle nested plus addresses. Simplify
32368 pre_modify test.
32369
32370 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
32371
32372 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
32373 use natural alignment when optimizing for size.
32374
32375 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
32376
32377 PR target/65153
32378 * config/sh/sh.md (movsicc_true+3): Remove peephole.
32379 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
32380 * config/sh/sh.c (replace_n_hard_rtx): Remove.
32381
32382 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
32383
32384 PR fortran/63427
32385 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
32386 too big for a wide_int. Implement missing wrapping operation.
32387
32388 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
32389
32390 PR target/65163
32391 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
32392 instead of const_int 4294901760.
32393
32394 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
32395
32396 * config/avr/t-avr: Fix typo in comment.
32397
32398 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
32399
32400 * doc/rtl.texi (fma): Clarify documentation.
32401
32402 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
32403
32404 PR debug/58123
32405 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
32406 over input_location.
32407
32408 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
32409
32410 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
32411 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
32412 restrict alignments to absolute_biggest_alignment.
32413 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
32414 Define.
32415 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
32416 * doc/tm.texi: Regenerate.
32417 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
32418
32419 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
32420
32421 PR target/64172
32422 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
32423
32424 2015-02-20 Richard Biener <rguenther@suse.de>
32425
32426 PR tree-optimization/65136
32427 * tree-ssa-propagate.c: Include cfgloop.h.
32428 (replace_phi_args_in): Avoid replacing loop latch edge PHI
32429 arguments with constants.
32430
32431 2015-02-20 Jakub Jelinek <jakub@redhat.com>
32432 Martin Liska <mliska@suse.cz>
32433
32434 PR target/63892
32435 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
32436 don't try to create_thunk if stdarg_p. If
32437 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
32438 redirect_callers if possible.
32439 (sem_item_optimizer::execute): Call unregister_hooks here...
32440 (ipa_icf_driver): ... instead of here.
32441
32442 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32443
32444 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
32445 Mark operand 0 as earlyclobber in 2nd alternative.
32446 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
32447 Write negated shift amount into QI lowpart operand 0 and use it
32448 in the shift step.
32449 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
32450
32451 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
32452
32453 * cgraph.h (clone_function_name_1): Declare.
32454 * cgraphclones.c (clone_function_name_1): New function.
32455 (clone_function_name): Use it.
32456 * lto-partition.c: Include "stringpool.h".
32457 (must_not_rename, maybe_rewrite_identifier)
32458 (validize_symbol_for_target): New static functions.
32459 (privatize_symbol_name): Use must_not_rename.
32460 (promote_symbol): Call validize_symbol_for_target.
32461 (lto_promote_cross_file_statics): Likewise.
32462 (lto_promote_statics_nonwpa): Likewise.
32463
32464 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
32465
32466 PR target/64452
32467 * config/avr/avr.md (pushhi_insn): New insn.
32468 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
32469
32470 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
32471 Jakub Jelinek <jakub@redhat.com>
32472
32473 * tree-streamer.c (preload_common_nodes): Don't preload
32474 TI_VA_LIST* for offloading.
32475 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
32476 in_lto_p.
32477
32478 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
32479
32480 * config/pa/pa.c (pa_emit_move_sequence): Always force
32481 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
32482 note on insn.
32483
32484 * config/pa/pa.c (pa_reloc_rw_mask): New function.
32485 (TARGET_ASM_RELOC_RW_MASK): Define.
32486 (pa_cannot_force_const_mem): Revert previous change.
32487
32488 2015-02-19 Martin Jambor <mjmabor@suse.cz>
32489 Jan Hubicka <hubicka@ucw.cz>
32490
32491 PR ipa/65028
32492 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
32493 across jump functions.
32494
32495 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
32496
32497 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
32498
32499 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
32500
32501 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
32502
32503 2015-02-19 Richard Henderson <rth@redhat.com>
32504
32505 PR middle-end/65074
32506 * varasm.c (default_binds_local_p_2): Don't test node->definition;
32507 test DECL_EXTERNAL independent of symtab_node.
32508
32509 2015-02-19 Jakub Jelinek <jakub@redhat.com>
32510
32511 PR lto/65012
32512 * varpool.c (varpool_node::get_constructor): Return early
32513 if this->lto_file_data is NULL.
32514
32515 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32516
32517 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
32518 (rank_for_schedule_debug): Update.
32519 (ready_sort): Make static. Move sorting logic to ...
32520 (ready_sort_debug, ready_sort_real): New static functions.
32521 (schedule_block): Sort both debug insns and real insns in preparation
32522 for ready list trimming. Improve debug output.
32523 * sched-int.h (ready_sort): Remove global declaration.
32524
32525 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
32526
32527 * ipa-icf.c (sem_function::equals_private): Adjust.
32528 (sem_function::bb_dict_test): Take a vec<int> * instead of
32529 auto_vec<int>.
32530 * ipa-icf.h (bb_dict_test): Likewise.
32531
32532 2015-02-18 Jakub Jelinek <jakub@redhat.com>
32533
32534 PR gcov-profile/64634
32535 * tree-eh.c (frob_into_branch_around): Fix up typos
32536 in function comment.
32537 (lower_catch): Put eh_seq resulting from EH lowering of
32538 the cleanup sequence after the cleanup rather than before it.
32539
32540 2015-02-18 Tom de Vries <tom@codesourcery.com>
32541
32542 * common.opt (fstdarg-opt): New option.
32543 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
32544 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
32545 (@item -fstdarg-opt): New item.
32546
32547 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
32548
32549 PR target/65064
32550 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
32551 for common symbols.
32552
32553 2015-02-18 Jakub Jelinek <jakub@redhat.com>
32554
32555 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
32556 insn-modes.h.
32557 (ALL_HOST_OBJS): Add mkoffload.o.
32558 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
32559
32560 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
32561
32562 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
32563 (compare_virtual_tables): Be smarter about skipping typeinfos;
32564 do sane output on virtual table table mismatch.
32565 (warn_odr): Be ready for forward declarations of enums;
32566 output sane info on base mismatch and virtual table mismatch.
32567 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
32568 when only one type is polymorphic.
32569 (get_odr_type): Fix hashtable corruption.
32570 (dump_odr_type): Dump mangled names.
32571
32572 2015-02-18 Richard Biener <rguenther@suse.de>
32573
32574 PR tree-optimization/65063
32575 * tree-predcom.c (determine_unroll_factor): Return 1 if we
32576 have replaced looparound PHIs.
32577
32578 2015-02-18 Martin Liska <mliska@suse.cz>
32579
32580 * lto-streamer.c (lto_streamer_init): Encapsulate
32581 streamer_check_handled_ts_structures with checking macro.
32582
32583 2015-02-18 Jakub Jelinek <jakub@redhat.com>
32584
32585 PR ipa/65087
32586 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
32587 section if !implicit_section.
32588 (cgraph_node::create_version_clone_with_body): Likewise.
32589 * trans-mem.c (ipa_tm_create_version): Likewise.
32590
32591 2015-02-18 Richard Biener <rguenther@suse.de>
32592
32593 PR tree-optimization/62217
32594 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
32595 into BIVs.
32596
32597 2015-02-18 Marek Polacek <polacek@redhat.com>
32598
32599 PR sanitizer/65081
32600 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
32601 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
32602 is in range [-16K, -1]. Don't issue run-time error if
32603 (ptr > ptr + offset).
32604
32605 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
32606
32607 * doc/install.texi (nvptx-*-none): New section.
32608 * doc/invoke.texi (Nvidia PTX Options): Likewise.
32609 * config/nvptx/nvptx.opt: Update.
32610
32611 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
32612 (access_check): New functions, copied from
32613 config/i386/intelmic-mkoffload.c.
32614 (main): For non-installed testing, look in all COMPILER_PATHs for
32615 GCC_INSTALL_NAME.
32616
32617 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
32618
32619 2015-02-18 Andrew Pinski <apinski@cavium.com>
32620 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32621
32622 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
32623 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
32624
32625 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
32626
32627 * ipa-visibility.c (function_and_variable_visibility): Only
32628 check locality if node is not already local.
32629 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
32630 call_for_symbol_and_aliases instead of
32631 call_for_symbol_thunks_and_aliases.
32632 (ipa_inline): Likewise.
32633 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
32634 first walk aliases.
32635 * ipa.c (symbol_table::remove_unreachable_nodes): Use
32636 call_for_symbol_and_aliases.
32637 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
32638 (ipa_propagate_frequency_1): Use it; use opt_for_fn
32639 (ipa_propagate_frequency): Update.
32640 (ipa_profile): Add opt_for_fn gueards.
32641
32642 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
32643
32644 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
32645 * doc/invoke.texi (SH options): Document it.
32646 * config/sh/sh.c (sh_insn_length_adjustment): Check
32647 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
32648
32649 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
32650
32651 * common.opt (fipa-cp-alignment): New.
32652 * ipa-cp.c (ipcp_store_alignment_results): Check
32653 flag_ipa_cp_alignment.
32654 * opts.c (default_options_table): Enable -fipa-cp-alignment for
32655 -O2.
32656 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
32657 * doc/invoke.texi: Document -fipa-cp-alignment.
32658
32659 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
32660
32661 PR target/64793
32662 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
32663 to nil. Adjust comments.
32664
32665 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
32666
32667 * ipa-visibility.c (function_and_variable_visibility): Only
32668 check locality if node is not already local.
32669 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
32670 call_for_symbol_and_aliases instead of
32671 call_for_symbol_thunks_and_aliases.
32672 (ipa_inline): Likewise.
32673 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
32674 first walk aliases.
32675 * ipa.c (symbol_table::remove_unreachable_nodes): Use
32676 call_for_symbol_and_aliases.
32677 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
32678 (ipa_propagate_frequency_1): Use it; use opt_for_fn
32679 (ipa_propagate_frequency): Update.
32680 (ipa_profile): Add opt_for_fn guards.
32681
32682 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
32683
32684 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
32685 skipping of "strange" tokens.
32686
32687 2015-02-17 Jeff Law <law@redhat.com>
32688
32689 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
32690 obsolete comment.
32691
32692 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
32693
32694 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
32695 as forcing a HARD_DEP between instructions, thereby
32696 disallowing rewriting to break dependencies.
32697
32698 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
32699
32700 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
32701 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
32702 variables in boundary that have no inlitalizer encoded and are
32703 not aliases.
32704 * varasm.c (default_binds_local_p_2): External definitions do not
32705 count as definitions here.
32706
32707 2015-02-16 Jeff Law <law@redhat.com>
32708
32709 PR tree-optimization/64823
32710 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
32711 statements.
32712 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
32713 threading through blocks with PHIs, but no statements.
32714 (thread_through_normal_block): Distinguish between blocks where
32715 we did not process all the statements and blocks with no statements.
32716
32717 2015-02-16 Jakub Jelinek <jakub@redhat.com>
32718 James Greenhalgh <james.greenhalgh@arm.com>
32719
32720 PR ipa/64963
32721 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
32722 section if not linkonce. Fix up formatting.
32723 (cgraph_node::create_version_clone_with_body): Copy section.
32724 * trans-mem.c (ipa_tm_create_version): Likewise.
32725
32726 2015-02-16 Richard Biener <rguenther@suse.de>
32727
32728 PR tree-optimization/65077
32729 * tree-ssa-structalias.c (get_constraint_for_1): Handle
32730 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
32731 (find_func_aliases): Allow float values to carry pointers again.
32732
32733 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
32734
32735 * doc/install.texi (Specific): Reorder targets list to put
32736 aarch64 in alphabetical order. Add a link to aarch64*-*-*
32737 from the top menu.
32738
32739 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32740 David Edelsohn <dje.gcc@gmail.com>
32741
32742 PR target/65058
32743 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
32744 mapping class to external variable or function reference.
32745 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
32746 mapping class.
32747
32748 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
32749
32750 PR target/53348
32751 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
32752 ASM_WEAKEN_DECL if defined.
32753
32754 2015-02-16 Richard Biener <rguenther@suse.de>
32755
32756 PR lto/65015
32757 * varasm.c (default_file_start): For LTO produced units
32758 emit <artificial> as file directive.
32759
32760 2015-02-16 Richard Biener <rguenther@suse.de>
32761
32762 PR tree-optimization/63593
32763 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
32764 stmts and releasing SSA names until...
32765 (execute_pred_commoning): ... after processing all chains.
32766
32767 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
32768
32769 PR ipa/65059
32770 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
32771 external functions.
32772
32773 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
32774
32775 * doc/bugreport.texi: Adjust section titles throughout the file
32776 to use "Title Case".
32777 * doc/extend.texi: Likewise.
32778 * doc/gcov.texi: Likewise.
32779 * doc/implement-c.texi: Likewise.
32780 * doc/implement-cxx.texi: Likewise.
32781 * doc/invoke.texi: Likewise.
32782 * doc/objc.texi: Likewise.
32783 * doc/standards.texi: Likewise.
32784 * doc/trouble.texi: Likewise.
32785
32786 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
32787
32788 * cgraph.h (symtab_node::has_aliases_p): Simplify.
32789 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
32790 * tree.c (lookup_binfo_at_offset): Make static.
32791 (get_binfo_at_offset): Do not shadow offset; add explanatory
32792 comment.
32793
32794 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
32795
32796 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
32797 for all floading point loads and stores except those using a register
32798 index address.
32799 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
32800 to a register.
32801
32802 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
32803
32804 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
32805 (do_estimate_growth_1): Record if any uninlinable edge was seen.
32806 (estimate_growth): Handle uninlinable edges correctly.
32807 (check_callers): New.
32808 (growth_likely_positive): Handle aliases correctly.
32809
32810 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
32811
32812 * ipa-chkp.c: Use iterate_direct_aliases.
32813 * symtab.c (resolution_used_from_other_file_p): Move inline.
32814 (symtab_node::create_reference): Fix formating.
32815 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
32816 (symtab_node::iterate_reference): Move inline.
32817 (symtab_node::iterate_referring): Move inline.
32818 (symtab_node::iterate_direct_aliases): Move inline.
32819 (symtab_node::used_from_object_file_p_worker): Inline into ...
32820 (symtab_node::used_from_object_file_p): ... this one; move inline.
32821 (symtab_node::call_for_symbol_and_aliases): Move inline;
32822 use iterate_direct_aliases.
32823 (symtab_node::call_for_symbol_and_aliases_1): New method.
32824 (cgraph_node::call_for_symbol_and_aliases): Move inline;
32825 use iterate_direct_aliases.
32826 (cgraph_node::call_for_symbol_and_aliases_1): New method.
32827 (varpool_node::call_for_node_and_aliases): Rename to ...
32828 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
32829 use iterate_direct_aliases.
32830 (varpool_node::call_for_symbol_and_aliases_1): New method.
32831 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
32832 (ipa_discover_readonly_nonaddressable_var): Update.
32833 * ipa-devirt.c: Fix formating.
32834 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
32835 Move inline.
32836 (cgraph_node::call_for_symbol_and_aliases): Move inline.
32837 (cgraph_node::call_for_symbol_and_aliases_1): New function..
32838 * cgraph.h (used_from_object_file_p_worker): Remove.
32839 (resolution_used_from_other_file_p): Move inline.
32840 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
32841 (symtab_node::iterate_reference): Move inline.
32842 (symtab_node::iterate_referring): Move inline.
32843 (symtab_node::iterate_direct_aliases): Move inline.
32844 (symtab_node::used_from_object_file_p_worker): Inline into ...
32845 (symtab_node::used_from_object_file_p): Move inline.
32846 * tree-emutls.c (ipa_lower_emutls): Update.
32847 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
32848 (varpool_node::call_for_node_and_aliases): Remove.
32849
32850 2015-02-14 Jakub Jelinek <jakub@redhat.com>
32851
32852 PR tree-optimization/62209
32853 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
32854 op == range->exp, insert seq and gimplified code after labels
32855 instead of after the phi.
32856
32857 2015-02-13 Jeff Law <law@redhat.com>
32858
32859 PR bootstrap/65060
32860 Revert my change for tree-optimization/64823.
32861
32862 2015-02-13 Jakub Jelinek <jakub@redhat.com>
32863
32864 PR tree-optimization/65053
32865 * tree-ssa-phiopt.c (value_replacement): When moving assign before
32866 cond, either reset VR on lhs or set it to phi result VR.
32867
32868 2015-02-13 Jeff Law <law@redhat.com>
32869
32870 PR tree-optimization/64823
32871 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
32872 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
32873 threading through blocks with PHIs, but no statements.
32874 (thread_through_normal_block): Distinguish between blocks where
32875 we did not process all the statements and blocks with no statements.
32876
32877 PR rtl-optimization/47477
32878 * match.pd (convert (plus/minus (convert @0) (convert @1): New
32879 simplifier to narrow arithmetic.
32880
32881 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
32882
32883 PR ipa/65028
32884 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
32885 polymorphic call info when type is not known to be preserved.
32886
32887 2015-02-13 Maritn Jambor <mjambor@suse.cz>
32888
32889 PR ipa/65028
32890 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
32891 (inline_call): Use it.
32892
32893 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
32894
32895 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
32896 GOMP_DEVICE_NVIDIA_PTX.
32897
32898 2015-02-13 Jakub Jelinek <jakub@redhat.com>
32899
32900 PR ipa/65034
32901 * stmt.c (emit_case_nodes): Use void_type_node instead of
32902 NULL_TREE as LABEL_DECL type.
32903
32904 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
32905
32906 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
32907 constraints.
32908 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
32909 symbolic references to data to be forced to constant memory on the
32910 SOM target.
32911
32912 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
32913
32914 PR tree-optimization/65002
32915 * tree-cfg.c (pass_data_fixup_cfg): Don't update
32916 SSA on start.
32917 * tree-sra.c (some_callers_have_no_vuse_p): New.
32918 (ipa_early_sra): Reject functions whose callers
32919 assume function is read only.
32920
32921 2015-02-13 Richard Biener <rguenther@suse.de>
32922
32923 PR lto/65015
32924 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
32925 for LTO produced CUs.
32926
32927 2015-02-13 Bin Cheng <bin.cheng@arm.com>
32928
32929 PR tree-optimization/64705
32930 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
32931 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
32932 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
32933 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
32934 expand_simple_operations.
32935
32936 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
32937 Richard Henderson <rth@redhat.com>
32938
32939 PR rtl/32219
32940 * cgraphunit.c (cgraph_node::finalize_function): Set definition
32941 before notice_global_symbol.
32942 (varpool_node::finalize_decl): Likewise.
32943 * varasm.c (default_binds_local_p_2): Rename from
32944 default_binds_local_p_1, add weak_dominate argument. Use direct
32945 returns instead of assigning to local variable. Unify varpool and
32946 cgraph paths via symtab_node. Reject undef weak variables before
32947 testing visibility. Reorder tests for simplicity.
32948 (default_binds_local_p): Use default_binds_local_p_2.
32949 (default_binds_local_p_1): Likewise.
32950 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
32951 via symtab_node.
32952 (default_elf_asm_output_external): Emit visibility when specified.
32953
32954 2015-02-13 Alan Modra <amodra@gmail.com>
32955
32956 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
32957 code setting up r11 for out-of-line fp restore.
32958
32959 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
32960
32961 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
32962 (muser-mode): Likewise.
32963
32964 2015-02-13 Alan Modra <amodra@gmail.com>
32965
32966 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
32967 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
32968
32969 2015-02-12 David Howells <dhowells@redhat.com>
32970
32971 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
32972 warning.
32973 * tree-ssa-uninit.c (dump_predicates): Likewise.
32974 * opts.c (print_filtered_help): Likewise.
32975
32976 2015-02-12 Jakub Jelinek <jakub@redhat.com>
32977
32978 * dwarf2out.c (output_die): Use "%s", name instead of name to
32979 avoid -Wformat-security warning.
32980
32981 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
32982 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
32983 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
32984 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
32985
32986 2015-02-12 Jason Merrill <jason@redhat.com>
32987
32988 * common.opt (-flifetime-dse): New.
32989
32990 2015-02-12 Jakub Jelinek <jakub@redhat.com>
32991
32992 PR sanitizer/65019
32993 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
32994
32995 PR tree-optimization/65014
32996 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
32997 use original second operand of arg0 or arg1 instead of
32998 that adjusted by STRIP_NOPS.
32999
33000 2015-02-11 Jeff Law <law@redhat.com>
33001
33002 PR target/63347
33003 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
33004 that needs to be queued, just queue it for a single cycle.
33005
33006 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
33007
33008 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
33009 bodies of thunks; comment on why.
33010 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
33011 symbols are extern.
33012
33013 2015-02-11 Richard Henderson <rth@redhat.com>
33014
33015 PR sanitize/65000
33016 * tree-eh.c (mark_reachable_handlers): Mark source and destination
33017 regions of __builtin_eh_copy_values.
33018
33019 2015-02-11 Jakub Jelinek <jakub@redhat.com>
33020
33021 PR middle-end/65003
33022 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
33023 ultimate alias is MEM with SYMBOL_REF satisfying
33024 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
33025 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
33026
33027 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
33028
33029 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
33030 "diagnostic-core.h".
33031 (main): Initialize progname, and call diagnostic_initialize.
33032
33033 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
33034 instead of __OPENMP_TARGET__.
33035
33036 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
33037 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
33038 hard-coding PTX_ID.
33039
33040 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
33041
33042 * doc/sourcebuild.texi (pie_enabled): Document.
33043
33044 2015-02-11 Martin Liska <mliska@suse.cz>
33045
33046 PR ipa/64813
33047 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
33048 a return value for call to a function that is noreturn.
33049
33050 2015-02-11 Richard Biener <rguenther@suse.de>
33051
33052 PR lto/65015
33053 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
33054 and -fresolution.
33055
33056 2015-02-11 Andrew Pinski <apinski@cavium.com>
33057
33058 PR target/64893
33059 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
33060 Change the first argument type to size_type_node and add another
33061 size_type_node.
33062 (aarch64_simd_expand_builtin): Handle the new argument to
33063 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
33064 print an out when the first two arguments are not
33065 nonzero integer constants.
33066 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
33067 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
33068
33069 2015-02-11 Jakub Jelinek <jakub@redhat.com>
33070
33071 PR target/61925
33072 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
33073 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
33074 (ix86_set_current_function): Rewritten.
33075 (ix86_add_new_builtins): Temporarily clear current_target_pragma
33076 when creating builtin fndecls.
33077
33078 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33079
33080 PR ipa/65005
33081 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
33082 function.
33083 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
33084 have no comdat group.
33085 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
33086 (lto_output_varpool_node): Always output alias info.
33087 (output_refs): Output refs of boundary aliases, too.
33088 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
33089 (output_symtab): Output call eges in thunks in boundary.
33090 (get_alias_symbol): Remove.
33091 (input_node, input_varpool_node): Do not special case weakrefs.
33092 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
33093 alias and thunks targets in the boundary; do not take removed symbols
33094 from their comdat groups.
33095 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
33096 (cgraph_node::global_info): Remove.
33097 (cgraph_node::rtl_info): Look through aliases and thunks.
33098 * cgrpah.h (global_info): Remove.
33099 (non_local_p): Remove.
33100
33101 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33102 Sandra Loosemore <sandra@codesourcery.com>
33103
33104 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
33105 to inline asm. List dialects in proper order.
33106
33107 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33108 Sandra Loosemore <sandra@codesourcery.com>
33109
33110 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
33111
33112 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33113
33114 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
33115 modified) reference to Solaris.
33116
33117 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
33118
33119 * doc/extend.texi (Extended Asm): Fix typos.
33120
33121 2015-02-10 Jakub Jelinek <jakub@redhat.com>
33122
33123 PR sanitizer/65004
33124 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
33125
33126 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
33127
33128 PR target/64661
33129 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
33130 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
33131 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
33132 * config/sh/constraints.md (Ara, Add): New constraints.
33133 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
33134 predicates.
33135 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
33136 atomic_mem_operand_0. Don't use force_reg on the memory address.
33137 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
33138 Sra constraint. Convert to insn_and_split. Add workaround for
33139 PR 64974.
33140 (atomic_compare_and_swap<mode>_hard): Copy to
33141 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
33142 Use atomic_mem_operand_0 predicate.
33143 (atomic_compare_and_swap<mode>_soft_gusa,
33144 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
33145 AraAdd constraints.
33146 (atomic_compare_and_swap<mode>_soft_tcb,
33147 atomic_compare_and_swap<mode>_soft_imask,
33148 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
33149 atomic_mem_operand_0 predicate and SraSdd constraints.
33150 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
33151 constraint.
33152 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
33153 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
33154 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
33155 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
33156 force_reg on the memory address.
33157 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
33158 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
33159 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
33160 atomic_mem_operand_1 predicate and Sra constraint.
33161 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
33162 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
33163 Use atomic_mem_operand_1 predicate.
33164 (atomic_<fetchop_name><mode>_hard): Copy to
33165 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
33166 Use atomic_mem_operand_1 predicate.
33167 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
33168 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
33169 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
33170 insn_and_split. Use atomic_mem_operand_1 predicate.
33171 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
33172 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
33173 Use atomic_mem_operand_1 predicate.
33174 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
33175 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
33176 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
33177 in generated insn with original mem operand before emitting the insn.
33178 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
33179 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
33180 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
33181 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
33182 Use atomic_mem_operand_1 predicate and AraAdd constraints.
33183 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
33184 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
33185 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
33186 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
33187 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
33188 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
33189 atomic_not_fetch<mode>_soft_tcb,
33190 atomic_<fetchop_name>_fetch<mode>_soft_imask,
33191 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
33192 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
33193 Use atomic_mem_operand_1 predicate and SraSdd constraints.
33194
33195 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
33196
33197 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
33198 and 3 earlyclobber operands.
33199
33200 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33201
33202 * common.opt (fstack-reuse): Mark as optimization.
33203
33204 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33205
33206 PR ipa/64982
33207 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
33208
33209 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
33210
33211 PR tree-optimization/64326
33212 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
33213
33214 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
33215
33216 PR gcov-profile/61889
33217 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
33218
33219 2015-02-10 Richard Biener <rguenther@suse.de>
33220
33221 PR tree-optimization/64995
33222 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
33223 value we use is final.
33224 (visit_reference_op_store): Always valueize op.
33225 (visit_use): Properly valueize vuses.
33226
33227 2015-02-10 Richard Biener <rguenther@suse.de>
33228
33229 PR tree-optimization/64909
33230 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
33231 pass a scalar-stmt count estimate to the cost model.
33232 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
33233
33234 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
33235
33236 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
33237 enabled by default together with var-tracking.
33238
33239 2015-02-10 Nick Clifton <nickc@redhat.com>
33240
33241 * config/rl78/rl78.c: Remove DIV attribute code accidentally
33242 included in previous rl78 commit.
33243
33244 2015-02-10 Richard Biener <rguenther@suse.de>
33245
33246 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
33247 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
33248 return the bitpack.
33249
33250 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
33251
33252 PR gcov-profile/61889
33253 * config.in: regenerate.
33254 * configure.in: Likewise.
33255 * configure.ac: Check for ftw.h.
33256 * gcov-tool.c: Check for ftw.h before using nftw.
33257
33258 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
33259
33260 PR lto/64076
33261 * ipa-visibility.c (update_visibility_by_resolution_info): Only
33262 assert when not in lto mode.
33263
33264 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
33265
33266 * ira-color.c (setup_left_conflict_sizes_p): Simplify
33267 initialization/assignment of conflict_size.
33268
33269 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
33270
33271 PR ipa/64978
33272 * ipa-cp.c (gather_caller_stats): Skip thunks.
33273 (propagate_constants_topo): Skip aliases.
33274
33275 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
33276
33277 PR target/64761
33278 * config/sh/sh.c (sh_option_override): Don't change
33279 -freorder-blocks-and-partition to -freorder-blocks even when
33280 unwinding is enabled.
33281 (sh_can_follow_jump): Return false if the followee jump is
33282 a crossing jump when -freorder-blocks-and-partition is specified.
33283 * config/sh/sh.md (*jump_compact_crossing): New insn.
33284
33285 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
33286 Kaz Kojima <kkojima@gcc.gnu.org>
33287
33288 PR target/64761
33289 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
33290 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
33291 (sh_can_redirect_branch): Rename to ...
33292 (sh_can_follow_jump): ... this. Constify argument types.
33293 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
33294 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
33295 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
33296 * doc/tm.texi: Regenerate.
33297
33298 2015-02-09 Jakub Jelinek <jakub@redhat.com>
33299
33300 PR sanitizer/64981
33301 * builtins.c (expand_builtin): Call targetm.expand_builtin
33302 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
33303
33304 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33305
33306 PR ipa/61548
33307 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
33308
33309 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33310
33311 PR ipa/63566
33312 * ipa-icf.c (set_local): New function.
33313 (sem_function::merge): Use it.
33314
33315 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33316
33317 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
33318 (add_type_duplicate): Fix comparison of BINFOs.
33319
33320 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33321
33322 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
33323 on getting VOID pointer.
33324
33325 2015-02-09 Jakub Jelinek <jakub@redhat.com>
33326
33327 PR target/64979
33328 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
33329 va_list escapes.
33330
33331 2015-02-09 Richard Biener <rguenther@suse.de>
33332
33333 * genmatch.c (replace_id): Copy expr_type.
33334
33335 2015-02-09 Richard Biener <rguenther@suse.de>
33336
33337 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
33338 (streamer_write_tree_bitfields): Declare.
33339 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
33340 properly unpack padding.
33341 (unpack_value_fields): Inline ...
33342 (streamer_read_tree_bitfields): ... here.
33343 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
33344 and properly add padding bits.
33345 (streamer_pack_tree_bitfields): Fold into ...
33346 (streamer_write_tree_bitfields): ... this new function,
33347 exposing the bitpack object.
33348 * lto-streamer-out.c (lto_write_tree_1): Call
33349 streamer_write_tree_bitfields.
33350
33351 2015-02-09 Richard Biener <rguenther@suse.de>
33352
33353 PR tree-optimization/54000
33354 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
33355 (struct ivopts_data): Add loop_loc member.
33356 (tree_ssa_iv_optimize_loop): Dump loop location.
33357 (create_new_ivs): Likewise, also dump number of IVs generated.
33358
33359 2015-02-09 Martin Liska <mliska@suse.cz>
33360
33361 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
33362 just if not yet registered.
33363 (ipa_icf_generate_summary): Register callgraph hooks.
33364
33365 2015-02-08 Andrew Pinski <apinski@cavium.com>
33366
33367 * config/aarch64/aarch64.c (gty_dummy): Delete.
33368
33369 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33370
33371 PR ipa/63566
33372 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
33373 (cgraph_node::local_p): Remove thunk related FIXME.
33374
33375 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33376
33377 PR ipa/63566
33378 * i386.c (ix86_function_regparm): Look through aliases to see if callee
33379 is local and optimized.
33380 (ix86_function_sseregparm): Likewise; also use target's SSE math
33381 settings; error out instead of silently generating wrong code
33382 on mismatches.
33383 (init_cumulative_args): Look through aliases.
33384
33385 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33386
33387 PR ipa/63566
33388 * ipa-split.c (execute_split_functions): Split if function has aliases.
33389
33390 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33391
33392 PR ipa/63566
33393 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
33394 aliases before trying to expand it.
33395 (cgraph_node::expand_thunk): Fix formating.
33396
33397 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
33398
33399 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
33400 (Using Assembly Language with C): Expand introduction.
33401 (Basic Asm): Copy-edit. Add more information about uses of
33402 basic asm.
33403 (Extended Asm): Copy-edit. Document new escape syntax and
33404 %l[label] syntax.
33405 (Global Reg Vars): Copy-edit.
33406 (Local Reg Vars): Likewise.
33407
33408 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
33409
33410 PR debug/2714
33411 PR bootstrap/64256
33412 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
33413 (DBX_CONTIN_CHAR): Define.
33414
33415 2015-02-06 Sebastian Pop <s.pop@samsung.com>
33416 Brian Rzycki <b.rzycki@samsung.com>
33417
33418 PR tree-optimization/64878
33419 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
33420 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
33421 Stop recursion at loop phi nodes after having visited a loop phi node.
33422
33423 2015-02-06 Jakub Jelinek <jakub@redhat.com>
33424
33425 * toplev.c (process_options): Change flag_ipa_ra before creating
33426 optimization_{default,current}_node.
33427
33428 PR ipa/64896
33429 * cgraphunit.c (cgraph_node::expand_thunk): If
33430 restype is not is_gimple_reg_type nor the thunk_fndecl
33431 returns aggregate_value_p, set restmp to a temporary variable
33432 instead of resdecl.
33433
33434 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
33435
33436 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
33437
33438 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33439
33440 PR target/64205
33441 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
33442 add a general secondary reload handler for SDmode, unless we have
33443 both read/write support for SDmode.
33444
33445 2015-02-06 Jakub Jelinek <jakub@redhat.com>
33446
33447 PR middle-end/64937
33448 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
33449 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
33450 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
33451 1 before, push it to abstract_vec.
33452 (dwarf2out_abstract_function): Adjust caller. Don't call
33453 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
33454 DECL_ABSTRACT_P flags for all abstract_vec elts.
33455
33456 2015-02-06 Renlin Li <renlin.li@arm.com>
33457
33458 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
33459 complex gimple.
33460 * tree-ssa.c (execute_update_addresses_taken): Likewise.
33461
33462 2015-02-06 Jeff Law <law@redhat.com>
33463
33464 PR target/64889
33465 * config/h8300/h8300.c (push): New argument "in_prologue".
33466 Pass "in_prologue" along to "F".
33467 (h8300_push_pop): Corresponding changes.
33468 (h8300_expand_prologue): Likewise.
33469 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
33470
33471 2015-02-06 Jakub Jelinek <jakub@redhat.com>
33472
33473 PR rtl-optimization/64957
33474 PR debug/64817
33475 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
33476 IOR rather than for AND.
33477
33478 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
33479
33480 PR target/62631
33481 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
33482 of shift-add and (add + shift) operations. Rename local variable.
33483
33484 2015-02-05 Jeff Law <law@redhat.com>
33485
33486 PR target/17306
33487 * config/h8300/constraints.md (U): Correctly dectect
33488 "eightbit_data" memory addresses.
33489 * config/h8300/h8300.c (eightbit_constant_address_p): Also
33490 handle (const (plus (symbol_ref (x)))) where x is declared
33491 as an 8-bit data memory address.
33492 * config/h8300/h8300.md (call, call_value): Correctly detect
33493 "funcvec" functions.
33494
33495 PR target/43264
33496 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
33497 24 to 28 bits for the H8/300.
33498
33499 2015-02-06 Alan Modra <amodra@gmail.com>
33500
33501 PR target/64876
33502 * config/rs6000/rs6000.c (chain_already_loaded): New function.
33503 (rs6000_call_aix): Use it.
33504
33505 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
33506
33507 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
33508 check.
33509
33510 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
33511
33512 * config/h8300/constraints.md ("U" constraint): Use strict
33513 variant of REG_OK_FOR_BASE_P after reload has started.
33514
33515 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
33516
33517 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
33518 define to zero if !TARGET_NEON.
33519 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
33520
33521 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33522 Trevor Saunders <tsaunders@mozilla.com>
33523
33524 PR ipa/61548
33525 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
33526
33527 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33528
33529 PR ipa/61548
33530 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
33531 when removing varpool nodes.
33532
33533 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33534
33535 PR ipa/61548
33536 * varpool.c (varpool_node::remove): Fix order of variables.
33537
33538 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33539
33540 PR ipa/64686
33541 * ipa-inline.c (inline_small_functions): Fix ordering issue between
33542 speculation resolution and key updates.
33543
33544 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33545
33546 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
33547 about not letting any speculative edges unupdated.
33548
33549 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33550
33551 PR gcov/64123
33552 * gcov-io.c (gcov_var): Export.
33553
33554 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33555
33556 PR middle-end/64922
33557 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
33558 edges that become speculative.
33559
33560 2015-02-04 Jakub Jelinek <jakub@redhat.com>
33561
33562 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
33563 or DW_LANG_Fortran08.
33564 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
33565 DW_LANG_Fortran08.
33566 (gen_compile_unit_die): Handle "GNU Fortran2003" and
33567 "GNU Fortran2008" language strings.
33568 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
33569 * langhooks.h (lang_GNU_Fortran): New prototype.
33570 * langhooks.c (lang_GNU_Fortran): New function.
33571 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
33572 lang_GNU_Fortran.
33573
33574 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
33575
33576 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
33577 (RTX_OK_FOR_OLO10_P): Likewise.
33578
33579 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
33580
33581 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
33582
33583 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33584
33585 PR middle-end/64922
33586 * gimple.c: Include gimple-ssa.h.
33587 (maybe_remove_unused_call_args): New function.
33588 * gimple.h (maybe_remove_unused_call_args): Declare.
33589 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
33590 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
33591 * gimple-fold.c (gimple_fold_call): Likewise.
33592
33593 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
33594
33595 PR rtl-optimization/64905
33596 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
33597 pointer alignment if it isn't needed.
33598
33599 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
33600
33601 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
33602 cortex-a72.cortex-a53.
33603 * config/aarch64/aarch64-tune.md: Regenerate.
33604 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
33605
33606 2015-02-04 Nick Clifton <nickc@redhat.com>
33607
33608 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
33609 inside a MEM.
33610
33611 2015-02-04 Jakub Jelinek <jakub@redhat.com>
33612
33613 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
33614 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
33615 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
33616 of DEF_BUILTIN.
33617 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
33618 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
33619 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
33620 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
33621 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
33622 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
33623 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
33624 * tree-core.h (enum built_in_function): In between
33625 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
33626 for builtins that use DEF_BUILTIN_CHKP macro.
33627
33628 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
33629
33630 PR debug/64817
33631 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
33632 operands for tcc_comparison exprs. Fix typos.
33633
33634 PR debug/64817
33635 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
33636 of two XORs that have an intervening AND or IOR.
33637
33638 PR debug/64817
33639 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
33640 simplification of XOR of AND to not allocate new rtx before
33641 committing to a simplification.
33642
33643 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33644
33645 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
33646 manual swaps in all peepholes.
33647
33648 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33649
33650 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
33651 of manual swapping implementation.
33652 (aarch64_expand_vec_perm_const_1): Likewise.
33653
33654 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
33655
33656 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
33657 (generic_addrcost_table): Remove NAMED_PARAM.
33658 (cortexa57_addrcost_table): Likewise.
33659 (xgene1_addrcost_table): Likewise.
33660 (generic_regmove_table): Likewise.
33661 (cortexa53_regmove_table): Likewise.
33662 (xgene1_regmove_table): Likewise.
33663 (generic_vector_table): Likewise.
33664 (cortexa57_vector_table): Likewise.
33665 (xgene1_vector_table): Likewise.
33666 (generic_tunings): Likewise.
33667 (cortexa53_tunings): Likewise.
33668 (cortexa57_tunings): Likewise.
33669 (xgene1_tunings): Likewise.
33670
33671 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
33672
33673 * config/arm/arm-cores.def: Add cortex-a72 and
33674 cortex-a72.cortex-a53.
33675 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
33676 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
33677 * config/arm/arm-tune.md: Regenerate.
33678 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
33679 "cortex-a72.cortex-a53".
33680 * doc/invoke.texi (ARM Options/-mtune): Likewise.
33681
33682 2015-02-04 Nick Clifton <nickc@redhat.com>
33683
33684 PR target/64408
33685 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
33686 of accepted codes.
33687 (nonimmediate_di_operand): Likewise.
33688
33689 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
33690 prefixes of known F5 using MSP430 MCUs.
33691
33692 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33693
33694 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
33695 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
33696 instead of __builtin_sqrt.
33697
33698 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
33699
33700 * varasm.c (do_assemble_alias): Follow transparent alias
33701 chain for target.
33702 (default_assemble_visibility): Follow transparent alias
33703 chain for decl name.
33704
33705 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
33706
33707 PR middle-end/62103
33708 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
33709 to compute size of referenced value in the constant case.
33710
33711 2015-02-03 Jakub Jelinek <jakub@redhat.com>
33712
33713 PR rtl-optimization/64756
33714 * cse.c (invalidate_dest): New function.
33715 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
33716 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
33717 invalidate and do not record it.
33718
33719 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
33720
33721 PR target/64660
33722 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
33723 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
33724 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
33725 atomic_nand<mode>_soft_tcb): New insns.
33726 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
33727 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
33728 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
33729 Split into atomic_not_fetchsi_hard if operands[0] is unused.
33730 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
33731 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
33732 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
33733 atomic_not<mode>_hard if operands[0] is unused.
33734 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
33735 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
33736 if operands[0] is unused.
33737 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
33738 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
33739 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
33740 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
33741 unused.
33742 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
33743 into atomic_not<mode>_soft_tcb if operands[0] is unused.
33744 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
33745 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
33746 if operands[0] is unused.
33747 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
33748 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
33749 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
33750 atomic_nand_fetchsi_hard if operands[0] is unused.
33751 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
33752 atomic_nand<mode>_hard if operands[0] is unused.
33753 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
33754 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
33755 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
33756 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
33757 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
33758 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
33759 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
33760 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
33761 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
33762 atomic_not<mode>_hard if operands[0] is unused.
33763 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
33764 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
33765 unused.
33766 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
33767 into atomic_not<mode>_soft_tcb if operands[0] is unused.
33768 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
33769 atomic_nand<mode>_hard if operands[0] is unused.
33770 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
33771 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
33772
33773 2015-02-03 David Malcolm <dmalcolm@redhat.com>
33774
33775 PR jit/64810
33776 * Makefile.in (GCC_OBJS): Add gcc-main.o.
33777 * gcc-main.c: New file, containing "main" taken from gcc.c.
33778 * gcc.c (do_self_spec): Free decoded_options.
33779 (class driver): Move declaration to gcc.h.
33780 (main): Move declaration and implementation to new file
33781 gcc-main.c.
33782 (driver_get_configure_time_options): New function.
33783 * gcc.h (class driver): Move this declaration here, from
33784 gcc.c.
33785 (driver_get_configure_time_options): New declaration.
33786
33787 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
33788
33789 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
33790 cross-module inlining.
33791 * cgraph.h (cgraph_node): Add flag merged.
33792 * ipa-icf.c (sem_function::merge): Maintain it.
33793
33794 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
33795
33796 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
33797 instead of OBJECT_P.
33798
33799 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
33800
33801 PR target/62631
33802 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
33803 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
33804 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
33805 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
33806
33807 2015-02-03 Jakub Jelinek <jakub@redhat.com>
33808
33809 PR other/63504
33810 * combine.c (reg_n_sets_max): New variable.
33811 (can_change_dest_mode, reg_nonzero_bits_for_combine,
33812 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
33813 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
33814 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
33815 (rest_of_handle_combine): Initialize reg_n_sets_max.
33816
33817 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
33818
33819 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
33820 if some always_inline was inlined, apply changes before inlining
33821 heuristically.
33822
33823 2015-02-02 David Malcolm <dmalcolm@redhat.com>
33824
33825 PR jit/64810
33826 * config/arm/arm.c (arm_option_override): Set
33827 arm_selected_arch/cpu/tune to NULL on entry.
33828
33829 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
33830 Andrew Pinski <pinskia@gcc.gnu.org>
33831 Jakub Jelinek <jakub@gcc.gnu.org>
33832
33833 PR target/64231
33834 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
33835 integer typing for small model. Use IN_RANGE.
33836
33837 2015-02-02 Richard Biener <rguenther@suse.de>
33838
33839 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
33840 * tree-vrp.c (vrp_valueize_1): Likewise.
33841
33842 2015-02-02 Alan Modra <amodra@gmail.com>
33843
33844 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
33845 than mem for toc_restore.
33846 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
33847 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
33848 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
33849
33850 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
33851
33852 PR target/64047
33853 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
33854 explicit default options.
33855
33856 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
33857
33858 PR ipa/64872
33859 * ipa-utils.c (ipa_merge_profiles): Add release argument.
33860 * ipa-icf.c (sem_function::merge): Do not release body when merging.
33861 * ipa-utils.h (ipa_merge_profiles): Update prototype.
33862
33863 2015-02-01 Jakub Jelinek <jakub@redhat.com>
33864
33865 PR debug/64817
33866 * cfgexpand.c (deep_ter_debug_map): New variable.
33867 (avoid_deep_ter_for_debug): New function.
33868 (expand_debug_expr): If TERed SSA_NAME is in
33869 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
33870 instead of trying to expand SSA_NAME's def stmt.
33871 (expand_debug_locations): When expanding debug bind
33872 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
33873 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
33874 value.
33875 (pass_expand::execute): Call avoid_deep_ter_for_debug on
33876 all debug bind stmts. Delete deep_ter_debug_map after
33877 expand_debug_location if non-NULL and clear it.
33878
33879 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
33880
33881 PR target/64851
33882 * config/sh/sync.md (atomic_fetch_notsi_hard,
33883 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
33884 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
33885 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
33886 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
33887 atomic_not_fetch<mode>_soft_imask): New insns.
33888
33889 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33890
33891 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
33892 (rank_for_schedule_debug): Split from ...
33893 (rank_for_schedule): ... this.
33894 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
33895 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
33896
33897 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
33898
33899 * doc/md.texi (Machine Constraints): Alphabetize table by target.
33900 * doc/extend.texi (x86 Variable Attributes): Move section to
33901 correct alphabetization after renaming.
33902 (x86 Type Attributes): Likewise.
33903 (Target Builtins): Re-alphabetize menu.
33904 (x86 Built-in Functions): Move section to correct alphabetization
33905 after renaming.
33906 (x86 transactional memory intrinsics): Likewise.
33907 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
33908 and x86 Windows Options in table and menu.
33909 (x86 Options): Move section to correct alphabetization after
33910 renaming.
33911 (x86 Windows Options): Likewise.
33912
33913 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
33914
33915 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
33916 preferred names of the architecture and its 32- and 64-bit
33917 variants.
33918 * doc/invoke.texi: Likewise.
33919 * doc/md.texi: Likewise.
33920
33921 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
33922
33923 PR target/64882
33924 * config/i386/predicates.md (address_no_seg_operand): Reject
33925 non-CONST_INT_P operands in invalid mode.
33926
33927 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
33928
33929 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
33930 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
33931 * config/i386/predicates.md (address_no_seg_operand): Call
33932 address_operand with VOIDmode.
33933 (vsib_address_operand): Ditto.
33934 (address_mpx_no_base_operand): Ditto.
33935 (address_mpx_no_index_operand): Ditto.
33936
33937 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
33938
33939 PR target/64688
33940 * lra-constraints.c (original_subreg_reg_mode): New.
33941 (simplify_operand_subreg): Try to simplify subreg of const. Use
33942 original_subreg_reg_mode for it.
33943 (swap_operands): Update original_subreg_reg_mode.
33944 (curr_insn_transform): Set up original_subreg_reg_mode.
33945
33946 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
33947
33948 PR target/64617
33949 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
33950 function.
33951 (process_alt_operands): Use it.
33952 (curr_insn_transform): Check the optional reload pseudo class is
33953 ok for the mode.
33954
33955 2015-01-30 Joseph Myers <joseph@codesourcery.com>
33956
33957 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
33958 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
33959 prototype.
33960 * toplev.h (init_asm_output): Update comment on use of
33961 UNKNOWN_LOCATION with fatal_error.
33962 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
33963 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
33964 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
33965 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
33966 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
33967 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
33968 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
33969 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
33970 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
33971 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
33972 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
33973 fatal_error changed to pass input_location as first argument.
33974
33975 2015-01-30 Martin Liska <mliska@suse.cz>
33976
33977 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
33978 in #pragma GCC diagnostic guards.
33979
33980 2015-01-30 Richard Biener <rguenther@suse.de>
33981
33982 PR tree-optimization/64829
33983 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
33984 not add a widening conversion pattern but hand off extra
33985 widenings to callers.
33986 (vect_recog_widen_mult_pattern): Handle extra widening produced
33987 by vect_handle_widen_op_by_const.
33988 (vect_recog_widen_shift_pattern): Likewise.
33989 (vect_pattern_recog_1): Remove excess vertical space in dumping.
33990 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
33991 (vect_init_vector_1): Likewise.
33992 (vect_get_vec_def_for_operand): Likewise.
33993 (vect_finish_stmt_generation): Likewise.
33994 (vectorizable_load): Likewise.
33995 (vect_analyze_stmt): Likewise.
33996 (vect_is_simple_use): Likewise.
33997
33998 2015-01-29 Jeff Law <law@redhat.com>
33999
34000 * combine.c (try_combine): Fix typo in comment.
34001
34002 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
34003
34004 PR target/64580
34005 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
34006 (rs6000_stack_info): Add assert.
34007 (rs6000_output_savres_externs): New function, split off from...
34008 (rs6000_output_function_prologue): ... here. Do not call it for
34009 thunks.
34010
34011 2015-01-29 Jeff Law <law@redhat.com>
34012
34013 PR target/15184
34014 * combine.c (try_combine): If I0 is a memory load and I3 a store
34015 to a related address, increase the "goodness" of doing a 4-insn
34016 combination with I0-I3.
34017 (make_field_assignment): Handle SUBREGs in the ior+and case.
34018
34019 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
34020
34021 PR tree-optimization/64746
34022 * tree-if-conv.c (mask_exists): New function.
34023 (predicate_mem_writes): Save created mask with given size for further
34024 use.
34025 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
34026 (ifcvt_repair_bool_pattern): Collect all statements that are root
34027 of bool pattern and use iterative algorithm to remove multiple uses
34028 of predicates, display number of required iterations.
34029
34030 2015-01-29 Richard Biener <rguenther@suse.de>
34031
34032 PR tree-optimization/64853
34033 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
34034 stmt will get simulated again.
34035 * tree-ssa-ccp.c (valueize_op_1): Likewise.
34036
34037 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34038
34039 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
34040 return_in_pc. Remove redundant assignments.
34041 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
34042 (arm_expand_epilogue): Don't compare boolean with true in if condition.
34043
34044 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
34045
34046 * config/i386/i386.c (ix86_mode_after): Make static.
34047
34048 2015-01-29 Richard Biener <rguenther@suse.de>
34049
34050 PR tree-optimization/64844
34051 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
34052 dump cost model analysis.
34053 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34054 Do not register adjusted load/store costs here.
34055
34056 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
34057 Uros Bizjak <ubizjak@gmail.com>
34058
34059 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
34060 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
34061 using x86_use_pseudo_pic_reg.
34062 * config/i386/i386.c (ix86_conditional_register_usage): Remove
34063 support for fixed PIC register.
34064 (ix86_use_pseudo_pic_reg): Not static any more.
34065
34066 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
34067
34068 PR middle-end/64805
34069 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
34070 to avoid error in cgraph node verification.
34071
34072 2015-01-29 Marek Polacek <polacek@redhat.com>
34073
34074 * doc/standards.texi: Reflect that the default for C is gnu11.
34075
34076 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
34077
34078 PR target/64761
34079 * reorg.c (switch_text_sections_between_p): New function.
34080 (relax_delay_slots): Call it when testing if the jump insn
34081 is removable. Use targetm.can_follow_jump when testing if
34082 the conditional branch can follow an unconditional jump.
34083
34084 2015-01-27 Caroline Tice <cmtice@google.com>
34085
34086 Committing VTV Cywin/Ming patch for Patrick Wollgast
34087 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
34088 if -fvtable-verify=preinit/std is used.
34089 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
34090 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
34091 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
34092 if -fvtable-verify=preinit/std is used.
34093 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
34094 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
34095 if -fvtable-verify=preinit/std is used.
34096 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
34097 * config/i386/mingw32.h (LIB_SPEC): Likewise.
34098 * varasm.c (assemble_variable): Add code to properly set the comdat
34099 section and name for the .vtable_map_vars section in case the
34100 target is PE or COFF.
34101
34102 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
34103
34104 PR ipa/64801
34105 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
34106 make sane BB profile.
34107 (cgraph_node::expand_thunk): Make sane BB profile.
34108 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
34109 * cgraph.h (init_lowered_empty_function): Update prototype.
34110 * config/i386/i386.c (make_resolver_func): Update call.
34111 * predict.c (gate): Disable branch prediction pass if
34112 profile is already there.
34113
34114 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
34115
34116 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
34117 * opth-gen.awk: Likewise.
34118 * common.opt: Mark flag_fp_contract_mode as Optimization.
34119
34120 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
34121
34122 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
34123 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
34124
34125 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
34126
34127 PR target/64659
34128 * config/sh/predicates.md (atomic_arith_operand,
34129 atomic_logical_operand): Remove.
34130 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
34131 (atomic_arith_operand_0): New predicate.
34132 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
34133 Use atomic_arith_operand_0 for input values.
34134 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
34135 atomic_compare_and_swap<mode>_soft_gusa,
34136 atomic_compare_and_swap<mode>_soft_tcb,
34137 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
34138 arith_reg_operand instead of register_operand.
34139 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
34140 atomic_arith_operand_0 for newval input.
34141 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
34142 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
34143 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
34144 arith_reg_operand instead of register_operand.
34145 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
34146 fetchop_predicate_1, fetchop_constraint_1_llcs,
34147 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
34148 fetchop_constraint_1_imask): New code iterator attributes.
34149 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
34150 register_operand. Use fetchop_predicate_1.
34151 (atomic_fetch_<fetchop_name>si_hard,
34152 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
34153 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
34154 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
34155 and arith_reg_operand instead of register_operand. Use
34156 fetchop_predicate_1, fetchop_constraint_1_gusa.
34157 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
34158 and arith_reg_operand instead of register_operand. Use
34159 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
34160 to allow R0 usage.
34161 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
34162 and arith_reg_operand instead of register_operand. Use
34163 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
34164 to allow R0 usage.
34165 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
34166 register_operand. Use atomic_logical_operand_1.
34167 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
34168 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
34169 arith_reg_operand instead of register_operand.
34170 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
34171 Use arith_reg_dest and arith_reg_operand instead of register_operand.
34172 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
34173 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
34174 register_operand. Use fetchop_predicate_1.
34175 (atomic_<fetchop_name>_fetchsi_hard,
34176 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
34177 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34178 fetchop_constraint_1_llcs.
34179 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
34180 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34181 fetchop_constraint_1_gusa.
34182 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
34183 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34184 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
34185 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
34186 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34187 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
34188 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
34189 register_operand. Use atomic_logical_operand_1.
34190 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
34191 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
34192 arith_reg_operand instead of register_operand.
34193 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
34194 arith_reg_operand instead of register_operand. Use logical_operand
34195 and K08. Adjust asm sequence to allow R0 usage.
34196 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
34197 arith_reg_operand instead of register_operand. Use logical_operand
34198 and K08.
34199
34200 2015-01-28 Jakub Jelinek <jakub@redhat.com>
34201
34202 PR other/63504
34203 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
34204 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
34205 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
34206 only get_full_len HOST_WIDE_INTs from get_val () array rather than
34207 all bits in *val_wide.
34208
34209 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
34210
34211 * varpool.c (tls_model_names): Fix names.
34212 (varpool_node::dump): Dump tls- prefix for tls models.
34213
34214 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
34215 Bernd Schmidt <bernds@codesourcery.com>
34216 Nathan Sidwell <nathan@codesourcery.com>
34217
34218 * config/nvptx/mkoffload.c: New file.
34219 * config/nvptx/t-nvptx: Add build rules for it.
34220 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
34221 (extra_programs): Add mkoffload.
34222 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
34223 function.
34224 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
34225
34226 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
34227
34228 PR middle-end/64809
34229 * cfgexpand.c (reorder_operands): Skip debug gimples.
34230
34231 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
34232
34233 PR tree-optimization/64277
34234 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
34235 range info when possible to refine estimation.
34236
34237 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
34238
34239 PR tree-optimization/64718
34240 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
34241 be a 16bit unsigned integer when n->range is 16.
34242 (bswap_replace): Convert src to that type if necessary for all bswap
34243 sizes. Fix rotation right notation in nearby comment. Use bswap_type
34244 set in pass_optimize_bswap::execute ().
34245
34246 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
34247
34248 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
34249 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
34250 integer and floating point variants.
34251 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
34252
34253 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
34254
34255 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
34256 for all vector modes.
34257
34258 2015-01-28 Jakub Jelinek <jakub@redhat.com>
34259
34260 PR bootstrap/64612
34261 * doc/sourcebuild.texi (comdat_group): Document.
34262
34263 2015-01-28 Terry Guo <terry.guo@arm.com>
34264
34265 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
34266
34267 2015-01-27 David Malcolm <dmalcolm@redhat.com>
34268
34269 * toplev.c (print_version): Add param "show_global_state", and
34270 only print GGC and plugin information if it is true.
34271 (init_asm_output): Pass in "true" for the new param when calling
34272 print_version.
34273 (process_options): Likewise.
34274 (toplev::main): Likewise.
34275 * toplev.h (print_version): Add new param to decl.
34276
34277 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
34278
34279 PR ipa/60871
34280 PR ipa/64139
34281 * tree.c (lookup_binfo_at_offset): New function.
34282 (get_binfo_at_offset): Use it.
34283
34284 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
34285
34286 PR ipa/64282
34287 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
34288 on vtable being vtable.
34289
34290 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
34291
34292 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
34293 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
34294 -mhotpatch= option.
34295 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
34296 -mno-hotpatch options. Change syntax of -mhotpatch= option.
34297 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
34298 Renamed.
34299 (s390_hotpatch_trampoline_halfwords_max): Renamed.
34300 (s390_hotpatch_hw_max): New name.
34301 (s390_hotpatch_trampoline_halfwords): Renamed.
34302 (s390_hotpatch_hw_before_label): New name.
34303 (get_hotpatch_attribute): Removed.
34304 (s390_hotpatch_hw_after_label): New name.
34305 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
34306 attribute.
34307 (s390_attribute_table): Ditto.
34308 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
34309 (s390_function_num_hotpatch_hw): New name.
34310 Remove special handling of inline functions and hotpatching.
34311 Return number of nops before and after the function label.
34312 (s390_can_inline_p): Removed.
34313 (s390_asm_output_function_label): Emit a configurable number of nops
34314 after the function label.
34315 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
34316 (TARGET_CAN_INLINE_P) Removed.
34317 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
34318
34319 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34320 Jiong Wang <jiong.wang@arm.com>
34321
34322 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
34323 of scratch reg.
34324 (cb<optab><mode>1): Likewise.
34325 * config/aarch64/iterators.md (bcond): New define_code_attr.
34326
34327 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34328
34329 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
34330 memory accesses.
34331
34332 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34333
34334 * config/s390/s390.c (s390_register_move_cost): Increase costs for
34335 FPR->GPR moves.
34336
34337 2015-01-27 Richard Biener <rguenther@suse.de>
34338
34339 * tree-vrp.c (update_value_range): Intersect the range with
34340 old recorded SSA name range information.
34341
34342 2015-01-27 Nick Clifton <nickc@redhat.com>
34343
34344 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
34345 BC, DE and HL registers directly, not via AX.
34346 When decrementing the stack pointer by a large amount, transfer SP
34347 into AX and perform the subtraction there.
34348 (rl78_expand_epilogue): Perform the inverse of the above
34349 enhancements.
34350
34351 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34352
34353 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
34354
34355 2015-01-27 Jakub Jelinek <jakub@redhat.com>
34356 Yury Gribov <y.gribov@samsung.com>
34357
34358 PR ubsan/64741
34359 * ubsan.c (ubsan_source_location): Refactor code.
34360 (ubsan_type_descriptor): Update type size. Refactor code.
34361
34362 2015-01-27 Richard Biener <rguenther@suse.de>
34363
34364 PR tree-optimization/56273
34365 PR tree-optimization/59124
34366 PR tree-optimization/64277
34367 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
34368 from the first VRP pass.
34369
34370 2015-01-27 Jakub Jelinek <jakub@redhat.com>
34371
34372 PR ipa/64776
34373 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
34374 handle the first argument in the same loop as all the other arguments.
34375
34376 PR rtl-optimization/61058
34377 * jump.c (cleanup_barriers): Update basic block boundaries
34378 if BLOCK_FOR_INSN is non-NULL on PREV.
34379
34380 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
34381
34382 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
34383 bounds narrowing, already instrumented calls and calls to
34384 not instrumentable functions.
34385
34386 2015-01-27 Jakub Jelinek <jakub@redhat.com>
34387
34388 PR tree-optimization/64807
34389 * wide-int.cc (wi::divmod_internal): Clear
34390 b_dividend[dividend_blocks_needed].
34391
34392 2015-01-26 DJ Delorie <dj@redhat.com>
34393
34394 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
34395 volatile memory references.
34396
34397 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
34398
34399 PR target/49263
34400 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
34401 remove_insn.
34402 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
34403 shifts if it already fits into K08.
34404
34405 2015-01-26 Jakub Jelinek <jakub@redhat.com>
34406
34407 PR ipa/64730
34408 * ipa-inline.c (inline_small_functions): Print "unknown" even
34409 if edge->call_stmt is non-NULL, but has builtins or unknown
34410 location.
34411
34412 PR middle-end/64421
34413 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
34414 with asterisk, skip the first character.
34415
34416 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
34417
34418 PR target/64806
34419 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
34420 order change.
34421
34422 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
34423
34424 PR target/64795
34425 * config/i386/i386.md (*movdi_internal): Also check operand 0
34426 to determine TYPE_LEA operand.
34427 (*movsi_internal): Ditto.
34428
34429 2015-01-26 Jakub Jelinek <jakub@redhat.com>
34430
34431 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
34432 OPTION_MASK_QUAD_MEMORY_ATOMIC.
34433
34434 2015-01-26 Renlin Li <renlin.li@arm.com>
34435
34436 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
34437 the comment.
34438 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
34439 for higher part.
34440
34441 2015-01-26 Richard Biener <rguenther@suse.de>
34442
34443 PR middle-end/64764
34444 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
34445 combining two BIT_AND_EXPR predicates.
34446
34447 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
34448
34449 PR bootstrap/64754
34450 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
34451
34452 2015-01-26 Terry Guo <terry.guo@arm.com>
34453
34454 * config/arm/arm.c (arm_file_start): Update the assignment of
34455 Tag_ABI_HardFP_use.
34456
34457 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
34458
34459 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
34460 pipeline model.
34461 config/arm/arm.md: Include the new Cortex-A57 model.
34462 (generic_sched): Don't use generic_sched when tuning for
34463 Cortex-A57.
34464
34465 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
34466 Uros Bizjak <ubizjak@gmail.com>
34467
34468 * config/i386/i386.c (get_builtin_code_for_version): Add
34469 support for BMI and BMI2 multiversion functions.
34470
34471 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34472
34473 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
34474 (extract_bit_field): Likewise.
34475 (extract_low_bits): Likewise.
34476 (expand_mult): Likewise.
34477 (expand_mult_highpart_adjust): Likewise.
34478
34479 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
34480
34481 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
34482 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
34483 * config/i386/i386.c (processor_model): Add
34484 M_INTEL_COREI7_BROADWELL.
34485 (arch_names_table): Add "broadwell".
34486
34487 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
34488
34489 PR target/49263
34490 PR target/53987
34491 PR target/64345
34492 PR target/59533
34493 PR target/52933
34494 PR target/54236
34495 PR target/51244
34496 * config/sh/sh-protos.h
34497 (sh_extending_set_of_reg::can_use_as_unextended_reg,
34498 sh_extending_set_of_reg::use_as_unextended_reg,
34499 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
34500 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
34501 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
34502 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
34503 (sh_treg_insns): New class.
34504 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
34505 (scope_counter): New class.
34506 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
34507 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
34508 sh_extending_set_of_reg::can_use_as_unextended_reg,
34509 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
34510 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
34511 sh_split_treg_set_expr): New functions.
34512 (addsubcosts): Handle treg_set_expr.
34513 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
34514 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
34515 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
34516 (sh_insn_operands_modified_between_p): Make non-static.
34517 * config/sh/predicates.md (zero_extend_movu_operand): Allow
34518 simple_mem_operand in addition to displacement_mem_operand.
34519 (zero_extend_operand): Don't allow zero_extend_movu_operand.
34520 (treg_set_expr, treg_set_expr_not_const01,
34521 arith_reg_or_treg_set_expr): New predicates.
34522 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
34523 arith_or_int_operand instead of logical_operand. Convert to
34524 insn_and_split. Try to optimize constant operand in splitter.
34525 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
34526 (*tstqi_t_zero): Delete.
34527 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
34528 (tstsi_t_and_not): Delete.
34529 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
34530 Convert to insn_and_split.
34531 (unnamed split, tstsi_t_zero_extract_xor,
34532 tstsi_t_zero_extract_subreg_xor_little,
34533 tstsi_t_zero_extract_subreg_xor_big): Delete.
34534 (*tstsi_t_shift_mask): New insn_and_split.
34535 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
34536 to recombine with surrounding insns when splitting.
34537 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
34538 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
34539 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
34540 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
34541 (*cbranch_div0s: Delete.
34542 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
34543 Try to recombine with surrounding insns when splitting. Add operand
34544 order variants.
34545 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
34546 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
34547 *addc_r_r_msb, *addc_2r_msb): Delete.
34548 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
34549 order variant.
34550 (*addc_negreg_t): New insn_and_split.
34551 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
34552 Try to recombine with surrounding insns when splitting.
34553 Add operand order variants.
34554 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
34555 insn_and_split patterns.
34556 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
34557 surrounding insns when splitting.
34558 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
34559 (*rotcl): Likewise. Add zero_extract variant.
34560 (*ashrsi2_31): New insn_and_split.
34561 (*negc): Convert to insn_and_split. Use treg_set_expr.
34562 (*zero_extend<mode>si2_disp_mem): Update comment.
34563 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
34564 condition.
34565 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
34566 with surrounding insns when splitting.
34567 (any_treg_expr_to_reg): New insn_and_split.
34568 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
34569 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
34570 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
34571 *zero_extract_2): New single bit zero extract patterns.
34572 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
34573 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
34574 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
34575 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
34576 set destination.
34577 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
34578 register_operand for set source.
34579
34580 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
34581
34582 * i386.opt (prefetch_sse): New targetsave.
34583 * i386.c (ix86_function_specific_save): Save prefetch_sse.
34584 (ix86_function_specific_restore): Restore prefetch_sse and initialize
34585 ix86_cost/ix86_tune_cost.
34586
34587 2015-01-23 David Malcolm <dmalcolm@redhat.com>
34588
34589 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
34590 Support the JIT by using 0 as the language type.
34591
34592 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
34593
34594 PR target/64317
34595 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
34596 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
34597 (mark_regno_live, process_bb_lives): Pass new parameter value to
34598 make_hard_regno_born.
34599
34600 2015-01-23 Jakub Jelinek <jakub@redhat.com>
34601
34602 PR rtl-optimization/63637
34603 PR rtl-optimization/60663
34604 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
34605 if elt->cost is MAX_COST for ASM_OPERANDS.
34606 (find_sets_in_insn): Fix up comment typo.
34607 (cse_insn): Don't set src_volatile for all non-volatile
34608 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
34609 or with "memory" clobber. Set elt->cost to MAX_COST
34610 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
34611 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
34612
34613 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
34614
34615 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
34616 alternative 1.
34617
34618 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
34619
34620 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
34621 libgcc/config/i386/elf-lib.h.
34622
34623 2015-01-23 Jakub Jelinek <jakub@redhat.com>
34624
34625 PR driver/64737
34626 * gcc.c (print_configuration): Don't print a blank line at the end
34627 here...
34628 (run_attempt): ... but here unstead.
34629
34630 PR middle-end/64734
34631 * omp-low.c (scan_sharing_clauses): Don't ignore
34632 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
34633 on target data/update constructs.
34634
34635 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
34636
34637 PR target/50928
34638 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
34639 (DEBUG_RELOAD): Removed define.
34640 (m32c_limit_reload_class): Enable traces with if DEBUG0.
34641 (m32c_function_arg): Added a type cast.
34642 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
34643 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
34644 * config/m32c/bitops.md (andqi3_16): Likewise.
34645 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
34646 (push_a01_l): Likewise.
34647
34648 2015-01-23 David Malcolm <dmalcolm@redhat.com>
34649
34650 PR jit/64721
34651 * main.c (main): Construct toplev instances with init_signals=true.
34652 * toplev.c (general_init): Add param "init_signals", and use it to
34653 conditionalize the calls to signal and host_hooks.extra_signals.
34654 (toplev::toplev): Add param "init_signals".
34655 (toplev::main): When invoking general_init, pass m_init_signals
34656 to control whether signal-handlers are installed.
34657 * toplev.h (toplev::toplev): Add param "init_signals".
34658 (toplev::m_init_signals): New field.
34659
34660 2015-01-23 David Malcolm <dmalcolm@redhat.com>
34661
34662 PR jit/64722
34663 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
34664 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
34665 latter may be affected by the former (e.g. on i686).
34666
34667 2015-01-23 Martin Liska <mliska@suse.cz>
34668
34669 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
34670 false positive during profiledbootstrap.
34671
34672 2015-01-23 Tom de Vries <tom@codesourcery.com>
34673
34674 PR libgomp/64672
34675 * lto-opts.c (lto_write_options): Output non-explicit conservative
34676 -fno-openacc.
34677 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
34678 (append_compiler_options): Pass -fopenacc through.
34679
34680 2015-01-23 Tom de Vries <tom@codesourcery.com>
34681
34682 PR libgomp/64707
34683 * lto-opts.c (lto_write_options): Output non-explicit conservative
34684 -fno-openmp.
34685 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
34686 (append_compiler_options): Pass -fopenmp through.
34687
34688 2015-01-23 Jakub Jelinek <jakub@redhat.com>
34689
34690 PR debug/64511
34691 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
34692 GTY markup.
34693
34694 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
34695 * diagnostic.def (DK_ICE_NOBT): New kind.
34696 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
34697 like DK_ICE, but never print backtrace.
34698 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
34699 (internal_error_no_backtrace): New function.
34700 * gcc.c (execute): Use internal_error_no_backtrace instead of
34701 internal_error.
34702
34703 2015-01-22 Jeff Law <law@redhat.com>
34704
34705 PR target/52076
34706 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
34707 improve code density for small immediate to memory case.
34708 (insv): Better handle bitfield assignments when the field is
34709 being set to all ones.
34710 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
34711 operand predicate.
34712
34713 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34714 Jakub Jelinek <jakub@redhat.com>
34715
34716 PR middle-end/64729
34717 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
34718 for !TARGET_LIBC_PROVIDES_SSP version and
34719 -fstack-protector-{all,strong,explicit} otherwise.
34720 * config/freebsd.h (LINK_SSP_SPEC): Handle
34721 -fstack-protector-{strong,explicit}.
34722
34723 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
34724 H.J. Lu <hongjiu.lu@intel.com>
34725
34726 PR ipa/64694
34727 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
34728 heap.
34729
34730 2015-01-22 Wei Mi <wmi@google.com>
34731
34732 PR rtl-optimization/64557
34733 * dse.c (record_store): Call get_addr for mem_addr.
34734 (check_mem_read_rtx): Likewise.
34735
34736 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
34737
34738 * fold-const.c (const_binop): Add early return for non-tcc_binary.
34739
34740 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
34741
34742 * toplev.c (init_local_tick): Process the failure when read
34743 fails for random_seed.
34744
34745 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
34746 'pretty_name' to avoid memory overflow.
34747
34748 2015-01-22 Richard Biener <rguenther@suse.de>
34749
34750 PR middle-end/64728
34751 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
34752 abnormal coalescing on undefined SSA names.
34753
34754 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
34755
34756 PR target/64688
34757 PR target/64477
34758 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
34759 for alternative 3.
34760 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
34761
34762 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
34763
34764 PR middle-end/63325
34765 * fold-const.c (fold_checksum_tree): Don't include value of
34766 expr->decl_with_vis.symtab_node in the checksum.
34767
34768 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34769
34770 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
34771
34772 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
34773
34774 PR driver/64690
34775 * gcc.c (insert_comments): New function.
34776 (try_generate_repro): Call it.
34777 (append_text): Removed.
34778
34779 2015-01-22 Richard Biener <rguenther@suse.de>
34780
34781 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
34782 with IL incompatible options. Properly honor user optimize
34783 attributes.
34784
34785 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
34786
34787 PR rtl-optimization/64682
34788 * combine.c (distribute_notes): When moving a death note for
34789 a register that is set in the new I2, make sure to put it
34790 before that new I2.
34791
34792 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
34793
34794 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
34795 not TARGET_DEFAULT.
34796
34797 2015-01-21 Jakub Jelinek <jakub@redhat.com>
34798
34799 PR debug/64511
34800 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
34801 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
34802 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
34803
34804 PR sanitizer/64706
34805 * doc/invoke.texi (-fsanitize=vptr): Document.
34806
34807 PR rtl-optimization/62078
34808 * dse.c: Include cfgcleanup.h.
34809 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
34810 anything call purge_all_dead_edges and cleanup_cfg at the end
34811 of the pass.
34812
34813 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
34814
34815 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
34816 edges.
34817
34818 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
34819
34820 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
34821 decl attribute.
34822
34823 2015-01-21 David Sherwood <david.sherwood@arm.com>
34824 Tejas Belagod <Tejas.Belagod@arm.com>
34825
34826 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
34827 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
34828 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
34829 Removed.
34830
34831 2015-01-21 David Sherwood <david.sherwood@arm.com>
34832 Tejas Belagod <Tejas.Belagod@arm.com>
34833
34834 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
34835 (aarch64_reverse_mask): New decls.
34836 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
34837 (insn_count): New mode_attr.
34838 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
34839 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
34840 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
34841 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
34842 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
34843 (aarch64_simd_st4): New patterns.
34844 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
34845 (aarch64_reverse_mask): New functions.
34846
34847 2015-01-21 Alan Hayward <alan.hayward@arm.com>
34848
34849 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
34850 Declare.
34851 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
34852 addressing modes for BE.
34853 (aarch64_print_operand): Add 'R' specifier.
34854 (aarch64_simd_disambiguate_copy): Delete.
34855 (aarch64_simd_emit_reg_reg_move): New function.
34856 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
34857 in define_splits for structural moves.
34858 (mov<mode>): Use less restrictive predicates.
34859 (*aarch64_mov<mode>): Simplify and only allow for LE.
34860 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
34861
34862 2015-01-21 Alan Hayward <alan.hayward@arm.com>
34863
34864 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
34865
34866 2015-01-21 Richard Henderson <rth@redhat.com>
34867
34868 PR target/64669
34869 * ccmp.c (used_in_cond_stmt_p): Remove.
34870 (expand_ccmp_expr): Don't use it.
34871
34872 2015-01-21 Nick Clifton <nickc@redhat.com>
34873
34874 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
34875 PARALLELs.
34876
34877 2015-01-21 Richard Biener <rguenther@suse.de>
34878
34879 PR middle-end/64313
34880 * tree-core.h (builtin_info, builtin_info_type): Turn from
34881 an object with two arrays into an array of an object with
34882 decl and two flags, implicit_p and declared_p.
34883 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
34884 set_builtin_decl, set_builtin_decl_implicit_p,
34885 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
34886 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
34887 * builtins.c (builtin_info): Adjust.
34888 * gimplify.c (gimplify_addr_expr): References to builtins
34889 that have been declared by the user makes them eligible for
34890 use by the compiler. Call set_builtin_decl_implicit_p on them.
34891
34892 2015-01-20 Jeff Law <law@redhat.com>
34893
34894 PR target/59946
34895 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
34896 allow pc-relative addresses in operand predicates or constraints.
34897
34898 2015-01-21 Bin Cheng <bin.cheng@arm.com>
34899
34900 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
34901 neon on aarch32 processors for stringops.
34902
34903 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34904
34905 PR ipa/63576
34906 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
34907
34908 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34909
34910 PR lto/45375
34911 * ipa-inline.c: Include lto-streamer.h
34912 (report_inline_failed_reason): Output source file differences and
34913 flags on optimization/target node mismatch.
34914 (can_inline_edge_p): Consider caller to be the outer inline function;
34915 be less restrictive about matching opimize and optimize_size attributes.
34916 (inline_account_function_p): Break out from ...
34917 (inline_small_functions): ... here.
34918 * ipa-inline-transform.c (clone_inlined_nodes): Use
34919 inline_account_function_p.
34920 (inline_call): Use optimize attribution; use inline_account_function_p.
34921 (inline_transform): Use opt_for_fn.
34922 * ipa-inline.h (inline_account_function_p): Declare.
34923
34924 2015-01-20 Jakub Jelinek <jakub@redhat.com>
34925
34926 PR debug/64663
34927 * dwarf2out.c (decl_piece_node): Don't put bitsize into
34928 mode if bitsize <= 0.
34929 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
34930 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
34931 sizes and positions.
34932
34933 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
34934
34935 * config/nios2/nios2.c (nios2_asm_file_end): Implement
34936 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
34937 needed.
34938 (TARGET_ASM_FILE_END): Define.
34939
34940 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34941
34942 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
34943 (struct tune_params): Use the enum.
34944 * arm.c (arm_*_tune): Update.
34945 (arm_option_override): Update.
34946
34947 2015-01-20 Richard Biener <rguenther@suse.de>
34948
34949 PR ipa/64684
34950 * ipa-reference.c (add_static_var): Inline ...
34951 (analyze_function): ... here after splitting out from ...
34952 (is_proper_for_analysis): ... this.
34953
34954 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
34955
34956 PR target/64149
34957 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
34958 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
34959 replace the conditional with it's true branch.
34960 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
34961 (arm_lra_p): Remove.
34962
34963 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
34964
34965 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
34966
34967 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34968
34969 * config/tilegx/mul-tables.c: Move symtab.h include after
34970 coretypes.h include.
34971 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
34972 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
34973 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
34974 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
34975 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34976
34977 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
34978
34979 PR bootstrap/64676
34980 Revert:
34981 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
34982
34983 PR rtl-optimization/64081
34984 * loop-iv.c (def_pred_latch_p): New function.
34985 (latch_dominating_def): Allow specific cases with non-single
34986 definitions.
34987 (iv_get_reaching_def): Likewise.
34988 (check_complex_exit_p): New function.
34989 (check_simple_exit): Use check_complex_exit_p to allow certain cases
34990 with exits not executing on any iteration.
34991
34992 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34993
34994 PR lto/45375
34995 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
34996 to set branch cost.
34997
34998 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34999
35000 PR lto/45375
35001 * i386.c (gate): Check flag_expensive_optimizations and
35002 optimize_size.
35003 (ix86_option_override_internal): Drop optimize_size condition
35004 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
35005 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
35006 MASK_PREFER_AVX128.
35007 (ix86_avx256_split_vector_move_misalign,
35008 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
35009 * sse.md (all uses of TARGET_PREFER_AVX128): Add
35010 optimize_insn_for_speed_p check.
35011
35012 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
35013
35014 * config/mips/mips.h (FP_ASM_SPEC): New define.
35015 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
35016 instead.
35017
35018 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
35019
35020 PR target/53988
35021 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
35022 nullptr for insn when reaching the first insn.
35023 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
35024 (sh_insn_operands_modified_between_p): Add nullptr check.
35025 (sh_find_extending_set_of_reg): Fix log message. Don't accept
35026 sign extending mem load if the insn contains any UNSPEC or
35027 UNSPEC_VOLATILE.
35028
35029 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35030
35031 * params.def (inline-unit-growth): Drop to 15%.
35032 * invoke.texi (inline-unit-growth): Document change.
35033
35034 2015-01-19 Martin Liska <mliska@suse.cz>
35035
35036 PR ipa/64668
35037 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
35038 function for second argument of OBJ_TYPE_REF.
35039
35040 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35041
35042 PR ipa/64218
35043 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
35044 whether function is an alias.
35045
35046 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35047
35048 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
35049 cases.
35050
35051 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
35052
35053 PR rtl-optimization/64671
35054 * lra-remat.c (operand_to_remat): Don't consider jump and call
35055 insns.
35056
35057 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
35058
35059 PR target/59828
35060 * config/rs6000/default64.h: Include rs6000-cpus.def.
35061 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
35062 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
35063 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
35064 and POWER8.
35065 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
35066 POWER8.
35067 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
35068 pseudo-op to specify assembler dialect.
35069
35070 2015-01-19 Martin Liska <mliska@suse.cz>
35071
35072 PR ipa/64664
35073 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
35074 Handle safe potentially removed nodes during filtering.
35075
35076 2015-01-19 Martin Liska <mliska@suse.cz>
35077
35078 * doc/extend.texi (no_icf): Add new attribute description.
35079 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
35080 where the pass attempts to merge a function with no_icf attribute.
35081
35082 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35083
35084 PR target/64532
35085 * doc/md.texi (ARM Options): Document register constraints.
35086
35087 2015-01-19 Jiong Wang <jiong.wang@arm.com>
35088 Andrew Pinski <apinski@cavium.com>
35089
35090 PR target/64304
35091 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
35092 (ashl<mode>3): Don't expand if operands[2] is not constant.
35093
35094 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35095
35096 PR target/64448
35097 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
35098 Match xor-and-xor RTL pattern.
35099
35100 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
35101
35102 PR rtl-optimization/64081
35103 * loop-iv.c (def_pred_latch_p): New function.
35104 (latch_dominating_def): Allow specific cases with non-single
35105 definitions.
35106 (iv_get_reaching_def): Likewise.
35107 (check_complex_exit_p): New function.
35108 (check_simple_exit): Use check_complex_exit_p to allow certain cases
35109 with exits not executing on any iteration.
35110
35111 2015-01-19 Jakub Jelinek <jakub@redhat.com>
35112
35113 * common.opt (fgraphite): Fix a typo.
35114
35115 2015-01-19 Felix Yang <felix.yang@huawei.com>
35116
35117 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
35118 pattern.
35119 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
35120 uminp, smax_nanp, smin_nanp): New builtins.
35121 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
35122 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
35123 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
35124 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
35125 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
35126 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
35127 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
35128 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
35129 vpminnms_f32): Rewrite using builtin functions.
35130
35131 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
35132
35133 PR libgomp/64625
35134 * omp-low.c (offload_symbol_decl): Remove variable.
35135 (get_offload_symbol_decl): Remove function.
35136 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
35137 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
35138 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
35139 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
35140 BUILT_IN_GOACC_UPDATE don't pass it at all.
35141
35142 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
35143
35144 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
35145 callers.
35146
35147 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
35148
35149 * ipa-chkp.c (chkp_produce_thunks): Add early param
35150 to split thunks production into two passes. Keep
35151 'always_inline' function bodies after the first pass.
35152 (pass_data_ipa_chkp_early_produce_thunks): New.
35153 (pass_ipa_chkp_early_produce_thunks): New.
35154 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
35155 chkp_produce_thunks signature.
35156 (make_pass_ipa_chkp_early_produce_thunks): New.
35157 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
35158 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
35159 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
35160
35161 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
35162
35163 * cgraph.c (cgraph_node::dump): Dump profile flags.
35164
35165 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
35166
35167 PR target/64652
35168 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
35169 reg appear first in the parallel.
35170
35171 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
35172
35173 * ipa-reference.c (set_reference_optimization_summary,
35174 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
35175 disabled.
35176 (ignore_module_statics): New static var.
35177 (propagate_bits): If ipa-reference is disabled, do not look into local
35178 properties.
35179 (analyze_function): Disable analysis when ipa_reference is disabled.
35180 (generate_summary): Do not dump when reference is disabled;
35181 collect vars accessed from functions with ipa-reference disabled.
35182 (get_read_write_all_from_node): When ipa-reference is disabled, use the
35183 node flags.
35184 (gate): Enable for LTO.
35185 (ignore_edge_p): New function.
35186 (propagate): Skip functions w/o ipa-reference analysis.
35187 * optc-save-gen.awk: Handle optimize_debug correctly.
35188 * opth-gen.awk: Likewise.
35189 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
35190 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
35191 fira-share-save-slots, fira-share-spill-slots,
35192 fmodulo-sched-allow-regmoves, fpartial-inlining,
35193 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
35194 ftracer, ftree-parallelize-loops, fassociative-math,
35195 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
35196 Optimization
35197 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
35198 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
35199 Optimization.
35200 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
35201 Fix for IPA.
35202
35203 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
35204
35205 PR ipa/64378
35206 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
35207 flag correctly.
35208 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
35209
35210 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
35211
35212 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
35213 Remove duplicate option listings.
35214
35215 2015-01-18 Felix Yang <felix.yang@huawei.com>
35216
35217 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
35218 (autofdo_source_profile::get_callsite_total_count,
35219 function_instance::get_function_instance_by_decl,
35220 string_table::get_index, string_table::get_index_by_decl,
35221 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
35222 Fix comment typos. Reformatting and minor code rearrangement.
35223
35224 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35225
35226 * config/rs6000/rs6000.md (probe_stack): Delete.
35227 (probe_stack_address): New.
35228
35229 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35230
35231 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
35232 to test for 32-bit ABIs, not !TARGET_POWERPC64.
35233
35234 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35235
35236 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
35237 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
35238 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
35239 snafu.
35240 (rs6000_libcall_value): Use the new function.
35241
35242 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
35243
35244 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
35245
35246 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
35247
35248 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
35249 implement a more precise life analysis for it during backward scan.
35250
35251 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
35252
35253 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
35254
35255 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
35256
35257 PR rtl-optimization/52773
35258 * calls.c (emit_library_call_value): When pushing arguments use
35259 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
35260 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
35261 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
35262
35263 2015-01-17 Jeff Law <law@redhat.com>
35264
35265 PR rtl-optimization/32790
35266 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
35267 not ZERO_EXTEND in SET_DESTs.
35268
35269 2015-01-17 Alan Modra <amodra@gmail.com>
35270
35271 * cprop.c (do_local_cprop): Revert last change.
35272
35273 2015-01-16 DJ Delorie <dj@redhat.com>
35274 Nick Clifton <nickc@redhat.com>
35275
35276 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
35277 (addhi3_real): Likewise. Fix [HL+0] syntax.
35278 (subqi3_real): Likewise.
35279 (subhi3_real): Likewise.
35280 (cbranchqi4_real): Likewise. Allow saddr,#imm.
35281 (cbranchhi4_real): Likewise.
35282 (cbranchhi4_real_inverted): Likewise.
35283 (cbranchsi4_real_lt): Likewise.
35284 (cbranchsi4_real_ge): Likewise.
35285 (cbranchsi4_real_ge): Likewise.
35286 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
35287 (sub<mode>3_virt): Likewise.
35288 (cbranchqi4_virt): Likewise.
35289 (cbranchhi4_virt): Likewise.
35290 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
35291 always use '[reg+imm]' even when imm is zero.
35292 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
35293 (rl78_general_operand): New.
35294 (rl78_nonimmediate_operand): New.
35295 (rl78_nonfar_operand): Use them.
35296 (rl78_nonfar_nonimm_operand): Likewise.
35297 (rl78_stack_based_mem): Fix.
35298 * config/rl78/constraints.md (Ibqi): New.
35299 (IBqi): New.
35300 (Wsa): New.
35301 (Wsf): New.
35302 (Cs1): Fix.
35303 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
35304 (iorqi3): Likewise.
35305 (xorqi3): Likewise.
35306 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
35307
35308 * config/rl78/constrains (Qs8): New constraint.
35309 * config/rl78/rl78.c (rl78_flags_already_set): New function.
35310 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
35311 * config/rl78/rl78-real.md (update_Z): New attribute.
35312 Update patterns to set it.
35313 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
35314 shorter compare and branch sequence can be used.
35315 (cbranchhi4_real): Likewise.
35316 (cbranchhi4_real_inverted): Likewise.
35317
35318 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
35319 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
35320 address space.
35321 * config/rl78/rl78.c (rl78_get_name_encoding): New.
35322 (rl78_option_override): Allow -mes0 only if C.
35323 (characterize_address): Support subregs of symbol_refs.
35324 (rl78_addr_space_address_mode): Move. Add __near.
35325 (rl78_far_p): Likewise.
35326 (rl78_addr_space_pointer_mode): Likewise.
35327 (rl78_as_legitimate_address): Likewise.
35328 (rl78_addr_space_subset_p): Likewise.
35329 (rl78_addr_space_convert): Likewise.
35330 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
35331 symbols with -mes0.
35332 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
35333 addressing.
35334 (rl78_alloc_physical_registers_op1): Change logic to prefer
35335 symbol[BC] addressing.
35336 (frodata_section): New.
35337 (rl78_asm_init_sections): Initialize it.
35338 (rl78_select_section): Put __far readonly symbols in .frodata.
35339 (rl78_make_type_far): New.
35340 (rl78_insert_attributes): Force all readonly symbols to be
35341 __far when -mes0.
35342 (rl78_asm_out_integer): New.
35343 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
35344 * config/rl78/rl78.opt (-mes0): New.
35345
35346 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
35347 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
35348 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
35349 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
35350 (rl78_saddr_p): New.
35351 (rl78_output_aligned_common): New.
35352 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
35353 (rl78_handle_saddr_attribute): New.
35354 (rl78_handle_naked_attribute): New.
35355 (rl78_attribute_table): Add saddr.
35356 (rl78_print_operand_1): Don't print '!' on saddr operands.
35357 (rl78_print_operand_1): Strip encodings.
35358 (rl78_sfr_p): New.
35359 (rl78_strip_name_encoding): New.
35360 (rl78_attrlist_to_encoding): New.
35361 (rl78_encode_section_info): New.
35362 (rl78_asm_init_sections): New.
35363 (rl78_select_section): New.
35364 (rl78_output_labelref): New.
35365 (rl78_output_aligned_common): New.
35366 (rl78_asm_out_integer): New.
35367 (rl78_asm_ctor_dtor): New.
35368 (rl78_asm_constructor): New.
35369 (rl78_asm_destructor): New.
35370
35371 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
35372 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
35373 (transcode_memory_rtx): Update.
35374 (rl78_expand_epilogue): Use A_REG instead of 0.
35375
35376 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35377
35378 * config/arm/arm-protos.h (struct tune_params): New field
35379 sched_autopref_queue_depth.
35380 * config/arm/arm.c (sched-int.h): Include header.
35381 (arm_first_cycle_multipass_dfa_lookahead_guard,)
35382 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
35383 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
35384 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
35385 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
35386 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
35387 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
35388 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
35389 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
35390 * config/arm/t-arm (arm.o): Update.
35391 * haifa-sched.c (update_insn_after_change): Update.
35392 (rank_for_schedule): Use auto-prefetcher model, if requested.
35393 (autopref_multipass_init): New static function.
35394 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
35395 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
35396 variable for debug dumps.
35397 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
35398 (autopref_multipass_dfa_lookahead_guard): New global function that
35399 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
35400 (init_h_i_d): Update.
35401 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
35402 * sched-int.h (enum autopref_multipass_data_status): New const enum.
35403 (autopref_multipass_data_): Structure for auto-prefetcher data.
35404 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
35405 (struct _haifa_insn_data:autopref_multipass_data): New field.
35406 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
35407 (autopref_multipass_dfa_lookahead_guard): Declare.
35408
35409 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35410
35411 * rtlanal.c (get_base_term): Handle SCRATCH.
35412
35413 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35414
35415 * config/aarch64/aarch64.c
35416 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
35417 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
35418 * config/arm/arm.c
35419 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
35420 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
35421
35422 2015-01-17 Alan Modra <amodra@gmail.com>
35423
35424 * cprop.c (do_local_cprop): Disallow replacement of fixed
35425 hard registers.
35426
35427 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35428
35429 PR target/62066
35430 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
35431 early return 0.
35432
35433 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
35434
35435 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
35436 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
35437
35438 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35439
35440 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
35441 * config/arm/thumb1.md: ... Here.
35442
35443 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35444
35445 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
35446 TImode for TARGET_32BIT.
35447
35448 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35449
35450 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
35451 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
35452 as ...
35453 (rs6000_abi_word_mode): New function.
35454
35455 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35456
35457 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
35458 instead of UNITS_PER_WORD to describe the size of stack slots.
35459
35460 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35461
35462 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
35463 as rs6000_promote_function_mode. Move comment to there.
35464 (rs6000_promote_function_mode): New function.
35465
35466 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35467
35468 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
35469 -mpowerpc64 is active.
35470
35471 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
35472
35473 PR middle-end/64353
35474 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
35475 virtuals on start.
35476
35477 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
35478
35479 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
35480 introduced in revision 219724.
35481
35482 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35483 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35484
35485 PR target/64263
35486 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
35487 destination is not a GP reg.
35488 (*movdi_aarch64): Likewise.
35489
35490 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
35491
35492 PR target/64623
35493 * config/rs6000/default64.h: Revert ISA change.
35494
35495 2015-01-16 Richard Biener <rguenther@suse.de>
35496
35497 PR middle-end/64614
35498 * tree-ssa-uninit.c: Include tree-cfg.h.
35499 (MAX_SWITCH_CASES): New define.
35500 (convert_control_dep_chain_into_preds): Handle switch statements.
35501 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
35502 (normalize_one_pred_1): Do not split bit-manipulations.
35503 Record (x & CST).
35504
35505 2015-01-16 Richard Biener <rguenther@suse.de>
35506
35507 PR tree-optimization/64568
35508 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
35509 complex load rewriting for TARGET_MEM_REFs.
35510
35511 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
35512
35513 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
35514
35515 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
35516
35517 PR target/64149
35518 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
35519 variable.
35520 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
35521 (aarch64_lra_p): Remove.
35522
35523 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
35524
35525 PR target/64363
35526 * ipa-chkp.h (chkp_instrumentable_p): New.
35527 * ipa-chkp.c: Include tree-inline.h.
35528 (chkp_instrumentable_p): New.
35529 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
35530 Fix processing of not instrumentable functions.
35531 (chkp_versioning): Use chkp_instrumentable_p. Warn about
35532 not instrumentable functions.
35533 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
35534 chkp_instrumentable_p.
35535 * tree-inline.h (copy_forbidden): New.
35536 * tree-inline.c (copy_forbidden): Not static anymore.
35537
35538 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35539
35540 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
35541 ptr1, ptr2 unused.
35542
35543 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
35544
35545 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
35546 type OP_OUT to OP_INOUT.
35547
35548 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
35549
35550 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
35551 (high x) y) to y if x and y have the same base.
35552
35553 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
35554
35555 * config/arm/cortex-a57.md: New.
35556 * config/aarch64/aarch64.md: Include it.
35557 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
35558 * config/aarch64/aarch64-tune.md: Regenerate.
35559
35560 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
35561
35562 PR target/64015
35563 * ccmp.c (expand_ccmp_next): New function.
35564 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
35565 and compare insn sequence.
35566 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
35567 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
35568 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
35569 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
35570 (*ccmp_ior): Changed to ccmp_ior<mode>.
35571 (cmp<mode>): New pattern.
35572 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
35573 parameters.
35574 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
35575
35576 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
35577
35578 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
35579 _mm256_bsrli_epi128): New.
35580 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
35581
35582 2015-01-15 Jiong Wang <jiong.wang@arm.com>
35583
35584 * expmed.c (store_bit_field_using_insv): Improve warning message.
35585 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
35586
35587 2015-01-15 Jiong Wang <jiong.wang@arm.com>
35588
35589 PR rtl-optimization/64011
35590 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
35591 there is partial overflow.
35592
35593 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35594
35595 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
35596 prototype.
35597 (nds32_expand_epilogue_v3pop): Likewise.
35598 * config/nds32/nds32.md (sibcall): Define this for sibling call
35599 optimization.
35600 (sibcall_register): Likewise.
35601 (sibcall_immediate): Likewise.
35602 (sibcall_value): Likewise.
35603 (sibcall_value_register): Likewise.
35604 (sibcall_value_immediate): Likewise.
35605 (sibcall_epilogue): Likewise.
35606 (epilogue): Pass false to indicate this is not a sibcall epilogue.
35607 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
35608 (nds32_expand_epilogue_v3pop): Likewise.
35609
35610 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35611
35612 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
35613 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
35614 (return_internal): New.
35615 (return): Define this named pattern.
35616 (simple_return): Define this named pattern.
35617 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
35618 pattern instead of unspec_volatile_func_return.
35619 (nds32_expand_epilogue_v3pop): Likewise.
35620 (nds32_can_use_return_insn): New function.
35621
35622 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35623
35624 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
35625 * config/nds32/nds32.md (pop25return): New.
35626 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
35627 pop25return pattern.
35628
35629 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35630
35631 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
35632 -mforbid-fp-as-gp, and -mex9 options.
35633
35634 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35635
35636 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
35637 remove -mgp-direct option.
35638
35639 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35640
35641 * doc/invoke.texi (--param early-inlining-insns): Update default value.
35642 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
35643
35644 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35645
35646 * ipa-inline.c (inline_small_functions): Work around hints
35647 cache issue.
35648
35649 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
35650
35651 PR target/59710
35652 * doc/invoke.texi (Option Summary): Document new Nios II
35653 -mgpopt= syntax.
35654 (Nios II Options): Likewise.
35655 * config/nios2/nios2.opt: Add -mgpopt= option support.
35656 Modify existing -mgpopt and -mno-gpopt options to be aliases.
35657 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
35658 * config/nios2/nios2.c (nios2_option_override): Adjust
35659 -mgpopt defaulting.
35660 (nios2_in_small_data_p): Return true for explicit small data
35661 sections even with -G0.
35662 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
35663 option choices.
35664
35665 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35666
35667 PR ipa/64612
35668 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
35669 of comdat locals.
35670 (inline_call): Fix removal of aliases.
35671
35672 2015-01-15 Jakub Jelinek <jakub@redhat.com>
35673
35674 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
35675 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
35676 * opts.c (common_handle_option): Add -fsanitize=vptr.
35677 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
35678 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
35679 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
35680 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
35681 (ubsan_expand_vptr_ifn): New prototype.
35682 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
35683 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
35684 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
35685 expand_LOOP_VECTORIZED): Make argument nameless, remove
35686 ATTRIBUTE_UNUSED.
35687 (expand_UBSAN_VPTR): New function.
35688 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
35689 in fn spec.
35690 (UBSAN_VPTR): New internal function.
35691 * sanopt.c (tree_map_traits): Renamed to ...
35692 (sanopt_tree_map_traits): ... this.
35693 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
35694 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
35695 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
35696 (maybe_optimize_ubsan_vptr_ifn): New function.
35697 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
35698 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
35699 -fsanitize=vptr.
35700 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
35701 internal calls like pure functions for aliasing, even when they
35702 have other side-effects that prevent making them ECF_PURE.
35703 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
35704 (ubsan_expand_vptr_ifn): New function.
35705
35706 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
35707
35708 PR rtl-optimization/64110
35709 * stmt.c (parse_output_constraint): Process '^' and '$'.
35710 (parse_input_constraint): Ditto.
35711 * lra-constraints.c (process_alt_operands): Process the new
35712 constraints.
35713 * ira-costs.c (record_reg_classes): Process the new constraint
35714 '^'.
35715 * genoutput.c (indep_constraints): Add '^' and '$'.
35716 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
35717 * doc/md.texi: Add description of the new constraints.
35718
35719 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
35720 Bernd Schmidt <bernds@codesourcery.com>
35721 Cesar Philippidis <cesar@codesourcery.com>
35722 James Norris <jnorris@codesourcery.com>
35723 Tom de Vries <tom@codesourcery.com>
35724 Ilmir Usmanov <i.usmanov@samsung.com>
35725 Dmitry Bocharnikov <dmitry.b@samsung.com>
35726 Evgeny Gavrin <e.gavrin@samsung.com>
35727 Jakub Jelinek <jakub@redhat.com>
35728
35729 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
35730 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35731 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35732 New function types.
35733 * builtins.c: Include "gomp-constants.h".
35734 (expand_builtin_acc_on_device): New function.
35735 (expand_builtin, is_inexpensive_builtin): Handle
35736 BUILT_IN_ACC_ON_DEVICE.
35737 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
35738 New macros.
35739 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
35740 flag_openmp.
35741 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
35742 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
35743 i386/intelmic-offload.h.
35744 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
35745 to libgomp and its dependencies.
35746 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
35747 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
35748 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
35749 * config/ia64/hpux.h (LIB_SPEC): Likewise.
35750 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
35751 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
35752 * doc/generic.texi: Update for OpenACC changes.
35753 * doc/gimple.texi: Likewise.
35754 * doc/invoke.texi: Likewise.
35755 * doc/sourcebuild.texi: Likewise.
35756 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
35757 GF_OMP_FOR_KIND_OACC_LOOP.
35758 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
35759 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
35760 GF_OMP_TARGET_KIND_OACC_UPDATE,
35761 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
35762 Dump more data.
35763 * gimple.c: Update comments for OpenACC changes.
35764 * gimple.def: Likewise.
35765 * gimple.h: Likewise.
35766 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
35767 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
35768 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
35769 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
35770 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
35771 appropriate place.
35772 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
35773 * gimplify.c: Include "gomp-constants.h".
35774 Update comments for OpenACC changes.
35775 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
35776 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
35777 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
35778 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
35779 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
35780 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
35781 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
35782 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
35783 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
35784 OMP_CLAUSE_SEQ.
35785 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
35786 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
35787 OMP_CLAUSE_SET_MAP_KIND.
35788 (gimplify_oacc_cache): New function.
35789 (gimplify_omp_for): Handle OACC_LOOP.
35790 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
35791 OACC_DATA.
35792 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
35793 OACC_EXIT_DATA, OACC_UPDATE.
35794 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
35795 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
35796 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
35797 (gimplify_body): Consider flag_openacc next to flag_openmp.
35798 * lto-streamer-out.c: Include "gomp-constants.h".
35799 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
35800 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
35801 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
35802 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
35803 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
35804 (BUILT_IN_ACC_ON_DEVICE): New builtins.
35805 * omp-low.c: Include "gomp-constants.h".
35806 Update comments for OpenACC changes.
35807 (struct omp_context): Add reduction_map, gwv_below, gwv_this
35808 members.
35809 (extract_omp_for_data, use_pointer_for_field, install_var_field)
35810 (new_omp_context, delete_omp_context, scan_sharing_clauses)
35811 (create_omp_child_function, scan_omp_for, scan_omp_target)
35812 (check_omp_nesting_restrictions, lower_reduction_clauses)
35813 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
35814 Update for OpenACC changes.
35815 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
35816 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
35817 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
35818 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
35819 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
35820 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
35821 OMP_CLAUSE_MAP_*.
35822 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
35823 Handle GF_OMP_FOR_KIND_OACC_LOOP.
35824 (expand_omp_target, lower_omp_target): Handle
35825 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
35826 GF_OMP_TARGET_KIND_OACC_UPDATE,
35827 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
35828 GF_OMP_TARGET_KIND_OACC_DATA.
35829 (pass_expand_omp::execute, execute_lower_omp)
35830 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
35831 flag_openmp.
35832 (offload_symbol_decl): New variable.
35833 (oacc_get_reduction_array_id, oacc_max_threads)
35834 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
35835 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
35836 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
35837 (oacc_gimple_assign, oacc_initialize_reduction_data)
35838 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
35839 functions.
35840 (is_targetreg_ctx): Remove function.
35841 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
35842 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
35843 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
35844 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
35845 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
35846 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
35847 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
35848 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
35849 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
35850 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
35851 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
35852 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
35853 * tree-core.h: Update comments for OpenACC changes.
35854 (enum omp_clause_map_kind): Remove.
35855 (struct tree_omp_clause): Change type of map_kind member from enum
35856 omp_clause_map_kind to unsigned char.
35857 * tree-inline.c: Update comments for OpenACC changes.
35858 * tree-nested.c: Likewise. Include "gomp-constants.h".
35859 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
35860 (convert_tramp_reference_stmt, convert_gimple_call): Update for
35861 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
35862 OMP_CLAUSE_SET_MAP_KIND.
35863 * tree-pretty-print.c: Include "gomp-constants.h".
35864 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
35865 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
35866 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
35867 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
35868 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
35869 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
35870 instead of OMP_CLAUSE_MAP_*.
35871 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
35872 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
35873 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
35874 * tree-streamer-in.c: Include "gomp-constants.h".
35875 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
35876 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
35877 * tree-streamer-out.c: Include "gomp-constants.h".
35878 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
35879 OMP_CLAUSE_MAP_*.
35880 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
35881 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
35882 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
35883 * tree.c (omp_clause_num_ops): Update accordingly.
35884 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
35885 Likewise.
35886 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
35887 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
35888 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
35889 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
35890 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
35891 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
35892 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
35893 (OMP_CLAUSE_SET_MAP_KIND): New macro.
35894 * varpool.c (varpool_node::get_create): Consider flag_openacc next
35895 to flag_openmp.
35896 * config/i386/intelmic-offload.h: New file.
35897 * config/nvptx/offload.h: Likewise.
35898
35899 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35900
35901 * explow.h: Remove duplicate contents.
35902 * dojump.h: Likewise.
35903
35904 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
35905
35906 * arm.c (arm_xgene_tune): Add default initializer for instruction
35907 fusion.
35908
35909 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35910
35911 PR ipa/64068
35912 PR ipa/64559
35913 * ipa.c (symbol_table::remove_unreachable_nodes):
35914 Do not put abstract origins into boundary.
35915
35916 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
35917
35918 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
35919 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
35920
35921 2015-01-15 Steve Ellcey <sellcey@mips.com>
35922
35923 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
35924 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
35925 builtins.def, and chkp-builtins.def.
35926
35927 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
35928
35929 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
35930 ISA 2.7 (POWER8).
35931
35932 2015-01-15 Richard Biener <rguenther@suse.de>
35933
35934 PR tree-optimization/61743
35935 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
35936 information on PHIs for some simple cases.
35937
35938 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35939
35940 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
35941 Include xgene1.md.
35942 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
35943 * config/arm/arm-cores.def (xgene1): New entry.
35944 * config/arm/arm-tables.opt: Regenerate.
35945 * config/arm/arm-tune.md: Regenerate.
35946 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
35947
35948 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
35949
35950 * tree-if-conv.c: Include hash-map.h.
35951 (aggressive_if_conv): New variable.
35952 (fold_build_cond_expr): Add simplification of non-zero condition.
35953 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
35954 destination block is not always executed.
35955 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
35956 than two predecessors if AGGRESSIVE_IF_CONV is true.
35957 (if_convertible_stmt_p): Fix commentary.
35958 (all_preds_critical_p): New function.
35959 (has_pred_critical_p): New function.
35960 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
35961 BB can have more than two predecessors and all incoming edges can be
35962 critical.
35963 (predicate_bbs): Skip predication for loop exit block, use build2_loc
35964 to compute predicate for true edge.
35965 (find_phi_replacement_condition): Delete this function.
35966 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
35967 Allow interchange PHI arguments if EXTENDED is false.
35968 Change check that block containing reduction statement candidate
35969 is predecessor of phi-block since phi may have more than two arguments.
35970 (phi_args_hash_traits): New helper structure.
35971 (struct phi_args_hash_traits): New type.
35972 (phi_args_hash_traits::hash): New function.
35973 (phi_args_hash_traits::equal_keys): New function.
35974 (gen_phi_arg_condition): New function.
35975 (predicate_scalar_phi): Add handling of phi nodes with more than two
35976 arguments, delete COND and TRUE_BB arguments, insert body of
35977 find_phi_replacement_condition to predicate ordinary phi nodes.
35978 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
35979 delete call of find_phi_replacement_condition and invoke
35980 predicate_scalar_phi with two arguments.
35981 (insert_gimplified_predicates): Add assert that non-predicated block
35982 don't have statements to insert.
35983 (ifcvt_split_critical_edges): New function.
35984 (ifcvt_split_def_stmt): Likewise.
35985 (ifcvt_walk_pattern_tree): Likewise.
35986 (stmt_is_root_of_bool_pattern): Likewise.
35987 (ifcvt_repair_bool_pattern): Likewise.
35988 (ifcvt_local_dce): Likewise.
35989 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
35990 is copy of inner or outer loop force_vectorize field, invoke
35991 ifcvt_split_critical_edges, ifcvt_local_dce and
35992 ifcvt_repair_bool_pattern for aggressive if-conversion.
35993
35994 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
35995
35996 * config/aarch64/aarch64.md: Include xgene1.md.
35997 * config/aarch64/xgene1.md: New file.
35998
35999 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
36000
36001 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
36002 xgene1 (APM XGene-1) core definition.
36003 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
36004 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
36005 * doc/invoke.texi: Document -mcpu=xgene1.
36006
36007 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36008
36009 * dojump.h: New header file.
36010 * explow.h: Likewise.
36011 * expr.h: Remove includes.
36012 Move expmed.c prototypes to expmed.h.
36013 Move dojump.c prototypes to dojump.h.
36014 Move alias.c prototypes to alias.h.
36015 Move explow.c prototypes to explow.h.
36016 Move calls.c prototypes to calls.h.
36017 Move emit-rtl.c prototypes to emit-rtl.h.
36018 Move varasm.c prototypes to varasm.h.
36019 Move stmt.c prototypes to stmt.h.
36020 (saved_pending_stack_adjust): Move to dojump.h.
36021 (adjust_address): Move to explow.h.
36022 (adjust_address_nv): Move to emit-rtl.h.
36023 (adjust_bitfield_address): Likewise.
36024 (adjust_bitfield_address_size): Likewise.
36025 (adjust_bitfield_address_nv): Likewise.
36026 (adjust_automodify_address_nv): Likewise.
36027 * explow.c (expr_size): Move to expr.c.
36028 (int_expr_size): Likewise.
36029 (tree_expr_size): Likewise.
36030 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36031 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36032 * genemit.c (main): Generate includes statistics.h, real.h,
36033 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
36034 stmt.h.
36035 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
36036 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
36037 explow.h, emit-rtl.h, stmt.h.
36038 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
36039 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
36040 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
36041 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
36042 emit-rtl.h, varasm.h, stmt.h.
36043 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
36044 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
36045 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
36046 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
36047 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
36048 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
36049 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
36050 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
36051 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
36052 tm.h tree.h varasm.h vec.h wide-int.h.
36053 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36054 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36055 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
36056 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
36057 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
36058 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
36059 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
36060 * loop-iv.c: Likewise.
36061 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
36062 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
36063 statistics.h stmt.h tree.h varasm.h wide-int.h.
36064 * lra-constraints.c: Likewise.
36065 * lra-eliminations.c: Likewise.
36066 * lra-lives.c: Likewise.
36067 * lra-remat.c: Likewise.
36068 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36069 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
36070 statistics.h stmt.h tree.h varasm.h wide-int.h.
36071 * hw-doloop.c: Likewise.
36072 * ira-color.c: Likewise.
36073 * ira-emit.c: Likewise.
36074 * loop-doloop.c: Likewise.
36075 * loop-invariant.c: Likewise.
36076 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36077 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
36078 statistics.h stmt.h tree.h varasm.h wide-int.h.
36079 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
36080 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
36081 statistics.h stmt.h tree.h varasm.h wide-int.h.
36082 * combine-stack-adj.c: Likewise.
36083 * cse.c: Likewise.
36084 * ddg.c: Likewise.
36085 * ifcvt.c: Likewise.
36086 * ira-costs.c: Likewise.
36087 * jump.c: Likewise.
36088 * lra-coalesce.c: Likewise.
36089 * lra-spills.c: Likewise.
36090 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36091 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
36092 stmt.h varasm.h wide-int.h.
36093 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36094 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36095 varasm.h.
36096 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
36097 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
36098 statistics.h stmt.h varasm.h wide-int.h.
36099 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
36100 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
36101 varasm.h wide-int.h.
36102 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
36103 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36104 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
36105 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
36106 statistics.h stmt.h.
36107 * config/tilepro/tilepro.c: Likewise.
36108 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
36109 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
36110 * config/pdp11/pdp11.c: Likewise.
36111 * config/xtensa/xtensa.c: Likewise.
36112 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
36113 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36114 varasm.h.
36115 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36116 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36117 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
36118 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36119 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36120 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
36121 * rtl-chkp.c: Likewise.
36122 * tree-chkp-opt.c: Likewise.
36123 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
36124 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36125 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
36126 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36127 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36128 statistics.h stmt.h.
36129 * tree-vect-data-refs.c: Likewise.
36130 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
36131 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36132 rtl.h statistics.h stmt.h varasm.h.
36133 * internal-fn.c: Likewise.
36134 * ipa-icf-gimple.c: Likewise.
36135 * lto-section-out.c: Likewise.
36136 * tree-data-ref.c: Likewise.
36137 * tree-nested.c: Likewise.
36138 * tree-outof-ssa.c: Likewise.
36139 * tree-predcom.c: Likewise.
36140 * tree-pretty-print.c: Likewise.
36141 * tree-scalar-evolution.c: Likewise.
36142 * tree-ssa-strlen.c: Likewise.
36143 * tree-vect-loop.c: Likewise.
36144 * tree-vect-patterns.c: Likewise.
36145 * tree-vect-slp.c: Likewise.
36146 * tree-vect-stmts.c: Likewise.
36147 * tsan.c: Likewise.
36148 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36149 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
36150 stmt.h.
36151 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
36152 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36153 statistics.h stmt.h varasm.h.
36154 * loop-unroll.c: Likewise.
36155 * ubsan.c: Likewise.
36156 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
36157 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
36158 stmt.h varasm.h.
36159 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36160 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
36161 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
36162 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
36163 statistics.h stmt.h.
36164 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
36165 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
36166 statistics.h stmt.h varasm.h.
36167 * gimple-match-head.c: Likewise.
36168 * lto-cgraph.c: Likewise.
36169 * lto-section-in.c: Likewise.
36170 * lto-streamer-in.c: Likewise.
36171 * lto-streamer-out.c: Likewise.
36172 * tree-affine.c: Likewise.
36173 * tree-cfg.c: Likewise.
36174 * tree-cfgcleanup.c: Likewise.
36175 * tree-if-conv.c: Likewise.
36176 * tree-into-ssa.c: Likewise.
36177 * tree-ssa-alias.c: Likewise.
36178 * tree-ssa-copyrename.c: Likewise.
36179 * tree-ssa-dse.c: Likewise.
36180 * tree-ssa-forwprop.c: Likewise.
36181 * tree-ssa-live.c: Likewise.
36182 * tree-ssa-math-opts.c: Likewise.
36183 * tree-ssa-pre.c: Likewise.
36184 * tree-ssa-sccvn.c: Likewise.
36185 * tree-tailcall.c: Likewise.
36186 * tree-vect-generic.c: Likewise.
36187 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36188 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
36189 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36190 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
36191 * varasm.c: Likewise.
36192 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36193 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
36194 varasm.h.
36195 * init-regs.c: Likewise.
36196 * ira.c: Likewise.
36197 * omp-low.c: Likewise.
36198 * stack-ptr-mod.c: Likewise.
36199 * tree-ssa-reassoc.c: Likewise.
36200 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36201 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
36202 varasm.h.
36203 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36204 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
36205 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36206 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
36207 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36208 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
36209 * tree-ssa-phiopt.c: Likewise.
36210 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36211 fixed-value.h hashtab.h real.h statistics.h stmt.h.
36212 * config/fr30/fr30.c: Likewise.
36213 * config/frv/frv.c: Likewise.
36214 * expr.c: Likewise.
36215 * final.c: Likewise.
36216 * optabs.c: Likewise.
36217 * passes.c: Likewise.
36218 * simplify-rtx.c: Likewise.
36219 * stmt.c: Likewise.
36220 * toplev.c: Likewise.
36221 * var-tracking.c: Likewise.
36222 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36223 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36224 * lower-subreg.c: Likewise.
36225 * postreload-gcse.c: Likewise.
36226 * ree.c: Likewise.
36227 * reginfo.c: Likewise.
36228 * store-motion.c: Likewise.
36229 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36230 fixed-value.h hashtab.h real.h stmt.h varasm.h.
36231 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36232 fixed-value.h hashtab.h statistics.h stmt.h.
36233 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36234 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36235 * except.c: Likewise.
36236 * explow.c: Likewise.
36237 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36238 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
36239 varasm.h.
36240 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36241 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
36242 * tree-ssa-structalias.c: Likewise.
36243 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36244 fixed-value.h insn-config.h real.h statistics.h.
36245 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36246 fixed-value.h insn-config.h real.h statistics.h stmt.h.
36247 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36248 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36249 * cfgbuild.c: Likewise.
36250 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36251 fixed-value.h real.h rtl.h statistics.h stmt.h.
36252 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36253 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36254 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36255 fixed-value.h real.h statistics.h stmt.h.
36256 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36257 fixed-value.h real.h statistics.h stmt.h varasm.h.
36258 * cprop.c: Likewise.
36259 * modulo-sched.c: Likewise.
36260 * postreload.c: Likewise.
36261 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36262 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
36263 statistics.h stmt.h varasm.h.
36264 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
36265 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36266 rtl.h statistics.h stmt.h varasm.h.
36267 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
36268 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
36269 varasm.h.
36270 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36271 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
36272 varasm.h.
36273 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
36274 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
36275 varasm.h.
36276 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
36277 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36278 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36279 function.h real.h statistics.h stmt.h varasm.h.
36280 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36281 insn-config.h real.h statistics.h stmt.h.
36282 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36283 statistics.h stmt.h.
36284 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
36285 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
36286 statistics.h stmt.h varasm.h.
36287 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
36288 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
36289 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36290 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
36291 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
36292 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36293 statistics.h stmt.h varasm.h.
36294 * ipa-polymorphic-call.c: Likewise.
36295 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
36296 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36297 statistics.h stmt.h.
36298 * config/c6x/c6x.c: Likewise.
36299 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
36300 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36301 statistics.h stmt.h varasm.h.
36302 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
36303 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
36304 stmt.h varasm.h.
36305 * ipa-split.c: Likewise.
36306 * tree-eh.c: Likewise.
36307 * tree-ssa-dce.c: Likewise.
36308 * tree-ssa-loop-niter.c: Likewise.
36309 * tree-vrp.c: Likewise.
36310 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
36311 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
36312 stmt.h.
36313 * config/nds32/nds32-fp-as-gp.c: Likewise.
36314 * config/nds32/nds32-intrinsic.c: Likewise.
36315 * config/nds32/nds32-isr.c: Likewise.
36316 * config/nds32/nds32-md-auxiliary.c: Likewise.
36317 * config/nds32/nds32-memory-manipulation.c: Likewise.
36318 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
36319 * config/nds32/nds32-predicates.c: Likewise.
36320 * config/nds32/nds32.c: Likewise.
36321 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
36322 fixed-value.h hashtab.h real.h statistics.h.
36323 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
36324 fixed-value.h hashtab.h real.h statistics.h stmt.h.
36325 * config/arm/arm.c: Likewise.
36326 * config/avr/avr.c: Likewise.
36327 * config/bfin/bfin.c: Likewise.
36328 * config/h8300/h8300.c: Likewise.
36329 * config/i386/i386.c: Likewise.
36330 * config/ia64/ia64.c: Likewise.
36331 * config/iq2000/iq2000.c: Likewise.
36332 * config/m32c/m32c.c: Likewise.
36333 * config/m32r/m32r.c: Likewise.
36334 * config/m68k/m68k.c: Likewise.
36335 * config/mcore/mcore.c: Likewise.
36336 * config/mep/mep.c: Likewise.
36337 * config/mips/mips.c: Likewise.
36338 * config/mn10300/mn10300.c: Likewise.
36339 * config/moxie/moxie.c: Likewise.
36340 * config/pa/pa.c: Likewise.
36341 * config/rl78/rl78.c: Likewise.
36342 * config/rx/rx.c: Likewise.
36343 * config/s390/s390.c: Likewise.
36344 * config/sh/sh.c: Likewise.
36345 * config/sparc/sparc.c: Likewise.
36346 * config/spu/spu.c: Likewise.
36347 * config/stormy16/stormy16.c: Likewise.
36348 * config/v850/v850.c: Likewise.
36349 * config/vax/vax.c: Likewise.
36350 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
36351 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36352 * config/msp430/msp430.c: Likewise.
36353 * predict.c: Likewise.
36354 * value-prof.c: Likewise.
36355 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
36356 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
36357 * config/microblaze/microblaze.c: Likewise.
36358 * config/nios2/nios2.c: Likewise.
36359 * config/rs6000/rs6000.c: Likewise.
36360 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36361 insn-config.h real.h rtl.h statistics.h stmt.h.
36362 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36363 insn-config.h real.h statistics.h stmt.h.
36364 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
36365 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36366 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
36367 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36368 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
36369 fixed-value.h real.h statistics.h stmt.h.
36370 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
36371 fixed-value.h statistics.h stmt.h.
36372 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
36373 stmt.h.
36374
36375 2015-01-15 Jakub Jelinek <jakub@redhat.com>
36376
36377 * gengtype.c (create_user_defined_type): Workaround
36378 -Wmaybe-uninitialized false positives.
36379 * cse.c (fold_rtx): Likewise.
36380 * loop-invariant.c (gain_for_invariant): Likewise.
36381
36382 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
36383
36384 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
36385 set the memory attributes in all cases but clear MEM_EXPR if need be.
36386
36387 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
36388
36389 PR tree-optimization/64434
36390 * cfgexpand.c (reorder_operands): New function.
36391 (expand_gimple_basic_block): Insert call of reorder_operands if
36392 optimized is true.
36393
36394 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
36395
36396 * config/mips/micromips.md (*swp): Remove explicit parallel.
36397 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
36398 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
36399 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
36400 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
36401 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
36402 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
36403 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
36404 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
36405 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
36406 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
36407 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
36408 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
36409 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
36410 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
36411 (mips_wrdsp): Likewise.
36412 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
36413 parallel.
36414 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
36415 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
36416 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
36417 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
36418 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
36419 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
36420 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
36421 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
36422 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
36423
36424 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
36425
36426 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
36427 (mips_print_operand): Support 'y' to print exact log2 in decimal
36428 of a const_int.
36429 * config/mips/mips.h (ISA_HAS_LSA): New define.
36430 (ISA_HAS_DLSA): Likewise.
36431 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
36432 * config/mips/predicates.md (const_immlsa_operand): New predicate.
36433
36434 2015-01-15 Martin Liska <mliska@suse.cz>
36435
36436 PR target/64377
36437 * optc-save-gen.awk: Add support for array types.
36438
36439 2015-01-15 Richard Biener <rguenther@suse.de>
36440
36441 PR middle-end/64365
36442 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
36443 for MEM_REF access functions with the same base can never partially
36444 overlap.
36445
36446 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
36447
36448 * common.opt: New option -fstack-protector-explicit.
36449 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
36450 (stack_protect_decl_phase): Handle stack_protect attribute for
36451 explicit stack protection requests.
36452 (expand_used_vars): Similarly.
36453 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
36454 * doc/extend.texi: Add documentation for "stack_protect" attribute.
36455 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
36456
36457 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
36458
36459 PR target/53988
36460 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
36461 reg-reg copies.
36462 (sh_extending_set_of_reg): New struct.
36463 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
36464 sh_remove_reg_dead_or_unused_notes): New Declarations.
36465 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
36466 sh_find_extending_set_of_reg, sh_split_tst_subregs,
36467 sh_extending_set_of_reg::use_as_extended_reg): New functions.
36468 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
36469 convert to insn_and_split and use new function sh_split_tst_subregs.
36470
36471 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
36472
36473 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
36474 option.
36475 (Optimization Options): Move -fuse-ld documentation to...
36476 (Link Options): ...here.
36477
36478 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
36479
36480 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
36481 offsets.
36482 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
36483 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
36484 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
36485 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
36486 instead of ZR for the memory operand of LL/SC.
36487 (compare_and_swap_12, sync_add<mode>): Likewise.
36488 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
36489 (sync_new_<optab>_12, sync_nand_12): Likewise.
36490 (sync_old_nand_12, sync_new_nand_12): Likewise.
36491 (sync_sub<mode>, sync_old_add<mode>): Likewise.
36492 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
36493 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
36494 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
36495 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
36496 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
36497 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
36498 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
36499 * doc/md.texi (ZC): Update description.
36500
36501 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
36502
36503 * builtins.c (expand_builtin_atomic_exchange): Remove error when
36504 memory model is CONSUME.
36505 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
36506 expand_builtin_atomic_store): Change invalid memory model errors to
36507 warnings.
36508 (expand_builtin_atomic_clear): Change invalid model errors to warnings
36509 and issue warning for CONSUME.
36510
36511 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
36512
36513 * lto-cgraph: Update function comments for
36514 lto_symtab_encoder_encode_*.
36515
36516 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
36517
36518 * Makefile.in (site.exp): Do not set ENABLE_LTO.
36519
36520 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
36521
36522 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
36523 * lto-cgraph.c (select_what_to_stream): Remove argument, use
36524 lto_stream_offload_p instead.
36525 * lto-streamer.h (select_what_to_stream): Remove argument.
36526 * passes.c (ipa_write_summaries): Likewise.
36527 * tree-pass.h (ipa_write_summaries): Likewise.
36528
36529 2015-01-14 Richard Biener <rguenther@suse.de>
36530
36531 PR tree-optimization/59354
36532 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
36533 groups larger than the slp group size as having gaps.
36534
36535 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
36536
36537 PR middle-end/59448
36538 * builtins.c (get_memmodel): Promote consume to acquire always.
36539
36540 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
36541
36542 PR target/64386
36543 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
36544 V32HImode.
36545
36546 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
36547
36548 PR target/64393
36549 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
36550 Enable AVX512BW.
36551 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
36552 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
36553 AVX512VBMI, as it implies AVX512BW.
36554
36555 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
36556
36557 PR target/64387
36558 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
36559 (vec_unpacks_hi_v16sf): Ditto.
36560
36561 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36562
36563 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
36564 is not available.
36565
36566 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36567
36568 * doc/invoke.texi (mapcs): Mention deprecation.
36569 (mapcs-frame): Likewise.
36570
36571 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
36572
36573 PR target/64453
36574 * config/arm/arm.c (callee_saved_reg_p): Define.
36575 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
36576 register is callee saved instead of !call_used_regs[reg].
36577 (thumb1_compute_save_reg_mask): Likewise.
36578
36579 2015-01-14 Hale Wang <hale.wang@arm.com>
36580
36581 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
36582 Cortex-M7.
36583
36584 2015-01-14 Richard Biener <rguenther@suse.de>
36585
36586 PR lto/64415
36587 * tree-inline.c (insert_debug_decl_map): Check destination
36588 function MAY_HAVE_DEBUG_STMTS.
36589 (insert_init_debug_bind): Likewise.
36590 (insert_init_stmt): Remove redundant check.
36591 (remap_gimple_stmt): Drop debug stmts if the destination
36592 function has var-tracking assignments disabled.
36593
36594 2015-01-14 Martin Liska <mliska@suse.cz>
36595
36596 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
36597 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
36598
36599 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36600
36601 PR target/64460
36602 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
36603 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
36604
36605 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
36606
36607 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
36608 level from an ARCH; do not inject the default.
36609 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
36610 MIPS_ISA_LEVEL_SPEC.
36611 (MIPS_ISA_NAN2008_SPEC): Update comment.
36612 (BASE_DRIVER_SELF_SPECS): Likewise.
36613 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
36614 MIPS_DEFAULT_ISA_LEVEL_SPEC.
36615 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
36616 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
36617 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
36618
36619 2015-01-14 Richard Biener <rguenther@suse.de>
36620
36621 PR tree-optimization/64493
36622 PR tree-optimization/64495
36623 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
36624 assign the proper vectorized PHI to the inner loop exit PHIs.
36625
36626 2015-01-14 Joey Ye <joey.ye@arm.com>
36627
36628 * config/arm/arm.c (arm_compute_save_reg_mask):
36629 Do not save lr in case of tail call.
36630 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
36631
36632 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
36633
36634 * tree-vrp.c (check_array_ref): Emit more warnings
36635 for warn_array_bounds >= 2.
36636 * common.opt: New option -Warray-bounds=.
36637 * doc/invoke.texi: Document -Warray-bounds=.
36638
36639 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
36640
36641 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
36642 (mforbid-fp-as-gp): Remove.
36643 (mex9): Remove.
36644 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
36645 (nds32_symbol_load_store_p): Remove.
36646 (nds32_fp_as_gp_check_available): Clean up implementation.
36647 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
36648 cases.
36649 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
36650 fp-as-gp and ex9 cases.
36651
36652 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
36653
36654 * tree-profile.c (init_ic_make_global_vars): Drop workaround
36655 for bintuils bug 14342.
36656 (init_ic_make_global_vars): Likewise.
36657 (gimple_init_edge_profiler): Likewise.
36658 (gimple_gen_ic_func_profiler): Likewise.
36659
36660 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36661
36662 * ipa-inline.c (inline_small_functions): Swap the operands in
36663 enum.
36664
36665 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
36666
36667 PR ipa/64481
36668 * ipa-inline-analysis.c (node_growth_cache): Remove.
36669 (initialize_growth_caches): Do not initialize it.
36670 (free_growth_caches): Do not free it.
36671 (do_estimate_growth): Rename to ...
36672 (estimate_growth): ... this one; drop growth cache code.
36673 (growth_likely_positive): Always go the heuristics way.
36674 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
36675 (reset_edge_caches): Do not reset node growth.
36676 (heap_edge_removal_hook): Do not maintain cache.
36677 (inline_small_functions): Likewise; strenghten sanity check.
36678 (ipa_inline): Do not maintain caches.
36679 * ipa-inline.h (node_growth_cache): Remove.
36680 (do_estimate_growth): Remove to ...
36681 (estimate_growth): this one; remove inline version.
36682 (reset_node_growth_cache): Remove.
36683
36684 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
36685
36686 PR ipa/64565
36687 * ipa-inline.c (inline_small_functions): Update callee keys after
36688 resolving speculation
36689 (inline_small_functions): Always check monotonicity of the queue.
36690
36691 2015-01-13 Marek Polacek <polacek@redhat.com>
36692
36693 PR middle-end/64391
36694 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
36695
36696 2015-01-13 Jakub Jelinek <jakub@redhat.com>
36697
36698 PR rtl-optimization/64286
36699 * ree.c (combine_reaching_defs): Move part of comment earlier,
36700 remove !SCALAR_INT_MODE_P check.
36701 (add_removable_extension): Don't add vector mode
36702 extensions if all uses of the source register aren't the same
36703 vector extensions.
36704
36705 2015-01-13 Renlin Li <renlin.li@arm.com>
36706
36707 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
36708 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
36709
36710 2015-01-13 Martin Liska <mliska@suse.cz>
36711
36712 * ipa-icf.c (sem_function::equals_private): Call new functions
36713 cl_target_option_print_diff and cl_optimization_print_diff.
36714 * optc-save-gen.awk (cl_target_option_print_diff): New function.
36715 (cl_optimization_print_diff): Likewise.
36716 * opth-gen.awk: Likewise.
36717
36718 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
36719
36720 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
36721 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
36722 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
36723 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
36724 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
36725 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
36726
36727 2015-01-13 Andrew Pinski <apinski@cavium.com>
36728
36729 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
36730 instead of src mode.
36731
36732 2015-01-13 Richard Biener <rguenther@suse.de>
36733
36734 PR lto/64373
36735 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
36736 DECL_CONTEXT.
36737
36738 2015-01-13 Andrew Pinski <apinski@cavium.com>
36739
36740 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
36741 volatile mems.
36742 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
36743
36744 2015-01-13 Jakub Jelinek <jakub@redhat.com>
36745
36746 PR middle-end/63974
36747 * cfgexpand.c (expand_computed_goto): Don't call
36748 convert_memory_address here.
36749
36750 2015-01-13 Richard Biener <rguenther@suse.de>
36751
36752 PR tree-optimization/64406
36753 * tree-loop-distibution.c (pass_loop_distribution::execute):
36754 Reset the SCEV hashtable if we distributed anything.
36755
36756 2015-01-13 Richard Biener <rguenther@suse.de>
36757
36758 PR tree-optimization/64404
36759 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
36760 SLP types for CSEd loads.
36761
36762 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
36763
36764 PR tree-optimization/64436
36765 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
36766 merge of two symbolic numbers for a bitwise OR to ...
36767 (perform_symbolic_merge): This. Also fix computation of the range and
36768 end of the symbolic number corresponding to the result of a bitwise OR.
36769
36770 2015-01-13 Richard Biener <rguenther@suse.de>
36771
36772 PR tree-optimization/64568
36773 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
36774 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
36775
36776 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36777
36778 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
36779 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
36780
36781 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36782
36783 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
36784 target-specific symbol_ref flag.
36785 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
36786 resides in rodata section.
36787 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
36788 (nds32_encode_section_info): New function.
36789
36790 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36791
36792 * config/nds32/nds32.md (call): Use pseudo instruction bal which
36793 clobbers TA_REGNUM if large code model is specified.
36794 (call_register): Likewise.
36795 (call_immediate): Likewise.
36796 (call_value): Likewise.
36797 (call_value_register): Likewise.
36798 (call_value_immediate): Likewise.
36799
36800 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36801
36802 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
36803 (TARGET_CMODEL_MEDIUM): New macro.
36804 (TARGET_CMODEL_LARGE): New macro.
36805 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
36806 code model setting in assembly code.
36807
36808 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36809
36810 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
36811 Remove MASK_GP_DIRECT flag.
36812 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
36813 one of the multilib default options.
36814 * config/nds32/nds32.opt (mgp-direct): Remove.
36815 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
36816 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
36817
36818 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36819
36820 * config/nds32/nds32.opt (mcmodel): Add new option.
36821 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
36822 to describe code model.
36823
36824 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
36825
36826 PR target/64479
36827 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
36828
36829 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
36830
36831 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
36832 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
36833 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
36834 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
36835 __builtin_sh_set_fpscr.
36836
36837 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
36838
36839 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
36840 after a funtion name just to indicate it is a function.
36841 ([-fsanitize-undefined-trap-on-error]): Likewise.
36842 ([-fdbg-cnt=]): Likewise.
36843 ([-mmemcpy]): Likewise.
36844 ([-mflush-func]): Likewise.
36845 ([-msynci]): Likewise.
36846
36847 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
36848
36849 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
36850 example.
36851
36852 2015-01-12 Jakub Jelinek <jakub@redhat.com>
36853
36854 PR tree-optimization/64563
36855 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
36856 instead of != VR_VARYING.
36857
36858 PR target/64513
36859 * config/i386/i386.c (ix86_expand_prologue): Add
36860 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
36861
36862 PR tree-optimization/64454
36863 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
36864 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
36865 for signed or [0, op1 - 1] for unsigned modulo.
36866 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
36867 even if op1 does not satisfy integer_pow2p.
36868
36869 PR other/64370
36870 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
36871
36872 2015-01-12 Jeff Law <law@redhat.com>
36873
36874 PR target/64461
36875 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
36876 (trunchiqi2, truncsihi2): Similarly.
36877
36878 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
36879 rather than calling F.
36880
36881 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
36882
36883 * tsan.c (instrument_expr): Use force_gimple_operand.
36884 Use may_be_nonaddressable_p instead of is_gimple_addressable.
36885
36886 2015-01-12 Richard Biener <rguenther@suse.de>
36887
36888 PR tree-optimization/64530
36889 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
36890 back dr1.
36891
36892 2015-01-12 Richard Biener <rguenther@suse.de>
36893
36894 PR middle-end/64357
36895 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
36896 latches properly.
36897
36898 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36899
36900 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
36901 Cortex-A17 tuning parameters.
36902 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
36903
36904 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36905
36906 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
36907 * config/arm/arm.c (arm_macro_fusion_p): New function.
36908 (arm_macro_fusion_pair_p): Likewise.
36909 (TARGET_SCHED_MACRO_FUSION_P): Define.
36910 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
36911 (ARM_FUSE_NOTHING): Likewise.
36912 (ARM_FUSE_MOVW_MOVT): Likewise.
36913 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
36914 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
36915 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
36916 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
36917 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
36918 arm_cortex_a5_tune): Specify fuseable_ops value.
36919
36920 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
36921
36922 PR bootstrap/64561
36923 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
36924 test for PIE with copy reloc.
36925 * configure: Regenerated.
36926
36927 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36928
36929 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
36930 in gen_rtx_REG.
36931 (arm_tls_descseq_addr): Likewise.
36932 (arm_gen_movmemqi): Likewise.
36933 (arm_expand_epilogue_apcs_frame): Likewise.
36934 (arm_expand_epilogue): Likewise.
36935 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
36936 in gen_rtx_REG.
36937
36938 2015-01-12 Martin Liska <mliska@suse.cz>
36939
36940 PR ipa/64550
36941 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
36942 volatility for correct operands.
36943
36944 2015-01-12 Martin Liska <mliska@suse.cz>
36945
36946 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
36947 indication that a function is not leaf.
36948 (sem_function::compare_polymorphic_p): Likewise.
36949
36950 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36951
36952 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
36953 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
36954 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
36955 fold-const.h, tree-check.h.
36956
36957 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
36958
36959 PR ipa/63967
36960 PR ipa/64425
36961 * ipa-inline.c (compute_uninlined_call_time,
36962 compute_inlined_call_time): Use counts for extra precision when
36963 needed possible.
36964 (big_speedup_p): Fix formating.
36965 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
36966 (relative_time_benefit): Remove.
36967 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
36968 merge guessed and read profile paths.
36969 (inline_small_functions): Count only !optimize_size functions into
36970 initial size; be more lax about sanity check when profile is used;
36971 be sure to update inlined function profile when profile is read.
36972
36973 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
36974
36975 PR ipa/63470
36976 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
36977 cost when edge becomes direct.
36978 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
36979 is resolved or when introducing new speculation.
36980
36981 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
36982
36983 PR ipa/64551
36984 PR ipa/64552
36985 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
36986 '||' to fix typo issue.
36987
36988 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
36989 accept and return NULL.
36990
36991 2015-01-12 Martin Liska <mliska@suse.cz>
36992
36993 * cgraph.c (cgraph_edge::remove_callee): Move function to header
36994 file for being inlined.
36995 (cgraph_set_edge_callee): Delete.
36996 (cgraph_edge::redirect_callee): Move function to header file
36997 for being inlined.
36998 (cgraph_edge::make_direct): Use new function.
36999 (cgraph_edge::dump_edge_flags): New function created from
37000 static dump_edge_flags function.
37001 (cgraph_node::dump): Use new function.
37002 (cgraph_edge::verify_count_and_frequency): New function created
37003 from verify_edge_count_and_frequency.
37004 (cgraph_edge::verify_corresponds_to_fndecl): New function created
37005 from verify_edge_corresponds_to_fndecl.
37006 (verify_edge_corresponds_to_fndecl): Delete.
37007 (cgraph_node::verify_node): Use new function.
37008 * cgraph.h (cgraph_edge::set_callee): New function.
37009 (cgraph_edge::dump_edge_flags): Likewise.
37010 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
37011
37012 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
37013
37014 * ipa-utils.c (estimate_function_body_sizes): Do not
37015 free node params when called late with early=true.
37016
37017 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
37018
37019 * doc/md.texi (Instruction Patterns): Rewrite text for
37020 clarity.
37021 (Example): Likewise.
37022
37023 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
37024
37025 * doc/invoke.texi (Option Summary): Break long lines.
37026 [(-fdiagnostics-color)]: Put long literal in @smallexample
37027 instead of inline.
37028 [(-fsanitize-recover)]: Likewise.
37029 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
37030 [(-ffast-math)]: Likewise.
37031 [(--param max-inline-insns-recursive)]: Likewise.
37032 [(--param max-inline-recursive-depth)]: Likewise.
37033 [(-mno-text-section-literals)]: Likewise.
37034
37035 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
37036
37037 * doc/install.texi: Update for libgomp being renamed from "GNU
37038 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
37039 Runtime Library".
37040 * doc/sourcebuild.texi: Likewise.
37041
37042 2015-01-10 Anthony Green <green@moxielogic.com>
37043
37044 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
37045 mul.x availability for moxiebox configuration.
37046
37047 2015-01-09 Anthony Green <green@moxielogic.com>
37048
37049 * config/moxie/moxie.md: Tabify assembly output.
37050
37051 2015-01-09 Anthony Green <green@moxielogic.com>
37052
37053 * config/moxie/moxie.md (CC_REG): Correct register definition.
37054
37055 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
37056
37057 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
37058 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
37059 of log files.
37060
37061 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37062
37063 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
37064
37065 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
37066 Jakub Jelinek <jakub@redhat.com>
37067
37068 PR middle-end/64412
37069 * lto-streamer.h (lto_stream_offload_p): New declaration.
37070 * lto-streamer.c (lto_stream_offload_p): New variable.
37071 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
37072 at the same time as section_name_prefix.
37073 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
37074 if lto_stream_offload_p.
37075 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
37076 stream TREE_TARGET_OPTION if lto_stream_offload_p.
37077 (write_ts_function_decl_tree_pointers): Don't
37078 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
37079 * tree-streamer-in.c (unpack_value_fields): Don't stream
37080 TREE_TARGET_OPTION in if ACCEL_COMPILER.
37081 (lto_input_ts_function_decl_tree_pointers): Don't stream
37082 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
37083 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
37084 instead of section_name_prefix string comparisons.
37085
37086 2015-01-09 Jakub Jelinek <jakub@redhat.com>
37087
37088 PR rtl-optimization/64536
37089 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
37090 tablejumps.
37091
37092 2015-01-09 Michael Collison <michael.collison@linaro.org>
37093
37094 PR tree-optimization/64322
37095 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
37096 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
37097
37098 2015-01-09 Tom de Vries <tom@codesourcery.com>
37099
37100 PR rtl-optimization/64539
37101 * regcprop.c (kill_clobbered_values): Factor out of ...
37102 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
37103 instead of note_stores with kill_clobbered_value.
37104
37105 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37106
37107 * ginclude/unwind-arm-common.h: Revert previous commit.
37108
37109 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37110
37111 * config.gcc (arm*-*-freebsd*): New configuration.
37112 * config/arm/freebsd.h: New file.
37113 * config.host: Add extra components for arm*-*-freebsd*.
37114 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
37115 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
37116
37117 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37118
37119 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
37120 for -mcpu=e6500.
37121 * config/rs6000/t-rtems: Add e6500 multilibs.
37122
37123 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37124
37125 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
37126 MPC8540.
37127
37128 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37129
37130 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
37131 MULTILIB_EXCEPTIONS.
37132
37133 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37134
37135 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
37136 MULTILIB_EXCEPTIONS.
37137
37138 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37139
37140 * config/arm/t-rtems-eabi: Rename to...
37141 * config/arm/t-rtems: ...this.
37142 * config/arm/rtems-eabi.h: Rename to...
37143 * config/arm/rtems.h: ...this.
37144 * config.gcc (arm*-*-rtems*): Reflect changes above.
37145
37146 2015-01-09 Richard Biener <rguenther@suse.de>
37147
37148 PR tree-optimization/64410
37149 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
37150 on the LHS.
37151 (execute_update_addresses_taken): Deal with that.
37152 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
37153 loads/stores for complex variables.
37154
37155 2015-01-09 Martin Liska <mliska@suse.cz>
37156
37157 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
37158 name comparison.
37159 (func_checker::compare_memory_operand): New function.
37160 (func_checker::compare_operand): Split case to newly
37161 added functions.
37162 (func_checker::compare_cst_or_decl): New function.
37163 (func_checker::compare_gimple_call): Identify
37164 memory operands.
37165 (func_checker::compare_gimple_assign): Likewise.
37166 * ipa-icf-gimple.h: New function.
37167
37168 2015-01-09 Martin Liska <mliska@suse.cz>
37169
37170 PR ipa/64503
37171 * sreal.c (sreal::dump): Change unsigned format to signed for
37172 m_exp value.
37173 (sreal::to_double): Replace exp2 with scalbln.
37174
37175 2015-01-09 Martin Liska <mliska@suse.cz>
37176
37177 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
37178 * ipa-icf.c (sem_function::equals_private): Add support for target and
37179 (sem_item_optimizer::merge_classes): Remove redundant function
37180 optimization flags comparison.
37181 * tree.h (target_opts_for_fn): New function.
37182
37183 2015-01-09 Tom de Vries <tom@codesourcery.com>
37184
37185 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
37186
37187 2015-01-09 Kito Cheng <kito@0xlab.org>
37188
37189 PR rtl-optimization/64348
37190 * lra-constraints.c (split_reg): Fix caller-save store/restore
37191 instruction generation.
37192
37193 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
37194
37195 PR gcov-profile/61790
37196 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
37197 long long. Fallback to int64_t if host doesn't have long long and
37198 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
37199
37200 2015-01-08 Jakub Jelinek <jakub@redhat.com>
37201
37202 PR tree-optimization/63989
37203 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
37204 from 1000 to 10000.
37205 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
37206 (get_stridx): If we don't have a record for certain SSA_NAME,
37207 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
37208 constant offset, call get_stridx_plus_constant.
37209 (get_stridx_plus_constant): New function.
37210 (zero_length_string): Don't use get_stridx here.
37211
37212 PR target/55023
37213 PR middle-end/64388
37214 * dse.c (struct insn_info): Mention frame_read set also
37215 before reload for tail calls on some targets.
37216 (scan_insn): Revert 2014-12-22 change. Set frame_read
37217 also before reload for tail calls if
37218 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
37219 instead of add_non_frame_wild_read for non-const/memset
37220 tail calls after reload.
37221
37222 2015-01-08 Jason Merrill <jason@redhat.com>
37223
37224 * ubsan.c (do_ubsan_in_current_function): New.
37225 (pass_ubsan::gate): Use it.
37226 * ubsan.h: Declare it.
37227 * convert.c (convert_to_integer): Use it.
37228
37229 2015-01-08 Jakub Jelinek <jakub@redhat.com>
37230
37231 PR target/64338
37232 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
37233 compare_code when it is unconditionally overwritten afterwards.
37234 Use ix86_reverse_condition instead of reverse_condition. Don't
37235 change code if *reverse_condition* returned UNKNOWN and don't
37236 swap ct/cf and negate diff in that case.
37237
37238 2015-01-08 Mike Stump <mikestump@comcast.net>
37239
37240 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
37241 (pass_tsan_O0::gate): Likewise.
37242 * extend.texi (Function Attributes): Add no_sanitize_thread
37243 documentation.
37244
37245 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
37246
37247 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
37248 for registering builtins.
37249 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
37250 add -fopenmp to the argv_obstack used when invoking
37251 compile_for_target.
37252
37253 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
37254 add "-m32" or "-m64" to argv_obstack.
37255 (generate_host_descr_file): Likewise, when invoking host_compiler.
37256 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
37257 ld.
37258
37259 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
37260
37261 * config/sh/sh-mem.cc: Use constant as second operand when emitting
37262 tstsi_t insns.
37263
37264 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
37265
37266 PR target/55212
37267 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
37268 constant load if constant operand fits into I08.
37269
37270 2015-01-08 Jakub Jelinek <jakub@redhat.com>
37271
37272 PR sanitizer/64336
37273 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
37274 and TREE_THIS_VOLATILE for MEM_REFs.
37275 (build5_stat): Fix up initialization of TREE_READONLY and
37276 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
37277
37278 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
37279
37280 PR target/64533
37281 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
37282 of r for the second alternative of the destination operand.
37283
37284 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
37285
37286 PR target/36557
37287 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
37288
37289 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
37290
37291 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
37292 keywords.
37293 ([-fivar-visibility], [-fvisibility]): Likewise.
37294
37295 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
37296
37297 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
37298 the file where @code, @command, etc is more appropriate.
37299
37300 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
37301
37302 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
37303 of -mrecip= documentation.
37304
37305 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
37306
37307 PR target/64505
37308 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
37309 correct reload handler if -m32 -mpowerpc64 is used.
37310
37311 2015-01-06 Tom de Vries <tom@codesourcery.com>
37312
37313 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
37314
37315 2015-01-08 Christian Bruel <christian.bruel@st.com>
37316
37317 PR target/64507
37318 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
37319
37320 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
37321
37322 PR tree-optimization/63259
37323 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
37324 if optab exists for 16bit byteswap.
37325
37326 2015-01-06 Jakub Jelinek <jakub@redhat.com>
37327
37328 * opts.c (common_handle_option): Add support for
37329 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
37330 * doc/invoke.texi: Document -fno-sanitize=all,
37331 -f{,no-}sanitize-recover=all. Document that
37332 -fsanitize=float-cast-overflow is not enabled
37333 by -fsanitize=undefined. Fix up documentation
37334 of -f{,no-}sanitize-recover.
37335
37336 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
37337
37338 * config.gcc: Add Visium support.
37339 * configure.ac: Likewise.
37340 * configure: Regenerate.
37341 * doc/extend.texi (interrupt attribute): Add Visium.
37342 * doc/invoke.texi: Document Visium options.
37343 * doc/install.texi: Document Visium target.
37344 * doc/md.texi: Document Visium constraints.
37345 * common/config/visium: New directory.
37346 * config/visium: Likewise.
37347
37348 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
37349
37350 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
37351 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
37352
37353 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
37354
37355 * combine.c (combine_validate_cost): Do not count the cost of a
37356 split I2 twice. Do not display it twice in the dump, either.
37357
37358 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
37359
37360 Revert parts of r219199.
37361 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
37362 <inttypes.h>.
37363 ([-Wtraditional]): Restore markup on <limits.h>.
37364
37365 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
37366
37367 PR c++/31397
37368 * doc/invoke.texi: Document -Wsuggest-override.
37369
37370 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
37371
37372 PR rtl-optimization/64287
37373 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
37374 (process_options): Disable flag_ipa_ra if profiling.
37375
37376 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
37377
37378 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
37379
37380 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
37381
37382 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
37383 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
37384 put under #if TARGET_LOOPS guard.
37385
37386 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
37387
37388 * config/i386/i386.c (output_387_binary_op): Use std::swap.
37389
37390 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
37391
37392 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
37393 * rtl.h (refers_to_regno_p): Add overload.
37394 * cse.c: Use it.
37395 * bt-load.c: Likewise.
37396 * combine.c: Likewise.
37397 * df-scan.c: Likewise.
37398 * sched-deps.c: Likewise.
37399 * config/s390/s390.c: Likewise.
37400 * config/m32r/m32r.c: Likewise.
37401 * config/rs6000/spe.md: Likewise.
37402 * config/rs6000/rs6000.c: Likewise.
37403 * config/pa/pa.c: Likewise.
37404 * config/stormy16/stormy16.c: Likewise.
37405 * config/cris/cris.c: Likewise.
37406 * config/arc/arc.md: Likewise.
37407 * config/arc/arc.c: Likewise.
37408 * config/sh/sh.md: Likewise.
37409 * config/sh/sh.c: Likewise.
37410 * config/frv/frv.c: Likewise.
37411
37412 2015-01-05 Jakub Jelinek <jakub@redhat.com>
37413
37414 PR sanitizer/64265
37415 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
37416 call as cleanup of the whole body.
37417 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
37418 * tsan.c (replace_func_exit): New function.
37419 (instrument_func_exit): Moved earlier.
37420 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
37421 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
37422 been found.
37423 (tsan_pass): Don't call instrument_func_exit.
37424 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
37425 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
37426 inlining.
37427
37428 PR sanitizer/64344
37429 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
37430 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
37431 it to libubsan handler instead of EXPR. Fold comparisons earlier,
37432 if the result is integer_zerop, return NULL_TREE.
37433 * convert.c (convert_to_integer): Pass expr as ARG.
37434
37435 PR tree-optimization/64465
37436 * tree-inline.c (redirect_all_calls): During inlining
37437 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
37438 changed the stmt to a non-throwing call.
37439
37440 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
37441
37442 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
37443 etc markup throughout the file.
37444
37445 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
37446
37447 Enable experimental TSAN support for Ada.
37448 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
37449
37450 2015-01-05 Jakub Jelinek <jakub@redhat.com>
37451
37452 PR tree-optimization/64494
37453 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
37454 clear SSA_NAME_ANTI_RANGE_P flag.
37455
37456 2015-01-05 Marek Polacek <polacek@redhat.com>
37457
37458 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
37459
37460 2015-01-05 Jakub Jelinek <jakub@redhat.com>
37461
37462 Update copyright years.
37463
37464 * gcc.c (process_command): Update copyright notice dates.
37465 * gcov-dump.c: Ditto.
37466 * gcov.c: Ditto.
37467 * doc/cpp.texi: Bump @copying's copyright year.
37468 * doc/cppinternals.texi: Ditto.
37469 * doc/gcc.texi: Ditto.
37470 * doc/gccint.texi: Ditto.
37471 * doc/gcov.texi: Ditto.
37472 * doc/install.texi: Ditto.
37473 * doc/invoke.texi: Ditto.
37474
37475 * auto-profile.c, auto-profile.h: Fix up Copyright line.
37476
37477 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
37478
37479 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
37480 verb tense, etc.
37481 ([-fvtable-verify], [-fvtv-debug]): Likewise.
37482 ([-Wabi]): Likewise.
37483 ([-fmessage-length]): Likewise.
37484 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
37485 ([-Wno-discarded-qualifiers]): Likewise.
37486 ([-Wnodiscarded-array-qualifiers]): Likewise.
37487 ([-Wno-virtual-move-assign]): Likewise.
37488 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
37489 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
37490 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
37491 ([-fsanitize-undefined-trap-on-error]): Likewise.
37492 ([-floop-interchange]): Likewise.
37493 ([-ftree-coalesce-inlined-vars]): Likewise.
37494 ([-fvect-cost-model]): Likewise.
37495 ([-flto]): Likewise.
37496 ([--param]): Likewise.
37497 (Spec Files): Likewise.
37498 ([-mstrict-align]): Likewise.
37499 ([-mfix-cortex-a53-835769]): Likewise.
37500 ([-march], [-mtune]): Likewise.
37501 ([-mpic-register]): Likewise.
37502 ([-munaligned-access]): Likewise.
37503 ([-msp8]): Likewise.
37504 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
37505 (AVR Built-in Macros): Likewise.
37506 ([-mpreferred-stack-boundary]): Likewise.
37507 ([-mtune-crtl]): Likewise.
37508 ([-mashf]): Likewise.
37509 ([-mmcu=]): Likewise.
37510 ([-minrt]): Likewise.
37511 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
37512 ([-mupper-regs]): Likewise.
37513 ([-matomic-model]): Likewise.
37514 ([-mdiv]): Likewise.
37515 ([-mzdcbranch]): Likewise.
37516 ([-mdisable-callt]): Likewise.
37517 ([-msoft-float]): Likewise.
37518 ([-m8byte-align]): Likewise.
37519 ([-fstack-reuse]): Likewise.
37520
37521 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37522
37523 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
37524 Fix markup, light copy-editing.
37525 ([-fauto-profile]): Rewrite to fix formatting and content
37526 problems.
37527
37528 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37529
37530 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
37531 Copy-edit description.
37532 ([-fisolate-erroneous-paths-attribute]): Likewise.
37533 * common.opt (fisolate-erroneous-paths-dereference):
37534 Copy-edit description.
37535 (fisolate-erroneous-paths-attribute): Likewise.
37536
37537 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37538
37539 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
37540 tidy grammar.
37541
37542 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37543
37544 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
37545 ([-fvtv-debug]): Likewise.
37546 ([-Wc++-compat]): Likewise.
37547 ([-Wc++11-compat]): Likewise.
37548 ([-Wc++14-compat]): Likewise.
37549 ([-Wno-sized-deallocation]): Likewise.
37550 ([-femit-class-debug-always]): Likewise.
37551 ([-femit-struct-debug-detailed]): Likewise.
37552 ([-fno-keep-inline-dllexport]): Likewise.
37553 ([-fira-algorithm]): Likewise.
37554 ([-fira-region]): Likewise.
37555 ([-flra-remat]): Likewise.
37556 ([-fipa-ra]): Likewise.
37557 ([-fhoist-adjacent-loads]): Likewise.
37558 ([-fisolate-erroneous-paths-dereference]): Likewise.
37559 ([-fisolate-erroneous-paths-attribute]): Likewise.
37560 ([-ftree-switch-conversion]): Likewise.
37561 ([-ftree-tail-merge]): Likewise.
37562 ([-ftree-loop-if-convert]): Likewise.
37563 ([-ftree-loop-if-convert-stores]): Likewise.
37564 ([-ftree-loop-distribution]): Likewise.
37565 ([-ftree-loop-distribute-patterns]): Likewise.
37566 ([-flto-compression-level]): Likewise.
37567 ([-flto-report]): Likewise.
37568 ([-flto-report-wpa]): Likewise.
37569 ([-fuse-linker-plugin]): Likewise.
37570 ([-mfix-cortex-a53-835769]): Likewise.
37571 ([-mno-fix-cortex-a53-835769]): Likewise.
37572 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
37573 explicit listing; add a note to the discussion indicating they
37574 exist. Reorder table to group similar options. Add missing
37575 @opindex entries. Add @need commands throughout the table to
37576 allow it to be split across multiple pages.
37577 ([-m8bit-idiv]): Fix @opindex.
37578 ([-mavx256-split-unaligned-load]): Likewise.
37579 ([-mavx256-split-unaligned-store]): Likewise.
37580 ([-mstack-protector-guard]): Likewise.
37581 ([-mcpu=]): Likewise.
37582 ([-mcpu]): Likewise.
37583 ([-mpointer-size=]): Likewise.
37584
37585 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
37586
37587 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
37588 instead of `m' constraint. Likewise for unnamed movb comparison
37589 patterns using reg_before_reload_operand predicate.
37590 * config/pa/predicates.md (reg_before_reload_operand): Tighten
37591 predicate to reject register index and LO_SUM DLT memory forms
37592 after reload.
37593
37594 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
37595
37596 * doc/invoke.texi (Option Summary): Fix spelling of
37597 -fdevirtualize-at-ltrans.
37598 ([-fdevirtualize]): Fix markup.
37599 ([-fdevirtualize-speculatively]): Fix typo.
37600 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
37601 implementor-speaky.
37602 * common.opt (fdevirtualize-at-ltrans): Likewise.
37603 * ipa-devirt.c: Fix typos in comments throughout the file.
37604 (ipa_devirt): Fix typos in format strings for dump output.
37605
37606 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
37607
37608 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
37609 discussion of defaults, light copy-editing.
37610
37611 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
37612
37613 * tsan.c (instrument_expr): corrected previous checkin.
37614
37615 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
37616
37617 Instrument bit field and unaligned accesses for TSAN.
37618 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
37619 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
37620 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
37621 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
37622 unaligned memory regions.
37623
37624 2015-01-01 Anthony Green <green@moxielogic.com>
37625
37626 * config/moxie/predicates.md (moxie_general_movsrc_operand):
37627 Restrict move source register offsets to 16 bits.
37628 \f
37629 Copyright (C) 2015 Free Software Foundation, Inc.
37630
37631 Copying and distribution of this file, with or without modification,
37632 are permitted in any medium without royalty provided the copyright
37633 notice and this notice are preserved.